diff --git a/README.md b/README.md index 902176532a..b826bf5ad5 100644 --- a/README.md +++ b/README.md @@ -285,6 +285,14 @@ transitively `react-router-bootstrap` (which depends on `react-router`) also add Also, `/// ` will not work with path mapping, so dependencies must use `import`. +#### How do I write definitions for packages that can be used globally and as a module? + +The TypeScript handbook contains excellent [general information about writing definitions](https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html), and also [this example definition file](https://www.typescriptlang.org/docs/handbook/declaration-files/templates/global-modifying-module-d-ts.html) which shows how to create a definition using ES6-style module syntax, while also specifying objects made available to the global scope. This technique is demonstrated practically in the [definition for big.js](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/big.js/index.d.ts), which is a library that can be loaded globally via script tag on a web page, or imported via require or ES6-style imports. + +To test how your definition can be used both when referenced globally or as an imported module, create a `test` folder, and place two test files in there. Name one `YourLibraryName-global.test.ts` and the other `YourLibraryName-module.test.ts`. The *global* test file should exercise the definition according to how it would be used in a script loaded on a web page where the library is available on the global scope - in this scenario you should not specify an import statement. The *module* test file should exercise the definition according to how it would be used when imported (including the `import` statement(s)). If you specify a `files` property in your `tsconfig.json` file, be sure to include both test files. A [practical example of this](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/big.js/test) is also available on the big.js definition. + +Please note that it is not required to fully exercise the definition in each test file - it is sufficient to test only the globally-accessible elements on the global test file and fully exercise the definition in the module test file, or vice versa. + #### What about scoped packages? Types for a scoped package `@foo/bar` should go in `types/foo__bar`. Note the double underscore. diff --git a/notNeededPackages.json b/notNeededPackages.json index 457498b676..e94e48189c 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -318,6 +318,12 @@ "sourceRepoURL": "https://github.com/ErikSchierboom/knockout-pre-rendered", "asOfVersion": "0.7.1" }, + { + "libraryName": "lambda-phi", + "typingsPackageName": "lambda-phi", + "sourceRepoURL": "https://github.com/elitechance/lambda-phi", + "asOfVersion": "1.0.1" + }, { "libraryName": "Linq.JS", "typingsPackageName": "linq", @@ -732,6 +738,12 @@ "sourceRepoURL": "https://code.google.com/p/x2js/", "asOfVersion": "3.1.0" }, + { + "libraryName": "xlsx", + "typingsPackageName": "xlsx", + "sourceRepoURL": "https://github.com/sheetjs/js-xlsx", + "asOfVersion": "0.0.36" + }, { "libraryName": "xml-js", "typingsPackageName": "xml-js", diff --git a/types/accept-language-parser/accept-language-parser-tests.ts b/types/accept-language-parser/accept-language-parser-tests.ts new file mode 100644 index 0000000000..b137df02e4 --- /dev/null +++ b/types/accept-language-parser/accept-language-parser-tests.ts @@ -0,0 +1,25 @@ +// https://github.com/opentable/accept-language-parser/blob/v1.4.1/index.js + +import * as AcceptLanguageParser from 'accept-language-parser'; + +const l1: AcceptLanguageParser.Language = { + code: 'en', + script: 'Latn', + region: 'GB', + quality: 0.9 +}; + +const l2: AcceptLanguageParser.Language = { + code: 'en', + quality: 0.9 +}; + +const l3: AcceptLanguageParser.Language = { + code: 'en', + script: null, + quality: 0.9 +}; + +const parsed1: AcceptLanguageParser.Language[] = AcceptLanguageParser.parse(''); +const pick1: string | null = AcceptLanguageParser.pick([''], ''); +const pick2: string | null = AcceptLanguageParser.pick([''], [l1, l2, l3]); diff --git a/types/accept-language-parser/index.d.ts b/types/accept-language-parser/index.d.ts new file mode 100644 index 0000000000..16d003648c --- /dev/null +++ b/types/accept-language-parser/index.d.ts @@ -0,0 +1,17 @@ +// Type definitions for accept-language-parser 1.4 +// Project: https://github.com/opentable/accept-language-parser +// Definitions by: Niklas Wulf +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + +// https://github.com/opentable/accept-language-parser/blob/v1.4.1/index.js + +export function parse(acceptLanguage: string): Language[]; +export function pick(supportedLanguages: string[], acceptLanguage: string | Language[]): string | null; + +export interface Language { + code: string; + script?: string | null; + region?: string; + quality: number; +} diff --git a/types/accept-language-parser/tsconfig.json b/types/accept-language-parser/tsconfig.json new file mode 100644 index 0000000000..adcad2bc16 --- /dev/null +++ b/types/accept-language-parser/tsconfig.json @@ -0,0 +1,15 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": ["../"], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": ["index.d.ts", "accept-language-parser-tests.ts"] +} diff --git a/types/accept-language-parser/tslint.json b/types/accept-language-parser/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/accept-language-parser/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/activex-access/activex-access-tests.ts b/types/activex-access/activex-access-tests.ts new file mode 100644 index 0000000000..f224b92d70 --- /dev/null +++ b/types/activex-access/activex-access-tests.ts @@ -0,0 +1,25 @@ +let app = new ActiveXObject('Access.Application'); +app.UserControl = true; + +// opens a form +app.DoCmd.OpenForm('MyForm', Access.AcFormView.acNormal, '', 'LastName="Smith"'); + +// change the contents of a textbox +// tslint:disable-next-line:no-unnecessary-type-assertion +let textbox = app.Forms.Item('MyForm').Controls.Item('MyTextBox') as Access.TextBox; +textbox.Text = 'Not Smith'; + +// save the current record on the active form +app.RunCommand(Access.AcCommand.acCmdSaveRecord); + +// close the form +app.DoCmd.Close(Access.AcObjectType.acForm, 'MyForm'); + +// open a report for printing +app.DoCmd.OpenReport('MyReport'); + +// open the same report in Design View +app.DoCmd.OpenReport('MyReport', Access.AcView.acViewDesign); + +// run a VBA macro +app.Run('MyMacro', 'argument1', 2); diff --git a/types/activex-access/index.d.ts b/types/activex-access/index.d.ts new file mode 100644 index 0000000000..0fd93502f8 --- /dev/null +++ b/types/activex-access/index.d.ts @@ -0,0 +1,8925 @@ +// Type definitions for Microsoft Access 14.0 Object Library - Access 14.0 +// Project: https://msdn.microsoft.com/en-us/library/dn142571.aspx +// Definitions by: Zev Spitz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +/// +/// +/// +/// + +declare namespace Access { + const enum AcBrowseToObjectType { + acBrowseToForm = 2, + acBrowseToReport = 3, + } + + const enum AcCloseSave { + acSaveNo = 2, + acSavePrompt = 0, + acSaveYes = 1, + } + + const enum AcColorIndex { + acColorIndexAqua = 14, + acColorIndexBlack = 0, + acColorIndexBlue = 12, + acColorIndexBrightGreen = 10, + acColorIndexDarkBlue = 4, + acColorIndexFuschia = 13, + acColorIndexGray = 7, + acColorIndexGreen = 2, + acColorIndexMaroon = 1, + acColorIndexOlive = 3, + acColorIndexRed = 9, + acColorIndexSilver = 8, + acColorIndexTeal = 6, + acColorIndexViolet = 5, + acColorIndexWhite = 15, + acColorIndexYellow = 11, + } + + const enum AcCommand { + acCmdAboutMicrosoftAccess = 35, + acCmdAddDataMacroAfterDelete = 720, + acCmdAddDataMacroAfterInsert = 718, + acCmdAddDataMacroAfterUpdate = 719, + acCmdAddDataMacroBeforeChange = 722, + acCmdAddDataMacroBeforeDelete = 721, + acCmdAddFromOutlook = 583, + acCmdAddInManager = 526, + acCmdAddNamedDataMacro = 723, + acCmdAddToNewGroup = 494, + acCmdAddWatch = 201, + acCmdAdvancedFilterSort = 99, + acCmdAlignBottom = 46, + acCmdAlignCenter = 477, + acCmdAlignLeft = 43, + acCmdAlignmentAndSizing = 478, + acCmdAlignMiddle = 476, + acCmdAlignRight = 44, + acCmdAlignToGrid = 47, + acCmdAlignTop = 45, + acCmdAlignToShortest = 153, + acCmdAlignToTallest = 154, + acCmdAnalyzePerformance = 283, + acCmdAnalyzeTable = 284, + acCmdAnchorBottomLeft = 616, + acCmdAnchorBottomRight = 618, + acCmdAnchorBottomStretchAcross = 617, + acCmdAnchorStretchAcross = 611, + acCmdAnchorStretchDown = 613, + acCmdAnchorStretchDownAcross = 614, + acCmdAnchorStretchDownRight = 615, + acCmdAnchorTopLeft = 610, + acCmdAnchorTopRight = 612, + acCmdAnswerWizard = 235, + acCmdApplyAutoFormat1 = 648, + acCmdApplyAutoFormat10 = 657, + acCmdApplyAutoFormat11 = 658, + acCmdApplyAutoFormat12 = 659, + acCmdApplyAutoFormat13 = 660, + acCmdApplyAutoFormat14 = 661, + acCmdApplyAutoFormat15 = 662, + acCmdApplyAutoFormat16 = 663, + acCmdApplyAutoFormat17 = 664, + acCmdApplyAutoFormat18 = 665, + acCmdApplyAutoFormat19 = 666, + acCmdApplyAutoFormat2 = 649, + acCmdApplyAutoFormat20 = 667, + acCmdApplyAutoFormat21 = 668, + acCmdApplyAutoFormat22 = 669, + acCmdApplyAutoFormat23 = 670, + acCmdApplyAutoFormat24 = 671, + acCmdApplyAutoFormat25 = 672, + acCmdApplyAutoFormat3 = 650, + acCmdApplyAutoFormat4 = 651, + acCmdApplyAutoFormat5 = 652, + acCmdApplyAutoFormat6 = 653, + acCmdApplyAutoFormat7 = 654, + acCmdApplyAutoFormat8 = 655, + acCmdApplyAutoFormat9 = 656, + acCmdApplyDefault = 55, + acCmdApplyFilterSort = 93, + acCmdAppMaximize = 10, + acCmdAppMinimize = 11, + acCmdAppMove = 12, + acCmdAppRestore = 9, + acCmdAppSize = 13, + acCmdArrangeIconsAuto = 218, + acCmdArrangeIconsByCreated = 216, + acCmdArrangeIconsByModified = 217, + acCmdArrangeIconsByName = 214, + acCmdArrangeIconsByType = 215, + acCmdAutoCorrect = 261, + acCmdAutoDial = 192, + acCmdAutoFormat = 270, + acCmdBackgroundPicture = 474, + acCmdBackgroundSound = 475, + acCmdBackup = 513, + acCmdBookmarksClearAll = 310, + acCmdBookmarksNext = 308, + acCmdBookmarksPrevious = 309, + acCmdBookmarksToggle = 307, + acCmdBringToFront = 52, + acCmdBrowseSharePointList = 621, + acCmdCalculatedColumn = 698, + acCmdCallStack = 172, + acCmdChangeToCheckBox = 231, + acCmdChangeToComboBox = 230, + acCmdChangeToCommandButton = 501, + acCmdChangeToImage = 234, + acCmdChangeToLabel = 228, + acCmdChangeToListBox = 229, + acCmdChangeToOptionButton = 233, + acCmdChangeToTextBox = 227, + acCmdChangeToToggleButton = 232, + acCmdClearAll = 146, + acCmdClearAllBreakpoints = 132, + acCmdClearGrid = 71, + acCmdClearHyperlink = 343, + acCmdClearItemDefaults = 237, + acCmdClose = 58, + acCmdCloseAll = 646, + acCmdCloseDatabase = 538, + acCmdCloseWindow = 186, + acCmdCollectDataViaEmail = 608, + acCmdColumnWidth = 117, + acCmdCompactDatabase = 4, + acCmdCompatCheckCurrentObject = 696, + acCmdCompatCheckDatabase = 695, + acCmdCompileAllModules = 125, + acCmdCompileAndSaveAllModules = 126, + acCmdCompileLoadedModules = 290, + acCmdCompleteWord = 306, + acCmdConditionalFormatting = 500, + acCmdConnection = 383, + acCmdControlMarginsMedium = 630, + acCmdControlMarginsNarrow = 629, + acCmdControlMarginsNone = 628, + acCmdControlMarginsWide = 631, + acCmdControlPaddingMedium = 634, + acCmdControlPaddingNarrow = 633, + acCmdControlPaddingNone = 632, + acCmdControlPaddingWide = 635, + acCmdControlWizardsToggle = 197, + acCmdConvertDatabase = 171, + acCmdConvertLinkedTableToLocal = 700, + acCmdConvertMacrosToVisualBasic = 279, + acCmdCopy = 190, + acCmdCopyDatabaseFile = 516, + acCmdCopyHyperlink = 328, + acCmdCreateMenuFromMacro = 334, + acCmdCreateRelationship = 150, + acCmdCreateReplica = 263, + acCmdCreateShortcut = 219, + acCmdCreateShortcutMenuFromMacro = 336, + acCmdCreateToolbarFromMacro = 335, + acCmdCut = 189, + acCmdDataAccessPageAddToPage = 480, + acCmdDataAccessPageBrowse = 344, + acCmdDataAccessPageDesignView = 385, + acCmdDataAccessPageFieldListRefresh = 479, + acCmdDatabaseProperties = 256, + acCmdDatabaseSplitter = 520, + acCmdDataEntry = 78, + acCmdDataOutline = 468, + acCmdDatasheetView = 282, + acCmdDateAndTime = 226, + acCmdDebugWindow = 123, + acCmdDelete = 337, + acCmdDeleteGroup = 493, + acCmdDeletePage = 332, + acCmdDeleteQueryColumn = 81, + acCmdDeleteRecord = 223, + acCmdDeleteRows = 188, + acCmdDeleteSharePointList = 627, + acCmdDeleteTab = 255, + acCmdDeleteTable = 489, + acCmdDeleteTableColumn = 271, + acCmdDeleteWatch = 267, + acCmdDemote = 388, + acCmdDesignObject = 697, + acCmdDesignView = 183, + acCmdDiagramAddRelatedTables = 373, + acCmdDiagramAutosizeSelectedTables = 378, + acCmdDiagramDeleteRelationship = 382, + acCmdDiagramLayoutDiagram = 380, + acCmdDiagramLayoutSelection = 379, + acCmdDiagramModifyUserDefinedView = 375, + acCmdDiagramNewLabel = 372, + acCmdDiagramNewTable = 381, + acCmdDiagramRecalculatePageBreaks = 377, + acCmdDiagramShowRelationshipLabels = 374, + acCmdDiagramViewPageBreaks = 376, + acCmdDiscardChanges = 639, + acCmdDiscardChangesAndRefresh = 640, + acCmdDocMaximize = 15, + acCmdDocMinimize = 60, + acCmdDocMove = 16, + acCmdDocRestore = 14, + acCmdDocSize = 17, + acCmdDocumenter = 285, + acCmdDropSQLDatabase = 517, + acCmdDuplicate = 34, + acCmdEditHyperlink = 325, + acCmdEditingAllowed = 70, + acCmdEditListItems = 607, + acCmdEditRelationship = 151, + acCmdEditTriggers = 384, + acCmdEditWatch = 202, + acCmdEncryptDecryptDatabase = 5, + acCmdEnd = 198, + acCmdExit = 3, + acCmdExport = 487, + acCmdExportAccess = 559, + acCmdExportdBase = 565, + acCmdExportExcel = 556, + acCmdExportFixedFormat = 592, + acCmdExportHTML = 564, + acCmdExportLotus = 567, + acCmdExportODBC = 562, + acCmdExportParadox = 566, + acCmdExportRTF = 558, + acCmdExportSharePointList = 557, + acCmdExportSnapShot = 563, + acCmdExportText = 560, + acCmdExportXML = 561, + acCmdFavoritesAddTo = 299, + acCmdFavoritesOpen = 298, + acCmdFieldList = 42, + acCmdFieldTemplates = 647, + acCmdFilterByForm = 207, + acCmdFilterBySelection = 208, + acCmdFilterExcludingSelection = 277, + acCmdFilterMenu = 619, + acCmdFind = 30, + acCmdFindNext = 341, + acCmdFindNextWordUnderCursor = 313, + acCmdFindPrevious = 120, + acCmdFindPrevWordUnderCursor = 312, + acCmdFitToWindow = 245, + acCmdFont = 19, + acCmdFormatCells = 77, + acCmdFormHdrFtr = 36, + acCmdFormView = 281, + acCmdFreezeColumn = 105, + acCmdGoBack = 294, + acCmdGoContinue = 127, + acCmdGoForward = 295, + acCmdGroupByTable = 387, + acCmdGroupControls = 484, + acCmdHideColumns = 79, + acCmdHideMessageBar = 677, + acCmdHidePane = 365, + acCmdHideTable = 147, + acCmdHorizontalSpacingDecrease = 158, + acCmdHorizontalSpacingIncrease = 159, + acCmdHorizontalSpacingMakeEqual = 157, + acCmdHyperlinkDisplayText = 329, + acCmdImport = 257, + acCmdImportAttachAccess = 544, + acCmdImportAttachdBase = 552, + acCmdImportAttachExcel = 545, + acCmdImportAttachHTML = 550, + acCmdImportAttachLotus = 554, + acCmdImportAttachODBC = 549, + acCmdImportAttachOutlook = 551, + acCmdImportAttachParadox = 553, + acCmdImportAttachSharePointList = 547, + acCmdImportAttachText = 546, + acCmdImportAttachXML = 548, + acCmdIndent = 205, + acCmdIndexes = 152, + acCmdInsertActiveXControl = 258, + acCmdInsertChart = 293, + acCmdInsertFile = 39, + acCmdInsertFileIntoModule = 118, + acCmdInsertHyperlink = 259, + acCmdInsertLogo = 585, + acCmdInsertLookupColumn = 273, + acCmdInsertLookupField = 291, + acCmdInsertMovieFromFile = 469, + acCmdInsertNavigationButton = 724, + acCmdInsertObject = 33, + acCmdInsertPage = 331, + acCmdInsertPicture = 222, + acCmdInsertPivotTable = 470, + acCmdInsertProcedure = 262, + acCmdInsertQueryColumn = 82, + acCmdInsertRows = 187, + acCmdInsertSpreadsheet = 471, + acCmdInsertSubdatasheet = 499, + acCmdInsertTableColumn = 272, + acCmdInsertTitle = 586, + acCmdInsertUnboundSection = 472, + acCmdInvokeBuilder = 178, + acCmdJoinProperties = 72, + acCmdLastPosition = 339, + acCmdLayoutGridlinesBoth = 574, + acCmdLayoutGridlinesBottom = 580, + acCmdLayoutGridlinesCrossHatch = 578, + acCmdLayoutGridlinesHorizontal = 576, + acCmdLayoutGridlinesNone = 577, + acCmdLayoutGridlinesOutline = 581, + acCmdLayoutGridlinesTop = 579, + acCmdLayoutGridlinesVertical = 575, + acCmdLayoutInsertColumnLeft = 680, + acCmdLayoutInsertColumnRight = 681, + acCmdLayoutInsertRowAbove = 678, + acCmdLayoutInsertRowBelow = 679, + acCmdLayoutMergeCells = 682, + acCmdLayoutPreview = 141, + acCmdLayoutSplitColumnCell = 683, + acCmdLayoutSplitRowCell = 684, + acCmdLayoutView = 593, + acCmdLineUpIcons = 213, + acCmdLinkedTableManager = 519, + acCmdLinkTables = 102, + acCmdListConstants = 303, + acCmdLoadFromQuery = 95, + acCmdMacroAllActions = 589, + acCmdMacroArguments = 588, + acCmdMacroConditions = 87, + acCmdMacroNames = 86, + acCmdMakeMDEFile = 7, + acCmdManageAttachments = 673, + acCmdManageReplies = 609, + acCmdManageTableEvents = 717, + acCmdMaximiumRecords = 508, + acCmdMicrosoftAccessHelpTopics = 100, + acCmdMicrosoftOnTheWeb = 236, + acCmdMicrosoftScriptEditor = 390, + acCmdModifySharePointList = 622, + acCmdModifySharePointListAlerts = 623, + acCmdModifySharePointListPermissions = 625, + acCmdModifySharePointListWorkflow = 624, + acCmdMoreWindows = 8, + acCmdMoveColumnCellDown = 573, + acCmdMoveColumnCellUp = 572, + acCmdNewDatabase = 26, + acCmdNewGroup = 491, + acCmdNewObjectAutoForm = 193, + acCmdNewObjectAutoFormWeb = 705, + acCmdNewObjectAutoReport = 194, + acCmdNewObjectAutoReportWeb = 706, + acCmdNewObjectBlankForm = 600, + acCmdNewObjectBlankFormWeb = 703, + acCmdNewObjectBlankReport = 602, + acCmdNewObjectBlankReportWeb = 704, + acCmdNewObjectClassModule = 140, + acCmdNewObjectContinuousForm = 594, + acCmdNewObjectContinuousFormWeb = 701, + acCmdNewObjectDataAccessPage = 346, + acCmdNewObjectDatasheetForm = 598, + acCmdNewObjectDatasheetFormWeb = 702, + acCmdNewObjectDesignForm = 604, + acCmdNewObjectDesignQuery = 603, + acCmdNewObjectDesignReport = 605, + acCmdNewObjectDesignTable = 606, + acCmdNewObjectDiagram = 352, + acCmdNewObjectForm = 136, + acCmdNewObjectFunction = 394, + acCmdNewObjectLabelsReport = 601, + acCmdNewObjectMacro = 138, + acCmdNewObjectMacroWeb = 708, + acCmdNewObjectModalForm = 599, + acCmdNewObjectModule = 139, + acCmdNewObjectNavigationLeft = 690, + acCmdNewObjectNavigationLeftWeb = 710, + acCmdNewObjectNavigationRight = 691, + acCmdNewObjectNavigationRightWeb = 711, + acCmdNewObjectNavigationTop = 689, + acCmdNewObjectNavigationTopLeft = 693, + acCmdNewObjectNavigationTopLeftWeb = 713, + acCmdNewObjectNavigationTopRight = 694, + acCmdNewObjectNavigationTopRightWeb = 714, + acCmdNewObjectNavigationTopTop = 692, + acCmdNewObjectNavigationTopTopWeb = 712, + acCmdNewObjectNavigationTopWeb = 709, + acCmdNewObjectPivotChart = 596, + acCmdNewObjectPivotTable = 597, + acCmdNewObjectQuery = 135, + acCmdNewObjectQueryWeb = 707, + acCmdNewObjectReport = 137, + acCmdNewObjectSplitForm = 595, + acCmdNewObjectStoredProcedure = 351, + acCmdNewObjectTable = 134, + acCmdNewObjectView = 350, + acCmdObjBrwFindWholeWordOnly = 314, + acCmdObjBrwGroupMembers = 318, + acCmdObjBrwHelp = 316, + acCmdObjBrwShowHiddenMembers = 315, + acCmdObjBrwViewDefinition = 317, + acCmdObjectBrowser = 200, + acCmdOfficeClipboard = 488, + acCmdOLEDDELinks = 27, + acCmdOLEObjectConvert = 167, + acCmdOLEObjectDefaultVerb = 57, + acCmdOpenDatabase = 25, + acCmdOpenHyperlink = 326, + acCmdOpenNewHyperlink = 327, + acCmdOpenSearchPage = 253, + acCmdOpenStartPage = 252, + acCmdOpenTable = 221, + acCmdOpenURL = 251, + acCmdOptions = 49, + acCmdOutdent = 206, + acCmdOutputToExcel = 175, + acCmdOutputToRTF = 176, + acCmdOutputToText = 177, + acCmdPageHdrFtr = 182, + acCmdPageNumber = 225, + acCmdPageProperties = 467, + acCmdPageSetup = 32, + acCmdParameterInfo = 305, + acCmdPartialReplicaWizard = 524, + acCmdPaste = 191, + acCmdPasteAppend = 38, + acCmdPasteAsHyperlink = 490, + acCmdPasteFormatting = 587, + acCmdPasteSpecial = 64, + acCmdPivotAutoAverage = 416, + acCmdPivotAutoCount = 413, + acCmdPivotAutoFilter = 398, + acCmdPivotAutoMax = 415, + acCmdPivotAutoMin = 414, + acCmdPivotAutoStdDev = 417, + acCmdPivotAutoStdDevP = 419, + acCmdPivotAutoSum = 412, + acCmdPivotAutoVar = 418, + acCmdPivotAutoVarP = 420, + acCmdPivotChartByRowByColumn = 456, + acCmdPivotChartDrillInto = 457, + acCmdPivotChartDrillOut = 532, + acCmdPivotChartMultiplePlots = 458, + acCmdPivotChartMultiplePlotsUnifiedScale = 459, + acCmdPivotChartShowLegend = 455, + acCmdPivotChartSortAscByTotal = 534, + acCmdPivotChartSortDescByTotal = 535, + acCmdPivotChartType = 453, + acCmdPivotChartUndo = 460, + acCmdPivotChartView = 397, + acCmdPivotCollapse = 400, + acCmdPivotDelete = 454, + acCmdPivotDropAreas = 452, + acCmdPivotExpand = 401, + acCmdPivotRefresh = 404, + acCmdPivotShowAll = 461, + acCmdPivotShowBottom1 = 432, + acCmdPivotShowBottom10 = 435, + acCmdPivotShowBottom10Percent = 440, + acCmdPivotShowBottom1Percent = 437, + acCmdPivotShowBottom2 = 433, + acCmdPivotShowBottom25 = 436, + acCmdPivotShowBottom25Percent = 441, + acCmdPivotShowBottom2Percent = 438, + acCmdPivotShowBottom5 = 434, + acCmdPivotShowBottom5Percent = 439, + acCmdPivotShowBottomOther = 442, + acCmdPivotShowTop1 = 421, + acCmdPivotShowTop10 = 424, + acCmdPivotShowTop10Percent = 429, + acCmdPivotShowTop1Percent = 426, + acCmdPivotShowTop2 = 422, + acCmdPivotShowTop25 = 425, + acCmdPivotShowTop25Percent = 430, + acCmdPivotShowTop2Percent = 427, + acCmdPivotShowTop5 = 423, + acCmdPivotShowTop5Percent = 428, + acCmdPivotShowTopOther = 431, + acCmdPivotTableClearCustomOrdering = 527, + acCmdPivotTableCreateCalcField = 444, + acCmdPivotTableCreateCalcTotal = 443, + acCmdPivotTableDemote = 411, + acCmdPivotTableExpandIndicators = 451, + acCmdPivotTableExportToExcel = 405, + acCmdPivotTableFilterBySelection = 528, + acCmdPivotTableGroupItems = 530, + acCmdPivotTableHideDetails = 402, + acCmdPivotTableMoveToColumnArea = 407, + acCmdPivotTableMoveToDetailArea = 409, + acCmdPivotTableMoveToFilterArea = 408, + acCmdPivotTableMoveToRowArea = 406, + acCmdPivotTablePercentColumnTotal = 447, + acCmdPivotTablePercentGrandTotal = 450, + acCmdPivotTablePercentParentColumnItem = 449, + acCmdPivotTablePercentParentRowItem = 448, + acCmdPivotTablePercentRowTotal = 446, + acCmdPivotTablePromote = 410, + acCmdPivotTableRemove = 529, + acCmdPivotTableShowAsNormal = 445, + acCmdPivotTableShowDetails = 403, + acCmdPivotTableSubtotal = 399, + acCmdPivotTableUngroupItems = 531, + acCmdPivotTableView = 396, + acCmdPrepareDatabaseForWeb = 716, + acCmdPreviewEightPages = 249, + acCmdPreviewFourPages = 248, + acCmdPreviewOnePage = 246, + acCmdPreviewTwelvePages = 250, + acCmdPreviewTwoPages = 247, + acCmdPrimaryKey = 107, + acCmdPrint = 340, + acCmdPrintPreview = 54, + acCmdPrintRelationships = 483, + acCmdPrintSelection = 590, + acCmdProcedureDefinition = 122, + acCmdPromote = 386, + acCmdProperties = 287, + acCmdPublishDatabase = 537, + acCmdPublishDefaults = 324, + acCmdPublishFixedFormat = 591, + acCmdQueryAddToOutput = 362, + acCmdQueryGroupBy = 361, + acCmdQueryParameters = 76, + acCmdQueryTotals = 73, + acCmdQueryTypeAppend = 91, + acCmdQueryTypeCrosstab = 74, + acCmdQueryTypeDelete = 92, + acCmdQueryTypeMakeTable = 94, + acCmdQueryTypeSelect = 89, + acCmdQueryTypeSQLDataDefinition = 168, + acCmdQueryTypeSQLPassThrough = 169, + acCmdQueryTypeSQLUnion = 180, + acCmdQueryTypeUpdate = 90, + acCmdQuickInfo = 304, + acCmdQuickPrint = 278, + acCmdQuickWatch = 203, + acCmdRecordsGoToFirst = 67, + acCmdRecordsGoToLast = 68, + acCmdRecordsGoToNew = 28, + acCmdRecordsGoToNext = 65, + acCmdRecordsGoToPrevious = 66, + acCmdRecoverDesignMaster = 265, + acCmdRedo = 199, + acCmdReferences = 260, + acCmdRefresh = 18, + acCmdRefreshData = 541, + acCmdRefreshPage = 297, + acCmdRefreshSharePointList = 626, + acCmdRegisterActiveXControls = 254, + acCmdRelationships = 133, + acCmdRemove = 366, + acCmdRemoveAllFilters = 644, + acCmdRemoveAllSorts = 645, + acCmdRemoveFilterFromCurrentColumn = 643, + acCmdRemoveFilterSort = 144, + acCmdRemoveFromLayout = 582, + acCmdRemoveTable = 84, + acCmdRename = 143, + acCmdRenameColumn = 274, + acCmdRenameGroup = 492, + acCmdRepairDatabase = 6, + acCmdReplace = 29, + acCmdReportHdrFtr = 37, + acCmdReportView = 539, + acCmdReset = 124, + acCmdResolveConflicts = 266, + acCmdRestore = 514, + acCmdRowHeight = 116, + acCmdRun = 181, + acCmdRunMacro = 31, + acCmdRunOpenMacro = 338, + acCmdSave = 20, + acCmdSaveAllModules = 280, + acCmdSaveAs = 21, + acCmdSaveAsASP = 323, + acCmdSaveAsDataAccessPage = 389, + acCmdSaveAsHTML = 321, + acCmdSaveAsIDC = 322, + acCmdSaveAsOutlookContact = 584, + acCmdSaveAsQuery = 96, + acCmdSaveAsReport = 142, + acCmdSaveAsTemplate = 686, + acCmdSaveDatabaseAsNewTemplatePart = 687, + acCmdSavedExports = 555, + acCmdSavedImports = 543, + acCmdSaveLayout = 145, + acCmdSaveModuleAsText = 119, + acCmdSaveRecord = 97, + acCmdSaveSelectionAsNewDataType = 688, + acCmdSelectAll = 333, + acCmdSelectAllRecords = 109, + acCmdSelectDataAccessPage = 347, + acCmdSelectEntireColumn = 571, + acCmdSelectEntireLayout = 715, + acCmdSelectEntireRow = 570, + acCmdSelectForm = 40, + acCmdSelectRecord = 50, + acCmdSelectReport = 319, + acCmdSend = 173, + acCmdSendToBack = 53, + acCmdServerFilterByForm = 507, + acCmdServerProperties = 496, + acCmdSetCaption = 637, + acCmdSetControlDefaults = 56, + acCmdSetDatabasePassword = 275, + acCmdSetNextStatement = 129, + acCmdShareOnSharePoint = 542, + acCmdSharePointSiteRecycleBin = 641, + acCmdShowAllRelationships = 149, + acCmdShowColumnHistory = 620, + acCmdShowDatePicker = 636, + acCmdShowDirectRelationships = 148, + acCmdShowEnvelope = 533, + acCmdShowLogicCatalog = 685, + acCmdShowMembers = 302, + acCmdShowMessageBar = 676, + acCmdShowNextStatement = 130, + acCmdShowOnlyWebToolbar = 300, + acCmdShowTable = 185, + acCmdSingleStep = 88, + acCmdSizeToFit = 59, + acCmdSizeToFitForm = 69, + acCmdSizeToGrid = 48, + acCmdSizeToNarrowest = 155, + acCmdSizeToWidest = 156, + acCmdSnapToGrid = 62, + acCmdSortAscending = 163, + acCmdSortDescending = 164, + acCmdSortingAndGrouping = 51, + acCmdSpeech = 511, + acCmdSpelling = 269, + acCmdSQLView = 184, + acCmdStackedLayout = 568, + acCmdStartNewWorkflow = 675, + acCmdStartupProperties = 224, + acCmdStepInto = 342, + acCmdStepOut = 311, + acCmdStepOver = 128, + acCmdStepToCursor = 204, + acCmdStopLoadingPage = 296, + acCmdSubdatasheetCollapseAll = 505, + acCmdSubdatasheetExpandAll = 504, + acCmdSubdatasheetRemove = 506, + acCmdSubformDatasheet = 108, + acCmdSubformDatasheetView = 463, + acCmdSubformFormView = 462, + acCmdSubformInNewWindow = 495, + acCmdSubformPivotChartView = 465, + acCmdSubformPivotTableView = 464, + acCmdSwitchboardManager = 521, + acCmdSynchronize = 638, + acCmdSynchronizeNow = 264, + acCmdSyncWebApplication = 699, + acCmdTabControlPageOrder = 330, + acCmdTableAddTable = 498, + acCmdTableCustomView = 497, + acCmdTableNames = 75, + acCmdTabOrder = 41, + acCmdTabularLayout = 569, + acCmdTestValidationRules = 196, + acCmdTileHorizontally = 286, + acCmdTileVertically = 23, + acCmdToggleBreakpoint = 131, + acCmdToggleCacheListData = 642, + acCmdToggleFilter = 220, + acCmdToggleOffline = 540, + acCmdToolbarControlProperties = 301, + acCmdToolbarsCustomize = 165, + acCmdTransferSQLDatabase = 515, + acCmdTransparentBackground = 288, + acCmdTransparentBorder = 289, + acCmdUndo = 292, + acCmdUnfreezeAllColumns = 106, + acCmdUngroupControls = 485, + acCmdUnhideColumns = 80, + acCmdUpsizingWizard = 522, + acCmdUserAndGroupAccounts = 104, + acCmdUserAndGroupPermissions = 103, + acCmdUserLevelSecurityWizard = 276, + acCmdVerticalSpacingDecrease = 161, + acCmdVerticalSpacingIncrease = 162, + acCmdVerticalSpacingMakeEqual = 160, + acCmdViewCode = 170, + acCmdViewDataAccessPages = 349, + acCmdViewDetails = 210, + acCmdViewDiagrams = 354, + acCmdViewFieldList = 353, + acCmdViewForms = 112, + acCmdViewFunctions = 395, + acCmdViewGrid = 63, + acCmdViewLargeIcons = 209, + acCmdViewList = 212, + acCmdViewMacros = 114, + acCmdViewModules = 115, + acCmdViewObjectDependencies = 536, + acCmdViewQueries = 111, + acCmdViewReports = 113, + acCmdViewRuler = 61, + acCmdViewShowPaneDiagram = 358, + acCmdViewShowPaneGrid = 359, + acCmdViewShowPaneSQL = 357, + acCmdViewSmallIcons = 211, + acCmdViewStoredProcedures = 355, + acCmdViewTableColumnNames = 363, + acCmdViewTableColumnProperties = 368, + acCmdViewTableKeys = 369, + acCmdViewTableNameOnly = 364, + acCmdViewTables = 110, + acCmdViewTableUserView = 370, + acCmdViewToolbox = 85, + acCmdViewVerifySQL = 360, + acCmdViewViews = 356, + acCmdVisualBasicEditor = 525, + acCmdWebPagePreview = 466, + acCmdWebPageProperties = 486, + acCmdWebTheme = 473, + acCmdWindowArrangeIcons = 24, + acCmdWindowCascade = 22, + acCmdWindowHide = 2, + acCmdWindowSplit = 121, + acCmdWindowUnhide = 1, + acCmdWordMailMerge = 195, + acCmdWorkflowTasks = 674, + acCmdWorkgroupAdministrator = 391, + acCmdZoom10 = 244, + acCmdZoom100 = 240, + acCmdZoom1000 = 482, + acCmdZoom150 = 239, + acCmdZoom200 = 238, + acCmdZoom25 = 243, + acCmdZoom50 = 242, + acCmdZoom500 = 481, + acCmdZoom75 = 241, + acCmdZoomBox = 179, + acCmdZoomSelection = 371, + } + + const enum AcControlType { + acAttachment = 126, + acBoundObjectFrame = 108, + acCheckBox = 106, + acComboBox = 111, + acCommandButton = 104, + acCustomControl = 119, + acEmptyCell = 127, + acImage = 103, + acLabel = 100, + acLine = 102, + acListBox = 110, + acNavigationButton = 130, + acNavigationControl = 129, + acObjectFrame = 114, + acOptionButton = 105, + acOptionGroup = 107, + acPage = 124, + acPageBreak = 118, + acRectangle = 101, + acSubform = 112, + acTabCtl = 123, + acTextBox = 109, + acToggleButton = 122, + acWebBrowser = 128, + } + + const enum AcCurrentView { + acCurViewDatasheet = 2, + acCurViewDesign = 0, + acCurViewFormBrowse = 1, + acCurViewLayout = 7, + acCurViewPivotChart = 4, + acCurViewPivotTable = 3, + acCurViewPreview = 5, + acCurViewReportBrowse = 6, + } + + const enum AcCursorOnHover { + acCursorOnHoverDefault = 0, + acCursorOnHoverHyperlinkHand = 1, + } + + const enum AcDataAccessPageView { + acDataAccessPageBrowse = 0, + acDataAccessPageDesign = 1, + } + + const enum AcDataObjectType { + acActiveDataObject = -1, + acDataForm = 2, + acDataFunction = 10, + acDataQuery = 1, + acDataReport = 3, + acDataServerView = 7, + acDataStoredProcedure = 9, + acDataTable = 0, + } + + const enum AcDataTransferType { + acExport = 1, + acImport = 0, + acLink = 2, + } + + const enum AcDefReportView { + acDefViewPreview = 0, + acDefViewReportBrowse = 1, + } + + const enum AcDefView { + acDefViewContinuous = 1, + acDefViewDatasheet = 2, + acDefViewPivotChart = 4, + acDefViewPivotTable = 3, + acDefViewSingle = 0, + acDefViewSplitForm = 5, + } + + const enum AcDisplayAs { + acDisplayAsIcon = 1, + acDisplayAsImageIcon = 0, + acDisplayAsPaperclip = 2, + } + + const enum AcDisplayAsHyperlink { + acDisplayAsHyperlinkAlways = 1, + acDisplayAsHyperlinkIfHyperlink = 0, + acDisplayAsHyperlinkOnScreenOnly = 2, + } + + const enum AcExportQuality { + acExportQualityPrint = 0, + acExportQualityScreen = 1, + } + + const enum AcExportXMLEncoding { + acUTF16 = 1, + acUTF8 = 0, + } + + const enum AcExportXMLObjectType { + acExportForm = 2, + acExportFunction = 10, + acExportQuery = 1, + acExportReport = 3, + acExportServerView = 7, + acExportStoredProcedure = 9, + acExportTable = 0, + } + + const enum AcExportXMLOtherFlags { + acEmbedSchema = 1, + acExcludePrimaryKeyAndIndexes = 2, + acExportAllTableAndFieldProperties = 32, + acLiveReportSource = 8, + acPersistReportML = 16, + acRunFromServer = 4, + } + + const enum AcExportXMLSchemaFormat { + acSchemaNone = 0, + acSchemaXSD = 1, + } + + const enum AcFileFormat { + acFileFormatAccess2 = 2, + acFileFormatAccess2000 = 9, + acFileFormatAccess2002 = 10, + acFileFormatAccess2007 = 12, + acFileFormatAccess95 = 7, + acFileFormatAccess97 = 8, + } + + const enum AcFilterType { + acFilterNormal = 0, + acServerFilter = 1, + } + + const enum AcFindField { + acAll = 0, + acCurrent = -1, + } + + const enum AcFindMatch { + acAnywhere = 0, + acEntire = 1, + acStart = 2, + } + + const enum AcFormatBarLimits { + acAutomatic = 0, + acNumber = 1, + acPercent = 2, + } + + const enum AcFormatConditionOperator { + acBetween = 0, + acEqual = 2, + acGreaterThan = 4, + acGreaterThanOrEqual = 6, + acLessThan = 5, + acLessThanOrEqual = 7, + acNotBetween = 1, + acNotEqual = 3, + } + + const enum AcFormatConditionType { + acDataBar = 3, + acExpression = 1, + acFieldHasFocus = 2, + acFieldValue = 0, + } + + const enum AcFormOpenDataMode { + acFormAdd = 0, + acFormEdit = 1, + acFormPropertySettings = -1, + acFormReadOnly = 2, + } + + const enum AcFormView { + acDesign = 1, + acFormDS = 3, + acFormPivotChart = 5, + acFormPivotTable = 4, + acLayout = 6, + acNormal = 0, + acPreview = 2, + } + + const enum AcHorizontalAnchor { + acHorizontalAnchorBoth = 2, + acHorizontalAnchorLeft = 0, + acHorizontalAnchorRight = 1, + } + + const enum AcHyperlinkPart { + acAddress = 2, + acDisplayedValue = 0, + acDisplayText = 1, + acFullAddress = 5, + acScreenTip = 4, + acSubAddress = 3, + } + + const enum AcImeMode { + acImeModeAlpha = 8, + acImeModeAlphaFull = 7, + acImeModeDisable = 3, + acImeModeHangul = 10, + acImeModeHangulFull = 9, + acImeModeHiragana = 4, + acImeModeKatakana = 5, + acImeModeKatakanaHalf = 6, + acImeModeNoControl = 0, + acImeModeOff = 2, + acImeModeOn = 1, + } + + const enum AcImeSentenceMode { + acImeSentenceModeConversation = 2, + acImeSentenceModeNone = 3, + acImeSentenceModePhrasePredict = 0, + acImeSentenceModePluralClause = 1, + } + + const enum AcImportXMLOption { + acAppendData = 2, + acStructureAndData = 1, + acStructureOnly = 0, + } + + const enum AcLayoutType { + acLayoutNone = 0, + acLayoutStacked = 2, + acLayoutTabular = 1, + } + + const enum AcModuleType { + acClassModule = 1, + acStandardModule = 0, + } + + const enum AcNavigationSpan { + acHorizontal = 0, + acVertical = 1, + } + + const enum AcNewDatabaseFormat { + acNewDatabaseFormatAccess2000 = 9, + acNewDatabaseFormatAccess2002 = 10, + acNewDatabaseFormatAccess2007 = 12, + acNewDatabaseFormatUserDefault = 0, + } + + const enum AcObjectType { + acDataAccessPage = 6, + acDatabaseProperties = 11, + acDefault = -1, + acDiagram = 8, + acForm = 2, + acFunction = 10, + acMacro = 4, + acModule = 5, + acQuery = 1, + acReport = 3, + acServerView = 7, + acStoredProcedure = 9, + acTable = 0, + acTableDataMacro = 12, + } + + const enum AcOpenDataMode { + acAdd = 0, + acEdit = 1, + acReadOnly = 2, + } + + const enum AcOutputObjectType { + acOutputDataAccessPage = 6, + acOutputForm = 2, + acOutputFunction = 10, + acOutputModule = 5, + acOutputQuery = 1, + acOutputReport = 3, + acOutputServerView = 7, + acOutputStoredProcedure = 9, + acOutputTable = 0, + } + + const enum AcPictureCaptionArrangement { + acBottom = 3, + acGeneral = 1, + acLeft = 4, + acNoPictureCaption = 0, + acRight = 5, + acTop = 2, + } + + const enum AcPrintColor { + acPRCMColor = 2, + acPRCMMonochrome = 1, + } + + const enum AcPrintDuplex { + acPRDPHorizontal = 2, + acPRDPSimplex = 1, + acPRDPVertical = 3, + } + + const enum AcPrintItemLayout { + acPRHorizontalColumnLayout = 1953, + acPRVerticalColumnLayout = 1954, + } + + const enum AcPrintObjQuality { + acPRPQDraft = -1, + acPRPQHigh = -4, + acPRPQLow = -2, + acPRPQMedium = -3, + } + + const enum AcPrintOrientation { + acPRORLandscape = 2, + acPRORPortrait = 1, + } + + const enum AcPrintPaperBin { + acPRBNAuto = 7, + acPRBNCassette = 14, + acPRBNEnvelope = 5, + acPRBNEnvManual = 6, + acPRBNFormSource = 15, + acPRBNLargeCapacity = 11, + acPRBNLargeFmt = 10, + acPRBNLower = 2, + acPRBNManual = 4, + acPRBNMiddle = 3, + acPRBNSmallFmt = 9, + acPRBNTractor = 8, + acPRBNUpper = 1, + } + + const enum AcPrintPaperSize { + acPRPS10x14 = 16, + acPRPS11x17 = 17, + acPRPSA3 = 8, + acPRPSA4 = 9, + acPRPSA4Small = 10, + acPRPSA5 = 11, + acPRPSB4 = 12, + acPRPSB5 = 13, + acPRPSCSheet = 24, + acPRPSDSheet = 25, + acPRPSEnv10 = 20, + acPRPSEnv11 = 21, + acPRPSEnv12 = 22, + acPRPSEnv14 = 23, + acPRPSEnv9 = 19, + acPRPSEnvB4 = 33, + acPRPSEnvB5 = 34, + acPRPSEnvB6 = 35, + acPRPSEnvC3 = 29, + acPRPSEnvC4 = 30, + acPRPSEnvC5 = 28, + acPRPSEnvC6 = 31, + acPRPSEnvC65 = 32, + acPRPSEnvDL = 27, + acPRPSEnvItaly = 36, + acPRPSEnvMonarch = 37, + acPRPSEnvPersonal = 38, + acPRPSESheet = 26, + acPRPSExecutive = 7, + acPRPSFanfoldLglGerman = 41, + acPRPSFanfoldStdGerman = 40, + acPRPSFanfoldUS = 39, + acPRPSFolio = 14, + acPRPSLedger = 4, + acPRPSLegal = 5, + acPRPSLetter = 1, + acPRPSLetterSmall = 2, + acPRPSNote = 18, + acPRPSQuarto = 15, + acPRPSStatement = 6, + acPRPSTabloid = 3, + acPRPSUser = 256, + } + + const enum AcPrintQuality { + acDraft = 3, + acHigh = 0, + acLow = 2, + acMedium = 1, + } + + const enum AcPrintRange { + acPages = 2, + acPrintAll = 0, + acSelection = 1, + } + + const enum AcProjectType { + acADP = 1, + acMDB = 2, + acNull = 0, + } + + const enum AcProperty { + acPropertyBackColor = 8, + acPropertyCaption = 9, + acPropertyEnabled = 0, + acPropertyForeColor = 7, + acPropertyHeight = 6, + acPropertyLeft = 3, + acPropertyLocked = 2, + acPropertyTop = 4, + acPropertyValue = 10, + acPropertyVisible = 1, + acPropertyWidth = 5, + } + + const enum AcQuitOption { + acQuitPrompt = 0, + acQuitSaveAll = 1, + acQuitSaveNone = 2, + } + + const enum AcRecord { + acFirst = 2, + acGoTo = 4, + acLast = 3, + acNewRec = 5, + acNext = 1, + acPrevious = 0, + } + + const enum AcResourceType { + acResourceImage = 1, + acResourceTheme = 0, + } + + const enum AcSearchDirection { + acDown = 1, + acSearchAll = 2, + acUp = 0, + } + + const enum AcSection { + acDetail = 0, + acFooter = 2, + acGroupLevel1Footer = 6, + acGroupLevel1Header = 5, + acGroupLevel2Footer = 8, + acGroupLevel2Header = 7, + acHeader = 1, + acPageFooter = 4, + acPageHeader = 3, + } + + const enum AcSendObjectType { + acSendDataAccessPage = 6, + acSendForm = 2, + acSendModule = 5, + acSendNoObject = -1, + acSendQuery = 1, + acSendReport = 3, + acSendTable = 0, + } + + const enum AcSeparatorCharacters { + acSeparatorCharactersComma = 3, + acSeparatorCharactersNewLine = 1, + acSeparatorCharactersSemiColon = 2, + acSeparatorCharactersSystemSeparator = 0, + } + + const enum AcSharePointListTransferType { + acImportSharePointList = 0, + acLinkSharePointList = 1, + } + + const enum AcShowToolbar { + acToolbarNo = 2, + acToolbarWhereApprop = 1, + acToolbarYes = 0, + } + + const enum AcSplitFormDatasheet { + acDatasheetAllowEdits = 0, + acDatasheetReadOnly = 1, + } + + const enum AcSplitFormOrientation { + acDatasheetOnBottom = 1, + acDatasheetOnLeft = 2, + acDatasheetOnRight = 3, + acDatasheetOnTop = 0, + } + + const enum AcSplitFormPrinting { + acFormOnly = 0, + acGridOnly = 1, + } + + const enum AcSpreadSheetType { + acSpreadsheetTypeExcel12 = 9, + acSpreadsheetTypeExcel12Xml = 10, + acSpreadsheetTypeExcel3 = 0, + acSpreadsheetTypeExcel4 = 6, + acSpreadsheetTypeExcel5 = 5, + acSpreadsheetTypeExcel7 = 5, + acSpreadsheetTypeExcel8 = 8, + acSpreadsheetTypeExcel9 = 8, + acSpreadsheetTypeExcel97 = 8, + acSpreadsheetTypeLotusWJ2 = 4, + acSpreadsheetTypeLotusWK1 = 2, + acSpreadsheetTypeLotusWK3 = 3, + acSpreadsheetTypeLotusWK4 = 7, + } + + const enum AcSysCmdAction { + acSysCmdAccessDir = 9, + acSysCmdAccessVer = 7, + acSysCmdClearHelpTopic = 11, + acSysCmdClearStatus = 5, + acSysCmdGetObjectState = 10, + acSysCmdGetWorkgroupFile = 13, + acSysCmdIniFile = 8, + acSysCmdInitMeter = 1, + acSysCmdProfile = 12, + acSysCmdRemoveMeter = 3, + acSysCmdRuntime = 6, + acSysCmdSetStatus = 4, + acSysCmdUpdateMeter = 2, + } + + const enum AcTextFormat { + acTextFormatHTMLRichText = 1, + acTextFormatPlain = 0, + } + + const enum AcTextTransferType { + acExportDelim = 2, + acExportFixed = 3, + acExportHTML = 8, + acExportMerge = 4, + acImportDelim = 0, + acImportFixed = 1, + acImportHTML = 7, + acLinkDelim = 5, + acLinkFixed = 6, + acLinkHTML = 9, + } + + const enum AcTransformXMLScriptOption { + acDisableScript = 2, + acEnableScript = 0, + acPromptScript = 1, + } + + const enum AcVerticalAnchor { + acVerticalAnchorBoth = 2, + acVerticalAnchorBottom = 1, + acVerticalAnchorTop = 0, + } + + const enum AcView { + acViewDesign = 1, + acViewLayout = 6, + acViewNormal = 0, + acViewPivotChart = 4, + acViewPivotTable = 3, + acViewPreview = 2, + acViewReport = 5, + } + + const enum AcWebBrowserScrollBars { + acScrollAuto = 0, + acScrollNo = 2, + acScrollYes = 1, + } + + const enum AcWebBrowserState { + acComplete = 4, + acInteractive = 3, + acLoaded = 2, + acLoading = 1, + acUnintialized = 0, + } + + const enum AcWebUserDisplay { + acWebUserEmail = 3, + acWebUserID = 0, + acWebUserLoginName = 2, + acWebUserName = 1, + } + + const enum AcWebUserGroupsDisplay { + acWebUserGroupID = 0, + acWebUserGroupName = 1, + } + + const enum AcWindowMode { + acDialog = 3, + acHidden = 1, + acIcon = 2, + acWindowNormal = 0, + } + + /** Predefined constants */ + const enum Constants { + acAltMask = 4, + acApplyFilter = 1, + acApplyServerFilter = 3, + acCloseFilterWindow = 2, + acCloseServerFilterWindow = 4, + acCopy = 2, + acCtrlMask = 2, + acCut = 1, + acDataErrAdded = 2, + acDataErrContinue = 0, + acDataErrDisplay = 1, + acDelete = 6, + acDeleteCancel = 1, + acDeleteOK = 0, + acDeleteUserCancel = 2, + acEditMenu = 1, + acEffectChisel = 5, + acEffectEtched = 3, + acEffectNormal = 0, + acEffectRaised = 1, + acEffectShadow = 4, + acEffectSunken = 2, + acExit = 2, + acFile = 0, + acFilterAdvanced = 1, + acFilterByForm = 0, + acFormatASP = 'Microsoft Active Server Pages (*.asp)', + acFormatDAP = 'Microsoft Access Data Access Page (*.htm; *.html)', + acFormatHTML = 'HTML (*.html)', + acFormatIIS = 'Microsoft IIS (*.htx; *.idc)', + acFormatPDF = 'PDF Format (*.pdf)', + acFormatRTF = 'Rich Text Format (*.rtf)', + acFormatSNP = 'Snapshot Format (*.snp)', + acFormatTXT = 'MS-DOS Text (*.txt)', + acFormatXLS = 'Microsoft Excel (*.xls)', + acFormatXLSB = 'Microsoft Excel Binary Workbook (*.xlsb)', + acFormatXLSX = 'Microsoft Excel Workbook (*.xlsx)', + acFormatXPS = 'XPS Format (*.xps)', + acFormBar = 0, + acGridlinesBoth = 3, + acGridlinesBothV2 = -1, + acGridlinesHoriz = 1, + acGridlinesNone = 0, + acGridlinesVert = 2, + acLBClose = 8, + acLBEnd = 9, + acLBGetColumnCount = 4, + acLBGetColumnWidth = 5, + acLBGetFormat = 7, + acLBGetRowCount = 3, + acLBGetValue = 6, + acLBInitialize = 0, + acLBOpen = 1, + acLeftButton = 1, + acMenuCheck = 3, + acMenuGray = 1, + acMenuUncheck = 2, + acMenuUngray = 0, + acMenuVer1X = 11, + acMenuVer20 = 20, + acMenuVer70 = 70, + acMiddleButton = 4, + acNew = 0, + acObject = 14, + acObjectUpdate = 3, + acObjectVerb = 0, + acObjStateDirty = 2, + acObjStateNew = 4, + acObjStateOpen = 1, + acOLEActivate = 7, + acOLEActivateDoubleClick = 2, + acOLEActivateGetFocus = 1, + acOLEActivateManual = 0, + acOLEChanged = 0, + acOLEClose = 9, + acOLEClosed = 2, + acOLECopy = 4, + acOLECreateEmbed = 0, + acOLECreateFromFile = 1, + acOLECreateLink = 1, + acOLECreateNew = 0, + acOLEDelete = 10, + acOLEDisplayContent = 0, + acOLEDisplayIcon = 1, + acOLEEither = 2, + acOLEEmbedded = 1, + acOLEFetchVerbs = 17, + acOLEInsertObjDlg = 14, + acOLELinked = 0, + acOLENone = 3, + acOLEPaste = 5, + acOLEPasteSpecialDlg = 15, + acOLERenamed = 3, + acOLESaved = 1, + acOLESizeAutoSize = 2, + acOLESizeClip = 0, + acOLESizeStretch = 1, + acOLESizeZoom = 3, + acOLEUpdate = 6, + acOLEUpdateAutomatic = 0, + acOLEUpdateFrozen = 1, + acOLEUpdateManual = 2, + acOLEVerbHide = -3, + acOLEVerbInPlaceActivate = -5, + acOLEVerbInPlaceUIActivate = -4, + acOLEVerbOpen = -2, + acOLEVerbPrimary = 0, + acOLEVerbShow = -1, + acPaste = 3, + acPrompt = 0, + acPropCatData = 2, + acPropCatEvent = 4, + acPropCatLayout = 1, + acPropCatNA = 0, + acPropCatOther = 8, + acRecordsMenu = 5, + acRefresh = 5, + acRightButton = 2, + acSave = 1, + acSaveForm = 4, + acSaveFormAs = 5, + acSaveRecord = 4, + acSecFrmRptExecute = 256, + acSecFrmRptReadDef = 4, + acSecFrmRptWriteDef = 65548, + acSecMacExecute = 8, + acSecMacReadDef = 10, + acSecMacWriteDef = 65542, + acSecModReadDef = 2, + acSecModWriteDef = 65542, + acSelectAllRecords = 9, + acSelectRecord = 8, + acServerFilterByForm = 2, + acShiftMask = 1, + acShowAllRecords = 0, + acUndo = 0, + vbKey0 = 48, + vbKey1 = 49, + vbKey2 = 50, + vbKey3 = 51, + vbKey4 = 52, + vbKey5 = 53, + vbKey6 = 54, + vbKey7 = 55, + vbKey8 = 56, + vbKey9 = 57, + vbKeyA = 65, + vbKeyAdd = 107, + vbKeyB = 66, + vbKeyBack = 8, + vbKeyC = 67, + vbKeyCancel = 3, + vbKeyCapital = 20, + vbKeyClear = 12, + vbKeyControl = 17, + vbKeyD = 68, + vbKeyDecimal = 110, + vbKeyDelete = 46, + vbKeyDivide = 111, + vbKeyDown = 40, + vbKeyE = 69, + vbKeyEnd = 35, + vbKeyEscape = 27, + vbKeyExecute = 43, + vbKeyF = 70, + vbKeyF1 = 112, + vbKeyF10 = 121, + vbKeyF11 = 122, + vbKeyF12 = 123, + vbKeyF13 = 124, + vbKeyF14 = 125, + vbKeyF15 = 126, + vbKeyF16 = 127, + vbKeyF2 = 113, + vbKeyF3 = 114, + vbKeyF4 = 115, + vbKeyF5 = 116, + vbKeyF6 = 117, + vbKeyF7 = 118, + vbKeyF8 = 119, + vbKeyF9 = 120, + vbKeyG = 71, + vbKeyH = 72, + vbKeyHelp = 47, + vbKeyHome = 36, + vbKeyI = 73, + vbKeyInsert = 45, + vbKeyJ = 74, + vbKeyK = 75, + vbKeyL = 76, + vbKeyLButton = 1, + vbKeyLeft = 37, + vbKeyM = 77, + vbKeyMButton = 4, + vbKeyMenu = 18, + vbKeyMultiply = 106, + vbKeyN = 78, + vbKeyNumlock = 144, + vbKeyNumpad0 = 96, + vbKeyNumpad1 = 97, + vbKeyNumpad2 = 98, + vbKeyNumpad3 = 99, + vbKeyNumpad4 = 100, + vbKeyNumpad5 = 101, + vbKeyNumpad6 = 102, + vbKeyNumpad7 = 103, + vbKeyNumpad8 = 104, + vbKeyNumpad9 = 105, + vbKeyO = 79, + vbKeyP = 80, + vbKeyPageDown = 34, + vbKeyPageUp = 33, + vbKeyPause = 19, + vbKeyPrint = 42, + vbKeyQ = 81, + vbKeyR = 82, + vbKeyRButton = 2, + vbKeyReturn = 13, + vbKeyRight = 39, + vbKeyS = 83, + vbKeySelect = 41, + vbKeySeparator = 108, + vbKeyShift = 16, + vbKeySnapshot = 44, + vbKeySpace = 32, + vbKeySubtract = 109, + vbKeyT = 84, + vbKeyTab = 9, + vbKeyU = 85, + vbKeyUp = 38, + vbKeyV = 86, + vbKeyW = 87, + vbKeyX = 88, + vbKeyY = 89, + vbKeyZ = 90, + } + + const enum OldConstants { + A_ADD = 0, + A_ALL = 0, + A_ANYWHERE = 0, + A_ATTACH = 2, + A_COPY = 3, + A_CURRENT = 1, + A_CUT = 2, + A_DELETE = 6, + A_DELETE_V2 = 7, + A_DESIGN = 1, + A_DIALOG = 3, + A_DOWN = 1, + A_DRAFT = 3, + A_EDIT = 1, + A_EDITMENU = 1, + A_ENTIRE = 1, + A_EXIT = 2, + A_EXPORT = 1, + A_EXPORTDELIM = 2, + A_EXPORTFIXED = 3, + A_EXPORTMERGE = 4, + A_FILE = 0, + A_FIRST = 2, + A_FORM = 2, + A_FORMATRTF = 'Rich Text Format (*.rtf)', + A_FORMATTXT = 'MS-DOS Text (*.txt)', + A_FORMATXLS = 'Microsoft Excel (*.xls)', + A_FORMBAR = 0, + A_FORMDS = 3, + A_GOTO = 4, + A_HIDDEN = 1, + A_HIGH = 0, + A_ICON = 2, + A_IMPORT = 0, + A_IMPORTDELIM = 0, + A_IMPORTFIXED = 1, + A_LAST = 3, + A_LOW = 2, + A_MACRO = 4, + A_MEDIUM = 1, + A_MENU_VER1X = 11, + A_MENU_VER20 = 20, + A_MODULE = 5, + A_NEW = 0, + A_NEWREC = 5, + A_NEXT = 1, + A_NORMAL = 0, + A_OBJECT = 14, + A_OBJECTUPDATE = 3, + A_OBJECTVERB = 0, + A_PAGES = 2, + A_PASTE = 4, + A_PREVIEW = 2, + A_PREVIOUS = 0, + A_PRINTALL = 0, + A_PROMPT = 0, + A_QUERY = 1, + A_READONLY = 2, + A_RECORDSMENU = 3, + A_REFRESH = 2, + A_REPORT = 3, + A_SAVE = 1, + A_SAVEFORM = 2, + A_SAVEFORMAS = 3, + A_SAVERECORD = 4, + A_SELECTALLRECORDS = 8, + A_SELECTALLRECORDS_V2 = 9, + A_SELECTION = 1, + A_SELECTRECORD = 7, + A_SELECTRECORD_V2 = 8, + A_START = 2, + A_TABLE = 0, + A_TOOLBAR_NO = 2, + A_TOOLBAR_WHERE_APPROP = 1, + A_TOOLBAR_YES = 0, + A_UNDO = 0, + A_UNDOFIELD = 1, + A_UP = 0, + ALT_MASK = 4, + CTRL_MASK = 2, + DATA_ERRADDED = 2, + DATA_ERRCONTINUE = 0, + DATA_ERRDISPLAY = 1, + DB_APPENDONLY = 8, + DB_ATTACHEDODBC = 536870912, + DB_ATTACHEDTABLE = 1073741824, + DB_ATTACHEXCLUSIVE = 65536, + DB_ATTACHSAVEPWD = 131072, + DB_AUTOINCRFIELD = 16, + DB_BINARY = 9, + DB_BOOLEAN = 1, + DB_BYTE = 2, + DB_CONSISTENT = 32, + DB_CURRENCY = 5, + DB_DATE = 8, + DB_DECRYPT = 4, + DB_DENYREAD = 2, + DB_DENYWRITE = 1, + DB_DESCENDING = 1, + DB_DOUBLE = 7, + DB_ENCRYPT = 2, + DB_FAILONERROR = 128, + DB_FIXEDFIELD = 1, + DB_FORWARDONLY = 256, + DB_FREELOCKS = 1, + DB_HIDDENOBJECT = 1, + DB_IGNORENULL = 8, + DB_INCONSISTENT = 16, + DB_INTEGER = 3, + DB_LANG_ARABIC = ';LANGID=0x0401;CP=1256;COUNTRY=0', + DB_LANG_CYRILLIC = ';LANGID=0x0419;CP=1251;COUNTRY=0', + DB_LANG_CZECH = ';LANGID=0x0405;CP=1250;COUNTRY=0', + DB_LANG_DUTCH = ';LANGID=0x0413;CP=1252;COUNTRY=0', + DB_LANG_GENERAL = ';LANGID=0x0409;CP=1252;COUNTRY=0', + DB_LANG_GREEK = ';LANGID=0x0408;CP=1253;COUNTRY=0', + DB_LANG_HEBREW = ';LANGID=0x040D;CP=1255;COUNTRY=0', + DB_LANG_HUNGARIAN = ';LANGID=0x040E;CP=1250;COUNTRY=0', + DB_LANG_ICELANDIC = ';LANGID=0x040F;CP=1252;COUNTRY=0', + DB_LANG_NORDIC = ';LANGID=0x041D;CP=1252;COUNTRY=0', + DB_LANG_NORWDAN = ';LANGID=0x0414;CP=1252;COUNTRY=0', + DB_LANG_POLISH = ';LANGID=0x0415;CP=1250;COUNTRY=0', + DB_LANG_SPANISH = ';LANGID=0x040A;CP=1252;COUNTRY=0', + DB_LANG_SWEDFIN = ';LANGID=0x040B;CP=1252;COUNTRY=0', + DB_LANG_TURKISH = ';LANGID=0x041F;CP=1254;COUNTRY=0', + DB_LONG = 4, + DB_LONGBINARY = 11, + DB_MEMO = 12, + DB_NONULLS = 3, + DB_OLE = 11, + DB_OPEN_DYNASET = 2, + DB_OPEN_SNAPSHOT = 4, + DB_OPEN_TABLE = 1, + DB_OPTIONINIPATH = 1, + DB_PRIMARY = 2, + DB_PROHIBITNULL = 4, + DB_QACTION = 240, + DB_QAPPEND = 64, + DB_QCROSSTAB = 16, + DB_QDDL = 96, + DB_QDELETE = 32, + DB_QMAKETABLE = 80, + DB_QSELECT = 0, + DB_QSETOPERATION = 128, + DB_QSPTBULK = 144, + DB_QSQLPASSTHROUGH = 112, + DB_QUERYDEF = 5, + DB_QUPDATE = 48, + DB_READONLY = 4, + DB_RELATIONDELETECASCADE = 4096, + DB_RELATIONDONTENFORCE = 2, + DB_RELATIONINHERITED = 4, + DB_RELATIONLEFT = 16777216, + DB_RELATIONRIGHT = 33554432, + DB_RELATIONUNIQUE = 1, + DB_RELATIONUPDATECASCADE = 256, + DB_SEC_CREATE = 1, + DB_SEC_DBCREATE = 1, + DB_SEC_DBEXCLUSIVE = 4, + DB_SEC_DBOPEN = 2, + DB_SEC_DELETE = 65536, + DB_SEC_DELETEDATA = 128, + DB_SEC_FRMRPT_EXECUTE = 256, + DB_SEC_FRMRPT_READDEF = 4, + DB_SEC_FRMRPT_WRITEDEF = 65548, + DB_SEC_FULLACCESS = 1048575, + DB_SEC_INSERTDATA = 32, + DB_SEC_MAC_EXECUTE = 8, + DB_SEC_MAC_READDEF = 10, + DB_SEC_MAC_WRITEDEF = 65542, + DB_SEC_MOD_READDEF = 2, + DB_SEC_MOD_WRITEDEF = 65542, + DB_SEC_NOACCESS = 0, + DB_SEC_READDEF = 4, + DB_SEC_READSEC = 131072, + DB_SEC_REPLACEDATA = 64, + DB_SEC_RETRIEVEDATA = 20, + DB_SEC_WRITEDEF = 65548, + DB_SEC_WRITEOWNER = 524288, + DB_SEC_WRITESEC = 262144, + DB_SINGLE = 6, + DB_SORTARABIC = 267, + DB_SORTCYRILLIC = 263, + DB_SORTCZECH = 264, + DB_SORTDUTCH = 259, + DB_SORTGENERAL = 256, + DB_SORTGREEK = 269, + DB_SORTHEBREW = 268, + DB_SORTHUNGARIAN = 265, + DB_SORTICELANDIC = 262, + DB_SORTNORWDAN = 261, + DB_SORTPDXINTL = 4096, + DB_SORTPDXNOR = 4098, + DB_SORTPDXSWE = 4097, + DB_SORTPOLISH = 266, + DB_SORTSPANISH = 258, + DB_SORTSWEDFIN = 260, + DB_SORTTURKISH = 270, + DB_SORTUNDEFINED = -1, + DB_SQLPASSTHROUGH = 64, + DB_SYSTEMOBJECT = -2147483646, + DB_TABLE = 1, + DB_TEXT = 10, + DB_UNIQUE = 1, + DB_UPDATABLEFIELD = 32, + DB_VARIABLEFIELD = 2, + DB_VERSION10 = 1, + DB_VERSION11 = 8, + DB_VERSION20 = 16, + DELETE_CANCEL = 1, + DELETE_OK = 0, + DELETE_USER_CANCEL = 2, + LB_CLOSE = 8, + LB_END = 9, + LB_GETCOLUMNCOUNT = 4, + LB_GETCOLUMNWIDTH = 5, + LB_GETFORMAT = 7, + LB_GETROWCOUNT = 3, + LB_GETVALUE = 6, + LB_INITIALIZE = 0, + LB_OPEN = 1, + LEFT_BUTTON = 1, + MIDDLE_BUTTON = 4, + OBJSTATE_DIRTY = 2, + OBJSTATE_NEW = 4, + OBJSTATE_OPEN = 1, + OLE_CHANGED = 0, + OLE_CLOSED = 2, + OLE_RELEASE = 5, + OLE_RENAMED = 3, + OLE_SAVED = 1, + RIGHT_BUTTON = 2, + SHIFT_MASK = 1, + SYSCMD_ACCESSDIR = 9, + SYSCMD_ACCESSVER = 7, + SYSCMD_CLEARHELPTOPIC = 11, + SYSCMD_CLEARSTATUS = 5, + SYSCMD_GETOBJECTSTATE = 10, + SYSCMD_INIFILE = 8, + SYSCMD_INITMETER = 1, + SYSCMD_REMOVEMETER = 3, + SYSCMD_RUNTIME = 6, + SYSCMD_SETSTATUS = 4, + SYSCMD_UPDATEMETER = 2, + V_CURRENCY = 6, + V_DATE = 7, + V_DOUBLE = 5, + V_EMPTY = 0, + V_INTEGER = 2, + V_LONG = 3, + V_NULL = 1, + V_SINGLE = 4, + V_STRING = 8, + } + + const enum ProcKind { + Get = 3, + Let = 1, + Proc = 0, + Set = 2, + } + + const enum RefKind { + Project = 1, + TypeLib = 0, + } + + class _AccessProperty { + private 'Access._AccessProperty_typekey': _AccessProperty; + private constructor(); + readonly Application: Application; + readonly Category: number; + readonly Inherited: boolean; + IsMemberSafe(dispid: number): boolean; + Name: string; + readonly Parent: any; + readonly Properties: DAO.Properties; + Type: number; + Value: any; + } + + class _CheckBoxInOption { + private 'Access._CheckBoxInOption_typekey': _CheckBoxInOption; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + AfterUpdate: string; + AfterUpdateMacro: string; + readonly Application: Application; + AutoLabel: boolean; + BeforeUpdate: string; + BeforeUpdateMacro: string; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + ColumnHidden: boolean; + ColumnOrder: number; + ColumnWidth: number; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + DefaultValue: string; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HideDuplicates: boolean; + HorizontalAnchor: AcHorizontalAnchor; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Locked: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + OldBorderStyle: number; + readonly OldValue: any; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OptionValue: number; + readonly Parent: any; + readonly Properties: Properties; + ReadingOrder: number; + Requery(): void; + RightPadding: number; + Section: number; + SetFocus(): void; + ShortcutMenuBar: string; + SizeToFit(): void; + SpecialEffect: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + TopPadding: number; + TripleState: boolean; + Undo(): void; + ValidationRule: string; + ValidationText: string; + Value: any; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class _ChildLabel { + private 'Access._ChildLabel_typekey': _ChildLabel; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + readonly Application: Application; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomMargin: number; + BottomPadding: number; + Caption: string; + ControlName: string; + ControlTipText: string; + ControlType: number; + DisplayWhen: number; + EventProcPrefix: string; + FontBold: number; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + ForeShade: number; + ForeThemeColorIndex: number; + ForeTint: number; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + readonly Hyperlink: Hyperlink; + HyperlinkAddress: string; + HyperlinkSubAddress: string; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftMargin: number; + LeftPadding: number; + LineSpacing: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + NumeralShapes: number; + OldBorderStyle: number; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + readonly Parent: any; + readonly Properties: Properties; + ReadingOrder: number; + RightMargin: number; + RightPadding: number; + Section: number; + ShortcutMenuBar: string; + SizeToFit(): void; + readonly SmartTags: SmartTags; + SpecialEffect: number; + Tag: string; + Target: string; + TextAlign: number; + TextFontCharSet: number; + ThemeFontIndex: number; + Top: number; + TopMargin: number; + TopPadding: number; + Vertical: boolean; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class _ControlInReportEvents { + private 'Access._ControlInReportEvents_typekey': _ControlInReportEvents; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + readonly Application: Application; + BottomPadding: number; + Column(Index: number, Row?: any): any; + readonly Controls: Children; + Dropdown(): void; + readonly Form: Form; + Goto(): void; + GridlineColor: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + HorizontalAnchor: AcHorizontalAnchor; + readonly Hyperlink: Hyperlink; + IsMemberSafe(dispid: number): boolean; + ItemData(Index: number): any; + readonly ItemsSelected: _ItemsSelected; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + LeftPadding: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + readonly Object: any; + ObjectVerbs(Index: number): string; + readonly OldValue: any; + readonly Pages: Pages; + readonly Parent: any; + readonly Properties: Properties; + readonly Report: Report; + Requery(): void; + RightPadding: number; + Selected(lRow: number): number; + SetFocus(): void; + SizeToFit(): void; + readonly SmartTags: SmartTags; + TopPadding: number; + Undo(): void; + VerticalAnchor: AcVerticalAnchor; + } + + class _CustomControlInReport { + private 'Access._CustomControlInReport_typekey': _CustomControlInReport; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + About: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + readonly Application: Application; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + Cancel: boolean; + Class: string; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + Custom: string; + Default: boolean; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + Goto(): void; + GridlineColor: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Locked: boolean; + LpOleObject: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + readonly Object: any; + ObjectPalette: any; + ObjectVerbs(Index: number): string; + ObjectVerbsCount: number; + OldBorderStyle: number; + readonly OldValue: any; + OLEClass: string; + OleData: any; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnUpdated: string; + OnUpdatedMacro: string; + readonly Parent: any; + readonly Properties: Properties; + Requery(): void; + RightPadding: number; + Section: number; + SetFocus(): void; + SizeToFit(): void; + SpecialEffect: number; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + TopPadding: number; + Value: any; + VarOleObject: any; + Verb: number; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class _ItemsSelected { + private 'Access._ItemsSelected_typekey': _ItemsSelected; + private constructor(); + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): number; + } + + class _OptionButtonInOption { + private 'Access._OptionButtonInOption_typekey': _OptionButtonInOption; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + AfterUpdate: string; + AfterUpdateMacro: string; + readonly Application: Application; + AutoLabel: boolean; + BeforeUpdate: string; + BeforeUpdateMacro: string; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + ColumnHidden: boolean; + ColumnOrder: number; + ColumnWidth: number; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + DefaultValue: string; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HideDuplicates: boolean; + HorizontalAnchor: AcHorizontalAnchor; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Locked: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + OldBorderStyle: number; + readonly OldValue: any; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OptionValue: number; + readonly Parent: any; + readonly Properties: Properties; + ReadingOrder: number; + Requery(): void; + RightPadding: number; + Section: number; + SetFocus(): void; + ShortcutMenuBar: string; + SizeToFit(): void; + SpecialEffect: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + TopPadding: number; + TripleState: boolean; + ValidationRule: string; + ValidationText: string; + Value: any; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class _PageHdrFtrInReport { + private 'Access._PageHdrFtrInReport_typekey': _PageHdrFtrInReport; + private constructor(); + _Name: string; + AlternateBackColor: number; + AlternateBackShade: number; + AlternateBackThemeColorIndex: number; + AlternateBackTint: number; + readonly Application: Application; + AutoHeight: boolean; + BackColor: number; + BackShade: number; + BackThemeColorIndex: number; + BackTint: number; + CanGrow: boolean; + CanShrink: boolean; + readonly Controls: Children; + DisplayWhen: number; + EventProcPrefix: string; + ForceNewPage: number; + HasContinued: boolean; + Height: number; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + KeepTogether: boolean; + Name: string; + NewRowOrCol: number; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnFormat: string; + OnFormatMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OnPaint: string; + OnPaintMacro: string; + OnPrint: string; + OnPrintMacro: string; + OnRetreat: string; + OnRetreatMacro: string; + readonly Parent: any; + readonly Properties: Properties; + RepeatSection: boolean; + SetTabOrder(): void; + SpecialEffect: number; + Tag: string; + Visible: boolean; + WillContinue: boolean; + } + + class _SectionInReport { + private 'Access._SectionInReport_typekey': _SectionInReport; + private constructor(); + _Name: string; + AlternateBackColor: number; + AlternateBackShade: number; + AlternateBackThemeColorIndex: number; + AlternateBackTint: number; + readonly Application: Application; + AutoHeight: boolean; + BackColor: number; + BackShade: number; + BackThemeColorIndex: number; + BackTint: number; + CanGrow: boolean; + CanShrink: boolean; + readonly Controls: Children; + DisplayWhen: number; + EventProcPrefix: string; + ForceNewPage: number; + HasContinued: boolean; + Height: number; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + KeepTogether: boolean; + Name: string; + NewRowOrCol: number; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnFormat: string; + OnFormatMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OnPaint: string; + OnPaintMacro: string; + OnPrint: string; + OnPrintMacro: string; + OnRetreat: string; + OnRetreatMacro: string; + readonly Parent: any; + readonly Properties: Properties; + RepeatSection: boolean; + SetTabOrder(): void; + SpecialEffect: number; + Tag: string; + Visible: boolean; + WillContinue: boolean; + } + + class _ToggleButtonInOption { + private 'Access._ToggleButtonInOption_typekey': _ToggleButtonInOption; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + AfterUpdate: string; + AfterUpdateMacro: string; + readonly Application: Application; + AutoLabel: boolean; + BackColor: number; + BackShade: number; + BackThemeColorIndex: number; + BackTint: number; + BeforeUpdate: string; + BeforeUpdateMacro: string; + Bevel: number; + BorderColor: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + Caption: string; + ColumnHidden: boolean; + ColumnOrder: number; + ColumnWidth: number; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + DefaultValue: string; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + FontBold: number; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + ForeShade: number; + ForeThemeColorIndex: number; + ForeTint: number; + Glow: number; + Goto(): void; + Gradient: number; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HideDuplicates: boolean; + HorizontalAnchor: AcHorizontalAnchor; + HoverColor: number; + HoverForeColor: number; + HoverForeShade: number; + HoverForeThemeColorIndex: number; + HoverForeTint: number; + HoverShade: number; + HoverThemeColorIndex: number; + HoverTint: number; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Locked: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + ObjectPalette: any; + readonly OldValue: any; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OptionValue: number; + readonly Parent: any; + Picture: string; + PictureData: any; + PictureType: number; + PressedColor: number; + PressedForeColor: number; + PressedForeShade: number; + PressedForeThemeColorIndex: number; + PressedForeTint: number; + PressedShade: number; + PressedThemeColorIndex: number; + PressedTint: number; + readonly Properties: Properties; + QuickStyle: number; + QuickStyleMask: number; + ReadingOrder: number; + Requery(): void; + RightPadding: number; + Section: number; + SetFocus(): void; + Shadow: number; + Shape: number; + ShortcutMenuBar: string; + SizeToFit(): void; + SoftEdges: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + TextFontCharSet: number; + ThemeFontIndex: number; + Top: number; + TopPadding: number; + TripleState: boolean; + Undo(): void; + UseTheme: boolean; + ValidationRule: string; + ValidationText: string; + Value: any; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class AccessField { + private 'Access.AccessField_typekey': AccessField; + private constructor(); + IsMemberSafe(dispid: number): boolean; + Value: any; + } + + class AccessObject { + private 'Access.AccessObject_typekey': AccessObject; + private constructor(); + readonly _Name: string; + readonly Attributes: number; + readonly CurrentView: AcCurrentView; + readonly DateCreated: VarDate; + readonly DateModified: VarDate; + FullName: string; + GetDependencyInfo(): DependencyInfo; + IsDependentUpon(ObjectType: AcObjectType, ObjectName: string): boolean; + readonly IsLoaded: boolean; + IsMemberSafe(dispid: number): boolean; + readonly IsWeb: boolean; + readonly Name: string; + readonly Parent: any; + readonly Properties: AccessObjectProperties; + readonly Type: AcObjectType; + } + + class AccessObjectProperties { + private 'Access.AccessObjectProperties_typekey': AccessObjectProperties; + private constructor(); + Add(PropertyName: string, Value: any): void; + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): AccessObjectProperty; + readonly Parent: any; + Remove(Item: any): void; + } + + class AccessObjectProperty { + private 'Access.AccessObjectProperty_typekey': AccessObjectProperty; + private constructor(); + readonly _Value: any; + IsMemberSafe(dispid: number): boolean; + readonly Name: string; + Value: any; + } + + class AdditionalData { + private 'Access.AdditionalData_typekey': AdditionalData; + private constructor(); + Add(var_0: string): AdditionalData; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): AdditionalData; + Name: string; + } + + class AllDataAccessPages { + private 'Access.AllDataAccessPages_typekey': AllDataAccessPages; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(var_0: any): AccessObject; + readonly Parent: any; + } + + class AllDatabaseDiagrams { + private 'Access.AllDatabaseDiagrams_typekey': AllDatabaseDiagrams; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(var_0: any): AccessObject; + readonly Parent: any; + } + + class AllForms { + private 'Access.AllForms_typekey': AllForms; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(var_0: any): AccessObject; + readonly Parent: any; + } + + class AllFunctions { + private 'Access.AllFunctions_typekey': AllFunctions; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(var_0: any): AccessObject; + readonly Parent: any; + } + + class AllMacros { + private 'Access.AllMacros_typekey': AllMacros; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(var_0: any): AccessObject; + readonly Parent: any; + } + + class AllModules { + private 'Access.AllModules_typekey': AllModules; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(var_0: any): AccessObject; + readonly Parent: any; + } + + class AllQueries { + private 'Access.AllQueries_typekey': AllQueries; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(var_0: any): AccessObject; + readonly Parent: any; + } + + class AllReports { + private 'Access.AllReports_typekey': AllReports; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(var_0: any): AccessObject; + readonly Parent: any; + } + + class AllStoredProcedures { + private 'Access.AllStoredProcedures_typekey': AllStoredProcedures; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(var_0: any): AccessObject; + readonly Parent: any; + } + + class AllTables { + private 'Access.AllTables_typekey': AllTables; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(var_0: any): AccessObject; + readonly Parent: any; + } + + class AllViews { + private 'Access.AllViews_typekey': AllViews; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(var_0: any): AccessObject; + readonly Parent: any; + } + + class Application { + private 'Access.Application_typekey': Application; + private constructor(); + AccessError(ErrorNumber: any): any; + AddAutoCorrect(ChangeFrom: string, ChangeTo: string): void; + AddToFavorites(): void; + readonly ADOConnectString: string; + readonly AnswerWizard: Office.AnswerWizard; + readonly Application: Application; + AppLoadString(id: number): any; + readonly Assistance: Office.IAssistance; + readonly Assistant: Office.Assistant; + readonly AutoCorrect: AutoCorrect; + AutomationSecurity: Office.MsoAutomationSecurity; + BeginUndoable(Hwnd: number): void; + readonly BrokenReference: boolean; + readonly Build: number; + BuildCriteria(Field: string, FieldType: number, Expression: string): string; + BuilderString(): any; + CloseCurrentDatabase(): void; + readonly CodeContextObject: any; + readonly CodeData: CodeData; + CodeDb(): DAO.Database; + readonly CodeProject: CodeProject; + ColumnHistory(TableName: string, ColumnName: string, queryString: string): string; + readonly COMAddIns: Office.COMAddIns; + readonly CommandBars: Office.CommandBars; + + /** @param boolean [LogFile=false] */ + CompactRepair(SourceFile: string, DestinationFile: string, LogFile?: boolean): boolean; + ConvertAccessProject(SourceFilename: string, DestinationFilename: string, DestinationFileFormat: AcFileFormat): void; + CreateAccessProject(filepath: string, Connect?: any): void; + CreateAdditionalData(): AdditionalData; + + /** @param Access.AcSection [Section=0] */ + CreateControl(FormName: string, ControlType: AcControlType, Section?: AcSection, Parent?: any, ColumnName?: any, Left?: any, Top?: any, Width?: any, Height?: any): Control; + CreateControlEx( + FormName: string, ControlType: AcControlType, Section: AcSection, Parent: string, ControlSource: string, Left: number, Top: number, Width: number, Height: number): Control; + CreateControlExOld( + FormName: string, ControlType: AcControlType, Section: AcSection, Parent: string, ControlSource: string, Left: number, Top: number, Width: number, Height: number): Control; + + /** @param Access.AcSection [Section=0] */ + CreateControlOld(FormName: string, ControlType: AcControlType, Section?: AcSection, Parent?: any, ColumnName?: any, Left?: any, Top?: any, Width?: any, Height?: any): Control; + + /** @param boolean [CreateNewFile=true] */ + CreateDataAccessPage(FileName: any, CreateNewFile?: boolean): DataAccessPage; + CreateForm(Database?: any, FormTemplate?: any): Form; + CreateGroupLevel(ReportName: string, Expression: string, Header: number, Footer: number): number; + + /** + * @param string [Path=' '] + * @param string [Name=' '] + * @param string [Company=' '] + * @param string [WorkgroupID=' '] + * @param boolean [Replace=false] + */ + CreateNewWorkgroupFile(Path?: string, Name?: string, Company?: string, WorkgroupID?: string, Replace?: boolean): void; + CreateReport(Database?: any, ReportTemplate?: any): Report; + + /** @param Access.AcSection [Section=0] */ + CreateReportControl(ReportName: string, ControlType: AcControlType, Section?: AcSection, Parent?: any, ColumnName?: any, Left?: any, Top?: any, Width?: any, Height?: any): Control; + CreateReportControlEx( + ReportName: string, ControlType: AcControlType, Section: AcSection, Parent: string, ControlName: string, Left: number, Top: number, Width: number, Height: number): Control; + CreateReportControlExOld( + ReportName: string, ControlType: AcControlType, Section: AcSection, Parent: string, ControlName: string, Left: number, Top: number, Width: number, Height: number): Control; + + /** @param Access.AcSection [Section=0] */ + CreateReportControlOld(ReportName: string, ControlType: AcControlType, Section?: AcSection, Parent?: any, ColumnName?: any, Left?: any, Top?: any, Width?: any, Height?: any): Control; + readonly CurrentData: CurrentData; + CurrentDb(): DAO.Database; + readonly CurrentObjectName: string; + readonly CurrentObjectType: AcObjectType; + readonly CurrentProject: CurrentProject; + CurrentUser(): string; + CurrentWebUser(DisplayOption: AcWebUserDisplay): any; + CurrentWebUserGroups(DisplayOption: AcWebUserGroupsDisplay): any; + readonly DataAccessPages: DataAccessPages; + DAvg(Expr: string, Domain: string, Criteria?: any): any; + readonly DBEngine: DAO.DBEngine; + DCount(Expr: string, Domain: string, Criteria?: any): any; + DDEExecute(ChanNum: any, Command: string): void; + DDEInitiate(Application: string, Topic: string): any; + DDEPoke(ChanNum: any, Item: string, Data: string): void; + DDERequest(ChanNum: any, Item: string): string; + DDETerminate(ChanNum: any): void; + DDETerminateAll(): void; + readonly DefaultWebOptions: DefaultWebOptions; + DefaultWorkspaceClone(): DAO.Workspace; + DelAutoCorrect(ChangeFrom: string): void; + DeleteControl(FormName: string, ControlName: string): void; + DeleteReportControl(ReportName: string, ControlName: string): void; + DFirst(Expr: string, Domain: string, Criteria?: any): any; + DirtyObject(ObjectType: AcObjectType, ObjectName: string): void; + DLast(Expr: string, Domain: string, Criteria?: any): any; + DLookup(Expr: string, Domain: string, Criteria?: any): any; + DMax(Expr: string, Domain: string, Criteria?: any): any; + DMin(Expr: string, Domain: string, Criteria?: any): any; + readonly DoCmd: DoCmd; + DStDev(Expr: string, Domain: string, Criteria?: any): any; + DStDevP(Expr: string, Domain: string, Criteria?: any): any; + DSum(Expr: string, Domain: string, Criteria?: any): any; + DVar(Expr: string, Domain: string, Criteria?: any): any; + DVarP(Expr: string, Domain: string, Criteria?: any): any; + + /** @param string [bstrStatusBarText=''] */ + Echo(EchoOn: number, bstrStatusBarText?: string): void; + EuroConvert(Number: number, SourceCurrency: string, TargetCurrency: string, FullPrecision?: any, TriangulationPrecision?: any): number; + Eval(StringExpr: string): any; + + /** + * @param boolean [SelectedRecords=false] + * @param number [FromPage=1] + * @param number [ToPage=-1] + */ + ExportCustomFixedFormat( + ExternalExporter: any, OutputFileName: string, ObjectName: string, ObjectType: AcOutputObjectType, SelectedRecords?: boolean, FromPage?: number, ToPage?: number): void; + ExportNavigationPane(Path: string): void; + + /** + * @param string [DataTarget=''] + * @param string [SchemaTarget=''] + * @param string [PresentationTarget=''] + * @param string [ImageTarget=''] + * @param Access.AcExportXMLEncoding [Encoding=0] + * @param Access.AcExportXMLOtherFlags [OtherFlags=0] + * @param string [WhereCondition=''] + */ + ExportXML( + ObjectType: AcExportXMLObjectType, DataSource: string, DataTarget?: string, SchemaTarget?: string, PresentationTarget?: string, ImageTarget?: string, + Encoding?: AcExportXMLEncoding, OtherFlags?: AcExportXMLOtherFlags, WhereCondition?: string, AdditionalData?: any): void; + + /** + * @param string [DataTarget=''] + * @param string [SchemaTarget=''] + * @param string [PresentationTarget=''] + * @param string [ImageTarget=''] + * @param Access.AcExportXMLEncoding [Encoding=0] + * @param number [OtherFlags=0] + */ + ExportXMLOld( + ObjectType: AcExportXMLObjectType, DataSource: string, DataTarget?: string, SchemaTarget?: string, PresentationTarget?: string, ImageTarget?: string, + Encoding?: AcExportXMLEncoding, OtherFlags?: number): void; + FeatureInstall: Office.MsoFeatureInstall; + FileDialog(dialogType: Office.MsoFileDialogType): Office.FileDialog; + readonly FileSearch: Office.FileSearch; + + /** + * @param string [SubAddress=''] + * @param boolean [NewWindow=false] + * @param boolean [AddHistory=true] + * @param Office.MsoExtraInfoMethod [Method=0] + * @param string [HeaderInfo=''] + */ + FollowHyperlink(Address: string, SubAddress?: string, NewWindow?: boolean, AddHistory?: boolean, ExtraInfo?: any, Method?: Office.MsoExtraInfoMethod, HeaderInfo?: string): void; + readonly Forms: Forms; + GetHiddenAttribute(ObjectType: AcObjectType, ObjectName: string): boolean; + GetOption(OptionName: string): any; + GUIDFromString(String: any): any; + HtmlEncode(PlainText: any, Length?: any): string; + hWndAccessApp(): number; + + /** @param Access.AcHyperlinkPart [Part=0] */ + HyperlinkPart(Hyperlink: any, Part?: AcHyperlinkPart): string; + + /** @param boolean [fAppendOnly=false] */ + ImportNavigationPane(Path: string, fAppendOnly?: boolean): void; + + /** @param Access.AcImportXMLOption [ImportOptions=1] */ + ImportXML(DataSource: string, ImportOptions?: AcImportXMLOption): void; + InsertText(Text: string, ModuleName: string): void; + InstantiateTemplate(Path: string): void; + IsClient(): boolean; + readonly IsCompiled: boolean; + IsCurrentWebUserInGroup(GroupNameOrID: any): boolean; + IsMemberSafe(dispid: number): boolean; + readonly LanguageSettings: Office.LanguageSettings; + LoadCustomUI(CustomUIName: string, CustomUIXML: string): void; + LoadFromAXL(ObjectType: AcObjectType, ObjectName: string, FileName: string): void; + LoadFromText(ObjectType: AcObjectType, ObjectName: string, FileName: string): void; + LoadPicture(FileName: string): any; + readonly LocalVars: LocalVars; + readonly MacroError: MacroError; + MenuBar: string; + readonly Modules: Modules; + readonly MsoDebugOptions: Office.MsoDebugOptions; + readonly Name: string; + NewAccessProject(filepath: string, Connect?: any): void; + + /** + * @param Access.AcNewDatabaseFormat [FileFormat=0] + * @param string [SiteAddress=''] + * @param string [ListID=''] + */ + NewCurrentDatabase(filepath: string, FileFormat?: AcNewDatabaseFormat, Template?: any, SiteAddress?: string, ListID?: string): void; + NewCurrentDatabaseOld(filepath: string): void; + readonly NewFileTaskPane: Office.NewFile; + Nz(Value: any, ValueIfNull?: any): any; + + /** @param boolean [Exclusive=false] */ + OpenAccessProject(filepath: string, Exclusive?: boolean): void; + + /** + * @param boolean [Exclusive=false] + * @param string [bstrPassword=''] + */ + OpenCurrentDatabase(filepath: string, Exclusive?: boolean, bstrPassword?: string): void; + + /** @param boolean [Exclusive=false] */ + OpenCurrentDatabaseOld(filepath: string, Exclusive?: boolean): void; + readonly Parent: any; + PlainText(RichText: any, Length?: any): string; + Printer: Printer; + readonly Printers: Printers; + readonly ProductCode: string; + + /** @param Access.AcQuitOption [Option=1] */ + Quit(Option?: AcQuitOption): void; + readonly References: References; + RefreshDatabaseWindow(): void; + RefreshTitleBar(): void; + ReloadAddIns(): void; + ReplaceModule(objtyp: number, ModuleName: string, FileName: string, token: number): void; + readonly Reports: Reports; + readonly ReturnVars: ReturnVars; + Run( + Procedure: string, Arg1?: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, + Arg12?: any, Arg13?: any, Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, + Arg24?: any, Arg25?: any, Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): any; + RunCommand(Command: AcCommand): void; + SaveAsAXL(ObjectType: AcObjectType, ObjectName: string, FileName: string): void; + SaveAsTemplate( + Path: string, Title: string, IconPath: string, CoreTable: string, Category: string, PreviewPath?: any, Description?: any, InstantiationForm?: any, + ApplicationPart?: any, IncludeData?: any, Variation?: any): void; + SaveAsText(ObjectType: AcObjectType, ObjectName: string, FileName: string): void; + readonly Screen: Screen; + SetDefaultWorkgroupFile(Path: string): void; + SetHiddenAttribute(ObjectType: AcObjectType, ObjectName: string, fHidden: boolean): void; + SetOption(OptionName: string, Setting: any): void; + SetUndoRecording(yesno: number): void; + ShortcutMenuBar: string; + StringFromGUID(Guid: any): any; + SysCmd(Action: AcSysCmdAction, Argument2?: any, Argument3?: any): any; + readonly TempVars: TempVars; + + /** + * @param boolean [WellFormedXMLOutput=false] + * @param Access.AcTransformXMLScriptOption [ScriptOption=1] + */ + TransformXML(DataSource: string, TransformSource: string, OutputTarget: string, WellFormedXMLOutput?: boolean, ScriptOption?: AcTransformXMLScriptOption): void; + UserControl: boolean; + readonly VBE: VBIDE.VBE; + readonly Version: string; + readonly VGXFrameInterval: any; + Visible: boolean; + readonly WebServices: WebServices; + readonly WizHook: WizHook; + } + + class Attachment { + private 'Access.Attachment_typekey': Attachment; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + AfterUpdate: string; + AfterUpdateMacro: string; + readonly Application: Application; + readonly AttachmentCount: number; + AutoLabel: boolean; + Back(): void; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BeforeUpdate: string; + BeforeUpdateMacro: string; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + ColumnHidden: boolean; + ColumnOrder: number; + ColumnWidth: number; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + CurrentAttachment: number; + DefaultPicture: string; + DefaultPictureType: number; + DisplayAs: AcDisplayAs; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + FileData(var_0?: any): any; + FileName(var_0?: any): string; + FileType(var_0?: any): string; + FileURL(var_0?: any): string; + Forward(): void; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + readonly Hyperlink: Hyperlink; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Locked: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + OldBorderStyle: number; + readonly OldValue: any; + OnAttachmentCurrent: string; + OnAttachmentCurrentMacro: string; + OnChange: string; + OnChangeMacro: string; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnDirty: string; + OnDirtyMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + readonly Parent: any; + PictureAlignment: number; + PictureDisp(var_0?: any): any; + PictureSizeMode: number; + PictureTiling: boolean; + readonly Properties: Properties; + Requery(): void; + RightPadding: number; + Section: number; + SetFocus(): void; + ShortcutMenuBar: string; + SizeToFit(): void; + SpecialEffect: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + TopPadding: number; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class AutoCorrect { + private 'Access.AutoCorrect_typekey': AutoCorrect; + private constructor(); + DisplayAutoCorrectOptions: boolean; + IsMemberSafe(dispid: number): boolean; + } + + class BoundObjectFrame { + private 'Access.BoundObjectFrame_typekey': BoundObjectFrame; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + Action: number; + AddColon: boolean; + AfterUpdate: string; + AfterUpdateMacro: string; + readonly Application: Application; + AutoActivate: number; + AutoLabel: boolean; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BeforeUpdate: string; + BeforeUpdateMacro: string; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + Class: string; + ColumnHidden: boolean; + ColumnOrder: number; + ColumnWidth: number; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + DisplayType: boolean; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Locked: boolean; + LpOleObject: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + readonly Object: any; + ObjectPalette: any; + ObjectVerbs(Index: number): string; + ObjectVerbsCount: number; + OldBorderStyle: number; + readonly OldValue: any; + OLEType: number; + OLETypeAllowed: number; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OnUpdated: string; + OnUpdatedMacro: string; + readonly Parent: any; + readonly Properties: Properties; + Requery(): void; + RightPadding: number; + Scaling: number; + Section: number; + SetFocus(): void; + ShortcutMenuBar: string; + SizeMode: number; + SizeToFit(): void; + SourceDoc: string; + SourceItem: string; + SpecialEffect: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + TopPadding: number; + UpdateOptions: number; + Value: any; + VarOleObject: any; + Verb: number; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class CheckBox { + private 'Access.CheckBox_typekey': CheckBox; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + AfterUpdate: string; + AfterUpdateMacro: string; + readonly Application: Application; + AutoLabel: boolean; + BeforeUpdate: string; + BeforeUpdateMacro: string; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + ColumnHidden: boolean; + ColumnOrder: number; + ColumnWidth: number; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + DefaultValue: string; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HideDuplicates: boolean; + HorizontalAnchor: AcHorizontalAnchor; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Locked: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + OldBorderStyle: number; + readonly OldValue: any; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OptionValue: number; + readonly Parent: any; + readonly Properties: Properties; + ReadingOrder: number; + Requery(): void; + RightPadding: number; + Section: number; + SetFocus(): void; + ShortcutMenuBar: string; + SizeToFit(): void; + SpecialEffect: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + TopPadding: number; + TripleState: boolean; + Undo(): void; + ValidationRule: string; + ValidationText: string; + Value: any; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class Children { + private 'Access.Children_typekey': Children; + private constructor(); + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): any; + } + + class Class { + private 'Access.Class_typekey': Class; + private constructor(); + } + + class CodeData { + private 'Access.CodeData_typekey': CodeData; + private constructor(); + readonly AllDatabaseDiagrams: AllDatabaseDiagrams; + readonly AllFunctions: AllFunctions; + readonly AllQueries: AllQueries; + readonly AllStoredProcedures: AllStoredProcedures; + readonly AllTables: AllTables; + readonly AllViews: AllViews; + IsMemberSafe(dispid: number): boolean; + } + + class CodeProject { + private 'Access.CodeProject_typekey': CodeProject; + private constructor(); + readonly AccessConnection: ADODB.Connection; + AddSharedImage(SharedImageName: string, FileName: string): void; + readonly AllDataAccessPages: AllDataAccessPages; + readonly AllForms: AllForms; + readonly AllMacros: AllMacros; + readonly AllModules: AllModules; + readonly AllReports: AllReports; + readonly Application: Application; + readonly BaseConnectionString: string; + CloseConnection(): void; + readonly Connection: ADODB.Connection; + readonly FileFormat: AcFileFormat; + readonly FullName: string; + readonly ImportExportSpecifications: ImportExportSpecifications; + readonly IsConnected: boolean; + IsMemberSafe(dispid: number): boolean; + readonly IsTrusted: boolean; + readonly IsWeb: boolean; + readonly Name: string; + OpenConnection(BaseConnectionString?: any, UserID?: any, Password?: any): void; + readonly Parent: any; + readonly Path: string; + readonly ProjectType: AcProjectType; + readonly Properties: AccessObjectProperties; + RemovePersonalInformation: boolean; + readonly Resources: SharedResources; + UpdateDependencyInfo(): void; + readonly WebSite: string; + } + + class ComboBox { + private 'Access.ComboBox_typekey': ComboBox; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + AddItem(Item: string, Index?: any): void; + AfterUpdate: string; + AfterUpdateMacro: string; + AllowAutoCorrect: boolean; + AllowedText: number; + AllowValueListEdits: boolean; + readonly Application: Application; + AutoExpand: boolean; + AutoLabel: boolean; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BeforeUpdate: string; + BeforeUpdateMacro: string; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomMargin: number; + BottomPadding: number; + BoundColumn: number; + CanGrow: boolean; + CanShrink: boolean; + Coltyp: number; + Column(Index: number, Row?: any): any; + ColumnCount: number; + ColumnHeads: boolean; + ColumnHidden: boolean; + ColumnOrder: number; + ColumnWidth: number; + ColumnWidths: string; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + DecimalPlaces: number; + DefaultValue: string; + DisplayAsHyperlink: AcDisplayAsHyperlink; + DisplayWhen: number; + Dropdown(): void; + Enabled: boolean; + EventProcPrefix: string; + FontBold: number; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + ForeShade: number; + ForeThemeColorIndex: number; + ForeTint: number; + Format: string; + readonly FormatConditions: FormatConditions; + FormatPictureText: string; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HideDuplicates: boolean; + HorizontalAnchor: AcHorizontalAnchor; + readonly Hyperlink: Hyperlink; + IMEHold: boolean; + IMEMode: AcImeMode; + IMESentenceMode: AcImeSentenceMode; + InheritValueList: boolean; + InputMask: string; + InSelection: boolean; + IsHyperlink: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + ItemData(Index: number): any; + readonly ItemsSelected: _ItemsSelected; + KeyboardLanguage: number; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftMargin: number; + LeftPadding: number; + LimitToList: boolean; + ListCount: number; + ListIndex: number; + ListItemsEditForm: string; + ListRows: number; + ListWidth: string; + Locked: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + NumeralShapes: number; + OldBorderStyle: number; + readonly OldValue: any; + OnChange: string; + OnChangeMacro: string; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnDirty: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OnNotInList: string; + OnNotInListMacro: string; + OnUndo: string; + readonly Parent: any; + readonly Properties: Properties; + ReadingOrder: number; + Recordset: any; + RemoveItem(Index: any): void; + Requery(): void; + RightMargin: number; + RightPadding: number; + RowSource: string; + RowSourceType: string; + ScrollBarAlign: number; + Section: number; + Selected(lRow: number): number; + SelLength: number; + SelStart: number; + SelText: string; + SeparatorCharacters: AcSeparatorCharacters; + SetFocus(): void; + ShortcutMenuBar: string; + ShowOnlyRowSourceValues: boolean; + SizeToFit(): void; + readonly SmartTags: SmartTags; + SpecialEffect: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Target: string; + Text: string; + TextAlign: number; + TextAlignGeneral: number; + TextFontCharSet: number; + ThemeFontIndex: number; + Top: number; + TopMargin: number; + TopPadding: number; + Undo(): void; + ValidationRule: string; + ValidationText: string; + Value: any; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class CommandButton { + private 'Access.CommandButton_typekey': CommandButton; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + AfterUpdateMacro: string; + Alignment: number; + readonly Application: Application; + AutoLabel: boolean; + AutoRepeat: boolean; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BeforeUpdateMacro: string; + Bevel: number; + BorderColor: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + Cancel: boolean; + Caption: string; + ControlName: string; + readonly Controls: Children; + ControlTipText: string; + ControlType: number; + CursorOnHover: AcCursorOnHover; + Default: boolean; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + FontBold: number; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + ForeShade: number; + ForeThemeColorIndex: number; + ForeTint: number; + Glow: number; + Goto(): void; + Gradient: number; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + HoverColor: number; + HoverForeColor: number; + HoverForeShade: number; + HoverForeThemeColorIndex: number; + HoverForeTint: number; + HoverShade: number; + HoverThemeColorIndex: number; + HoverTint: number; + readonly Hyperlink: Hyperlink; + HyperlinkAddress: string; + HyperlinkSubAddress: string; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + ObjectPalette: any; + readonly OldValue: any; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OnPush: string; + readonly Parent: any; + Picture: string; + PictureCaptionArrangement: AcPictureCaptionArrangement; + PictureData: any; + PictureType: number; + PressedColor: number; + PressedForeColor: number; + PressedForeShade: number; + PressedForeThemeColorIndex: number; + PressedForeTint: number; + PressedShade: number; + PressedThemeColorIndex: number; + PressedTint: number; + readonly Properties: Properties; + QuickStyle: number; + QuickStyleMask: number; + ReadingOrder: number; + Requery(): void; + RightPadding: number; + Section: number; + SetFocus(): void; + Shadow: number; + Shape: number; + ShortcutMenuBar: string; + SizeToFit(): void; + SoftEdges: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Target: string; + TextFontCharSet: number; + ThemeFontIndex: number; + Top: number; + TopPadding: number; + Transparent: boolean; + UseTheme: boolean; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class Control { + private 'Access.Control_typekey': Control; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + readonly Application: Application; + BottomPadding: number; + Column(Index: number, Row?: any): any; + readonly Controls: Children; + Dropdown(): void; + readonly Form: Form; + Goto(): void; + GridlineColor: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + HorizontalAnchor: AcHorizontalAnchor; + readonly Hyperlink: Hyperlink; + IsMemberSafe(dispid: number): boolean; + ItemData(Index: number): any; + readonly ItemsSelected: _ItemsSelected; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + LeftPadding: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + readonly Object: any; + ObjectVerbs(Index: number): string; + readonly OldValue: any; + readonly Pages: Pages; + readonly Parent: any; + readonly Properties: Properties; + readonly Report: Report; + Requery(): void; + RightPadding: number; + Selected(lRow: number): number; + SetFocus(): void; + SizeToFit(): void; + readonly SmartTags: SmartTags; + TopPadding: number; + Undo(): void; + VerticalAnchor: AcVerticalAnchor; + } + + class Controls { + private 'Access.Controls_typekey': Controls; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + // tslint:disable-next-line:no-unnecessary-generics + Item(index: number | string): T; + Item(Index: number | string): Control; + readonly Parent: any; + } + + class CurrentData { + private 'Access.CurrentData_typekey': CurrentData; + private constructor(); + readonly AllDatabaseDiagrams: AllDatabaseDiagrams; + readonly AllFunctions: AllFunctions; + readonly AllQueries: AllQueries; + readonly AllStoredProcedures: AllStoredProcedures; + readonly AllTables: AllTables; + readonly AllViews: AllViews; + IsMemberSafe(dispid: number): boolean; + } + + class CurrentProject { + private 'Access.CurrentProject_typekey': CurrentProject; + private constructor(); + readonly AccessConnection: ADODB.Connection; + AddSharedImage(SharedImageName: string, FileName: string): void; + readonly AllDataAccessPages: AllDataAccessPages; + readonly AllForms: AllForms; + readonly AllMacros: AllMacros; + readonly AllModules: AllModules; + readonly AllReports: AllReports; + readonly Application: Application; + readonly BaseConnectionString: string; + CloseConnection(): void; + readonly Connection: ADODB.Connection; + readonly FileFormat: AcFileFormat; + readonly FullName: string; + readonly ImportExportSpecifications: ImportExportSpecifications; + readonly IsConnected: boolean; + IsMemberSafe(dispid: number): boolean; + readonly IsTrusted: boolean; + readonly IsWeb: boolean; + readonly Name: string; + OpenConnection(BaseConnectionString?: any, UserID?: any, Password?: any): void; + readonly Parent: any; + readonly Path: string; + readonly ProjectType: AcProjectType; + readonly Properties: AccessObjectProperties; + RemovePersonalInformation: boolean; + readonly Resources: SharedResources; + UpdateDependencyInfo(): void; + readonly WebSite: string; + } + + class CustomControl { + private 'Access.CustomControl_typekey': CustomControl; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + About: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + readonly Application: Application; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + Cancel: boolean; + Class: string; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + Custom: string; + Default: boolean; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + Goto(): void; + GridlineColor: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Locked: boolean; + LpOleObject: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + readonly Object: any; + ObjectPalette: any; + ObjectVerbs(Index: number): string; + ObjectVerbsCount: number; + OldBorderStyle: number; + readonly OldValue: any; + OLEClass: string; + OleData: any; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnUpdated: string; + OnUpdatedMacro: string; + readonly Parent: any; + readonly Properties: Properties; + Requery(): void; + RightPadding: number; + Section: number; + SetFocus(): void; + SizeToFit(): void; + SpecialEffect: number; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + TopPadding: number; + Value: any; + VarOleObject: any; + Verb: number; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class DataAccessPage { + private 'Access.DataAccessPage_typekey': DataAccessPage; + private constructor(); + readonly _Name: string; + readonly Application: Application; + ApplyTheme(ThemeName: string): void; + ConnectionString: string; + readonly CurrentSelection: any; + readonly CurrentView: number; + readonly Document: any; + readonly FieldListConnection: any; + IsMemberSafe(dispid: number): boolean; + readonly MailEnvelope: Office.MsoEnvelope; + readonly MSODSC: any; + readonly Name: string; + readonly Parent: any; + RemovePersonalInformation: boolean; + Tag: string; + Visible: boolean; + readonly WebOptions: WebOptions; + readonly WindowHeight: number; + readonly WindowWidth: number; + } + + class DataAccessPages { + private 'Access.DataAccessPages_typekey': DataAccessPages; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(var_0: any): DataAccessPage; + readonly Parent: any; + } + + class DefaultWebOptions { + private 'Access.DefaultWebOptions_typekey': DefaultWebOptions; + private constructor(); + AlwaysSaveInDefaultEncoding: boolean; + readonly Application: Application; + CheckIfOfficeIsHTMLEditor: boolean; + DownloadComponents: boolean; + Encoding: Office.MsoEncoding; + readonly FolderSuffix: string; + FollowedHyperlinkColor: AcColorIndex; + HyperlinkColor: AcColorIndex; + IsMemberSafe(dispid: number): boolean; + LocationOfComponents: string; + OrganizeInFolder: boolean; + readonly Parent: any; + TargetBrowser: Office.MsoTargetBrowser; + UnderlineHyperlinks: boolean; + UseLongFileNames: boolean; + } + + class DependencyInfo { + private 'Access.DependencyInfo_typekey': DependencyInfo; + private constructor(); + readonly Dependants: DependencyObjects; + readonly Dependencies: DependencyObjects; + readonly InsufficientPermissions: DependencyObjects; + IsMemberSafe(dispid: number): boolean; + readonly OutOfDateObjects: DependencyObjects; + readonly Parent: any; + readonly UnsupportedObjects: DependencyObjects; + } + + class DependencyObjects { + private 'Access.DependencyObjects_typekey': DependencyObjects; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): AccessObject; + readonly Parent: any; + } + + class DoCmd { + private 'Access.DoCmd_typekey': DoCmd; + private constructor(); + AddMenu(MenuName: any, MenuMacroName: any, StatusBarText?: any): void; + ApplyFilter(FilterName?: any, WhereCondition?: any, ControlName?: any): void; + ApplyFilterOld0(FilterName?: any, WhereCondition?: any): void; + Beep(): void; + + /** @param Access.AcFormOpenDataMode [DataMode=1] */ + BrowseTo(ObjectType: AcBrowseToObjectType, ObjectName: any, PathtoSubformControl: any, WhereCondition: any, Page: any, DataMode?: AcFormOpenDataMode): void; + CancelEvent(): void; + ClearMacroError(): void; + + /** + * @param Access.AcObjectType [ObjectType=-1] + * @param Access.AcCloseSave [Save=0] + */ + Close(ObjectType: AcObjectType, ObjectName: any, Save?: AcCloseSave): void; + Close(): void; + CloseDatabase(): void; + CopyDatabaseFile(DatabaseFileName: any, OverwriteExistingFile?: any, DisconnectAllUsers?: any): void; + + /** @param Access.AcObjectType [SourceObjectType=-1] */ + CopyObject(DestinationDatabase: any, NewName: any, SourceObjectType?: AcObjectType, SourceObjectName?: any): void; + + /** @param Access.AcObjectType [ObjectType=-1] */ + DeleteObject(ObjectType?: AcObjectType, ObjectName?: any): void; + DoMenuItem(MenuBar: any, MenuName: any, Command: any, Subcommand?: any, Version?: any): void; + Echo(EchoOn: any, StatusBarText?: any): void; + FindNext(): void; + + /** + * @param Access.AcFindMatch [Match=1] + * @param Access.AcSearchDirection [Search=2] + * @param Access.AcFindField [OnlyCurrentField=-1] + */ + FindRecord(FindWhat: any, Match?: AcFindMatch, MatchCase?: any, Search?: AcSearchDirection, SearchAsFormatted?: any, OnlyCurrentField?: AcFindField, FindFirst?: any): void; + GoToControl(ControlName: any): void; + GoToPage(PageNumber: any, Right?: any, Down?: any): void; + + /** + * @param Access.AcDataObjectType [ObjectType=-1] + * @param Access.AcRecord [Record=1] + */ + GoToRecord(ObjectType?: AcDataObjectType, ObjectName?: any, Record?: AcRecord, Offset?: any): void; + Hourglass(HourglassOn: any): void; + LockNavigationPane(Lock: any): void; + Maximize(): void; + Minimize(): void; + MoveSize(Right?: any, Down?: any, Width?: any, Height?: any): void; + NavigateTo(Category?: any, Group?: any): void; + + /** @param Access.AcDataAccessPageView [View=0] */ + OpenDataAccessPage(DataAccessPageName: any, View?: AcDataAccessPageView): void; + OpenDiagram(DiagramName: any): void; + + /** + * @param Access.AcFormView [View=0] + * @param Access.AcFormOpenDataMode [DataMode=-1] + * @param Access.AcWindowMode [WindowMode=0] + */ + OpenForm(FormName: any, View?: AcFormView, FilterName?: string, WhereCondition?: string, DataMode?: AcFormOpenDataMode, WindowMode?: AcWindowMode, OpenArgs?: string): void; + + /** + * @param Access.AcView [View=0] + * @param Access.AcOpenDataMode [DataMode=1] + */ + OpenFunction(FunctionName: any, View?: AcView, DataMode?: AcOpenDataMode): void; + OpenModule(ModuleName?: any, ProcedureName?: any): void; + + /** + * @param Access.AcView [View=0] + * @param Access.AcOpenDataMode [DataMode=1] + */ + OpenQuery(QueryName: any, View?: AcView, DataMode?: AcOpenDataMode): void; + + /** + * @param Access.AcView [View=0] + * @param Access.AcWindowMode [WindowMode=0] + */ + OpenReport(ReportName: any, View?: AcView, FilterName?: string, WhereCondition?: string, WindowMode?: AcWindowMode, OpenArgs?: string): void; + + /** @param Access.AcView [View=0] */ + OpenReportOld0(ReportName: any, View?: AcView, FilterName?: any, WhereCondition?: any): void; + + /** + * @param Access.AcView [View=0] + * @param Access.AcOpenDataMode [DataMode=1] + */ + OpenStoredProcedure(ProcedureName: any, View?: AcView, DataMode?: AcOpenDataMode): void; + + /** + * @param Access.AcView [View=0] + * @param Access.AcOpenDataMode [DataMode=1] + */ + OpenTable(TableName: any, View?: AcView, DataMode?: AcOpenDataMode): void; + + /** + * @param Access.AcView [View=0] + * @param Access.AcOpenDataMode [DataMode=1] + */ + OpenView(ViewName: any, View?: AcView, DataMode?: AcOpenDataMode): void; + + /** @param Access.AcExportQuality [OutputQuality=0] */ + OutputTo(ObjectType: AcOutputObjectType, ObjectName: any, OutputFormat: any, OutputFile: any, AutoStart: any, TemplateFile: any, Encoding: any, OutputQuality?: AcExportQuality): void; + OutputToOld0(ObjectType: AcOutputObjectType, ObjectName?: any, OutputFormat?: any, OutputFile?: any, AutoStart?: any, TemplateFile?: any): void; + OutputToOld1(ObjectType: AcOutputObjectType, ObjectName?: any, OutputFormat?: any, OutputFile?: any, AutoStart?: any, TemplateFile?: any, Encoding?: any): void; + + /** + * @param Access.AcPrintRange [PrintRange=0] + * @param Access.AcPrintQuality [PrintQuality=0] + */ + PrintOut(PrintRange?: AcPrintRange, PageFrom?: any, PageTo?: any, PrintQuality?: AcPrintQuality, Copies?: any, CollateCopies?: any): void; + + /** @param Access.AcQuitOption [Options=1] */ + Quit(Options?: AcQuitOption): void; + RefreshRecord(): void; + + /** @param Access.AcObjectType [ObjectType=-1] */ + Rename(NewName: any, ObjectType?: AcObjectType, OldName?: any): void; + + /** @param Access.AcObjectType [ObjectType=-1] */ + RepaintObject(ObjectType?: AcObjectType, ObjectName?: any): void; + Requery(ControlName?: any): void; + Restore(): void; + RunCommand(Command: AcCommand): void; + RunDataMacro(MacroName: any): void; + RunMacro(MacroName: any, RepeatCount?: any, RepeatExpression?: any): void; + RunSavedImportExport(SavedImportExportName: any): void; + RunSQL(SQLStatement: any, UseTransaction?: any): void; + + /** @param Access.AcObjectType [ObjectType=-1] */ + Save(ObjectType?: AcObjectType, ObjectName?: any): void; + + /** + * @param Access.AcDataObjectType [ObjectType=-1] + * @param Access.AcRecord [Record=2] + */ + SearchForRecord(ObjectType?: AcDataObjectType, ObjectName?: any, Record?: AcRecord, WhereCondition?: any): void; + SelectObject(ObjectType: AcObjectType, ObjectName?: any, InDatabaseWindow?: any): void; + + /** @param Access.AcSendObjectType [ObjectType=-1] */ + SendObject( + ObjectType?: AcSendObjectType, ObjectName?: any, OutputFormat?: any, To?: any, Cc?: any, Bcc?: any, Subject?: any, MessageText?: any, EditMessage?: any, TemplateFile?: any): void; + SetDisplayedCategories(Show: any, Category?: any): void; + SetFilter(FilterName?: any, WhereCondition?: any, ControlName?: any): void; + SetMenuItem(MenuIndex: any, CommandIndex?: any, SubcommandIndex?: any, Flag?: any): void; + SetOrderBy(OrderBy: any, ControlName?: any): void; + SetParameter(Name: any, Expression: any): void; + + /** @param Access.AcProperty [Property=0] */ + SetProperty(ControlName: any, Property?: AcProperty, Value?: any): void; + SetWarnings(WarningsOn: any): void; + ShowAllRecords(): void; + + /** @param Access.AcShowToolbar [Show=0] */ + ShowToolbar(ToolbarName: any, Show?: AcShowToolbar): void; + SingleStep(): void; + + /** + * @param Access.AcDataTransferType [TransferType=0] + * @param Access.AcObjectType [ObjectType=0] + */ + TransferDatabase( + TransferType?: AcDataTransferType, DatabaseType?: any, DatabaseName?: any, ObjectType?: AcObjectType, Source?: any, Destination?: any, StructureOnly?: any, StoreLogin?: any): void; + TransferSharePointList(TransferType: AcSharePointListTransferType, SiteAddress: any, ListID: any, ViewID?: any, TableName?: any, GetLookupDisplayValues?: any): void; + + /** + * @param Access.AcDataTransferType [TransferType=0] + * @param Access.AcSpreadSheetType [SpreadsheetType=10] + */ + TransferSpreadsheet(TransferType?: AcDataTransferType, SpreadsheetType?: AcSpreadSheetType, TableName?: any, FileName?: any, HasFieldNames?: any, Range?: any, UseOA?: any): void; + TransferSQLDatabase(Server: any, Database: any, UseTrustedConnection?: any, Login?: any, Password?: any, TransferCopyData?: any): void; + + /** @param Access.AcTextTransferType [TransferType=0] */ + TransferText(TransferType?: AcTextTransferType, SpecificationName?: any, TableName?: any, FileName?: any, HasFieldNames?: any, HTMLTableName?: any, CodePage?: any): void; + } + + class EmptyCell { + private 'Access.EmptyCell_typekey': EmptyCell; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + readonly Application: Application; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BottomPadding: number; + ControlName: string; + ControlType: number; + DisplayWhen: number; + EventProcPrefix: string; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + readonly Hyperlink: Hyperlink; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + readonly Parent: any; + readonly Properties: Properties; + RightPadding: number; + Section: number; + ShortcutMenuBar: string; + SizeToFit(): void; + SpecialEffect: number; + StatusBarText: string; + Tag: string; + Top: number; + TopPadding: number; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class Entities { + private 'Access.Entities_typekey': Entities; + private constructor(); + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): Entity; + readonly Parent: any; + } + + class Entity { + private 'Access.Entity_typekey': Entity; + private constructor(); + IsMemberSafe(dispid: number): boolean; + readonly Name: string; + readonly Operations: Operations; + readonly Parent: any; + } + + class Form { + private 'Access.Form_typekey': Form; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + acHiddenCurrentPage: number; + readonly ActiveControl: Control; + AfterBeginTransaction: string; + AfterBeginTransactionMacro: string; + AfterCommitTransaction: string; + AfterCommitTransactionMacro: string; + AfterDelConfirm: string; + AfterDelConfirmMacro: string; + AfterFinalRender: string; + AfterFinalRenderMacro: string; + AfterInsert: string; + AfterInsertMacro: string; + AfterLayout: string; + AfterLayoutMacro: string; + AfterRender: string; + AfterRenderMacro: string; + AfterUpdate: string; + AfterUpdateMacro: string; + AllowAdditions: boolean; + AllowDatasheetView: boolean; + AllowDeletions: boolean; + AllowDesignChanges: boolean; + AllowEditing: boolean; + AllowEdits: boolean; + AllowFilters: boolean; + AllowFormView: boolean; + AllowLayoutView: boolean; + AllowPivotChartView: boolean; + AllowPivotTableView: boolean; + AllowUpdating: number; + readonly Application: Application; + AutoCenter: boolean; + AutoResize: boolean; + BatchUpdates: boolean; + BeforeBeginTransaction: string; + BeforeBeginTransactionMacro: string; + BeforeCommitTransaction: string; + BeforeCommitTransactionMacro: string; + BeforeDelConfirm: string; + BeforeDelConfirmMacro: string; + BeforeInsert: string; + BeforeInsertMacro: string; + BeforeQuery: string; + BeforeQueryMacro: string; + BeforeRender: string; + BeforeRenderMacro: string; + BeforeScreenTip: string; + BeforeScreenTipMacro: string; + BeforeUpdate: string; + BeforeUpdateMacro: string; + BeginBatchEdit: string; + BeginBatchEditMacro: string; + Bookmark: any; + BorderStyle: number; + Caption: string; + readonly ChartSpace: any; + CloseButton: boolean; + CommandBeforeExecute: string; + CommandBeforeExecuteMacro: string; + CommandChecked: string; + CommandCheckedMacro: string; + CommandEnabled: string; + CommandEnabledMacro: string; + CommandExecute: string; + CommandExecuteMacro: string; + CommitOnClose: number; + CommitOnNavigation: boolean; + readonly ConnectControl: Control; + ConnectSynch: number; + ControlBox: boolean; + readonly Controls: Controls; + Count: number; + CurrentRecord: number; + CurrentSectionLeft: number; + CurrentSectionTop: number; + CurrentView: number; + Cycle: number; + DataChange: string; + DataChangeMacro: string; + DataEntry: boolean; + DataSetChange: string; + DataSetChangeMacro: string; + DatasheetAlternateBackColor: number; + DatasheetBackColor: number; + DatasheetBorderLineStyle: number; + DatasheetCellsEffect: number; + DatasheetColumnHeaderUnderlineStyle: number; + DatasheetFontHeight: number; + DatasheetFontItalic: boolean; + DatasheetFontName: string; + DatasheetFontUnderline: boolean; + DatasheetFontWeight: number; + DatasheetForeColor: number; + DatasheetGridlinesBehavior: number; + DatasheetGridlinesColor: number; + DefaultControl(ControlType: number): Control; + DefaultEditing: number; + DefaultView: number; + Dirty: boolean; + DisplayOnSharePointSite: number; + DividingLines: boolean; + readonly Dynaset: any; + FastLaserPrinting: boolean; + FetchDefaults: boolean; + Filter: string; + FilterOn: boolean; + FilterOnLoad: boolean; + FitToScreen: boolean; + readonly Form: Form; + FormName: string; + FrozenColumns: number; + + /** + * @param number [Right=0] + * @param number [Down=0] + */ + GoToPage(PageNumber: number, Right?: number, Down?: number): void; + GridX: number; + GridY: number; + HasModule: boolean; + HelpContextId: number; + HelpFile: string; + HorizontalDatasheetGridlineStyle: number; + Hwnd: number; + InputParameters: string; + InsideHeight: number; + InsideWidth: number; + KeyPreview: boolean; + LayoutForPrint: boolean; + LogicalPageHeight: number; + LogicalPageWidth: number; + MaxButton: boolean; + MaxRecButton: boolean; + MaxRecords: number; + MenuBar: string; + MinButton: boolean; + MinMaxButtons: number; + Modal: boolean; + readonly Module: Module; + MouseWheel: string; + MouseWheelMacro: string; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Moveable: boolean; + Name: string; + NavigationButtons: boolean; + NavigationCaption: string; + readonly NewRecord: number; + OnActivate: string; + OnActivateMacro: string; + OnApplyFilter: string; + OnApplyFilterMacro: string; + OnClick: string; + OnClickMacro: string; + OnClose: string; + OnCloseMacro: string; + OnConnect: string; + OnConnectMacro: string; + OnCurrent: string; + OnCurrentMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnDeactivate: string; + OnDeactivateMacro: string; + OnDelete: string; + OnDeleteMacro: string; + OnDirty: string; + OnDirtyMacro: string; + OnDisconnect: string; + OnDisconnectMacro: string; + OnError: string; + OnErrorMacro: string; + OnFilter: string; + OnFilterMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnInsert: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLoad: string; + OnLoadMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMenu: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OnOpen: string; + OnOpenMacro: string; + OnRecordExit: string; + OnRecordExitMacro: string; + OnResize: string; + OnResizeMacro: string; + OnTimer: string; + OnTimerMacro: string; + OnUndo: string; + OnUndoMacro: string; + OnUnload: string; + OnUnloadMacro: string; + OpenArgs: any; + OrderBy: string; + OrderByOn: boolean; + OrderByOnLoad: boolean; + Orientation: number; + Page: number; + Pages: number; + Painting: boolean; + PaintPalette: any; + PaletteSource: string; + readonly Parent: any; + Picture: string; + PictureAlignment: number; + PictureData: any; + PicturePalette: any; + PictureSizeMode: number; + PictureTiling: boolean; + PictureType: number; + readonly PivotTable: any; + PivotTableChange: string; + PivotTableChangeMacro: string; + PopUp: boolean; + Printer: Printer; + readonly Properties: Properties; + PrtDevMode: any; + PrtDevNames: any; + PrtMip: any; + Query: string; + QueryMacro: string; + Recalc(): void; + RecordLocks: number; + RecordSelectors: boolean; + Recordset: any; + readonly RecordsetClone: any; + RecordsetType: number; + RecordSource: string; + RecordSourceQualifier: string; + Refresh(): void; + Repaint(): void; + Requery(): void; + ResyncCommand: string; + RibbonName: string; + RollbackTransaction: string; + RollbackTransactionMacro: string; + RowHeight: number; + ScrollBars: number; + Section(Index: any): Section; + SectionOld(Index: any): Section; + SelectionChange: string; + SelectionChangeMacro: string; + SelHeight: number; + SelLeft: number; + SelTop: number; + SelWidth: number; + ServerFilter: string; + ServerFilterByForm: boolean; + SetFocus(): void; + ShortcutMenu: boolean; + ShortcutMenuBar: string; + ShowGrid: boolean; + SplitFormDatasheet: AcSplitFormDatasheet; + SplitFormOrientation: AcSplitFormOrientation; + SplitFormPrinting: AcSplitFormPrinting; + SplitFormSize: number; + SplitFormSplitterBar: boolean; + SplitFormSplitterBarSave: boolean; + SubdatasheetExpanded: boolean; + SubdatasheetHeight: number; + TabularCharSet: number; + TabularFamily: number; + Tag: string; + TimerInterval: number; + Toolbar: string; + Undo(): void; + UndoBatchEdit: string; + UndoBatchEditMacro: string; + UniqueTable: string; + UseDefaultPrinter: boolean; + VerticalDatasheetGridlineStyle: number; + ViewChange: string; + ViewChangeMacro: string; + ViewsAllowed: number; + Visible: boolean; + WhatsThisButton: boolean; + Width: number; + WindowHeight: number; + readonly WindowLeft: number; + readonly WindowTop: number; + WindowWidth: number; + ZoomControl: number; + } + + class FormatCondition { + private 'Access.FormatCondition_typekey': FormatCondition; + private constructor(); + BackColor: number; + Delete(): void; + Enabled: boolean; + readonly Expression1: string; + readonly Expression2: string; + FontBold: boolean; + FontItalic: boolean; + FontUnderline: boolean; + ForeColor: number; + IsMemberSafe(dispid: number): boolean; + LongestBarLimit: AcFormatBarLimits; + LongestBarValue: string; + + /** @param Access.AcFormatConditionOperator [Operator=0] */ + Modify(Type: AcFormatConditionType, Operator?: AcFormatConditionOperator, Expression1?: any, Expression2?: any): void; + readonly Operator: AcFormatConditionOperator; + ShortestBarLimit: AcFormatBarLimits; + ShortestBarValue: string; + ShowBarOnly: boolean; + readonly Type: AcFormatConditionType; + } + + class FormatConditions { + private 'Access.FormatConditions_typekey': FormatConditions; + private constructor(); + + /** @param Access.AcFormatConditionOperator [Operator=0] */ + Add(Type: AcFormatConditionType, Operator?: AcFormatConditionOperator, Expression1?: any, Expression2?: any): FormatCondition; + readonly Application: Application; + readonly Count: number; + Delete(): void; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): FormatCondition; + readonly Parent: any; + } + + class FormOld { + private 'Access.FormOld_typekey': FormOld; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + acHiddenCurrentPage: number; + readonly ActiveControl: Control; + AfterDelConfirm: string; + AfterInsert: string; + AfterUpdate: string; + AllowAdditions: boolean; + AllowDeletions: boolean; + AllowDesignChanges: boolean; + AllowEditing: boolean; + AllowEdits: boolean; + AllowFilters: boolean; + AllowUpdating: number; + readonly Application: Application; + AutoCenter: boolean; + AutoResize: boolean; + BeforeDelConfirm: string; + BeforeInsert: string; + BeforeUpdate: string; + Bookmark: any; + BorderStyle: number; + Caption: string; + CloseButton: boolean; + readonly ConnectControl: Control; + ConnectSynch: number; + ControlBox: boolean; + readonly Controls: Controls; + Count: number; + CurrentRecord: number; + CurrentSectionLeft: number; + CurrentSectionTop: number; + CurrentView: number; + Cycle: number; + DataEntry: boolean; + DatasheetBackColor: number; + DatasheetCellsEffect: number; + DatasheetFontHeight: number; + DatasheetFontItalic: boolean; + DatasheetFontName: string; + DatasheetFontUnderline: boolean; + DatasheetFontWeight: number; + DatasheetForeColor: number; + DatasheetGridlinesBehavior: number; + DatasheetGridlinesColor: number; + DefaultControl(ControlType: number): Control; + DefaultEditing: number; + DefaultView: number; + Dirty: boolean; + DividingLines: boolean; + readonly Dynaset: any; + FastLaserPrinting: boolean; + Filter: string; + FilterOn: boolean; + readonly Form: Form; + FormName: string; + FrozenColumns: number; + + /** + * @param number [Right=0] + * @param number [Down=0] + */ + GoToPage(PageNumber: number, Right?: number, Down?: number): void; + GridX: number; + GridY: number; + HasModule: boolean; + HelpContextId: number; + HelpFile: string; + Hwnd: number; + InputParameters: string; + InsideHeight: number; + InsideWidth: number; + KeyPreview: boolean; + LayoutForPrint: boolean; + LogicalPageHeight: number; + LogicalPageWidth: number; + MaxButton: boolean; + MaxRecButton: boolean; + MaxRecords: number; + MenuBar: string; + MinButton: boolean; + MinMaxButtons: number; + Modal: boolean; + readonly Module: Module; + Name: string; + NavigationButtons: boolean; + readonly NewRecord: number; + OnActivate: string; + OnApplyFilter: string; + OnClick: string; + OnClose: string; + OnCurrent: string; + OnDblClick: string; + OnDeactivate: string; + OnDelete: string; + OnDirty: string; + OnError: string; + OnFilter: string; + OnGotFocus: string; + OnInsert: string; + OnKeyDown: string; + OnKeyPress: string; + OnKeyUp: string; + OnLoad: string; + OnLostFocus: string; + OnMenu: string; + OnMouseDown: string; + OnMouseMove: string; + OnMouseUp: string; + OnOpen: string; + OnResize: string; + OnTimer: string; + OnUnload: string; + OpenArgs: any; + OrderBy: string; + OrderByOn: boolean; + Orientation: number; + Page: number; + Pages: number; + Painting: boolean; + PaintPalette: any; + PaletteSource: string; + readonly Parent: any; + Picture: string; + PictureAlignment: number; + PictureData: any; + PicturePalette: any; + PictureSizeMode: number; + PictureTiling: boolean; + PictureType: number; + PopUp: boolean; + readonly Properties: Properties; + PrtDevMode: any; + PrtDevNames: any; + PrtMip: any; + Recalc(): void; + RecordLocks: number; + RecordSelectors: boolean; + Recordset: any; + readonly RecordsetClone: any; + RecordsetType: number; + RecordSource: string; + Refresh(): void; + Repaint(): void; + Requery(): void; + ResyncCommand: string; + RowHeight: number; + ScrollBars: number; + Section(Index: any): Section; + SelHeight: number; + SelLeft: number; + SelTop: number; + SelWidth: number; + ServerFilter: string; + ServerFilterByForm: boolean; + SetFocus(): void; + ShortcutMenu: boolean; + ShortcutMenuBar: string; + ShowGrid: boolean; + SubdatasheetExpanded: boolean; + SubdatasheetHeight: number; + TabularCharSet: number; + TabularFamily: number; + Tag: string; + TimerInterval: number; + Toolbar: string; + Undo(): void; + UniqueTable: string; + ViewsAllowed: number; + Visible: boolean; + WhatsThisButton: boolean; + Width: number; + WindowHeight: number; + WindowWidth: number; + ZoomControl: number; + } + + class FormOldV10 { + private 'Access.FormOldV10_typekey': FormOldV10; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + acHiddenCurrentPage: number; + readonly ActiveControl: Control; + AfterBeginTransaction: string; + AfterCommitTransaction: string; + AfterDelConfirm: string; + AfterFinalRender: string; + AfterInsert: string; + AfterLayout: string; + AfterRender: string; + AfterUpdate: string; + AllowAdditions: boolean; + AllowDatasheetView: boolean; + AllowDeletions: boolean; + AllowDesignChanges: boolean; + AllowEditing: boolean; + AllowEdits: boolean; + AllowFilters: boolean; + AllowFormView: boolean; + AllowPivotChartView: boolean; + AllowPivotTableView: boolean; + AllowUpdating: number; + readonly Application: Application; + AutoCenter: boolean; + AutoResize: boolean; + BatchUpdates: boolean; + BeforeBeginTransaction: string; + BeforeCommitTransaction: string; + BeforeDelConfirm: string; + BeforeInsert: string; + BeforeQuery: string; + BeforeRender: string; + BeforeScreenTip: string; + BeforeUpdate: string; + BeginBatchEdit: string; + Bookmark: any; + BorderStyle: number; + Caption: string; + readonly ChartSpace: any; + CloseButton: boolean; + CommandBeforeExecute: string; + CommandChecked: string; + CommandEnabled: string; + CommandExecute: string; + CommitOnClose: number; + CommitOnNavigation: boolean; + readonly ConnectControl: Control; + ConnectSynch: number; + ControlBox: boolean; + readonly Controls: Controls; + Count: number; + CurrentRecord: number; + CurrentSectionLeft: number; + CurrentSectionTop: number; + CurrentView: number; + Cycle: number; + DataChange: string; + DataEntry: boolean; + DataSetChange: string; + DatasheetBackColor: number; + DatasheetBorderLineStyle: number; + DatasheetCellsEffect: number; + DatasheetColumnHeaderUnderlineStyle: number; + DatasheetFontHeight: number; + DatasheetFontItalic: boolean; + DatasheetFontName: string; + DatasheetFontUnderline: boolean; + DatasheetFontWeight: number; + DatasheetForeColor: number; + DatasheetGridlinesBehavior: number; + DatasheetGridlinesColor: number; + DefaultControl(ControlType: number): Control; + DefaultEditing: number; + DefaultView: number; + Dirty: boolean; + DividingLines: boolean; + readonly Dynaset: any; + FastLaserPrinting: boolean; + FetchDefaults: boolean; + Filter: string; + FilterOn: boolean; + readonly Form: Form; + FormName: string; + FrozenColumns: number; + + /** + * @param number [Right=0] + * @param number [Down=0] + */ + GoToPage(PageNumber: number, Right?: number, Down?: number): void; + GridX: number; + GridY: number; + HasModule: boolean; + HelpContextId: number; + HelpFile: string; + HorizontalDatasheetGridlineStyle: number; + Hwnd: number; + InputParameters: string; + InsideHeight: number; + InsideWidth: number; + KeyPreview: boolean; + LayoutForPrint: boolean; + LogicalPageHeight: number; + LogicalPageWidth: number; + MaxButton: boolean; + MaxRecButton: boolean; + MaxRecords: number; + MenuBar: string; + MinButton: boolean; + MinMaxButtons: number; + Modal: boolean; + readonly Module: Module; + MouseWheel: string; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Moveable: boolean; + Name: string; + NavigationButtons: boolean; + readonly NewRecord: number; + OnActivate: string; + OnApplyFilter: string; + OnClick: string; + OnClose: string; + OnConnect: string; + OnCurrent: string; + OnDblClick: string; + OnDeactivate: string; + OnDelete: string; + OnDirty: string; + OnDisconnect: string; + OnError: string; + OnFilter: string; + OnGotFocus: string; + OnInsert: string; + OnKeyDown: string; + OnKeyPress: string; + OnKeyUp: string; + OnLoad: string; + OnLostFocus: string; + OnMenu: string; + OnMouseDown: string; + OnMouseMove: string; + OnMouseUp: string; + OnOpen: string; + OnRecordExit: string; + OnResize: string; + OnTimer: string; + OnUndo: string; + OnUnload: string; + OpenArgs: any; + OrderBy: string; + OrderByOn: boolean; + Orientation: number; + Page: number; + Pages: number; + Painting: boolean; + PaintPalette: any; + PaletteSource: string; + readonly Parent: any; + Picture: string; + PictureAlignment: number; + PictureData: any; + PicturePalette: any; + PictureSizeMode: number; + PictureTiling: boolean; + PictureType: number; + readonly PivotTable: any; + PivotTableChange: string; + PopUp: boolean; + Printer: Printer; + readonly Properties: Properties; + PrtDevMode: any; + PrtDevNames: any; + PrtMip: any; + Query: string; + Recalc(): void; + RecordLocks: number; + RecordSelectors: boolean; + Recordset: any; + readonly RecordsetClone: any; + RecordsetType: number; + RecordSource: string; + RecordSourceQualifier: string; + Refresh(): void; + Repaint(): void; + Requery(): void; + ResyncCommand: string; + RollbackTransaction: string; + RowHeight: number; + ScrollBars: number; + Section(Index: any): Section; + SelectionChange: string; + SelHeight: number; + SelLeft: number; + SelTop: number; + SelWidth: number; + ServerFilter: string; + ServerFilterByForm: boolean; + SetFocus(): void; + ShortcutMenu: boolean; + ShortcutMenuBar: string; + ShowGrid: boolean; + SubdatasheetExpanded: boolean; + SubdatasheetHeight: number; + TabularCharSet: number; + TabularFamily: number; + Tag: string; + TimerInterval: number; + Toolbar: string; + Undo(): void; + UndoBatchEdit: string; + UniqueTable: string; + UseDefaultPrinter: boolean; + VerticalDatasheetGridlineStyle: number; + ViewChange: string; + ViewsAllowed: number; + Visible: boolean; + WhatsThisButton: boolean; + Width: number; + WindowHeight: number; + readonly WindowLeft: number; + readonly WindowTop: number; + WindowWidth: number; + ZoomControl: number; + } + + class Forms { + private 'Access.Forms_typekey': Forms; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: number | string): Form; + readonly Parent: any; + } + + class GroupLevel { + private 'Access.GroupLevel_typekey': GroupLevel; + private constructor(); + readonly Application: Application; + ControlSource: string; + GroupFooter: boolean; + GroupHeader: boolean; + GroupInterval: number; + GroupOn: number; + IsMemberSafe(dispid: number): boolean; + KeepTogether: number; + readonly Parent: any; + readonly Properties: Properties; + SortOrder: boolean; + } + + class Hyperlink { + private 'Access.Hyperlink_typekey': Hyperlink; + private constructor(); + Address: string; + AddToFavorites(): void; + CreateNewDocument(FileName: string, EditNow: boolean, Overwrite: boolean): void; + EmailSubject: string; + + /** + * @param boolean [NewWindow=false] + * @param boolean [AddHistory=true] + * @param Office.MsoExtraInfoMethod [Method=0] + * @param string [HeaderInfo=''] + */ + Follow(NewWindow?: boolean, AddHistory?: boolean, ExtraInfo?: any, Method?: Office.MsoExtraInfoMethod, HeaderInfo?: string): void; + IsMemberSafe(dispid: number): boolean; + ScreenTip: string; + SubAddress: string; + TextToDisplay: string; + } + + class Image { + private 'Access.Image_typekey': Image; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + readonly Application: Application; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + ControlName: string; + readonly Controls: Children; + ControlTipText: string; + ControlType: number; + DisplayWhen: number; + EventProcPrefix: string; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + readonly Hyperlink: Hyperlink; + HyperlinkAddress: string; + HyperlinkSubAddress: string; + ImageHeight: number; + ImageWidth: number; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + ObjectPalette: any; + OldBorderStyle: number; + readonly OldValue: any; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + readonly Parent: any; + Picture: string; + PictureAlignment: number; + PictureData: any; + PictureTiling: boolean; + PictureType: number; + readonly Properties: Properties; + Requery(): void; + RightPadding: number; + Section: number; + SetFocus(): void; + ShortcutMenuBar: string; + SizeMode: number; + SizeToFit(): void; + SpecialEffect: number; + Tag: string; + Target: string; + Top: number; + TopPadding: number; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class ImportExportSpecification { + private 'Access.ImportExportSpecification_typekey': ImportExportSpecification; + private constructor(); + readonly Application: Application; + Delete(): void; + Description: string; + Execute(Prompt?: any): void; + IsMemberSafe(dispid: number): boolean; + Name: string; + readonly Parent: any; + XML: string; + } + + class ImportExportSpecifications { + private 'Access.ImportExportSpecifications_typekey': ImportExportSpecifications; + private constructor(); + Add(Name: string, SpecificationDefinition: string): ImportExportSpecification; + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): ImportExportSpecification; + readonly Parent: any; + } + + class Label { + private 'Access.Label_typekey': Label; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + readonly Application: Application; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomMargin: number; + BottomPadding: number; + Caption: string; + ControlName: string; + ControlTipText: string; + ControlType: number; + DisplayWhen: number; + EventProcPrefix: string; + FontBold: number; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + ForeShade: number; + ForeThemeColorIndex: number; + ForeTint: number; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + readonly Hyperlink: Hyperlink; + HyperlinkAddress: string; + HyperlinkSubAddress: string; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftMargin: number; + LeftPadding: number; + LineSpacing: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + NumeralShapes: number; + OldBorderStyle: number; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + readonly Parent: any; + readonly Properties: Properties; + ReadingOrder: number; + RightMargin: number; + RightPadding: number; + Section: number; + ShortcutMenuBar: string; + SizeToFit(): void; + readonly SmartTags: SmartTags; + SpecialEffect: number; + Tag: string; + Target: string; + TextAlign: number; + TextFontCharSet: number; + ThemeFontIndex: number; + Top: number; + TopMargin: number; + TopPadding: number; + Vertical: boolean; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class Line { + private 'Access.Line_typekey': Line; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + readonly Application: Application; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + ControlName: string; + ControlType: number; + DisplayWhen: number; + EventProcPrefix: string; + Height: number; + HorizontalAnchor: AcHorizontalAnchor; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + Left: number; + LineSlant: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + OldBorderStyle: number; + readonly Parent: any; + readonly Properties: Properties; + Section: number; + SizeToFit(): void; + SpecialEffect: number; + Tag: string; + Top: number; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class ListBox { + private 'Access.ListBox_typekey': ListBox; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + AddItem(Item: string, Index?: any): void; + AfterUpdate: string; + AfterUpdateMacro: string; + AllowValueListEdits: boolean; + readonly Application: Application; + AutoLabel: boolean; + BackColor: number; + BackShade: number; + BackThemeColorIndex: number; + BackTint: number; + BeforeUpdate: string; + BeforeUpdateMacro: string; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + BoundColumn: number; + Column(Index: number, Row?: any): any; + ColumnCount: number; + ColumnHeads: boolean; + ColumnHidden: boolean; + ColumnOrder: number; + ColumnWidth: number; + ColumnWidths: string; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + DefaultValue: string; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + FontBold: number; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + ForeShade: number; + ForeThemeColorIndex: number; + ForeTint: number; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HideDuplicates: boolean; + HorizontalAnchor: AcHorizontalAnchor; + readonly Hyperlink: Hyperlink; + IMEHold: boolean; + IMEMode: AcImeMode; + IMESentenceMode: AcImeSentenceMode; + InheritValueList: boolean; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + ItemData(Index: number): any; + readonly ItemsSelected: _ItemsSelected; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + ListCount: number; + ListIndex: number; + ListItemsEditForm: string; + Locked: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + MultiSelect: number; + Name: string; + NumeralShapes: number; + OldBorderStyle: number; + readonly OldValue: any; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + readonly Parent: any; + readonly Properties: Properties; + ReadingOrder: number; + Recordset: any; + RemoveItem(Index: any): void; + Requery(): void; + RightPadding: number; + RowSource: string; + RowSourceType: string; + ScrollBarAlign: number; + Section: number; + Selected(lRow: number): number; + SetFocus(): void; + ShortcutMenuBar: string; + ShowOnlyRowSourceValues: boolean; + SizeToFit(): void; + readonly SmartTags: SmartTags; + SpecialEffect: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + TextAlign: number; + TextFontCharSet: number; + ThemeFontIndex: number; + Top: number; + TopPadding: number; + Undo(): void; + ValidationRule: string; + ValidationText: string; + Value: any; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class LocalVar { + private 'Access.LocalVar_typekey': LocalVar; + private constructor(); + _Value: any; + IsMemberSafe(dispid: number): boolean; + readonly Name: string; + Value: any; + } + + class LocalVars { + private 'Access.LocalVars_typekey': LocalVars; + private constructor(); + Add(Name: string, Value: any): void; + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): LocalVar; + readonly Parent: any; + } + + class MacroError { + private 'Access.MacroError_typekey': MacroError; + private constructor(); + readonly ActionName: string; + readonly Arguments: string; + readonly Condition: string; + readonly Description: string; + IsMemberSafe(dispid: number): boolean; + readonly MacroName: string; + readonly Number: number; + } + + class Module { + private 'Access.Module_typekey': Module; + private constructor(); + AddFromFile(FileName: string): void; + AddFromString(String: string): void; + readonly Application: Application; + readonly CountOfDeclarationLines: number; + readonly CountOfLines: number; + CreateEventProc(EventName: string, ObjectName: string): number; + DeleteLines(StartLine: number, Count: number): void; + + /** + * @param boolean [WholeWord=false] + * @param boolean [MatchCase=false] + * @param boolean [PatternSearch=false] + */ + Find(Target: string, StartLine: number, StartColumn: number, EndLine: number, EndColumn: number, WholeWord?: boolean, MatchCase?: boolean, PatternSearch?: boolean): boolean; + InsertLines(Line: number, String: string): void; + InsertText(Text: string): void; + IsMemberSafe(dispid: number): boolean; + Lines(Line: number, NumLines: number): string; + Name: string; + readonly Parent: any; + ProcBodyLine(ProcName: string, ProcKind: VBIDE.vbext_ProcKind): number; + ProcCountLines(ProcName: string, ProcKind: VBIDE.vbext_ProcKind): number; + ProcOfLine(Line: number, pprockind: VBIDE.vbext_ProcKind): string; + ProcStartLine(ProcName: string, ProcKind: VBIDE.vbext_ProcKind): number; + ReplaceLine(Line: number, String: string): void; + readonly Type: AcModuleType; + } + + class Modules { + private 'Access.Modules_typekey': Modules; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): Module; + readonly Parent: any; + } + + class NavigationButton { + private 'Access.NavigationButton_typekey': NavigationButton; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + AfterUpdateMacro: string; + Alignment: number; + readonly Application: Application; + AutoLabel: boolean; + AutoRepeat: boolean; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BeforeUpdateMacro: string; + Bevel: number; + BorderColor: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + Caption: string; + ControlName: string; + readonly Controls: Children; + ControlTipText: string; + ControlType: number; + CursorOnHover: AcCursorOnHover; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + FontBold: number; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + ForeShade: number; + ForeThemeColorIndex: number; + ForeTint: number; + Glow: number; + Goto(): void; + Gradient: number; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + HoverColor: number; + HoverForeColor: number; + HoverForeShade: number; + HoverForeThemeColorIndex: number; + HoverForeTint: number; + HoverShade: number; + HoverThemeColorIndex: number; + HoverTint: number; + readonly Hyperlink: Hyperlink; + HyperlinkAddress: string; + HyperlinkSubAddress: string; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + readonly Left: number; + LeftPadding: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + NavigationTargetName: string; + NavigationWhereClause: string; + ObjectPalette: any; + readonly OldValue: any; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OnPush: string; + readonly Parent: any; + readonly ParentTab: NavigationButton; + Picture: string; + PictureCaptionArrangement: AcPictureCaptionArrangement; + PictureData: any; + PictureType: number; + PressedColor: number; + PressedForeColor: number; + PressedForeShade: number; + PressedForeThemeColorIndex: number; + PressedForeTint: number; + PressedShade: number; + PressedThemeColorIndex: number; + PressedTint: number; + readonly Properties: Properties; + QuickStyle: number; + QuickStyleMask: number; + ReadingOrder: number; + Requery(): void; + RightPadding: number; + Section: number; + SetFocus(): void; + Shadow: number; + Shape: number; + ShortcutMenuBar: string; + SizeToFit(): void; + SoftEdges: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Target: string; + TextFontCharSet: number; + ThemeFontIndex: number; + readonly Top: number; + TopPadding: number; + Transparent: boolean; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class NavigationControl { + private 'Access.NavigationControl_typekey': NavigationControl; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AllowedText: number; + readonly Application: Application; + AutoTab: boolean; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + ControlName: string; + readonly Controls: Children; + ControlTipText: string; + ControlType: number; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + FilterLookup: number; + readonly FormatConditions: FormatConditions; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + readonly Hyperlink: Hyperlink; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + KeyboardLanguage: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + LineSpacing: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + NumeralShapes: number; + OldBorderStyle: number; + readonly OldValue: any; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + readonly Parent: any; + readonly Properties: Properties; + ReadingOrder: number; + Requery(): void; + RightPadding: number; + ScrollBarAlign: number; + Section: number; + readonly SelectedTab: NavigationButton; + SetFocus(): void; + ShortcutMenuBar: string; + SizeToFit(): void; + readonly SmartTags: SmartTags; + Span: AcNavigationSpan; + SpecialEffect: number; + StatusBarText: string; + SubForm: string; + TabIndex: number; + readonly Tabs: Children; + TabStop: boolean; + Tag: string; + Target: string; + Top: number; + TopPadding: number; + Undo(): void; + Value: any; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class ObjectFrame { + private 'Access.ObjectFrame_typekey': ObjectFrame; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + Action: number; + AfterUpdateMacro: string; + readonly Application: Application; + AutoActivate: number; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BeforeUpdateMacro: string; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + Class: string; + ColumnCount: number; + ColumnHeads: boolean; + ControlName: string; + readonly Controls: Children; + ControlTipText: string; + ControlType: number; + Data: number; + DisplayType: boolean; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + Item: string; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + LinkChildFields: string; + LinkMasterFields: string; + Locked: boolean; + LpOleObject: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + readonly Object: any; + ObjectPalette: any; + ObjectVerbs(Index: number): string; + ObjectVerbsCount: number; + OldBorderStyle: number; + readonly OldValue: any; + OLEClass: string; + OleData: any; + OLEType: number; + OLETypeAllowed: number; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OnUpdated: string; + readonly Parent: any; + readonly Properties: Properties; + Requery(): void; + RightPadding: number; + RowSource: string; + RowSourceType: string; + Scaling: number; + Section: number; + SetFocus(): void; + ShortcutMenuBar: string; + SizeMode: number; + SizeToFit(): void; + SourceDoc: string; + SourceItem: string; + SourceObject: string; + SpecialEffect: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + TopPadding: number; + UpdateMethod: number; + UpdateOptions: number; + VarOleObject: any; + Verb: number; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class Operation { + private 'Access.Operation_typekey': Operation; + private constructor(); + + /** @param string [bstrParameters=''] */ + Execute(bstrParameters?: string): any; + IsMemberSafe(dispid: number): boolean; + readonly Name: string; + readonly Parent: any; + readonly WSParameters: WSParameters; + } + + class Operations { + private 'Access.Operations_typekey': Operations; + private constructor(); + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): Operation; + readonly Parent: any; + } + + class OptionButton { + private 'Access.OptionButton_typekey': OptionButton; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + AfterUpdate: string; + AfterUpdateMacro: string; + readonly Application: Application; + AutoLabel: boolean; + BeforeUpdate: string; + BeforeUpdateMacro: string; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + ColumnHidden: boolean; + ColumnOrder: number; + ColumnWidth: number; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + DefaultValue: string; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HideDuplicates: boolean; + HorizontalAnchor: AcHorizontalAnchor; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Locked: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + OldBorderStyle: number; + readonly OldValue: any; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OptionValue: number; + readonly Parent: any; + readonly Properties: Properties; + ReadingOrder: number; + Requery(): void; + RightPadding: number; + Section: number; + SetFocus(): void; + ShortcutMenuBar: string; + SizeToFit(): void; + SpecialEffect: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + TopPadding: number; + TripleState: boolean; + ValidationRule: string; + ValidationText: string; + Value: any; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class OptionGroup { + private 'Access.OptionGroup_typekey': OptionGroup; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + AfterUpdate: string; + AfterUpdateMacro: string; + readonly Application: Application; + AutoLabel: boolean; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BeforeUpdate: string; + BeforeUpdateMacro: string; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + ColumnHidden: boolean; + ColumnOrder: number; + ColumnWidth: number; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + DefaultValue: string; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + Goto(): void; + Height: number; + HelpContextId: number; + HideDuplicates: boolean; + HorizontalAnchor: AcHorizontalAnchor; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + LabelAlign: number; + LabelX: number; + LabelY: number; + Left: number; + Locked: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + OldBorderStyle: number; + readonly OldValue: any; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + readonly Parent: any; + readonly Properties: Properties; + Requery(): void; + Section: number; + SetFocus(): void; + ShortcutMenuBar: string; + SizeToFit(): void; + SpecialEffect: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + Undo(): void; + ValidationRule: string; + ValidationText: string; + Value: any; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class Page { + private 'Access.Page_typekey': Page; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + readonly Application: Application; + Caption: string; + ControlName: string; + readonly Controls: Children; + ControlTipText: string; + ControlType: number; + Enabled: boolean; + EventProcPrefix: string; + Goto(): void; + Height: number; + HelpContextId: number; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + Left: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + PageIndex: number; + readonly Parent: any; + Picture: string; + PictureData: any; + PictureType: number; + readonly Properties: Properties; + Requery(): void; + Section: number; + SetFocus(): void; + SetTabOrder(): void; + ShortcutMenuBar: string; + SizeToFit(): void; + StatusBarText: string; + Tag: string; + Top: number; + Visible: boolean; + Width: number; + } + + class PageBreak { + private 'Access.PageBreak_typekey': PageBreak; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + readonly Application: Application; + ControlName: string; + ControlType: number; + EventProcPrefix: string; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + Left: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + readonly Parent: any; + readonly Properties: Properties; + Section: number; + SizeToFit(): void; + Tag: string; + Top: number; + Visible: boolean; + } + + class Pages { + private 'Access.Pages_typekey': Pages; + private constructor(); + Add(Before?: any): Page; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): Page; + Remove(Item?: any): void; + } + + class PaletteButton { + private 'Access.PaletteButton_typekey': PaletteButton; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + AddColon: boolean; + AfterUpdate: string; + AfterUpdateMacro: string; + readonly Application: Application; + AutoLabel: boolean; + BackColor: number; + BackStyle: number; + BeforeUpdate: string; + BeforeUpdateMacro: string; + ColumnHidden: boolean; + ColumnOrder: number; + ColumnWidth: number; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + DefaultValue: string; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + Goto(): void; + Height: number; + HelpContextId: number; + HideDuplicates: boolean; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + LabelAlign: number; + LabelX: number; + LabelY: number; + Left: number; + Locked: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + readonly OldValue: any; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OptionValue: number; + readonly Parent: any; + readonly Properties: Properties; + Requery(): void; + Section: number; + SetFocus(): void; + ShortcutMenuBar: string; + SizeToFit(): void; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + TripleState: boolean; + ValidationRule: string; + ValidationText: string; + Value: any; + Visible: boolean; + Width: number; + } + + class Printer { + private 'Access.Printer_typekey': Printer; + private constructor(); + BottomMargin: number; + ColorMode: AcPrintColor; + ColumnSpacing: number; + Copies: number; + DataOnly: boolean; + DefaultSize: boolean; + readonly DeviceName: string; + readonly DriverName: string; + Duplex: AcPrintDuplex; + IsMemberSafe(dispid: number): boolean; + ItemLayout: AcPrintItemLayout; + ItemsAcross: number; + ItemSizeHeight: number; + ItemSizeWidth: number; + LeftMargin: number; + Orientation: AcPrintOrientation; + PaperBin: AcPrintPaperBin; + PaperSize: AcPrintPaperSize; + readonly Port: string; + PrintQuality: AcPrintObjQuality; + RightMargin: number; + RowSpacing: number; + TopMargin: number; + } + + class Printers { + private 'Access.Printers_typekey': Printers; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): Printer; + readonly Parent: any; + } + + class Properties { + private 'Access.Properties_typekey': Properties; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): any; + readonly Parent: any; + } + + class Rectangle { + private 'Access.Rectangle_typekey': Rectangle; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + readonly Application: Application; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + ControlName: string; + ControlType: number; + DisplayWhen: number; + EventProcPrefix: string; + Height: number; + HorizontalAnchor: AcHorizontalAnchor; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + Left: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + OldBorderStyle: number; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + readonly Parent: any; + readonly Properties: Properties; + Section: number; + SizeToFit(): void; + SpecialEffect: number; + Tag: string; + Top: number; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class Reference { + private 'Access.Reference_typekey': Reference; + private constructor(); + readonly BuiltIn: boolean; + readonly Collection: References; + readonly FullPath: string; + readonly Guid: string; + readonly IsBroken: boolean; + IsMemberSafe(dispid: number): boolean; + readonly Kind: VBIDE.vbext_RefKind; + readonly Major: number; + readonly Minor: number; + readonly Name: string; + } + + class References { + private 'Access.References_typekey': References; + private constructor(); + AddFromFile(FileName: string): Reference; + AddFromGuid(Guid: string, Major: number, Minor: number): Reference; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(var_0: any): Reference; + readonly Parent: any; + Remove(Reference: Reference): void; + } + + class Report { + private 'Access.Report_typekey': Report; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + acHiddenCurrentPage: number; + readonly ActiveControl: Control; + AllowDesignChanges: boolean; + AllowLayoutView: boolean; + AllowReportView: boolean; + readonly Application: Application; + AutoCenter: boolean; + AutoResize: boolean; + BorderStyle: number; + Caption: string; + Circle(flags: number, X: number, Y: number, radius: number, color: number, start: number, end: number, aspect: number): void; + CloseButton: boolean; + ControlBox: boolean; + readonly Controls: Controls; + Count: number; + CurrentRecord: number; + CurrentView: number; + CurrentX: number; + CurrentY: number; + Cycle: number; + DateGrouping: number; + DefaultControl(ControlType: number): Control; + DefaultView: number; + Dirty: boolean; + DisplayOnSharePointSite: number; + DrawMode: number; + DrawStyle: number; + DrawWidth: number; + FastLaserPrinting: boolean; + FillColor: number; + FillStyle: number; + Filter: string; + FilterOn: boolean; + FilterOnLoad: boolean; + FitToPage: boolean; + FontBold: number; + FontItalic: number; + FontName: string; + FontSize: number; + FontUnderline: number; + ForeColor: number; + FormatCount: number; + FormName: string; + GridX: number; + GridY: number; + GroupLevel(Index: number): GroupLevel; + GrpKeepTogether: number; + HasData: number; + HasModule: boolean; + Height: number; + HelpContextId: number; + HelpFile: string; + Hwnd: number; + InputParameters: string; + KeyPreview: boolean; + LayoutForPrint: boolean; + Left: number; + Line(flags: number, x1: number, y1: number, x2: number, y2: number, color: number): void; + LogicalPageHeight: number; + LogicalPageWidth: number; + MaxButton: boolean; + MenuBar: string; + MinButton: boolean; + MinMaxButtons: number; + Modal: boolean; + readonly Module: Module; + MouseWheel: string; + MouseWheelMacro: string; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Moveable: boolean; + MoveLayout: boolean; + Name: string; + NextRecord: boolean; + OnActivate: string; + OnActivateMacro: string; + OnApplyFilter: string; + OnApplyFilterMacro: string; + OnClick: string; + OnClickMacro: string; + OnClose: string; + OnCloseMacro: string; + OnCurrent: string; + OnCurrentMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnDeactivate: string; + OnDeactivateMacro: string; + OnError: string; + OnErrorMacro: string; + OnFilter: string; + OnFilterMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLoad: string; + OnLoadMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMenu: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OnNoData: string; + OnNoDataMacro: string; + OnOpen: string; + OnOpenMacro: string; + OnPage: string; + OnPageMacro: string; + OnResize: string; + OnResizeMacro: string; + OnTimer: string; + OnTimerMacro: string; + OnUnload: string; + OnUnloadMacro: string; + OpenArgs: any; + OrderBy: string; + OrderByOn: boolean; + OrderByOnLoad: boolean; + Orientation: number; + Page: number; + PageFooter: number; + PageHeader: number; + Pages: number; + Painting: boolean; + PaintPalette: any; + PaletteSource: string; + readonly Parent: any; + Picture: string; + PictureAlignment: number; + PictureData: any; + PicturePages: number; + PicturePalette: any; + PictureSizeMode: number; + PictureTiling: boolean; + PictureType: number; + PopUp: boolean; + Print(Expr: string): void; + PrintCount: number; + Printer: Printer; + PrintSection: boolean; + readonly Properties: Properties; + PrtDevMode: any; + PrtDevNames: any; + PrtMip: any; + PSet(flags: number, X: number, Y: number, color: number): void; + RecordLocks: number; + Recordset: any; + RecordSource: string; + RecordSourceQualifier: string; + readonly Report: Report; + Requery(): void; + RibbonName: string; + Scale(flags: number, x1: number, y1: number, x2: number, y2: number): void; + ScaleHeight: number; + ScaleLeft: number; + ScaleMode: number; + ScaleTop: number; + ScaleWidth: number; + ScrollBars: number; + Section(Index: any): Section; + SectionOld(Index: any): Section; + ServerFilter: string; + readonly Shape: string; + ShortcutMenuBar: string; + ShowPageMargins: boolean; + Tag: string; + TextHeight(Expr: string): number; + TextWidth(Expr: string): number; + TimerInterval: number; + Toolbar: string; + Top: number; + UseDefaultPrinter: boolean; + Visible: boolean; + Width: number; + WindowHeight: number; + readonly WindowLeft: number; + readonly WindowTop: number; + WindowWidth: number; + ZoomControl: number; + } + + class ReportOld { + private 'Access.ReportOld_typekey': ReportOld; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + acHiddenCurrentPage: number; + readonly ActiveControl: Control; + readonly Application: Application; + Caption: string; + Circle(flags: number, X: number, Y: number, radius: number, color: number, start: number, end: number, aspect: number): void; + readonly Controls: Controls; + Count: number; + CurrentRecord: number; + CurrentX: number; + CurrentY: number; + DateGrouping: number; + DefaultControl(ControlType: number): Control; + Dirty: boolean; + DrawMode: number; + DrawStyle: number; + DrawWidth: number; + FastLaserPrinting: boolean; + FillColor: number; + FillStyle: number; + Filter: string; + FilterOn: boolean; + FontBold: number; + FontItalic: number; + FontName: string; + FontSize: number; + FontUnderline: number; + ForeColor: number; + FormatCount: number; + FormName: string; + GridX: number; + GridY: number; + GroupLevel(Index: number): GroupLevel; + GrpKeepTogether: number; + HasData: number; + HasModule: boolean; + Height: number; + HelpContextId: number; + HelpFile: string; + Hwnd: number; + InputParameters: string; + LayoutForPrint: boolean; + Left: number; + Line(flags: number, x1: number, y1: number, x2: number, y2: number, color: number): void; + LogicalPageHeight: number; + LogicalPageWidth: number; + MaxButton: boolean; + MenuBar: string; + MinButton: boolean; + readonly Module: Module; + MoveLayout: boolean; + Name: string; + NextRecord: boolean; + OnActivate: string; + OnClose: string; + OnDeactivate: string; + OnError: string; + OnMenu: string; + OnNoData: string; + OnOpen: string; + OnPage: string; + OrderBy: string; + OrderByOn: boolean; + Orientation: number; + Page: number; + PageFooter: number; + PageHeader: number; + Pages: number; + Painting: boolean; + PaintPalette: any; + PaletteSource: string; + readonly Parent: any; + Picture: string; + PictureAlignment: number; + PictureData: any; + PicturePages: number; + PicturePalette: any; + PictureSizeMode: number; + PictureTiling: boolean; + PictureType: number; + Print(Expr: string): void; + PrintCount: number; + PrintSection: boolean; + readonly Properties: Properties; + PrtDevMode: any; + PrtDevNames: any; + PrtMip: any; + PSet(flags: number, X: number, Y: number, color: number): void; + RecordLocks: number; + RecordSource: string; + readonly Report: Report; + Scale(flags: number, x1: number, y1: number, x2: number, y2: number): void; + ScaleHeight: number; + ScaleLeft: number; + ScaleMode: number; + ScaleTop: number; + ScaleWidth: number; + Section(Index: any): Section; + ServerFilter: string; + ShortcutMenuBar: string; + Tag: string; + TextHeight(Expr: string): number; + TextWidth(Expr: string): number; + Toolbar: string; + Top: number; + Visible: boolean; + Width: number; + ZoomControl: number; + } + + class ReportOldV10 { + private 'Access.ReportOldV10_typekey': ReportOldV10; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + acHiddenCurrentPage: number; + readonly ActiveControl: Control; + readonly Application: Application; + AutoCenter: boolean; + AutoResize: boolean; + BorderStyle: number; + Caption: string; + Circle(flags: number, X: number, Y: number, radius: number, color: number, start: number, end: number, aspect: number): void; + CloseButton: boolean; + ControlBox: boolean; + readonly Controls: Controls; + Count: number; + CurrentRecord: number; + CurrentX: number; + CurrentY: number; + DateGrouping: number; + DefaultControl(ControlType: number): Control; + Dirty: boolean; + DrawMode: number; + DrawStyle: number; + DrawWidth: number; + FastLaserPrinting: boolean; + FillColor: number; + FillStyle: number; + Filter: string; + FilterOn: boolean; + FontBold: number; + FontItalic: number; + FontName: string; + FontSize: number; + FontUnderline: number; + ForeColor: number; + FormatCount: number; + FormName: string; + GridX: number; + GridY: number; + GroupLevel(Index: number): GroupLevel; + GrpKeepTogether: number; + HasData: number; + HasModule: boolean; + Height: number; + HelpContextId: number; + HelpFile: string; + Hwnd: number; + InputParameters: string; + LayoutForPrint: boolean; + Left: number; + Line(flags: number, x1: number, y1: number, x2: number, y2: number, color: number): void; + LogicalPageHeight: number; + LogicalPageWidth: number; + MaxButton: boolean; + MenuBar: string; + MinButton: boolean; + MinMaxButtons: number; + Modal: boolean; + readonly Module: Module; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Moveable: boolean; + MoveLayout: boolean; + Name: string; + NextRecord: boolean; + OnActivate: string; + OnClose: string; + OnDeactivate: string; + OnError: string; + OnMenu: string; + OnNoData: string; + OnOpen: string; + OnPage: string; + OpenArgs: any; + OrderBy: string; + OrderByOn: boolean; + Orientation: number; + Page: number; + PageFooter: number; + PageHeader: number; + Pages: number; + Painting: boolean; + PaintPalette: any; + PaletteSource: string; + readonly Parent: any; + Picture: string; + PictureAlignment: number; + PictureData: any; + PicturePages: number; + PicturePalette: any; + PictureSizeMode: number; + PictureTiling: boolean; + PictureType: number; + PopUp: boolean; + Print(Expr: string): void; + PrintCount: number; + Printer: Printer; + PrintSection: boolean; + readonly Properties: Properties; + PrtDevMode: any; + PrtDevNames: any; + PrtMip: any; + PSet(flags: number, X: number, Y: number, color: number): void; + RecordLocks: number; + Recordset: any; + RecordSource: string; + RecordSourceQualifier: string; + readonly Report: Report; + Scale(flags: number, x1: number, y1: number, x2: number, y2: number): void; + ScaleHeight: number; + ScaleLeft: number; + ScaleMode: number; + ScaleTop: number; + ScaleWidth: number; + Section(Index: any): Section; + ServerFilter: string; + readonly Shape: string; + ShortcutMenuBar: string; + Tag: string; + TextHeight(Expr: string): number; + TextWidth(Expr: string): number; + Toolbar: string; + Top: number; + UseDefaultPrinter: boolean; + Visible: boolean; + Width: number; + WindowHeight: number; + readonly WindowLeft: number; + readonly WindowTop: number; + WindowWidth: number; + ZoomControl: number; + } + + class Reports { + private 'Access.Reports_typekey': Reports; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): Report; + readonly Parent: any; + } + + class ReturnVar { + private 'Access.ReturnVar_typekey': ReturnVar; + private constructor(); + readonly _Value: any; + IsMemberSafe(dispid: number): boolean; + readonly Name: string; + readonly Value: any; + } + + class ReturnVars { + private 'Access.ReturnVars_typekey': ReturnVars; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): ReturnVar; + readonly Parent: any; + } + + class Screen { + private 'Access.Screen_typekey': Screen; + private constructor(); + readonly ActiveControl: Control; + readonly ActiveDataAccessPage: DataAccessPage; + readonly ActiveDatasheet: Form; + readonly ActiveForm: Form; + readonly ActiveReport: Report; + readonly Application: Application; + IsMemberSafe(dispid: number): boolean; + MousePointer: number; + readonly Parent: any; + readonly PreviousControl: Control; + } + + class Section { + private 'Access.Section_typekey': Section; + private constructor(); + _Name: string; + AlternateBackColor: number; + AlternateBackShade: number; + AlternateBackThemeColorIndex: number; + AlternateBackTint: number; + readonly Application: Application; + AutoHeight: boolean; + BackColor: number; + BackShade: number; + BackThemeColorIndex: number; + BackTint: number; + CanGrow: boolean; + CanShrink: boolean; + readonly Controls: Children; + DisplayWhen: number; + EventProcPrefix: string; + ForceNewPage: number; + HasContinued: boolean; + Height: number; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + KeepTogether: boolean; + Name: string; + NewRowOrCol: number; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnFormat: string; + OnFormatMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OnPaint: string; + OnPaintMacro: string; + OnPrint: string; + OnPrintMacro: string; + OnRetreat: string; + OnRetreatMacro: string; + readonly Parent: any; + readonly Properties: Properties; + RepeatSection: boolean; + SetTabOrder(): void; + SpecialEffect: number; + Tag: string; + Visible: boolean; + WillContinue: boolean; + } + + class SharedResource { + private 'Access.SharedResource_typekey': SharedResource; + private constructor(); + Delete(): void; + IsMemberSafe(dispid: number): boolean; + Name: string; + readonly Parent: any; + readonly Type: AcResourceType; + } + + class SharedResources { + private 'Access.SharedResources_typekey': SharedResources; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: number): SharedResource; + readonly Parent: any; + } + + class SmartTag { + private 'Access.SmartTag_typekey': SmartTag; + private constructor(); + readonly Application: Application; + Delete(): void; + IsMemberSafe(dispid: number): boolean; + readonly IsMissing: boolean; + readonly Name: string; + readonly Parent: any; + readonly Properties: SmartTagProperties; + readonly SmartTagActions: SmartTagActions; + readonly XML: string; + } + + class SmartTagAction { + private 'Access.SmartTagAction_typekey': SmartTagAction; + private constructor(); + readonly Application: Application; + Execute(): void; + IsMemberSafe(dispid: number): boolean; + readonly Name: string; + readonly Parent: any; + } + + class SmartTagActions { + private 'Access.SmartTagActions_typekey': SmartTagActions; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): SmartTagAction; + readonly Parent: any; + } + + class SmartTagProperties { + private 'Access.SmartTagProperties_typekey': SmartTagProperties; + private constructor(); + Add(Name: string, Value: any): SmartTagProperty; + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): SmartTagProperty; + readonly Parent: any; + } + + class SmartTagProperty { + private 'Access.SmartTagProperty_typekey': SmartTagProperty; + private constructor(); + Delete(): void; + IsMemberSafe(dispid: number): boolean; + Name: string; + Value: string; + } + + class SmartTags { + private 'Access.SmartTags_typekey': SmartTags; + private constructor(); + Add(Name: string): SmartTag; + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): SmartTag; + readonly Parent: any; + } + + class SubForm { + private 'Access.SubForm_typekey': SubForm; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + readonly Application: Application; + AutoLabel: boolean; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + CanGrow: boolean; + CanShrink: boolean; + ControlName: string; + readonly Controls: Controls; + ControlType: number; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + FilterOnEmptyMaster: boolean; + readonly Form: Form; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HorizontalAnchor: AcHorizontalAnchor; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + LinkChildFields: string; + LinkMasterFields: string; + Locked: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + OldBorderStyle: number; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + readonly Parent: any; + readonly Properties: Properties; + readonly Report: Report; + Requery(): void; + RightPadding: number; + Section: number; + SetFocus(): void; + SizeToFit(): void; + SourceObject: string; + SpecialEffect: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + TopPadding: number; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class SubReport { + private 'Access.SubReport_typekey': SubReport; + private constructor(); + readonly Application: Application; + readonly Form: Form; + IsMemberSafe(dispid: number): boolean; + readonly Parent: any; + readonly Report: Report; + } + + class TabControl { + private 'Access.TabControl_typekey': TabControl; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + readonly Application: Application; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BorderColor: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BottomPadding: number; + ControlName: string; + ControlType: number; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + FontBold: number; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + ForeShade: number; + ForeThemeColorIndex: number; + ForeTint: number; + Gradient: number; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + HoverColor: number; + HoverForeColor: number; + HoverForeShade: number; + HoverForeThemeColorIndex: number; + HoverForeTint: number; + HoverShade: number; + HoverThemeColorIndex: number; + HoverTint: number; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + MultiRow: boolean; + Name: string; + readonly OldValue: any; + OnChange: string; + OnChangeMacro: string; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + readonly Pages: Pages; + readonly Parent: any; + PressedColor: number; + PressedForeColor: number; + PressedForeShade: number; + PressedForeThemeColorIndex: number; + PressedForeTint: number; + PressedShade: number; + PressedThemeColorIndex: number; + PressedTint: number; + readonly Properties: Properties; + RightPadding: number; + Section: number; + Shape: number; + ShortcutMenuBar: string; + SizeToFit(): void; + StatusBarText: string; + Style: number; + TabFixedHeight: number; + TabFixedWidth: number; + TabIndex: number; + TabStop: boolean; + Tag: string; + TextFontCharSet: number; + ThemeFontIndex: number; + Top: number; + TopPadding: number; + UseTheme: boolean; + Value: any; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class TempVar { + private 'Access.TempVar_typekey': TempVar; + private constructor(); + _Value: any; + IsMemberSafe(dispid: number): boolean; + readonly Name: string; + Value: any; + } + + class TempVars { + private 'Access.TempVars_typekey': TempVars; + private constructor(); + Add(Name: string, Value: any): void; + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): TempVar; + readonly Parent: any; + Remove(var_0: any): void; + RemoveAll(): void; + } + + class TextBox { + private 'Access.TextBox_typekey': TextBox; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + AfterUpdate: string; + AfterUpdateMacro: string; + AllowAutoCorrect: boolean; + AllowedText: number; + readonly Application: Application; + AsianLineBreak: boolean; + AutoLabel: boolean; + AutoTab: boolean; + BackColor: number; + BackShade: number; + BackStyle: number; + BackThemeColorIndex: number; + BackTint: number; + BeforeUpdate: string; + BeforeUpdateMacro: string; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomMargin: number; + BottomPadding: number; + CanGrow: boolean; + CanShrink: boolean; + Coltyp: number; + ColumnHidden: boolean; + ColumnOrder: number; + ColumnWidth: number; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + DecimalPlaces: number; + DefaultValue: string; + DisplayAsHyperlink: AcDisplayAsHyperlink; + DisplayWhen: number; + Enabled: boolean; + EnterKeyBehavior: boolean; + EventProcPrefix: string; + FELineBreak: boolean; + FilterLookup: number; + FontBold: number; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + ForeShade: number; + ForeThemeColorIndex: number; + ForeTint: number; + Format: string; + readonly FormatConditions: FormatConditions; + FormatPictureText: string; + FuriganaControl: string; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HideDuplicates: boolean; + HorizontalAnchor: AcHorizontalAnchor; + readonly Hyperlink: Hyperlink; + IMEHold: boolean; + IMEMode: AcImeMode; + IMESentenceMode: AcImeSentenceMode; + InputMask: string; + InSelection: boolean; + IsHyperlink: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + KeyboardLanguage: number; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftMargin: number; + LeftPadding: number; + LineSpacing: number; + Locked: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + NumeralShapes: number; + OldBorderStyle: number; + readonly OldValue: any; + OnChange: string; + OnChangeMacro: string; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnDirty: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OnUndo: string; + readonly Parent: any; + PostalAddress: string; + readonly Properties: Properties; + ReadingOrder: number; + Requery(): void; + RightMargin: number; + RightPadding: number; + RunningSum: number; + ScrollBarAlign: number; + ScrollBars: number; + Section: number; + SelLength: number; + SelStart: number; + SelText: string; + SetFocus(): void; + ShortcutMenuBar: string; + ShowDatePicker: number; + SizeToFit(): void; + readonly SmartTags: SmartTags; + SpecialEffect: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Target: string; + Text: string; + TextAlign: number; + TextAlignGeneral: number; + TextFontCharSet: number; + TextFormat: AcTextFormat; + ThemeFontIndex: number; + Top: number; + TopMargin: number; + TopPadding: number; + Undo(): void; + ValidationRule: string; + ValidationText: string; + Value: any; + Vertical: boolean; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class ToggleButton { + private 'Access.ToggleButton_typekey': ToggleButton; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + _Name: string; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddColon: boolean; + AfterUpdate: string; + AfterUpdateMacro: string; + readonly Application: Application; + AutoLabel: boolean; + BackColor: number; + BackShade: number; + BackThemeColorIndex: number; + BackTint: number; + BeforeUpdate: string; + BeforeUpdateMacro: string; + Bevel: number; + BorderColor: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + Caption: string; + ColumnHidden: boolean; + ColumnOrder: number; + ColumnWidth: number; + ControlName: string; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + DefaultValue: string; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + FontBold: number; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + ForeShade: number; + ForeThemeColorIndex: number; + ForeTint: number; + Glow: number; + Goto(): void; + Gradient: number; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HideDuplicates: boolean; + HorizontalAnchor: AcHorizontalAnchor; + HoverColor: number; + HoverForeColor: number; + HoverForeShade: number; + HoverForeThemeColorIndex: number; + HoverForeTint: number; + HoverShade: number; + HoverThemeColorIndex: number; + HoverTint: number; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + IsVisible: boolean; + LabelAlign: number; + LabelX: number; + LabelY: number; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + Locked: boolean; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + ObjectPalette: any; + readonly OldValue: any; + OnClick: string; + OnClickMacro: string; + OnDblClick: string; + OnDblClickMacro: string; + OnEnter: string; + OnEnterMacro: string; + OnExit: string; + OnExitMacro: string; + OnGotFocus: string; + OnGotFocusMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnLostFocus: string; + OnLostFocusMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OptionValue: number; + readonly Parent: any; + Picture: string; + PictureData: any; + PictureType: number; + PressedColor: number; + PressedForeColor: number; + PressedForeShade: number; + PressedForeThemeColorIndex: number; + PressedForeTint: number; + PressedShade: number; + PressedThemeColorIndex: number; + PressedTint: number; + readonly Properties: Properties; + QuickStyle: number; + QuickStyleMask: number; + ReadingOrder: number; + Requery(): void; + RightPadding: number; + Section: number; + SetFocus(): void; + Shadow: number; + Shape: number; + ShortcutMenuBar: string; + SizeToFit(): void; + SoftEdges: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + TextFontCharSet: number; + ThemeFontIndex: number; + Top: number; + TopPadding: number; + TripleState: boolean; + Undo(): void; + UseTheme: boolean; + ValidationRule: string; + ValidationText: string; + Value: any; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class WebBrowserControl { + private 'Access.WebBrowserControl_typekey': WebBrowserControl; + private constructor(); + _Evaluate(bstrExpr: string, ...ppsa: any[]): any; + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + readonly Application: Application; + BorderColor: number; + BorderLineStyle: number; + BorderShade: number; + BorderStyle: number; + BorderThemeColorIndex: number; + BorderTint: number; + BorderWidth: number; + BottomPadding: number; + readonly Controls: Children; + ControlSource: string; + ControlTipText: string; + ControlType: number; + DisplayWhen: number; + Enabled: boolean; + EventProcPrefix: string; + Goto(): void; + GridlineColor: number; + GridlineShade: number; + GridlineStyleBottom: number; + GridlineStyleLeft: number; + GridlineStyleRight: number; + GridlineStyleTop: number; + GridlineThemeColorIndex: number; + GridlineTint: number; + GridlineWidthBottom: number; + GridlineWidthLeft: number; + GridlineWidthRight: number; + GridlineWidthTop: number; + Height: number; + HelpContextId: number; + HorizontalAnchor: AcHorizontalAnchor; + readonly Hyperlink: Hyperlink; + InSelection: boolean; + IsMemberSafe(dispid: number): boolean; + readonly Layout: AcLayoutType; + readonly LayoutID: number; + Left: number; + LeftPadding: number; + readonly LocationURL: string; + Move(Left: any, Top?: any, Width?: any, Height?: any): void; + Name: string; + readonly Object: any; + readonly OldValue: any; + OnBeforeNavigate: string; + OnBeforeNavigateMacro: string; + OnClickMacro: string; + OnDblClickMacro: string; + OnDocumentComplete: string; + OnDocumentCompleteMacro: string; + OnKeyDown: string; + OnKeyDownMacro: string; + OnKeyPress: string; + OnKeyPressMacro: string; + OnKeyUp: string; + OnKeyUpMacro: string; + OnMouseDown: string; + OnMouseDownMacro: string; + OnMouseMove: string; + OnMouseMoveMacro: string; + OnMouseUp: string; + OnMouseUpMacro: string; + OnNavigateError: string; + OnNavigateErrorMacro: string; + OnProgressChange: string; + OnProgressChangeMacro: string; + OnUpdated: string; + OnUpdatedMacro: string; + readonly Parent: any; + readonly Progress: number; + readonly Properties: Properties; + readonly ReadyState: AcWebBrowserState; + Requery(): void; + RightPadding: number; + ScrollBars: AcWebBrowserScrollBars; + ScrollLeft: number; + ScrollTop: number; + Section: number; + SetFocus(): void; + SizeToFit(): void; + SpecialEffect: number; + StatusBarText: string; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + TopPadding: number; + Transform: string; + Undo(): void; + Value: any; + VerticalAnchor: AcVerticalAnchor; + Visible: boolean; + Width: number; + } + + class WebOptions { + private 'Access.WebOptions_typekey': WebOptions; + private constructor(); + readonly Application: Application; + DownloadComponents: boolean; + Encoding: Office.MsoEncoding; + readonly FolderSuffix: string; + IsMemberSafe(dispid: number): boolean; + LocationOfComponents: string; + OrganizeInFolder: boolean; + readonly Parent: any; + TargetBrowser: Office.MsoTargetBrowser; + UseDefaultFolderSuffix(): void; + UseLongFileNames: boolean; + } + + class WebService { + private 'Access.WebService_typekey': WebService; + private constructor(); + readonly Entities: Entities; + IsMemberSafe(dispid: number): boolean; + readonly Name: string; + readonly Parent: any; + } + + class WebServices { + private 'Access.WebServices_typekey': WebServices; + private constructor(); + readonly Application: Application; + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): WebService; + readonly Parent: any; + } + + class WizHook { + private 'Access.WizHook_typekey': WizHook; + private constructor(); + AccessUserDataDir(): string; + AccessWizFilePath(bstrWhich: string): string; + AdpUIDPwd(pbstrUID: string, pbstrPwd: string): boolean; + AnalyzeQuery(Workspace: DAO.Workspace, Database: DAO.Database, Query: string, Results: string): number; + AnalyzeTable(Workspace: DAO.Workspace, Database: DAO.Database, Table: string, ReturnDebugInfo: boolean, Results: string): number; + ArgsOfActid(Actid: number): number; + BracketString(String: string, flags: number): boolean; + CacheStatus(bstrStatus: string): void; + CloseCurrentDatabase(): boolean; + CreateDataPageControl(DpName: string, CtlName: string, Typ: number, Section: string, SectionType: number, AppletCode: string, X: number, Y: number, dx: number, dy: number): void; + CurrentLangID(): number; + readonly DbcVbProject: VBIDE.VBProject; + EmbedFileOnDataPage(DpName: string, FileToInsert: string): string; + EnglishPictToLocal(In: string, Out: string): boolean; + ExecuteTempImexSpec(bstrSpecXML: string): void; + FCacheStatus(): boolean; + FCreateNameMap(objtyp: number, bstrObjName: string): boolean; + FGetMSDE(fBlockKeys: boolean): boolean; + FileExists(File: string): boolean; + FirstDbcDataObject(Name: string, ObjType: AcObjectType, Attribs: number): boolean; + FIsFEWch(wch: number): boolean; + FIsPublishedXasTable(bstrObjectName: string): boolean; + FIsValidXasObjectName(bstrObjectName: string, iobjtyp: AcObjectType): boolean; + FIsXasDb(): boolean; + FullPath(RelativePath: string, FullPath: string): number; + GetAccWizRCPath(): string; + GetAdeRegistryPath(): string; + GetColumns(bstrBase: string): string; + GetCurrentView(bstrTableName: string): number; + GetDisabledExtensions(): string; + GetFileName( + hwndOwner: number, AppName: string, DlgTitle: string, OpenTitle: string, File: string, InitialDir: string, Filter: string, FilterIndex: number, View: number, + flags: number, fOpen: boolean): number; + GetFileName2( + hwndOwner: number, AppName: string, DlgTitle: string, OpenTitle: string, File: string, InitialDir: string, Filter: string, FilterIndex: number, View: number, + flags: number, fOpen: boolean, fFileSystem: any): number; + GetFileOdso(bstrExt: string, bstrFilename: string): number; + GetImexTblName(): string; + GetInfoForColumns(bstrBase: string): string; + GetLinkedListProperty(bstrTableName: string, bstrPropertyName: string, fServer: boolean): string; + GetObjPubOption(bstrObjectName: string, iobjtyp: AcObjectType, fTablesAsClient: boolean): number; + GetScriptString(HScr: number, ScriptColumn: number, Value: string): boolean; + GetWizGlob(lWhich: number): any; + GlobalProcExists(Name: string): boolean; + HideDates(): boolean; + IsMatchToDbcConnectString(bstrConnectionString: string): boolean; + IsMemberSafe(dispid: number): boolean; + IsValidIdent(Identifier: string): boolean; + readonly Key: number; + KeyboardLangID(): number; + KnownWizLeaks(fStart: boolean): void; + LoadImexSpecSolution(bstrFilename: string): void; + LocalFont(): string; + NameFromActid(Actid: number): string; + ObjTypOfRecordSource(RecordSource: string): number; + OfficeAddInDir(): string; + OpenEmScript(pProperty: _AccessProperty, OpenMode: number, Extra: number, Version: number): number; + OpenPictureFile(File: string, Cancelled: boolean): boolean; + OpenScript(Script: string, Label: string, OpenMode: number, Extra: number, Version: number): number; + ReportLeaksToFile(fRptToFile: boolean, bstrFileOut: string): void; + SaveObject(bstrName: string, objtyp: number): void; + SaveScriptString(HScr: number, ScriptColumn: number, Value: string): boolean; + SetDefaultSpecName(bstrSpecName: string): void; + SetDpBlockKeyInput(fBlockKeys: boolean): void; + SetVbaPassword(bstrDbName: string, bstrConnect: string, bstrPasswd: string): boolean; + SetWizGlob(lWhich: number, vValue: any): void; + SortStringArray(Array: SafeArray): void; + SplitPath(Path: string, Drive: string, Dir: string, File: string, Ext: string): void; + TableFieldHasUniqueIndex(Table: string, Columns: string): boolean; + TranslateExpression(In: string, Out: string, ParseFlags: number, TranslateFlags: number): boolean; + TwipsFromFont(FontName: string, Size: number, Weight: number, Italic: boolean, Underline: boolean, Cch: number, Caption: string, MaxWidthCch: number, dx: number, dy: number): boolean; + WizCopyCmdbars(bstrADPName: string): void; + WizHelp(HelpFile: string, wCmd: number, ContextID: number): boolean; + WizMsgBox(bstrText: string, bstrCaption: string, wStyle: number, idHelpID: number, bstrHelpFileName: string): number; + } + + class WSParameter { + private 'Access.WSParameter_typekey': WSParameter; + private constructor(); + IsMemberSafe(dispid: number): boolean; + readonly Name: string; + readonly Parent: any; + readonly Type: number; + } + + class WSParameters { + private 'Access.WSParameters_typekey': WSParameters; + private constructor(); + readonly Count: number; + IsMemberSafe(dispid: number): boolean; + Item(Index: any): WSParameter; + readonly Parent: any; + } + + namespace EventHelperTypes { + type WebBrowserControl_BeforeNavigate2_ArgNames = ['pDisp', 'URL', 'flags', 'TargetFrameName', 'PostData', 'Headers', 'Cancel']; + + interface WebBrowserControl_BeforeNavigate2_Parameter { + Cancel: boolean; + readonly flags: any; + readonly Headers: any; + readonly pDisp: any; + readonly PostData: any; + readonly TargetFrameName: any; + readonly URL: any; + } + } +} + +interface ActiveXObject { + on(obj: Access._CheckBoxInOption, event: 'BeforeUpdate' | 'DblClick' | 'Exit', argNames: ['Cancel'], handler: (this: Access._CheckBoxInOption, parameter: {Cancel: number}) => void): void; + on(obj: Access._CheckBoxInOption, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access._CheckBoxInOption, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access._CheckBoxInOption, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access._CheckBoxInOption, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access._CheckBoxInOption, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access._CheckBoxInOption, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access._OptionButtonInOption, event: 'BeforeUpdate' | 'DblClick' | 'Exit', argNames: ['Cancel'], handler: (this: Access._OptionButtonInOption, parameter: {Cancel: number}) => void): void; + on( + obj: Access._OptionButtonInOption, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: Access._OptionButtonInOption, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access._OptionButtonInOption, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access._OptionButtonInOption, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access._OptionButtonInOption, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], + handler: (this: Access._OptionButtonInOption, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access._PageHdrFtrInReport, event: 'DblClick', argNames: ['Cancel'], handler: (this: Access._PageHdrFtrInReport, parameter: {Cancel: number}) => void): void; + on( + obj: Access._PageHdrFtrInReport, event: 'Format', argNames: ['Cancel', 'FormatCount'], handler: ( + this: Access._PageHdrFtrInReport, parameter: {Cancel: number, FormatCount: number}) => void): void; + on( + obj: Access._PageHdrFtrInReport, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access._PageHdrFtrInReport, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access._PageHdrFtrInReport, event: 'Print', argNames: ['Cancel', 'PrintCount'], handler: (this: Access._PageHdrFtrInReport, parameter: {Cancel: number, PrintCount: number}) => void): void; + on(obj: Access._SectionInReport, event: 'DblClick', argNames: ['Cancel'], handler: (this: Access._SectionInReport, parameter: {Cancel: number}) => void): void; + on(obj: Access._SectionInReport, event: 'Format', argNames: ['Cancel', 'FormatCount'], handler: (this: Access._SectionInReport, parameter: {Cancel: number, FormatCount: number}) => void): void; + on( + obj: Access._SectionInReport, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access._SectionInReport, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access._SectionInReport, event: 'Print', argNames: ['Cancel', 'PrintCount'], handler: (this: Access._SectionInReport, parameter: {Cancel: number, PrintCount: number}) => void): void; + on(obj: Access._ToggleButtonInOption, event: 'BeforeUpdate' | 'DblClick' | 'Exit', argNames: ['Cancel'], handler: (this: Access._ToggleButtonInOption, parameter: {Cancel: number}) => void): void; + on( + obj: Access._ToggleButtonInOption, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: Access._ToggleButtonInOption, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access._ToggleButtonInOption, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access._ToggleButtonInOption, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access._ToggleButtonInOption, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], + handler: (this: Access._ToggleButtonInOption, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.Attachment, event: 'BeforeUpdate' | 'DblClick' | 'Dirty' | 'Exit', argNames: ['Cancel'], handler: (this: Access.Attachment, parameter: {Cancel: number}) => void): void; + on(obj: Access.Attachment, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.Attachment, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.Attachment, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.Attachment, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.Attachment, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.Attachment, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.BoundObjectFrame, event: 'BeforeUpdate' | 'DblClick' | 'Exit', argNames: ['Cancel'], handler: (this: Access.BoundObjectFrame, parameter: {Cancel: number}) => void): void; + on(obj: Access.BoundObjectFrame, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.BoundObjectFrame, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.BoundObjectFrame, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.BoundObjectFrame, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.BoundObjectFrame, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.BoundObjectFrame, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.BoundObjectFrame, event: 'Updated', argNames: ['Code'], handler: (this: Access.BoundObjectFrame, parameter: {Code: number}) => void): void; + on(obj: Access.CheckBox, event: 'BeforeUpdate' | 'DblClick' | 'Exit', argNames: ['Cancel'], handler: (this: Access.CheckBox, parameter: {Cancel: number}) => void): void; + on(obj: Access.CheckBox, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.CheckBox, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.CheckBox, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.CheckBox, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.CheckBox, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.CheckBox, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.ComboBox, event: 'BeforeUpdate' | 'DblClick' | 'Dirty' | 'Exit' | 'Undo', argNames: ['Cancel'], handler: (this: Access.ComboBox, parameter: {Cancel: number}) => void): void; + on(obj: Access.ComboBox, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.ComboBox, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.ComboBox, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.ComboBox, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.ComboBox, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.ComboBox, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.ComboBox, event: 'NotInList', argNames: ['NewData', 'Response'], handler: (this: Access.ComboBox, parameter: {NewData: string, Response: number}) => void): void; + on(obj: Access.CommandButton, event: 'DblClick' | 'Exit', argNames: ['Cancel'], handler: (this: Access.CommandButton, parameter: {Cancel: number}) => void): void; + on(obj: Access.CommandButton, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.CommandButton, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.CommandButton, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.CommandButton, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.CommandButton, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.CommandButton, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.CustomControl, event: 'Exit', argNames: ['Cancel'], handler: (this: Access.CustomControl, parameter: {Cancel: number}) => void): void; + on(obj: Access.CustomControl, event: 'Updated', argNames: ['Code'], handler: (this: Access.CustomControl, parameter: {Code: number}) => void): void; + on(obj: Access.Form, event: 'AfterDelConfirm', argNames: ['Status'], handler: (this: Access.Form, parameter: {Status: number}) => void): void; + on(obj: Access.Form, event: 'AfterFinalRender' | 'AfterLayout', argNames: ['drawObject'], handler: (this: Access.Form, parameter: {readonly drawObject: any}) => void): void; + on(obj: Access.Form, event: 'AfterRender', argNames: ['drawObject', 'chartObject'], handler: (this: Access.Form, parameter: {readonly drawObject: any, readonly chartObject: any}) => void): void; + on(obj: Access.Form, event: 'ApplyFilter', argNames: ['Cancel', 'ApplyType'], handler: (this: Access.Form, parameter: {Cancel: number, ApplyType: number}) => void): void; + on(obj: Access.Form, event: 'BeforeDelConfirm', argNames: ['Cancel', 'Response'], handler: (this: Access.Form, parameter: {Cancel: number, Response: number}) => void): void; + on( + obj: Access.Form, event: 'BeforeInsert' | 'BeforeUpdate' | 'BeginBatchEdit' | 'DblClick' | 'Delete' | 'Dirty' | 'Open' | 'RecordExit' | 'Undo' | 'UndoBatchEdit' | + 'Unload', + argNames: ['Cancel'], handler: (this: Access.Form, parameter: {Cancel: number}) => void): void; + on( + obj: Access.Form, event: 'BeforeRender', argNames: ['drawObject', 'chartObject', 'Cancel'], handler: ( + this: Access.Form, parameter: {readonly drawObject: any, readonly chartObject: any, readonly Cancel: any}) => void): void; + on( + obj: Access.Form, event: 'BeforeScreenTip', argNames: ['ScreenTipText', 'SourceObject'], handler: ( + this: Access.Form, parameter: {readonly ScreenTipText: any, readonly SourceObject: any}) => void): void; + on(obj: Access.Form, event: 'CommandBeforeExecute', argNames: ['Command', 'Cancel'], handler: (this: Access.Form, parameter: {readonly Command: any, readonly Cancel: any}) => void): void; + on(obj: Access.Form, event: 'CommandChecked', argNames: ['Command', 'Checked'], handler: (this: Access.Form, parameter: {readonly Command: any, readonly Checked: any}) => void): void; + on(obj: Access.Form, event: 'CommandEnabled', argNames: ['Command', 'Enabled'], handler: (this: Access.Form, parameter: {readonly Command: any, readonly Enabled: any}) => void): void; + on(obj: Access.Form, event: 'CommandExecute', argNames: ['Command'], handler: (this: Access.Form, parameter: {readonly Command: any}) => void): void; + on(obj: Access.Form, event: 'DataChange' | 'PivotTableChange' | 'ViewChange', argNames: ['Reason'], handler: (this: Access.Form, parameter: {readonly Reason: number}) => void): void; + on(obj: Access.Form, event: 'Error', argNames: ['DataErr', 'Response'], handler: (this: Access.Form, parameter: {DataErr: number, Response: number}) => void): void; + on(obj: Access.Form, event: 'Filter', argNames: ['Cancel', 'FilterType'], handler: (this: Access.Form, parameter: {Cancel: number, FilterType: number}) => void): void; + on(obj: Access.Form, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.Form, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.Form, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.Form, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.Form, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.Form, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.Form, event: 'MouseWheel', argNames: ['Page', 'Count'], handler: (this: Access.Form, parameter: {readonly Page: boolean, readonly Count: number}) => void): void; + on( + obj: Access.FormOld, event: 'AfterBeginTransaction' | 'AfterCommitTransaction' | 'RollbackTransaction', argNames: ['Connection'], handler: ( + this: Access.FormOld, parameter: {readonly Connection: ADODB.Connection}) => void): void; + on(obj: Access.FormOld, event: 'AfterDelConfirm', argNames: ['Status'], handler: (this: Access.FormOld, parameter: {Status: number}) => void): void; + on(obj: Access.FormOld, event: 'AfterFinalRender' | 'AfterLayout', argNames: ['drawObject'], handler: (this: Access.FormOld, parameter: {readonly drawObject: any}) => void): void; + on( + obj: Access.FormOld, event: 'AfterRender', argNames: ['drawObject', 'chartObject'], handler: ( + this: Access.FormOld, parameter: {readonly drawObject: any, readonly chartObject: any}) => void): void; + on(obj: Access.FormOld, event: 'ApplyFilter', argNames: ['Cancel', 'ApplyType'], handler: (this: Access.FormOld, parameter: {Cancel: number, ApplyType: number}) => void): void; + on( + obj: Access.FormOld, event: 'BeforeBeginTransaction' | 'BeforeCommitTransaction', argNames: ['Cancel', 'Connection'], handler: ( + this: Access.FormOld, parameter: {Cancel: number, readonly Connection: ADODB.Connection}) => void): void; + on(obj: Access.FormOld, event: 'BeforeDelConfirm', argNames: ['Cancel', 'Response'], handler: (this: Access.FormOld, parameter: {Cancel: number, Response: number}) => void): void; + on( + obj: Access.FormOld, event: 'BeforeInsert' | 'BeforeUpdate' | 'BeginBatchEdit' | 'DblClick' | 'Delete' | 'Dirty' | 'Open' | 'RecordExit' | 'Undo' | + 'UndoBatchEdit' | 'Unload', + argNames: ['Cancel'], handler: (this: Access.FormOld, parameter: {Cancel: number}) => void): void; + on( + obj: Access.FormOld, event: 'BeforeRender', argNames: ['drawObject', 'chartObject', 'Cancel'], handler: ( + this: Access.FormOld, parameter: {readonly drawObject: any, readonly chartObject: any, readonly Cancel: any}) => void): void; + on( + obj: Access.FormOld, event: 'BeforeScreenTip', argNames: ['ScreenTipText', 'SourceObject'], handler: ( + this: Access.FormOld, parameter: {readonly ScreenTipText: any, readonly SourceObject: any}) => void): void; + on(obj: Access.FormOld, event: 'CommandBeforeExecute', argNames: ['Command', 'Cancel'], handler: (this: Access.FormOld, parameter: {readonly Command: any, readonly Cancel: any}) => void): void; + on(obj: Access.FormOld, event: 'CommandChecked', argNames: ['Command', 'Checked'], handler: (this: Access.FormOld, parameter: {readonly Command: any, readonly Checked: any}) => void): void; + on(obj: Access.FormOld, event: 'CommandEnabled', argNames: ['Command', 'Enabled'], handler: (this: Access.FormOld, parameter: {readonly Command: any, readonly Enabled: any}) => void): void; + on(obj: Access.FormOld, event: 'CommandExecute', argNames: ['Command'], handler: (this: Access.FormOld, parameter: {readonly Command: any}) => void): void; + on(obj: Access.FormOld, event: 'DataChange' | 'PivotTableChange' | 'ViewChange', argNames: ['Reason'], handler: (this: Access.FormOld, parameter: {readonly Reason: number}) => void): void; + on(obj: Access.FormOld, event: 'Error', argNames: ['DataErr', 'Response'], handler: (this: Access.FormOld, parameter: {DataErr: number, Response: number}) => void): void; + on(obj: Access.FormOld, event: 'Filter', argNames: ['Cancel', 'FilterType'], handler: (this: Access.FormOld, parameter: {Cancel: number, FilterType: number}) => void): void; + on(obj: Access.FormOld, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.FormOld, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.FormOld, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.FormOld, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.FormOld, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.FormOld, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.FormOld, event: 'MouseWheel', argNames: ['Page', 'Count'], handler: (this: Access.FormOld, parameter: {readonly Page: boolean, readonly Count: number}) => void): void; + on( + obj: Access.FormOldV10, event: 'AfterBeginTransaction' | 'AfterCommitTransaction' | 'RollbackTransaction', argNames: ['Connection'], + handler: (this: Access.FormOldV10, parameter: {readonly Connection: ADODB.Connection}) => void): void; + on(obj: Access.FormOldV10, event: 'AfterDelConfirm', argNames: ['Status'], handler: (this: Access.FormOldV10, parameter: {Status: number}) => void): void; + on(obj: Access.FormOldV10, event: 'AfterFinalRender' | 'AfterLayout', argNames: ['drawObject'], handler: (this: Access.FormOldV10, parameter: {readonly drawObject: any}) => void): void; + on( + obj: Access.FormOldV10, event: 'AfterRender', argNames: ['drawObject', 'chartObject'], handler: ( + this: Access.FormOldV10, parameter: {readonly drawObject: any, readonly chartObject: any}) => void): void; + on(obj: Access.FormOldV10, event: 'ApplyFilter', argNames: ['Cancel', 'ApplyType'], handler: (this: Access.FormOldV10, parameter: {Cancel: number, ApplyType: number}) => void): void; + on( + obj: Access.FormOldV10, event: 'BeforeBeginTransaction' | 'BeforeCommitTransaction', argNames: ['Cancel', 'Connection'], handler: ( + this: Access.FormOldV10, parameter: {Cancel: number, readonly Connection: ADODB.Connection}) => void): void; + on(obj: Access.FormOldV10, event: 'BeforeDelConfirm', argNames: ['Cancel', 'Response'], handler: (this: Access.FormOldV10, parameter: {Cancel: number, Response: number}) => void): void; + on( + obj: Access.FormOldV10, event: 'BeforeInsert' | 'BeforeUpdate' | 'BeginBatchEdit' | 'DblClick' | 'Delete' | 'Dirty' | 'Open' | 'RecordExit' | 'Undo' | + 'UndoBatchEdit' | 'Unload', + argNames: ['Cancel'], handler: (this: Access.FormOldV10, parameter: {Cancel: number}) => void): void; + on( + obj: Access.FormOldV10, event: 'BeforeRender', argNames: ['drawObject', 'chartObject', 'Cancel'], handler: ( + this: Access.FormOldV10, parameter: {readonly drawObject: any, readonly chartObject: any, readonly Cancel: any}) => void): void; + on( + obj: Access.FormOldV10, event: 'BeforeScreenTip', argNames: ['ScreenTipText', 'SourceObject'], handler: ( + this: Access.FormOldV10, parameter: {readonly ScreenTipText: any, readonly SourceObject: any}) => void): void; + on( + obj: Access.FormOldV10, event: 'CommandBeforeExecute', argNames: ['Command', 'Cancel'], handler: ( + this: Access.FormOldV10, parameter: {readonly Command: any, readonly Cancel: any}) => void): void; + on(obj: Access.FormOldV10, event: 'CommandChecked', argNames: ['Command', 'Checked'], handler: (this: Access.FormOldV10, parameter: {readonly Command: any, readonly Checked: any}) => void): void; + on(obj: Access.FormOldV10, event: 'CommandEnabled', argNames: ['Command', 'Enabled'], handler: (this: Access.FormOldV10, parameter: {readonly Command: any, readonly Enabled: any}) => void): void; + on(obj: Access.FormOldV10, event: 'CommandExecute', argNames: ['Command'], handler: (this: Access.FormOldV10, parameter: {readonly Command: any}) => void): void; + on(obj: Access.FormOldV10, event: 'DataChange' | 'PivotTableChange' | 'ViewChange', argNames: ['Reason'], handler: (this: Access.FormOldV10, parameter: {readonly Reason: number}) => void): void; + on(obj: Access.FormOldV10, event: 'Error', argNames: ['DataErr', 'Response'], handler: (this: Access.FormOldV10, parameter: {DataErr: number, Response: number}) => void): void; + on(obj: Access.FormOldV10, event: 'Filter', argNames: ['Cancel', 'FilterType'], handler: (this: Access.FormOldV10, parameter: {Cancel: number, FilterType: number}) => void): void; + on(obj: Access.FormOldV10, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.FormOldV10, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.FormOldV10, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.FormOldV10, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.FormOldV10, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.FormOldV10, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.FormOldV10, event: 'MouseWheel', argNames: ['Page', 'Count'], handler: (this: Access.FormOldV10, parameter: {readonly Page: boolean, readonly Count: number}) => void): void; + on(obj: Access.Image, event: 'DblClick', argNames: ['Cancel'], handler: (this: Access.Image, parameter: {Cancel: number}) => void): void; + on( + obj: Access.Image, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.Image, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.Label, event: 'DblClick', argNames: ['Cancel'], handler: (this: Access.Label, parameter: {Cancel: number}) => void): void; + on( + obj: Access.Label, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.Label, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.ListBox, event: 'BeforeUpdate' | 'DblClick' | 'Exit', argNames: ['Cancel'], handler: (this: Access.ListBox, parameter: {Cancel: number}) => void): void; + on(obj: Access.ListBox, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.ListBox, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.ListBox, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.ListBox, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.ListBox, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.ListBox, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.NavigationButton, event: 'DblClick' | 'Exit', argNames: ['Cancel'], handler: (this: Access.NavigationButton, parameter: {Cancel: number}) => void): void; + on(obj: Access.NavigationButton, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.NavigationButton, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.NavigationButton, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.NavigationButton, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.NavigationButton, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.NavigationButton, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on( + obj: Access.NavigationControl, event: 'BeforeUpdate' | 'DblClick' | 'Dirty' | 'Exit' | 'Undo', argNames: ['Cancel'], handler: ( + this: Access.NavigationControl, parameter: {Cancel: number}) => void): void; + on(obj: Access.NavigationControl, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.NavigationControl, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.NavigationControl, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.NavigationControl, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.NavigationControl, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.NavigationControl, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.ObjectFrame, event: 'DblClick' | 'Exit', argNames: ['Cancel'], handler: (this: Access.ObjectFrame, parameter: {Cancel: number}) => void): void; + on( + obj: Access.ObjectFrame, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.ObjectFrame, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.ObjectFrame, event: 'Updated', argNames: ['Code'], handler: (this: Access.ObjectFrame, parameter: {Code: number}) => void): void; + on(obj: Access.OptionButton, event: 'BeforeUpdate' | 'DblClick' | 'Exit', argNames: ['Cancel'], handler: (this: Access.OptionButton, parameter: {Cancel: number}) => void): void; + on(obj: Access.OptionButton, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.OptionButton, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.OptionButton, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.OptionButton, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.OptionButton, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.OptionButton, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.OptionGroup, event: 'BeforeUpdate' | 'DblClick' | 'Exit', argNames: ['Cancel'], handler: (this: Access.OptionGroup, parameter: {Cancel: number}) => void): void; + on( + obj: Access.OptionGroup, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.OptionGroup, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.Page, event: 'DblClick', argNames: ['Cancel'], handler: (this: Access.Page, parameter: {Cancel: number}) => void): void; + on( + obj: Access.Page, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.Page, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.PaletteButton, event: 'BeforeUpdate' | 'DblClick' | 'Exit', argNames: ['Cancel'], handler: (this: Access.PaletteButton, parameter: {Cancel: number}) => void): void; + on(obj: Access.PaletteButton, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.PaletteButton, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.PaletteButton, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.PaletteButton, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.PaletteButton, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.PaletteButton, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.Rectangle, event: 'DblClick', argNames: ['Cancel'], handler: (this: Access.Rectangle, parameter: {Cancel: number}) => void): void; + on( + obj: Access.Rectangle, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.Rectangle, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.References, event: 'ItemAdded' | 'ItemRemoved', argNames: ['Reference'], handler: (this: Access.References, parameter: {readonly Reference: Access.Reference}) => void): void; + on(obj: Access.Report, event: 'ApplyFilter', argNames: ['Cancel', 'ApplyType'], handler: (this: Access.Report, parameter: {Cancel: number, ApplyType: number}) => void): void; + on(obj: Access.Report, event: 'DblClick' | 'NoData' | 'Open' | 'Unload', argNames: ['Cancel'], handler: (this: Access.Report, parameter: {Cancel: number}) => void): void; + on(obj: Access.Report, event: 'Error', argNames: ['DataErr', 'Response'], handler: (this: Access.Report, parameter: {DataErr: number, Response: number}) => void): void; + on(obj: Access.Report, event: 'Filter', argNames: ['Cancel', 'FilterType'], handler: (this: Access.Report, parameter: {Cancel: number, FilterType: number}) => void): void; + on(obj: Access.Report, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.Report, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.Report, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.Report, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.Report, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.Report, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.Report, event: 'MouseWheel', argNames: ['Page', 'Count'], handler: (this: Access.Report, parameter: {readonly Page: boolean, readonly Count: number}) => void): void; + on(obj: Access.ReportOld, event: 'Error', argNames: ['DataErr', 'Response'], handler: (this: Access.ReportOld, parameter: {DataErr: number, Response: number}) => void): void; + on(obj: Access.ReportOld, event: 'NoData' | 'Open', argNames: ['Cancel'], handler: (this: Access.ReportOld, parameter: {Cancel: number}) => void): void; + on(obj: Access.ReportOldV10, event: 'Error', argNames: ['DataErr', 'Response'], handler: (this: Access.ReportOldV10, parameter: {DataErr: number, Response: number}) => void): void; + on(obj: Access.ReportOldV10, event: 'NoData' | 'Open', argNames: ['Cancel'], handler: (this: Access.ReportOldV10, parameter: {Cancel: number}) => void): void; + on(obj: Access.Section, event: 'DblClick', argNames: ['Cancel'], handler: (this: Access.Section, parameter: {Cancel: number}) => void): void; + on( + obj: Access.Section, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.Section, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.SubForm, event: 'Exit', argNames: ['Cancel'], handler: (this: Access.SubForm, parameter: {Cancel: number}) => void): void; + on(obj: Access.SubReport, event: 'Exit', argNames: ['Cancel'], handler: (this: Access.SubReport, parameter: {Cancel: number}) => void): void; + on(obj: Access.TabControl, event: 'DblClick', argNames: ['Cancel'], handler: (this: Access.TabControl, parameter: {Cancel: number}) => void): void; + on(obj: Access.TabControl, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.TabControl, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.TabControl, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.TabControl, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.TabControl, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.TabControl, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.TextBox, event: 'BeforeUpdate' | 'DblClick' | 'Dirty' | 'Exit' | 'Undo', argNames: ['Cancel'], handler: (this: Access.TextBox, parameter: {Cancel: number}) => void): void; + on(obj: Access.TextBox, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.TextBox, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.TextBox, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.TextBox, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.TextBox, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.TextBox, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on(obj: Access.ToggleButton, event: 'BeforeUpdate' | 'DblClick' | 'Exit', argNames: ['Cancel'], handler: (this: Access.ToggleButton, parameter: {Cancel: number}) => void): void; + on(obj: Access.ToggleButton, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.ToggleButton, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.ToggleButton, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.ToggleButton, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.ToggleButton, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.ToggleButton, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on( + obj: Access.WebBrowserControl, event: 'BeforeNavigate2', argNames: Access.EventHelperTypes.WebBrowserControl_BeforeNavigate2_ArgNames, + handler: (this: Access.WebBrowserControl, parameter: Access.EventHelperTypes.WebBrowserControl_BeforeNavigate2_Parameter) => void): void; + on( + obj: Access.WebBrowserControl, event: 'BeforeUpdate' | 'DblClick' | 'Dirty' | 'Exit', argNames: ['Cancel'], handler: ( + this: Access.WebBrowserControl, parameter: {Cancel: number}) => void): void; + on( + obj: Access.WebBrowserControl, event: 'DocumentComplete', argNames: ['pDisp', 'URL'], handler: ( + this: Access.WebBrowserControl, parameter: {readonly pDisp: any, readonly URL: any}) => void): void; + on(obj: Access.WebBrowserControl, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: (this: Access.WebBrowserControl, parameter: {KeyCode: number, Shift: number}) => void): void; + on(obj: Access.WebBrowserControl, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Access.WebBrowserControl, parameter: {KeyAscii: number}) => void): void; + on( + obj: Access.WebBrowserControl, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Access.WebBrowserControl, parameter: {Button: number, Shift: number, X: number, Y: number}) => void): void; + on( + obj: Access.WebBrowserControl, event: 'NavigateError', argNames: ['pDisp', 'URL', 'TargetFrameName', 'StatusCode', 'Cancel'], + handler: (this: Access.WebBrowserControl, parameter: {readonly pDisp: any, readonly URL: any, readonly TargetFrameName: any, readonly StatusCode: any, Cancel: boolean}) => void): void; + on( + obj: Access.WebBrowserControl, event: 'ProgressChange', argNames: ['Progress', 'ProgressMax'], handler: ( + this: Access.WebBrowserControl, parameter: {readonly Progress: number, readonly ProgressMax: number}) => void): void; + on(obj: Access.WebBrowserControl, event: 'Updated', argNames: ['Code'], handler: (this: Access.WebBrowserControl, parameter: {Code: number}) => void): void; + on(obj: Access._CheckBoxInOption, event: 'AfterUpdate' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access._CheckBoxInOption, parameter: {}) => void): void; + on(obj: Access._OptionButtonInOption, event: 'AfterUpdate' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access._OptionButtonInOption, parameter: {}) => void): void; + on(obj: Access._PageHdrFtrInReport, event: 'Click' | 'Paint', handler: (this: Access._PageHdrFtrInReport, parameter: {}) => void): void; + on(obj: Access._SectionInReport, event: 'Click' | 'Paint' | 'Retreat', handler: (this: Access._SectionInReport, parameter: {}) => void): void; + on(obj: Access._ToggleButtonInOption, event: 'AfterUpdate' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access._ToggleButtonInOption, parameter: {}) => void): void; + on(obj: Access.Attachment, event: 'AfterUpdate' | 'AttachmentCurrent' | 'Change' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.Attachment, parameter: {}) => void): void; + on(obj: Access.BoundObjectFrame, event: 'AfterUpdate' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.BoundObjectFrame, parameter: {}) => void): void; + on(obj: Access.CheckBox, event: 'AfterUpdate' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.CheckBox, parameter: {}) => void): void; + on(obj: Access.Class, event: 'Initialize' | 'Terminate', handler: (this: Access.Class, parameter: {}) => void): void; + on(obj: Access.ComboBox, event: 'AfterUpdate' | 'Change' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.ComboBox, parameter: {}) => void): void; + on(obj: Access.CommandButton, event: 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.CommandButton, parameter: {}) => void): void; + on(obj: Access.CustomControl, event: 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.CustomControl, parameter: {}) => void): void; + on( + obj: Access.Form, event: 'Activate' | 'AfterInsert' | 'AfterUpdate' | 'BeforeQuery' | 'Click' | 'Close' | 'Current' | 'DataSetChange' | 'Deactivate' | 'GotFocus' | + 'Load' | 'LostFocus' | 'OnConnect' | 'OnDisconnect' | 'Query' | 'Resize' | 'SelectionChange' | 'Timer', + handler: (this: Access.Form, parameter: {}) => void): void; + on( + obj: Access.FormOld, event: 'Activate' | 'AfterInsert' | 'AfterUpdate' | 'BeforeQuery' | 'Click' | 'Close' | 'Current' | 'DataSetChange' | 'Deactivate' | + 'GotFocus' | 'Load' | 'LostFocus' | 'OnConnect' | 'OnDisconnect' | 'Query' | 'Resize' | 'SelectionChange' | 'Timer', + handler: (this: Access.FormOld, parameter: {}) => void): void; + on( + obj: Access.FormOldV10, event: 'Activate' | 'AfterInsert' | 'AfterUpdate' | 'BeforeQuery' | 'Click' | 'Close' | 'Current' | 'DataSetChange' | 'Deactivate' | + 'GotFocus' | 'Load' | 'LostFocus' | 'OnConnect' | 'OnDisconnect' | 'Query' | 'Resize' | 'SelectionChange' | 'Timer', + handler: (this: Access.FormOldV10, parameter: {}) => void): void; + on(obj: Access.Image, event: 'Click', handler: (this: Access.Image, parameter: {}) => void): void; + on(obj: Access.Label, event: 'Click', handler: (this: Access.Label, parameter: {}) => void): void; + on(obj: Access.ListBox, event: 'AfterUpdate' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.ListBox, parameter: {}) => void): void; + on(obj: Access.NavigationButton, event: 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.NavigationButton, parameter: {}) => void): void; + on(obj: Access.NavigationControl, event: 'AfterUpdate' | 'Change' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.NavigationControl, parameter: {}) => void): void; + on(obj: Access.ObjectFrame, event: 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.ObjectFrame, parameter: {}) => void): void; + on(obj: Access.OptionButton, event: 'AfterUpdate' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.OptionButton, parameter: {}) => void): void; + on(obj: Access.OptionGroup, event: 'AfterUpdate' | 'Click' | 'Enter', handler: (this: Access.OptionGroup, parameter: {}) => void): void; + on(obj: Access.Page, event: 'Click', handler: (this: Access.Page, parameter: {}) => void): void; + on(obj: Access.PaletteButton, event: 'AfterUpdate' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.PaletteButton, parameter: {}) => void): void; + on(obj: Access.Rectangle, event: 'Click', handler: (this: Access.Rectangle, parameter: {}) => void): void; + on( + obj: Access.Report, event: 'Activate' | 'Click' | 'Close' | 'Current' | 'Deactivate' | 'GotFocus' | 'Load' | 'LostFocus' | 'Page' | 'Resize' | 'Timer', + handler: (this: Access.Report, parameter: {}) => void): void; + on(obj: Access.ReportOld, event: 'Activate' | 'Close' | 'Deactivate' | 'Page', handler: (this: Access.ReportOld, parameter: {}) => void): void; + on(obj: Access.ReportOldV10, event: 'Activate' | 'Close' | 'Deactivate' | 'Page', handler: (this: Access.ReportOldV10, parameter: {}) => void): void; + on(obj: Access.Section, event: 'Click' | 'Paint', handler: (this: Access.Section, parameter: {}) => void): void; + on(obj: Access.SubForm, event: 'Enter', handler: (this: Access.SubForm, parameter: {}) => void): void; + on(obj: Access.SubReport, event: 'Enter', handler: (this: Access.SubReport, parameter: {}) => void): void; + on(obj: Access.TabControl, event: 'Change' | 'Click', handler: (this: Access.TabControl, parameter: {}) => void): void; + on(obj: Access.TextBox, event: 'AfterUpdate' | 'Change' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.TextBox, parameter: {}) => void): void; + on(obj: Access.ToggleButton, event: 'AfterUpdate' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.ToggleButton, parameter: {}) => void): void; + on(obj: Access.WebBrowserControl, event: 'AfterUpdate' | 'Change' | 'Click' | 'Enter' | 'GotFocus' | 'LostFocus', handler: (this: Access.WebBrowserControl, parameter: {}) => void): void; + set( + obj: Access._CheckBoxInOption | Access._ChildLabel | Access._CustomControlInReport | Access._OptionButtonInOption | Access._ToggleButtonInOption | + Access.Attachment | Access.BoundObjectFrame | Access.CheckBox | Access.ComboBox | Access.CommandButton | Access.CustomControl | Access.EmptyCell | Access.Form | + Access.FormOld | Access.FormOldV10 | Access.Label | Access.ListBox | Access.NavigationButton | Access.NavigationControl | Access.ObjectFrame | + Access.OptionButton | Access.OptionGroup | Access.Page | Access.SubForm | Access.TabControl | Access.TextBox | Access.ToggleButton | Access.WebBrowserControl, + propertyName: 'accName' | 'accValue', parameterTypes: [any], newValue: string): void; + set(obj: Access._ControlInReportEvents | Access.ComboBox | Access.Control | Access.ListBox, propertyName: 'Selected', parameterTypes: [number], newValue: number): void; + new(progid: K): ActiveXObjectNameMap[K]; +} + +interface ActiveXObjectNameMap { + 'Access.Application': Access.Application; +} + +interface EnumeratorConstructor { + new(col: Access._ItemsSelected): Enumerator; + new(col: Access.AccessObjectProperties): Enumerator; + new(col: Access.AdditionalData): Enumerator; + new( + col: Access.AllDataAccessPages | Access.AllDatabaseDiagrams | Access.AllForms | Access.AllFunctions | Access.AllMacros | Access.AllModules | Access.AllQueries | + Access.AllReports | Access.AllStoredProcedures | Access.AllTables | Access.AllViews | Access.DependencyObjects): Enumerator; + new(col: Access.Controls): Enumerator; + new(col: Access.Children | Access.Properties): Enumerator; // tslint:disable-line:use-default-type-parameter + new(col: Access.DataAccessPages): Enumerator; + new(col: Access.Entities): Enumerator; + new(col: Access.FormatConditions): Enumerator; + new(col: Access.Forms): Enumerator; + new(col: Access.ImportExportSpecifications): Enumerator; + new(col: Access.LocalVars): Enumerator; + new(col: Access.Modules): Enumerator; + new(col: Access.Operations): Enumerator; + new(col: Access.Pages): Enumerator; + new(col: Access.Printers): Enumerator; + new(col: Access.References): Enumerator; + new(col: Access.Reports): Enumerator; + new(col: Access.ReturnVars): Enumerator; + new(col: Access.SharedResources): Enumerator; + new(col: Access.SmartTagActions): Enumerator; + new(col: Access.SmartTagProperties): Enumerator; + new(col: Access.SmartTags): Enumerator; + new(col: Access.TempVars): Enumerator; + new(col: Access.WebServices): Enumerator; + new(col: Access.WSParameters): Enumerator; +} + +interface SafeArray { + _brand: SafeArray; +} diff --git a/types/activex-access/package.json b/types/activex-access/package.json new file mode 100644 index 0000000000..d9b1031263 --- /dev/null +++ b/types/activex-access/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "activex-helpers": "*" + } +} \ No newline at end of file diff --git a/types/activex-access/tsconfig.json b/types/activex-access/tsconfig.json new file mode 100644 index 0000000000..6537f2d47b --- /dev/null +++ b/types/activex-access/tsconfig.json @@ -0,0 +1,21 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es5", "scripthost"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "activex-access-tests.ts" + ] +} \ No newline at end of file diff --git a/types/activex-access/tslint.json b/types/activex-access/tslint.json new file mode 100644 index 0000000000..4ac54521fe --- /dev/null +++ b/types/activex-access/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": [false] + } +} \ No newline at end of file diff --git a/types/activex-adodb/activex-adodb-tests.ts b/types/activex-adodb/activex-adodb-tests.ts index 22680d963c..f409b888d3 100644 --- a/types/activex-adodb/activex-adodb-tests.ts +++ b/types/activex-adodb/activex-adodb-tests.ts @@ -19,6 +19,7 @@ conn.Open(); // create a Command to access the data let cmd = new ActiveXObject('ADODB.Command'); +cmd.ActiveConnection = conn; cmd.CommandText = 'SELECT DISTINCT LastName, CityName FROM [Sheet1$]'; // get a Recordset let rs = cmd.Execute(); @@ -26,3 +27,31 @@ let rs = cmd.Execute(); let s = rs.GetString(ADODB.StringFormatEnum.adClipString, -1, '\t', '\n', '(NULL)'); rs.Close(); WScript.Echo(s); + +// create a disconnected recordset -- https://support.microsoft.com/en-us/help/184397/how-to-create-ado-disconnected-recordsets-in-vba-c-java +(() => { + conn = new ActiveXObject('ADODB.Connection'); + conn.Open(); // pass connection details here + + rs = new ActiveXObject('ADODB.Recordset'); + rs.CursorLocation = ADODB.CursorLocationEnum.adUseClient; + rs.Open('SELECT * FROM Table1', conn, ADODB.CursorTypeEnum.adOpenForwardOnly, ADODB.LockTypeEnum.adLockBatchOptimistic); + rs.ActiveConnection = null; + + const v = rs.Fields.Item(0).Value; + conn.Close(); +})(); + +// helper function +const toSafeArray = (...items: T[]): SafeArray => { + const dict = new ActiveXObject('Scripting.Dictionary'); + items.forEach((x, index) => dict.Add(index, x)); + return dict.Items() as SafeArray; +}; + +// update with SafeArray +(() => { + const fields = toSafeArray('FirstName', 'LastName', 'DOB'); + const values = toSafeArray('Plony', 'Almony', new Date(1980, 1, 1).getVarDate()); + rs.Update(fields, values); +})(); diff --git a/types/activex-adodb/index.d.ts b/types/activex-adodb/index.d.ts index ec5d67167a..43f43f5bd5 100644 --- a/types/activex-adodb/index.d.ts +++ b/types/activex-adodb/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for Microsoft ActiveX Data Objects 6.1 +// Type definitions for Microsoft ActiveX Data Objects 6.0 Library - ADODB 6.1 // Project: https://msdn.microsoft.com/en-us/library/jj249010.aspx // Definitions by: Zev Spitz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 declare namespace ADODB { const enum ADCPROP_ASYNCTHREADPRIORITY_ENUM { @@ -9,19 +10,19 @@ declare namespace ADODB { adPriorityBelowNormal = 2, adPriorityHighest = 5, adPriorityLowest = 1, - adPriorityNormal = 3 + adPriorityNormal = 3, } const enum ADCPROP_AUTORECALC_ENUM { adRecalcAlways = 1, - adRecalcUpFront = 0 + adRecalcUpFront = 0, } const enum ADCPROP_UPDATECRITERIA_ENUM { adCriteriaAllCols = 1, adCriteriaKey = 0, adCriteriaTimeStamp = 3, - adCriteriaUpdCols = 2 + adCriteriaUpdCols = 2, } const enum ADCPROP_UPDATERESYNC_ENUM { @@ -30,20 +31,20 @@ declare namespace ADODB { adResyncConflicts = 2, adResyncInserts = 8, adResyncNone = 0, - adResyncUpdates = 4 + adResyncUpdates = 4, } const enum AffectEnum { adAffectAll = 3, adAffectAllChapters = 4, adAffectCurrent = 1, - adAffectGroup = 2 + adAffectGroup = 2, } const enum BookmarkEnum { adBookmarkCurrent = 0, adBookmarkFirst = 1, - adBookmarkLast = 2 + adBookmarkLast = 2, } const enum CommandTypeEnum { @@ -53,7 +54,7 @@ declare namespace ADODB { adCmdTableDirect = 512, adCmdText = 1, adCmdUnknown = 8, - adCmdUnspecified = -1 + adCmdUnspecified = -1, } const enum CompareEnum { @@ -61,7 +62,7 @@ declare namespace ADODB { adCompareGreaterThan = 2, adCompareLessThan = 0, adCompareNotComparable = 4, - adCompareNotEqual = 3 + adCompareNotEqual = 3, } const enum ConnectModeEnum { @@ -73,33 +74,33 @@ declare namespace ADODB { adModeShareDenyWrite = 8, adModeShareExclusive = 12, adModeUnknown = 0, - adModeWrite = 2 + adModeWrite = 2, } const enum ConnectOptionEnum { adAsyncConnect = 16, - adConnectUnspecified = -1 + adConnectUnspecified = -1, } const enum ConnectPromptEnum { adPromptAlways = 1, adPromptComplete = 2, adPromptCompleteRequired = 3, - adPromptNever = 4 + adPromptNever = 4, } const enum CopyRecordOptionsEnum { adCopyAllowEmulation = 4, adCopyNonRecursive = 2, adCopyOverWrite = 1, - adCopyUnspecified = -1 + adCopyUnspecified = -1, } const enum CursorLocationEnum { adUseClient = 3, adUseClientBatch = 3, adUseNone = 1, - adUseServer = 2 + adUseServer = 2, } const enum CursorOptionEnum { @@ -115,7 +116,7 @@ declare namespace ADODB { adResync = 131072, adSeek = 4194304, adUpdate = 16809984, - adUpdateBatch = 65536 + adUpdateBatch = 65536, } const enum CursorTypeEnum { @@ -123,7 +124,7 @@ declare namespace ADODB { adOpenForwardOnly = 0, adOpenKeyset = 1, adOpenStatic = 3, - adOpenUnspecified = -1 + adOpenUnspecified = -1, } const enum DataTypeEnum { @@ -166,14 +167,14 @@ declare namespace ADODB { adVariant = 12, adVarNumeric = 139, adVarWChar = 202, - adWChar = 130 + adWChar = 130, } const enum EditModeEnum { adEditAdd = 2, adEditDelete = 4, adEditInProgress = 1, - adEditNone = 0 + adEditNone = 0, } const enum ErrorValueEnum { @@ -240,7 +241,7 @@ declare namespace ADODB { adErrVolumeNotFound = 3733, adErrWriteFile = 3004, adwrnSecurityDialog = 3717, - adwrnSecurityDialogHeader = 3718 + adwrnSecurityDialogHeader = 3718, } const enum EventReasonEnum { @@ -258,7 +259,7 @@ declare namespace ADODB { adRsnUndoAddNew = 5, adRsnUndoDelete = 6, adRsnUndoUpdate = 4, - adRsnUpdate = 3 + adRsnUpdate = 3, } const enum EventStatusEnum { @@ -266,7 +267,7 @@ declare namespace ADODB { adStatusCantDeny = 3, adStatusErrorsOccurred = 2, adStatusOK = 1, - adStatusUnwantedEvent = 5 + adStatusUnwantedEvent = 5, } const enum ExecuteOptionEnum { @@ -276,7 +277,7 @@ declare namespace ADODB { adExecuteNoRecords = 128, adExecuteRecord = 2048, adExecuteStream = 1024, - adOptionUnspecified = -1 + adOptionUnspecified = -1, } const enum FieldAttributeEnum { @@ -296,12 +297,12 @@ declare namespace ADODB { adFldRowVersion = 512, adFldUnknownUpdatable = 8, adFldUnspecified = -1, - adFldUpdatable = 4 + adFldUpdatable = 4, } const enum FieldEnum { adDefaultStream = -1, - adRecordURL = -2 + adRecordURL = -2, } const enum FieldStatusEnum { @@ -334,7 +335,7 @@ declare namespace ADODB { adFieldSignMismatch = 5, adFieldTruncated = 4, adFieldUnavailable = 8, - adFieldVolumeNotFound = 21 + adFieldVolumeNotFound = 21, } const enum FilterGroupEnum { @@ -343,11 +344,11 @@ declare namespace ADODB { adFilterFetchedRecords = 3, adFilterNone = 0, adFilterPendingRecords = 1, - adFilterPredicate = 4 + adFilterPredicate = 4, } const enum GetRowsOptionEnum { - adGetRowsRest = -1 + adGetRowsRest = -1, } const enum IsolationLevelEnum { @@ -359,13 +360,13 @@ declare namespace ADODB { adXactReadUncommitted = 256, adXactRepeatableRead = 65536, adXactSerializable = 1048576, - adXactUnspecified = -1 + adXactUnspecified = -1, } const enum LineSeparatorEnum { adCR = 13, adCRLF = -1, - adLF = 10 + adLF = 10, } const enum LockTypeEnum { @@ -373,19 +374,19 @@ declare namespace ADODB { adLockOptimistic = 3, adLockPessimistic = 2, adLockReadOnly = 1, - adLockUnspecified = -1 + adLockUnspecified = -1, } const enum MarshalOptionsEnum { adMarshalAll = 0, - adMarshalModifiedOnly = 1 + adMarshalModifiedOnly = 1, } const enum MoveRecordOptionsEnum { adMoveAllowEmulation = 4, adMoveDontUpdateLinks = 2, adMoveOverWrite = 1, - adMoveUnspecified = -1 + adMoveUnspecified = -1, } const enum ObjectStateEnum { @@ -393,13 +394,13 @@ declare namespace ADODB { adStateConnecting = 2, adStateExecuting = 4, adStateFetching = 8, - adStateOpen = 1 + adStateOpen = 1, } const enum ParameterAttributesEnum { adParamLong = 128, adParamNullable = 64, - adParamSigned = 16 + adParamSigned = 16, } const enum ParameterDirectionEnum { @@ -407,24 +408,24 @@ declare namespace ADODB { adParamInputOutput = 3, adParamOutput = 2, adParamReturnValue = 4, - adParamUnknown = 0 + adParamUnknown = 0, } const enum PersistFormatEnum { adPersistADTG = 0, - adPersistXML = 1 + adPersistXML = 1, } const enum PositionEnum { adPosBOF = -2, adPosEOF = -3, - adPosUnknown = -1 + adPosUnknown = -1, } const enum PositionEnum_Param { adPosBOF = -2, adPosEOF = -3, - adPosUnknown = -1 + adPosUnknown = -1, } const enum PropertyAttributesEnum { @@ -432,7 +433,7 @@ declare namespace ADODB { adPropOptional = 2, adPropRead = 512, adPropRequired = 1, - adPropWrite = 1024 + adPropWrite = 1024, } const enum RecordCreateOptionsEnum { @@ -441,7 +442,7 @@ declare namespace ADODB { adCreateOverwrite = 67108864, adCreateStructDoc = -2147483648, adFailIfNotExists = -1, - adOpenIfExists = 33554432 + adOpenIfExists = 33554432, } const enum RecordOpenOptionsEnum { @@ -451,7 +452,7 @@ declare namespace ADODB { adOpenExecuteCommand = 65536, adOpenOutput = 8388608, adOpenRecordUnspecified = -1, - adOpenSource = 8388608 + adOpenSource = 8388608, } const enum RecordStatusEnum { @@ -472,23 +473,23 @@ declare namespace ADODB { adRecPendingChanges = 128, adRecPermissionDenied = 65536, adRecSchemaViolation = 131072, - adRecUnmodified = 8 + adRecUnmodified = 8, } const enum RecordTypeEnum { adCollectionRecord = 1, adSimpleRecord = 0, - adStructDoc = 2 + adStructDoc = 2, } const enum ResyncEnum { adResyncAllValues = 2, - adResyncUnderlyingValues = 1 + adResyncUnderlyingValues = 1, } const enum SaveOptionsEnum { adSaveCreateNotExist = 1, - adSaveCreateOverWrite = 2 + adSaveCreateOverWrite = 2, } const enum SchemaEnum { @@ -537,17 +538,17 @@ declare namespace ADODB { adSchemaUsagePrivileges = 15, adSchemaViewColumnUsage = 24, adSchemaViews = 23, - adSchemaViewTableUsage = 25 + adSchemaViewTableUsage = 25, } const enum SearchDirection { adSearchBackward = -1, - adSearchForward = 1 + adSearchForward = 1, } const enum SearchDirectionEnum { adSearchBackward = -1, - adSearchForward = 1 + adSearchForward = 1, } const enum SeekEnum { @@ -556,44 +557,46 @@ declare namespace ADODB { adSeekBefore = 32, adSeekBeforeEQ = 16, adSeekFirstEQ = 1, - adSeekLastEQ = 2 + adSeekLastEQ = 2, } const enum StreamOpenOptionsEnum { adOpenStreamAsync = 1, adOpenStreamFromRecord = 4, - adOpenStreamUnspecified = -1 + adOpenStreamUnspecified = -1, } const enum StreamReadEnum { adReadAll = -1, - adReadLine = -2 + adReadLine = -2, } const enum StreamTypeEnum { adTypeBinary = 1, - adTypeText = 2 + adTypeText = 2, } const enum StreamWriteEnum { adWriteChar = 0, adWriteLine = 1, stWriteChar = 0, - stWriteLine = 1 + stWriteLine = 1, } const enum StringFormatEnum { - adClipString = 2 + adClipString = 2, } const enum XactAttributeEnum { adXactAbortRetaining = 262144, adXactAsyncPhaseOne = 524288, adXactCommitRetaining = 131072, - adXactSyncPhaseOne = 1048576 + adXactSyncPhaseOne = 1048576, } - interface Command { + class Command { + private 'ADODB.Command_typekey': Command; + private constructor(); ActiveConnection: Connection; Cancel(): void; CommandStream: any; @@ -611,7 +614,7 @@ declare namespace ADODB { Dialect: string; /** @param number [Options=-1] */ - Execute(RecordsAffected?: any, Parameters?: any, Options?: number): Recordset; + Execute(RecordsAffected?: number, Parameters?: SafeArray, Options?: number): Recordset; Name: string; NamedParameters: boolean; readonly Parameters: Parameters; @@ -620,7 +623,9 @@ declare namespace ADODB { readonly State: number; } - interface Connection { + class Connection { + private 'ADODB.Connection_typekey': Connection; + private constructor(); Attributes: number; BeginTrans(): number; Cancel(): void; @@ -653,7 +658,9 @@ declare namespace ADODB { readonly Version: string; } - interface Error { + class Error { + private 'ADODB.Error_typekey': Error; + private constructor(); readonly Description: string; readonly HelpContext: number; readonly HelpFile: string; @@ -663,14 +670,18 @@ declare namespace ADODB { readonly SQLState: string; } - interface Errors { + class Errors { + private 'ADODB.Errors_typekey': Errors; + private constructor(); Clear(): void; readonly Count: number; Item(Index: any): Error; Refresh(): void; } - interface Field { + class Field { + private 'ADODB.Field_typekey': Field; + private constructor(); readonly ActualSize: number; AppendChunk(Data: any): void; Attributes: number; @@ -688,7 +699,10 @@ declare namespace ADODB { Value: any; } - interface Fields { + class Fields { + private 'ADODB.Fields_typekey': Fields; + private constructor(); + /** * @param number [DefinedSize=0] * @param ADODB.FieldAttributeEnum [Attrib=-1] @@ -711,7 +725,9 @@ declare namespace ADODB { Update(): void; } - interface Parameter { + class Parameter { + private 'ADODB.Parameter_typekey': Parameter; + private constructor(); AppendChunk(Val: any): void; Attributes: number; Direction: ParameterDirectionEnum; @@ -724,7 +740,9 @@ declare namespace ADODB { Value: any; } - interface Parameters { + class Parameters { + private 'ADODB.Parameters_typekey': Parameters; + private constructor(); Append(Object: any): void; readonly Count: number; Delete(Index: any): void; @@ -732,20 +750,26 @@ declare namespace ADODB { Refresh(): void; } - interface Properties { + class Properties { + private 'ADODB.Properties_typekey': Properties; + private constructor(); readonly Count: number; Item(Index: any): Property; Refresh(): void; } - interface Property { + class Property { + private 'ADODB.Property_typekey': Property; + private constructor(); Attributes: number; readonly Name: string; readonly Type: DataTypeEnum; Value: any; } - interface Record { + class Record { + private 'ADODB.Record_typekey': Record; + private constructor(); ActiveConnection: any; Cancel(): void; Close(): void; @@ -794,7 +818,9 @@ declare namespace ADODB { readonly State: ObjectStateEnum; } - interface Recordset { + class Recordset { + private 'ADODB.Recordset_typekey': Recordset; + private constructor(); _xClone(): Recordset; /** @param ADODB.AffectEnum [AffectRecords=3] */ @@ -895,13 +921,15 @@ declare namespace ADODB { readonly Status: number; StayInSync: boolean; Supports(CursorOptions: CursorOptionEnum): boolean; - Update(Fields?: any, Values?: any): void; + Update(Fields?: string | SafeArray, Values?: any): void; /** @param ADODB.AffectEnum [AffectRecords=3] */ UpdateBatch(AffectRecords?: AffectEnum): void; } - interface Stream { + class Stream { + private 'ADODB.Stream_typekey': Stream; + private constructor(); Cancel(): void; Charset: string; Close(): void; @@ -941,67 +969,118 @@ declare namespace ADODB { /** @param ADODB.StreamWriteEnum [Options=0] */ WriteText(Data: string, Options?: StreamWriteEnum): void; } + + namespace EventHelperTypes { + type Connection_ExecuteComplete_ArgNames = ['RecordsAffected', 'pError', 'adStatus', 'pCommand', 'pRecordset', 'pConnection']; + + type Connection_WillConnect_ArgNames = ['ConnectionString', 'UserID', 'Password', 'Options', 'adStatus', 'pConnection']; + + type Connection_WillExecute_ArgNames = ['Source', 'CursorType', 'LockType', 'Options', 'adStatus', 'pCommand', 'pRecordset', 'pConnection']; + + interface Connection_ExecuteComplete_Parameter { + adStatus: EventStatusEnum; + readonly pCommand: Command; + readonly pConnection: Connection; + readonly pError: Error; + readonly pRecordset: Recordset; + readonly RecordsAffected: number; + } + + interface Connection_WillConnect_Parameter { + adStatus: EventStatusEnum; + ConnectionString: string; + Options: number; + Password: string; + readonly pConnection: Connection; + UserID: string; + } + + interface Connection_WillExecute_Parameter { + adStatus: EventStatusEnum; + CursorType: CursorTypeEnum; + LockType: LockTypeEnum; + Options: number; + readonly pCommand: Command; + readonly pConnection: Connection; + readonly pRecordset: Recordset; + Source: string; + } + } } interface ActiveXObject { - on(obj: ADODB.Connection, event: 'BeginTransComplete', argNames: ['TransactionLevel', 'pError', 'adStatus', 'pConnection'], handler: ( - this: ADODB.Connection, parameter: { - TransactionLevel: number, pError: ADODB.Error, adStatus: ADODB.EventStatusEnum, pConnection: ADODB.Connection}) => void): void; - on(obj: ADODB.Connection, event: 'Disconnect', argNames: ['adStatus', 'pConnection'], handler: ( - this: ADODB.Connection, parameter: { - adStatus: ADODB.EventStatusEnum, pConnection: ADODB.Connection}) => void): void; - on(obj: ADODB.Connection, event: 'ExecuteComplete', argNames: ['RecordsAffected', 'pError', 'adStatus', 'pCommand', 'pRecordset', 'pConnection'], handler: ( - this: ADODB.Connection, parameter: { - RecordsAffected: number, pError: ADODB.Error, adStatus: ADODB.EventStatusEnum, pCommand: ADODB.Command, pRecordset: ADODB.Recordset, pConnection: ADODB.Connection}) => void): void; - on(obj: ADODB.Connection, event: 'InfoMessage' | 'CommitTransComplete' | 'RollbackTransComplete' | 'ConnectComplete', argNames: ['pError', 'adStatus', 'pConnection'], handler: ( - this: ADODB.Connection, parameter: { - pError: ADODB.Error, adStatus: ADODB.EventStatusEnum, pConnection: ADODB.Connection}) => void): void; - on(obj: ADODB.Connection, event: 'WillConnect', argNames: ['ConnectionString', 'UserID', 'Password', 'Options', 'adStatus', 'pConnection'], handler: ( - this: ADODB.Connection, parameter: { - ConnectionString: string, UserID: string, Password: string, Options: number, adStatus: ADODB.EventStatusEnum, pConnection: ADODB.Connection}) => void): void; - on(obj: ADODB.Connection, event: 'WillExecute', argNames: ['Source', 'CursorType', 'LockType', 'Options', 'adStatus', 'pCommand', 'pRecordset', 'pConnection'], handler: ( - this: ADODB.Connection, parameter: { - Source: string, CursorType: ADODB.CursorTypeEnum, LockType: ADODB.LockTypeEnum, Options: number, adStatus: ADODB.EventStatusEnum, pCommand: ADODB.Command, - pRecordset: ADODB.Recordset, pConnection: ADODB.Connection}) => void): void; - on(obj: ADODB.Recordset, event: 'EndOfRecordset', argNames: ['fMoreData', 'adStatus', 'pRecordset'], handler: ( - this: ADODB.Recordset, parameter: { - fMoreData: boolean, adStatus: ADODB.EventStatusEnum, pRecordset: ADODB.Recordset}) => void): void; - on(obj: ADODB.Recordset, event: 'FetchComplete', argNames: ['pError', 'adStatus', 'pRecordset'], handler: ( - this: ADODB.Recordset, parameter: { - pError: ADODB.Error, adStatus: ADODB.EventStatusEnum, pRecordset: ADODB.Recordset}) => void): void; - on(obj: ADODB.Recordset, event: 'FetchProgress', argNames: ['Progress', 'MaxProgress', 'adStatus', 'pRecordset'], handler: ( - this: ADODB.Recordset, parameter: { - Progress: number, MaxProgress: number, adStatus: ADODB.EventStatusEnum, pRecordset: ADODB.Recordset}) => void): void; - on(obj: ADODB.Recordset, event: 'FieldChangeComplete', argNames: ['cFields', 'Fields', 'pError', 'adStatus', 'pRecordset'], handler: ( - this: ADODB.Recordset, parameter: { - cFields: number, Fields: any, pError: ADODB.Error, adStatus: ADODB.EventStatusEnum, pRecordset: ADODB.Recordset}) => void): void; - on(obj: ADODB.Recordset, event: 'RecordChangeComplete', argNames: ['adReason', 'cRecords', 'pError', 'adStatus', 'pRecordset'], handler: ( - this: ADODB.Recordset, parameter: { - adReason: ADODB.EventReasonEnum, cRecords: number, pError: ADODB.Error, adStatus: ADODB.EventStatusEnum, pRecordset: ADODB.Recordset}) => void): void; - on(obj: ADODB.Recordset, event: 'RecordsetChangeComplete' | 'MoveComplete', argNames: ['adReason', 'pError', 'adStatus', 'pRecordset'], handler: ( - this: ADODB.Recordset, parameter: { - adReason: ADODB.EventReasonEnum, pError: ADODB.Error, adStatus: ADODB.EventStatusEnum, pRecordset: ADODB.Recordset}) => void): void; - on(obj: ADODB.Recordset, event: 'WillChangeField', argNames: ['cFields', 'Fields', 'adStatus', 'pRecordset'], handler: ( - this: ADODB.Recordset, parameter: { - cFields: number, Fields: any, adStatus: ADODB.EventStatusEnum, pRecordset: ADODB.Recordset}) => void): void; - on(obj: ADODB.Recordset, event: 'WillChangeRecord', argNames: ['adReason', 'cRecords', 'adStatus', 'pRecordset'], handler: ( - this: ADODB.Recordset, parameter: { - adReason: ADODB.EventReasonEnum, cRecords: number, adStatus: ADODB.EventStatusEnum, pRecordset: ADODB.Recordset}) => void): void; - on(obj: ADODB.Recordset, event: 'WillChangeRecordset' | 'WillMove', argNames: ['adReason', 'adStatus', 'pRecordset'], handler: ( - this: ADODB.Recordset, parameter: { - adReason: ADODB.EventReasonEnum, adStatus: ADODB.EventStatusEnum, pRecordset: ADODB.Recordset}) => void): void; + on( + obj: ADODB.Connection, event: 'BeginTransComplete', argNames: ['TransactionLevel', 'pError', 'adStatus', 'pConnection'], handler: ( + this: ADODB.Connection, parameter: { + readonly TransactionLevel: number, readonly pError: ADODB.Error, adStatus: ADODB.EventStatusEnum, readonly pConnection: ADODB.Connection}) => void): void; + on( + obj: ADODB.Connection, event: 'CommitTransComplete' | 'ConnectComplete' | 'InfoMessage' | 'RollbackTransComplete', argNames: ['pError', 'adStatus', 'pConnection'], + handler: (this: ADODB.Connection, parameter: {readonly pError: ADODB.Error, adStatus: ADODB.EventStatusEnum, readonly pConnection: ADODB.Connection}) => void): void; + on( + obj: ADODB.Connection, event: 'Disconnect', argNames: ['adStatus', 'pConnection'], handler: ( + this: ADODB.Connection, parameter: {adStatus: ADODB.EventStatusEnum, readonly pConnection: ADODB.Connection}) => void): void; + on( + obj: ADODB.Connection, event: 'ExecuteComplete', argNames: ADODB.EventHelperTypes.Connection_ExecuteComplete_ArgNames, handler: ( + this: ADODB.Connection, parameter: ADODB.EventHelperTypes.Connection_ExecuteComplete_Parameter) => void): void; + on( + obj: ADODB.Connection, event: 'WillConnect', argNames: ADODB.EventHelperTypes.Connection_WillConnect_ArgNames, handler: ( + this: ADODB.Connection, parameter: ADODB.EventHelperTypes.Connection_WillConnect_Parameter) => void): void; + on( + obj: ADODB.Connection, event: 'WillExecute', argNames: ADODB.EventHelperTypes.Connection_WillExecute_ArgNames, handler: ( + this: ADODB.Connection, parameter: ADODB.EventHelperTypes.Connection_WillExecute_Parameter) => void): void; + on( + obj: ADODB.Recordset, event: 'EndOfRecordset', argNames: ['fMoreData', 'adStatus', 'pRecordset'], handler: ( + this: ADODB.Recordset, parameter: {fMoreData: boolean, adStatus: ADODB.EventStatusEnum, readonly pRecordset: ADODB.Recordset}) => void): void; + on( + obj: ADODB.Recordset, event: 'FetchComplete', argNames: ['pError', 'adStatus', 'pRecordset'], handler: ( + this: ADODB.Recordset, parameter: {readonly pError: ADODB.Error, adStatus: ADODB.EventStatusEnum, readonly pRecordset: ADODB.Recordset}) => void): void; + on( + obj: ADODB.Recordset, event: 'FetchProgress', argNames: ['Progress', 'MaxProgress', 'adStatus', 'pRecordset'], handler: ( + this: ADODB.Recordset, parameter: {readonly Progress: number, readonly MaxProgress: number, adStatus: ADODB.EventStatusEnum, readonly pRecordset: ADODB.Recordset}) => void): void; + on( + obj: ADODB.Recordset, event: 'FieldChangeComplete', argNames: ['cFields', 'Fields', 'pError', 'adStatus', 'pRecordset'], handler: ( + this: ADODB.Recordset, parameter: { + readonly cFields: number, readonly Fields: any, readonly pError: ADODB.Error, adStatus: ADODB.EventStatusEnum, readonly pRecordset: ADODB.Recordset}) => void): void; + on( + obj: ADODB.Recordset, event: 'MoveComplete' | 'RecordsetChangeComplete', argNames: ['adReason', 'pError', 'adStatus', 'pRecordset'], + handler: ( + this: ADODB.Recordset, parameter: { + readonly adReason: ADODB.EventReasonEnum, readonly pError: ADODB.Error, adStatus: ADODB.EventStatusEnum, readonly pRecordset: ADODB.Recordset}) => void): void; + on( + obj: ADODB.Recordset, event: 'RecordChangeComplete', argNames: ['adReason', 'cRecords', 'pError', 'adStatus', 'pRecordset'], handler: ( + this: ADODB.Recordset, parameter: { + readonly adReason: ADODB.EventReasonEnum, readonly cRecords: number, readonly pError: ADODB.Error, + adStatus: ADODB.EventStatusEnum, readonly pRecordset: ADODB.Recordset}) => void): void; + on( + obj: ADODB.Recordset, event: 'WillChangeField', argNames: ['cFields', 'Fields', 'adStatus', 'pRecordset'], handler: ( + this: ADODB.Recordset, parameter: {readonly cFields: number, readonly Fields: any, adStatus: ADODB.EventStatusEnum, readonly pRecordset: ADODB.Recordset}) => void): void; + on( + obj: ADODB.Recordset, event: 'WillChangeRecord', argNames: ['adReason', 'cRecords', 'adStatus', 'pRecordset'], handler: ( + this: ADODB.Recordset, parameter: { + readonly adReason: ADODB.EventReasonEnum, readonly cRecords: number, adStatus: ADODB.EventStatusEnum, readonly pRecordset: ADODB.Recordset}) => void): void; + on( + obj: ADODB.Recordset, event: 'WillChangeRecordset' | 'WillMove', argNames: ['adReason', 'adStatus', 'pRecordset'], handler: ( + this: ADODB.Recordset, parameter: {readonly adReason: ADODB.EventReasonEnum, adStatus: ADODB.EventStatusEnum, readonly pRecordset: ADODB.Recordset}) => void): void; set(obj: ADODB.Recordset, propertyName: 'Collect', parameterTypes: [any], newValue: any): void; - new(progid: 'ADODB.Command'): ADODB.Command; - new(progid: 'ADODB.Connection'): ADODB.Connection; - new(progid: 'ADODB.Parameter'): ADODB.Parameter; - new(progid: 'ADODB.Record'): ADODB.Record; - new(progid: 'ADODB.Recordset'): ADODB.Recordset; - new(progid: 'ADODB.Stream'): ADODB.Stream; + new(progid: K): ActiveXObjectNameMap[K]; +} + +interface ActiveXObjectNameMap { + 'ADODB.Command': ADODB.Command; + 'ADODB.Connection': ADODB.Connection; + 'ADODB.Parameter': ADODB.Parameter; + 'ADODB.Record': ADODB.Record; + 'ADODB.Recordset': ADODB.Recordset; + 'ADODB.Stream': ADODB.Stream; } interface EnumeratorConstructor { - new(col: ADODB.Errors): ADODB.Error; - new(col: ADODB.Fields): ADODB.Field; - new(col: ADODB.Parameters): ADODB.Parameter; - new(col: ADODB.Properties): ADODB.Property; + new(col: ADODB.Errors): Enumerator; + new(col: ADODB.Fields): Enumerator; + new(col: ADODB.Parameters): Enumerator; + new(col: ADODB.Properties): Enumerator; +} + +interface SafeArray { + _brand: SafeArray; } diff --git a/types/activex-dao/activex-dao-tests.ts b/types/activex-dao/activex-dao-tests.ts new file mode 100644 index 0000000000..412bea60b5 --- /dev/null +++ b/types/activex-dao/activex-dao-tests.ts @@ -0,0 +1,154 @@ +let engine = new ActiveXObject('DAO.DBEngine.120'); +let dbsNorthwind = engine.OpenDatabase('c:\\path\\to\\northwind.mdb'); + +// adding a record to a recordset -- https://msdn.microsoft.com/VBA/Access-VBA/articles/add-a-record-to-a-dao-recordset +let rstShippers = dbsNorthwind.OpenRecordset('Shippers'); +rstShippers.AddNew(); +rstShippers.Fields.Item('CompanyName').Value = 'Global Parcel Service'; +// Set remaining fields +rstShippers.Update(); +rstShippers.Close(); + +// create a QueryDef with the given SQL -- https://msdn.microsoft.com/VBA/Access-VBA/articles/build-sql-statements-that-include-variables-and-controls +let sql = 'SELECT * FROM Orders WHERE OrderDate > #3-31-2006#'; +let qdf = dbsNorthwind.CreateQueryDef('Second quarter', sql); +// using parameters +sql = ` + PARAMETERS QuarterStart DATETIME + SELECT * + FROM Orders + WHERE OrderDate > QuarterStart +`; +qdf = dbsNorthwind.CreateQueryDef('Second quarter (parameters)', sql); + +// count the number of records in a Recordset -- https://msdn.microsoft.com/VBA/Access-VBA/articles/count-the-number-of-records-in-a-dao-recordset +const findRecordCount = (dbs: DAO.Database, sql: string) => { + let count = 0; + const rstRecords = dbs.OpenRecordset(sql); + if (!rstRecords.EOF) { + rstRecords.MoveLast(); + count = rstRecords.RecordCount; + } + rstRecords.Close(); + return count; +}; + +// delete records from a Recordset -- https://msdn.microsoft.com/VBA/Access-VBA/articles/delete-a-record-from-a-dao-recordset +rstShippers = dbsNorthwind.OpenRecordset('SELECT * FROM Shippers ORDER BY CompanyName, ShipperID', DAO.RecordsetTypeEnum.dbOpenDynaset); +if (!rstShippers.EOF) { + let name = rstShippers.Fields.Item('CompanyName').Value; + rstShippers.MoveNext(); + while (!rstShippers.EOF) { + const recordName: string = rstShippers.Fields.Item('CompanyName').Value; + if (recordName === name) { + rstShippers.Delete(); + } else { + name = recordName; + } + rstShippers.MoveNext(); + } +} +rstShippers.Close(); + +// copy entire records to an array -- https://msdn.microsoft.com/VBA/Access-VBA/articles/extract-data-from-a-record-in-a-dao-recordset +let rstEmployees = dbsNorthwind.OpenRecordset('SELECT FirstName, LastName, Title FROM Employees', DAO.RecordsetTypeEnum.dbOpenSnapshot); +let records = new VBArray(rstEmployees.GetRows(3)); +let recordCount = records.ubound(2) + 1; +let columnCount = records.ubound(1) + 1; +for (let row = 0; row < recordCount; row += 1) { + for (let column = 0; column < columnCount; column += 1) { + WScript.Echo(records.getItem(column, row)); + } +} +if (rstEmployees.EOF) { WScript.Echo('At end of recordset'); } +rstEmployees.Close(); + +// find a record in a dynaset-type or snapshot-type DAO Recordset -- https://msdn.microsoft.com/en-us/vba/access-vba/articles/find-a-record-in-a-dynaset-type-or-snapshot-type-dao-recordset +const findOrdersWithoutDetails = () => { + const orders: number[] = []; + const rstOrders = dbsNorthwind.OpenRecordset('SELECT * FROM Orders ORDER BY OrderID', DAO.RecordsetTypeEnum.dbOpenSnapshot); + const rstOrderDetails = dbsNorthwind.OpenRecordset('SELECT * FROM [Order Details] ORDER BY OrderID', DAO.RecordsetTypeEnum.dbOpenSnapshot); + + const closeRecordsets = () => { + rstOrders.Close(); + rstOrderDetails.Close(); + }; + if (rstOrders.EOF || rstOrderDetails.EOF) { + closeRecordsets(); + return; + } + + while (!rstOrders.EOF) { + const orderID = rstOrders.Fields.Item('OrderID').Value; + rstOrderDetails.FindFirst(`OrderID=${orderID}`); + if (rstOrderDetails.NoMatch) { + orders.push(orderID); + } + rstOrders.MoveNext(); + } + closeRecordsets(); + return orders; +}; + +// find a record in a table-type DAO Recordset -- https://msdn.microsoft.com/VBA/Access-VBA/articles/find-a-record-in-a-table-type-dao-recordset +const getHireDate = (employeeID: number) => { + let hireDate: Date | undefined; + const rstEmployees = dbsNorthwind.OpenRecordset('Employees'); + rstEmployees.Index = 'PrimaryKey'; + rstEmployees.Seek('=', employeeID); + if (!rstEmployees.NoMatch) { + hireDate = new Date(rstEmployees.Fields.Item('HireDate').Value as VarDate); + } + return hireDate; +}; + +// manipulate multiple fields with DAO -- https://msdn.microsoft.com/VBA/Access-VBA/articles/manipulate-multivalued-fields-with-dao +const browseMultiValueField = () => { + const rs = dbsNorthwind.OpenRecordset('Tasks'); + rs.MoveFirst(); + while (!rs.EOF) { + WScript.Echo(rs.Fields.Item('TaskName').Value); + const childRs = rs.Fields.Item('AssignedTo').Value as DAO.Recordset; + if (childRs.EOF) { continue; } + childRs.MoveFirst(); + while (!childRs.EOF) { + WScript.Echo('\t' + childRs.Fields.Item('Value').Value); + } + } +}; + +// modifying an existing record in a DAO Recordset -- https://msdn.microsoft.com/VBA/Access-VBA/articles/modify-an-existing-record-in-a-dao-recordset +const changeTitleWithoutTransaction = () => { + rstEmployees = dbsNorthwind.OpenRecordset('Employees'); + while (!rstEmployees.EOF) { + if (rstEmployees.Fields.Item('Title').Value === 'Sales Representative') { + rstEmployees.Edit(); + rstEmployees.Fields.Item('Title').Value = 'Account Executive'; + rstEmployees.Update(); + } + rstEmployees.MoveNext(); + } + rstEmployees.Close(); +}; + +// using transactions in a DAO Recordset -- https://msdn.microsoft.com/VBA/Access-VBA/articles/use-transactions-in-a-dao-recordset +const changeTitleWithTransaction = (commitTransaction: boolean) => { + const currentWorkspace = engine.Workspaces.Item(0); + rstEmployees = dbsNorthwind.OpenRecordset('Employees'); + currentWorkspace.BeginTrans(); + while (!rstEmployees.EOF) { + if (rstEmployees.Fields.Item('Title').Value === 'Sales Representative') { + rstEmployees.Edit(); + rstEmployees.Fields.Item('Title').Value = 'Account Executive'; + rstEmployees.Update(); + } + rstEmployees.MoveNext(); + } + if (commitTransaction) { + currentWorkspace.CommitTrans(); + } else { + currentWorkspace.Rollback(); + } + rstEmployees.Close(); + currentWorkspace.Close(); +}; diff --git a/types/activex-dao/index.d.ts b/types/activex-dao/index.d.ts new file mode 100644 index 0000000000..6db3e0bd0d --- /dev/null +++ b/types/activex-dao/index.d.ts @@ -0,0 +1,910 @@ +// Type definitions for Microsoft Office 14.0 Access Database Engine Object Library - DAO 14.0 +// Project: https://msdn.microsoft.com/en-us/library/dn124645.aspx +// Definitions by: Zev Spitz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +declare namespace DAO { + const enum _DAOSuppHelp { + KeepLocal = 0, + LogMessages = 0, + Replicable = 0, + ReplicableBool = 0, + V1xNullBehavior = 0, + } + + const enum CollatingOrderEnum { + dbSortArabic = 1025, + dbSortChineseSimplified = 2052, + dbSortChineseTraditional = 1028, + dbSortCyrillic = 1049, + dbSortCzech = 1029, + dbSortDutch = 1043, + dbSortGeneral = 1033, + dbSortGreek = 1032, + dbSortHebrew = 1037, + dbSortHindi = 1081, + dbSortHungarian = 1038, + dbSortIcelandic = 1039, + dbSortJapanese = 1041, + dbSortJapaneseRadicalStrokeCount = 263185, + dbSortKorean = 1042, + dbSortNeutral = 1024, + dbSortNorwdan = 1030, + dbSortPDXIntl = 1033, + dbSortPDXNor = 1030, + dbSortPDXSwe = 1053, + dbSortPolish = 1045, + dbSortSlovenian = 1060, + dbSortSpanish = 1034, + dbSortSwedFin = 1053, + dbSortThai = 1054, + dbSortTurkish = 1055, + dbSortUndefined = -1, + } + + const enum CommitTransOptionsEnum { + dbForceOSFlush = 1, + } + + const enum CursorDriverEnum { + dbUseClientBatchCursor = 3, + dbUseDefaultCursor = -1, + dbUseNoCursor = 4, + dbUseODBCCursor = 1, + dbUseServerCursor = 2, + } + + const enum DatabaseTypeEnum { + dbDecrypt = 4, + dbEncrypt = 2, + dbVersion10 = 1, + dbVersion11 = 8, + dbVersion120 = 128, + dbVersion140 = 256, + dbVersion20 = 16, + dbVersion30 = 32, + dbVersion40 = 64, + } + + const enum DataTypeEnum { + dbAttachment = 101, + dbBigInt = 16, + dbBinary = 9, + dbBoolean = 1, + dbByte = 2, + dbChar = 18, + dbComplexByte = 102, + dbComplexDecimal = 108, + dbComplexDouble = 106, + dbComplexGUID = 107, + dbComplexInteger = 103, + dbComplexLong = 104, + dbComplexSingle = 105, + dbComplexText = 109, + dbCurrency = 5, + dbDate = 8, + dbDecimal = 20, + dbDouble = 7, + dbFloat = 21, + dbGUID = 15, + dbInteger = 3, + dbLong = 4, + dbLongBinary = 11, + dbMemo = 12, + dbNumeric = 19, + dbSingle = 6, + dbText = 10, + dbTime = 22, + dbTimeStamp = 23, + dbVarBinary = 17, + } + + const enum DriverPromptEnum { + dbDriverComplete = 0, + dbDriverCompleteRequired = 3, + dbDriverNoPrompt = 1, + dbDriverPrompt = 2, + } + + const enum EditModeEnum { + dbEditAdd = 2, + dbEditInProgress = 1, + dbEditNone = 0, + } + + const enum FieldAttributeEnum { + dbAutoIncrField = 16, + dbDescending = 1, + dbFixedField = 1, + dbHyperlinkField = 32768, + dbSystemField = 8192, + dbUpdatableField = 32, + dbVariableField = 2, + } + + const enum IdleEnum { + dbFreeLocks = 1, + dbRefreshCache = 8, + } + + const enum LanguageConstants { + dbLangArabic = ';LANGID=0x0401;CP=1256;COUNTRY=0', + dbLangChineseSimplified = ';LANGID=0x0804;CP=936;COUNTRY=0', + dbLangChineseTraditional = ';LANGID=0x0404;CP=950;COUNTRY=0', + dbLangCyrillic = ';LANGID=0x0419;CP=1251;COUNTRY=0', + dbLangCzech = ';LANGID=0x0405;CP=1250;COUNTRY=0', + dbLangDutch = ';LANGID=0x0413;CP=1252;COUNTRY=0', + dbLangGeneral = ';LANGID=0x0409;CP=1252;COUNTRY=0', + dbLangGreek = ';LANGID=0x0408;CP=1253;COUNTRY=0', + dbLangHebrew = ';LANGID=0x040D;CP=1255;COUNTRY=0', + dbLangHindi = ';LANGID=0x00000439;CP=65001;COUNTRY=0', + dbLangHungarian = ';LANGID=0x040E;CP=1250;COUNTRY=0', + dbLangIcelandic = ';LANGID=0x040F;CP=1252;COUNTRY=0', + dbLangJapanese = ';LANGID=0x0411;CP=932;COUNTRY=0', + dbLangJapaneseRadicalStrokeCount = ';LANGID=0x00040411;CP=65001;COUNTRY=0', + dbLangKorean = ';LANGID=0x0412;CP=949;COUNTRY=0', + dbLangNordic = ';LANGID=0x041D;CP=1252;COUNTRY=0', + dbLangNorwDan = ';LANGID=0x0406;CP=1252;COUNTRY=0', + dbLangPolish = ';LANGID=0x0415;CP=1250;COUNTRY=0', + dbLangSlovenian = ';LANGID=0x0424;CP=1250;COUNTRY=0', + dbLangSpanish = ';LANGID=0x040A;CP=1252;COUNTRY=0', + dbLangSwedFin = ';LANGID=0x041D;CP=1252;COUNTRY=0', + dbLangThai = ';LANGID=0x041E;CP=874;COUNTRY=0', + dbLangTurkish = ';LANGID=0x041F;CP=1254;COUNTRY=0', + } + + const enum LockTypeEnum { + dbOptimistic = 3, + dbOptimisticBatch = 5, + dbOptimisticValue = 1, + dbPessimistic = 2, + } + + const enum ParameterDirectionEnum { + dbParamInput = 1, + dbParamInputOutput = 3, + dbParamOutput = 2, + dbParamReturnValue = 4, + } + + const enum PermissionEnum { + dbSecCreate = 1, + dbSecDBAdmin = 8, + dbSecDBCreate = 1, + dbSecDBExclusive = 4, + dbSecDBOpen = 2, + dbSecDelete = 65536, + dbSecDeleteData = 128, + dbSecFullAccess = 1048575, + dbSecInsertData = 32, + dbSecNoAccess = 0, + dbSecReadDef = 4, + dbSecReadSec = 131072, + dbSecReplaceData = 64, + dbSecRetrieveData = 20, + dbSecWriteDef = 65548, + dbSecWriteOwner = 524288, + dbSecWriteSec = 262144, + } + + const enum QueryDefStateEnum { + dbQPrepare = 1, + dbQUnprepare = 2, + } + + const enum QueryDefTypeEnum { + dbQAction = 240, + dbQAppend = 64, + dbQCompound = 160, + dbQCrosstab = 16, + dbQDDL = 96, + dbQDelete = 32, + dbQMakeTable = 80, + dbQProcedure = 224, + dbQSelect = 0, + dbQSetOperation = 128, + dbQSPTBulk = 144, + dbQSQLPassThrough = 112, + dbQUpdate = 48, + } + + const enum RecordsetOptionEnum { + dbAppendOnly = 8, + dbConsistent = 32, + dbDenyRead = 2, + dbDenyWrite = 1, + dbExecDirect = 2048, + dbFailOnError = 128, + dbForwardOnly = 256, + dbInconsistent = 16, + dbReadOnly = 4, + dbRunAsync = 1024, + dbSeeChanges = 512, + dbSQLPassThrough = 64, + } + + const enum RecordsetTypeEnum { + dbOpenDynamic = 16, + dbOpenDynaset = 2, + dbOpenForwardOnly = 8, + dbOpenSnapshot = 4, + dbOpenTable = 1, + } + + const enum RecordStatusEnum { + dbRecordDBDeleted = 4, + dbRecordDeleted = 3, + dbRecordModified = 1, + dbRecordNew = 2, + dbRecordUnmodified = 0, + } + + const enum RelationAttributeEnum { + dbRelationDeleteCascade = 4096, + dbRelationDontEnforce = 2, + dbRelationInherited = 4, + dbRelationLeft = 16777216, + dbRelationRight = 33554432, + dbRelationUnique = 1, + dbRelationUpdateCascade = 256, + } + + const enum ReplicaTypeEnum { + dbRepMakePartial = 1, + dbRepMakeReadOnly = 2, + } + + const enum SetOptionEnum { + dbExclusiveAsyncDelay = 60, + dbFlushTransactionTimeout = 66, + dbImplicitCommitSync = 59, + dbLockDelay = 63, + dbLockRetry = 57, + dbMaxBufferSize = 8, + dbMaxLocksPerFile = 62, + dbPageTimeout = 6, + dbPasswordEncryptionAlgorithm = 81, + dbPasswordEncryptionKeyLength = 82, + dbPasswordEncryptionProvider = 80, + dbRecycleLVs = 65, + dbSharedAsyncDelay = 61, + dbUserCommitSync = 58, + } + + const enum SynchronizeTypeEnum { + dbRepExportChanges = 1, + dbRepImpExpChanges = 4, + dbRepImportChanges = 2, + dbRepSyncInternet = 16, + } + + const enum TableDefAttributeEnum { + dbAttachedODBC = 536870912, + dbAttachedTable = 1073741824, + dbAttachExclusive = 65536, + dbAttachSavePWD = 131072, + dbHiddenObject = 1, + dbSystemObject = -2147483646, + } + + const enum UpdateCriteriaEnum { + dbCriteriaAllCols = 4, + dbCriteriaDeleteInsert = 16, + dbCriteriaKey = 1, + dbCriteriaModValues = 2, + dbCriteriaTimestamp = 8, + dbCriteriaUpdate = 32, + } + + const enum UpdateTypeEnum { + dbUpdateBatch = 4, + dbUpdateCurrentRecord = 2, + dbUpdateRegular = 1, + } + + const enum WorkspaceTypeEnum { + dbUseJet = 2, + dbUseODBC = 1, + } + + class Connection { + private 'DAO.Connection_typekey': Connection; + private constructor(); + Cancel(): void; + Close(): void; + readonly Connect: string; + CreateQueryDef(Name?: any, SQLText?: any): QueryDef; + readonly Database: Database; + Execute(Query: string, Options?: any): void; + readonly hDbc: number; + readonly Name: string; + OpenRecordset(Name: string, Type?: any, Options?: any, LockEdit?: any): Recordset; + readonly QueryDefs: QueryDefs; + QueryTimeout: number; + readonly RecordsAffected: number; + readonly Recordsets: Recordsets; + readonly StillExecuting: boolean; + readonly Transactions: boolean; + readonly Updatable: boolean; + } + + class Connections { + private 'DAO.Connections_typekey': Connections; + private constructor(); + readonly Count: number; + Item(Item: any): Connection; + Refresh(): void; + } + + class Container { + private 'DAO.Container_typekey': Container; + private constructor(); + readonly AllPermissions: number; + readonly Documents: Documents; + Inherit: boolean; + readonly Name: string; + Owner: string; + Permissions: number; + readonly Properties: Properties; + UserName: string; + } + + class Containers { + private 'DAO.Containers_typekey': Containers; + private constructor(); + readonly Count: number; + Item(Item: any): Container; + Refresh(): void; + } + + class Database { + private 'DAO.Database_typekey': Database; + private constructor(); + Close(): void; + readonly CollatingOrder: number; + Connect: string; + readonly Connection: Connection; + readonly Containers: Containers; + CreateProperty(Name?: any, Type?: any, Value?: any, DDL?: any): Property; + CreateQueryDef(Name?: any, SQLText?: any): QueryDef; + CreateRelation(Name?: any, Table?: any, ForeignTable?: any, Attributes?: any): Relation; + CreateTableDef(Name?: any, Attributes?: any, SourceTableName?: any, Connect?: any): TableDef; + DesignMasterID: string; + Execute(Query: string, Options?: any): void; + MakeReplica(PathName: string, Description: string, Options?: any): void; + readonly Name: string; + NewPassword(bstrOld: string, bstrNew: string): void; + OpenRecordset(Name: string, Type?: any, Options?: any, LockEdit?: any): Recordset; + PopulatePartial(DbPathName: string): void; + readonly Properties: Properties; + readonly QueryDefs: QueryDefs; + QueryTimeout: number; + readonly RecordsAffected: number; + readonly Recordsets: Recordsets; + readonly Relations: Relations; + readonly ReplicaID: string; + Synchronize(DbPathName: string, ExchangeType?: any): void; + readonly TableDefs: TableDefs; + readonly Transactions: boolean; + readonly Updatable: boolean; + readonly Version: string; + } + + class Databases { + private 'DAO.Databases_typekey': Databases; + private constructor(); + readonly Count: number; + Item(Item: any): Database; + Refresh(): void; + } + + class DBEngine { + private 'DAO.DBEngine_typekey': DBEngine; + private constructor(); + BeginTrans(): void; + + /** @param number [Option=0] */ + CommitTrans(Option?: number): void; + CompactDatabase(SrcName: string, DstName: string, DstLocale?: any, Options?: any, SrcLocale?: any): void; + CreateDatabase(Name: string, Locale: string, Option?: any): Database; + CreateWorkspace(Name: string, UserName: string, Password: string, UseType?: any): Workspace; + readonly DefaultPassword: string; + DefaultType: number; + readonly DefaultUser: string; + readonly Errors: Errors; + Idle(Action?: any): void; + IniPath: string; + ISAMStats(StatNum: number, Reset?: any): number; + LoginTimeout: number; + OpenConnection(Name: string, Options?: any, ReadOnly?: any, Connect?: any): Connection; + OpenDatabase(Name: string, Options?: any, ReadOnly?: any, Connect?: any): Database; + readonly Properties: Properties; + RegisterDatabase(Dsn: string, Driver: string, Silent: boolean, Attributes: string): void; + RepairDatabase(Name: string): void; + Rollback(): void; + SetOption(Option: number, Value: any): void; + SystemDB: string; + readonly Version: string; + readonly Workspaces: Workspaces; + } + + class Document { + private 'DAO.Document_typekey': Document; + private constructor(); + readonly AllPermissions: number; + readonly Container: string; + CreateProperty(Name?: any, Type?: any, Value?: any, DDL?: any): Property; + readonly DateCreated: any; + readonly LastUpdated: any; + readonly Name: string; + Owner: string; + Permissions: number; + readonly Properties: Properties; + UserName: string; + } + + class Documents { + private 'DAO.Documents_typekey': Documents; + private constructor(); + readonly Count: number; + Item(Item: any): Document; + Refresh(): void; + } + + class Error { + private 'DAO.Error_typekey': Error; + private constructor(); + readonly Description: string; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly Source: string; + } + + class Errors { + private 'DAO.Errors_typekey': Errors; + private constructor(); + readonly Count: number; + Item(Item: any): Error; + Refresh(): void; + } + + class Field { + private 'DAO.Field_typekey': Field; + private constructor(); + AllowZeroLength: boolean; + AppendChunk(Val: any): void; + Attributes: number; + readonly CollatingOrder: number; + readonly CollectionIndex: number; + CreateProperty(Name?: any, Type?: any, Value?: any, DDL?: any): Property; + readonly DataUpdatable: boolean; + DefaultValue: any; + readonly FieldSize: number; + ForeignName: string; + GetChunk(Offset: number, Bytes: number): any; + Name: string; + OrdinalPosition: number; + readonly OriginalValue: any; + readonly Properties: Properties; + Required: boolean; + Size: number; + readonly SourceField: string; + readonly SourceTable: string; + Type: number; + ValidateOnSet: boolean; + ValidationRule: string; + ValidationText: string; + Value: any; + readonly VisibleValue: any; + } + + class Fields { + private 'DAO.Fields_typekey': Fields; + private constructor(); + Append(Object: any): void; + readonly Count: number; + Delete(Name: string): void; + Item(Item: any): Field; + Refresh(): void; + } + + class Group { + private 'DAO.Group_typekey': Group; + private constructor(); + CreateUser(Name?: any, PID?: any, Password?: any): User; + Name: string; + readonly PID: string; + readonly Properties: Properties; + readonly Users: Users; + } + + class Groups { + private 'DAO.Groups_typekey': Groups; + private constructor(); + Append(Object: any): void; + readonly Count: number; + Delete(Name: string): void; + Item(Item: any): Group; + Refresh(): void; + } + + class Index { + private 'DAO.Index_typekey': Index; + private constructor(); + Clustered: boolean; + CreateField(Name?: any, Type?: any, Size?: any): Field; + CreateProperty(Name?: any, Type?: any, Value?: any, DDL?: any): Property; + readonly DistinctCount: number; + Fields: any; + readonly Foreign: boolean; + IgnoreNulls: boolean; + Name: string; + Primary: boolean; + readonly Properties: Properties; + Required: boolean; + Unique: boolean; + } + + class Indexes { + private 'DAO.Indexes_typekey': Indexes; + private constructor(); + Append(Object: any): void; + readonly Count: number; + Delete(Name: string): void; + Item(Item: any): Index; + Refresh(): void; + } + + class Parameter { + private 'DAO.Parameter_typekey': Parameter; + private constructor(); + Direction: number; + readonly Name: string; + readonly Properties: Properties; + Type: number; + Value: any; + } + + class Parameters { + private 'DAO.Parameters_typekey': Parameters; + private constructor(); + readonly Count: number; + Item(Item: any): Parameter; + Refresh(): void; + } + + /** DAO 3.0 DBEngine (private) */ + class PrivDBEngine { + private 'DAO.PrivDBEngine_typekey': PrivDBEngine; + private constructor(); + BeginTrans(): void; + + /** @param number [Option=0] */ + CommitTrans(Option?: number): void; + CompactDatabase(SrcName: string, DstName: string, DstLocale?: any, Options?: any, SrcLocale?: any): void; + CreateDatabase(Name: string, Locale: string, Option?: any): Database; + CreateWorkspace(Name: string, UserName: string, Password: string, UseType?: any): Workspace; + readonly DefaultPassword: string; + DefaultType: number; + readonly DefaultUser: string; + readonly Errors: Errors; + Idle(Action?: any): void; + IniPath: string; + ISAMStats(StatNum: number, Reset?: any): number; + LoginTimeout: number; + OpenConnection(Name: string, Options?: any, ReadOnly?: any, Connect?: any): Connection; + OpenDatabase(Name: string, Options?: any, ReadOnly?: any, Connect?: any): Database; + readonly Properties: Properties; + RegisterDatabase(Dsn: string, Driver: string, Silent: boolean, Attributes: string): void; + RepairDatabase(Name: string): void; + Rollback(): void; + SetOption(Option: number, Value: any): void; + SystemDB: string; + readonly Version: string; + readonly Workspaces: Workspaces; + } + + class Properties { + private 'DAO.Properties_typekey': Properties; + private constructor(); + Append(Object: any): void; + readonly Count: number; + Delete(Name: string): void; + Item(Item: any): Property; + Refresh(): void; + } + + class Property { + private 'DAO.Property_typekey': Property; + private constructor(); + readonly Inherited: boolean; + Name: string; + readonly Properties: Properties; + Type: number; + Value: any; + } + + class QueryDef { + private 'DAO.QueryDef_typekey': QueryDef; + private constructor(); + CacheSize: number; + Cancel(): void; + Close(): void; + Connect: string; + CreateProperty(Name?: any, Type?: any, Value?: any, DDL?: any): Property; + readonly DateCreated: any; + Execute(Options?: any): void; + readonly Fields: Fields; + readonly hStmt: number; + readonly LastUpdated: any; + MaxRecords: number; + Name: string; + ODBCTimeout: number; + OpenRecordset(Type?: any, Options?: any, LockEdit?: any): Recordset; + readonly Parameters: Parameters; + Prepare: any; + readonly Properties: Properties; + readonly RecordsAffected: number; + ReturnsRecords: boolean; + SQL: string; + readonly StillExecuting: boolean; + readonly Type: number; + readonly Updatable: boolean; + } + + class QueryDefs { + private 'DAO.QueryDefs_typekey': QueryDefs; + private constructor(); + Append(Object: any): void; + readonly Count: number; + Delete(Name: string): void; + Item(Item: any): QueryDef; + Refresh(): void; + } + + class Recordset { + private 'DAO.Recordset_typekey': Recordset; + private constructor(); + AbsolutePosition: number; + AddNew(): void; + readonly BatchCollisionCount: number; + readonly BatchCollisions: any; + BatchSize: number; + readonly BOF: boolean; + Bookmark: SafeArray; + readonly Bookmarkable: boolean; + CacheSize: number; + CacheStart: SafeArray; + Cancel(): void; + + /** @param number [UpdateType=1] */ + CancelUpdate(UpdateType?: number): void; + Clone(): Recordset; + Close(): void; + Collect(Item: any): any; + Connection: Connection; + CopyQueryDef(): QueryDef; + readonly DateCreated: any; + Delete(): void; + Edit(): void; + readonly EditMode: number; + readonly EOF: boolean; + readonly Fields: Fields; + FillCache(Rows?: any, StartBookmark?: any): void; + Filter: string; + FindFirst(Criteria: string): void; + FindLast(Criteria: string): void; + FindNext(Criteria: string): void; + FindPrevious(Criteria: string): void; + GetRows(NumRows?: any): any; + readonly hStmt: number; + Index: string; + readonly LastModified: SafeArray; + readonly LastUpdated: any; + LockEdits: boolean; + Move(Rows: number, StartBookmark?: any): void; + MoveFirst(): void; + + /** @param number [Options=0] */ + MoveLast(Options?: number): void; + MoveNext(): void; + MovePrevious(): void; + readonly Name: string; + NextRecordset(): boolean; + readonly NoMatch: boolean; + readonly ODBCFetchCount: number; + readonly ODBCFetchDelay: number; + OpenRecordset(Type?: any, Options?: any): Recordset; + readonly Parent: Database; + PercentPosition: number; + readonly Properties: Properties; + readonly RecordCount: number; + readonly RecordStatus: number; + Requery(NewQueryDef?: any): void; + readonly Restartable: boolean; + Seek( + Comparison: string, Key1: any, Key2?: any, Key3?: any, Key4?: any, Key5?: any, Key6?: any, Key7?: any, Key8?: any, Key9?: any, Key10?: any, Key11?: any, Key12?: any, Key13?: any): void; + Sort: string; + readonly StillExecuting: boolean; + readonly Transactions: boolean; + readonly Type: number; + readonly Updatable: boolean; + + /** + * @param number [UpdateType=1] + * @param boolean [Force=false] + */ + Update(UpdateType?: number, Force?: boolean): void; + UpdateOptions: number; + readonly ValidationRule: string; + readonly ValidationText: string; + } + + class Recordsets { + private 'DAO.Recordsets_typekey': Recordsets; + private constructor(); + readonly Count: number; + Item(Item: any): Recordset; + Refresh(): void; + } + + class Relation { + private 'DAO.Relation_typekey': Relation; + private constructor(); + Attributes: number; + CreateField(Name?: any, Type?: any, Size?: any): Field; + readonly Fields: Fields; + ForeignTable: string; + Name: string; + PartialReplica: boolean; + readonly Properties: Properties; + Table: string; + } + + class Relations { + private 'DAO.Relations_typekey': Relations; + private constructor(); + Append(Object: any): void; + readonly Count: number; + Delete(Name: string): void; + Item(Item: any): Relation; + Refresh(): void; + } + + class TableDef { + private 'DAO.TableDef_typekey': TableDef; + private constructor(); + Attributes: number; + readonly ConflictTable: string; + Connect: string; + CreateField(Name?: any, Type?: any, Size?: any): Field; + CreateIndex(Name?: any): Index; + CreateProperty(Name?: any, Type?: any, Value?: any, DDL?: any): Property; + readonly DateCreated: any; + readonly Fields: Fields; + readonly Indexes: Indexes; + readonly LastUpdated: any; + Name: string; + OpenRecordset(Type?: any, Options?: any): Recordset; + readonly Properties: Properties; + readonly RecordCount: number; + RefreshLink(): void; + ReplicaFilter: any; + SourceTableName: string; + readonly Updatable: boolean; + ValidationRule: string; + ValidationText: string; + } + + class TableDefs { + private 'DAO.TableDefs_typekey': TableDefs; + private constructor(); + Append(Object: any): void; + readonly Count: number; + Delete(Name: string): void; + Item(Item: any): TableDef; + Refresh(): void; + } + + class User { + private 'DAO.User_typekey': User; + private constructor(); + CreateGroup(Name?: any, PID?: any): Group; + readonly Groups: Groups; + Name: string; + NewPassword(bstrOld: string, bstrNew: string): void; + readonly Password: string; + readonly PID: string; + readonly Properties: Properties; + } + + class Users { + private 'DAO.Users_typekey': Users; + private constructor(); + Append(Object: any): void; + readonly Count: number; + Delete(Name: string): void; + Item(Item: any): User; + Refresh(): void; + } + + class Workspace { + private 'DAO.Workspace_typekey': Workspace; + private constructor(); + BeginTrans(): void; + Close(): void; + + /** @param number [Options=0] */ + CommitTrans(Options?: number): void; + readonly Connections: Connections; + CreateDatabase(Name: string, Connect: string, Option?: any): Database; + CreateGroup(Name?: any, PID?: any): Group; + CreateUser(Name?: any, PID?: any, Password?: any): User; + readonly Databases: Databases; + DefaultCursorDriver: number; + readonly Groups: Groups; + readonly hEnv: number; + IsolateODBCTrans: number; + LoginTimeout: number; + Name: string; + OpenConnection(Name: string, Options?: any, ReadOnly?: any, Connect?: any): Connection; + OpenDatabase(Name: string, Options?: any, ReadOnly?: any, Connect?: any): Database; + readonly Properties: Properties; + Rollback(): void; + readonly Type: number; + readonly UserName: string; + readonly Users: Users; + } + + class Workspaces { + private 'DAO.Workspaces_typekey': Workspaces; + private constructor(); + Append(Object: any): void; + readonly Count: number; + Delete(Name: string): void; + Item(Item: any): Workspace; + Refresh(): void; + } +} + +interface ActiveXObject { + new(progid: K): ActiveXObjectNameMap[K]; +} + +interface ActiveXObjectNameMap { + 'DAO.DBEngine': DAO.DBEngine; + 'DAO.DBEngine.120': DAO.DBEngine; + 'DAO.Field': DAO.Field; + 'DAO.Group': DAO.Group; + 'DAO.Index': DAO.Index; + 'DAO.PrivateDBEngine': DAO.PrivDBEngine; + 'DAO.QueryDef': DAO.QueryDef; + 'DAO.Relation': DAO.Relation; + 'DAO.TableDef': DAO.TableDef; + 'DAO.User': DAO.User; +} + +interface EnumeratorConstructor { + new(col: DAO.Connections): Enumerator; + new(col: DAO.Containers): Enumerator; + new(col: DAO.Databases): Enumerator; + new(col: DAO.Documents): Enumerator; + new(col: DAO.Errors): Enumerator; + new(col: DAO.Fields): Enumerator; + new(col: DAO.Groups): Enumerator; + new(col: DAO.Indexes): Enumerator; + new(col: DAO.Parameters): Enumerator; + new(col: DAO.Properties): Enumerator; + new(col: DAO.QueryDefs): Enumerator; + new(col: DAO.Recordsets): Enumerator; + new(col: DAO.Relations): Enumerator; + new(col: DAO.TableDefs): Enumerator; + new(col: DAO.Users): Enumerator; + new(col: DAO.Workspaces): Enumerator; +} + +interface SafeArray { + _brand: SafeArray; +} diff --git a/types/activex-dao/package.json b/types/activex-dao/package.json new file mode 100644 index 0000000000..d9b1031263 --- /dev/null +++ b/types/activex-dao/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "activex-helpers": "*" + } +} \ No newline at end of file diff --git a/types/activex-dao/tsconfig.json b/types/activex-dao/tsconfig.json new file mode 100644 index 0000000000..d23ed8dfe1 --- /dev/null +++ b/types/activex-dao/tsconfig.json @@ -0,0 +1,21 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es5", "scripthost"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "activex-dao-tests.ts" + ] +} \ No newline at end of file diff --git a/types/activex-dao/tslint.json b/types/activex-dao/tslint.json new file mode 100644 index 0000000000..4ac54521fe --- /dev/null +++ b/types/activex-dao/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": [false] + } +} \ No newline at end of file diff --git a/types/activex-excel/activex-excel-tests.ts b/types/activex-excel/activex-excel-tests.ts new file mode 100644 index 0000000000..b93a924263 --- /dev/null +++ b/types/activex-excel/activex-excel-tests.ts @@ -0,0 +1,320 @@ +/// +/// + +// some helpers +const toSafeArray = (...items: T[]): SafeArray => { + const dict = new ActiveXObject('Scripting.Dictionary'); + items.forEach((x, index) => dict.Add(index, x)); + return dict.Items() as SafeArray; +}; +const inCollection = (collection: { Item(index: any): T }, index: string | number): T | undefined => { + let item: T | undefined; + try { + item = collection.Item(index); + } catch (error) { } + return item; +}; + +const app = new ActiveXObject('Excel.Application'); + +// create a workbook -- https://msdn.microsoft.com/en-us/vba/excel-vba/articles/create-a-workbook +const newBook = app.Workbooks.Add(); +newBook.Title = 'All Sales'; +newBook.Subject = 'Sales'; +newBook.SaveAs('allsales.xls'); + +// create or replace a worksheet -- https://msdn.microsoft.com/en-us/vba/excel-vba/articles/create-or-replace-a-worksheet +const newOrExistingWorksheet = () => { + const mySheetName = 'Sheet4'; + let mySheet = inCollection(newBook.Worksheets, mySheetName) as Excel.Worksheet | undefined; + if (!mySheet) { + WScript.Echo(`The sheet named "${mySheetName} doesn't exist, but will be created.`); + mySheet = app.Worksheets.Add() as Excel.Worksheet; + mySheet.Name = mySheetName; + } +}; +const replaceWorksheet = () => { + const mySheetName = 'Sheet4'; + app.DisplayAlerts = false; + let mySheet = inCollection(app.Worksheets, mySheetName); + if (mySheet) { mySheet.Delete(); } + app.DisplayAlerts = true; + mySheet = app.Worksheets.Add() as Excel.Worksheet; + mySheet.Name = mySheetName; + WScript.Echo(`The sheet named "${mySheetName} has been replaced.`); +}; + +// referencing multiple sheets -- https://msdn.microsoft.com/VBA/Excel-VBA/articles/sheets-object-excel +const moveMultipleSheets = () => { + app.Worksheets.Item(toSafeArray(1, 'Sheet2')).Move(4); +}; + +// sort worksheets alphanumerically by name -- https://msdn.microsoft.com/en-us/vba/excel-vba/articles/sort-worksheets-alphanumerically-by-name +const sortSheetsTabName = () => { + app.ScreenUpdating = false; + const sheets = app.ActiveWorkbook.Sheets; + const sheetCount = sheets.Count; + for (let i = 0; i < sheetCount; i += 1) { + const sheetI = sheets.Item(i); + for (let j = i; j < sheetCount; j += 1) { + const sheetJ = sheets.Item(j); + if (sheetJ.Name < sheetI.Name) { sheetJ.Move(sheetI); } + } + } + app.ScreenUpdating = true; +}; + +// fill a value down into blank cells in a column -- https://msdn.microsoft.com/en-us/vba/excel-vba/articles/fill-a-value-down-into-blank-cells-in-a-column +const fillCellsFromAbove = () => { + app.ScreenUpdating = false; + const columnA = app.Columns.Item(1); + try { + columnA.SpecialCells(Excel.XlCellType.xlCellTypeBlanks).Formula = '=R[-1]C'; + columnA.Value = columnA.Value; + } catch (error) { } + app.ScreenUpdating = true; +}; + +// hide and unhide columns -- https://msdn.microsoft.com/en-us/vba/excel-vba/articles/hide-and-unhide-columns +const setColumnVisibility = (visible: boolean) => { + const book = app.Workbooks.Item(1); + const sheet = inCollection(book.Worksheets, 'Sheet1'); + if (!sheet) { return; } + + // search the four columns for any constants + const checkWithin = (sheet as Excel.Worksheet).Range('A1:D1').SpecialCells(Excel.XlCellType.xlCellTypeConstants); + + let find = checkWithin.Find('X'); + if (!find) { return; } + const address = find.Address(); + + // hide the column, and then find the next X + do { + find.EntireColumn.Hidden = visible; + find = checkWithin.FindNext(find); + } while (find && find.Address() !== address); +}; + +// highlighting the active cell, row, or column -- https://msdn.microsoft.com/en-us/vba/excel-vba/articles/highlight-the-active-cell-row-or-column +(() => { + const wks = app.ActiveSheet as Excel.Worksheet; + + // highlight active cell + ActiveXObject.on(wks, 'SelectionChange', ['Target'], function(this: Excel.Worksheet, prm) { + app.ScreenUpdating = false; + // clear the color of all the cells + this.Cells.Interior.ColorIndex = 0; + // highlight the actie cell + prm.Target.Interior.ColorIndex = 8; + app.ScreenUpdating = true; + }); + + // highlight entire row and column that contain active cell + ActiveXObject.on(wks, 'SelectionChange', ['Target'], function(this: Excel.Worksheet, prm) { + if (prm.Target.Cells.Count > 1) { return; } + app.ScreenUpdating = false; + // clear the color of all the cells in the row and column of the active cell + this.Cells.Interior.ColorIndex = 0; + prm.Target.EntireRow.Interior.ColorIndex = 8; + prm.Target.EntireColumn.Interior.ColorIndex = 8; + app.ScreenUpdating = true; + }); +})(); + +// referencing cells -- https://msdn.microsoft.com/en-us/vba/excel-vba/articles/reference-cells-and-ranges +(() => { + const wks = app.ActiveSheet as Excel.Worksheet; + + // all the cells on a worksheet + wks.Cells.ClearContents(); + + // using A1 notation + wks.Range('A1').Font.Bold = true; + wks.Range('A1:D5').Font.Bold = true; + wks.Range('C5:D9,G9:H16').Font.Bold = true; + wks.Range('A:A').Font.Bold = true; + wks.Range('1:1').Font.Bold = true; + wks.Range('A:C').Font.Bold = true; + wks.Range('1:5').Font.Bold = true; + wks.Range('1:1,3:3,8:8').Font.Bold = true; + wks.Range('A:A,C:C,F:F').Font.Bold = true; + + // using index numbers + wks.Cells.Item(6, 1).Value2 = 10; + // Value is also a property with parameters + ActiveXObject.set(wks.Cells.Item(6, 1), 'Value', 10); + + // iterating through cells using index numbers + for (let counter = 1; counter < 20; counter += 1) { + ActiveXObject.set(wks.Cells.Item(counter, 1), 'Value', 10); + } + + // relative to other cells + wks.Cells.Item(1, 1).Font.Underline = Excel.XlUnderlineStyle.xlUnderlineStyleDouble; + + // using a Range object + const rng = wks.Cells.Item('A1:D5'); + rng.Formula = '=RAND()'; + rng.Font.Bold = true; + + // refer to multiple ranges, using Union + const r1 = wks.Range('A1:A10'); + const r2 = wks.Range('B4:B20'); + const union = app.Union(r1, r2); + union.Font.Bold = true; + + // refer to multiple ranges using Areas + WScript.Echo(union.Areas.Count); +})(); + +// looping through a range of cells -- https://msdn.microsoft.com/en-us/vba/excel-vba/articles/looping-through-a-range-of-cells +(() => { + const wks = app.ActiveSheet as Excel.Worksheet; + + // using for + for (let x = 1; x < 20; x++) { + const currentCell = wks.Cells.Item(x, 1); + if (Math.abs(currentCell.Value()) < 0.01) { + // because Value is typed as a method on the Excel.Range class, we have to treat it as a setter with parameters + ActiveXObject.set(currentCell, 'Value', 0); + } + } + + // using Enumerator + let enumerator = new Enumerator(wks.Cells.Item('A1:D10')); + enumerator.moveFirst(); + while (!enumerator.atEnd()) { + const currentCell = enumerator.item(); + if (Math.abs(currentCell.Value) < 0.01) { + currentCell.Value = 0; + } + enumerator.moveNext(); + } + + // using CurrentRegion + enumerator = new Enumerator(app.ActiveCell.CurrentRegion); + enumerator.moveFirst(); + while (!enumerator.atEnd()) { + const cell = enumerator.item(); + if (Math.abs(cell.Value) < 0.01) { + cell.Value = 0; + } + enumerator.moveNext(); + } +})(); + +// using selection -- https://msdn.microsoft.com/en-us/vba/excel-vba/articles/selecting-and-activating-cells +(() => { + const wks = app.ActiveWorkbook.Worksheets.Item(1) as Excel.Worksheet; + + // make a worksheet the active worksheet; otherwise code which uses the selection will fail + wks.Select(); + + // select a cell + wks.Range("A1").Select(); + app.ActiveCell.Font.Bold = true; + + // activate a cell; only a single cell can be active at any given time + wks.Range("B1").Activate(); + + // working with 3-D ranges -- https://msdn.microsoft.com/en-us/vba/excel-vba/articles/working-with-3-d-ranges + app.Sheets.Item(toSafeArray("Sheet2", "Sheet3", "Sheet4")).Select(); + app.Range("A1:H1").Select(); + (app.Selection as Excel.Range).Borders.Item(Excel.XlBordersIndex.xlEdgeBottom).LineStyle = Excel.XlLineStyle.xlDouble; + + // alternatively, use FillAcrossSheets to fill formatting and data across sheets + const book = app.ActiveWorkbook; + const wks2 = book.Sheets.Item("Sheet2") as Excel.Worksheet; + const rng = wks2.Range("A1:H1"); + rng.Borders.Item(Excel.XlBordersIndex.xlEdgeBottom).LineStyle = Excel.XlLineStyle.xlDouble; + book.Sheets.FillAcrossSheets(rng); +})(); + +// prevent duplicate entry -- https://msdn.microsoft.com/en-us/vba/excel-vba/articles/prevent-duplicate-entries-in-a-range +(() => { + const book = app.Workbooks.Item(1); + + ActiveXObject.on(book, 'SheetChange', ['Sh', 'Target'], function(this, prm) { + const EvalRange = this.ActiveSheet.Range("A1:B20"); + + // If the cell where the value was entered is not in the defined range, if the value pasted is larger than a single cell, or if no value was entered in the cell, then exit the macro + if ( + (app.Intersect(prm.Target, EvalRange) == null) || + (prm.Target.Cells.Count > 1) + // VBA has a function called IsEmpty; not sure what the equivalent is in Javascript + ) { return; } + + // If the value entered already exists in the defined range on the current worksheet, undo and exit + if (app.WorksheetFunction.CountIf(EvalRange, prm.Target.Value()) > 1) { + app.EnableEvents = false; + app.Undo(); + app.EnableEvents = true; + return; + } + + const enumerator = new Enumerator(book.Worksheets); + enumerator.moveFirst(); + while (!enumerator.atEnd()) { + const wks = enumerator.item() as Excel.Worksheet; + if (wks.Name === prm.Target.Name) { continue; } + + // If the value entered already exists in the defined range on the current worksheet, undo the entry. + if (app.WorksheetFunction.CountIf(wks.Range('A1:B20'), prm.Target.Value()) === 0) { continue; } + + app.EnableEvents = false; + app.Undo(); + app.EnableEvents = true; + } + }); +})(); + +// add a unique list of values to a combobox -- https://msdn.microsoft.com/en-us/vba/excel-vba/articles/add-a-unique-list-of-values-to-a-combo-box +(() => { + (() => { + // using the AdvancedFilter property + const book = app.ThisWorkbook; + const sheet = book.Worksheets.Item("Sheet1") as Excel.Worksheet; + const dataRange = sheet.Range('A1', sheet.Range("A100").End(Excel.XlDirection.xlUp)); + dataRange.AdvancedFilter(Excel.XlFilterAction.xlFilterCopy, undefined, sheet.Range('L1'), true); + const data = sheet.Range("L2", sheet.Range('L100').End(Excel.XlDirection.xlUp)).Value() as SafeArray; + sheet.Range('L1', sheet.Range('L100').End(Excel.XlDirection.xlUp)).ClearContents(); + + const combobox = sheet.OLEObjects('ComboBox1').Object as MSForms.ComboBox2; + combobox.Clear(); + ActiveXObject.set(combobox, 'List', [], data); + combobox.ListIndex = -1; + })(); + + (() => { + // using a Dictionary + const sheet = app.ThisWorkbook.Sheets.Item('Sheet2') as Excel.Worksheet; + const data = sheet.Range('A2', sheet.Range('A100').End(Excel.XlDirection.xlUp)).Value2 as SafeArray; + const arr = new VBArray(data).toArray(); + const dict = new ActiveXObject('Scripting.Dictionary'); + arr.forEach(x => ActiveXObject.set(dict, 'Item', [x], true)); + + const combobox = sheet.OLEObjects('ComboBox1').Object as MSForms.ComboBox2; + combobox.Clear(); + const enumerator = new Enumerator(dict.Items()); + enumerator.moveFirst(); + while (!enumerator.atEnd()) { + combobox.AddItem(enumerator.item()); + } + })(); +})(); + +// animating a sparkline -- https://msdn.microsoft.com/en-us/vba/excel-vba/articles/animate-a-sparkline +(() => { + const wks = app.ActiveSheet as Excel.Worksheet; + const oSparkGroup = wks.Cells.SparklineGroups.Item(1); + + // Set the data source to the first year of data + oSparkGroup.ModifySourceData('B2:M4'); + + // Loop through the data points for the subsequent two years + for (let i = 1; i <= 24; i++) { + // Move the reference for the sparkline group over one cell + oSparkGroup.ModifySourceData(wks.Range(oSparkGroup.SourceData).Offset(0, 1).Address()); + WScript.Sleep(1000); + } +})(); diff --git a/types/activex-excel/index.d.ts b/types/activex-excel/index.d.ts new file mode 100644 index 0000000000..ec2044f1e7 --- /dev/null +++ b/types/activex-excel/index.d.ts @@ -0,0 +1,9550 @@ +// Type definitions for Microsoft Excel 14.0 Object Library - Excel 14.0 +// Project: https://msdn.microsoft.com/en-us/library/fp179694.aspx +// Definitions by: Zev Spitz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// +/// +/// + +declare namespace Excel { + const enum Constants { + xl3DBar = -4099, + xl3DEffects1 = 13, + xl3DEffects2 = 14, + xl3DSurface = -4103, + xlAbove = 0, + xlAccounting1 = 4, + xlAccounting2 = 5, + xlAccounting3 = 6, + xlAccounting4 = 17, + xlAdd = 2, + xlAll = -4104, + xlAllExceptBorders = 7, + xlAutomatic = -4105, + xlBar = 2, + xlBelow = 1, + xlBidi = -5000, + xlBidiCalendar = 3, + xlBoth = 1, + xlBottom = -4107, + xlCascade = 7, + xlCenter = -4108, + xlCenterAcrossSelection = 7, + xlChart4 = 2, + xlChartSeries = 17, + xlChartShort = 6, + xlChartTitles = 18, + xlChecker = 9, + xlCircle = 8, + xlClassic1 = 1, + xlClassic2 = 2, + xlClassic3 = 3, + xlClosed = 3, + xlColor1 = 7, + xlColor2 = 8, + xlColor3 = 9, + xlColumn = 3, + xlCombination = -4111, + xlComplete = 4, + xlConstants = 2, + xlContents = 2, + xlContext = -5002, + xlCorner = 2, + xlCrissCross = 16, + xlCross = 4, + xlCustom = -4114, + xlDebugCodePane = 13, + xlDefaultAutoFormat = -1, + xlDesktop = 9, + xlDiamond = 2, + xlDirect = 1, + xlDistributed = -4117, + xlDivide = 5, + xlDoubleAccounting = 5, + xlDoubleClosed = 5, + xlDoubleOpen = 4, + xlDoubleQuote = 1, + xlDrawingObject = 14, + xlEntireChart = 20, + xlExcelMenus = 1, + xlExtended = 3, + xlFill = 5, + xlFirst = 0, + xlFixedValue = 1, + xlFloating = 5, + xlFormats = -4122, + xlFormula = 5, + xlFullScript = 1, + xlGeneral = 1, + xlGray16 = 17, + xlGray25 = -4124, + xlGray50 = -4125, + xlGray75 = -4126, + xlGray8 = 18, + xlGregorian = 2, + xlGrid = 15, + xlGridline = 22, + xlHigh = -4127, + xlHindiNumerals = 3, + xlIcons = 1, + xlImmediatePane = 12, + xlInside = 2, + xlInteger = 2, + xlJustify = -4130, + xlLast = 1, + xlLastCell = 11, + xlLatin = -5001, + xlLeft = -4131, + xlLeftToRight = 2, + xlLightDown = 13, + xlLightHorizontal = 11, + xlLightUp = 14, + xlLightVertical = 12, + xlList1 = 10, + xlList2 = 11, + xlList3 = 12, + xlLocalFormat1 = 15, + xlLocalFormat2 = 16, + xlLogicalCursor = 1, + xlLong = 3, + xlLotusHelp = 2, + xlLow = -4134, + xlLTR = -5003, + xlMacrosheetCell = 7, + xlManual = -4135, + xlMaximum = 2, + xlMinimum = 4, + xlMinusValues = 3, + xlMixed = 2, + xlMixedAuthorizedScript = 4, + xlMixedScript = 3, + xlModule = -4141, + xlMultiply = 4, + xlNarrow = 1, + xlNextToAxis = 4, + xlNoDocuments = 3, + xlNone = -4142, + xlNotes = -4144, + xlOff = -4146, + xlOn = 1, + xlOpaque = 3, + xlOpen = 2, + xlOutside = 3, + xlPartial = 3, + xlPartialScript = 2, + xlPercent = 2, + xlPlus = 9, + xlPlusValues = 2, + xlReference = 4, + xlRight = -4152, + xlRTL = -5004, + xlScale = 3, + xlSemiautomatic = 2, + xlSemiGray75 = 10, + xlShort = 1, + xlShowLabel = 4, + xlShowLabelAndPercent = 5, + xlShowPercent = 3, + xlShowValue = 2, + xlSimple = -4154, + xlSingle = 2, + xlSingleAccounting = 4, + xlSingleQuote = 2, + xlSolid = 1, + xlSquare = 1, + xlStar = 5, + xlStError = 4, + xlStrict = 2, + xlSubtract = 3, + xlSystem = 1, + xlTextBox = 16, + xlTiled = 1, + xlTitleBar = 8, + xlToolbar = 1, + xlToolbarButton = 2, + xlTop = -4160, + xlTopToBottom = 1, + xlTransparent = 2, + xlTriangle = 3, + xlVeryHidden = 2, + xlVisible = 12, + xlVisualCursor = 2, + xlWatchPane = 11, + xlWide = 3, + xlWorkbookTab = 6, + xlWorksheet4 = 1, + xlWorksheetCell = 3, + xlWorksheetShort = 5, + } + + const enum XlAboveBelow { + xlAboveAverage = 0, + xlAboveStdDev = 4, + xlBelowAverage = 1, + xlBelowStdDev = 5, + xlEqualAboveAverage = 2, + xlEqualBelowAverage = 3, + } + + const enum XlActionType { + xlActionTypeDrillthrough = 256, + xlActionTypeReport = 128, + xlActionTypeRowset = 16, + xlActionTypeUrl = 1, + } + + const enum XlAllocation { + xlAutomaticAllocation = 2, + xlManualAllocation = 1, + } + + const enum XlAllocationMethod { + xlEqualAllocation = 1, + xlWeightedAllocation = 2, + } + + const enum XlAllocationValue { + xlAllocateIncrement = 2, + xlAllocateValue = 1, + } + + const enum XlApplicationInternational { + xl24HourClock = 33, + xl4DigitYears = 43, + xlAlternateArraySeparator = 16, + xlColumnSeparator = 14, + xlCountryCode = 1, + xlCountrySetting = 2, + xlCurrencyBefore = 37, + xlCurrencyCode = 25, + xlCurrencyDigits = 27, + xlCurrencyLeadingZeros = 40, + xlCurrencyMinusSign = 38, + xlCurrencyNegative = 28, + xlCurrencySpaceBefore = 36, + xlCurrencyTrailingZeros = 39, + xlDateOrder = 32, + xlDateSeparator = 17, + xlDayCode = 21, + xlDayLeadingZero = 42, + xlDecimalSeparator = 3, + xlGeneralFormatName = 26, + xlHourCode = 22, + xlLeftBrace = 12, + xlLeftBracket = 10, + xlListSeparator = 5, + xlLowerCaseColumnLetter = 9, + xlLowerCaseRowLetter = 8, + xlMDY = 44, + xlMetric = 35, + xlMinuteCode = 23, + xlMonthCode = 20, + xlMonthLeadingZero = 41, + xlMonthNameChars = 30, + xlNoncurrencyDigits = 29, + xlNonEnglishFunctions = 34, + xlRightBrace = 13, + xlRightBracket = 11, + xlRowSeparator = 15, + xlSecondCode = 24, + xlThousandsSeparator = 4, + xlTimeLeadingZero = 45, + xlTimeSeparator = 18, + xlUpperCaseColumnLetter = 7, + xlUpperCaseRowLetter = 6, + xlWeekdayNameChars = 31, + xlYearCode = 19, + } + + const enum XlApplyNamesOrder { + xlColumnThenRow = 2, + xlRowThenColumn = 1, + } + + const enum XlArabicModes { + xlArabicBothStrict = 3, + xlArabicNone = 0, + xlArabicStrictAlefHamza = 1, + xlArabicStrictFinalYaa = 2, + } + + const enum XlArrangeStyle { + xlArrangeStyleCascade = 7, + xlArrangeStyleHorizontal = -4128, + xlArrangeStyleTiled = 1, + xlArrangeStyleVertical = -4166, + } + + const enum XlArrowHeadLength { + xlArrowHeadLengthLong = 3, + xlArrowHeadLengthMedium = -4138, + xlArrowHeadLengthShort = 1, + } + + const enum XlArrowHeadStyle { + xlArrowHeadStyleClosed = 3, + xlArrowHeadStyleDoubleClosed = 5, + xlArrowHeadStyleDoubleOpen = 4, + xlArrowHeadStyleNone = -4142, + xlArrowHeadStyleOpen = 2, + } + + const enum XlArrowHeadWidth { + xlArrowHeadWidthMedium = -4138, + xlArrowHeadWidthNarrow = 1, + xlArrowHeadWidthWide = 3, + } + + const enum XlAutoFillType { + xlFillCopy = 1, + xlFillDays = 5, + xlFillDefault = 0, + xlFillFormats = 3, + xlFillMonths = 7, + xlFillSeries = 2, + xlFillValues = 4, + xlFillWeekdays = 6, + xlFillYears = 8, + xlGrowthTrend = 10, + xlLinearTrend = 9, + } + + const enum XlAutoFilterOperator { + xlAnd = 1, + xlBottom10Items = 4, + xlBottom10Percent = 6, + xlFilterAutomaticFontColor = 13, + xlFilterCellColor = 8, + xlFilterDynamic = 11, + xlFilterFontColor = 9, + xlFilterIcon = 10, + xlFilterNoFill = 12, + xlFilterNoIcon = 14, + xlFilterValues = 7, + xlOr = 2, + xlTop10Items = 3, + xlTop10Percent = 5, + } + + const enum XlAxisCrosses { + xlAxisCrossesAutomatic = -4105, + xlAxisCrossesCustom = -4114, + xlAxisCrossesMaximum = 2, + xlAxisCrossesMinimum = 4, + } + + const enum XlAxisGroup { + xlPrimary = 1, + xlSecondary = 2, + } + + const enum XlAxisType { + xlCategory = 1, + xlSeriesAxis = 3, + xlValue = 2, + } + + const enum XlBackground { + xlBackgroundAutomatic = -4105, + xlBackgroundOpaque = 3, + xlBackgroundTransparent = 2, + } + + const enum XlBarShape { + xlBox = 0, + xlConeToMax = 5, + xlConeToPoint = 4, + xlCylinder = 3, + xlPyramidToMax = 2, + xlPyramidToPoint = 1, + } + + const enum XlBordersIndex { + xlDiagonalDown = 5, + xlDiagonalUp = 6, + xlEdgeBottom = 9, + xlEdgeLeft = 7, + xlEdgeRight = 10, + xlEdgeTop = 8, + xlInsideHorizontal = 12, + xlInsideVertical = 11, + } + + const enum XlBorderWeight { + xlHairline = 1, + xlMedium = -4138, + xlThick = 4, + xlThin = 2, + } + + const enum XlBuiltInDialog { + _xlDialogChartSourceData = 541, + _xlDialogPhonetic = 538, + xlDialogActivate = 103, + xlDialogActiveCellFont = 476, + xlDialogAddChartAutoformat = 390, + xlDialogAddinManager = 321, + xlDialogAlignment = 43, + xlDialogApplyNames = 133, + xlDialogApplyStyle = 212, + xlDialogAppMove = 170, + xlDialogAppSize = 171, + xlDialogArrangeAll = 12, + xlDialogAssignToObject = 213, + xlDialogAssignToTool = 293, + xlDialogAttachText = 80, + xlDialogAttachToolbars = 323, + xlDialogAutoCorrect = 485, + xlDialogAxes = 78, + xlDialogBorder = 45, + xlDialogCalculation = 32, + xlDialogCellProtection = 46, + xlDialogChangeLink = 166, + xlDialogChartAddData = 392, + xlDialogChartLocation = 527, + xlDialogChartOptionsDataLabelMultiple = 724, + xlDialogChartOptionsDataLabels = 505, + xlDialogChartOptionsDataTable = 506, + xlDialogChartSourceData = 540, + xlDialogChartTrend = 350, + xlDialogChartType = 526, + xlDialogChartWizard = 288, + xlDialogCheckboxProperties = 435, + xlDialogClear = 52, + xlDialogColorPalette = 161, + xlDialogColumnWidth = 47, + xlDialogCombination = 73, + xlDialogConditionalFormatting = 583, + xlDialogConsolidate = 191, + xlDialogCopyChart = 147, + xlDialogCopyPicture = 108, + xlDialogCreateList = 796, + xlDialogCreateNames = 62, + xlDialogCreatePublisher = 217, + xlDialogCustomizeToolbar = 276, + xlDialogCustomViews = 493, + xlDialogDataDelete = 36, + xlDialogDataLabel = 379, + xlDialogDataLabelMultiple = 723, + xlDialogDataSeries = 40, + xlDialogDataValidation = 525, + xlDialogDefineName = 61, + xlDialogDefineStyle = 229, + xlDialogDeleteFormat = 111, + xlDialogDeleteName = 110, + xlDialogDemote = 203, + xlDialogDisplay = 27, + xlDialogDocumentInspector = 862, + xlDialogEditboxProperties = 438, + xlDialogEditColor = 223, + xlDialogEditDelete = 54, + xlDialogEditionOptions = 251, + xlDialogEditSeries = 228, + xlDialogErrorbarX = 463, + xlDialogErrorbarY = 464, + xlDialogErrorChecking = 732, + xlDialogEvaluateFormula = 709, + xlDialogExternalDataProperties = 530, + xlDialogExtract = 35, + xlDialogFileDelete = 6, + xlDialogFileSharing = 481, + xlDialogFillGroup = 200, + xlDialogFillWorkgroup = 301, + xlDialogFilter = 447, + xlDialogFilterAdvanced = 370, + xlDialogFindFile = 475, + xlDialogFont = 26, + xlDialogFontProperties = 381, + xlDialogFormatAuto = 269, + xlDialogFormatChart = 465, + xlDialogFormatCharttype = 423, + xlDialogFormatFont = 150, + xlDialogFormatLegend = 88, + xlDialogFormatMain = 225, + xlDialogFormatMove = 128, + xlDialogFormatNumber = 42, + xlDialogFormatOverlay = 226, + xlDialogFormatSize = 129, + xlDialogFormatText = 89, + xlDialogFormulaFind = 64, + xlDialogFormulaGoto = 63, + xlDialogFormulaReplace = 130, + xlDialogFunctionWizard = 450, + xlDialogGallery3dArea = 193, + xlDialogGallery3dBar = 272, + xlDialogGallery3dColumn = 194, + xlDialogGallery3dLine = 195, + xlDialogGallery3dPie = 196, + xlDialogGallery3dSurface = 273, + xlDialogGalleryArea = 67, + xlDialogGalleryBar = 68, + xlDialogGalleryColumn = 69, + xlDialogGalleryCustom = 388, + xlDialogGalleryDoughnut = 344, + xlDialogGalleryLine = 70, + xlDialogGalleryPie = 71, + xlDialogGalleryRadar = 249, + xlDialogGalleryScatter = 72, + xlDialogGoalSeek = 198, + xlDialogGridlines = 76, + xlDialogImportTextFile = 666, + xlDialogInsert = 55, + xlDialogInsertHyperlink = 596, + xlDialogInsertNameLabel = 496, + xlDialogInsertObject = 259, + xlDialogInsertPicture = 342, + xlDialogInsertTitle = 380, + xlDialogLabelProperties = 436, + xlDialogListboxProperties = 437, + xlDialogMacroOptions = 382, + xlDialogMailEditMailer = 470, + xlDialogMailLogon = 339, + xlDialogMailNextLetter = 378, + xlDialogMainChart = 85, + xlDialogMainChartType = 185, + xlDialogMenuEditor = 322, + xlDialogMove = 262, + xlDialogMyPermission = 834, + xlDialogNameManager = 977, + xlDialogNew = 119, + xlDialogNewName = 978, + xlDialogNewWebQuery = 667, + xlDialogNote = 154, + xlDialogObjectProperties = 207, + xlDialogObjectProtection = 214, + xlDialogOpen = 1, + xlDialogOpenLinks = 2, + xlDialogOpenMail = 188, + xlDialogOpenText = 441, + xlDialogOptionsCalculation = 318, + xlDialogOptionsChart = 325, + xlDialogOptionsEdit = 319, + xlDialogOptionsGeneral = 356, + xlDialogOptionsListsAdd = 458, + xlDialogOptionsME = 647, + xlDialogOptionsTransition = 355, + xlDialogOptionsView = 320, + xlDialogOutline = 142, + xlDialogOverlay = 86, + xlDialogOverlayChartType = 186, + xlDialogPageSetup = 7, + xlDialogParse = 91, + xlDialogPasteNames = 58, + xlDialogPasteSpecial = 53, + xlDialogPatterns = 84, + xlDialogPermission = 832, + xlDialogPhonetic = 656, + xlDialogPivotCalculatedField = 570, + xlDialogPivotCalculatedItem = 572, + xlDialogPivotClientServerSet = 689, + xlDialogPivotFieldGroup = 433, + xlDialogPivotFieldProperties = 313, + xlDialogPivotFieldUngroup = 434, + xlDialogPivotShowPages = 421, + xlDialogPivotSolveOrder = 568, + xlDialogPivotTableOptions = 567, + xlDialogPivotTableSlicerConnections = 1183, + xlDialogPivotTableWhatIfAnalysisSettings = 1153, + xlDialogPivotTableWizard = 312, + xlDialogPlacement = 300, + xlDialogPrint = 8, + xlDialogPrinterSetup = 9, + xlDialogPrintPreview = 222, + xlDialogPromote = 202, + xlDialogProperties = 474, + xlDialogPropertyFields = 754, + xlDialogProtectDocument = 28, + xlDialogProtectSharing = 620, + xlDialogPublishAsWebPage = 653, + xlDialogPushbuttonProperties = 445, + xlDialogReplaceFont = 134, + xlDialogRoutingSlip = 336, + xlDialogRowHeight = 127, + xlDialogRun = 17, + xlDialogSaveAs = 5, + xlDialogSaveCopyAs = 456, + xlDialogSaveNewObject = 208, + xlDialogSaveWorkbook = 145, + xlDialogSaveWorkspace = 285, + xlDialogScale = 87, + xlDialogScenarioAdd = 307, + xlDialogScenarioCells = 305, + xlDialogScenarioEdit = 308, + xlDialogScenarioMerge = 473, + xlDialogScenarioSummary = 311, + xlDialogScrollbarProperties = 420, + xlDialogSearch = 731, + xlDialogSelectSpecial = 132, + xlDialogSendMail = 189, + xlDialogSeriesAxes = 460, + xlDialogSeriesOptions = 557, + xlDialogSeriesOrder = 466, + xlDialogSeriesShape = 504, + xlDialogSeriesX = 461, + xlDialogSeriesY = 462, + xlDialogSetBackgroundPicture = 509, + xlDialogSetManager = 1109, + xlDialogSetMDXEditor = 1208, + xlDialogSetPrintTitles = 23, + xlDialogSetTupleEditorOnColumns = 1108, + xlDialogSetTupleEditorOnRows = 1107, + xlDialogSetUpdateStatus = 159, + xlDialogShowDetail = 204, + xlDialogShowToolbar = 220, + xlDialogSize = 261, + xlDialogSlicerCreation = 1182, + xlDialogSlicerPivotTableConnections = 1184, + xlDialogSlicerSettings = 1179, + xlDialogSort = 39, + xlDialogSortSpecial = 192, + xlDialogSparklineInsertColumn = 1134, + xlDialogSparklineInsertLine = 1133, + xlDialogSparklineInsertWinLoss = 1135, + xlDialogSplit = 137, + xlDialogStandardFont = 190, + xlDialogStandardWidth = 472, + xlDialogStyle = 44, + xlDialogSubscribeTo = 218, + xlDialogSubtotalCreate = 398, + xlDialogSummaryInfo = 474, + xlDialogTable = 41, + xlDialogTabOrder = 394, + xlDialogTextToColumns = 422, + xlDialogUnhide = 94, + xlDialogUpdateLink = 201, + xlDialogVbaInsertFile = 328, + xlDialogVbaMakeAddin = 478, + xlDialogVbaProcedureDefinition = 330, + xlDialogView3d = 197, + xlDialogWebOptionsBrowsers = 773, + xlDialogWebOptionsEncoding = 686, + xlDialogWebOptionsFiles = 684, + xlDialogWebOptionsFonts = 687, + xlDialogWebOptionsGeneral = 683, + xlDialogWebOptionsPictures = 685, + xlDialogWindowMove = 14, + xlDialogWindowSize = 13, + xlDialogWorkbookAdd = 281, + xlDialogWorkbookCopy = 283, + xlDialogWorkbookInsert = 354, + xlDialogWorkbookMove = 282, + xlDialogWorkbookName = 386, + xlDialogWorkbookNew = 302, + xlDialogWorkbookOptions = 284, + xlDialogWorkbookProtect = 417, + xlDialogWorkbookTabSplit = 415, + xlDialogWorkbookUnhide = 384, + xlDialogWorkgroup = 199, + xlDialogWorkspace = 95, + xlDialogZoom = 256, + } + + const enum XlCalcFor { + xlAllValues = 0, + xlColGroups = 2, + xlRowGroups = 1, + } + + const enum XlCalculatedMemberType { + xlCalculatedMember = 0, + xlCalculatedSet = 1, + } + + const enum XlCalculation { + xlCalculationAutomatic = -4105, + xlCalculationManual = -4135, + xlCalculationSemiautomatic = 2, + } + + const enum XlCalculationInterruptKey { + xlAnyKey = 2, + xlEscKey = 1, + xlNoKey = 0, + } + + const enum XlCalculationState { + xlCalculating = 1, + xlDone = 0, + xlPending = 2, + } + + const enum XlCategoryType { + xlAutomaticScale = -4105, + xlCategoryScale = 2, + xlTimeScale = 3, + } + + const enum XlCellChangedState { + xlCellChangeApplied = 3, + xlCellChanged = 2, + xlCellNotChanged = 1, + } + + const enum XlCellInsertionMode { + xlInsertDeleteCells = 1, + xlInsertEntireRows = 2, + xlOverwriteCells = 0, + } + + const enum XlCellType { + xlCellTypeAllFormatConditions = -4172, + xlCellTypeAllValidation = -4174, + xlCellTypeBlanks = 4, + xlCellTypeComments = -4144, + xlCellTypeConstants = 2, + xlCellTypeFormulas = -4123, + xlCellTypeLastCell = 11, + xlCellTypeSameFormatConditions = -4173, + xlCellTypeSameValidation = -4175, + xlCellTypeVisible = 12, + } + + const enum XlChartElementPosition { + xlChartElementPositionAutomatic = -4105, + xlChartElementPositionCustom = -4114, + } + + const enum XlChartGallery { + xlAnyGallery = 23, + xlBuiltIn = 21, + xlUserDefined = 22, + } + + const enum XlChartItem { + xlAxis = 21, + xlAxisTitle = 17, + xlChartArea = 2, + xlChartTitle = 4, + xlCorners = 6, + xlDataLabel = 0, + xlDataTable = 7, + xlDisplayUnitLabel = 30, + xlDownBars = 20, + xlDropLines = 26, + xlErrorBars = 9, + xlFloor = 23, + xlHiLoLines = 25, + xlLeaderLines = 29, + xlLegend = 24, + xlLegendEntry = 12, + xlLegendKey = 13, + xlMajorGridlines = 15, + xlMinorGridlines = 16, + xlNothing = 28, + xlPivotChartDropZone = 32, + xlPivotChartFieldButton = 31, + xlPlotArea = 19, + xlRadarAxisLabels = 27, + xlSeries = 3, + xlSeriesLines = 22, + xlShape = 14, + xlTrendline = 8, + xlUpBars = 18, + xlWalls = 5, + xlXErrorBars = 10, + xlYErrorBars = 11, + } + + const enum XlChartLocation { + xlLocationAsNewSheet = 1, + xlLocationAsObject = 2, + xlLocationAutomatic = 3, + } + + const enum XlChartPicturePlacement { + xlAllFaces = 7, + xlEnd = 2, + xlEndSides = 3, + xlFront = 4, + xlFrontEnd = 6, + xlFrontSides = 5, + xlSides = 1, + } + + const enum XlChartPictureType { + xlStack = 2, + xlStackScale = 3, + xlStretch = 1, + } + + const enum XlChartSplitType { + xlSplitByCustomSplit = 4, + xlSplitByPercentValue = 3, + xlSplitByPosition = 1, + xlSplitByValue = 2, + } + + const enum XlChartType { + xl3DArea = -4098, + xl3DAreaStacked = 78, + xl3DAreaStacked100 = 79, + xl3DBarClustered = 60, + xl3DBarStacked = 61, + xl3DBarStacked100 = 62, + xl3DColumn = -4100, + xl3DColumnClustered = 54, + xl3DColumnStacked = 55, + xl3DColumnStacked100 = 56, + xl3DLine = -4101, + xl3DPie = -4102, + xl3DPieExploded = 70, + xlArea = 1, + xlAreaStacked = 76, + xlAreaStacked100 = 77, + xlBarClustered = 57, + xlBarOfPie = 71, + xlBarStacked = 58, + xlBarStacked100 = 59, + xlBubble = 15, + xlBubble3DEffect = 87, + xlColumnClustered = 51, + xlColumnStacked = 52, + xlColumnStacked100 = 53, + xlConeBarClustered = 102, + xlConeBarStacked = 103, + xlConeBarStacked100 = 104, + xlConeCol = 105, + xlConeColClustered = 99, + xlConeColStacked = 100, + xlConeColStacked100 = 101, + xlCylinderBarClustered = 95, + xlCylinderBarStacked = 96, + xlCylinderBarStacked100 = 97, + xlCylinderCol = 98, + xlCylinderColClustered = 92, + xlCylinderColStacked = 93, + xlCylinderColStacked100 = 94, + xlDoughnut = -4120, + xlDoughnutExploded = 80, + xlLine = 4, + xlLineMarkers = 65, + xlLineMarkersStacked = 66, + xlLineMarkersStacked100 = 67, + xlLineStacked = 63, + xlLineStacked100 = 64, + xlPie = 5, + xlPieExploded = 69, + xlPieOfPie = 68, + xlPyramidBarClustered = 109, + xlPyramidBarStacked = 110, + xlPyramidBarStacked100 = 111, + xlPyramidCol = 112, + xlPyramidColClustered = 106, + xlPyramidColStacked = 107, + xlPyramidColStacked100 = 108, + xlRadar = -4151, + xlRadarFilled = 82, + xlRadarMarkers = 81, + xlStockHLC = 88, + xlStockOHLC = 89, + xlStockVHLC = 90, + xlStockVOHLC = 91, + xlSurface = 83, + xlSurfaceTopView = 85, + xlSurfaceTopViewWireframe = 86, + xlSurfaceWireframe = 84, + xlXYScatter = -4169, + xlXYScatterLines = 74, + xlXYScatterLinesNoMarkers = 75, + xlXYScatterSmooth = 72, + xlXYScatterSmoothNoMarkers = 73, + } + + const enum XlCheckInVersionType { + xlCheckInMajorVersion = 1, + xlCheckInMinorVersion = 0, + xlCheckInOverwriteVersion = 2, + } + + const enum XlClipboardFormat { + xlClipboardFormatBIFF = 8, + xlClipboardFormatBIFF12 = 63, + xlClipboardFormatBIFF2 = 18, + xlClipboardFormatBIFF3 = 20, + xlClipboardFormatBIFF4 = 30, + xlClipboardFormatBinary = 15, + xlClipboardFormatBitmap = 9, + xlClipboardFormatCGM = 13, + xlClipboardFormatCSV = 5, + xlClipboardFormatDIF = 4, + xlClipboardFormatDspText = 12, + xlClipboardFormatEmbeddedObject = 21, + xlClipboardFormatEmbedSource = 22, + xlClipboardFormatLink = 11, + xlClipboardFormatLinkSource = 23, + xlClipboardFormatLinkSourceDesc = 32, + xlClipboardFormatMovie = 24, + xlClipboardFormatNative = 14, + xlClipboardFormatObjectDesc = 31, + xlClipboardFormatObjectLink = 19, + xlClipboardFormatOwnerLink = 17, + xlClipboardFormatPICT = 2, + xlClipboardFormatPrintPICT = 3, + xlClipboardFormatRTF = 7, + xlClipboardFormatScreenPICT = 29, + xlClipboardFormatStandardFont = 28, + xlClipboardFormatStandardScale = 27, + xlClipboardFormatSYLK = 6, + xlClipboardFormatTable = 16, + xlClipboardFormatText = 0, + xlClipboardFormatToolFace = 25, + xlClipboardFormatToolFacePICT = 26, + xlClipboardFormatVALU = 1, + xlClipboardFormatWK1 = 10, + } + + const enum XlCmdType { + xlCmdCube = 1, + xlCmdDefault = 4, + xlCmdList = 5, + xlCmdSql = 2, + xlCmdTable = 3, + } + + const enum XlColorIndex { + xlColorIndexAutomatic = -4105, + xlColorIndexNone = -4142, + } + + const enum XlColumnDataType { + xlDMYFormat = 4, + xlDYMFormat = 7, + xlEMDFormat = 10, + xlGeneralFormat = 1, + xlMDYFormat = 3, + xlMYDFormat = 6, + xlSkipColumn = 9, + xlTextFormat = 2, + xlYDMFormat = 8, + xlYMDFormat = 5, + } + + const enum XlCommandUnderlines { + xlCommandUnderlinesAutomatic = -4105, + xlCommandUnderlinesOff = -4146, + xlCommandUnderlinesOn = 1, + } + + const enum XlCommentDisplayMode { + xlCommentAndIndicator = 1, + xlCommentIndicatorOnly = -1, + xlNoIndicator = 0, + } + + const enum XlConditionValueTypes { + xlConditionValueAutomaticMax = 7, + xlConditionValueAutomaticMin = 6, + xlConditionValueFormula = 4, + xlConditionValueHighestValue = 2, + xlConditionValueLowestValue = 1, + xlConditionValueNone = -1, + xlConditionValueNumber = 0, + xlConditionValuePercent = 3, + xlConditionValuePercentile = 5, + } + + const enum XlConnectionType { + xlConnectionTypeODBC = 2, + xlConnectionTypeOLEDB = 1, + xlConnectionTypeTEXT = 4, + xlConnectionTypeWEB = 5, + xlConnectionTypeXMLMAP = 3, + } + + const enum XlConsolidationFunction { + xlAverage = -4106, + xlCount = -4112, + xlCountNums = -4113, + xlMax = -4136, + xlMin = -4139, + xlProduct = -4149, + xlStDev = -4155, + xlStDevP = -4156, + xlSum = -4157, + xlUnknown = 1000, + xlVar = -4164, + xlVarP = -4165, + } + + const enum XlContainsOperator { + xlBeginsWith = 2, + xlContains = 0, + xlDoesNotContain = 1, + xlEndsWith = 3, + } + + const enum XlCopyPictureFormat { + xlBitmap = 2, + xlPicture = -4147, + } + + const enum XlCorruptLoad { + xlExtractData = 2, + xlNormalLoad = 0, + xlRepairFile = 1, + } + + const enum XlCreator { + xlCreatorCode = 1480803660, + } + + const enum XlCredentialsMethod { + xlCredentialsMethodIntegrated = 0, + xlCredentialsMethodNone = 1, + xlCredentialsMethodStored = 2, + } + + const enum XlCubeFieldSubType { + xlCubeAttribute = 4, + xlCubeCalculatedMeasure = 5, + xlCubeHierarchy = 1, + xlCubeKPIGoal = 7, + xlCubeKPIStatus = 8, + xlCubeKPITrend = 9, + xlCubeKPIValue = 6, + xlCubeKPIWeight = 10, + xlCubeMeasure = 2, + xlCubeSet = 3, + } + + const enum XlCubeFieldType { + xlHierarchy = 1, + xlMeasure = 2, + xlSet = 3, + } + + const enum XlCutCopyMode { + xlCopy = 1, + xlCut = 2, + } + + const enum XlCVError { + xlErrDiv0 = 2007, + xlErrNA = 2042, + xlErrName = 2029, + xlErrNull = 2000, + xlErrNum = 2036, + xlErrRef = 2023, + xlErrValue = 2015, + } + + const enum XlDataBarAxisPosition { + xlDataBarAxisAutomatic = 0, + xlDataBarAxisMidpoint = 1, + xlDataBarAxisNone = 2, + } + + const enum XlDataBarBorderType { + xlDataBarBorderNone = 0, + xlDataBarBorderSolid = 1, + } + + const enum XlDataBarFillType { + xlDataBarFillGradient = 1, + xlDataBarFillSolid = 0, + } + + const enum XlDataBarNegativeColorType { + xlDataBarColor = 0, + xlDataBarSameAsPositive = 1, + } + + const enum XlDataLabelPosition { + xlLabelPositionAbove = 0, + xlLabelPositionBelow = 1, + xlLabelPositionBestFit = 5, + xlLabelPositionCenter = -4108, + xlLabelPositionCustom = 7, + xlLabelPositionInsideBase = 4, + xlLabelPositionInsideEnd = 3, + xlLabelPositionLeft = -4131, + xlLabelPositionMixed = 6, + xlLabelPositionOutsideEnd = 2, + xlLabelPositionRight = -4152, + } + + const enum XlDataLabelSeparator { + xlDataLabelSeparatorDefault = 1, + } + + const enum XlDataLabelsType { + xlDataLabelsShowBubbleSizes = 6, + xlDataLabelsShowLabel = 4, + xlDataLabelsShowLabelAndPercent = 5, + xlDataLabelsShowNone = -4142, + xlDataLabelsShowPercent = 3, + xlDataLabelsShowValue = 2, + } + + const enum XlDataSeriesDate { + xlDay = 1, + xlMonth = 3, + xlWeekday = 2, + xlYear = 4, + } + + const enum XlDataSeriesType { + xlAutoFill = 4, + xlChronological = 3, + xlDataSeriesLinear = -4132, + xlGrowth = 2, + } + + const enum XlDeleteShiftDirection { + xlShiftToLeft = -4159, + xlShiftUp = -4162, + } + + const enum XlDirection { + xlDown = -4121, + xlToLeft = -4159, + xlToRight = -4161, + xlUp = -4162, + } + + const enum XlDisplayBlanksAs { + xlInterpolated = 3, + xlNotPlotted = 1, + xlZero = 2, + } + + const enum XlDisplayDrawingObjects { + xlDisplayShapes = -4104, + xlHide = 3, + xlPlaceholders = 2, + } + + const enum XlDisplayUnit { + xlHundredMillions = -8, + xlHundreds = -2, + xlHundredThousands = -5, + xlMillionMillions = -10, + xlMillions = -6, + xlTenMillions = -7, + xlTenThousands = -4, + xlThousandMillions = -9, + xlThousands = -3, + } + + const enum XlDupeUnique { + xlDuplicate = 1, + xlUnique = 0, + } + + const enum XlDVAlertStyle { + xlValidAlertInformation = 3, + xlValidAlertStop = 1, + xlValidAlertWarning = 2, + } + + const enum XlDVType { + xlValidateCustom = 7, + xlValidateDate = 4, + xlValidateDecimal = 2, + xlValidateInputOnly = 0, + xlValidateList = 3, + xlValidateTextLength = 6, + xlValidateTime = 5, + xlValidateWholeNumber = 1, + } + + const enum XlDynamicFilterCriteria { + xlFilterAboveAverage = 33, + xlFilterAllDatesInPeriodApril = 24, + xlFilterAllDatesInPeriodAugust = 28, + xlFilterAllDatesInPeriodDecember = 32, + xlFilterAllDatesInPeriodFebruray = 22, + xlFilterAllDatesInPeriodJanuary = 21, + xlFilterAllDatesInPeriodJuly = 27, + xlFilterAllDatesInPeriodJune = 26, + xlFilterAllDatesInPeriodMarch = 23, + xlFilterAllDatesInPeriodMay = 25, + xlFilterAllDatesInPeriodNovember = 31, + xlFilterAllDatesInPeriodOctober = 30, + xlFilterAllDatesInPeriodQuarter1 = 17, + xlFilterAllDatesInPeriodQuarter2 = 18, + xlFilterAllDatesInPeriodQuarter3 = 19, + xlFilterAllDatesInPeriodQuarter4 = 20, + xlFilterAllDatesInPeriodSeptember = 29, + xlFilterBelowAverage = 34, + xlFilterLastMonth = 8, + xlFilterLastQuarter = 11, + xlFilterLastWeek = 5, + xlFilterLastYear = 14, + xlFilterNextMonth = 9, + xlFilterNextQuarter = 12, + xlFilterNextWeek = 6, + xlFilterNextYear = 15, + xlFilterThisMonth = 7, + xlFilterThisQuarter = 10, + xlFilterThisWeek = 4, + xlFilterThisYear = 13, + xlFilterToday = 1, + xlFilterTomorrow = 3, + xlFilterYearToDate = 16, + xlFilterYesterday = 2, + } + + const enum XlEditionFormat { + xlBIFF = 2, + xlPICT = 1, + xlRTF = 4, + xlVALU = 8, + } + + const enum XlEditionOptionsOption { + xlAutomaticUpdate = 4, + xlCancel = 1, + xlChangeAttributes = 6, + xlManualUpdate = 5, + xlOpenSource = 3, + xlSelect = 3, + xlSendPublisher = 2, + xlUpdateSubscriber = 2, + } + + const enum XlEditionType { + xlPublisher = 1, + xlSubscriber = 2, + } + + const enum XlEnableCancelKey { + xlDisabled = 0, + xlErrorHandler = 2, + xlInterrupt = 1, + } + + const enum XlEnableSelection { + xlNoRestrictions = 0, + xlNoSelection = -4142, + xlUnlockedCells = 1, + } + + const enum XlEndStyleCap { + xlCap = 1, + xlNoCap = 2, + } + + const enum XlErrorBarDirection { + xlX = -4168, + xlY = 1, + } + + const enum XlErrorBarInclude { + xlErrorBarIncludeBoth = 1, + xlErrorBarIncludeMinusValues = 3, + xlErrorBarIncludeNone = -4142, + xlErrorBarIncludePlusValues = 2, + } + + const enum XlErrorBarType { + xlErrorBarTypeCustom = -4114, + xlErrorBarTypeFixedValue = 1, + xlErrorBarTypePercent = 2, + xlErrorBarTypeStDev = -4155, + xlErrorBarTypeStError = 4, + } + + const enum XlErrorChecks { + xlEmptyCellReferences = 7, + xlEvaluateToError = 1, + xlInconsistentFormula = 4, + xlInconsistentListFormula = 9, + xlListDataValidation = 8, + xlNumberAsText = 3, + xlOmittedCells = 5, + xlTextDate = 2, + xlUnlockedFormulaCells = 6, + } + + const enum XlFileAccess { + xlReadOnly = 3, + xlReadWrite = 2, + } + + const enum XlFileFormat { + xlAddIn = 18, + xlAddIn8 = 18, + xlCSV = 6, + xlCSVMac = 22, + xlCSVMSDOS = 24, + xlCSVWindows = 23, + xlCurrentPlatformText = -4158, + xlDBF2 = 7, + xlDBF3 = 8, + xlDBF4 = 11, + xlDIF = 9, + xlExcel12 = 50, + xlExcel2 = 16, + xlExcel2FarEast = 27, + xlExcel3 = 29, + xlExcel4 = 33, + xlExcel4Workbook = 35, + xlExcel5 = 39, + xlExcel7 = 39, + xlExcel8 = 56, + xlExcel9795 = 43, + xlHtml = 44, + xlIntlAddIn = 26, + xlIntlMacro = 25, + xlOpenDocumentSpreadsheet = 60, + xlOpenXMLAddIn = 55, + xlOpenXMLTemplate = 54, + xlOpenXMLTemplateMacroEnabled = 53, + xlOpenXMLWorkbook = 51, + xlOpenXMLWorkbookMacroEnabled = 52, + xlSYLK = 2, + xlTemplate = 17, + xlTemplate8 = 17, + xlTextMac = 19, + xlTextMSDOS = 21, + xlTextPrinter = 36, + xlTextWindows = 20, + xlUnicodeText = 42, + xlWebArchive = 45, + xlWJ2WD1 = 14, + xlWJ3 = 40, + xlWJ3FJ3 = 41, + xlWK1 = 5, + xlWK1ALL = 31, + xlWK1FMT = 30, + xlWK3 = 15, + xlWK3FM3 = 32, + xlWK4 = 38, + xlWKS = 4, + xlWorkbookDefault = 51, + xlWorkbookNormal = -4143, + xlWorks2FarEast = 28, + xlWQ1 = 34, + xlXMLSpreadsheet = 46, + } + + const enum XlFileValidationPivotMode { + xlFileValidationPivotDefault = 0, + xlFileValidationPivotRun = 1, + xlFileValidationPivotSkip = 2, + } + + const enum XlFillWith { + xlFillWithAll = -4104, + xlFillWithContents = 2, + xlFillWithFormats = -4122, + } + + const enum XlFilterAction { + xlFilterCopy = 2, + xlFilterInPlace = 1, + } + + const enum XlFilterAllDatesInPeriod { + xlFilterAllDatesInPeriodDay = 2, + xlFilterAllDatesInPeriodHour = 3, + xlFilterAllDatesInPeriodMinute = 4, + xlFilterAllDatesInPeriodMonth = 1, + xlFilterAllDatesInPeriodSecond = 5, + xlFilterAllDatesInPeriodYear = 0, + } + + const enum XlFindLookIn { + xlComments = -4144, + xlFormulas = -4123, + xlValues = -4163, + } + + const enum XlFixedFormatQuality { + xlQualityMinimum = 1, + xlQualityStandard = 0, + } + + const enum XlFixedFormatType { + xlTypePDF = 0, + xlTypeXPS = 1, + } + + const enum XlFormatConditionOperator { + xlBetween = 1, + xlEqual = 3, + xlGreater = 5, + xlGreaterEqual = 7, + xlLess = 6, + xlLessEqual = 8, + xlNotBetween = 2, + xlNotEqual = 4, + } + + const enum XlFormatConditionType { + xlAboveAverageCondition = 12, + xlBlanksCondition = 10, + xlCellValue = 1, + xlColorScale = 3, + xlDatabar = 4, + xlErrorsCondition = 16, + xlExpression = 2, + xlIconSets = 6, + xlNoBlanksCondition = 13, + xlNoErrorsCondition = 17, + xlTextString = 9, + xlTimePeriod = 11, + xlTop10 = 5, + xlUniqueValues = 8, + } + + const enum XlFormatFilterTypes { + xlFilterBottom = 0, + xlFilterBottomPercent = 2, + xlFilterTop = 1, + xlFilterTopPercent = 3, + } + + const enum XlFormControl { + xlButtonControl = 0, + xlCheckBox = 1, + xlDropDown = 2, + xlEditBox = 3, + xlGroupBox = 4, + xlLabel = 5, + xlListBox = 6, + xlOptionButton = 7, + xlScrollBar = 8, + xlSpinner = 9, + } + + const enum XlFormulaLabel { + xlColumnLabels = 2, + xlMixedLabels = 3, + xlNoLabels = -4142, + xlRowLabels = 1, + } + + const enum XlGenerateTableRefs { + xlGenerateTableRefA1 = 0, + xlGenerateTableRefStruct = 1, + } + + const enum XlGradientFillType { + xlGradientFillLinear = 0, + xlGradientFillPath = 1, + } + + const enum XlHAlign { + xlHAlignCenter = -4108, + xlHAlignCenterAcrossSelection = 7, + xlHAlignDistributed = -4117, + xlHAlignFill = 5, + xlHAlignGeneral = 1, + xlHAlignJustify = -4130, + xlHAlignLeft = -4131, + xlHAlignRight = -4152, + } + + const enum XlHebrewModes { + xlHebrewFullScript = 0, + xlHebrewMixedAuthorizedScript = 3, + xlHebrewMixedScript = 2, + xlHebrewPartialScript = 1, + } + + const enum XlHighlightChangesTime { + xlAllChanges = 2, + xlNotYetReviewed = 3, + xlSinceMyLastSave = 1, + } + + const enum XlHtmlType { + xlHtmlCalc = 1, + xlHtmlChart = 3, + xlHtmlList = 2, + xlHtmlStatic = 0, + } + + const enum XlIcon { + xlIcon0Bars = 37, + xlIcon0FilledBoxes = 52, + xlIcon1Bar = 38, + xlIcon1FilledBox = 51, + xlIcon2Bars = 39, + xlIcon2FilledBoxes = 50, + xlIcon3Bars = 40, + xlIcon3FilledBoxes = 49, + xlIcon4Bars = 41, + xlIcon4FilledBoxes = 48, + xlIconBlackCircle = 32, + xlIconBlackCircleWithBorder = 13, + xlIconCircleWithOneWhiteQuarter = 33, + xlIconCircleWithThreeWhiteQuarters = 35, + xlIconCircleWithTwoWhiteQuarters = 34, + xlIconGoldStar = 42, + xlIconGrayCircle = 31, + xlIconGrayDownArrow = 6, + xlIconGrayDownInclineArrow = 28, + xlIconGraySideArrow = 5, + xlIconGrayUpArrow = 4, + xlIconGrayUpInclineArrow = 27, + xlIconGreenCheck = 22, + xlIconGreenCheckSymbol = 19, + xlIconGreenCircle = 10, + xlIconGreenFlag = 7, + xlIconGreenTrafficLight = 14, + xlIconGreenUpArrow = 1, + xlIconGreenUpTriangle = 45, + xlIconHalfGoldStar = 43, + xlIconNoCellIcon = -1, + xlIconPinkCircle = 30, + xlIconRedCircle = 29, + xlIconRedCircleWithBorder = 12, + xlIconRedCross = 24, + xlIconRedCrossSymbol = 21, + xlIconRedDiamond = 18, + xlIconRedDownArrow = 3, + xlIconRedDownTriangle = 47, + xlIconRedFlag = 9, + xlIconRedTrafficLight = 16, + xlIconSilverStar = 44, + xlIconWhiteCircleAllWhiteQuarters = 36, + xlIconYellowCircle = 11, + xlIconYellowDash = 46, + xlIconYellowDownInclineArrow = 26, + xlIconYellowExclamation = 23, + xlIconYellowExclamationSymbol = 20, + xlIconYellowFlag = 8, + xlIconYellowSideArrow = 2, + xlIconYellowTrafficLight = 15, + xlIconYellowTriangle = 17, + xlIconYellowUpInclineArrow = 25, + } + + const enum XlIconSet { + xl3Arrows = 1, + xl3ArrowsGray = 2, + xl3Flags = 3, + xl3Signs = 6, + xl3Stars = 18, + xl3Symbols = 7, + xl3Symbols2 = 8, + xl3TrafficLights1 = 4, + xl3TrafficLights2 = 5, + xl3Triangles = 19, + xl4Arrows = 9, + xl4ArrowsGray = 10, + xl4CRV = 12, + xl4RedToBlack = 11, + xl4TrafficLights = 13, + xl5Arrows = 14, + xl5ArrowsGray = 15, + xl5Boxes = 20, + xl5CRV = 16, + xl5Quarters = 17, + xlCustomSet = -1, + } + + const enum XlIMEMode { + xlIMEModeAlpha = 8, + xlIMEModeAlphaFull = 7, + xlIMEModeDisable = 3, + xlIMEModeHangul = 10, + xlIMEModeHangulFull = 9, + xlIMEModeHiragana = 4, + xlIMEModeKatakana = 5, + xlIMEModeKatakanaHalf = 6, + xlIMEModeNoControl = 0, + xlIMEModeOff = 2, + xlIMEModeOn = 1, + } + + const enum XlImportDataAs { + xlPivotTableReport = 1, + xlQueryTable = 0, + xlTable = 2, + } + + const enum XlInsertFormatOrigin { + xlFormatFromLeftOrAbove = 0, + xlFormatFromRightOrBelow = 1, + } + + const enum XlInsertShiftDirection { + xlShiftDown = -4121, + xlShiftToRight = -4161, + } + + const enum XlLayoutFormType { + xlOutline = 1, + xlTabular = 0, + } + + const enum XlLayoutRowType { + xlCompactRow = 0, + xlOutlineRow = 2, + xlTabularRow = 1, + } + + const enum XlLegendPosition { + xlLegendPositionBottom = -4107, + xlLegendPositionCorner = 2, + xlLegendPositionCustom = -4161, + xlLegendPositionLeft = -4131, + xlLegendPositionRight = -4152, + xlLegendPositionTop = -4160, + } + + const enum XlLineStyle { + xlContinuous = 1, + xlDash = -4115, + xlDashDot = 4, + xlDashDotDot = 5, + xlDot = -4118, + xlDouble = -4119, + xlLineStyleNone = -4142, + xlSlantDashDot = 13, + } + + const enum XlLink { + xlExcelLinks = 1, + xlOLELinks = 2, + xlPublishers = 5, + xlSubscribers = 6, + } + + const enum XlLinkInfo { + xlEditionDate = 2, + xlLinkInfoStatus = 3, + xlUpdateState = 1, + } + + const enum XlLinkInfoType { + xlLinkInfoOLELinks = 2, + xlLinkInfoPublishers = 5, + xlLinkInfoSubscribers = 6, + } + + const enum XlLinkStatus { + xlLinkStatusCopiedValues = 10, + xlLinkStatusIndeterminate = 5, + xlLinkStatusInvalidName = 7, + xlLinkStatusMissingFile = 1, + xlLinkStatusMissingSheet = 2, + xlLinkStatusNotStarted = 6, + xlLinkStatusOK = 0, + xlLinkStatusOld = 3, + xlLinkStatusSourceNotCalculated = 4, + xlLinkStatusSourceNotOpen = 8, + xlLinkStatusSourceOpen = 9, + } + + const enum XlLinkType { + xlLinkTypeExcelLinks = 1, + xlLinkTypeOLELinks = 2, + } + + const enum XlListConflict { + xlListConflictDialog = 0, + xlListConflictDiscardAllConflicts = 2, + xlListConflictError = 3, + xlListConflictRetryAllConflicts = 1, + } + + const enum XlListDataType { + xlListDataTypeCheckbox = 9, + xlListDataTypeChoice = 6, + xlListDataTypeChoiceMulti = 7, + xlListDataTypeCounter = 11, + xlListDataTypeCurrency = 4, + xlListDataTypeDateTime = 5, + xlListDataTypeHyperLink = 10, + xlListDataTypeListLookup = 8, + xlListDataTypeMultiLineRichText = 12, + xlListDataTypeMultiLineText = 2, + xlListDataTypeNone = 0, + xlListDataTypeNumber = 3, + xlListDataTypeText = 1, + } + + const enum XlListObjectSourceType { + xlSrcExternal = 0, + xlSrcQuery = 3, + xlSrcRange = 1, + xlSrcXml = 2, + } + + const enum XlLocationInTable { + xlColumnHeader = -4110, + xlColumnItem = 5, + xlDataHeader = 3, + xlDataItem = 7, + xlPageHeader = 2, + xlPageItem = 6, + xlRowHeader = -4153, + xlRowItem = 4, + xlTableBody = 8, + } + + const enum XlLookAt { + xlPart = 2, + xlWhole = 1, + } + + const enum XlLookFor { + xlLookForBlanks = 0, + xlLookForErrors = 1, + xlLookForFormulas = 2, + } + + const enum XlMailSystem { + xlMAPI = 1, + xlNoMailSystem = 0, + xlPowerTalk = 2, + } + + const enum XlMarkerStyle { + xlMarkerStyleAutomatic = -4105, + xlMarkerStyleCircle = 8, + xlMarkerStyleDash = -4115, + xlMarkerStyleDiamond = 2, + xlMarkerStyleDot = -4118, + xlMarkerStyleNone = -4142, + xlMarkerStylePicture = -4147, + xlMarkerStylePlus = 9, + xlMarkerStyleSquare = 1, + xlMarkerStyleStar = 5, + xlMarkerStyleTriangle = 3, + xlMarkerStyleX = -4168, + } + + const enum XlMeasurementUnits { + xlCentimeters = 1, + xlInches = 0, + xlMillimeters = 2, + } + + const enum XlMouseButton { + xlNoButton = 0, + xlPrimaryButton = 1, + xlSecondaryButton = 2, + } + + const enum XlMousePointer { + xlDefault = -4143, + xlIBeam = 3, + xlNorthwestArrow = 1, + xlWait = 2, + } + + const enum XlMSApplication { + xlMicrosoftAccess = 4, + xlMicrosoftFoxPro = 5, + xlMicrosoftMail = 3, + xlMicrosoftPowerPoint = 2, + xlMicrosoftProject = 6, + xlMicrosoftSchedulePlus = 7, + xlMicrosoftWord = 1, + } + + const enum XlOartHorizontalOverflow { + xlOartHorizontalOverflowClip = 1, + xlOartHorizontalOverflowOverflow = 0, + } + + const enum XlOartVerticalOverflow { + xlOartVerticalOverflowClip = 1, + xlOartVerticalOverflowEllipsis = 2, + xlOartVerticalOverflowOverflow = 0, + } + + const enum XlObjectSize { + xlFitToPage = 2, + xlFullPage = 3, + xlScreenSize = 1, + } + + const enum XlOLEType { + xlOLEControl = 2, + xlOLEEmbed = 1, + xlOLELink = 0, + } + + const enum XlOLEVerb { + xlVerbOpen = 2, + xlVerbPrimary = 1, + } + + const enum XlOrder { + xlDownThenOver = 1, + xlOverThenDown = 2, + } + + const enum XlOrientation { + xlDownward = -4170, + xlHorizontal = -4128, + xlUpward = -4171, + xlVertical = -4166, + } + + const enum XlPageBreak { + xlPageBreakAutomatic = -4105, + xlPageBreakManual = -4135, + xlPageBreakNone = -4142, + } + + const enum XlPageBreakExtent { + xlPageBreakFull = 1, + xlPageBreakPartial = 2, + } + + const enum XlPageOrientation { + xlLandscape = 2, + xlPortrait = 1, + } + + const enum XlPaperSize { + xlPaper10x14 = 16, + xlPaper11x17 = 17, + xlPaperA3 = 8, + xlPaperA4 = 9, + xlPaperA4Small = 10, + xlPaperA5 = 11, + xlPaperB4 = 12, + xlPaperB5 = 13, + xlPaperCsheet = 24, + xlPaperDsheet = 25, + xlPaperEnvelope10 = 20, + xlPaperEnvelope11 = 21, + xlPaperEnvelope12 = 22, + xlPaperEnvelope14 = 23, + xlPaperEnvelope9 = 19, + xlPaperEnvelopeB4 = 33, + xlPaperEnvelopeB5 = 34, + xlPaperEnvelopeB6 = 35, + xlPaperEnvelopeC3 = 29, + xlPaperEnvelopeC4 = 30, + xlPaperEnvelopeC5 = 28, + xlPaperEnvelopeC6 = 31, + xlPaperEnvelopeC65 = 32, + xlPaperEnvelopeDL = 27, + xlPaperEnvelopeItaly = 36, + xlPaperEnvelopeMonarch = 37, + xlPaperEnvelopePersonal = 38, + xlPaperEsheet = 26, + xlPaperExecutive = 7, + xlPaperFanfoldLegalGerman = 41, + xlPaperFanfoldStdGerman = 40, + xlPaperFanfoldUS = 39, + xlPaperFolio = 14, + xlPaperLedger = 4, + xlPaperLegal = 5, + xlPaperLetter = 1, + xlPaperLetterSmall = 2, + xlPaperNote = 18, + xlPaperQuarto = 15, + xlPaperStatement = 6, + xlPaperTabloid = 3, + xlPaperUser = 256, + } + + const enum XlParameterDataType { + xlParamTypeBigInt = -5, + xlParamTypeBinary = -2, + xlParamTypeBit = -7, + xlParamTypeChar = 1, + xlParamTypeDate = 9, + xlParamTypeDecimal = 3, + xlParamTypeDouble = 8, + xlParamTypeFloat = 6, + xlParamTypeInteger = 4, + xlParamTypeLongVarBinary = -4, + xlParamTypeLongVarChar = -1, + xlParamTypeNumeric = 2, + xlParamTypeReal = 7, + xlParamTypeSmallInt = 5, + xlParamTypeTime = 10, + xlParamTypeTimestamp = 11, + xlParamTypeTinyInt = -6, + xlParamTypeUnknown = 0, + xlParamTypeVarBinary = -3, + xlParamTypeVarChar = 12, + xlParamTypeWChar = -8, + } + + const enum XlParameterType { + xlConstant = 1, + xlPrompt = 0, + xlRange = 2, + } + + const enum XlPasteSpecialOperation { + xlPasteSpecialOperationAdd = 2, + xlPasteSpecialOperationDivide = 5, + xlPasteSpecialOperationMultiply = 4, + xlPasteSpecialOperationNone = -4142, + xlPasteSpecialOperationSubtract = 3, + } + + const enum XlPasteType { + xlPasteAll = -4104, + xlPasteAllExceptBorders = 7, + xlPasteAllMergingConditionalFormats = 14, + xlPasteAllUsingSourceTheme = 13, + xlPasteColumnWidths = 8, + xlPasteComments = -4144, + xlPasteFormats = -4122, + xlPasteFormulas = -4123, + xlPasteFormulasAndNumberFormats = 11, + xlPasteValidation = 6, + xlPasteValues = -4163, + xlPasteValuesAndNumberFormats = 12, + } + + const enum XlPattern { + xlPatternAutomatic = -4105, + xlPatternChecker = 9, + xlPatternCrissCross = 16, + xlPatternDown = -4121, + xlPatternGray16 = 17, + xlPatternGray25 = -4124, + xlPatternGray50 = -4125, + xlPatternGray75 = -4126, + xlPatternGray8 = 18, + xlPatternGrid = 15, + xlPatternHorizontal = -4128, + xlPatternLightDown = 13, + xlPatternLightHorizontal = 11, + xlPatternLightUp = 14, + xlPatternLightVertical = 12, + xlPatternLinearGradient = 4000, + xlPatternNone = -4142, + xlPatternRectangularGradient = 4001, + xlPatternSemiGray75 = 10, + xlPatternSolid = 1, + xlPatternUp = -4162, + xlPatternVertical = -4166, + } + + const enum XlPhoneticAlignment { + xlPhoneticAlignCenter = 2, + xlPhoneticAlignDistributed = 3, + xlPhoneticAlignLeft = 1, + xlPhoneticAlignNoControl = 0, + } + + const enum XlPhoneticCharacterType { + xlHiragana = 2, + xlKatakana = 1, + xlKatakanaHalf = 0, + xlNoConversion = 3, + } + + const enum XlPictureAppearance { + xlPrinter = 2, + xlScreen = 1, + } + + const enum XlPictureConvertorType { + xlBMP = 1, + xlCGM = 7, + xlDRW = 4, + xlDXF = 5, + xlEPS = 8, + xlHGL = 6, + xlPCT = 13, + xlPCX = 10, + xlPIC = 11, + xlPLT = 12, + xlTIF = 9, + xlWMF = 2, + xlWPG = 3, + } + + const enum XlPieSliceIndex { + xlCenterPoint = 5, + xlInnerCenterPoint = 8, + xlInnerClockwisePoint = 7, + xlInnerCounterClockwisePoint = 9, + xlMidClockwiseRadiusPoint = 4, + xlMidCounterClockwiseRadiusPoint = 6, + xlOuterCenterPoint = 2, + xlOuterClockwisePoint = 3, + xlOuterCounterClockwisePoint = 1, + } + + const enum XlPieSliceLocation { + xlHorizontalCoordinate = 1, + xlVerticalCoordinate = 2, + } + + const enum XlPivotCellType { + xlPivotCellBlankCell = 9, + xlPivotCellCustomSubtotal = 7, + xlPivotCellDataField = 4, + xlPivotCellDataPivotField = 8, + xlPivotCellGrandTotal = 3, + xlPivotCellPageFieldItem = 6, + xlPivotCellPivotField = 5, + xlPivotCellPivotItem = 1, + xlPivotCellSubtotal = 2, + xlPivotCellValue = 0, + } + + const enum XlPivotConditionScope { + xlDataFieldScope = 2, + xlFieldsScope = 1, + xlSelectionScope = 0, + } + + const enum XlPivotFieldCalculation { + xlDifferenceFrom = 2, + xlIndex = 9, + xlNoAdditionalCalculation = -4143, + xlPercentDifferenceFrom = 4, + xlPercentOf = 3, + xlPercentOfColumn = 7, + xlPercentOfParent = 12, + xlPercentOfParentColumn = 11, + xlPercentOfParentRow = 10, + xlPercentOfRow = 6, + xlPercentOfTotal = 8, + xlPercentRunningTotal = 13, + xlRankAscending = 14, + xlRankDecending = 15, + xlRunningTotal = 5, + } + + const enum XlPivotFieldDataType { + xlDate = 2, + xlNumber = -4145, + xlText = -4158, + } + + const enum XlPivotFieldOrientation { + xlColumnField = 2, + xlDataField = 4, + xlHidden = 0, + xlPageField = 3, + xlRowField = 1, + } + + const enum XlPivotFieldRepeatLabels { + xlDoNotRepeatLabels = 1, + xlRepeatLabels = 2, + } + + const enum XlPivotFilterType { + xlAfter = 33, + xlAfterOrEqualTo = 34, + xlAllDatesInPeriodApril = 60, + xlAllDatesInPeriodAugust = 64, + xlAllDatesInPeriodDecember = 68, + xlAllDatesInPeriodFebruary = 58, + xlAllDatesInPeriodJanuary = 57, + xlAllDatesInPeriodJuly = 63, + xlAllDatesInPeriodJune = 62, + xlAllDatesInPeriodMarch = 59, + xlAllDatesInPeriodMay = 61, + xlAllDatesInPeriodNovember = 67, + xlAllDatesInPeriodOctober = 66, + xlAllDatesInPeriodQuarter1 = 53, + xlAllDatesInPeriodQuarter2 = 54, + xlAllDatesInPeriodQuarter3 = 55, + xlAllDatesInPeriodQuarter4 = 56, + xlAllDatesInPeriodSeptember = 65, + xlBefore = 31, + xlBeforeOrEqualTo = 32, + xlBottomCount = 2, + xlBottomPercent = 4, + xlBottomSum = 6, + xlCaptionBeginsWith = 17, + xlCaptionContains = 21, + xlCaptionDoesNotBeginWith = 18, + xlCaptionDoesNotContain = 22, + xlCaptionDoesNotEndWith = 20, + xlCaptionDoesNotEqual = 16, + xlCaptionEndsWith = 19, + xlCaptionEquals = 15, + xlCaptionIsBetween = 27, + xlCaptionIsGreaterThan = 23, + xlCaptionIsGreaterThanOrEqualTo = 24, + xlCaptionIsLessThan = 25, + xlCaptionIsLessThanOrEqualTo = 26, + xlCaptionIsNotBetween = 28, + xlDateBetween = 35, + xlDateLastMonth = 45, + xlDateLastQuarter = 48, + xlDateLastWeek = 42, + xlDateLastYear = 51, + xlDateNextMonth = 43, + xlDateNextQuarter = 46, + xlDateNextWeek = 40, + xlDateNextYear = 49, + xlDateNotBetween = 36, + xlDateThisMonth = 44, + xlDateThisQuarter = 47, + xlDateThisWeek = 41, + xlDateThisYear = 50, + xlDateToday = 38, + xlDateTomorrow = 37, + xlDateYesterday = 39, + xlNotSpecificDate = 30, + xlSpecificDate = 29, + xlTopCount = 1, + xlTopPercent = 3, + xlTopSum = 5, + xlValueDoesNotEqual = 8, + xlValueEquals = 7, + xlValueIsBetween = 13, + xlValueIsGreaterThan = 9, + xlValueIsGreaterThanOrEqualTo = 10, + xlValueIsLessThan = 11, + xlValueIsLessThanOrEqualTo = 12, + xlValueIsNotBetween = 14, + xlYearToDate = 52, + } + + const enum XlPivotFormatType { + xlPTClassic = 20, + xlPTNone = 21, + xlReport1 = 0, + xlReport10 = 9, + xlReport2 = 1, + xlReport3 = 2, + xlReport4 = 3, + xlReport5 = 4, + xlReport6 = 5, + xlReport7 = 6, + xlReport8 = 7, + xlReport9 = 8, + xlTable1 = 10, + xlTable10 = 19, + xlTable2 = 11, + xlTable3 = 12, + xlTable4 = 13, + xlTable5 = 14, + xlTable6 = 15, + xlTable7 = 16, + xlTable8 = 17, + xlTable9 = 18, + } + + const enum XlPivotLineType { + xlPivotLineBlank = 3, + xlPivotLineGrandTotal = 2, + xlPivotLineRegular = 0, + xlPivotLineSubtotal = 1, + } + + const enum XlPivotTableMissingItems { + xlMissingItemsDefault = -1, + xlMissingItemsMax = 32500, + xlMissingItemsMax2 = 1048576, + xlMissingItemsNone = 0, + } + + const enum XlPivotTableSourceType { + xlConsolidation = 3, + xlDatabase = 1, + xlExternal = 2, + xlPivotTable = -4148, + xlScenario = 4, + } + + const enum XlPivotTableVersionList { + xlPivotTableVersion10 = 1, + xlPivotTableVersion11 = 2, + xlPivotTableVersion12 = 3, + xlPivotTableVersion14 = 4, + xlPivotTableVersion2000 = 0, + xlPivotTableVersionCurrent = -1, + } + + const enum XlPlacement { + xlFreeFloating = 3, + xlMove = 2, + xlMoveAndSize = 1, + } + + const enum XlPlatform { + xlMacintosh = 1, + xlMSDOS = 3, + xlWindows = 2, + } + + const enum XlPortugueseReform { + xlPortugueseBoth = 3, + xlPortuguesePostReform = 2, + xlPortuguesePreReform = 1, + } + + const enum XlPrintErrors { + xlPrintErrorsBlank = 1, + xlPrintErrorsDash = 2, + xlPrintErrorsDisplayed = 0, + xlPrintErrorsNA = 3, + } + + const enum XlPrintLocation { + xlPrintInPlace = 16, + xlPrintNoComments = -4142, + xlPrintSheetEnd = 1, + } + + const enum XlPriority { + xlPriorityHigh = -4127, + xlPriorityLow = -4134, + xlPriorityNormal = -4143, + } + + const enum XlPropertyDisplayedIn { + xlDisplayPropertyInPivotTable = 1, + xlDisplayPropertyInPivotTableAndTooltip = 3, + xlDisplayPropertyInTooltip = 2, + } + + const enum XlProtectedViewCloseReason { + xlProtectedViewCloseEdit = 1, + xlProtectedViewCloseForced = 2, + xlProtectedViewCloseNormal = 0, + } + + const enum XlProtectedViewWindowState { + xlProtectedViewWindowMaximized = 2, + xlProtectedViewWindowMinimized = 1, + xlProtectedViewWindowNormal = 0, + } + + const enum XlPTSelectionMode { + xlBlanks = 4, + xlButton = 15, + xlDataAndLabel = 0, + xlDataOnly = 2, + xlFirstRow = 256, + xlLabelOnly = 1, + xlOrigin = 3, + } + + const enum XlQueryType { + xlADORecordset = 7, + xlDAORecordset = 2, + xlODBCQuery = 1, + xlOLEDBQuery = 5, + xlTextImport = 6, + xlWebQuery = 4, + } + + const enum XlRangeAutoFormat { + xlRangeAutoFormat3DEffects1 = 13, + xlRangeAutoFormat3DEffects2 = 14, + xlRangeAutoFormatAccounting1 = 4, + xlRangeAutoFormatAccounting2 = 5, + xlRangeAutoFormatAccounting3 = 6, + xlRangeAutoFormatAccounting4 = 17, + xlRangeAutoFormatClassic1 = 1, + xlRangeAutoFormatClassic2 = 2, + xlRangeAutoFormatClassic3 = 3, + xlRangeAutoFormatClassicPivotTable = 31, + xlRangeAutoFormatColor1 = 7, + xlRangeAutoFormatColor2 = 8, + xlRangeAutoFormatColor3 = 9, + xlRangeAutoFormatList1 = 10, + xlRangeAutoFormatList2 = 11, + xlRangeAutoFormatList3 = 12, + xlRangeAutoFormatLocalFormat1 = 15, + xlRangeAutoFormatLocalFormat2 = 16, + xlRangeAutoFormatLocalFormat3 = 19, + xlRangeAutoFormatLocalFormat4 = 20, + xlRangeAutoFormatNone = -4142, + xlRangeAutoFormatPTNone = 42, + xlRangeAutoFormatReport1 = 21, + xlRangeAutoFormatReport10 = 30, + xlRangeAutoFormatReport2 = 22, + xlRangeAutoFormatReport3 = 23, + xlRangeAutoFormatReport4 = 24, + xlRangeAutoFormatReport5 = 25, + xlRangeAutoFormatReport6 = 26, + xlRangeAutoFormatReport7 = 27, + xlRangeAutoFormatReport8 = 28, + xlRangeAutoFormatReport9 = 29, + xlRangeAutoFormatSimple = -4154, + xlRangeAutoFormatTable1 = 32, + xlRangeAutoFormatTable10 = 41, + xlRangeAutoFormatTable2 = 33, + xlRangeAutoFormatTable3 = 34, + xlRangeAutoFormatTable4 = 35, + xlRangeAutoFormatTable5 = 36, + xlRangeAutoFormatTable6 = 37, + xlRangeAutoFormatTable7 = 38, + xlRangeAutoFormatTable8 = 39, + xlRangeAutoFormatTable9 = 40, + } + + const enum XlRangeValueDataType { + xlRangeValueDefault = 10, + xlRangeValueMSPersistXML = 12, + xlRangeValueXMLSpreadsheet = 11, + } + + const enum XlReferenceStyle { + xlA1 = 1, + xlR1C1 = -4150, + } + + const enum XlReferenceType { + xlAbsolute = 1, + xlAbsRowRelColumn = 2, + xlRelative = 4, + xlRelRowAbsColumn = 3, + } + + const enum XlRemoveDocInfoType { + xlRDIAll = 99, + xlRDIComments = 1, + xlRDIContentType = 16, + xlRDIDefinedNameComments = 18, + xlRDIDocumentManagementPolicy = 15, + xlRDIDocumentProperties = 8, + xlRDIDocumentServerProperties = 14, + xlRDIDocumentWorkspace = 10, + xlRDIEmailHeader = 5, + xlRDIInactiveDataConnections = 19, + xlRDIInkAnnotations = 11, + xlRDIPrinterPath = 20, + xlRDIPublishInfo = 13, + xlRDIRemovePersonalInformation = 4, + xlRDIRoutingSlip = 6, + xlRDIScenarioComments = 12, + xlRDISendForReview = 7, + } + + const enum XlRgbColor { + rgbAliceBlue = 16775408, + rgbAntiqueWhite = 14150650, + rgbAqua = 16776960, + rgbAquamarine = 13959039, + rgbAzure = 16777200, + rgbBeige = 14480885, + rgbBisque = 12903679, + rgbBlack = 0, + rgbBlanchedAlmond = 13495295, + rgbBlue = 16711680, + rgbBlueViolet = 14822282, + rgbBrown = 2763429, + rgbBurlyWood = 8894686, + rgbCadetBlue = 10526303, + rgbChartreuse = 65407, + rgbCoral = 5275647, + rgbCornflowerBlue = 15570276, + rgbCornsilk = 14481663, + rgbCrimson = 3937500, + rgbDarkBlue = 9109504, + rgbDarkCyan = 9145088, + rgbDarkGoldenrod = 755384, + rgbDarkGray = 11119017, + rgbDarkGreen = 25600, + rgbDarkGrey = 11119017, + rgbDarkKhaki = 7059389, + rgbDarkMagenta = 9109643, + rgbDarkOliveGreen = 3107669, + rgbDarkOrange = 36095, + rgbDarkOrchid = 13382297, + rgbDarkRed = 139, + rgbDarkSalmon = 8034025, + rgbDarkSeaGreen = 9419919, + rgbDarkSlateBlue = 9125192, + rgbDarkSlateGray = 5197615, + rgbDarkSlateGrey = 5197615, + rgbDarkTurquoise = 13749760, + rgbDarkViolet = 13828244, + rgbDeepPink = 9639167, + rgbDeepSkyBlue = 16760576, + rgbDimGray = 6908265, + rgbDimGrey = 6908265, + rgbDodgerBlue = 16748574, + rgbFireBrick = 2237106, + rgbFloralWhite = 15792895, + rgbForestGreen = 2263842, + rgbFuchsia = 16711935, + rgbGainsboro = 14474460, + rgbGhostWhite = 16775416, + rgbGold = 55295, + rgbGoldenrod = 2139610, + rgbGray = 8421504, + rgbGreen = 32768, + rgbGreenYellow = 3145645, + rgbGrey = 8421504, + rgbHoneydew = 15794160, + rgbHotPink = 11823615, + rgbIndianRed = 6053069, + rgbIndigo = 8519755, + rgbIvory = 15794175, + rgbKhaki = 9234160, + rgbLavender = 16443110, + rgbLavenderBlush = 16118015, + rgbLawnGreen = 64636, + rgbLemonChiffon = 13499135, + rgbLightBlue = 15128749, + rgbLightCoral = 8421616, + rgbLightCyan = 9145088, + rgbLightGoldenrodYellow = 13826810, + rgbLightGray = 13882323, + rgbLightGreen = 9498256, + rgbLightGrey = 13882323, + rgbLightPink = 12695295, + rgbLightSalmon = 8036607, + rgbLightSeaGreen = 11186720, + rgbLightSkyBlue = 16436871, + rgbLightSlateGray = 10061943, + rgbLightSlateGrey = 10061943, + rgbLightSteelBlue = 14599344, + rgbLightYellow = 14745599, + rgbLime = 65280, + rgbLimeGreen = 3329330, + rgbLinen = 15134970, + rgbMaroon = 128, + rgbMediumAquamarine = 11206502, + rgbMediumBlue = 13434880, + rgbMediumOrchid = 13850042, + rgbMediumPurple = 14381203, + rgbMediumSeaGreen = 7451452, + rgbMediumSlateBlue = 15624315, + rgbMediumSpringGreen = 10156544, + rgbMediumTurquoise = 13422920, + rgbMediumVioletRed = 8721863, + rgbMidnightBlue = 7346457, + rgbMintCream = 16449525, + rgbMistyRose = 14804223, + rgbMoccasin = 11920639, + rgbNavajoWhite = 11394815, + rgbNavy = 8388608, + rgbNavyBlue = 8388608, + rgbOldLace = 15136253, + rgbOlive = 32896, + rgbOliveDrab = 2330219, + rgbOrange = 42495, + rgbOrangeRed = 17919, + rgbOrchid = 14053594, + rgbPaleGoldenrod = 7071982, + rgbPaleGreen = 10025880, + rgbPaleTurquoise = 15658671, + rgbPaleVioletRed = 9662683, + rgbPapayaWhip = 14020607, + rgbPeachPuff = 12180223, + rgbPeru = 4163021, + rgbPink = 13353215, + rgbPlum = 14524637, + rgbPowderBlue = 15130800, + rgbPurple = 8388736, + rgbRed = 255, + rgbRosyBrown = 9408444, + rgbRoyalBlue = 14772545, + rgbSalmon = 7504122, + rgbSandyBrown = 6333684, + rgbSeaGreen = 5737262, + rgbSeashell = 15660543, + rgbSienna = 2970272, + rgbSilver = 12632256, + rgbSkyBlue = 15453831, + rgbSlateBlue = 13458026, + rgbSlateGray = 9470064, + rgbSlateGrey = 9470064, + rgbSnow = 16448255, + rgbSpringGreen = 8388352, + rgbSteelBlue = 11829830, + rgbTan = 9221330, + rgbTeal = 8421376, + rgbThistle = 14204888, + rgbTomato = 4678655, + rgbTurquoise = 13688896, + rgbViolet = 15631086, + rgbWheat = 11788021, + rgbWhite = 16777215, + rgbWhiteSmoke = 16119285, + rgbYellow = 65535, + rgbYellowGreen = 3329434, + } + + const enum XlRobustConnect { + xlAlways = 1, + xlAsRequired = 0, + xlNever = 2, + } + + const enum XlRoutingSlipDelivery { + xlAllAtOnce = 2, + xlOneAfterAnother = 1, + } + + const enum XlRoutingSlipStatus { + xlNotYetRouted = 0, + xlRoutingComplete = 2, + xlRoutingInProgress = 1, + } + + const enum XlRowCol { + xlColumns = 2, + xlRows = 1, + } + + const enum XlRunAutoMacro { + xlAutoActivate = 3, + xlAutoClose = 2, + xlAutoDeactivate = 4, + xlAutoOpen = 1, + } + + const enum XlSaveAction { + xlDoNotSaveChanges = 2, + xlSaveChanges = 1, + } + + const enum XlSaveAsAccessMode { + xlExclusive = 3, + xlNoChange = 1, + xlShared = 2, + } + + const enum XlSaveConflictResolution { + xlLocalSessionChanges = 2, + xlOtherSessionChanges = 3, + xlUserResolution = 1, + } + + const enum XlScaleType { + xlScaleLinear = -4132, + xlScaleLogarithmic = -4133, + } + + const enum XlSearchDirection { + xlNext = 1, + xlPrevious = 2, + } + + const enum XlSearchOrder { + xlByColumns = 2, + xlByRows = 1, + } + + const enum XlSearchWithin { + xlWithinSheet = 1, + xlWithinWorkbook = 2, + } + + const enum XlSheetType { + xlChart = -4109, + xlDialogSheet = -4116, + xlExcel4IntlMacroSheet = 4, + xlExcel4MacroSheet = 3, + xlWorksheet = -4167, + } + + const enum XlSheetVisibility { + xlSheetHidden = 0, + xlSheetVeryHidden = 2, + xlSheetVisible = -1, + } + + const enum XlSizeRepresents { + xlSizeIsArea = 1, + xlSizeIsWidth = 2, + } + + const enum XlSlicerCrossFilterType { + xlSlicerCrossFilterShowItemsWithDataAtTop = 2, + xlSlicerCrossFilterShowItemsWithNoData = 3, + xlSlicerNoCrossFilter = 1, + } + + const enum XlSlicerSort { + xlSlicerSortAscending = 2, + xlSlicerSortDataSourceOrder = 1, + xlSlicerSortDescending = 3, + } + + const enum XlSmartTagControlType { + xlSmartTagControlActiveX = 13, + xlSmartTagControlButton = 6, + xlSmartTagControlCheckbox = 9, + xlSmartTagControlCombo = 12, + xlSmartTagControlHelp = 3, + xlSmartTagControlHelpURL = 4, + xlSmartTagControlImage = 8, + xlSmartTagControlLabel = 7, + xlSmartTagControlLink = 2, + xlSmartTagControlListbox = 11, + xlSmartTagControlRadioGroup = 14, + xlSmartTagControlSeparator = 5, + xlSmartTagControlSmartTag = 1, + xlSmartTagControlTextbox = 10, + } + + const enum XlSmartTagDisplayMode { + xlButtonOnly = 2, + xlDisplayNone = 1, + xlIndicatorAndButton = 0, + } + + const enum XlSortDataOption { + xlSortNormal = 0, + xlSortTextAsNumbers = 1, + } + + const enum XlSortMethod { + xlPinYin = 1, + xlStroke = 2, + } + + const enum XlSortMethodOld { + xlCodePage = 2, + xlSyllabary = 1, + } + + const enum XlSortOn { + xlSortOnCellColor = 1, + xlSortOnFontColor = 2, + xlSortOnIcon = 3, + xlSortOnValues = 0, + } + + const enum XlSortOrder { + xlAscending = 1, + xlDescending = 2, + } + + const enum XlSortOrientation { + xlSortColumns = 1, + xlSortRows = 2, + } + + const enum XlSortType { + xlSortLabels = 2, + xlSortValues = 1, + } + + const enum XlSourceType { + xlSourceAutoFilter = 3, + xlSourceChart = 5, + xlSourcePivotTable = 6, + xlSourcePrintArea = 2, + xlSourceQuery = 7, + xlSourceRange = 4, + xlSourceSheet = 1, + xlSourceWorkbook = 0, + } + + const enum XlSpanishModes { + xlSpanishTuteoAndVoseo = 1, + xlSpanishTuteoOnly = 0, + xlSpanishVoseoOnly = 2, + } + + const enum XlSparklineRowCol { + xlSparklineColumnsSquare = 2, + xlSparklineNonSquare = 0, + xlSparklineRowsSquare = 1, + } + + const enum XlSparkScale { + xlSparkScaleCustom = 3, + xlSparkScaleGroup = 1, + xlSparkScaleSingle = 2, + } + + const enum XlSparkType { + xlSparkColumn = 2, + xlSparkColumnStacked100 = 3, + xlSparkLine = 1, + } + + const enum XlSpeakDirection { + xlSpeakByColumns = 1, + xlSpeakByRows = 0, + } + + const enum XlSpecialCellsValue { + xlErrors = 16, + xlLogical = 4, + xlNumbers = 1, + xlTextValues = 2, + } + + const enum XlStdColorScale { + xlColorScaleBlackWhite = 3, + xlColorScaleGYR = 2, + xlColorScaleRYG = 1, + xlColorScaleWhiteBlack = 4, + } + + const enum XlSubscribeToFormat { + xlSubscribeToPicture = -4147, + xlSubscribeToText = -4158, + } + + const enum XlSubtototalLocationType { + xlAtBottom = 2, + xlAtTop = 1, + } + + const enum XlSummaryColumn { + xlSummaryOnLeft = -4131, + xlSummaryOnRight = -4152, + } + + const enum XlSummaryReportType { + xlStandardSummary = 1, + xlSummaryPivotTable = -4148, + } + + const enum XlSummaryRow { + xlSummaryAbove = 0, + xlSummaryBelow = 1, + } + + const enum XlTableStyleElementType { + xlBlankRow = 19, + xlColumnStripe1 = 7, + xlColumnStripe2 = 8, + xlColumnSubheading1 = 20, + xlColumnSubheading2 = 21, + xlColumnSubheading3 = 22, + xlFirstColumn = 3, + xlFirstHeaderCell = 9, + xlFirstTotalCell = 11, + xlGrandTotalColumn = 4, + xlGrandTotalRow = 2, + xlHeaderRow = 1, + xlLastColumn = 4, + xlLastHeaderCell = 10, + xlLastTotalCell = 12, + xlPageFieldLabels = 26, + xlPageFieldValues = 27, + xlRowStripe1 = 5, + xlRowStripe2 = 6, + xlRowSubheading1 = 23, + xlRowSubheading2 = 24, + xlRowSubheading3 = 25, + xlSlicerHoveredSelectedItemWithData = 33, + xlSlicerHoveredSelectedItemWithNoData = 35, + xlSlicerHoveredUnselectedItemWithData = 32, + xlSlicerHoveredUnselectedItemWithNoData = 34, + xlSlicerSelectedItemWithData = 30, + xlSlicerSelectedItemWithNoData = 31, + xlSlicerUnselectedItemWithData = 28, + xlSlicerUnselectedItemWithNoData = 29, + xlSubtotalColumn1 = 13, + xlSubtotalColumn2 = 14, + xlSubtotalColumn3 = 15, + xlSubtotalRow1 = 16, + xlSubtotalRow2 = 17, + xlSubtotalRow3 = 18, + xlTotalRow = 2, + xlWholeTable = 0, + } + + const enum XlTabPosition { + xlTabPositionFirst = 0, + xlTabPositionLast = 1, + } + + const enum XlTextParsingType { + xlDelimited = 1, + xlFixedWidth = 2, + } + + const enum XlTextQualifier { + xlTextQualifierDoubleQuote = 1, + xlTextQualifierNone = -4142, + xlTextQualifierSingleQuote = 2, + } + + const enum XlTextVisualLayoutType { + xlTextVisualLTR = 1, + xlTextVisualRTL = 2, + } + + const enum XlThemeColor { + xlThemeColorAccent1 = 5, + xlThemeColorAccent2 = 6, + xlThemeColorAccent3 = 7, + xlThemeColorAccent4 = 8, + xlThemeColorAccent5 = 9, + xlThemeColorAccent6 = 10, + xlThemeColorDark1 = 1, + xlThemeColorDark2 = 3, + xlThemeColorFollowedHyperlink = 12, + xlThemeColorHyperlink = 11, + xlThemeColorLight1 = 2, + xlThemeColorLight2 = 4, + } + + const enum XlThemeFont { + xlThemeFontMajor = 1, + xlThemeFontMinor = 2, + xlThemeFontNone = 0, + } + + const enum XlThreadMode { + xlThreadModeAutomatic = 0, + xlThreadModeManual = 1, + } + + const enum XlTickLabelOrientation { + xlTickLabelOrientationAutomatic = -4105, + xlTickLabelOrientationDownward = -4170, + xlTickLabelOrientationHorizontal = -4128, + xlTickLabelOrientationUpward = -4171, + xlTickLabelOrientationVertical = -4166, + } + + const enum XlTickLabelPosition { + xlTickLabelPositionHigh = -4127, + xlTickLabelPositionLow = -4134, + xlTickLabelPositionNextToAxis = 4, + xlTickLabelPositionNone = -4142, + } + + const enum XlTickMark { + xlTickMarkCross = 4, + xlTickMarkInside = 2, + xlTickMarkNone = -4142, + xlTickMarkOutside = 3, + } + + const enum XlTimePeriods { + xlLast7Days = 2, + xlLastMonth = 5, + xlLastWeek = 4, + xlNextMonth = 8, + xlNextWeek = 7, + xlThisMonth = 9, + xlThisWeek = 3, + xlToday = 0, + xlTomorrow = 6, + xlYesterday = 1, + } + + const enum XlTimeUnit { + xlDays = 0, + xlMonths = 1, + xlYears = 2, + } + + const enum XlToolbarProtection { + xlNoButtonChanges = 1, + xlNoChanges = 4, + xlNoDockingChanges = 3, + xlNoShapeChanges = 2, + xlToolbarProtectionNone = -4143, + } + + const enum XlTopBottom { + xlTop10Bottom = 0, + xlTop10Top = 1, + } + + const enum XlTotalsCalculation { + xlTotalsCalculationAverage = 2, + xlTotalsCalculationCount = 3, + xlTotalsCalculationCountNums = 4, + xlTotalsCalculationCustom = 9, + xlTotalsCalculationMax = 6, + xlTotalsCalculationMin = 5, + xlTotalsCalculationNone = 0, + xlTotalsCalculationStdDev = 7, + xlTotalsCalculationSum = 1, + xlTotalsCalculationVar = 8, + } + + const enum XlTrendlineType { + xlExponential = 5, + xlLinear = -4132, + xlLogarithmic = -4133, + xlMovingAvg = 6, + xlPolynomial = 3, + xlPower = 4, + } + + const enum XlUnderlineStyle { + xlUnderlineStyleDouble = -4119, + xlUnderlineStyleDoubleAccounting = 5, + xlUnderlineStyleNone = -4142, + xlUnderlineStyleSingle = 2, + xlUnderlineStyleSingleAccounting = 4, + } + + const enum XlUpdateLinks { + xlUpdateLinksAlways = 3, + xlUpdateLinksNever = 2, + xlUpdateLinksUserSetting = 1, + } + + const enum XlVAlign { + xlVAlignBottom = -4107, + xlVAlignCenter = -4108, + xlVAlignDistributed = -4117, + xlVAlignJustify = -4130, + xlVAlignTop = -4160, + } + + const enum XlWBATemplate { + xlWBATChart = -4109, + xlWBATExcel4IntlMacroSheet = 4, + xlWBATExcel4MacroSheet = 3, + xlWBATWorksheet = -4167, + } + + const enum XlWebFormatting { + xlWebFormattingAll = 1, + xlWebFormattingNone = 3, + xlWebFormattingRTF = 2, + } + + const enum XlWebSelectionType { + xlAllTables = 2, + xlEntirePage = 1, + xlSpecifiedTables = 3, + } + + const enum XlWindowState { + xlMaximized = -4137, + xlMinimized = -4140, + xlNormal = -4143, + } + + const enum XlWindowType { + xlChartAsWindow = 5, + xlChartInPlace = 4, + xlClipboard = 3, + xlInfo = -4129, + xlWorkbook = 1, + } + + const enum XlWindowView { + xlNormalView = 1, + xlPageBreakPreview = 2, + xlPageLayoutView = 3, + } + + const enum XlXLMMacroType { + xlCommand = 2, + xlFunction = 1, + xlNotXLM = 3, + } + + const enum XlXmlExportResult { + xlXmlExportSuccess = 0, + xlXmlExportValidationFailed = 1, + } + + const enum XlXmlImportResult { + xlXmlImportElementsTruncated = 1, + xlXmlImportSuccess = 0, + xlXmlImportValidationFailed = 2, + } + + const enum XlXmlLoadOption { + xlXmlLoadImportToList = 2, + xlXmlLoadMapXml = 3, + xlXmlLoadOpenXml = 1, + xlXmlLoadPromptUser = 0, + } + + const enum XlYesNoGuess { + xlGuess = 0, + xlNo = 2, + xlYes = 1, + } + + class Action { + private 'Excel.Action_typekey': Action; + private constructor(); + readonly Application: Application; + readonly Caption: string; + readonly Content: string; + readonly Coordinate: string; + readonly Creator: XlCreator; + Execute(): void; + readonly Name: string; + readonly Parent: any; + readonly Type: XlActionType; + } + + class Actions { + private 'Excel.Actions_typekey': Actions; + private constructor(); + _Default(Index: any): Action; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): Action; + readonly Parent: any; + } + + class AddIn { + private 'Excel.AddIn_typekey': AddIn; + private constructor(); + readonly Application: Application; + readonly Author: string; + readonly CLSID: string; + readonly Comments: string; + readonly Creator: XlCreator; + readonly FullName: string; + Installed: boolean; + readonly IsOpen: boolean; + readonly Keywords: string; + readonly Name: string; + readonly Parent: any; + readonly Path: string; + readonly progID: string; + readonly Subject: string; + readonly Title: string; + } + + class AddIns { + private 'Excel.AddIns_typekey': AddIns; + private constructor(); + _Default(Index: any): AddIn; + Add(Filename: string, CopyFile?: any): AddIn; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): AddIn; + readonly Parent: any; + } + + class AddIns2 { + private 'Excel.AddIns2_typekey': AddIns2; + private constructor(); + _Default(Index: any): AddIn; + Add(Filename: string, CopyFile?: any): AddIn; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): AddIn; + readonly Parent: any; + } + + class Adjustments { + private 'Excel.Adjustments_typekey': Adjustments; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): number; + readonly Parent: any; + } + + class AllowEditRange { + private 'Excel.AllowEditRange_typekey': AllowEditRange; + private constructor(); + ChangePassword(Password: string): void; + Delete(): void; + Range: Range; + Title: string; + Unprotect(Password?: any): void; + readonly Users: UserAccessList; + } + + class AllowEditRanges { + private 'Excel.AllowEditRanges_typekey': AllowEditRanges; + private constructor(); + _Default(Index: any): AllowEditRange; + Add(Title: string, Range: Range, Password?: any): AllowEditRange; + readonly Count: number; + Item(Index: any): AllowEditRange; + } + + class Application { + private 'Excel.Application_typekey': Application; + private constructor(); + readonly _Default: string; + _Evaluate(Name: any): any; + _FindFile(): void; + _MacroOptions( + Macro?: any, Description?: any, HasMenu?: any, MenuText?: any, HasShortcutKey?: any, ShortcutKey?: any, Category?: any, StatusBar?: any, HelpContextID?: any, HelpFile?: any): void; + _Run2( + Macro?: any, Arg1?: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, + Arg13?: any, Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, + Arg25?: any, Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): any; + _Wait(Time: any): void; + _WSFunction( + Arg1?: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): any; + ActivateMicrosoftApp(Index: XlMSApplication): void; + readonly ActiveCell: Range; + readonly ActiveChart: Chart; + readonly ActiveDialog: DialogSheet; + readonly ActiveEncryptionSession: number; + readonly ActiveMenuBar: MenuBar; + ActivePrinter: string; + readonly ActiveProtectedViewWindow: ProtectedViewWindow; + readonly ActiveSheet: Worksheet | Chart | DialogSheet; + readonly ActiveWindow: Window; + readonly ActiveWorkbook: Workbook; + AddChartAutoFormat(Chart: any, Name: string, Description?: any): void; + AddCustomList(ListArray: any, ByRow?: any): void; + readonly AddIns: AddIns; + readonly AddIns2: AddIns2; + AlertBeforeOverwriting: boolean; + AltStartupPath: string; + AlwaysUseClearType: boolean; + readonly AnswerWizard: Office.AnswerWizard; + readonly Application: Application; + readonly ArbitraryXMLSupportAvailable: boolean; + AskToUpdateLinks: boolean; + readonly Assistance: Office.IAssistance; + readonly Assistant: Office.Assistant; + readonly AutoCorrect: AutoCorrect; + AutoFormatAsYouTypeReplaceHyperlinks: boolean; + AutomationSecurity: Office.MsoAutomationSecurity; + AutoPercentEntry: boolean; + readonly AutoRecover: AutoRecover; + readonly Build: number; + Calculate(): void; + CalculateBeforeSave: boolean; + CalculateFull(): void; + CalculateFullRebuild(): void; + CalculateUntilAsyncQueriesDone(): void; + Calculation: XlCalculation; + CalculationInterruptKey: XlCalculationInterruptKey; + readonly CalculationState: XlCalculationState; + readonly CalculationVersion: number; + Caller(Index?: any): any; + readonly CanPlaySounds: boolean; + readonly CanRecordSounds: boolean; + Caption: string; + CellDragAndDrop: boolean; + readonly Cells: Range; + CentimetersToPoints(Centimeters: number): number; + readonly Charts: Sheets; + CheckAbort(KeepAbort?: any): void; + CheckSpelling(Word: string, CustomDictionary?: any, IgnoreUppercase?: any): boolean; + ClipboardFormats(Index?: any): any; + ClusterConnector: string; + ColorButtons: boolean; + readonly Columns: Range; + readonly COMAddIns: Office.COMAddIns; + readonly CommandBars: Office.CommandBars; + CommandUnderlines: XlCommandUnderlines; + ConstrainNumeric: boolean; + ControlCharacters: boolean; + ConvertFormula(Formula: any, FromReferenceStyle: XlReferenceStyle, ToReferenceStyle?: any, ToAbsolute?: any, RelativeTo?: any): any; + CopyObjectsWithCells: boolean; + readonly Creator: XlCreator; + Cursor: XlMousePointer; + CursorMovement: number; + readonly CustomListCount: number; + CutCopyMode: XlCutCopyMode; + DataEntryMode: number; + readonly DDEAppReturnCode: number; + DDEExecute(Channel: number, String: string): void; + DDEInitiate(App: string, Topic: string): number; + DDEPoke(Channel: number, Item: any, Data: any): void; + DDERequest(Channel: number, Item: string): any; + DDETerminate(Channel: number): void; + DecimalSeparator: string; + DefaultFilePath: string; + DefaultSaveFormat: XlFileFormat; + DefaultSheetDirection: number; + readonly DefaultWebOptions: DefaultWebOptions; + DeferAsyncQueries: boolean; + DeleteChartAutoFormat(Name: string): void; + DeleteCustomList(ListNum: number): void; + readonly Dialogs: Dialogs; + readonly DialogSheets: Sheets; + DisplayAlerts: boolean; + DisplayClipboardWindow: boolean; + DisplayCommentIndicator: XlCommentDisplayMode; + DisplayDocumentActionTaskPane: boolean; + DisplayDocumentInformationPanel: boolean; + DisplayExcel4Menus: boolean; + DisplayFormulaAutoComplete: boolean; + DisplayFormulaBar: boolean; + DisplayFullScreen: boolean; + DisplayFunctionToolTips: boolean; + DisplayInfoWindow: boolean; + DisplayInsertOptions: boolean; + DisplayNoteIndicator: boolean; + DisplayPasteOptions: boolean; + DisplayRecentFiles: boolean; + DisplayScrollBars: boolean; + DisplayStatusBar: boolean; + DisplayXMLSourcePane(XmlMap?: any): void; + DoubleClick(): void; + Dummy1(Arg1?: any, Arg2?: any, Arg3?: any, Arg4?: any): any; + Dummy10(arg?: any): boolean; + readonly Dummy101: any; + Dummy11(): void; + Dummy12(p1: PivotTable, p2: PivotTable): void; + Dummy13( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): any; + Dummy14(): void; + Dummy2(Arg1?: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any): any; + Dummy20(grfCompareFunctions: number): any; + Dummy22: boolean; + Dummy23: boolean; + Dummy3(): any; + Dummy4( + Arg1?: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any): any; + Dummy5(Arg1?: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any): any; + Dummy6(): any; + Dummy7(): any; + Dummy8(Arg1?: any): any; + Dummy9(): any; + EditDirectlyInCell: boolean; + EnableAnimations: boolean; + EnableAutoComplete: boolean; + EnableCancelKey: XlEnableCancelKey; + EnableEvents: boolean; + EnableLargeOperationAlert: boolean; + EnableLivePreview: boolean; + EnableSound: boolean; + EnableTipWizard: boolean; + readonly ErrorCheckingOptions: ErrorCheckingOptions; + Evaluate(Name: any): any; + readonly Excel4IntlMacroSheets: Sheets; + readonly Excel4MacroSheets: Sheets; + ExecuteExcel4Macro(String: string): any; + ExtendList: boolean; + FeatureInstall: Office.MsoFeatureInstall; + FileConverters(Index1?: any, Index2?: any): any; + FileDialog(fileDialogType: Office.MsoFileDialogType): Office.FileDialog; + readonly FileExportConverters: FileExportConverters; + readonly FileFind: Office.IFind; + readonly FileSearch: Office.FileSearch; + FileValidation: Office.MsoFileValidationMode; + FileValidationPivot: XlFileValidationPivotMode; + FindFile(): boolean; + FindFormat: CellFormat; + FixedDecimal: boolean; + FixedDecimalPlaces: number; + FormulaBarHeight: number; + GenerateGetPivotData: boolean; + GenerateTableRefs: XlGenerateTableRefs; + GetCustomListContents(ListNum: number): any; + GetCustomListNum(ListArray: any): number; + GetOpenFilename(FileFilter?: any, FilterIndex?: any, Title?: any, ButtonText?: any, MultiSelect?: any): any; + GetPhonetic(Text?: any): string; + GetSaveAsFilename(InitialFilename?: any, FileFilter?: any, FilterIndex?: any, Title?: any, ButtonText?: any): any; + Goto(Reference?: any, Scroll?: any): void; + Height: number; + Help(HelpFile?: any, HelpContextID?: any): void; + HighQualityModeForGraphics: boolean; + readonly Hinstance: number; + readonly HinstancePtr: any; + readonly Hwnd: number; + IgnoreRemoteRequests: boolean; + InchesToPoints(Inches: number): number; + InputBox(Prompt: string, Title?: any, Default?: any, Left?: any, Top?: any, HelpFile?: any, HelpContextID?: any, Type?: any): any; + Interactive: boolean; + International(Index?: any): any; + Intersect( + Arg1: Range, Arg2: Range, Arg3?: Range, Arg4?: Range, Arg5?: Range, Arg6?: Range, Arg7?: Range, Arg8?: Range, Arg9?: Range, Arg10?: Range, Arg11?: Range, Arg12?: Range, + Arg13?: Range, Arg14?: Range, Arg15?: Range, Arg16?: Range, Arg17?: Range, Arg18?: Range, Arg19?: Range, Arg20?: Range, Arg21?: Range, Arg22?: Range, Arg23?: Range, Arg24?: Range, + Arg25?: Range, Arg26?: Range, Arg27?: Range, Arg28?: Range, Arg29?: Range, Arg30?: Range): Range; + readonly IsSandboxed: boolean; + Iteration: boolean; + readonly LanguageSettings: Office.LanguageSettings; + LargeButtons: boolean; + LargeOperationCellThousandCount: number; + Left: number; + readonly LibraryPath: string; + MacroOptions( + Macro?: any, Description?: any, HasMenu?: any, MenuText?: any, HasShortcutKey?: any, ShortcutKey?: any, Category?: any, StatusBar?: any, HelpContextID?: any, + HelpFile?: any, ArgumentDescriptions?: any): void; + MailLogoff(): void; + MailLogon(Name?: any, Password?: any, DownloadNewMail?: any): void; + readonly MailSession: any; + readonly MailSystem: XlMailSystem; + MapPaperSize: boolean; + readonly MathCoprocessorAvailable: boolean; + MaxChange: number; + MaxIterations: number; + MeasurementUnit: number; + readonly MemoryFree: number; + readonly MemoryTotal: number; + readonly MemoryUsed: number; + readonly MenuBars: MenuBars; + readonly Modules: Modules; + readonly MouseAvailable: boolean; + MoveAfterReturn: boolean; + MoveAfterReturnDirection: XlDirection; + readonly MultiThreadedCalculation: MultiThreadedCalculation; + readonly Name: string; + readonly Names: Names; + readonly NetworkTemplatesPath: string; + readonly NewWorkbook: Office.NewFile; + NextLetter(): Workbook; + readonly ODBCErrors: ODBCErrors; + ODBCTimeout: number; + readonly OLEDBErrors: OLEDBErrors; + OnCalculate: string; + OnData: string; + OnDoubleClick: string; + OnEntry: string; + OnKey(Key: string, Procedure?: any): void; + OnRepeat(Text: string, Procedure: string): void; + OnSheetActivate: string; + OnSheetDeactivate: string; + OnTime(EarliestTime: any, Procedure: string, LatestTime?: any, Schedule?: any): void; + OnUndo(Text: string, Procedure: string): void; + OnWindow: string; + readonly OperatingSystem: string; + readonly OrganizationName: string; + readonly Parent: Application; + readonly Path: string; + readonly PathSeparator: string; + PivotTableSelection: boolean; + PreviousSelections(Index?: any): any; + PrintCommunication: boolean; + readonly ProductCode: string; + PromptForSummaryInfo: boolean; + readonly ProtectedViewWindows: ProtectedViewWindows; + Quit(): void; + readonly Quitting: boolean; + Range(Cell1: string | Range, Cell2?: string | Range): Range; + readonly Ready: boolean; + readonly RecentFiles: RecentFiles; + RecordMacro(BasicCode?: any, XlmCode?: any): void; + readonly RecordRelative: boolean; + ReferenceStyle: XlReferenceStyle; + RegisteredFunctions(Index1?: any, Index2?: any): any; + RegisterXLL(Filename: string): boolean; + Repeat(): void; + ReplaceFormat: CellFormat; + ResetTipWizard(): void; + RollZoom: boolean; + readonly Rows: Range; + readonly RTD: RTD; + Run( + Macro?: any, Arg1?: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, + Arg13?: any, Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, + Arg25?: any, Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): any; + Save(Filename?: any): void; + SaveISO8601Dates: boolean; + SaveWorkspace(Filename?: any): void; + ScreenUpdating: boolean; + readonly Selection: any; + SendKeys(Keys: any, Wait?: any): void; + SetDefaultChart(FormatName?: any, Gallery?: any): void; + SharePointVersion(bstrUrl: string): number; + readonly Sheets: Sheets; + SheetsInNewWorkbook: number; + ShortcutMenus(Index: number): Menu; + ShowChartTipNames: boolean; + ShowChartTipValues: boolean; + ShowDevTools: boolean; + ShowMenuFloaties: boolean; + ShowSelectionFloaties: boolean; + ShowStartupDialog: boolean; + ShowToolTips: boolean; + ShowWindowsInTaskbar: boolean; + readonly SmartArtColors: Office.SmartArtColors; + readonly SmartArtLayouts: Office.SmartArtLayouts; + readonly SmartArtQuickStyles: Office.SmartArtQuickStyles; + readonly SmartTagRecognizers: SmartTagRecognizers; + readonly Speech: Speech; + readonly SpellingOptions: SpellingOptions; + StandardFont: string; + StandardFontSize: number; + readonly StartupPath: string; + StatusBar: any; + Support(Object: any, ID: number, arg?: any): any; + readonly TemplatesPath: string; + readonly ThisCell: Range; + readonly ThisWorkbook: Workbook; + ThousandsSeparator: string; + readonly Toolbars: Toolbars; + Top: number; + TransitionMenuKey: string; + TransitionMenuKeyAction: number; + TransitionNavigKeys: boolean; + UILanguage: number; + Undo(): void; + Union( + Arg1: Range, Arg2: Range, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, + Arg13?: any, Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, + Arg25?: any, Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): Range; + readonly UsableHeight: number; + readonly UsableWidth: number; + UseClusterConnector: boolean; + readonly UsedObjects: UsedObjects; + UserControl: boolean; + readonly UserLibraryPath: string; + UserName: string; + UseSystemSeparators: boolean; + readonly Value: string; + readonly VBE: VBIDE.VBE; + readonly Version: string; + Visible: boolean; + Volatile(Volatile?: any): void; + Wait(Time: any): boolean; + WarnOnFunctionNameConflict: boolean; + readonly Watches: Watches; + Width: number; + readonly Windows: Windows; + readonly WindowsForPens: boolean; + WindowState: XlWindowState; + readonly Workbooks: Workbooks; + readonly WorksheetFunction: WorksheetFunction; + readonly Worksheets: Sheets; + } + + class Areas { + private 'Excel.Areas_typekey': Areas; + private constructor(); + _Default(Index: number): Range; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: number): Range; + readonly Parent: any; + } + + class AutoCorrect { + private 'Excel.AutoCorrect_typekey': AutoCorrect; + private constructor(); + AddReplacement(What: string, Replacement: string): any; + readonly Application: Application; + AutoExpandListRange: boolean; + AutoFillFormulasInLists: boolean; + CapitalizeNamesOfDays: boolean; + CorrectCapsLock: boolean; + CorrectSentenceCap: boolean; + readonly Creator: XlCreator; + DeleteReplacement(What: string): any; + DisplayAutoCorrectOptions: boolean; + readonly Parent: any; + ReplacementList(Index?: any): any; + ReplaceText: boolean; + TwoInitialCapitals: boolean; + } + + class AutoFilter { + private 'Excel.AutoFilter_typekey': AutoFilter; + private constructor(); + readonly Application: Application; + ApplyFilter(): void; + readonly Creator: XlCreator; + readonly FilterMode: boolean; + readonly Filters: Filters; + readonly Parent: any; + readonly Range: Range; + ShowAllData(): void; + readonly Sort: Sort; + } + + class AutoRecover { + private 'Excel.AutoRecover_typekey': AutoRecover; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + Enabled: boolean; + readonly Parent: any; + Path: string; + Time: number; + } + + class Border { + private 'Excel.Border_typekey': Border; + private constructor(); + readonly Application: Application; + Color: any; + ColorIndex: any; + readonly Creator: XlCreator; + LineStyle: XlLineStyle | Constants.xlGray25 | Constants.xlGray50 | Constants.xlGray75 | Constants.xlAutomatic; + readonly Parent: any; + ThemeColor: any; + TintAndShade: any; + Weight: any; + } + + class Borders { + private 'Excel.Borders_typekey': Borders; + private constructor(); + _Default(Index: XlBordersIndex): Border; + readonly Application: Application; + Color: any; + ColorIndex: any; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: XlBordersIndex): Border; + LineStyle: any; + readonly Parent: any; + ThemeColor: any; + TintAndShade: any; + Value: any; + Weight: any; + } + + class CalculatedFields { + private 'Excel.CalculatedFields_typekey': CalculatedFields; + private constructor(); + _Add(Name: string, Formula: string): PivotField; + _Default(Field: any): PivotField; + Add(Name: string, Formula: string, UseStandardFormula?: any): PivotField; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): PivotField; + readonly Parent: any; + } + + class CalculatedItems { + private 'Excel.CalculatedItems_typekey': CalculatedItems; + private constructor(); + _Add(Name: string, Formula: string): PivotItem; + _Default(Field: any): PivotItem; + Add(Name: string, Formula: string, UseStandardFormula?: any): PivotItem; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): PivotItem; + readonly Parent: any; + } + + class CalculatedMember { + private 'Excel.CalculatedMember_typekey': CalculatedMember; + private constructor(); + readonly _Default: string; + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): void; + readonly DisplayFolder: string; + readonly Dynamic: boolean; + FlattenHierarchies: boolean; + readonly Formula: string; + HierarchizeDistinct: boolean; + readonly IsValid: boolean; + readonly Name: string; + readonly Parent: any; + readonly SolveOrder: number; + readonly SourceName: string; + readonly Type: XlCalculatedMemberType; + } + + class CalculatedMembers { + private 'Excel.CalculatedMembers_typekey': CalculatedMembers; + private constructor(); + _Add(Name: string, Formula: string, SolveOrder?: any, Type?: any): CalculatedMember; + _Default(Index: any): CalculatedMember; + Add(Name: string, Formula: any, SolveOrder?: any, Type?: any, Dynamic?: any, DisplayFolder?: any, HierarchizeDistinct?: any): CalculatedMember; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): CalculatedMember; + readonly Parent: any; + } + + class CalloutFormat { + private 'Excel.CalloutFormat_typekey': CalloutFormat; + private constructor(); + Accent: Office.MsoTriState; + Angle: Office.MsoCalloutAngleType; + readonly Application: any; + AutoAttach: Office.MsoTriState; + readonly AutoLength: Office.MsoTriState; + AutomaticLength(): void; + Border: Office.MsoTriState; + readonly Creator: number; + CustomDrop(Drop: number): void; + CustomLength(Length: number): void; + readonly Drop: number; + readonly DropType: Office.MsoCalloutDropType; + Gap: number; + readonly Length: number; + readonly Parent: any; + PresetDrop(DropType: Office.MsoCalloutDropType): void; + Type: Office.MsoCalloutType; + } + + class CellFormat { + private 'Excel.CellFormat_typekey': CellFormat; + private constructor(); + AddIndent: any; + readonly Application: Application; + Borders: Borders; + Clear(): void; + readonly Creator: XlCreator; + Font: Font; + FormulaHidden: any; + HorizontalAlignment: any; + IndentLevel: any; + Interior: Interior; + Locked: any; + MergeCells: any; + NumberFormat: any; + NumberFormatLocal: any; + Orientation: any; + readonly Parent: any; + ShrinkToFit: any; + VerticalAlignment: any; + WrapText: any; + } + + class Characters { + private 'Excel.Characters_typekey': Characters; + private constructor(); + readonly Application: Application; + Caption: string; + readonly Count: number; + readonly Creator: XlCreator; + Delete(): any; + readonly Font: Font; + Insert(String: string): any; + readonly Parent: any; + PhoneticCharacters: string; + Text: string; + } + + class Chart { + private 'Excel.Chart_typekey': Chart; + private constructor(); + __PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any): void; + + /** @param Excel.XlDataLabelsType [Type=2] */ + _ApplyDataLabels(Type?: XlDataLabelsType, LegendKey?: any, AutoText?: any, HasLeaderLines?: any): void; + _CodeName: string; + _Evaluate(Name: any): any; + _PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any): void; + _Protect(Password?: any, DrawingObjects?: any, Contents?: any, Scenarios?: any, UserInterfaceOnly?: any): void; + _SaveAs( + Filename: string, FileFormat?: any, Password?: any, WriteResPassword?: any, ReadOnlyRecommended?: any, CreateBackup?: any, AddToMru?: any, TextCodepage?: any, + TextVisualLayout?: any): void; + Activate(): void; + readonly Application: Application; + ApplyChartTemplate(Filename: string): void; + ApplyCustomType(ChartType: XlChartType, TypeName?: any): void; + + /** @param Excel.XlDataLabelsType [Type=2] */ + ApplyDataLabels( + Type?: XlDataLabelsType, LegendKey?: any, AutoText?: any, HasLeaderLines?: any, ShowSeriesName?: any, ShowCategoryName?: any, ShowValue?: any, + ShowPercentage?: any, ShowBubbleSize?: any, Separator?: any): void; + ApplyLayout(Layout: number, ChartType?: any): void; + Arcs(Index?: any): any; + readonly Area3DGroup: ChartGroup; + AreaGroups(Index?: any): any; + AutoFormat(Gallery: number, Format?: any): void; + AutoScaling: boolean; + + /** @param Excel.XlAxisGroup [AxisGroup=1] */ + Axes(Type: any, AxisGroup?: XlAxisGroup): any; + readonly BackWall: Walls; + readonly Bar3DGroup: ChartGroup; + BarGroups(Index?: any): any; + BarShape: XlBarShape; + Buttons(Index?: any): any; + readonly ChartArea: ChartArea; + ChartGroups(Index?: any): any; + ChartObjects(Index?: any): any; + ChartStyle: any; + readonly ChartTitle: ChartTitle; + ChartType: XlChartType; + ChartWizard( + Source?: any, Gallery?: any, Format?: any, PlotBy?: any, CategoryLabels?: any, SeriesLabels?: any, HasLegend?: any, Title?: any, CategoryTitle?: any, + ValueTitle?: any, ExtraTitle?: any): void; + CheckBoxes(Index?: any): any; + CheckSpelling(CustomDictionary?: any, IgnoreUppercase?: any, AlwaysSuggest?: any, SpellLang?: any): void; + ClearToMatchStyle(): void; + readonly CodeName: string; + readonly Column3DGroup: ChartGroup; + ColumnGroups(Index?: any): any; + Copy(Before?: any, After?: any): void; + CopyChartBuild(): void; + + /** + * @param Excel.XlPictureAppearance [Appearance=1] + * @param Excel.XlCopyPictureFormat [Format=-4147] + * @param Excel.XlPictureAppearance [Size=2] + */ + CopyPicture(Appearance?: XlPictureAppearance, Format?: XlCopyPictureFormat, Size?: XlPictureAppearance): void; + readonly Corners: Corners; + + /** + * @param Excel.XlPictureAppearance [Appearance=1] + * @param Excel.XlPictureAppearance [Size=1] + */ + CreatePublisher(Edition: any, Appearance?: XlPictureAppearance, Size?: XlPictureAppearance, ContainsPICT?: any, ContainsBIFF?: any, ContainsRTF?: any, ContainsVALU?: any): void; + readonly Creator: XlCreator; + readonly DataTable: DataTable; + Delete(): void; + DepthPercent: number; + Deselect(): void; + DisplayBlanksAs: XlDisplayBlanksAs; + DoughnutGroups(Index?: any): any; + DrawingObjects(Index?: any): any; + Drawings(Index?: any): any; + DropDowns(Index?: any): any; + Dummy24: boolean; + Dummy25: boolean; + Elevation: number; + Evaluate(Name: any): any; + Export(Filename: string, FilterName?: any, Interactive?: any): boolean; + ExportAsFixedFormat( + Type: XlFixedFormatType, Filename?: any, Quality?: any, IncludeDocProperties?: any, IgnorePrintAreas?: any, From?: any, To?: any, OpenAfterPublish?: any, + FixedFormatExtClassPtr?: any): void; + readonly Floor: Floor; + GapDepth: number; + GetChartElement(x: number, y: number, ElementID: number, Arg1: number, Arg2: number): void; + GroupBoxes(Index?: any): any; + GroupObjects(Index?: any): any; + HasAxis(Index1?: any, Index2?: any): any; + HasDataTable: boolean; + HasLegend: boolean; + HasPivotFields: boolean; + HasTitle: boolean; + HeightPercent: number; + readonly Hyperlinks: Hyperlinks; + readonly Index: number; + Labels(Index?: any): any; + readonly Legend: Legend; + readonly Line3DGroup: ChartGroup; + LineGroups(Index?: any): any; + Lines(Index?: any): any; + ListBoxes(Index?: any): any; + Location(Where: XlChartLocation, Name?: any): Chart; + readonly MailEnvelope: Office.MsoEnvelope; + Move(Before?: any, After?: any): void; + Name: string; + readonly Next: any; + OLEObjects(Index?: any): any; + OnDoubleClick: string; + OnSheetActivate: string; + OnSheetDeactivate: string; + OptionButtons(Index?: any): any; + Ovals(Index?: any): any; + readonly PageSetup: PageSetup; + readonly Parent: any; + Paste(Type?: any): void; + Perspective: number; + Pictures(Index?: any): any; + readonly Pie3DGroup: ChartGroup; + PieGroups(Index?: any): any; + readonly PivotLayout: PivotLayout; + readonly PlotArea: PlotArea; + PlotBy: XlRowCol; + PlotVisibleOnly: boolean; + readonly Previous: any; + readonly PrintedCommentPages: number; + PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any): void; + PrintPreview(EnableChanges?: any): void; + Protect(Password?: any, DrawingObjects?: any, Contents?: any, Scenarios?: any, UserInterfaceOnly?: any): void; + readonly ProtectContents: boolean; + ProtectData: boolean; + readonly ProtectDrawingObjects: boolean; + ProtectFormatting: boolean; + ProtectGoalSeek: boolean; + readonly ProtectionMode: boolean; + ProtectSelection: boolean; + RadarGroups(Index?: any): any; + Rectangles(Index?: any): any; + Refresh(): void; + RightAngleAxes: any; + Rotation: any; + SaveAs( + Filename: string, FileFormat?: any, Password?: any, WriteResPassword?: any, ReadOnlyRecommended?: any, CreateBackup?: any, AddToMru?: any, TextCodepage?: any, + TextVisualLayout?: any, Local?: any): void; + SaveChartTemplate(Filename: string): void; + readonly Scripts: Office.Scripts; + ScrollBars(Index?: any): any; + Select(Replace?: any): void; + SeriesCollection(Index?: any): any; + SetBackgroundPicture(Filename: string): void; + SetDefaultChart(Name: any): void; + SetElement(Element: Office.MsoChartElementType): void; + SetSourceData(Source: Range, PlotBy?: any): void; + readonly Shapes: Shapes; + ShowAllFieldButtons: boolean; + ShowAxisFieldButtons: boolean; + ShowDataLabelsOverMaximum: boolean; + ShowLegendFieldButtons: boolean; + ShowReportFilterFieldButtons: boolean; + ShowValueFieldButtons: boolean; + ShowWindow: boolean; + readonly SideWall: Walls; + SizeWithWindow: boolean; + Spinners(Index?: any): any; + SubType: number; + readonly SurfaceGroup: ChartGroup; + readonly Tab: Tab; + TextBoxes(Index?: any): any; + Type: number; + Unprotect(Password?: any): void; + Visible: XlSheetVisibility; + readonly Walls: Walls; + WallsAndGridlines2D: boolean; + XYGroups(Index?: any): any; + } + + class ChartArea { + private 'Excel.ChartArea_typekey': ChartArea; + private constructor(); + readonly Application: Application; + AutoScaleFont: any; + readonly Border: Border; + Clear(): any; + ClearContents(): any; + ClearFormats(): any; + Copy(): any; + readonly Creator: XlCreator; + readonly Fill: ChartFillFormat; + readonly Font: Font; + readonly Format: ChartFormat; + Height: number; + readonly Interior: Interior; + Left: number; + readonly Name: string; + readonly Parent: any; + RoundedCorners: boolean; + Select(): any; + Shadow: boolean; + Top: number; + Width: number; + } + + class ChartColorFormat { + private 'Excel.ChartColorFormat_typekey': ChartColorFormat; + private constructor(); + readonly _Default: number; + readonly Application: Application; + readonly Creator: XlCreator; + readonly Parent: any; + readonly RGB: number; + SchemeColor: number; + readonly Type: number; + } + + class ChartFillFormat { + private 'Excel.ChartFillFormat_typekey': ChartFillFormat; + private constructor(); + readonly Application: Application; + readonly BackColor: ChartColorFormat; + readonly Creator: XlCreator; + readonly ForeColor: ChartColorFormat; + readonly GradientColorType: Office.MsoGradientColorType; + readonly GradientDegree: number; + readonly GradientStyle: Office.MsoGradientStyle; + readonly GradientVariant: number; + OneColorGradient(Style: Office.MsoGradientStyle, Variant: number, Degree: number): void; + readonly Parent: any; + readonly Pattern: Office.MsoPatternType; + Patterned(Pattern: Office.MsoPatternType): void; + PresetGradient(Style: Office.MsoGradientStyle, Variant: number, PresetGradientType: Office.MsoPresetGradientType): void; + readonly PresetGradientType: Office.MsoPresetGradientType; + readonly PresetTexture: Office.MsoPresetTexture; + PresetTextured(PresetTexture: Office.MsoPresetTexture): void; + Solid(): void; + readonly TextureName: string; + readonly TextureType: Office.MsoTextureType; + TwoColorGradient(Style: Office.MsoGradientStyle, Variant: number): void; + readonly Type: Office.MsoFillType; + UserPicture(PictureFile?: any, PictureFormat?: any, PictureStackUnit?: any, PicturePlacement?: any): void; + UserTextured(TextureFile: string): void; + Visible: Office.MsoTriState; + } + + class ChartFormat { + private 'Excel.ChartFormat_typekey': ChartFormat; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + readonly Fill: FillFormat; + readonly Glow: Office.GlowFormat; + readonly Line: LineFormat; + readonly Parent: any; + readonly PictureFormat: PictureFormat; + readonly Shadow: ShadowFormat; + readonly SoftEdge: Office.SoftEdgeFormat; + readonly TextFrame2: TextFrame2; + readonly ThreeD: ThreeDFormat; + } + + class ChartGroup { + private 'Excel.ChartGroup_typekey': ChartGroup; + private constructor(); + readonly Application: Application; + AxisGroup: XlAxisGroup; + BubbleScale: number; + readonly Creator: XlCreator; + DoughnutHoleSize: number; + readonly DownBars: DownBars; + readonly DropLines: DropLines; + FirstSliceAngle: number; + GapWidth: number; + Has3DShading: boolean; + HasDropLines: boolean; + HasHiLoLines: boolean; + HasRadarAxisLabels: boolean; + HasSeriesLines: boolean; + HasUpDownBars: boolean; + readonly HiLoLines: HiLoLines; + readonly Index: number; + Overlap: number; + readonly Parent: any; + readonly RadarAxisLabels: TickLabels; + SecondPlotSize: number; + SeriesCollection(Index?: any): any; + readonly SeriesLines: SeriesLines; + ShowNegativeBubbles: boolean; + SizeRepresents: XlSizeRepresents; + SplitType: XlChartSplitType; + SplitValue: any; + SubType: number; + Type: number; + readonly UpBars: UpBars; + VaryByCategories: boolean; + } + + class ChartTitle { + private 'Excel.ChartTitle_typekey': ChartTitle; + private constructor(); + readonly Application: Application; + AutoScaleFont: any; + readonly Border: Border; + Caption: string; + Characters(Start?: any, Length?: any): Characters; + readonly Creator: XlCreator; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Font: Font; + readonly Format: ChartFormat; + Formula: string; + FormulaLocal: string; + FormulaR1C1: string; + FormulaR1C1Local: string; + readonly Height: number; + HorizontalAlignment: any; + IncludeInLayout: boolean; + readonly Interior: Interior; + Left: number; + readonly Name: string; + Orientation: any; + readonly Parent: any; + Position: XlChartElementPosition; + ReadingOrder: number; + Select(): any; + Shadow: boolean; + Text: string; + Top: number; + VerticalAlignment: any; + readonly Width: number; + } + + class ColorFormat { + private 'Excel.ColorFormat_typekey': ColorFormat; + private constructor(); + readonly Application: any; + Brightness: number; + readonly Creator: number; + ObjectThemeColor: Office.MsoThemeColorIndex; + readonly Parent: any; + RGB: Office.MsoRGBType; + SchemeColor: number; + TintAndShade: number; + readonly Type: Office.MsoColorType; + } + + class Comment { + private 'Excel.Comment_typekey': Comment; + private constructor(); + readonly Application: Application; + readonly Author: string; + readonly Creator: XlCreator; + Delete(): void; + Next(): Comment; + readonly Parent: any; + Previous(): Comment; + readonly Shape: Shape; + Text(Text?: any, Start?: any, Overwrite?: any): string; + Visible: boolean; + } + + class Comments { + private 'Excel.Comments_typekey': Comments; + private constructor(); + _Default(Index: number): Comment; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: number): Comment; + readonly Parent: any; + } + + class Connections { + private 'Excel.Connections_typekey': Connections; + private constructor(); + _Default(Index: any): WorkbookConnection; + Add(Name: string, Description: string, ConnectionString: any, CommandText: any, lCmdtype?: any): WorkbookConnection; + AddFromFile(Filename: string): WorkbookConnection; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): WorkbookConnection; + readonly Parent: any; + } + + class ConnectorFormat { + private 'Excel.ConnectorFormat_typekey': ConnectorFormat; + private constructor(); + readonly Application: Application; + BeginConnect(ConnectedShape: Shape, ConnectionSite: number): void; + readonly BeginConnected: Office.MsoTriState; + readonly BeginConnectedShape: Shape; + readonly BeginConnectionSite: number; + BeginDisconnect(): void; + readonly Creator: XlCreator; + EndConnect(ConnectedShape: Shape, ConnectionSite: number): void; + readonly EndConnected: Office.MsoTriState; + readonly EndConnectedShape: Shape; + readonly EndConnectionSite: number; + EndDisconnect(): void; + readonly Parent: any; + Type: Office.MsoConnectorType; + } + + class ControlFormat { + private 'Excel.ControlFormat_typekey': ControlFormat; + private constructor(); + _Default: number; + AddItem(Text: string, Index?: any): void; + readonly Application: Application; + readonly Creator: XlCreator; + DropDownLines: number; + Enabled: boolean; + LargeChange: number; + LinkedCell: string; + List(Index?: any): any; + ListCount: number; + ListFillRange: string; + ListIndex: number; + LockedText: boolean; + Max: number; + Min: number; + MultiSelect: number; + readonly Parent: any; + PrintObject: boolean; + RemoveAllItems(): void; + RemoveItem(Index: number, Count?: any): void; + SmallChange: number; + Value: number; + } + + class Corners { + private 'Excel.Corners_typekey': Corners; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class CubeField { + private 'Excel.CubeField_typekey': CubeField; + private constructor(); + _AddMemberPropertyField(Property: string, PropertyOrder?: any): void; + readonly _Caption: string; + AddMemberPropertyField(Property: string, PropertyOrder?: any, PropertyDisplayedIn?: any): void; + readonly AllItemsVisible: boolean; + readonly Application: Application; + Caption: string; + ClearManualFilter(): void; + CreatePivotFields(): void; + readonly Creator: XlCreator; + readonly CubeFieldSubType: XlCubeFieldSubType; + readonly CubeFieldType: XlCubeFieldType; + CurrentPageName: string; + Delete(): void; + DragToColumn: boolean; + DragToData: boolean; + DragToHide: boolean; + DragToPage: boolean; + DragToRow: boolean; + EnableMultiplePageItems: boolean; + FlattenHierarchies: boolean; + readonly HasMemberProperties: boolean; + HiddenLevels: number; + HierarchizeDistinct: boolean; + IncludeNewItemsInFilter: boolean; + readonly IsDate: boolean; + LayoutForm: XlLayoutFormType; + LayoutSubtotalLocation: XlSubtototalLocationType; + readonly Name: string; + Orientation: XlPivotFieldOrientation; + readonly Parent: any; + readonly PivotFields: PivotFields; + Position: number; + ShowInFieldList: boolean; + readonly TreeviewControl: TreeviewControl; + readonly Value: string; + } + + class CubeFields { + private 'Excel.CubeFields_typekey': CubeFields; + private constructor(); + _Default(Index: any): CubeField; + AddSet(Name: string, Caption: string): CubeField; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): CubeField; + readonly Parent: any; + } + + class CustomProperties { + private 'Excel.CustomProperties_typekey': CustomProperties; + private constructor(); + _Default(Index: any): CustomProperty; + Add(Name: string, Value: any): CustomProperty; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): CustomProperty; + readonly Parent: any; + } + + class CustomProperty { + private 'Excel.CustomProperty_typekey': CustomProperty; + private constructor(); + readonly _Default: any; + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): void; + Name: string; + readonly Parent: any; + Value: any; + } + + class CustomView { + private 'Excel.CustomView_typekey': CustomView; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): void; + readonly Name: string; + readonly Parent: any; + readonly PrintSettings: boolean; + readonly RowColSettings: boolean; + Show(): void; + } + + class CustomViews { + private 'Excel.CustomViews_typekey': CustomViews; + private constructor(); + _Default(ViewName: any): CustomView; + Add(ViewName: string, PrintSettings?: any, RowColSettings?: any): CustomView; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(ViewName: any): CustomView; + readonly Parent: any; + } + + class DataTable { + private 'Excel.DataTable_typekey': DataTable; + private constructor(); + readonly Application: Application; + AutoScaleFont: any; + readonly Border: Border; + readonly Creator: XlCreator; + Delete(): void; + readonly Font: Font; + readonly Format: ChartFormat; + HasBorderHorizontal: boolean; + HasBorderOutline: boolean; + HasBorderVertical: boolean; + readonly Parent: any; + Select(): void; + ShowLegendKey: boolean; + } + + class DefaultWebOptions { + private 'Excel.DefaultWebOptions_typekey': DefaultWebOptions; + private constructor(); + AllowPNG: boolean; + AlwaysSaveInDefaultEncoding: boolean; + readonly Application: Application; + CheckIfOfficeIsHTMLEditor: boolean; + readonly Creator: XlCreator; + DownloadComponents: boolean; + Encoding: Office.MsoEncoding; + readonly FolderSuffix: string; + readonly Fonts: Office.WebPageFonts; + LoadPictures: boolean; + LocationOfComponents: string; + OrganizeInFolder: boolean; + readonly Parent: any; + PixelsPerInch: number; + RelyOnCSS: boolean; + RelyOnVML: boolean; + SaveHiddenData: boolean; + SaveNewWebPagesAsWebArchives: boolean; + ScreenSize: Office.MsoScreenSize; + TargetBrowser: Office.MsoTargetBrowser; + UpdateLinksOnSave: boolean; + UseLongFileNames: boolean; + } + + class Diagram { + private 'Excel.Diagram_typekey': Diagram; + private constructor(); + readonly Application: Application; + AutoFormat: Office.MsoTriState; + AutoLayout: Office.MsoTriState; + Convert(Type: Office.MsoDiagramType): void; + readonly Creator: XlCreator; + FitText(): void; + readonly Nodes: DiagramNodes; + readonly Parent: any; + Reverse: Office.MsoTriState; + readonly Type: Office.MsoDiagramType; + } + + class DiagramNode { + private 'Excel.DiagramNode_typekey': DiagramNode; + private constructor(); + + /** + * @param Office.MsoRelativeNodePosition [pos=2] + * @param Office.MsoDiagramNodeType [nodeType=1] + */ + AddNode(pos?: Office.MsoRelativeNodePosition, nodeType?: Office.MsoDiagramNodeType): DiagramNode; + readonly Application: any; + readonly Children: DiagramNodeChildren; + + /** @param Office.MsoRelativeNodePosition [pos=2] */ + CloneNode(copyChildren: boolean, pTargetNode: DiagramNode, pos?: Office.MsoRelativeNodePosition): DiagramNode; + readonly Creator: number; + Delete(): void; + readonly Diagram: Office.IMsoDiagram; + Layout: Office.MsoOrgChartLayoutType; + MoveNode(pTargetNode: DiagramNode, pos: Office.MsoRelativeNodePosition): void; + NextNode(): DiagramNode; + readonly Parent: any; + PrevNode(): DiagramNode; + ReplaceNode(pTargetNode: DiagramNode): void; + readonly Root: DiagramNode; + readonly Shape: Shape; + + /** @param boolean [swapChildren=true] */ + SwapNode(pTargetNode: DiagramNode, swapChildren?: boolean): void; + readonly TextShape: Shape; + TransferChildren(pReceivingNode: DiagramNode): void; + } + + class DiagramNodeChildren { + private 'Excel.DiagramNodeChildren_typekey': DiagramNodeChildren; + private constructor(); + + /** + * @param any [Index=-1] + * @param Office.MsoDiagramNodeType [nodeType=1] + */ + AddNode(Index?: any, nodeType?: Office.MsoDiagramNodeType): DiagramNode; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + readonly FirstChild: DiagramNode; + Item(Index: any): DiagramNode; + readonly LastChild: DiagramNode; + readonly Parent: any; + SelectAll(): void; + } + + class DiagramNodes { + private 'Excel.DiagramNodes_typekey': DiagramNodes; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): DiagramNode; + readonly Parent: any; + SelectAll(): void; + } + + class Dialog { + private 'Excel.Dialog_typekey': Dialog; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + readonly Parent: any; + Show( + Arg1?: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): boolean; + } + + class DialogFrame { + private 'Excel.DialogFrame_typekey': DialogFrame; + private constructor(); + readonly Application: Application; + Caption: string; + Characters(Start?: any, Length?: any): Characters; + CheckSpelling(CustomDictionary?: any, IgnoreUppercase?: any, AlwaysSuggest?: any, SpellLang?: any): any; + + /** + * @param Excel.XlPictureAppearance [Appearance=2] + * @param Excel.XlCopyPictureFormat [Format=-4147] + */ + CopyPicture(Appearance?: XlPictureAppearance, Format?: XlCopyPictureFormat): any; + readonly Creator: XlCreator; + Height: number; + Left: number; + Locked: boolean; + LockedText: boolean; + Name: string; + OnAction: string; + readonly Parent: any; + Select(Replace?: any): any; + readonly ShapeRange: ShapeRange; + Text: string; + Top: number; + Width: number; + } + + class Dialogs { + private 'Excel.Dialogs_typekey': Dialogs; + private constructor(); + _Default(Index: XlBuiltInDialog): Dialog; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: XlBuiltInDialog): Dialog; + readonly Parent: any; + } + + class DialogSheet { + private 'Excel.DialogSheet_typekey': DialogSheet; + private constructor(); + __PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any): void; + _CheckSpelling(CustomDictionary?: any, IgnoreUppercase?: any, AlwaysSuggest?: any, SpellLang?: any, IgnoreFinalYaa?: any, SpellScript?: any): void; + _CodeName: string; + _DisplayRightToLeft: number; + _Evaluate(Name: any): any; + _PasteSpecial(Format?: any, Link?: any, DisplayAsIcon?: any, IconFileName?: any, IconIndex?: any, IconLabel?: any): void; + _PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any): void; + _Protect(Password?: any, DrawingObjects?: any, Contents?: any, Scenarios?: any, UserInterfaceOnly?: any): void; + _SaveAs( + Filename: string, FileFormat?: any, Password?: any, WriteResPassword?: any, ReadOnlyRecommended?: any, CreateBackup?: any, AddToMru?: any, TextCodepage?: any, + TextVisualLayout?: any): void; + Activate(): void; + readonly Application: Application; + Arcs(Index?: any): any; + readonly AutoFilter: AutoFilter; + Buttons(Index?: any): any; + ChartObjects(Index?: any): any; + CheckBoxes(Index?: any): any; + CheckSpelling(CustomDictionary?: any, IgnoreUppercase?: any, AlwaysSuggest?: any, SpellLang?: any): void; + CircleInvalid(): void; + ClearCircles(): void; + readonly CodeName: string; + readonly Comments: Comments; + Copy(Before?: any, After?: any): void; + readonly Creator: XlCreator; + readonly CustomProperties: CustomProperties; + DefaultButton: any; + Delete(): void; + readonly DialogFrame: DialogFrame; + DisplayAutomaticPageBreaks: boolean; + DisplayPageBreaks: boolean; + DisplayRightToLeft: boolean; + DrawingObjects(Index?: any): any; + Drawings(Index?: any): any; + DropDowns(Index?: any): any; + EditBoxes(Index?: any): any; + EnableAutoFilter: boolean; + EnableCalculation: boolean; + EnableFormatConditionsCalculation: boolean; + EnableOutlining: boolean; + EnablePivotTable: boolean; + EnableSelection: XlEnableSelection; + Evaluate(Name: any): any; + ExportAsFixedFormat( + Type: XlFixedFormatType, Filename?: any, Quality?: any, IncludeDocProperties?: any, IgnorePrintAreas?: any, From?: any, To?: any, OpenAfterPublish?: any, + FixedFormatExtClassPtr?: any): void; + Focus: any; + GroupBoxes(Index?: any): any; + GroupObjects(Index?: any): any; + Hide(Cancel?: any): boolean; + readonly HPageBreaks: HPageBreaks; + readonly Hyperlinks: Hyperlinks; + readonly Index: number; + Labels(Index?: any): any; + Lines(Index?: any): any; + ListBoxes(Index?: any): any; + readonly MailEnvelope: Office.MsoEnvelope; + Move(Before?: any, After?: any): void; + Name: string; + readonly Names: Names; + readonly Next: any; + OLEObjects(Index?: any): any; + OnDoubleClick: string; + OnSheetActivate: string; + OnSheetDeactivate: string; + OptionButtons(Index?: any): any; + Ovals(Index?: any): any; + readonly PageSetup: PageSetup; + readonly Parent: any; + Paste(Destination?: any, Link?: any): void; + PasteSpecial(Format?: any, Link?: any, DisplayAsIcon?: any, IconFileName?: any, IconIndex?: any, IconLabel?: any, NoHTMLFormatting?: any): void; + Pictures(Index?: any): any; + readonly Previous: any; + readonly PrintedCommentPages: number; + PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any): void; + PrintPreview(EnableChanges?: any): void; + Protect( + Password?: any, DrawingObjects?: any, Contents?: any, Scenarios?: any, UserInterfaceOnly?: any, AllowFormattingCells?: any, AllowFormattingColumns?: any, + AllowFormattingRows?: any, AllowInsertingColumns?: any, AllowInsertingRows?: any, AllowInsertingHyperlinks?: any, AllowDeletingColumns?: any, + AllowDeletingRows?: any, AllowSorting?: any, AllowFiltering?: any, AllowUsingPivotTables?: any): void; + readonly ProtectContents: boolean; + readonly ProtectDrawingObjects: boolean; + readonly Protection: Protection; + readonly ProtectionMode: boolean; + readonly ProtectScenarios: boolean; + readonly QueryTables: QueryTables; + Rectangles(Index?: any): any; + ResetAllPageBreaks(): void; + SaveAs( + Filename: string, FileFormat?: any, Password?: any, WriteResPassword?: any, ReadOnlyRecommended?: any, CreateBackup?: any, AddToMru?: any, TextCodepage?: any, + TextVisualLayout?: any, Local?: any): void; + readonly Scripts: Office.Scripts; + ScrollArea: string; + ScrollBars(Index?: any): any; + Select(Replace?: any): void; + readonly Shapes: Shapes; + Show(): boolean; + readonly SmartTags: SmartTags; + readonly Sort: Sort; + Spinners(Index?: any): any; + readonly Tab: Tab; + TextBoxes(Index?: any): any; + Unprotect(Password?: any): void; + Visible: XlSheetVisibility; + readonly VPageBreaks: VPageBreaks; + } + + class DisplayFormat { + private 'Excel.DisplayFormat_typekey': DisplayFormat; + private constructor(); + readonly AddIndent: any; + readonly Application: Application; + readonly Borders: Borders; + Characters(Start?: any, Length?: any): Characters; + readonly Creator: XlCreator; + readonly Font: Font; + readonly FormulaHidden: any; + readonly HorizontalAlignment: any; + readonly IndentLevel: any; + readonly Interior: Interior; + readonly Locked: any; + readonly MergeCells: any; + readonly NumberFormat: any; + readonly NumberFormatLocal: any; + readonly Orientation: any; + readonly Parent: any; + readonly ReadingOrder: number; + readonly ShrinkToFit: any; + readonly Style: any; + readonly VerticalAlignment: any; + readonly WrapText: any; + } + + class DownBars { + private 'Excel.DownBars_typekey': DownBars; + private constructor(); + readonly Application: Application; + readonly Border: Border; + readonly Creator: XlCreator; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + readonly Interior: Interior; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class DropLines { + private 'Excel.DropLines_typekey': DropLines; + private constructor(); + readonly Application: Application; + readonly Border: Border; + readonly Creator: XlCreator; + Delete(): any; + readonly Format: ChartFormat; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class Error { + private 'Excel.Error_typekey': Error; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + Ignore: boolean; + readonly Parent: any; + readonly Value: boolean; + } + + class ErrorCheckingOptions { + private 'Excel.ErrorCheckingOptions_typekey': ErrorCheckingOptions; + private constructor(); + readonly Application: Application; + BackgroundChecking: boolean; + readonly Creator: XlCreator; + EmptyCellReferences: boolean; + EvaluateToError: boolean; + InconsistentFormula: boolean; + InconsistentTableFormula: boolean; + IndicatorColorIndex: XlColorIndex; + ListDataValidation: boolean; + NumberAsText: boolean; + OmittedCells: boolean; + readonly Parent: any; + TextDate: boolean; + UnlockedFormulaCells: boolean; + } + + class Errors { + private 'Excel.Errors_typekey': Errors; + private constructor(); + _Default(Index: any): Error; + readonly Application: Application; + readonly Creator: XlCreator; + Item(Index: any): Error; + readonly Parent: any; + } + + class FileExportConverter { + private 'Excel.FileExportConverter_typekey': FileExportConverter; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + readonly Description: string; + readonly Extensions: string; + readonly FileFormat: number; + readonly Parent: any; + } + + class FileExportConverters { + private 'Excel.FileExportConverters_typekey': FileExportConverters; + private constructor(); + _Default(Index: any): FileExportConverter; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): FileExportConverter; + readonly Parent: any; + } + + class FillFormat { + private 'Excel.FillFormat_typekey': FillFormat; + private constructor(); + readonly Application: any; + BackColor: ColorFormat; + Background(): void; + readonly Creator: number; + ForeColor: ColorFormat; + GradientAngle: number; + readonly GradientColorType: Office.MsoGradientColorType; + readonly GradientDegree: number; + readonly GradientStops: Office.GradientStops; + readonly GradientStyle: Office.MsoGradientStyle; + readonly GradientVariant: number; + OneColorGradient(Style: Office.MsoGradientStyle, Variant: number, Degree: number): void; + readonly Parent: any; + readonly Pattern: Office.MsoPatternType; + Patterned(Pattern: Office.MsoPatternType): void; + readonly PictureEffects: Office.PictureEffects; + PresetGradient(Style: Office.MsoGradientStyle, Variant: number, PresetGradientType: Office.MsoPresetGradientType): void; + readonly PresetGradientType: Office.MsoPresetGradientType; + readonly PresetTexture: Office.MsoPresetTexture; + PresetTextured(PresetTexture: Office.MsoPresetTexture): void; + RotateWithObject: Office.MsoTriState; + Solid(): void; + TextureAlignment: Office.MsoTextureAlignment; + TextureHorizontalScale: number; + readonly TextureName: string; + TextureOffsetX: number; + TextureOffsetY: number; + TextureTile: Office.MsoTriState; + readonly TextureType: Office.MsoTextureType; + TextureVerticalScale: number; + Transparency: number; + TwoColorGradient(Style: Office.MsoGradientStyle, Variant: number): void; + readonly Type: Office.MsoFillType; + UserPicture(PictureFile: string): void; + UserTextured(TextureFile: string): void; + Visible: Office.MsoTriState; + } + + class Filter { + private 'Excel.Filter_typekey': Filter; + private constructor(); + readonly _Operator: XlAutoFilterOperator; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + readonly Criteria1: any; + readonly Criteria2: any; + readonly On: boolean; + Operator: XlAutoFilterOperator; + readonly Parent: any; + } + + class Filters { + private 'Excel.Filters_typekey': Filters; + private constructor(); + _Default(Index: number): Filter; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: number): Filter; + readonly Parent: any; + } + + class Floor { + private 'Excel.Floor_typekey': Floor; + private constructor(); + readonly Application: Application; + readonly Border: Border; + ClearFormats(): any; + readonly Creator: XlCreator; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + readonly Interior: Interior; + readonly Name: string; + readonly Parent: any; + Paste(): void; + PictureType: any; + Select(): any; + Thickness: number; + } + + class Font { + private 'Excel.Font_typekey': Font; + private constructor(); + readonly Application: Application; + Background: any; + Bold: any; + Color: any; + ColorIndex: any; + readonly Creator: XlCreator; + FontStyle: any; + Italic: any; + Name: any; + OutlineFont: any; + readonly Parent: any; + Shadow: any; + Size: any; + Strikethrough: any; + Subscript: any; + Superscript: any; + ThemeColor: any; + ThemeFont: XlThemeFont; + TintAndShade: any; + Underline: any; + } + + class FormatColor { + private 'Excel.FormatColor_typekey': FormatColor; + private constructor(); + readonly Application: Application; + Color: any; + ColorIndex: XlColorIndex; + readonly Creator: XlCreator; + readonly Parent: any; + ThemeColor: any; + TintAndShade: any; + } + + class FormatConditions { + private 'Excel.FormatConditions_typekey': FormatConditions; + private constructor(); + _Default(Index: any): any; + Add(Type: XlFormatConditionType, Operator?: any, Formula1?: any, Formula2?: any, String?: any, TextOperator?: any, DateOperator?: any, ScopeType?: any): any; + AddAboveAverage(): any; + AddColorScale(ColorScaleType: number): any; + AddDatabar(): any; + AddIconSetCondition(): any; + AddTop10(): any; + AddUniqueValues(): any; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Delete(): void; + Item(Index: any): any; + readonly Parent: any; + } + + class FreeformBuilder { + private 'Excel.FreeformBuilder_typekey': FreeformBuilder; + private constructor(); + AddNodes(SegmentType: Office.MsoSegmentType, EditingType: Office.MsoEditingType, X1: number, Y1: number, X2?: any, Y2?: any, X3?: any, Y3?: any): void; + readonly Application: Application; + ConvertToShape(): Shape; + readonly Creator: XlCreator; + readonly Parent: any; + } + + class Global { + private 'Excel.Global_typekey': Global; + private constructor(); + _Evaluate(Name: any): any; + _Run2( + Macro?: any, Arg1?: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, + Arg13?: any, Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, + Arg25?: any, Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): any; + readonly ActiveCell: Range; + readonly ActiveChart: Chart; + readonly ActiveDialog: DialogSheet; + readonly ActiveMenuBar: MenuBar; + ActivePrinter: string; + readonly ActiveSheet: any; + readonly ActiveWindow: Window; + readonly ActiveWorkbook: Workbook; + readonly AddIns: AddIns; + readonly Application: Application; + readonly Assistant: Office.Assistant; + Calculate(): void; + readonly Cells: Range; + readonly Charts: Sheets; + readonly Columns: Range; + readonly CommandBars: Office.CommandBars; + readonly Creator: XlCreator; + readonly DDEAppReturnCode: number; + DDEExecute(Channel: number, String: string): void; + DDEInitiate(App: string, Topic: string): number; + DDEPoke(Channel: number, Item: any, Data: any): void; + DDERequest(Channel: number, Item: string): any; + DDETerminate(Channel: number): void; + readonly DialogSheets: Sheets; + Evaluate(Name: any): any; + readonly Excel4IntlMacroSheets: Sheets; + readonly Excel4MacroSheets: Sheets; + ExecuteExcel4Macro(String: string): any; + Intersect( + Arg1: Range, Arg2: Range, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, + Arg13?: any, Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, + Arg25?: any, Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): Range; + readonly MenuBars: MenuBars; + readonly Modules: Modules; + readonly Names: Names; + readonly Parent: Application; + Range(Cell1: any, Cell2?: any): Range; + readonly Rows: Range; + Run( + Macro?: any, Arg1?: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, + Arg13?: any, Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, + Arg25?: any, Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): any; + readonly Selection: any; + SendKeys(Keys: any, Wait?: any): void; + readonly Sheets: Sheets; + ShortcutMenus(Index: number): Menu; + readonly ThisWorkbook: Workbook; + readonly Toolbars: Toolbars; + Union( + Arg1: Range, Arg2: Range, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, + Arg13?: any, Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, + Arg25?: any, Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): Range; + readonly Windows: Windows; + readonly Workbooks: Workbooks; + readonly WorksheetFunction: WorksheetFunction; + readonly Worksheets: Sheets; + } + + class Graphic { + private 'Excel.Graphic_typekey': Graphic; + private constructor(); + readonly Application: Application; + Brightness: number; + ColorType: Office.MsoPictureColorType; + Contrast: number; + readonly Creator: XlCreator; + CropBottom: number; + CropLeft: number; + CropRight: number; + CropTop: number; + Filename: string; + Height: number; + LockAspectRatio: Office.MsoTriState; + readonly Parent: any; + Width: number; + } + + class GroupShapes { + private 'Excel.GroupShapes_typekey': GroupShapes; + private constructor(); + _Default(Index: any): Shape; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): Shape; + readonly Parent: any; + Range(Index: any): ShapeRange; + } + + class HeaderFooter { + private 'Excel.HeaderFooter_typekey': HeaderFooter; + private constructor(); + readonly Picture: Graphic; + Text: string; + } + + class HiLoLines { + private 'Excel.HiLoLines_typekey': HiLoLines; + private constructor(); + readonly Application: Application; + readonly Border: Border; + readonly Creator: XlCreator; + Delete(): any; + readonly Format: ChartFormat; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class HPageBreak { + private 'Excel.HPageBreak_typekey': HPageBreak; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): void; + DragOff(Direction: XlDirection, RegionIndex: number): void; + readonly Extent: XlPageBreakExtent; + Location: Range; + readonly Parent: Worksheet; + Type: XlPageBreak; + } + + class HPageBreaks { + private 'Excel.HPageBreaks_typekey': HPageBreaks; + private constructor(); + _Default(Index: number): HPageBreak; + Add(Before: any): HPageBreak; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: number): HPageBreak; + readonly Parent: any; + } + + class Hyperlink { + private 'Excel.Hyperlink_typekey': Hyperlink; + private constructor(); + Address: string; + AddToFavorites(): void; + readonly Application: Application; + CreateNewDocument(Filename: string, EditNow: boolean, Overwrite: boolean): void; + readonly Creator: XlCreator; + Delete(): void; + EmailSubject: string; + Follow(NewWindow?: any, AddHistory?: any, ExtraInfo?: any, Method?: any, HeaderInfo?: any): void; + readonly Name: string; + readonly Parent: any; + readonly Range: Range; + ScreenTip: string; + readonly Shape: Shape; + SubAddress: string; + TextToDisplay: string; + readonly Type: number; + } + + class Hyperlinks { + private 'Excel.Hyperlinks_typekey': Hyperlinks; + private constructor(); + _Default(Index: any): Hyperlink; + Add(Anchor: any, Address: string, SubAddress?: any, ScreenTip?: any, TextToDisplay?: any): any; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Delete(): void; + Item(Index: any): Hyperlink; + readonly Parent: any; + } + + class Icon { + private 'Excel.Icon_typekey': Icon; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + readonly Index: number; + readonly Parent: IconSet; + } + + class IconSet { + private 'Excel.IconSet_typekey': IconSet; + private constructor(); + _Default(Index: any): Icon; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + readonly ID: XlIconSet; + Item(Index: any): Icon; + readonly Parent: any; + } + + class IconSets { + private 'Excel.IconSets_typekey': IconSets; + private constructor(); + _Default(Index: any): any; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): any; + readonly Parent: any; + } + + class Interior { + private 'Excel.Interior_typekey': Interior; + private constructor(); + readonly Application: Application; + Color: any; + ColorIndex: number | XlColorIndex; + readonly Creator: XlCreator; + readonly Gradient: any; + InvertIfNegative: any; + readonly Parent: any; + Pattern: any; + PatternColor: any; + PatternColorIndex: any; + PatternThemeColor: any; + PatternTintAndShade: any; + ThemeColor: any; + TintAndShade: any; + } + + class Legend { + private 'Excel.Legend_typekey': Legend; + private constructor(); + readonly Application: Application; + AutoScaleFont: any; + readonly Border: Border; + Clear(): any; + readonly Creator: XlCreator; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Font: Font; + readonly Format: ChartFormat; + Height: number; + IncludeInLayout: boolean; + readonly Interior: Interior; + Left: number; + LegendEntries(Index?: any): any; + readonly Name: string; + readonly Parent: any; + Position: XlLegendPosition; + Select(): any; + Shadow: boolean; + Top: number; + Width: number; + } + + class LineFormat { + private 'Excel.LineFormat_typekey': LineFormat; + private constructor(); + readonly Application: any; + BackColor: ColorFormat; + BeginArrowheadLength: Office.MsoArrowheadLength; + BeginArrowheadStyle: Office.MsoArrowheadStyle; + BeginArrowheadWidth: Office.MsoArrowheadWidth; + readonly Creator: number; + DashStyle: Office.MsoLineDashStyle; + EndArrowheadLength: Office.MsoArrowheadLength; + EndArrowheadStyle: Office.MsoArrowheadStyle; + EndArrowheadWidth: Office.MsoArrowheadWidth; + ForeColor: ColorFormat; + InsetPen: Office.MsoTriState; + readonly Parent: any; + Pattern: Office.MsoPatternType; + Style: Office.MsoLineStyle; + Transparency: number; + Visible: Office.MsoTriState; + Weight: number; + } + + class LinkFormat { + private 'Excel.LinkFormat_typekey': LinkFormat; + private constructor(); + readonly Application: Application; + AutoUpdate: boolean; + readonly Creator: XlCreator; + Locked: boolean; + readonly Parent: any; + Update(): void; + } + + class ListColumn { + private 'Excel.ListColumn_typekey': ListColumn; + private constructor(); + readonly _Default: string; + readonly Application: Application; + readonly Creator: XlCreator; + readonly DataBodyRange: Range; + Delete(): void; + readonly Index: number; + readonly ListDataFormat: ListDataFormat; + Name: string; + readonly Parent: any; + readonly Range: Range; + readonly SharePointFormula: string; + readonly Total: Range; + TotalsCalculation: XlTotalsCalculation; + readonly XPath: XPath; + } + + class ListColumns { + private 'Excel.ListColumns_typekey': ListColumns; + private constructor(); + _Default(Index: any): ListColumn; + Add(Position?: any): ListColumn; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): ListColumn; + readonly Parent: any; + } + + class ListDataFormat { + private 'Excel.ListDataFormat_typekey': ListDataFormat; + private constructor(); + readonly _Default: XlListDataType; + readonly AllowFillIn: boolean; + readonly Application: Application; + readonly Choices: any; + readonly Creator: XlCreator; + readonly DecimalPlaces: number; + readonly DefaultValue: any; + readonly IsPercent: boolean; + readonly lcid: number; + readonly MaxCharacters: number; + readonly MaxNumber: any; + readonly MinNumber: any; + readonly Parent: any; + readonly ReadOnly: boolean; + readonly Required: boolean; + readonly Type: XlListDataType; + } + + class ListObject { + private 'Excel.ListObject_typekey': ListObject; + private constructor(); + readonly _Default: string; + readonly Active: boolean; + AlternativeText: string; + readonly Application: Application; + readonly AutoFilter: AutoFilter; + Comment: string; + readonly Creator: XlCreator; + readonly DataBodyRange: Range; + Delete(): void; + DisplayName: string; + readonly DisplayRightToLeft: boolean; + ExportToVisio(): void; + readonly HeaderRowRange: Range; + readonly InsertRowRange: Range; + readonly ListColumns: ListColumns; + readonly ListRows: ListRows; + Name: string; + readonly Parent: any; + Publish(Target: any, LinkSource: boolean): string; + readonly QueryTable: QueryTable; + readonly Range: Range; + Refresh(): void; + Resize(Range: Range): void; + readonly SharePointURL: string; + ShowAutoFilter: boolean; + ShowHeaders: boolean; + ShowTableStyleColumnStripes: boolean; + ShowTableStyleFirstColumn: boolean; + ShowTableStyleLastColumn: boolean; + ShowTableStyleRowStripes: boolean; + ShowTotals: boolean; + readonly Sort: Sort; + readonly SourceType: XlListObjectSourceType; + Summary: string; + TableStyle: any; + readonly TotalsRowRange: Range; + Unlink(): void; + Unlist(): void; + + /** @param Excel.XlListConflict [iConflictType=0] */ + UpdateChanges(iConflictType?: XlListConflict): void; + readonly XmlMap: XmlMap; + } + + class ListObjects { + private 'Excel.ListObjects_typekey': ListObjects; + private constructor(); + + /** + * @param Excel.XlListObjectSourceType [SourceType=1] + * @param Excel.XlYesNoGuess [XlListObjectHasHeaders=0] + */ + _Add(SourceType?: XlListObjectSourceType, Source?: any, LinkSource?: any, XlListObjectHasHeaders?: XlYesNoGuess, Destination?: any): ListObject; + _Default(Index: any): ListObject; + + /** + * @param Excel.XlListObjectSourceType [SourceType=1] + * @param Excel.XlYesNoGuess [XlListObjectHasHeaders=0] + */ + Add(SourceType?: XlListObjectSourceType, Source?: any, LinkSource?: any, XlListObjectHasHeaders?: XlYesNoGuess, Destination?: any, TableStyleName?: any): ListObject; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): ListObject; + readonly Parent: any; + } + + class ListRow { + private 'Excel.ListRow_typekey': ListRow; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): void; + readonly Index: number; + readonly InvalidData: boolean; + readonly Parent: any; + readonly Range: Range; + } + + class ListRows { + private 'Excel.ListRows_typekey': ListRows; + private constructor(); + _Add(Position?: any): ListRow; + _Default(Index: any): ListRow; + Add(Position?: any, AlwaysInsert?: any): ListRow; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): ListRow; + readonly Parent: any; + } + + class Mailer { + private 'Excel.Mailer_typekey': Mailer; + private constructor(); + readonly Application: Application; + BCCRecipients: any; + CCRecipients: any; + readonly Creator: XlCreator; + Enclosures: any; + readonly Parent: any; + readonly Received: boolean; + readonly SendDateTime: VarDate; + readonly Sender: string; + Subject: string; + ToRecipients: any; + WhichAddress: any; + } + + class Menu { + private 'Excel.Menu_typekey': Menu; + private constructor(); + readonly Application: Application; + Caption: string; + readonly Creator: XlCreator; + Delete(): void; + Enabled: boolean; + readonly Index: number; + readonly MenuItems: MenuItems; + readonly Parent: any; + } + + class MenuBar { + private 'Excel.MenuBar_typekey': MenuBar; + private constructor(); + Activate(): void; + readonly Application: Application; + readonly BuiltIn: boolean; + Caption: string; + readonly Creator: XlCreator; + Delete(): void; + readonly Index: number; + readonly Menus: Menus; + readonly Parent: any; + Reset(): void; + } + + class MenuBars { + private 'Excel.MenuBars_typekey': MenuBars; + private constructor(); + _Default(Index: any): MenuBar; + Add(Name?: any): MenuBar; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): MenuBar; + readonly Parent: any; + } + + class MenuItem { + private 'Excel.MenuItem_typekey': MenuItem; + private constructor(); + readonly Application: Application; + Caption: string; + Checked: boolean; + readonly Creator: XlCreator; + Delete(): void; + Enabled: boolean; + HelpContextID: number; + HelpFile: string; + readonly Index: number; + OnAction: string; + readonly Parent: any; + StatusBar: string; + } + + class MenuItems { + private 'Excel.MenuItems_typekey': MenuItems; + private constructor(); + _Default(Index: any): any; + Add(Caption: string, OnAction?: any, ShortcutKey?: any, Before?: any, Restore?: any, StatusBar?: any, HelpFile?: any, HelpContextID?: any): MenuItem; + AddMenu(Caption: string, Before?: any, Restore?: any): Menu; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): any; + readonly Parent: any; + } + + class Menus { + private 'Excel.Menus_typekey': Menus; + private constructor(); + _Default(Index: any): Menu; + Add(Caption: string, Before?: any, Restore?: any): Menu; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): Menu; + readonly Parent: any; + } + + class Module { + private 'Excel.Module_typekey': Module; + private constructor(); + __PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any): void; + _CodeName: string; + _PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any): void; + _Protect(Password?: any, DrawingObjects?: any, Contents?: any, Scenarios?: any, UserInterfaceOnly?: any): void; + _SaveAs( + Filename: string, FileFormat?: any, Password?: any, WriteResPassword?: any, ReadOnlyRecommended?: any, CreateBackup?: any, AddToMru?: any, TextCodepage?: any, + TextVisualLayout?: any): void; + Activate(): void; + readonly Application: Application; + readonly CodeName: string; + Copy(Before?: any, After?: any): void; + readonly Creator: XlCreator; + Delete(): void; + readonly Index: number; + InsertFile(Filename: any, Merge?: any): any; + Move(Before?: any, After?: any): void; + Name: string; + readonly Next: any; + OnDoubleClick: string; + OnSheetActivate: string; + OnSheetDeactivate: string; + readonly PageSetup: PageSetup; + readonly Parent: any; + readonly Previous: any; + PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any): void; + Protect(Password?: any, DrawingObjects?: any, Contents?: any, Scenarios?: any, UserInterfaceOnly?: any): void; + readonly ProtectContents: boolean; + readonly ProtectionMode: boolean; + SaveAs( + Filename: string, FileFormat?: any, Password?: any, WriteResPassword?: any, ReadOnlyRecommended?: any, CreateBackup?: any, AddToMru?: any, TextCodepage?: any, + TextVisualLayout?: any): void; + Select(Replace?: any): void; + readonly Shapes: Shapes; + Unprotect(Password?: any): void; + Visible: XlSheetVisibility; + } + + class Modules { + private 'Excel.Modules_typekey': Modules; + private constructor(); + __PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any): void; + _Default(Index: any): any; + _PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any): void; + Add(Before?: any, After?: any, Count?: any): Module; + readonly Application: Application; + Copy(Before?: any, After?: any): void; + readonly Count: number; + readonly Creator: XlCreator; + Delete(): void; + readonly HPageBreaks: HPageBreaks; + Item(Index: any): any; + Move(Before?: any, After?: any): void; + readonly Parent: any; + PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any, IgnorePrintAreas?: any): void; + Select(Replace?: any): void; + Visible: any; + readonly VPageBreaks: VPageBreaks; + } + + class MultiThreadedCalculation { + private 'Excel.MultiThreadedCalculation_typekey': MultiThreadedCalculation; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + Enabled: boolean; + readonly Parent: any; + ThreadCount: number; + ThreadMode: XlThreadMode; + } + + class Name { + private 'Excel.Name_typekey': Name; + private constructor(); + readonly _Default: string; + readonly Application: Application; + Category: string; + CategoryLocal: string; + Comment: string; + readonly Creator: XlCreator; + Delete(): void; + readonly Index: number; + MacroType: XlXLMMacroType; + Name: string; + NameLocal: string; + readonly Parent: any; + RefersTo: any; + RefersToLocal: any; + RefersToR1C1: any; + RefersToR1C1Local: any; + readonly RefersToRange: Range; + ShortcutKey: string; + readonly ValidWorkbookParameter: boolean; + Value: string; + Visible: boolean; + WorkbookParameter: boolean; + } + + class Names { + private 'Excel.Names_typekey': Names; + private constructor(); + _Default(Index?: any, IndexLocal?: any, RefersTo?: any): Name; + Add( + Name?: any, RefersTo?: any, Visible?: any, MacroType?: any, ShortcutKey?: any, Category?: any, NameLocal?: any, RefersToLocal?: any, CategoryLocal?: any, + RefersToR1C1?: any, RefersToR1C1Local?: any): Name; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index?: any, IndexLocal?: any, RefersTo?: any): Name; + readonly Parent: any; + } + + class ODBCConnection { + private 'Excel.ODBCConnection_typekey': ODBCConnection; + private constructor(); + AlwaysUseConnectionFile: boolean; + readonly Application: Application; + BackgroundQuery: boolean; + CancelRefresh(): void; + CommandText: any; + CommandType: XlCmdType; + Connection: any; + readonly Creator: XlCreator; + EnableRefresh: boolean; + readonly Parent: any; + Refresh(): void; + readonly RefreshDate: VarDate; + readonly Refreshing: boolean; + RefreshOnFileOpen: boolean; + RefreshPeriod: number; + RobustConnect: XlRobustConnect; + SaveAsODC(ODCFileName: string, Description?: any, Keywords?: any): void; + SavePassword: boolean; + ServerCredentialsMethod: XlCredentialsMethod; + ServerSSOApplicationID: string; + SourceConnectionFile: string; + SourceData: any; + SourceDataFile: string; + } + + class ODBCError { + private 'Excel.ODBCError_typekey': ODBCError; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + readonly ErrorString: string; + readonly Parent: any; + readonly SqlState: string; + } + + class ODBCErrors { + private 'Excel.ODBCErrors_typekey': ODBCErrors; + private constructor(); + _Default(Index: number): ODBCError; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: number): ODBCError; + readonly Parent: any; + } + + class OLEDBConnection { + private 'Excel.OLEDBConnection_typekey': OLEDBConnection; + private constructor(); + readonly ADOConnection: any; + AlwaysUseConnectionFile: boolean; + readonly Application: Application; + BackgroundQuery: boolean; + readonly CalculatedMembers: CalculatedMembers; + CancelRefresh(): void; + CommandText: any; + CommandType: XlCmdType; + Connection: any; + readonly Creator: XlCreator; + EnableRefresh: boolean; + readonly IsConnected: boolean; + LocalConnection: any; + LocaleID: number; + MaintainConnection: boolean; + MakeConnection(): void; + MaxDrillthroughRecords: number; + readonly OLAP: boolean; + readonly Parent: any; + Reconnect(): void; + Refresh(): void; + readonly RefreshDate: VarDate; + readonly Refreshing: boolean; + RefreshOnFileOpen: boolean; + RefreshPeriod: number; + RetrieveInOfficeUILang: boolean; + RobustConnect: XlRobustConnect; + SaveAsODC(ODCFileName: string, Description?: any, Keywords?: any): void; + SavePassword: boolean; + ServerCredentialsMethod: XlCredentialsMethod; + ServerFillColor: boolean; + ServerFontStyle: boolean; + ServerNumberFormat: boolean; + ServerSSOApplicationID: string; + ServerTextColor: boolean; + SourceConnectionFile: string; + SourceDataFile: string; + UseLocalConnection: boolean; + } + + class OLEDBError { + private 'Excel.OLEDBError_typekey': OLEDBError; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + readonly ErrorString: string; + readonly Native: number; + readonly Number: number; + readonly Parent: any; + readonly SqlState: string; + readonly Stage: number; + } + + class OLEDBErrors { + private 'Excel.OLEDBErrors_typekey': OLEDBErrors; + private constructor(); + _Default(Index: number): OLEDBError; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: number): OLEDBError; + readonly Parent: any; + } + + class OLEFormat { + private 'Excel.OLEFormat_typekey': OLEFormat; + private constructor(); + Activate(): void; + readonly Application: Application; + readonly Creator: XlCreator; + readonly Object: any; + readonly Parent: any; + readonly progID: string; + Verb(Verb?: any): void; + } + + class OLEObject { + private 'Excel.OLEObject_typekey': OLEObject; + private constructor(); + Activate(): any; + AltHTML: string; + readonly Application: Application; + AutoLoad: boolean; + AutoUpdate: boolean; + readonly Border: Border; + readonly BottomRightCell: Range; + BringToFront(): any; + Copy(): any; + + /** + * @param Excel.XlPictureAppearance [Appearance=2] + * @param Excel.XlCopyPictureFormat [Format=-4147] + */ + CopyPicture(Appearance?: XlPictureAppearance, Format?: XlCopyPictureFormat): any; + readonly Creator: XlCreator; + Cut(): any; + Delete(): any; + Duplicate(): any; + Enabled: boolean; + Height: number; + readonly Index: number; + readonly Interior: Interior; + Left: number; + LinkedCell: string; + ListFillRange: string; + Locked: boolean; + Name: string; + readonly Object: any; + readonly OLEType: any; + OnAction: string; + readonly Parent: any; + Placement: any; + PrintObject: boolean; + readonly progID: string; + Select(Replace?: any): any; + SendToBack(): any; + Shadow: boolean; + readonly ShapeRange: ShapeRange; + SourceName: string; + Top: number; + readonly TopLeftCell: Range; + Update(): any; + + /** @param Excel.XlOLEVerb [Verb=1] */ + Verb(Verb?: XlOLEVerb): any; + Visible: boolean; + Width: number; + readonly ZOrder: number; + } + + class Outline { + private 'Excel.Outline_typekey': Outline; + private constructor(); + readonly Application: Application; + AutomaticStyles: boolean; + readonly Creator: XlCreator; + readonly Parent: any; + ShowLevels(RowLevels?: any, ColumnLevels?: any): any; + SummaryColumn: XlSummaryColumn; + SummaryRow: XlSummaryRow; + } + + class Page { + private 'Excel.Page_typekey': Page; + private constructor(); + readonly CenterFooter: HeaderFooter; + readonly CenterHeader: HeaderFooter; + readonly LeftFooter: HeaderFooter; + readonly LeftHeader: HeaderFooter; + readonly RightFooter: HeaderFooter; + readonly RightHeader: HeaderFooter; + } + + class Pages { + private 'Excel.Pages_typekey': Pages; + private constructor(); + _Default(Index: any): Page; + readonly Count: number; + Item(Index: any): Page; + } + + class PageSetup { + private 'Excel.PageSetup_typekey': PageSetup; + private constructor(); + AlignMarginsHeaderFooter: boolean; + readonly Application: Application; + BlackAndWhite: boolean; + BottomMargin: number; + CenterFooter: string; + readonly CenterFooterPicture: Graphic; + CenterHeader: string; + readonly CenterHeaderPicture: Graphic; + CenterHorizontally: boolean; + CenterVertically: boolean; + ChartSize: XlObjectSize; + readonly Creator: XlCreator; + DifferentFirstPageHeaderFooter: boolean; + Draft: boolean; + readonly EvenPage: Page; + readonly FirstPage: Page; + FirstPageNumber: number; + FitToPagesTall: any; + FitToPagesWide: any; + FooterMargin: number; + HeaderMargin: number; + LeftFooter: string; + readonly LeftFooterPicture: Graphic; + LeftHeader: string; + readonly LeftHeaderPicture: Graphic; + LeftMargin: number; + OddAndEvenPagesHeaderFooter: boolean; + Order: XlOrder; + Orientation: XlPageOrientation; + readonly Pages: Pages; + PaperSize: XlPaperSize; + readonly Parent: any; + PrintArea: string; + PrintComments: XlPrintLocation; + PrintErrors: XlPrintErrors; + PrintGridlines: boolean; + PrintHeadings: boolean; + PrintNotes: boolean; + PrintQuality(Index?: any): any; + PrintTitleColumns: string; + PrintTitleRows: string; + RightFooter: string; + readonly RightFooterPicture: Graphic; + RightHeader: string; + readonly RightHeaderPicture: Graphic; + RightMargin: number; + ScaleWithDocHeaderFooter: boolean; + TopMargin: number; + Zoom: any; + } + + class Pane { + private 'Excel.Pane_typekey': Pane; + private constructor(); + Activate(): boolean; + readonly Application: Application; + readonly Creator: XlCreator; + readonly Index: number; + LargeScroll(Down?: any, Up?: any, ToRight?: any, ToLeft?: any): any; + readonly Parent: any; + PointsToScreenPixelsX(Points: number): number; + PointsToScreenPixelsY(Points: number): number; + ScrollColumn: number; + ScrollIntoView(Left: number, Top: number, Width: number, Height: number, Start?: any): void; + ScrollRow: number; + SmallScroll(Down?: any, Up?: any, ToRight?: any, ToLeft?: any): any; + readonly VisibleRange: Range; + } + + class Panes { + private 'Excel.Panes_typekey': Panes; + private constructor(); + _Default(Index: number): Pane; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: number): Pane; + readonly Parent: any; + } + + class Parameter { + private 'Excel.Parameter_typekey': Parameter; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + DataType: XlParameterDataType; + Name: string; + readonly Parent: any; + readonly PromptString: string; + RefreshOnChange: boolean; + SetParam(Type: XlParameterType, Value: any): void; + readonly SourceRange: Range; + readonly Type: XlParameterType; + readonly Value: any; + } + + class Parameters { + private 'Excel.Parameters_typekey': Parameters; + private constructor(); + _Default(Index: any): Parameter; + Add(Name: string, iDataType?: any): Parameter; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Delete(): void; + Item(Index: any): Parameter; + readonly Parent: any; + } + + class Phonetic { + private 'Excel.Phonetic_typekey': Phonetic; + private constructor(); + Alignment: number; + readonly Application: Application; + CharacterType: number; + readonly Creator: XlCreator; + readonly Font: Font; + readonly Parent: any; + Text: string; + Visible: boolean; + } + + class Phonetics { + private 'Excel.Phonetics_typekey': Phonetics; + private constructor(); + _Default(Index: number): any; + Add(Start: number, Length: number, Text: string): void; + Alignment: number; + readonly Application: Application; + CharacterType: number; + readonly Count: number; + readonly Creator: XlCreator; + Delete(): void; + readonly Font: Font; + Item(Index: number): any; + readonly Length: number; + readonly Parent: any; + readonly Start: number; + Text: string; + Visible: boolean; + } + + class PictureFormat { + private 'Excel.PictureFormat_typekey': PictureFormat; + private constructor(); + readonly Application: any; + Brightness: number; + ColorType: Office.MsoPictureColorType; + Contrast: number; + readonly Creator: number; + readonly Crop: Office.Crop; + CropBottom: number; + CropLeft: number; + CropRight: number; + CropTop: number; + IncrementBrightness(Increment: number): void; + IncrementContrast(Increment: number): void; + readonly Parent: any; + TransparencyColor: Office.MsoRGBType; + TransparentBackground: Office.MsoTriState; + } + + class PivotAxis { + private 'Excel.PivotAxis_typekey': PivotAxis; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + readonly Parent: any; + readonly PivotLines: PivotLines; + } + + class PivotCache { + private 'Excel.PivotCache_typekey': PivotCache; + private constructor(); + readonly ADOConnection: any; + readonly Application: Application; + BackgroundQuery: boolean; + CommandText: any; + CommandType: XlCmdType; + Connection: any; + CreatePivotTable(TableDestination: any, TableName?: any, ReadData?: any, DefaultVersion?: any): PivotTable; + readonly Creator: XlCreator; + EnableRefresh: boolean; + readonly Index: number; + readonly IsConnected: boolean; + LocalConnection: any; + MaintainConnection: boolean; + MakeConnection(): void; + readonly MemoryUsed: number; + MissingItemsLimit: XlPivotTableMissingItems; + readonly OLAP: boolean; + OptimizeCache: boolean; + readonly Parent: any; + readonly QueryType: XlQueryType; + readonly RecordCount: number; + Recordset: any; + Refresh(): void; + readonly RefreshDate: VarDate; + readonly RefreshName: string; + RefreshOnFileOpen: boolean; + RefreshPeriod: number; + ResetTimer(): void; + RobustConnect: XlRobustConnect; + SaveAsODC(ODCFileName: string, Description?: any, Keywords?: any): void; + SavePassword: boolean; + SourceConnectionFile: string; + SourceData: any; + readonly SourceDataFile: string; + readonly SourceType: XlPivotTableSourceType; + Sql: any; + UpgradeOnRefresh: boolean; + UseLocalConnection: boolean; + readonly Version: XlPivotTableVersionList; + readonly WorkbookConnection: WorkbookConnection; + } + + class PivotCaches { + private 'Excel.PivotCaches_typekey': PivotCaches; + private constructor(); + _Default(Index: any): PivotCache; + Add(SourceType: XlPivotTableSourceType, SourceData?: any): PivotCache; + readonly Application: Application; + readonly Count: number; + Create(SourceType: XlPivotTableSourceType, SourceData?: any, Version?: any): PivotCache; + readonly Creator: XlCreator; + Item(Index: any): PivotCache; + readonly Parent: any; + } + + class PivotCell { + private 'Excel.PivotCell_typekey': PivotCell; + private constructor(); + AllocateChange(): void; + readonly Application: Application; + readonly CellChanged: XlCellChangedState; + readonly ColumnItems: PivotItemList; + readonly Creator: XlCreator; + readonly CustomSubtotalFunction: XlConsolidationFunction; + readonly DataField: PivotField; + readonly DataSourceValue: any; + DiscardChange(): void; + readonly Dummy18: string; + readonly MDX: string; + readonly Parent: any; + readonly PivotCellType: XlPivotCellType; + readonly PivotColumnLine: PivotLine; + readonly PivotField: PivotField; + readonly PivotItem: PivotItem; + readonly PivotRowLine: PivotLine; + readonly PivotTable: PivotTable; + readonly Range: Range; + readonly RowItems: PivotItemList; + } + + class PivotField { + private 'Excel.PivotField_typekey': PivotField; + private constructor(); + _AutoSort(Order: number, Field: string): void; + _Default: string; + AddPageItem(Item: string, ClearList?: any): void; + readonly AllItemsVisible: boolean; + readonly Application: Application; + AutoShow(Type: number, Range: number, Count: number, Field: string): void; + readonly AutoShowCount: number; + readonly AutoShowField: string; + readonly AutoShowRange: number; + readonly AutoShowType: number; + AutoSort(Order: number, Field: string, PivotLine?: any, CustomSubtotal?: any): void; + readonly AutoSortCustomSubtotal: number; + readonly AutoSortField: string; + readonly AutoSortOrder: number; + readonly AutoSortPivotLine: PivotLine; + BaseField: any; + BaseItem: any; + CalculatedItems(): CalculatedItems; + Calculation: XlPivotFieldCalculation; + Caption: string; + readonly ChildField: PivotField; + ChildItems(Index?: any): any; + ClearAllFilters(): void; + ClearLabelFilters(): void; + ClearManualFilter(): void; + ClearValueFilters(): void; + readonly Creator: XlCreator; + readonly CubeField: CubeField; + CurrentPage: any; + CurrentPageList: any; + CurrentPageName: string; + DatabaseSort: boolean; + readonly DataRange: Range; + readonly DataType: XlPivotFieldDataType; + Delete(): void; + readonly DisplayAsCaption: boolean; + DisplayAsTooltip: boolean; + DisplayInReport: boolean; + DragToColumn: boolean; + DragToData: boolean; + DragToHide: boolean; + DragToPage: boolean; + DragToRow: boolean; + DrilledDown: boolean; + DrillTo(Field: string): void; + EnableItemSelection: boolean; + EnableMultiplePageItems: boolean; + Formula: string; + Function: XlConsolidationFunction; + readonly GroupLevel: any; + Hidden: boolean; + HiddenItems(Index?: any): any; + HiddenItemsList: any; + IncludeNewItemsInFilter: boolean; + readonly IsCalculated: boolean; + readonly IsMemberProperty: boolean; + readonly LabelRange: Range; + LayoutBlankLine: boolean; + LayoutCompactRow: boolean; + LayoutForm: XlLayoutFormType; + LayoutPageBreak: boolean; + LayoutSubtotalLocation: XlSubtototalLocationType; + MemberPropertyCaption: string; + readonly MemoryUsed: number; + Name: string; + NumberFormat: string; + Orientation: XlPivotFieldOrientation; + readonly Parent: any; + readonly ParentField: PivotField; + ParentItems(Index?: any): any; + readonly PivotFilters: PivotFilters; + PivotItems(Index?: any): any; + Position: any; + PropertyOrder: number; + readonly PropertyParentField: PivotField; + RepeatLabels: boolean; + ServerBased: boolean; + ShowAllItems: boolean; + ShowDetail: boolean; + readonly ShowingInAxis: boolean; + readonly SourceCaption: string; + readonly SourceName: string; + StandardFormula: string; + SubtotalName: string; + Subtotals(Index?: any): any; + readonly TotalLevels: any; + UseMemberPropertyAsCaption: boolean; + Value: string; + VisibleItems(Index?: any): any; + VisibleItemsList: any; + } + + class PivotFields { + private 'Excel.PivotFields_typekey': PivotFields; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): any; + readonly Parent: PivotTable; + } + + class PivotFilter { + private 'Excel.PivotFilter_typekey': PivotFilter; + private constructor(); + readonly Active: boolean; + readonly Application: Application; + readonly Creator: XlCreator; + readonly DataCubeField: CubeField; + readonly DataField: PivotField; + Delete(): void; + readonly Description: string; + readonly FilterType: XlPivotFilterType; + readonly IsMemberPropertyFilter: boolean; + readonly MemberPropertyField: PivotField; + readonly Name: string; + Order: number; + readonly Parent: any; + readonly PivotField: PivotField; + readonly Value1: any; + readonly Value2: any; + } + + class PivotFilters { + private 'Excel.PivotFilters_typekey': PivotFilters; + private constructor(); + _Default(Index: any): PivotFilter; + Add(Type: XlPivotFilterType, DataField?: any, Value1?: any, Value2?: any, Order?: any, Name?: any, Description?: any, MemberPropertyField?: any): PivotFilter; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): PivotFilter; + readonly Parent: any; + } + + class PivotFormula { + private 'Excel.PivotFormula_typekey': PivotFormula; + private constructor(); + _Default: string; + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): void; + Formula: string; + Index: number; + readonly Parent: any; + StandardFormula: string; + Value: string; + } + + class PivotFormulas { + private 'Excel.PivotFormulas_typekey': PivotFormulas; + private constructor(); + _Add(Formula: string): PivotFormula; + _Default(Index: any): PivotFormula; + Add(Formula: string, UseStandardFormula?: any): PivotFormula; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): PivotFormula; + readonly Parent: any; + } + + class PivotItem { + private 'Excel.PivotItem_typekey': PivotItem; + private constructor(); + _Default: string; + readonly Application: Application; + Caption: string; + ChildItems(Index?: any): any; + readonly Creator: XlCreator; + readonly DataRange: Range; + Delete(): void; + DrilledDown: boolean; + DrillTo(Field: string): void; + Formula: string; + readonly IsCalculated: boolean; + readonly LabelRange: Range; + Name: string; + readonly Parent: PivotField; + readonly ParentItem: PivotItem; + readonly ParentShowDetail: boolean; + Position: number; + readonly RecordCount: number; + ShowDetail: boolean; + readonly SourceName: any; + readonly SourceNameStandard: string; + StandardFormula: string; + Value: string; + Visible: boolean; + } + + class PivotItemList { + private 'Excel.PivotItemList_typekey': PivotItemList; + private constructor(); + _Default(Field: any): PivotItem; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): PivotItem; + readonly Parent: any; + } + + class PivotLayout { + private 'Excel.PivotLayout_typekey': PivotLayout; + private constructor(); + AddFields(RowFields?: any, ColumnFields?: any, PageFields?: any, AppendField?: any): void; + readonly Application: Application; + ColumnFields(Index?: any): any; + readonly Creator: XlCreator; + readonly CubeFields: CubeFields; + DataFields(Index?: any): any; + HiddenFields(Index?: any): any; + InnerDetail: string; + PageFields(Index?: any): any; + readonly Parent: any; + readonly PivotCache: PivotCache; + PivotFields(Index?: any): any; + readonly PivotTable: PivotTable; + RowFields(Index?: any): any; + VisibleFields(Index?: any): any; + } + + class PivotLine { + private 'Excel.PivotLine_typekey': PivotLine; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + readonly LineType: XlPivotLineType; + readonly Parent: any; + readonly PivotLineCells: PivotLineCells; + readonly Position: number; + } + + class PivotLineCells { + private 'Excel.PivotLineCells_typekey': PivotLineCells; + private constructor(); + _Default(Index: any): PivotCell; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): PivotCell; + readonly Parent: any; + } + + class PivotLines { + private 'Excel.PivotLines_typekey': PivotLines; + private constructor(); + _Default(Index: any): PivotLine; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): PivotLine; + readonly Parent: any; + } + + class PivotTable { + private 'Excel.PivotTable_typekey': PivotTable; + private constructor(); + _Default: string; + + /** @param Excel.XlPTSelectionMode [Mode=0] */ + _PivotSelect(Name: string, Mode?: XlPTSelectionMode): void; + readonly ActiveFilters: PivotFilters; + AddDataField(Field: any, Caption?: any, Function?: any): PivotField; + AddFields(RowFields?: any, ColumnFields?: any, PageFields?: any, AddToTable?: any): any; + AllocateChanges(): void; + Allocation: XlAllocation; + AllocationMethod: XlAllocationMethod; + AllocationValue: XlAllocationValue; + AllocationWeightExpression: string; + AllowMultipleFilters: boolean; + AlternativeText: string; + readonly Application: Application; + CacheIndex: number; + CalculatedFields(): CalculatedFields; + readonly CalculatedMembers: CalculatedMembers; + CalculatedMembersInFilters: boolean; + ChangeConnection(conn: WorkbookConnection): void; + readonly ChangeList: PivotTableChangeList; + ChangePivotCache(PivotCache: any): void; + ClearAllFilters(): void; + ClearTable(): void; + ColumnFields(Index?: any): any; + ColumnGrand: boolean; + readonly ColumnRange: Range; + CommitChanges(): void; + CompactLayoutColumnHeader: string; + CompactLayoutRowHeader: string; + CompactRowIndent: number; + ConvertToFormulas(ConvertFilters: boolean): void; + CreateCubeFile(File: string, Measures?: any, Levels?: any, Members?: any, Properties?: any): string; + readonly Creator: XlCreator; + readonly CubeFields: CubeFields; + readonly DataBodyRange: Range; + DataFields(Index?: any): any; + readonly DataLabelRange: Range; + readonly DataPivotField: PivotField; + DiscardChanges(): void; + DisplayContextTooltips: boolean; + DisplayEmptyColumn: boolean; + DisplayEmptyRow: boolean; + DisplayErrorString: boolean; + DisplayFieldCaptions: boolean; + DisplayImmediateItems: boolean; + DisplayMemberPropertyTooltips: boolean; + DisplayNullString: boolean; + Dummy15( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): any; + EnableDataValueEditing: boolean; + EnableDrilldown: boolean; + EnableFieldDialog: boolean; + EnableFieldList: boolean; + EnableWizard: boolean; + EnableWriteback: boolean; + ErrorString: string; + FieldListSortAscending: boolean; + Format(Format: XlPivotFormatType): void; + GetData(Name: string): number; + GetPivotData( + DataField?: any, Field1?: any, Item1?: any, Field2?: any, Item2?: any, Field3?: any, Item3?: any, Field4?: any, Item4?: any, Field5?: any, Item5?: any, + Field6?: any, Item6?: any, Field7?: any, Item7?: any, Field8?: any, Item8?: any, Field9?: any, Item9?: any, Field10?: any, Item10?: any, Field11?: any, + Item11?: any, Field12?: any, Item12?: any, Field13?: any, Item13?: any, Field14?: any, Item14?: any): Range; + GrandTotalName: string; + HasAutoFormat: boolean; + HiddenFields(Index?: any): any; + InGridDropZones: boolean; + InnerDetail: string; + LayoutRowDefault: XlLayoutRowType; + ListFormulas(): void; + Location: string; + ManualUpdate: boolean; + readonly MDX: string; + MergeLabels: boolean; + Name: string; + NullString: string; + PageFieldOrder: number; + PageFields(Index?: any): any; + PageFieldStyle: string; + PageFieldWrapCount: number; + readonly PageRange: Range; + readonly PageRangeCells: Range; + readonly Parent: any; + PivotCache(): PivotCache; + readonly PivotColumnAxis: PivotAxis; + PivotFields(Index?: any): any; + readonly PivotFormulas: PivotFormulas; + readonly PivotRowAxis: PivotAxis; + + /** @param Excel.XlPTSelectionMode [Mode=0] */ + PivotSelect(Name: string, Mode?: XlPTSelectionMode, UseStandardName?: any): void; + PivotSelection: string; + PivotSelectionStandard: string; + PivotTableWizard( + SourceType?: any, SourceData?: any, TableDestination?: any, TableName?: any, RowGrand?: any, ColumnGrand?: any, SaveData?: any, HasAutoFormat?: any, + AutoPage?: any, Reserved?: any, BackgroundQuery?: any, OptimizeCache?: any, PageFieldOrder?: any, PageFieldWrapCount?: any, ReadData?: any, Connection?: any): void; + PreserveFormatting: boolean; + PrintDrillIndicators: boolean; + PrintTitles: boolean; + RefreshDataSourceValues(): void; + readonly RefreshDate: VarDate; + readonly RefreshName: string; + RefreshTable(): boolean; + RepeatAllLabels(Repeat: XlPivotFieldRepeatLabels): void; + RepeatItemsOnEachPrintedPage: boolean; + RowAxisLayout(RowLayout: XlLayoutRowType): void; + RowFields(Index?: any): any; + RowGrand: boolean; + readonly RowRange: Range; + SaveData: boolean; + SelectionMode: XlPTSelectionMode; + ShowCellBackgroundFromOLAP: boolean; + ShowDrillIndicators: boolean; + ShowPageMultipleItemLabel: boolean; + ShowPages(PageField?: any): any; + ShowTableStyleColumnHeaders: boolean; + ShowTableStyleColumnStripes: boolean; + ShowTableStyleLastColumn: boolean; + ShowTableStyleRowHeaders: boolean; + ShowTableStyleRowStripes: boolean; + ShowValuesRow: boolean; + readonly Slicers: Slicers; + SmallGrid: boolean; + SortUsingCustomLists: boolean; + SourceData: any; + SubtotalHiddenPageItems: boolean; + SubtotalLocation(Location: XlSubtototalLocationType): void; + Summary: string; + readonly TableRange1: Range; + readonly TableRange2: Range; + TableStyle: string; + TableStyle2: any; + Tag: string; + TotalsAnnotation: boolean; + Update(): void; + VacatedStyle: string; + Value: string; + readonly Version: XlPivotTableVersionList; + ViewCalculatedMembers: boolean; + VisibleFields(Index?: any): any; + VisualTotals: boolean; + VisualTotalsForSets: boolean; + } + + class PivotTableChangeList { + private 'Excel.PivotTableChangeList_typekey': PivotTableChangeList; + private constructor(); + _Default(Index: any): ValueChange; + Add(Tuple: string, Value: number, AllocationValue?: any, AllocationMethod?: any, AllocationWeightExpression?: any): ValueChange; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): ValueChange; + readonly Parent: any; + } + + class PlotArea { + private 'Excel.PlotArea_typekey': PlotArea; + private constructor(); + readonly _InsideHeight: number; + readonly _InsideLeft: number; + readonly _InsideTop: number; + readonly _InsideWidth: number; + readonly Application: Application; + readonly Border: Border; + ClearFormats(): any; + readonly Creator: XlCreator; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + Height: number; + InsideHeight: number; + InsideLeft: number; + InsideTop: number; + InsideWidth: number; + readonly Interior: Interior; + Left: number; + readonly Name: string; + readonly Parent: any; + Position: XlChartElementPosition; + Select(): any; + Top: number; + Width: number; + } + + class ProtectedViewWindow { + private 'Excel.ProtectedViewWindow_typekey': ProtectedViewWindow; + private constructor(); + readonly _Default: string; + Activate(): void; + Caption: string; + Close(): boolean; + Edit(WriteResPassword?: any, UpdateLinks?: any): Workbook; + EnableResize: boolean; + Height: number; + Left: number; + readonly SourceName: string; + readonly SourcePath: string; + Top: number; + Visible: boolean; + Width: number; + WindowState: XlProtectedViewWindowState; + readonly Workbook: Workbook; + } + + class ProtectedViewWindows { + private 'Excel.ProtectedViewWindows_typekey': ProtectedViewWindows; + private constructor(); + _Default(Index: any): ProtectedViewWindow; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): ProtectedViewWindow; + Open(Filename: string, Password?: any, AddToMru?: any, RepairMode?: any): ProtectedViewWindow; + readonly Parent: any; + } + + class Protection { + private 'Excel.Protection_typekey': Protection; + private constructor(); + readonly AllowDeletingColumns: boolean; + readonly AllowDeletingRows: boolean; + readonly AllowEditRanges: AllowEditRanges; + readonly AllowFiltering: boolean; + readonly AllowFormattingCells: boolean; + readonly AllowFormattingColumns: boolean; + readonly AllowFormattingRows: boolean; + readonly AllowInsertingColumns: boolean; + readonly AllowInsertingHyperlinks: boolean; + readonly AllowInsertingRows: boolean; + readonly AllowSorting: boolean; + readonly AllowUsingPivotTables: boolean; + } + + class PublishObject { + private 'Excel.PublishObject_typekey': PublishObject; + private constructor(); + readonly Application: Application; + AutoRepublish: boolean; + readonly Creator: XlCreator; + Delete(): void; + readonly DivID: string; + Filename: string; + HtmlType: XlHtmlType; + readonly Parent: any; + Publish(Create?: any): void; + readonly Sheet: string; + readonly Source: string; + readonly SourceType: XlSourceType; + Title: string; + } + + class PublishObjects { + private 'Excel.PublishObjects_typekey': PublishObjects; + private constructor(); + _Default(Index: any): PublishObject; + Add(SourceType: XlSourceType, Filename: string, Sheet?: any, Source?: any, HtmlType?: any, DivID?: any, Title?: any): PublishObject; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Delete(): void; + Item(Index: any): PublishObject; + readonly Parent: any; + Publish(): void; + } + + class QueryTable { + private 'Excel.QueryTable_typekey': QueryTable; + private constructor(); + AdjustColumnWidth: boolean; + readonly Application: Application; + BackgroundQuery: boolean; + CancelRefresh(): void; + CommandText: any; + CommandType: XlCmdType; + Connection: any; + readonly Creator: XlCreator; + Delete(): void; + readonly Destination: Range; + EditWebPage: any; + EnableEditing: boolean; + EnableRefresh: boolean; + readonly FetchedRowOverflow: boolean; + FieldNames: boolean; + FillAdjacentFormulas: boolean; + HasAutoFormat: boolean; + readonly ListObject: ListObject; + MaintainConnection: boolean; + Name: string; + readonly Parameters: Parameters; + readonly Parent: any; + PostText: string; + PreserveColumnInfo: boolean; + PreserveFormatting: boolean; + readonly QueryType: XlQueryType; + Recordset: any; + Refresh(BackgroundQuery?: any): boolean; + readonly Refreshing: boolean; + RefreshOnFileOpen: boolean; + RefreshPeriod: number; + RefreshStyle: XlCellInsertionMode; + ResetTimer(): void; + readonly ResultRange: Range; + RobustConnect: XlRobustConnect; + RowNumbers: boolean; + SaveAsODC(ODCFileName: string, Description?: any, Keywords?: any): void; + SaveData: boolean; + SavePassword: boolean; + readonly Sort: Sort; + SourceConnectionFile: string; + SourceDataFile: string; + Sql: any; + TablesOnlyFromHTML: boolean; + TextFileColumnDataTypes: any; + TextFileCommaDelimiter: boolean; + TextFileConsecutiveDelimiter: boolean; + TextFileDecimalSeparator: string; + TextFileFixedColumnWidths: any; + TextFileOtherDelimiter: string; + TextFileParseType: XlTextParsingType; + TextFilePlatform: number; + TextFilePromptOnRefresh: boolean; + TextFileSemicolonDelimiter: boolean; + TextFileSpaceDelimiter: boolean; + TextFileStartRow: number; + TextFileTabDelimiter: boolean; + TextFileTextQualifier: XlTextQualifier; + TextFileThousandsSeparator: string; + TextFileTrailingMinusNumbers: boolean; + TextFileVisualLayout: XlTextVisualLayoutType; + WebConsecutiveDelimitersAsOne: boolean; + WebDisableDateRecognition: boolean; + WebDisableRedirections: boolean; + WebFormatting: XlWebFormatting; + WebPreFormattedTextToColumns: boolean; + WebSelectionType: XlWebSelectionType; + WebSingleBlockTextImport: boolean; + WebTables: string; + readonly WorkbookConnection: WorkbookConnection; + } + + class QueryTables { + private 'Excel.QueryTables_typekey': QueryTables; + private constructor(); + _Default(Index: any): QueryTable; + Add(Connection: any, Destination: Range, Sql?: any): QueryTable; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): QueryTable; + readonly Parent: any; + } + + class Range { + private 'Excel.Range_typekey': Range; + private constructor(); + __PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any): any; + + /** + * @param Excel.XlBorderWeight [Weight=2] + * @param Excel.XlColorIndex [ColorIndex=-4105] + */ + _BorderAround(LineStyle: any, Weight?: XlBorderWeight, ColorIndex?: XlColorIndex, Color?: any): any; + _Default(RowIndex?: any, ColumnIndex?: any): any; + + /** + * @param Excel.XlPasteType [Paste=-4104] + * @param Excel.XlPasteSpecialOperation [Operation=-4142] + */ + _PasteSpecial(Paste?: XlPasteType, Operation?: XlPasteSpecialOperation, SkipBlanks?: any, Transpose?: any): any; + _PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any): any; + Activate(): any; + AddComment(Text?: any): Comment; + AddIndent: any; + + /** @param Excel.XlReferenceStyle [ReferenceStyle=1] */ + Address(RowAbsolute?: boolean, ColumnAbsolute?: boolean, ReferenceStyle?: XlReferenceStyle, External?: boolean, RelativeTo?: Range): string; + + /** @param Excel.XlReferenceStyle [ReferenceStyle=1] */ + AddressLocal(RowAbsolute: any, ColumnAbsolute: any, ReferenceStyle?: XlReferenceStyle, External?: any, RelativeTo?: any): string; + AdvancedFilter(Action: XlFilterAction.xlFilterCopy, CriteriaRange?: Range, CopyToRange?: Range, Unique?: boolean): any; + AdvancedFilter(Action: XlFilterAction, CriteriaRange?: Range, CopyToRange?: undefined, Unique?: boolean): any; + AllocateChanges(): void; + readonly AllowEdit: boolean; + readonly Application: Application; + + /** @param Excel.XlApplyNamesOrder [Order=1] */ + ApplyNames(Names: any, IgnoreRelativeAbsolute: any, UseRowColumnNames: any, OmitColumn: any, OmitRow: any, Order?: XlApplyNamesOrder, AppendLast?: any): any; + ApplyOutlineStyles(): any; + readonly Areas: Areas; + AutoComplete(String: string): string; + + /** @param Excel.XlAutoFillType [Type=0] */ + AutoFill(Destination: Range, Type?: XlAutoFillType): any; + + /** @param Excel.XlAutoFilterOperator [Operator=1] */ + AutoFilter(Field: any, Criteria1: any, Operator?: XlAutoFilterOperator, Criteria2?: any, VisibleDropDown?: any): any; + AutoFit(): any; + + /** @param Excel.XlRangeAutoFormat [Format=1] */ + AutoFormat(Format?: XlRangeAutoFormat, Number?: any, Font?: any, Alignment?: any, Border?: any, Pattern?: any, Width?: any): any; + AutoOutline(): any; + + /** + * @param Excel.XlBorderWeight [Weight=2] + * @param Excel.XlColorIndex [ColorIndex=-4105] + */ + BorderAround(LineStyle: any, Weight?: XlBorderWeight, ColorIndex?: XlColorIndex, Color?: any, ThemeColor?: any): any; + readonly Borders: Borders; + Calculate(): any; + CalculateRowMajorOrder(): any; + readonly Cells: Range; + Characters(Start?: any, Length?: any): Characters; + CheckSpelling(CustomDictionary?: any, IgnoreUppercase?: any, AlwaysSuggest?: any, SpellLang?: any): any; + Clear(): any; + ClearComments(): void; + ClearContents(): any; + ClearFormats(): any; + ClearHyperlinks(): void; + ClearNotes(): any; + ClearOutline(): any; + readonly Column: number; + ColumnDifferences(Comparison: any): Range; + readonly Columns: Range; + ColumnWidth: any; + readonly Comment: Comment; + Consolidate(Sources?: any, Function?: any, TopRow?: any, LeftColumn?: any, CreateLinks?: any): any; + Copy(Destination?: any): any; + CopyFromRecordset(Data: any, MaxRows?: any, MaxColumns?: any): number; + + /** + * @param Excel.XlPictureAppearance [Appearance=1] + * @param Excel.XlCopyPictureFormat [Format=-4147] + */ + CopyPicture(Appearance?: XlPictureAppearance, Format?: XlCopyPictureFormat): any; + readonly Count: number; + readonly CountLarge: any; + CreateNames(Top?: any, Left?: any, Bottom?: any, Right?: any): any; + + /** @param Excel.XlPictureAppearance [Appearance=1] */ + CreatePublisher(Edition: any, Appearance?: XlPictureAppearance, ContainsPICT?: any, ContainsBIFF?: any, ContainsRTF?: any, ContainsVALU?: any): any; + readonly Creator: XlCreator; + readonly CurrentArray: Range; + readonly CurrentRegion: Range; + Cut(Destination?: any): any; + + /** + * @param Excel.XlDataSeriesType [Type=-4132] + * @param Excel.XlDataSeriesDate [Date=1] + */ + DataSeries(Rowcol: any, Type?: XlDataSeriesType, Date?: XlDataSeriesDate, Step?: any, Stop?: any, Trend?: any): any; + Delete(Shift?: any): any; + readonly Dependents: Range; + DialogBox(): any; + readonly DirectDependents: Range; + readonly DirectPrecedents: Range; + Dirty(): void; + DiscardChanges(): void; + readonly DisplayFormat: DisplayFormat; + + /** + * @param Excel.XlPictureAppearance [Appearance=1] + * @param Excel.XlPictureAppearance [ChartSize=1] + */ + EditionOptions(Type: XlEditionType, Option: XlEditionOptionsOption, Name: any, Reference: any, Appearance?: XlPictureAppearance, ChartSize?: XlPictureAppearance, Format?: any): any; + End(Direction: XlDirection): Range; + readonly EntireColumn: Range; + readonly EntireRow: Range; + readonly Errors: Errors; + ExportAsFixedFormat( + Type: XlFixedFormatType, Filename?: any, Quality?: any, IncludeDocProperties?: any, IgnorePrintAreas?: any, From?: any, To?: any, OpenAfterPublish?: any, + FixedFormatExtClassPtr?: any): void; + FillDown(): any; + FillLeft(): any; + FillRight(): any; + FillUp(): any; + + /** @param Excel.XlSearchDirection [SearchDirection=1] */ + Find(What: any, After?: any, LookIn?: XlFindLookIn, LookAt?: XlLookAt, SearchOrder?: XlSearchOrder, SearchDirection?: XlSearchDirection, MatchCase?: boolean, + MatchByte?: boolean, SearchFormat?: any): Range; + FindNext(After?: any): Range; + FindPrevious(After?: any): Range; + readonly Font: Font; + readonly FormatConditions: FormatConditions; + Formula: any; + FormulaArray: any; + FormulaHidden: any; + FormulaLabel: XlFormulaLabel; + FormulaLocal: any; + FormulaR1C1: any; + FormulaR1C1Local: any; + FunctionWizard(): any; + GoalSeek(Goal: any, ChangingCell: Range): boolean; + Group(Start?: any, End?: any, By?: any, Periods?: any): any; + readonly HasArray: any; + readonly HasFormula: any; + readonly Height: any; + Hidden: any; + HorizontalAlignment: any; + readonly Hyperlinks: Hyperlinks; + ID: string; + IndentLevel: any; + Insert(Shift?: any, CopyOrigin?: any): any; + InsertIndent(InsertAmount: number): void; + readonly Interior: Interior; + Item(RowIndex: number, ColumnIndex?: number): Range; + Item(Address: string): Range; + Justify(): any; + readonly Left: any; + readonly ListHeaderRows: number; + ListNames(): any; + readonly ListObject: ListObject; + readonly LocationInTable: XlLocationInTable; + Locked: any; + readonly MDX: string; + Merge(Across?: any): void; + readonly MergeArea: Range; + MergeCells: any; + Name: any; + NavigateArrow(TowardPrecedent?: any, ArrowNumber?: any, LinkNumber?: any): any; + readonly Next: Range; + NoteText(Text?: any, Start?: any, Length?: any): string; + NumberFormat: any; + NumberFormatLocal: any; + Offset(RowOffset?: number, ColumnOffset?: number): Range; + Orientation: any; + OutlineLevel: any; + PageBreak: number; + readonly Parent: any; + Parse(ParseLine?: any, Destination?: any): any; + + /** + * @param Excel.XlPasteType [Paste=-4104] + * @param Excel.XlPasteSpecialOperation [Operation=-4142] + */ + PasteSpecial(Paste?: XlPasteType, Operation?: XlPasteSpecialOperation, SkipBlanks?: any, Transpose?: any): any; + readonly Phonetic: Phonetic; + readonly Phonetics: Phonetics; + readonly PivotCell: PivotCell; + readonly PivotField: PivotField; + readonly PivotItem: PivotItem; + readonly PivotTable: PivotTable; + readonly Precedents: Range; + readonly PrefixCharacter: any; + readonly Previous: Range; + PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any): any; + PrintPreview(EnableChanges?: any): any; + readonly QueryTable: QueryTable; + Range(Cell1: any, Cell2?: any): Range; + ReadingOrder: number; + + /** @param Excel.XlYesNoGuess [Header=2] */ + RemoveDuplicates(Columns: any, Header?: XlYesNoGuess): void; + RemoveSubtotal(): any; + Replace(What: any, Replacement: any, LookAt?: any, SearchOrder?: any, MatchCase?: any, MatchByte?: any, SearchFormat?: any, ReplaceFormat?: any): boolean; + Resize(RowSize?: any, ColumnSize?: any): Range; + readonly Row: number; + RowDifferences(Comparison: any): Range; + RowHeight: any; + readonly Rows: Range; + Run( + Arg1?: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): any; + Select(): any; + readonly ServerActions: Actions; + SetPhonetic(): void; + Show(): any; + ShowDependents(Remove?: any): any; + ShowDetail: any; + ShowErrors(): any; + ShowPrecedents(Remove?: any): any; + ShrinkToFit: any; + readonly SmartTags: SmartTags; + + /** + * @param Excel.XlSortOrder [Order1=1] + * @param Excel.XlSortOrder [Order2=1] + * @param Excel.XlSortOrder [Order3=1] + * @param Excel.XlYesNoGuess [Header=2] + * @param Excel.XlSortOrientation [Orientation=2] + * @param Excel.XlSortMethod [SortMethod=1] + * @param Excel.XlSortDataOption [DataOption1=0] + * @param Excel.XlSortDataOption [DataOption2=0] + * @param Excel.XlSortDataOption [DataOption3=0] + */ + Sort( + Key1: any, Order1?: XlSortOrder, Key2?: any, Type?: any, Order2?: XlSortOrder, Key3?: any, Order3?: XlSortOrder, Header?: XlYesNoGuess, OrderCustom?: any, + MatchCase?: any, Orientation?: XlSortOrientation, SortMethod?: XlSortMethod, DataOption1?: XlSortDataOption, DataOption2?: XlSortDataOption, DataOption3?: XlSortDataOption): any; + + /** + * @param Excel.XlSortMethod [SortMethod=1] + * @param Excel.XlSortOrder [Order1=1] + * @param Excel.XlSortOrder [Order2=1] + * @param Excel.XlSortOrder [Order3=1] + * @param Excel.XlYesNoGuess [Header=2] + * @param Excel.XlSortOrientation [Orientation=2] + * @param Excel.XlSortDataOption [DataOption1=0] + * @param Excel.XlSortDataOption [DataOption2=0] + * @param Excel.XlSortDataOption [DataOption3=0] + */ + SortSpecial( + SortMethod?: XlSortMethod, Key1?: any, Order1?: XlSortOrder, Type?: any, Key2?: any, Order2?: XlSortOrder, Key3?: any, Order3?: XlSortOrder, + Header?: XlYesNoGuess, OrderCustom?: any, MatchCase?: any, Orientation?: XlSortOrientation, DataOption1?: XlSortDataOption, DataOption2?: XlSortDataOption, + DataOption3?: XlSortDataOption): any; + readonly SoundNote: SoundNote; + readonly SparklineGroups: SparklineGroups; + Speak(SpeakDirection?: any, SpeakFormulas?: any): void; + SpecialCells(Type: XlCellType, Value?: any): Range; + Style: any; + + /** @param Excel.XlSubscribeToFormat [Format=-4158] */ + SubscribeTo(Edition: string, Format?: XlSubscribeToFormat): any; + + /** @param Excel.XlSummaryRow [SummaryBelowData=1] */ + Subtotal(GroupBy: number, Function: XlConsolidationFunction, TotalList: any, Replace: any, PageBreaks: any, SummaryBelowData?: XlSummaryRow): any; + readonly Summary: any; + Table(RowInput?: any, ColumnInput?: any): any; + readonly Text: any; + + /** + * @param Excel.XlTextParsingType [DataType=1] + * @param Excel.XlTextQualifier [TextQualifier=1] + */ + TextToColumns( + Destination: any, DataType?: XlTextParsingType, TextQualifier?: XlTextQualifier, ConsecutiveDelimiter?: any, Tab?: any, Semicolon?: any, Comma?: any, + Space?: any, Other?: any, OtherChar?: any, FieldInfo?: any, DecimalSeparator?: any, ThousandsSeparator?: any, TrailingMinusNumbers?: any): any; + readonly Top: any; + Ungroup(): any; + UnMerge(): void; + UseStandardHeight: any; + UseStandardWidth: any; + readonly Validation: Validation; + Value(RangeValueDataType?: XlRangeValueDataType): any; + Value2: any; + VerticalAlignment: any; + readonly Width: any; + readonly Worksheet: Worksheet; + WrapText: any; + readonly XPath: XPath; + } + + class Ranges { + private 'Excel.Ranges_typekey': Ranges; + private constructor(); + _Default(Index: any): Range; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): Range; + readonly Parent: any; + } + + class RecentFile { + private 'Excel.RecentFile_typekey': RecentFile; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): void; + readonly Index: number; + readonly Name: string; + Open(): Workbook; + readonly Parent: any; + readonly Path: string; + } + + class RecentFiles { + private 'Excel.RecentFiles_typekey': RecentFiles; + private constructor(); + _Default(Index: number): RecentFile; + Add(Name: string): RecentFile; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: number): RecentFile; + Maximum: number; + readonly Parent: any; + } + + class Research { + private 'Excel.Research_typekey': Research; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + IsResearchService(ServiceID: string): boolean; + readonly Parent: any; + Query(ServiceID: string, QueryString?: any, QueryLanguage?: any, UseSelection?: any, LaunchQuery?: any): any; + SetLanguagePair(LanguageFrom: number, LanguageTo: number): any; + } + + class RoutingSlip { + private 'Excel.RoutingSlip_typekey': RoutingSlip; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + Delivery: XlRoutingSlipDelivery; + Message: any; + readonly Parent: any; + Recipients(Index?: any): any; + Reset(): any; + ReturnWhenDone: boolean; + readonly Status: XlRoutingSlipStatus; + Subject: any; + TrackStatus: boolean; + } + + class RTD { + private 'Excel.RTD_typekey': RTD; + private constructor(); + RefreshData(): void; + RestartServers(): void; + ThrottleInterval: number; + } + + class SeriesLines { + private 'Excel.SeriesLines_typekey': SeriesLines; + private constructor(); + readonly Application: Application; + readonly Border: Border; + readonly Creator: XlCreator; + Delete(): any; + readonly Format: ChartFormat; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class ServerViewableItems { + private 'Excel.ServerViewableItems_typekey': ServerViewableItems; + private constructor(); + _Default(Index: any): any; + Add(Obj: any): any; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Delete(Index: any): void; + DeleteAll(): void; + Item(Index: any): any; + readonly Parent: any; + } + + class ShadowFormat { + private 'Excel.ShadowFormat_typekey': ShadowFormat; + private constructor(); + readonly Application: any; + Blur: number; + readonly Creator: number; + ForeColor: ColorFormat; + IncrementOffsetX(Increment: number): void; + IncrementOffsetY(Increment: number): void; + Obscured: Office.MsoTriState; + OffsetX: number; + OffsetY: number; + readonly Parent: any; + RotateWithShape: Office.MsoTriState; + Size: number; + Style: Office.MsoShadowStyle; + Transparency: number; + Type: Office.MsoShadowType; + Visible: Office.MsoTriState; + } + + class Shape { + private 'Excel.Shape_typekey': Shape; + private constructor(); + readonly Adjustments: Adjustments; + AlternativeText: string; + readonly Application: Application; + Apply(): void; + AutoShapeType: Office.MsoAutoShapeType; + BackgroundStyle: Office.MsoBackgroundStyleIndex; + BlackWhiteMode: Office.MsoBlackWhiteMode; + readonly BottomRightCell: Range; + readonly Callout: CalloutFormat; + CanvasCropBottom(Increment: number): void; + CanvasCropLeft(Increment: number): void; + CanvasCropRight(Increment: number): void; + CanvasCropTop(Increment: number): void; + readonly CanvasItems: Office.CanvasShapes; + readonly Chart: Chart; + readonly Child: Office.MsoTriState; + readonly ConnectionSiteCount: number; + readonly Connector: Office.MsoTriState; + readonly ConnectorFormat: ConnectorFormat; + readonly ControlFormat: ControlFormat; + Copy(): void; + CopyPicture(Appearance?: any, Format?: any): void; + readonly Creator: XlCreator; + Cut(): void; + Delete(): void; + readonly Diagram: Diagram; + readonly DiagramNode: DiagramNode; + readonly DrawingObject: any; + Duplicate(): Shape; + readonly Fill: FillFormat; + Flip(FlipCmd: Office.MsoFlipCmd): void; + readonly FormControlType: XlFormControl; + readonly Glow: Office.GlowFormat; + readonly GroupItems: GroupShapes; + readonly HasChart: Office.MsoTriState; + readonly HasDiagram: Office.MsoTriState; + readonly HasDiagramNode: Office.MsoTriState; + readonly HasSmartArt: Office.MsoTriState; + Height: number; + readonly HorizontalFlip: Office.MsoTriState; + readonly Hyperlink: Hyperlink; + readonly ID: number; + IncrementLeft(Increment: number): void; + IncrementRotation(Increment: number): void; + IncrementTop(Increment: number): void; + Left: number; + readonly Line: LineFormat; + readonly LinkFormat: LinkFormat; + LockAspectRatio: Office.MsoTriState; + Locked: boolean; + Name: string; + readonly Nodes: ShapeNodes; + readonly OLEFormat: OLEFormat; + OnAction: string; + readonly Parent: any; + readonly ParentGroup: Shape; + PickUp(): void; + readonly PictureFormat: PictureFormat; + Placement: XlPlacement; + readonly Reflection: Office.ReflectionFormat; + RerouteConnections(): void; + Rotation: number; + ScaleHeight(Factor: number, RelativeToOriginalSize: Office.MsoTriState, Scale?: any): void; + ScaleWidth(Factor: number, RelativeToOriginalSize: Office.MsoTriState, Scale?: any): void; + readonly Script: Office.Script; + Select(Replace?: any): void; + SetShapesDefaultProperties(): void; + readonly Shadow: ShadowFormat; + ShapeStyle: Office.MsoShapeStyleIndex; + readonly SmartArt: Office.SmartArt; + readonly SoftEdge: Office.SoftEdgeFormat; + readonly TextEffect: TextEffectFormat; + readonly TextFrame: TextFrame; + readonly TextFrame2: TextFrame2; + readonly ThreeD: ThreeDFormat; + Title: string; + Top: number; + readonly TopLeftCell: Range; + readonly Type: Office.MsoShapeType; + Ungroup(): ShapeRange; + readonly VerticalFlip: Office.MsoTriState; + readonly Vertices: any; + Visible: Office.MsoTriState; + Width: number; + ZOrder(ZOrderCmd: Office.MsoZOrderCmd): void; + readonly ZOrderPosition: number; + } + + class ShapeNode { + private 'Excel.ShapeNode_typekey': ShapeNode; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly EditingType: Office.MsoEditingType; + readonly Parent: any; + readonly Points: any; + readonly SegmentType: Office.MsoSegmentType; + } + + class ShapeNodes { + private 'Excel.ShapeNodes_typekey': ShapeNodes; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Delete(Index: number): void; + + /** + * @param number [X2=0] + * @param number [Y2=0] + * @param number [X3=0] + * @param number [Y3=0] + */ + Insert(Index: number, SegmentType: Office.MsoSegmentType, EditingType: Office.MsoEditingType, X1: number, Y1: number, X2?: number, Y2?: number, X3?: number, Y3?: number): void; + Item(Index: any): ShapeNode; + readonly Parent: any; + SetEditingType(Index: number, EditingType: Office.MsoEditingType): void; + SetPosition(Index: number, X1: number, Y1: number): void; + SetSegmentType(Index: number, SegmentType: Office.MsoSegmentType): void; + } + + class ShapeRange { + private 'Excel.ShapeRange_typekey': ShapeRange; + private constructor(); + _Default(Index: any): Shape; + readonly Adjustments: Adjustments; + Align(AlignCmd: Office.MsoAlignCmd, RelativeTo: Office.MsoTriState): void; + AlternativeText: string; + readonly Application: Application; + Apply(): void; + AutoShapeType: Office.MsoAutoShapeType; + BackgroundStyle: Office.MsoBackgroundStyleIndex; + BlackWhiteMode: Office.MsoBlackWhiteMode; + readonly Callout: CalloutFormat; + CanvasCropBottom(Increment: number): void; + CanvasCropLeft(Increment: number): void; + CanvasCropRight(Increment: number): void; + CanvasCropTop(Increment: number): void; + readonly CanvasItems: Office.CanvasShapes; + readonly Chart: Chart; + readonly Child: Office.MsoTriState; + readonly ConnectionSiteCount: number; + readonly Connector: Office.MsoTriState; + readonly ConnectorFormat: ConnectorFormat; + readonly Count: number; + readonly Creator: XlCreator; + Delete(): void; + readonly Diagram: Diagram; + readonly DiagramNode: DiagramNode; + Distribute(DistributeCmd: Office.MsoDistributeCmd, RelativeTo: Office.MsoTriState): void; + Duplicate(): ShapeRange; + readonly Fill: FillFormat; + Flip(FlipCmd: Office.MsoFlipCmd): void; + readonly Glow: Office.GlowFormat; + Group(): Shape; + readonly GroupItems: GroupShapes; + readonly HasChart: Office.MsoTriState; + readonly HasDiagram: Office.MsoTriState; + readonly HasDiagramNode: Office.MsoTriState; + Height: number; + readonly HorizontalFlip: Office.MsoTriState; + readonly ID: number; + IncrementLeft(Increment: number): void; + IncrementRotation(Increment: number): void; + IncrementTop(Increment: number): void; + Item(Index: any): Shape; + Left: number; + readonly Line: LineFormat; + LockAspectRatio: Office.MsoTriState; + Name: string; + readonly Nodes: ShapeNodes; + readonly Parent: any; + readonly ParentGroup: Shape; + PickUp(): void; + readonly PictureFormat: PictureFormat; + readonly Reflection: Office.ReflectionFormat; + Regroup(): Shape; + RerouteConnections(): void; + Rotation: number; + ScaleHeight(Factor: number, RelativeToOriginalSize: Office.MsoTriState, Scale?: any): void; + ScaleWidth(Factor: number, RelativeToOriginalSize: Office.MsoTriState, Scale?: any): void; + Select(Replace?: any): void; + SetShapesDefaultProperties(): void; + readonly Shadow: ShadowFormat; + ShapeStyle: Office.MsoShapeStyleIndex; + readonly SoftEdge: Office.SoftEdgeFormat; + readonly TextEffect: TextEffectFormat; + readonly TextFrame: TextFrame; + readonly TextFrame2: TextFrame2; + readonly ThreeD: ThreeDFormat; + Title: string; + Top: number; + readonly Type: Office.MsoShapeType; + Ungroup(): ShapeRange; + readonly VerticalFlip: Office.MsoTriState; + readonly Vertices: any; + Visible: Office.MsoTriState; + Width: number; + ZOrder(ZOrderCmd: Office.MsoZOrderCmd): void; + readonly ZOrderPosition: number; + } + + class Shapes { + private 'Excel.Shapes_typekey': Shapes; + private constructor(); + _Default(Index: any): Shape; + AddCallout(Type: Office.MsoCalloutType, Left: number, Top: number, Width: number, Height: number): Shape; + AddCanvas(Left: number, Top: number, Width: number, Height: number): Shape; + AddChart(XlChartType?: any, Left?: any, Top?: any, Width?: any, Height?: any): Shape; + AddConnector(Type: Office.MsoConnectorType, BeginX: number, BeginY: number, EndX: number, EndY: number): Shape; + AddCurve(SafeArrayOfPoints: any): Shape; + AddDiagram(Type: Office.MsoDiagramType, Left: number, Top: number, Width: number, Height: number): Shape; + AddFormControl(Type: XlFormControl, Left: number, Top: number, Width: number, Height: number): Shape; + AddLabel(Orientation: Office.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape; + AddLine(BeginX: number, BeginY: number, EndX: number, EndY: number): Shape; + AddOLEObject(ClassType?: any, Filename?: any, Link?: any, DisplayAsIcon?: any, IconFileName?: any, IconIndex?: any, IconLabel?: any, Left?: any, Top?: any, Width?: any, + Height?: any): Shape; + AddPicture(Filename: string, LinkToFile: Office.MsoTriState, SaveWithDocument: Office.MsoTriState, Left: number, Top: number, Width: number, Height: number): Shape; + AddPolyline(SafeArrayOfPoints: any): Shape; + AddShape(Type: Office.MsoAutoShapeType, Left: number, Top: number, Width: number, Height: number): Shape; + AddSmartArt(Layout: Office.SmartArtLayout, Left?: any, Top?: any, Width?: any, Height?: any): Shape; + AddTextbox(Orientation: Office.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape; + AddTextEffect( + PresetTextEffect: Office.MsoPresetTextEffect, Text: string, FontName: string, FontSize: number, FontBold: Office.MsoTriState, FontItalic: Office.MsoTriState, + Left: number, Top: number): Shape; + readonly Application: Application; + BuildFreeform(EditingType: Office.MsoEditingType, X1: number, Y1: number): FreeformBuilder; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): Shape; + readonly Parent: any; + Range(Index: any): ShapeRange; + SelectAll(): void; + } + + class Sheets { + private 'Excel.Sheets_typekey': Sheets; + private constructor(); + __PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any): void; + _Default(Index: any): any; + _PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any): void; + Add(Before?: any, After?: any, Count?: any, Type?: any): any; + readonly Application: Application; + Copy(Before?: any, After?: any): void; + readonly Count: number; + readonly Creator: XlCreator; + Delete(): void; + + /** @param Excel.XlFillWith [Type=-4104] */ + FillAcrossSheets(Range: Range, Type?: XlFillWith): void; + readonly HPageBreaks: HPageBreaks; + Item(Index: string | number): Worksheet | Chart | DialogSheet; + Item(Indexes: SafeArray): Sheets; + Move(Before?: any, After?: any): void; + readonly Parent: any; + PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any, IgnorePrintAreas?: any): void; + PrintPreview(EnableChanges?: any): void; + Select(Replace?: boolean): void; + Visible: any; + readonly VPageBreaks: VPageBreaks; + } + + class SheetViews { + private 'Excel.SheetViews_typekey': SheetViews; + private constructor(); + _Default(Index: any): any; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): any; + readonly Parent: any; + } + + class Slicer { + private 'Excel.Slicer_typekey': Slicer; + private constructor(); + readonly ActiveItem: SlicerItem; + readonly Application: Application; + Caption: string; + ColumnWidth: number; + Copy(): void; + readonly Creator: XlCreator; + Cut(): void; + Delete(): void; + DisableMoveResizeUI: boolean; + DisplayHeader: boolean; + Height: number; + Left: number; + Locked: boolean; + Name: string; + NumberOfColumns: number; + readonly Parent: any; + RowHeight: number; + readonly Shape: Shape; + readonly SlicerCache: SlicerCache; + readonly SlicerCacheLevel: SlicerCacheLevel; + Style: any; + Top: number; + Width: number; + } + + class SlicerCache { + private 'Excel.SlicerCache_typekey': SlicerCache; + private constructor(); + readonly Application: Application; + ClearManualFilter(): void; + readonly Creator: XlCreator; + CrossFilterType: XlSlicerCrossFilterType; + Delete(): void; + readonly Index: number; + Name: string; + readonly OLAP: boolean; + readonly Parent: any; + readonly PivotTables: SlicerPivotTables; + ShowAllItems: boolean; + readonly SlicerCacheLevels: SlicerCacheLevels; + readonly SlicerItems: SlicerItems; + readonly Slicers: Slicers; + SortItems: XlSlicerSort; + SortUsingCustomLists: boolean; + readonly SourceName: string; + readonly SourceType: XlPivotTableSourceType; + readonly VisibleSlicerItems: SlicerItems; + VisibleSlicerItemsList: any; + readonly WorkbookConnection: WorkbookConnection; + } + + class SlicerCacheLevel { + private 'Excel.SlicerCacheLevel_typekey': SlicerCacheLevel; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + CrossFilterType: XlSlicerCrossFilterType; + readonly Name: string; + readonly Ordinal: number; + readonly Parent: any; + readonly SlicerItems: SlicerItems; + SortItems: XlSlicerSort; + readonly VisibleSlicerItemsList: any; + } + + class SlicerCacheLevels { + private 'Excel.SlicerCacheLevels_typekey': SlicerCacheLevels; + private constructor(); + _Default(Level?: any): SlicerCacheLevel; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Level?: any): SlicerCacheLevel; + readonly Parent: any; + } + + class SlicerCaches { + private 'Excel.SlicerCaches_typekey': SlicerCaches; + private constructor(); + _Default(Index: any): SlicerCache; + Add(Source: any, SourceField: any, Name?: any): SlicerCache; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): SlicerCache; + readonly Parent: any; + } + + class SlicerItem { + private 'Excel.SlicerItem_typekey': SlicerItem; + private constructor(); + readonly Application: Application; + readonly Caption: string; + readonly Creator: XlCreator; + readonly HasData: boolean; + readonly Name: string; + readonly Parent: SlicerCache; + Selected: boolean; + readonly SourceName: any; + readonly SourceNameStandard: string; + readonly Value: string; + } + + class SlicerItems { + private 'Excel.SlicerItems_typekey': SlicerItems; + private constructor(); + _Default(Index: any): SlicerItem; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): SlicerItem; + readonly Parent: any; + } + + class SlicerPivotTables { + private 'Excel.SlicerPivotTables_typekey': SlicerPivotTables; + private constructor(); + _Default(Index: any): PivotTable; + AddPivotTable(PivotTable: PivotTable): void; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): PivotTable; + readonly Parent: any; + RemovePivotTable(PivotTable: any): void; + } + + class Slicers { + private 'Excel.Slicers_typekey': Slicers; + private constructor(); + _Default(Index: any): Slicer; + Add(SlicerDestination: any, Level?: any, Name?: any, Caption?: any, Top?: any, Left?: any, Width?: any, Height?: any): Slicer; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): Slicer; + readonly Parent: any; + } + + class SmartTag { + private 'Excel.SmartTag_typekey': SmartTag; + private constructor(); + readonly _Default: string; + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): void; + readonly DownloadURL: string; + readonly Name: string; + readonly Parent: any; + readonly Properties: CustomProperties; + readonly Range: Range; + readonly SmartTagActions: SmartTagActions; + readonly XML: string; + } + + class SmartTagAction { + private 'Excel.SmartTagAction_typekey': SmartTagAction; + private constructor(); + readonly _Default: string; + readonly ActiveXControl: any; + readonly Application: Application; + CheckboxState: boolean; + readonly Creator: XlCreator; + Execute(): void; + ExpandHelp: boolean; + ListSelection: number; + readonly Name: string; + readonly Parent: any; + readonly PresentInPane: boolean; + RadioGroupSelection: number; + TextboxText: string; + readonly Type: XlSmartTagControlType; + } + + class SmartTagActions { + private 'Excel.SmartTagActions_typekey': SmartTagActions; + private constructor(); + _Default(Index: any): SmartTagAction; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): SmartTagAction; + readonly Parent: any; + } + + class SmartTagOptions { + private 'Excel.SmartTagOptions_typekey': SmartTagOptions; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + DisplaySmartTags: XlSmartTagDisplayMode; + EmbedSmartTags: boolean; + readonly Parent: any; + } + + class SmartTagRecognizer { + private 'Excel.SmartTagRecognizer_typekey': SmartTagRecognizer; + private constructor(); + readonly _Default: string; + readonly Application: Application; + readonly Creator: XlCreator; + Enabled: boolean; + readonly FullName: string; + readonly Parent: any; + readonly progID: string; + } + + class SmartTagRecognizers { + private 'Excel.SmartTagRecognizers_typekey': SmartTagRecognizers; + private constructor(); + _Default(Index: any): SmartTagRecognizer; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): SmartTagRecognizer; + readonly Parent: any; + Recognize: boolean; + } + + class SmartTags { + private 'Excel.SmartTags_typekey': SmartTags; + private constructor(); + _Default(Index: any): SmartTag; + Add(SmartTagType: string): SmartTag; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + readonly Parent: any; + } + + class Sort { + private 'Excel.Sort_typekey': Sort; + private constructor(); + readonly Application: Application; + Apply(): void; + readonly Creator: XlCreator; + Header: XlYesNoGuess; + MatchCase: boolean; + Orientation: XlSortOrientation; + readonly Parent: any; + readonly Rng: Range; + SetRange(Rng: Range): void; + readonly SortFields: SortFields; + SortMethod: XlSortMethod; + } + + class SortField { + private 'Excel.SortField_typekey': SortField; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + CustomOrder: any; + DataOption: XlSortDataOption; + Delete(): void; + readonly Key: Range; + ModifyKey(Key: Range): void; + Order: XlSortOrder; + readonly Parent: any; + Priority: number; + SetIcon(Icon: Icon): void; + SortOn: XlSortOn; + readonly SortOnValue: any; + } + + class SortFields { + private 'Excel.SortFields_typekey': SortFields; + private constructor(); + _Default(Index: any): SortField; + Add(Key: Range, SortOn?: any, Order?: any, CustomOrder?: any, DataOption?: any): SortField; + readonly Application: Application; + Clear(): void; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): SortField; + readonly Parent: any; + } + + class SoundNote { + private 'Excel.SoundNote_typekey': SoundNote; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): any; + Import(Filename: string): any; + readonly Parent: any; + Play(): any; + Record(): any; + } + + class SparkAxes { + private 'Excel.SparkAxes_typekey': SparkAxes; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + readonly Horizontal: SparkHorizontalAxis; + readonly Parent: any; + readonly Vertical: SparkVerticalAxis; + } + + class SparkColor { + private 'Excel.SparkColor_typekey': SparkColor; + private constructor(); + readonly Application: Application; + readonly Color: FormatColor; + readonly Creator: XlCreator; + readonly Parent: any; + Visible: boolean; + } + + class SparkHorizontalAxis { + private 'Excel.SparkHorizontalAxis_typekey': SparkHorizontalAxis; + private constructor(); + readonly Application: Application; + readonly Axis: SparkColor; + readonly Creator: XlCreator; + readonly IsDateAxis: boolean; + readonly Parent: any; + RightToLeftPlotOrder: boolean; + } + + class Sparkline { + private 'Excel.Sparkline_typekey': Sparkline; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + Location: Range; + ModifyLocation(Range: Range): void; + ModifySourceData(Formula: string): void; + readonly Parent: any; + SourceData: string; + } + + class SparklineGroup { + private 'Excel.SparklineGroup_typekey': SparklineGroup; + private constructor(); + readonly Application: Application; + readonly Axes: SparkAxes; + readonly Count: number; + readonly Creator: XlCreator; + DateRange: string; + Delete(): void; + DisplayBlanksAs: XlDisplayBlanksAs; + DisplayHidden: boolean; + Item(Index: any): Sparkline; + LineWeight: any; + Location: Range; + Modify(Location: Range, SourceData: string): void; + ModifyDateRange(DateRange: string): void; + ModifyLocation(Location: Range): void; + ModifySourceData(SourceData: string): void; + readonly Parent: any; + PlotBy: XlSparklineRowCol; + readonly Points: SparkPoints; + readonly SeriesColor: FormatColor; + SourceData: string; + Type: XlSparkType; + } + + class SparklineGroups { + private 'Excel.SparklineGroups_typekey': SparklineGroups; + private constructor(); + _Default(Index: any): SparklineGroup; + Add(Type: XlSparkType, SourceData: string): SparklineGroup; + readonly Application: Application; + Clear(): void; + ClearGroups(): void; + readonly Count: number; + readonly Creator: XlCreator; + Group(Location: Range): void; + Item(Index: any): SparklineGroup; + readonly Parent: any; + Ungroup(): void; + } + + class SparkPoints { + private 'Excel.SparkPoints_typekey': SparkPoints; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + readonly Firstpoint: SparkColor; + readonly Highpoint: SparkColor; + readonly Lastpoint: SparkColor; + readonly Lowpoint: SparkColor; + readonly Markers: SparkColor; + readonly Negative: SparkColor; + readonly Parent: any; + } + + class SparkVerticalAxis { + private 'Excel.SparkVerticalAxis_typekey': SparkVerticalAxis; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + CustomMaxScaleValue: any; + CustomMinScaleValue: any; + MaxScaleType: XlSparkScale; + MinScaleType: XlSparkScale; + readonly Parent: any; + } + + class Speech { + private 'Excel.Speech_typekey': Speech; + private constructor(); + Direction: XlSpeakDirection; + Speak(Text: string, SpeakAsync?: any, SpeakXML?: any, Purge?: any): void; + SpeakCellOnEnter: boolean; + } + + class SpellingOptions { + private 'Excel.SpellingOptions_typekey': SpellingOptions; + private constructor(); + ArabicModes: XlArabicModes; + ArabicStrictAlefHamza: boolean; + ArabicStrictFinalYaa: boolean; + ArabicStrictTaaMarboota: boolean; + BrazilReform: XlPortugueseReform; + DictLang: number; + GermanPostReform: boolean; + HebrewModes: XlHebrewModes; + IgnoreCaps: boolean; + IgnoreFileNames: boolean; + IgnoreMixedDigits: boolean; + KoreanCombineAux: boolean; + KoreanProcessCompound: boolean; + KoreanUseAutoChangeList: boolean; + PortugalReform: XlPortugueseReform; + RussianStrictE: boolean; + SpanishModes: XlSpanishModes; + SuggestMainOnly: boolean; + UserDict: string; + } + + class Style { + private 'Excel.Style_typekey': Style; + private constructor(); + readonly _Default: string; + AddIndent: boolean; + readonly Application: Application; + readonly Borders: Borders; + readonly BuiltIn: boolean; + readonly Creator: XlCreator; + Delete(): any; + readonly Font: Font; + FormulaHidden: boolean; + HorizontalAlignment: XlHAlign; + IncludeAlignment: boolean; + IncludeBorder: boolean; + IncludeFont: boolean; + IncludeNumber: boolean; + IncludePatterns: boolean; + IncludeProtection: boolean; + IndentLevel: number; + readonly Interior: Interior; + Locked: boolean; + MergeCells: any; + readonly Name: string; + readonly NameLocal: string; + NumberFormat: string; + NumberFormatLocal: string; + Orientation: XlOrientation; + readonly Parent: any; + ReadingOrder: number; + ShrinkToFit: boolean; + readonly Value: string; + VerticalAlignment: XlVAlign; + WrapText: boolean; + } + + class Styles { + private 'Excel.Styles_typekey': Styles; + private constructor(); + _Default(Index: any): Style; + Add(Name: string, BasedOn?: any): Style; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): Style; + Merge(Workbook: any): any; + readonly Parent: any; + } + + class Tab { + private 'Excel.Tab_typekey': Tab; + private constructor(); + readonly Application: Application; + Color: any; + ColorIndex: XlColorIndex; + readonly Creator: XlCreator; + readonly Parent: any; + ThemeColor: XlThemeColor; + TintAndShade: any; + } + + class TableStyle { + private 'Excel.TableStyle_typekey': TableStyle; + private constructor(); + readonly _Default: string; + readonly Application: Application; + readonly BuiltIn: boolean; + readonly Creator: XlCreator; + Delete(): void; + Duplicate(NewTableStyleName?: any): TableStyle; + readonly Name: string; + readonly NameLocal: string; + readonly Parent: any; + ShowAsAvailablePivotTableStyle: boolean; + ShowAsAvailableSlicerStyle: boolean; + ShowAsAvailableTableStyle: boolean; + readonly TableStyleElements: TableStyleElements; + } + + class TableStyleElement { + private 'Excel.TableStyleElement_typekey': TableStyleElement; + private constructor(); + readonly Application: Application; + readonly Borders: Borders; + Clear(): void; + readonly Creator: XlCreator; + readonly Font: Font; + readonly HasFormat: boolean; + readonly Interior: Interior; + readonly Parent: any; + StripeSize: number; + } + + class TableStyleElements { + private 'Excel.TableStyleElements_typekey': TableStyleElements; + private constructor(); + _Default(Index: XlTableStyleElementType): TableStyleElement; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: XlTableStyleElementType): TableStyleElement; + readonly Parent: any; + } + + class TableStyles { + private 'Excel.TableStyles_typekey': TableStyles; + private constructor(); + _Default(Index: any): TableStyle; + Add(TableStyleName: string): TableStyle; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): TableStyle; + readonly Parent: any; + } + + class TextEffectFormat { + private 'Excel.TextEffectFormat_typekey': TextEffectFormat; + private constructor(); + Alignment: Office.MsoTextEffectAlignment; + readonly Application: any; + readonly Creator: number; + FontBold: Office.MsoTriState; + FontItalic: Office.MsoTriState; + FontName: string; + FontSize: number; + KernedPairs: Office.MsoTriState; + NormalizedHeight: Office.MsoTriState; + readonly Parent: any; + PresetShape: Office.MsoPresetTextEffectShape; + PresetTextEffect: Office.MsoPresetTextEffect; + RotatedChars: Office.MsoTriState; + Text: string; + ToggleVerticalText(): void; + Tracking: number; + } + + class TextFrame { + private 'Excel.TextFrame_typekey': TextFrame; + private constructor(); + readonly Application: Application; + AutoMargins: boolean; + AutoSize: boolean; + Characters(Start?: any, Length?: any): Characters; + readonly Creator: XlCreator; + HorizontalAlignment: XlHAlign; + HorizontalOverflow: XlOartHorizontalOverflow; + MarginBottom: number; + MarginLeft: number; + MarginRight: number; + MarginTop: number; + Orientation: Office.MsoTextOrientation; + readonly Parent: any; + ReadingOrder: number; + VerticalAlignment: XlVAlign; + VerticalOverflow: XlOartVerticalOverflow; + } + + class TextFrame2 { + private 'Excel.TextFrame2_typekey': TextFrame2; + private constructor(); + readonly Application: any; + AutoSize: Office.MsoAutoSize; + readonly Column: Office.TextColumn2; + readonly Creator: number; + DeleteText(): void; + readonly HasText: Office.MsoTriState; + HorizontalAnchor: Office.MsoHorizontalAnchor; + MarginBottom: number; + MarginLeft: number; + MarginRight: number; + MarginTop: number; + NoTextRotation: Office.MsoTriState; + Orientation: Office.MsoTextOrientation; + readonly Parent: any; + PathFormat: Office.MsoPathFormat; + readonly Ruler: Office.Ruler2; + readonly TextRange: Office.TextRange2; + readonly ThreeD: ThreeDFormat; + VerticalAnchor: Office.MsoVerticalAnchor; + WarpFormat: Office.MsoWarpFormat; + WordArtformat: Office.MsoPresetTextEffect; + WordWrap: Office.MsoTriState; + } + + class ThreeDFormat { + private 'Excel.ThreeDFormat_typekey': ThreeDFormat; + private constructor(); + readonly Application: any; + BevelBottomDepth: number; + BevelBottomInset: number; + BevelBottomType: Office.MsoBevelType; + BevelTopDepth: number; + BevelTopInset: number; + BevelTopType: Office.MsoBevelType; + readonly ContourColor: ColorFormat; + ContourWidth: number; + readonly Creator: number; + Depth: number; + readonly ExtrusionColor: ColorFormat; + ExtrusionColorType: Office.MsoExtrusionColorType; + FieldOfView: number; + IncrementRotationHorizontal(Increment: number): void; + IncrementRotationVertical(Increment: number): void; + IncrementRotationX(Increment: number): void; + IncrementRotationY(Increment: number): void; + IncrementRotationZ(Increment: number): void; + LightAngle: number; + readonly Parent: any; + Perspective: Office.MsoTriState; + readonly PresetCamera: Office.MsoPresetCamera; + readonly PresetExtrusionDirection: Office.MsoPresetExtrusionDirection; + PresetLighting: Office.MsoLightRigType; + PresetLightingDirection: Office.MsoPresetLightingDirection; + PresetLightingSoftness: Office.MsoPresetLightingSoftness; + PresetMaterial: Office.MsoPresetMaterial; + readonly PresetThreeDFormat: Office.MsoPresetThreeDFormat; + ProjectText: Office.MsoTriState; + ResetRotation(): void; + RotationX: number; + RotationY: number; + RotationZ: number; + SetExtrusionDirection(PresetExtrusionDirection: Office.MsoPresetExtrusionDirection): void; + SetPresetCamera(PresetCamera: Office.MsoPresetCamera): void; + SetThreeDFormat(PresetThreeDFormat: Office.MsoPresetThreeDFormat): void; + Visible: Office.MsoTriState; + Z: number; + } + + class TickLabels { + private 'Excel.TickLabels_typekey': TickLabels; + private constructor(); + Alignment: number; + readonly Application: Application; + AutoScaleFont: any; + readonly Creator: XlCreator; + Delete(): any; + readonly Depth: number; + readonly Font: Font; + readonly Format: ChartFormat; + MultiLevel: boolean; + readonly Name: string; + NumberFormat: string; + NumberFormatLinked: boolean; + NumberFormatLocal: any; + Offset: number; + Orientation: XlTickLabelOrientation; + readonly Parent: any; + ReadingOrder: number; + Select(): any; + } + + class Toolbar { + private 'Excel.Toolbar_typekey': Toolbar; + private constructor(); + readonly Application: Application; + readonly BuiltIn: boolean; + readonly Creator: XlCreator; + Delete(): void; + Height: number; + Left: number; + readonly Name: string; + readonly Parent: any; + Position: number; + Protection: XlToolbarProtection; + Reset(): void; + readonly ToolbarButtons: ToolbarButtons; + Top: number; + Visible: boolean; + Width: number; + } + + class ToolbarButton { + private 'Excel.ToolbarButton_typekey': ToolbarButton; + private constructor(); + readonly Application: Application; + readonly BuiltIn: boolean; + BuiltInFace: boolean; + Copy(Toolbar: Toolbar, Before: number): void; + CopyFace(): void; + readonly Creator: XlCreator; + Delete(): void; + Edit(): void; + Enabled: boolean; + HelpContextID: number; + HelpFile: string; + readonly ID: number; + readonly IsGap: boolean; + Move(Toolbar: Toolbar, Before: number): void; + Name: string; + OnAction: string; + readonly Parent: any; + PasteFace(): void; + Pushed: boolean; + Reset(): void; + StatusBar: string; + Width: number; + } + + class ToolbarButtons { + private 'Excel.ToolbarButtons_typekey': ToolbarButtons; + private constructor(); + _Default(Index: number): ToolbarButton; + Add(Button?: any, Before?: any, OnAction?: any, Pushed?: any, Enabled?: any, StatusBar?: any, HelpFile?: any, HelpContextID?: any): ToolbarButton; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: number): ToolbarButton; + readonly Parent: any; + } + + class Toolbars { + private 'Excel.Toolbars_typekey': Toolbars; + private constructor(); + _Default(Index: any): Toolbar; + Add(Name?: any): Toolbar; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): Toolbar; + readonly Parent: any; + } + + class TreeviewControl { + private 'Excel.TreeviewControl_typekey': TreeviewControl; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + Drilled: any; + Hidden: any; + readonly Parent: any; + } + + class UpBars { + private 'Excel.UpBars_typekey': UpBars; + private constructor(); + readonly Application: Application; + readonly Border: Border; + readonly Creator: XlCreator; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + readonly Interior: Interior; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class UsedObjects { + private 'Excel.UsedObjects_typekey': UsedObjects; + private constructor(); + _Default(Index: any): any; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): any; + readonly Parent: any; + } + + class UserAccess { + private 'Excel.UserAccess_typekey': UserAccess; + private constructor(); + AllowEdit: boolean; + Delete(): void; + readonly Name: string; + } + + class UserAccessList { + private 'Excel.UserAccessList_typekey': UserAccessList; + private constructor(); + _Default(Index: any): UserAccess; + Add(Name: string, AllowEdit: boolean): UserAccess; + readonly Count: number; + DeleteAll(): void; + Item(Index: any): UserAccess; + } + + class Validation { + private 'Excel.Validation_typekey': Validation; + private constructor(); + Add(Type: XlDVType, AlertStyle?: any, Operator?: any, Formula1?: any, Formula2?: any): void; + readonly AlertStyle: number; + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): void; + ErrorMessage: string; + ErrorTitle: string; + readonly Formula1: string; + readonly Formula2: string; + IgnoreBlank: boolean; + IMEMode: number; + InCellDropdown: boolean; + InputMessage: string; + InputTitle: string; + Modify(Type?: any, AlertStyle?: any, Operator?: any, Formula1?: any, Formula2?: any): void; + readonly Operator: number; + readonly Parent: any; + ShowError: boolean; + ShowInput: boolean; + readonly Type: number; + readonly Value: boolean; + } + + class ValueChange { + private 'Excel.ValueChange_typekey': ValueChange; + private constructor(); + readonly AllocationMethod: XlAllocationMethod; + readonly AllocationValue: XlAllocationValue; + readonly AllocationWeightExpression: string; + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): void; + readonly Order: number; + readonly Parent: any; + readonly PivotCell: PivotCell; + readonly Tuple: string; + readonly Value: number; + readonly VisibleInPivotTable: boolean; + } + + class VPageBreak { + private 'Excel.VPageBreak_typekey': VPageBreak; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): void; + DragOff(Direction: XlDirection, RegionIndex: number): void; + readonly Extent: XlPageBreakExtent; + Location: Range; + readonly Parent: Worksheet; + Type: XlPageBreak; + } + + class VPageBreaks { + private 'Excel.VPageBreaks_typekey': VPageBreaks; + private constructor(); + _Default(Index: number): VPageBreak; + Add(Before: any): VPageBreak; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: number): VPageBreak; + readonly Parent: any; + } + + class Walls { + private 'Excel.Walls_typekey': Walls; + private constructor(); + readonly Application: Application; + readonly Border: Border; + ClearFormats(): any; + readonly Creator: XlCreator; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + readonly Interior: Interior; + readonly Name: string; + readonly Parent: any; + Paste(): void; + PictureType: any; + PictureUnit: any; + Select(): any; + Thickness: number; + } + + class Watch { + private 'Excel.Watch_typekey': Watch; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): void; + readonly Parent: any; + readonly Source: any; + } + + class Watches { + private 'Excel.Watches_typekey': Watches; + private constructor(); + _Default(Index: any): Watch; + Add(Source: any): Watch; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Delete(): void; + Item(Index: any): Watch; + readonly Parent: any; + } + + class WebOptions { + private 'Excel.WebOptions_typekey': WebOptions; + private constructor(); + AllowPNG: boolean; + readonly Application: Application; + readonly Creator: XlCreator; + DownloadComponents: boolean; + Encoding: Office.MsoEncoding; + readonly FolderSuffix: string; + LocationOfComponents: string; + OrganizeInFolder: boolean; + readonly Parent: any; + PixelsPerInch: number; + RelyOnCSS: boolean; + RelyOnVML: boolean; + ScreenSize: Office.MsoScreenSize; + TargetBrowser: Office.MsoTargetBrowser; + UseDefaultFolderSuffix(): void; + UseLongFileNames: boolean; + } + + class Window { + private 'Excel.Window_typekey': Window; + private constructor(); + _DisplayRightToLeft: boolean; + _PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any): any; + Activate(): any; + ActivateNext(): any; + ActivatePrevious(): any; + readonly ActiveCell: Range; + readonly ActiveChart: Chart; + readonly ActivePane: Pane; + readonly ActiveSheet: any; + readonly ActiveSheetView: any; + readonly Application: Application; + AutoFilterDateGrouping: boolean; + Caption: any; + Close(SaveChanges?: any, Filename?: any, RouteWorkbook?: any): boolean; + readonly Creator: XlCreator; + DisplayFormulas: boolean; + DisplayGridlines: boolean; + DisplayHeadings: boolean; + DisplayHorizontalScrollBar: boolean; + DisplayOutline: boolean; + DisplayRightToLeft: boolean; + DisplayRuler: boolean; + DisplayVerticalScrollBar: boolean; + DisplayWhitespace: boolean; + DisplayWorkbookTabs: boolean; + DisplayZeros: boolean; + EnableResize: boolean; + FreezePanes: boolean; + GridlineColor: number; + GridlineColorIndex: XlColorIndex; + Height: number; + readonly Index: number; + LargeScroll(Down?: any, Up?: any, ToRight?: any, ToLeft?: any): any; + Left: number; + NewWindow(): Window; + OnWindow: string; + readonly Panes: Panes; + readonly Parent: any; + PointsToScreenPixelsX(Points: number): number; + PointsToScreenPixelsY(Points: number): number; + PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any): any; + PrintPreview(EnableChanges?: any): any; + RangeFromPoint(x: number, y: number): any; + readonly RangeSelection: Range; + ScrollColumn: number; + ScrollIntoView(Left: number, Top: number, Width: number, Height: number, Start?: any): void; + ScrollRow: number; + ScrollWorkbookTabs(Sheets?: any, Position?: any): any; + readonly SelectedSheets: Sheets; + readonly Selection: any; + readonly SheetViews: SheetViews; + SmallScroll(Down?: any, Up?: any, ToRight?: any, ToLeft?: any): any; + Split: boolean; + SplitColumn: number; + SplitHorizontal: number; + SplitRow: number; + SplitVertical: number; + TabRatio: number; + Top: number; + readonly Type: XlWindowType; + readonly UsableHeight: number; + readonly UsableWidth: number; + View: XlWindowView; + Visible: boolean; + readonly VisibleRange: Range; + Width: number; + readonly WindowNumber: number; + WindowState: XlWindowState; + Zoom: any; + } + + class Windows { + private 'Excel.Windows_typekey': Windows; + private constructor(); + _Default(Index: any): Window; + readonly Application: Application; + + /** @param Excel.XlArrangeStyle [ArrangeStyle=1] */ + Arrange(ArrangeStyle?: XlArrangeStyle, ActiveWorkbook?: any, SyncHorizontal?: any, SyncVertical?: any): any; + BreakSideBySide(): boolean; + CompareSideBySideWith(WindowName: any): boolean; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): Window; + readonly Parent: any; + ResetPositionsSideBySide(): void; + SyncScrollingSideBySide: boolean; + } + + class Workbook { + private 'Excel.Workbook_typekey': Workbook; + private constructor(); + __PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any): void; + _CodeName: string; + _PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any): void; + _Protect(Password?: any, Structure?: any, Windows?: any): void; + _ProtectSharing(Filename?: any, Password?: any, WriteResPassword?: any, ReadOnlyRecommended?: any, CreateBackup?: any, SharingPassword?: any): void; + readonly _ReadOnlyRecommended: boolean; + + /** @param Excel.XlSaveAsAccessMode [AccessMode=1] */ + _SaveAs( + Filename: string, FileFormat?: XlFileFormat, Password?: string, WriteResPassword?: string, ReadOnlyRecommended?: boolean, CreateBackup?: boolean, AccessMode?: XlSaveAsAccessMode, + ConflictResolution?: XlSaveConflictResolution, AddToMru?: boolean, TextCodepage?: any, TextVisualLayout?: any): void; + AcceptAllChanges(When?: any, Who?: any, Where?: any): void; + AcceptLabelsInFormulas: boolean; + AccuracyVersion: number; + Activate(): void; + readonly ActiveChart: Chart; + readonly ActiveSheet: any; + readonly ActiveSlicer: Slicer; + AddToFavorites(): void; + readonly Application: Application; + ApplyTheme(Filename: string): void; + Author: string; + AutoUpdateFrequency: number; + AutoUpdateSaveChanges: boolean; + BreakLink(Name: string, Type: XlLinkType): void; + readonly BuiltinDocumentProperties: Office.DocumentProperties; + readonly CalculationVersion: number; + CanCheckIn(): boolean; + ChangeFileAccess(Mode: XlFileAccess, WritePassword?: any, Notify?: any): void; + ChangeHistoryDuration: number; + + /** @param Excel.XlLinkType [Type=1] */ + ChangeLink(Name: string, NewName: string, Type?: XlLinkType): void; + readonly Charts: Sheets; + CheckCompatibility: boolean; + CheckIn(SaveChanges?: any, Comments?: any, MakePublic?: any): void; + CheckInWithVersion(SaveChanges?: any, Comments?: any, MakePublic?: any, VersionType?: any): void; + Close(SaveChanges?: any, Filename?: any, RouteWorkbook?: any): void; + readonly CodeName: string; + Colors(Index?: any): any; + readonly CommandBars: Office.CommandBars; + Comments: string; + ConflictResolution: XlSaveConflictResolution; + readonly Connections: Connections; + readonly ConnectionsDisabled: boolean; + readonly Container: any; + readonly ContentTypeProperties: Office.MetaProperties; + readonly CreateBackup: boolean; + readonly Creator: XlCreator; + readonly CustomDocumentProperties: Office.DocumentProperties; + readonly CustomViews: CustomViews; + readonly CustomXMLParts: Office.CustomXMLParts; + Date1904: boolean; + DefaultPivotTableStyle: any; + DefaultSlicerStyle: any; + DefaultTableStyle: any; + DeleteNumberFormat(NumberFormat: string): void; + readonly DialogSheets: Sheets; + DisplayDrawingObjects: XlDisplayDrawingObjects; + DisplayInkComments: boolean; + readonly DocumentInspectors: Office.DocumentInspectors; + readonly DocumentLibraryVersions: Office.DocumentLibraryVersions; + DoNotPromptForConvert: boolean; + Dummy16(): void; + Dummy17(calcid: number): void; + Dummy26(): void; + Dummy27(): void; + EnableAutoRecover: boolean; + EnableConnections(): void; + EncryptionProvider: string; + EndReview(): void; + EnvelopeVisible: boolean; + readonly Excel4IntlMacroSheets: Sheets; + readonly Excel4MacroSheets: Sheets; + readonly Excel8CompatibilityMode: boolean; + ExclusiveAccess(): boolean; + ExportAsFixedFormat( + Type: XlFixedFormatType, Filename?: any, Quality?: any, IncludeDocProperties?: any, IgnorePrintAreas?: any, From?: any, To?: any, OpenAfterPublish?: any, + FixedFormatExtClassPtr?: any): void; + readonly FileFormat: XlFileFormat; + Final: boolean; + FollowHyperlink(Address: string, SubAddress?: any, NewWindow?: any, AddHistory?: any, ExtraInfo?: any, Method?: any, HeaderInfo?: any): void; + ForceFullCalculation: boolean; + ForwardMailer(): void; + readonly FullName: string; + readonly FullNameURLEncoded: string; + GetWorkflowTasks(): Office.WorkflowTasks; + GetWorkflowTemplates(): Office.WorkflowTemplates; + HasMailer: boolean; + readonly HasPassword: boolean; + HasRoutingSlip: boolean; + readonly HasVBProject: boolean; + HighlightChangesOnScreen: boolean; + HighlightChangesOptions(When?: any, Who?: any, Where?: any): void; + readonly HTMLProject: Office.HTMLProject; + readonly IconSets: IconSets; + InactiveListBorderVisible: boolean; + IsAddin: boolean; + readonly IsInplace: boolean; + KeepChangeHistory: boolean; + Keywords: string; + LinkInfo(Name: string, LinkInfo: XlLinkInfo, Type?: any, EditionRef?: any): any; + LinkSources(Type?: any): any; + ListChangesOnNewSheet: boolean; + LockServerFile(): void; + readonly Mailer: Mailer; + MergeWorkbook(Filename: any): void; + readonly Modules: Sheets; + readonly MultiUserEditing: boolean; + readonly Name: string; + readonly Names: Names; + NewWindow(): Window; + OnSave: string; + OnSheetActivate: string; + OnSheetDeactivate: string; + OpenLinks(Name: string, ReadOnly?: any, Type?: any): void; + readonly Parent: any; + Password: string; + readonly PasswordEncryptionAlgorithm: string; + readonly PasswordEncryptionFileProperties: boolean; + readonly PasswordEncryptionKeyLength: number; + readonly PasswordEncryptionProvider: string; + readonly Path: string; + readonly Permission: Office.Permission; + PersonalViewListSettings: boolean; + PersonalViewPrintSettings: boolean; + PivotCaches(): PivotCaches; + PivotTableWizard( + SourceType?: any, SourceData?: any, TableDestination?: any, TableName?: any, RowGrand?: any, ColumnGrand?: any, SaveData?: any, HasAutoFormat?: any, + AutoPage?: any, Reserved?: any, BackgroundQuery?: any, OptimizeCache?: any, PageFieldOrder?: any, PageFieldWrapCount?: any, ReadData?: any, Connection?: any): void; + Post(DestName?: any): void; + PrecisionAsDisplayed: boolean; + PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any, IgnorePrintAreas?: any): void; + PrintPreview(EnableChanges?: any): void; + Protect(Password?: any, Structure?: any, Windows?: any): void; + ProtectSharing(Filename?: any, Password?: any, WriteResPassword?: any, ReadOnlyRecommended?: any, CreateBackup?: any, SharingPassword?: any, FileFormat?: any): void; + readonly ProtectStructure: boolean; + readonly ProtectWindows: boolean; + readonly PublishObjects: PublishObjects; + PurgeChangeHistoryNow(Days: number, SharingPassword?: any): void; + readonly ReadOnly: boolean; + ReadOnlyRecommended: boolean; + RecheckSmartTags(): void; + RefreshAll(): void; + RejectAllChanges(When?: any, Who?: any, Where?: any): void; + ReloadAs(Encoding: Office.MsoEncoding): void; + RemoveDocumentInformation(RemoveDocInfoType: XlRemoveDocInfoType): void; + RemovePersonalInformation: boolean; + RemoveUser(Index: number): void; + Reply(): void; + ReplyAll(): void; + ReplyWithChanges(ShowMessage?: any): void; + readonly Research: Research; + ResetColors(): void; + readonly RevisionNumber: number; + Route(): void; + readonly Routed: boolean; + readonly RoutingSlip: RoutingSlip; + RunAutoMacros(Which: XlRunAutoMacro): void; + Save(): void; + + /** @param Excel.XlSaveAsAccessMode [AccessMode=1] */ + SaveAs( + Filename: string, FileFormat?: XlFileFormat, Password?: string, WriteResPassword?: string, ReadOnlyRecommended?: boolean, CreateBackup?: boolean, AccessMode?: XlSaveAsAccessMode, + ConflictResolution?: XlSaveConflictResolution, AddToMru?: boolean, TextCodepage?: any, TextVisualLayout?: any): void; + SaveAsXMLData(Filename: string, Map: XmlMap): void; + SaveCopyAs(Filename?: any): void; + Saved: boolean; + SaveLinkValues: boolean; + sblt(s: string): void; + SendFaxOverInternet(Recipients?: any, Subject?: any, ShowMessage?: any): void; + SendForReview(Recipients?: any, Subject?: any, ShowMessage?: any, IncludeAttachment?: any): void; + SendMail(Recipients: any, Subject?: any, ReturnReceipt?: any): void; + + /** @param Excel.XlPriority [Priority=-4143] */ + SendMailer(FileFormat: any, Priority?: XlPriority): void; + readonly ServerPolicy: Office.ServerPolicy; + readonly ServerViewableItems: ServerViewableItems; + SetLinkOnData(Name: string, Procedure?: any): void; + SetPasswordEncryptionOptions(PasswordEncryptionProvider?: any, PasswordEncryptionAlgorithm?: any, PasswordEncryptionKeyLength?: any, PasswordEncryptionFileProperties?: any): void; + readonly SharedWorkspace: Office.SharedWorkspace; + readonly Sheets: Sheets; + ShowConflictHistory: boolean; + ShowPivotChartActiveFields: boolean; + ShowPivotTableFieldList: boolean; + readonly Signatures: Office.SignatureSet; + readonly SlicerCaches: SlicerCaches; + readonly SmartDocument: Office.SmartDocument; + readonly SmartTagOptions: SmartTagOptions; + readonly Styles: Styles; + Subject: string; + readonly Sync: Office.Sync; + readonly TableStyles: TableStyles; + TemplateRemoveExtData: boolean; + readonly Theme: Office.OfficeTheme; + Title: string; + ToggleFormsDesign(): void; + Unprotect(Password?: any): void; + UnprotectSharing(SharingPassword?: any): void; + UpdateFromFile(): void; + UpdateLink(Name?: any, Type?: any): void; + UpdateLinks: XlUpdateLinks; + UpdateRemoteReferences: boolean; + UserControl: boolean; + readonly UserStatus: any; + readonly VBASigned: boolean; + readonly VBProject: VBIDE.VBProject; + readonly WebOptions: WebOptions; + WebPagePreview(): void; + readonly Windows: Windows; + readonly Worksheets: Sheets; + WritePassword: string; + readonly WriteReserved: boolean; + readonly WriteReservedBy: string; + XmlImport(Url: string, ImportMap: XmlMap, Overwrite?: any, Destination?: any): XlXmlImportResult; + XmlImportXml(Data: string, ImportMap: XmlMap, Overwrite?: any, Destination?: any): XlXmlImportResult; + readonly XmlMaps: XmlMaps; + readonly XmlNamespaces: XmlNamespaces; + } + + class WorkbookConnection { + private 'Excel.WorkbookConnection_typekey': WorkbookConnection; + private constructor(); + _Default: string; + readonly Application: Application; + readonly Creator: XlCreator; + Delete(): void; + Description: string; + Name: string; + readonly ODBCConnection: ODBCConnection; + readonly OLEDBConnection: OLEDBConnection; + readonly Parent: any; + readonly Ranges: Ranges; + Refresh(): void; + readonly Type: XlConnectionType; + } + + class Workbooks { + private 'Excel.Workbooks_typekey': Workbooks; + private constructor(); + + /** @param Excel.XlTextQualifier [TextQualifier=1] */ + __OpenText( + Filename: string, Origin: any, StartRow: any, DataType: any, TextQualifier?: XlTextQualifier, ConsecutiveDelimiter?: any, Tab?: any, Semicolon?: any, + Comma?: any, Space?: any, Other?: any, OtherChar?: any, FieldInfo?: any, TextVisualLayout?: any): void; + _Default(Index: any): Workbook; + _Open( + Filename: string, UpdateLinks?: any, ReadOnly?: any, Format?: any, Password?: any, WriteResPassword?: any, IgnoreReadOnlyRecommended?: any, Origin?: any, + Delimiter?: any, Editable?: any, Notify?: any, Converter?: any, AddToMru?: any): Workbook; + + /** @param Excel.XlTextQualifier [TextQualifier=1] */ + _OpenText( + Filename: string, Origin: any, StartRow: any, DataType: any, TextQualifier?: XlTextQualifier, ConsecutiveDelimiter?: any, Tab?: any, Semicolon?: any, + Comma?: any, Space?: any, Other?: any, OtherChar?: any, FieldInfo?: any, TextVisualLayout?: any, DecimalSeparator?: any, ThousandsSeparator?: any): void; + _OpenXML(Filename: string, Stylesheets?: any): Workbook; + Add(Template?: any): Workbook; + readonly Application: Application; + CanCheckOut(Filename: string): boolean; + CheckOut(Filename: string): void; + Close(): void; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: number | string): Workbook; + Open( + Filename: string, UpdateLinks?: any, ReadOnly?: any, Format?: any, Password?: any, WriteResPassword?: any, IgnoreReadOnlyRecommended?: any, Origin?: any, + Delimiter?: any, Editable?: any, Notify?: any, Converter?: any, AddToMru?: any, Local?: any, CorruptLoad?: any): Workbook; + OpenDatabase(Filename: string, CommandText?: any, CommandType?: any, BackgroundQuery?: any, ImportDataAs?: any): Workbook; + + /** @param Excel.XlTextQualifier [TextQualifier=1] */ + OpenText( + Filename: string, Origin: any, StartRow: any, DataType: any, TextQualifier?: XlTextQualifier, ConsecutiveDelimiter?: any, Tab?: any, Semicolon?: any, + Comma?: any, Space?: any, Other?: any, OtherChar?: any, FieldInfo?: any, TextVisualLayout?: any, DecimalSeparator?: any, ThousandsSeparator?: any, + TrailingMinusNumbers?: any, Local?: any): void; + OpenXML(Filename: string, Stylesheets?: any, LoadOption?: any): Workbook; + readonly Parent: any; + } + + class Worksheet { + private 'Excel.Worksheet_typekey': Worksheet; + private constructor(); + __PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any): void; + _CheckSpelling(CustomDictionary?: any, IgnoreUppercase?: any, AlwaysSuggest?: any, SpellLang?: any, IgnoreFinalYaa?: any, SpellScript?: any): void; + _CodeName: string; + _DisplayRightToLeft: number; + _Evaluate(Name: any): any; + _PasteSpecial(Format?: any, Link?: any, DisplayAsIcon?: any, IconFileName?: any, IconIndex?: any, IconLabel?: any): void; + _PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any): void; + _Protect(Password?: any, DrawingObjects?: any, Contents?: any, Scenarios?: any, UserInterfaceOnly?: any): void; + _SaveAs( + Filename: string, FileFormat?: any, Password?: any, WriteResPassword?: any, ReadOnlyRecommended?: any, CreateBackup?: any, AddToMru?: any, TextCodepage?: any, + TextVisualLayout?: any): void; + Activate(): void; + readonly Application: Application; + Arcs(Index?: any): any; + readonly AutoFilter: AutoFilter; + AutoFilterMode: boolean; + Buttons(Index?: any): any; + Calculate(): void; + readonly Cells: Range; + ChartObjects(Index?: any): any; + CheckBoxes(Index?: any): any; + CheckSpelling(CustomDictionary?: any, IgnoreUppercase?: any, AlwaysSuggest?: any, SpellLang?: any): void; + CircleInvalid(): void; + readonly CircularReference: Range; + ClearArrows(): void; + ClearCircles(): void; + readonly CodeName: string; + readonly Columns: Range; + readonly Comments: Comments; + readonly ConsolidationFunction: XlConsolidationFunction; + readonly ConsolidationOptions: any; + readonly ConsolidationSources: any; + Copy(Before?: any, After?: any): void; + readonly Creator: XlCreator; + readonly CustomProperties: CustomProperties; + Delete(): void; + DisplayAutomaticPageBreaks: boolean; + DisplayPageBreaks: boolean; + DisplayRightToLeft: boolean; + DrawingObjects(Index?: any): any; + Drawings(Index?: any): any; + DropDowns(Index?: any): any; + EnableAutoFilter: boolean; + EnableCalculation: boolean; + EnableFormatConditionsCalculation: boolean; + EnableOutlining: boolean; + EnablePivotTable: boolean; + EnableSelection: XlEnableSelection; + Evaluate(Name: any): any; + ExportAsFixedFormat( + Type: XlFixedFormatType, Filename?: any, Quality?: any, IncludeDocProperties?: any, IgnorePrintAreas?: any, From?: any, To?: any, OpenAfterPublish?: any, + FixedFormatExtClassPtr?: any): void; + readonly FilterMode: boolean; + GroupBoxes(Index?: any): any; + GroupObjects(Index?: any): any; + readonly HPageBreaks: HPageBreaks; + readonly Hyperlinks: Hyperlinks; + readonly Index: number; + Labels(Index?: any): any; + Lines(Index?: any): any; + ListBoxes(Index?: any): any; + readonly ListObjects: ListObjects; + readonly MailEnvelope: Office.MsoEnvelope; + Move(Before?: any, After?: any): void; + Name: string; + readonly Names: Names; + readonly Next: any; + OLEObjects(Index?: any): any; + OnCalculate: string; + OnData: string; + OnDoubleClick: string; + OnEntry: string; + OnSheetActivate: string; + OnSheetDeactivate: string; + OptionButtons(Index?: any): any; + readonly Outline: Outline; + Ovals(Index?: any): any; + readonly PageSetup: PageSetup; + readonly Parent: any; + Paste(Destination?: any, Link?: any): void; + PasteSpecial(Format?: any, Link?: any, DisplayAsIcon?: any, IconFileName?: any, IconIndex?: any, IconLabel?: any, NoHTMLFormatting?: any): void; + Pictures(Index?: any): any; + PivotTables(Index?: any): any; + PivotTableWizard( + SourceType?: any, SourceData?: any, TableDestination?: any, TableName?: any, RowGrand?: any, ColumnGrand?: any, SaveData?: any, HasAutoFormat?: any, + AutoPage?: any, Reserved?: any, BackgroundQuery?: any, OptimizeCache?: any, PageFieldOrder?: any, PageFieldWrapCount?: any, ReadData?: any, Connection?: any): PivotTable; + readonly Previous: any; + readonly PrintedCommentPages: number; + PrintOut(From?: any, To?: any, Copies?: any, Preview?: any, ActivePrinter?: any, PrintToFile?: any, Collate?: any, PrToFileName?: any, IgnorePrintAreas?: any): void; + PrintPreview(EnableChanges?: any): void; + Protect( + Password?: any, DrawingObjects?: any, Contents?: any, Scenarios?: any, UserInterfaceOnly?: any, AllowFormattingCells?: any, AllowFormattingColumns?: any, + AllowFormattingRows?: any, AllowInsertingColumns?: any, AllowInsertingRows?: any, AllowInsertingHyperlinks?: any, AllowDeletingColumns?: any, + AllowDeletingRows?: any, AllowSorting?: any, AllowFiltering?: any, AllowUsingPivotTables?: any): void; + readonly ProtectContents: boolean; + readonly ProtectDrawingObjects: boolean; + readonly Protection: Protection; + readonly ProtectionMode: boolean; + readonly ProtectScenarios: boolean; + readonly QueryTables: QueryTables; + Range(Cell1: string | Range, Cell2?: string | Range): Range; + Rectangles(Index?: any): any; + ResetAllPageBreaks(): void; + readonly Rows: Range; + SaveAs( + Filename: string, FileFormat?: any, Password?: any, WriteResPassword?: any, ReadOnlyRecommended?: any, CreateBackup?: any, AddToMru?: any, TextCodepage?: any, + TextVisualLayout?: any, Local?: any): void; + Scenarios(Index?: any): any; + readonly Scripts: Office.Scripts; + ScrollArea: string; + ScrollBars(Index?: any): any; + Select(Replace?: any): void; + SetBackgroundPicture(Filename: string): void; + readonly Shapes: Shapes; + ShowAllData(): void; + ShowDataForm(): void; + readonly SmartTags: SmartTags; + readonly Sort: Sort; + Spinners(Index?: any): any; + readonly StandardHeight: number; + StandardWidth: number; + readonly Tab: Tab; + TextBoxes(Index?: any): any; + TransitionExpEval: boolean; + TransitionFormEntry: boolean; + readonly Type: XlSheetType; + Unprotect(Password?: any): void; + readonly UsedRange: Range; + Visible: XlSheetVisibility; + readonly VPageBreaks: VPageBreaks; + XmlDataQuery(XPath: string, SelectionNamespaces?: any, Map?: any): Range; + XmlMapQuery(XPath: string, SelectionNamespaces?: any, Map?: any): Range; + } + + class WorksheetFunction { + private 'Excel.WorksheetFunction_typekey': WorksheetFunction; + private constructor(); + _WSFunction( + Arg1?: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): any; + AccrInt(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6: any, Arg7?: any): number; + AccrIntM(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5?: any): number; + Acos(Arg1: number): number; + Acosh(Arg1: number): number; + Aggregate( + Arg1: number, Arg2: number, Arg3: Range, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, + Arg13?: any, Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, + Arg25?: any, Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + AmorDegrc(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6: any, Arg7?: any): number; + AmorLinc(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6: any, Arg7?: any): number; + And( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): boolean; + readonly Application: Application; + Asc(Arg1: string): string; + Asin(Arg1: number): number; + Asinh(Arg1: number): number; + Atan2(Arg1: number, Arg2: number): number; + Atanh(Arg1: number): number; + AveDev( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + Average( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + AverageIf(Arg1: Range, Arg2: any, Arg3?: any): number; + AverageIfs( + Arg1: Range, Arg2: Range, Arg3: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, + Arg13?: any, Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, + Arg25?: any, Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any): number; + BahtText(Arg1: number): string; + BesselI(Arg1: any, Arg2: any): number; + BesselJ(Arg1: any, Arg2: any): number; + BesselK(Arg1: any, Arg2: any): number; + BesselY(Arg1: any, Arg2: any): number; + Beta_Dist(Arg1: number, Arg2: number, Arg3: number, Arg4: boolean, Arg5?: any, Arg6?: any): number; + Beta_Inv(Arg1: number, Arg2: number, Arg3: number, Arg4?: any, Arg5?: any): number; + BetaDist(Arg1: number, Arg2: number, Arg3: number, Arg4?: any, Arg5?: any): number; + BetaInv(Arg1: number, Arg2: number, Arg3: number, Arg4?: any, Arg5?: any): number; + Bin2Dec(Arg1: any): string; + Bin2Hex(Arg1: any, Arg2?: any): string; + Bin2Oct(Arg1: any, Arg2?: any): string; + Binom_Dist(Arg1: number, Arg2: number, Arg3: number, Arg4: boolean): number; + Binom_Inv(Arg1: number, Arg2: number, Arg3: number): number; + BinomDist(Arg1: number, Arg2: number, Arg3: number, Arg4: boolean): number; + Ceiling(Arg1: number, Arg2: number): number; + Ceiling_Precise(Arg1: number, Arg2?: any): number; + ChiDist(Arg1: number, Arg2: number): number; + ChiInv(Arg1: number, Arg2: number): number; + ChiSq_Dist(Arg1: number, Arg2: number, Arg3: boolean): number; + ChiSq_Dist_RT(Arg1: number, Arg2: number): number; + ChiSq_Inv(Arg1: number, Arg2: number): number; + ChiSq_Inv_RT(Arg1: number, Arg2: number): number; + ChiSq_Test(Arg1: any, Arg2: any): number; + ChiTest(Arg1: any, Arg2: any): number; + Choose( + Arg1: any, Arg2: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): any; + Clean(Arg1: string): string; + Combin(Arg1: number, Arg2: number): number; + Complex(Arg1: any, Arg2: any, Arg3?: any): string; + Confidence(Arg1: number, Arg2: number, Arg3: number): number; + Confidence_Norm(Arg1: number, Arg2: number, Arg3: number): number; + Confidence_T(Arg1: number, Arg2: number, Arg3: number): number; + Convert(Arg1: any, Arg2: any, Arg3: any): number; + Correl(Arg1: any, Arg2: any): number; + Cosh(Arg1: number): number; + Count( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + CountA( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + CountBlank(Arg1: Range): number; + CountIf(Arg1: Range, Arg2: string | number): number; + CountIfs( + Arg1: Range, Arg2: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + CoupDayBs(Arg1: any, Arg2: any, Arg3: any, Arg4?: any): number; + CoupDays(Arg1: any, Arg2: any, Arg3: any, Arg4?: any): number; + CoupDaysNc(Arg1: any, Arg2: any, Arg3: any, Arg4?: any): number; + CoupNcd(Arg1: any, Arg2: any, Arg3: any, Arg4?: any): number; + CoupNum(Arg1: any, Arg2: any, Arg3: any, Arg4?: any): number; + CoupPcd(Arg1: any, Arg2: any, Arg3: any, Arg4?: any): number; + Covar(Arg1: any, Arg2: any): number; + Covariance_P(Arg1: any, Arg2: any): number; + Covariance_S(Arg1: any, Arg2: any): number; + readonly Creator: XlCreator; + CritBinom(Arg1: number, Arg2: number, Arg3: number): number; + CumIPmt(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6: any): number; + CumPrinc(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6: any): number; + DAverage(Arg1: Range, Arg2: any, Arg3: any): number; + Days360(Arg1: any, Arg2: any, Arg3?: any): number; + Db(Arg1: number, Arg2: number, Arg3: number, Arg4: number, Arg5?: any): number; + Dbcs(Arg1: string): string; + DCount(Arg1: Range, Arg2: any, Arg3: any): number; + DCountA(Arg1: Range, Arg2: any, Arg3: any): number; + Ddb(Arg1: number, Arg2: number, Arg3: number, Arg4: number, Arg5?: any): number; + Dec2Bin(Arg1: any, Arg2?: any): string; + Dec2Hex(Arg1: any, Arg2?: any): string; + Dec2Oct(Arg1: any, Arg2?: any): string; + Degrees(Arg1: number): number; + Delta(Arg1: any, Arg2?: any): number; + DevSq( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + DGet(Arg1: Range, Arg2: any, Arg3: any): any; + Disc(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5?: any): number; + DMax(Arg1: Range, Arg2: any, Arg3: any): number; + DMin(Arg1: Range, Arg2: any, Arg3: any): number; + Dollar(Arg1: number, Arg2?: any): string; + DollarDe(Arg1: any, Arg2: any): number; + DollarFr(Arg1: any, Arg2: any): number; + DProduct(Arg1: Range, Arg2: any, Arg3: any): number; + DStDev(Arg1: Range, Arg2: any, Arg3: any): number; + DStDevP(Arg1: Range, Arg2: any, Arg3: any): number; + DSum(Arg1: Range, Arg2: any, Arg3: any): number; + Dummy19( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): any; + Dummy21(Arg1: number, Arg2: number): number; + Duration(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6?: any): number; + DVar(Arg1: Range, Arg2: any, Arg3: any): number; + DVarP(Arg1: Range, Arg2: any, Arg3: any): number; + EDate(Arg1: any, Arg2: any): number; + Effect(Arg1: any, Arg2: any): number; + EoMonth(Arg1: any, Arg2: any): number; + Erf(Arg1: any, Arg2?: any): number; + Erf_Precise(Arg1: any): number; + ErfC(Arg1: any): number; + ErfC_Precise(Arg1: any): number; + Even(Arg1: number): number; + Expon_Dist(Arg1: number, Arg2: number, Arg3: boolean): number; + ExponDist(Arg1: number, Arg2: number, Arg3: boolean): number; + F_Dist(Arg1: number, Arg2: number, Arg3: number, Arg4: boolean): number; + F_Dist_RT(Arg1: number, Arg2: number, Arg3: number): number; + F_Inv(Arg1: number, Arg2: number, Arg3: number): number; + F_Inv_RT(Arg1: number, Arg2: number, Arg3: number): number; + F_Test(Arg1: any, Arg2: any): number; + Fact(Arg1: number): number; + FactDouble(Arg1: any): number; + FDist(Arg1: number, Arg2: number, Arg3: number): number; + Find(Arg1: string, Arg2: string, Arg3?: any): number; + FindB(Arg1: string, Arg2: string, Arg3?: any): number; + FInv(Arg1: number, Arg2: number, Arg3: number): number; + Fisher(Arg1: number): number; + FisherInv(Arg1: number): number; + Fixed(Arg1: number, Arg2?: any, Arg3?: any): string; + Floor(Arg1: number, Arg2: number): number; + Floor_Precise(Arg1: number, Arg2?: any): number; + Forecast(Arg1: number, Arg2: any, Arg3: any): number; + Frequency(Arg1: any, Arg2: any): any; + FTest(Arg1: any, Arg2: any): number; + Fv(Arg1: number, Arg2: number, Arg3: number, Arg4?: any, Arg5?: any): number; + FVSchedule(Arg1: any, Arg2: any): number; + Gamma_Dist(Arg1: number, Arg2: number, Arg3: number, Arg4: boolean): number; + Gamma_Inv(Arg1: number, Arg2: number, Arg3: number): number; + GammaDist(Arg1: number, Arg2: number, Arg3: number, Arg4: boolean): number; + GammaInv(Arg1: number, Arg2: number, Arg3: number): number; + GammaLn(Arg1: number): number; + GammaLn_Precise(Arg1: number): number; + Gcd( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + GeoMean( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + GeStep(Arg1: any, Arg2?: any): number; + Growth(Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any): any; + HarMean( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + Hex2Bin(Arg1: any, Arg2?: any): string; + Hex2Dec(Arg1: any): string; + Hex2Oct(Arg1: any, Arg2?: any): string; + HLookup(Arg1: any, Arg2: any, Arg3: any, Arg4?: any): any; + HypGeom_Dist(Arg1: number, Arg2: number, Arg3: number, Arg4: number, Arg5: boolean): number; + HypGeomDist(Arg1: number, Arg2: number, Arg3: number, Arg4: number): number; + IfError(Arg1: any, Arg2: any): any; + ImAbs(Arg1: any): string; + Imaginary(Arg1: any): number; + ImArgument(Arg1: any): string; + ImConjugate(Arg1: any): string; + ImCos(Arg1: any): string; + ImDiv(Arg1: any, Arg2: any): string; + ImExp(Arg1: any): string; + ImLn(Arg1: any): string; + ImLog10(Arg1: any): string; + ImLog2(Arg1: any): string; + ImPower(Arg1: any, Arg2: any): string; + ImProduct( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): string; + ImReal(Arg1: any): number; + ImSin(Arg1: any): string; + ImSqrt(Arg1: any): string; + ImSub(Arg1: any, Arg2: any): string; + ImSum( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): string; + Index(Arg1: any, Arg2: number, Arg3?: any, Arg4?: any): any; + Intercept(Arg1: any, Arg2: any): number; + IntRate(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5?: any): number; + Ipmt(Arg1: number, Arg2: number, Arg3: number, Arg4: number, Arg5?: any, Arg6?: any): number; + Irr(Arg1: any, Arg2?: any): number; + IsErr(Arg1: any): boolean; + IsError(Arg1: any): boolean; + IsEven(Arg1: any): boolean; + IsLogical(Arg1: any): boolean; + IsNA(Arg1: any): boolean; + IsNonText(Arg1: any): boolean; + IsNumber(Arg1: any): boolean; + ISO_Ceiling(Arg1: number, Arg2?: any): number; + IsOdd(Arg1: any): boolean; + Ispmt(Arg1: number, Arg2: number, Arg3: number, Arg4: number): number; + IsText(Arg1: any): boolean; + IsThaiDigit(Arg1: string): boolean; + Kurt( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + Large(Arg1: any, Arg2: number): number; + Lcm( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + LinEst(Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any): any; + Ln(Arg1: number): number; + Log(Arg1: number, Arg2?: any): number; + Log10(Arg1: number): number; + LogEst(Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any): any; + LogInv(Arg1: number, Arg2: number, Arg3: number): number; + LogNorm_Dist(Arg1: number, Arg2: number, Arg3: number, Arg4: boolean): number; + LogNorm_Inv(Arg1: number, Arg2: number, Arg3: number): number; + LogNormDist(Arg1: number, Arg2: number, Arg3: number): number; + Lookup(Arg1: any, Arg2: any, Arg3?: any): any; + Match(Arg1: any, Arg2: any, Arg3?: any): number; + Max( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + MDeterm(Arg1: any): number; + MDuration(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6?: any): number; + Median( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + Min( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + MInverse(Arg1: any): any; + MIrr(Arg1: any, Arg2: number, Arg3: number): number; + MMult(Arg1: any, Arg2: any): any; + Mode( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + Mode_Mult( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): any; + Mode_Sngl( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + MRound(Arg1: any, Arg2: any): number; + MultiNomial( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + NegBinom_Dist(Arg1: number, Arg2: number, Arg3: number, Arg4: boolean): number; + NegBinomDist(Arg1: number, Arg2: number, Arg3: number): number; + NetworkDays(Arg1: any, Arg2: any, Arg3?: any): number; + NetworkDays_Intl(Arg1: any, Arg2: any, Arg3?: any, Arg4?: any): number; + Nominal(Arg1: any, Arg2: any): number; + Norm_Dist(Arg1: number, Arg2: number, Arg3: number, Arg4: boolean): number; + Norm_Inv(Arg1: number, Arg2: number, Arg3: number): number; + Norm_S_Dist(Arg1: number, Arg2: boolean): number; + Norm_S_Inv(Arg1: number): number; + NormDist(Arg1: number, Arg2: number, Arg3: number, Arg4: boolean): number; + NormInv(Arg1: number, Arg2: number, Arg3: number): number; + NormSDist(Arg1: number): number; + NormSInv(Arg1: number): number; + NPer(Arg1: number, Arg2: number, Arg3: number, Arg4?: any, Arg5?: any): number; + Npv( + Arg1: number, Arg2: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, + Arg13?: any, Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, + Arg25?: any, Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + Oct2Bin(Arg1: any, Arg2?: any): string; + Oct2Dec(Arg1: any): string; + Oct2Hex(Arg1: any, Arg2?: any): string; + Odd(Arg1: number): number; + OddFPrice(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6: any, Arg7: any, Arg8: any, Arg9?: any): number; + OddFYield(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6: any, Arg7: any, Arg8: any, Arg9?: any): number; + OddLPrice(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6: any, Arg7: any, Arg8?: any): number; + OddLYield(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6: any, Arg7: any, Arg8?: any): number; + Or( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): boolean; + readonly Parent: any; + Pearson(Arg1: any, Arg2: any): number; + Percentile(Arg1: any, Arg2: number): number; + Percentile_Exc(Arg1: any, Arg2: number): number; + Percentile_Inc(Arg1: any, Arg2: number): number; + PercentRank(Arg1: any, Arg2: number, Arg3?: any): number; + PercentRank_Exc(Arg1: any, Arg2: number, Arg3?: any): number; + PercentRank_Inc(Arg1: any, Arg2: number, Arg3?: any): number; + Permut(Arg1: number, Arg2: number): number; + Phonetic(Arg1: Range): string; + Pi(): number; + Pmt(Arg1: number, Arg2: number, Arg3: number, Arg4?: any, Arg5?: any): number; + Poisson(Arg1: number, Arg2: number, Arg3: boolean): number; + Poisson_Dist(Arg1: number, Arg2: number, Arg3: boolean): number; + Power(Arg1: number, Arg2: number): number; + Ppmt(Arg1: number, Arg2: number, Arg3: number, Arg4: number, Arg5?: any, Arg6?: any): number; + Price(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6: any, Arg7?: any): number; + PriceDisc(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5?: any): number; + PriceMat(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6?: any): number; + Prob(Arg1: any, Arg2: any, Arg3: number, Arg4?: any): number; + Product( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + Proper(Arg1: string): string; + Pv(Arg1: number, Arg2: number, Arg3: number, Arg4?: any, Arg5?: any): number; + Quartile(Arg1: any, Arg2: number): number; + Quartile_Exc(Arg1: any, Arg2: number): number; + Quartile_Inc(Arg1: any, Arg2: number): number; + Quotient(Arg1: any, Arg2: any): number; + Radians(Arg1: number): number; + RandBetween(Arg1: any, Arg2: any): number; + Rank(Arg1: number, Arg2: Range, Arg3?: any): number; + Rank_Avg(Arg1: number, Arg2: Range, Arg3?: any): number; + Rank_Eq(Arg1: number, Arg2: Range, Arg3?: any): number; + Rate(Arg1: number, Arg2: number, Arg3: number, Arg4?: any, Arg5?: any, Arg6?: any): number; + Received(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5?: any): number; + Replace(Arg1: string, Arg2: number, Arg3: number, Arg4: string): string; + ReplaceB(Arg1: string, Arg2: number, Arg3: number, Arg4: string): string; + Rept(Arg1: string, Arg2: number): string; + Roman(Arg1: number, Arg2?: any): string; + Round(Arg1: number, Arg2: number): number; + RoundBahtDown(Arg1: number): number; + RoundBahtUp(Arg1: number): number; + RoundDown(Arg1: number, Arg2: number): number; + RoundUp(Arg1: number, Arg2: number): number; + RSq(Arg1: any, Arg2: any): number; + RTD( + progID: any, server: any, topic1: any, topic2?: any, topic3?: any, topic4?: any, topic5?: any, topic6?: any, topic7?: any, topic8?: any, topic9?: any, + topic10?: any, topic11?: any, topic12?: any, topic13?: any, topic14?: any, topic15?: any, topic16?: any, topic17?: any, topic18?: any, topic19?: any, + topic20?: any, topic21?: any, topic22?: any, topic23?: any, topic24?: any, topic25?: any, topic26?: any, topic27?: any, topic28?: any): any; + Search(Arg1: string, Arg2: string, Arg3?: any): number; + SearchB(Arg1: string, Arg2: string, Arg3?: any): number; + SeriesSum(Arg1: any, Arg2: any, Arg3: any, Arg4: any): number; + Sinh(Arg1: number): number; + Skew( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + Sln(Arg1: number, Arg2: number, Arg3: number): number; + Slope(Arg1: any, Arg2: any): number; + Small(Arg1: any, Arg2: number): number; + SqrtPi(Arg1: any): number; + Standardize(Arg1: number, Arg2: number, Arg3: number): number; + StDev( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + StDev_P( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + StDev_S( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + StDevP( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + StEyx(Arg1: any, Arg2: any): number; + Substitute(Arg1: string, Arg2: string, Arg3: string, Arg4?: any): string; + Subtotal( + Arg1: number, Arg2: Range, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, + Arg13?: any, Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, + Arg25?: any, Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + Sum( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + SumIf(Arg1: Range, Arg2: any, Arg3?: any): number; + SumIfs( + Arg1: Range, Arg2: Range, Arg3: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, + Arg13?: any, Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, + Arg25?: any, Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any): number; + SumProduct( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + SumSq( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + SumX2MY2(Arg1: any, Arg2: any): number; + SumX2PY2(Arg1: any, Arg2: any): number; + SumXMY2(Arg1: any, Arg2: any): number; + Syd(Arg1: number, Arg2: number, Arg3: number, Arg4: number): number; + T_Dist(Arg1: number, Arg2: number, Arg3: boolean): number; + T_Dist_2T(Arg1: number, Arg2: number): number; + T_Dist_RT(Arg1: number, Arg2: number): number; + T_Inv(Arg1: number, Arg2: number): number; + T_Inv_2T(Arg1: number, Arg2: number): number; + T_Test(Arg1: any, Arg2: any, Arg3: number, Arg4: number): number; + Tanh(Arg1: number): number; + TBillEq(Arg1: any, Arg2: any, Arg3?: any): number; + TBillPrice(Arg1: any, Arg2: any, Arg3?: any): number; + TBillYield(Arg1: any, Arg2: any, Arg3?: any): number; + TDist(Arg1: number, Arg2: number, Arg3: number): number; + Text(Arg1: any, Arg2: string): string; + ThaiDayOfWeek(Arg1: number): string; + ThaiDigit(Arg1: string): string; + ThaiMonthOfYear(Arg1: number): string; + ThaiNumSound(Arg1: number): string; + ThaiNumString(Arg1: number): string; + ThaiStringLength(Arg1: string): number; + ThaiYear(Arg1: number): number; + TInv(Arg1: number, Arg2: number): number; + Transpose(Arg1: any): any; + Trend(Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any): any; + Trim(Arg1: string): string; + TrimMean(Arg1: any, Arg2: number): number; + TTest(Arg1: any, Arg2: any, Arg3: number, Arg4: number): number; + USDollar(Arg1: number, Arg2: number): string; + Var( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + Var_P( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + Var_S( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + VarP( + Arg1: any, Arg2?: any, Arg3?: any, Arg4?: any, Arg5?: any, Arg6?: any, Arg7?: any, Arg8?: any, Arg9?: any, Arg10?: any, Arg11?: any, Arg12?: any, Arg13?: any, + Arg14?: any, Arg15?: any, Arg16?: any, Arg17?: any, Arg18?: any, Arg19?: any, Arg20?: any, Arg21?: any, Arg22?: any, Arg23?: any, Arg24?: any, Arg25?: any, + Arg26?: any, Arg27?: any, Arg28?: any, Arg29?: any, Arg30?: any): number; + Vdb(Arg1: number, Arg2: number, Arg3: number, Arg4: number, Arg5: number, Arg6?: any, Arg7?: any): number; + VLookup(Arg1: any, Arg2: any, Arg3: any, Arg4?: any): any; + Weekday(Arg1: any, Arg2?: any): number; + WeekNum(Arg1: any, Arg2?: any): number; + Weibull(Arg1: number, Arg2: number, Arg3: number, Arg4: boolean): number; + Weibull_Dist(Arg1: number, Arg2: number, Arg3: number, Arg4: boolean): number; + WorkDay(Arg1: any, Arg2: any, Arg3?: any): number; + WorkDay_Intl(Arg1: any, Arg2: any, Arg3?: any, Arg4?: any): number; + Xirr(Arg1: any, Arg2: any, Arg3?: any): number; + Xnpv(Arg1: any, Arg2: any): number; + YearFrac(Arg1: any, Arg2: any, Arg3?: any): number; + YieldDisc(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5?: any): number; + YieldMat(Arg1: any, Arg2: any, Arg3: any, Arg4: any, Arg5: any, Arg6?: any): number; + Z_Test(Arg1: any, Arg2: number, Arg3?: any): number; + ZTest(Arg1: any, Arg2: number, Arg3?: any): number; + } + + class XmlDataBinding { + private 'Excel.XmlDataBinding_typekey': XmlDataBinding; + private constructor(); + readonly _Default: string; + readonly Application: Application; + ClearSettings(): void; + readonly Creator: XlCreator; + LoadSettings(Url: string): void; + readonly Parent: any; + Refresh(): XlXmlImportResult; + readonly SourceUrl: string; + } + + class XmlMap { + private 'Excel.XmlMap_typekey': XmlMap; + private constructor(); + readonly _Default: string; + AdjustColumnWidth: boolean; + AppendOnImport: boolean; + readonly Application: Application; + readonly Creator: XlCreator; + readonly DataBinding: XmlDataBinding; + Delete(): void; + Export(Url: string, Overwrite?: any): XlXmlExportResult; + ExportXml(Data: string): XlXmlExportResult; + Import(Url: string, Overwrite?: any): XlXmlImportResult; + ImportXml(XmlData: string, Overwrite?: any): XlXmlImportResult; + readonly IsExportable: boolean; + Name: string; + readonly Parent: any; + PreserveColumnFilter: boolean; + PreserveNumberFormatting: boolean; + readonly RootElementName: string; + readonly RootElementNamespace: XmlNamespace; + SaveDataSourceDefinition: boolean; + readonly Schemas: XmlSchemas; + ShowImportExportValidationErrors: boolean; + readonly WorkbookConnection: WorkbookConnection; + } + + class XmlMaps { + private 'Excel.XmlMaps_typekey': XmlMaps; + private constructor(); + _Default(Index: any): XmlMap; + Add(Schema: string, RootElementName?: any): XmlMap; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): XmlMap; + readonly Parent: any; + } + + class XmlNamespace { + private 'Excel.XmlNamespace_typekey': XmlNamespace; + private constructor(); + readonly _Default: string; + readonly Application: Application; + readonly Creator: XlCreator; + readonly Parent: any; + readonly Prefix: string; + readonly Uri: string; + } + + class XmlNamespaces { + private 'Excel.XmlNamespaces_typekey': XmlNamespaces; + private constructor(); + _Default(Index: any): XmlNamespace; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + InstallManifest(Path: string, InstallForAllUsers?: any): void; + Item(Index: any): XmlNamespace; + readonly Parent: any; + readonly Value: string; + } + + class XmlSchema { + private 'Excel.XmlSchema_typekey': XmlSchema; + private constructor(); + readonly Application: Application; + readonly Creator: XlCreator; + readonly Name: string; + readonly Namespace: XmlNamespace; + readonly Parent: any; + readonly XML: string; + } + + class XmlSchemas { + private 'Excel.XmlSchemas_typekey': XmlSchemas; + private constructor(); + _Default(Index: any): XmlSchema; + readonly Application: Application; + readonly Count: number; + readonly Creator: XlCreator; + Item(Index: any): XmlSchema; + readonly Parent: any; + } + + class XPath { + private 'Excel.XPath_typekey': XPath; + private constructor(); + readonly _Default: string; + readonly Application: Application; + Clear(): void; + readonly Creator: XlCreator; + readonly Map: XmlMap; + readonly Parent: any; + readonly Repeating: boolean; + SetValue(Map: XmlMap, XPath: string, SelectionNamespace?: any, Repeating?: any): void; + readonly Value: string; + } + + namespace EventHelperTypes { + type Application_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + type Chart_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + type OLEObject_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + type QueryTable_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + type Workbook_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + type Worksheet_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + interface Application_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + + interface Chart_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + + interface OLEObject_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + + interface QueryTable_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + + interface Workbook_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + + interface Worksheet_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + } +} + +interface ActiveXObject { + on( + obj: Excel.Application, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: Excel.Application, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: Excel.Application, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: Excel.Application, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: Excel.Application, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: Excel.Application, parameter: {pctinfo: number}) => void): void; + on( + obj: Excel.Application, event: 'Invoke', argNames: Excel.EventHelperTypes.Application_Invoke_ArgNames, handler: ( + this: Excel.Application, parameter: Excel.EventHelperTypes.Application_Invoke_Parameter) => void): void; + on( + obj: Excel.Application, event: 'NewWorkbook' | 'WorkbookActivate' | 'WorkbookAddinInstall' | 'WorkbookAddinUninstall' | 'WorkbookDeactivate' | 'WorkbookOpen', + argNames: ['Wb'], handler: (this: Excel.Application, parameter: {readonly Wb: Excel.Workbook}) => void): void; + on( + obj: Excel.Application, event: 'ProtectedViewWindowActivate' | 'ProtectedViewWindowDeactivate' | 'ProtectedViewWindowOpen' | 'ProtectedViewWindowResize', + argNames: ['Pvw'], handler: (this: Excel.Application, parameter: {readonly Pvw: Excel.ProtectedViewWindow}) => void): void; + on( + obj: Excel.Application, event: 'ProtectedViewWindowBeforeClose', argNames: ['Pvw', 'Reason', 'Cancel'], handler: ( + this: Excel.Application, parameter: {readonly Pvw: Excel.ProtectedViewWindow, readonly Reason: Excel.XlProtectedViewCloseReason, Cancel: boolean}) => void): void; + on( + obj: Excel.Application, event: 'ProtectedViewWindowBeforeEdit', argNames: ['Pvw', 'Cancel'], handler: ( + this: Excel.Application, parameter: {readonly Pvw: Excel.ProtectedViewWindow, Cancel: boolean}) => void): void; + on(obj: Excel.Application, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: (this: Excel.Application, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on(obj: Excel.Application, event: 'SheetActivate' | 'SheetCalculate' | 'SheetDeactivate', argNames: ['Sh'], handler: (this: Excel.Application, parameter: {readonly Sh: any}) => void): void; + on( + obj: Excel.Application, event: 'SheetBeforeDoubleClick' | 'SheetBeforeRightClick', argNames: ['Sh', 'Target', 'Cancel'], handler: ( + this: Excel.Application, parameter: {readonly Sh: any, readonly Target: Excel.Range, Cancel: boolean}) => void): void; + on( + obj: Excel.Application, event: 'SheetChange' | 'SheetSelectionChange', argNames: ['Sh', 'Target'], handler: ( + this: Excel.Application, parameter: {readonly Sh: any, readonly Target: Excel.Range}) => void): void; + on( + obj: Excel.Application, event: 'SheetFollowHyperlink', argNames: ['Sh', 'Target'], handler: ( + this: Excel.Application, parameter: {readonly Sh: any, readonly Target: Excel.Hyperlink}) => void): void; + on( + obj: Excel.Application, event: 'SheetPivotTableAfterValueChange', argNames: ['Sh', 'TargetPivotTable', 'TargetRange'], handler: ( + this: Excel.Application, parameter: {readonly Sh: any, readonly TargetPivotTable: Excel.PivotTable, readonly TargetRange: Excel.Range}) => void): void; + on( + obj: Excel.Application, event: 'SheetPivotTableBeforeAllocateChanges' | 'SheetPivotTableBeforeCommitChanges', + argNames: ['Sh', 'TargetPivotTable', 'ValueChangeStart', 'ValueChangeEnd', 'Cancel'], handler: ( + this: Excel.Application, + parameter: {readonly Sh: any, readonly TargetPivotTable: Excel.PivotTable, readonly ValueChangeStart: number, readonly ValueChangeEnd: number, Cancel: boolean}) => void): void; + on( + obj: Excel.Application, event: 'SheetPivotTableBeforeDiscardChanges', argNames: ['Sh', 'TargetPivotTable', 'ValueChangeStart', 'ValueChangeEnd'], + handler: ( + this: Excel.Application, parameter: {readonly Sh: any, readonly TargetPivotTable: Excel.PivotTable, readonly ValueChangeStart: number, readonly ValueChangeEnd: number}) => void): void; + on( + obj: Excel.Application, event: 'SheetPivotTableUpdate', argNames: ['Sh', 'Target'], handler: ( + this: Excel.Application, parameter: {readonly Sh: any, readonly Target: Excel.PivotTable}) => void): void; + on( + obj: Excel.Application, event: 'WindowActivate' | 'WindowDeactivate' | 'WindowResize', argNames: ['Wb', 'Wn'], handler: ( + this: Excel.Application, parameter: {readonly Wb: Excel.Workbook, readonly Wn: Excel.Window}) => void): void; + on( + obj: Excel.Application, event: 'WorkbookAfterSave', argNames: ['Wb', 'Success'], handler: ( + this: Excel.Application, parameter: {readonly Wb: Excel.Workbook, readonly Success: boolean}) => void): void; + on( + obj: Excel.Application, event: 'WorkbookAfterXmlExport', argNames: ['Wb', 'Map', 'Url', 'Result'], handler: ( + this: Excel.Application, parameter: {readonly Wb: Excel.Workbook, readonly Map: Excel.XmlMap, readonly Url: string, readonly Result: Excel.XlXmlExportResult}) => void): void; + on( + obj: Excel.Application, event: 'WorkbookAfterXmlImport', argNames: ['Wb', 'Map', 'IsRefresh', 'Result'], handler: ( + this: Excel.Application, parameter: {readonly Wb: Excel.Workbook, readonly Map: Excel.XmlMap, readonly IsRefresh: boolean, readonly Result: Excel.XlXmlImportResult}) => void): void; + on( + obj: Excel.Application, event: 'WorkbookBeforeClose' | 'WorkbookBeforePrint', argNames: ['Wb', 'Cancel'], handler: ( + this: Excel.Application, parameter: {readonly Wb: Excel.Workbook, Cancel: boolean}) => void): void; + on( + obj: Excel.Application, event: 'WorkbookBeforeSave', argNames: ['Wb', 'SaveAsUI', 'Cancel'], handler: ( + this: Excel.Application, parameter: {readonly Wb: Excel.Workbook, readonly SaveAsUI: boolean, Cancel: boolean}) => void): void; + on( + obj: Excel.Application, event: 'WorkbookBeforeXmlExport', argNames: ['Wb', 'Map', 'Url', 'Cancel'], handler: ( + this: Excel.Application, parameter: {readonly Wb: Excel.Workbook, readonly Map: Excel.XmlMap, readonly Url: string, Cancel: boolean}) => void): void; + on( + obj: Excel.Application, event: 'WorkbookBeforeXmlImport', argNames: ['Wb', 'Map', 'Url', 'IsRefresh', 'Cancel'], handler: ( + this: Excel.Application, parameter: {readonly Wb: Excel.Workbook, readonly Map: Excel.XmlMap, readonly Url: string, readonly IsRefresh: boolean, Cancel: boolean}) => void): void; + on(obj: Excel.Application, event: 'WorkbookNewChart', argNames: ['Wb', 'Ch'], handler: (this: Excel.Application, parameter: {readonly Wb: Excel.Workbook, readonly Ch: Excel.Chart}) => void): void; + on(obj: Excel.Application, event: 'WorkbookNewSheet', argNames: ['Wb', 'Sh'], handler: (this: Excel.Application, parameter: {readonly Wb: Excel.Workbook, readonly Sh: any}) => void): void; + on( + obj: Excel.Application, event: 'WorkbookPivotTableCloseConnection' | 'WorkbookPivotTableOpenConnection', argNames: ['Wb', 'Target'], + handler: (this: Excel.Application, parameter: {readonly Wb: Excel.Workbook, readonly Target: Excel.PivotTable}) => void): void; + on( + obj: Excel.Application, event: 'WorkbookRowsetComplete', argNames: ['Wb', 'Description', 'Sheet', 'Success'], handler: ( + this: Excel.Application, parameter: {readonly Wb: Excel.Workbook, readonly Description: string, readonly Sheet: string, readonly Success: boolean}) => void): void; + on( + obj: Excel.Application, event: 'WorkbookSync', argNames: ['Wb', 'SyncEventType'], handler: ( + this: Excel.Application, parameter: {readonly Wb: Excel.Workbook, readonly SyncEventType: Office.MsoSyncEventType}) => void): void; + on( + obj: Excel.Chart, event: 'BeforeDoubleClick', argNames: ['ElementID', 'Arg1', 'Arg2', 'Cancel'], handler: ( + this: Excel.Chart, parameter: {readonly ElementID: number, readonly Arg1: number, readonly Arg2: number, Cancel: boolean}) => void): void; + on(obj: Excel.Chart, event: 'BeforeRightClick', argNames: ['Cancel'], handler: (this: Excel.Chart, parameter: {Cancel: boolean}) => void): void; + on( + obj: Excel.Chart, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: Excel.Chart, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: Excel.Chart, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: Excel.Chart, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: Excel.Chart, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: Excel.Chart, parameter: {pctinfo: number}) => void): void; + on(obj: Excel.Chart, event: 'Invoke', argNames: Excel.EventHelperTypes.Chart_Invoke_ArgNames, handler: (this: Excel.Chart, parameter: Excel.EventHelperTypes.Chart_Invoke_Parameter) => void): void; + on( + obj: Excel.Chart, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'x', 'y'], handler: ( + this: Excel.Chart, parameter: {readonly Button: number, readonly Shift: number, readonly x: number, readonly y: number}) => void): void; + on(obj: Excel.Chart, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: (this: Excel.Chart, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on( + obj: Excel.Chart, event: 'Select', argNames: ['ElementID', 'Arg1', 'Arg2'], handler: ( + this: Excel.Chart, parameter: {readonly ElementID: number, readonly Arg1: number, readonly Arg2: number}) => void): void; + on( + obj: Excel.Chart, event: 'SeriesChange', argNames: ['SeriesIndex', 'PointIndex'], handler: ( + this: Excel.Chart, parameter: {readonly SeriesIndex: number, readonly PointIndex: number}) => void): void; + on( + obj: Excel.OLEObject, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: Excel.OLEObject, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: Excel.OLEObject, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: Excel.OLEObject, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: Excel.OLEObject, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: Excel.OLEObject, parameter: {pctinfo: number}) => void): void; + on( + obj: Excel.OLEObject, event: 'Invoke', argNames: Excel.EventHelperTypes.OLEObject_Invoke_ArgNames, handler: ( + this: Excel.OLEObject, parameter: Excel.EventHelperTypes.OLEObject_Invoke_Parameter) => void): void; + on(obj: Excel.OLEObject, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: (this: Excel.OLEObject, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on(obj: Excel.QueryTable, event: 'AfterRefresh', argNames: ['Success'], handler: (this: Excel.QueryTable, parameter: {readonly Success: boolean}) => void): void; + on(obj: Excel.QueryTable, event: 'BeforeRefresh', argNames: ['Cancel'], handler: (this: Excel.QueryTable, parameter: {Cancel: boolean}) => void): void; + on( + obj: Excel.QueryTable, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: Excel.QueryTable, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: Excel.QueryTable, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: Excel.QueryTable, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: Excel.QueryTable, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: Excel.QueryTable, parameter: {pctinfo: number}) => void): void; + on( + obj: Excel.QueryTable, event: 'Invoke', argNames: Excel.EventHelperTypes.QueryTable_Invoke_ArgNames, handler: ( + this: Excel.QueryTable, parameter: Excel.EventHelperTypes.QueryTable_Invoke_Parameter) => void): void; + on(obj: Excel.QueryTable, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: (this: Excel.QueryTable, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on(obj: Excel.Workbook, event: 'AfterSave', argNames: ['Success'], handler: (this: Excel.Workbook, parameter: {readonly Success: boolean}) => void): void; + on( + obj: Excel.Workbook, event: 'AfterXmlExport', argNames: ['Map', 'Url', 'Result'], handler: ( + this: Excel.Workbook, parameter: {readonly Map: Excel.XmlMap, readonly Url: string, readonly Result: Excel.XlXmlExportResult}) => void): void; + on( + obj: Excel.Workbook, event: 'AfterXmlImport', argNames: ['Map', 'IsRefresh', 'Result'], handler: ( + this: Excel.Workbook, parameter: {readonly Map: Excel.XmlMap, readonly IsRefresh: boolean, readonly Result: Excel.XlXmlImportResult}) => void): void; + on(obj: Excel.Workbook, event: 'BeforeClose' | 'BeforePrint', argNames: ['Cancel'], handler: (this: Excel.Workbook, parameter: {Cancel: boolean}) => void): void; + on(obj: Excel.Workbook, event: 'BeforeSave', argNames: ['SaveAsUI', 'Cancel'], handler: (this: Excel.Workbook, parameter: {readonly SaveAsUI: boolean, Cancel: boolean}) => void): void; + on( + obj: Excel.Workbook, event: 'BeforeXmlExport', argNames: ['Map', 'Url', 'Cancel'], handler: ( + this: Excel.Workbook, parameter: {readonly Map: Excel.XmlMap, readonly Url: string, Cancel: boolean}) => void): void; + on( + obj: Excel.Workbook, event: 'BeforeXmlImport', argNames: ['Map', 'Url', 'IsRefresh', 'Cancel'], handler: ( + this: Excel.Workbook, parameter: {readonly Map: Excel.XmlMap, readonly Url: string, readonly IsRefresh: boolean, Cancel: boolean}) => void): void; + on( + obj: Excel.Workbook, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: Excel.Workbook, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: Excel.Workbook, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: Excel.Workbook, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: Excel.Workbook, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: Excel.Workbook, parameter: {pctinfo: number}) => void): void; + on( + obj: Excel.Workbook, event: 'Invoke', argNames: Excel.EventHelperTypes.Workbook_Invoke_ArgNames, handler: ( + this: Excel.Workbook, parameter: Excel.EventHelperTypes.Workbook_Invoke_Parameter) => void): void; + on(obj: Excel.Workbook, event: 'NewChart', argNames: ['Ch'], handler: (this: Excel.Workbook, parameter: {readonly Ch: Excel.Chart}) => void): void; + on(obj: Excel.Workbook, event: 'NewSheet' | 'SheetActivate' | 'SheetCalculate' | 'SheetDeactivate', argNames: ['Sh'], handler: (this: Excel.Workbook, parameter: {readonly Sh: any}) => void): void; + on( + obj: Excel.Workbook, event: 'PivotTableCloseConnection' | 'PivotTableOpenConnection', argNames: ['Target'], handler: ( + this: Excel.Workbook, parameter: {readonly Target: Excel.PivotTable}) => void): void; + on(obj: Excel.Workbook, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: (this: Excel.Workbook, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on( + obj: Excel.Workbook, event: 'RowsetComplete', argNames: ['Description', 'Sheet', 'Success'], handler: ( + this: Excel.Workbook, parameter: {readonly Description: string, readonly Sheet: string, readonly Success: boolean}) => void): void; + on( + obj: Excel.Workbook, event: 'SheetBeforeDoubleClick' | 'SheetBeforeRightClick', argNames: ['Sh', 'Target', 'Cancel'], handler: ( + this: Excel.Workbook, parameter: {readonly Sh: any, readonly Target: Excel.Range, Cancel: boolean}) => void): void; + on( + obj: Excel.Workbook, event: 'SheetChange' | 'SheetSelectionChange', argNames: ['Sh', 'Target'], handler: ( + this: Excel.Workbook, parameter: {readonly Sh: any, readonly Target: Excel.Range}) => void): void; + on(obj: Excel.Workbook, event: 'SheetFollowHyperlink', argNames: ['Sh', 'Target'], handler: (this: Excel.Workbook, parameter: {readonly Sh: any, readonly Target: Excel.Hyperlink}) => void): void; + on( + obj: Excel.Workbook, event: 'SheetPivotTableAfterValueChange', argNames: ['Sh', 'TargetPivotTable', 'TargetRange'], handler: ( + this: Excel.Workbook, parameter: {readonly Sh: any, readonly TargetPivotTable: Excel.PivotTable, readonly TargetRange: Excel.Range}) => void): void; + on( + obj: Excel.Workbook, event: 'SheetPivotTableBeforeAllocateChanges' | 'SheetPivotTableBeforeCommitChanges', + argNames: ['Sh', 'TargetPivotTable', 'ValueChangeStart', 'ValueChangeEnd', 'Cancel'], handler: ( + this: Excel.Workbook, + parameter: {readonly Sh: any, readonly TargetPivotTable: Excel.PivotTable, readonly ValueChangeStart: number, readonly ValueChangeEnd: number, Cancel: boolean}) => void): void; + on( + obj: Excel.Workbook, event: 'SheetPivotTableBeforeDiscardChanges', argNames: ['Sh', 'TargetPivotTable', 'ValueChangeStart', 'ValueChangeEnd'], + handler: (this: Excel.Workbook, parameter: {readonly Sh: any, readonly TargetPivotTable: Excel.PivotTable, readonly ValueChangeStart: number, readonly ValueChangeEnd: number}) => void): void; + on( + obj: Excel.Workbook, event: 'SheetPivotTableChangeSync' | 'SheetPivotTableUpdate', argNames: ['Sh', 'Target'], handler: ( + this: Excel.Workbook, parameter: {readonly Sh: any, readonly Target: Excel.PivotTable}) => void): void; + on(obj: Excel.Workbook, event: 'Sync', argNames: ['SyncEventType'], handler: (this: Excel.Workbook, parameter: {readonly SyncEventType: Office.MsoSyncEventType}) => void): void; + on(obj: Excel.Workbook, event: 'WindowActivate' | 'WindowDeactivate' | 'WindowResize', argNames: ['Wn'], handler: (this: Excel.Workbook, parameter: {readonly Wn: Excel.Window}) => void): void; + on( + obj: Excel.Worksheet, event: 'BeforeDoubleClick' | 'BeforeRightClick', argNames: ['Target', 'Cancel'], handler: ( + this: Excel.Worksheet, parameter: {readonly Target: Excel.Range, Cancel: boolean}) => void): void; + on(obj: Excel.Worksheet, event: 'Change' | 'SelectionChange', argNames: ['Target'], handler: (this: Excel.Worksheet, parameter: {readonly Target: Excel.Range}) => void): void; + on(obj: Excel.Worksheet, event: 'FollowHyperlink', argNames: ['Target'], handler: (this: Excel.Worksheet, parameter: {readonly Target: Excel.Hyperlink}) => void): void; + on( + obj: Excel.Worksheet, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: Excel.Worksheet, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: Excel.Worksheet, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: Excel.Worksheet, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: Excel.Worksheet, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: Excel.Worksheet, parameter: {pctinfo: number}) => void): void; + on( + obj: Excel.Worksheet, event: 'Invoke', argNames: Excel.EventHelperTypes.Worksheet_Invoke_ArgNames, handler: ( + this: Excel.Worksheet, parameter: Excel.EventHelperTypes.Worksheet_Invoke_Parameter) => void): void; + on( + obj: Excel.Worksheet, event: 'PivotTableAfterValueChange', argNames: ['TargetPivotTable', 'TargetRange'], handler: ( + this: Excel.Worksheet, parameter: {readonly TargetPivotTable: Excel.PivotTable, readonly TargetRange: Excel.Range}) => void): void; + on( + obj: Excel.Worksheet, event: 'PivotTableBeforeAllocateChanges' | 'PivotTableBeforeCommitChanges', + argNames: ['TargetPivotTable', 'ValueChangeStart', 'ValueChangeEnd', 'Cancel'], handler: ( + this: Excel.Worksheet, parameter: {readonly TargetPivotTable: Excel.PivotTable, readonly ValueChangeStart: number, readonly ValueChangeEnd: number, Cancel: boolean}) => void): void; + on( + obj: Excel.Worksheet, event: 'PivotTableBeforeDiscardChanges', argNames: ['TargetPivotTable', 'ValueChangeStart', 'ValueChangeEnd'], + handler: (this: Excel.Worksheet, parameter: {readonly TargetPivotTable: Excel.PivotTable, readonly ValueChangeStart: number, readonly ValueChangeEnd: number}) => void): void; + on(obj: Excel.Worksheet, event: 'PivotTableChangeSync' | 'PivotTableUpdate', argNames: ['Target'], handler: (this: Excel.Worksheet, parameter: {readonly Target: Excel.PivotTable}) => void): void; + on(obj: Excel.Worksheet, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: (this: Excel.Worksheet, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on(obj: Excel.Application, event: 'AddRef' | 'AfterCalculate' | 'Release', handler: (this: Excel.Application, parameter: {}) => void): void; + on(obj: Excel.Chart, event: 'Activate' | 'AddRef' | 'Calculate' | 'Deactivate' | 'DragOver' | 'DragPlot' | 'Release' | 'Resize', handler: (this: Excel.Chart, parameter: {}) => void): void; + on(obj: Excel.OLEObject, event: 'AddRef' | 'GotFocus' | 'LostFocus' | 'Release', handler: (this: Excel.OLEObject, parameter: {}) => void): void; + on(obj: Excel.QueryTable, event: 'AddRef' | 'Release', handler: (this: Excel.QueryTable, parameter: {}) => void): void; + on(obj: Excel.Workbook, event: 'Activate' | 'AddinInstall' | 'AddinUninstall' | 'AddRef' | 'Deactivate' | 'Open' | 'Release', handler: (this: Excel.Workbook, parameter: {}) => void): void; + on(obj: Excel.Worksheet, event: 'Activate' | 'AddRef' | 'Calculate' | 'Deactivate' | 'Release', handler: (this: Excel.Worksheet, parameter: {}) => void): void; + set(obj: Excel.Chart, propertyName: 'HasAxis', parameterTypes: [any, any], newValue: any): void; + set(obj: Excel.Workbook, propertyName: 'Colors', parameterTypes: [any], newValue: any): void; + set(obj: Excel.Range, propertyName: 'Value', parameterTypes: [Excel.XlRangeValueDataType], newValue: any): void; + set(obj: Excel.Range, propertyName: 'Value', newValue: any): void; // because Value is defined on the type as a method, not a property + new(progid: K): ActiveXObjectNameMap[K]; +} + +interface ActiveXObjectNameMap { + 'Excel.Application': Excel.Application; + 'Excel.Chart': Excel.Chart; + 'Excel.Sheet': Excel.Worksheet; +} + +interface EnumeratorConstructor { + new(col: Excel.Actions): Enumerator; + new(col: Excel.AddIns | Excel.AddIns2): Enumerator; + new(col: Excel.AllowEditRanges): Enumerator; + new(col: Excel.Areas | Excel.Ranges): Enumerator; + new(col: Excel.Borders): Enumerator; + new(col: Excel.CalculatedFields): Enumerator; + new(col: Excel.CalculatedItems | Excel.PivotItemList): Enumerator; + new(col: Excel.CalculatedMembers): Enumerator; + new(col: Excel.Comments): Enumerator; + new(col: Excel.Connections): Enumerator; + new(col: Excel.CubeFields): Enumerator; + new(col: Excel.CustomProperties): Enumerator; + new(col: Excel.CustomViews): Enumerator; + new(col: Excel.DiagramNodeChildren | Excel.DiagramNodes): Enumerator; + new(col: Excel.Dialogs): Enumerator; + new(col: Excel.FileExportConverters): Enumerator; + new(col: Excel.Filters): Enumerator; + new( + col: Excel.FormatConditions | Excel.IconSets | Excel.MenuItems | Excel.Modules | Excel.Phonetics | Excel.PivotFields | Excel.Range | Excel.ServerViewableItems | + Excel.SheetViews | Excel.UsedObjects): Enumerator; // tslint:disable-line:use-default-type-parameter + new(col: Excel.GroupShapes | Excel.ShapeRange | Excel.Shapes): Enumerator; + new(col: Excel.HPageBreaks): Enumerator; + new(col: Excel.Hyperlinks): Enumerator; + new(col: Excel.IconSet): Enumerator; + new(col: Excel.ListColumns): Enumerator; + new(col: Excel.ListObjects): Enumerator; + new(col: Excel.ListRows): Enumerator; + new(col: Excel.MenuBars): Enumerator; + new(col: Excel.Menus): Enumerator; + new(col: Excel.Names): Enumerator; + new(col: Excel.ODBCErrors): Enumerator; + new(col: Excel.OLEDBErrors): Enumerator; + new(col: Excel.Pages): Enumerator; + new(col: Excel.Parameters): Enumerator; + new(col: Excel.PivotCaches): Enumerator; + new(col: Excel.PivotFilters): Enumerator; + new(col: Excel.PivotFormulas): Enumerator; + new(col: Excel.PivotLineCells): Enumerator; + new(col: Excel.PivotLines): Enumerator; + new(col: Excel.PivotTableChangeList): Enumerator; + new(col: Excel.ProtectedViewWindows): Enumerator; + new(col: Excel.PublishObjects): Enumerator; + new(col: Excel.QueryTables): Enumerator; + new(col: Excel.RecentFiles): Enumerator; + new(col: Excel.Sheets): Enumerator; + new(col: Excel.ShapeNodes): Enumerator; + new(col: Excel.SlicerCacheLevels): Enumerator; + new(col: Excel.SlicerCaches): Enumerator; + new(col: Excel.SlicerItems): Enumerator; + new(col: Excel.SlicerPivotTables): Enumerator; + new(col: Excel.Slicers): Enumerator; + new(col: Excel.SmartTagActions): Enumerator; + new(col: Excel.SmartTagRecognizers): Enumerator; + new(col: Excel.SortFields): Enumerator; + new(col: Excel.SparklineGroup): Enumerator; + new(col: Excel.SparklineGroups): Enumerator; + new(col: Excel.Styles): Enumerator; + new(col: Excel.TableStyleElements): Enumerator; + new(col: Excel.TableStyles): Enumerator; + new(col: Excel.ToolbarButtons): Enumerator; + new(col: Excel.Toolbars): Enumerator; + new(col: Excel.UserAccessList): Enumerator; + new(col: Excel.VPageBreaks): Enumerator; + new(col: Excel.Watches): Enumerator; + new(col: Excel.Windows): Enumerator; + new(col: Excel.Workbooks): Enumerator; + new(col: Excel.XmlMaps): Enumerator; + new(col: Excel.XmlNamespaces): Enumerator; + new(col: Excel.XmlSchemas): Enumerator; +} + +interface SafeArray { + _brand: SafeArray; +} diff --git a/types/activex-excel/package.json b/types/activex-excel/package.json new file mode 100644 index 0000000000..d9b1031263 --- /dev/null +++ b/types/activex-excel/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "activex-helpers": "*" + } +} \ No newline at end of file diff --git a/types/activex-excel/tsconfig.json b/types/activex-excel/tsconfig.json new file mode 100644 index 0000000000..c8352aacb4 --- /dev/null +++ b/types/activex-excel/tsconfig.json @@ -0,0 +1,21 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es5", "scripthost"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "activex-excel-tests.ts" + ] +} \ No newline at end of file diff --git a/types/activex-excel/tslint.json b/types/activex-excel/tslint.json new file mode 100644 index 0000000000..4ac54521fe --- /dev/null +++ b/types/activex-excel/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": [false] + } +} \ No newline at end of file diff --git a/types/activex-infopath/activex-infopath-tests.ts b/types/activex-infopath/activex-infopath-tests.ts new file mode 100644 index 0000000000..a4441c2cf3 --- /dev/null +++ b/types/activex-infopath/activex-infopath-tests.ts @@ -0,0 +1,5 @@ +let obj0 = new ActiveXObject('InfoPath.Application'); + +let obj1 = new ActiveXObject('InfoPath.ExternalApplication'); + +let obj2 = new ActiveXObject('InfoPath.Editor'); diff --git a/types/activex-infopath/index.d.ts b/types/activex-infopath/index.d.ts new file mode 100644 index 0000000000..1aa8cba2f9 --- /dev/null +++ b/types/activex-infopath/index.d.ts @@ -0,0 +1,1198 @@ +// Type definitions for Microsoft InfoPath 3.0 Type Library - InfoPath 3.0 +// Project: https://msdn.microsoft.com/en-us/library/jj602751.aspx +// Definitions by: Zev Spitz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// +/// +/// +/// + +declare namespace InfoPath { + const enum CommandIds { + AddWordToDictionary = 131, + AlignTextCenter = 33, + AlignTextJustify = 35, + AlignTextLeft = 32, + AlignTextRight = 34, + ClearAutoSpace = 85, + ClearBulletedList = 59, + ClearFontFormatting = 109, + ClearNumberedList = 58, + Close = 4, + Copy = 53, + CorrectAllOfMisspelledWord = 134, + CorrectMisspelledWord = 133, + Cut = 52, + DecreaseFontSizeBy2 = 117, + DecreaseIndent = 60, + DeleteMisspelledWord = 135, + DeleteSelectedColumns = 68, + DeleteSelectedRows = 67, + DeleteSelectedTable = 66, + DrawTable = 50, + EraseTable = 51, + FindNextMisspelledWord = 132, + FindReplaceFindNext = 119, + FormatPainterApplyFormatting = 23, + FormatPainterApplyFormattingPersistent = 25, + FormatPainterCopyFormatting = 24, + FormatPainterCopyFormattingPersistent = 172, + GetCurrentMisspelledWord = 139, + GetDefaultFontColor = 98, + GetDefaultHighlightColor = 97, + GetFindReplaceOptionSearchDirection = 94, + GetFindReplaceState = 171, + GetFindString = 87, + GetFontAvailableByIndex = 102, + GetFontsAvailableCount = 101, + GetFontSizeAvailableByIndex = 104, + GetFontSizesAvailableCount = 103, + GetHyperlinkAddress = 159, + GetHyperlinkDisplayText = 158, + GetPictureAlternativeText = 169, + GetPictureHeight = 167, + GetPictureTextWrapping = 170, + GetPictureWidth = 168, + GetReplaceWithString = 89, + GetSelectedCellBottomPadding = 151, + GetSelectedCellLeftPadding = 150, + GetSelectedCellRightPadding = 152, + GetSelectedCellTopPadding = 149, + GetSelectedCellVerticalAlignment = 148, + GetSelectedColumnWidth = 142, + GetSelectedRowHeight = 140, + GetSelectedTextBackgroundColor = 127, + GetSelectedTextFont = 124, + GetSelectedTextFontColor = 125, + GetSelectedTextFontSize = 123, + GetSelectedTextHighlightColor = 126, + GetSpellingSuggestion = 138, + GetSpellingSuggestionsCount = 137, + GetSubmitButtonCaption = 9, + GetTableDirection = 77, + GetTableHorizontalAlignment = 75, + GotoFirstErrorOnView = 107, + GotoNextErrorOnView = 10, + IgnoreAllOfMisspelledWord = 130, + IgnoreMisspelledWord = 129, + IncreaseFontSizeBy2 = 118, + IncreaseIndent = 61, + InsertBulletedList = 22, + InsertBulletedListEmptyCircle = 48, + InsertBulletedListSolidCircle = 47, + InsertBulletedListSolidSquare = 49, + InsertColumnLeft = 64, + InsertColumnRight = 65, + InsertHorizontalLine = 78, + InsertHyperlink = 81, + InsertImage = 80, + InsertNumberedList = 21, + InsertNumberedListAlphaLowercase = 43, + InsertNumberedListAlphaUppercase = 44, + InsertNumberedListDecimal = 42, + InsertNumberedListRomanLowercase = 45, + InsertNumberedListRomanUppercase = 46, + InsertPictureFromFile = 13, + InsertRowAbove = 62, + InsertRowBelow = 63, + InsertTable = 128, + IsFormDirectionLeftToRight = 175, + IsFormDirectionRightToLeft = 174, + MergeCells = 73, + Paste = 54, + PasteAsText = 178, + PasteKeepSourceFormatting = 176, + PasteMatchDestination = 177, + Redo = 57, + RemoveHyperlink = 160, + Replace = 95, + ReplaceAll = 96, + Save = 5, + SaveAs = 6, + SelectAll = 55, + SelectCell = 72, + SelectColumns = 71, + SelectHyperlink = 82, + SelectNextColumn = 146, + SelectNextRow = 144, + SelectPreviousColumn = 147, + SelectPreviousRow = 145, + SelectRows = 70, + SelectTable = 69, + Set15LineSpacing = 40, + SetAutoSpaceBetweenAsianAndLatinText = 83, + SetAutoSpaceBetweenAsianTextAndNumbers = 84, + SetDoubleLineSpacing = 41, + SetFindReplaceOptionMatchCase = 91, + SetFindReplaceOptionSearchDirection = 93, + SetFindReplaceOptionUseWildcards = 92, + SetFindReplaceOptionWholeWordOnly = 90, + SetFindString = 86, + SetFontFormattingBold = 26, + SetFontFormattingHeading1 = 110, + SetFontFormattingHeading2 = 111, + SetFontFormattingHeading3 = 112, + SetFontFormattingHeading4 = 113, + SetFontFormattingHeading5 = 114, + SetFontFormattingHeading6 = 115, + SetFontFormattingItalic = 27, + SetFontFormattingNormal = 116, + SetFontFormattingStrikethrough = 31, + SetFontFormattingSubscript = 30, + SetFontFormattingSuperscript = 29, + SetFontFormattingUnderline = 28, + SetPictureAlternativeText = 166, + SetPictureHeight = 164, + SetPictureInlineWithText = 161, + SetPictureToLeftOfText = 162, + SetPictureToRightOfText = 163, + SetPictureWidth = 165, + SetReplaceWithString = 88, + SetSelectedCellAlignmentBottom = 156, + SetSelectedCellAlignmentMiddle = 154, + SetSelectedCellAlignmentTop = 155, + SetSelectedCellPadding = 153, + SetSelectedColumnWidth = 143, + SetSelectedRowHeight = 141, + SetSelectedTextBackgroundColor = 122, + SetSelectedTextFont = 106, + SetSelectedTextFontColor = 121, + SetSelectedTextFontSize = 105, + SetSelectedTextHighlightColor = 120, + SetSingleLineSpacing = 39, + SetSpellingOptionCheckAsYouType = 136, + SetTableDirection = 76, + SetTableHorizontalAlignment = 74, + SetTextDirectionDefault = 36, + SetTextDirectionLeftToRight = 37, + SetTextDirectionRightToLeft = 38, + ShowBordersShadingDialog = 18, + ShowCurrentErrorMessage = 11, + ShowDigitalSignaturesDialog = 108, + ShowEditHyperlinkDialog = 20, + ShowExportToExcelDialog = 7, + ShowExportToPDFXPSDialog = 173, + ShowExportToWebDialog = 2, + ShowFormatPictureDialog = 17, + ShowImportFormDataDialog = 1, + ShowInsertHyperlinkDialog = 19, + ShowInsertSymbolDialog = 79, + ShowInsertTableDialog = 14, + ShowMergeFormDialog = 0, + ShowSetLanguageDialog = 12, + ShowSetSelectedTextFontColorDialog = 99, + ShowSetSelectedTextHighlightColorDialog = 100, + ShowSplitCellsDialog = 15, + ShowTablePropertiesDialog = 16, + SplitCells = 157, + Submit = 8, + Undo = 56, + WorkOffline = 3, + } + + const enum XdAttachmentType { + xdNone = 2, + xdXml = 0, + xdXmlXsn = 1, + } + + const enum XdCertificateStatus { + xdCertificateStatusError = 0, + xdCertificateStatusExpired = 2, + xdCertificateStatusNotTrusted = 3, + xdCertificateStatusRevoked = 4, + xdCertificateStatusValid = 1, + } + + const enum XdConfirmButtons { + xdOKCancel = 1, + xdYesNo = 4, + xdYesNoCancel = 3, + } + + const enum XdConfirmChoice { + xdCancel = 2, + xdNo = 7, + xdOK = 1, + xdYes = 6, + } + + const enum XdDocumentVersionMode { + xdCanOpenInReadOnlyMode = 8, + xdCanTransformSigned = 16, + xdDoNotInstallActiveXCabs = 128, + xdFailOnVersionMismatch = 0, + xdFailOnVersionOlder = 1, + xdIgnoreDataAdaptersQueryFailure = 64, + xdPromptTransformSigned = 32, + xdUseExistingVersion = 2, + } + + const enum XdMachineOnlineState { + xdIEIsInOfflineMode = 2, + xdOffline = 0, + xdOnline = 1, + } + + const enum XdReadOnlyViewMode { + xdDefault = 0, + xdFrozen = 2, + xdNonEditable = 1, + } + + const enum XdSignatureAppearanceType { + xdSignatureAppearanceTypeLine = 0, + xdSignatureAppearanceTypeStamp = 1, + } + + const enum XdSignatureRelation { + xdSignatureRelationCoSign = 2, + xdSignatureRelationCounterSign = 3, + xdSignatureRelationSingle = 1, + } + + const enum XdSignatureStatus { + xdSignatureStatusError = 0, + xdSignatureStatusInvalid = 2, + xdSignatureStatusUnsupported = 3, + xdSignatureStatusValid = 1, + } + + const enum XdTaskPaneType { + xdTaskPaneBulletsNumbering = 9, + xdTaskPaneClipArt = 5, + xdTaskPaneDesignerNew = 2, + xdTaskPaneFillOutAForm = 1, + xdTaskPaneFind = 6, + xdTaskPaneFormatting = 8, + xdTaskPaneHelp = 4, + xdTaskPaneHTML = 0, + xdTaskPaneHWSWorkflow = 12, + xdTaskPaneParaFormatting = 11, + xdTaskPaneReplace = 7, + xdTaskPaneSearchResults = 3, + xdTaskPaneSpelling = 10, + } + + const enum XdWindowState { + xdWindowStateMaximize = 1, + xdWindowStateMinimize = 3, + xdWindowStateNormal = 2, + } + + const enum XdWindowType { + xdDesignerWindow = 1, + xdEditorWindow = 0, + } + + class _XDocument { + private 'InfoPath._XDocument_typekey': _XDocument; + private constructor(); + readonly DataObjects: DataObjectsCollection; + readonly DOM: MSXML2.IXMLDOMDocument; + readonly Errors: ADODB.Errors; + readonly Extension: any; + GetDataVariable(lVariableNumber: number): string; + GetDOM(bstrName: string): MSXML2.IXMLDOMDocument; + ImportFile(bstrFileURI: string): void; + readonly IsDirty: boolean; + readonly IsDOMReadOnly: boolean; + readonly IsNew: boolean; + readonly IsReadOnly: boolean; + readonly IsSigned: boolean; + Language: string; + PrintOut(): void; + Query(): void; + readonly QueryAdapter: any; + Save(): void; + SaveAs(bstrFileUrl: string): void; + SetDataVariable(lVariableNumber: number, bstrVariableValue: string): void; + readonly Solution: SolutionObject; + Submit(): void; + readonly UI: UI; + readonly URI: string; + readonly View: ViewObject; + readonly ViewInfos: ViewInfosCollection; + } + + class ADOAdapterObject { + private 'InfoPath.ADOAdapterObject_typekey': ADOAdapterObject; + private constructor(); + BuildSQLFromXMLNodes(pXmlNode: MSXML2.IXMLDOMNode): string; + Command: string; + Connection: string; + readonly Name: string; + Query(): void; + readonly QueryAllowed: boolean; + Submit(): void; + readonly SubmitAllowed: boolean; + Timeout: number; + } + + class Application { + private 'InfoPath.Application_typekey': Application; + private constructor(); + readonly ActiveWindow: Window; + CacheSolution(bstrSolutionURI: string): void; + FormatString(varInput: any, bstrCategory: string, bstrOptions: string): string; + IsDestinationReachable(bstrDestination: string): boolean; + readonly LanguageSettings: any; + readonly MachineOnlineState: XdMachineOnlineState; + readonly Name: string; + NewADODBConnection(): ADODB.Connection; + NewADODBRecordset(): ADODB.Recordset; + + /** @param boolean [bForce=false] */ + Quit(bForce?: boolean): void; + + /** @param string [bstrBehavior='overwrite'] */ + RegisterSolution(bstrSolutionURL: string, bstrBehavior?: string): void; + UnregisterSolution(bstrSolutionURI: string): void; + readonly UsableHeight: number; + readonly UsableWidth: number; + readonly User: UserObject; + readonly Version: string; + readonly Windows: WindowsCollection; + readonly XDocuments: XDocuments; + } + + class ApplicationEvents { + private 'InfoPath.ApplicationEvents_typekey': ApplicationEvents; + private constructor(); + } + + class BDCAdapterObject { + private 'InfoPath.BDCAdapterObject_typekey': BDCAdapterObject; + private constructor(); + readonly EntityName: string; + readonly EntityNamespace: string; + readonly LOBSystemInstance: string; + readonly Name: string; + Query(): void; + readonly QueryAllowed: boolean; + readonly SpecificFinder: string; + Submit(): void; + readonly SubmitAdapterName: string; + readonly SubmitAllowed: boolean; + } + + class Button { + private 'InfoPath.Button_typekey': Button; + private constructor(); + } + + class CertificateObject { + private 'InfoPath.CertificateObject_typekey': CertificateObject; + private constructor(); + readonly ExpirationDate: string; + readonly IssuedBy: string; + readonly IssuedTo: string; + readonly Status: XdCertificateStatus; + } + + class DataAdaptersCollection { + private 'InfoPath.DataAdaptersCollection_typekey': DataAdaptersCollection; + private constructor(); + readonly Count: number; + Item(varIndex: any): any; + } + + class DataDOM { + private 'InfoPath.DataDOM_typekey': DataDOM; + private constructor(); + } + + class DataDOMEventObject { + private 'InfoPath.DataDOMEventObject_typekey': DataDOMEventObject; + private constructor(); + readonly IsUndoRedo: boolean; + readonly MatchExpression: string; + readonly NewValue: any; + readonly OldValue: any; + readonly Operation: string; + readonly Parent: MSXML2.IXMLDOMNode; + + /** + * @param string [bstrDetailedErrorMessage=''] + * @param number [lErrorCode=0] + * @param string [bstrType='modeless'] + */ + ReportError(varNode: any, bstrShortErrorMessage: string, fSiteIndependent: boolean, bstrDetailedErrorMessage?: string, lErrorCode?: number, bstrType?: string): ErrorObject; + ReturnMessage: string; + ReturnStatus: boolean; + readonly Site: MSXML2.IXMLDOMNode; + readonly Source: MSXML2.IXMLDOMNode; + readonly XDocument: _XDocument; + } + + class DataObjectsCollection { + private 'InfoPath.DataObjectsCollection_typekey': DataObjectsCollection; + private constructor(); + readonly Count: number; + Item(varIndex: any): DataSourceObject; + } + + class DataSourceObject { + private 'InfoPath.DataSourceObject_typekey': DataSourceObject; + private constructor(); + readonly DOM: MSXML2.IXMLDOMDocument; + readonly Name: string; + Query(): void; + readonly QueryAdapter: any; + } + + class DateObject { + private 'InfoPath.DateObject_typekey': DateObject; + private constructor(); + AddDays(pvarDate: any, pvarDays: any): any; + AddSeconds(pvarTime: any, pvarSeconds: any): any; + Now(): any; + Today(): any; + } + + class DAVAdapterObject { + private 'InfoPath.DAVAdapterObject_typekey': DAVAdapterObject; + private constructor(); + FileName: string; + FolderURL: string; + readonly Name: string; + Query(): void; + readonly QueryAllowed: boolean; + Submit(): void; + readonly SubmitAllowed: boolean; + SubmitData(pData: MSXML2.IXMLDOMNode): void; + } + + class DocActionEventObject { + private 'InfoPath.DocActionEventObject_typekey': DocActionEventObject; + private constructor(); + ReturnStatus: boolean; + readonly Source: MSXML2.IXMLDOMNode; + readonly XDocument: _XDocument; + } + + class DocContextChangeEventObject { + private 'InfoPath.DocContextChangeEventObject_typekey': DocContextChangeEventObject; + private constructor(); + readonly Context: MSXML2.IXMLDOMNode; + readonly IsUndoRedo: boolean; + readonly Type: string; + readonly XDocument: _XDocument; + } + + class DocEventObject { + private 'InfoPath.DocEventObject_typekey': DocEventObject; + private constructor(); + readonly XDocument: _XDocument; + } + + class DocReturnEventObject { + private 'InfoPath.DocReturnEventObject_typekey': DocReturnEventObject; + private constructor(); + ReturnStatus: boolean; + readonly XDocument: _XDocument; + } + + class EmailAdapterObject { + private 'InfoPath.EmailAdapterObject_typekey': EmailAdapterObject; + private constructor(); + AttachmentFileName: string; + AttachmentType: XdAttachmentType; + BCC: string; + CC: string; + Intro: string; + readonly Name: string; + Query(): void; + readonly QueryAllowed: boolean; + Subject: string; + Submit(): void; + readonly SubmitAllowed: boolean; + SubmitData(pData: MSXML2.IXMLDOMNode): void; + To: string; + } + + class ErrorObject { + private 'InfoPath.ErrorObject_typekey': ErrorObject; + private constructor(); + readonly ConditionName: any; + DetailedErrorMessage: string; + ErrorCode: number; + readonly Node: MSXML2.IXMLDOMNode; + ShortErrorMessage: string; + readonly Type: string; + } + + class ErrorsCollection { + private 'InfoPath.ErrorsCollection_typekey': ErrorsCollection; + private constructor(); + + /** + * @param string [bstrDetailedErrorMessage=''] + * @param number [lErrorCode=0] + * @param string [bstrType='modeless'] + */ + Add(varNode: any, bstrConditionName: string, bstrShortErrorMessage: string, bstrDetailedErrorMessage?: string, lErrorCode?: number, bstrType?: string): ADODB.Error; + readonly Count: number; + Delete(varNode: any, bstrConditionName: string): void; + DeleteAll(): void; + Item(index: number): ADODB.Error; + } + + class ExternalApplication { + private 'InfoPath.ExternalApplication_typekey': ExternalApplication; + private constructor(); + CacheSolution(bstrSolutionURI: string): void; + Close(bstrDocumentURI: string): void; + + /** @param number [dwBehavior=1] */ + New(bstrDocumentURI: string, dwBehavior?: number): void; + NewFromSolution(bstrSolutionURI: string): void; + NewFromSolutionWithInputParameters(bstrSolutionURI: string, bstrInputParameters: string): void; + + /** @param number [dwBehavior=1] */ + Open(bstrDocumentURI: string, dwBehavior?: number): void; + Quit(): void; + + /** @param string [bstrBehavior='overwrite'] */ + RegisterSolution(bstrSolutionURL: string, bstrBehavior?: string): void; + UnregisterSolution(bstrSolutionURI: string): void; + } + + class HTMLTaskPaneObject { + private 'InfoPath.HTMLTaskPaneObject_typekey': HTMLTaskPaneObject; + private constructor(); + readonly HTMLDocument: MSHTML.IHTMLDocument2; + readonly HTMLWindow: MSHTML.IHTMLWindow2; + Navigate(bstrURL: string): void; + readonly Type: XdTaskPaneType; + Visible: boolean; + } + + class HWSAdapterObject { + private 'InfoPath.HWSAdapterObject_typekey': HWSAdapterObject; + private constructor(); + readonly Name: string; + Query(): void; + readonly QueryAllowed: boolean; + Submit(): void; + readonly SubmitAllowed: boolean; + } + + class IInitEventHandler { + private 'InfoPath.IInitEventHandler_typekey': IInitEventHandler; + private constructor(); + InitEventHandler(punkSender: any, pDocument: _XDocument, pROMode: XdReadOnlyViewMode): void; + } + + class InfoPathEditorObject { + private 'InfoPath.InfoPathEditorObject_typekey': InfoPathEditorObject; + private constructor(); + CloseDocument(): void; + DataConnectionBaseUrl: string; + FlushDocument(): void; + Host: any; + HostName: string; + Load(bstrURL: string): void; + LoadFromStream(punkStream: any): void; + NewFromSolution(bstrSolutionURI: string): void; + NewFromSolutionWithData(bstrURLXSN: string, punkStream: any, dwBehavior: number): void; + SetInitEventHandler(handler: IInitEventHandler): void; + SetNotifyHostEventHandler(pHandler: INotifyHostEventHandler): void; + SetSubmitToHostEventHandler(pHandler: ISubmitToHostEventHandler): void; + readonly XDocument: _XDocument; + } + + class INotifyHostEventHandler { + private 'InfoPath.INotifyHostEventHandler_typekey': INotifyHostEventHandler; + private constructor(); + NotifyHostEventHandler(punkSender: any, bstrNotification: string): void; + } + + class InputParameterCollection { + private 'InfoPath.InputParameterCollection_typekey': InputParameterCollection; + private constructor(); + readonly Count: number; + Item(varIndex: any): InputParameterObject; + } + + class InputParameterObject { + private 'InfoPath.InputParameterObject_typekey': InputParameterObject; + private constructor(); + readonly Name: string; + readonly Value: string; + } + + class ISubmitToHostEventHandler { + private 'InfoPath.ISubmitToHostEventHandler_typekey': ISubmitToHostEventHandler; + private constructor(); + SubmitToHostEventHandler(punkSender: any, bstrAdapterName: string, pbstrErrorMessage: string): number; + } + + class MailEnvelopeObject { + private 'InfoPath.MailEnvelopeObject_typekey': MailEnvelopeObject; + private constructor(); + BCC: string; + CC: string; + Subject: string; + To: string; + Visible: boolean; + } + + class MathObject { + private 'InfoPath.MathObject_typekey': MathObject; + private constructor(); + Avg(pxmllistInput: MSXML2.IXMLDOMNodeList): any; + Eval(pxmllistContext: MSXML2.IXMLDOMNodeList, bstrExpression: string): any; + Max(pxmllistInput: MSXML2.IXMLDOMNodeList): any; + Min(pxmllistInput: MSXML2.IXMLDOMNodeList): any; + Nz(pxmllistInput: MSXML2.IXMLDOMNodeList): any; + } + + class MergeEventObject { + private 'InfoPath.MergeEventObject_typekey': MergeEventObject; + private constructor(); + readonly Count: number; + readonly DOM: MSXML2.IXMLDOMDocument; + readonly index: number; + ReturnStatus: boolean; + RollBack: boolean; + readonly XDocument: _XDocument; + } + + class PermissionObject { + private 'InfoPath.PermissionObject_typekey': PermissionObject; + private constructor(); + Add(bstrUserId: string, varPermission?: any, varExpirationDate?: any): UserPermissionObject; + ApplyPolicy(bstrFileName: string): void; + readonly Count: number; + DocumentAuthor: string; + Enabled: boolean; + Item(varIndex: any): UserPermissionObject; + readonly PermissionFromPolicy: boolean; + readonly PolicyDescription: string; + readonly PolicyName: string; + RemoveAll(): void; + RequestPermissionURL: string; + StoreLicenses: boolean; + } + + class SaveEventObject { + private 'InfoPath.SaveEventObject_typekey': SaveEventObject; + private constructor(); + readonly FileName: string; + IsCancelled: boolean; + readonly IsSaveAs: boolean; + PerformSaveOperation(): boolean; + ReturnStatus: boolean; + readonly XDocument: _XDocument; + } + + class ServerInfoObject { + private 'InfoPath.ServerInfoObject_typekey': ServerInfoObject; + private constructor(); + readonly SharePointListUrl: string; + readonly SharePointServerRootUrl: string; + readonly SharePointSiteCollectionUrl: string; + readonly SharePointSiteUrl: string; + } + + class SharepointListAdapterObject { + private 'InfoPath.SharepointListAdapterObject_typekey': SharepointListAdapterObject; + private constructor(); + readonly Name: string; + Query(): void; + readonly QueryAllowed: boolean; + readonly SiteUrl: string; + Submit(): void; + readonly SubmitAllowed: boolean; + } + + class SharePointListAdapterRWObject { + private 'InfoPath.SharePointListAdapterRWObject_typekey': SharePointListAdapterRWObject; + private constructor(); + ContentTypeId: string; + ListId: string; + readonly Name: string; + Query(): void; + readonly QueryAllowed: boolean; + SiteUrl: string; + Submit(): void; + readonly SubmitAllowed: boolean; + } + + class SignatureLineObject { + private 'InfoPath.SignatureLineObject_typekey': SignatureLineObject; + private constructor(); + readonly Id: string; + Sign(bstrImageURL: string, bstrSuggestedSigner: string, bstrSuggestedSignerTitle: string, bstrSuggestedSignerEmailAddress: string): boolean; + readonly Signature: SignatureObject; + readonly SignatureAppearanceType: XdSignatureAppearanceType; + SuggestedSigner: string; + SuggestedSignerEmailAddress: string; + SuggestedSignerTitle: string; + } + + class SignatureLinesCollection { + private 'InfoPath.SignatureLinesCollection_typekey': SignatureLinesCollection; + private constructor(); + readonly Count: number; + Item(varIndex: any): SignatureLineObject; + } + + class SignatureObject { + private 'InfoPath.SignatureObject_typekey': SignatureObject; + private constructor(); + readonly Certificate: CertificateObject; + readonly Comment: string; + Sign(): void; + readonly SignatureBlockXmlNode: MSXML2.IXMLDOMNode; + readonly Status: XdSignatureStatus; + } + + class SignaturesCollection { + private 'InfoPath.SignaturesCollection_typekey': SignaturesCollection; + private constructor(); + readonly Count: number; + Create(): SignatureObject; + Item(varIndex: any): SignatureObject; + } + + class SignedDataBlockObject { + private 'InfoPath.SignedDataBlockObject_typekey': SignedDataBlockObject; + private constructor(); + readonly Caption: string; + readonly Name: string; + Sign(): void; + readonly SignatureContainer: MSXML2.IXMLDOMNode; + readonly SignatureRelation: XdSignatureRelation; + readonly Signatures: SignaturesCollection; + readonly XPath: string; + readonly XPathNamespaceDeclarations: string; + } + + class SignedDataBlocksCollection { + private 'InfoPath.SignedDataBlocksCollection_typekey': SignedDataBlocksCollection; + private constructor(); + readonly Count: number; + Item(varIndex: any): SignedDataBlockObject; + } + + class SignEventObject { + private 'InfoPath.SignEventObject_typekey': SignEventObject; + private constructor(); + ReturnStatus: boolean; + readonly SignedDataBlock: SignedDataBlockObject; + readonly XDocument: _XDocument; + } + + class SolutionObject { + private 'InfoPath.SolutionObject_typekey': SolutionObject; + private constructor(); + readonly DOM: MSXML2.IXMLDOMDocument; + readonly PackageURL: string; + readonly URI: string; + readonly Version: string; + } + + class SubmitToHostAdapterObject { + private 'InfoPath.SubmitToHostAdapterObject_typekey': SubmitToHostAdapterObject; + private constructor(); + readonly Name: string; + Query(): void; + readonly QueryAllowed: boolean; + Submit(): void; + readonly SubmitAllowed: boolean; + } + + class TaskPaneObject { + private 'InfoPath.TaskPaneObject_typekey': TaskPaneObject; + private constructor(); + readonly Type: XdTaskPaneType; + Visible: boolean; + } + + class TaskPanesCollection { + private 'InfoPath.TaskPanesCollection_typekey': TaskPanesCollection; + private constructor(); + readonly Count: number; + Item(varIndex: any): TaskPaneObject; + } + + class UI { + private 'InfoPath.UI_typekey': UI; + private constructor(); + Alert(bstrAlertString: string): void; + ShowMailItem(bstrTo: string, bstrCC: string, bstrBCC: string, bstrSubject: string, bstrBody: string): void; + ShowModalDialog(bstrName: string, varArguments?: any, varHeight?: any, varWidth?: any, varTop?: any, varLeft?: any): any; + ShowSignatureDialog(): void; + } + + class UIObject { + private 'InfoPath.UIObject_typekey': UIObject; + private constructor(); + Alert(bstrAlertString: string): void; + Confirm(bstrPrompt: string, lButtons: XdConfirmButtons): XdConfirmChoice; + SetSaveAsDialogFileName(bstrFileName: string): void; + SetSaveAsDialogLocation(bstrLocation: string): void; + ShowMailItem(bstrTo: string, bstrCC: string, bstrBCC: string, bstrSubject: string, bstrBody: string): void; + ShowModalDialog(bstrName: string, varArguments?: any, varHeight?: any, varWidth?: any, varTop?: any, varLeft?: any): any; + ShowSignatureDialog(): void; + } + + class UserObject { + private 'InfoPath.UserObject_typekey': UserObject; + private constructor(); + IsCurrentUser(bstrUsername: string): boolean; + IsUserMemberOf(bstrGroupname: string): boolean; + } + + class UserPermissionObject { + private 'InfoPath.UserPermissionObject_typekey': UserPermissionObject; + private constructor(); + ExpirationDate: any; + readonly Parent: any; + Permission: number; + Remove(): void; + readonly UserId: string; + } + + class UtilObject { + private 'InfoPath.UtilObject_typekey': UtilObject; + private constructor(); + readonly Date: VarDate; + Match(bstrValue: string, bstrPattern: string): boolean; + readonly Math: MathObject; + } + + class VersionUpgradeEventObject { + private 'InfoPath.VersionUpgradeEventObject_typekey': VersionUpgradeEventObject; + private constructor(); + readonly DocumentVersion: string; + ReturnStatus: boolean; + readonly SolutionVersion: string; + readonly XDocument: _XDocument; + } + + class ViewInfoObject { + private 'InfoPath.ViewInfoObject_typekey': ViewInfoObject; + private constructor(); + IsDefault: boolean; + readonly Name: string; + } + + class ViewInfosCollection { + private 'InfoPath.ViewInfosCollection_typekey': ViewInfosCollection; + private constructor(); + readonly Count: number; + Item(varIndex: any): ViewInfoObject; + } + + class ViewObject { + private 'InfoPath.ViewObject_typekey': ViewObject; + private constructor(); + DisableAutoUpdate(): void; + EnableAutoUpdate(): void; + ExecuteAction(bstrAction: string, varXmlToEdit?: any): void; + Export(bstrURL: string, bstrFormat: string): void; + ForceUpdate(): void; + GetContextNodes(varNode?: any, varViewContext?: any): XMLNodesCollection; + GetSelectedNodes(): XMLNodesCollection; + readonly Name: string; + SelectNodes(pxnStartNode: MSXML2.IXMLDOMNode, varEndNode?: any, varViewContext?: any): void; + SelectText(pxnField: MSXML2.IXMLDOMNode, varViewContext?: any): void; + SwitchView(bstrName: string): void; + readonly Window: Window; + } + + class WebServiceAdapterObject { + private 'InfoPath.WebServiceAdapterObject_typekey': WebServiceAdapterObject; + private constructor(); + readonly ErrorsLocation: MSXML2.IXMLDOMNode; + GenerateDataSetDiffGram(pNode: MSXML2.IXMLDOMNode): MSXML2.IXMLDOMNode; + Input: string; + readonly Name: string; + Operation: string; + readonly OutputLocation: MSXML2.IXMLDOMNode; + Query(): void; + readonly QueryAllowed: boolean; + Submit(): void; + readonly SubmitAllowed: boolean; + Timeout: number; + readonly WSDLURL: string; + } + + class Window { + private 'InfoPath.Window_typekey': Window; + private constructor(); + Activate(): void; + readonly Active: boolean; + + /** @param boolean [fForce=false] */ + Close(fForce?: boolean): void; + readonly CommandBars: any; + readonly MailEnvelope: MailEnvelopeObject; + readonly TaskPanes: TaskPanesCollection; + readonly Type: XdWindowType; + readonly XDocument: _XDocument; + } + + class WindowObject { + private 'InfoPath.WindowObject_typekey': WindowObject; + private constructor(); + Activate(): void; + readonly Active: boolean; + Caption: string; + + /** @param boolean [fForce=false] */ + Close(fForce?: boolean): void; + readonly CommandBars: any; + Height: number; + Left: number; + readonly MailEnvelope: MailEnvelopeObject; + readonly TaskPanes: TaskPanesCollection; + Top: number; + readonly Type: XdWindowType; + Width: number; + WindowState: XdWindowState; + readonly XDocument: _XDocument; + } + + class WindowsCollection { + private 'InfoPath.WindowsCollection_typekey': WindowsCollection; + private constructor(); + readonly Count: number; + Item(varIndex: any): Window; + } + + class XDNetworkState { + private 'InfoPath.XDNetworkState_typekey': XDNetworkState; + private constructor(); + IsDestinationReachable(bstrDestination: string): boolean; + readonly MachineOnlineState: XdMachineOnlineState; + } + + class XDocument { + private 'InfoPath.XDocument_typekey': XDocument; + private constructor(); + CreateDOM(): MSXML2.IXMLDOMDocument; + readonly DataAdapters: DataAdaptersCollection; + readonly DataObjects: DataObjectsCollection; + readonly DOM: MSXML2.IXMLDOMDocument; + readonly Errors: ADODB.Errors; + readonly Extension: any; + GetDataVariable(lVariableNumber: number): string; + GetDOM(bstrName: string): MSXML2.IXMLDOMDocument; + GetNamedNodeProperty(varMainDOMNode: any, bstrPropertyName: string, bstrDefaultValue: string): string; + ImportDOM(pxDoc: MSXML2.IXMLDOMDocument): void; + ImportFile(bstrFileURI: string): void; + readonly IsDirty: boolean; + readonly IsDOMReadOnly: boolean; + readonly IsNew: boolean; + readonly IsReadOnly: boolean; + readonly IsRecovered: boolean; + readonly IsSigned: boolean; + Language: string; + PrintOut(): void; + Query(): void; + readonly QueryAdapter: any; + Role: string; + Save(): void; + SaveAs(bstrFileUrl: string): void; + SetDataVariable(lVariableNumber: number, bstrVariableValue: string): void; + SetDirty(vfIsDirty: boolean): void; + SetNamedNodeProperty(pxmlMainDOMNode: MSXML2.IXMLDOMNode, bstrPropertyName: string, bstrValue: string): void; + readonly SignedDataBlocks: SignedDataBlocksCollection; + readonly Solution: SolutionObject; + Submit(): void; + readonly UI: UI; + readonly URI: string; + readonly Util: UtilObject; + readonly View: ViewObject; + readonly ViewInfos: ViewInfosCollection; + } + + class XDocuments { + private 'InfoPath.XDocuments_typekey': XDocuments; + private constructor(); + Close(varIndex: any): void; + readonly Count: number; + Item(varIndex: any): _XDocument; + + /** @param number [dwBehavior=1] */ + New(varURI: any, dwBehavior?: number): _XDocument; + NewFromSolution(varURI: any): _XDocument; + + /** @param number [dwBehavior=1] */ + Open(varURI: any, dwBehavior?: number): _XDocument; + } + + class XDocumentsCollection { + private 'InfoPath.XDocumentsCollection_typekey': XDocumentsCollection; + private constructor(); + Close(varIndex: any): void; + readonly Count: number; + Item(varIndex: any): _XDocument; + + /** @param number [dwBehavior=1] */ + New(varURI: any, dwBehavior?: number): _XDocument; + NewFromSolution(varURI: any): _XDocument; + + /** @param number [dwBehavior=1] */ + NewFromSolutionWithData(varXMLData: any, varSolutionURI: any, dwBehavior?: number): XDocument; + + /** @param number [dwBehavior=1] */ + Open(varURI: any, dwBehavior?: number): _XDocument; + } + + class XMLFileAdapterObject { + private 'InfoPath.XMLFileAdapterObject_typekey': XMLFileAdapterObject; + private constructor(); + FileURL: string; + readonly Name: string; + Query(): void; + readonly QueryAllowed: boolean; + Submit(): void; + readonly SubmitAllowed: boolean; + } + + class XMLNodesCollection { + private 'InfoPath.XMLNodesCollection_typekey': XMLNodesCollection; + private constructor(); + readonly Count: number; + Item(varIndex: any): MSXML2.IXMLDOMNode; + } + + namespace EventHelperTypes { + type Button_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + type DataDOM_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + type XDocument_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + interface Button_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + + interface DataDOM_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + + interface XDocument_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + } +} + +interface ActiveXObject { + on( + obj: InfoPath.ApplicationEvents, event: 'NewXDocument' | 'XDocumentOpen', argNames: ['pDocument'], handler: ( + this: InfoPath.ApplicationEvents, parameter: {readonly pDocument: InfoPath._XDocument}) => void): void; + on( + obj: InfoPath.ApplicationEvents, event: 'WindowActivate' | 'WindowDeactivate' | 'WindowSize', argNames: ['pDocument', 'pWindow'], + handler: (this: InfoPath.ApplicationEvents, parameter: {readonly pDocument: InfoPath._XDocument, readonly pWindow: InfoPath.Window}) => void): void; + on( + obj: InfoPath.ApplicationEvents, event: 'XDocumentBeforeClose' | 'XDocumentBeforePrint' | 'XDocumentBeforeSave', argNames: ['pDocument', 'pfCancel'], + handler: (this: InfoPath.ApplicationEvents, parameter: {readonly pDocument: InfoPath._XDocument, pfCancel: boolean}) => void): void; + on( + obj: InfoPath.Button, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: InfoPath.Button, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: InfoPath.Button, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: InfoPath.Button, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: InfoPath.Button, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: InfoPath.Button, parameter: {pctinfo: number}) => void): void; + on( + obj: InfoPath.Button, event: 'Invoke', argNames: InfoPath.EventHelperTypes.Button_Invoke_ArgNames, handler: ( + this: InfoPath.Button, parameter: InfoPath.EventHelperTypes.Button_Invoke_Parameter) => void): void; + on(obj: InfoPath.Button, event: 'OnClick', argNames: ['pEvent'], handler: (this: InfoPath.Button, parameter: {readonly pEvent: InfoPath.DocActionEventObject}) => void): void; + on(obj: InfoPath.Button, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: (this: InfoPath.Button, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on( + obj: InfoPath.DataDOM, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: InfoPath.DataDOM, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: InfoPath.DataDOM, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: InfoPath.DataDOM, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: InfoPath.DataDOM, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: InfoPath.DataDOM, parameter: {pctinfo: number}) => void): void; + on( + obj: InfoPath.DataDOM, event: 'Invoke', argNames: InfoPath.EventHelperTypes.DataDOM_Invoke_ArgNames, handler: ( + this: InfoPath.DataDOM, parameter: InfoPath.EventHelperTypes.DataDOM_Invoke_Parameter) => void): void; + on( + obj: InfoPath.DataDOM, event: 'OnAfterChange' | 'OnBeforeChange' | 'OnValidate', argNames: ['pDataDOMEvent'], handler: ( + this: InfoPath.DataDOM, parameter: {readonly pDataDOMEvent: InfoPath.DataDOMEventObject}) => void): void; + on(obj: InfoPath.DataDOM, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: (this: InfoPath.DataDOM, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on( + obj: InfoPath.XDocument, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: InfoPath.XDocument, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: InfoPath.XDocument, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: InfoPath.XDocument, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: InfoPath.XDocument, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: InfoPath.XDocument, parameter: {pctinfo: number}) => void): void; + on( + obj: InfoPath.XDocument, event: 'Invoke', argNames: InfoPath.EventHelperTypes.XDocument_Invoke_ArgNames, handler: ( + this: InfoPath.XDocument, parameter: InfoPath.EventHelperTypes.XDocument_Invoke_Parameter) => void): void; + on( + obj: InfoPath.XDocument, event: 'OnAfterImport' | 'OnSwitchView', argNames: ['pEvent'], handler: ( + this: InfoPath.XDocument, parameter: {readonly pEvent: InfoPath.DocEventObject}) => void): void; + on(obj: InfoPath.XDocument, event: 'OnContextChange', argNames: ['pEvent'], handler: (this: InfoPath.XDocument, parameter: {readonly pEvent: InfoPath.DocContextChangeEventObject}) => void): void; + on( + obj: InfoPath.XDocument, event: 'OnLoad' | 'OnSubmitRequest', argNames: ['pEvent'], handler: ( + this: InfoPath.XDocument, parameter: {readonly pEvent: InfoPath.DocReturnEventObject}) => void): void; + on(obj: InfoPath.XDocument, event: 'OnMergeRequest', argNames: ['pEvent'], handler: (this: InfoPath.XDocument, parameter: {readonly pEvent: InfoPath.MergeEventObject}) => void): void; + on(obj: InfoPath.XDocument, event: 'OnSaveRequest', argNames: ['pEvent'], handler: (this: InfoPath.XDocument, parameter: {readonly pEvent: InfoPath.SaveEventObject}) => void): void; + on(obj: InfoPath.XDocument, event: 'OnSign', argNames: ['pEvent'], handler: (this: InfoPath.XDocument, parameter: {readonly pEvent: InfoPath.SignEventObject}) => void): void; + on(obj: InfoPath.XDocument, event: 'OnVersionUpgrade', argNames: ['pEvent'], handler: (this: InfoPath.XDocument, parameter: {readonly pEvent: InfoPath.VersionUpgradeEventObject}) => void): void; + on(obj: InfoPath.XDocument, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: (this: InfoPath.XDocument, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on(obj: InfoPath.ApplicationEvents, event: 'Quit' | 'XDocumentChange', handler: (this: InfoPath.ApplicationEvents, parameter: {}) => void): void; + on(obj: InfoPath.Button, event: 'AddRef' | 'Release', handler: (this: InfoPath.Button, parameter: {}) => void): void; + on(obj: InfoPath.DataDOM, event: 'AddRef' | 'Release', handler: (this: InfoPath.DataDOM, parameter: {}) => void): void; + on(obj: InfoPath.XDocument, event: 'AddRef' | 'Release', handler: (this: InfoPath.XDocument, parameter: {}) => void): void; + new(progid: K): ActiveXObjectNameMap[K]; +} + +interface ActiveXObjectNameMap { + 'InfoPath.Application': InfoPath.Application; + 'InfoPath.Editor': InfoPath.InfoPathEditorObject; + 'InfoPath.ExternalApplication': InfoPath.ExternalApplication; +} + +interface EnumeratorConstructor { + new(col: InfoPath.DataAdaptersCollection): Enumerator; // tslint:disable-line:use-default-type-parameter + new(col: InfoPath.DataObjectsCollection): Enumerator; + new(col: InfoPath.ErrorsCollection): Enumerator; + new(col: InfoPath.InputParameterCollection): Enumerator; + new(col: InfoPath.PermissionObject): Enumerator; + new(col: InfoPath.SignatureLinesCollection): Enumerator; + new(col: InfoPath.SignaturesCollection): Enumerator; + new(col: InfoPath.SignedDataBlocksCollection): Enumerator; + new(col: InfoPath.TaskPanesCollection): Enumerator; + new(col: InfoPath.ViewInfosCollection): Enumerator; + new(col: InfoPath.WindowsCollection): Enumerator; + new(col: InfoPath.XDocuments | InfoPath.XDocumentsCollection): Enumerator; + new(col: InfoPath.XMLNodesCollection): Enumerator; +} + +interface SafeArray { + _brand: SafeArray; +} diff --git a/types/activex-infopath/package.json b/types/activex-infopath/package.json new file mode 100644 index 0000000000..d9b1031263 --- /dev/null +++ b/types/activex-infopath/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "activex-helpers": "*" + } +} \ No newline at end of file diff --git a/types/activex-infopath/tsconfig.json b/types/activex-infopath/tsconfig.json new file mode 100644 index 0000000000..07443b0f79 --- /dev/null +++ b/types/activex-infopath/tsconfig.json @@ -0,0 +1,21 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es5", "scripthost"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "activex-infopath-tests.ts" + ] +} \ No newline at end of file diff --git a/types/activex-infopath/tslint.json b/types/activex-infopath/tslint.json new file mode 100644 index 0000000000..4ac54521fe --- /dev/null +++ b/types/activex-infopath/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": [false] + } +} \ No newline at end of file diff --git a/types/activex-libreoffice/index.d.ts b/types/activex-libreoffice/index.d.ts index be16c1441a..1698317e8f 100644 --- a/types/activex-libreoffice/index.d.ts +++ b/types/activex-libreoffice/index.d.ts @@ -12,9 +12,8 @@ declare class sequence { private typekey: sequence; } -declare class SafeArray { - private typekey: SafeArray; -} +// tslint:disable-next-line no-empty-interface +interface SafeArray {} declare namespace com.sun.star { namespace accessibility { diff --git a/types/activex-msforms/activex-msforms-tests.ts b/types/activex-msforms/activex-msforms-tests.ts new file mode 100644 index 0000000000..64fcea6123 --- /dev/null +++ b/types/activex-msforms/activex-msforms-tests.ts @@ -0,0 +1 @@ +let obj0 = new ActiveXObject('Forms.Image'); diff --git a/types/activex-msforms/index.d.ts b/types/activex-msforms/index.d.ts new file mode 100644 index 0000000000..45acebbdb3 --- /dev/null +++ b/types/activex-msforms/index.d.ts @@ -0,0 +1,3757 @@ +// Type definitions for Microsoft Forms 2.0 Object Library - MSForms 2.0 +// Project: https://msdn.microsoft.com/VBA/Language-Reference-VBA/articles/reference-microsoft-forms +// Definitions by: Zev Spitz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// + +declare namespace MSForms { + const enum fmAction { + fmActionCopy = 1, + fmActionCut = 0, + fmActionDragDrop = 3, + fmActionPaste = 2, + } + + const enum fmAlignment { + fmAlignmentLeft = 0, + fmAlignmentRight = 1, + } + + const enum fmBackStyle { + fmBackStyleOpaque = 1, + fmBackStyleTransparent = 0, + } + + const enum fmBorders { + fmBordersBox = 1, + fmBordersLeft = 2, + fmBordersNone = 0, + fmBordersTop = 3, + } + + const enum fmBorderStyle { + fmBorderStyleNone = 0, + fmBorderStyleSingle = 1, + } + + const enum fmButtonEffect { + fmButtonEffectFlat = 0, + fmButtonEffectSunken = 2, + } + + const enum fmButtonStyle { + fmButtonStylePushButton = 0, + fmButtonStyleToggleButton = 1, + } + + const enum fmCycle { + fmCycleAllForms = 0, + fmCycleCurrentForm = 2, + } + + const enum fmDisplayStyle { + fmDisplayStyleCheckBox = 4, + fmDisplayStyleCombo = 3, + fmDisplayStyleDropList = 7, + fmDisplayStyleList = 2, + fmDisplayStyleOptionButton = 5, + fmDisplayStyleText = 1, + fmDisplayStyleToggle = 6, + } + + const enum fmDragBehavior { + fmDragBehaviorDisabled = 0, + fmDragBehaviorEnabled = 1, + } + + const enum fmDragState { + fmDragStateEnter = 0, + fmDragStateLeave = 1, + fmDragStateOver = 2, + } + + const enum fmDropButtonStyle { + fmDropButtonStyleArrow = 1, + fmDropButtonStyleEllipsis = 2, + fmDropButtonStylePlain = 0, + fmDropButtonStyleReduce = 3, + } + + const enum fmDropEffect { + fmDropEffectCopy = 1, + fmDropEffectCopyOrMove = 3, + fmDropEffectMove = 2, + fmDropEffectNone = 0, + } + + const enum fmEnAutoSize { + _fmEnAutoSizeBoth = 3, + _fmEnAutoSizeHorizontal = 1, + _fmEnAutoSizeNone = 0, + _fmEnAutoSizeVertical = 2, + } + + const enum fmEnterFieldBehavior { + fmEnterFieldBehaviorRecallSelection = 1, + fmEnterFieldBehaviorSelectAll = 0, + } + + const enum fmIMEMode { + fmIMEModeAlpha = 8, + fmIMEModeAlphaFull = 7, + fmIMEModeDisable = 3, + fmIMEModeHangul = 10, + fmIMEModeHangulFull = 9, + fmIMEModeHanzi = 12, + fmIMEModeHanziFull = 11, + fmIMEModeHiragana = 4, + fmIMEModeKatakana = 5, + fmIMEModeKatakanaHalf = 6, + fmIMEModeNoControl = 0, + fmIMEModeOff = 2, + fmIMEModeOn = 1, + } + + const enum fmLayoutEffect { + _fmLayoutEffectRespond = 2, + fmLayoutEffectInitiate = 1, + fmLayoutEffectNone = 0, + } + + const enum fmListBoxStyles { + _fmListBoxStylesComboBox = 2, + _fmListBoxStylesListBox = 1, + _fmListBoxStylesNone = 0, + } + + const enum fmListStyle { + fmListStyleOption = 1, + fmListStylePlain = 0, + } + + const enum fmMatchEntry { + fmMatchEntryComplete = 1, + fmMatchEntryFirstLetter = 0, + fmMatchEntryNone = 2, + } + + const enum fmMode { + fmModeInherit = -2, + fmModeOff = 0, + fmModeOn = -1, + } + + const enum fmMousePointer { + fmMousePointerAppStarting = 13, + fmMousePointerArrow = 1, + fmMousePointerCross = 2, + fmMousePointerCustom = 99, + fmMousePointerDefault = 0, + fmMousePointerHelp = 14, + fmMousePointerHourGlass = 11, + fmMousePointerIBeam = 3, + fmMousePointerNoDrop = 12, + fmMousePointerSizeAll = 15, + fmMousePointerSizeNESW = 6, + fmMousePointerSizeNS = 7, + fmMousePointerSizeNWSE = 8, + fmMousePointerSizeWE = 9, + fmMousePointerUpArrow = 10, + } + + const enum fmMultiSelect { + fmMultiSelectExtended = 2, + fmMultiSelectMulti = 1, + fmMultiSelectSingle = 0, + } + + const enum fmOrientation { + fmOrientationAuto = -1, + fmOrientationHorizontal = 1, + fmOrientationVertical = 0, + } + + const enum fmPicPosition { + fmPicPositionBottomCenter = 7, + fmPicPositionBottomLeft = 6, + fmPicPositionBottomRight = 8, + fmPicPositionCenter = 0, + fmPicPositionCenterLeft = 4, + fmPicPositionCenterRight = 5, + fmPicPositionTopCenter = 2, + fmPicPositionTopLeft = 1, + fmPicPositionTopRight = 3, + } + + const enum fmPictureAlignment { + fmPictureAlignmentBottomLeft = 3, + fmPictureAlignmentBottomRight = 4, + fmPictureAlignmentCenter = 2, + fmPictureAlignmentTopLeft = 0, + fmPictureAlignmentTopRight = 1, + } + + const enum fmPicturePosition { + fmPicturePositionAboveCenter = 7, + fmPicturePositionAboveLeft = 6, + fmPicturePositionAboveRight = 8, + fmPicturePositionBelowCenter = 10, + fmPicturePositionBelowLeft = 9, + fmPicturePositionBelowRight = 11, + fmPicturePositionCenter = 12, + fmPicturePositionLeftBottom = 2, + fmPicturePositionLeftCenter = 1, + fmPicturePositionLeftTop = 0, + fmPicturePositionRightBottom = 5, + fmPicturePositionRightCenter = 4, + fmPicturePositionRightTop = 3, + } + + const enum fmPictureSizeMode { + fmPictureSizeModeClip = 0, + fmPictureSizeModeStretch = 1, + fmPictureSizeModeZoom = 3, + } + + const enum fmRepeatDirection { + _fmRepeatDirectionHorizontal = 0, + _fmRepeatDirectionVertical = 1, + } + + const enum fmScrollAction { + _fmScrollActionAbsoluteChange = 7, + fmScrollActionBegin = 5, + fmScrollActionControlRequest = 9, + fmScrollActionEnd = 6, + fmScrollActionFocusRequest = 10, + fmScrollActionLineDown = 2, + fmScrollActionLineUp = 1, + fmScrollActionNoChange = 0, + fmScrollActionPageDown = 4, + fmScrollActionPageUp = 3, + fmScrollActionPropertyChange = 8, + } + + const enum fmScrollBars { + fmScrollBarsBoth = 3, + fmScrollBarsHorizontal = 1, + fmScrollBarsNone = 0, + fmScrollBarsVertical = 2, + } + + const enum fmShowDropButtonWhen { + fmShowDropButtonWhenAlways = 2, + fmShowDropButtonWhenFocus = 1, + fmShowDropButtonWhenNever = 0, + } + + const enum fmShowListWhen { + fmShowListWhenAlways = 3, + fmShowListWhenButton = 1, + fmShowListWhenFocus = 2, + fmShowListWhenNever = 0, + } + + const enum fmSnapPoint { + fmSnapPointBottomCenter = 7, + fmSnapPointBottomLeft = 6, + fmSnapPointBottomRight = 8, + fmSnapPointCenter = 4, + fmSnapPointCenterLeft = 3, + fmSnapPointCenterRight = 5, + fmSnapPointTopCenter = 1, + fmSnapPointTopLeft = 0, + fmSnapPointTopRight = 2, + } + + const enum fmSpecialEffect { + fmSpecialEffectBump = 6, + fmSpecialEffectEtched = 3, + fmSpecialEffectFlat = 0, + fmSpecialEffectRaised = 1, + fmSpecialEffectSunken = 2, + } + + const enum fmStyle { + fmStyleDropDownCombo = 0, + fmStyleDropDownList = 2, + } + + const enum fmTabOrientation { + fmTabOrientationBottom = 1, + fmTabOrientationLeft = 2, + fmTabOrientationRight = 3, + fmTabOrientationTop = 0, + } + + const enum fmTabStyle { + fmTabStyleButtons = 1, + fmTabStyleNone = 2, + fmTabStyleTabs = 0, + } + + const enum fmTextAlign { + fmTextAlignCenter = 2, + fmTextAlignLeft = 1, + fmTextAlignRight = 3, + } + + const enum fmTransitionEffect { + fmTransitionEffectCoverDown = 5, + fmTransitionEffectCoverLeft = 7, + fmTransitionEffectCoverLeftDown = 6, + fmTransitionEffectCoverLeftUp = 8, + fmTransitionEffectCoverRight = 3, + fmTransitionEffectCoverRightDown = 4, + fmTransitionEffectCoverRightUp = 2, + fmTransitionEffectCoverUp = 1, + fmTransitionEffectNone = 0, + fmTransitionEffectPushDown = 11, + fmTransitionEffectPushLeft = 12, + fmTransitionEffectPushRight = 10, + fmTransitionEffectPushUp = 9, + } + + const enum fmVerticalScrollBarSide { + fmVerticalScrollBarSideLeft = 1, + fmVerticalScrollBarSideRight = 0, + } + + const enum fmZOrder { + fmZOrderBack = 1, + fmZOrderFront = 0, + } + + class CheckBox { + private 'MSForms.CheckBox_typekey': CheckBox; + private constructor(); + readonly _Font_Reserved: NewFont; + Accelerator: string; + Alignment: fmAlignment; + AutoSize: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BordersSuppress: boolean; + Caption: string; + readonly DisplayStyle: fmDisplayStyle; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + GroupName: string; + Locked: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + MultiSelect: fmMultiSelect; + Picture: stdole.StdPicture; + PicturePosition: fmPicturePosition; + SpecialEffect: fmButtonEffect; + TextAlign: fmTextAlign; + TripleState: boolean; + readonly Valid: boolean; + Value: any; + WordWrap: boolean; + } + + class CheckBox2 { + private 'MSForms.CheckBox2_typekey': CheckBox2; + private constructor(); + readonly _Font_Reserved: NewFont; + Accelerator: string; + Alignment: fmAlignment; + AutoSize: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BordersSuppress: boolean; + Caption: string; + readonly DisplayStyle: fmDisplayStyle; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + GroupName: string; + Locked: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + MultiSelect: fmMultiSelect; + Picture: stdole.StdPicture; + PicturePosition: fmPicturePosition; + SpecialEffect: fmButtonEffect; + TextAlign: fmTextAlign; + TripleState: boolean; + readonly Valid: boolean; + Value: any; + WordWrap: boolean; + } + + class ComboBox { + private 'MSForms.ComboBox_typekey': ComboBox; + private constructor(); + readonly _Font_Reserved: NewFont; + AddItem(pvargItem?: any, pvargIndex?: any): void; + AutoSize: boolean; + AutoTab: boolean; + AutoWordSelect: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BorderColor: number; + BordersSuppress: boolean; + BorderStyle: fmBorderStyle; + BoundColumn: any; + readonly CanPaste: boolean; + Clear(): void; + Column(pvargColumn?: any, pvargIndex?: any): any; + ColumnCount: number; + ColumnHeads: boolean; + ColumnWidths: string; + Copy(): void; + readonly CurTargetX: number; + readonly CurTargetY: number; + CurX: number; + Cut(): void; + readonly DisplayStyle: fmDisplayStyle; + DragBehavior: fmDragBehavior; + DropButtonStyle: fmDropButtonStyle; + DropDown(): void; + Enabled: boolean; + EnterFieldBehavior: fmEnterFieldBehavior; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + HideSelection: boolean; + IMEMode: fmIMEMode; + readonly LineCount: number; + List(pvargIndex?: any, pvargColumn?: any): any; + readonly ListCount: number; + ListCursor: any; + ListIndex: any; + ListRows: number; + ListStyle: fmListStyle; + ListWidth: any; + Locked: boolean; + MatchEntry: fmMatchEntry; + readonly MatchFound: boolean; + MatchRequired: boolean; + MaxLength: number; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Paste(): void; + RemoveItem(pvargIndex: any): void; + SelectionMargin: boolean; + SelLength: number; + SelStart: number; + SelText: string; + ShowDropButtonWhen: fmShowDropButtonWhen; + SpecialEffect: fmSpecialEffect; + Style: fmStyle; + Text: string; + TextAlign: fmTextAlign; + TextColumn: any; + readonly TextLength: number; + TopIndex: any; + readonly Valid: boolean; + Value: any; + } + + class ComboBox2 { + private 'MSForms.ComboBox2_typekey': ComboBox2; + private constructor(); + readonly _Font_Reserved: NewFont; + AddItem(pvargItem?: any, pvargIndex?: any): void; + AutoSize: boolean; + AutoTab: boolean; + AutoWordSelect: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BorderColor: number; + BordersSuppress: boolean; + BorderStyle: fmBorderStyle; + BoundColumn: any; + readonly CanPaste: boolean; + Clear(): void; + Column(pvargColumn?: any, pvargIndex?: any): any; + ColumnCount: number; + ColumnHeads: boolean; + ColumnWidths: string; + Copy(): void; + readonly CurTargetX: number; + readonly CurTargetY: number; + CurX: number; + Cut(): void; + readonly DisplayStyle: fmDisplayStyle; + DragBehavior: fmDragBehavior; + DropButtonStyle: fmDropButtonStyle; + DropDown(): void; + Enabled: boolean; + EnterFieldBehavior: fmEnterFieldBehavior; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + HideSelection: boolean; + IMEMode: fmIMEMode; + readonly LineCount: number; + List(pvargIndex?: any, pvargColumn?: any): any; + readonly ListCount: number; + ListCursor: any; + ListIndex: any; + ListRows: number; + ListStyle: fmListStyle; + ListWidth: any; + Locked: boolean; + MatchEntry: fmMatchEntry; + readonly MatchFound: boolean; + MatchRequired: boolean; + MaxLength: number; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Paste(): void; + RemoveItem(pvargIndex: any): void; + SelectionMargin: boolean; + SelLength: number; + SelStart: number; + SelText: string; + ShowDropButtonWhen: fmShowDropButtonWhen; + SpecialEffect: fmSpecialEffect; + Style: fmStyle; + Text: string; + TextAlign: fmTextAlign; + TextColumn: any; + readonly TextLength: number; + TopIndex: any; + readonly Valid: boolean; + Value: any; + } + + class CommandButton { + private 'MSForms.CommandButton_typekey': CommandButton; + private constructor(); + readonly _Font_Reserved: NewFont; + Accelerator: string; + AutoSize: boolean; + BackColor: number; + BackStyle: fmBackStyle; + Caption: string; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + Locked: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Picture: stdole.StdPicture; + PicturePosition: fmPicturePosition; + TakeFocusOnClick: boolean; + Value: boolean; + WordWrap: boolean; + } + + class CommandButton2 { + private 'MSForms.CommandButton2_typekey': CommandButton2; + private constructor(); + readonly _Font_Reserved: NewFont; + Accelerator: string; + AutoSize: boolean; + BackColor: number; + BackStyle: fmBackStyle; + Caption: string; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + Locked: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Picture: stdole.StdPicture; + PicturePosition: fmPicturePosition; + TakeFocusOnClick: boolean; + Value: boolean; + WordWrap: boolean; + } + + class Control { + private 'MSForms.Control_typekey': Control; + private constructor(); + _GetHeight(Height: number): void; + _GethWnd(): number; + _GetID(): number; + _GetLeft(Left: number): void; + _GetOldHeight(OldHeight: number): void; + _GetOldLeft(OldLeft: number): void; + _GetOldTop(OldTop: number): void; + _GetOldWidth(OldWidth: number): void; + _GetTop(Top: number): void; + _GetWidth(Width: number): void; + _Move(Left: number, Top: number, Width: number, Height: number): void; + _SetHeight(Height: number): void; + _SetLeft(Left: number): void; + _SetTop(Top: number): void; + _SetWidth(Width: number): void; + _ZOrder(zPosition: fmZOrder): void; + BoundValue: any; + Cancel: boolean; + ControlSource: string; + ControlTipText: string; + Default: boolean; + Height: number; + HelpContextID: number; + InSelection: boolean; + readonly LayoutEffect: fmLayoutEffect; + Left: number; + Move(Left?: any, Top?: any, Width?: any, Height?: any, Layout?: any): void; + Name: string; + readonly Object: any; + readonly OldHeight: number; + readonly OldLeft: number; + readonly OldTop: number; + readonly OldWidth: number; + readonly Parent: any; + RowSource: string; + RowSourceType: number; + Select(SelectInGroup: boolean): void; + SetFocus(): void; + TabIndex: number; + TabStop: boolean; + Tag: string; + Top: number; + Visible: boolean; + Width: number; + ZOrder(zPosition?: any): void; + } + + class Controls { + private 'MSForms.Controls_typekey': Controls; + private constructor(); + _AddByClass(clsid: number): Control; + _GetItemByID(ID: number): Control; + _GetItemByIndex(lIndex: number): Control; + _GetItemByName(pstr: string): Control; + _Move(cx: number, cy: number): void; + Add(bstrProgID: string, Name?: any, Visible?: any): Control; + AlignToGrid(): void; + BringForward(): void; + BringToFront(): void; + Clear(): void; + Copy(): void; + readonly Count: number; + Cut(): void; + Enum(): any; + Item(varg: any): any; + Move(cx: number, cy: number): void; + Remove(varg: any): void; + SelectAll(): void; + SendBackward(): void; + SendToBack(): void; + } + + class DataObject { + private 'MSForms.DataObject_typekey': DataObject; + private constructor(); + Clear(): void; + GetFormat(Format: any): boolean; + GetFromClipboard(): void; + GetText(Format?: any): string; + PutInClipboard(): void; + SetText(Text: string, Format?: any): void; + StartDrag(OKEffect?: any): fmDropEffect; + } + + class DataObject2 { + private 'MSForms.DataObject2_typekey': DataObject2; + private constructor(); + Clear(): void; + GetFormat(Format: any): boolean; + GetFromClipboard(): void; + GetText(Format?: any): string; + PutInClipboard(): void; + SetText(Text: string, Format?: any): void; + StartDrag(OKEffect?: any): fmDropEffect; + } + + class Frame { + private 'MSForms.Frame_typekey': Frame; + private constructor(); + readonly _Font_Reserved: NewFont; + _GetGridX(GridX: number): void; + _GetGridY(GridY: number): void; + _GetInsideHeight(InsideHeight: number): void; + _GetInsideWidth(InsideWidth: number): void; + _GetScrollHeight(ScrollHeight: number): void; + _GetScrollLeft(ScrollLeft: number): void; + _GetScrollTop(ScrollTop: number): void; + _GetScrollWidth(ScrollWidth: number): void; + _SetGridX(GridX: number): void; + _SetGridY(GridY: number): void; + _SetScrollHeight(ScrollHeight: number): void; + _SetScrollLeft(ScrollLeft: number): void; + _SetScrollTop(ScrollTop: number): void; + _SetScrollWidth(ScrollWidth: number): void; + readonly ActiveControl: Control; + BackColor: number; + BorderColor: number; + BorderStyle: fmBorderStyle; + readonly CanPaste: boolean; + readonly CanRedo: boolean; + readonly CanUndo: boolean; + Caption: string; + readonly Controls: Controls; + Copy(): void; + Cut(): void; + Cycle: fmCycle; + DesignMode: fmMode; + Enabled: boolean; + Font: NewFont; + ForeColor: number; + GridX: number; + GridY: number; + readonly InsideHeight: number; + readonly InsideWidth: number; + KeepScrollBarsVisible: fmScrollBars; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Paste(): void; + Picture: stdole.StdPicture; + PictureAlignment: fmPictureAlignment; + PictureSizeMode: fmPictureSizeMode; + PictureTiling: boolean; + RedoAction(): void; + Repaint(): void; + Scroll(xAction?: any, yAction?: any): void; + ScrollBars: fmScrollBars; + ScrollHeight: number; + ScrollLeft: number; + ScrollTop: number; + ScrollWidth: number; + readonly Selected: Controls; + SetDefaultTabOrder(): void; + ShowGridDots: fmMode; + ShowToolbox: fmMode; + SnapToGrid: fmMode; + SpecialEffect: fmSpecialEffect; + UndoAction(): void; + VerticalScrollBarSide: fmVerticalScrollBarSide; + Zoom: number; + } + + class Frame2 { + private 'MSForms.Frame2_typekey': Frame2; + private constructor(); + readonly _Font_Reserved: NewFont; + _GetGridX(GridX: number): void; + _GetGridY(GridY: number): void; + _GetInsideHeight(InsideHeight: number): void; + _GetInsideWidth(InsideWidth: number): void; + _GetScrollHeight(ScrollHeight: number): void; + _GetScrollLeft(ScrollLeft: number): void; + _GetScrollTop(ScrollTop: number): void; + _GetScrollWidth(ScrollWidth: number): void; + _SetGridX(GridX: number): void; + _SetGridY(GridY: number): void; + _SetScrollHeight(ScrollHeight: number): void; + _SetScrollLeft(ScrollLeft: number): void; + _SetScrollTop(ScrollTop: number): void; + _SetScrollWidth(ScrollWidth: number): void; + readonly ActiveControl: Control; + BackColor: number; + BorderColor: number; + BorderStyle: fmBorderStyle; + readonly CanPaste: boolean; + readonly CanRedo: boolean; + readonly CanUndo: boolean; + Caption: string; + readonly Controls: Controls; + Copy(): void; + Cut(): void; + Cycle: fmCycle; + DesignMode: fmMode; + Enabled: boolean; + Font: NewFont; + ForeColor: number; + GridX: number; + GridY: number; + readonly InsideHeight: number; + readonly InsideWidth: number; + KeepScrollBarsVisible: fmScrollBars; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Paste(): void; + Picture: stdole.StdPicture; + PictureAlignment: fmPictureAlignment; + PictureSizeMode: fmPictureSizeMode; + PictureTiling: boolean; + RedoAction(): void; + Repaint(): void; + Scroll(xAction?: any, yAction?: any): void; + ScrollBars: fmScrollBars; + ScrollHeight: number; + ScrollLeft: number; + ScrollTop: number; + ScrollWidth: number; + readonly Selected: Controls; + SetDefaultTabOrder(): void; + ShowGridDots: fmMode; + ShowToolbox: fmMode; + SnapToGrid: fmMode; + SpecialEffect: fmSpecialEffect; + UndoAction(): void; + VerticalScrollBarSide: fmVerticalScrollBarSide; + Zoom: number; + } + + class HTMLCheckbox { + private 'MSForms.HTMLCheckbox_typekey': HTMLCheckbox; + private constructor(); + Checked: boolean; + HTMLName: string; + HTMLType: string; + Value: string; + } + + class HTMLCheckbox2 { + private 'MSForms.HTMLCheckbox2_typekey': HTMLCheckbox2; + private constructor(); + Checked: boolean; + HTMLName: string; + HTMLType: string; + Value: string; + } + + class HTMLHidden { + private 'MSForms.HTMLHidden_typekey': HTMLHidden; + private constructor(); + HTMLName: string; + HTMLType: string; + Value: string; + } + + class HTMLHidden2 { + private 'MSForms.HTMLHidden2_typekey': HTMLHidden2; + private constructor(); + HTMLName: string; + HTMLType: string; + Value: string; + } + + class HTMLImage { + private 'MSForms.HTMLImage_typekey': HTMLImage; + private constructor(); + Action: string; + Encoding: string; + HTMLName: string; + HTMLType: string; + Method: string; + Source: string; + } + + class HTMLImage2 { + private 'MSForms.HTMLImage2_typekey': HTMLImage2; + private constructor(); + Action: string; + Encoding: string; + HTMLName: string; + HTMLType: string; + Method: string; + Source: string; + } + + class HTMLOption { + private 'MSForms.HTMLOption_typekey': HTMLOption; + private constructor(); + Checked: boolean; + readonly DisplayStyle: fmDisplayStyle; + HTMLName: string; + HTMLType: string; + Value: string; + } + + class HTMLOption2 { + private 'MSForms.HTMLOption2_typekey': HTMLOption2; + private constructor(); + Checked: boolean; + readonly DisplayStyle: fmDisplayStyle; + HTMLName: string; + HTMLType: string; + Value: string; + } + + class HTMLPassword { + private 'MSForms.HTMLPassword_typekey': HTMLPassword; + private constructor(); + HTMLName: string; + HTMLType: string; + MaxLength: number; + Value: string; + Width: number; + } + + class HTMLPassword2 { + private 'MSForms.HTMLPassword2_typekey': HTMLPassword2; + private constructor(); + HTMLName: string; + HTMLType: string; + MaxLength: number; + Value: string; + Width: number; + } + + class HTMLReset { + private 'MSForms.HTMLReset_typekey': HTMLReset; + private constructor(); + Caption: string; + HTMLName: string; + HTMLType: string; + } + + class HTMLReset2 { + private 'MSForms.HTMLReset2_typekey': HTMLReset2; + private constructor(); + Caption: string; + HTMLName: string; + HTMLType: string; + } + + class HTMLSelect { + private 'MSForms.HTMLSelect_typekey': HTMLSelect; + private constructor(); + DisplayValues: any; + HTMLName: string; + MultiSelect: boolean; + Selected: string; + Size: number; + Values: any; + } + + class HTMLSelect2 { + private 'MSForms.HTMLSelect2_typekey': HTMLSelect2; + private constructor(); + DisplayValues: any; + HTMLName: string; + MultiSelect: boolean; + Selected: string; + Size: number; + Values: any; + } + + class HTMLSubmit { + private 'MSForms.HTMLSubmit_typekey': HTMLSubmit; + private constructor(); + Action: string; + Caption: string; + Encoding: string; + HTMLName: string; + HTMLType: string; + Method: string; + } + + class HTMLSubmit2 { + private 'MSForms.HTMLSubmit2_typekey': HTMLSubmit2; + private constructor(); + Action: string; + Caption: string; + Encoding: string; + HTMLName: string; + HTMLType: string; + Method: string; + } + + class HTMLText { + private 'MSForms.HTMLText_typekey': HTMLText; + private constructor(); + HTMLName: string; + HTMLType: string; + MaxLength: number; + Value: string; + Width: number; + } + + class HTMLText2 { + private 'MSForms.HTMLText2_typekey': HTMLText2; + private constructor(); + HTMLName: string; + HTMLType: string; + MaxLength: number; + Value: string; + Width: number; + } + + class HTMLTextArea { + private 'MSForms.HTMLTextArea_typekey': HTMLTextArea; + private constructor(); + Columns: number; + HTMLName: string; + Rows: number; + Value: string; + WordWrap: string; + } + + class HTMLTextArea2 { + private 'MSForms.HTMLTextArea2_typekey': HTMLTextArea2; + private constructor(); + Columns: number; + HTMLName: string; + Rows: number; + Value: string; + WordWrap: string; + } + + class Image { + private 'MSForms.Image_typekey': Image; + private constructor(); + AutoSize: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BorderColor: number; + BorderStyle: fmBorderStyle; + Enabled: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Picture: stdole.StdPicture; + PictureAlignment: fmPictureAlignment; + PictureSizeMode: fmPictureSizeMode; + PictureTiling: boolean; + SpecialEffect: fmSpecialEffect; + } + + class Image2 { + private 'MSForms.Image2_typekey': Image2; + private constructor(); + AutoSize: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BorderColor: number; + BorderStyle: fmBorderStyle; + Enabled: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Picture: stdole.StdPicture; + PictureAlignment: fmPictureAlignment; + PictureSizeMode: fmPictureSizeMode; + PictureTiling: boolean; + SpecialEffect: fmSpecialEffect; + } + + class Label { + private 'MSForms.Label_typekey': Label; + private constructor(); + readonly _Font_Reserved: NewFont; + _Value: string; + Accelerator: string; + AutoSize: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BorderColor: number; + BorderStyle: fmBorderStyle; + Caption: string; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Picture: stdole.StdPicture; + PicturePosition: fmPicturePosition; + SpecialEffect: fmSpecialEffect; + TextAlign: fmTextAlign; + WordWrap: boolean; + } + + class Label2 { + private 'MSForms.Label2_typekey': Label2; + private constructor(); + readonly _Font_Reserved: NewFont; + _Value: string; + Accelerator: string; + AutoSize: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BorderColor: number; + BorderStyle: fmBorderStyle; + Caption: string; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Picture: stdole.StdPicture; + PicturePosition: fmPicturePosition; + SpecialEffect: fmSpecialEffect; + TextAlign: fmTextAlign; + WordWrap: boolean; + } + + class ListBox { + private 'MSForms.ListBox_typekey': ListBox; + private constructor(); + readonly _Font_Reserved: NewFont; + AddItem(pvargItem?: any, pvargIndex?: any): void; + BackColor: number; + BorderColor: number; + BordersSuppress: boolean; + BorderStyle: fmBorderStyle; + BoundColumn: any; + Clear(): void; + Column(pvargColumn?: any, pvargIndex?: any): any; + ColumnCount: number; + ColumnHeads: boolean; + ColumnWidths: string; + readonly DisplayStyle: fmDisplayStyle; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + IMEMode: fmIMEMode; + IntegralHeight: boolean; + List(pvargIndex?: any, pvargColumn?: any): any; + readonly ListCount: number; + ListCursor: any; + ListIndex: any; + ListStyle: fmListStyle; + ListWidth: any; + Locked: boolean; + MatchEntry: fmMatchEntry; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + MultiSelect: fmMultiSelect; + RemoveItem(pvargIndex: any): void; + Selected(pvargIndex: any): boolean; + SpecialEffect: fmSpecialEffect; + Text: string; + TextAlign: fmTextAlign; + TextColumn: any; + TopIndex: any; + readonly Valid: boolean; + Value: any; + } + + class ListBox2 { + private 'MSForms.ListBox2_typekey': ListBox2; + private constructor(); + readonly _Font_Reserved: NewFont; + AddItem(pvargItem?: any, pvargIndex?: any): void; + BackColor: number; + BorderColor: number; + BordersSuppress: boolean; + BorderStyle: fmBorderStyle; + BoundColumn: any; + Clear(): void; + Column(pvargColumn?: any, pvargIndex?: any): any; + ColumnCount: number; + ColumnHeads: boolean; + ColumnWidths: string; + readonly DisplayStyle: fmDisplayStyle; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + IMEMode: fmIMEMode; + IntegralHeight: boolean; + List(pvargIndex?: any, pvargColumn?: any): any; + readonly ListCount: number; + ListCursor: any; + ListIndex: any; + ListStyle: fmListStyle; + ListWidth: any; + Locked: boolean; + MatchEntry: fmMatchEntry; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + MultiSelect: fmMultiSelect; + RemoveItem(pvargIndex: any): void; + Selected(pvargIndex: any): boolean; + SpecialEffect: fmSpecialEffect; + Text: string; + TextAlign: fmTextAlign; + TextColumn: any; + TopIndex: any; + readonly Valid: boolean; + Value: any; + } + + class MultiPage { + private 'MSForms.MultiPage_typekey': MultiPage; + private constructor(); + readonly _Font_Reserved: NewFont; + _GetTabFixedHeight(Height: number): void; + _GetTabFixedWidth(Width: number): void; + _SetTabFixedHeight(Height: number): void; + _SetTabFixedWidth(Width: number): void; + BackColor: number; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + MultiRow: boolean; + readonly Pages: Pages; + readonly SelectedItem: Page; + Style: fmTabStyle; + TabFixedHeight: number; + TabFixedWidth: number; + TabOrientation: fmTabOrientation; + Value: number; + } + + class MultiPage2 { + private 'MSForms.MultiPage2_typekey': MultiPage2; + private constructor(); + readonly _Font_Reserved: NewFont; + _GetTabFixedHeight(Height: number): void; + _GetTabFixedWidth(Width: number): void; + _SetTabFixedHeight(Height: number): void; + _SetTabFixedWidth(Width: number): void; + BackColor: number; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + MultiRow: boolean; + readonly Pages: Pages; + readonly SelectedItem: Page; + Style: fmTabStyle; + TabFixedHeight: number; + TabFixedWidth: number; + TabOrientation: fmTabOrientation; + Value: number; + } + + class NewFont { + private 'MSForms.NewFont_typekey': NewFont; + private constructor(); + readonly Bold: boolean; + readonly Charset: number; + readonly Italic: boolean; + readonly Name: string; + readonly Size: number; + readonly Strikethrough: boolean; + readonly Underline: boolean; + readonly Weight: number; + } + + class OptionButton { + private 'MSForms.OptionButton_typekey': OptionButton; + private constructor(); + readonly _Font_Reserved: NewFont; + Accelerator: string; + Alignment: fmAlignment; + AutoSize: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BordersSuppress: boolean; + Caption: string; + readonly DisplayStyle: fmDisplayStyle; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + GroupName: string; + Locked: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + MultiSelect: fmMultiSelect; + Picture: stdole.StdPicture; + PicturePosition: fmPicturePosition; + SpecialEffect: fmButtonEffect; + TextAlign: fmTextAlign; + TripleState: boolean; + readonly Valid: boolean; + Value: any; + WordWrap: boolean; + } + + class OptionButton2 { + private 'MSForms.OptionButton2_typekey': OptionButton2; + private constructor(); + readonly _Font_Reserved: NewFont; + Accelerator: string; + Alignment: fmAlignment; + AutoSize: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BordersSuppress: boolean; + Caption: string; + readonly DisplayStyle: fmDisplayStyle; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + GroupName: string; + Locked: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + MultiSelect: fmMultiSelect; + Picture: stdole.StdPicture; + PicturePosition: fmPicturePosition; + SpecialEffect: fmButtonEffect; + TextAlign: fmTextAlign; + TripleState: boolean; + readonly Valid: boolean; + Value: any; + WordWrap: boolean; + } + + class Page { + private 'MSForms.Page_typekey': Page; + private constructor(); + _GetGridX(GridX: number): void; + _GetGridY(GridY: number): void; + _GetInsideHeight(InsideHeight: number): void; + _GetInsideWidth(InsideWidth: number): void; + _GetScrollHeight(ScrollHeight: number): void; + _GetScrollLeft(ScrollLeft: number): void; + _GetScrollTop(ScrollTop: number): void; + _GetScrollWidth(ScrollWidth: number): void; + _SetGridX(GridX: number): void; + _SetGridY(GridY: number): void; + _SetScrollHeight(ScrollHeight: number): void; + _SetScrollLeft(ScrollLeft: number): void; + _SetScrollTop(ScrollTop: number): void; + _SetScrollWidth(ScrollWidth: number): void; + Accelerator: string; + readonly ActiveControl: Control; + readonly CanPaste: boolean; + readonly CanRedo: boolean; + readonly CanUndo: boolean; + Caption: string; + readonly Controls: Controls; + ControlTipText: string; + Copy(): void; + Cut(): void; + Cycle: fmCycle; + DesignMode: fmMode; + Enabled: boolean; + GridX: number; + GridY: number; + Index: number; + readonly InsideHeight: number; + readonly InsideWidth: number; + KeepScrollBarsVisible: fmScrollBars; + Name: string; + readonly Parent: any; + Paste(): void; + Picture: stdole.StdPicture; + PictureAlignment: fmPictureAlignment; + PictureSizeMode: fmPictureSizeMode; + PictureTiling: boolean; + RedoAction(): void; + Repaint(): void; + Scroll(xAction?: any, yAction?: any): void; + ScrollBars: fmScrollBars; + ScrollHeight: number; + ScrollLeft: number; + ScrollTop: number; + ScrollWidth: number; + readonly Selected: Controls; + SetDefaultTabOrder(): void; + ShowGridDots: fmMode; + ShowToolbox: fmMode; + SnapToGrid: fmMode; + Tag: string; + TransitionEffect: fmTransitionEffect; + TransitionPeriod: number; + UndoAction(): void; + VerticalScrollBarSide: fmVerticalScrollBarSide; + Visible: boolean; + Zoom: number; + } + + class Pages { + private 'MSForms.Pages_typekey': Pages; + private constructor(); + _AddCtrl(clsid: number, bstrName: string, bstrCaption: string): Page; + _GetItemByIndex(lIndex: number): Control; + _GetItemByName(pstrName: string): Control; + _InsertCtrl(clsid: number, bstrName: string, bstrCaption: string, lIndex: number): Page; + Add(bstrName?: any, bstrCaption?: any, lIndex?: any): Page; + Clear(): void; + readonly Count: number; + Enum(): any; + Item(varg: any): any; + Remove(varg: any): void; + } + + class ReturnBoolean { + private 'MSForms.ReturnBoolean_typekey': ReturnBoolean; + private constructor(); + Value: boolean; + } + + class ReturnEffect { + private 'MSForms.ReturnEffect_typekey': ReturnEffect; + private constructor(); + Value: fmDropEffect; + } + + class ReturnInteger { + private 'MSForms.ReturnInteger_typekey': ReturnInteger; + private constructor(); + Value: number; + } + + class ReturnSingle { + private 'MSForms.ReturnSingle_typekey': ReturnSingle; + private constructor(); + Value: number; + } + + class ReturnString { + private 'MSForms.ReturnString_typekey': ReturnString; + private constructor(); + Value: string; + } + + class ScrollBar { + private 'MSForms.ScrollBar_typekey': ScrollBar; + private constructor(); + BackColor: number; + Delay: number; + Enabled: boolean; + ForeColor: number; + LargeChange: number; + Max: number; + Min: number; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Orientation: fmOrientation; + ProportionalThumb: boolean; + SmallChange: number; + Value: number; + } + + class ScrollBar2 { + private 'MSForms.ScrollBar2_typekey': ScrollBar2; + private constructor(); + BackColor: number; + Delay: number; + Enabled: boolean; + ForeColor: number; + LargeChange: number; + Max: number; + Min: number; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Orientation: fmOrientation; + ProportionalThumb: boolean; + SmallChange: number; + Value: number; + } + + class SpinButton { + private 'MSForms.SpinButton_typekey': SpinButton; + private constructor(); + BackColor: number; + Delay: number; + Enabled: boolean; + ForeColor: number; + Max: number; + Min: number; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Orientation: fmOrientation; + SmallChange: number; + Value: number; + } + + class SpinButton2 { + private 'MSForms.SpinButton2_typekey': SpinButton2; + private constructor(); + BackColor: number; + Delay: number; + Enabled: boolean; + ForeColor: number; + Max: number; + Min: number; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Orientation: fmOrientation; + SmallChange: number; + Value: number; + } + + class Tab { + private 'MSForms.Tab_typekey': Tab; + private constructor(); + Accelerator: string; + Caption: string; + ControlTipText: string; + Enabled: boolean; + Index: number; + Name: string; + Tag: string; + Visible: boolean; + } + + class Tabs { + private 'MSForms.Tabs_typekey': Tabs; + private constructor(); + _Add(bstrName: string, bstrCaption: string): Tab; + _GetItemByIndex(lIndex: number): Tab; + _GetItemByName(bstr: string): Tab; + _Insert(bstrName: string, bstrCaption: string, lIndex: number): Tab; + Add(bstrName?: any, bstrCaption?: any, lIndex?: any): Tab; + Clear(): void; + readonly Count: number; + Enum(): any; + Item(varg: any): any; + Remove(varg: any): void; + } + + class TabStrip { + private 'MSForms.TabStrip_typekey': TabStrip; + private constructor(); + readonly _Font_Reserved: NewFont; + _GetClientHeight(ClientHeight: number): void; + _GetClientLeft(ClientLeft: number): void; + _GetClientTop(ClientTop: number): void; + _GetClientWidth(ClientWidth: number): void; + _GetTabFixedHeight(TabFixedHeight: number): void; + _GetTabFixedWidth(TabFixedWidth: number): void; + _SetTabFixedHeight(TabFixedHeight: number): void; + _SetTabFixedWidth(TabFixedWidth: number): void; + BackColor: number; + readonly ClientHeight: number; + readonly ClientLeft: number; + readonly ClientTop: number; + readonly ClientWidth: number; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + MultiRow: boolean; + readonly SelectedItem: Tab; + Style: fmTabStyle; + TabFixedHeight: number; + TabFixedWidth: number; + TabOrientation: fmTabOrientation; + readonly Tabs: Tabs; + Value: number; + } + + class TabStrip2 { + private 'MSForms.TabStrip2_typekey': TabStrip2; + private constructor(); + readonly _Font_Reserved: NewFont; + _GetClientHeight(ClientHeight: number): void; + _GetClientLeft(ClientLeft: number): void; + _GetClientTop(ClientTop: number): void; + _GetClientWidth(ClientWidth: number): void; + _GetTabFixedHeight(TabFixedHeight: number): void; + _GetTabFixedWidth(TabFixedWidth: number): void; + _SetTabFixedHeight(TabFixedHeight: number): void; + _SetTabFixedWidth(TabFixedWidth: number): void; + BackColor: number; + readonly ClientHeight: number; + readonly ClientLeft: number; + readonly ClientTop: number; + readonly ClientWidth: number; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + MultiRow: boolean; + readonly SelectedItem: Tab; + Style: fmTabStyle; + TabFixedHeight: number; + TabFixedWidth: number; + TabOrientation: fmTabOrientation; + readonly Tabs: Tabs; + Value: number; + } + + class TextBox { + private 'MSForms.TextBox_typekey': TextBox; + private constructor(); + readonly _Font_Reserved: NewFont; + AutoSize: boolean; + AutoTab: boolean; + AutoWordSelect: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BorderColor: number; + BordersSuppress: boolean; + BorderStyle: fmBorderStyle; + readonly CanPaste: boolean; + Copy(): void; + CurLine: number; + readonly CurTargetX: number; + readonly CurTargetY: number; + CurX: number; + CurY: number; + Cut(): void; + readonly DisplayStyle: fmDisplayStyle; + DragBehavior: fmDragBehavior; + DropButtonStyle: fmDropButtonStyle; + Enabled: boolean; + EnterFieldBehavior: fmEnterFieldBehavior; + EnterKeyBehavior: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + HideSelection: boolean; + IMEMode: fmIMEMode; + IntegralHeight: boolean; + readonly LineCount: number; + Locked: boolean; + MaxLength: number; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + MultiLine: boolean; + PasswordChar: string; + Paste(): void; + ScrollBars: fmScrollBars; + SelectionMargin: boolean; + SelLength: number; + SelStart: number; + SelText: string; + ShowDropButtonWhen: fmShowDropButtonWhen; + SpecialEffect: fmSpecialEffect; + TabKeyBehavior: boolean; + Text: string; + TextAlign: fmTextAlign; + readonly TextLength: number; + readonly Valid: boolean; + Value: any; + WordWrap: boolean; + } + + class TextBox2 { + private 'MSForms.TextBox2_typekey': TextBox2; + private constructor(); + readonly _Font_Reserved: NewFont; + AutoSize: boolean; + AutoTab: boolean; + AutoWordSelect: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BorderColor: number; + BordersSuppress: boolean; + BorderStyle: fmBorderStyle; + readonly CanPaste: boolean; + Copy(): void; + CurLine: number; + readonly CurTargetX: number; + readonly CurTargetY: number; + CurX: number; + CurY: number; + Cut(): void; + readonly DisplayStyle: fmDisplayStyle; + DragBehavior: fmDragBehavior; + DropButtonStyle: fmDropButtonStyle; + Enabled: boolean; + EnterFieldBehavior: fmEnterFieldBehavior; + EnterKeyBehavior: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + HideSelection: boolean; + IMEMode: fmIMEMode; + IntegralHeight: boolean; + readonly LineCount: number; + Locked: boolean; + MaxLength: number; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + MultiLine: boolean; + PasswordChar: string; + Paste(): void; + ScrollBars: fmScrollBars; + SelectionMargin: boolean; + SelLength: number; + SelStart: number; + SelText: string; + ShowDropButtonWhen: fmShowDropButtonWhen; + SpecialEffect: fmSpecialEffect; + TabKeyBehavior: boolean; + Text: string; + TextAlign: fmTextAlign; + readonly TextLength: number; + readonly Valid: boolean; + Value: any; + WordWrap: boolean; + } + + class ToggleButton { + private 'MSForms.ToggleButton_typekey': ToggleButton; + private constructor(); + readonly _Font_Reserved: NewFont; + Accelerator: string; + Alignment: fmAlignment; + AutoSize: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BordersSuppress: boolean; + Caption: string; + readonly DisplayStyle: fmDisplayStyle; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + GroupName: string; + Locked: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + MultiSelect: fmMultiSelect; + Picture: stdole.StdPicture; + PicturePosition: fmPicturePosition; + SpecialEffect: fmButtonEffect; + TextAlign: fmTextAlign; + TripleState: boolean; + readonly Valid: boolean; + Value: any; + WordWrap: boolean; + } + + class ToggleButton2 { + private 'MSForms.ToggleButton2_typekey': ToggleButton2; + private constructor(); + readonly _Font_Reserved: NewFont; + Accelerator: string; + Alignment: fmAlignment; + AutoSize: boolean; + BackColor: number; + BackStyle: fmBackStyle; + BordersSuppress: boolean; + Caption: string; + readonly DisplayStyle: fmDisplayStyle; + Enabled: boolean; + Font: NewFont; + FontBold: boolean; + FontItalic: boolean; + FontName: string; + FontSize: number; + FontStrikethru: boolean; + FontUnderline: boolean; + FontWeight: number; + ForeColor: number; + GroupName: string; + Locked: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + MultiSelect: fmMultiSelect; + Picture: stdole.StdPicture; + PicturePosition: fmPicturePosition; + SpecialEffect: fmButtonEffect; + TextAlign: fmTextAlign; + TripleState: boolean; + readonly Valid: boolean; + Value: any; + WordWrap: boolean; + } + + class UserForm { + private 'MSForms.UserForm_typekey': UserForm; + private constructor(); + readonly _Font_Reserved: NewFont; + _GetGridX(GridX: number): void; + _GetGridY(GridY: number): void; + _GetInsideHeight(InsideHeight: number): void; + _GetInsideWidth(InsideWidth: number): void; + _GetScrollHeight(ScrollHeight: number): void; + _GetScrollLeft(ScrollLeft: number): void; + _GetScrollTop(ScrollTop: number): void; + _GetScrollWidth(ScrollWidth: number): void; + _SetGridX(GridX: number): void; + _SetGridY(GridY: number): void; + _SetScrollHeight(ScrollHeight: number): void; + _SetScrollLeft(ScrollLeft: number): void; + _SetScrollTop(ScrollTop: number): void; + _SetScrollWidth(ScrollWidth: number): void; + readonly ActiveControl: Control; + BackColor: number; + BorderColor: number; + BorderStyle: fmBorderStyle; + readonly CanPaste: boolean; + readonly CanRedo: boolean; + readonly CanUndo: boolean; + Caption: string; + readonly Controls: Controls; + Copy(): void; + Cut(): void; + Cycle: fmCycle; + DesignMode: fmMode; + DrawBuffer: number; + Enabled: boolean; + Font: NewFont; + ForeColor: number; + GridX: number; + GridY: number; + readonly InsideHeight: number; + readonly InsideWidth: number; + KeepScrollBarsVisible: fmScrollBars; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Paste(): void; + Picture: stdole.StdPicture; + PictureAlignment: fmPictureAlignment; + PictureSizeMode: fmPictureSizeMode; + PictureTiling: boolean; + RedoAction(): void; + Repaint(): void; + Scroll(xAction?: any, yAction?: any): void; + ScrollBars: fmScrollBars; + ScrollHeight: number; + ScrollLeft: number; + ScrollTop: number; + ScrollWidth: number; + readonly Selected: Controls; + SetDefaultTabOrder(): void; + ShowGridDots: fmMode; + ShowToolbox: fmMode; + SnapToGrid: fmMode; + SpecialEffect: fmSpecialEffect; + UndoAction(): void; + VerticalScrollBarSide: fmVerticalScrollBarSide; + Zoom: number; + } + + class UserForm2 { + private 'MSForms.UserForm2_typekey': UserForm2; + private constructor(); + readonly _Font_Reserved: NewFont; + _GetGridX(GridX: number): void; + _GetGridY(GridY: number): void; + _GetInsideHeight(InsideHeight: number): void; + _GetInsideWidth(InsideWidth: number): void; + _GetScrollHeight(ScrollHeight: number): void; + _GetScrollLeft(ScrollLeft: number): void; + _GetScrollTop(ScrollTop: number): void; + _GetScrollWidth(ScrollWidth: number): void; + _SetGridX(GridX: number): void; + _SetGridY(GridY: number): void; + _SetScrollHeight(ScrollHeight: number): void; + _SetScrollLeft(ScrollLeft: number): void; + _SetScrollTop(ScrollTop: number): void; + _SetScrollWidth(ScrollWidth: number): void; + readonly ActiveControl: Control; + BackColor: number; + BorderColor: number; + BorderStyle: fmBorderStyle; + readonly CanPaste: boolean; + readonly CanRedo: boolean; + readonly CanUndo: boolean; + Caption: string; + readonly Controls: Controls; + Copy(): void; + Cut(): void; + Cycle: fmCycle; + DesignMode: fmMode; + DrawBuffer: number; + Enabled: boolean; + Font: NewFont; + ForeColor: number; + GridX: number; + GridY: number; + readonly InsideHeight: number; + readonly InsideWidth: number; + KeepScrollBarsVisible: fmScrollBars; + MouseIcon: stdole.StdPicture; + MousePointer: fmMousePointer; + Paste(): void; + Picture: stdole.StdPicture; + PictureAlignment: fmPictureAlignment; + PictureSizeMode: fmPictureSizeMode; + PictureTiling: boolean; + RedoAction(): void; + Repaint(): void; + Scroll(xAction?: any, yAction?: any): void; + ScrollBars: fmScrollBars; + ScrollHeight: number; + ScrollLeft: number; + ScrollTop: number; + ScrollWidth: number; + readonly Selected: Controls; + SetDefaultTabOrder(): void; + ShowGridDots: fmMode; + ShowToolbox: fmMode; + SnapToGrid: fmMode; + SpecialEffect: fmSpecialEffect; + UndoAction(): void; + VerticalScrollBarSide: fmVerticalScrollBarSide; + Zoom: number; + } + + namespace EventHelperTypes { + type CheckBox_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type CheckBox_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type CheckBox_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type CheckBox2_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type CheckBox2_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type CheckBox2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type ComboBox_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type ComboBox_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type ComboBox_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type ComboBox2_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type ComboBox2_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type ComboBox2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type CommandButton_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type CommandButton_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type CommandButton_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type CommandButton2_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type CommandButton2_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type CommandButton2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type Frame_BeforeDragOver_ArgNames = ['Cancel', 'Control', 'Data', 'X', 'Y', 'State', 'Effect', 'Shift']; + + type Frame_BeforeDropOrPaste_ArgNames = ['Cancel', 'Control', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type Frame_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type Frame_Scroll_ArgNames = ['ActionX', 'ActionY', 'RequestDx', 'RequestDy', 'ActualDx', 'ActualDy']; + + type Frame2_BeforeDragOver_ArgNames = ['Cancel', 'Control', 'Data', 'X', 'Y', 'State', 'Effect', 'Shift']; + + type Frame2_BeforeDropOrPaste_ArgNames = ['Cancel', 'Control', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type Frame2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type Frame2_Scroll_ArgNames = ['ActionX', 'ActionY', 'RequestDx', 'RequestDy', 'ActualDx', 'ActualDy']; + + type Image_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type Image_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type Image_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type Image2_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type Image2_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type Image2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type Label_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type Label_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type Label_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type Label2_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type Label2_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type Label2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type ListBox_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type ListBox_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type ListBox_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type ListBox2_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type ListBox2_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type ListBox2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type MultiPage_BeforeDragOver_ArgNames = ['Index', 'Cancel', 'Control', 'Data', 'X', 'Y', 'State', 'Effect', 'Shift']; + + type MultiPage_BeforeDropOrPaste_ArgNames = ['Index', 'Cancel', 'Control', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type MultiPage_Error_ArgNames = ['Index', 'Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type MultiPage_Scroll_ArgNames = ['Index', 'ActionX', 'ActionY', 'RequestDx', 'RequestDy', 'ActualDx', 'ActualDy']; + + type MultiPage2_BeforeDragOver_ArgNames = ['Index', 'Cancel', 'Control', 'Data', 'X', 'Y', 'State', 'Effect', 'Shift']; + + type MultiPage2_BeforeDropOrPaste_ArgNames = ['Index', 'Cancel', 'Control', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type MultiPage2_Error_ArgNames = ['Index', 'Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type MultiPage2_Scroll_ArgNames = ['Index', 'ActionX', 'ActionY', 'RequestDx', 'RequestDy', 'ActualDx', 'ActualDy']; + + type OptionButton_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type OptionButton_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type OptionButton_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type OptionButton2_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type OptionButton2_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type OptionButton2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type ScrollBar_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type ScrollBar_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type ScrollBar_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type ScrollBar2_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type ScrollBar2_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type ScrollBar2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type SpinButton_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type SpinButton_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type SpinButton_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type SpinButton2_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type SpinButton2_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type SpinButton2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type TabStrip_BeforeDragOver_ArgNames = ['Index', 'Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type TabStrip_BeforeDropOrPaste_ArgNames = ['Index', 'Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type TabStrip_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type TabStrip2_BeforeDragOver_ArgNames = ['Index', 'Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type TabStrip2_BeforeDropOrPaste_ArgNames = ['Index', 'Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type TabStrip2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type TextBox_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type TextBox_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type TextBox_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type TextBox2_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type TextBox2_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type TextBox2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type ToggleButton_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type ToggleButton_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type ToggleButton_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type ToggleButton2_BeforeDragOver_ArgNames = ['Cancel', 'Data', 'X', 'Y', 'DragState', 'Effect', 'Shift']; + + type ToggleButton2_BeforeDropOrPaste_ArgNames = ['Cancel', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type ToggleButton2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type UserForm_BeforeDragOver_ArgNames = ['Cancel', 'Control', 'Data', 'X', 'Y', 'State', 'Effect', 'Shift']; + + type UserForm_BeforeDropOrPaste_ArgNames = ['Cancel', 'Control', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type UserForm_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type UserForm_Scroll_ArgNames = ['ActionX', 'ActionY', 'RequestDx', 'RequestDy', 'ActualDx', 'ActualDy']; + + type UserForm2_BeforeDragOver_ArgNames = ['Cancel', 'Control', 'Data', 'X', 'Y', 'State', 'Effect', 'Shift']; + + type UserForm2_BeforeDropOrPaste_ArgNames = ['Cancel', 'Control', 'Action', 'Data', 'X', 'Y', 'Effect', 'Shift']; + + type UserForm2_Error_ArgNames = ['Number', 'Description', 'SCode', 'Source', 'HelpFile', 'HelpContext', 'CancelDisplay']; + + type UserForm2_Scroll_ArgNames = ['ActionX', 'ActionY', 'RequestDx', 'RequestDy', 'ActualDx', 'ActualDy']; + + interface CheckBox_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface CheckBox_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface CheckBox_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface CheckBox2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface CheckBox2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface CheckBox2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface ComboBox_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ComboBox_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ComboBox_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface ComboBox2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ComboBox2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ComboBox2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface CommandButton_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface CommandButton_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface CommandButton_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface CommandButton2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface CommandButton2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface CommandButton2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface Frame_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Control: Control; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly State: fmDragState; + readonly X: number; + readonly Y: number; + } + + interface Frame_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Control: Control; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface Frame_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface Frame_Scroll_Parameter { + readonly ActionX: fmScrollAction; + readonly ActionY: fmScrollAction; + readonly ActualDx: ReturnSingle; + readonly ActualDy: ReturnSingle; + readonly RequestDx: number; + readonly RequestDy: number; + } + + interface Frame2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Control: Control; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly State: fmDragState; + readonly X: number; + readonly Y: number; + } + + interface Frame2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Control: Control; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface Frame2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface Frame2_Scroll_Parameter { + readonly ActionX: fmScrollAction; + readonly ActionY: fmScrollAction; + readonly ActualDx: ReturnSingle; + readonly ActualDy: ReturnSingle; + readonly RequestDx: number; + readonly RequestDy: number; + } + + interface Image_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface Image_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface Image_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface Image2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface Image2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface Image2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface Label_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface Label_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface Label_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface Label2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface Label2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface Label2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface ListBox_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ListBox_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ListBox_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface ListBox2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ListBox2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ListBox2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface MultiPage_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Control: Control; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Index: number; + readonly Shift: number; + readonly State: fmDragState; + readonly X: number; + readonly Y: number; + } + + interface MultiPage_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Control: Control; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Index: number; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface MultiPage_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Index: number; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface MultiPage_Scroll_Parameter { + readonly ActionX: fmScrollAction; + readonly ActionY: fmScrollAction; + readonly ActualDx: ReturnSingle; + readonly ActualDy: ReturnSingle; + readonly Index: number; + readonly RequestDx: number; + readonly RequestDy: number; + } + + interface MultiPage2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Control: Control; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Index: number; + readonly Shift: number; + readonly State: fmDragState; + readonly X: number; + readonly Y: number; + } + + interface MultiPage2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Control: Control; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Index: number; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface MultiPage2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Index: number; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface MultiPage2_Scroll_Parameter { + readonly ActionX: fmScrollAction; + readonly ActionY: fmScrollAction; + readonly ActualDx: ReturnSingle; + readonly ActualDy: ReturnSingle; + readonly Index: number; + readonly RequestDx: number; + readonly RequestDy: number; + } + + interface OptionButton_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface OptionButton_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface OptionButton_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface OptionButton2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface OptionButton2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface OptionButton2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface ScrollBar_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ScrollBar_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ScrollBar_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface ScrollBar2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ScrollBar2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ScrollBar2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface SpinButton_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface SpinButton_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface SpinButton_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface SpinButton2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface SpinButton2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface SpinButton2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface TabStrip_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Index: number; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface TabStrip_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Index: number; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface TabStrip_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface TabStrip2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Index: number; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface TabStrip2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Index: number; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface TabStrip2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface TextBox_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface TextBox_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface TextBox_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface TextBox2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface TextBox2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface TextBox2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface ToggleButton_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ToggleButton_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ToggleButton_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface ToggleButton2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly DragState: fmDragState; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ToggleButton2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface ToggleButton2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface UserForm_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Control: Control; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly State: fmDragState; + readonly X: number; + readonly Y: number; + } + + interface UserForm_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Control: Control; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface UserForm_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface UserForm_Scroll_Parameter { + readonly ActionX: fmScrollAction; + readonly ActionY: fmScrollAction; + readonly ActualDx: ReturnSingle; + readonly ActualDy: ReturnSingle; + readonly RequestDx: number; + readonly RequestDy: number; + } + + interface UserForm2_BeforeDragOver_Parameter { + readonly Cancel: ReturnBoolean; + readonly Control: Control; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly State: fmDragState; + readonly X: number; + readonly Y: number; + } + + interface UserForm2_BeforeDropOrPaste_Parameter { + readonly Action: fmAction; + readonly Cancel: ReturnBoolean; + readonly Control: Control; + readonly Data: DataObject; + readonly Effect: ReturnEffect; + readonly Shift: number; + readonly X: number; + readonly Y: number; + } + + interface UserForm2_Error_Parameter { + readonly CancelDisplay: ReturnBoolean; + readonly Description: ReturnString; + readonly HelpContext: number; + readonly HelpFile: string; + readonly Number: number; + readonly SCode: number; + readonly Source: string; + } + + interface UserForm2_Scroll_Parameter { + readonly ActionX: fmScrollAction; + readonly ActionY: fmScrollAction; + readonly ActualDx: ReturnSingle; + readonly ActualDy: ReturnSingle; + readonly RequestDx: number; + readonly RequestDy: number; + } + } +} + +interface ActiveXObject { + on( + obj: MSForms.CheckBox, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.CheckBox_BeforeDragOver_ArgNames, handler: ( + this: MSForms.CheckBox, parameter: MSForms.EventHelperTypes.CheckBox_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.CheckBox, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.CheckBox_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.CheckBox, parameter: MSForms.EventHelperTypes.CheckBox_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.CheckBox, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.CheckBox, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.CheckBox, event: 'Error', argNames: MSForms.EventHelperTypes.CheckBox_Error_ArgNames, handler: ( + this: MSForms.CheckBox, parameter: MSForms.EventHelperTypes.CheckBox_Error_Parameter) => void): void; + on( + obj: MSForms.CheckBox, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.CheckBox, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.CheckBox, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.CheckBox, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.CheckBox, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.CheckBox, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.CheckBox2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.CheckBox2_BeforeDragOver_ArgNames, handler: ( + this: MSForms.CheckBox2, parameter: MSForms.EventHelperTypes.CheckBox2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.CheckBox2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.CheckBox2_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.CheckBox2, parameter: MSForms.EventHelperTypes.CheckBox2_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.CheckBox2, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.CheckBox2, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.CheckBox2, event: 'Error', argNames: MSForms.EventHelperTypes.CheckBox2_Error_ArgNames, handler: ( + this: MSForms.CheckBox2, parameter: MSForms.EventHelperTypes.CheckBox2_Error_Parameter) => void): void; + on( + obj: MSForms.CheckBox2, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.CheckBox2, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.CheckBox2, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.CheckBox2, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.CheckBox2, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.CheckBox2, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.ComboBox, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.ComboBox_BeforeDragOver_ArgNames, handler: ( + this: MSForms.ComboBox, parameter: MSForms.EventHelperTypes.ComboBox_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.ComboBox, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.ComboBox_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.ComboBox, parameter: MSForms.EventHelperTypes.ComboBox_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.ComboBox, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.ComboBox, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.ComboBox, event: 'Error', argNames: MSForms.EventHelperTypes.ComboBox_Error_ArgNames, handler: ( + this: MSForms.ComboBox, parameter: MSForms.EventHelperTypes.ComboBox_Error_Parameter) => void): void; + on( + obj: MSForms.ComboBox, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.ComboBox, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.ComboBox, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.ComboBox, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.ComboBox, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.ComboBox, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.ComboBox2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.ComboBox2_BeforeDragOver_ArgNames, handler: ( + this: MSForms.ComboBox2, parameter: MSForms.EventHelperTypes.ComboBox2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.ComboBox2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.ComboBox2_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.ComboBox2, parameter: MSForms.EventHelperTypes.ComboBox2_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.ComboBox2, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.ComboBox2, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.ComboBox2, event: 'Error', argNames: MSForms.EventHelperTypes.ComboBox2_Error_ArgNames, handler: ( + this: MSForms.ComboBox2, parameter: MSForms.EventHelperTypes.ComboBox2_Error_Parameter) => void): void; + on( + obj: MSForms.ComboBox2, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.ComboBox2, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.ComboBox2, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.ComboBox2, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.ComboBox2, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.ComboBox2, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.CommandButton, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.CommandButton_BeforeDragOver_ArgNames, + handler: (this: MSForms.CommandButton, parameter: MSForms.EventHelperTypes.CommandButton_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.CommandButton, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.CommandButton_BeforeDropOrPaste_ArgNames, + handler: (this: MSForms.CommandButton, parameter: MSForms.EventHelperTypes.CommandButton_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.CommandButton, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.CommandButton, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.CommandButton, event: 'Error', argNames: MSForms.EventHelperTypes.CommandButton_Error_ArgNames, handler: ( + this: MSForms.CommandButton, parameter: MSForms.EventHelperTypes.CommandButton_Error_Parameter) => void): void; + on( + obj: MSForms.CommandButton, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.CommandButton, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.CommandButton, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.CommandButton, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.CommandButton, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.CommandButton, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.CommandButton2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.CommandButton2_BeforeDragOver_ArgNames, + handler: (this: MSForms.CommandButton2, parameter: MSForms.EventHelperTypes.CommandButton2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.CommandButton2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.CommandButton2_BeforeDropOrPaste_ArgNames, + handler: (this: MSForms.CommandButton2, parameter: MSForms.EventHelperTypes.CommandButton2_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.CommandButton2, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.CommandButton2, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.CommandButton2, event: 'Error', argNames: MSForms.EventHelperTypes.CommandButton2_Error_ArgNames, handler: ( + this: MSForms.CommandButton2, parameter: MSForms.EventHelperTypes.CommandButton2_Error_Parameter) => void): void; + on( + obj: MSForms.CommandButton2, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.CommandButton2, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.CommandButton2, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.CommandButton2, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.CommandButton2, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.CommandButton2, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on(obj: MSForms.Control, event: 'BeforeUpdate' | 'Exit', argNames: ['Cancel'], handler: (this: MSForms.Control, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on(obj: MSForms.Frame, event: 'AddControl' | 'RemoveControl', argNames: ['Control'], handler: (this: MSForms.Frame, parameter: {readonly Control: MSForms.Control}) => void): void; + on( + obj: MSForms.Frame, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.Frame_BeforeDragOver_ArgNames, handler: ( + this: MSForms.Frame, parameter: MSForms.EventHelperTypes.Frame_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.Frame, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.Frame_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.Frame, parameter: MSForms.EventHelperTypes.Frame_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.Frame, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.Frame, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.Frame, event: 'Error', argNames: MSForms.EventHelperTypes.Frame_Error_ArgNames, handler: ( + this: MSForms.Frame, parameter: MSForms.EventHelperTypes.Frame_Error_Parameter) => void): void; + on( + obj: MSForms.Frame, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.Frame, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.Frame, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.Frame, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.Frame, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.Frame, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.Frame, event: 'Scroll', argNames: MSForms.EventHelperTypes.Frame_Scroll_ArgNames, handler: ( + this: MSForms.Frame, parameter: MSForms.EventHelperTypes.Frame_Scroll_Parameter) => void): void; + on(obj: MSForms.Frame, event: 'Zoom', argNames: ['Percent'], handler: (this: MSForms.Frame, parameter: {Percent: number}) => void): void; + on(obj: MSForms.Frame2, event: 'AddControl' | 'RemoveControl', argNames: ['Control'], handler: (this: MSForms.Frame2, parameter: {readonly Control: MSForms.Control}) => void): void; + on( + obj: MSForms.Frame2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.Frame2_BeforeDragOver_ArgNames, handler: ( + this: MSForms.Frame2, parameter: MSForms.EventHelperTypes.Frame2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.Frame2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.Frame2_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.Frame2, parameter: MSForms.EventHelperTypes.Frame2_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.Frame2, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.Frame2, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.Frame2, event: 'Error', argNames: MSForms.EventHelperTypes.Frame2_Error_ArgNames, handler: ( + this: MSForms.Frame2, parameter: MSForms.EventHelperTypes.Frame2_Error_Parameter) => void): void; + on( + obj: MSForms.Frame2, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.Frame2, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.Frame2, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.Frame2, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.Frame2, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.Frame2, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.Frame2, event: 'Scroll', argNames: MSForms.EventHelperTypes.Frame2_Scroll_ArgNames, handler: ( + this: MSForms.Frame2, parameter: MSForms.EventHelperTypes.Frame2_Scroll_Parameter) => void): void; + on(obj: MSForms.Frame2, event: 'Zoom', argNames: ['Percent'], handler: (this: MSForms.Frame2, parameter: {Percent: number}) => void): void; + on( + obj: MSForms.Image, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.Image_BeforeDragOver_ArgNames, handler: ( + this: MSForms.Image, parameter: MSForms.EventHelperTypes.Image_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.Image, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.Image_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.Image, parameter: MSForms.EventHelperTypes.Image_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.Image, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.Image, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.Image, event: 'Error', argNames: MSForms.EventHelperTypes.Image_Error_ArgNames, handler: ( + this: MSForms.Image, parameter: MSForms.EventHelperTypes.Image_Error_Parameter) => void): void; + on( + obj: MSForms.Image, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.Image, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.Image2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.Image2_BeforeDragOver_ArgNames, handler: ( + this: MSForms.Image2, parameter: MSForms.EventHelperTypes.Image2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.Image2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.Image2_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.Image2, parameter: MSForms.EventHelperTypes.Image2_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.Image2, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.Image2, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.Image2, event: 'Error', argNames: MSForms.EventHelperTypes.Image2_Error_ArgNames, handler: ( + this: MSForms.Image2, parameter: MSForms.EventHelperTypes.Image2_Error_Parameter) => void): void; + on( + obj: MSForms.Image2, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.Image2, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.Label, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.Label_BeforeDragOver_ArgNames, handler: ( + this: MSForms.Label, parameter: MSForms.EventHelperTypes.Label_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.Label, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.Label_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.Label, parameter: MSForms.EventHelperTypes.Label_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.Label, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.Label, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.Label, event: 'Error', argNames: MSForms.EventHelperTypes.Label_Error_ArgNames, handler: ( + this: MSForms.Label, parameter: MSForms.EventHelperTypes.Label_Error_Parameter) => void): void; + on( + obj: MSForms.Label, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.Label, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.Label2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.Label2_BeforeDragOver_ArgNames, handler: ( + this: MSForms.Label2, parameter: MSForms.EventHelperTypes.Label2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.Label2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.Label2_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.Label2, parameter: MSForms.EventHelperTypes.Label2_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.Label2, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.Label2, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.Label2, event: 'Error', argNames: MSForms.EventHelperTypes.Label2_Error_ArgNames, handler: ( + this: MSForms.Label2, parameter: MSForms.EventHelperTypes.Label2_Error_Parameter) => void): void; + on( + obj: MSForms.Label2, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.Label2, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.ListBox, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.ListBox_BeforeDragOver_ArgNames, handler: ( + this: MSForms.ListBox, parameter: MSForms.EventHelperTypes.ListBox_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.ListBox, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.ListBox_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.ListBox, parameter: MSForms.EventHelperTypes.ListBox_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.ListBox, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.ListBox, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.ListBox, event: 'Error', argNames: MSForms.EventHelperTypes.ListBox_Error_ArgNames, handler: ( + this: MSForms.ListBox, parameter: MSForms.EventHelperTypes.ListBox_Error_Parameter) => void): void; + on( + obj: MSForms.ListBox, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.ListBox, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.ListBox, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.ListBox, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.ListBox, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.ListBox, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.ListBox2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.ListBox2_BeforeDragOver_ArgNames, handler: ( + this: MSForms.ListBox2, parameter: MSForms.EventHelperTypes.ListBox2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.ListBox2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.ListBox2_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.ListBox2, parameter: MSForms.EventHelperTypes.ListBox2_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.ListBox2, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.ListBox2, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.ListBox2, event: 'Error', argNames: MSForms.EventHelperTypes.ListBox2_Error_ArgNames, handler: ( + this: MSForms.ListBox2, parameter: MSForms.EventHelperTypes.ListBox2_Error_Parameter) => void): void; + on( + obj: MSForms.ListBox2, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.ListBox2, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.ListBox2, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.ListBox2, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.ListBox2, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.ListBox2, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.MultiPage, event: 'AddControl' | 'RemoveControl', argNames: ['Index', 'Control'], handler: ( + this: MSForms.MultiPage, parameter: {readonly Index: number, readonly Control: MSForms.Control}) => void): void; + on( + obj: MSForms.MultiPage, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.MultiPage_BeforeDragOver_ArgNames, handler: ( + this: MSForms.MultiPage, parameter: MSForms.EventHelperTypes.MultiPage_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.MultiPage, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.MultiPage_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.MultiPage, parameter: MSForms.EventHelperTypes.MultiPage_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.MultiPage, event: 'Click' | 'Layout', argNames: ['Index'], handler: (this: MSForms.MultiPage, parameter: {readonly Index: number}) => void): void; + on( + obj: MSForms.MultiPage, event: 'DblClick', argNames: ['Index', 'Cancel'], handler: ( + this: MSForms.MultiPage, parameter: {readonly Index: number, readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.MultiPage, event: 'Error', argNames: MSForms.EventHelperTypes.MultiPage_Error_ArgNames, handler: ( + this: MSForms.MultiPage, parameter: MSForms.EventHelperTypes.MultiPage_Error_Parameter) => void): void; + on( + obj: MSForms.MultiPage, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.MultiPage, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.MultiPage, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.MultiPage, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.MultiPage, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Index', 'Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.MultiPage, parameter: {readonly Index: number, readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.MultiPage, event: 'Scroll', argNames: MSForms.EventHelperTypes.MultiPage_Scroll_ArgNames, handler: ( + this: MSForms.MultiPage, parameter: MSForms.EventHelperTypes.MultiPage_Scroll_Parameter) => void): void; + on(obj: MSForms.MultiPage, event: 'Zoom', argNames: ['Index', 'Percent'], handler: (this: MSForms.MultiPage, parameter: {readonly Index: number, Percent: number}) => void): void; + on( + obj: MSForms.MultiPage2, event: 'AddControl' | 'RemoveControl', argNames: ['Index', 'Control'], handler: ( + this: MSForms.MultiPage2, parameter: {readonly Index: number, readonly Control: MSForms.Control}) => void): void; + on( + obj: MSForms.MultiPage2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.MultiPage2_BeforeDragOver_ArgNames, handler: ( + this: MSForms.MultiPage2, parameter: MSForms.EventHelperTypes.MultiPage2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.MultiPage2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.MultiPage2_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.MultiPage2, parameter: MSForms.EventHelperTypes.MultiPage2_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.MultiPage2, event: 'Click' | 'Layout', argNames: ['Index'], handler: (this: MSForms.MultiPage2, parameter: {readonly Index: number}) => void): void; + on( + obj: MSForms.MultiPage2, event: 'DblClick', argNames: ['Index', 'Cancel'], handler: ( + this: MSForms.MultiPage2, parameter: {readonly Index: number, readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.MultiPage2, event: 'Error', argNames: MSForms.EventHelperTypes.MultiPage2_Error_ArgNames, handler: ( + this: MSForms.MultiPage2, parameter: MSForms.EventHelperTypes.MultiPage2_Error_Parameter) => void): void; + on( + obj: MSForms.MultiPage2, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.MultiPage2, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.MultiPage2, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.MultiPage2, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.MultiPage2, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Index', 'Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.MultiPage2, parameter: {readonly Index: number, readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.MultiPage2, event: 'Scroll', argNames: MSForms.EventHelperTypes.MultiPage2_Scroll_ArgNames, handler: ( + this: MSForms.MultiPage2, parameter: MSForms.EventHelperTypes.MultiPage2_Scroll_Parameter) => void): void; + on(obj: MSForms.MultiPage2, event: 'Zoom', argNames: ['Index', 'Percent'], handler: (this: MSForms.MultiPage2, parameter: {readonly Index: number, Percent: number}) => void): void; + on( + obj: MSForms.OptionButton, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.OptionButton_BeforeDragOver_ArgNames, handler: ( + this: MSForms.OptionButton, parameter: MSForms.EventHelperTypes.OptionButton_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.OptionButton, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.OptionButton_BeforeDropOrPaste_ArgNames, + handler: (this: MSForms.OptionButton, parameter: MSForms.EventHelperTypes.OptionButton_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.OptionButton, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.OptionButton, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.OptionButton, event: 'Error', argNames: MSForms.EventHelperTypes.OptionButton_Error_ArgNames, handler: ( + this: MSForms.OptionButton, parameter: MSForms.EventHelperTypes.OptionButton_Error_Parameter) => void): void; + on( + obj: MSForms.OptionButton, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.OptionButton, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.OptionButton, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.OptionButton, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.OptionButton, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.OptionButton, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.OptionButton2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.OptionButton2_BeforeDragOver_ArgNames, + handler: (this: MSForms.OptionButton2, parameter: MSForms.EventHelperTypes.OptionButton2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.OptionButton2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.OptionButton2_BeforeDropOrPaste_ArgNames, + handler: (this: MSForms.OptionButton2, parameter: MSForms.EventHelperTypes.OptionButton2_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.OptionButton2, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.OptionButton2, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.OptionButton2, event: 'Error', argNames: MSForms.EventHelperTypes.OptionButton2_Error_ArgNames, handler: ( + this: MSForms.OptionButton2, parameter: MSForms.EventHelperTypes.OptionButton2_Error_Parameter) => void): void; + on( + obj: MSForms.OptionButton2, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.OptionButton2, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.OptionButton2, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.OptionButton2, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.OptionButton2, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.OptionButton2, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.ScrollBar, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.ScrollBar_BeforeDragOver_ArgNames, handler: ( + this: MSForms.ScrollBar, parameter: MSForms.EventHelperTypes.ScrollBar_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.ScrollBar, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.ScrollBar_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.ScrollBar, parameter: MSForms.EventHelperTypes.ScrollBar_BeforeDropOrPaste_Parameter) => void): void; + on( + obj: MSForms.ScrollBar, event: 'Error', argNames: MSForms.EventHelperTypes.ScrollBar_Error_ArgNames, handler: ( + this: MSForms.ScrollBar, parameter: MSForms.EventHelperTypes.ScrollBar_Error_Parameter) => void): void; + on( + obj: MSForms.ScrollBar, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.ScrollBar, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.ScrollBar, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.ScrollBar, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.ScrollBar2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.ScrollBar2_BeforeDragOver_ArgNames, handler: ( + this: MSForms.ScrollBar2, parameter: MSForms.EventHelperTypes.ScrollBar2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.ScrollBar2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.ScrollBar2_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.ScrollBar2, parameter: MSForms.EventHelperTypes.ScrollBar2_BeforeDropOrPaste_Parameter) => void): void; + on( + obj: MSForms.ScrollBar2, event: 'Error', argNames: MSForms.EventHelperTypes.ScrollBar2_Error_ArgNames, handler: ( + this: MSForms.ScrollBar2, parameter: MSForms.EventHelperTypes.ScrollBar2_Error_Parameter) => void): void; + on( + obj: MSForms.ScrollBar2, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.ScrollBar2, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.ScrollBar2, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.ScrollBar2, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.SpinButton, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.SpinButton_BeforeDragOver_ArgNames, handler: ( + this: MSForms.SpinButton, parameter: MSForms.EventHelperTypes.SpinButton_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.SpinButton, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.SpinButton_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.SpinButton, parameter: MSForms.EventHelperTypes.SpinButton_BeforeDropOrPaste_Parameter) => void): void; + on( + obj: MSForms.SpinButton, event: 'Error', argNames: MSForms.EventHelperTypes.SpinButton_Error_ArgNames, handler: ( + this: MSForms.SpinButton, parameter: MSForms.EventHelperTypes.SpinButton_Error_Parameter) => void): void; + on( + obj: MSForms.SpinButton, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.SpinButton, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.SpinButton, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.SpinButton, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.SpinButton2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.SpinButton2_BeforeDragOver_ArgNames, handler: ( + this: MSForms.SpinButton2, parameter: MSForms.EventHelperTypes.SpinButton2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.SpinButton2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.SpinButton2_BeforeDropOrPaste_ArgNames, + handler: (this: MSForms.SpinButton2, parameter: MSForms.EventHelperTypes.SpinButton2_BeforeDropOrPaste_Parameter) => void): void; + on( + obj: MSForms.SpinButton2, event: 'Error', argNames: MSForms.EventHelperTypes.SpinButton2_Error_ArgNames, handler: ( + this: MSForms.SpinButton2, parameter: MSForms.EventHelperTypes.SpinButton2_Error_Parameter) => void): void; + on( + obj: MSForms.SpinButton2, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.SpinButton2, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.SpinButton2, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.SpinButton2, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.TabStrip, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.TabStrip_BeforeDragOver_ArgNames, handler: ( + this: MSForms.TabStrip, parameter: MSForms.EventHelperTypes.TabStrip_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.TabStrip, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.TabStrip_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.TabStrip, parameter: MSForms.EventHelperTypes.TabStrip_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.TabStrip, event: 'Click', argNames: ['Index'], handler: (this: MSForms.TabStrip, parameter: {readonly Index: number}) => void): void; + on( + obj: MSForms.TabStrip, event: 'DblClick', argNames: ['Index', 'Cancel'], handler: ( + this: MSForms.TabStrip, parameter: {readonly Index: number, readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.TabStrip, event: 'Error', argNames: MSForms.EventHelperTypes.TabStrip_Error_ArgNames, handler: ( + this: MSForms.TabStrip, parameter: MSForms.EventHelperTypes.TabStrip_Error_Parameter) => void): void; + on( + obj: MSForms.TabStrip, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.TabStrip, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.TabStrip, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.TabStrip, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.TabStrip, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Index', 'Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.TabStrip, parameter: {readonly Index: number, readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.TabStrip2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.TabStrip2_BeforeDragOver_ArgNames, handler: ( + this: MSForms.TabStrip2, parameter: MSForms.EventHelperTypes.TabStrip2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.TabStrip2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.TabStrip2_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.TabStrip2, parameter: MSForms.EventHelperTypes.TabStrip2_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.TabStrip2, event: 'Click', argNames: ['Index'], handler: (this: MSForms.TabStrip2, parameter: {readonly Index: number}) => void): void; + on( + obj: MSForms.TabStrip2, event: 'DblClick', argNames: ['Index', 'Cancel'], handler: ( + this: MSForms.TabStrip2, parameter: {readonly Index: number, readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.TabStrip2, event: 'Error', argNames: MSForms.EventHelperTypes.TabStrip2_Error_ArgNames, handler: ( + this: MSForms.TabStrip2, parameter: MSForms.EventHelperTypes.TabStrip2_Error_Parameter) => void): void; + on( + obj: MSForms.TabStrip2, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.TabStrip2, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.TabStrip2, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.TabStrip2, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.TabStrip2, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Index', 'Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.TabStrip2, parameter: {readonly Index: number, readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.TextBox, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.TextBox_BeforeDragOver_ArgNames, handler: ( + this: MSForms.TextBox, parameter: MSForms.EventHelperTypes.TextBox_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.TextBox, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.TextBox_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.TextBox, parameter: MSForms.EventHelperTypes.TextBox_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.TextBox, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.TextBox, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.TextBox, event: 'Error', argNames: MSForms.EventHelperTypes.TextBox_Error_ArgNames, handler: ( + this: MSForms.TextBox, parameter: MSForms.EventHelperTypes.TextBox_Error_Parameter) => void): void; + on( + obj: MSForms.TextBox, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.TextBox, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.TextBox, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.TextBox, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.TextBox, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.TextBox, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.TextBox2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.TextBox2_BeforeDragOver_ArgNames, handler: ( + this: MSForms.TextBox2, parameter: MSForms.EventHelperTypes.TextBox2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.TextBox2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.TextBox2_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.TextBox2, parameter: MSForms.EventHelperTypes.TextBox2_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.TextBox2, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.TextBox2, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.TextBox2, event: 'Error', argNames: MSForms.EventHelperTypes.TextBox2_Error_ArgNames, handler: ( + this: MSForms.TextBox2, parameter: MSForms.EventHelperTypes.TextBox2_Error_Parameter) => void): void; + on( + obj: MSForms.TextBox2, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.TextBox2, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.TextBox2, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.TextBox2, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.TextBox2, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.TextBox2, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.ToggleButton, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.ToggleButton_BeforeDragOver_ArgNames, handler: ( + this: MSForms.ToggleButton, parameter: MSForms.EventHelperTypes.ToggleButton_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.ToggleButton, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.ToggleButton_BeforeDropOrPaste_ArgNames, + handler: (this: MSForms.ToggleButton, parameter: MSForms.EventHelperTypes.ToggleButton_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.ToggleButton, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.ToggleButton, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.ToggleButton, event: 'Error', argNames: MSForms.EventHelperTypes.ToggleButton_Error_ArgNames, handler: ( + this: MSForms.ToggleButton, parameter: MSForms.EventHelperTypes.ToggleButton_Error_Parameter) => void): void; + on( + obj: MSForms.ToggleButton, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.ToggleButton, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.ToggleButton, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.ToggleButton, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.ToggleButton, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.ToggleButton, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.ToggleButton2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.ToggleButton2_BeforeDragOver_ArgNames, + handler: (this: MSForms.ToggleButton2, parameter: MSForms.EventHelperTypes.ToggleButton2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.ToggleButton2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.ToggleButton2_BeforeDropOrPaste_ArgNames, + handler: (this: MSForms.ToggleButton2, parameter: MSForms.EventHelperTypes.ToggleButton2_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.ToggleButton2, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.ToggleButton2, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.ToggleButton2, event: 'Error', argNames: MSForms.EventHelperTypes.ToggleButton2_Error_ArgNames, handler: ( + this: MSForms.ToggleButton2, parameter: MSForms.EventHelperTypes.ToggleButton2_Error_Parameter) => void): void; + on( + obj: MSForms.ToggleButton2, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.ToggleButton2, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.ToggleButton2, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.ToggleButton2, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.ToggleButton2, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.ToggleButton2, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on(obj: MSForms.UserForm, event: 'AddControl' | 'RemoveControl', argNames: ['Control'], handler: (this: MSForms.UserForm, parameter: {readonly Control: MSForms.Control}) => void): void; + on( + obj: MSForms.UserForm, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.UserForm_BeforeDragOver_ArgNames, handler: ( + this: MSForms.UserForm, parameter: MSForms.EventHelperTypes.UserForm_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.UserForm, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.UserForm_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.UserForm, parameter: MSForms.EventHelperTypes.UserForm_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.UserForm, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.UserForm, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.UserForm, event: 'Error', argNames: MSForms.EventHelperTypes.UserForm_Error_ArgNames, handler: ( + this: MSForms.UserForm, parameter: MSForms.EventHelperTypes.UserForm_Error_Parameter) => void): void; + on( + obj: MSForms.UserForm, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.UserForm, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.UserForm, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.UserForm, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.UserForm, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.UserForm, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.UserForm, event: 'Scroll', argNames: MSForms.EventHelperTypes.UserForm_Scroll_ArgNames, handler: ( + this: MSForms.UserForm, parameter: MSForms.EventHelperTypes.UserForm_Scroll_Parameter) => void): void; + on(obj: MSForms.UserForm, event: 'Zoom', argNames: ['Percent'], handler: (this: MSForms.UserForm, parameter: {Percent: number}) => void): void; + on(obj: MSForms.UserForm2, event: 'AddControl' | 'RemoveControl', argNames: ['Control'], handler: (this: MSForms.UserForm2, parameter: {readonly Control: MSForms.Control}) => void): void; + on( + obj: MSForms.UserForm2, event: 'BeforeDragOver', argNames: MSForms.EventHelperTypes.UserForm2_BeforeDragOver_ArgNames, handler: ( + this: MSForms.UserForm2, parameter: MSForms.EventHelperTypes.UserForm2_BeforeDragOver_Parameter) => void): void; + on( + obj: MSForms.UserForm2, event: 'BeforeDropOrPaste', argNames: MSForms.EventHelperTypes.UserForm2_BeforeDropOrPaste_ArgNames, handler: ( + this: MSForms.UserForm2, parameter: MSForms.EventHelperTypes.UserForm2_BeforeDropOrPaste_Parameter) => void): void; + on(obj: MSForms.UserForm2, event: 'DblClick', argNames: ['Cancel'], handler: (this: MSForms.UserForm2, parameter: {readonly Cancel: MSForms.ReturnBoolean}) => void): void; + on( + obj: MSForms.UserForm2, event: 'Error', argNames: MSForms.EventHelperTypes.UserForm2_Error_ArgNames, handler: ( + this: MSForms.UserForm2, parameter: MSForms.EventHelperTypes.UserForm2_Error_Parameter) => void): void; + on( + obj: MSForms.UserForm2, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: MSForms.UserForm2, parameter: {readonly KeyCode: MSForms.ReturnInteger, readonly Shift: number}) => void): void; + on(obj: MSForms.UserForm2, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: MSForms.UserForm2, parameter: {readonly KeyAscii: MSForms.ReturnInteger}) => void): void; + on( + obj: MSForms.UserForm2, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: MSForms.UserForm2, parameter: {readonly Button: number, readonly Shift: number, readonly X: number, readonly Y: number}) => void): void; + on( + obj: MSForms.UserForm2, event: 'Scroll', argNames: MSForms.EventHelperTypes.UserForm2_Scroll_ArgNames, handler: ( + this: MSForms.UserForm2, parameter: MSForms.EventHelperTypes.UserForm2_Scroll_Parameter) => void): void; + on(obj: MSForms.UserForm2, event: 'Zoom', argNames: ['Percent'], handler: (this: MSForms.UserForm2, parameter: {Percent: number}) => void): void; + on(obj: MSForms.CheckBox, event: 'Change' | 'Click', handler: (this: MSForms.CheckBox, parameter: {}) => void): void; + on(obj: MSForms.CheckBox2, event: 'Change' | 'Click', handler: (this: MSForms.CheckBox2, parameter: {}) => void): void; + on(obj: MSForms.ComboBox, event: 'Change' | 'Click' | 'DropButtonClick', handler: (this: MSForms.ComboBox, parameter: {}) => void): void; + on(obj: MSForms.ComboBox2, event: 'Change' | 'Click' | 'DropButtonClick', handler: (this: MSForms.ComboBox2, parameter: {}) => void): void; + on(obj: MSForms.CommandButton, event: 'Click', handler: (this: MSForms.CommandButton, parameter: {}) => void): void; + on(obj: MSForms.CommandButton2, event: 'Click', handler: (this: MSForms.CommandButton2, parameter: {}) => void): void; + on(obj: MSForms.Control, event: 'AfterUpdate' | 'Enter', handler: (this: MSForms.Control, parameter: {}) => void): void; + on(obj: MSForms.Frame, event: 'Click' | 'Layout', handler: (this: MSForms.Frame, parameter: {}) => void): void; + on(obj: MSForms.Frame2, event: 'Click' | 'Layout', handler: (this: MSForms.Frame2, parameter: {}) => void): void; + on(obj: MSForms.HTMLCheckbox, event: 'Click', handler: (this: MSForms.HTMLCheckbox, parameter: {}) => void): void; + on(obj: MSForms.HTMLCheckbox2, event: 'Click', handler: (this: MSForms.HTMLCheckbox2, parameter: {}) => void): void; + on(obj: MSForms.HTMLHidden, event: 'Click', handler: (this: MSForms.HTMLHidden, parameter: {}) => void): void; + on(obj: MSForms.HTMLHidden2, event: 'Click', handler: (this: MSForms.HTMLHidden2, parameter: {}) => void): void; + on(obj: MSForms.HTMLImage, event: 'Click', handler: (this: MSForms.HTMLImage, parameter: {}) => void): void; + on(obj: MSForms.HTMLImage2, event: 'Click', handler: (this: MSForms.HTMLImage2, parameter: {}) => void): void; + on(obj: MSForms.HTMLOption, event: 'Click', handler: (this: MSForms.HTMLOption, parameter: {}) => void): void; + on(obj: MSForms.HTMLOption2, event: 'Click', handler: (this: MSForms.HTMLOption2, parameter: {}) => void): void; + on(obj: MSForms.HTMLPassword, event: 'Click', handler: (this: MSForms.HTMLPassword, parameter: {}) => void): void; + on(obj: MSForms.HTMLPassword2, event: 'Click', handler: (this: MSForms.HTMLPassword2, parameter: {}) => void): void; + on(obj: MSForms.HTMLReset, event: 'Click', handler: (this: MSForms.HTMLReset, parameter: {}) => void): void; + on(obj: MSForms.HTMLReset2, event: 'Click', handler: (this: MSForms.HTMLReset2, parameter: {}) => void): void; + on(obj: MSForms.HTMLSelect, event: 'Click', handler: (this: MSForms.HTMLSelect, parameter: {}) => void): void; + on(obj: MSForms.HTMLSelect2, event: 'Click', handler: (this: MSForms.HTMLSelect2, parameter: {}) => void): void; + on(obj: MSForms.HTMLSubmit, event: 'Click', handler: (this: MSForms.HTMLSubmit, parameter: {}) => void): void; + on(obj: MSForms.HTMLSubmit2, event: 'Click', handler: (this: MSForms.HTMLSubmit2, parameter: {}) => void): void; + on(obj: MSForms.HTMLText, event: 'Click', handler: (this: MSForms.HTMLText, parameter: {}) => void): void; + on(obj: MSForms.HTMLText2, event: 'Click', handler: (this: MSForms.HTMLText2, parameter: {}) => void): void; + on(obj: MSForms.HTMLTextArea, event: 'Click', handler: (this: MSForms.HTMLTextArea, parameter: {}) => void): void; + on(obj: MSForms.HTMLTextArea2, event: 'Click', handler: (this: MSForms.HTMLTextArea2, parameter: {}) => void): void; + on(obj: MSForms.Image, event: 'Click', handler: (this: MSForms.Image, parameter: {}) => void): void; + on(obj: MSForms.Image2, event: 'Click', handler: (this: MSForms.Image2, parameter: {}) => void): void; + on(obj: MSForms.Label, event: 'Click', handler: (this: MSForms.Label, parameter: {}) => void): void; + on(obj: MSForms.Label2, event: 'Click', handler: (this: MSForms.Label2, parameter: {}) => void): void; + on(obj: MSForms.ListBox, event: 'Change' | 'Click', handler: (this: MSForms.ListBox, parameter: {}) => void): void; + on(obj: MSForms.ListBox2, event: 'Change' | 'Click', handler: (this: MSForms.ListBox2, parameter: {}) => void): void; + on(obj: MSForms.MultiPage, event: 'Change', handler: (this: MSForms.MultiPage, parameter: {}) => void): void; + on(obj: MSForms.MultiPage2, event: 'Change', handler: (this: MSForms.MultiPage2, parameter: {}) => void): void; + on(obj: MSForms.OptionButton, event: 'Change' | 'Click', handler: (this: MSForms.OptionButton, parameter: {}) => void): void; + on(obj: MSForms.OptionButton2, event: 'Change' | 'Click', handler: (this: MSForms.OptionButton2, parameter: {}) => void): void; + on(obj: MSForms.ScrollBar, event: 'Change' | 'Scroll', handler: (this: MSForms.ScrollBar, parameter: {}) => void): void; + on(obj: MSForms.ScrollBar2, event: 'Change' | 'Scroll', handler: (this: MSForms.ScrollBar2, parameter: {}) => void): void; + on(obj: MSForms.SpinButton, event: 'Change' | 'SpinDown' | 'SpinUp', handler: (this: MSForms.SpinButton, parameter: {}) => void): void; + on(obj: MSForms.SpinButton2, event: 'Change' | 'SpinDown' | 'SpinUp', handler: (this: MSForms.SpinButton2, parameter: {}) => void): void; + on(obj: MSForms.TabStrip, event: 'Change', handler: (this: MSForms.TabStrip, parameter: {}) => void): void; + on(obj: MSForms.TabStrip2, event: 'Change', handler: (this: MSForms.TabStrip2, parameter: {}) => void): void; + on(obj: MSForms.TextBox, event: 'Change' | 'DropButtonClick', handler: (this: MSForms.TextBox, parameter: {}) => void): void; + on(obj: MSForms.TextBox2, event: 'Change' | 'DropButtonClick', handler: (this: MSForms.TextBox2, parameter: {}) => void): void; + on(obj: MSForms.ToggleButton, event: 'Change' | 'Click', handler: (this: MSForms.ToggleButton, parameter: {}) => void): void; + on(obj: MSForms.ToggleButton2, event: 'Change' | 'Click', handler: (this: MSForms.ToggleButton2, parameter: {}) => void): void; + on(obj: MSForms.UserForm, event: 'Click' | 'Layout', handler: (this: MSForms.UserForm, parameter: {}) => void): void; + on(obj: MSForms.UserForm2, event: 'Click' | 'Layout', handler: (this: MSForms.UserForm2, parameter: {}) => void): void; + set(obj: MSForms.ComboBox | MSForms.ComboBox2 | MSForms.ListBox | MSForms.ListBox2, propertyName: 'Column' | 'List', parameterTypes: [number | undefined, number] | [number] | never[], + newValue: any): void; + set(obj: MSForms.ListBox | MSForms.ListBox2, propertyName: 'Selected', parameterTypes: [any], newValue: boolean): void; + new(progid: K): ActiveXObjectNameMap[K]; +} + +interface ActiveXObjectNameMap { + 'Forms.Image': MSForms.Image; +} + +interface EnumeratorConstructor { + new(col: MSForms.Controls | MSForms.Pages | MSForms.Tabs): Enumerator; // tslint:disable-line:use-default-type-parameter +} + +interface SafeArray { + _brand: SafeArray; +} diff --git a/types/activex-msforms/package.json b/types/activex-msforms/package.json new file mode 100644 index 0000000000..d9b1031263 --- /dev/null +++ b/types/activex-msforms/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "activex-helpers": "*" + } +} \ No newline at end of file diff --git a/types/activex-msforms/tsconfig.json b/types/activex-msforms/tsconfig.json new file mode 100644 index 0000000000..3b7ce9f67c --- /dev/null +++ b/types/activex-msforms/tsconfig.json @@ -0,0 +1,21 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es5", "scripthost"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "activex-msforms-tests.ts" + ] +} \ No newline at end of file diff --git a/types/activex-msforms/tslint.json b/types/activex-msforms/tslint.json new file mode 100644 index 0000000000..4ac54521fe --- /dev/null +++ b/types/activex-msforms/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": [false] + } +} \ No newline at end of file diff --git a/types/activex-mshtml/activex-mshtml-tests.ts b/types/activex-mshtml/activex-mshtml-tests.ts new file mode 100644 index 0000000000..324d3d09e2 --- /dev/null +++ b/types/activex-mshtml/activex-mshtml-tests.ts @@ -0,0 +1,6 @@ +let htmlfile = new ActiveXObject('htmlfile'); +let htmldoc = htmlfile.createDocumentFromUrl('https://msdn.microsoft.com/en-us/library/aa741317(v=vs.85).aspx', 'null'); +let length = htmldoc.all.length; +for (let i = 0; i < length; i++) { + WScript.Echo((htmldoc.all.item(i) as MSHTML.IHTMLElement).tagName); +} diff --git a/types/activex-mshtml/index.d.ts b/types/activex-mshtml/index.d.ts new file mode 100644 index 0000000000..01c6007620 --- /dev/null +++ b/types/activex-mshtml/index.d.ts @@ -0,0 +1,36500 @@ +// Type definitions for Microsoft HTML Object Library - MSHTML 4.0 +// Project: https://msdn.microsoft.com/en-us/library/aa741317(v=vs.85).aspx +// Definitions by: Zev Spitz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +declare namespace MSHTML { + const enum _BEHAVIOR_EVENT { + BEHAVIOR_EVENT_Max = 2147483647, + BEHAVIOREVENT_APPLYSTYLE = 2, + BEHAVIOREVENT_CONTENTREADY = 0, + BEHAVIOREVENT_CONTENTSAVE = 4, + BEHAVIOREVENT_DOCUMENTCONTEXTCHANGE = 3, + BEHAVIOREVENT_DOCUMENTREADY = 1, + BEHAVIOREVENT_FIRST = 0, + BEHAVIOREVENT_LAST = 4, + } + + const enum _BEHAVIOR_EVENT_FLAGS { + BEHAVIOR_EVENT_FLAGS_Max = 2147483647, + BEHAVIOREVENTFLAGS_BUBBLE = 1, + BEHAVIOREVENTFLAGS_STANDARDADDITIVE = 2, + } + + const enum _BEHAVIOR_LAYOUT_INFO { + BEHAVIOR_LAYOUT_INFO_Max = 2147483647, + BEHAVIORLAYOUTINFO_FULLDELEGATION = 1, + BEHAVIORLAYOUTINFO_MAPSIZE = 4, + BEHAVIORLAYOUTINFO_MODIFYNATURAL = 2, + } + + const enum _BEHAVIOR_LAYOUT_MODE { + BEHAVIOR_LAYOUT_MODE_Max = 2147483647, + BEHAVIORLAYOUTMODE_FINAL_PERCENT = 32768, + BEHAVIORLAYOUTMODE_MAXWIDTH = 4, + BEHAVIORLAYOUTMODE_MEDIA_RESOLUTION = 16384, + BEHAVIORLAYOUTMODE_MINWIDTH = 2, + BEHAVIORLAYOUTMODE_NATURAL = 1, + } + + const enum _BEHAVIOR_RELATION { + BEHAVIOR_CHILD = 2, + BEHAVIOR_FIRSTRELATION = 0, + BEHAVIOR_LASTRELATION = 3, + BEHAVIOR_PARENT = 1, + BEHAVIOR_RELATION_Max = 2147483647, + BEHAVIOR_SAMEELEMENT = 0, + BEHAVIOR_SIBLING = 3, + } + + const enum _BEHAVIOR_RENDER_INFO { + BEHAVIOR_RENDER_INFO_Max = 2147483647, + BEHAVIORRENDERINFO_3DSURFACE = 2097152, + BEHAVIORRENDERINFO_ABOVECONTENT = 40, + BEHAVIORRENDERINFO_AFTERBACKGROUND = 2, + BEHAVIORRENDERINFO_AFTERCONTENT = 8, + BEHAVIORRENDERINFO_AFTERFOREGROUND = 32, + BEHAVIORRENDERINFO_ALLLAYERS = 255, + BEHAVIORRENDERINFO_BEFOREBACKGROUND = 1, + BEHAVIORRENDERINFO_BEFORECONTENT = 4, + BEHAVIORRENDERINFO_DISABLEALLLAYERS = 3840, + BEHAVIORRENDERINFO_DISABLEBACKGROUND = 256, + BEHAVIORRENDERINFO_DISABLECONTENT = 1024, + BEHAVIORRENDERINFO_DISABLENEGATIVEZ = 512, + BEHAVIORRENDERINFO_DISABLEPOSITIVEZ = 2048, + BEHAVIORRENDERINFO_HITTESTING = 4096, + BEHAVIORRENDERINFO_SURFACE = 1048576, + } + + const enum _bodyScroll { + bodyScroll_Max = 2147483647, + bodyScrollauto = 4, + bodyScrolldefault = 3, + bodyScrollno = 2, + bodyScrollyes = 1, + } + + const enum _BoolValue { + BoolValue_Max = 2147483647, + False = 0, + True = 1, + } + + const enum _CARET_DIRECTION { + CARET_DIRECTION_BACKWARD = 2, + CARET_DIRECTION_FORWARD = 3, + CARET_DIRECTION_INDETERMINATE = 0, + CARET_DIRECTION_Max = 2147483647, + CARET_DIRECTION_SAME = 1, + } + + const enum _COORD_SYSTEM { + COORD_SYSTEM_CLIENT = 5, + COORD_SYSTEM_CONTAINER = 2, + COORD_SYSTEM_CONTENT = 3, + COORD_SYSTEM_FRAME = 4, + COORD_SYSTEM_GLOBAL = 0, + COORD_SYSTEM_Max = 2147483647, + COORD_SYSTEM_PARENT = 1, + } + + const enum _DEV_CONSOLE_MESSAGE_LEVEL { + DCML_ERROR = 2, + DCML_INFORMATIONAL = 0, + DCML_WARNING = 1, + DEV_CONSOLE_MESSAGE_LEVEL_Max = 2147483647, + } + + const enum _DISPLAY_BREAK { + DISPLAY_BREAK_Block = 1, + DISPLAY_BREAK_Break = 2, + DISPLAY_BREAK_Max = 2147483647, + DISPLAY_BREAK_None = 0, + } + + const enum _DISPLAY_GRAVITY { + DISPLAY_GRAVITY_Max = 2147483647, + DISPLAY_GRAVITY_NextLine = 2, + DISPLAY_GRAVITY_PreviousLine = 1, + } + + const enum _DISPLAY_MOVEUNIT { + DISPLAY_MOVEUNIT_BottomOfWindow = 6, + DISPLAY_MOVEUNIT_CurrentLineEnd = 4, + DISPLAY_MOVEUNIT_CurrentLineStart = 3, + DISPLAY_MOVEUNIT_Max = 2147483647, + DISPLAY_MOVEUNIT_NextLine = 2, + DISPLAY_MOVEUNIT_PreviousLine = 1, + DISPLAY_MOVEUNIT_TopOfWindow = 5, + } + + const enum _DOM_EVENT_PHASE { + DEP_AT_TARGET = 2, + DEP_BUBBLING_PHASE = 3, + DEP_CAPTURING_PHASE = 1, + DOM_EVENT_PHASE_Max = 2147483647, + } + + const enum _DomConstructor { + DomConstructor_Max = 2147483647, + DomConstructorAttr = 1, + DomConstructorBehaviorUrnsCollection = 2, + DomConstructorBookmarkCollection = 3, + DomConstructorCompatibleInfo = 4, + DomConstructorCompatibleInfoCollection = 5, + DomConstructorControlRangeCollection = 6, + DomConstructorCSSCurrentStyleDeclaration = 7, + DomConstructorCSSRuleList = 8, + DomConstructorCSSRuleStyleDeclaration = 9, + DomConstructorCSSStyleDeclaration = 10, + DomConstructorCSSStyleRule = 11, + DomConstructorCSSStyleSheet = 12, + DomConstructorDataTransfer = 13, + DomConstructorDOMImplementation = 14, + DomConstructorElement = 15, + DomConstructorEvent = 16, + DomConstructorHistory = 17, + DomConstructorHTCElementBehaviorDefaults = 18, + DomConstructorHTMLAnchorElement = 19, + DomConstructorHTMLAreaElement = 20, + DomConstructorHTMLAreasCollection = 21, + DomConstructorHTMLBaseElement = 22, + DomConstructorHTMLBaseFontElement = 23, + DomConstructorHTMLBGSoundElement = 24, + DomConstructorHTMLBlockElement = 25, + DomConstructorHTMLBodyElement = 26, + DomConstructorHTMLBRElement = 27, + DomConstructorHTMLButtonElement = 28, + DomConstructorHTMLCollection = 29, + DomConstructorHTMLCommentElement = 30, + DomConstructorHTMLDDElement = 31, + DomConstructorHTMLDivElement = 32, + DomConstructorHTMLDListElement = 34, + DomConstructorHTMLDocument = 33, + DomConstructorHTMLDTElement = 35, + DomConstructorHTMLEmbedElement = 36, + DomConstructorHTMLFieldSetElement = 37, + DomConstructorHTMLFontElement = 38, + DomConstructorHTMLFormElement = 39, + DomConstructorHTMLFrameElement = 40, + DomConstructorHTMLFrameSetElement = 41, + DomConstructorHTMLGenericElement = 42, + DomConstructorHTMLHeadElement = 43, + DomConstructorHTMLHeadingElement = 44, + DomConstructorHTMLHRElement = 45, + DomConstructorHTMLHtmlElement = 46, + DomConstructorHTMLIFrameElement = 47, + DomConstructorHTMLImageElement = 48, + DomConstructorHTMLInputElement = 49, + DomConstructorHTMLIsIndexElement = 50, + DomConstructorHTMLLabelElement = 51, + DomConstructorHTMLLegendElement = 52, + DomConstructorHTMLLIElement = 53, + DomConstructorHTMLLinkElement = 54, + DomConstructorHTMLMapElement = 55, + DomConstructorHTMLMarqueeElement = 56, + DomConstructorHTMLMetaElement = 57, + DomConstructorHTMLModelessDialog = 58, + DomConstructorHTMLNamespaceInfo = 59, + DomConstructorHTMLNamespaceInfoCollection = 60, + DomConstructorHTMLNextIdElement = 61, + DomConstructorHTMLNoShowElement = 62, + DomConstructorHTMLObjectElement = 63, + DomConstructorHTMLOListElement = 64, + DomConstructorHTMLOptionElement = 65, + DomConstructorHTMLParagraphElement = 66, + DomConstructorHTMLParamElement = 67, + DomConstructorHTMLPhraseElement = 68, + DomConstructorHTMLPluginsCollection = 69, + DomConstructorHTMLPopup = 70, + DomConstructorHTMLScriptElement = 71, + DomConstructorHTMLSelectElement = 72, + DomConstructorHTMLSpanElement = 73, + DomConstructorHTMLStyleElement = 74, + DomConstructorHTMLTableCaptionElement = 75, + DomConstructorHTMLTableCellElement = 76, + DomConstructorHTMLTableColElement = 77, + DomConstructorHTMLTableElement = 78, + DomConstructorHTMLTableRowElement = 79, + DomConstructorHTMLTableSectionElement = 80, + DomConstructorHTMLTextAreaElement = 81, + DomConstructorHTMLTextElement = 82, + DomConstructorHTMLTitleElement = 83, + DomConstructorHTMLUListElement = 84, + DomConstructorHTMLUnknownElement = 85, + DomConstructorImage = 86, + DomConstructorLocation = 87, + DomConstructorMax = 107, + DomConstructorNamedNodeMap = 88, + DomConstructorNavigator = 89, + DomConstructorNodeList = 90, + DomConstructorObject = 0, + DomConstructorOption = 91, + DomConstructorScreen = 92, + DomConstructorSelection = 93, + DomConstructorStaticNodeList = 94, + DomConstructorStorage = 95, + DomConstructorStyleSheetList = 96, + DomConstructorStyleSheetPage = 97, + DomConstructorStyleSheetPageList = 98, + DomConstructorText = 99, + DomConstructorTextRange = 100, + DomConstructorTextRangeCollection = 101, + DomConstructorTextRectangle = 102, + DomConstructorTextRectangleList = 103, + DomConstructorWindow = 104, + DomConstructorXDomainRequest = 105, + DomConstructorXMLHttpRequest = 106, + } + + const enum _ELEMENT_ADJACENCY { + ELEM_ADJ_AfterBegin = 1, + ELEM_ADJ_AfterEnd = 3, + ELEM_ADJ_BeforeBegin = 0, + ELEM_ADJ_BeforeEnd = 2, + ELEMENT_ADJACENCY_Max = 2147483647, + } + + const enum _ELEMENT_CORNER { + ELEMENT_CORNER_BOTTOM = 3, + ELEMENT_CORNER_BOTTOMLEFT = 7, + ELEMENT_CORNER_BOTTOMRIGHT = 8, + ELEMENT_CORNER_LEFT = 2, + ELEMENT_CORNER_Max = 2147483647, + ELEMENT_CORNER_NONE = 0, + ELEMENT_CORNER_RIGHT = 4, + ELEMENT_CORNER_TOP = 1, + ELEMENT_CORNER_TOPLEFT = 5, + ELEMENT_CORNER_TOPRIGHT = 6, + } + + const enum _ELEMENT_TAG_ID { + ELEMENT_TAG_ID_Max = 2147483647, + TAGID_A = 2, + TAGID_ABBR = 110, + TAGID_ACRONYM = 3, + TAGID_ADDRESS = 4, + TAGID_APPLET = 5, + TAGID_AREA = 6, + TAGID_ARTICLE = 199, + TAGID_ASIDE = 200, + TAGID_AUDIO = 192, + TAGID_B = 7, + TAGID_BASE = 8, + TAGID_BASEFONT = 9, + TAGID_BDO = 10, + TAGID_BGSOUND = 11, + TAGID_BIG = 12, + TAGID_BLINK = 13, + TAGID_BLOCKQUOTE = 14, + TAGID_BODY = 15, + TAGID_BR = 16, + TAGID_BUTTON = 17, + TAGID_CANVAS = 195, + TAGID_CAPTION = 18, + TAGID_CENTER = 19, + TAGID_CITE = 20, + TAGID_CODE = 21, + TAGID_COL = 22, + TAGID_COLGROUP = 23, + TAGID_COMMAND = 220, + TAGID_COMMENT = 24, + TAGID_COMMENT_RAW = 25, + TAGID_COUNT = 224, + TAGID_DATALIST = 217, + TAGID_DD = 26, + TAGID_DEL = 27, + TAGID_DETAILS = 221, + TAGID_DFN = 28, + TAGID_DIR = 29, + TAGID_DIV = 30, + TAGID_DL = 31, + TAGID_DOCTYPE = 196, + TAGID_DT = 32, + TAGID_EM = 33, + TAGID_EMBED = 34, + TAGID_FIELDSET = 35, + TAGID_FIGCAPTION = 201, + TAGID_FIGURE = 202, + TAGID_FONT = 36, + TAGID_FOOTER = 203, + TAGID_FORM = 37, + TAGID_FRAME = 38, + TAGID_FRAMESET = 39, + TAGID_GENERIC = 40, + TAGID_H1 = 41, + TAGID_H2 = 42, + TAGID_H3 = 43, + TAGID_H4 = 44, + TAGID_H5 = 45, + TAGID_H6 = 46, + TAGID_HEAD = 47, + TAGID_HEADER = 204, + TAGID_HGROUP = 205, + TAGID_HR = 48, + TAGID_HTML = 49, + TAGID_I = 50, + TAGID_IFRAME = 51, + TAGID_IMG = 52, + TAGID_INPUT = 53, + TAGID_INS = 54, + TAGID_ISINDEX = 219, + TAGID_KBD = 55, + TAGID_KEYGEN = 197, + TAGID_LABEL = 56, + TAGID_LAST_PREDEFINED = 10000, + TAGID_LEGEND = 57, + TAGID_LI = 58, + TAGID_LINK = 59, + TAGID_LISTING = 60, + TAGID_MAP = 61, + TAGID_MARK = 206, + TAGID_MARQUEE = 62, + TAGID_MATHML_ANNOTATION_XML = 210, + TAGID_MATHML_MATH = 211, + TAGID_MATHML_MI = 212, + TAGID_MATHML_MN = 213, + TAGID_MATHML_MO = 214, + TAGID_MATHML_MS = 215, + TAGID_MATHML_MTEXT = 216, + TAGID_MENU = 63, + TAGID_META = 64, + TAGID_NAV = 207, + TAGID_NEXTID = 65, + TAGID_NOBR = 66, + TAGID_NOEMBED = 67, + TAGID_NOFRAMES = 68, + TAGID_NOSCRIPT = 69, + TAGID_NULL = 0, + TAGID_OBJECT = 70, + TAGID_OL = 71, + TAGID_OPTGROUP = 109, + TAGID_OPTION = 72, + TAGID_P = 73, + TAGID_PARAM = 74, + TAGID_PLAINTEXT = 75, + TAGID_PRE = 76, + TAGID_PROCESSINGINSTRUCTION = 198, + TAGID_PROGRESS = 209, + TAGID_Q = 77, + TAGID_ROOT = 108, + TAGID_RP = 78, + TAGID_RT = 79, + TAGID_RUBY = 80, + TAGID_S = 81, + TAGID_SAMP = 82, + TAGID_SCRIPT = 83, + TAGID_SECTION = 208, + TAGID_SELECT = 84, + TAGID_SMALL = 85, + TAGID_SOURCE = 193, + TAGID_SPAN = 86, + TAGID_STRIKE = 87, + TAGID_STRONG = 88, + TAGID_STYLE = 89, + TAGID_SUB = 90, + TAGID_SUMMARY = 222, + TAGID_SUP = 91, + TAGID_SVG_A = 111, + TAGID_SVG_ALTGLYPH = 112, + TAGID_SVG_ALTGLYPHDEF = 113, + TAGID_SVG_ALTGLYPHITEM = 114, + TAGID_SVG_ANIMATE = 115, + TAGID_SVG_ANIMATECOLOR = 116, + TAGID_SVG_ANIMATEMOTION = 117, + TAGID_SVG_ANIMATETRANSFORM = 118, + TAGID_SVG_CIRCLE = 119, + TAGID_SVG_CLIPPATH = 120, + TAGID_SVG_COLOR_PROFILE = 121, + TAGID_SVG_CURSOR = 122, + TAGID_SVG_DEFINITION_SRC = 123, + TAGID_SVG_DEFS = 124, + TAGID_SVG_DESC = 125, + TAGID_SVG_ELLIPSE = 126, + TAGID_SVG_FEBLEND = 127, + TAGID_SVG_FECOLORMATRIX = 128, + TAGID_SVG_FECOMPONENTTRANSFER = 129, + TAGID_SVG_FECOMPOSITE = 130, + TAGID_SVG_FECONVOLVEMATRIX = 131, + TAGID_SVG_FEDIFFUSELIGHTING = 132, + TAGID_SVG_FEDISPLACEMENTMAP = 133, + TAGID_SVG_FEDISTANTLIGHT = 134, + TAGID_SVG_FEFLOOD = 135, + TAGID_SVG_FEFUNCA = 136, + TAGID_SVG_FEFUNCB = 137, + TAGID_SVG_FEFUNCG = 138, + TAGID_SVG_FEFUNCR = 139, + TAGID_SVG_FEGAUSSIANBLUR = 140, + TAGID_SVG_FEIMAGE = 141, + TAGID_SVG_FEMERGE = 142, + TAGID_SVG_FEMERGENODE = 143, + TAGID_SVG_FEMORPHOLOGY = 144, + TAGID_SVG_FEOFFSET = 145, + TAGID_SVG_FEPOINTLIGHT = 146, + TAGID_SVG_FESPECULARLIGHTING = 147, + TAGID_SVG_FESPOTLIGHT = 148, + TAGID_SVG_FETILE = 149, + TAGID_SVG_FETURBULENCE = 150, + TAGID_SVG_FILTER = 151, + TAGID_SVG_FONT = 152, + TAGID_SVG_FONT_FACE = 153, + TAGID_SVG_FONT_FACE_FORMAT = 154, + TAGID_SVG_FONT_FACE_NAME = 155, + TAGID_SVG_FONT_FACE_SRC = 156, + TAGID_SVG_FONT_FACE_URI = 157, + TAGID_SVG_FOREIGNOBJECT = 158, + TAGID_SVG_G = 159, + TAGID_SVG_GLYPH = 160, + TAGID_SVG_GLYPHREF = 161, + TAGID_SVG_HKERN = 162, + TAGID_SVG_IMAGE = 163, + TAGID_SVG_LINE = 164, + TAGID_SVG_LINEARGRADIENT = 165, + TAGID_SVG_MARKER = 166, + TAGID_SVG_MASK = 167, + TAGID_SVG_METADATA = 168, + TAGID_SVG_MISSING_GLYPH = 169, + TAGID_SVG_MPATH = 170, + TAGID_SVG_PATH = 171, + TAGID_SVG_PATTERN = 172, + TAGID_SVG_POLYGON = 173, + TAGID_SVG_POLYLINE = 174, + TAGID_SVG_RADIALGRADIENT = 175, + TAGID_SVG_RECT = 176, + TAGID_SVG_SCRIPT = 177, + TAGID_SVG_SET = 178, + TAGID_SVG_STOP = 179, + TAGID_SVG_STYLE = 180, + TAGID_SVG_SVG = 181, + TAGID_SVG_SWITCH = 182, + TAGID_SVG_SYMBOL = 183, + TAGID_SVG_TEXT = 184, + TAGID_SVG_TEXTPATH = 185, + TAGID_SVG_TITLE = 186, + TAGID_SVG_TREF = 187, + TAGID_SVG_TSPAN = 188, + TAGID_SVG_USE = 189, + TAGID_SVG_VIEW = 190, + TAGID_SVG_VKERN = 191, + TAGID_TABLE = 92, + TAGID_TBODY = 93, + TAGID_TC = 94, + TAGID_TD = 95, + TAGID_TEXTAREA = 96, + TAGID_TFOOT = 97, + TAGID_TH = 98, + TAGID_THEAD = 99, + TAGID_TITLE = 100, + TAGID_TR = 101, + TAGID_TRACK = 218, + TAGID_TT = 102, + TAGID_U = 103, + TAGID_UL = 104, + TAGID_UNKNOWN = 1, + TAGID_VAR = 105, + TAGID_VIDEO = 194, + TAGID_WBR = 106, + TAGID_X_MS_WEBVIEW = 223, + TAGID_XMP = 107, + } + + const enum _ELEMENTDESCRIPTOR_FLAGS { + ELEMENTDESCRIPTOR_FLAGS_Max = 2147483647, + ELEMENTDESCRIPTORFLAGS_LITERAL = 1, + ELEMENTDESCRIPTORFLAGS_NESTED_LITERAL = 2, + } + + const enum _ELEMENTNAMESPACE_FLAGS { + ELEMENTNAMESPACE_FLAGS_Max = 2147483647, + ELEMENTNAMESPACEFLAGS_ALLOWANYTAG = 1, + ELEMENTNAMESPACEFLAGS_QUERYFORUNKNOWNTAGS = 2, + } + + const enum _FINDTEXT_FLAGS { + FINDTEXT_BACKWARDS = 1, + FINDTEXT_FLAGS_Max = 2147483647, + FINDTEXT_MATCHALEFHAMZA = -2147483648, + FINDTEXT_MATCHCASE = 4, + FINDTEXT_MATCHDIAC = 536870912, + FINDTEXT_MATCHKASHIDA = 1073741824, + FINDTEXT_MATCHREPEATEDWHITESPACE = 262144, + FINDTEXT_RAW = 131072, + FINDTEXT_WHOLEWORD = 2, + } + + const enum _frameScrolling { + frameScrolling_Max = 2147483647, + frameScrollingauto = 4, + frameScrollingno = 2, + frameScrollingyes = 1, + } + + const enum _HT_OPTIONS { + HT_OPT_AllowAfterEOL = 1, + HT_OPTIONS_Max = 2147483647, + } + + const enum _HT_RESULTS { + HT_RESULTS_Glyph = 1, + HT_RESULTS_Max = 2147483647, + } + + const enum _HTML_PAINT_DRAW_FLAGS { + HTML_PAINT_DRAW_FLAGS_Max = 2147483647, + HTMLPAINT_DRAW_UPDATEREGION = 1, + HTMLPAINT_DRAW_USE_XFORM = 2, + } + + const enum _HTML_PAINT_DRAW_INFO_FLAGS { + HTML_PAINT_DRAW_INFO_FLAGS_Max = 2147483647, + HTMLPAINT_DRAWINFO_UPDATEREGION = 2, + HTMLPAINT_DRAWINFO_VIEWPORT = 1, + HTMLPAINT_DRAWINFO_XFORM = 4, + } + + const enum _HTML_PAINT_EVENT_FLAGS { + HTML_PAINT_EVENT_FLAGS_Max = 2147483647, + HTMLPAINT_EVENT_SETCURSOR = 2, + HTMLPAINT_EVENT_TARGET = 1, + } + + const enum _HTML_PAINT_ZORDER { + HTML_PAINT_ZORDER_Max = 2147483647, + HTMLPAINT_ZORDER_ABOVE_CONTENT = 7, + HTMLPAINT_ZORDER_ABOVE_FLOW = 6, + HTMLPAINT_ZORDER_BELOW_CONTENT = 4, + HTMLPAINT_ZORDER_BELOW_FLOW = 5, + HTMLPAINT_ZORDER_NONE = 0, + HTMLPAINT_ZORDER_REPLACE_ALL = 1, + HTMLPAINT_ZORDER_REPLACE_BACKGROUND = 3, + HTMLPAINT_ZORDER_REPLACE_CONTENT = 2, + HTMLPAINT_ZORDER_WINDOW_TOP = 8, + } + + const enum _HTML_PAINTER { + HTML_PAINTER_Max = 2147483647, + HTMLPAINTER_3DSURFACE = 512, + HTMLPAINTER_ALPHA = 4, + HTMLPAINTER_COMPLEX = 8, + HTMLPAINTER_EXPAND = 65536, + HTMLPAINTER_HITTEST = 32, + HTMLPAINTER_NOBAND = 1024, + HTMLPAINTER_NODC = 4096, + HTMLPAINTER_NOPHYSICALCLIP = 8192, + HTMLPAINTER_NOSAVEDC = 16384, + HTMLPAINTER_NOSCROLLBITS = 131072, + HTMLPAINTER_OPAQUE = 1, + HTMLPAINTER_OVERLAY = 16, + HTMLPAINTER_SUPPORTS_XFORM = 32768, + HTMLPAINTER_SURFACE = 256, + HTMLPAINTER_TRANSPARENT = 2, + } + + const enum _htmlAdjacency { + htmlAdjacency_Max = 2147483647, + htmlAdjacencyAfterBegin = 2, + htmlAdjacencyAfterEnd = 4, + htmlAdjacencyBeforeBegin = 1, + htmlAdjacencyBeforeEnd = 3, + } + + const enum _HTMLAppFlag { + HTMLAppFlag_Max = 2147483647, + HTMLAppFlag0 = 0, + HTMLAppFlag1 = 1, + HTMLAppFlagNo = 0, + HTMLAppFlagOff = 0, + HTMLAppFlagOn = 1, + HTMLAppFlagYes = 1, + } + + const enum _htmlApplyLocation { + htmlApplyLocation_Max = 2147483647, + htmlApplyLocationInside = 0, + htmlApplyLocationOutside = 1, + } + + const enum _htmlBlockAlign { + htmlBlockAlign_Max = 2147483647, + htmlBlockAlignCenter = 2, + htmlBlockAlignJustify = 4, + htmlBlockAlignLeft = 1, + htmlBlockAlignNotSet = 0, + htmlBlockAlignRight = 3, + } + + const enum _HTMLBorder { + HTMLBorder_Max = 2147483647, + HTMLBorderDialog = 4194304, + HTMLBorderNone = 0, + HTMLBorderThick = 262144, + HTMLBorderThin = 8388608, + } + + const enum _HTMLBorderStyle { + HTMLBorderStyle_Max = 2147483647, + HTMLBorderStylecombined = 768, + HTMLBorderStyleNormal = 0, + HTMLBorderStyleRaised = 256, + HTMLBorderStyleStatic = 131072, + HTMLBorderStyleSunken = 512, + } + + const enum _htmlCaptionAlign { + htmlCaptionAlign_Max = 2147483647, + htmlCaptionAlignBottom = 6, + htmlCaptionAlignCenter = 2, + htmlCaptionAlignJustify = 4, + htmlCaptionAlignLeft = 1, + htmlCaptionAlignNotSet = 0, + htmlCaptionAlignRight = 3, + htmlCaptionAlignTop = 5, + } + + const enum _HTMLCaptionFlag { + HTMLCaptionFlag_Max = 2147483647, + HTMLCaptionFlagNo = 0, + HTMLCaptionFlagYes = 12582912, + } + + const enum _htmlCaptionVAlign { + htmlCaptionVAlign_Max = 2147483647, + htmlCaptionVAlignBottom = 2, + htmlCaptionVAlignNotSet = 0, + htmlCaptionVAlignTop = 1, + } + + const enum _htmlCellAlign { + htmlCellAlign_Max = 2147483647, + htmlCellAlignCenter = 2, + htmlCellAlignLeft = 1, + htmlCellAlignMiddle = 2, + htmlCellAlignNotSet = 0, + htmlCellAlignRight = 3, + } + + const enum _htmlCellVAlign { + htmlCellVAlign_Max = 2147483647, + htmlCellVAlignBaseline = 4, + htmlCellVAlignBottom = 3, + htmlCellVAlignCenter = 2, + htmlCellVAlignMiddle = 2, + htmlCellVAlignNotSet = 0, + htmlCellVAlignTop = 1, + } + + const enum _htmlClear { + htmlClear_Max = 2147483647, + htmlClearAll = 1, + htmlClearBoth = 4, + htmlClearLeft = 2, + htmlClearNone = 5, + htmlClearNotSet = 0, + htmlClearRight = 3, + } + + const enum _htmlCompatMode { + htmlCompatMode_Max = 2147483647, + htmlCompatModeBackCompat = 0, + htmlCompatModeCSS1Compat = 1, + } + + const enum _htmlComponent { + htmlComponent_Max = 2147483647, + htmlComponentClient = 0, + htmlComponentGHBottom = 27, + htmlComponentGHBottomLeft = 25, + htmlComponentGHBottomRight = 29, + htmlComponentGHLeft = 23, + htmlComponentGHRight = 28, + htmlComponentGHTop = 24, + htmlComponentGHTopLeft = 22, + htmlComponentGHTopRight = 26, + htmlComponentOutside = 21, + htmlComponentSbBottom = 20, + htmlComponentSbDown = 10, + htmlComponentSbDown2 = 17, + htmlComponentSbHThumb = 3, + htmlComponentSbLeft = 1, + htmlComponentSbLeft2 = 11, + htmlComponentSbPageDown = 9, + htmlComponentSbPageDown2 = 18, + htmlComponentSbPageLeft = 2, + htmlComponentSbPageLeft2 = 12, + htmlComponentSbPageRight = 4, + htmlComponentSbPageRight2 = 14, + htmlComponentSbPageUp = 7, + htmlComponentSbPageUp2 = 16, + htmlComponentSbRight = 5, + htmlComponentSbRight2 = 13, + htmlComponentSbTop = 19, + htmlComponentSbUp = 6, + htmlComponentSbUp2 = 15, + htmlComponentSbVThumb = 8, + } + + const enum _htmlControlAlign { + htmlControlAlign_Max = 2147483647, + htmlControlAlignAbsBottom = 7, + htmlControlAlignAbsMiddle = 5, + htmlControlAlignBaseline = 6, + htmlControlAlignBottom = 8, + htmlControlAlignCenter = 2, + htmlControlAlignLeft = 1, + htmlControlAlignMiddle = 9, + htmlControlAlignNotSet = 0, + htmlControlAlignRight = 3, + htmlControlAlignTextTop = 4, + htmlControlAlignTop = 10, + } + + const enum _htmlDesignMode { + htmlDesignMode_Max = 2147483647, + htmlDesignModeInherit = -2, + htmlDesignModeOff = 0, + htmlDesignModeOn = -1, + } + + const enum _htmlDir { + htmlDir_Max = 2147483647, + htmlDirLeftToRight = 1, + htmlDirNotSet = 0, + htmlDirRightToLeft = 2, + } + + const enum _htmlDirection { + htmlDirection_Max = 2147483647, + htmlDirectionBackward = -99999, + htmlDirectionForward = 99999, + } + + const enum _HTMLDlgBorder { + HTMLDlgBorder_Max = 2147483647, + HTMLDlgBorderThick = 262144, + HTMLDlgBorderThin = 0, + } + + const enum _HTMLDlgCenter { + HTMLDlgCenter_Max = 2147483647, + HTMLDlgCenter0 = 0, + HTMLDlgCenter1 = 1, + HTMLDlgCenterDesktop = 2, + HTMLDlgCenterNo = 0, + HTMLDlgCenterOff = 0, + HTMLDlgCenterOn = 1, + HTMLDlgCenterParent = 1, + HTMLDlgCenterYes = 1, + } + + const enum _HTMLDlgEdge { + HTMLDlgEdge_Max = 2147483647, + HTMLDlgEdgeRaised = 16, + HTMLDlgEdgeSunken = 0, + } + + const enum _HTMLDlgFlag { + HTMLDlgFlag_Max = 2147483647, + HTMLDlgFlag0 = 0, + HTMLDlgFlag1 = 1, + HTMLDlgFlagNo = 0, + HTMLDlgFlagNotSet = -1, + HTMLDlgFlagOff = 0, + HTMLDlgFlagOn = 1, + HTMLDlgFlagYes = 1, + } + + const enum _htmlDraggable { + htmlDraggable_Max = 2147483647, + htmlDraggableAuto = 0, + htmlDraggableFalse = 2, + htmlDraggableTrue = 1, + } + + const enum _htmlDropEffect { + htmlDropEffect_Max = 2147483647, + htmlDropEffectCopy = 0, + htmlDropEffectLink = 1, + htmlDropEffectMove = 2, + htmlDropEffectNone = 3, + } + + const enum _htmlEditable { + htmlEditable_Max = 2147483647, + htmlEditableFalse = 2, + htmlEditableInherit = 0, + htmlEditableTrue = 1, + } + + const enum _htmlEffectAllowed { + htmlEffectAllowed_Max = 2147483647, + htmlEffectAllowedAll = 6, + htmlEffectAllowedCopy = 0, + htmlEffectAllowedCopyLink = 3, + htmlEffectAllowedCopyMove = 4, + htmlEffectAllowedLink = 1, + htmlEffectAllowedLinkMove = 5, + htmlEffectAllowedMove = 2, + htmlEffectAllowedNone = 7, + htmlEffectAllowedUninitialized = 8, + } + + const enum _htmlEncoding { + htmlEncoding_Max = 2147483647, + htmlEncodingMultipart = 1, + htmlEncodingText = 2, + htmlEncodingURL = 0, + } + + const enum _htmlEndPoints { + htmlEndPoints_Max = 2147483647, + htmlEndPointsEndToEnd = 4, + htmlEndPointsEndToStart = 3, + htmlEndPointsStartToEnd = 2, + htmlEndPointsStartToStart = 1, + } + + const enum _htmlFrame { + htmlFrame_Max = 2147483647, + htmlFrameabove = 2, + htmlFramebelow = 3, + htmlFrameborder = 9, + htmlFramebox = 8, + htmlFramehsides = 4, + htmlFramelhs = 5, + htmlFrameNotSet = 0, + htmlFramerhs = 6, + htmlFramevoid = 1, + htmlFramevsides = 7, + } + + const enum _htmlGlyphMode { + htmlGlyphMode_Max = 2147483647, + htmlGlyphModeBegin = 1, + htmlGlyphModeBoth = 3, + htmlGlyphModeEnd = 2, + htmlGlyphModeNone = 0, + } + + const enum _htmlInput { + htmlInput_Max = 2147483647, + htmlInputButton = 1, + htmlInputCheckbox = 2, + htmlInputEmail = 17, + htmlInputFile = 3, + htmlInputHidden = 4, + htmlInputImage = 5, + htmlInputNotSet = 0, + htmlInputNumber = 18, + htmlInputPassword = 6, + htmlInputRadio = 7, + htmlInputRange = 15, + htmlInputReset = 8, + htmlInputRichtext = 14, + htmlInputSearch = 20, + htmlInputSelectMultiple = 10, + htmlInputSelectOne = 9, + htmlInputSubmit = 11, + htmlInputTel = 19, + htmlInputText = 12, + htmlInputTextarea = 13, + htmlInputUrl = 16, + } + + const enum _htmlListType { + htmlListType_Max = 2147483647, + htmlListTypeCircle = 7, + htmlListTypeDisc = 6, + htmlListTypeLargeAlpha = 1, + htmlListTypeLargeRoman = 3, + htmlListTypeNotSet = 0, + htmlListTypeNumbers = 5, + htmlListTypeSmallAlpha = 2, + htmlListTypeSmallRoman = 4, + htmlListTypeSquare = 8, + } + + const enum _htmlLoop { + htmlLoop_Max = 2147483647, + htmlLoopLoopInfinite = -1, + } + + const enum _htmlMarqueeBehavior { + htmlMarqueeBehavior_Max = 2147483647, + htmlMarqueeBehavioralternate = 3, + htmlMarqueeBehaviorscroll = 1, + htmlMarqueeBehaviorslide = 2, + } + + const enum _htmlMarqueeDirection { + htmlMarqueeDirection_Max = 2147483647, + htmlMarqueeDirectiondown = 7, + htmlMarqueeDirectionleft = 1, + htmlMarqueeDirectionright = 3, + htmlMarqueeDirectionup = 5, + } + + const enum _HTMLMaximizeFlag { + HTMLMaximizeFlag_Max = 2147483647, + HTMLMaximizeFlagNo = 0, + HTMLMaximizeFlagYes = 65536, + } + + const enum _htmlMediaErr { + htmlMediaErr_Max = 2147483647, + htmlMediaErrAborted = 0, + htmlMediaErrDecode = 2, + htmlMediaErrNetwork = 1, + htmlMediaErrSrcNotSupported = 3, + } + + const enum _htmlMediaNetworkState { + htmlMediaNetworkState_Max = 2147483647, + htmlMediaNetworkStateEmpty = 0, + htmlMediaNetworkStateIdle = 1, + htmlMediaNetworkStateLoading = 2, + htmlMediaNetworkStateNoSource = 3, + } + + const enum _htmlMediaReadyState { + htmlMediaReadyState_Max = 2147483647, + htmlMediaReadyStateHaveCurrentData = 2, + htmlMediaReadyStateHaveEnoughData = 4, + htmlMediaReadyStateHaveFutureData = 3, + htmlMediaReadyStateHaveMetadata = 1, + htmlMediaReadyStateHaveNothing = 0, + } + + const enum _htmlMethod { + htmlMethod_Max = 2147483647, + htmlMethodGet = 1, + htmlMethodNotSet = 0, + htmlMethodPost = 2, + } + + const enum _HTMLMinimizeFlag { + HTMLMinimizeFlag_Max = 2147483647, + HTMLMinimizeFlagNo = 0, + HTMLMinimizeFlagYes = 131072, + } + + const enum _htmlPersistState { + htmlPersistState_Max = 2147483647, + htmlPersistStateFavorite = 1, + htmlPersistStateHistory = 2, + htmlPersistStateNormal = 0, + htmlPersistStateSnapshot = 3, + htmlPersistStateUserData = 4, + } + + const enum _htmlReadyState { + htmlReadyState_Max = 2147483647, + htmlReadyStatecomplete = 4, + htmlReadyStateinteractive = 3, + htmlReadyStateloaded = 2, + htmlReadyStateloading = 1, + htmlReadyStateuninitialized = 0, + } + + const enum _htmlRules { + htmlRules_Max = 2147483647, + htmlRulesall = 5, + htmlRulescols = 4, + htmlRulesgroups = 2, + htmlRulesnone = 1, + htmlRulesNotSet = 0, + htmlRulesrows = 3, + } + + const enum _htmlSelectExFlag { + htmlSelectExFlag_Max = 2147483647, + htmlSelectExFlagHideSelectionInDesign = 1, + htmlSelectExFlagNone = 0, + } + + const enum _htmlSelection { + htmlSelection_Max = 2147483647, + htmlSelectionControl = 2, + htmlSelectionNone = 0, + htmlSelectionTable = 3, + htmlSelectionText = 1, + } + + const enum _htmlSelectType { + htmlSelectType_Max = 2147483647, + htmlSelectTypeSelectMultiple = 2, + htmlSelectTypeSelectOne = 1, + } + + const enum _htmlSpellCheck { + htmlSpellCheck_Max = 2147483647, + htmlSpellCheckDefault = 3, + htmlSpellCheckFalse = 2, + htmlSpellCheckNotSet = 0, + htmlSpellCheckTrue = 1, + } + + const enum _htmlStart { + htmlStart_Max = 2147483647, + htmlStartfileopen = 0, + htmlStartmouseover = 1, + } + + const enum _HTMLSysMenuFlag { + HTMLSysMenuFlag_Max = 2147483647, + HTMLSysMenuFlagNo = 0, + HTMLSysMenuFlagYes = 524288, + } + + const enum _htmlTabIndex { + htmlTabIndex_Max = 2147483647, + htmlTabIndexNotSet = -32768, + } + + const enum _htmlUnit { + htmlUnit_Max = 2147483647, + htmlUnitCharacter = 1, + htmlUnitSentence = 3, + htmlUnitTextEdit = 6, + htmlUnitWord = 2, + } + + const enum _HTMLWindowState { + HTMLWindowState_Max = 2147483647, + HTMLWindowStateMaximize = 3, + HTMLWindowStateMinimize = 6, + HTMLWindowStateNormal = 1, + } + + const enum _htmlWrap { + htmlWrap_Max = 2147483647, + htmlWrapHard = 3, + htmlWrapOff = 1, + htmlWrapSoft = 2, + } + + const enum _htmlZOrder { + htmlZOrder_Max = 2147483647, + htmlZOrderBack = 1, + htmlZOrderFront = 0, + } + + const enum _lengthAdjust { + lengthAdjust_Max = 2147483647, + LENGTHADJUST_SPACING = 1, + LENGTHADJUST_SPACINGANDGLYPHS = 2, + LENGTHADJUST_UNKNOWN = 0, + } + + const enum _LINE_DIRECTION { + LINE_DIRECTION_LeftToRight = 2, + LINE_DIRECTION_Max = 2147483647, + LINE_DIRECTION_RightToLeft = 1, + } + + const enum _MARKUP_CONTEXT_TYPE { + CONTEXT_TYPE_EnterScope = 2, + CONTEXT_TYPE_ExitScope = 3, + CONTEXT_TYPE_None = 0, + CONTEXT_TYPE_NoScope = 4, + CONTEXT_TYPE_Text = 1, + MARKUP_CONTEXT_TYPE_Max = 2147483647, + } + + const enum _mediaType { + mediaType_Max = 2147483647, + mediaTypeAll = 511, + mediaTypeAural = 1, + mediaTypeBraille = 2, + mediaTypeEmbossed = 4, + mediaTypeHandheld = 8, + mediaTypeNotSet = 0, + mediaTypePrint = 16, + mediaTypeProjection = 32, + mediaTypeScreen = 64, + mediaTypeTty = 128, + mediaTypeTv = 256, + } + + const enum _MOVEUNIT_ACTION { + MOVEUNIT_ACTION_Max = 2147483647, + MOVEUNIT_NEXTBLOCK = 19, + MOVEUNIT_NEXTCHAR = 1, + MOVEUNIT_NEXTCLUSTERBEGIN = 3, + MOVEUNIT_NEXTCLUSTEREND = 5, + MOVEUNIT_NEXTPROOFWORD = 11, + MOVEUNIT_NEXTSENTENCE = 17, + MOVEUNIT_NEXTURLBEGIN = 12, + MOVEUNIT_NEXTURLEND = 14, + MOVEUNIT_NEXTWORDBEGIN = 7, + MOVEUNIT_NEXTWORDEND = 9, + MOVEUNIT_PREVBLOCK = 18, + MOVEUNIT_PREVCHAR = 0, + MOVEUNIT_PREVCLUSTERBEGIN = 2, + MOVEUNIT_PREVCLUSTEREND = 4, + MOVEUNIT_PREVPROOFWORD = 10, + MOVEUNIT_PREVSENTENCE = 16, + MOVEUNIT_PREVURLBEGIN = 13, + MOVEUNIT_PREVURLEND = 15, + MOVEUNIT_PREVWORDBEGIN = 6, + MOVEUNIT_PREVWORDEND = 8, + } + + const enum _PARSE_FLAGS { + PARSE_ABSOLUTIFYIE40URLS = 1, + PARSE_DISABLEVML = 2, + PARSE_FLAGS_Max = 2147483647, + } + + const enum _POINTER_GRAVITY { + POINTER_GRAVITY_Left = 0, + POINTER_GRAVITY_Max = 2147483647, + POINTER_GRAVITY_Right = 1, + } + + const enum _sandboxAllow { + sandboxAllow_Max = 2147483647, + sandboxAllowForms = 3, + sandboxAllowPopups = 4, + sandboxAllowSameOrigin = 1, + sandboxAllowScripts = 0, + sandboxAllowTopNavigation = 2, + } + + const enum _SAVE_SEGMENTS_FLAGS { + SAVE_SEGMENTS_FLAGS_Max = 2147483647, + SAVE_SEGMENTS_NoIE4SelectionCompat = 1, + } + + const enum _SCRIPT_TIMER_TYPE { + SCRIPT_TIMER_TYPE_Max = 2147483647, + STT_ANIMATION_FRAME = 3, + STT_IMMEDIATE = 2, + STT_INTERVAL = 1, + STT_TIMEOUT = 0, + } + + const enum _SECUREURLHOSTVALIDATE_FLAGS { + SECUREURLHOSTVALIDATE_FLAGS_Max = 2147483647, + SUHV_PROMPTBEFORENO = 1, + SUHV_SILENTYES = 2, + SUHV_UNSECURESOURCE = 4, + } + + const enum _SELECTION_TYPE { + SELECTION_TYPE_Caret = 1, + SELECTION_TYPE_Control = 3, + SELECTION_TYPE_Max = 2147483647, + SELECTION_TYPE_None = 0, + SELECTION_TYPE_Text = 2, + } + + const enum _styleAccelerator { + styleAccelerator_Max = 2147483647, + styleAcceleratorFalse = 0, + styleAcceleratorTrue = 1, + } + + const enum _styleAlignContent { + styleAlignContent_Max = 2147483647, + styleAlignContentCenter = 2, + styleAlignContentFlexEnd = 1, + styleAlignContentFlexStart = 0, + styleAlignContentNotSet = 6, + styleAlignContentSpaceAround = 4, + styleAlignContentSpaceBetween = 3, + styleAlignContentStretch = 5, + } + + const enum _styleAlignItems { + styleAlignItems_Max = 2147483647, + styleAlignItemsBaseline = 3, + styleAlignItemsCenter = 2, + styleAlignItemsFlexEnd = 1, + styleAlignItemsFlexStart = 0, + styleAlignItemsNotSet = 5, + styleAlignItemsStretch = 4, + } + + const enum _styleAlignmentBaseline { + styleAlignmentBaseline_Max = 2147483647, + styleAlignmentBaselineAfterEdge = 1, + styleAlignmentBaselineAlphabetic = 2, + styleAlignmentBaselineAuto = 3, + styleAlignmentBaselineBaseline = 4, + styleAlignmentBaselineBeforeEdge = 5, + styleAlignmentBaselineCentral = 6, + styleAlignmentBaselineHanging = 7, + styleAlignmentBaselineIdeographic = 12, + styleAlignmentBaselineMathematical = 8, + styleAlignmentBaselineMiddle = 9, + styleAlignmentBaselineNotSet = 0, + styleAlignmentBaselineTextAfterEdge = 10, + styleAlignmentBaselineTextBeforeEdge = 11, + } + + const enum _styleAlignSelf { + styleAlignSelf_Max = 2147483647, + styleAlignSelfAuto = 5, + styleAlignSelfBaseline = 3, + styleAlignSelfCenter = 2, + styleAlignSelfFlexEnd = 1, + styleAlignSelfFlexStart = 0, + styleAlignSelfNotSet = 6, + styleAlignSelfStretch = 4, + } + + const enum _styleAttrType { + styleAttrType_Max = 2147483647, + styleAttrTypeAngle = 20, + styleAttrTypeCh = 15, + styleAttrTypeCm = 10, + styleAttrTypeColor = 1, + styleAttrTypeDeg = 21, + styleAttrTypeEm = 7, + styleAttrTypeEx = 8, + styleAttrTypeGrad = 23, + styleAttrTypeIn = 9, + styleAttrTypeInteger = 3, + styleAttrTypeLength = 5, + styleAttrTypeMm = 11, + styleAttrTypeMs = 26, + styleAttrTypeNumber = 4, + styleAttrTypePc = 13, + styleAttrTypePercentage = 19, + styleAttrTypePt = 12, + styleAttrTypePx = 6, + styleAttrTypeRad = 22, + styleAttrTypeRem = 14, + styleAttrTypeS = 25, + styleAttrTypeString = 0, + styleAttrTypeTime = 24, + styleAttrTypeUrl = 2, + styleAttrTypeVh = 16, + styleAttrTypeVmin = 18, + styleAttrTypeVw = 17, + } + + const enum _styleAuto { + styleAuto_Max = 2147483647, + styleAutoAuto = 0, + } + + const enum _styleBackfaceVisibility { + styleBackfaceVisibility_Max = 2147483647, + styleBackfaceVisibilityHidden = 1, + styleBackfaceVisibilityNotSet = 2, + styleBackfaceVisibilityVisible = 0, + } + + const enum _styleBackgroundAttachment { + styleBackgroundAttachment_Max = 2147483647, + styleBackgroundAttachmentFixed = 0, + styleBackgroundAttachmentNotSet = 2, + styleBackgroundAttachmentScroll = 1, + } + + const enum _styleBackgroundAttachment3 { + styleBackgroundAttachment3_Max = 2147483647, + styleBackgroundAttachment3Fixed = 0, + styleBackgroundAttachment3Local = 2, + styleBackgroundAttachment3NotSet = 3, + styleBackgroundAttachment3Scroll = 1, + } + + const enum _styleBackgroundClip { + styleBackgroundClip_Max = 2147483647, + styleBackgroundClipBorderBox = 0, + styleBackgroundClipContentBox = 2, + styleBackgroundClipNotSet = 3, + styleBackgroundClipPaddingBox = 1, + } + + const enum _styleBackgroundOrigin { + styleBackgroundOrigin_Max = 2147483647, + styleBackgroundOriginBorderBox = 0, + styleBackgroundOriginContentBox = 2, + styleBackgroundOriginNotSet = 3, + styleBackgroundOriginPaddingBox = 1, + } + + const enum _styleBackgroundRepeat { + styleBackgroundRepeat_Max = 2147483647, + styleBackgroundRepeatNoRepeat = 3, + styleBackgroundRepeatNotSet = 4, + styleBackgroundRepeatRepeat = 0, + styleBackgroundRepeatRepeatX = 1, + styleBackgroundRepeatRepeatY = 2, + } + + const enum _styleBaselineShift { + styleBaselineShift_Max = 2147483647, + styleBaselineShiftBaseline = 0, + styleBaselineShiftSub = 1, + styleBaselineShiftSuper = 2, + } + + const enum _styleBidi { + styleBidi_Max = 2147483647, + styleBidiEmbed = 2, + styleBidiInherit = 4, + styleBidiNormal = 1, + styleBidiNotSet = 0, + styleBidiOverride = 3, + } + + const enum _styleBlockProgression { + styleBlockProgression_Max = 2147483647, + styleBlockProgressionBt = 2, + styleBlockProgressionLr = 3, + styleBlockProgressionNotSet = 4, + styleBlockProgressionRl = 1, + styleBlockProgressionTb = 0, + } + + const enum _styleBool { + styleBool_Max = 2147483647, + styleBoolFalse = 0, + styleBoolTrue = 1, + } + + const enum _styleBorderCollapse { + styleBorderCollapse_Max = 2147483647, + styleBorderCollapseCollapse = 2, + styleBorderCollapseNotSet = 0, + styleBorderCollapseSeparate = 1, + } + + const enum _styleBorderImageRepeat { + styleBorderImageRepeat_Max = 2147483647, + styleBorderImageRepeatNotSet = 4, + styleBorderImageRepeatRepeat = 1, + styleBorderImageRepeatRound = 2, + styleBorderImageRepeatSpace = 3, + styleBorderImageRepeatStretch = 0, + } + + const enum _styleBorderImageSliceFill { + styleBorderImageSliceFill_Max = 2147483647, + styleBorderImageSliceFillFill = 1, + styleBorderImageSliceFillNotSet = 0, + } + + const enum _styleBorderStyle { + styleBorderStyle_Max = 2147483647, + styleBorderStyleDashed = 2, + styleBorderStyleDotted = 1, + styleBorderStyleDouble = 4, + styleBorderStyleGroove = 5, + styleBorderStyleHidden = 11, + styleBorderStyleInset = 7, + styleBorderStyleNone = 10, + styleBorderStyleNotSet = 0, + styleBorderStyleOutset = 8, + styleBorderStyleRidge = 6, + styleBorderStyleSolid = 3, + styleBorderStyleWindowInset = 9, + } + + const enum _styleBorderWidth { + styleBorderWidth_Max = 2147483647, + styleBorderWidthMedium = 1, + styleBorderWidthThick = 2, + styleBorderWidthThin = 0, + } + + const enum _styleBoxSizing { + styleBoxSizing_Max = 2147483647, + styleBoxSizingBorderBox = 2, + styleBoxSizingContentBox = 1, + styleBoxSizingNotSet = 0, + } + + const enum _styleBreak { + styleBreak_Max = 2147483647, + styleBreakAlways = 2, + styleBreakAuto = 1, + styleBreakAvoid = 3, + styleBreakAvoidColumn = 9, + styleBreakAvoidPage = 8, + styleBreakColumn = 7, + styleBreakLeft = 4, + styleBreakNotSet = 0, + styleBreakPage = 6, + styleBreakRight = 5, + } + + const enum _styleBreakInside { + styleBreakInside_Max = 2147483647, + styleBreakInsideAuto = 1, + styleBreakInsideAvoid = 2, + styleBreakInsideAvoidColumn = 4, + styleBreakInsideAvoidPage = 3, + styleBreakInsideNotSet = 0, + } + + const enum _styleCaptionSide { + styleCaptionSide_Max = 2147483647, + styleCaptionSideBottom = 2, + styleCaptionSideLeft = 3, + styleCaptionSideNotSet = 0, + styleCaptionSideRight = 4, + styleCaptionSideTop = 1, + } + + const enum _styleClipRule { + styleClipRule_Max = 2147483647, + styleClipRuleEvenOdd = 2, + styleClipRuleNonZero = 1, + styleClipRuleNotSet = 0, + } + + const enum _styleColorInterpolationFilters { + styleColorInterpolationFilters_Max = 2147483647, + styleColorInterpolationFiltersAuto = 0, + styleColorInterpolationFiltersLinearRgb = 2, + styleColorInterpolationFiltersNotSet = 3, + styleColorInterpolationFiltersSRgb = 1, + } + + const enum _styleColumnFill { + styleColumnFill_Max = 2147483647, + styleColumnFillAuto = 0, + styleColumnFillBalance = 1, + styleColumnFillNotSet = 2, + } + + const enum _styleColumnSpan { + styleColumnSpan_Max = 2147483647, + styleColumnSpanAll = 1, + styleColumnSpanNone = 0, + styleColumnSpanNotSet = 3, + styleColumnSpanOne = 2, + } + + const enum _styleCursor { + styleCursor_Max = 2147483647, + styleCursorAlias = 32, + styleCursorall_scroll = 21, + styleCursorAuto = 0, + styleCursorCell = 30, + styleCursorcol_resize = 22, + styleCursorContext_menu = 25, + styleCursorCopy = 31, + styleCursorCrosshair = 1, + styleCursorcustom = 33, + styleCursorDefault = 2, + styleCursorE_resize = 5, + styleCursorEw_resize = 26, + styleCursorHand = 3, + styleCursorHelp = 15, + styleCursorMove = 4, + styleCursorN_resize = 8, + styleCursorNe_resize = 6, + styleCursorNesw_resize = 28, + styleCursorNo_drop = 19, + styleCursorNone = 24, + styleCursorNot_allowed = 18, + styleCursorNotSet = 34, + styleCursorNs_resize = 27, + styleCursorNw_resize = 7, + styleCursorNwse_resize = 29, + styleCursorPointer = 16, + styleCursorProgress = 17, + styleCursorrow_resize = 23, + styleCursorS_resize = 11, + styleCursorSe_resize = 9, + styleCursorSw_resize = 10, + styleCursorText = 13, + styleCursorVertical_text = 20, + styleCursorW_resize = 12, + styleCursorWait = 14, + } + + const enum _styleDataRepeat { + styleDataRepeat_Max = 2147483647, + styleDataRepeatInner = 1, + styleDataRepeatNone = 0, + } + + const enum _styleDefaultTextSelection { + styleDefaultTextSelection_Max = 2147483647, + styleDefaultTextSelectionFalse = 0, + styleDefaultTextSelectionTrue = 1, + } + + const enum _styleDir { + styleDir_Max = 2147483647, + styleDirInherit = 3, + styleDirLeftToRight = 1, + styleDirNotSet = 0, + styleDirRightToLeft = 2, + } + + const enum _styleDisplay { + styleDisplay_Max = 2147483647, + styleDisplayBlock = 1, + styleDisplayFlex = 26, + styleDisplayInline = 2, + styleDisplayInlineBlock = 7, + styleDisplayInlineFlex = 27, + styleDisplayInlineTable = 9, + styleDisplayListItem = 3, + styleDisplayMsFlexbox = 22, + styleDisplayMsGrid = 24, + styleDisplayMsInlineFlexbox = 23, + styleDisplayMsInlineGrid = 25, + styleDisplayNone = 4, + styleDisplayNotSet = 0, + styleDisplayRuby = 17, + styleDisplayRubyBase = 18, + styleDisplayRubyBaseContainer = 20, + styleDisplayRubyText = 19, + styleDisplayRubyTextContainer = 21, + styleDisplayRunIn = 16, + styleDisplayTable = 8, + styleDisplayTableCaption = 15, + styleDisplayTableCell = 14, + styleDisplayTableColumn = 12, + styleDisplayTableColumnGroup = 13, + styleDisplayTableFooterGroup = 6, + styleDisplayTableHeaderGroup = 5, + styleDisplayTableRow = 10, + styleDisplayTableRowGroup = 11, + styleDisplayWebkitBox = 28, + styleDisplayWebkitInlineBox = 29, + } + + const enum _styleDominantBaseline { + styleDominantBaseline_Max = 2147483647, + styleDominantBaselineAlphabetic = 1, + styleDominantBaselineAuto = 2, + styleDominantBaselineCentral = 3, + styleDominantBaselineHanging = 4, + styleDominantBaselineIdeographic = 5, + styleDominantBaselineMathematical = 6, + styleDominantBaselineMiddle = 7, + styleDominantBaselineNoChange = 8, + styleDominantBaselineNotSet = 0, + styleDominantBaselineResetSize = 9, + styleDominantBaselineTextAfterEdge = 10, + styleDominantBaselineTextBeforeEdge = 11, + styleDominantBaselineUseScript = 12, + } + + const enum _styleEmptyCells { + styleEmptyCells_Max = 2147483647, + styleEmptyCellsHide = 2, + styleEmptyCellsNotSet = 0, + styleEmptyCellsShow = 1, + } + + const enum _styleEnableBackground { + styleEnableBackground_Max = 2147483647, + styleEnableBackgroundAccumulate = 1, + styleEnableBackgroundInherit = 3, + styleEnableBackgroundNew = 2, + styleEnableBackgroundNotSet = 0, + } + + const enum _styleFillRule { + styleFillRule_Max = 2147483647, + styleFillRuleEvenOdd = 2, + styleFillRuleNonZero = 1, + styleFillRuleNotSet = 0, + } + + const enum _styleFlex { + styleFlex_Max = 2147483647, + styleFlexNone = 0, + styleFlexNotSet = 1, + } + + const enum _styleFlexBasis { + styleFlexBasis_Max = 2147483647, + styleFlexBasisAuto = 0, + styleFlexBasisNotSet = 1, + } + + const enum _styleFlexDirection { + styleFlexDirection_Max = 2147483647, + styleFlexDirectionColumn = 2, + styleFlexDirectionColumnReverse = 3, + styleFlexDirectionNotSet = 4, + styleFlexDirectionRow = 0, + styleFlexDirectionRowReverse = 1, + } + + const enum _styleFlexWrap { + styleFlexWrap_Max = 2147483647, + styleFlexWrapNotSet = 3, + styleFlexWrapNowrap = 0, + styleFlexWrapWrap = 1, + styleFlexWrapWrapReverse = 2, + } + + const enum _styleFontSize { + styleFontSize_Max = 2147483647, + styleFontSizeLarge = 4, + styleFontSizeLarger = 8, + styleFontSizeMedium = 3, + styleFontSizeSmall = 2, + styleFontSizeSmaller = 7, + styleFontSizeXLarge = 5, + styleFontSizeXSmall = 1, + styleFontSizeXXLarge = 6, + styleFontSizeXXSmall = 0, + } + + const enum _styleFontStretch { + styleFontStretch_Max = 2147483647, + styleFontStretchCondensed = 5, + styleFontStretchExpanded = 9, + styleFontStretchExtraCondensed = 4, + styleFontStretchExtraExpanded = 10, + styleFontStretchNarrower = 2, + styleFontStretchNormal = 7, + styleFontStretchNotSet = 0, + styleFontStretchSemiCondensed = 6, + styleFontStretchSemiExpanded = 8, + styleFontStretchUltraCondensed = 3, + styleFontStretchUltraExpanded = 11, + styleFontStretchWider = 1, + } + + const enum _styleFontStyle { + styleFontStyle_Max = 2147483647, + styleFontStyleItalic = 1, + styleFontStyleNormal = 3, + styleFontStyleNotSet = 0, + styleFontStyleOblique = 2, + } + + const enum _styleFontVariant { + styleFontVariant_Max = 2147483647, + styleFontVariantNormal = 2, + styleFontVariantNotSet = 0, + styleFontVariantSmallCaps = 1, + } + + const enum _styleFontWeight { + styleFontWeight_Max = 2147483647, + styleFontWeight100 = 1, + styleFontWeight200 = 2, + styleFontWeight300 = 3, + styleFontWeight400 = 4, + styleFontWeight500 = 5, + styleFontWeight600 = 6, + styleFontWeight700 = 7, + styleFontWeight800 = 8, + styleFontWeight900 = 9, + styleFontWeightBold = 11, + styleFontWeightBolder = 12, + styleFontWeightLighter = 13, + styleFontWeightNormal = 10, + styleFontWeightNotSet = 0, + } + + const enum _styleGridColumn { + styleGridColumn_Max = 2147483647, + styleGridColumnNotSet = 0, + } + + const enum _styleGridColumnAlign { + styleGridColumnAlign_Max = 2147483647, + styleGridColumnAlignCenter = 0, + styleGridColumnAlignEnd = 1, + styleGridColumnAlignNotSet = 4, + styleGridColumnAlignStart = 2, + styleGridColumnAlignStretch = 3, + } + + const enum _styleGridColumnSpan { + styleGridColumnSpan_Max = 2147483647, + styleGridColumnSpanNotSet = 0, + } + + const enum _styleGridRow { + styleGridRow_Max = 2147483647, + styleGridRowNotSet = 0, + } + + const enum _styleGridRowAlign { + styleGridRowAlign_Max = 2147483647, + styleGridRowAlignCenter = 0, + styleGridRowAlignEnd = 1, + styleGridRowAlignNotSet = 4, + styleGridRowAlignStart = 2, + styleGridRowAlignStretch = 3, + } + + const enum _styleGridRowSpan { + styleGridRowSpan_Max = 2147483647, + styleGridRowSpanNotSet = 0, + } + + const enum _styleHyphenateLimitLines { + styleHyphenateLimitLines_Max = 2147483647, + styleHyphenateLimitLinesNoLimit = 0, + } + + const enum _styleHyphens { + styleHyphens_Max = 2147483647, + styleHyphensAuto = 2, + styleHyphensManual = 1, + styleHyphensNone = 0, + styleHyphensNotSet = 3, + } + + const enum _styleImeMode { + styleImeMode_Max = 2147483647, + styleImeModeActive = 1, + styleImeModeAuto = 0, + styleImeModeDisabled = 3, + styleImeModeInactive = 2, + styleImeModeNotSet = 4, + } + + const enum _styleInitialColor { + styleInitialColor_Max = 2147483647, + styleInitialColorColorProperty = 1, + styleInitialColorInvert = 3, + styleInitialColorNoInitial = 0, + styleInitialColorTransparent = 2, + } + + const enum _styleInitialString { + styleInitialString_Max = 2147483647, + styleInitialStringAuto = 2, + styleInitialStringNoInitial = 0, + styleInitialStringNone = 1, + styleInitialStringNormal = 3, + } + + const enum _styleInterpolation { + styleInterpolation_Max = 2147483647, + styleInterpolationBCH = 2, + styleInterpolationNN = 1, + styleInterpolationNotSet = 0, + } + + const enum _styleJustifyContent { + styleJustifyContent_Max = 2147483647, + styleJustifyContentCenter = 2, + styleJustifyContentFlexEnd = 1, + styleJustifyContentFlexStart = 0, + styleJustifyContentNotSet = 5, + styleJustifyContentSpaceAround = 4, + styleJustifyContentSpaceBetween = 3, + } + + const enum _styleLayoutFlow { + styleLayoutFlow_Max = 2147483647, + styleLayoutFlowHorizontal = 0, + styleLayoutFlowNotSet = 2, + styleLayoutFlowVerticalIdeographic = 1, + } + + const enum _styleLayoutGridChar { + styleLayoutGridChar_Max = 2147483647, + styleLayoutGridCharAuto = 1, + styleLayoutGridCharNone = 2, + styleLayoutGridCharNotSet = 0, + } + + const enum _styleLayoutGridLine { + styleLayoutGridLine_Max = 2147483647, + styleLayoutGridLineAuto = 1, + styleLayoutGridLineNone = 2, + styleLayoutGridLineNotSet = 0, + } + + const enum _styleLayoutGridMode { + styleLayoutGridMode_Max = 2147483647, + styleLayoutGridModeBoth = 3, + styleLayoutGridModeChar = 1, + styleLayoutGridModeLine = 2, + styleLayoutGridModeNone = 4, + styleLayoutGridModeNotSet = 0, + } + + const enum _styleLayoutGridType { + styleLayoutGridType_Max = 2147483647, + styleLayoutGridTypeFixed = 3, + styleLayoutGridTypeLoose = 1, + styleLayoutGridTypeNotSet = 0, + styleLayoutGridTypeStrict = 2, + } + + const enum _styleLineBreak { + styleLineBreak_Max = 2147483647, + styleLineBreakNormal = 1, + styleLineBreakNotSet = 0, + styleLineBreakStrict = 2, + } + + const enum _styleListStylePosition { + styleListStylePosition_Max = 2147483647, + styleListStylePositionInside = 1, + styleListStylePositionNotSet = 0, + styleListStylePositionOutSide = 2, + } + + const enum _styleListStyleType { + styleListStyleType_Max = 2147483647, + styleListStyleTypeArmenian = 12, + styleListStyleTypeCircle = 2, + styleListStyleTypeDecimal = 4, + styleListStyleTypeDecimalLeadingZero = 10, + styleListStyleTypeDisc = 1, + styleListStyleTypeGeorgian = 11, + styleListStyleTypeLowerAlpha = 7, + styleListStyleTypeLowerGreek = 16, + styleListStyleTypeLowerLatin = 14, + styleListStyleTypeLowerRoman = 5, + styleListStyleTypeNone = 9, + styleListStyleTypeNotSet = 0, + styleListStyleTypeSquare = 3, + styleListStyleTypeUpperAlpha = 8, + styleListStyleTypeUpperGreek = 15, + styleListStyleTypeUpperLatin = 13, + styleListStyleTypeUpperRoman = 6, + } + + const enum _styleMsAnimationDirection { + styleMsAnimationDirection_Max = 2147483647, + styleMsAnimationDirectionAlternate = 1, + styleMsAnimationDirectionAlternateReverse = 3, + styleMsAnimationDirectionNormal = 0, + styleMsAnimationDirectionNotSet = 4, + styleMsAnimationDirectionReverse = 2, + } + + const enum _styleMsAnimationFillMode { + styleMsAnimationFillMode_Max = 2147483647, + styleMsAnimationFillModeBackwards = 2, + styleMsAnimationFillModeBoth = 3, + styleMsAnimationFillModeForwards = 1, + styleMsAnimationFillModeNone = 0, + styleMsAnimationFillModeNotSet = 4, + } + + const enum _styleMsAnimationPlayState { + styleMsAnimationPlayState_Max = 2147483647, + styleMsAnimationPlayStateNotSet = 2, + styleMsAnimationPlayStatePaused = 1, + styleMsAnimationPlayStateRunning = 0, + } + + const enum _styleMsContentZoomChaining { + styleMsContentZoomChaining_Max = 2147483647, + styleMsContentZoomChainingChained = 2, + styleMsContentZoomChainingNone = 1, + styleMsContentZoomChainingNotSet = 0, + } + + const enum _styleMsContentZooming { + styleMsContentZooming_Max = 2147483647, + styleMsContentZoomingNone = 1, + styleMsContentZoomingNotSet = 0, + styleMsContentZoomingZoom = 2, + } + + const enum _styleMsContentZoomSnapType { + styleMsContentZoomSnapType_Max = 2147483647, + styleMsContentZoomSnapTypeMandatory = 2, + styleMsContentZoomSnapTypeNone = 1, + styleMsContentZoomSnapTypeNotSet = 0, + styleMsContentZoomSnapTypeProximity = 3, + } + + const enum _styleMsFlexAlign { + styleMsFlexAlign_Max = 2147483647, + styleMsFlexAlignBaseline = 3, + styleMsFlexAlignCenter = 2, + styleMsFlexAlignEnd = 1, + styleMsFlexAlignNotSet = 5, + styleMsFlexAlignStart = 0, + styleMsFlexAlignStretch = 4, + } + + const enum _styleMsFlexItemAlign { + styleMsFlexItemAlign_Max = 2147483647, + styleMsFlexItemAlignAuto = 5, + styleMsFlexItemAlignBaseline = 3, + styleMsFlexItemAlignCenter = 2, + styleMsFlexItemAlignEnd = 1, + styleMsFlexItemAlignNotSet = 6, + styleMsFlexItemAlignStart = 0, + styleMsFlexItemAlignStretch = 4, + } + + const enum _styleMsFlexLinePack { + styleMsFlexLinePack_Max = 2147483647, + styleMsFlexLinePackCenter = 2, + styleMsFlexLinePackDistribute = 4, + styleMsFlexLinePackEnd = 1, + styleMsFlexLinePackJustify = 3, + styleMsFlexLinePackNotSet = 6, + styleMsFlexLinePackStart = 0, + styleMsFlexLinePackStretch = 5, + } + + const enum _styleMsFlexPack { + styleMsFlexPack_Max = 2147483647, + styleMsFlexPackCenter = 2, + styleMsFlexPackDistribute = 4, + styleMsFlexPackEnd = 1, + styleMsFlexPackJustify = 3, + styleMsFlexPackNotSet = 5, + styleMsFlexPackStart = 0, + } + + const enum _styleMsHighContrastAdjust { + styleMsHighContrastAdjust_Max = 2147483647, + styleMsHighContrastAdjustAuto = 1, + styleMsHighContrastAdjustNone = 2, + styleMsHighContrastAdjustNotSet = 0, + } + + const enum _styleMsImeAlign { + styleMsImeAlign_Max = 2147483647, + styleMsImeAlignAfter = 1, + styleMsImeAlignAuto = 0, + styleMsImeAlignNotSet = 2, + } + + const enum _styleMsOverflowStyle { + styleMsOverflowStyle_Max = 2147483647, + styleMsOverflowStyleAuto = 1, + styleMsOverflowStyleMsAutoHidingScrollbar = 4, + styleMsOverflowStyleNone = 2, + styleMsOverflowStyleNotSet = 0, + styleMsOverflowStyleScrollbar = 3, + } + + const enum _styleMsScrollChaining { + styleMsScrollChaining_Max = 2147483647, + styleMsScrollChainingChained = 2, + styleMsScrollChainingNone = 1, + styleMsScrollChainingNotSet = 0, + } + + const enum _styleMsScrollRails { + styleMsScrollRails_Max = 2147483647, + styleMsScrollRailsNone = 1, + styleMsScrollRailsNotSet = 0, + styleMsScrollRailsRailed = 2, + } + + const enum _styleMsScrollSnapType { + styleMsScrollSnapType_Max = 2147483647, + styleMsScrollSnapTypeMandatory = 2, + styleMsScrollSnapTypeNone = 1, + styleMsScrollSnapTypeNotSet = 0, + styleMsScrollSnapTypeProximity = 3, + } + + const enum _styleMsScrollTranslation { + styleMsScrollTranslation_Max = 2147483647, + styleMsScrollTranslationNone = 1, + styleMsScrollTranslationNotSet = 0, + styleMsScrollTranslationVtoH = 2, + } + + const enum _styleMsTextCombineHorizontal { + styleMsTextCombineHorizontal_Max = 2147483647, + styleMsTextCombineHorizontalAll = 1, + styleMsTextCombineHorizontalDigits = 2, + styleMsTextCombineHorizontalNone = 0, + styleMsTextCombineHorizontalNotSet = 3, + } + + const enum _styleMsTouchAction { + styleMsTouchAction_Max = 2147483647, + styleMsTouchActionAuto = 1, + styleMsTouchActionCrossSlideX = 64, + styleMsTouchActionCrossSlideY = 128, + styleMsTouchActionDoubleTapZoom = 4, + styleMsTouchActionManipulation = 2, + styleMsTouchActionNone = 0, + styleMsTouchActionNotSet = -1, + styleMsTouchActionPanX = 8, + styleMsTouchActionPanY = 16, + styleMsTouchActionPinchZoom = 32, + } + + const enum _styleMsTouchSelect { + styleMsTouchSelect_Max = 2147483647, + styleMsTouchSelectGrippers = 0, + styleMsTouchSelectNone = 1, + styleMsTouchSelectNotSet = 2, + } + + const enum _styleMsUserSelect { + styleMsUserSelect_Max = 2147483647, + styleMsUserSelectAuto = 0, + styleMsUserSelectElement = 2, + styleMsUserSelectNone = 3, + styleMsUserSelectNotSet = 4, + styleMsUserSelectText = 1, + } + + const enum _styleNone { + styleNone_Max = 2147483647, + styleNoneNone = 0, + } + + const enum _styleNormal { + styleNormal_Max = 2147483647, + styleNormalNormal = 0, + } + + const enum _styleOutlineStyle { + styleOutlineStyle_Max = 2147483647, + styleOutlineStyleDashed = 2, + styleOutlineStyleDotted = 1, + styleOutlineStyleDouble = 4, + styleOutlineStyleGroove = 5, + styleOutlineStyleInset = 7, + styleOutlineStyleNone = 10, + styleOutlineStyleNotSet = 0, + styleOutlineStyleOutset = 8, + styleOutlineStyleRidge = 6, + styleOutlineStyleSolid = 3, + styleOutlineStyleWindowInset = 9, + } + + const enum _styleOverflow { + styleOverflow_Max = 2147483647, + styleOverflowAuto = 1, + styleOverflowHidden = 2, + styleOverflowNotSet = 0, + styleOverflowScroll = 4, + styleOverflowVisible = 3, + } + + const enum _stylePageBreak { + stylePageBreak_Max = 2147483647, + stylePageBreakAlways = 2, + stylePageBreakAuto = 1, + stylePageBreakAvoid = 5, + stylePageBreakLeft = 3, + stylePageBreakNotSet = 0, + stylePageBreakRight = 4, + } + + const enum _stylePageBreakInside { + stylePageBreakInside_Max = 2147483647, + stylePageBreakInsideAuto = 1, + stylePageBreakInsideAvoid = 2, + stylePageBreakInsideNotSet = 0, + } + + const enum _stylePerspectiveOriginX { + stylePerspectiveOriginX_Max = 2147483647, + stylePerspectiveOriginXCenter = 2, + stylePerspectiveOriginXLeft = 1, + stylePerspectiveOriginXNotSet = 0, + stylePerspectiveOriginXRight = 3, + } + + const enum _stylePerspectiveOriginY { + stylePerspectiveOriginY_Max = 2147483647, + stylePerspectiveOriginYBottom = 3, + stylePerspectiveOriginYCenter = 2, + stylePerspectiveOriginYNotSet = 0, + stylePerspectiveOriginYTop = 1, + } + + const enum _stylePointerEvents { + stylePointerEvents_Max = 2147483647, + stylePointerEventsAll = 8, + stylePointerEventsAuto = 11, + stylePointerEventsFill = 6, + stylePointerEventsInitial = 10, + stylePointerEventsNone = 9, + stylePointerEventsNotSet = 0, + stylePointerEventsPainted = 5, + stylePointerEventsStroke = 7, + stylePointerEventsVisible = 4, + stylePointerEventsVisibleFill = 2, + stylePointerEventsVisiblePainted = 1, + stylePointerEventsVisibleStroke = 3, + } + + const enum _stylePosition { + stylePosition_Max = 2147483647, + stylePositionabsolute = 3, + stylePositionfixed = 4, + stylePositionMsDeviceFixed = 6, + stylePositionMsPage = 5, + stylePositionNotSet = 0, + stylePositionrelative = 2, + stylePositionstatic = 1, + } + + const enum _styleRubyAlign { + styleRubyAlign_Max = 2147483647, + styleRubyAlignAuto = 1, + styleRubyAlignCenter = 3, + styleRubyAlignDistributeLetter = 5, + styleRubyAlignDistributeSpace = 6, + styleRubyAlignLeft = 2, + styleRubyAlignLineEdge = 7, + styleRubyAlignNotSet = 0, + styleRubyAlignRight = 4, + } + + const enum _styleRubyOverhang { + styleRubyOverhang_Max = 2147483647, + styleRubyOverhangAuto = 1, + styleRubyOverhangNone = 3, + styleRubyOverhangNotSet = 0, + styleRubyOverhangWhitespace = 2, + } + + const enum _styleRubyPosition { + styleRubyPosition_Max = 2147483647, + styleRubyPositionAbove = 1, + styleRubyPositionInline = 2, + styleRubyPositionNotSet = 0, + } + + const enum _styleStrokeLinecap { + styleStrokeLinecap_Max = 2147483647, + styleStrokeLinecapButt = 1, + styleStrokeLinecapNotSet = 0, + styleStrokeLinecapRound = 2, + styleStrokeLinecapSquare = 3, + } + + const enum _styleStrokeLinejoin { + styleStrokeLinejoin_Max = 2147483647, + styleStrokeLinejoinBevel = 3, + styleStrokeLinejoinMiter = 1, + styleStrokeLinejoinNotSet = 0, + styleStrokeLinejoinRound = 2, + } + + const enum _styleStyleFloat { + styleStyleFloat_Max = 2147483647, + styleStyleFloatLeft = 1, + styleStyleFloatNone = 3, + styleStyleFloatNotSet = 0, + styleStyleFloatRight = 2, + } + + const enum _styleTableLayout { + styleTableLayout_Max = 2147483647, + styleTableLayoutAuto = 1, + styleTableLayoutFixed = 2, + styleTableLayoutNotSet = 0, + } + + const enum _styleTextAlignLast { + styleTextAlignLast_Max = 2147483647, + styleTextAlignLastAuto = 5, + styleTextAlignLastCenter = 2, + styleTextAlignLastJustify = 4, + styleTextAlignLastLeft = 1, + styleTextAlignLastNotSet = 0, + styleTextAlignLastRight = 3, + } + + const enum _styleTextAnchor { + styleTextAnchor_Max = 2147483647, + styleTextAnchorEnd = 3, + styleTextAnchorMiddle = 2, + styleTextAnchorNotSet = 0, + styleTextAnchorStart = 1, + } + + const enum _styleTextDecoration { + styleTextDecoration_Max = 2147483647, + styleTextDecorationBlink = 4, + styleTextDecorationLineThrough = 3, + styleTextDecorationNone = 0, + styleTextDecorationOverline = 2, + styleTextDecorationUnderline = 1, + } + + const enum _styleTextEffect { + styleTextEffect_Max = 2147483647, + styleTextEffectEmboss = 1, + styleTextEffectEngrave = 2, + styleTextEffectNone = 0, + styleTextEffectOutline = 3, + } + + const enum _styleTextJustify { + styleTextJustify_Max = 2147483647, + styleTextJustifyAuto = 8, + styleTextJustifyDistribute = 3, + styleTextJustifyDistributeAllLines = 4, + styleTextJustifyInterCluster = 6, + styleTextJustifyInterIdeograph = 5, + styleTextJustifyInterWord = 1, + styleTextJustifyKashida = 7, + styleTextJustifyNewspaper = 2, + styleTextJustifyNotSet = 0, + } + + const enum _styleTextJustifyTrim { + styleTextJustifyTrim_Max = 2147483647, + styleTextJustifyTrimNone = 1, + styleTextJustifyTrimNotSet = 0, + styleTextJustifyTrimPunctAndKana = 3, + styleTextJustifyTrimPunctuation = 2, + } + + const enum _styleTextLineThroughStyle { + styleTextLineThroughStyle_Max = 2147483647, + styleTextLineThroughStyleDouble = 2, + styleTextLineThroughStyleSingle = 1, + styleTextLineThroughStyleUndefined = 0, + } + + const enum _styleTextOverflow { + styleTextOverflow_Max = 2147483647, + styleTextOverflowClip = 0, + styleTextOverflowEllipsis = 1, + styleTextOverflowNotSet = 2, + } + + const enum _styleTextSizeAdjust { + styleTextSizeAdjust_Max = 2147483647, + styleTextSizeAdjustAuto = 1, + styleTextSizeAdjustNone = 0, + } + + const enum _styleTextTransform { + styleTextTransform_Max = 2147483647, + styleTextTransformCapitalize = 1, + styleTextTransformLowercase = 2, + styleTextTransformNone = 4, + styleTextTransformNotSet = 0, + styleTextTransformUppercase = 3, + } + + const enum _styleTextUnderlinePosition { + styleTextUnderlinePosition_Max = 2147483647, + styleTextUnderlinePositionAbove = 1, + styleTextUnderlinePositionAuto = 2, + styleTextUnderlinePositionBelow = 0, + styleTextUnderlinePositionNotSet = 3, + } + + const enum _styleTextUnderlineStyle { + styleTextUnderlineStyle_Max = 2147483647, + styleTextUnderlineStyleDash = 6, + styleTextUnderlineStyleDotDash = 7, + styleTextUnderlineStyleDotDotDash = 8, + styleTextUnderlineStyleDotted = 4, + styleTextUnderlineStyleDouble = 2, + styleTextUnderlineStyleDoubleAccounting = 11, + styleTextUnderlineStyleSingle = 1, + styleTextUnderlineStyleSingleAccounting = 10, + styleTextUnderlineStyleThick = 5, + styleTextUnderlineStyleThickDash = 12, + styleTextUnderlineStyleUndefined = 0, + styleTextUnderlineStyleWave = 9, + styleTextUnderlineStyleWords = 3, + } + + const enum _styleTransformOriginX { + styleTransformOriginX_Max = 2147483647, + styleTransformOriginXCenter = 2, + styleTransformOriginXLeft = 1, + styleTransformOriginXNotSet = 0, + styleTransformOriginXRight = 3, + } + + const enum _styleTransformOriginY { + styleTransformOriginY_Max = 2147483647, + styleTransformOriginYBottom = 3, + styleTransformOriginYCenter = 2, + styleTransformOriginYNotSet = 0, + styleTransformOriginYTop = 1, + } + + const enum _styleTransformStyle { + styleTransformStyle_Max = 2147483647, + styleTransformStyleFlat = 0, + styleTransformStyleNotSet = 2, + styleTransformStylePreserve3D = 1, + } + + const enum _styleUserZoom { + styleUserZoom_Max = 2147483647, + styleUserZoomFixed = 2, + styleUserZoomNotSet = 0, + styleUserZoomZoom = 1, + } + + const enum _styleVerticalAlign { + styleVerticalAlign_Max = 2147483647, + styleVerticalAlignAuto = 0, + styleVerticalAlignBaseline = 1, + styleVerticalAlignBottom = 7, + styleVerticalAlignInherit = 9, + styleVerticalAlignMiddle = 6, + styleVerticalAlignNotSet = 10, + styleVerticalAlignSub = 2, + styleVerticalAlignSuper = 3, + styleVerticalAlignTextBottom = 8, + styleVerticalAlignTextTop = 5, + styleVerticalAlignTop = 4, + } + + const enum _styleViewportSize { + styleViewportSize_Max = 2147483647, + styleViewportSizeAuto = 0, + styleViewportSizeDeviceHeight = 2, + styleViewportSizeDeviceWidth = 1, + } + + const enum _styleVisibility { + styleVisibility_Max = 2147483647, + styleVisibilityCollapse = 4, + styleVisibilityHidden = 3, + styleVisibilityInherit = 1, + styleVisibilityNotSet = 0, + styleVisibilityVisible = 2, + } + + const enum _styleWebkitAppearance { + styleWebkitAppearance_Max = 2147483647, + styleWebkitAppearanceButton = 2, + styleWebkitAppearanceButtonBevel = 3, + styleWebkitAppearanceCapsLockIndicator = 1, + styleWebkitAppearanceCaret = 4, + styleWebkitAppearanceCheckbox = 5, + styleWebkitAppearanceDefaultButton = 6, + styleWebkitAppearanceListbox = 7, + styleWebkitAppearanceListitem = 8, + styleWebkitAppearanceMediaFullscreenButton = 9, + styleWebkitAppearanceMediaMuteButton = 10, + styleWebkitAppearanceMediaPlayButton = 11, + styleWebkitAppearanceMediaSeekBackButton = 12, + styleWebkitAppearanceMediaSeekForwardButton = 13, + styleWebkitAppearanceMediaSlider = 14, + styleWebkitAppearanceMediaSliderthumb = 15, + styleWebkitAppearanceMenulist = 16, + styleWebkitAppearanceMenulistButton = 17, + styleWebkitAppearanceMenulistText = 18, + styleWebkitAppearanceMenulistTextfield = 19, + styleWebkitAppearanceNone = 0, + styleWebkitAppearanceNotSet = 34, + styleWebkitAppearancePushButton = 20, + styleWebkitAppearanceRadio = 21, + styleWebkitAppearanceSearchfield = 22, + styleWebkitAppearanceSearchfieldCancelButton = 23, + styleWebkitAppearanceSearchfieldDecoration = 24, + styleWebkitAppearanceSearchfieldResultsButton = 25, + styleWebkitAppearanceSearchfieldResultsDecoration = 26, + styleWebkitAppearanceSliderHorizontal = 27, + styleWebkitAppearanceSliderthumbHorizontal = 29, + styleWebkitAppearanceSliderthumbVertical = 30, + styleWebkitAppearanceSliderVertical = 28, + styleWebkitAppearanceSquareButton = 31, + styleWebkitAppearanceTextarea = 32, + styleWebkitAppearanceTextfield = 33, + } + + const enum _styleWebkitBoxDirection { + styleWebkitBoxDirection_Max = 2147483647, + styleWebkitBoxDirectionNormal = 0, + styleWebkitBoxDirectionNotSet = 2, + styleWebkitBoxDirectionReverse = 1, + } + + const enum _styleWebkitBoxOrient { + styleWebkitBoxOrient_Max = 2147483647, + styleWebkitBoxOrientBlockAxis = 3, + styleWebkitBoxOrientHorizontal = 0, + styleWebkitBoxOrientInlineAxis = 1, + styleWebkitBoxOrientNotSet = 4, + styleWebkitBoxOrientVertical = 2, + } + + const enum _styleWebkitBoxPack { + styleWebkitBoxPack_Max = 2147483647, + styleWebkitBoxPackCenter = 2, + styleWebkitBoxPackEnd = 1, + styleWebkitBoxPackJustify = 3, + styleWebkitBoxPackNotSet = 5, + styleWebkitBoxPackStart = 0, + } + + const enum _styleWhiteSpace { + styleWhiteSpace_Max = 2147483647, + styleWhiteSpaceNormal = 1, + styleWhiteSpaceNotSet = 0, + styleWhiteSpaceNowrap = 3, + styleWhiteSpacePre = 2, + styleWhiteSpacePreline = 4, + styleWhiteSpacePrewrap = 5, + } + + const enum _styleWidowsOrphans { + styleWidowsOrphans_Max = 2147483647, + styleWidowsOrphansNotSet = -2147483647, + } + + const enum _styleWordBreak { + styleWordBreak_Max = 2147483647, + styleWordBreakBreakAll = 2, + styleWordBreakKeepAll = 3, + styleWordBreakNormal = 1, + styleWordBreakNotSet = 0, + } + + const enum _styleWordWrap { + styleWordWrap_Max = 2147483647, + styleWordWrapNotSet = 0, + styleWordWrapOff = 1, + styleWordWrapOn = 2, + } + + const enum _styleWrapFlow { + styleWrapFlow_Max = 2147483647, + styleWrapFlowAuto = 1, + styleWrapFlowBoth = 2, + styleWrapFlowClear = 5, + styleWrapFlowEnd = 4, + styleWrapFlowMaximum = 7, + styleWrapFlowMinimum = 6, + styleWrapFlowNotSet = 0, + styleWrapFlowStart = 3, + } + + const enum _styleWrapThrough { + styleWrapThrough_Max = 2147483647, + styleWrapThroughNone = 2, + styleWrapThroughNotSet = 0, + styleWrapThroughWrap = 1, + } + + const enum _styleWritingMode { + styleWritingMode_Max = 2147483647, + styleWritingModeBtlr = 6, + styleWritingModeBtrl = 3, + styleWritingModeLr = 9, + styleWritingModeLrbt = 7, + styleWritingModeLrtb = 0, + styleWritingModeNotSet = 4, + styleWritingModeRl = 10, + styleWritingModeRlbt = 8, + styleWritingModeRltb = 2, + styleWritingModeTb = 11, + styleWritingModeTblr = 5, + styleWritingModeTbrl = 1, + } + + const enum _styleZIndex { + styleZIndex_Max = 2147483647, + styleZIndexAuto = -2147483647, + } + + const enum _svgAngleType { + SVG_ANGLETYPE_DEG = 2, + SVG_ANGLETYPE_GRAD = 4, + SVG_ANGLETYPE_RAD = 3, + SVG_ANGLETYPE_UNKNOWN = 0, + SVG_ANGLETYPE_UNSPECIFIED = 1, + svgAngleType_Max = 2147483647, + } + + const enum _svgChannel { + SVG_CHANNEL_A = 4, + SVG_CHANNEL_B = 3, + SVG_CHANNEL_G = 2, + SVG_CHANNEL_R = 1, + SVG_CHANNEL_UNKNOWN = 0, + svgChannel_Max = 2147483647, + } + + const enum _svgEdgemode { + SVG_EDGEMODE_DUPLICATE = 1, + SVG_EDGEMODE_NONE = 3, + SVG_EDGEMODE_UNKNOWN = 0, + SVG_EDGEMODE_WRAP = 2, + svgEdgemode_Max = 2147483647, + } + + const enum _svgExternalResourcesRequired { + svgExternalResourcesRequired_Max = 2147483647, + svgExternalResourcesRequiredFalse = 0, + svgExternalResourcesRequiredTrue = 1, + } + + const enum _svgFeblendMode { + SVG_FEBLEND_MODE_DARKEN = 4, + SVG_FEBLEND_MODE_LIGHTEN = 5, + SVG_FEBLEND_MODE_MULTIPLY = 2, + SVG_FEBLEND_MODE_NORMAL = 1, + SVG_FEBLEND_MODE_SCREEN = 3, + SVG_FEBLEND_MODE_UNKNOWN = 0, + svgFeblendMode_Max = 2147483647, + } + + const enum _svgFecolormatrixType { + SVG_FECOLORMATRIX_TYPE_HUEROTATE = 3, + SVG_FECOLORMATRIX_TYPE_LUMINANCETOALPHA = 4, + SVG_FECOLORMATRIX_TYPE_MATRIX = 1, + SVG_FECOLORMATRIX_TYPE_SATURATE = 2, + SVG_FECOLORMATRIX_TYPE_UNKNOWN = 0, + svgFecolormatrixType_Max = 2147483647, + } + + const enum _svgFecomponenttransferType { + SVG_FECOMPONENTTRANSFER_TYPE_DISCRETE = 3, + SVG_FECOMPONENTTRANSFER_TYPE_GAMMA = 5, + SVG_FECOMPONENTTRANSFER_TYPE_IDENTITY = 1, + SVG_FECOMPONENTTRANSFER_TYPE_LINEAR = 4, + SVG_FECOMPONENTTRANSFER_TYPE_TABLE = 2, + SVG_FECOMPONENTTRANSFER_TYPE_UNKNOWN = 0, + svgFecomponenttransferType_Max = 2147483647, + } + + const enum _svgFecompositeOperator { + SVG_FECOMPOSITE_OPERATOR_ARITHMETIC = 6, + SVG_FECOMPOSITE_OPERATOR_ATOP = 4, + SVG_FECOMPOSITE_OPERATOR_IN = 2, + SVG_FECOMPOSITE_OPERATOR_OUT = 3, + SVG_FECOMPOSITE_OPERATOR_OVER = 1, + SVG_FECOMPOSITE_OPERATOR_UNKNOWN = 0, + SVG_FECOMPOSITE_OPERATOR_XOR = 5, + svgFecompositeOperator_Max = 2147483647, + } + + const enum _svgFocusable { + svgFocusable_Max = 2147483647, + svgFocusableAuto = 1, + svgFocusableFalse = 3, + svgFocusableNotSet = 0, + svgFocusableTrue = 2, + } + + const enum _svgLengthType { + SVG_LENGTHTYPE_CM = 6, + SVG_LENGTHTYPE_EMS = 3, + SVG_LENGTHTYPE_EXS = 4, + SVG_LENGTHTYPE_IN = 8, + SVG_LENGTHTYPE_MM = 7, + SVG_LENGTHTYPE_NUMBER = 1, + SVG_LENGTHTYPE_PC = 10, + SVG_LENGTHTYPE_PERCENTAGE = 2, + SVG_LENGTHTYPE_PT = 9, + SVG_LENGTHTYPE_PX = 5, + SVG_LENGTHTYPE_UNKNOWN = 0, + svgLengthType_Max = 2147483647, + } + + const enum _svgMarkerOrient { + SVG_MARKER_ORIENT_ANGLE = 2, + SVG_MARKER_ORIENT_AUTO = 1, + SVG_MARKER_ORIENT_UNKNOWN = 0, + svgMarkerOrient_Max = 2147483647, + } + + const enum _svgMarkerOrientAttribute { + svgMarkerOrientAttribute_Max = 2147483647, + svgMarkerOrientAttributeAuto = 0, + } + + const enum _svgMarkerUnits { + SVG_MARKERUNITS_STROKEWIDTH = 2, + SVG_MARKERUNITS_UNKNOWN = 0, + SVG_MARKERUNITS_USERSPACEONUSE = 1, + svgMarkerUnits_Max = 2147483647, + } + + const enum _svgMorphologyOperator { + SVG_MORPHOLOGY_OPERATOR_DILATE = 2, + SVG_MORPHOLOGY_OPERATOR_ERODE = 1, + SVG_MORPHOLOGY_OPERATOR_UNKNOWN = 0, + svgMorphologyOperator_Max = 2147483647, + } + + const enum _svgPathSegType { + PATHSEG_ARC_ABS = 10, + PATHSEG_ARC_REL = 11, + PATHSEG_CLOSEPATH = 1, + PATHSEG_CURVETO_CUBIC_ABS = 6, + PATHSEG_CURVETO_CUBIC_REL = 7, + PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16, + PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17, + PATHSEG_CURVETO_QUADRATIC_ABS = 8, + PATHSEG_CURVETO_QUADRATIC_REL = 9, + PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18, + PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19, + PATHSEG_LINETO_ABS = 4, + PATHSEG_LINETO_HORIZONTAL_ABS = 12, + PATHSEG_LINETO_HORIZONTAL_REL = 13, + PATHSEG_LINETO_REL = 5, + PATHSEG_LINETO_VERTICAL_ABS = 14, + PATHSEG_LINETO_VERTICAL_REL = 15, + PATHSEG_MOVETO_ABS = 2, + PATHSEG_MOVETO_REL = 3, + PATHSEG_UNKNOWN = 0, + svgPathSegType_Max = 2147483647, + } + + const enum _svgPreserveAlpha { + SVG_PRESERVEALPHA_FALSE = 0, + SVG_PRESERVEALPHA_TRUE = 1, + svgPreserveAlpha_Max = 2147483647, + } + + const enum _svgPreserveAspectMeetOrSliceType { + SVG_MEETORSLICE_MEET = 1, + SVG_MEETORSLICE_SLICE = 2, + SVG_MEETORSLICE_UNKNOWN = 0, + svgPreserveAspectMeetOrSliceType_Max = 2147483647, + } + + const enum _svgPreserveAspectRatioAlignType { + SVG_PRESERVEASPECTRATIO_NONE = 1, + SVG_PRESERVEASPECTRATIO_UNKNOWN = 0, + SVG_PRESERVEASPECTRATIO_XMAXYMAX = 10, + SVG_PRESERVEASPECTRATIO_XMAXYMID = 7, + SVG_PRESERVEASPECTRATIO_XMAXYMIN = 4, + SVG_PRESERVEASPECTRATIO_XMIDYMAX = 9, + SVG_PRESERVEASPECTRATIO_XMIDYMID = 6, + SVG_PRESERVEASPECTRATIO_XMIDYMIN = 3, + SVG_PRESERVEASPECTRATIO_XMINYMAX = 8, + SVG_PRESERVEASPECTRATIO_XMINYMID = 5, + SVG_PRESERVEASPECTRATIO_XMINYMIN = 2, + svgPreserveAspectRatioAlignType_Max = 2147483647, + } + + const enum _svgSpreadMethod { + SVG_SPREADMETHOD_PAD = 1, + SVG_SPREADMETHOD_REFLECT = 2, + SVG_SPREADMETHOD_REPEAT = 3, + SVG_SPREADMETHOD_UNKNOWN = 0, + svgSpreadMethod_Max = 2147483647, + } + + const enum _svgStitchtype { + SVG_STITCHTYPE_NOSTITCH = 2, + SVG_STITCHTYPE_STITCH = 1, + SVG_STITCHTYPE_UNKNOWN = 0, + svgStitchtype_Max = 2147483647, + } + + const enum _svgTransformType { + SVG_TRANSFORM_MATRIX = 1, + SVG_TRANSFORM_ROTATE = 4, + SVG_TRANSFORM_SCALE = 3, + SVG_TRANSFORM_SKEWX = 5, + SVG_TRANSFORM_SKEWY = 6, + SVG_TRANSFORM_TRANSLATE = 2, + SVG_TRANSFORM_UNKNOWN = 0, + svgTransformType_Max = 2147483647, + } + + const enum _svgTurbulenceType { + SVG_TURBULENCE_TYPE_FACTALNOISE = 1, + SVG_TURBULENCE_TYPE_TURBULENCE = 2, + SVG_TURBULENCE_TYPE_UNKNOWN = 0, + svgTurbulenceType_Max = 2147483647, + } + + const enum _svgUnitTypes { + SVG_UNITTYPE_OBJECTBOUNDINGBOX = 2, + SVG_UNITTYPE_UNKNOWN = 0, + SVG_UNITTYPE_USERSPACEONUSE = 1, + svgUnitTypes_Max = 2147483647, + } + + const enum _textDecoration { + textDecoration_Max = 2147483647, + textDecorationBlink = 4, + textDecorationLineThrough = 3, + textDecorationNone = 0, + textDecorationOverline = 2, + textDecorationUnderline = 1, + } + + const enum _textpathMethodtype { + TEXTPATH_METHODTYPE_ALIGN = 1, + TEXTPATH_METHODTYPE_STRETCH = 2, + TEXTPATH_METHODTYPE_UNKNOWN = 0, + textpathMethodtype_Max = 2147483647, + } + + const enum _textpathSpacingtype { + TEXTPATH_SPACINGTYPE_AUTO = 1, + TEXTPATH_SPACINGTYPE_EXACT = 2, + TEXTPATH_SPACINGTYPE_UNKNOWN = 0, + textpathSpacingtype_Max = 2147483647, + } + + const enum _VIEW_OBJECT_ALPHA_MODE { + VIEW_OBJECT_ALPHA_MODE_IGNORE = 0, + VIEW_OBJECT_ALPHA_MODE_Max = 2147483647, + VIEW_OBJECT_ALPHA_MODE_PREMULTIPLIED = 1, + } + + const enum _VIEW_OBJECT_COMPOSITION_MODE { + VIEW_OBJECT_COMPOSITION_MODE_LEGACY = 0, + VIEW_OBJECT_COMPOSITION_MODE_Max = 2147483647, + VIEW_OBJECT_COMPOSITION_MODE_SURFACEPRESENTER = 1, + } + + const enum DXGI_FORMAT { + DXGI_FORMAT_420_OPAQUE = 106, + DXGI_FORMAT_A8_UNORM = 65, + DXGI_FORMAT_A8P8 = 114, + DXGI_FORMAT_AI44 = 111, + DXGI_FORMAT_AYUV = 100, + DXGI_FORMAT_B4G4R4A4_UNORM = 115, + DXGI_FORMAT_B5G5R5A1_UNORM = 86, + DXGI_FORMAT_B5G6R5_UNORM = 85, + DXGI_FORMAT_B8G8R8A8_TYPELESS = 90, + DXGI_FORMAT_B8G8R8A8_UNORM = 87, + DXGI_FORMAT_B8G8R8A8_UNORM_SRGB = 91, + DXGI_FORMAT_B8G8R8X8_TYPELESS = 92, + DXGI_FORMAT_B8G8R8X8_UNORM = 88, + DXGI_FORMAT_B8G8R8X8_UNORM_SRGB = 93, + DXGI_FORMAT_BC1_TYPELESS = 70, + DXGI_FORMAT_BC1_UNORM = 71, + DXGI_FORMAT_BC1_UNORM_SRGB = 72, + DXGI_FORMAT_BC2_TYPELESS = 73, + DXGI_FORMAT_BC2_UNORM = 74, + DXGI_FORMAT_BC2_UNORM_SRGB = 75, + DXGI_FORMAT_BC3_TYPELESS = 76, + DXGI_FORMAT_BC3_UNORM = 77, + DXGI_FORMAT_BC3_UNORM_SRGB = 78, + DXGI_FORMAT_BC4_SNORM = 81, + DXGI_FORMAT_BC4_TYPELESS = 79, + DXGI_FORMAT_BC4_UNORM = 80, + DXGI_FORMAT_BC5_SNORM = 84, + DXGI_FORMAT_BC5_TYPELESS = 82, + DXGI_FORMAT_BC5_UNORM = 83, + DXGI_FORMAT_BC6H_SF16 = 96, + DXGI_FORMAT_BC6H_TYPELESS = 94, + DXGI_FORMAT_BC6H_UF16 = 95, + DXGI_FORMAT_BC7_TYPELESS = 97, + DXGI_FORMAT_BC7_UNORM = 98, + DXGI_FORMAT_BC7_UNORM_SRGB = 99, + DXGI_FORMAT_D16_UNORM = 55, + DXGI_FORMAT_D24_UNORM_S8_UINT = 45, + DXGI_FORMAT_D32_FLOAT = 40, + DXGI_FORMAT_D32_FLOAT_S8X24_UINT = 20, + DXGI_FORMAT_FORCE_UINT = -1, + DXGI_FORMAT_G8R8_G8B8_UNORM = 69, + DXGI_FORMAT_IA44 = 112, + DXGI_FORMAT_NV11 = 110, + DXGI_FORMAT_NV12 = 103, + DXGI_FORMAT_P010 = 104, + DXGI_FORMAT_P016 = 105, + DXGI_FORMAT_P208 = 130, + DXGI_FORMAT_P8 = 113, + DXGI_FORMAT_R1_UNORM = 66, + DXGI_FORMAT_R10G10B10_XR_BIAS_A2_UNORM = 89, + DXGI_FORMAT_R10G10B10A2_TYPELESS = 23, + DXGI_FORMAT_R10G10B10A2_UINT = 25, + DXGI_FORMAT_R10G10B10A2_UNORM = 24, + DXGI_FORMAT_R11G11B10_FLOAT = 26, + DXGI_FORMAT_R16_FLOAT = 54, + DXGI_FORMAT_R16_SINT = 59, + DXGI_FORMAT_R16_SNORM = 58, + DXGI_FORMAT_R16_TYPELESS = 53, + DXGI_FORMAT_R16_UINT = 57, + DXGI_FORMAT_R16_UNORM = 56, + DXGI_FORMAT_R16G16_FLOAT = 34, + DXGI_FORMAT_R16G16_SINT = 38, + DXGI_FORMAT_R16G16_SNORM = 37, + DXGI_FORMAT_R16G16_TYPELESS = 33, + DXGI_FORMAT_R16G16_UINT = 36, + DXGI_FORMAT_R16G16_UNORM = 35, + DXGI_FORMAT_R16G16B16A16_FLOAT = 10, + DXGI_FORMAT_R16G16B16A16_SINT = 14, + DXGI_FORMAT_R16G16B16A16_SNORM = 13, + DXGI_FORMAT_R16G16B16A16_TYPELESS = 9, + DXGI_FORMAT_R16G16B16A16_UINT = 12, + DXGI_FORMAT_R16G16B16A16_UNORM = 11, + DXGI_FORMAT_R24_UNORM_X8_TYPELESS = 46, + DXGI_FORMAT_R24G8_TYPELESS = 44, + DXGI_FORMAT_R32_FLOAT = 41, + DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS = 21, + DXGI_FORMAT_R32_SINT = 43, + DXGI_FORMAT_R32_TYPELESS = 39, + DXGI_FORMAT_R32_UINT = 42, + DXGI_FORMAT_R32G32_FLOAT = 16, + DXGI_FORMAT_R32G32_SINT = 18, + DXGI_FORMAT_R32G32_TYPELESS = 15, + DXGI_FORMAT_R32G32_UINT = 17, + DXGI_FORMAT_R32G32B32_FLOAT = 6, + DXGI_FORMAT_R32G32B32_SINT = 8, + DXGI_FORMAT_R32G32B32_TYPELESS = 5, + DXGI_FORMAT_R32G32B32_UINT = 7, + DXGI_FORMAT_R32G32B32A32_FLOAT = 2, + DXGI_FORMAT_R32G32B32A32_SINT = 4, + DXGI_FORMAT_R32G32B32A32_TYPELESS = 1, + DXGI_FORMAT_R32G32B32A32_UINT = 3, + DXGI_FORMAT_R32G8X24_TYPELESS = 19, + DXGI_FORMAT_R8_SINT = 64, + DXGI_FORMAT_R8_SNORM = 63, + DXGI_FORMAT_R8_TYPELESS = 60, + DXGI_FORMAT_R8_UINT = 62, + DXGI_FORMAT_R8_UNORM = 61, + DXGI_FORMAT_R8G8_B8G8_UNORM = 68, + DXGI_FORMAT_R8G8_SINT = 52, + DXGI_FORMAT_R8G8_SNORM = 51, + DXGI_FORMAT_R8G8_TYPELESS = 48, + DXGI_FORMAT_R8G8_UINT = 50, + DXGI_FORMAT_R8G8_UNORM = 49, + DXGI_FORMAT_R8G8B8A8_SINT = 32, + DXGI_FORMAT_R8G8B8A8_SNORM = 31, + DXGI_FORMAT_R8G8B8A8_TYPELESS = 27, + DXGI_FORMAT_R8G8B8A8_UINT = 30, + DXGI_FORMAT_R8G8B8A8_UNORM = 28, + DXGI_FORMAT_R8G8B8A8_UNORM_SRGB = 29, + DXGI_FORMAT_R9G9B9E5_SHAREDEXP = 67, + DXGI_FORMAT_UNKNOWN = 0, + DXGI_FORMAT_V208 = 131, + DXGI_FORMAT_V408 = 132, + DXGI_FORMAT_X24_TYPELESS_G8_UINT = 47, + DXGI_FORMAT_X32_TYPELESS_G8X24_UINT = 22, + DXGI_FORMAT_Y210 = 108, + DXGI_FORMAT_Y216 = 109, + DXGI_FORMAT_Y410 = 101, + DXGI_FORMAT_Y416 = 102, + DXGI_FORMAT_YUY2 = 107, + } + + class applicationCache { + private 'MSHTML.applicationCache_typekey': applicationCache; + private constructor(); + abort(): void; + oncached: any; + onchecking: any; + ondownloading: any; + onerror: any; + onnoupdate: any; + onobsolete: any; + onprogress: any; + onupdateready: any; + readonly status: number; + swapCache(): void; + update(): void; + } + + class BlockFormats { + private 'MSHTML.BlockFormats_typekey': BlockFormats; + private constructor(); + readonly Count: number; + item(pvarIndex: any): string; + } + + class CanvasGradient { + private 'MSHTML.CanvasGradient_typekey': CanvasGradient; + private constructor(); + addColorStop(offset: number, color: string): void; + } + + class CanvasImageData { + private 'MSHTML.CanvasImageData_typekey': CanvasImageData; + private constructor(); + readonly data: any; + readonly height: number; + readonly width: number; + } + + class CanvasPattern { + private 'MSHTML.CanvasPattern_typekey': CanvasPattern; + private constructor(); + } + + class CanvasRenderingContext2D { + private 'MSHTML.CanvasRenderingContext2D_typekey': CanvasRenderingContext2D; + private constructor(); + arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise: number): void; + arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; + beginPath(): void; + bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; + readonly canvas: IHTMLCanvasElement; + clearRect(x: number, y: number, w: number, h: number): void; + clip(): void; + closePath(): void; + createImageData(a1: any, a2: any): ICanvasImageData; + createLinearGradient(x0: number, y0: number, x1: number, y1: number): ICanvasGradient; + createPattern(Image: any, repetition: any): ICanvasPattern; + createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): ICanvasGradient; + drawImage(pSrc: any, a1: any, a2: any, a3: any, a4: any, a5: any, a6: any, a7: any, a8: any): void; + fill(): void; + fillRect(x: number, y: number, w: number, h: number): void; + fillStyle: any; + fillText(text: string, x: number, y: number, maxWidth: any): void; + font: string; + getImageData(sx: number, sy: number, sw: number, sh: number): ICanvasImageData; + globalAlpha: number; + globalCompositeOperation: string; + isPointInPath(x: number, y: number): boolean; + lineCap: string; + lineJoin: string; + lineTo(x: number, y: number): void; + lineWidth: number; + measureText(text: string): ICanvasTextMetrics; + miterLimit: number; + moveTo(x: number, y: number): void; + putImageData(imagedata: ICanvasImageData, dx: number, dy: number, dirtyX: any, dirtyY: any, dirtyWidth: any, dirtyHeight: any): void; + quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; + rect(x: number, y: number, w: number, h: number): void; + restore(): void; + rotate(angle: number): void; + save(): void; + scale(x: number, y: number): void; + setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void; + shadowBlur: number; + shadowColor: string; + shadowOffsetX: number; + shadowOffsetY: number; + stroke(): void; + strokeRect(x: number, y: number, w: number, h: number): void; + strokeStyle: any; + strokeText(text: string, x: number, y: number, maxWidth: any): void; + textAlign: string; + textBaseline: string; + transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void; + translate(x: number, y: number): void; + } + + class CanvasTextMetrics { + private 'MSHTML.CanvasTextMetrics_typekey': CanvasTextMetrics; + private constructor(); + readonly width: number; + } + + class CClientCaps { + private 'MSHTML.CClientCaps_typekey': CClientCaps; + private constructor(); + + /** @param string [bStrVer=''] */ + addComponentRequest(bstrName: string, bstrURL: string, bStrVer?: string): void; + readonly availHeight: number; + readonly availWidth: number; + readonly bufferDepth: number; + clearComponentRequest(): void; + readonly colorDepth: number; + compareVersions(bstrVer1: string, bstrVer2: string): number; + readonly connectionSpeed: number; + readonly connectionType: string; + readonly cookieEnabled: boolean; + readonly cpuClass: string; + doComponentRequest(): boolean; + getComponentVersion(bstrName: string, bstrURL: string): string; + readonly height: number; + + /** @param string [bStrVer=''] */ + isComponentInstalled(bstrName: string, bstrURL: string, bStrVer?: string): boolean; + readonly javaEnabled: boolean; + readonly onLine: boolean; + readonly platform: string; + readonly systemLanguage: string; + readonly userLanguage: string; + readonly width: number; + } + + class CEventObj { + private 'MSHTML.CEventObj_typekey': CEventObj; + private constructor(); + readonly actionURL: string; + altKey: boolean; + altLeft: boolean; + readonly behaviorCookie: number; + readonly behaviorPart: number; + bookmarks: IHTMLBookmarkCollection; + boundElements: IHTMLElementCollection; + button: number; + readonly buttonID: number; + cancelBubble: boolean; + clientX: number; + clientY: number; + readonly 'constructor': any; + readonly contentOverflow: boolean; + ctrlKey: boolean; + ctrlLeft: boolean; + data: string; + dataFld: string; + readonly dataTransfer: IHTMLDataTransfer; + fromElement: IHTMLElement; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + keyCode: number; + readonly nextPage: string; + offsetX: number; + offsetY: number; + origin: string; + propertyName: string; + qualifier: string; + reason: number; + recordset: any; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + repeat: boolean; + returnValue: any; + screenX: number; + screenY: number; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + shiftKey: boolean; + shiftLeft: boolean; + readonly source: any; + srcElement: IHTMLElement; + srcFilter: any; + srcUrn: string; + toElement: IHTMLElement; + type: string; + url: string; + readonly wheelDelta: number; + x: number; + y: number; + } + + class CMimeTypes { + private 'MSHTML.CMimeTypes_typekey': CMimeTypes; + private constructor(); + readonly length: number; + } + + class COpsProfile { + private 'MSHTML.COpsProfile_typekey': COpsProfile; + private constructor(); + addReadRequest(name: string, reserved?: any): boolean; + addRequest(name: string, reserved?: any): boolean; + clearRequest(): void; + commitChanges(): boolean; + doReadRequest(usage: any, fname?: any, domain?: any, path?: any, expire?: any, reserved?: any): void; + doRequest(usage: any, fname?: any, domain?: any, path?: any, expire?: any, reserved?: any): void; + doWriteRequest(): boolean; + getAttribute(name: string): string; + setAttribute(name: string, value: string, prefs?: any): boolean; + } + + class CPlugins { + private 'MSHTML.CPlugins_typekey': CPlugins; + private constructor(); + readonly 'constructor': any; + readonly length: number; + + /** @param boolean [reload=false] */ + refresh(reload?: boolean): void; + } + + class CPrintManagerTemplatePrinter { + private 'MSHTML.CPrintManagerTemplatePrinter_typekey': CPrintManagerTemplatePrinter; + private constructor(); + allLinkedDocuments: boolean; + collate: boolean; + copies: number; + currentPage: boolean; + currentPageAvail: boolean; + deviceSupports(bstrProperty: string): any; + drawPreviewPage(pElemDisp: any, nPage: number): void; + readonly duplex: boolean; + endPrint(): void; + ensurePrintDialogDefaults(): boolean; + footer: string; + frameActive: boolean; + frameActiveEnabled: boolean; + frameAsShown: boolean; + framesetDocument: boolean; + getPageMarginBottom(pageRule: any, pageWidth: number, pageHeight: number): any; + getPageMarginBottomImportant(pageRule: any): boolean; + getPageMarginLeft(pageRule: any, pageWidth: number, pageHeight: number): any; + getPageMarginLeftImportant(pageRule: any): boolean; + getPageMarginRight(pageRule: any, pageWidth: number, pageHeight: number): any; + getPageMarginRightImportant(pageRule: any): boolean; + getPageMarginTop(pageRule: any, pageWidth: number, pageHeight: number): any; + getPageMarginTopImportant(pageRule: any): boolean; + getPrintTaskOptionValue(bstrKey: string): any; + header: string; + headerFooterFont: string; + invalidatePreview(): void; + marginBottom: number; + marginLeft: number; + marginRight: number; + marginTop: number; + orientation: string; + pageFrom: number; + readonly pageHeight: number; + pageTo: number; + readonly pageWidth: number; + readonly percentScale: number; + printBlankPage(): void; + printNonNative(pMarkup: any): boolean; + printNonNativeFrames(pMarkup: any, fActiveFrame: boolean): void; + printPage(pElemDisp: any): void; + selectedPages: boolean; + selection: boolean; + selectionEnabled: boolean; + setPageCount(nPage: number): void; + readonly showHeaderFooter: boolean; + showPageSetupDialog(): boolean; + showPrintDialog(): boolean; + readonly shrinkToFit: boolean; + startDoc(bstrTitle: string): boolean; + startPrint(): void; + stopDoc(): void; + tableOfLinks: boolean; + readonly unprintableBottom: number; + readonly unprintableLeft: number; + readonly unprintableRight: number; + readonly unprintableTop: number; + updatePageStatus(p: number): void; + usePrinterCopyCollate: boolean; + } + + class CTemplatePrinter { + private 'MSHTML.CTemplatePrinter_typekey': CTemplatePrinter; + private constructor(); + allLinkedDocuments: boolean; + collate: boolean; + copies: number; + currentPage: boolean; + currentPageAvail: boolean; + deviceSupports(bstrProperty: string): any; + readonly duplex: boolean; + ensurePrintDialogDefaults(): boolean; + footer: string; + frameActive: boolean; + frameActiveEnabled: boolean; + frameAsShown: boolean; + framesetDocument: boolean; + getPageMarginBottom(pageRule: any, pageWidth: number, pageHeight: number): any; + getPageMarginBottomImportant(pageRule: any): boolean; + getPageMarginLeft(pageRule: any, pageWidth: number, pageHeight: number): any; + getPageMarginLeftImportant(pageRule: any): boolean; + getPageMarginRight(pageRule: any, pageWidth: number, pageHeight: number): any; + getPageMarginRightImportant(pageRule: any): boolean; + getPageMarginTop(pageRule: any, pageWidth: number, pageHeight: number): any; + getPageMarginTopImportant(pageRule: any): boolean; + header: string; + headerFooterFont: string; + marginBottom: number; + marginLeft: number; + marginRight: number; + marginTop: number; + orientation: string; + pageFrom: number; + readonly pageHeight: number; + pageTo: number; + readonly pageWidth: number; + printBlankPage(): void; + printNonNative(pMarkup: any): boolean; + printNonNativeFrames(pMarkup: any, fActiveFrame: boolean): void; + printPage(pElemDisp: any): void; + selectedPages: boolean; + selection: boolean; + selectionEnabled: boolean; + showPageSetupDialog(): boolean; + showPrintDialog(): boolean; + startDoc(bstrTitle: string): boolean; + stopDoc(): void; + tableOfLinks: boolean; + readonly unprintableBottom: number; + readonly unprintableLeft: number; + readonly unprintableRight: number; + readonly unprintableTop: number; + updatePageStatus(p: number): void; + usePrinterCopyCollate: boolean; + } + + class DOMBeforeUnloadEvent { + private 'MSHTML.DOMBeforeUnloadEvent_typekey': DOMBeforeUnloadEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + readonly isTrusted: boolean; + preventDefault(): void; + returnValue: any; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + } + + class DOMChildrenCollection { + private 'MSHTML.DOMChildrenCollection_typekey': DOMChildrenCollection; + private constructor(); + readonly 'constructor': any; + ie9_item(index: number): any; + item(index: number): any; + readonly length: number; + } + + class DOMCloseEvent { + private 'MSHTML.DOMCloseEvent_typekey': DOMCloseEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly eventPhase: number; + initCloseEvent(eventType: string, canBubble: boolean, cancelable: boolean, wasClean: boolean, code: number, reason: string): void; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + readonly isTrusted: boolean; + preventDefault(): void; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + readonly wasClean: boolean; + } + + class DOMCompositionEvent { + private 'MSHTML.DOMCompositionEvent_typekey': DOMCompositionEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly data: string; + readonly defaultPrevented: boolean; + readonly detail: number; + readonly eventPhase: number; + initCompositionEvent(eventType: string, canBubble: boolean, cancelable: boolean, viewArg: IHTMLWindow2, data: string, locale: string): void; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initUIEvent(eventType: string, canBubble: boolean, cancelable: boolean, view: IHTMLWindow2, detail: number): void; + readonly isTrusted: boolean; + readonly locale: string; + preventDefault(): void; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + readonly view: IHTMLWindow2; + } + + class DOMCustomEvent { + private 'MSHTML.DOMCustomEvent_typekey': DOMCustomEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly detail: any; + readonly eventPhase: number; + initCustomEvent(eventType: string, canBubble: boolean, cancelable: boolean, detail: any): void; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + readonly isTrusted: boolean; + preventDefault(): void; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + } + + class DOMDocumentType { + private 'MSHTML.DOMDocumentType_typekey': DOMDocumentType; + private constructor(); + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + readonly attributes: any; + readonly childNodes: any; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + readonly entities: any; + readonly firstChild: IHTMLDOMNode; + hasChildNodes(): boolean; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly internalSubset: any; + isDefaultNamespace(pvarNamespace: any): boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + readonly name: string; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + readonly notations: any; + readonly ownerDocument: any; + readonly parentNode: IHTMLDOMNode; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + readonly publicId: any; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + readonly systemId: any; + textContent: any; + } + + class DOMDragEvent { + private 'MSHTML.DOMDragEvent_typekey': DOMDragEvent; + private constructor(); + readonly altKey: boolean; + readonly bubbles: boolean; + readonly button: number; + readonly buttons: number; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly clientX: number; + readonly clientY: number; + readonly ctrlKey: boolean; + readonly currentTarget: IEventTarget; + readonly dataTransfer: IHTMLDataTransfer; + readonly defaultPrevented: boolean; + readonly detail: number; + readonly eventPhase: number; + readonly fromElement: IHTMLElement; + getModifierState(keyArg: string): boolean; + initDragEvent( + eventType: string, canBubble: boolean, cancelable: boolean, viewArg: IHTMLWindow2, detailArg: number, screenXArg: number, screenYArg: number, + clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, + relatedTargetArg: IEventTarget, dataTransferArg: IHTMLDataTransfer): void; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initMouseEvent( + eventType: string, canBubble: boolean, cancelable: boolean, viewArg: IHTMLWindow2, detailArg: number, screenXArg: number, screenYArg: number, + clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: IEventTarget): void; + initUIEvent(eventType: string, canBubble: boolean, cancelable: boolean, view: IHTMLWindow2, detail: number): void; + readonly isTrusted: boolean; + readonly layerX: number; + readonly layerY: number; + readonly metaKey: boolean; + readonly offsetX: number; + readonly offsetY: number; + readonly pageX: number; + readonly pageY: number; + preventDefault(): void; + readonly relatedTarget: IEventTarget; + readonly screenX: number; + readonly screenY: number; + readonly shiftKey: boolean; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly toElement: IHTMLElement; + readonly type: string; + readonly view: IHTMLWindow2; + readonly which: number; + readonly x: number; + readonly y: number; + } + + class DOMEvent { + private 'MSHTML.DOMEvent_typekey': DOMEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + readonly isTrusted: boolean; + preventDefault(): void; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + } + + class DOMException { + private 'MSHTML.DOMException_typekey': DOMException; + private constructor(); + code: number; + readonly message: string; + } + + class DOMFocusEvent { + private 'MSHTML.DOMFocusEvent_typekey': DOMFocusEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly detail: number; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initFocusEvent(eventType: string, canBubble: boolean, cancelable: boolean, view: IHTMLWindow2, detail: number, relatedTargetArg: IEventTarget): void; + initUIEvent(eventType: string, canBubble: boolean, cancelable: boolean, view: IHTMLWindow2, detail: number): void; + readonly isTrusted: boolean; + preventDefault(): void; + readonly relatedTarget: IEventTarget; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + readonly view: IHTMLWindow2; + } + + class DOMKeyboardEvent { + private 'MSHTML.DOMKeyboardEvent_typekey': DOMKeyboardEvent; + private constructor(); + readonly altKey: boolean; + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly charCode: number; + readonly ctrlKey: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly detail: number; + readonly eventPhase: number; + getModifierState(keyArg: string): boolean; + readonly ie9_char: any; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initKeyboardEvent( + eventType: string, canBubble: boolean, cancelable: boolean, viewArg: IHTMLWindow2, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void; + initUIEvent(eventType: string, canBubble: boolean, cancelable: boolean, view: IHTMLWindow2, detail: number): void; + readonly isTrusted: boolean; + readonly key: string; + readonly keyCode: number; + readonly locale: string; + readonly location: number; + readonly metaKey: boolean; + preventDefault(): void; + readonly repeat: boolean; + readonly shiftKey: boolean; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + readonly view: IHTMLWindow2; + readonly which: number; + } + + class DOMMessageEvent { + private 'MSHTML.DOMMessageEvent_typekey': DOMMessageEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly data: string; + readonly defaultPrevented: boolean; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initMessageEvent(eventType: string, canBubble: boolean, cancelable: boolean, data: string, origin: string, lastEventId: string, source: IHTMLWindow2): void; + readonly isTrusted: boolean; + readonly origin: string; + preventDefault(): void; + readonly source: IHTMLWindow2; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + } + + class DOMMouseEvent { + private 'MSHTML.DOMMouseEvent_typekey': DOMMouseEvent; + private constructor(); + readonly altKey: boolean; + readonly bubbles: boolean; + readonly button: number; + readonly buttons: number; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly clientX: number; + readonly clientY: number; + readonly ctrlKey: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly detail: number; + readonly eventPhase: number; + readonly fromElement: IHTMLElement; + getModifierState(keyArg: string): boolean; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initMouseEvent( + eventType: string, canBubble: boolean, cancelable: boolean, viewArg: IHTMLWindow2, detailArg: number, screenXArg: number, screenYArg: number, + clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: IEventTarget): void; + initUIEvent(eventType: string, canBubble: boolean, cancelable: boolean, view: IHTMLWindow2, detail: number): void; + readonly isTrusted: boolean; + readonly layerX: number; + readonly layerY: number; + readonly metaKey: boolean; + readonly offsetX: number; + readonly offsetY: number; + readonly pageX: number; + readonly pageY: number; + preventDefault(): void; + readonly relatedTarget: IEventTarget; + readonly screenX: number; + readonly screenY: number; + readonly shiftKey: boolean; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly toElement: IHTMLElement; + readonly type: string; + readonly view: IHTMLWindow2; + readonly which: number; + readonly x: number; + readonly y: number; + } + + class DOMMouseWheelEvent { + private 'MSHTML.DOMMouseWheelEvent_typekey': DOMMouseWheelEvent; + private constructor(); + readonly altKey: boolean; + readonly bubbles: boolean; + readonly button: number; + readonly buttons: number; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly clientX: number; + readonly clientY: number; + readonly ctrlKey: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly detail: number; + readonly eventPhase: number; + readonly fromElement: IHTMLElement; + getModifierState(keyArg: string): boolean; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initMouseEvent( + eventType: string, canBubble: boolean, cancelable: boolean, viewArg: IHTMLWindow2, detailArg: number, screenXArg: number, screenYArg: number, + clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: IEventTarget): void; + initMouseWheelEvent( + eventType: string, canBubble: boolean, cancelable: boolean, viewArg: IHTMLWindow2, detailArg: number, screenXArg: number, screenYArg: number, + clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: IEventTarget, modifiersListArg: string, wheelDeltaArg: number): void; + initUIEvent(eventType: string, canBubble: boolean, cancelable: boolean, view: IHTMLWindow2, detail: number): void; + readonly isTrusted: boolean; + readonly layerX: number; + readonly layerY: number; + readonly metaKey: boolean; + readonly offsetX: number; + readonly offsetY: number; + readonly pageX: number; + readonly pageY: number; + preventDefault(): void; + readonly relatedTarget: IEventTarget; + readonly screenX: number; + readonly screenY: number; + readonly shiftKey: boolean; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly toElement: IHTMLElement; + readonly type: string; + readonly view: IHTMLWindow2; + readonly wheelDelta: number; + readonly which: number; + readonly x: number; + readonly y: number; + } + + class DOMMSAnimationEvent { + private 'MSHTML.DOMMSAnimationEvent_typekey': DOMMSAnimationEvent; + private constructor(); + readonly animationName: string; + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly elapsedTime: number; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initMSAnimationEvent(eventType: string, canBubble: boolean, cancelable: boolean, animationName: string, elapsedTime: number): void; + readonly isTrusted: boolean; + preventDefault(): void; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + } + + class DOMMSManipulationEvent { + private 'MSHTML.DOMMSManipulationEvent_typekey': DOMMSManipulationEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentState: number; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly detail: number; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initMSManipulationEvent(eventType: string, canBubble: boolean, cancelable: boolean, viewArg: IHTMLWindow2, detailArg: number, lastState: number, currentState: number): void; + initUIEvent(eventType: string, canBubble: boolean, cancelable: boolean, view: IHTMLWindow2, detail: number): void; + readonly isTrusted: boolean; + readonly lastState: number; + preventDefault(): void; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + readonly view: IHTMLWindow2; + } + + class DOMMSTransitionEvent { + private 'MSHTML.DOMMSTransitionEvent_typekey': DOMMSTransitionEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly elapsedTime: number; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initMSTransitionEvent(eventType: string, canBubble: boolean, cancelable: boolean, propertyName: string, elapsedTime: number): void; + readonly isTrusted: boolean; + preventDefault(): void; + readonly propertyName: string; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + } + + class DOMMutationEvent { + private 'MSHTML.DOMMutationEvent_typekey': DOMMutationEvent; + private constructor(); + readonly attrChange: number; + readonly attrName: string; + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initMutationEvent( + eventType: string, canBubble: boolean, cancelable: boolean, relatedNodeArg: any, prevValueArg: string, newValueArg: string, attrNameArg: string, attrChangeArg: number): void; + readonly isTrusted: boolean; + readonly newValue: string; + preventDefault(): void; + readonly prevValue: string; + readonly relatedNode: any; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + } + + class DOMParser { + private 'MSHTML.DOMParser_typekey': DOMParser; + private constructor(); + parseFromString(xmlSource: string, mimeType: string): IHTMLDocument2; + } + + class DOMParserFactory { + private 'MSHTML.DOMParserFactory_typekey': DOMParserFactory; + private constructor(); + create(): IDOMParser; + } + + class DOMProcessingInstruction { + private 'MSHTML.DOMProcessingInstruction_typekey': DOMProcessingInstruction; + private constructor(); + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + readonly attributes: any; + readonly childNodes: any; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + data: string; + readonly firstChild: IHTMLDOMNode; + hasChildNodes(): boolean; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + isDefaultNamespace(pvarNamespace: any): boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + readonly ownerDocument: any; + readonly parentNode: IHTMLDOMNode; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + readonly target: string; + textContent: any; + } + + class DOMProgressEvent { + private 'MSHTML.DOMProgressEvent_typekey': DOMProgressEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initProgressEvent(eventType: string, canBubble: boolean, cancelable: boolean, lengthComputableArg: boolean, loadedArg: number, totalArg: number): void; + readonly isTrusted: boolean; + readonly lengthComputable: boolean; + readonly loaded: number; + preventDefault(): void; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly total: number; + readonly type: string; + } + + class DOMSiteModeEvent { + private 'MSHTML.DOMSiteModeEvent_typekey': DOMSiteModeEvent; + private constructor(); + readonly actionURL: string; + readonly bubbles: boolean; + readonly buttonID: number; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + readonly isTrusted: boolean; + preventDefault(): void; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + } + + class DOMStorageEvent { + private 'MSHTML.DOMStorageEvent_typekey': DOMStorageEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initStorageEvent( + eventType: string, canBubble: boolean, cancelable: boolean, keyArg: string, oldValueArg: string, newValueArg: string, urlArg: string, storageAreaArg: IHTMLStorage): void; + readonly isTrusted: boolean; + readonly key: string; + readonly newValue: string; + readonly oldValue: string; + preventDefault(): void; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly storageArea: IHTMLStorage; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + readonly url: string; + } + + class DOMTextEvent { + private 'MSHTML.DOMTextEvent_typekey': DOMTextEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly data: string; + readonly defaultPrevented: boolean; + readonly detail: number; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initTextEvent(eventType: string, canBubble: boolean, cancelable: boolean, viewArg: IHTMLWindow2, dataArg: string, inputMethod: number, locale: string): void; + initUIEvent(eventType: string, canBubble: boolean, cancelable: boolean, view: IHTMLWindow2, detail: number): void; + readonly inputMethod: number; + readonly isTrusted: boolean; + readonly locale: string; + preventDefault(): void; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + readonly view: IHTMLWindow2; + } + + class DOMUIEvent { + private 'MSHTML.DOMUIEvent_typekey': DOMUIEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly detail: number; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initUIEvent(eventType: string, canBubble: boolean, cancelable: boolean, view: IHTMLWindow2, detail: number): void; + readonly isTrusted: boolean; + preventDefault(): void; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + readonly view: IHTMLWindow2; + } + + class DOMWheelEvent { + private 'MSHTML.DOMWheelEvent_typekey': DOMWheelEvent; + private constructor(); + readonly altKey: boolean; + readonly bubbles: boolean; + readonly button: number; + readonly buttons: number; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly clientX: number; + readonly clientY: number; + readonly ctrlKey: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly deltaMode: number; + readonly deltaX: number; + readonly deltaY: number; + readonly deltaZ: number; + readonly detail: number; + readonly eventPhase: number; + readonly fromElement: IHTMLElement; + getModifierState(keyArg: string): boolean; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initMouseEvent( + eventType: string, canBubble: boolean, cancelable: boolean, viewArg: IHTMLWindow2, detailArg: number, screenXArg: number, screenYArg: number, + clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: IEventTarget): void; + initUIEvent(eventType: string, canBubble: boolean, cancelable: boolean, view: IHTMLWindow2, detail: number): void; + initWheelEvent( + eventType: string, canBubble: boolean, cancelable: boolean, viewArg: IHTMLWindow2, detailArg: number, screenXArg: number, screenYArg: number, + clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: IEventTarget, modifiersListArg: string, deltaX: number, deltaY: number, + deltaZ: number, deltaMode: number): void; + readonly isTrusted: boolean; + readonly layerX: number; + readonly layerY: number; + readonly metaKey: boolean; + readonly offsetX: number; + readonly offsetY: number; + readonly pageX: number; + readonly pageY: number; + preventDefault(): void; + readonly relatedTarget: IEventTarget; + readonly screenX: number; + readonly screenY: number; + readonly shiftKey: boolean; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly toElement: IHTMLElement; + readonly type: string; + readonly view: IHTMLWindow2; + readonly which: number; + readonly x: number; + readonly y: number; + } + + class EventException { + private 'MSHTML.EventException_typekey': EventException; + private constructor(); + } + + class FontNames { + private 'MSHTML.FontNames_typekey': FontNames; + private constructor(); + readonly Count: number; + item(pvarIndex: any): string; + } + + class FramesCollection { + private 'MSHTML.FramesCollection_typekey': FramesCollection; + private constructor(); + item(pvarIndex: any): any; + readonly length: number; + } + + class HTCAttachBehavior { + private 'MSHTML.HTCAttachBehavior_typekey': HTCAttachBehavior; + private constructor(); + detachEvent(): void; + FireEvent(evt: any): void; + } + + class HTCDefaultDispatch { + private 'MSHTML.HTCDefaultDispatch_typekey': HTCDefaultDispatch; + private constructor(); + CreateEventObject(): IHTMLEventObj; + readonly defaults: any; + readonly document: any; + readonly element: IHTMLElement; + } + + class HTCDescBehavior { + private 'MSHTML.HTCDescBehavior_typekey': HTCDescBehavior; + private constructor(); + readonly name: string; + readonly urn: string; + } + + class HTCEventBehavior { + private 'MSHTML.HTCEventBehavior_typekey': HTCEventBehavior; + private constructor(); + fire(pVar: IHTMLEventObj): void; + } + + class HTCMethodBehavior { + private 'MSHTML.HTCMethodBehavior_typekey': HTCMethodBehavior; + private constructor(); + } + + class HTCPropertyBehavior { + private 'MSHTML.HTCPropertyBehavior_typekey': HTCPropertyBehavior; + private constructor(); + fireChange(): void; + value: any; + } + + class HTMLAnchorElement { + private 'MSHTML.HTMLAnchorElement_typekey': HTMLAnchorElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + charset: string; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + coords: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hash: string; + hideFocus: boolean; + host: string; + hostname: string; + href: string; + hreflang: string; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_coords: string; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_href: string; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_shape: string; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + Methods: string; + readonly mimeType: string; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly nameProp: string; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + pathname: string; + port: string; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + protocol: string; + readonly protocolLong: string; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + rel: string; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + rev: string; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + search: string; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + shape: string; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + target: string; + textContent: any; + title: string; + toString(): string; + type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + urn: string; + xmsAcceleratorKey: string; + } + + class HTMLAppBehavior { + private 'MSHTML.HTMLAppBehavior_typekey': HTMLAppBehavior; + private constructor(); + applicationName: string; + border: string; + borderStyle: string; + caption: string; + readonly commandLine: string; + contextMenu: string; + icon: string; + innerBorder: string; + maximizeButton: string; + minimizeButton: string; + scroll: string; + scrollFlat: string; + selection: string; + showInTaskBar: string; + singleInstance: string; + sysMenu: string; + version: string; + windowState: string; + } + + class HTMLAreaElement { + private 'MSHTML.HTMLAreaElement_typekey': HTMLAreaElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + alt: string; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + coords: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hash: string; + hideFocus: boolean; + host: string; + hostname: string; + href: string; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_coords: string; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_href: string; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_shape: string; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + noHref: boolean; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + pathname: string; + port: string; + readonly previousSibling: IHTMLDOMNode; + protocol: string; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + search: string; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + shape: string; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + target: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLAreasCollection { + private 'MSHTML.HTMLAreasCollection_typekey': HTMLAreasCollection; + private constructor(); + add(element: IHTMLElement, before?: any): void; + readonly 'constructor': any; + ie8_item(index: number): IHTMLElement2; + readonly ie8_length: number; + ie8_namedItem(name: string): IHTMLElement2; + item(name?: any, index?: any): any; + length: number; + namedItem(name: string): any; + + /** @param number [index=-1] */ + remove(index?: number): void; + tags(tagName: any): any; + urns(urn: any): any; + } + + class HTMLAttributeCollection { + private 'MSHTML.HTMLAttributeCollection_typekey': HTMLAttributeCollection; + private constructor(); + readonly 'constructor': any; + getNamedItem(bstrName: string): IHTMLDOMAttribute; + getNamedItemNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + ie8_getNamedItem(bstrName: string): IHTMLDOMAttribute; + ie8_item(index: number): IHTMLDOMAttribute; + readonly ie8_length: number; + ie8_removeNamedItem(bstrName: string): IHTMLDOMAttribute; + ie8_setNamedItem(pNodeIn: IHTMLDOMAttribute): IHTMLDOMAttribute; + ie9_getNamedItem(bstrName: string): IHTMLDOMAttribute2; + ie9_item(index: number): IHTMLDOMAttribute2; + readonly ie9_length: number; + ie9_removeNamedItem(bstrName: string): IHTMLDOMAttribute2; + ie9_setNamedItem(pNodeIn: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + item(name?: any): any; + readonly length: number; + removeNamedItem(bstrName: string): IHTMLDOMAttribute; + removeNamedItemNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + setNamedItem(ppNode: IHTMLDOMAttribute): IHTMLDOMAttribute; + setNamedItemNS(pNodeIn: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + } + + class HTMLAudioElement { + private 'MSHTML.HTMLAudioElement_typekey': HTMLAudioElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + autobuffer: boolean; + autoplay: boolean; + readonly behaviorUrns: any; + blur(): void; + readonly buffered: IHTMLTimeRanges; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + canPlayType(type: string): string; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + controls: boolean; + createControlRange(): any; + readonly currentSrc: string; + readonly currentStyle: IHTMLCurrentStyle; + currentTime: number; + currentTimeDouble: number; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + defaultPlaybackRate: number; + defaultPlaybackRateDouble: number; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly duration: number; + readonly durationDouble: number; + readonly ended: boolean; + readonly error: IHTMLMediaError; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + readonly initialTime: number; + readonly initialTimeDouble: number; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + load(): void; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + loop: boolean; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msPlayToDisabled: boolean; + msPlayToPrimary: boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + muted: boolean; + readonly namespaceURI: any; + readonly networkState: number; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + pause(): void; + readonly paused: boolean; + play(): void; + playbackRate: number; + playbackRateDouble: number; + readonly played: IHTMLTimeRanges; + prefix: any; + preload: string; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + readonly seekable: IHTMLTimeRanges; + readonly seeking: boolean; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + src: string; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + volume: number; + volumeDouble: number; + xmsAcceleratorKey: string; + } + + class HTMLAudioElementFactory { + private 'MSHTML.HTMLAudioElementFactory_typekey': HTMLAudioElementFactory; + private constructor(); + create(src?: any): IHTMLAudioElement; + } + + class HTMLBaseElement { + private 'MSHTML.HTMLBaseElement_typekey': HTMLBaseElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + href: string; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_href: string; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + target: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLBaseFontElement { + private 'MSHTML.HTMLBaseFontElement_typekey': HTMLBaseFontElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + color: any; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + face: string; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + size: number; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLBGsound { + private 'MSHTML.HTMLBGsound_typekey': HTMLBGsound; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + balance: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + loop: any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + src: string; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + volume: any; + xmsAcceleratorKey: string; + } + + class HTMLBlockElement { + private 'MSHTML.HTMLBlockElement_typekey': HTMLBlockElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + cite: string; + className: string; + clear: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_cite: string; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + width: string; + xmsAcceleratorKey: string; + } + + class HTMLBody { + private 'MSHTML.HTMLBody_typekey': HTMLBody; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + aLink: any; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + background: string; + readonly behaviorUrns: any; + bgColor: any; + bgProperties: string; + blur(): void; + bottomMargin: any; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + createTextRange(): IHTMLTxtRange; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_background: string; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + leftMargin: any; + link: any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + noWrap: boolean; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterprint: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeprint: any; + onbeforeunload: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhashchange: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmessage: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onoffline: any; + ononline: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onpopstate: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onstorage: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onunload: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + rightMargin: any; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + scroll: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + text: any; + title: string; + topMargin: any; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + vLink: any; + xmsAcceleratorKey: string; + } + + class HTMLBRElement { + private 'MSHTML.HTMLBRElement_typekey': HTMLBRElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clear: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLButtonElement { + private 'MSHTML.HTMLButtonElement_typekey': HTMLButtonElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + createTextRange(): IHTMLTxtRange; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + ie9_type: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + status: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + value: string; + xmsAcceleratorKey: string; + } + + class HTMLCanvasElement { + private 'MSHTML.HTMLCanvasElement_typekey': HTMLCanvasElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getContext(contextId: string): ICanvasRenderingContext2D; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + height: number; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toDataURL(type: string, jpegquality: any): string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + width: number; + xmsAcceleratorKey: string; + } + + class HTMLCommentElement { + private 'MSHTML.HTMLCommentElement_typekey': HTMLCommentElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + appendData(bstrstring: string): void; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + atomic: number; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + data: string; + deleteData(offset: number, Count: number): void; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_deleteData(offset: number, Count: number): void; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertData(offset: number, bstrstring: string): void; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_replaceData(offset: number, Count: number, bstrstring: string): void; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_substringData(offset: number, Count: number): string; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + insertData(offset: number, bstrstring: string): void; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly length: number; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceData(offset: number, Count: number, bstrstring: string): void; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + substringData(offset: number, Count: number): string; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + text: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLCSSImportRule { + private 'MSHTML.HTMLCSSImportRule_typekey': HTMLCSSImportRule; + private constructor(); + cssText: string; + readonly href: string; + media: any; + readonly parentRule: IHTMLCSSRule; + readonly parentStyleSheet: IHTMLStyleSheet; + readonly styleSheet: IHTMLStyleSheet; + readonly type: number; + } + + class HTMLCSSMediaList { + private 'MSHTML.HTMLCSSMediaList_typekey': HTMLCSSMediaList; + private constructor(); + appendMedium(bstrMedium: string): void; + deleteMedium(bstrMedium: string): void; + item(index: number): string; + readonly length: number; + mediaText: string; + } + + class HTMLCSSMediaRule { + private 'MSHTML.HTMLCSSMediaRule_typekey': HTMLCSSMediaRule; + private constructor(); + readonly cssRules: IHTMLStyleSheetRulesCollection; + cssText: string; + + /** @param number [lIndex=-1] */ + deleteRule(lIndex?: number): void; + + /** @param number [lIndex=-1] */ + insertRule(bstrRule: string, lIndex?: number): number; + media: any; + readonly parentRule: IHTMLCSSRule; + readonly parentStyleSheet: IHTMLStyleSheet; + readonly type: number; + } + + class HTMLCSSNamespaceRule { + private 'MSHTML.HTMLCSSNamespaceRule_typekey': HTMLCSSNamespaceRule; + private constructor(); + cssText: string; + readonly namespaceURI: string; + readonly parentRule: IHTMLCSSRule; + readonly parentStyleSheet: IHTMLStyleSheet; + readonly prefix: string; + readonly type: number; + } + + class HTMLCSSRule { + private 'MSHTML.HTMLCSSRule_typekey': HTMLCSSRule; + private constructor(); + cssText: string; + readonly parentRule: IHTMLCSSRule; + readonly parentStyleSheet: IHTMLStyleSheet; + readonly type: number; + } + + class HTMLCSSStyleDeclaration { + private 'MSHTML.HTMLCSSStyleDeclaration_typekey': HTMLCSSStyleDeclaration; + private constructor(); + accelerator: string; + alignContent: string; + alignItems: string; + alignmentBaseline: string; + alignSelf: string; + animation: string; + animationDelay: string; + animationDirection: string; + animationDuration: string; + animationFillMode: string; + animationIterationCount: string; + animationName: string; + animationPlayState: string; + animationTimingFunction: string; + backfaceVisibility: string; + background: string; + backgroundAttachment: string; + backgroundClip: string; + backgroundColor: any; + backgroundImage: string; + backgroundOrigin: string; + backgroundPosition: string; + backgroundPositionX: any; + backgroundPositionY: any; + backgroundRepeat: string; + backgroundSize: string; + baselineShift: any; + behavior: string; + border: string; + borderBottom: string; + borderBottomColor: any; + borderBottomLeftRadius: string; + borderBottomRightRadius: string; + borderBottomStyle: string; + borderBottomWidth: any; + borderCollapse: string; + borderColor: string; + borderImage: string; + borderImageOutset: string; + borderImageRepeat: string; + borderImageSlice: string; + borderImageSource: string; + borderImageWidth: string; + borderLeft: string; + borderLeftColor: any; + borderLeftStyle: string; + borderLeftWidth: any; + borderRadius: string; + borderRight: string; + borderRightColor: any; + borderRightStyle: string; + borderRightWidth: any; + borderSpacing: string; + borderStyle: string; + borderTop: string; + borderTopColor: any; + borderTopLeftRadius: string; + borderTopRightRadius: string; + borderTopStyle: string; + borderTopWidth: any; + borderWidth: string; + bottom: any; + boxShadow: string; + boxSizing: string; + breakAfter: string; + breakBefore: string; + breakInside: string; + captionSide: string; + clear: string; + clip: string; + readonly clipBottom: any; + clipLeft: any; + clipPath: string; + clipRight: any; + clipRule: string; + clipTop: any; + color: any; + colorInterpolationFilters: string; + columnCount: any; + columnFill: string; + columnGap: any; + columnRule: string; + columnRuleColor: any; + columnRuleStyle: string; + columnRuleWidth: any; + columns: string; + columnSpan: string; + columnWidth: any; + content: string; + counterIncrement: string; + counterReset: string; + cssFloat: string; + cssText: string; + cursor: string; + direction: string; + display: string; + dominantBaseline: string; + emptyCells: string; + enableBackground: string; + fill: string; + fillOpacity: any; + fillRule: string; + filter: string; + flex: string; + flexBasis: any; + flexDirection: string; + flexFlow: string; + flexGrow: any; + flexShrink: any; + flexWrap: string; + floodColor: any; + floodOpacity: any; + font: string; + fontFamily: string; + fontFeatureSettings: string; + fontSize: any; + fontSizeAdjust: any; + fontStretch: string; + fontStyle: string; + fontVariant: string; + fontWeight: string; + getPropertyPriority(bstrPropertyName: string): string; + getPropertyValue(bstrPropertyName: string): string; + glyphOrientationHorizontal: any; + glyphOrientationVertical: any; + height: any; + imeMode: string; + item(index: number): string; + justifyContent: string; + kerning: any; + layoutFlow: string; + layoutGrid: string; + layoutGridChar: any; + layoutGridLine: any; + layoutGridMode: string; + layoutGridType: string; + left: any; + readonly length: number; + letterSpacing: any; + lightingColor: any; + lineBreak: string; + lineHeight: any; + listStyle: string; + listStyleImage: string; + listStylePosition: string; + listStyleType: string; + margin: string; + marginBottom: any; + marginLeft: any; + marginRight: any; + marginTop: any; + marker: string; + markerEnd: string; + markerMid: string; + markerStart: string; + mask: string; + maxHeight: any; + maxWidth: any; + minHeight: any; + minWidth: any; + msAnimation: string; + msAnimationDelay: string; + msAnimationDirection: string; + msAnimationDuration: string; + msAnimationFillMode: string; + msAnimationIterationCount: string; + msAnimationName: string; + msAnimationPlayState: string; + msAnimationTimingFunction: string; + msBackfaceVisibility: string; + msBlockProgression: string; + msContentZoomChaining: string; + msContentZooming: string; + msContentZoomLimit: string; + msContentZoomLimitMax: any; + msContentZoomLimitMin: any; + msContentZoomSnap: string; + msContentZoomSnapPoints: string; + msContentZoomSnapType: string; + msFlex: string; + msFlexAlign: string; + msFlexDirection: string; + msFlexFlow: string; + msFlexItemAlign: string; + msFlexLinePack: string; + msFlexNegative: any; + msFlexOrder: any; + msFlexPack: string; + msFlexPositive: any; + msFlexPreferredSize: any; + msFlexWrap: string; + msFlowFrom: string; + msFlowInto: string; + msFontFeatureSettings: string; + msGetPropertyEnabled(name: string): boolean; + msGridColumn: any; + msGridColumnAlign: string; + msGridColumns: string; + msGridColumnSpan: any; + msGridRow: any; + msGridRowAlign: string; + msGridRows: string; + msGridRowSpan: any; + msHighContrastAdjust: string; + msHyphenateLimitChars: string; + msHyphenateLimitLines: any; + msHyphenateLimitZone: any; + msHyphens: string; + msImeAlign: string; + msInterpolationMode: string; + msOverflowStyle: string; + msPerspective: any; + msPerspectiveOrigin: string; + msPutPropertyEnabled(name: string, b: boolean): void; + msScrollChaining: string; + msScrollLimit: string; + msScrollLimitXMax: any; + msScrollLimitXMin: any; + msScrollLimitYMax: any; + msScrollLimitYMin: any; + msScrollRails: string; + msScrollSnapPointsX: string; + msScrollSnapPointsY: string; + msScrollSnapType: string; + msScrollSnapX: string; + msScrollSnapY: string; + msScrollTranslation: string; + msTextCombineHorizontal: string; + msTextSizeAdjust: any; + msTouchAction: string; + msTouchSelect: string; + msTransform: string; + msTransformOrigin: string; + msTransformStyle: string; + msTransition: string; + msTransitionDelay: string; + msTransitionDuration: string; + msTransitionProperty: string; + msTransitionTimingFunction: string; + msUserSelect: string; + msWrapFlow: string; + msWrapMargin: any; + msWrapThrough: string; + opacity: any; + orphans: any; + outline: string; + outlineColor: any; + outlineStyle: string; + outlineWidth: any; + overflow: string; + overflowX: string; + overflowY: string; + padding: string; + paddingBottom: any; + paddingLeft: any; + paddingRight: any; + paddingTop: any; + pageBreakAfter: string; + pageBreakBefore: string; + pageBreakInside: string; + readonly parentRule: any; + perspective: any; + perspectiveOrigin: string; + pointerEvents: string; + position: string; + quotes: string; + removeProperty(bstrPropertyName: string): string; + right: any; + rubyAlign: string; + rubyOverhang: string; + rubyPosition: string; + scrollbar3dLightColor: any; + scrollbarArrowColor: any; + scrollbarBaseColor: any; + scrollbarDarkShadowColor: any; + scrollbarFaceColor: any; + scrollbarHighlightColor: any; + scrollbarShadowColor: any; + scrollbarTrackColor: any; + + /** @param any [pvarPropertyPriority=''] */ + setProperty(bstrPropertyName: string, pvarPropertyValue: any, pvarPropertyPriority?: any): void; + stopColor: any; + stopOpacity: any; + stroke: string; + strokeDasharray: string; + strokeDashoffset: any; + strokeLinecap: string; + strokeLinejoin: string; + strokeMiterlimit: any; + strokeOpacity: any; + strokeWidth: any; + styleFloat: string; + tableLayout: string; + textAlign: string; + textAlignLast: string; + textAnchor: string; + textAutospace: string; + textDecoration: string; + textIndent: any; + textJustify: string; + textJustifyTrim: string; + textKashida: any; + textKashidaSpace: any; + textOverflow: string; + textShadow: string; + textTransform: string; + textUnderlinePosition: string; + top: any; + touchAction: string; + transform: string; + transformOrigin: string; + transformStyle: string; + transition: string; + transitionDelay: string; + transitionDuration: string; + transitionProperty: string; + transitionTimingFunction: string; + unicodeBidi: string; + verticalAlign: any; + visibility: string; + webkitAnimation: string; + webkitAnimationDelay: string; + webkitAnimationDirection: string; + webkitAnimationDuration: string; + webkitAnimationFillMode: string; + webkitAnimationIterationCount: string; + webkitAnimationName: string; + webkitAnimationPlayState: string; + webkitAnimationTimingFunction: string; + webkitAppearance: string; + webkitBackfaceVisibility: string; + webkitBackground: string; + webkitBackgroundAttachment: string; + webkitBackgroundClip: string; + webkitBackgroundColor: any; + webkitBackgroundImage: string; + webkitBackgroundOrigin: string; + webkitBackgroundPosition: string; + webkitBackgroundPositionX: any; + webkitBackgroundPositionY: any; + webkitBackgroundRepeat: string; + webkitBackgroundSize: string; + webkitBorderImage: string; + webkitBorderImageOutset: string; + webkitBorderImageRepeat: string; + webkitBorderImageSlice: string; + webkitBorderImageSource: string; + webkitBorderImageWidth: string; + webkitBoxAlign: string; + webkitBoxDirection: string; + webkitBoxFlex: any; + webkitBoxOrdinalGroup: any; + webkitBoxOrient: string; + webkitBoxPack: string; + webkitBoxSizing: string; + webkitTextSizeAdjust: any; + webkitTransform: string; + webkitTransformOrigin: string; + webkitTransition: string; + webkitTransitionDelay: string; + webkitTransitionDuration: string; + webkitTransitionProperty: string; + webkitTransitionTimingFunction: string; + webkitUserSelect: string; + whiteSpace: string; + widows: any; + width: any; + wordBreak: string; + wordSpacing: any; + wordWrap: string; + writingMode: string; + zIndex: any; + zoom: any; + } + + class HTMLCurrentStyle { + private 'MSHTML.HTMLCurrentStyle_typekey': HTMLCurrentStyle; + private constructor(); + readonly accelerator: string; + alignContent: string; + alignItems: string; + alignSelf: string; + animation: string; + animationDelay: string; + animationDirection: string; + animationDuration: string; + animationFillMode: string; + animationIterationCount: string; + animationName: string; + animationPlayState: string; + animationTimingFunction: string; + backfaceVisibility: string; + readonly backgroundAttachment: string; + readonly backgroundColor: any; + readonly backgroundImage: string; + readonly backgroundPositionX: any; + readonly backgroundPositionY: any; + readonly backgroundRepeat: string; + readonly behavior: string; + readonly blockDirection: string; + readonly borderBottomColor: any; + readonly borderBottomStyle: string; + readonly borderBottomWidth: any; + readonly borderCollapse: string; + readonly borderColor: string; + borderImage: string; + borderImageOutset: string; + borderImageRepeat: string; + borderImageSlice: string; + borderImageSource: string; + borderImageWidth: string; + readonly borderLeftColor: any; + readonly borderLeftStyle: string; + readonly borderLeftWidth: any; + readonly borderRightColor: any; + readonly borderRightStyle: string; + readonly borderRightWidth: any; + readonly borderSpacing: string; + readonly borderStyle: string; + readonly borderTopColor: any; + readonly borderTopStyle: string; + readonly borderTopWidth: any; + readonly borderWidth: string; + readonly bottom: any; + readonly boxSizing: string; + breakAfter: string; + breakBefore: string; + breakInside: string; + readonly captionSide: string; + readonly clear: string; + readonly clipBottom: any; + readonly clipLeft: any; + readonly clipRight: any; + readonly clipTop: any; + readonly color: any; + colorInterpolationFilters: string; + columnCount: any; + columnFill: string; + columnGap: any; + columnRule: string; + columnRuleColor: any; + columnRuleStyle: string; + columnRuleWidth: any; + columns: string; + columnSpan: string; + columnWidth: any; + readonly 'constructor': any; + readonly cursor: string; + readonly direction: string; + readonly display: string; + readonly emptyCells: string; + enableBackground: string; + readonly filter: string; + flex: string; + flexBasis: any; + flexDirection: string; + flexFlow: string; + flexGrow: any; + flexShrink: any; + flexWrap: string; + floodColor: any; + floodOpacity: any; + readonly fontFamily: string; + fontFeatureSettings: string; + readonly fontSize: any; + readonly fontStyle: string; + readonly fontVariant: string; + readonly fontWeight: any; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getPropertyPriority(bstrPropertyName: string): string; + getPropertyValue(bstrPropertyName: string): string; + readonly hasLayout: boolean; + readonly height: any; + readonly imeMode: string; + item(index: number): string; + justifyContent: string; + readonly layoutFlow: string; + readonly layoutGridChar: any; + readonly layoutGridLine: any; + readonly layoutGridMode: string; + readonly layoutGridType: string; + readonly left: any; + readonly length: number; + readonly letterSpacing: any; + lightingColor: any; + readonly lineBreak: string; + readonly lineHeight: any; + readonly listStyleImage: string; + readonly listStylePosition: string; + readonly listStyleType: string; + readonly margin: string; + readonly marginBottom: any; + readonly marginLeft: any; + readonly marginRight: any; + readonly marginTop: any; + readonly maxHeight: any; + readonly maxWidth: any; + readonly minHeight: any; + readonly minWidth: any; + msAnimation: string; + msAnimationDelay: string; + msAnimationDirection: string; + msAnimationDuration: string; + msAnimationFillMode: string; + msAnimationIterationCount: string; + msAnimationName: string; + msAnimationPlayState: string; + msAnimationTimingFunction: string; + msBackfaceVisibility: string; + readonly msBlockProgression: string; + msContentZoomChaining: string; + msContentZooming: string; + msContentZoomLimit: string; + msContentZoomLimitMax: any; + msContentZoomLimitMin: any; + msContentZoomSnap: string; + msContentZoomSnapPoints: string; + msContentZoomSnapType: string; + msFlex: string; + msFlexAlign: string; + msFlexDirection: string; + msFlexFlow: string; + msFlexItemAlign: string; + msFlexLinePack: string; + msFlexNegative: any; + msFlexOrder: any; + msFlexPack: string; + msFlexPositive: any; + msFlexPreferredSize: any; + msFlexWrap: string; + msFlowFrom: string; + msFlowInto: string; + msFontFeatureSettings: string; + msGridColumn: any; + msGridColumnAlign: string; + msGridColumns: string; + msGridColumnSpan: any; + msGridRow: any; + msGridRowAlign: string; + msGridRows: string; + msGridRowSpan: any; + msHighContrastAdjust: string; + msHyphenateLimitChars: string; + msHyphenateLimitLines: any; + msHyphenateLimitZone: any; + msHyphens: string; + msImeAlign: string; + readonly msInterpolationMode: string; + msOverflowStyle: string; + msPerspective: any; + msPerspectiveOrigin: string; + msScrollChaining: string; + msScrollLimit: string; + msScrollLimitXMax: any; + msScrollLimitXMin: any; + msScrollLimitYMax: any; + msScrollLimitYMin: any; + msScrollRails: string; + msScrollSnapPointsX: string; + msScrollSnapPointsY: string; + msScrollSnapType: string; + msScrollSnapX: string; + msScrollSnapY: string; + msScrollTranslation: string; + msTextCombineHorizontal: string; + msTextSizeAdjust: any; + msTouchAction: string; + msTouchSelect: string; + msTransformStyle: string; + msTransition: string; + msTransitionDelay: string; + msTransitionDuration: string; + msTransitionProperty: string; + msTransitionTimingFunction: string; + msUserSelect: string; + msWrapFlow: string; + msWrapMargin: any; + msWrapThrough: string; + readonly orphans: any; + readonly outline: string; + readonly outlineColor: any; + readonly outlineStyle: string; + readonly outlineWidth: any; + readonly overflow: string; + readonly overflowX: string; + readonly overflowY: string; + readonly padding: string; + readonly paddingBottom: any; + readonly paddingLeft: any; + readonly paddingRight: any; + readonly paddingTop: any; + readonly pageBreakAfter: string; + readonly pageBreakBefore: string; + readonly pageBreakInside: string; + readonly parentRule: any; + perspective: any; + perspectiveOrigin: string; + readonly position: string; + readonly quotes: string; + removeProperty(bstrPropertyName: string): string; + readonly right: any; + readonly rubyAlign: string; + readonly rubyOverhang: string; + readonly rubyPosition: string; + readonly scrollbar3dLightColor: any; + readonly scrollbarArrowColor: any; + readonly scrollbarBaseColor: any; + readonly scrollbarDarkShadowColor: any; + readonly scrollbarFaceColor: any; + readonly scrollbarHighlightColor: any; + readonly scrollbarShadowColor: any; + readonly scrollbarTrackColor: any; + + /** @param any [pvarPropertyPriority=''] */ + setProperty(bstrPropertyName: string, pvarPropertyValue: any, pvarPropertyPriority?: any): void; + readonly styleFloat: string; + readonly tableLayout: string; + readonly textAlign: string; + readonly textAlignLast: string; + readonly textAutospace: string; + readonly textDecoration: string; + readonly textIndent: any; + readonly textJustify: string; + readonly textJustifyTrim: string; + readonly textKashida: any; + readonly textKashidaSpace: any; + readonly textOverflow: string; + textShadow: string; + readonly textTransform: string; + readonly textUnderlinePosition: string; + readonly top: any; + touchAction: string; + transform: string; + transformOrigin: string; + transformStyle: string; + transition: string; + transitionDelay: string; + transitionDuration: string; + transitionProperty: string; + transitionTimingFunction: string; + readonly unicodeBidi: string; + readonly verticalAlign: any; + readonly visibility: string; + webkitAnimation: string; + webkitAnimationDelay: string; + webkitAnimationDirection: string; + webkitAnimationDuration: string; + webkitAnimationFillMode: string; + webkitAnimationIterationCount: string; + webkitAnimationName: string; + webkitAnimationPlayState: string; + webkitAnimationTimingFunction: string; + webkitAppearance: string; + webkitBackfaceVisibility: string; + webkitBackground: string; + webkitBackgroundAttachment: string; + webkitBackgroundClip: string; + webkitBackgroundColor: any; + webkitBackgroundImage: string; + webkitBackgroundOrigin: string; + webkitBackgroundPosition: string; + webkitBackgroundPositionX: any; + webkitBackgroundPositionY: any; + webkitBackgroundRepeat: string; + webkitBackgroundSize: string; + webkitBorderImage: string; + webkitBorderImageOutset: string; + webkitBorderImageRepeat: string; + webkitBorderImageSlice: string; + webkitBorderImageSource: string; + webkitBorderImageWidth: string; + webkitBoxAlign: string; + webkitBoxDirection: string; + webkitBoxFlex: any; + webkitBoxOrdinalGroup: any; + webkitBoxOrient: string; + webkitBoxPack: string; + webkitBoxSizing: string; + webkitTextSizeAdjust: any; + webkitTransform: string; + webkitTransformOrigin: string; + webkitTransition: string; + webkitTransitionDelay: string; + webkitTransitionDuration: string; + webkitTransitionProperty: string; + webkitTransitionTimingFunction: string; + webkitUserSelect: string; + readonly whiteSpace: string; + readonly widows: any; + readonly width: any; + readonly wordBreak: string; + readonly wordSpacing: any; + readonly wordWrap: string; + readonly writingMode: string; + readonly zIndex: any; + readonly zoom: any; + } + + class HTMLDDElement { + private 'MSHTML.HTMLDDElement_typekey': HTMLDDElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + noWrap: boolean; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLDefaults { + private 'MSHTML.HTMLDefaults_typekey': HTMLDefaults; + private constructor(); + canHaveHTML: boolean; + readonly 'constructor': any; + contentEditable: string; + frozen: boolean; + isMultiLine: boolean; + scrollSegmentX: number; + scrollSegmentY: number; + readonly style: IHTMLStyle; + tabStop: boolean; + viewInheritStyle: boolean; + viewLink: IHTMLDocument; + viewMasterTab: boolean; + } + + class HTMLDialog { + private 'MSHTML.HTMLDialog_typekey': HTMLDialog; + private constructor(); + close(): void; + readonly dialogArguments: any; + dialogHeight: any; + dialogLeft: any; + dialogTop: any; + dialogWidth: any; + readonly menuArguments: any; + returnValue: any; + toString(): string; + } + + class HTMLDivElement { + private 'MSHTML.HTMLDivElement_typekey': HTMLDivElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + noWrap: boolean; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLDivPosition { + private 'MSHTML.HTMLDivPosition_typekey': HTMLDivPosition; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HtmlDlgSafeHelper { + private 'MSHTML.HtmlDlgSafeHelper_typekey': HtmlDlgSafeHelper; + private constructor(); + readonly BlockFormats: any; + choosecolordlg(initColor?: any): any; + readonly fonts: any; + getCharset(fontName: string): any; + } + + class HTMLDListElement { + private 'MSHTML.HTMLDListElement_typekey': HTMLDListElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compact: boolean; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLDocument { + private 'MSHTML.HTMLDocument_typekey': HTMLDocument; + private constructor(); + readonly activeElement: IHTMLElement; + addEventListener(type: string, listener: any, useCapture: boolean): void; + adoptNode(pNodeSource: IHTMLDOMNode): IHTMLDOMNode3; + alinkColor: any; + readonly all: IHTMLElementCollection; + readonly anchors: IHTMLElementCollection; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + readonly applets: IHTMLElementCollection; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + bgColor: any; + readonly body: IHTMLElement; + readonly characterSet: string; + charset: string; + readonly childNodes: any; + clear(): void; + cloneNode(fDeep: boolean): IHTMLDOMNode; + close(): void; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + readonly compatible: IHTMLDocumentCompatibleInfoCollection; + readonly compatMode: string; + readonly 'constructor': any; + cookie: string; + createAttribute(bstrAttrName: string): IHTMLDOMAttribute; + createAttributeNS(pvarNS: any, bstrAttrName: string): IHTMLDOMAttribute; + createCDATASection(text: string): IHTMLDOMNode; + createComment(bstrData: string): IHTMLDOMNode; + createDocumentFragment(): IHTMLDocument2; + createDocumentFromUrl(bstrURL: string, bstrOptions: string): IHTMLDocument2; + createElement(eTag: string): IHTMLElement; + createElementNS(pvarNS: any, bstrTag: string): IHTMLElement; + createEvent(eventType: string): IDOMEvent; + CreateEventObject(pvarEventObject?: any): IHTMLEventObj; + createNodeIterator(pRootNode: any, ulWhatToShow: number, pFilter: any, fEntityReferenceExpansion: boolean): IDOMNodeIterator; + createProcessingInstruction(bstrTarget: string, bstrData: string): IDOMProcessingInstruction; + createRange(): IHTMLDOMRange; + createRenderStyle(v: string): IHTMLRenderStyle; + + /** + * @param string [bstrHref=''] + * @param number [lIndex=-1] + */ + createStyleSheet(bstrHref?: string, lIndex?: number): IHTMLStyleSheet; + createTextNode(text: string): IHTMLDOMNode; + createTreeWalker(pRootNode: any, ulWhatToShow: number, pFilter: any, fEntityReferenceExpansion: boolean): IDOMTreeWalker; + defaultCharset: string; + readonly defaultView: IHTMLWindow2; + designMode: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + dispatchEvent(evt: IDOMEvent): boolean; + readonly doctype: IHTMLDOMNode; + readonly documentElement: IHTMLElement; + readonly documentMode: any; + domain: string; + elementFromPoint(x: number, y: number): IHTMLElement; + elementsFromPoint(x: number, y: number): IHTMLDOMChildrenCollection; + elementsFromRect(left: number, top: number, width: number, height: number): IHTMLDOMChildrenCollection; + readonly embeds: IHTMLElementCollection; + + /** @param boolean [showUI=false] */ + execCommand(cmdID: string, showUI?: boolean, value?: any): boolean; + execCommandShowHelp(cmdID: string): boolean; + expando: boolean; + fgColor: any; + readonly fileCreatedDate: string; + readonly fileModifiedDate: string; + readonly fileSize: string; + readonly fileUpdatedDate: string; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly forms: IHTMLElementCollection; + readonly frames: FramesCollection; + getElementById(v: string): IHTMLElement; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(pvarNS: any, bstrLocalName: string): IHTMLElementCollection; + getSelection(): IHTMLSelection; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hasFocus(): boolean; + readonly head: IHTMLElement; + ie8_getElementById(bstrId: string): IHTMLElement2; + readonly ie9_all: IHTMLElementCollection; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_body: IHTMLElement; + ie9_createAttribute(bstrAttrName: string): IHTMLDOMAttribute; + ie9_createElement(bstrTag: string): IHTMLElement; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_parentWindow: IHTMLWindow2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + readonly images: IHTMLElementCollection; + readonly implementation: IHTMLDOMImplementation; + importNode(pNodeSource: IHTMLDOMNode, fDeep: boolean): IHTMLDOMNode3; + readonly inputEncoding: string; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + isDefaultNamespace(pvarNamespace: any): boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly lastChild: IHTMLDOMNode; + readonly lastModified: string; + linkColor: any; + readonly links: IHTMLElementCollection; + readonly localName: any; + readonly location: IHTMLLocation; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + media: string; + readonly mimeType: string; + msCapsLockWarningOff: boolean; + readonly nameProp: string; + readonly namespaces: any; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onmousedown: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmscontentzoom: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsinertiastart: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmssitemodejumplistitemremoved: any; + onmsthumbnailclick: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectionchange: any; + onselectstart: any; + onstalled: any; + onstop: any; + onstorage: any; + onstoragecommit: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + + /** @param string [url='text/html'] */ + open(url?: string, name?: any, features?: any, replace?: any): any; + readonly ownerDocument: any; + readonly parentNode: IHTMLDOMNode; + readonly parentWindow: IHTMLWindow2; + readonly plugins: IHTMLElementCollection; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + readonly protocol: string; + queryCommandEnabled(cmdID: string): boolean; + queryCommandIndeterm(cmdID: string): boolean; + queryCommandState(cmdID: string): boolean; + queryCommandSupported(cmdID: string): boolean; + queryCommandText(cmdID: string): string; + queryCommandValue(cmdID: string): any; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: string; + + /** @param boolean [fForce=false] */ + recalc(fForce?: boolean): void; + readonly referrer: string; + releaseCapture(): void; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeEventListener(type: string, listener: any, useCapture: boolean): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + readonly rootElement: ISVGSVGElement; + readonly Script: any; + readonly scripts: IHTMLElementCollection; + readonly security: string; + readonly selection: IHTMLSelectionObject; + readonly styleSheets: IHTMLStyleSheetsCollection; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + updateSettings(): void; + url: string; + readonly URLUnencoded: string; + vlinkColor: any; + write(...psarray: any[]): void; + writeln(...psarray: any[]): void; + readonly xmlEncoding: string; + xmlStandalone: boolean; + xmlVersion: string; + } + + class HTMLDocumentCompatibleInfo { + private 'MSHTML.HTMLDocumentCompatibleInfo_typekey': HTMLDocumentCompatibleInfo; + private constructor(); + readonly 'constructor': any; + } + + class HTMLDocumentCompatibleInfoCollection { + private 'MSHTML.HTMLDocumentCompatibleInfoCollection_typekey': HTMLDocumentCompatibleInfoCollection; + private constructor(); + readonly 'constructor': any; + } + + class HTMLDOMAttribute { + private 'MSHTML.HTMLDOMAttribute_typekey': HTMLDOMAttribute; + private constructor(); + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + readonly attributes: any; + readonly childNodes: any; + cloneNode(fDeep: boolean): IHTMLDOMAttribute; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + readonly 'constructor': any; + readonly expando: boolean; + readonly firstChild: IHTMLDOMNode; + hasAttributes(): boolean; + hasChildNodes(): boolean; + ie8_nodeValue: any; + readonly ie8_specified: boolean; + ie8_value: string; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + readonly ie9_childNodes: any; + readonly ie9_firstChild: IHTMLDOMNode; + ie9_hasChildNodes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_lastChild: IHTMLDOMNode; + readonly ie9_name: string; + readonly ie9_nodeName: string; + ie9_nodeValue: any; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + readonly ie9_specified: boolean; + ie9_value: string; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + isDefaultNamespace(pvarNamespace: any): boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + readonly name: string; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly ownerDocument: any; + readonly ownerElement: IHTMLElement2; + readonly parentNode: IHTMLDOMNode; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + readonly specified: boolean; + textContent: any; + value: string; + } + + class HTMLDOMImplementation { + private 'MSHTML.HTMLDOMImplementation_typekey': HTMLDOMImplementation; + private constructor(); + readonly 'constructor': any; + createDocument(pvarNS: any, pvarTagName: any, pDocumentType: IDOMDocumentType): IHTMLDocument7; + createDocumentType(bstrQualifiedName: string, pvarPublicId: any, pvarSystemId: any): IDOMDocumentType; + createHTMLDocument(bstrTitle: string): IHTMLDocument7; + hasFeature(bstrfeature: string, version?: any): boolean; + ie9_hasFeature(bstrfeature: string, version?: any): boolean; + } + + class HTMLDOMRange { + private 'MSHTML.HTMLDOMRange_typekey': HTMLDOMRange; + private constructor(); + cloneContents(): any; + cloneRange(): IHTMLDOMRange; + collapse(toStart: boolean): void; + readonly collapsed: boolean; + readonly commonAncestorContainer: IHTMLDOMNode; + compareBoundaryPoints(how: number, sourceRange: any): number; + deleteContents(): void; + Detach(): void; + readonly endContainer: IHTMLDOMNode; + readonly endOffset: number; + extractContents(): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + insertNode(newNode: any): void; + selectNode(refNode: any): void; + selectNodeContents(refNode: any): void; + setEnd(refNode: any, offset: number): void; + setEndAfter(refNode: any): void; + setEndBefore(refNode: any): void; + setStart(refNode: any, offset: number): void; + setStartAfter(refNode: any): void; + setStartBefore(refNode: any): void; + readonly startContainer: IHTMLDOMNode; + readonly startOffset: number; + surroundContents(newParent: any): void; + toString(): string; + } + + class HTMLDOMTextNode { + private 'MSHTML.HTMLDOMTextNode_typekey': HTMLDOMTextNode; + private constructor(); + addEventListener(type: string, listener: any, useCapture: boolean): void; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + appendData(bstrstring: string): void; + readonly attributes: any; + readonly childNodes: any; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + readonly 'constructor': any; + data: string; + deleteData(offset: number, Count: number): void; + dispatchEvent(evt: IDOMEvent): boolean; + readonly firstChild: IHTMLDOMNode; + hasAttributes(): boolean; + hasChildNodes(): boolean; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_deleteData(offset: number, Count: number): void; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + ie9_insertData(offset: number, bstrstring: string): void; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceData(offset: number, Count: number, bstrstring: string): void; + ie9_splitText(offset: number): IHTMLDOMNode; + ie9_substringData(offset: number, Count: number): string; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + insertData(offset: number, bstrstring: string): void; + isDefaultNamespace(pvarNamespace: any): boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly lastChild: IHTMLDOMNode; + readonly length: number; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly ownerDocument: any; + readonly parentNode: IHTMLDOMNode; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeEventListener(type: string, listener: any, useCapture: boolean): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceData(offset: number, Count: number, bstrstring: string): void; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + replaceWholeText(bstrText: string): IHTMLDOMNode; + splitText(offset: number): IHTMLDOMNode; + substringData(offset: number, Count: number): string; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + textContent: any; + toString(): string; + readonly wholeText: string; + } + + class HTMLDOMXmlSerializerFactory { + private 'MSHTML.HTMLDOMXmlSerializerFactory_typekey': HTMLDOMXmlSerializerFactory; + private constructor(); + create(): IDOMXmlSerializer; + } + + class HTMLDTElement { + private 'MSHTML.HTMLDTElement_typekey': HTMLDTElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + noWrap: boolean; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLElementCollection { + private 'MSHTML.HTMLElementCollection_typekey': HTMLElementCollection; + private constructor(); + readonly 'constructor': any; + ie8_item(index: number): IHTMLElement2; + readonly ie8_length: number; + ie8_namedItem(name: string): IHTMLElement2; + item(name?: any, index?: any): any; + length: number; + namedItem(name: string): any; + tags(tagName: any): any; + toString(): string; + urns(urn: any): any; + } + + class HTMLEmbed { + private 'MSHTML.HTMLEmbed_typekey': HTMLEmbed; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + getSVGDocument(): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + height: any; + hidden: string; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + readonly ie8_pluginspage: string; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_src: string; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly palette: string; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly pluginspage: string; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + src: string; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + units: string; + width: any; + xmsAcceleratorKey: string; + } + + class HTMLFieldSetElement { + private 'MSHTML.HTMLFieldSetElement_typekey': HTMLFieldSetElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLFontElement { + private 'MSHTML.HTMLFontElement_typekey': HTMLFontElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + color: any; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + face: string; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + size: any; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLFormElement { + private 'MSHTML.HTMLFormElement_typekey': HTMLFormElement; + private constructor(); + acceptCharset: string; + accessKey: string; + action: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + appendItemSeparator(): void; + + /** + * @param string [name=''] + * @param string [filename=''] + */ + appendNameFilePair(name?: string, filename?: string): void; + + /** + * @param string [name=''] + * @param string [value=''] + */ + appendNameValuePair(name?: string, value?: string): void; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly elements: any; + encoding: string; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + ie8_action: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + item(name?: any, index?: any): any; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + length: number; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + method: string; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + namedItem(name: string): any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + reset(): void; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + submit(): void; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tags(tagName: any): any; + tagUrn: string; + target: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + urns(urn: any): any; + xmsAcceleratorKey: string; + } + + class HTMLFrameBase { + private 'MSHTML.HTMLFrameBase_typekey': HTMLFrameBase; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + allowTransparency: boolean; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + border: any; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + readonly contentWindow: IHTMLWindow2; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + frameBorder: string; + frameSpacing: any; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + longDesc: string; + marginHeight: any; + marginWidth: any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + noResize: boolean; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrolling: string; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + src: string; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLFrameElement { + private 'MSHTML.HTMLFrameElement_typekey': HTMLFrameElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + allowTransparency: boolean; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + border: any; + borderColor: any; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + readonly contentDocument: any; + contentEditable: string; + readonly contentWindow: IHTMLWindow2; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + frameBorder: string; + frameSpacing: any; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + getSVGDocument(): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + height: any; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_frameBorder: string; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_longDesc: string; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_src: string; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + longDesc: string; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + marginHeight: any; + marginWidth: any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + noResize: boolean; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrolling: string; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + src: string; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + width: any; + xmsAcceleratorKey: string; + } + + class HTMLFrameSetSite { + private 'MSHTML.HTMLFrameSetSite_typekey': HTMLFrameSetSite; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + border: any; + borderColor: any; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + cols: string; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + frameBorder: string; + frameSpacing: any; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterprint: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeprint: any; + onbeforeunload: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhashchange: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmessage: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onoffline: any; + ononline: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onstorage: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onunload: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + rows: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLGenericElement { + private 'MSHTML.HTMLGenericElement_typekey': HTMLGenericElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + namedRecordset(dataMember: string, hierarchy?: any): any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + readonly recordset: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLHeadElement { + private 'MSHTML.HTMLHeadElement_typekey': HTMLHeadElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_profile: string; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + profile: string; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLHeaderElement { + private 'MSHTML.HTMLHeaderElement_typekey': HTMLHeaderElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clear: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLHistory { + private 'MSHTML.HTMLHistory_typekey': HTMLHistory; + private constructor(); + back(pvargdistance?: any): void; + readonly 'constructor': any; + forward(pvargdistance?: any): void; + go(pvargdistance?: any): void; + readonly length: number; + } + + class HTMLHRElement { + private 'MSHTML.HTMLHRElement_typekey': HTMLHRElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + color: any; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + noShade: boolean; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + size: any; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + width: any; + xmsAcceleratorKey: string; + } + + class HTMLHtmlElement { + private 'MSHTML.HTMLHtmlElement_typekey': HTMLHtmlElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + version: string; + xmsAcceleratorKey: string; + } + + class HTMLIFrame { + private 'MSHTML.HTMLIFrame_typekey': HTMLIFrame; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + allowTransparency: boolean; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + border: any; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + readonly contentDocument: any; + contentEditable: string; + readonly contentWindow: IHTMLWindow2; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + frameBorder: string; + frameSpacing: any; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + getSVGDocument(): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + height: any; + hideFocus: boolean; + hspace: number; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_frameBorder: string; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_longDesc: string; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_src: string; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + longDesc: string; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + marginHeight: any; + marginWidth: any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + noResize: boolean; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrolling: string; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + src: string; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + vspace: number; + width: any; + xmsAcceleratorKey: string; + } + + class HTMLImageElementFactory { + private 'MSHTML.HTMLImageElementFactory_typekey': HTMLImageElementFactory; + private constructor(); + create(width?: any, height?: any): IHTMLImgElement; + } + + class HTMLImg { + private 'MSHTML.HTMLImg_typekey': HTMLImg; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + alt: string; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + border: any; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + readonly complete: boolean; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + dynsrc: string; + readonly fileCreatedDate: string; + readonly fileModifiedDate: string; + readonly fileSize: string; + readonly fileUpdatedDate: string; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + height: number; + hideFocus: boolean; + readonly href: string; + hspace: number; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_dynsrc: string; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_longDesc: string; + ie8_lowsrc: string; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_vrml: string; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + isMap: boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + longDesc: string; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + loop: any; + lowsrc: string; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + readonly mimeType: string; + msMatchesSelector(v: string): boolean; + msPlayToDisabled: boolean; + msPlayToPrimary: boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly nameProp: string; + readonly namespaceURI: any; + readonly naturalHeight: number; + readonly naturalWidth: number; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + readonly protocol: string; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + src: string; + start: string; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + useMap: string; + vrml: string; + vspace: number; + width: number; + xmsAcceleratorKey: string; + } + + class HTMLInputButtonElement { + private 'MSHTML.HTMLInputButtonElement_typekey': HTMLInputButtonElement; + private constructor(); + accessKey: string; + addFilter(pUnk: any): void; + readonly all: any; + blur(): void; + readonly children: any; + className: string; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + contains(pChild: IHTMLElement): boolean; + createTextRange(): IHTMLTxtRange; + disabled: boolean; + readonly document: any; + readonly filters: IHTMLFiltersCollection; + focus(): void; + readonly form: IHTMLFormElement; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + id: string; + innerHTML: string; + innerText: string; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + readonly isTextEdit: boolean; + lang: string; + language: string; + name: string; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onafterupdate: any; + onbeforeupdate: any; + onblur: any; + onclick: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondragstart: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onhelp: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onmousedown: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onresize: any; + onrowenter: any; + onrowexit: any; + onselectstart: any; + outerHTML: string; + outerText: string; + readonly parentElement: IHTMLElement; + readonly parentTextEdit: IHTMLElement; + readonly recordNumber: any; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeFilter(pUnk: any): void; + scrollIntoView(varargStart?: any): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + readonly sourceIndex: number; + status: any; + readonly style: IHTMLStyle; + tabIndex: number; + readonly tagName: string; + title: string; + toString(): string; + readonly type: string; + value: string; + } + + class HTMLInputElement { + private 'MSHTML.HTMLInputElement_typekey': HTMLInputElement; + private constructor(); + accept: string; + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + alt: string; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + border: any; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + checked: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + readonly complete: boolean; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + createTextRange(): IHTMLTxtRange; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + defaultChecked: boolean; + defaultValue: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + dynsrc: string; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + height: number; + hideFocus: boolean; + hspace: number; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_dynsrc: string; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_lowsrc: string; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_src: string; + ie8_vrml: string; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + indeterminate: boolean; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + loop: any; + lowsrc: string; + max: string; + maxLength: number; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + min: string; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readOnly: boolean; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + select(): void; + selectionEnd: number; + selectionStart: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + setSelectionRange(start: number, end: number): void; + size: number; + readonly sourceIndex: number; + spellcheck: any; + src: string; + start: string; + status: boolean; + step: string; + + /** @param number [n=1] */ + stepDown(n?: number): void; + + /** @param number [n=1] */ + stepUp(n?: number): void; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + useMap: string; + value: string; + valueAsNumber: number; + vrml: string; + vspace: number; + width: number; + xmsAcceleratorKey: string; + } + + class HTMLInputFileElement { + private 'MSHTML.HTMLInputFileElement_typekey': HTMLInputFileElement; + private constructor(); + accessKey: string; + addFilter(pUnk: any): void; + readonly all: any; + blur(): void; + readonly children: any; + className: string; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + contains(pChild: IHTMLElement): boolean; + disabled: boolean; + readonly document: any; + readonly filters: IHTMLFiltersCollection; + focus(): void; + readonly form: IHTMLFormElement; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + id: string; + innerHTML: string; + innerText: string; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + readonly isTextEdit: boolean; + lang: string; + language: string; + maxLength: number; + name: string; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onafterupdate: any; + onbeforeupdate: any; + onblur: any; + onchange: any; + onclick: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondragstart: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onhelp: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onmousedown: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onresize: any; + onrowenter: any; + onrowexit: any; + onselect: any; + onselectstart: any; + outerHTML: string; + outerText: string; + readonly parentElement: IHTMLElement; + readonly parentTextEdit: IHTMLElement; + readonly recordNumber: any; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeFilter(pUnk: any): void; + scrollIntoView(varargStart?: any): void; + select(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + size: number; + readonly sourceIndex: number; + status: any; + readonly style: IHTMLStyle; + tabIndex: number; + readonly tagName: string; + title: string; + toString(): string; + readonly type: string; + value: string; + } + + class htmlInputImage { + private 'MSHTML.htmlInputImage_typekey': htmlInputImage; + private constructor(); + accessKey: string; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + alt: string; + blur(): void; + border: any; + readonly children: any; + className: string; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + readonly complete: boolean; + contains(pChild: IHTMLElement): boolean; + disabled: boolean; + readonly document: any; + dynsrc: string; + readonly filters: IHTMLFiltersCollection; + focus(): void; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + height: number; + hspace: number; + id: string; + innerHTML: string; + innerText: string; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + readonly isTextEdit: boolean; + lang: string; + language: string; + loop: any; + lowsrc: string; + name: string; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onafterupdate: any; + onbeforeupdate: any; + onblur: any; + onclick: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondragstart: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onhelp: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onload: any; + onmousedown: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onresize: any; + onrowenter: any; + onrowexit: any; + onselectstart: any; + outerHTML: string; + outerText: string; + readonly parentElement: IHTMLElement; + readonly parentTextEdit: IHTMLElement; + readonly readyState: string; + readonly recordNumber: any; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeFilter(pUnk: any): void; + scrollIntoView(varargStart?: any): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + readonly sourceIndex: number; + src: string; + start: string; + readonly style: IHTMLStyle; + tabIndex: number; + readonly tagName: string; + title: string; + toString(): string; + readonly type: string; + vrml: string; + vspace: number; + width: number; + } + + class HTMLInputTextElement { + private 'MSHTML.HTMLInputTextElement_typekey': HTMLInputTextElement; + private constructor(); + accessKey: string; + addFilter(pUnk: any): void; + readonly all: any; + blur(): void; + readonly children: any; + className: string; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + contains(pChild: IHTMLElement): boolean; + createTextRange(): IHTMLTxtRange; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + defaultValue: string; + disabled: boolean; + readonly document: any; + readonly filters: IHTMLFiltersCollection; + focus(): void; + readonly form: IHTMLFormElement; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + id: string; + innerHTML: string; + innerText: string; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + readonly isTextEdit: boolean; + lang: string; + language: string; + maxLength: number; + name: string; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onafterupdate: any; + onbeforeupdate: any; + onblur: any; + onchange: any; + onclick: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondragstart: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onhelp: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onmousedown: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onresize: any; + onrowenter: any; + onrowexit: any; + onselect: any; + onselectstart: any; + outerHTML: string; + outerText: string; + readonly parentElement: IHTMLElement; + readonly parentTextEdit: IHTMLElement; + readOnly: boolean; + readonly recordNumber: any; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeFilter(pUnk: any): void; + scrollIntoView(varargStart?: any): void; + select(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + size: number; + readonly sourceIndex: number; + status: any; + readonly style: IHTMLStyle; + tabIndex: number; + readonly tagName: string; + title: string; + toString(): string; + readonly type: string; + value: string; + } + + class HTMLIsIndexElement { + private 'MSHTML.HTMLIsIndexElement_typekey': HTMLIsIndexElement; + private constructor(); + accessKey: string; + action: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + prompt: string; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLLabelElement { + private 'MSHTML.HTMLLabelElement_typekey': HTMLLabelElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + htmlFor: string; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLLegendElement { + private 'MSHTML.HTMLLegendElement_typekey': HTMLLegendElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLLIElement { + private 'MSHTML.HTMLLIElement_typekey': HTMLLIElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + value: number; + xmsAcceleratorKey: string; + } + + class HTMLLinkElement { + private 'MSHTML.HTMLLinkElement_typekey': HTMLLinkElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + charset: string; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + href: string; + hreflang: string; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_href: string; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + media: string; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + rel: string; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + rev: string; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sheet: IHTMLStyleSheet; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + readonly styleSheet: IHTMLStyleSheet; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + target: string; + title: string; + toString(): string; + type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLListElement { + private 'MSHTML.HTMLListElement_typekey': HTMLListElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compact: boolean; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLLocation { + private 'MSHTML.HTMLLocation_typekey': HTMLLocation; + private constructor(); + assign(bstr: string): void; + readonly 'constructor': any; + hash: string; + host: string; + hostname: string; + href: string; + pathname: string; + port: string; + protocol: string; + + /** @param boolean [flag=false] */ + reload(flag?: boolean): void; + replace(bstr: string): void; + search: string; + toString(): string; + } + + class HTMLMapElement { + private 'MSHTML.HTMLMapElement_typekey': HTMLMapElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + readonly areas: IHTMLAreasCollection; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLMarqueeElement { + private 'MSHTML.HTMLMarqueeElement_typekey': HTMLMarqueeElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + behavior: string; + readonly behaviorUrns: any; + bgColor: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + direction: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + height: any; + hideFocus: boolean; + hspace: number; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + loop: number; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + onbounce: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfinish: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onstart: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + scrollAmount: number; + scrollDelay: number; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + start(): void; + stop(): void; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + trueSpeed: boolean; + readonly uniqueID: string; + readonly uniqueNumber: number; + vspace: number; + width: any; + xmsAcceleratorKey: string; + } + + class HTMLMediaElement { + private 'MSHTML.HTMLMediaElement_typekey': HTMLMediaElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + autobuffer: boolean; + autoplay: boolean; + readonly behaviorUrns: any; + blur(): void; + readonly buffered: IHTMLTimeRanges; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + canPlayType(type: string): string; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + controls: boolean; + createControlRange(): any; + readonly currentSrc: string; + readonly currentStyle: IHTMLCurrentStyle; + currentTime: number; + currentTimeDouble: number; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + defaultPlaybackRate: number; + defaultPlaybackRateDouble: number; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly duration: number; + readonly durationDouble: number; + readonly ended: boolean; + readonly error: IHTMLMediaError; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + readonly initialTime: number; + readonly initialTimeDouble: number; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + load(): void; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + loop: boolean; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msPlayToDisabled: boolean; + msPlayToPrimary: boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + muted: boolean; + readonly namespaceURI: any; + readonly networkState: number; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + pause(): void; + readonly paused: boolean; + play(): void; + playbackRate: number; + playbackRateDouble: number; + readonly played: IHTMLTimeRanges; + prefix: any; + preload: string; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + readonly seekable: IHTMLTimeRanges; + readonly seeking: boolean; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + src: string; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + volume: number; + volumeDouble: number; + xmsAcceleratorKey: string; + } + + class HTMLMediaError { + private 'MSHTML.HTMLMediaError_typekey': HTMLMediaError; + private constructor(); + readonly code: number; + } + + class HTMLMetaElement { + private 'MSHTML.HTMLMetaElement_typekey': HTMLMetaElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + charset: string; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + content: string; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + httpEquiv: string; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_url: string; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + scheme: string; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + url: string; + xmsAcceleratorKey: string; + } + + class HTMLMSCSSKeyframeRule { + private 'MSHTML.HTMLMSCSSKeyframeRule_typekey': HTMLMSCSSKeyframeRule; + private constructor(); + cssText: string; + keyText: string; + readonly parentRule: IHTMLCSSRule; + readonly parentStyleSheet: IHTMLStyleSheet; + readonly style: IHTMLRuleStyle; + readonly type: number; + } + + class HTMLMSCSSKeyframesRule { + private 'MSHTML.HTMLMSCSSKeyframesRule_typekey': HTMLMSCSSKeyframesRule; + private constructor(); + appendRule(bstrRule: string): void; + readonly cssRules: IHTMLStyleSheetRulesCollection; + cssText: string; + deleteRule(bstrKey: string): void; + findRule(bstrKey: string): IHTMLMSCSSKeyframeRule; + name: string; + readonly parentRule: IHTMLCSSRule; + readonly parentStyleSheet: IHTMLStyleSheet; + readonly type: number; + } + + class HTMLNamespace { + private 'MSHTML.HTMLNamespace_typekey': HTMLNamespace; + private constructor(); + attachEvent(event: string, pdisp: any): boolean; + readonly 'constructor': any; + detachEvent(event: string, pdisp: any): void; + doImport(bstrImplementationUrl: string): void; + readonly name: string; + onreadystatechange: any; + readonly readyState: any; + readonly tagNames: any; + readonly urn: string; + } + + class HTMLNamespaceCollection { + private 'MSHTML.HTMLNamespaceCollection_typekey': HTMLNamespaceCollection; + private constructor(); + add(bstrNamespace: string, bstrUrn: string, implementationUrl?: any): any; + readonly 'constructor': any; + item(index: any): any; + readonly length: number; + } + + class HTMLNavigator { + private 'MSHTML.HTMLNavigator_typekey': HTMLNavigator; + private constructor(); + readonly appCodeName: string; + readonly appMinorVersion: string; + readonly appName: string; + readonly appVersion: string; + readonly browserLanguage: string; + readonly connectionSpeed: number; + readonly 'constructor': any; + readonly cookieEnabled: boolean; + readonly cpuClass: string; + readonly geolocation: IWebGeolocation; + javaEnabled(): boolean; + readonly mimeTypes: CMimeTypes; + readonly msDoNotTrack: string; + readonly onLine: boolean; + readonly opsProfile: COpsProfile; + readonly platform: string; + readonly plugins: IHTMLPluginsCollection; + readonly systemLanguage: string; + taintEnabled(): boolean; + toString(): string; + readonly userAgent: string; + readonly userLanguage: string; + readonly userProfile: COpsProfile; + } + + class HTMLNextIdElement { + private 'MSHTML.HTMLNextIdElement_typekey': HTMLNextIdElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + n: string; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLNoShowElement { + private 'MSHTML.HTMLNoShowElement_typekey': HTMLNoShowElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLObjectElement { + private 'MSHTML.HTMLObjectElement_typekey': HTMLObjectElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + alt: string; + altHtml: string; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + archive: string; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly BaseHref: string; + readonly behaviorUrns: any; + blur(): void; + border: any; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + classid: string; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + code: string; + codeBase: string; + codeType: string; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + readonly contentDocument: any; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + data: string; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + declare: boolean; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + getSVGDocument(): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + height: any; + hideFocus: boolean; + hspace: number; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_codeBase: string; + ie8_data: string; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_object: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + namedRecordset(dataMember: string, hierarchy?: any): any; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly object: any; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + recordset: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + standby: string; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + useMap: string; + vspace: number; + width: any; + xmsAcceleratorKey: string; + } + + class HTMLOListElement { + private 'MSHTML.HTMLOListElement_typekey': HTMLOListElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compact: boolean; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + start: number; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLOptionButtonElement { + private 'MSHTML.HTMLOptionButtonElement_typekey': HTMLOptionButtonElement; + private constructor(); + accessKey: string; + addFilter(pUnk: any): void; + readonly all: any; + blur(): void; + checked: boolean; + readonly children: any; + className: string; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + contains(pChild: IHTMLElement): boolean; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + defaultChecked: boolean; + disabled: boolean; + readonly document: any; + readonly filters: IHTMLFiltersCollection; + focus(): void; + readonly form: IHTMLFormElement; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + id: string; + indeterminate: boolean; + innerHTML: string; + innerText: string; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + readonly isTextEdit: boolean; + lang: string; + language: string; + name: string; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onafterupdate: any; + onbeforeupdate: any; + onblur: any; + onchange: any; + onclick: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondragstart: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onhelp: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onmousedown: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onresize: any; + onrowenter: any; + onrowexit: any; + onselectstart: any; + outerHTML: string; + outerText: string; + readonly parentElement: IHTMLElement; + readonly parentTextEdit: IHTMLElement; + readonly recordNumber: any; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeFilter(pUnk: any): void; + scrollIntoView(varargStart?: any): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + readonly sourceIndex: number; + status: boolean; + readonly style: IHTMLStyle; + tabIndex: number; + readonly tagName: string; + title: string; + toString(): string; + readonly type: string; + value: string; + } + + class HTMLOptionElement { + private 'MSHTML.HTMLOptionElement_typekey': HTMLOptionElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + defaultSelected: boolean; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + ie9_value: string; + index: number; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + label: string; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + selected: boolean; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + text: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + value: string; + xmsAcceleratorKey: string; + } + + class HTMLOptionElementFactory { + private 'MSHTML.HTMLOptionElementFactory_typekey': HTMLOptionElementFactory; + private constructor(); + create(text?: any, value?: any, defaultSelected?: any, selected?: any): IHTMLOptionElement; + } + + class HTMLParaElement { + private 'MSHTML.HTMLParaElement_typekey': HTMLParaElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clear: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLParamElement { + private 'MSHTML.HTMLParamElement_typekey': HTMLParamElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_valueType: string; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + value: string; + valueType: string; + xmsAcceleratorKey: string; + } + + class HTMLPerformance { + private 'MSHTML.HTMLPerformance_typekey': HTMLPerformance; + private constructor(); + readonly navigation: IHTMLPerformanceNavigation; + readonly timing: IHTMLPerformanceTiming; + toJSON(): any; + toString(): string; + } + + class HTMLPerformanceNavigation { + private 'MSHTML.HTMLPerformanceNavigation_typekey': HTMLPerformanceNavigation; + private constructor(); + readonly redirectCount: number; + toJSON(): any; + toString(): string; + readonly type: number; + } + + class HTMLPerformanceTiming { + private 'MSHTML.HTMLPerformanceTiming_typekey': HTMLPerformanceTiming; + private constructor(); + readonly connectEnd: number; + readonly connectStart: number; + readonly domainLookupEnd: number; + readonly domainLookupStart: number; + readonly domComplete: number; + readonly domContentLoadedEventEnd: number; + readonly domContentLoadedEventStart: number; + readonly domInteractive: number; + readonly domLoading: number; + readonly fetchStart: number; + readonly loadEventEnd: number; + readonly loadEventStart: number; + readonly msFirstPaint: number; + readonly navigationStart: number; + readonly redirectEnd: number; + readonly redirectStart: number; + readonly requestStart: number; + readonly responseEnd: number; + readonly responseStart: number; + toJSON(): any; + toString(): string; + readonly unloadEventEnd: number; + readonly unloadEventStart: number; + } + + class HTMLPhraseElement { + private 'MSHTML.HTMLPhraseElement_typekey': HTMLPhraseElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + cite: string; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dateTime: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_cite: string; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLPopup { + private 'MSHTML.HTMLPopup_typekey': HTMLPopup; + private constructor(); + readonly 'constructor': any; + readonly document: IHTMLDocument; + Hide(): void; + readonly isOpen: boolean; + Show(x: number, y: number, w: number, h: number, pElement: any): void; + } + + class HTMLProgressElement { + private 'MSHTML.HTMLProgressElement_typekey': HTMLProgressElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + max: number; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly position: number; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + value: number; + xmsAcceleratorKey: string; + } + + class HTMLRenderStyle { + private 'MSHTML.HTMLRenderStyle_typekey': HTMLRenderStyle; + private constructor(); + defaultTextSelection: string; + renderingPriority: number; + textBackgroundColor: any; + textColor: any; + textDecoration: string; + textDecorationColor: any; + textEffect: string; + textLineThroughStyle: string; + textUnderlineStyle: string; + } + + class HTMLRichtextElement { + private 'MSHTML.HTMLRichtextElement_typekey': HTMLRichtextElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + cols: number; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + createTextRange(): IHTMLTxtRange; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + defaultValue: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readOnly: boolean; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + rows: number; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + select(): void; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + status: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + value: string; + wrap: string; + xmsAcceleratorKey: string; + } + + class HTMLRuleStyle { + private 'MSHTML.HTMLRuleStyle_typekey': HTMLRuleStyle; + private constructor(); + accelerator: string; + alignContent: string; + alignItems: string; + alignSelf: string; + animation: string; + animationDelay: string; + animationDirection: string; + animationDuration: string; + animationFillMode: string; + animationIterationCount: string; + animationName: string; + animationPlayState: string; + animationTimingFunction: string; + backfaceVisibility: string; + background: string; + backgroundAttachment: string; + backgroundColor: any; + backgroundImage: string; + backgroundPosition: string; + backgroundPositionX: any; + backgroundPositionY: any; + backgroundRepeat: string; + behavior: string; + border: string; + borderBottom: string; + borderBottomColor: any; + borderBottomStyle: string; + borderBottomWidth: any; + borderCollapse: string; + borderColor: string; + borderImage: string; + borderImageOutset: string; + borderImageRepeat: string; + borderImageSlice: string; + borderImageSource: string; + borderImageWidth: string; + borderLeft: string; + borderLeftColor: any; + borderLeftStyle: string; + borderLeftWidth: any; + borderRight: string; + borderRightColor: any; + borderRightStyle: string; + borderRightWidth: any; + borderSpacing: string; + borderStyle: string; + borderTop: string; + borderTopColor: any; + borderTopStyle: string; + borderTopWidth: any; + borderWidth: string; + bottom: any; + boxSizing: string; + breakAfter: string; + breakBefore: string; + breakInside: string; + captionSide: string; + clear: string; + clip: string; + color: any; + colorInterpolationFilters: string; + columnCount: any; + columnFill: string; + columnGap: any; + columnRule: string; + columnRuleColor: any; + columnRuleStyle: string; + columnRuleWidth: any; + columns: string; + columnSpan: string; + columnWidth: any; + readonly 'constructor': any; + content: string; + counterIncrement: string; + counterReset: string; + cssText: string; + cursor: string; + direction: string; + display: string; + emptyCells: string; + enableBackground: string; + filter: string; + flex: string; + flexBasis: any; + flexDirection: string; + flexFlow: string; + flexGrow: any; + flexShrink: any; + flexWrap: string; + floodColor: any; + floodOpacity: any; + font: string; + fontFamily: string; + fontFeatureSettings: string; + fontSize: any; + fontStyle: string; + fontVariant: string; + fontWeight: string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getPropertyPriority(bstrPropertyName: string): string; + getPropertyValue(bstrPropertyName: string): string; + height: any; + imeMode: string; + item(index: number): string; + justifyContent: string; + layoutFlow: string; + layoutGrid: string; + layoutGridChar: any; + layoutGridLine: any; + layoutGridMode: string; + layoutGridType: string; + left: any; + readonly length: number; + letterSpacing: any; + lightingColor: any; + lineBreak: string; + lineHeight: any; + listStyle: string; + listStyleImage: string; + listStylePosition: string; + listStyleType: string; + margin: string; + marginBottom: any; + marginLeft: any; + marginRight: any; + marginTop: any; + maxHeight: any; + maxWidth: any; + minHeight: any; + minWidth: any; + msAnimation: string; + msAnimationDelay: string; + msAnimationDirection: string; + msAnimationDuration: string; + msAnimationFillMode: string; + msAnimationIterationCount: string; + msAnimationName: string; + msAnimationPlayState: string; + msAnimationTimingFunction: string; + msBackfaceVisibility: string; + msBlockProgression: string; + msContentZoomChaining: string; + msContentZooming: string; + msContentZoomLimit: string; + msContentZoomLimitMax: any; + msContentZoomLimitMin: any; + msContentZoomSnap: string; + msContentZoomSnapPoints: string; + msContentZoomSnapType: string; + msFlex: string; + msFlexAlign: string; + msFlexDirection: string; + msFlexFlow: string; + msFlexItemAlign: string; + msFlexLinePack: string; + msFlexNegative: any; + msFlexOrder: any; + msFlexPack: string; + msFlexPositive: any; + msFlexPreferredSize: any; + msFlexWrap: string; + msFlowFrom: string; + msFlowInto: string; + msFontFeatureSettings: string; + msGetPropertyEnabled(name: string): boolean; + msGridColumn: any; + msGridColumnAlign: string; + msGridColumns: string; + msGridColumnSpan: any; + msGridRow: any; + msGridRowAlign: string; + msGridRows: string; + msGridRowSpan: any; + msHighContrastAdjust: string; + msHyphenateLimitChars: string; + msHyphenateLimitLines: any; + msHyphenateLimitZone: any; + msHyphens: string; + msImeAlign: string; + msInterpolationMode: string; + msOverflowStyle: string; + msPerspective: any; + msPerspectiveOrigin: string; + msPutPropertyEnabled(name: string, b: boolean): void; + msScrollChaining: string; + msScrollLimit: string; + msScrollLimitXMax: any; + msScrollLimitXMin: any; + msScrollLimitYMax: any; + msScrollLimitYMin: any; + msScrollRails: string; + msScrollSnapPointsX: string; + msScrollSnapPointsY: string; + msScrollSnapType: string; + msScrollSnapX: string; + msScrollSnapY: string; + msScrollTranslation: string; + msTextCombineHorizontal: string; + msTextSizeAdjust: any; + msTouchAction: string; + msTouchSelect: string; + msTransformStyle: string; + msTransition: string; + msTransitionDelay: string; + msTransitionDuration: string; + msTransitionProperty: string; + msTransitionTimingFunction: string; + msUserSelect: string; + msWrapFlow: string; + msWrapMargin: any; + msWrapThrough: string; + orphans: any; + outline: string; + outlineColor: any; + outlineStyle: string; + outlineWidth: any; + overflow: string; + overflowX: string; + overflowY: string; + padding: string; + paddingBottom: any; + paddingLeft: any; + paddingRight: any; + paddingTop: any; + pageBreakAfter: string; + pageBreakBefore: string; + pageBreakInside: string; + readonly parentRule: any; + perspective: any; + perspectiveOrigin: string; + pixelBottom: number; + pixelRight: number; + posBottom: number; + position: string; + posRight: number; + quotes: string; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeProperty(bstrPropertyName: string): string; + right: any; + rubyAlign: string; + rubyOverhang: string; + rubyPosition: string; + scrollbar3dLightColor: any; + scrollbarArrowColor: any; + scrollbarBaseColor: any; + scrollbarDarkShadowColor: any; + scrollbarFaceColor: any; + scrollbarHighlightColor: any; + scrollbarShadowColor: any; + scrollbarTrackColor: any; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + + /** @param any [pvarPropertyPriority=''] */ + setProperty(bstrPropertyName: string, pvarPropertyValue: any, pvarPropertyPriority?: any): void; + styleFloat: string; + tableLayout: string; + textAlign: string; + textAlignLast: string; + textAutospace: string; + textDecoration: string; + textDecorationBlink: boolean; + textDecorationLineThrough: boolean; + textDecorationNone: boolean; + textDecorationOverline: boolean; + textDecorationUnderline: boolean; + textIndent: any; + textJustify: string; + textJustifyTrim: string; + textKashida: any; + textKashidaSpace: any; + textOverflow: string; + textShadow: string; + textTransform: string; + textUnderlinePosition: string; + top: any; + touchAction: string; + transform: string; + transformOrigin: string; + transformStyle: string; + transition: string; + transitionDelay: string; + transitionDuration: string; + transitionProperty: string; + transitionTimingFunction: string; + unicodeBidi: string; + verticalAlign: any; + visibility: string; + webkitAnimation: string; + webkitAnimationDelay: string; + webkitAnimationDirection: string; + webkitAnimationDuration: string; + webkitAnimationFillMode: string; + webkitAnimationIterationCount: string; + webkitAnimationName: string; + webkitAnimationPlayState: string; + webkitAnimationTimingFunction: string; + webkitAppearance: string; + webkitBackfaceVisibility: string; + webkitBackground: string; + webkitBackgroundAttachment: string; + webkitBackgroundClip: string; + webkitBackgroundColor: any; + webkitBackgroundImage: string; + webkitBackgroundOrigin: string; + webkitBackgroundPosition: string; + webkitBackgroundPositionX: any; + webkitBackgroundPositionY: any; + webkitBackgroundRepeat: string; + webkitBackgroundSize: string; + webkitBorderImage: string; + webkitBorderImageOutset: string; + webkitBorderImageRepeat: string; + webkitBorderImageSlice: string; + webkitBorderImageSource: string; + webkitBorderImageWidth: string; + webkitBoxAlign: string; + webkitBoxDirection: string; + webkitBoxFlex: any; + webkitBoxOrdinalGroup: any; + webkitBoxOrient: string; + webkitBoxPack: string; + webkitBoxSizing: string; + webkitTextSizeAdjust: any; + webkitTransform: string; + webkitTransformOrigin: string; + webkitTransition: string; + webkitTransitionDelay: string; + webkitTransitionDuration: string; + webkitTransitionProperty: string; + webkitTransitionTimingFunction: string; + webkitUserSelect: string; + whiteSpace: string; + widows: any; + width: any; + wordBreak: string; + wordSpacing: any; + wordWrap: string; + writingMode: string; + zIndex: any; + zoom: any; + } + + class HTMLScreen { + private 'MSHTML.HTMLScreen_typekey': HTMLScreen; + private constructor(); + readonly availHeight: number; + readonly availWidth: number; + bufferDepth: number; + readonly colorDepth: number; + readonly 'constructor': any; + readonly deviceXDPI: number; + readonly deviceYDPI: number; + readonly fontSmoothingEnabled: boolean; + readonly height: number; + readonly logicalXDPI: number; + readonly logicalYDPI: number; + readonly pixelDepth: number; + readonly systemXDPI: number; + readonly systemYDPI: number; + updateInterval: number; + readonly width: number; + } + + class HTMLScriptElement { + private 'MSHTML.HTMLScriptElement_typekey': HTMLScriptElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + charset: string; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + defer: boolean; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + event: string; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + htmlFor: string; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_src: string; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + src: string; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + text: string; + title: string; + toString(): string; + type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + readonly usedCharset: string; + xmsAcceleratorKey: string; + } + + class HTMLSelectElement { + private 'MSHTML.HTMLSelectElement_typekey': HTMLSelectElement; + private constructor(); + accessKey: string; + add(element: IHTMLElement, before?: any): void; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + ie8_add(pElem: IHTMLOptionElement, pvarBefore: any): void; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_add(pElem: IHTMLOptionElement, pvarBefore: any): void; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + ie9_value: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + item(name?: any, index?: any): any; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + length: number; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + multiple: boolean; + name: string; + namedItem(name: string): any; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + readonly options: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [index=-1] */ + remove(index?: number): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + selectedIndex: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + size: number; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tags(tagName: any): any; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + urns(urn: any): any; + value: string; + xmsAcceleratorKey: string; + } + + class HTMLSemanticElement { + private 'MSHTML.HTMLSemanticElement_typekey': HTMLSemanticElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLSourceElement { + private 'MSHTML.HTMLSourceElement_typekey': HTMLSourceElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + media: string; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + src: string; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLSpanElement { + private 'MSHTML.HTMLSpanElement_typekey': HTMLSpanElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLSpanFlow { + private 'MSHTML.HTMLSpanFlow_typekey': HTMLSpanFlow; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLStorage { + private 'MSHTML.HTMLStorage_typekey': HTMLStorage; + private constructor(); + clear(): void; + readonly 'constructor': any; + getItem(bstrKey: string): any; + ie9_setItem(bstrKey: string, bstrValue: string): void; + key(lIndex: number): string; + readonly length: number; + readonly remainingSpace: number; + removeItem(bstrKey: string): void; + setItem(bstrKey: string, bstrValue: string): void; + } + + class HTMLStyle { + private 'MSHTML.HTMLStyle_typekey': HTMLStyle; + private constructor(); + accelerator: string; + alignContent: string; + alignItems: string; + alignSelf: string; + animation: string; + animationDelay: string; + animationDirection: string; + animationDuration: string; + animationFillMode: string; + animationIterationCount: string; + animationName: string; + animationPlayState: string; + animationTimingFunction: string; + backfaceVisibility: string; + background: string; + backgroundAttachment: string; + backgroundColor: any; + backgroundImage: string; + backgroundPosition: string; + backgroundPositionX: any; + backgroundPositionY: any; + backgroundRepeat: string; + behavior: string; + border: string; + borderBottom: string; + borderBottomColor: any; + borderBottomStyle: string; + borderBottomWidth: any; + borderCollapse: string; + borderColor: string; + borderImage: string; + borderImageOutset: string; + borderImageRepeat: string; + borderImageSlice: string; + borderImageSource: string; + borderImageWidth: string; + borderLeft: string; + borderLeftColor: any; + borderLeftStyle: string; + borderLeftWidth: any; + borderRight: string; + borderRightColor: any; + borderRightStyle: string; + borderRightWidth: any; + borderSpacing: string; + borderStyle: string; + borderTop: string; + borderTopColor: any; + borderTopStyle: string; + borderTopWidth: any; + borderWidth: string; + bottom: any; + boxSizing: string; + breakAfter: string; + breakBefore: string; + breakInside: string; + captionSide: string; + clear: string; + clip: string; + color: any; + colorInterpolationFilters: string; + columnCount: any; + columnFill: string; + columnGap: any; + columnRule: string; + columnRuleColor: any; + columnRuleStyle: string; + columnRuleWidth: any; + columns: string; + columnSpan: string; + columnWidth: any; + readonly 'constructor': any; + content: string; + counterIncrement: string; + counterReset: string; + cssText: string; + cursor: string; + direction: string; + display: string; + emptyCells: string; + enableBackground: string; + filter: string; + flex: string; + flexBasis: any; + flexDirection: string; + flexFlow: string; + flexGrow: any; + flexShrink: any; + flexWrap: string; + floodColor: any; + floodOpacity: any; + font: string; + fontFamily: string; + fontFeatureSettings: string; + fontSize: any; + fontStyle: string; + fontVariant: string; + fontWeight: string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getExpression(propname: string): any; + getPropertyPriority(bstrPropertyName: string): string; + getPropertyValue(bstrPropertyName: string): string; + height: any; + imeMode: string; + item(index: number): string; + justifyContent: string; + layoutFlow: string; + layoutGrid: string; + layoutGridChar: any; + layoutGridLine: any; + layoutGridMode: string; + layoutGridType: string; + left: any; + readonly length: number; + letterSpacing: any; + lightingColor: any; + lineBreak: string; + lineHeight: any; + listStyle: string; + listStyleImage: string; + listStylePosition: string; + listStyleType: string; + margin: string; + marginBottom: any; + marginLeft: any; + marginRight: any; + marginTop: any; + maxHeight: any; + maxWidth: any; + minHeight: any; + minWidth: any; + msAnimation: string; + msAnimationDelay: string; + msAnimationDirection: string; + msAnimationDuration: string; + msAnimationFillMode: string; + msAnimationIterationCount: string; + msAnimationName: string; + msAnimationPlayState: string; + msAnimationTimingFunction: string; + msBackfaceVisibility: string; + msBlockProgression: string; + msContentZoomChaining: string; + msContentZooming: string; + msContentZoomLimit: string; + msContentZoomLimitMax: any; + msContentZoomLimitMin: any; + msContentZoomSnap: string; + msContentZoomSnapPoints: string; + msContentZoomSnapType: string; + msFlex: string; + msFlexAlign: string; + msFlexDirection: string; + msFlexFlow: string; + msFlexItemAlign: string; + msFlexLinePack: string; + msFlexNegative: any; + msFlexOrder: any; + msFlexPack: string; + msFlexPositive: any; + msFlexPreferredSize: any; + msFlexWrap: string; + msFlowFrom: string; + msFlowInto: string; + msFontFeatureSettings: string; + msGetPropertyEnabled(name: string): boolean; + msGridColumn: any; + msGridColumnAlign: string; + msGridColumns: string; + msGridColumnSpan: any; + msGridRow: any; + msGridRowAlign: string; + msGridRows: string; + msGridRowSpan: any; + msHighContrastAdjust: string; + msHyphenateLimitChars: string; + msHyphenateLimitLines: any; + msHyphenateLimitZone: any; + msHyphens: string; + msImeAlign: string; + msInterpolationMode: string; + msOverflowStyle: string; + msPerspective: any; + msPerspectiveOrigin: string; + msPutPropertyEnabled(name: string, b: boolean): void; + msScrollChaining: string; + msScrollLimit: string; + msScrollLimitXMax: any; + msScrollLimitXMin: any; + msScrollLimitYMax: any; + msScrollLimitYMin: any; + msScrollRails: string; + msScrollSnapPointsX: string; + msScrollSnapPointsY: string; + msScrollSnapType: string; + msScrollSnapX: string; + msScrollSnapY: string; + msScrollTranslation: string; + msTextCombineHorizontal: string; + msTextSizeAdjust: any; + msTouchAction: string; + msTouchSelect: string; + msTransformStyle: string; + msTransition: string; + msTransitionDelay: string; + msTransitionDuration: string; + msTransitionProperty: string; + msTransitionTimingFunction: string; + msUserSelect: string; + msWrapFlow: string; + msWrapMargin: any; + msWrapThrough: string; + orphans: any; + outline: string; + outlineColor: any; + outlineStyle: string; + outlineWidth: any; + overflow: string; + overflowX: string; + overflowY: string; + padding: string; + paddingBottom: any; + paddingLeft: any; + paddingRight: any; + paddingTop: any; + pageBreakAfter: string; + pageBreakBefore: string; + pageBreakInside: string; + readonly parentRule: any; + perspective: any; + perspectiveOrigin: string; + pixelBottom: number; + pixelHeight: number; + pixelLeft: number; + pixelRight: number; + pixelTop: number; + pixelWidth: number; + posBottom: number; + posHeight: number; + position: string; + posLeft: number; + posRight: number; + posTop: number; + posWidth: number; + quotes: string; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeExpression(propname: string): boolean; + removeProperty(bstrPropertyName: string): string; + right: any; + rubyAlign: string; + rubyOverhang: string; + rubyPosition: string; + scrollbar3dLightColor: any; + scrollbarArrowColor: any; + scrollbarBaseColor: any; + scrollbarDarkShadowColor: any; + scrollbarFaceColor: any; + scrollbarHighlightColor: any; + scrollbarShadowColor: any; + scrollbarTrackColor: any; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + + /** @param any [pvarPropertyPriority=''] */ + setProperty(bstrPropertyName: string, pvarPropertyValue: any, pvarPropertyPriority?: any): void; + styleFloat: string; + tableLayout: string; + textAlign: string; + textAlignLast: string; + textAutospace: string; + textDecoration: string; + textDecorationBlink: boolean; + textDecorationLineThrough: boolean; + textDecorationNone: boolean; + textDecorationOverline: boolean; + textDecorationUnderline: boolean; + textIndent: any; + textJustify: string; + textJustifyTrim: string; + textKashida: any; + textKashidaSpace: any; + textOverflow: string; + textShadow: string; + textTransform: string; + textUnderlinePosition: string; + top: any; + toString(): string; + touchAction: string; + transform: string; + transformOrigin: string; + transformStyle: string; + transition: string; + transitionDelay: string; + transitionDuration: string; + transitionProperty: string; + transitionTimingFunction: string; + unicodeBidi: string; + verticalAlign: any; + visibility: string; + webkitAnimation: string; + webkitAnimationDelay: string; + webkitAnimationDirection: string; + webkitAnimationDuration: string; + webkitAnimationFillMode: string; + webkitAnimationIterationCount: string; + webkitAnimationName: string; + webkitAnimationPlayState: string; + webkitAnimationTimingFunction: string; + webkitAppearance: string; + webkitBackfaceVisibility: string; + webkitBackground: string; + webkitBackgroundAttachment: string; + webkitBackgroundClip: string; + webkitBackgroundColor: any; + webkitBackgroundImage: string; + webkitBackgroundOrigin: string; + webkitBackgroundPosition: string; + webkitBackgroundPositionX: any; + webkitBackgroundPositionY: any; + webkitBackgroundRepeat: string; + webkitBackgroundSize: string; + webkitBorderImage: string; + webkitBorderImageOutset: string; + webkitBorderImageRepeat: string; + webkitBorderImageSlice: string; + webkitBorderImageSource: string; + webkitBorderImageWidth: string; + webkitBoxAlign: string; + webkitBoxDirection: string; + webkitBoxFlex: any; + webkitBoxOrdinalGroup: any; + webkitBoxOrient: string; + webkitBoxPack: string; + webkitBoxSizing: string; + webkitTextSizeAdjust: any; + webkitTransform: string; + webkitTransformOrigin: string; + webkitTransition: string; + webkitTransitionDelay: string; + webkitTransitionDuration: string; + webkitTransitionProperty: string; + webkitTransitionTimingFunction: string; + webkitUserSelect: string; + whiteSpace: string; + widows: any; + width: any; + wordBreak: string; + wordSpacing: any; + wordWrap: string; + writingMode: string; + zIndex: any; + zoom: any; + } + + class HTMLStyleElement { + private 'MSHTML.HTMLStyleElement_typekey': HTMLStyleElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + media: string; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sheet: IHTMLStyleSheet; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + readonly styleSheet: IHTMLStyleSheet; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLStyleFontFace { + private 'MSHTML.HTMLStyleFontFace_typekey': HTMLStyleFontFace; + private constructor(); + cssText: string; + fontsrc: string; + readonly parentRule: IHTMLCSSRule; + readonly parentStyleSheet: IHTMLStyleSheet; + readonly style: IHTMLRuleStyle; + readonly type: number; + } + + class HTMLStyleMedia { + private 'MSHTML.HTMLStyleMedia_typekey': HTMLStyleMedia; + private constructor(); + matchMedium(mediaQuery: string): boolean; + readonly type: string; + } + + class HTMLStyleSheet { + private 'MSHTML.HTMLStyleSheet_typekey': HTMLStyleSheet; + private constructor(); + + /** @param number [lIndex=-1] */ + addImport(bstrURL: string, lIndex?: number): number; + + /** @param number [lIndex=-1] */ + addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number; + + /** @param number [lIndex=-1] */ + addRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number; + readonly 'constructor': any; + readonly cssRules: IHTMLStyleSheetRulesCollection; + cssText: string; + + /** @param number [lIndex=-1] */ + deleteRule(lIndex?: number): void; + disabled: boolean; + href: string; + readonly id: string; + ie8_href: string; + readonly ie9_href: any; + readonly ie9_media: any; + readonly ie9_title: string; + readonly ie9_type: string; + readonly imports: IHTMLStyleSheetsCollection; + + /** @param number [lIndex=-1] */ + insertRule(bstrRule: string, lIndex?: number): number; + readonly isAlternate: boolean; + readonly isPrefAlternate: boolean; + media: string; + readonly ownerNode: IHTMLElement; + readonly ownerRule: IHTMLCSSRule; + readonly owningElement: IHTMLElement; + readonly pages: IHTMLStyleSheetPagesCollection; + readonly parentStyleSheet: IHTMLStyleSheet; + readonly readOnly: boolean; + removeImport(lIndex: number): void; + removeRule(lIndex: number): void; + readonly rules: IHTMLStyleSheetRulesCollection; + title: string; + readonly type: string; + } + + class HTMLStyleSheetPage { + private 'MSHTML.HTMLStyleSheetPage_typekey': HTMLStyleSheetPage; + private constructor(); + readonly 'constructor': any; + cssText: string; + readonly parentRule: IHTMLCSSRule; + readonly parentStyleSheet: IHTMLStyleSheet; + readonly pseudoClass: string; + readonly selector: string; + selectorText: string; + readonly style: IHTMLRuleStyle; + readonly type: number; + } + + class HTMLStyleSheetPagesCollection { + private 'MSHTML.HTMLStyleSheetPagesCollection_typekey': HTMLStyleSheetPagesCollection; + private constructor(); + readonly 'constructor': any; + item(index: number): IHTMLStyleSheetPage; + readonly length: number; + } + + class HTMLStyleSheetRule { + private 'MSHTML.HTMLStyleSheetRule_typekey': HTMLStyleSheetRule; + private constructor(); + readonly 'constructor': any; + cssText: string; + ie9_selectorText: string; + msGetSpecificity(index: number): number; + readonly parentRule: IHTMLCSSRule; + readonly parentStyleSheet: IHTMLStyleSheet; + readonly readOnly: boolean; + selectorText: string; + readonly style: IHTMLRuleStyle; + readonly type: number; + } + + class HTMLStyleSheetRulesAppliedCollection { + private 'MSHTML.HTMLStyleSheetRulesAppliedCollection_typekey': HTMLStyleSheetRulesAppliedCollection; + private constructor(); + item(index: number): IHTMLStyleSheetRule; + readonly length: number; + propertyAppliedBy(name: string): IHTMLStyleSheetRule; + propertyAppliedTrace(name: string, index: number): IHTMLStyleSheetRule; + propertyAppliedTraceLength(name: string): number; + } + + class HTMLStyleSheetRulesCollection { + private 'MSHTML.HTMLStyleSheetRulesCollection_typekey': HTMLStyleSheetRulesCollection; + private constructor(); + readonly 'constructor': any; + ie9_item(index: number): IHTMLCSSRule; + readonly ie9_length: number; + item(index: number): IHTMLStyleSheetRule; + readonly length: number; + } + + class HTMLStyleSheetsCollection { + private 'MSHTML.HTMLStyleSheetsCollection_typekey': HTMLStyleSheetsCollection; + private constructor(); + readonly 'constructor': any; + ie9_item(index: number): any; + item(pvarIndex: any): any; + readonly length: number; + } + + class HTMLTable { + private 'MSHTML.HTMLTable_typekey': HTMLTable; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + background: string; + readonly behaviorUrns: any; + bgColor: any; + blur(): void; + border: any; + borderColor: any; + borderColorDark: any; + borderColorLight: any; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly caption: IHTMLTableCaption; + cellPadding: any; + readonly cells: IHTMLElementCollection; + cellSpacing: any; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + cols: number; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createCaption(): IHTMLTableCaption; + createControlRange(): any; + createTBody(): IHTMLTableSection; + createTFoot(): any; + createTHead(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataPageSize: number; + dataSrc: string; + deleteCaption(): void; + + /** @param number [index=-1] */ + deleteRow(index?: number): void; + deleteTFoot(): void; + deleteTHead(): void; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + firstPage(): void; + focus(): void; + frame: string; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + height: any; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_caption: IHTMLTableCaption; + + /** @param number [index=-1] */ + ie9_deleteRow(index?: number): void; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + + /** @param number [index=-1] */ + ie9_insertRow(index?: number): any; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + ie9_tFoot: IHTMLTableSection; + ie9_tHead: IHTMLTableSection; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + + /** @param number [index=-1] */ + insertRow(index?: number): any; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + lastPage(): void; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + + /** + * @param number [indexFrom=-1] + * @param number [indexTo=-1] + */ + moveRow(indexFrom?: number, indexTo?: number): any; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly namespaceURI: any; + nextPage(): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + previousPage(): void; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + refresh(): void; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly rows: IHTMLElementCollection; + rules: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + summary: string; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + readonly tBodies: IHTMLElementCollection; + textContent: any; + readonly tFoot: IHTMLTableSection; + readonly tHead: IHTMLTableSection; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + width: any; + xmsAcceleratorKey: string; + } + + class HTMLTableCaption { + private 'MSHTML.HTMLTableCaption_typekey': HTMLTableCaption; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + vAlign: string; + xmsAcceleratorKey: string; + } + + class HTMLTableCell { + private 'MSHTML.HTMLTableCell_typekey': HTMLTableCell; + private constructor(); + abbr: string; + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + axis: string; + background: string; + readonly behaviorUrns: any; + bgColor: any; + blur(): void; + borderColor: any; + borderColorDark: any; + borderColorLight: any; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly cellIndex: number; + ch: string; + readonly childNodes: any; + readonly children: any; + chOff: string; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + colSpan: number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + headers: string; + height: any; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_ch: string; + ie9_chOff: string; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + noWrap: boolean; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + rowSpan: number; + readonly runtimeStyle: IHTMLStyle; + scope: string; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + vAlign: string; + width: any; + xmsAcceleratorKey: string; + } + + class HTMLTableCol { + private 'MSHTML.HTMLTableCol_typekey': HTMLTableCol; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + ch: string; + readonly childNodes: any; + readonly children: any; + chOff: string; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_ch: string; + ie9_chOff: string; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + span: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + vAlign: string; + width: any; + xmsAcceleratorKey: string; + } + + class HTMLTableRow { + private 'MSHTML.HTMLTableRow_typekey': HTMLTableRow; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + bgColor: any; + blur(): void; + borderColor: any; + borderColorDark: any; + borderColorLight: any; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly cells: IHTMLElementCollection; + ch: string; + readonly childNodes: any; + readonly children: any; + chOff: string; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + + /** @param number [index=-1] */ + deleteCell(index?: number): void; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + height: any; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_ch: string; + ie9_chOff: string; + + /** @param number [index=-1] */ + ie9_deleteCell(index?: number): void; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + + /** @param number [index=-1] */ + ie9_insertCell(index?: number): any; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + + /** @param number [index=-1] */ + insertCell(index?: number): any; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly rowIndex: number; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + readonly sectionRowIndex: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + vAlign: string; + xmsAcceleratorKey: string; + } + + class HTMLTableSection { + private 'MSHTML.HTMLTableSection_typekey': HTMLTableSection; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + align: string; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + bgColor: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + ch: string; + readonly childNodes: any; + readonly children: any; + chOff: string; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + + /** @param number [index=-1] */ + deleteRow(index?: number): void; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_ch: string; + ie9_chOff: string; + + /** @param number [index=-1] */ + ie9_deleteRow(index?: number): void; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + + /** @param number [index=-1] */ + ie9_insertRow(index?: number): any; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + + /** @param number [index=-1] */ + insertRow(index?: number): any; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + + /** + * @param number [indexFrom=-1] + * @param number [indexTo=-1] + */ + moveRow(indexFrom?: number, indexTo?: number): any; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly rows: IHTMLElementCollection; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + vAlign: string; + xmsAcceleratorKey: string; + } + + class HTMLTextAreaElement { + private 'MSHTML.HTMLTextAreaElement_typekey': HTMLTextAreaElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + cols: number; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + createTextRange(): IHTMLTxtRange; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + defaultValue: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readOnly: boolean; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + rows: number; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + select(): void; + selectionEnd: number; + selectionStart: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + setSelectionRange(start: number, end: number): void; + readonly sourceIndex: number; + spellcheck: any; + status: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + value: string; + wrap: string; + xmsAcceleratorKey: string; + } + + class HTMLTextElement { + private 'MSHTML.HTMLTextElement_typekey': HTMLTextElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLTimeRanges { + private 'MSHTML.HTMLTimeRanges_typekey': HTMLTimeRanges; + private constructor(); + end(index: number): number; + endDouble(index: number): number; + readonly length: number; + start(index: number): number; + startDouble(index: number): number; + } + + class HTMLTitleElement { + private 'MSHTML.HTMLTitleElement_typekey': HTMLTitleElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + text: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLUListElement { + private 'MSHTML.HTMLUListElement_typekey': HTMLUListElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compact: boolean; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLUnknownElement { + private 'MSHTML.HTMLUnknownElement_typekey': HTMLUnknownElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + xmsAcceleratorKey: string; + } + + class HTMLUrnCollection { + private 'MSHTML.HTMLUrnCollection_typekey': HTMLUrnCollection; + private constructor(); + readonly 'constructor': any; + item(index: number): string; + readonly length: number; + } + + class HTMLVideoElement { + private 'MSHTML.HTMLVideoElement_typekey': HTMLVideoElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + autobuffer: boolean; + autoplay: boolean; + readonly behaviorUrns: any; + blur(): void; + readonly buffered: IHTMLTimeRanges; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + canPlayType(type: string): string; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + controls: boolean; + createControlRange(): any; + readonly currentSrc: string; + readonly currentStyle: IHTMLCurrentStyle; + currentTime: number; + currentTimeDouble: number; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + defaultPlaybackRate: number; + defaultPlaybackRateDouble: number; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly duration: number; + readonly durationDouble: number; + readonly ended: boolean; + readonly error: IHTMLMediaError; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + height: number; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + readonly initialTime: number; + readonly initialTimeDouble: number; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + load(): void; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + loop: boolean; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msPlayToDisabled: boolean; + msPlayToPrimary: boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + muted: boolean; + readonly namespaceURI: any; + readonly networkState: number; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + pause(): void; + readonly paused: boolean; + play(): void; + playbackRate: number; + playbackRateDouble: number; + readonly played: IHTMLTimeRanges; + poster: string; + prefix: any; + preload: string; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + readonly seekable: IHTMLTimeRanges; + readonly seeking: boolean; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + src: string; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + readonly videoHeight: number; + readonly videoWidth: number; + volume: number; + volumeDouble: number; + width: number; + xmsAcceleratorKey: string; + } + + class HTMLW3CComputedStyle { + private 'MSHTML.HTMLW3CComputedStyle_typekey': HTMLW3CComputedStyle; + private constructor(); + accelerator: string; + alignContent: string; + alignItems: string; + alignmentBaseline: string; + alignSelf: string; + animation: string; + animationDelay: string; + animationDirection: string; + animationDuration: string; + animationFillMode: string; + animationIterationCount: string; + animationName: string; + animationPlayState: string; + animationTimingFunction: string; + backfaceVisibility: string; + background: string; + backgroundAttachment: string; + backgroundClip: string; + backgroundColor: any; + backgroundImage: string; + backgroundOrigin: string; + backgroundPosition: string; + backgroundPositionX: any; + backgroundPositionY: any; + backgroundRepeat: string; + backgroundSize: string; + baselineShift: any; + behavior: string; + border: string; + borderBottom: string; + borderBottomColor: any; + borderBottomLeftRadius: string; + borderBottomRightRadius: string; + borderBottomStyle: string; + borderBottomWidth: any; + borderCollapse: string; + borderColor: string; + borderImage: string; + borderImageOutset: string; + borderImageRepeat: string; + borderImageSlice: string; + borderImageSource: string; + borderImageWidth: string; + borderLeft: string; + borderLeftColor: any; + borderLeftStyle: string; + borderLeftWidth: any; + borderRadius: string; + borderRight: string; + borderRightColor: any; + borderRightStyle: string; + borderRightWidth: any; + borderSpacing: string; + borderStyle: string; + borderTop: string; + borderTopColor: any; + borderTopLeftRadius: string; + borderTopRightRadius: string; + borderTopStyle: string; + borderTopWidth: any; + borderWidth: string; + bottom: any; + boxShadow: string; + boxSizing: string; + breakAfter: string; + breakBefore: string; + breakInside: string; + captionSide: string; + clear: string; + clip: string; + readonly clipBottom: any; + clipLeft: any; + clipPath: string; + clipRight: any; + clipRule: string; + clipTop: any; + color: any; + colorInterpolationFilters: string; + columnCount: any; + columnFill: string; + columnGap: any; + columnRule: string; + columnRuleColor: any; + columnRuleStyle: string; + columnRuleWidth: any; + columns: string; + columnSpan: string; + columnWidth: any; + content: string; + counterIncrement: string; + counterReset: string; + cssFloat: string; + cssText: string; + cursor: string; + direction: string; + display: string; + dominantBaseline: string; + emptyCells: string; + enableBackground: string; + fill: string; + fillOpacity: any; + fillRule: string; + filter: string; + flex: string; + flexBasis: any; + flexDirection: string; + flexFlow: string; + flexGrow: any; + flexShrink: any; + flexWrap: string; + floodColor: any; + floodOpacity: any; + font: string; + fontFamily: string; + fontFeatureSettings: string; + fontSize: any; + fontSizeAdjust: any; + fontStretch: string; + fontStyle: string; + fontVariant: string; + fontWeight: string; + getPropertyPriority(bstrPropertyName: string): string; + getPropertyValue(bstrPropertyName: string): string; + glyphOrientationHorizontal: any; + glyphOrientationVertical: any; + height: any; + imeMode: string; + item(index: number): string; + justifyContent: string; + kerning: any; + layoutFlow: string; + layoutGrid: string; + layoutGridChar: any; + layoutGridLine: any; + layoutGridMode: string; + layoutGridType: string; + left: any; + readonly length: number; + letterSpacing: any; + lightingColor: any; + lineBreak: string; + lineHeight: any; + listStyle: string; + listStyleImage: string; + listStylePosition: string; + listStyleType: string; + margin: string; + marginBottom: any; + marginLeft: any; + marginRight: any; + marginTop: any; + marker: string; + markerEnd: string; + markerMid: string; + markerStart: string; + mask: string; + maxHeight: any; + maxWidth: any; + minHeight: any; + minWidth: any; + msAnimation: string; + msAnimationDelay: string; + msAnimationDirection: string; + msAnimationDuration: string; + msAnimationFillMode: string; + msAnimationIterationCount: string; + msAnimationName: string; + msAnimationPlayState: string; + msAnimationTimingFunction: string; + msBackfaceVisibility: string; + msBlockProgression: string; + msContentZoomChaining: string; + msContentZooming: string; + msContentZoomLimit: string; + msContentZoomLimitMax: any; + msContentZoomLimitMin: any; + msContentZoomSnap: string; + msContentZoomSnapPoints: string; + msContentZoomSnapType: string; + msFlex: string; + msFlexAlign: string; + msFlexDirection: string; + msFlexFlow: string; + msFlexItemAlign: string; + msFlexLinePack: string; + msFlexNegative: any; + msFlexOrder: any; + msFlexPack: string; + msFlexPositive: any; + msFlexPreferredSize: any; + msFlexWrap: string; + msFlowFrom: string; + msFlowInto: string; + msFontFeatureSettings: string; + msGridColumn: any; + msGridColumnAlign: string; + msGridColumns: string; + msGridColumnSpan: any; + msGridRow: any; + msGridRowAlign: string; + msGridRows: string; + msGridRowSpan: any; + msHighContrastAdjust: string; + msHyphenateLimitChars: string; + msHyphenateLimitLines: any; + msHyphenateLimitZone: any; + msHyphens: string; + msImeAlign: string; + msInterpolationMode: string; + msOverflowStyle: string; + msPerspective: any; + msPerspectiveOrigin: string; + msScrollChaining: string; + msScrollLimit: string; + msScrollLimitXMax: any; + msScrollLimitXMin: any; + msScrollLimitYMax: any; + msScrollLimitYMin: any; + msScrollRails: string; + msScrollSnapPointsX: string; + msScrollSnapPointsY: string; + msScrollSnapType: string; + msScrollSnapX: string; + msScrollSnapY: string; + msScrollTranslation: string; + msTextCombineHorizontal: string; + msTextSizeAdjust: any; + msTouchAction: string; + msTouchSelect: string; + msTransform: string; + msTransformOrigin: string; + msTransformStyle: string; + msTransition: string; + msTransitionDelay: string; + msTransitionDuration: string; + msTransitionProperty: string; + msTransitionTimingFunction: string; + msUserSelect: string; + msWrapFlow: string; + msWrapMargin: any; + msWrapThrough: string; + opacity: any; + orphans: any; + outline: string; + outlineColor: any; + outlineStyle: string; + outlineWidth: any; + overflow: string; + overflowX: string; + overflowY: string; + padding: string; + paddingBottom: any; + paddingLeft: any; + paddingRight: any; + paddingTop: any; + pageBreakAfter: string; + pageBreakBefore: string; + pageBreakInside: string; + readonly parentRule: any; + perspective: any; + perspectiveOrigin: string; + pointerEvents: string; + position: string; + quotes: string; + removeProperty(bstrPropertyName: string): string; + right: any; + rubyAlign: string; + rubyOverhang: string; + rubyPosition: string; + scrollbar3dLightColor: any; + scrollbarArrowColor: any; + scrollbarBaseColor: any; + scrollbarDarkShadowColor: any; + scrollbarFaceColor: any; + scrollbarHighlightColor: any; + scrollbarShadowColor: any; + scrollbarTrackColor: any; + + /** @param any [pvarPropertyPriority=''] */ + setProperty(bstrPropertyName: string, pvarPropertyValue: any, pvarPropertyPriority?: any): void; + stopColor: any; + stopOpacity: any; + stroke: string; + strokeDasharray: string; + strokeDashoffset: any; + strokeLinecap: string; + strokeLinejoin: string; + strokeMiterlimit: any; + strokeOpacity: any; + strokeWidth: any; + styleFloat: string; + tableLayout: string; + textAlign: string; + textAlignLast: string; + textAnchor: string; + textAutospace: string; + textDecoration: string; + textIndent: any; + textJustify: string; + textJustifyTrim: string; + textKashida: any; + textKashidaSpace: any; + textOverflow: string; + textShadow: string; + textTransform: string; + textUnderlinePosition: string; + top: any; + touchAction: string; + transform: string; + transformOrigin: string; + transformStyle: string; + transition: string; + transitionDelay: string; + transitionDuration: string; + transitionProperty: string; + transitionTimingFunction: string; + unicodeBidi: string; + verticalAlign: any; + visibility: string; + webkitAnimation: string; + webkitAnimationDelay: string; + webkitAnimationDirection: string; + webkitAnimationDuration: string; + webkitAnimationFillMode: string; + webkitAnimationIterationCount: string; + webkitAnimationName: string; + webkitAnimationPlayState: string; + webkitAnimationTimingFunction: string; + webkitAppearance: string; + webkitBackfaceVisibility: string; + webkitBackground: string; + webkitBackgroundAttachment: string; + webkitBackgroundClip: string; + webkitBackgroundColor: any; + webkitBackgroundImage: string; + webkitBackgroundOrigin: string; + webkitBackgroundPosition: string; + webkitBackgroundPositionX: any; + webkitBackgroundPositionY: any; + webkitBackgroundRepeat: string; + webkitBackgroundSize: string; + webkitBorderImage: string; + webkitBorderImageOutset: string; + webkitBorderImageRepeat: string; + webkitBorderImageSlice: string; + webkitBorderImageSource: string; + webkitBorderImageWidth: string; + webkitBoxAlign: string; + webkitBoxDirection: string; + webkitBoxFlex: any; + webkitBoxOrdinalGroup: any; + webkitBoxOrient: string; + webkitBoxPack: string; + webkitBoxSizing: string; + webkitTextSizeAdjust: any; + webkitTransform: string; + webkitTransformOrigin: string; + webkitTransition: string; + webkitTransitionDelay: string; + webkitTransitionDuration: string; + webkitTransitionProperty: string; + webkitTransitionTimingFunction: string; + webkitUserSelect: string; + whiteSpace: string; + widows: any; + width: any; + wordBreak: string; + wordSpacing: any; + wordWrap: string; + writingMode: string; + zIndex: any; + zoom: any; + } + + class HTMLWindow2 { + private 'MSHTML.HTMLWindow2_typekey': HTMLWindow2; + private constructor(); + addEventListener(type: string, listener: any, useCapture: boolean): void; + + /** @param string [message=''] */ + alert(message?: string): void; + readonly applicationCache: applicationCache; + attachEvent(event: string, pdisp: any): boolean; + blur(): void; + clearInterval(timerID: number): void; + clearTimeout(timerID: number): void; + readonly clientInformation: IOmNavigator; + readonly clipboardData: IHTMLDataTransfer; + close(): void; + readonly closed: boolean; + + /** @param string [message=''] */ + confirm(message?: string): boolean; + readonly 'constructor': any; + createPopup(varArgIn?: any): any; + defaultStatus: string; + detachEvent(event: string, pdisp: any): void; + dispatchEvent(evt: IDOMEvent): boolean; + readonly document: IHTMLDocument2; + readonly event: IHTMLEventObj; + + /** @param string [language='JScript'] */ + execScript(code: string, language?: string): any; + readonly external: any; + focus(): void; + readonly frameElement: IHTMLFrameBase; + readonly frames: FramesCollection; + + /** @param string [bstrPseudoElt=''] */ + getComputedStyle(varArgIn: IHTMLDOMNode, bstrPseudoElt?: string): IHTMLCSSStyleDeclaration; + getSelection(): IHTMLSelection; + readonly history: IOmHistory; + readonly innerHeight: number; + readonly innerWidth: number; + item(pvarIndex: any): any; + readonly length: number; + readonly localStorage: IHTMLStorage; + readonly location: IHTMLLocation; + readonly maxConnectionsPerServer: number; + moveBy(x: number, y: number): void; + moveTo(x: number, y: number): void; + msWriteProfilerMark(bstrProfilerMarkName: string): void; + name: string; + navigate(url: string): void; + readonly navigator: IOmNavigator; + offscreenBuffering: any; + onabort: any; + onafterprint: any; + onbeforeprint: any; + onbeforeunload: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + onchange: any; + onclick: any; + oncontextmenu: any; + ondblclick: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhashchange: any; + onhelp: any; + oninput: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onmessage: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsinertiastart: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onoffline: any; + ononline: any; + onpause: any; + onplay: any; + onplaying: any; + onpopstate: any; + onprogress: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onstalled: any; + onstorage: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onunload: any; + onvolumechange: any; + onwaiting: any; + + /** + * @param string [url=''] + * @param string [name=''] + * @param string [features=''] + * @param boolean [replace=false] + */ + open(url?: string, name?: string, features?: string, replace?: boolean): IHTMLWindow2; + opener: any; + readonly outerHeight: number; + readonly outerWidth: number; + readonly pageXOffset: number; + readonly pageYOffset: number; + readonly parent: IHTMLWindow2; + performance: any; + postMessage(msg: string, targetOrigin?: any): void; + print(): void; + + /** + * @param string [message=''] + * @param string [defstr='undefined'] + */ + prompt(message?: string, defstr?: string): any; + removeEventListener(type: string, listener: any, useCapture: boolean): void; + resizeBy(x: number, y: number): void; + resizeTo(x: number, y: number): void; + readonly screen: IHTMLScreen; + readonly screenLeft: number; + readonly screenTop: number; + readonly screenX: number; + readonly screenY: number; + scroll(x: number, y: number): void; + scrollBy(x: number, y: number): void; + scrollTo(x: number, y: number): void; + readonly self: IHTMLWindow2; + readonly sessionStorage: IHTMLStorage; + setInterval(expression: any, msec: number, language?: any): number; + setTimeout(expression: any, msec: number, language?: any): number; + + /** @param string [features=''] */ + showHelp(helpURL: string, helpArg: any, features?: string): void; + showModalDialog(dialog: string, varArgIn?: any, varOptions?: any): any; + + /** @param string [url=''] */ + showModelessDialog(url?: string, varArgIn?: any, options?: any): IHTMLWindow2; + status: string; + readonly styleMedia: IHTMLStyleMedia; + readonly top: IHTMLWindow2; + toStaticHTML(bstrHTML: string): string; + toString(): string; + readonly window: IHTMLWindow2; + } + + class HTMLWindowProxy { + private 'MSHTML.HTMLWindowProxy_typekey': HTMLWindowProxy; + private constructor(); + addEventListener(type: string, listener: any, useCapture: boolean): void; + + /** @param string [message=''] */ + alert(message?: string): void; + readonly applicationCache: applicationCache; + attachEvent(event: string, pdisp: any): boolean; + blur(): void; + clearInterval(timerID: number): void; + clearTimeout(timerID: number): void; + readonly clientInformation: IOmNavigator; + readonly clipboardData: IHTMLDataTransfer; + close(): void; + readonly closed: boolean; + + /** @param string [message=''] */ + confirm(message?: string): boolean; + readonly 'constructor': any; + createPopup(varArgIn?: any): any; + defaultStatus: string; + detachEvent(event: string, pdisp: any): void; + dispatchEvent(evt: IDOMEvent): boolean; + readonly document: IHTMLDocument2; + readonly event: IHTMLEventObj; + + /** @param string [language='JScript'] */ + execScript(code: string, language?: string): any; + readonly external: any; + focus(): void; + readonly frameElement: IHTMLFrameBase; + readonly frames: FramesCollection; + + /** @param string [bstrPseudoElt=''] */ + getComputedStyle(varArgIn: IHTMLDOMNode, bstrPseudoElt?: string): IHTMLCSSStyleDeclaration; + getSelection(): IHTMLSelection; + readonly history: IOmHistory; + readonly innerHeight: number; + readonly innerWidth: number; + item(pvarIndex: any): any; + readonly length: number; + readonly localStorage: IHTMLStorage; + readonly location: IHTMLLocation; + readonly maxConnectionsPerServer: number; + moveBy(x: number, y: number): void; + moveTo(x: number, y: number): void; + msWriteProfilerMark(bstrProfilerMarkName: string): void; + name: string; + navigate(url: string): void; + readonly navigator: IOmNavigator; + offscreenBuffering: any; + onabort: any; + onafterprint: any; + onbeforeprint: any; + onbeforeunload: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + onchange: any; + onclick: any; + oncontextmenu: any; + ondblclick: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhashchange: any; + onhelp: any; + oninput: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onmessage: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsinertiastart: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onoffline: any; + ononline: any; + onpause: any; + onplay: any; + onplaying: any; + onpopstate: any; + onprogress: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onstalled: any; + onstorage: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onunload: any; + onvolumechange: any; + onwaiting: any; + + /** + * @param string [url=''] + * @param string [name=''] + * @param string [features=''] + * @param boolean [replace=false] + */ + open(url?: string, name?: string, features?: string, replace?: boolean): IHTMLWindow2; + opener: any; + readonly outerHeight: number; + readonly outerWidth: number; + readonly pageXOffset: number; + readonly pageYOffset: number; + readonly parent: IHTMLWindow2; + performance: any; + postMessage(msg: string, targetOrigin?: any): void; + print(): void; + + /** + * @param string [message=''] + * @param string [defstr='undefined'] + */ + prompt(message?: string, defstr?: string): any; + removeEventListener(type: string, listener: any, useCapture: boolean): void; + resizeBy(x: number, y: number): void; + resizeTo(x: number, y: number): void; + readonly screen: IHTMLScreen; + readonly screenLeft: number; + readonly screenTop: number; + readonly screenX: number; + readonly screenY: number; + scroll(x: number, y: number): void; + scrollBy(x: number, y: number): void; + scrollTo(x: number, y: number): void; + readonly self: IHTMLWindow2; + readonly sessionStorage: IHTMLStorage; + setInterval(expression: any, msec: number, language?: any): number; + setTimeout(expression: any, msec: number, language?: any): number; + + /** @param string [features=''] */ + showHelp(helpURL: string, helpArg: any, features?: string): void; + showModalDialog(dialog: string, varArgIn?: any, varOptions?: any): any; + + /** @param string [url=''] */ + showModelessDialog(url?: string, varArgIn?: any, options?: any): IHTMLWindow2; + status: string; + readonly styleMedia: IHTMLStyleMedia; + readonly top: IHTMLWindow2; + toStaticHTML(bstrHTML: string): string; + toString(): string; + readonly window: IHTMLWindow2; + } + + class HTMLWndOptionElement { + private 'MSHTML.HTMLWndOptionElement_typekey': HTMLWndOptionElement; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + defaultSelected: boolean; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + index: number; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + label: string; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + selected: boolean; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tagUrn: string; + text: string; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + value: string; + xmsAcceleratorKey: string; + } + + class HTMLWndSelectElement { + private 'MSHTML.HTMLWndSelectElement_typekey': HTMLWndSelectElement; + private constructor(); + accessKey: string; + add(element: IHTMLElement, before?: any): void; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + dataFld: string; + dataFormatAs: string; + dataSrc: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly form: IHTMLFormElement; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + isDefaultNamespace(pvarNamespace: any): boolean; + readonly isDisabled: boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + readonly isMultiLine: boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly isTextEdit: boolean; + item(name?: any, index?: any): any; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + length: number; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + multiple: boolean; + name: string; + namedItem(name: string): any; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + readonly options: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [index=-1] */ + remove(index?: number): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + selectedIndex: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + size: number; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tags(tagName: any): any; + tagUrn: string; + textContent: any; + title: string; + toString(): string; + readonly type: string; + readonly uniqueID: string; + readonly uniqueNumber: number; + urns(urn: any): any; + value: string; + xmsAcceleratorKey: string; + } + + class HTMLXMLHttpRequest { + private 'MSHTML.HTMLXMLHttpRequest_typekey': HTMLXMLHttpRequest; + private constructor(); + abort(): void; + addEventListener(type: string, listener: any, useCapture: boolean): void; + readonly 'constructor': any; + dispatchEvent(evt: IDOMEvent): boolean; + getAllResponseHeaders(): string; + getResponseHeader(bstrHeader: string): string; + onreadystatechange: any; + ontimeout: any; + open(bstrMethod: string, bstrURL: string, varAsync: any, varUser?: any, varPassword?: any): void; + readonly readyState: number; + removeEventListener(type: string, listener: any, useCapture: boolean): void; + readonly responseBody: any; + readonly responseText: string; + readonly responseXML: any; + send(varBody?: any): void; + setRequestHeader(bstrHeader: string, bstrValue: string): void; + readonly status: number; + readonly statusText: string; + timeout: number; + } + + class HTMLXMLHttpRequestFactory { + private 'MSHTML.HTMLXMLHttpRequestFactory_typekey': HTMLXMLHttpRequestFactory; + private constructor(); + create(): IHTMLXMLHttpRequest; + } + + class ICanvasGradient { + private 'MSHTML.ICanvasGradient_typekey': ICanvasGradient; + private constructor(); + addColorStop(offset: number, color: string): void; + } + + class ICanvasImageData { + private 'MSHTML.ICanvasImageData_typekey': ICanvasImageData; + private constructor(); + readonly data: any; + readonly height: number; + readonly width: number; + } + + class ICanvasPattern { + private 'MSHTML.ICanvasPattern_typekey': ICanvasPattern; + private constructor(); + } + + class ICanvasRenderingContext2D { + private 'MSHTML.ICanvasRenderingContext2D_typekey': ICanvasRenderingContext2D; + private constructor(); + arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise: number): void; + arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void; + beginPath(): void; + bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void; + readonly canvas: IHTMLCanvasElement; + clearRect(x: number, y: number, w: number, h: number): void; + clip(): void; + closePath(): void; + createImageData(a1: any, a2: any): ICanvasImageData; + createLinearGradient(x0: number, y0: number, x1: number, y1: number): ICanvasGradient; + createPattern(Image: any, repetition: any): ICanvasPattern; + createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): ICanvasGradient; + drawImage(pSrc: any, a1: any, a2: any, a3: any, a4: any, a5: any, a6: any, a7: any, a8: any): void; + fill(): void; + fillRect(x: number, y: number, w: number, h: number): void; + fillStyle: any; + fillText(text: string, x: number, y: number, maxWidth: any): void; + font: string; + getImageData(sx: number, sy: number, sw: number, sh: number): ICanvasImageData; + globalAlpha: number; + globalCompositeOperation: string; + isPointInPath(x: number, y: number): boolean; + lineCap: string; + lineJoin: string; + lineTo(x: number, y: number): void; + lineWidth: number; + measureText(text: string): ICanvasTextMetrics; + miterLimit: number; + moveTo(x: number, y: number): void; + putImageData(imagedata: ICanvasImageData, dx: number, dy: number, dirtyX: any, dirtyY: any, dirtyWidth: any, dirtyHeight: any): void; + quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void; + rect(x: number, y: number, w: number, h: number): void; + restore(): void; + rotate(angle: number): void; + save(): void; + scale(x: number, y: number): void; + setTransform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void; + shadowBlur: number; + shadowColor: string; + shadowOffsetX: number; + shadowOffsetY: number; + stroke(): void; + strokeRect(x: number, y: number, w: number, h: number): void; + strokeStyle: any; + strokeText(text: string, x: number, y: number, maxWidth: any): void; + textAlign: string; + textBaseline: string; + transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): void; + translate(x: number, y: number): void; + } + + class ICanvasTextMetrics { + private 'MSHTML.ICanvasTextMetrics_typekey': ICanvasTextMetrics; + private constructor(); + readonly width: number; + } + + class IDOMDocumentType { + private 'MSHTML.IDOMDocumentType_typekey': IDOMDocumentType; + private constructor(); + readonly entities: any; + readonly internalSubset: any; + readonly name: string; + readonly notations: any; + readonly publicId: any; + readonly systemId: any; + } + + class IDOMEvent { + private 'MSHTML.IDOMEvent_typekey': IDOMEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + readonly isTrusted: boolean; + preventDefault(): void; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + } + + class IDOMNodeIterator { + private 'MSHTML.IDOMNodeIterator_typekey': IDOMNodeIterator; + private constructor(); + Detach(): void; + readonly expandEntityReferences: boolean; + readonly filter: any; + nextNode(): any; + previousNode(): any; + readonly root: any; + readonly whatToShow: number; + } + + class IDOMParser { + private 'MSHTML.IDOMParser_typekey': IDOMParser; + private constructor(); + parseFromString(xmlSource: string, mimeType: string): IHTMLDocument2; + } + + class IDOMProcessingInstruction { + private 'MSHTML.IDOMProcessingInstruction_typekey': IDOMProcessingInstruction; + private constructor(); + data: string; + readonly target: string; + } + + class IDOMTreeWalker { + private 'MSHTML.IDOMTreeWalker_typekey': IDOMTreeWalker; + private constructor(); + currentNode: any; + readonly expandEntityReferences: boolean; + readonly filter: any; + firstChild(): any; + lastChild(): any; + nextNode(): any; + nextSibling(): any; + parentNode(): any; + previousNode(): any; + previousSibling(): any; + readonly root: any; + readonly whatToShow: number; + } + + class IDOMXmlSerializer { + private 'MSHTML.IDOMXmlSerializer_typekey': IDOMXmlSerializer; + private constructor(); + serializeToString(pNode: IHTMLDOMNode): string; + } + + class IEventTarget { + private 'MSHTML.IEventTarget_typekey': IEventTarget; + private constructor(); + addEventListener(type: string, listener: any, useCapture: boolean): void; + dispatchEvent(evt: IDOMEvent): boolean; + removeEventListener(type: string, listener: any, useCapture: boolean): void; + } + + class IHTMLAreasCollection { + private 'MSHTML.IHTMLAreasCollection_typekey': IHTMLAreasCollection; + private constructor(); + add(element: IHTMLElement, before?: any): void; + item(name?: any, index?: any): any; + length: number; + + /** @param number [index=-1] */ + remove(index?: number): void; + tags(tagName: any): any; + } + + class IHTMLAttributeCollection3 { + private 'MSHTML.IHTMLAttributeCollection3_typekey': IHTMLAttributeCollection3; + private constructor(); + getNamedItem(bstrName: string): IHTMLDOMAttribute; + item(index: number): IHTMLDOMAttribute; + readonly length: number; + removeNamedItem(bstrName: string): IHTMLDOMAttribute; + setNamedItem(pNodeIn: IHTMLDOMAttribute): IHTMLDOMAttribute; + } + + class IHTMLAudioElement { + private 'MSHTML.IHTMLAudioElement_typekey': IHTMLAudioElement; + private constructor(); + } + + class IHTMLBookmarkCollection { + private 'MSHTML.IHTMLBookmarkCollection_typekey': IHTMLBookmarkCollection; + private constructor(); + item(index: number): any; + readonly length: number; + } + + class IHTMLCanvasElement { + private 'MSHTML.IHTMLCanvasElement_typekey': IHTMLCanvasElement; + private constructor(); + getContext(contextId: string): ICanvasRenderingContext2D; + height: number; + toDataURL(type: string, jpegquality: any): string; + width: number; + } + + class IHTMLCSSRule { + private 'MSHTML.IHTMLCSSRule_typekey': IHTMLCSSRule; + private constructor(); + cssText: string; + readonly parentRule: IHTMLCSSRule; + readonly parentStyleSheet: IHTMLStyleSheet; + readonly type: number; + } + + class IHTMLCSSStyleDeclaration { + private 'MSHTML.IHTMLCSSStyleDeclaration_typekey': IHTMLCSSStyleDeclaration; + private constructor(); + accelerator: string; + alignmentBaseline: string; + background: string; + backgroundAttachment: string; + backgroundClip: string; + backgroundColor: any; + backgroundImage: string; + backgroundOrigin: string; + backgroundPosition: string; + backgroundPositionX: any; + backgroundPositionY: any; + backgroundRepeat: string; + backgroundSize: string; + baselineShift: any; + behavior: string; + border: string; + borderBottom: string; + borderBottomColor: any; + borderBottomLeftRadius: string; + borderBottomRightRadius: string; + borderBottomStyle: string; + borderBottomWidth: any; + borderCollapse: string; + borderColor: string; + borderLeft: string; + borderLeftColor: any; + borderLeftStyle: string; + borderLeftWidth: any; + borderRadius: string; + borderRight: string; + borderRightColor: any; + borderRightStyle: string; + borderRightWidth: any; + borderSpacing: string; + borderStyle: string; + borderTop: string; + borderTopColor: any; + borderTopLeftRadius: string; + borderTopRightRadius: string; + borderTopStyle: string; + borderTopWidth: any; + borderWidth: string; + bottom: any; + boxShadow: string; + boxSizing: string; + captionSide: string; + clear: string; + clip: string; + readonly clipBottom: any; + clipLeft: any; + clipPath: string; + clipRight: any; + clipRule: string; + clipTop: any; + color: any; + content: string; + counterIncrement: string; + counterReset: string; + cssFloat: string; + cssText: string; + cursor: string; + direction: string; + display: string; + dominantBaseline: string; + emptyCells: string; + fill: string; + fillOpacity: any; + fillRule: string; + filter: string; + font: string; + fontFamily: string; + fontSize: any; + fontSizeAdjust: any; + fontStretch: string; + fontStyle: string; + fontVariant: string; + fontWeight: string; + getPropertyPriority(bstrPropertyName: string): string; + getPropertyValue(bstrPropertyName: string): string; + glyphOrientationHorizontal: any; + glyphOrientationVertical: any; + height: any; + imeMode: string; + item(index: number): string; + kerning: any; + layoutFlow: string; + layoutGrid: string; + layoutGridChar: any; + layoutGridLine: any; + layoutGridMode: string; + layoutGridType: string; + left: any; + readonly length: number; + letterSpacing: any; + lineBreak: string; + lineHeight: any; + listStyle: string; + listStyleImage: string; + listStylePosition: string; + listStyleType: string; + margin: string; + marginBottom: any; + marginLeft: any; + marginRight: any; + marginTop: any; + marker: string; + markerEnd: string; + markerMid: string; + markerStart: string; + mask: string; + maxHeight: any; + maxWidth: any; + minHeight: any; + minWidth: any; + msBlockProgression: string; + msInterpolationMode: string; + msTransform: string; + msTransformOrigin: string; + opacity: any; + orphans: any; + outline: string; + outlineColor: any; + outlineStyle: string; + outlineWidth: any; + overflow: string; + overflowX: string; + overflowY: string; + padding: string; + paddingBottom: any; + paddingLeft: any; + paddingRight: any; + paddingTop: any; + pageBreakAfter: string; + pageBreakBefore: string; + pageBreakInside: string; + readonly parentRule: any; + pointerEvents: string; + position: string; + quotes: string; + removeProperty(bstrPropertyName: string): string; + right: any; + rubyAlign: string; + rubyOverhang: string; + rubyPosition: string; + scrollbar3dLightColor: any; + scrollbarArrowColor: any; + scrollbarBaseColor: any; + scrollbarDarkShadowColor: any; + scrollbarFaceColor: any; + scrollbarHighlightColor: any; + scrollbarShadowColor: any; + scrollbarTrackColor: any; + + /** @param any [pvarPropertyPriority=''] */ + setProperty(bstrPropertyName: string, pvarPropertyValue: any, pvarPropertyPriority?: any): void; + stopColor: any; + stopOpacity: any; + stroke: string; + strokeDasharray: string; + strokeDashoffset: any; + strokeLinecap: string; + strokeLinejoin: string; + strokeMiterlimit: any; + strokeOpacity: any; + strokeWidth: any; + styleFloat: string; + tableLayout: string; + textAlign: string; + textAlignLast: string; + textAnchor: string; + textAutospace: string; + textDecoration: string; + textIndent: any; + textJustify: string; + textJustifyTrim: string; + textKashida: any; + textKashidaSpace: any; + textOverflow: string; + textTransform: string; + textUnderlinePosition: string; + top: any; + unicodeBidi: string; + verticalAlign: any; + visibility: string; + whiteSpace: string; + widows: any; + width: any; + wordBreak: string; + wordSpacing: any; + wordWrap: string; + writingMode: string; + zIndex: any; + zoom: any; + } + + class IHTMLCurrentStyle { + private 'MSHTML.IHTMLCurrentStyle_typekey': IHTMLCurrentStyle; + private constructor(); + readonly accelerator: string; + readonly backgroundAttachment: string; + readonly backgroundColor: any; + readonly backgroundImage: string; + readonly backgroundPositionX: any; + readonly backgroundPositionY: any; + readonly backgroundRepeat: string; + readonly behavior: string; + readonly blockDirection: string; + readonly borderBottomColor: any; + readonly borderBottomStyle: string; + readonly borderBottomWidth: any; + readonly borderCollapse: string; + readonly borderColor: string; + readonly borderLeftColor: any; + readonly borderLeftStyle: string; + readonly borderLeftWidth: any; + readonly borderRightColor: any; + readonly borderRightStyle: string; + readonly borderRightWidth: any; + readonly borderStyle: string; + readonly borderTopColor: any; + readonly borderTopStyle: string; + readonly borderTopWidth: any; + readonly borderWidth: string; + readonly bottom: any; + readonly clear: string; + readonly clipBottom: any; + readonly clipLeft: any; + readonly clipRight: any; + readonly clipTop: any; + readonly color: any; + readonly cursor: string; + readonly direction: string; + readonly display: string; + readonly fontFamily: string; + readonly fontSize: any; + readonly fontStyle: string; + readonly fontVariant: string; + readonly fontWeight: any; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + readonly height: any; + readonly imeMode: string; + readonly layoutGridChar: any; + readonly layoutGridLine: any; + readonly layoutGridMode: string; + readonly layoutGridType: string; + readonly left: any; + readonly letterSpacing: any; + readonly lineBreak: string; + readonly lineHeight: any; + readonly listStyleImage: string; + readonly listStylePosition: string; + readonly listStyleType: string; + readonly margin: string; + readonly marginBottom: any; + readonly marginLeft: any; + readonly marginRight: any; + readonly marginTop: any; + readonly overflow: string; + readonly overflowX: string; + readonly overflowY: string; + readonly padding: string; + readonly paddingBottom: any; + readonly paddingLeft: any; + readonly paddingRight: any; + readonly paddingTop: any; + readonly pageBreakAfter: string; + readonly pageBreakBefore: string; + readonly position: string; + readonly right: any; + readonly rubyAlign: string; + readonly rubyOverhang: string; + readonly rubyPosition: string; + readonly styleFloat: string; + readonly tableLayout: string; + readonly textAlign: string; + readonly textAutospace: string; + readonly textDecoration: string; + readonly textIndent: any; + readonly textJustify: string; + readonly textJustifyTrim: string; + readonly textKashida: any; + readonly textTransform: string; + readonly top: any; + readonly unicodeBidi: string; + readonly verticalAlign: any; + readonly visibility: string; + readonly width: any; + readonly wordBreak: string; + readonly zIndex: any; + } + + class IHTMLDataTransfer { + private 'MSHTML.IHTMLDataTransfer_typekey': IHTMLDataTransfer; + private constructor(); + clearData(format: string): boolean; + dropEffect: string; + effectAllowed: string; + getData(format: string): any; + setData(format: string, data: any): boolean; + } + + class IHTMLDocument { + private 'MSHTML.IHTMLDocument_typekey': IHTMLDocument; + private constructor(); + readonly Script: any; + } + + class IHTMLDocument2 { + private 'MSHTML.IHTMLDocument2_typekey': IHTMLDocument2; + private constructor(); + readonly activeElement: IHTMLElement; + alinkColor: any; + readonly all: IHTMLElementCollection; + readonly anchors: IHTMLElementCollection; + readonly applets: IHTMLElementCollection; + bgColor: any; + readonly body: IHTMLElement; + charset: string; + clear(): void; + close(): void; + cookie: string; + createElement(eTag: string): IHTMLElement; + + /** + * @param string [bstrHref=''] + * @param number [lIndex=-1] + */ + createStyleSheet(bstrHref?: string, lIndex?: number): IHTMLStyleSheet; + defaultCharset: string; + designMode: string; + domain: string; + elementFromPoint(x: number, y: number): IHTMLElement; + readonly embeds: IHTMLElementCollection; + + /** @param boolean [showUI=false] */ + execCommand(cmdID: string, showUI?: boolean, value?: any): boolean; + execCommandShowHelp(cmdID: string): boolean; + expando: boolean; + fgColor: any; + readonly fileCreatedDate: string; + readonly fileModifiedDate: string; + readonly fileSize: string; + readonly fileUpdatedDate: string; + readonly forms: IHTMLElementCollection; + readonly frames: FramesCollection; + readonly images: IHTMLElementCollection; + readonly lastModified: string; + linkColor: any; + readonly links: IHTMLElementCollection; + readonly location: IHTMLLocation; + readonly mimeType: string; + readonly nameProp: string; + onafterupdate: any; + onbeforeupdate: any; + onclick: any; + ondblclick: any; + ondragstart: any; + onerrorupdate: any; + onhelp: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onmousedown: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onreadystatechange: any; + onrowenter: any; + onrowexit: any; + onselectstart: any; + + /** @param string [url='text/html'] */ + open(url?: string, name?: any, features?: any, replace?: any): any; + readonly parentWindow: IHTMLWindow2; + readonly plugins: IHTMLElementCollection; + readonly protocol: string; + queryCommandEnabled(cmdID: string): boolean; + queryCommandIndeterm(cmdID: string): boolean; + queryCommandState(cmdID: string): boolean; + queryCommandSupported(cmdID: string): boolean; + queryCommandText(cmdID: string): string; + queryCommandValue(cmdID: string): any; + readonly readyState: string; + readonly referrer: string; + readonly Script: any; + readonly scripts: IHTMLElementCollection; + readonly security: string; + readonly selection: IHTMLSelectionObject; + readonly styleSheets: IHTMLStyleSheetsCollection; + title: string; + toString(): string; + url: string; + vlinkColor: any; + write(...psarray: any[]): void; + writeln(...psarray: any[]): void; + } + + class IHTMLDocument7 { + private 'MSHTML.IHTMLDocument7_typekey': IHTMLDocument7; + private constructor(); + adoptNode(pNodeSource: IHTMLDOMNode): IHTMLDOMNode3; + readonly all: IHTMLElementCollection; + body: IHTMLElement; + readonly characterSet: string; + createAttribute(bstrAttrName: string): IHTMLDOMAttribute; + createAttributeNS(pvarNS: any, bstrAttrName: string): IHTMLDOMAttribute; + createCDATASection(text: string): IHTMLDOMNode; + createElement(bstrTag: string): IHTMLElement; + createElementNS(pvarNS: any, bstrTag: string): IHTMLElement; + createProcessingInstruction(bstrTarget: string, bstrData: string): IDOMProcessingInstruction; + readonly defaultView: IHTMLWindow2; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(pvarNS: any, bstrLocalName: string): IHTMLElementCollection; + getSelection(): IHTMLSelection; + hasAttributes(): boolean; + readonly head: IHTMLElement; + importNode(pNodeSource: IHTMLDOMNode, fDeep: boolean): IHTMLDOMNode3; + readonly inputEncoding: string; + normalize(): void; + onabort: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + onchange: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onfocus: any; + oninput: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onmssitemodejumplistitemremoved: any; + onmsthumbnailclick: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onratechange: any; + onreset: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + readonly parentWindow: IHTMLWindow2; + readonly xmlEncoding: string; + xmlStandalone: boolean; + xmlVersion: string; + } + + class IHTMLDocumentCompatibleInfo { + private 'MSHTML.IHTMLDocumentCompatibleInfo_typekey': IHTMLDocumentCompatibleInfo; + private constructor(); + readonly userAgent: string; + readonly version: string; + } + + class IHTMLDocumentCompatibleInfoCollection { + private 'MSHTML.IHTMLDocumentCompatibleInfoCollection_typekey': IHTMLDocumentCompatibleInfoCollection; + private constructor(); + item(index: number): IHTMLDocumentCompatibleInfo; + readonly length: number; + } + + class IHTMLDOMAttribute { + private 'MSHTML.IHTMLDOMAttribute_typekey': IHTMLDOMAttribute; + private constructor(); + readonly nodeName: string; + nodeValue: any; + readonly specified: boolean; + } + + class IHTMLDOMAttribute2 { + private 'MSHTML.IHTMLDOMAttribute2_typekey': IHTMLDOMAttribute2; + private constructor(); + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + readonly attributes: any; + readonly childNodes: any; + cloneNode(fDeep: boolean): IHTMLDOMAttribute; + readonly expando: boolean; + readonly firstChild: IHTMLDOMNode; + hasChildNodes(): boolean; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly lastChild: IHTMLDOMNode; + readonly name: string; + readonly nextSibling: IHTMLDOMNode; + readonly nodeType: number; + readonly ownerDocument: any; + readonly parentNode: IHTMLDOMNode; + readonly previousSibling: IHTMLDOMNode; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + value: string; + } + + class IHTMLDOMChildrenCollection { + private 'MSHTML.IHTMLDOMChildrenCollection_typekey': IHTMLDOMChildrenCollection; + private constructor(); + item(index: number): any; + readonly length: number; + } + + class IHTMLDOMImplementation { + private 'MSHTML.IHTMLDOMImplementation_typekey': IHTMLDOMImplementation; + private constructor(); + hasFeature(bstrfeature: string, version?: any): boolean; + } + + class IHTMLDOMNode { + private 'MSHTML.IHTMLDOMNode_typekey': IHTMLDOMNode; + private constructor(); + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + readonly attributes: any; + readonly childNodes: any; + cloneNode(fDeep: boolean): IHTMLDOMNode; + readonly firstChild: IHTMLDOMNode; + hasChildNodes(): boolean; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly lastChild: IHTMLDOMNode; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + readonly parentNode: IHTMLDOMNode; + readonly previousSibling: IHTMLDOMNode; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + } + + class IHTMLDOMNode3 { + private 'MSHTML.IHTMLDOMNode3_typekey': IHTMLDOMNode3; + private constructor(); + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + isDefaultNamespace(pvarNamespace: any): boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly localName: any; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + readonly namespaceURI: any; + prefix: any; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + textContent: any; + } + + class IHTMLDOMRange { + private 'MSHTML.IHTMLDOMRange_typekey': IHTMLDOMRange; + private constructor(); + cloneContents(): any; + cloneRange(): IHTMLDOMRange; + collapse(toStart: boolean): void; + readonly collapsed: boolean; + readonly commonAncestorContainer: IHTMLDOMNode; + compareBoundaryPoints(how: number, sourceRange: any): number; + deleteContents(): void; + Detach(): void; + readonly endContainer: IHTMLDOMNode; + readonly endOffset: number; + extractContents(): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + insertNode(newNode: any): void; + selectNode(refNode: any): void; + selectNodeContents(refNode: any): void; + setEnd(refNode: any, offset: number): void; + setEndAfter(refNode: any): void; + setEndBefore(refNode: any): void; + setStart(refNode: any, offset: number): void; + setStartAfter(refNode: any): void; + setStartBefore(refNode: any): void; + readonly startContainer: IHTMLDOMNode; + readonly startOffset: number; + surroundContents(newParent: any): void; + toString(): string; + } + + class IHTMLElement { + private 'MSHTML.IHTMLElement_typekey': IHTMLElement; + private constructor(); + readonly all: any; + readonly children: any; + className: string; + click(): void; + contains(pChild: IHTMLElement): boolean; + readonly document: any; + readonly filters: IHTMLFiltersCollection; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + id: string; + innerHTML: string; + innerText: string; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onafterupdate: any; + onbeforeupdate: any; + onclick: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondragstart: any; + onerrorupdate: any; + onfilterchange: any; + onhelp: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onmousedown: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onrowenter: any; + onrowexit: any; + onselectstart: any; + outerHTML: string; + outerText: string; + readonly parentElement: IHTMLElement; + readonly parentTextEdit: IHTMLElement; + readonly recordNumber: any; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + scrollIntoView(varargStart?: any): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + readonly sourceIndex: number; + readonly style: IHTMLStyle; + readonly tagName: string; + title: string; + toString(): string; + } + + class IHTMLElement2 { + private 'MSHTML.IHTMLElement2_typekey': IHTMLElement2; + private constructor(); + accessKey: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + attachEvent(event: string, pdisp: any): boolean; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + clearAttributes(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + componentFromPoint(x: number, y: number): string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + doScroll(component?: any): void; + focus(): void; + getAdjacentText(where: string): string; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getExpression(propname: string): any; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + mergeAttributes(mergeThis: IHTMLElement): void; + onbeforecopy: any; + onbeforecut: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onblur: any; + oncellchange: any; + oncontextmenu: any; + oncopy: any; + oncut: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondrop: any; + onfocus: any; + onlosecapture: any; + onpaste: any; + onpropertychange: any; + onreadystatechange: any; + onresize: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + readonly readyState: any; + releaseCapture(): void; + removeBehavior(cookie: number): boolean; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + replaceAdjacentText(where: string, newText: string): string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + tabIndex: number; + tagUrn: string; + } + + class IHTMLElementCollection { + private 'MSHTML.IHTMLElementCollection_typekey': IHTMLElementCollection; + private constructor(); + item(name?: string | number, index?: number): any; + length: number; + tags(tagName: any): any; + toString(): string; + } + + class IHTMLEventObj { + private 'MSHTML.IHTMLEventObj_typekey': IHTMLEventObj; + private constructor(); + readonly altKey: boolean; + readonly button: number; + cancelBubble: boolean; + readonly clientX: number; + readonly clientY: number; + readonly ctrlKey: boolean; + readonly fromElement: IHTMLElement; + keyCode: number; + readonly offsetX: number; + readonly offsetY: number; + readonly qualifier: string; + readonly reason: number; + returnValue: any; + readonly screenX: number; + readonly screenY: number; + readonly shiftKey: boolean; + readonly srcElement: IHTMLElement; + readonly srcFilter: any; + readonly toElement: IHTMLElement; + readonly type: string; + readonly x: number; + readonly y: number; + } + + class IHTMLFiltersCollection { + private 'MSHTML.IHTMLFiltersCollection_typekey': IHTMLFiltersCollection; + private constructor(); + item(pvarIndex: any): any; + readonly length: number; + } + + class IHTMLFormElement { + private 'MSHTML.IHTMLFormElement_typekey': IHTMLFormElement; + private constructor(); + action: string; + dir: string; + readonly elements: any; + encoding: string; + item(name?: any, index?: any): any; + length: number; + method: string; + name: string; + onreset: any; + onsubmit: any; + reset(): void; + submit(): void; + tags(tagName: any): any; + target: string; + } + + class IHTMLFrameBase { + private 'MSHTML.IHTMLFrameBase_typekey': IHTMLFrameBase; + private constructor(); + border: any; + frameBorder: string; + frameSpacing: any; + marginHeight: any; + marginWidth: any; + name: string; + noResize: boolean; + scrolling: string; + src: string; + } + + class IHTMLImgElement { + private 'MSHTML.IHTMLImgElement_typekey': IHTMLImgElement; + private constructor(); + align: string; + alt: string; + border: any; + readonly complete: boolean; + dynsrc: string; + readonly fileCreatedDate: string; + readonly fileModifiedDate: string; + readonly fileSize: string; + readonly fileUpdatedDate: string; + height: number; + readonly href: string; + hspace: number; + isMap: boolean; + loop: any; + lowsrc: string; + readonly mimeType: string; + name: string; + readonly nameProp: string; + onabort: any; + onerror: any; + onload: any; + readonly protocol: string; + readonly readyState: string; + src: string; + start: string; + useMap: string; + vrml: string; + vspace: number; + width: number; + } + + class IHTMLLocation { + private 'MSHTML.IHTMLLocation_typekey': IHTMLLocation; + private constructor(); + assign(bstr: string): void; + hash: string; + host: string; + hostname: string; + href: string; + pathname: string; + port: string; + protocol: string; + + /** @param boolean [flag=false] */ + reload(flag?: boolean): void; + replace(bstr: string): void; + search: string; + toString(): string; + } + + class IHTMLMediaError { + private 'MSHTML.IHTMLMediaError_typekey': IHTMLMediaError; + private constructor(); + readonly code: number; + } + + class IHTMLMSCSSKeyframeRule { + private 'MSHTML.IHTMLMSCSSKeyframeRule_typekey': IHTMLMSCSSKeyframeRule; + private constructor(); + keyText: string; + readonly style: IHTMLRuleStyle; + } + + class IHTMLOptionElement { + private 'MSHTML.IHTMLOptionElement_typekey': IHTMLOptionElement; + private constructor(); + defaultSelected: boolean; + readonly form: IHTMLFormElement; + index: number; + selected: boolean; + text: string; + value: string; + } + + class IHTMLPerformanceNavigation { + private 'MSHTML.IHTMLPerformanceNavigation_typekey': IHTMLPerformanceNavigation; + private constructor(); + readonly redirectCount: number; + toJSON(): any; + toString(): string; + readonly type: number; + } + + class IHTMLPerformanceTiming { + private 'MSHTML.IHTMLPerformanceTiming_typekey': IHTMLPerformanceTiming; + private constructor(); + readonly connectEnd: number; + readonly connectStart: number; + readonly domainLookupEnd: number; + readonly domainLookupStart: number; + readonly domComplete: number; + readonly domContentLoadedEventEnd: number; + readonly domContentLoadedEventStart: number; + readonly domInteractive: number; + readonly domLoading: number; + readonly fetchStart: number; + readonly loadEventEnd: number; + readonly loadEventStart: number; + readonly msFirstPaint: number; + readonly navigationStart: number; + readonly redirectEnd: number; + readonly redirectStart: number; + readonly requestStart: number; + readonly responseEnd: number; + readonly responseStart: number; + toJSON(): any; + toString(): string; + readonly unloadEventEnd: number; + readonly unloadEventStart: number; + } + + class IHTMLPluginsCollection { + private 'MSHTML.IHTMLPluginsCollection_typekey': IHTMLPluginsCollection; + private constructor(); + readonly length: number; + + /** @param boolean [reload=false] */ + refresh(reload?: boolean): void; + } + + class IHTMLRect { + private 'MSHTML.IHTMLRect_typekey': IHTMLRect; + private constructor(); + bottom: number; + left: number; + right: number; + top: number; + } + + class IHTMLRectCollection { + private 'MSHTML.IHTMLRectCollection_typekey': IHTMLRectCollection; + private constructor(); + item(pvarIndex: any): any; + readonly length: number; + } + + class IHTMLRenderStyle { + private 'MSHTML.IHTMLRenderStyle_typekey': IHTMLRenderStyle; + private constructor(); + defaultTextSelection: string; + renderingPriority: number; + textBackgroundColor: any; + textColor: any; + textDecoration: string; + textDecorationColor: any; + textEffect: string; + textLineThroughStyle: string; + textUnderlineStyle: string; + } + + class IHTMLRuleStyle { + private 'MSHTML.IHTMLRuleStyle_typekey': IHTMLRuleStyle; + private constructor(); + background: string; + backgroundAttachment: string; + backgroundColor: any; + backgroundImage: string; + backgroundPosition: string; + backgroundPositionX: any; + backgroundPositionY: any; + backgroundRepeat: string; + border: string; + borderBottom: string; + borderBottomColor: any; + borderBottomStyle: string; + borderBottomWidth: any; + borderColor: string; + borderLeft: string; + borderLeftColor: any; + borderLeftStyle: string; + borderLeftWidth: any; + borderRight: string; + borderRightColor: any; + borderRightStyle: string; + borderRightWidth: any; + borderStyle: string; + borderTop: string; + borderTopColor: any; + borderTopStyle: string; + borderTopWidth: any; + borderWidth: string; + clear: string; + clip: string; + color: any; + cssText: string; + cursor: string; + display: string; + filter: string; + font: string; + fontFamily: string; + fontSize: any; + fontStyle: string; + fontVariant: string; + fontWeight: string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + height: any; + left: any; + letterSpacing: any; + lineHeight: any; + listStyle: string; + listStyleImage: string; + listStylePosition: string; + listStyleType: string; + margin: string; + marginBottom: any; + marginLeft: any; + marginRight: any; + marginTop: any; + overflow: string; + padding: string; + paddingBottom: any; + paddingLeft: any; + paddingRight: any; + paddingTop: any; + pageBreakAfter: string; + pageBreakBefore: string; + readonly position: string; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + styleFloat: string; + textAlign: string; + textDecoration: string; + textDecorationBlink: boolean; + textDecorationLineThrough: boolean; + textDecorationNone: boolean; + textDecorationOverline: boolean; + textDecorationUnderline: boolean; + textIndent: any; + textTransform: string; + top: any; + verticalAlign: any; + visibility: string; + whiteSpace: string; + width: any; + wordSpacing: any; + zIndex: any; + } + + class IHTMLScreen { + private 'MSHTML.IHTMLScreen_typekey': IHTMLScreen; + private constructor(); + readonly availHeight: number; + readonly availWidth: number; + bufferDepth: number; + readonly colorDepth: number; + readonly fontSmoothingEnabled: boolean; + readonly height: number; + updateInterval: number; + readonly width: number; + } + + class IHTMLSelection { + private 'MSHTML.IHTMLSelection_typekey': IHTMLSelection; + private constructor(); + addRange(range: any): void; + readonly anchorNode: IHTMLDOMNode; + readonly anchorOffset: number; + collapse(parentNode: any, offfset: number): void; + collapseToEnd(): void; + collapseToStart(): void; + deleteFromDocument(): void; + readonly focusNode: IHTMLDOMNode; + readonly focusOffset: number; + getRangeAt(index: number): IHTMLDOMRange; + readonly isCollapsed: boolean; + readonly rangeCount: number; + removeAllRanges(): void; + removeRange(range: any): void; + selectAllChildren(parentNode: any): void; + toString(): string; + } + + class IHTMLSelectionObject { + private 'MSHTML.IHTMLSelectionObject_typekey': IHTMLSelectionObject; + private constructor(); + clear(): void; + createRange(): any; + empty(): void; + readonly type: string; + } + + class IHTMLStorage { + private 'MSHTML.IHTMLStorage_typekey': IHTMLStorage; + private constructor(); + clear(): void; + getItem(bstrKey: string): any; + key(lIndex: number): string; + readonly length: number; + readonly remainingSpace: number; + removeItem(bstrKey: string): void; + setItem(bstrKey: string, bstrValue: string): void; + } + + class IHTMLStyle { + private 'MSHTML.IHTMLStyle_typekey': IHTMLStyle; + private constructor(); + background: string; + backgroundAttachment: string; + backgroundColor: any; + backgroundImage: string; + backgroundPosition: string; + backgroundPositionX: any; + backgroundPositionY: any; + backgroundRepeat: string; + border: string; + borderBottom: string; + borderBottomColor: any; + borderBottomStyle: string; + borderBottomWidth: any; + borderColor: string; + borderLeft: string; + borderLeftColor: any; + borderLeftStyle: string; + borderLeftWidth: any; + borderRight: string; + borderRightColor: any; + borderRightStyle: string; + borderRightWidth: any; + borderStyle: string; + borderTop: string; + borderTopColor: any; + borderTopStyle: string; + borderTopWidth: any; + borderWidth: string; + clear: string; + clip: string; + color: any; + cssText: string; + cursor: string; + display: string; + filter: string; + font: string; + fontFamily: string; + fontSize: any; + fontStyle: string; + fontVariant: string; + fontWeight: string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + height: any; + left: any; + letterSpacing: any; + lineHeight: any; + listStyle: string; + listStyleImage: string; + listStylePosition: string; + listStyleType: string; + margin: string; + marginBottom: any; + marginLeft: any; + marginRight: any; + marginTop: any; + overflow: string; + padding: string; + paddingBottom: any; + paddingLeft: any; + paddingRight: any; + paddingTop: any; + pageBreakAfter: string; + pageBreakBefore: string; + pixelHeight: number; + pixelLeft: number; + pixelTop: number; + pixelWidth: number; + posHeight: number; + readonly position: string; + posLeft: number; + posTop: number; + posWidth: number; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + styleFloat: string; + textAlign: string; + textDecoration: string; + textDecorationBlink: boolean; + textDecorationLineThrough: boolean; + textDecorationNone: boolean; + textDecorationOverline: boolean; + textDecorationUnderline: boolean; + textIndent: any; + textTransform: string; + top: any; + toString(): string; + verticalAlign: any; + visibility: string; + whiteSpace: string; + width: any; + wordSpacing: any; + zIndex: any; + } + + class IHTMLStyleMedia { + private 'MSHTML.IHTMLStyleMedia_typekey': IHTMLStyleMedia; + private constructor(); + matchMedium(mediaQuery: string): boolean; + readonly type: string; + } + + class IHTMLStyleSheet { + private 'MSHTML.IHTMLStyleSheet_typekey': IHTMLStyleSheet; + private constructor(); + + /** @param number [lIndex=-1] */ + addImport(bstrURL: string, lIndex?: number): number; + + /** @param number [lIndex=-1] */ + addRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number; + cssText: string; + disabled: boolean; + href: string; + readonly id: string; + readonly imports: IHTMLStyleSheetsCollection; + media: string; + readonly owningElement: IHTMLElement; + readonly parentStyleSheet: IHTMLStyleSheet; + readonly readOnly: boolean; + removeImport(lIndex: number): void; + removeRule(lIndex: number): void; + readonly rules: IHTMLStyleSheetRulesCollection; + title: string; + readonly type: string; + } + + class IHTMLStyleSheetPage { + private 'MSHTML.IHTMLStyleSheetPage_typekey': IHTMLStyleSheetPage; + private constructor(); + readonly pseudoClass: string; + readonly selector: string; + } + + class IHTMLStyleSheetPagesCollection { + private 'MSHTML.IHTMLStyleSheetPagesCollection_typekey': IHTMLStyleSheetPagesCollection; + private constructor(); + item(index: number): IHTMLStyleSheetPage; + readonly length: number; + } + + class IHTMLStyleSheetRule { + private 'MSHTML.IHTMLStyleSheetRule_typekey': IHTMLStyleSheetRule; + private constructor(); + readonly readOnly: boolean; + selectorText: string; + readonly style: IHTMLRuleStyle; + } + + class IHTMLStyleSheetRulesAppliedCollection { + private 'MSHTML.IHTMLStyleSheetRulesAppliedCollection_typekey': IHTMLStyleSheetRulesAppliedCollection; + private constructor(); + item(index: number): IHTMLStyleSheetRule; + readonly length: number; + propertyAppliedBy(name: string): IHTMLStyleSheetRule; + propertyAppliedTrace(name: string, index: number): IHTMLStyleSheetRule; + propertyAppliedTraceLength(name: string): number; + } + + class IHTMLStyleSheetRulesCollection { + private 'MSHTML.IHTMLStyleSheetRulesCollection_typekey': IHTMLStyleSheetRulesCollection; + private constructor(); + item(index: number): IHTMLStyleSheetRule; + readonly length: number; + } + + class IHTMLStyleSheetsCollection { + private 'MSHTML.IHTMLStyleSheetsCollection_typekey': IHTMLStyleSheetsCollection; + private constructor(); + item(pvarIndex: any): any; + readonly length: number; + } + + class IHTMLTableCaption { + private 'MSHTML.IHTMLTableCaption_typekey': IHTMLTableCaption; + private constructor(); + align: string; + vAlign: string; + } + + class IHTMLTableSection { + private 'MSHTML.IHTMLTableSection_typekey': IHTMLTableSection; + private constructor(); + align: string; + bgColor: any; + + /** @param number [index=-1] */ + deleteRow(index?: number): void; + + /** @param number [index=-1] */ + insertRow(index?: number): any; + readonly rows: IHTMLElementCollection; + vAlign: string; + } + + class IHTMLTimeRanges { + private 'MSHTML.IHTMLTimeRanges_typekey': IHTMLTimeRanges; + private constructor(); + end(index: number): number; + readonly length: number; + start(index: number): number; + } + + class IHTMLTxtRange { + private 'MSHTML.IHTMLTxtRange_typekey': IHTMLTxtRange; + private constructor(); + + /** @param boolean [start=true] */ + collapse(start?: boolean): void; + compareEndPoints(how: string, sourceRange: IHTMLTxtRange): number; + duplicate(): IHTMLTxtRange; + + /** @param boolean [showUI=false] */ + execCommand(cmdID: string, showUI?: boolean, value?: any): boolean; + execCommandShowHelp(cmdID: string): boolean; + expand(Unit: string): boolean; + + /** + * @param number [Count=1073741823] + * @param number [flags=0] + */ + findText(String: string, Count?: number, flags?: number): boolean; + getBookmark(): string; + readonly htmlText: string; + inRange(range: IHTMLTxtRange): boolean; + isEqual(range: IHTMLTxtRange): boolean; + + /** @param number [Count=1] */ + move(Unit: string, Count?: number): number; + + /** @param number [Count=1] */ + moveEnd(Unit: string, Count?: number): number; + + /** @param number [Count=1] */ + moveStart(Unit: string, Count?: number): number; + moveToBookmark(Bookmark: string): boolean; + moveToElementText(element: IHTMLElement): void; + moveToPoint(x: number, y: number): void; + parentElement(): IHTMLElement; + pasteHTML(html: string): void; + queryCommandEnabled(cmdID: string): boolean; + queryCommandIndeterm(cmdID: string): boolean; + queryCommandState(cmdID: string): boolean; + queryCommandSupported(cmdID: string): boolean; + queryCommandText(cmdID: string): string; + queryCommandValue(cmdID: string): any; + + /** @param boolean [fStart=true] */ + scrollIntoView(fStart?: boolean): void; + select(): void; + setEndPoint(how: string, sourceRange: IHTMLTxtRange): void; + text: string; + } + + class IHTMLWindow2 { + private 'MSHTML.IHTMLWindow2_typekey': IHTMLWindow2; + private constructor(); + + /** @param string [message=''] */ + alert(message?: string): void; + blur(): void; + clearInterval(timerID: number): void; + clearTimeout(timerID: number): void; + readonly clientInformation: IOmNavigator; + close(): void; + readonly closed: boolean; + + /** @param string [message=''] */ + confirm(message?: string): boolean; + defaultStatus: string; + readonly document: IHTMLDocument2; + readonly event: IHTMLEventObj; + + /** @param string [language='JScript'] */ + execScript(code: string, language?: string): any; + readonly external: any; + focus(): void; + readonly frames: FramesCollection; + readonly history: IOmHistory; + readonly Image: HTMLImageElementFactory; + item(pvarIndex: any): any; + readonly length: number; + readonly location: IHTMLLocation; + moveBy(x: number, y: number): void; + moveTo(x: number, y: number): void; + name: string; + navigate(url: string): void; + readonly navigator: IOmNavigator; + offscreenBuffering: any; + onbeforeunload: any; + onblur: any; + onerror: any; + onfocus: any; + onhelp: any; + onload: any; + onresize: any; + onscroll: any; + onunload: any; + + /** + * @param string [url=''] + * @param string [name=''] + * @param string [features=''] + * @param boolean [replace=false] + */ + open(url?: string, name?: string, features?: string, replace?: boolean): IHTMLWindow2; + opener: any; + readonly Option: HTMLOptionElementFactory; + readonly parent: IHTMLWindow2; + + /** + * @param string [message=''] + * @param string [defstr='undefined'] + */ + prompt(message?: string, defstr?: string): any; + resizeBy(x: number, y: number): void; + resizeTo(x: number, y: number): void; + readonly screen: IHTMLScreen; + scroll(x: number, y: number): void; + scrollBy(x: number, y: number): void; + scrollTo(x: number, y: number): void; + readonly self: IHTMLWindow2; + setInterval(expression: string, msec: number, language?: any): number; + setTimeout(expression: string, msec: number, language?: any): number; + + /** @param string [features=''] */ + showHelp(helpURL: string, helpArg: any, features?: string): void; + showModalDialog(dialog: string, varArgIn?: any, varOptions?: any): any; + status: string; + readonly top: IHTMLWindow2; + toString(): string; + readonly window: IHTMLWindow2; + } + + class IHTMLXDomainRequest { + private 'MSHTML.IHTMLXDomainRequest_typekey': IHTMLXDomainRequest; + private constructor(); + abort(): void; + readonly contentType: string; + onerror: any; + onload: any; + onprogress: any; + ontimeout: any; + open(bstrMethod: string, bstrURL: string): void; + readonly responseText: string; + send(varBody?: any): void; + timeout: number; + } + + class IHTMLXMLHttpRequest { + private 'MSHTML.IHTMLXMLHttpRequest_typekey': IHTMLXMLHttpRequest; + private constructor(); + abort(): void; + getAllResponseHeaders(): string; + getResponseHeader(bstrHeader: string): string; + onreadystatechange: any; + open(bstrMethod: string, bstrURL: string, varAsync: any, varUser?: any, varPassword?: any): void; + readonly readyState: number; + readonly responseBody: any; + readonly responseText: string; + readonly responseXML: any; + send(varBody?: any): void; + setRequestHeader(bstrHeader: string, bstrValue: string): void; + readonly status: number; + readonly statusText: string; + } + + class IOmHistory { + private 'MSHTML.IOmHistory_typekey': IOmHistory; + private constructor(); + back(pvargdistance?: any): void; + forward(pvargdistance?: any): void; + go(pvargdistance?: any): void; + readonly length: number; + } + + class IOmNavigator { + private 'MSHTML.IOmNavigator_typekey': IOmNavigator; + private constructor(); + readonly appCodeName: string; + readonly appMinorVersion: string; + readonly appName: string; + readonly appVersion: string; + readonly browserLanguage: string; + readonly connectionSpeed: number; + readonly cookieEnabled: boolean; + readonly cpuClass: string; + javaEnabled(): boolean; + readonly mimeTypes: CMimeTypes; + readonly onLine: boolean; + readonly opsProfile: COpsProfile; + readonly platform: string; + readonly plugins: IHTMLPluginsCollection; + readonly systemLanguage: string; + taintEnabled(): boolean; + toString(): string; + readonly userAgent: string; + readonly userLanguage: string; + readonly userProfile: COpsProfile; + } + + class IRulesApplied { + private 'MSHTML.IRulesApplied_typekey': IRulesApplied; + private constructor(); + readonly appliedRules: IHTMLStyleSheetRulesAppliedCollection; + readonly element: IHTMLElement; + hasInheritableProperty(): boolean; + readonly inlineStyles: IHTMLStyle; + propertyIsInheritable(name: string): boolean; + propertyIsInline(name: string): boolean; + } + + class ISVGElement { + private 'MSHTML.ISVGElement_typekey': ISVGElement; + private constructor(); + focusable: SVGAnimatedEnumeration; + ownerSVGElement: ISVGSVGElement; + viewportElement: ISVGElement; + xmlbase: string; + } + + class ISVGElementInstance { + private 'MSHTML.ISVGElementInstance_typekey': ISVGElementInstance; + private constructor(); + readonly childNodes: ISVGElementInstanceList; + readonly correspondingElement: ISVGElement; + readonly correspondingUseElement: ISVGUseElement; + readonly firstChild: ISVGElementInstance; + readonly lastChild: ISVGElementInstance; + readonly nextSibling: ISVGElementInstance; + readonly parentNode: ISVGElementInstance; + readonly previousSibling: ISVGElementInstance; + } + + class ISVGElementInstanceList { + private 'MSHTML.ISVGElementInstanceList_typekey': ISVGElementInstanceList; + private constructor(); + item(index: number): ISVGElementInstance; + readonly length: number; + } + + class ISVGPathSegArcAbs { + private 'MSHTML.ISVGPathSegArcAbs_typekey': ISVGPathSegArcAbs; + private constructor(); + angle: number; + largeArcFlag: boolean; + r1: number; + r2: number; + sweepFlag: boolean; + x: number; + y: number; + } + + class ISVGPathSegArcRel { + private 'MSHTML.ISVGPathSegArcRel_typekey': ISVGPathSegArcRel; + private constructor(); + angle: number; + largeArcFlag: boolean; + r1: number; + r2: number; + sweepFlag: boolean; + x: number; + y: number; + } + + class ISVGPathSegClosePath { + private 'MSHTML.ISVGPathSegClosePath_typekey': ISVGPathSegClosePath; + private constructor(); + } + + class ISVGPathSegCurvetoCubicAbs { + private 'MSHTML.ISVGPathSegCurvetoCubicAbs_typekey': ISVGPathSegCurvetoCubicAbs; + private constructor(); + x: number; + x1: number; + x2: number; + y: number; + y1: number; + y2: number; + } + + class ISVGPathSegCurvetoCubicRel { + private 'MSHTML.ISVGPathSegCurvetoCubicRel_typekey': ISVGPathSegCurvetoCubicRel; + private constructor(); + x: number; + x1: number; + x2: number; + y: number; + y1: number; + y2: number; + } + + class ISVGPathSegCurvetoCubicSmoothAbs { + private 'MSHTML.ISVGPathSegCurvetoCubicSmoothAbs_typekey': ISVGPathSegCurvetoCubicSmoothAbs; + private constructor(); + x: number; + x2: number; + y: number; + y2: number; + } + + class ISVGPathSegCurvetoCubicSmoothRel { + private 'MSHTML.ISVGPathSegCurvetoCubicSmoothRel_typekey': ISVGPathSegCurvetoCubicSmoothRel; + private constructor(); + x: number; + x2: number; + y: number; + y2: number; + } + + class ISVGPathSegCurvetoQuadraticAbs { + private 'MSHTML.ISVGPathSegCurvetoQuadraticAbs_typekey': ISVGPathSegCurvetoQuadraticAbs; + private constructor(); + x: number; + x1: number; + y: number; + y1: number; + } + + class ISVGPathSegCurvetoQuadraticRel { + private 'MSHTML.ISVGPathSegCurvetoQuadraticRel_typekey': ISVGPathSegCurvetoQuadraticRel; + private constructor(); + x: number; + x1: number; + y: number; + y1: number; + } + + class ISVGPathSegCurvetoQuadraticSmoothAbs { + private 'MSHTML.ISVGPathSegCurvetoQuadraticSmoothAbs_typekey': ISVGPathSegCurvetoQuadraticSmoothAbs; + private constructor(); + x: number; + y: number; + } + + class ISVGPathSegCurvetoQuadraticSmoothRel { + private 'MSHTML.ISVGPathSegCurvetoQuadraticSmoothRel_typekey': ISVGPathSegCurvetoQuadraticSmoothRel; + private constructor(); + x: number; + y: number; + } + + class ISVGPathSegLinetoAbs { + private 'MSHTML.ISVGPathSegLinetoAbs_typekey': ISVGPathSegLinetoAbs; + private constructor(); + x: number; + y: number; + } + + class ISVGPathSegLinetoHorizontalAbs { + private 'MSHTML.ISVGPathSegLinetoHorizontalAbs_typekey': ISVGPathSegLinetoHorizontalAbs; + private constructor(); + x: number; + } + + class ISVGPathSegLinetoHorizontalRel { + private 'MSHTML.ISVGPathSegLinetoHorizontalRel_typekey': ISVGPathSegLinetoHorizontalRel; + private constructor(); + x: number; + } + + class ISVGPathSegLinetoRel { + private 'MSHTML.ISVGPathSegLinetoRel_typekey': ISVGPathSegLinetoRel; + private constructor(); + x: number; + y: number; + } + + class ISVGPathSegLinetoVerticalAbs { + private 'MSHTML.ISVGPathSegLinetoVerticalAbs_typekey': ISVGPathSegLinetoVerticalAbs; + private constructor(); + y: number; + } + + class ISVGPathSegLinetoVerticalRel { + private 'MSHTML.ISVGPathSegLinetoVerticalRel_typekey': ISVGPathSegLinetoVerticalRel; + private constructor(); + y: number; + } + + class ISVGPathSegMovetoAbs { + private 'MSHTML.ISVGPathSegMovetoAbs_typekey': ISVGPathSegMovetoAbs; + private constructor(); + x: number; + y: number; + } + + class ISVGPathSegMovetoRel { + private 'MSHTML.ISVGPathSegMovetoRel_typekey': ISVGPathSegMovetoRel; + private constructor(); + x: number; + y: number; + } + + class ISVGSVGElement { + private 'MSHTML.ISVGSVGElement_typekey': ISVGSVGElement; + private constructor(); + animationsPaused(): boolean; + checkEnclosure(element: ISVGElement, rect: SVGRect): boolean; + checkIntersection(element: ISVGElement, rect: SVGRect): boolean; + contentScriptType: string; + contentStyleType: string; + createSVGAngle(): SVGAngle; + createSVGLength(): SVGLength; + createSVGMatrix(): SVGMatrix; + createSVGNumber(): SVGNumber; + createSVGPoint(): SVGPoint; + createSVGRect(): SVGRect; + createSVGTransform(): SVGTransform; + createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform; + currentScale: number; + currentTranslate: SVGPoint; + currentView: ISVGViewSpec; + deselectAll(): void; + forceRedraw(): void; + getCurrentTime(): number; + getElementById(elementId: string): IHTMLElement; + getEnclosureList(rect: SVGRect, referenceElement: ISVGElement): any; + getIntersectionList(rect: SVGRect, referenceElement: ISVGElement): any; + height: SVGAnimatedLength; + pauseAnimations(): void; + pixelUnitToMillimeterX: number; + pixelUnitToMillimeterY: number; + screenPixelToMillimeterX: number; + screenPixelToMillimeterY: number; + setCurrentTime(seconds: number): void; + suspendRedraw(maxWaitMilliseconds: number): number; + unpauseAnimations(): void; + unsuspendRedraw(suspendHandeID: number): void; + unsuspendRedrawAll(): void; + useCurrentView: boolean; + viewport: SVGRect; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + y: SVGAnimatedLength; + } + + class ISVGUseElement { + private 'MSHTML.ISVGUseElement_typekey': ISVGUseElement; + private constructor(); + animatedInstanceRoot: ISVGElementInstance; + height: SVGAnimatedLength; + instanceRoot: ISVGElementInstance; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + y: SVGAnimatedLength; + } + + class ISVGViewSpec { + private 'MSHTML.ISVGViewSpec_typekey': ISVGViewSpec; + private constructor(); + } + + class IWebGeocoordinates { + private 'MSHTML.IWebGeocoordinates_typekey': IWebGeocoordinates; + private constructor(); + readonly accuracy: number; + readonly altitude: any; + readonly altitudeAccuracy: any; + readonly heading: any; + readonly latitude: number; + readonly longitude: number; + readonly speed: any; + } + + class IWebGeolocation { + private 'MSHTML.IWebGeolocation_typekey': IWebGeolocation; + private constructor(); + clearWatch(watchId: number): void; + getCurrentPosition(successCallback: any, errorCallback?: any, options?: any): void; + watchPosition(successCallback: any, errorCallback?: any, options?: any): number; + } + + class NodeIterator { + private 'MSHTML.NodeIterator_typekey': NodeIterator; + private constructor(); + Detach(): void; + readonly expandEntityReferences: boolean; + readonly filter: any; + nextNode(): any; + previousNode(): any; + readonly root: any; + readonly whatToShow: number; + } + + class OldHTMLDocument { + private 'MSHTML.OldHTMLDocument_typekey': OldHTMLDocument; + private constructor(); + readonly activeElement: IHTMLElement; + addEventListener(type: string, listener: any, useCapture: boolean): void; + adoptNode(pNodeSource: IHTMLDOMNode): IHTMLDOMNode3; + alinkColor: any; + readonly all: IHTMLElementCollection; + readonly anchors: IHTMLElementCollection; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + readonly applets: IHTMLElementCollection; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + bgColor: any; + readonly body: IHTMLElement; + readonly characterSet: string; + charset: string; + readonly childNodes: any; + clear(): void; + cloneNode(fDeep: boolean): IHTMLDOMNode; + close(): void; + compareDocumentPosition(otherNode: IHTMLDOMNode): number; + readonly compatible: IHTMLDocumentCompatibleInfoCollection; + readonly compatMode: string; + readonly 'constructor': any; + cookie: string; + createAttribute(bstrAttrName: string): IHTMLDOMAttribute; + createAttributeNS(pvarNS: any, bstrAttrName: string): IHTMLDOMAttribute; + createCDATASection(text: string): IHTMLDOMNode; + createComment(bstrData: string): IHTMLDOMNode; + createDocumentFragment(): IHTMLDocument2; + createDocumentFromUrl(bstrURL: string, bstrOptions: string): IHTMLDocument2; + createElement(eTag: string): IHTMLElement; + createElementNS(pvarNS: any, bstrTag: string): IHTMLElement; + createEvent(eventType: string): IDOMEvent; + CreateEventObject(pvarEventObject?: any): IHTMLEventObj; + createNodeIterator(pRootNode: any, ulWhatToShow: number, pFilter: any, fEntityReferenceExpansion: boolean): IDOMNodeIterator; + createProcessingInstruction(bstrTarget: string, bstrData: string): IDOMProcessingInstruction; + createRange(): IHTMLDOMRange; + createRenderStyle(v: string): IHTMLRenderStyle; + + /** + * @param string [bstrHref=''] + * @param number [lIndex=-1] + */ + createStyleSheet(bstrHref?: string, lIndex?: number): IHTMLStyleSheet; + createTextNode(text: string): IHTMLDOMNode; + createTreeWalker(pRootNode: any, ulWhatToShow: number, pFilter: any, fEntityReferenceExpansion: boolean): IDOMTreeWalker; + defaultCharset: string; + readonly defaultView: IHTMLWindow2; + designMode: string; + detachEvent(event: string, pdisp: any): void; + dir: string; + dispatchEvent(evt: IDOMEvent): boolean; + readonly doctype: IHTMLDOMNode; + readonly documentElement: IHTMLElement; + readonly documentMode: any; + domain: string; + elementFromPoint(x: number, y: number): IHTMLElement; + elementsFromPoint(x: number, y: number): IHTMLDOMChildrenCollection; + elementsFromRect(left: number, top: number, width: number, height: number): IHTMLDOMChildrenCollection; + readonly embeds: IHTMLElementCollection; + + /** @param boolean [showUI=false] */ + execCommand(cmdID: string, showUI?: boolean, value?: any): boolean; + execCommandShowHelp(cmdID: string): boolean; + expando: boolean; + fgColor: any; + readonly fileCreatedDate: string; + readonly fileModifiedDate: string; + readonly fileSize: string; + readonly fileUpdatedDate: string; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + readonly forms: IHTMLElementCollection; + readonly frames: FramesCollection; + getElementById(v: string): IHTMLElement; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(pvarNS: any, bstrLocalName: string): IHTMLElementCollection; + getSelection(): IHTMLSelection; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hasFocus(): boolean; + readonly head: IHTMLElement; + ie8_getElementById(bstrId: string): IHTMLElement2; + readonly ie9_all: IHTMLElementCollection; + ie9_appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_body: IHTMLElement; + ie9_createAttribute(bstrAttrName: string): IHTMLDOMAttribute; + ie9_createElement(bstrTag: string): IHTMLElement; + ie9_insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly ie9_parentWindow: IHTMLWindow2; + ie9_removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + ie9_replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + readonly images: IHTMLElementCollection; + readonly implementation: IHTMLDOMImplementation; + importNode(pNodeSource: IHTMLDOMNode, fDeep: boolean): IHTMLDOMNode3; + readonly inputEncoding: string; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + isDefaultNamespace(pvarNamespace: any): boolean; + isEqualNode(otherNode: IHTMLDOMNode3): boolean; + isSameNode(otherNode: IHTMLDOMNode3): boolean; + isSupported(feature: string, version: any): boolean; + readonly lastChild: IHTMLDOMNode; + readonly lastModified: string; + linkColor: any; + readonly links: IHTMLElementCollection; + readonly localName: any; + readonly location: IHTMLLocation; + lookupNamespaceURI(pvarPrefix: any): any; + lookupPrefix(pvarNamespaceURI: any): any; + media: string; + readonly mimeType: string; + msCapsLockWarningOff: boolean; + readonly nameProp: string; + readonly namespaces: any; + readonly namespaceURI: any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onmousedown: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmscontentzoom: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsinertiastart: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmssitemodejumplistitemremoved: any; + onmsthumbnailclick: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectionchange: any; + onselectstart: any; + onstalled: any; + onstop: any; + onstorage: any; + onstoragecommit: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + + /** @param string [url='text/html'] */ + open(url?: string, name?: any, features?: any, replace?: any): any; + readonly ownerDocument: any; + readonly parentNode: IHTMLDOMNode; + readonly parentWindow: IHTMLWindow2; + readonly plugins: IHTMLElementCollection; + prefix: any; + readonly previousSibling: IHTMLDOMNode; + readonly protocol: string; + queryCommandEnabled(cmdID: string): boolean; + queryCommandIndeterm(cmdID: string): boolean; + queryCommandState(cmdID: string): boolean; + queryCommandSupported(cmdID: string): boolean; + queryCommandText(cmdID: string): string; + queryCommandValue(cmdID: string): any; + querySelector(v: string): IHTMLElement; + querySelectorAll(v: string): IHTMLDOMChildrenCollection; + readonly readyState: string; + + /** @param boolean [fForce=false] */ + recalc(fForce?: boolean): void; + readonly referrer: string; + releaseCapture(): void; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeEventListener(type: string, listener: any, useCapture: boolean): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + readonly rootElement: ISVGSVGElement; + readonly Script: any; + readonly scripts: IHTMLElementCollection; + readonly security: string; + readonly selection: IHTMLSelectionObject; + readonly styleSheets: IHTMLStyleSheetsCollection; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + textContent: any; + title: string; + toString(): string; + readonly uniqueID: string; + updateSettings(): void; + url: string; + readonly URLUnencoded: string; + vlinkColor: any; + write(...psarray: any[]): void; + writeln(...psarray: any[]): void; + readonly xmlEncoding: string; + xmlStandalone: boolean; + xmlVersion: string; + } + + class OldHTMLFormElement { + private 'MSHTML.OldHTMLFormElement_typekey': OldHTMLFormElement; + private constructor(); + acceptCharset: string; + accessKey: string; + action: string; + addBehavior(bstrURL: string, pvarFactory?: any): number; + addFilter(pUnk: any): void; + readonly all: any; + appendChild(newChild: IHTMLDOMNode): IHTMLDOMNode; + appendItemSeparator(): void; + + /** + * @param string [name=''] + * @param string [filename=''] + */ + appendNameFilePair(name?: string, filename?: string): void; + + /** + * @param string [name=''] + * @param string [value=''] + */ + appendNameValuePair(name?: string, value?: string): void; + applyElement(apply: IHTMLElement, where: string): IHTMLElement; + ariaActivedescendant: string; + ariaBusy: string; + ariaChecked: string; + ariaControls: string; + ariaDescribedby: string; + ariaDisabled: string; + ariaExpanded: string; + ariaFlowto: string; + ariaHaspopup: string; + ariaHidden: string; + ariaInvalid: string; + ariaLabelledby: string; + ariaLevel: number; + ariaLive: string; + ariaMultiselectable: string; + ariaOwns: string; + ariaPosinset: number; + ariaPressed: string; + ariaReadonly: string; + ariaRelevant: string; + ariaRequired: string; + ariaSecret: string; + ariaSelected: string; + ariaSetsize: number; + ariaValuemax: string; + ariaValuemin: string; + ariaValuenow: string; + attachEvent(event: string, pdisp: any): boolean; + readonly attributes: any; + readonly behaviorUrns: any; + blur(): void; + readonly canHaveChildren: boolean; + readonly canHaveHTML: boolean; + readonly childNodes: any; + readonly children: any; + className: string; + clearAttributes(): void; + click(): void; + readonly clientHeight: number; + readonly clientLeft: number; + readonly clientTop: number; + readonly clientWidth: number; + cloneNode(fDeep: boolean): IHTMLDOMNode; + componentFromPoint(x: number, y: number): string; + readonly 'constructor': any; + contains(pChild: IHTMLElement): boolean; + contentEditable: string; + createControlRange(): any; + readonly currentStyle: IHTMLCurrentStyle; + detachEvent(event: string, pdisp: any): void; + dir: string; + disabled: boolean; + readonly document: any; + doScroll(component?: any): void; + dragDrop(): boolean; + readonly elements: any; + encoding: string; + readonly filters: IHTMLFiltersCollection; + FireEvent(bstrEventName: string, pvarEventObject?: any): boolean; + readonly firstChild: IHTMLDOMNode; + focus(): void; + getAdjacentText(where: string): string; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + getAttributeNode(bstrName: string): IHTMLDOMAttribute; + getAttributeNodeNS(pvarNS: any, bstrName: string): IHTMLDOMAttribute2; + getAttributeNS(pvarNS: any, strAttributeName: string): any; + getBoundingClientRect(): IHTMLRect; + getClientRects(): IHTMLRectCollection; + getElementsByClassName(v: string): IHTMLElementCollection; + getElementsByTagName(v: string): IHTMLElementCollection; + getElementsByTagNameNS(varNS: any, bstrLocalName: string): IHTMLElementCollection; + getExpression(propname: string): any; + hasAttribute(name: string): boolean; + hasAttributeNS(pvarNS: any, name: string): boolean; + hasAttributes(): boolean; + hasChildNodes(): boolean; + hideFocus: boolean; + id: string; + ie8_action: string; + readonly ie8_attributes: IHTMLAttributeCollection3; + ie8_getAttribute(strAttributeName: string): any; + ie8_getAttributeNode(bstrName: string): IHTMLDOMAttribute2; + ie8_removeAttribute(strAttributeName: string): boolean; + ie8_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie8_setAttribute(strAttributeName: string, AttributeValue: any): void; + ie8_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_getAttribute(strAttributeName: string): any; + ie9_getAttributeNode(strAttributeName: string): IHTMLDOMAttribute2; + ie9_hasAttribute(name: string): boolean; + ie9_hasAttributes(): boolean; + readonly ie9_nodeName: string; + ie9_removeAttribute(strAttributeName: string): void; + ie9_removeAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + ie9_setAttribute(strAttributeName: string, pvarAttributeValue: any): void; + ie9_setAttributeNode(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + readonly ie9_tagName: string; + innerHTML: string; + innerText: string; + insertAdjacentElement(where: string, insertedElement: IHTMLElement): IHTMLElement; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + insertBefore(newChild: IHTMLDOMNode, refChild?: any): IHTMLDOMNode; + readonly isContentEditable: boolean; + readonly isDisabled: boolean; + readonly isMultiLine: boolean; + readonly isTextEdit: boolean; + item(name?: any, index?: any): any; + lang: string; + language: string; + readonly lastChild: IHTMLDOMNode; + length: number; + mergeAttributes(mergeThis: IHTMLElement, pvarFlags?: any): void; + method: string; + msMatchesSelector(v: string): boolean; + msReleasePointerCapture(pointerId: number): void; + msSetPointerCapture(pointerId: number): void; + name: string; + namedItem(name: string): any; + readonly nextSibling: IHTMLDOMNode; + readonly nodeName: string; + readonly nodeType: number; + nodeValue: any; + normalize(): void; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onabort: any; + onactivate: any; + onafterupdate: any; + onbeforeactivate: any; + onbeforecopy: any; + onbeforecut: any; + onbeforedeactivate: any; + onbeforeeditfocus: any; + onbeforepaste: any; + onbeforeupdate: any; + onblur: any; + oncanplay: any; + oncanplaythrough: any; + oncellchange: any; + onchange: any; + onclick: any; + oncontextmenu: any; + oncontrolselect: any; + oncopy: any; + oncuechange: any; + oncut: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondeactivate: any; + ondrag: any; + ondragend: any; + ondragenter: any; + ondragleave: any; + ondragover: any; + ondragstart: any; + ondrop: any; + ondurationchange: any; + onemptied: any; + onended: any; + onerror: any; + onerrorupdate: any; + onfilterchange: any; + onfocus: any; + onfocusin: any; + onfocusout: any; + onhelp: any; + oninput: any; + oninvalid: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onlayoutcomplete: any; + onload: any; + onloadeddata: any; + onloadedmetadata: any; + onloadstart: any; + onlosecapture: any; + onmousedown: any; + onmouseenter: any; + onmouseleave: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onmousewheel: any; + onmove: any; + onmoveend: any; + onmovestart: any; + onmsanimationend: any; + onmsanimationiteration: any; + onmsanimationstart: any; + onmsgesturechange: any; + onmsgesturedoubletap: any; + onmsgestureend: any; + onmsgesturehold: any; + onmsgesturestart: any; + onmsgesturetap: any; + onmsgotpointercapture: any; + onmsinertiastart: any; + onmslostpointercapture: any; + onmsmanipulationstatechanged: any; + onmspointercancel: any; + onmspointerdown: any; + onmspointerhover: any; + onmspointermove: any; + onmspointerout: any; + onmspointerover: any; + onmspointerup: any; + onmstransitionend: any; + onmstransitionstart: any; + onpage: any; + onpaste: any; + onpause: any; + onplay: any; + onplaying: any; + onprogress: any; + onpropertychange: any; + onratechange: any; + onreadystatechange: any; + onreset: any; + onresize: any; + onresizeend: any; + onresizestart: any; + onrowenter: any; + onrowexit: any; + onrowsdelete: any; + onrowsinserted: any; + onscroll: any; + onseeked: any; + onseeking: any; + onselect: any; + onselectstart: any; + onstalled: any; + onsubmit: any; + onsuspend: any; + ontimeupdate: any; + onvolumechange: any; + onwaiting: any; + outerHTML: string; + outerText: string; + readonly ownerDocument: any; + readonly parentElement: IHTMLElement; + readonly parentNode: IHTMLDOMNode; + readonly parentTextEdit: IHTMLElement; + readonly previousSibling: IHTMLDOMNode; + readonly readyState: any; + readonly recordNumber: any; + releaseCapture(): void; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + removeAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + removeAttributeNS(pvarNS: any, strAttributeName: string): void; + removeBehavior(cookie: number): boolean; + removeChild(oldChild: IHTMLDOMNode): IHTMLDOMNode; + removeExpression(propname: string): boolean; + removeFilter(pUnk: any): void; + + /** @param boolean [fDeep=false] */ + removeNode(fDeep?: boolean): IHTMLDOMNode; + replaceAdjacentText(where: string, newText: string): string; + replaceChild(newChild: IHTMLDOMNode, oldChild: IHTMLDOMNode): IHTMLDOMNode; + replaceNode(replacement: IHTMLDOMNode): IHTMLDOMNode; + reset(): void; + role: string; + readonly runtimeStyle: IHTMLStyle; + readonly scopeName: string; + readonly scrollHeight: number; + scrollIntoView(varargStart?: any): void; + scrollLeft: number; + scrollTop: number; + readonly scrollWidth: number; + setActive(): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + setAttributeNode(pattr: IHTMLDOMAttribute): IHTMLDOMAttribute; + setAttributeNodeNS(pattr: IHTMLDOMAttribute2): IHTMLDOMAttribute2; + setAttributeNS(pvarNS: any, strAttributeName: string, pvarAttributeValue: any): void; + + /** @param boolean [containerCapture=true] */ + setCapture(containerCapture?: boolean): void; + + /** @param string [language=''] */ + setExpression(propname: string, expression: string, language?: string): void; + readonly sourceIndex: number; + spellcheck: any; + readonly style: IHTMLStyle; + submit(): void; + swapNode(otherNode: IHTMLDOMNode): IHTMLDOMNode; + tabIndex: number; + readonly tagName: string; + tags(tagName: any): any; + tagUrn: string; + target: string; + title: string; + toString(): string; + readonly uniqueID: string; + readonly uniqueNumber: number; + urns(urn: any): any; + xmsAcceleratorKey: string; + } + + class RangeException { + private 'MSHTML.RangeException_typekey': RangeException; + private constructor(); + code: number; + readonly message: string; + } + + class RulesApplied { + private 'MSHTML.RulesApplied_typekey': RulesApplied; + private constructor(); + readonly appliedRules: IHTMLStyleSheetRulesAppliedCollection; + readonly element: IHTMLElement; + hasInheritableProperty(): boolean; + readonly inlineStyles: IHTMLStyle; + propertyIsInheritable(name: string): boolean; + propertyIsInline(name: string): boolean; + } + + class RulesAppliedCollection { + private 'MSHTML.RulesAppliedCollection_typekey': RulesAppliedCollection; + private constructor(); + readonly element: IHTMLElement; + item(index: number): IRulesApplied; + readonly length: number; + property(index: number): string; + readonly propertyCount: number; + propertyInheritedFrom(name: string): IRulesApplied; + propertyInheritedTrace(name: string, index: number): IRulesApplied; + propertyInheritedTraceLength(name: string): number; + } + + class Scriptlet { + private 'MSHTML.Scriptlet_typekey': Scriptlet; + private constructor(); + AboutBox(): void; + embed: boolean; + readonly event: any; + readonly readyState: number; + Scrollbar: boolean; + url: string; + } + + class StaticNodeList { + private 'MSHTML.StaticNodeList_typekey': StaticNodeList; + private constructor(); + readonly 'constructor': any; + item(index: number): any; + readonly length: number; + } + + class SVGAElement { + private 'MSHTML.SVGAElement_typekey': SVGAElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + readonly href: SVGAnimatedString; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + target: SVGAnimatedString; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + xmlbase: string; + xmllang: string; + xmlspace: string; + } + + class SVGAngle { + private 'MSHTML.SVGAngle_typekey': SVGAngle; + private constructor(); + convertToSpecifiedUnits(unitType: number): void; + newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; + unitType: number; + value: number; + valueAsString: string; + valueInSpecifiedUnits: number; + } + + class SVGAnimatedAngle { + private 'MSHTML.SVGAnimatedAngle_typekey': SVGAnimatedAngle; + private constructor(); + animVal: SVGAngle; + baseVal: SVGAngle; + } + + class SVGAnimatedBoolean { + private 'MSHTML.SVGAnimatedBoolean_typekey': SVGAnimatedBoolean; + private constructor(); + animVal: boolean; + baseVal: boolean; + } + + class SVGAnimatedEnumeration { + private 'MSHTML.SVGAnimatedEnumeration_typekey': SVGAnimatedEnumeration; + private constructor(); + animVal: number; + baseVal: number; + } + + class SVGAnimatedInteger { + private 'MSHTML.SVGAnimatedInteger_typekey': SVGAnimatedInteger; + private constructor(); + animVal: number; + baseVal: number; + } + + class SVGAnimatedLength { + private 'MSHTML.SVGAnimatedLength_typekey': SVGAnimatedLength; + private constructor(); + animVal: SVGLength; + baseVal: SVGLength; + } + + class SVGAnimatedLengthList { + private 'MSHTML.SVGAnimatedLengthList_typekey': SVGAnimatedLengthList; + private constructor(); + animVal: SVGLengthList; + baseVal: SVGLengthList; + } + + class SVGAnimatedNumber { + private 'MSHTML.SVGAnimatedNumber_typekey': SVGAnimatedNumber; + private constructor(); + animVal: number; + baseVal: number; + } + + class SVGAnimatedNumberList { + private 'MSHTML.SVGAnimatedNumberList_typekey': SVGAnimatedNumberList; + private constructor(); + animVal: SVGNumberList; + baseVal: SVGNumberList; + } + + class SVGAnimatedPreserveAspectRatio { + private 'MSHTML.SVGAnimatedPreserveAspectRatio_typekey': SVGAnimatedPreserveAspectRatio; + private constructor(); + animVal: SVGPreserveAspectRatio; + baseVal: SVGPreserveAspectRatio; + } + + class SVGAnimatedRect { + private 'MSHTML.SVGAnimatedRect_typekey': SVGAnimatedRect; + private constructor(); + animVal: SVGRect; + baseVal: SVGRect; + } + + class SVGAnimatedString { + private 'MSHTML.SVGAnimatedString_typekey': SVGAnimatedString; + private constructor(); + readonly animVal: string; + baseVal: string; + } + + class SVGAnimatedTransformList { + private 'MSHTML.SVGAnimatedTransformList_typekey': SVGAnimatedTransformList; + private constructor(); + animVal: SVGTransformList; + baseVal: SVGTransformList; + } + + class SVGCircleElement { + private 'MSHTML.SVGCircleElement_typekey': SVGCircleElement; + private constructor(); + cx: SVGAnimatedLength; + cy: SVGAnimatedLength; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + r: SVGAnimatedLength; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + xmlbase: string; + } + + class SVGClipPathElement { + private 'MSHTML.SVGClipPathElement_typekey': SVGClipPathElement; + private constructor(); + readonly className: SVGAnimatedString; + clipPathUnits: SVGAnimatedEnumeration; + readonly externalResourcesRequired: SVGAnimatedBoolean; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + xmlbase: string; + xmllang: string; + xmlspace: string; + } + + class SVGDefsElement { + private 'MSHTML.SVGDefsElement_typekey': SVGDefsElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + xmlbase: string; + xmllang: string; + xmlspace: string; + } + + class SVGDescElement { + private 'MSHTML.SVGDescElement_typekey': SVGDescElement; + private constructor(); + readonly className: SVGAnimatedString; + focusable: SVGAnimatedEnumeration; + ownerSVGElement: ISVGSVGElement; + viewportElement: ISVGElement; + xmlbase: string; + xmllang: string; + xmlspace: string; + } + + class SVGElement { + private 'MSHTML.SVGElement_typekey': SVGElement; + private constructor(); + readonly all: any; + readonly children: any; + className: string; + click(): void; + contains(pChild: IHTMLElement): boolean; + readonly document: any; + readonly filters: IHTMLFiltersCollection; + focusable: SVGAnimatedEnumeration; + + /** @param number [lFlags=0] */ + getAttribute(strAttributeName: string, lFlags?: number): any; + id: string; + innerHTML: string; + innerText: string; + insertAdjacentHTML(where: string, html: string): void; + insertAdjacentText(where: string, text: string): void; + readonly isTextEdit: boolean; + lang: string; + language: string; + readonly offsetHeight: number; + readonly offsetLeft: number; + readonly offsetParent: IHTMLElement; + readonly offsetTop: number; + readonly offsetWidth: number; + onafterupdate: any; + onbeforeupdate: any; + onclick: any; + ondataavailable: any; + ondatasetchanged: any; + ondatasetcomplete: any; + ondblclick: any; + ondragstart: any; + onerrorupdate: any; + onfilterchange: any; + onhelp: any; + onkeydown: any; + onkeypress: any; + onkeyup: any; + onmousedown: any; + onmousemove: any; + onmouseout: any; + onmouseover: any; + onmouseup: any; + onrowenter: any; + onrowexit: any; + onselectstart: any; + outerHTML: string; + outerText: string; + ownerSVGElement: ISVGSVGElement; + readonly parentElement: IHTMLElement; + readonly parentTextEdit: IHTMLElement; + readonly recordNumber: any; + + /** @param number [lFlags=1] */ + removeAttribute(strAttributeName: string, lFlags?: number): boolean; + scrollIntoView(varargStart?: any): void; + + /** @param number [lFlags=1] */ + setAttribute(strAttributeName: string, AttributeValue: any, lFlags?: number): void; + readonly sourceIndex: number; + readonly style: IHTMLStyle; + readonly tagName: string; + title: string; + toString(): string; + viewportElement: ISVGElement; + xmlbase: string; + } + + class SVGElementInstance { + private 'MSHTML.SVGElementInstance_typekey': SVGElementInstance; + private constructor(); + addEventListener(type: string, listener: any, useCapture: boolean): void; + readonly childNodes: ISVGElementInstanceList; + readonly correspondingElement: ISVGElement; + readonly correspondingUseElement: ISVGUseElement; + dispatchEvent(evt: IDOMEvent): boolean; + readonly firstChild: ISVGElementInstance; + readonly lastChild: ISVGElementInstance; + readonly nextSibling: ISVGElementInstance; + readonly parentNode: ISVGElementInstance; + readonly previousSibling: ISVGElementInstance; + removeEventListener(type: string, listener: any, useCapture: boolean): void; + } + + class SVGElementInstanceList { + private 'MSHTML.SVGElementInstanceList_typekey': SVGElementInstanceList; + private constructor(); + item(index: number): ISVGElementInstance; + readonly length: number; + } + + class SVGEllipseElement { + private 'MSHTML.SVGEllipseElement_typekey': SVGEllipseElement; + private constructor(); + cx: SVGAnimatedLength; + cy: SVGAnimatedLength; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + rx: SVGAnimatedLength; + ry: SVGAnimatedLength; + readonly systemLanguage: SVGStringList; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + xmlbase: string; + } + + class SVGException { + private 'MSHTML.SVGException_typekey': SVGException; + private constructor(); + code: number; + readonly message: string; + } + + class SVGGElement { + private 'MSHTML.SVGGElement_typekey': SVGGElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + xmlbase: string; + xmllang: string; + xmlspace: string; + } + + class SVGGradientElement { + private 'MSHTML.SVGGradientElement_typekey': SVGGradientElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + focusable: SVGAnimatedEnumeration; + gradientTransform: SVGAnimatedTransformList; + gradientUnits: SVGAnimatedEnumeration; + readonly href: SVGAnimatedString; + ownerSVGElement: ISVGSVGElement; + spreadMethod: SVGAnimatedEnumeration; + viewportElement: ISVGElement; + xmlbase: string; + } + + class SVGImageElement { + private 'MSHTML.SVGImageElement_typekey': SVGImageElement; + private constructor(); + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + height: SVGAnimatedLength; + readonly href: SVGAnimatedString; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + readonly transform: SVGAnimatedTransformList; + readonly viewBox: SVGAnimatedRect; + viewportElement: ISVGElement; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + xmlbase: string; + y: SVGAnimatedLength; + } + + class SVGLength { + private 'MSHTML.SVGLength_typekey': SVGLength; + private constructor(); + convertToSpecifiedUnits(unitType: number): void; + newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void; + unitType: number; + value: number; + valueAsString: string; + valueInSpecifiedUnits: number; + } + + class SVGLengthList { + private 'MSHTML.SVGLengthList_typekey': SVGLengthList; + private constructor(); + appendItem(newItem: SVGLength): SVGLength; + clear(): void; + getItem(index: number): SVGLength; + initialize(newItem: SVGLength): SVGLength; + insertItemBefore(newItem: SVGLength, index: number): SVGLength; + numberOfItems: number; + removeItem(index: number): SVGLength; + replaceItem(newItem: SVGLength, index: number): SVGLength; + } + + class SVGLinearGradientElement { + private 'MSHTML.SVGLinearGradientElement_typekey': SVGLinearGradientElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + focusable: SVGAnimatedEnumeration; + gradientTransform: SVGAnimatedTransformList; + gradientUnits: SVGAnimatedEnumeration; + readonly href: SVGAnimatedString; + ownerSVGElement: ISVGSVGElement; + spreadMethod: SVGAnimatedEnumeration; + viewportElement: ISVGElement; + x1: SVGAnimatedLength; + x2: SVGAnimatedLength; + xmlbase: string; + y1: SVGAnimatedLength; + y2: SVGAnimatedLength; + } + + class SVGLineElement { + private 'MSHTML.SVGLineElement_typekey': SVGLineElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + x1: SVGAnimatedLength; + x2: SVGAnimatedLength; + xmlbase: string; + xmllang: string; + xmlspace: string; + y1: SVGAnimatedLength; + y2: SVGAnimatedLength; + } + + class SVGMarkerElement { + private 'MSHTML.SVGMarkerElement_typekey': SVGMarkerElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + focusable: SVGAnimatedEnumeration; + markerHeight: SVGAnimatedLength; + markerUnits: SVGAnimatedEnumeration; + markerWidth: SVGAnimatedLength; + orientAngle: SVGAnimatedAngle; + orientType: SVGAnimatedEnumeration; + ownerSVGElement: ISVGSVGElement; + preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + refX: SVGAnimatedLength; + refY: SVGAnimatedLength; + setOrientToAngle(pSVGAngle: SVGAngle): void; + setOrientToAuto(): void; + readonly viewBox: SVGAnimatedRect; + viewportElement: ISVGElement; + xmlbase: string; + xmllang: string; + xmlspace: string; + } + + class SVGMaskElement { + private 'MSHTML.SVGMaskElement_typekey': SVGMaskElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + focusable: SVGAnimatedEnumeration; + hasExtension(extension: string): boolean; + height: SVGAnimatedLength; + maskContentUnits: SVGAnimatedEnumeration; + maskUnits: SVGAnimatedEnumeration; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + viewportElement: ISVGElement; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + xmlbase: string; + xmllang: string; + xmlspace: string; + y: SVGAnimatedLength; + } + + class SVGMatrix { + private 'MSHTML.SVGMatrix_typekey': SVGMatrix; + private constructor(); + a: number; + b: number; + c: number; + d: number; + e: number; + f: number; + flipX(): SVGMatrix; + flipY(): SVGMatrix; + inverse(): SVGMatrix; + multiply(secondMatrix: SVGMatrix): SVGMatrix; + rotate(angle: number): SVGMatrix; + rotateFromVector(x: number, y: number): SVGMatrix; + scale(scaleFactor: number): SVGMatrix; + scaleNonUniform(scaleFactorX: number, scaleFactorY: number): SVGMatrix; + skewX(angle: number): SVGMatrix; + skewY(angle: number): SVGMatrix; + translate(x: number, y: number): SVGMatrix; + } + + class SVGMetadataElement { + private 'MSHTML.SVGMetadataElement_typekey': SVGMetadataElement; + private constructor(); + focusable: SVGAnimatedEnumeration; + ownerSVGElement: ISVGSVGElement; + viewportElement: ISVGElement; + xmlbase: string; + } + + class SVGNumber { + private 'MSHTML.SVGNumber_typekey': SVGNumber; + private constructor(); + value: number; + } + + class SVGNumberList { + private 'MSHTML.SVGNumberList_typekey': SVGNumberList; + private constructor(); + appendItem(newItem: SVGNumber): SVGNumber; + clear(): void; + getItem(index: number): SVGNumber; + initialize(newItem: SVGNumber): SVGNumber; + insertItemBefore(newItem: SVGNumber, index: number): SVGNumber; + numberOfItems: number; + removeItem(index: number): SVGNumber; + replaceItem(newItem: SVGNumber, index: number): SVGNumber; + } + + class SVGPathElement { + private 'MSHTML.SVGPathElement_typekey': SVGPathElement; + private constructor(); + animatedNormalizedPathSegList: SVGPathSegList; + animatedPathSegList: SVGPathSegList; + createSVGPathSegArcAbs(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): ISVGPathSegArcAbs; + createSVGPathSegArcRel(x: number, y: number, r1: number, r2: number, angle: number, largeArcFlag: boolean, sweepFlag: boolean): ISVGPathSegArcRel; + createSVGPathSegClosePath(): ISVGPathSegClosePath; + createSVGPathSegCurvetoCubicAbs(x: number, y: number, x1: number, y1: number, x2: number, y2: number): ISVGPathSegCurvetoCubicAbs; + createSVGPathSegCurvetoCubicRel(x: number, y: number, x1: number, y1: number, x2: number, y2: number): ISVGPathSegCurvetoCubicRel; + createSVGPathSegCurvetoCubicSmoothAbs(x: number, y: number, x2: number, y2: number): ISVGPathSegCurvetoCubicSmoothAbs; + createSVGPathSegCurvetoCubicSmoothRel(x: number, y: number, x2: number, y2: number): ISVGPathSegCurvetoCubicSmoothRel; + createSVGPathSegCurvetoQuadraticAbs(x: number, y: number, x1: number, y1: number): ISVGPathSegCurvetoQuadraticAbs; + createSVGPathSegCurvetoQuadraticRel(x: number, y: number, x1: number, y1: number): ISVGPathSegCurvetoQuadraticRel; + createSVGPathSegCurvetoQuadraticSmoothAbs(x: number, y: number): ISVGPathSegCurvetoQuadraticSmoothAbs; + createSVGPathSegCurvetoQuadraticSmoothRel(x: number, y: number): ISVGPathSegCurvetoQuadraticSmoothRel; + createSVGPathSegLinetoAbs(x: number, y: number): ISVGPathSegLinetoAbs; + createSVGPathSegLinetoHorizontalAbs(x: number): ISVGPathSegLinetoHorizontalAbs; + createSVGPathSegLinetoHorizontalRel(x: number): ISVGPathSegLinetoHorizontalRel; + createSVGPathSegLinetoRel(x: number, y: number): ISVGPathSegLinetoRel; + createSVGPathSegLinetoVerticalAbs(y: number): ISVGPathSegLinetoVerticalAbs; + createSVGPathSegLinetoVerticalRel(y: number): ISVGPathSegLinetoVerticalRel; + createSVGPathSegMovetoAbs(x: number, y: number): ISVGPathSegMovetoAbs; + createSVGPathSegMovetoRel(x: number, y: number): ISVGPathSegMovetoRel; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getPathSegAtLength(fltdistance: number): number; + getPointAtLength(fltdistance: number): SVGPoint; + getScreenCTM(): SVGMatrix; + getTotalLength(): number; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + readonly nearestViewportElement: ISVGElement; + normalizedPathSegList: SVGPathSegList; + ownerSVGElement: ISVGSVGElement; + pathLength: SVGAnimatedNumber; + pathSegList: SVGPathSegList; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + xmlbase: string; + } + + class SVGPathSeg { + private 'MSHTML.SVGPathSeg_typekey': SVGPathSeg; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + } + + class SVGPathSegArcAbs { + private 'MSHTML.SVGPathSegArcAbs_typekey': SVGPathSegArcAbs; + private constructor(); + angle: number; + largeArcFlag: boolean; + pathSegType: number; + readonly pathSegTypeAsLetter: string; + r1: number; + r2: number; + sweepFlag: boolean; + x: number; + y: number; + } + + class SVGPathSegArcRel { + private 'MSHTML.SVGPathSegArcRel_typekey': SVGPathSegArcRel; + private constructor(); + angle: number; + largeArcFlag: boolean; + pathSegType: number; + readonly pathSegTypeAsLetter: string; + r1: number; + r2: number; + sweepFlag: boolean; + x: number; + y: number; + } + + class SVGPathSegClosePath { + private 'MSHTML.SVGPathSegClosePath_typekey': SVGPathSegClosePath; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + } + + class SVGPathSegCurvetoCubicAbs { + private 'MSHTML.SVGPathSegCurvetoCubicAbs_typekey': SVGPathSegCurvetoCubicAbs; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + x1: number; + x2: number; + y: number; + y1: number; + y2: number; + } + + class SVGPathSegCurvetoCubicRel { + private 'MSHTML.SVGPathSegCurvetoCubicRel_typekey': SVGPathSegCurvetoCubicRel; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + x1: number; + x2: number; + y: number; + y1: number; + y2: number; + } + + class SVGPathSegCurvetoCubicSmoothAbs { + private 'MSHTML.SVGPathSegCurvetoCubicSmoothAbs_typekey': SVGPathSegCurvetoCubicSmoothAbs; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + x2: number; + y: number; + y2: number; + } + + class SVGPathSegCurvetoCubicSmoothRel { + private 'MSHTML.SVGPathSegCurvetoCubicSmoothRel_typekey': SVGPathSegCurvetoCubicSmoothRel; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + x2: number; + y: number; + y2: number; + } + + class SVGPathSegCurvetoQuadraticAbs { + private 'MSHTML.SVGPathSegCurvetoQuadraticAbs_typekey': SVGPathSegCurvetoQuadraticAbs; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + x1: number; + y: number; + y1: number; + } + + class SVGPathSegCurvetoQuadraticRel { + private 'MSHTML.SVGPathSegCurvetoQuadraticRel_typekey': SVGPathSegCurvetoQuadraticRel; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + x1: number; + y: number; + y1: number; + } + + class SVGPathSegCurvetoQuadraticSmoothAbs { + private 'MSHTML.SVGPathSegCurvetoQuadraticSmoothAbs_typekey': SVGPathSegCurvetoQuadraticSmoothAbs; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + y: number; + } + + class SVGPathSegCurvetoQuadraticSmoothRel { + private 'MSHTML.SVGPathSegCurvetoQuadraticSmoothRel_typekey': SVGPathSegCurvetoQuadraticSmoothRel; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + y: number; + } + + class SVGPathSegLinetoAbs { + private 'MSHTML.SVGPathSegLinetoAbs_typekey': SVGPathSegLinetoAbs; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + y: number; + } + + class SVGPathSegLinetoHorizontalAbs { + private 'MSHTML.SVGPathSegLinetoHorizontalAbs_typekey': SVGPathSegLinetoHorizontalAbs; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + } + + class SVGPathSegLinetoHorizontalRel { + private 'MSHTML.SVGPathSegLinetoHorizontalRel_typekey': SVGPathSegLinetoHorizontalRel; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + } + + class SVGPathSegLinetoRel { + private 'MSHTML.SVGPathSegLinetoRel_typekey': SVGPathSegLinetoRel; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + y: number; + } + + class SVGPathSegLinetoVerticalAbs { + private 'MSHTML.SVGPathSegLinetoVerticalAbs_typekey': SVGPathSegLinetoVerticalAbs; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + y: number; + } + + class SVGPathSegLinetoVerticalRel { + private 'MSHTML.SVGPathSegLinetoVerticalRel_typekey': SVGPathSegLinetoVerticalRel; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + y: number; + } + + class SVGPathSegList { + private 'MSHTML.SVGPathSegList_typekey': SVGPathSegList; + private constructor(); + appendItem(newItem: SVGPathSeg): SVGPathSeg; + clear(): void; + getItem(index: number): SVGPathSeg; + initialize(newItem: SVGPathSeg): SVGPathSeg; + insertItemBefore(newItem: SVGPathSeg, index: number): SVGPathSeg; + numberOfItems: number; + removeItem(index: number): SVGPathSeg; + replaceItem(newItem: SVGPathSeg, index: number): SVGPathSeg; + } + + class SVGPathSegMovetoAbs { + private 'MSHTML.SVGPathSegMovetoAbs_typekey': SVGPathSegMovetoAbs; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + y: number; + } + + class SVGPathSegMovetoRel { + private 'MSHTML.SVGPathSegMovetoRel_typekey': SVGPathSegMovetoRel; + private constructor(); + pathSegType: number; + readonly pathSegTypeAsLetter: string; + x: number; + y: number; + } + + class SVGPatternElement { + private 'MSHTML.SVGPatternElement_typekey': SVGPatternElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + focusable: SVGAnimatedEnumeration; + hasExtension(extension: string): boolean; + height: SVGAnimatedLength; + readonly href: SVGAnimatedString; + ownerSVGElement: ISVGSVGElement; + patternContentUnits: SVGAnimatedEnumeration; + patternTransform: SVGAnimatedTransformList; + patternUnits: SVGAnimatedEnumeration; + preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + readonly viewBox: SVGAnimatedRect; + viewportElement: ISVGElement; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + xmlbase: string; + xmllang: string; + xmlspace: string; + y: SVGAnimatedLength; + } + + class SVGPoint { + private 'MSHTML.SVGPoint_typekey': SVGPoint; + private constructor(); + matrixTransform(pMatrix: SVGMatrix): SVGPoint; + x: number; + y: number; + } + + class SVGPointList { + private 'MSHTML.SVGPointList_typekey': SVGPointList; + private constructor(); + appendItem(pNewItem: SVGPoint): SVGPoint; + clear(): void; + getItem(index: number): SVGPoint; + initialize(pNewItem: SVGPoint): SVGPoint; + insertItemBefore(pNewItem: SVGPoint, index: number): SVGPoint; + numberOfItems: number; + removeItem(index: number): SVGPoint; + replaceItem(pNewItem: SVGPoint, index: number): SVGPoint; + } + + class SVGPolygonElement { + private 'MSHTML.SVGPolygonElement_typekey': SVGPolygonElement; + private constructor(); + animatedPoints: SVGPointList; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + points: SVGPointList; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + xmlbase: string; + } + + class SVGPolylineElement { + private 'MSHTML.SVGPolylineElement_typekey': SVGPolylineElement; + private constructor(); + animatedPoints: SVGPointList; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + points: SVGPointList; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + xmlbase: string; + } + + class SVGPreserveAspectRatio { + private 'MSHTML.SVGPreserveAspectRatio_typekey': SVGPreserveAspectRatio; + private constructor(); + align: number; + meetOrSlice: number; + } + + class SVGRadialGradientElement { + private 'MSHTML.SVGRadialGradientElement_typekey': SVGRadialGradientElement; + private constructor(); + readonly className: SVGAnimatedString; + cx: SVGAnimatedLength; + cy: SVGAnimatedLength; + readonly externalResourcesRequired: SVGAnimatedBoolean; + focusable: SVGAnimatedEnumeration; + fx: SVGAnimatedLength; + fy: SVGAnimatedLength; + gradientTransform: SVGAnimatedTransformList; + gradientUnits: SVGAnimatedEnumeration; + readonly href: SVGAnimatedString; + ownerSVGElement: ISVGSVGElement; + r: SVGAnimatedLength; + spreadMethod: SVGAnimatedEnumeration; + viewportElement: ISVGElement; + xmlbase: string; + } + + class SVGRect { + private 'MSHTML.SVGRect_typekey': SVGRect; + private constructor(); + height: number; + width: number; + x: number; + y: number; + } + + class SVGRectElement { + private 'MSHTML.SVGRectElement_typekey': SVGRectElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + height: SVGAnimatedLength; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + rx: SVGAnimatedLength; + ry: SVGAnimatedLength; + readonly systemLanguage: SVGStringList; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + xmlbase: string; + xmllang: string; + xmlspace: string; + y: SVGAnimatedLength; + } + + class SVGScriptElement { + private 'MSHTML.SVGScriptElement_typekey': SVGScriptElement; + private constructor(); + readonly externalResourcesRequired: SVGAnimatedBoolean; + focusable: SVGAnimatedEnumeration; + readonly href: SVGAnimatedString; + ownerSVGElement: ISVGSVGElement; + type: string; + viewportElement: ISVGElement; + xmlbase: string; + } + + class SVGStopElement { + private 'MSHTML.SVGStopElement_typekey': SVGStopElement; + private constructor(); + readonly className: SVGAnimatedString; + focusable: SVGAnimatedEnumeration; + offset: SVGAnimatedNumber; + ownerSVGElement: ISVGSVGElement; + viewportElement: ISVGElement; + xmlbase: string; + } + + class SVGStringList { + private 'MSHTML.SVGStringList_typekey': SVGStringList; + private constructor(); + appendItem(newItem: string): string; + clear(): void; + getItem(index: number): string; + initialize(newItem: string): string; + insertItemBefore(newItem: string, index: number): string; + numberOfItems: number; + removeItem(index: number): string; + replaceItem(newItem: string, index: number): string; + } + + class SVGStyleElement { + private 'MSHTML.SVGStyleElement_typekey': SVGStyleElement; + private constructor(); + focusable: SVGAnimatedEnumeration; + media: string; + ownerSVGElement: ISVGSVGElement; + type: string; + viewportElement: ISVGElement; + xmlbase: string; + xmllang: string; + xmlspace: string; + } + + class SVGSVGElement { + private 'MSHTML.SVGSVGElement_typekey': SVGSVGElement; + private constructor(); + animationsPaused(): boolean; + checkEnclosure(element: ISVGElement, rect: SVGRect): boolean; + checkIntersection(element: ISVGElement, rect: SVGRect): boolean; + readonly className: SVGAnimatedString; + contentScriptType: string; + contentStyleType: string; + createSVGAngle(): SVGAngle; + createSVGLength(): SVGLength; + createSVGMatrix(): SVGMatrix; + createSVGNumber(): SVGNumber; + createSVGPoint(): SVGPoint; + createSVGRect(): SVGRect; + createSVGTransform(): SVGTransform; + createSVGTransformFromMatrix(matrix: SVGMatrix): SVGTransform; + currentScale: number; + currentTranslate: SVGPoint; + currentView: ISVGViewSpec; + deselectAll(): void; + readonly externalResourcesRequired: SVGAnimatedBoolean; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + forceRedraw(): void; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getCurrentTime(): number; + getElementById(elementId: string): IHTMLElement; + getEnclosureList(rect: SVGRect, referenceElement: ISVGElement): any; + getIntersectionList(rect: SVGRect, referenceElement: ISVGElement): any; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + height: SVGAnimatedLength; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + pauseAnimations(): void; + pixelUnitToMillimeterX: number; + pixelUnitToMillimeterY: number; + preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + screenPixelToMillimeterX: number; + screenPixelToMillimeterY: number; + setCurrentTime(seconds: number): void; + suspendRedraw(maxWaitMilliseconds: number): number; + readonly systemLanguage: SVGStringList; + unpauseAnimations(): void; + unsuspendRedraw(suspendHandeID: number): void; + unsuspendRedrawAll(): void; + useCurrentView: boolean; + readonly viewBox: SVGAnimatedRect; + viewport: SVGRect; + viewportElement: ISVGElement; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + xmlbase: string; + xmllang: string; + xmlspace: string; + y: SVGAnimatedLength; + readonly zoomAndPan: number; + } + + class SVGSwitchElement { + private 'MSHTML.SVGSwitchElement_typekey': SVGSwitchElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + xmlbase: string; + xmllang: string; + xmlspace: string; + } + + class SVGSymbolElement { + private 'MSHTML.SVGSymbolElement_typekey': SVGSymbolElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + focusable: SVGAnimatedEnumeration; + ownerSVGElement: ISVGSVGElement; + preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + readonly viewBox: SVGAnimatedRect; + viewportElement: ISVGElement; + xmlbase: string; + xmllang: string; + xmlspace: string; + } + + class SVGTextContentElement { + private 'MSHTML.SVGTextContentElement_typekey': SVGTextContentElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + focusable: SVGAnimatedEnumeration; + getCharNumAtPosition(point: SVGPoint): number; + getComputedTextLength(): number; + getEndPositionOfChar(charnum: number): SVGPoint; + getExtentOfChar(charnum: number): SVGRect; + getNumberOfChars(): number; + getRotationOfChar(charnum: number): number; + getStartPositionOfChar(charnum: number): SVGPoint; + getSubStringLength(charnum: number, nchars: number): number; + hasExtension(extension: string): boolean; + lengthAdjust: SVGAnimatedEnumeration; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + selectSubString(charnum: number, nchars: number): void; + readonly systemLanguage: SVGStringList; + textLength: SVGAnimatedLength; + viewportElement: ISVGElement; + xmlbase: string; + xmllang: string; + xmlspace: string; + } + + class SVGTextElement { + private 'MSHTML.SVGTextElement_typekey': SVGTextElement; + private constructor(); + readonly className: SVGAnimatedString; + dx: SVGAnimatedLengthList; + dy: SVGAnimatedLengthList; + readonly externalResourcesRequired: SVGAnimatedBoolean; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCharNumAtPosition(point: SVGPoint): number; + getComputedTextLength(): number; + getCTM(): SVGMatrix; + getEndPositionOfChar(charnum: number): SVGPoint; + getExtentOfChar(charnum: number): SVGRect; + getNumberOfChars(): number; + getRotationOfChar(charnum: number): number; + getScreenCTM(): SVGMatrix; + getStartPositionOfChar(charnum: number): SVGPoint; + getSubStringLength(charnum: number, nchars: number): number; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + lengthAdjust: SVGAnimatedEnumeration; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + rotate: SVGAnimatedNumberList; + selectSubString(charnum: number, nchars: number): void; + readonly systemLanguage: SVGStringList; + textLength: SVGAnimatedLength; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + x: SVGAnimatedLengthList; + xmlbase: string; + xmllang: string; + xmlspace: string; + y: SVGAnimatedLengthList; + } + + class SVGTextPathElement { + private 'MSHTML.SVGTextPathElement_typekey': SVGTextPathElement; + private constructor(); + readonly className: SVGAnimatedString; + readonly externalResourcesRequired: SVGAnimatedBoolean; + focusable: SVGAnimatedEnumeration; + getCharNumAtPosition(point: SVGPoint): number; + getComputedTextLength(): number; + getEndPositionOfChar(charnum: number): SVGPoint; + getExtentOfChar(charnum: number): SVGRect; + getNumberOfChars(): number; + getRotationOfChar(charnum: number): number; + getStartPositionOfChar(charnum: number): SVGPoint; + getSubStringLength(charnum: number, nchars: number): number; + hasExtension(extension: string): boolean; + readonly href: SVGAnimatedString; + lengthAdjust: SVGAnimatedEnumeration; + method: SVGAnimatedEnumeration; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + selectSubString(charnum: number, nchars: number): void; + spacing: SVGAnimatedEnumeration; + startOffset: SVGAnimatedLength; + readonly systemLanguage: SVGStringList; + textLength: SVGAnimatedLength; + viewportElement: ISVGElement; + xmlbase: string; + xmllang: string; + xmlspace: string; + } + + class SVGTextPositioningElement { + private 'MSHTML.SVGTextPositioningElement_typekey': SVGTextPositioningElement; + private constructor(); + readonly className: SVGAnimatedString; + dx: SVGAnimatedLengthList; + dy: SVGAnimatedLengthList; + readonly externalResourcesRequired: SVGAnimatedBoolean; + focusable: SVGAnimatedEnumeration; + getCharNumAtPosition(point: SVGPoint): number; + getComputedTextLength(): number; + getEndPositionOfChar(charnum: number): SVGPoint; + getExtentOfChar(charnum: number): SVGRect; + getNumberOfChars(): number; + getRotationOfChar(charnum: number): number; + getStartPositionOfChar(charnum: number): SVGPoint; + getSubStringLength(charnum: number, nchars: number): number; + hasExtension(extension: string): boolean; + lengthAdjust: SVGAnimatedEnumeration; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + rotate: SVGAnimatedNumberList; + selectSubString(charnum: number, nchars: number): void; + readonly systemLanguage: SVGStringList; + textLength: SVGAnimatedLength; + viewportElement: ISVGElement; + x: SVGAnimatedLengthList; + xmlbase: string; + xmllang: string; + xmlspace: string; + y: SVGAnimatedLengthList; + } + + class SVGTitleElement { + private 'MSHTML.SVGTitleElement_typekey': SVGTitleElement; + private constructor(); + readonly className: SVGAnimatedString; + focusable: SVGAnimatedEnumeration; + ownerSVGElement: ISVGSVGElement; + viewportElement: ISVGElement; + xmlbase: string; + xmllang: string; + xmlspace: string; + } + + class SVGTransform { + private 'MSHTML.SVGTransform_typekey': SVGTransform; + private constructor(); + angle: number; + matrix: SVGMatrix; + setMatrix(matrix: SVGMatrix): void; + setRotate(angle: number, cx: number, cy: number): void; + setScale(sx: number, sy: number): void; + setSkewX(angle: number): void; + setSkewY(angle: number): void; + setTranslate(tx: number, ty: number): void; + type: number; + } + + class SVGTransformList { + private 'MSHTML.SVGTransformList_typekey': SVGTransformList; + private constructor(); + appendItem(newItem: SVGTransform): SVGTransform; + clear(): void; + consolidate(): SVGTransform; + createSVGTransformFromMatrix(newItem: SVGMatrix): SVGTransform; + getItem(index: number): SVGTransform; + initialize(newItem: SVGTransform): SVGTransform; + insertItemBefore(newItem: SVGTransform, index: number): SVGTransform; + numberOfItems: number; + removeItem(index: number): SVGTransform; + replaceItem(newItem: SVGTransform, index: number): SVGTransform; + } + + class SVGTSpanElement { + private 'MSHTML.SVGTSpanElement_typekey': SVGTSpanElement; + private constructor(); + readonly className: SVGAnimatedString; + dx: SVGAnimatedLengthList; + dy: SVGAnimatedLengthList; + readonly externalResourcesRequired: SVGAnimatedBoolean; + focusable: SVGAnimatedEnumeration; + getCharNumAtPosition(point: SVGPoint): number; + getComputedTextLength(): number; + getEndPositionOfChar(charnum: number): SVGPoint; + getExtentOfChar(charnum: number): SVGRect; + getNumberOfChars(): number; + getRotationOfChar(charnum: number): number; + getStartPositionOfChar(charnum: number): SVGPoint; + getSubStringLength(charnum: number, nchars: number): number; + hasExtension(extension: string): boolean; + lengthAdjust: SVGAnimatedEnumeration; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + rotate: SVGAnimatedNumberList; + selectSubString(charnum: number, nchars: number): void; + readonly systemLanguage: SVGStringList; + textLength: SVGAnimatedLength; + viewportElement: ISVGElement; + x: SVGAnimatedLengthList; + xmlbase: string; + xmllang: string; + xmlspace: string; + y: SVGAnimatedLengthList; + } + + class SVGUseElement { + private 'MSHTML.SVGUseElement_typekey': SVGUseElement; + private constructor(); + animatedInstanceRoot: ISVGElementInstance; + readonly farthestViewportElement: ISVGElement; + focusable: SVGAnimatedEnumeration; + getBBox(): SVGRect; + getCTM(): SVGMatrix; + getScreenCTM(): SVGMatrix; + getTransformToElement(pElement: ISVGElement): SVGMatrix; + hasExtension(extension: string): boolean; + height: SVGAnimatedLength; + readonly href: SVGAnimatedString; + instanceRoot: ISVGElementInstance; + readonly nearestViewportElement: ISVGElement; + ownerSVGElement: ISVGSVGElement; + readonly requiredExtensions: SVGStringList; + readonly requiredFeatures: SVGStringList; + readonly systemLanguage: SVGStringList; + readonly transform: SVGAnimatedTransformList; + viewportElement: ISVGElement; + width: SVGAnimatedLength; + x: SVGAnimatedLength; + xmlbase: string; + y: SVGAnimatedLength; + } + + class SVGViewElement { + private 'MSHTML.SVGViewElement_typekey': SVGViewElement; + private constructor(); + readonly externalResourcesRequired: SVGAnimatedBoolean; + focusable: SVGAnimatedEnumeration; + ownerSVGElement: ISVGSVGElement; + preserveAspectRatio: SVGAnimatedPreserveAspectRatio; + readonly viewBox: SVGAnimatedRect; + viewportElement: ISVGElement; + viewTarget: SVGStringList; + xmlbase: string; + readonly zoomAndPan: number; + } + + class SVGZoomEvent { + private 'MSHTML.SVGZoomEvent_typekey': SVGZoomEvent; + private constructor(); + readonly bubbles: boolean; + readonly cancelable: boolean; + cancelBubble: boolean; + readonly currentTarget: IEventTarget; + readonly defaultPrevented: boolean; + readonly detail: number; + readonly eventPhase: number; + initEvent(eventType: string, canBubble: boolean, cancelable: boolean): void; + initUIEvent(eventType: string, canBubble: boolean, cancelable: boolean, view: IHTMLWindow2, detail: number): void; + readonly isTrusted: boolean; + readonly newScale: number; + readonly newTranslate: SVGPoint; + preventDefault(): void; + readonly previousScale: number; + readonly previousTranslate: SVGPoint; + readonly srcElement: IHTMLElement; + stopImmediatePropagation(): void; + stopPropagation(): void; + readonly target: IEventTarget; + readonly timeStamp: number; + readonly type: string; + readonly view: IHTMLWindow2; + readonly zoomRectScreen: SVGRect; + } + + class ThreadDialogProcParam { + private 'MSHTML.ThreadDialogProcParam_typekey': ThreadDialogProcParam; + private constructor(); + readonly document: any; + readonly moniker: any; + readonly optionString: any; + readonly parameters: any; + } + + class TreeWalker { + private 'MSHTML.TreeWalker_typekey': TreeWalker; + private constructor(); + currentNode: any; + readonly expandEntityReferences: boolean; + readonly filter: any; + firstChild(): any; + lastChild(): any; + nextNode(): any; + nextSibling(): any; + parentNode(): any; + previousNode(): any; + previousSibling(): any; + readonly root: any; + readonly whatToShow: number; + } + + class WebGeocoordinates { + private 'MSHTML.WebGeocoordinates_typekey': WebGeocoordinates; + private constructor(); + readonly accuracy: number; + readonly altitude: any; + readonly altitudeAccuracy: any; + readonly heading: any; + readonly latitude: number; + readonly longitude: number; + readonly speed: any; + } + + class WebGeolocation { + private 'MSHTML.WebGeolocation_typekey': WebGeolocation; + private constructor(); + clearWatch(watchId: number): void; + getCurrentPosition(successCallback: any, errorCallback?: any, options?: any): void; + watchPosition(successCallback: any, errorCallback?: any, options?: any): number; + } + + class WebGeoposition { + private 'MSHTML.WebGeoposition_typekey': WebGeoposition; + private constructor(); + readonly coords: IWebGeocoordinates; + readonly timeStamp: number; + } + + class WebGeopositionError { + private 'MSHTML.WebGeopositionError_typekey': WebGeopositionError; + private constructor(); + readonly code: number; + readonly message: string; + } + + class XDomainRequest { + private 'MSHTML.XDomainRequest_typekey': XDomainRequest; + private constructor(); + readonly 'constructor': any; + } + + class XDomainRequestFactory { + private 'MSHTML.XDomainRequestFactory_typekey': XDomainRequestFactory; + private constructor(); + create(): IHTMLXDomainRequest; + } + + class XMLHttpRequestEventTarget { + private 'MSHTML.XMLHttpRequestEventTarget_typekey': XMLHttpRequestEventTarget; + private constructor(); + addEventListener(type: string, listener: any, useCapture: boolean): void; + dispatchEvent(evt: IDOMEvent): boolean; + removeEventListener(type: string, listener: any, useCapture: boolean): void; + } + + class XMLSerializer { + private 'MSHTML.XMLSerializer_typekey': XMLSerializer; + private constructor(); + serializeToString(pNode: IHTMLDOMNode): string; + } +} + +interface ActiveXObject { + on(obj: MSHTML.HTMLNamespace, event: 'onreadystatechange', argNames: ['pEvtObj'], handler: (this: MSHTML.HTMLNamespace, parameter: {readonly pEvtObj: MSHTML.IHTMLEventObj}) => void): void; + on( + obj: MSHTML.HTMLWindow2, event: 'onerror', argNames: ['description', 'url', 'line'], handler: ( + this: MSHTML.HTMLWindow2, parameter: {readonly description: string, readonly url: string, readonly line: number}) => void): void; + on( + obj: MSHTML.HTMLWindowProxy, event: 'onerror', argNames: ['description', 'url', 'line'], handler: ( + this: MSHTML.HTMLWindowProxy, parameter: {readonly description: string, readonly url: string, readonly line: number}) => void): void; + on(obj: MSHTML.Scriptlet, event: 'onscriptletevent', argNames: ['name', 'eventData'], handler: (this: MSHTML.Scriptlet, parameter: {readonly name: string, readonly eventData: any}) => void): void; + on( + obj: MSHTML.HTMLAnchorElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLAnchorElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLAreaElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLAreaElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLAudioElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLAudioElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLBaseElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLBaseElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLBaseFontElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLBaseFontElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLBGsound, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | 'onbeforeeditfocus' | + 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | 'ondataavailable' | + 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | 'ondragover' | 'ondragstart' | + 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | + 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | + 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | + 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLBGsound, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLBlockElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLBlockElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLBody, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | 'onbeforeeditfocus' | + 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | 'onselectstart', + handler: (this: MSHTML.HTMLBody, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLBRElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLBRElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLButtonElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLButtonElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLCanvasElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLCanvasElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLCommentElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLCommentElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLDDElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLDDElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLDivElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLDivElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLDivPosition, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | + 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | 'onselectstart', + handler: (this: MSHTML.HTMLDivPosition, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLDListElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLDListElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLDocument, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforedeactivate' | 'onbeforeeditfocus' | 'onbeforeupdate' | + 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | + 'ondragstart' | 'onerrorupdate' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | 'onkeyup' | 'onmousedown' | 'onmousemove' | 'onmouseout' | + 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onpropertychange' | 'onreadystatechange' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | + 'onselectionchange' | 'onselectstart' | 'onstop', + handler: (this: MSHTML.HTMLDocument, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLDTElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLDTElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLEmbed, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | 'onbeforeeditfocus' | + 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | 'ondataavailable' | + 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | 'ondragover' | 'ondragstart' | + 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | + 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | + 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | + 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLEmbed, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLFieldSetElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | + 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | 'onselectstart', + handler: (this: MSHTML.HTMLFieldSetElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLFontElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLFontElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLFormElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onreset' | 'onresize' | + 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart' | 'onsubmit', + handler: (this: MSHTML.HTMLFormElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLFrameBase, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLFrameBase, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLFrameElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLFrameElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLFrameSetSite, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLFrameSetSite, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLGenericElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLGenericElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLHeadElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLHeadElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLHeaderElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLHeaderElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLHRElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLHRElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLHtmlElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLHtmlElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLIFrame, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | 'onbeforeeditfocus' | + 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | 'ondataavailable' | + 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | 'ondragover' | 'ondragstart' | + 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | + 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | + 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | + 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLIFrame, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLImg, event: 'onabort' | 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerror' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | + 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | 'onload' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | + 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | + 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLImg, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLInputButtonElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLInputButtonElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLInputElement, event: 'onabort' | 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | + 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerror' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | + 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | 'onload' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | + 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | + 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | 'onselectstart', + handler: (this: MSHTML.HTMLInputElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLInputFileElement, event: 'onabort' | 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | + 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerror' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | + 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | 'onload' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | + 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | + 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | 'onselectstart', + handler: (this: MSHTML.HTMLInputFileElement, parameter: {}) => void): void; + on( + obj: MSHTML.htmlInputImage, event: 'onabort' | 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerror' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | + 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | 'onload' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | + 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | + 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.htmlInputImage, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLInputTextElement, event: 'onabort' | 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | + 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerror' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | + 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | 'onload' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | + 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | + 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | 'onselectstart', + handler: (this: MSHTML.HTMLInputTextElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLIsIndexElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLIsIndexElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLLabelElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLLabelElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLLegendElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | + 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | 'onselectstart', + handler: (this: MSHTML.HTMLLegendElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLLIElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLLIElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLLinkElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerror' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | + 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | 'onload' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | + 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | + 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLLinkElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLListElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLListElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLMapElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLMapElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLMarqueeElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'onbounce' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | + 'oncopy' | 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | + 'ondragleave' | 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfinish' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | + 'onkeydown' | 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | + 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | + 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | 'onselectstart' | + 'onstart', + handler: (this: MSHTML.HTMLMarqueeElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLMediaElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLMediaElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLMetaElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLMetaElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLNextIdElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLNextIdElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLNoShowElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLNoShowElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLObjectElement, event: 'onafterupdate' | 'onbeforeupdate' | 'oncellchange' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | + 'onerror' | 'onerrorupdate' | 'onreadystatechange' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted', + handler: (this: MSHTML.HTMLObjectElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLOListElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLOListElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLOptionButtonElement, event: 'onabort' | 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | + 'onbeforedeactivate' | 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | + 'oncontrolselect' | 'oncopy' | 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | + 'ondragenter' | 'ondragleave' | 'ondragover' | 'ondragstart' | 'ondrop' | 'onerror' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | + 'onhelp' | 'onkeydown' | 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | 'onload' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | + 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | + 'onreadystatechange' | 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | + 'onselectstart', + handler: (this: MSHTML.HTMLOptionButtonElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLOptionElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLOptionElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLParaElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLParaElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLParamElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLParamElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLPhraseElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLPhraseElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLProgressElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLProgressElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLRichtextElement, event: 'onabort' | 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | + 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerror' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | + 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | 'onload' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | + 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | + 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | 'onselectstart', + handler: (this: MSHTML.HTMLRichtextElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLScriptElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerror' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | + 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | + 'onmouseup' | 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | + 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLScriptElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLSelectElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | + 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLSelectElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLSemanticElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLSemanticElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLSourceElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLSourceElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLSpanElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLSpanElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLSpanFlow, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | + 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | 'onselectstart', handler: ( + this: MSHTML.HTMLSpanFlow, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLStyleElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerror' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | + 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | 'onload' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | + 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | + 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLStyleElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLTable, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | 'onbeforeeditfocus' | + 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | 'ondataavailable' | + 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | 'ondragover' | 'ondragstart' | + 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | + 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | + 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | + 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLTable, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLTableCaption, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | + 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | 'onselectstart', + handler: (this: MSHTML.HTMLTableCaption, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLTableCell, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | + 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | 'onselectstart', handler: ( + this: MSHTML.HTMLTableCell, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLTableCol, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLTableCol, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLTableRow, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLTableRow, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLTableSection, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLTableSection, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLTextAreaElement, event: 'onabort' | 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | + 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerror' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | + 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | 'onload' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | + 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | + 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselect' | 'onselectstart', + handler: (this: MSHTML.HTMLTextAreaElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLTextElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLTextElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLTitleElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLTitleElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLUListElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLUListElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLUnknownElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLUnknownElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLVideoElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLVideoElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLWindow2, event: 'onafterprint' | 'onbeforeprint' | 'onbeforeunload' | 'onblur' | 'onfocus' | 'onhelp' | 'onload' | 'onresize' | 'onscroll' | + 'onunload', + handler: (this: MSHTML.HTMLWindow2, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLWindowProxy, event: 'onafterprint' | 'onbeforeprint' | 'onbeforeunload' | 'onblur' | 'onfocus' | 'onhelp' | 'onload' | 'onresize' | 'onscroll' | + 'onunload', + handler: (this: MSHTML.HTMLWindowProxy, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLWndOptionElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLWndOptionElement, parameter: {}) => void): void; + on( + obj: MSHTML.HTMLWndSelectElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | + 'oncut' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.HTMLWndSelectElement, parameter: {}) => void): void; + on(obj: MSHTML.HTMLXMLHttpRequest, event: 'onreadystatechange' | 'ontimeout', handler: (this: MSHTML.HTMLXMLHttpRequest, parameter: {}) => void): void; + on( + obj: MSHTML.OldHTMLDocument, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforedeactivate' | 'onbeforeeditfocus' | 'onbeforeupdate' | + 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | + 'ondragstart' | 'onerrorupdate' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | 'onkeyup' | 'onmousedown' | 'onmousemove' | 'onmouseout' | + 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onpropertychange' | 'onreadystatechange' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | + 'onselectionchange' | 'onselectstart' | 'onstop', + handler: (this: MSHTML.OldHTMLDocument, parameter: {}) => void): void; + on( + obj: MSHTML.OldHTMLFormElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onreset' | 'onresize' | + 'onresizeend' | 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart' | 'onsubmit', + handler: (this: MSHTML.OldHTMLFormElement, parameter: {}) => void): void; + on( + obj: MSHTML.Scriptlet, event: 'onclick' | 'ondblclick' | 'onkeydown' | 'onkeypress' | 'onkeyup' | 'onmousedown' | 'onmousemove' | 'onmouseup' | + 'onreadystatechange', + handler: (this: MSHTML.Scriptlet, parameter: {}) => void): void; + on( + obj: MSHTML.SVGAElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | 'onbeforeeditfocus' | + 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | 'ondataavailable' | + 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | 'ondragover' | 'ondragstart' | + 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | + 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | + 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | + 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGAElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGCircleElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGCircleElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGClipPathElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGClipPathElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGDefsElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGDefsElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | 'onbeforeeditfocus' | + 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | 'ondataavailable' | + 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | 'ondragover' | 'ondragstart' | + 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | + 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | + 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | + 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGEllipseElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGEllipseElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGGElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | 'onbeforeeditfocus' | + 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | 'ondataavailable' | + 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | 'ondragover' | 'ondragstart' | + 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | 'onkeyup' | 'onlayoutcomplete' | + 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | 'onmousewheel' | 'onmove' | + 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | 'onresizestart' | 'onrowenter' | + 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGGElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGGradientElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGGradientElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGImageElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGImageElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGLineElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGLineElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGMarkerElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGMarkerElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGMaskElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGMaskElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGPathElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGPathElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGPatternElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGPatternElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGPolygonElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGPolygonElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGPolylineElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGPolylineElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGRectElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGRectElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGScriptElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGScriptElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGStopElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGStopElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGSVGElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGSVGElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGSymbolElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGSymbolElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGTextElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGTextElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGTextPathElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGTextPathElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGTSpanElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGTSpanElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGUseElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGUseElement, parameter: {}) => void): void; + on( + obj: MSHTML.SVGViewElement, event: 'onactivate' | 'onafterupdate' | 'onbeforeactivate' | 'onbeforecopy' | 'onbeforecut' | 'onbeforedeactivate' | + 'onbeforeeditfocus' | 'onbeforepaste' | 'onbeforeupdate' | 'onblur' | 'oncellchange' | 'onclick' | 'oncontextmenu' | 'oncontrolselect' | 'oncopy' | 'oncut' | + 'ondataavailable' | 'ondatasetchanged' | 'ondatasetcomplete' | 'ondblclick' | 'ondeactivate' | 'ondrag' | 'ondragend' | 'ondragenter' | 'ondragleave' | + 'ondragover' | 'ondragstart' | 'ondrop' | 'onerrorupdate' | 'onfilterchange' | 'onfocus' | 'onfocusin' | 'onfocusout' | 'onhelp' | 'onkeydown' | 'onkeypress' | + 'onkeyup' | 'onlayoutcomplete' | 'onlosecapture' | 'onmousedown' | 'onmouseenter' | 'onmouseleave' | 'onmousemove' | 'onmouseout' | 'onmouseover' | 'onmouseup' | + 'onmousewheel' | 'onmove' | 'onmoveend' | 'onmovestart' | 'onpage' | 'onpaste' | 'onpropertychange' | 'onreadystatechange' | 'onresize' | 'onresizeend' | + 'onresizestart' | 'onrowenter' | 'onrowexit' | 'onrowsdelete' | 'onrowsinserted' | 'onscroll' | 'onselectstart', + handler: (this: MSHTML.SVGViewElement, parameter: {}) => void): void; + new(progid: K): ActiveXObjectNameMap[K]; +} + +interface ActiveXObjectNameMap { + htmlfile: MSHTML.HTMLDocument; + 'ScriptBridge.ScriptBridge': MSHTML.Scriptlet; + 'TemplatePrinter.TemplatePrinter': MSHTML.CTemplatePrinter; +} + +interface SafeArray { + _brand: SafeArray; +} diff --git a/types/activex-mshtml/package.json b/types/activex-mshtml/package.json new file mode 100644 index 0000000000..d9b1031263 --- /dev/null +++ b/types/activex-mshtml/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "activex-helpers": "*" + } +} \ No newline at end of file diff --git a/types/activex-mshtml/tsconfig.json b/types/activex-mshtml/tsconfig.json new file mode 100644 index 0000000000..05d416fdbb --- /dev/null +++ b/types/activex-mshtml/tsconfig.json @@ -0,0 +1,21 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es5", "scripthost"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "activex-mshtml-tests.ts" + ] +} \ No newline at end of file diff --git a/types/activex-mshtml/tslint.json b/types/activex-mshtml/tslint.json new file mode 100644 index 0000000000..4ac54521fe --- /dev/null +++ b/types/activex-mshtml/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": [false] + } +} \ No newline at end of file diff --git a/types/activex-msxml2/activex-msxml2-tests.ts b/types/activex-msxml2/activex-msxml2-tests.ts new file mode 100644 index 0000000000..a793c08db5 --- /dev/null +++ b/types/activex-msxml2/activex-msxml2-tests.ts @@ -0,0 +1,329 @@ +// https://msdn.microsoft.com/en-us/library/ms764708(v=vs.85).aspx +(() => { + const dom = new ActiveXObject('Msxml2.DOMDocument.6.0'); + dom.async = false; + dom.resolveExternals = false; + dom.loadXML('A'); + WScript.Echo(`dom: ${dom.xml}`); +})(); + +// https://msdn.microsoft.com/en-us/library/ms766390(v=vs.85).aspx +(() => { + const doc = new ActiveXObject('Msxml2.DOMDocument.6.0'); + doc.load('test.xml'); + WScript.Echo(`doc: ${doc.xml}`); +})(); + +const MakeDOM = () => { + try { + const dom = new ActiveXObject('Msxml2.DOMDocument.6.0'); + dom.async = false; + dom.validateOnParse = false; + dom.resolveExternals = false; + return dom; + } catch (e) { + WScript.Echo(e.description); + } +}; + +const LoadDOM = (file: string) => { + try { + const dom = MakeDOM()!; + dom.load(file); + return dom; + } catch (e) { + WScript.Echo(e.description); + } +}; + +// https://msdn.microsoft.com/en-us/library/ms759105(v=vs.85).aspx +(() => { + const doc = new ActiveXObject('Msxml2.DOMDocument.6.0'); + doc.async = false; + doc.resolveExternals = false; + doc.validateOnParse = false; + + const xml = ` + + + + + This XML data is finally saved. + + + + + This page is intentionally left blank. + + + +`; + doc.loadXML(xml); + doc.save('saved.xml'); +})(); + +// https://msdn.microsoft.com/en-us/library/ms764656(v=vs.85).aspx +(() => { + const doc = LoadDOM('test.xml')!; + const xsl = (LoadDOM('test.xsl')! as any) as MSXML2.IXMLDOMNode; + + const str = doc.transformNode(xsl); + WScript.Echo('\ndoc.transformNode:\n' + str); + + const out = MakeDOM()!; + doc.transformNodeToObject(xsl, out); + WScript.Echo('\ndoc.transformNodeToObject:\n' + out.xml); +})(); + +// https://msdn.microsoft.com/en-us/library/ms763685(v=vs.85).aspx +(() => { + const dom = MakeDOM()!; + + // Create a processing instruction targeted for xml. + let node = dom.createProcessingInstruction("xml", "version='1.0'") as any; + dom.appendChild(node); + + // Create a processing instruction targeted for xml-stylesheet. + node = dom.createProcessingInstruction("xml-stylesheet", "type='text/xml' href='test.xsl'"); + dom.appendChild(node); + + // Create a comment for the document. + node = dom.createComment("sample xml file created using XML DOM object."); + dom.appendChild(node); + + // Create the root element. + const root = dom.createElement("root") as any; + + // Create a "created" attribute for the root element and assign the "using dom" character data as the attribute value. + const attr = dom.createAttribute("created") as any; + attr.value = "using dom"; + root.setAttributeNode(attr); + + // Add the root element to the DOM instance. + dom.appendChild(root); + + // Insert a newline + tab. + root.appendChild(dom.createTextNode("\n\t")); + + // Create more nodes and add them to the root element just created. + + // Add a text node as . + node = dom.createElement("node1"); + node.text = "some character data"; + root.appendChild(node); + + // Add a newline + tab. + root.appendChild(dom.createTextNode("\n\t")); + + // Add a CDATA section as . + node = dom.createElement("node2"); + const cd = dom.createCDATASection("some mark-up text"); + node.appendChild(cd); + root.appendChild(node); + + // Create an element () to hold three empty subelements. + node = dom.createElement("node3"); + // Create a document fragment to be added to . + const frag = dom.createDocumentFragment(); + + // Add a newline + tab + tab as a text node and an empty subnode. + frag.appendChild(dom.createTextNode("\n\t\t") as any); + frag.appendChild(dom.createElement("subNode1") as any); + + // Add a newline + tab + tab as a text node and an empty subnode. + frag.appendChild(dom.createTextNode("\n\t\t") as any); + frag.appendChild(dom.createElement("subNode2") as any); + + // Add a newline + tab + tab as a text node and an empty subnode. + frag.appendChild(dom.createTextNode("\n\t\t") as any); + frag.appendChild(dom.createElement("subNode3") as any); + + // Add a newline + tab. + frag.appendChild(dom.createTextNode("\n\t") as any); + node.appendChild(frag); + root.appendChild(node); + + // Add a newline. + root.appendChild(dom.createTextNode("\n")); + + // Save the XML document to a file. + dom.save("dynamDom.xml"); +})(); + +// https://msdn.microsoft.com/en-us/library/ms757050(v=vs.85).aspx +(() => { + const dom = LoadDOM("stocks.xml")!; + try { + // Query a single node. + const oNode = dom.selectSingleNode("//stock[1]/*"); + if (oNode != null) { + WScript.Echo(`Result from selectSingleNode:\n\tNode, <${oNode.nodeName}>:\n\t${oNode.xml}\n\n`); + } + + // Query a node-set. + WScript.Echo("Results from selectNodes:\n"); + const oNodes = dom.selectNodes("//stock[1]/*"); + + for (let i = 0; i < oNodes.length; i++) { + const nextNode = oNodes.nextNode; + if (nextNode == null) { continue; } + WScript.Echo(`Node (${i}), <${oNode.nodeName} + ">:\n\t${oNode.xml}`); + } + } catch (e) { + WScript.Echo(e.description); + } +})(); + +// https://msdn.microsoft.com/en-us/library/ms757064(v=vs.85).aspx +(() => { + const xhr = new ActiveXObject("Msxml2.XMLHTTP.6.0"); + xhr.open("GET", "http://localhost/sxh/contact.asp?SearchID=John Doe", false); + xhr.send(); + + const doc = xhr.responseXML; + WScript.Echo(doc.xml); +})(); + +const xmlValidation = (fn: (x: MSXML2.DOMDocument60) => void) => { + // Create and initialize the DOMDocument object + const x = new ActiveXObject("Msxml2.DOMDocument.6.0"); + x.async = false; + x.validateOnParse = true; + x.resolveExternals = true; + + fn(x); + + let msg: string; + if (x.parseError.errorCode !== 0) { + msg = ` +Validation failed on ${x.url} +===================== +Reason: ${x.parseError.reason} +Source: ${x.parseError.srcText} +Line: ${x.parseError.line}`; + } else { + msg = ` +Validation succeeded for ${x.url} +====================== +${x.xml} +`; + } + return msg; +}; + +// https://msdn.microsoft.com/en-us/library/ms766449(v=vs.85).aspx +(() => { + const validateFile = (filename: string) => xmlValidation(x => x.load(filename)); + + let sOutput = validateFile("nn-valid.xml"); + sOutput = sOutput + validateFile("nn-notValid.xml"); + WScript.Echo(sOutput); +})(); + +// https://msdn.microsoft.com/en-us/library/ms767542(v=vs.85).aspx +(() => { + const validateFile = (filename: string) => xmlValidation(x => { + // Configure DOM properties for namespace selection. + x.setProperty("SelectionLanguage", "XPath"); + const ns = "xmlns:x='urn:book'"; + x.setProperty("SelectionNamespaces", ns); + + // Load and validate the specified file into the DOM. + x.load(filename); + }); + + let sOutput = validateFile("sl-valid.xml"); + sOutput = sOutput + validateFile("sl-notValid.xml"); + WScript.Echo(sOutput); +})(); + +// https://msdn.microsoft.com/en-us/library/ms766439(v=vs.85).aspx +(() => { + const validateFile = (filename: string) => xmlValidation(xd => { + // Create a schema cache and add books.xsd to it. + const xs = new ActiveXObject('Msxml2.XMLSchemaCache'); + xs.add("urn:books", "sc.xsd"); + + // Assign the schema cache to the DOMDocument's schemas collection. + xd.schemas = xs; + + xd.load(filename); + }); + + let sOutput = validateFile("sc-valid.xml"); + sOutput = sOutput + validateFile("sc-notValid.xml"); + WScript.Echo(sOutput); +})(); + +// https://msdn.microsoft.com/en-us/library/ms767636(v=vs.85).aspx +(() => { + const validateFile = (filename: string) => xmlValidation(x => { + x.setProperty("UseInlineSchema", true); + x.load(filename); + }); + + let sOutput = validateFile("valid.xml"); + sOutput = sOutput + validateFile("notValid.xml"); + WScript.Echo(sOutput); +})(); + +// https://msdn.microsoft.com/en-us/library/ms757833(v=vs.85).aspx +(() => { + // Load an XML document into a DOM instance. + const oXMLDoc = LoadDOM("books.xml")!; + + // Load the schema for the xml document. + const oXSDDoc = LoadDOM("books.xsd")!; + + // Create a schema cache instance. + const oSCache = new ActiveXObject("Msxml2.XMLSchemaCache.6.0"); + + // Add the just-loaded schema definition to the schema collection + oSCache.add("urn:books", oXSDDoc); + + // Assign the schema to the XML document's schema collection + oXMLDoc.schemas = oSCache; + + // Validate the entire DOM. + WScript.Echo("Validating DOM..."); + let oError = oXMLDoc.validate(); + let msg: string; + if (oError.errorCode !== 0) { + msg = `\tXMLDoc is not valid because +${oError.reason}`; + } else { + msg = `\tXMLDoc is validated: +${oXMLDoc.xml}`; + } + WScript.Echo(msg); + + // Validate all //books nodes, node by node. + WScript.Echo("Validating all book nodes, '//book', one by one ..."); + let oNodes = oXMLDoc.selectNodes("//book"); + for (let i = 0; i < oNodes.length; i++) { + const oNode = oNodes.item(i); + oError = oXMLDoc.validateNode(oNode); + if (oError.errorCode !== 0) { + msg = `\t<${oNode.nodeName}>(${i}) is not valid because +${oError.reason}`; + } else { + msg = `\t<${oNode.nodeName}>(${i}) is a valid node`; + } + WScript.Echo(msg); + } + + // validate all children of all book node, //book/*, node by node + oNodes = oXMLDoc.selectNodes("//book/*"); + WScript.Echo('Validating all children of all book nodes, "//book/*, one by one...'); + for (let i = 0; i < oNodes.length; i++) { + const oNode = oNodes.item(i); + oError = oXMLDoc.validateNode(oNode); + if (oError.errorCode !== 0) { + msg = `\t<${oNode.nodeName}>(${i}) is not valud because +${oError.reason}`; + } else { + msg = `\t<${oNode.nodeName}>(${i}) is a valid node`; + } + WScript.Echo(msg); + } +})(); diff --git a/types/activex-msxml2/index.d.ts b/types/activex-msxml2/index.d.ts new file mode 100644 index 0000000000..76dc3d9415 --- /dev/null +++ b/types/activex-msxml2/index.d.ts @@ -0,0 +1,2798 @@ +// Type definitions for Microsoft XML, v6.0 - MSXML2 6.0 +// Project: https://msdn.microsoft.com/en-us/library/ms763742.aspx +// Definitions by: Zev Spitz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +declare namespace MSXML2 { + /** Schema Object Model Content Types */ + const enum _SCHEMACONTENTTYPE { + SCHEMACONTENTTYPE_ELEMENTONLY = 2, + SCHEMACONTENTTYPE_EMPTY = 0, + SCHEMACONTENTTYPE_MIXED = 3, + SCHEMACONTENTTYPE_TEXTONLY = 1, + } + + /** Schema Object Model Filters */ + const enum _SCHEMADERIVATIONMETHOD { + SCHEMADERIVATIONMETHOD_ALL = 255, + SCHEMADERIVATIONMETHOD_EMPTY = 0, + SCHEMADERIVATIONMETHOD_EXTENSION = 2, + SCHEMADERIVATIONMETHOD_LIST = 8, + SCHEMADERIVATIONMETHOD_NONE = 256, + SCHEMADERIVATIONMETHOD_RESTRICTION = 4, + SCHEMADERIVATIONMETHOD_SUBSTITUTION = 1, + SCHEMADERIVATIONMETHOD_UNION = 16, + } + + /** Schema Object Model Process Contents */ + const enum _SCHEMAPROCESSCONTENTS { + SCHEMAPROCESSCONTENTS_LAX = 2, + SCHEMAPROCESSCONTENTS_NONE = 0, + SCHEMAPROCESSCONTENTS_SKIP = 1, + SCHEMAPROCESSCONTENTS_STRICT = 3, + } + + /** Schema Object Model Type variety values */ + const enum _SCHEMATYPEVARIETY { + SCHEMATYPEVARIETY_ATOMIC = 0, + SCHEMATYPEVARIETY_LIST = 1, + SCHEMATYPEVARIETY_NONE = -1, + SCHEMATYPEVARIETY_UNION = 2, + } + + /** Schema Object Model Attribute Uses */ + const enum _SCHEMAUSE { + SCHEMAUSE_OPTIONAL = 0, + SCHEMAUSE_PROHIBITED = 1, + SCHEMAUSE_REQUIRED = 2, + } + + /** Schema Object Model Whitespace facet values */ + const enum _SCHEMAWHITESPACE { + SCHEMAWHITESPACE_COLLAPSE = 2, + SCHEMAWHITESPACE_NONE = -1, + SCHEMAWHITESPACE_PRESERVE = 0, + SCHEMAWHITESPACE_REPLACE = 1, + } + + const enum _SERVERXMLHTTP_OPTION { + SXH_OPTION_ESCAPE_PERCENT_IN_URL = 1, + SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS = 2, + SXH_OPTION_SELECT_CLIENT_SSL_CERT = 3, + SXH_OPTION_URL = -1, + SXH_OPTION_URL_CODEPAGE = 0, + } + + /** Schema Object Model Item Types */ + const enum _SOMITEMTYPE { + SOMITEM_ALL = 16641, + SOMITEM_ANNOTATION = 4100, + SOMITEM_ANY = 16385, + SOMITEM_ANYATTRIBUTE = 16386, + SOMITEM_ANYTYPE = 8192, + SOMITEM_ATTRIBUTE = 4097, + SOMITEM_ATTRIBUTEGROUP = 4098, + SOMITEM_CHOICE = 16642, + SOMITEM_COMPLEXTYPE = 9216, + SOMITEM_DATATYPE = 8448, + SOMITEM_DATATYPE_ANYSIMPLETYPE = 8703, + SOMITEM_DATATYPE_ANYTYPE = 8449, + SOMITEM_DATATYPE_ANYURI = 8450, + SOMITEM_DATATYPE_BASE64BINARY = 8451, + SOMITEM_DATATYPE_BOOLEAN = 8452, + SOMITEM_DATATYPE_BYTE = 8453, + SOMITEM_DATATYPE_DATE = 8454, + SOMITEM_DATATYPE_DATETIME = 8455, + SOMITEM_DATATYPE_DAY = 8456, + SOMITEM_DATATYPE_DECIMAL = 8457, + SOMITEM_DATATYPE_DOUBLE = 8458, + SOMITEM_DATATYPE_DURATION = 8459, + SOMITEM_DATATYPE_ENTITIES = 8460, + SOMITEM_DATATYPE_ENTITY = 8461, + SOMITEM_DATATYPE_FLOAT = 8462, + SOMITEM_DATATYPE_HEXBINARY = 8463, + SOMITEM_DATATYPE_ID = 8464, + SOMITEM_DATATYPE_IDREF = 8465, + SOMITEM_DATATYPE_IDREFS = 8466, + SOMITEM_DATATYPE_INT = 8467, + SOMITEM_DATATYPE_INTEGER = 8468, + SOMITEM_DATATYPE_LANGUAGE = 8469, + SOMITEM_DATATYPE_LONG = 8470, + SOMITEM_DATATYPE_MONTH = 8471, + SOMITEM_DATATYPE_MONTHDAY = 8472, + SOMITEM_DATATYPE_NAME = 8473, + SOMITEM_DATATYPE_NCNAME = 8474, + SOMITEM_DATATYPE_NEGATIVEINTEGER = 8475, + SOMITEM_DATATYPE_NMTOKEN = 8476, + SOMITEM_DATATYPE_NMTOKENS = 8477, + SOMITEM_DATATYPE_NONNEGATIVEINTEGER = 8478, + SOMITEM_DATATYPE_NONPOSITIVEINTEGER = 8479, + SOMITEM_DATATYPE_NORMALIZEDSTRING = 8480, + SOMITEM_DATATYPE_NOTATION = 8481, + SOMITEM_DATATYPE_POSITIVEINTEGER = 8482, + SOMITEM_DATATYPE_QNAME = 8483, + SOMITEM_DATATYPE_SHORT = 8484, + SOMITEM_DATATYPE_STRING = 8485, + SOMITEM_DATATYPE_TIME = 8486, + SOMITEM_DATATYPE_TOKEN = 8487, + SOMITEM_DATATYPE_UNSIGNEDBYTE = 8488, + SOMITEM_DATATYPE_UNSIGNEDINT = 8489, + SOMITEM_DATATYPE_UNSIGNEDLONG = 8490, + SOMITEM_DATATYPE_UNSIGNEDSHORT = 8491, + SOMITEM_DATATYPE_YEAR = 8492, + SOMITEM_DATATYPE_YEARMONTH = 8493, + SOMITEM_ELEMENT = 16387, + SOMITEM_EMPTYPARTICLE = 16644, + SOMITEM_GROUP = 16640, + SOMITEM_IDENTITYCONSTRAINT = 4352, + SOMITEM_KEY = 4353, + SOMITEM_KEYREF = 4354, + SOMITEM_NOTATION = 4099, + SOMITEM_NULL = 2048, + SOMITEM_NULL_ANY = 18433, + SOMITEM_NULL_ANYATTRIBUTE = 18434, + SOMITEM_NULL_ELEMENT = 18435, + SOMITEM_NULL_TYPE = 10240, + SOMITEM_PARTICLE = 16384, + SOMITEM_SCHEMA = 4096, + SOMITEM_SEQUENCE = 16643, + SOMITEM_SIMPLETYPE = 8704, + SOMITEM_UNIQUE = 4355, + } + + const enum _SXH_PROXY_SETTING { + SXH_PROXY_SET_DEFAULT = 0, + SXH_PROXY_SET_DIRECT = 1, + SXH_PROXY_SET_PRECONFIG = 0, + SXH_PROXY_SET_PROXY = 2, + } + + const enum _SXH_SERVER_CERT_OPTION { + SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS = 13056, + SXH_SERVER_CERT_IGNORE_CERT_CN_INVALID = 4096, + SXH_SERVER_CERT_IGNORE_CERT_DATE_INVALID = 8192, + SXH_SERVER_CERT_IGNORE_UNKNOWN_CA = 256, + SXH_SERVER_CERT_IGNORE_WRONG_USAGE = 512, + } + + /** Options for XHR properties */ + const enum _XHR_PROPERTY { + XHR_PROP_EXTENDED_ERROR = 6, + XHR_PROP_IGNORE_CERT_ERRORS = 8, + XHR_PROP_MAX_CONNECTIONS = 11, + XHR_PROP_NO_AUTH = 1, + XHR_PROP_NO_CACHE = 5, + XHR_PROP_NO_CRED_PROMPT = 0, + XHR_PROP_NO_DEFAULT_HEADERS = 3, + XHR_PROP_ONDATA_THRESHOLD = 9, + XHR_PROP_QUERY_STRING_UTF8 = 7, + XHR_PROP_REPORT_REDIRECT_STATUS = 4, + XHR_PROP_SET_ENTERPRISEID = 10, + XHR_PROP_TIMEOUT = 2, + } + + /** Constants that define a node's type */ + const enum DOMNodeType { + NODE_ATTRIBUTE = 2, + NODE_CDATA_SECTION = 4, + NODE_COMMENT = 8, + NODE_DOCUMENT = 9, + NODE_DOCUMENT_FRAGMENT = 11, + NODE_DOCUMENT_TYPE = 10, + NODE_ELEMENT = 1, + NODE_ENTITY = 6, + NODE_ENTITY_REFERENCE = 5, + NODE_INVALID = 0, + NODE_NOTATION = 12, + NODE_PROCESSING_INSTRUCTION = 7, + NODE_TEXT = 3, + } + + /** Schema Object Model Content Types */ + const enum SCHEMACONTENTTYPE { + SCHEMACONTENTTYPE_ELEMENTONLY = 2, + SCHEMACONTENTTYPE_EMPTY = 0, + SCHEMACONTENTTYPE_MIXED = 3, + SCHEMACONTENTTYPE_TEXTONLY = 1, + } + + /** Schema Object Model Filters */ + const enum SCHEMADERIVATIONMETHOD { + SCHEMADERIVATIONMETHOD_ALL = 255, + SCHEMADERIVATIONMETHOD_EMPTY = 0, + SCHEMADERIVATIONMETHOD_EXTENSION = 2, + SCHEMADERIVATIONMETHOD_LIST = 8, + SCHEMADERIVATIONMETHOD_NONE = 256, + SCHEMADERIVATIONMETHOD_RESTRICTION = 4, + SCHEMADERIVATIONMETHOD_SUBSTITUTION = 1, + SCHEMADERIVATIONMETHOD_UNION = 16, + } + + /** Schema Object Model Process Contents */ + const enum SCHEMAPROCESSCONTENTS { + SCHEMAPROCESSCONTENTS_LAX = 2, + SCHEMAPROCESSCONTENTS_NONE = 0, + SCHEMAPROCESSCONTENTS_SKIP = 1, + SCHEMAPROCESSCONTENTS_STRICT = 3, + } + + /** Schema Object Model Type variety values */ + const enum SCHEMATYPEVARIETY { + SCHEMATYPEVARIETY_ATOMIC = 0, + SCHEMATYPEVARIETY_LIST = 1, + SCHEMATYPEVARIETY_NONE = -1, + SCHEMATYPEVARIETY_UNION = 2, + } + + /** Schema Object Model Attribute Uses */ + const enum SCHEMAUSE { + SCHEMAUSE_OPTIONAL = 0, + SCHEMAUSE_PROHIBITED = 1, + SCHEMAUSE_REQUIRED = 2, + } + + /** Schema Object Model Whitespace facet values */ + const enum SCHEMAWHITESPACE { + SCHEMAWHITESPACE_COLLAPSE = 2, + SCHEMAWHITESPACE_NONE = -1, + SCHEMAWHITESPACE_PRESERVE = 0, + SCHEMAWHITESPACE_REPLACE = 1, + } + + /** Options for ServerXMLHTTPRequest Option property */ + const enum SERVERXMLHTTP_OPTION { + SXH_OPTION_ESCAPE_PERCENT_IN_URL = 1, + SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS = 2, + SXH_OPTION_SELECT_CLIENT_SSL_CERT = 3, + SXH_OPTION_URL = -1, + SXH_OPTION_URL_CODEPAGE = 0, + } + + /** Schema Object Model Item Types */ + const enum SOMITEMTYPE { + SOMITEM_ALL = 16641, + SOMITEM_ANNOTATION = 4100, + SOMITEM_ANY = 16385, + SOMITEM_ANYATTRIBUTE = 16386, + SOMITEM_ANYTYPE = 8192, + SOMITEM_ATTRIBUTE = 4097, + SOMITEM_ATTRIBUTEGROUP = 4098, + SOMITEM_CHOICE = 16642, + SOMITEM_COMPLEXTYPE = 9216, + SOMITEM_DATATYPE = 8448, + SOMITEM_DATATYPE_ANYSIMPLETYPE = 8703, + SOMITEM_DATATYPE_ANYTYPE = 8449, + SOMITEM_DATATYPE_ANYURI = 8450, + SOMITEM_DATATYPE_BASE64BINARY = 8451, + SOMITEM_DATATYPE_BOOLEAN = 8452, + SOMITEM_DATATYPE_BYTE = 8453, + SOMITEM_DATATYPE_DATE = 8454, + SOMITEM_DATATYPE_DATETIME = 8455, + SOMITEM_DATATYPE_DAY = 8456, + SOMITEM_DATATYPE_DECIMAL = 8457, + SOMITEM_DATATYPE_DOUBLE = 8458, + SOMITEM_DATATYPE_DURATION = 8459, + SOMITEM_DATATYPE_ENTITIES = 8460, + SOMITEM_DATATYPE_ENTITY = 8461, + SOMITEM_DATATYPE_FLOAT = 8462, + SOMITEM_DATATYPE_HEXBINARY = 8463, + SOMITEM_DATATYPE_ID = 8464, + SOMITEM_DATATYPE_IDREF = 8465, + SOMITEM_DATATYPE_IDREFS = 8466, + SOMITEM_DATATYPE_INT = 8467, + SOMITEM_DATATYPE_INTEGER = 8468, + SOMITEM_DATATYPE_LANGUAGE = 8469, + SOMITEM_DATATYPE_LONG = 8470, + SOMITEM_DATATYPE_MONTH = 8471, + SOMITEM_DATATYPE_MONTHDAY = 8472, + SOMITEM_DATATYPE_NAME = 8473, + SOMITEM_DATATYPE_NCNAME = 8474, + SOMITEM_DATATYPE_NEGATIVEINTEGER = 8475, + SOMITEM_DATATYPE_NMTOKEN = 8476, + SOMITEM_DATATYPE_NMTOKENS = 8477, + SOMITEM_DATATYPE_NONNEGATIVEINTEGER = 8478, + SOMITEM_DATATYPE_NONPOSITIVEINTEGER = 8479, + SOMITEM_DATATYPE_NORMALIZEDSTRING = 8480, + SOMITEM_DATATYPE_NOTATION = 8481, + SOMITEM_DATATYPE_POSITIVEINTEGER = 8482, + SOMITEM_DATATYPE_QNAME = 8483, + SOMITEM_DATATYPE_SHORT = 8484, + SOMITEM_DATATYPE_STRING = 8485, + SOMITEM_DATATYPE_TIME = 8486, + SOMITEM_DATATYPE_TOKEN = 8487, + SOMITEM_DATATYPE_UNSIGNEDBYTE = 8488, + SOMITEM_DATATYPE_UNSIGNEDINT = 8489, + SOMITEM_DATATYPE_UNSIGNEDLONG = 8490, + SOMITEM_DATATYPE_UNSIGNEDSHORT = 8491, + SOMITEM_DATATYPE_YEAR = 8492, + SOMITEM_DATATYPE_YEARMONTH = 8493, + SOMITEM_ELEMENT = 16387, + SOMITEM_EMPTYPARTICLE = 16644, + SOMITEM_GROUP = 16640, + SOMITEM_IDENTITYCONSTRAINT = 4352, + SOMITEM_KEY = 4353, + SOMITEM_KEYREF = 4354, + SOMITEM_NOTATION = 4099, + SOMITEM_NULL = 2048, + SOMITEM_NULL_ANY = 18433, + SOMITEM_NULL_ANYATTRIBUTE = 18434, + SOMITEM_NULL_ELEMENT = 18435, + SOMITEM_NULL_TYPE = 10240, + SOMITEM_PARTICLE = 16384, + SOMITEM_SCHEMA = 4096, + SOMITEM_SEQUENCE = 16643, + SOMITEM_SIMPLETYPE = 8704, + SOMITEM_UNIQUE = 4355, + } + + /** Settings for setProxy */ + const enum SXH_PROXY_SETTING { + SXH_PROXY_SET_DEFAULT = 0, + SXH_PROXY_SET_DIRECT = 1, + SXH_PROXY_SET_PRECONFIG = 0, + SXH_PROXY_SET_PROXY = 2, + } + + /** Flags for SXH_OPTION_IGNORE_SERVER_SSL_CERT_ERROR_FLAGS option */ + const enum SXH_SERVER_CERT_OPTION { + SXH_SERVER_CERT_IGNORE_ALL_SERVER_ERRORS = 13056, + SXH_SERVER_CERT_IGNORE_CERT_CN_INVALID = 4096, + SXH_SERVER_CERT_IGNORE_CERT_DATE_INVALID = 8192, + SXH_SERVER_CERT_IGNORE_UNKNOWN_CA = 256, + SXH_SERVER_CERT_IGNORE_WRONG_USAGE = 512, + } + + /** Constants that define a node's type */ + const enum tagDOMNodeType { + NODE_ATTRIBUTE = 2, + NODE_CDATA_SECTION = 4, + NODE_COMMENT = 8, + NODE_DOCUMENT = 9, + NODE_DOCUMENT_FRAGMENT = 11, + NODE_DOCUMENT_TYPE = 10, + NODE_ELEMENT = 1, + NODE_ENTITY = 6, + NODE_ENTITY_REFERENCE = 5, + NODE_INVALID = 0, + NODE_NOTATION = 12, + NODE_PROCESSING_INSTRUCTION = 7, + NODE_TEXT = 3, + } + + /** Options for XHR properties */ + const enum XHR_PROPERTY { + XHR_PROP_EXTENDED_ERROR = 6, + XHR_PROP_IGNORE_CERT_ERRORS = 8, + XHR_PROP_MAX_CONNECTIONS = 11, + XHR_PROP_NO_AUTH = 1, + XHR_PROP_NO_CACHE = 5, + XHR_PROP_NO_CRED_PROMPT = 0, + XHR_PROP_NO_DEFAULT_HEADERS = 3, + XHR_PROP_ONDATA_THRESHOLD = 9, + XHR_PROP_QUERY_STRING_UTF8 = 7, + XHR_PROP_REPORT_REDIRECT_STATUS = 4, + XHR_PROP_SET_ENTERPRISEID = 10, + XHR_PROP_TIMEOUT = 2, + } + + interface _FILETIME { + readonly dwHighDateTime: number; + readonly dwLowDateTime: number; + } + + /** W3C-DOM XML Document 6.0 (Apartment) */ + class DOMDocument60 { + private 'MSXML2.DOMDocument60_typekey': DOMDocument60; + private constructor(); + + /** abort an asynchronous download */ + abort(): void; + + /** append a child node */ + appendChild(newChild: IXMLDOMNode): IXMLDOMNode; + + /** flag for asynchronous download */ + async: boolean; + + /** the collection of the node's attributes */ + readonly attributes: IXMLDOMNamedNodeMap; + + /** the base name of the node (nodename with the prefix stripped off) */ + readonly baseName: string; + + /** the collection of the node's children */ + readonly childNodes: IXMLDOMNodeList; + cloneNode(deep: boolean): IXMLDOMNode; + + /** create an attribute node */ + createAttribute(name: string): IXMLDOMAttribute; + + /** create a CDATA section node */ + createCDATASection(data: string): IXMLDOMCDATASection; + + /** create a comment node */ + createComment(data: string): IXMLDOMComment; + + /** create a DocumentFragment node */ + createDocumentFragment(): IXMLDOMDocumentFragment; + + /** create an Element node */ + createElement(tagName: string): IXMLDOMElement; + + /** create an entity reference node */ + createEntityReference(name: string): IXMLDOMEntityReference; + + /** create a node of the specified node type and name */ + createNode(type: any, name: string, namespaceURI: string): IXMLDOMNode; + + /** create a processing instruction node */ + createProcessingInstruction(target: string, data: string): IXMLDOMProcessingInstruction; + + /** create a text node */ + createTextNode(data: string): IXMLDOMText; + + /** the data type of the node */ + dataType: any; + + /** pointer to the definition of the node in the DTD or schema */ + readonly definition: IXMLDOMNode; + + /** node corresponding to the DOCTYPE */ + readonly doctype: IXMLDOMDocumentType; + + /** the root of the tree */ + documentElement: IXMLDOMElement; + + /** first child of the node */ + readonly firstChild: IXMLDOMNode; + + /** build a list of elements by name */ + getElementsByTagName(tagName: string): IXMLDOMNodeList; + + /** get the value of the named property */ + getProperty(name: string): any; + hasChildNodes(): boolean; + + /** info on this DOM implementation */ + readonly implementation: IXMLDOMImplementation; + + /** clone node such that clones ownerDocument is this document */ + importNode(node: IXMLDOMNode, deep: boolean): IXMLDOMNode; + + /** insert a child node */ + insertBefore(newChild: IXMLDOMNode, refChild: any): IXMLDOMNode; + + /** last child of the node */ + readonly lastChild: IXMLDOMNode; + + /** load document from the specified XML source */ + load(xmlSource: any): boolean; + + /** load the document from a string */ + loadXML(bstrXML: string): boolean; + + /** A collection of all namespaces for this document */ + readonly namespaces: IXMLDOMSchemaCollection; + + /** the URI for the namespace applying to the node */ + readonly namespaceURI: string; + + /** right sibling of the node */ + readonly nextSibling: IXMLDOMNode; + + /** retrieve node from it's ID */ + nodeFromID(idString: string): IXMLDOMNode; + + /** name of the node */ + readonly nodeName: string; + + /** the node's type */ + readonly nodeType: DOMNodeType; + + /** get the strongly typed value of the node */ + nodeTypedValue: any; + + /** the type of node in string form */ + readonly nodeTypeString: string; + + /** value stored in the node */ + nodeValue: any; + + /** register an ondataavailable event handler */ + readonly ondataavailable: any; + + /** register a readystatechange event handler */ + readonly onreadystatechange: any; + + /** register an ontransformnode event handler */ + readonly ontransformnode: any; + + /** document that contains the node */ + readonly ownerDocument: IXMLDOMDocument; + + /** parent of the node */ + readonly parentNode: IXMLDOMNode; + + /** has sub-tree been completely parsed */ + readonly parsed: boolean; + + /** get the last parser error */ + readonly parseError: IXMLDOMParseError; + + /** the prefix for the namespace applying to the node */ + readonly prefix: string; + + /** indicates whether the parser preserves whitespace */ + preserveWhiteSpace: boolean; + + /** left sibling of the node */ + readonly previousSibling: IXMLDOMNode; + + /** get the state of the XML document */ + readonly readyState: number; + + /** remove a child node */ + removeChild(childNode: IXMLDOMNode): IXMLDOMNode; + + /** replace a child node */ + replaceChild(newChild: IXMLDOMNode, oldChild: IXMLDOMNode): IXMLDOMNode; + + /** indicates whether the parser resolves references to external DTD/Entities/Schema */ + resolveExternals: boolean; + + /** save the document to a specified destination */ + save(destination: any): void; + + /** The associated schema cache */ + schemas: any; + + /** execute query on the subtree */ + selectNodes(queryString: string): IXMLDOMNodeList; + + /** execute query on the subtree */ + selectSingleNode(queryString: string): IXMLDOMNode; + + /** set the value of the named property */ + setProperty(name: string, value: any): void; + + /** indicates whether node is a default value */ + readonly specified: boolean; + + /** text content of the node and subtree */ + text: string; + + /** apply the stylesheet to the subtree */ + transformNode(stylesheet: IXMLDOMNode): string; + + /** apply the stylesheet to the subtree, returning the result through a document or a stream */ + transformNodeToObject(stylesheet: IXMLDOMNode, outputObject: any): void; + + /** get the URL for the loaded XML document */ + readonly url: string; + + /** perform runtime validation on the currently loaded XML document */ + validate(): IXMLDOMParseError; + + /** perform runtime validation on the currently loaded XML document node */ + validateNode(node: IXMLDOMNode): IXMLDOMParseError; + + /** indicates whether the parser performs validation */ + validateOnParse: boolean; + + /** return the XML source for the node and each of its descendants */ + readonly xml: string; + } + + /** W3C-DOM XML Document 6.0 (Free threaded) */ + class FreeThreadedDOMDocument60 { + private 'MSXML2.FreeThreadedDOMDocument60_typekey': FreeThreadedDOMDocument60; + private constructor(); + + /** abort an asynchronous download */ + abort(): void; + + /** append a child node */ + appendChild(newChild: IXMLDOMNode): IXMLDOMNode; + + /** flag for asynchronous download */ + async: boolean; + + /** the collection of the node's attributes */ + readonly attributes: IXMLDOMNamedNodeMap; + + /** the base name of the node (nodename with the prefix stripped off) */ + readonly baseName: string; + + /** the collection of the node's children */ + readonly childNodes: IXMLDOMNodeList; + cloneNode(deep: boolean): IXMLDOMNode; + + /** create an attribute node */ + createAttribute(name: string): IXMLDOMAttribute; + + /** create a CDATA section node */ + createCDATASection(data: string): IXMLDOMCDATASection; + + /** create a comment node */ + createComment(data: string): IXMLDOMComment; + + /** create a DocumentFragment node */ + createDocumentFragment(): IXMLDOMDocumentFragment; + + /** create an Element node */ + createElement(tagName: string): IXMLDOMElement; + + /** create an entity reference node */ + createEntityReference(name: string): IXMLDOMEntityReference; + + /** create a node of the specified node type and name */ + createNode(type: any, name: string, namespaceURI: string): IXMLDOMNode; + + /** create a processing instruction node */ + createProcessingInstruction(target: string, data: string): IXMLDOMProcessingInstruction; + + /** create a text node */ + createTextNode(data: string): IXMLDOMText; + + /** the data type of the node */ + dataType: any; + + /** pointer to the definition of the node in the DTD or schema */ + readonly definition: IXMLDOMNode; + + /** node corresponding to the DOCTYPE */ + readonly doctype: IXMLDOMDocumentType; + + /** the root of the tree */ + documentElement: IXMLDOMElement; + + /** first child of the node */ + readonly firstChild: IXMLDOMNode; + + /** build a list of elements by name */ + getElementsByTagName(tagName: string): IXMLDOMNodeList; + + /** get the value of the named property */ + getProperty(name: string): any; + hasChildNodes(): boolean; + + /** info on this DOM implementation */ + readonly implementation: IXMLDOMImplementation; + + /** clone node such that clones ownerDocument is this document */ + importNode(node: IXMLDOMNode, deep: boolean): IXMLDOMNode; + + /** insert a child node */ + insertBefore(newChild: IXMLDOMNode, refChild: any): IXMLDOMNode; + + /** last child of the node */ + readonly lastChild: IXMLDOMNode; + + /** load document from the specified XML source */ + load(xmlSource: any): boolean; + + /** load the document from a string */ + loadXML(bstrXML: string): boolean; + + /** A collection of all namespaces for this document */ + readonly namespaces: IXMLDOMSchemaCollection; + + /** the URI for the namespace applying to the node */ + readonly namespaceURI: string; + + /** right sibling of the node */ + readonly nextSibling: IXMLDOMNode; + + /** retrieve node from it's ID */ + nodeFromID(idString: string): IXMLDOMNode; + + /** name of the node */ + readonly nodeName: string; + + /** the node's type */ + readonly nodeType: DOMNodeType; + + /** get the strongly typed value of the node */ + nodeTypedValue: any; + + /** the type of node in string form */ + readonly nodeTypeString: string; + + /** value stored in the node */ + nodeValue: any; + + /** register an ondataavailable event handler */ + readonly ondataavailable: any; + + /** register a readystatechange event handler */ + readonly onreadystatechange: any; + + /** register an ontransformnode event handler */ + readonly ontransformnode: any; + + /** document that contains the node */ + readonly ownerDocument: IXMLDOMDocument; + + /** parent of the node */ + readonly parentNode: IXMLDOMNode; + + /** has sub-tree been completely parsed */ + readonly parsed: boolean; + + /** get the last parser error */ + readonly parseError: IXMLDOMParseError; + + /** the prefix for the namespace applying to the node */ + readonly prefix: string; + + /** indicates whether the parser preserves whitespace */ + preserveWhiteSpace: boolean; + + /** left sibling of the node */ + readonly previousSibling: IXMLDOMNode; + + /** get the state of the XML document */ + readonly readyState: number; + + /** remove a child node */ + removeChild(childNode: IXMLDOMNode): IXMLDOMNode; + + /** replace a child node */ + replaceChild(newChild: IXMLDOMNode, oldChild: IXMLDOMNode): IXMLDOMNode; + + /** indicates whether the parser resolves references to external DTD/Entities/Schema */ + resolveExternals: boolean; + + /** save the document to a specified destination */ + save(destination: any): void; + + /** The associated schema cache */ + schemas: any; + + /** execute query on the subtree */ + selectNodes(queryString: string): IXMLDOMNodeList; + + /** execute query on the subtree */ + selectSingleNode(queryString: string): IXMLDOMNode; + + /** set the value of the named property */ + setProperty(name: string, value: any): void; + + /** indicates whether node is a default value */ + readonly specified: boolean; + + /** text content of the node and subtree */ + text: string; + + /** apply the stylesheet to the subtree */ + transformNode(stylesheet: IXMLDOMNode): string; + + /** apply the stylesheet to the subtree, returning the result through a document or a stream */ + transformNodeToObject(stylesheet: IXMLDOMNode, outputObject: any): void; + + /** get the URL for the loaded XML document */ + readonly url: string; + + /** perform runtime validation on the currently loaded XML document */ + validate(): IXMLDOMParseError; + + /** perform runtime validation on the currently loaded XML document node */ + validateNode(node: IXMLDOMNode): IXMLDOMParseError; + + /** indicates whether the parser performs validation */ + validateOnParse: boolean; + + /** return the XML source for the node and each of its descendants */ + readonly xml: string; + } + + /** Free Threaded XML HTTP Request class 6.0 */ + class FreeThreadedXMLHTTP60 { + private 'MSXML2.FreeThreadedXMLHTTP60_typekey': FreeThreadedXMLHTTP60; + private constructor(); + abort(): void; + getAllResponseHeaders(ppwszHeaders: string): void; + GetCookie(pwszUrl: string, pwszName: string, dwFlags: number, pcCookies: number, ppCookies: tagXHR_COOKIE): void; + getResponseHeader(pwszHeader: string, ppwszValue: string): void; + open( + pwszMethod: string, pwszUrl: string, pStatusCallback: IXMLHTTPRequest2Callback, pwszUserName: string, pwszPassword: string, pwszProxyUserName: string, pwszProxyPassword: string): void; + send(pBody: ISequentialStream, cbBody: number): void; + SetCookie(pCookie: tagXHR_COOKIE, pdwCookieState: number): void; + SetCustomResponseStream(pSequentialStream: ISequentialStream): void; + setProperty(eProperty: XHR_PROPERTY, ullValue: number): void; + setRequestHeader(pwszHeader: string, pwszValue: string): void; + } + + /** IMXNamespacePrefixes interface */ + class IMXNamespacePrefixes { + private 'MSXML2.IMXNamespacePrefixes_typekey': IMXNamespacePrefixes; + private constructor(); + item(index: number): string; + readonly length: number; + } + + /** XML Schema */ + class ISchema { + private 'MSXML2.ISchema_typekey': ISchema; + private constructor(); + readonly attributeGroups: ISchemaItemCollection; + readonly attributes: ISchemaItemCollection; + readonly elements: ISchemaItemCollection; + readonly id: string; + readonly itemType: SOMITEMTYPE; + readonly modelGroups: ISchemaItemCollection; + readonly name: string; + readonly namespaceURI: string; + readonly notations: ISchemaItemCollection; + readonly schema: ISchema; + readonly schemaLocations: ISchemaStringCollection; + readonly targetNamespace: string; + readonly types: ISchemaItemCollection; + readonly unhandledAttributes: IVBSAXAttributes; + readonly version: string; + writeAnnotation(annotationSink: any): boolean; + } + + /** XML Schema Item */ + class ISchemaItem { + private 'MSXML2.ISchemaItem_typekey': ISchemaItem; + private constructor(); + readonly id: string; + readonly itemType: SOMITEMTYPE; + readonly name: string; + readonly namespaceURI: string; + readonly schema: ISchema; + readonly unhandledAttributes: IVBSAXAttributes; + writeAnnotation(annotationSink: any): boolean; + } + + /** XML Schema Item Collection */ + class ISchemaItemCollection { + private 'MSXML2.ISchemaItemCollection_typekey': ISchemaItemCollection; + private constructor(); + item(index: number): ISchemaItem; + itemByName(name: string): ISchemaItem; + itemByQName(name: string, namespaceURI: string): ISchemaItem; + readonly length: number; + } + + /** XML Schema String Collection */ + class ISchemaStringCollection { + private 'MSXML2.ISchemaStringCollection_typekey': ISchemaStringCollection; + private constructor(); + item(index: number): string; + readonly length: number; + } + + class ISequentialStream { + private 'MSXML2.ISequentialStream_typekey': ISequentialStream; + private constructor(); + RemoteRead(pv: number, cb: number, pcbRead: number): void; + RemoteWrite(pv: number, cb: number, pcbWritten: number): void; + } + + /** IVBSAXAttributes interface */ + class IVBSAXAttributes { + private 'MSXML2.IVBSAXAttributes_typekey': IVBSAXAttributes; + private constructor(); + + /** Look up the index of an attribute by Namespace name. */ + getIndexFromName(strURI: string, strLocalName: string): number; + + /** Look up the index of an attribute by XML 1.0 qualified name. */ + getIndexFromQName(strQName: string): number; + + /** Look up an attribute's local name by index. */ + getLocalName(nIndex: number): string; + + /** Look up an attribute's XML 1.0 qualified name by index. */ + getQName(nIndex: number): string; + + /** Look up an attribute's type by index. */ + getType(nIndex: number): string; + + /** Look up an attribute's type by Namespace name. */ + getTypeFromName(strURI: string, strLocalName: string): string; + + /** Look up an attribute's type by XML 1.0 qualified name. */ + getTypeFromQName(strQName: string): string; + + /** Look up an attribute's Namespace URI by index. */ + getURI(nIndex: number): string; + + /** Look up an attribute's value by index. */ + getValue(nIndex: number): string; + + /** Look up an attribute's value by Namespace name. */ + getValueFromName(strURI: string, strLocalName: string): string; + + /** Look up an attribute's value by XML 1.0 qualified name. */ + getValueFromQName(strQName: string): string; + + /** Get the number of attributes in the list. */ + readonly length: number; + } + + /** IVBSAXContentHandler interface */ + class IVBSAXContentHandler { + private 'MSXML2.IVBSAXContentHandler_typekey': IVBSAXContentHandler; + private constructor(); + + /** Receive notification of character data. */ + characters(strChars: string): void; + + /** Receive an object for locating the origin of SAX document events. */ + readonly documentLocator: IVBSAXLocator; + + /** Receive notification of the end of a document. */ + endDocument(): void; + + /** Receive notification of the end of an element. */ + endElement(strNamespaceURI: string, strLocalName: string, strQName: string): void; + + /** End the scope of a prefix-URI mapping. */ + endPrefixMapping(strPrefix: string): void; + + /** Receive notification of ignorable whitespace in element content. */ + ignorableWhitespace(strChars: string): void; + + /** Receive notification of a processing instruction. */ + processingInstruction(strTarget: string, strData: string): void; + + /** Receive notification of a skipped entity. */ + skippedEntity(strName: string): void; + + /** Receive notification of the beginning of a document. */ + startDocument(): void; + + /** Receive notification of the beginning of an element. */ + startElement(strNamespaceURI: string, strLocalName: string, strQName: string, oAttributes: IVBSAXAttributes): void; + + /** Begin the scope of a prefix-URI Namespace mapping. */ + startPrefixMapping(strPrefix: string, strURI: string): void; + } + + /** IVBSAXDTDHandler interface */ + class IVBSAXDTDHandler { + private 'MSXML2.IVBSAXDTDHandler_typekey': IVBSAXDTDHandler; + private constructor(); + + /** Receive notification of a notation declaration event. */ + notationDecl(strName: string, strPublicId: string, strSystemId: string): void; + + /** Receive notification of an unparsed entity declaration event. */ + unparsedEntityDecl(strName: string, strPublicId: string, strSystemId: string, strNotationName: string): void; + } + + /** IVBSAXEntityResolver interface */ + class IVBSAXEntityResolver { + private 'MSXML2.IVBSAXEntityResolver_typekey': IVBSAXEntityResolver; + private constructor(); + + /** Allow the application to resolve external entities. */ + resolveEntity(strPublicId: string, strSystemId: string): any; + } + + /** IVBSAXErrorHandler interface */ + class IVBSAXErrorHandler { + private 'MSXML2.IVBSAXErrorHandler_typekey': IVBSAXErrorHandler; + private constructor(); + + /** Receive notification of a recoverable error. */ + error(oLocator: IVBSAXLocator, strErrorMessage: string, nErrorCode: number): void; + + /** Receive notification of a non-recoverable error. */ + fatalError(oLocator: IVBSAXLocator, strErrorMessage: string, nErrorCode: number): void; + + /** Receive notification of an ignorable warning. */ + ignorableWarning(oLocator: IVBSAXLocator, strErrorMessage: string, nErrorCode: number): void; + } + + /** IVBSAXLocator interface */ + class IVBSAXLocator { + private 'MSXML2.IVBSAXLocator_typekey': IVBSAXLocator; + private constructor(); + + /** Get the column number where the current document event ends. */ + readonly columnNumber: number; + + /** Get the line number where the current document event ends. */ + readonly lineNumber: number; + + /** Get the public identifier for the current document event. */ + readonly publicId: string; + + /** Get the system identifier for the current document event. */ + readonly systemId: string; + } + + class IXMLDOMAttribute { + private 'MSXML2.IXMLDOMAttribute_typekey': IXMLDOMAttribute; + private constructor(); + + /** append a child node */ + appendChild(newChild: IXMLDOMNode): IXMLDOMNode; + + /** the collection of the node's attributes */ + readonly attributes: IXMLDOMNamedNodeMap; + + /** the base name of the node (nodename with the prefix stripped off) */ + readonly baseName: string; + + /** the collection of the node's children */ + readonly childNodes: IXMLDOMNodeList; + cloneNode(deep: boolean): IXMLDOMNode; + + /** the data type of the node */ + dataType: any; + + /** pointer to the definition of the node in the DTD or schema */ + readonly definition: IXMLDOMNode; + + /** first child of the node */ + readonly firstChild: IXMLDOMNode; + hasChildNodes(): boolean; + + /** insert a child node */ + insertBefore(newChild: IXMLDOMNode, refChild: any): IXMLDOMNode; + + /** last child of the node */ + readonly lastChild: IXMLDOMNode; + + /** get name of the attribute */ + readonly name: string; + + /** the URI for the namespace applying to the node */ + readonly namespaceURI: string; + + /** right sibling of the node */ + readonly nextSibling: IXMLDOMNode; + + /** name of the node */ + readonly nodeName: string; + + /** the node's type */ + readonly nodeType: DOMNodeType; + + /** get the strongly typed value of the node */ + nodeTypedValue: any; + + /** the type of node in string form */ + readonly nodeTypeString: string; + + /** value stored in the node */ + nodeValue: any; + + /** document that contains the node */ + readonly ownerDocument: IXMLDOMDocument; + + /** parent of the node */ + readonly parentNode: IXMLDOMNode; + + /** has sub-tree been completely parsed */ + readonly parsed: boolean; + + /** the prefix for the namespace applying to the node */ + readonly prefix: string; + + /** left sibling of the node */ + readonly previousSibling: IXMLDOMNode; + + /** remove a child node */ + removeChild(childNode: IXMLDOMNode): IXMLDOMNode; + + /** replace a child node */ + replaceChild(newChild: IXMLDOMNode, oldChild: IXMLDOMNode): IXMLDOMNode; + + /** execute query on the subtree */ + selectNodes(queryString: string): IXMLDOMNodeList; + + /** execute query on the subtree */ + selectSingleNode(queryString: string): IXMLDOMNode; + + /** indicates whether node is a default value */ + readonly specified: boolean; + + /** text content of the node and subtree */ + text: string; + + /** apply the stylesheet to the subtree */ + transformNode(stylesheet: IXMLDOMNode): string; + + /** apply the stylesheet to the subtree, returning the result through a document or a stream */ + transformNodeToObject(stylesheet: IXMLDOMNode, outputObject: any): void; + + /** string value of the attribute */ + value: any; + + /** return the XML source for the node and each of its descendants */ + readonly xml: string; + } + + class IXMLDOMCDATASection { + private 'MSXML2.IXMLDOMCDATASection_typekey': IXMLDOMCDATASection; + private constructor(); + + /** append a child node */ + appendChild(newChild: IXMLDOMNode): IXMLDOMNode; + + /** append string to value */ + appendData(data: string): void; + + /** the collection of the node's attributes */ + readonly attributes: IXMLDOMNamedNodeMap; + + /** the base name of the node (nodename with the prefix stripped off) */ + readonly baseName: string; + + /** the collection of the node's children */ + readonly childNodes: IXMLDOMNodeList; + cloneNode(deep: boolean): IXMLDOMNode; + + /** value of the node */ + data: string; + + /** the data type of the node */ + dataType: any; + + /** pointer to the definition of the node in the DTD or schema */ + readonly definition: IXMLDOMNode; + + /** delete string within the value */ + deleteData(offset: number, count: number): void; + + /** first child of the node */ + readonly firstChild: IXMLDOMNode; + hasChildNodes(): boolean; + + /** insert a child node */ + insertBefore(newChild: IXMLDOMNode, refChild: any): IXMLDOMNode; + + /** insert string into value */ + insertData(offset: number, data: string): void; + + /** last child of the node */ + readonly lastChild: IXMLDOMNode; + + /** number of characters in value */ + readonly length: number; + + /** the URI for the namespace applying to the node */ + readonly namespaceURI: string; + + /** right sibling of the node */ + readonly nextSibling: IXMLDOMNode; + + /** name of the node */ + readonly nodeName: string; + + /** the node's type */ + readonly nodeType: DOMNodeType; + + /** get the strongly typed value of the node */ + nodeTypedValue: any; + + /** the type of node in string form */ + readonly nodeTypeString: string; + + /** value stored in the node */ + nodeValue: any; + + /** document that contains the node */ + readonly ownerDocument: IXMLDOMDocument; + + /** parent of the node */ + readonly parentNode: IXMLDOMNode; + + /** has sub-tree been completely parsed */ + readonly parsed: boolean; + + /** the prefix for the namespace applying to the node */ + readonly prefix: string; + + /** left sibling of the node */ + readonly previousSibling: IXMLDOMNode; + + /** remove a child node */ + removeChild(childNode: IXMLDOMNode): IXMLDOMNode; + + /** replace a child node */ + replaceChild(newChild: IXMLDOMNode, oldChild: IXMLDOMNode): IXMLDOMNode; + + /** replace string within the value */ + replaceData(offset: number, count: number, data: string): void; + + /** execute query on the subtree */ + selectNodes(queryString: string): IXMLDOMNodeList; + + /** execute query on the subtree */ + selectSingleNode(queryString: string): IXMLDOMNode; + + /** indicates whether node is a default value */ + readonly specified: boolean; + + /** split the text node into two text nodes at the position specified */ + splitText(offset: number): IXMLDOMText; + + /** retrieve substring of value */ + substringData(offset: number, count: number): string; + + /** text content of the node and subtree */ + text: string; + + /** apply the stylesheet to the subtree */ + transformNode(stylesheet: IXMLDOMNode): string; + + /** apply the stylesheet to the subtree, returning the result through a document or a stream */ + transformNodeToObject(stylesheet: IXMLDOMNode, outputObject: any): void; + + /** return the XML source for the node and each of its descendants */ + readonly xml: string; + } + + class IXMLDOMComment { + private 'MSXML2.IXMLDOMComment_typekey': IXMLDOMComment; + private constructor(); + + /** append a child node */ + appendChild(newChild: IXMLDOMNode): IXMLDOMNode; + + /** append string to value */ + appendData(data: string): void; + + /** the collection of the node's attributes */ + readonly attributes: IXMLDOMNamedNodeMap; + + /** the base name of the node (nodename with the prefix stripped off) */ + readonly baseName: string; + + /** the collection of the node's children */ + readonly childNodes: IXMLDOMNodeList; + cloneNode(deep: boolean): IXMLDOMNode; + + /** value of the node */ + data: string; + + /** the data type of the node */ + dataType: any; + + /** pointer to the definition of the node in the DTD or schema */ + readonly definition: IXMLDOMNode; + + /** delete string within the value */ + deleteData(offset: number, count: number): void; + + /** first child of the node */ + readonly firstChild: IXMLDOMNode; + hasChildNodes(): boolean; + + /** insert a child node */ + insertBefore(newChild: IXMLDOMNode, refChild: any): IXMLDOMNode; + + /** insert string into value */ + insertData(offset: number, data: string): void; + + /** last child of the node */ + readonly lastChild: IXMLDOMNode; + + /** number of characters in value */ + readonly length: number; + + /** the URI for the namespace applying to the node */ + readonly namespaceURI: string; + + /** right sibling of the node */ + readonly nextSibling: IXMLDOMNode; + + /** name of the node */ + readonly nodeName: string; + + /** the node's type */ + readonly nodeType: DOMNodeType; + + /** get the strongly typed value of the node */ + nodeTypedValue: any; + + /** the type of node in string form */ + readonly nodeTypeString: string; + + /** value stored in the node */ + nodeValue: any; + + /** document that contains the node */ + readonly ownerDocument: IXMLDOMDocument; + + /** parent of the node */ + readonly parentNode: IXMLDOMNode; + + /** has sub-tree been completely parsed */ + readonly parsed: boolean; + + /** the prefix for the namespace applying to the node */ + readonly prefix: string; + + /** left sibling of the node */ + readonly previousSibling: IXMLDOMNode; + + /** remove a child node */ + removeChild(childNode: IXMLDOMNode): IXMLDOMNode; + + /** replace a child node */ + replaceChild(newChild: IXMLDOMNode, oldChild: IXMLDOMNode): IXMLDOMNode; + + /** replace string within the value */ + replaceData(offset: number, count: number, data: string): void; + + /** execute query on the subtree */ + selectNodes(queryString: string): IXMLDOMNodeList; + + /** execute query on the subtree */ + selectSingleNode(queryString: string): IXMLDOMNode; + + /** indicates whether node is a default value */ + readonly specified: boolean; + + /** retrieve substring of value */ + substringData(offset: number, count: number): string; + + /** text content of the node and subtree */ + text: string; + + /** apply the stylesheet to the subtree */ + transformNode(stylesheet: IXMLDOMNode): string; + + /** apply the stylesheet to the subtree, returning the result through a document or a stream */ + transformNodeToObject(stylesheet: IXMLDOMNode, outputObject: any): void; + + /** return the XML source for the node and each of its descendants */ + readonly xml: string; + } + + class IXMLDOMDocument { + private 'MSXML2.IXMLDOMDocument_typekey': IXMLDOMDocument; + private constructor(); + + /** abort an asynchronous download */ + abort(): void; + + /** append a child node */ + appendChild(newChild: IXMLDOMNode): IXMLDOMNode; + + /** flag for asynchronous download */ + async: boolean; + + /** the collection of the node's attributes */ + readonly attributes: IXMLDOMNamedNodeMap; + + /** the base name of the node (nodename with the prefix stripped off) */ + readonly baseName: string; + + /** the collection of the node's children */ + readonly childNodes: IXMLDOMNodeList; + cloneNode(deep: boolean): IXMLDOMNode; + + /** create an attribute node */ + createAttribute(name: string): IXMLDOMAttribute; + + /** create a CDATA section node */ + createCDATASection(data: string): IXMLDOMCDATASection; + + /** create a comment node */ + createComment(data: string): IXMLDOMComment; + + /** create a DocumentFragment node */ + createDocumentFragment(): IXMLDOMDocumentFragment; + + /** create an Element node */ + createElement(tagName: string): IXMLDOMElement; + + /** create an entity reference node */ + createEntityReference(name: string): IXMLDOMEntityReference; + + /** create a node of the specified node type and name */ + createNode(type: any, name: string, namespaceURI: string): IXMLDOMNode; + + /** create a processing instruction node */ + createProcessingInstruction(target: string, data: string): IXMLDOMProcessingInstruction; + + /** create a text node */ + createTextNode(data: string): IXMLDOMText; + + /** the data type of the node */ + dataType: any; + + /** pointer to the definition of the node in the DTD or schema */ + readonly definition: IXMLDOMNode; + + /** node corresponding to the DOCTYPE */ + readonly doctype: IXMLDOMDocumentType; + + /** the root of the tree */ + documentElement: IXMLDOMElement; + + /** first child of the node */ + readonly firstChild: IXMLDOMNode; + + /** build a list of elements by name */ + getElementsByTagName(tagName: string): IXMLDOMNodeList; + hasChildNodes(): boolean; + + /** info on this DOM implementation */ + readonly implementation: IXMLDOMImplementation; + + /** insert a child node */ + insertBefore(newChild: IXMLDOMNode, refChild: any): IXMLDOMNode; + + /** last child of the node */ + readonly lastChild: IXMLDOMNode; + + /** load document from the specified XML source */ + load(xmlSource: any): boolean; + + /** load the document from a string */ + loadXML(bstrXML: string): boolean; + + /** the URI for the namespace applying to the node */ + readonly namespaceURI: string; + + /** right sibling of the node */ + readonly nextSibling: IXMLDOMNode; + + /** retrieve node from it's ID */ + nodeFromID(idString: string): IXMLDOMNode; + + /** name of the node */ + readonly nodeName: string; + + /** the node's type */ + readonly nodeType: DOMNodeType; + + /** get the strongly typed value of the node */ + nodeTypedValue: any; + + /** the type of node in string form */ + readonly nodeTypeString: string; + + /** value stored in the node */ + nodeValue: any; + + /** register an ondataavailable event handler */ + readonly ondataavailable: any; + + /** register a readystatechange event handler */ + readonly onreadystatechange: any; + + /** register an ontransformnode event handler */ + readonly ontransformnode: any; + + /** document that contains the node */ + readonly ownerDocument: IXMLDOMDocument; + + /** parent of the node */ + readonly parentNode: IXMLDOMNode; + + /** has sub-tree been completely parsed */ + readonly parsed: boolean; + + /** get the last parser error */ + readonly parseError: IXMLDOMParseError; + + /** the prefix for the namespace applying to the node */ + readonly prefix: string; + + /** indicates whether the parser preserves whitespace */ + preserveWhiteSpace: boolean; + + /** left sibling of the node */ + readonly previousSibling: IXMLDOMNode; + + /** get the state of the XML document */ + readonly readyState: number; + + /** remove a child node */ + removeChild(childNode: IXMLDOMNode): IXMLDOMNode; + + /** replace a child node */ + replaceChild(newChild: IXMLDOMNode, oldChild: IXMLDOMNode): IXMLDOMNode; + + /** indicates whether the parser resolves references to external DTD/Entities/Schema */ + resolveExternals: boolean; + + /** save the document to a specified destination */ + save(destination: any): void; + + /** execute query on the subtree */ + selectNodes(queryString: string): IXMLDOMNodeList; + + /** execute query on the subtree */ + selectSingleNode(queryString: string): IXMLDOMNode; + + /** indicates whether node is a default value */ + readonly specified: boolean; + + /** text content of the node and subtree */ + text: string; + + /** apply the stylesheet to the subtree */ + transformNode(stylesheet: IXMLDOMNode): string; + + /** apply the stylesheet to the subtree, returning the result through a document or a stream */ + transformNodeToObject(stylesheet: IXMLDOMNode, outputObject: any): void; + + /** get the URL for the loaded XML document */ + readonly url: string; + + /** indicates whether the parser performs validation */ + validateOnParse: boolean; + + /** return the XML source for the node and each of its descendants */ + readonly xml: string; + } + + class IXMLDOMDocumentFragment { + private 'MSXML2.IXMLDOMDocumentFragment_typekey': IXMLDOMDocumentFragment; + private constructor(); + + /** append a child node */ + appendChild(newChild: IXMLDOMNode): IXMLDOMNode; + + /** the collection of the node's attributes */ + readonly attributes: IXMLDOMNamedNodeMap; + + /** the base name of the node (nodename with the prefix stripped off) */ + readonly baseName: string; + + /** the collection of the node's children */ + readonly childNodes: IXMLDOMNodeList; + cloneNode(deep: boolean): IXMLDOMNode; + + /** the data type of the node */ + dataType: any; + + /** pointer to the definition of the node in the DTD or schema */ + readonly definition: IXMLDOMNode; + + /** first child of the node */ + readonly firstChild: IXMLDOMNode; + hasChildNodes(): boolean; + + /** insert a child node */ + insertBefore(newChild: IXMLDOMNode, refChild: any): IXMLDOMNode; + + /** last child of the node */ + readonly lastChild: IXMLDOMNode; + + /** the URI for the namespace applying to the node */ + readonly namespaceURI: string; + + /** right sibling of the node */ + readonly nextSibling: IXMLDOMNode; + + /** name of the node */ + readonly nodeName: string; + + /** the node's type */ + readonly nodeType: DOMNodeType; + + /** get the strongly typed value of the node */ + nodeTypedValue: any; + + /** the type of node in string form */ + readonly nodeTypeString: string; + + /** value stored in the node */ + nodeValue: any; + + /** document that contains the node */ + readonly ownerDocument: IXMLDOMDocument; + + /** parent of the node */ + readonly parentNode: IXMLDOMNode; + + /** has sub-tree been completely parsed */ + readonly parsed: boolean; + + /** the prefix for the namespace applying to the node */ + readonly prefix: string; + + /** left sibling of the node */ + readonly previousSibling: IXMLDOMNode; + + /** remove a child node */ + removeChild(childNode: IXMLDOMNode): IXMLDOMNode; + + /** replace a child node */ + replaceChild(newChild: IXMLDOMNode, oldChild: IXMLDOMNode): IXMLDOMNode; + + /** execute query on the subtree */ + selectNodes(queryString: string): IXMLDOMNodeList; + + /** execute query on the subtree */ + selectSingleNode(queryString: string): IXMLDOMNode; + + /** indicates whether node is a default value */ + readonly specified: boolean; + + /** text content of the node and subtree */ + text: string; + + /** apply the stylesheet to the subtree */ + transformNode(stylesheet: IXMLDOMNode): string; + + /** apply the stylesheet to the subtree, returning the result through a document or a stream */ + transformNodeToObject(stylesheet: IXMLDOMNode, outputObject: any): void; + + /** return the XML source for the node and each of its descendants */ + readonly xml: string; + } + + class IXMLDOMDocumentType { + private 'MSXML2.IXMLDOMDocumentType_typekey': IXMLDOMDocumentType; + private constructor(); + + /** append a child node */ + appendChild(newChild: IXMLDOMNode): IXMLDOMNode; + + /** the collection of the node's attributes */ + readonly attributes: IXMLDOMNamedNodeMap; + + /** the base name of the node (nodename with the prefix stripped off) */ + readonly baseName: string; + + /** the collection of the node's children */ + readonly childNodes: IXMLDOMNodeList; + cloneNode(deep: boolean): IXMLDOMNode; + + /** the data type of the node */ + dataType: any; + + /** pointer to the definition of the node in the DTD or schema */ + readonly definition: IXMLDOMNode; + + /** a list of entities in the document */ + readonly entities: IXMLDOMNamedNodeMap; + + /** first child of the node */ + readonly firstChild: IXMLDOMNode; + hasChildNodes(): boolean; + + /** insert a child node */ + insertBefore(newChild: IXMLDOMNode, refChild: any): IXMLDOMNode; + + /** last child of the node */ + readonly lastChild: IXMLDOMNode; + + /** name of the document type (root of the tree) */ + readonly name: string; + + /** the URI for the namespace applying to the node */ + readonly namespaceURI: string; + + /** right sibling of the node */ + readonly nextSibling: IXMLDOMNode; + + /** name of the node */ + readonly nodeName: string; + + /** the node's type */ + readonly nodeType: DOMNodeType; + + /** get the strongly typed value of the node */ + nodeTypedValue: any; + + /** the type of node in string form */ + readonly nodeTypeString: string; + + /** value stored in the node */ + nodeValue: any; + + /** a list of notations in the document */ + readonly notations: IXMLDOMNamedNodeMap; + + /** document that contains the node */ + readonly ownerDocument: IXMLDOMDocument; + + /** parent of the node */ + readonly parentNode: IXMLDOMNode; + + /** has sub-tree been completely parsed */ + readonly parsed: boolean; + + /** the prefix for the namespace applying to the node */ + readonly prefix: string; + + /** left sibling of the node */ + readonly previousSibling: IXMLDOMNode; + + /** remove a child node */ + removeChild(childNode: IXMLDOMNode): IXMLDOMNode; + + /** replace a child node */ + replaceChild(newChild: IXMLDOMNode, oldChild: IXMLDOMNode): IXMLDOMNode; + + /** execute query on the subtree */ + selectNodes(queryString: string): IXMLDOMNodeList; + + /** execute query on the subtree */ + selectSingleNode(queryString: string): IXMLDOMNode; + + /** indicates whether node is a default value */ + readonly specified: boolean; + + /** text content of the node and subtree */ + text: string; + + /** apply the stylesheet to the subtree */ + transformNode(stylesheet: IXMLDOMNode): string; + + /** apply the stylesheet to the subtree, returning the result through a document or a stream */ + transformNodeToObject(stylesheet: IXMLDOMNode, outputObject: any): void; + + /** return the XML source for the node and each of its descendants */ + readonly xml: string; + } + + class IXMLDOMElement { + private 'MSXML2.IXMLDOMElement_typekey': IXMLDOMElement; + private constructor(); + + /** append a child node */ + appendChild(newChild: IXMLDOMNode): IXMLDOMNode; + + /** the collection of the node's attributes */ + readonly attributes: IXMLDOMNamedNodeMap; + + /** the base name of the node (nodename with the prefix stripped off) */ + readonly baseName: string; + + /** the collection of the node's children */ + readonly childNodes: IXMLDOMNodeList; + cloneNode(deep: boolean): IXMLDOMNode; + + /** the data type of the node */ + dataType: any; + + /** pointer to the definition of the node in the DTD or schema */ + readonly definition: IXMLDOMNode; + + /** first child of the node */ + readonly firstChild: IXMLDOMNode; + + /** look up the string value of an attribute by name */ + getAttribute(name: string): any; + + /** look up the attribute node by name */ + getAttributeNode(name: string): IXMLDOMAttribute; + + /** build a list of elements by name */ + getElementsByTagName(tagName: string): IXMLDOMNodeList; + hasChildNodes(): boolean; + + /** insert a child node */ + insertBefore(newChild: IXMLDOMNode, refChild: any): IXMLDOMNode; + + /** last child of the node */ + readonly lastChild: IXMLDOMNode; + + /** the URI for the namespace applying to the node */ + readonly namespaceURI: string; + + /** right sibling of the node */ + readonly nextSibling: IXMLDOMNode; + + /** name of the node */ + readonly nodeName: string; + + /** the node's type */ + readonly nodeType: DOMNodeType; + + /** get the strongly typed value of the node */ + nodeTypedValue: any; + + /** the type of node in string form */ + readonly nodeTypeString: string; + + /** value stored in the node */ + nodeValue: any; + + /** collapse all adjacent text nodes in sub-tree */ + normalize(): void; + + /** document that contains the node */ + readonly ownerDocument: IXMLDOMDocument; + + /** parent of the node */ + readonly parentNode: IXMLDOMNode; + + /** has sub-tree been completely parsed */ + readonly parsed: boolean; + + /** the prefix for the namespace applying to the node */ + readonly prefix: string; + + /** left sibling of the node */ + readonly previousSibling: IXMLDOMNode; + + /** remove an attribute by name */ + removeAttribute(name: string): void; + + /** remove the specified attribute */ + removeAttributeNode(DOMAttribute: IXMLDOMAttribute): IXMLDOMAttribute; + + /** remove a child node */ + removeChild(childNode: IXMLDOMNode): IXMLDOMNode; + + /** replace a child node */ + replaceChild(newChild: IXMLDOMNode, oldChild: IXMLDOMNode): IXMLDOMNode; + + /** execute query on the subtree */ + selectNodes(queryString: string): IXMLDOMNodeList; + + /** execute query on the subtree */ + selectSingleNode(queryString: string): IXMLDOMNode; + + /** set the string value of an attribute by name */ + setAttribute(name: string, value: any): void; + + /** set the specified attribute on the element */ + setAttributeNode(DOMAttribute: IXMLDOMAttribute): IXMLDOMAttribute; + + /** indicates whether node is a default value */ + readonly specified: boolean; + + /** get the tagName of the element */ + readonly tagName: string; + + /** text content of the node and subtree */ + text: string; + + /** apply the stylesheet to the subtree */ + transformNode(stylesheet: IXMLDOMNode): string; + + /** apply the stylesheet to the subtree, returning the result through a document or a stream */ + transformNodeToObject(stylesheet: IXMLDOMNode, outputObject: any): void; + + /** return the XML source for the node and each of its descendants */ + readonly xml: string; + } + + class IXMLDOMEntityReference { + private 'MSXML2.IXMLDOMEntityReference_typekey': IXMLDOMEntityReference; + private constructor(); + + /** append a child node */ + appendChild(newChild: IXMLDOMNode): IXMLDOMNode; + + /** the collection of the node's attributes */ + readonly attributes: IXMLDOMNamedNodeMap; + + /** the base name of the node (nodename with the prefix stripped off) */ + readonly baseName: string; + + /** the collection of the node's children */ + readonly childNodes: IXMLDOMNodeList; + cloneNode(deep: boolean): IXMLDOMNode; + + /** the data type of the node */ + dataType: any; + + /** pointer to the definition of the node in the DTD or schema */ + readonly definition: IXMLDOMNode; + + /** first child of the node */ + readonly firstChild: IXMLDOMNode; + hasChildNodes(): boolean; + + /** insert a child node */ + insertBefore(newChild: IXMLDOMNode, refChild: any): IXMLDOMNode; + + /** last child of the node */ + readonly lastChild: IXMLDOMNode; + + /** the URI for the namespace applying to the node */ + readonly namespaceURI: string; + + /** right sibling of the node */ + readonly nextSibling: IXMLDOMNode; + + /** name of the node */ + readonly nodeName: string; + + /** the node's type */ + readonly nodeType: DOMNodeType; + + /** get the strongly typed value of the node */ + nodeTypedValue: any; + + /** the type of node in string form */ + readonly nodeTypeString: string; + + /** value stored in the node */ + nodeValue: any; + + /** document that contains the node */ + readonly ownerDocument: IXMLDOMDocument; + + /** parent of the node */ + readonly parentNode: IXMLDOMNode; + + /** has sub-tree been completely parsed */ + readonly parsed: boolean; + + /** the prefix for the namespace applying to the node */ + readonly prefix: string; + + /** left sibling of the node */ + readonly previousSibling: IXMLDOMNode; + + /** remove a child node */ + removeChild(childNode: IXMLDOMNode): IXMLDOMNode; + + /** replace a child node */ + replaceChild(newChild: IXMLDOMNode, oldChild: IXMLDOMNode): IXMLDOMNode; + + /** execute query on the subtree */ + selectNodes(queryString: string): IXMLDOMNodeList; + + /** execute query on the subtree */ + selectSingleNode(queryString: string): IXMLDOMNode; + + /** indicates whether node is a default value */ + readonly specified: boolean; + + /** text content of the node and subtree */ + text: string; + + /** apply the stylesheet to the subtree */ + transformNode(stylesheet: IXMLDOMNode): string; + + /** apply the stylesheet to the subtree, returning the result through a document or a stream */ + transformNodeToObject(stylesheet: IXMLDOMNode, outputObject: any): void; + + /** return the XML source for the node and each of its descendants */ + readonly xml: string; + } + + class IXMLDOMImplementation { + private 'MSXML2.IXMLDOMImplementation_typekey': IXMLDOMImplementation; + private constructor(); + hasFeature(feature: string, version: string): boolean; + } + + class IXMLDOMNamedNodeMap { + private 'MSXML2.IXMLDOMNamedNodeMap_typekey': IXMLDOMNamedNodeMap; + private constructor(); + + /** lookup item by name */ + getNamedItem(name: string): IXMLDOMNode; + + /** lookup the item by name and namespace */ + getQualifiedItem(baseName: string, namespaceURI: string): IXMLDOMNode; + + /** collection of nodes */ + item(index: number): IXMLDOMNode; + + /** number of nodes in the collection */ + readonly length: number; + + /** get next node from iterator */ + nextNode(): IXMLDOMNode; + + /** remove item by name */ + removeNamedItem(name: string): IXMLDOMNode; + + /** remove the item by name and namespace */ + removeQualifiedItem(baseName: string, namespaceURI: string): IXMLDOMNode; + + /** reset the position of iterator */ + reset(): void; + + /** set item by name */ + setNamedItem(newItem: IXMLDOMNode): IXMLDOMNode; + } + + /** Core DOM node interface */ + class IXMLDOMNode { + private 'MSXML2.IXMLDOMNode_typekey': IXMLDOMNode; + private constructor(); + + /** append a child node */ + appendChild(newChild: IXMLDOMNode): IXMLDOMNode; + + /** the collection of the node's attributes */ + readonly attributes: IXMLDOMNamedNodeMap; + + /** the base name of the node (nodename with the prefix stripped off) */ + readonly baseName: string; + + /** the collection of the node's children */ + readonly childNodes: IXMLDOMNodeList; + cloneNode(deep: boolean): IXMLDOMNode; + + /** the data type of the node */ + dataType: any; + + /** pointer to the definition of the node in the DTD or schema */ + readonly definition: IXMLDOMNode; + + /** first child of the node */ + readonly firstChild: IXMLDOMNode; + hasChildNodes(): boolean; + + /** insert a child node */ + insertBefore(newChild: IXMLDOMNode, refChild: any): IXMLDOMNode; + + /** last child of the node */ + readonly lastChild: IXMLDOMNode; + + /** the URI for the namespace applying to the node */ + readonly namespaceURI: string; + + /** right sibling of the node */ + readonly nextSibling: IXMLDOMNode; + + /** name of the node */ + readonly nodeName: string; + + /** the node's type */ + readonly nodeType: DOMNodeType; + + /** get the strongly typed value of the node */ + nodeTypedValue: any; + + /** the type of node in string form */ + readonly nodeTypeString: string; + + /** value stored in the node */ + nodeValue: any; + + /** document that contains the node */ + readonly ownerDocument: IXMLDOMDocument; + + /** parent of the node */ + readonly parentNode: IXMLDOMNode; + + /** has sub-tree been completely parsed */ + readonly parsed: boolean; + + /** the prefix for the namespace applying to the node */ + readonly prefix: string; + + /** left sibling of the node */ + readonly previousSibling: IXMLDOMNode; + + /** remove a child node */ + removeChild(childNode: IXMLDOMNode): IXMLDOMNode; + + /** replace a child node */ + replaceChild(newChild: IXMLDOMNode, oldChild: IXMLDOMNode): IXMLDOMNode; + + /** execute query on the subtree */ + selectNodes(queryString: string): IXMLDOMNodeList; + + /** execute query on the subtree */ + selectSingleNode(queryString: string): IXMLDOMNode; + + /** indicates whether node is a default value */ + readonly specified: boolean; + + /** text content of the node and subtree */ + text: string; + + /** apply the stylesheet to the subtree */ + transformNode(stylesheet: IXMLDOMNode): string; + + /** apply the stylesheet to the subtree, returning the result through a document or a stream */ + transformNodeToObject(stylesheet: IXMLDOMNode, outputObject: any): void; + + /** return the XML source for the node and each of its descendants */ + readonly xml: string; + } + + class IXMLDOMNodeList { + private 'MSXML2.IXMLDOMNodeList_typekey': IXMLDOMNodeList; + private constructor(); + + /** collection of nodes */ + item(index: number): IXMLDOMNode; + + /** number of nodes in the collection */ + readonly length: number; + + /** get next node from iterator */ + nextNode(): IXMLDOMNode; + + /** reset the position of iterator */ + reset(): void; + } + + /** structure for reporting parser errors */ + class IXMLDOMParseError { + private 'MSXML2.IXMLDOMParseError_typekey': IXMLDOMParseError; + private constructor(); + + /** the error code */ + readonly errorCode: number; + + /** the absolute file position in the XML document containing the error */ + readonly filepos: number; + + /** the line number in the XML document where the error occurred */ + readonly line: number; + + /** the character position in the line containing the error */ + readonly linepos: number; + + /** the cause of the error */ + readonly reason: string; + + /** the data where the error occurred */ + readonly srcText: string; + + /** the URL of the XML document containing the error */ + readonly url: string; + } + + class IXMLDOMProcessingInstruction { + private 'MSXML2.IXMLDOMProcessingInstruction_typekey': IXMLDOMProcessingInstruction; + private constructor(); + + /** append a child node */ + appendChild(newChild: IXMLDOMNode): IXMLDOMNode; + + /** the collection of the node's attributes */ + readonly attributes: IXMLDOMNamedNodeMap; + + /** the base name of the node (nodename with the prefix stripped off) */ + readonly baseName: string; + + /** the collection of the node's children */ + readonly childNodes: IXMLDOMNodeList; + cloneNode(deep: boolean): IXMLDOMNode; + + /** the data */ + data: string; + + /** the data type of the node */ + dataType: any; + + /** pointer to the definition of the node in the DTD or schema */ + readonly definition: IXMLDOMNode; + + /** first child of the node */ + readonly firstChild: IXMLDOMNode; + hasChildNodes(): boolean; + + /** insert a child node */ + insertBefore(newChild: IXMLDOMNode, refChild: any): IXMLDOMNode; + + /** last child of the node */ + readonly lastChild: IXMLDOMNode; + + /** the URI for the namespace applying to the node */ + readonly namespaceURI: string; + + /** right sibling of the node */ + readonly nextSibling: IXMLDOMNode; + + /** name of the node */ + readonly nodeName: string; + + /** the node's type */ + readonly nodeType: DOMNodeType; + + /** get the strongly typed value of the node */ + nodeTypedValue: any; + + /** the type of node in string form */ + readonly nodeTypeString: string; + + /** value stored in the node */ + nodeValue: any; + + /** document that contains the node */ + readonly ownerDocument: IXMLDOMDocument; + + /** parent of the node */ + readonly parentNode: IXMLDOMNode; + + /** has sub-tree been completely parsed */ + readonly parsed: boolean; + + /** the prefix for the namespace applying to the node */ + readonly prefix: string; + + /** left sibling of the node */ + readonly previousSibling: IXMLDOMNode; + + /** remove a child node */ + removeChild(childNode: IXMLDOMNode): IXMLDOMNode; + + /** replace a child node */ + replaceChild(newChild: IXMLDOMNode, oldChild: IXMLDOMNode): IXMLDOMNode; + + /** execute query on the subtree */ + selectNodes(queryString: string): IXMLDOMNodeList; + + /** execute query on the subtree */ + selectSingleNode(queryString: string): IXMLDOMNode; + + /** indicates whether node is a default value */ + readonly specified: boolean; + + /** the target */ + readonly target: string; + + /** text content of the node and subtree */ + text: string; + + /** apply the stylesheet to the subtree */ + transformNode(stylesheet: IXMLDOMNode): string; + + /** apply the stylesheet to the subtree, returning the result through a document or a stream */ + transformNodeToObject(stylesheet: IXMLDOMNode, outputObject: any): void; + + /** return the XML source for the node and each of its descendants */ + readonly xml: string; + } + + /** XML Schemas Collection */ + class IXMLDOMSchemaCollection { + private 'MSXML2.IXMLDOMSchemaCollection_typekey': IXMLDOMSchemaCollection; + private constructor(); + + /** add a new schema */ + add(namespaceURI: string, var_1: any): void; + + /** copy & merge other collection into this one */ + addCollection(otherCollection: IXMLDOMSchemaCollection): void; + + /** lookup schema by namespaceURI */ + get(namespaceURI: string): IXMLDOMNode; + + /** number of schemas in collection */ + readonly length: number; + + /** Get namespaceURI for schema by index */ + namespaceURI(index: number): string; + + /** remove schema by namespaceURI */ + remove(namespaceURI: string): void; + } + + class IXMLDOMText { + private 'MSXML2.IXMLDOMText_typekey': IXMLDOMText; + private constructor(); + + /** append a child node */ + appendChild(newChild: IXMLDOMNode): IXMLDOMNode; + + /** append string to value */ + appendData(data: string): void; + + /** the collection of the node's attributes */ + readonly attributes: IXMLDOMNamedNodeMap; + + /** the base name of the node (nodename with the prefix stripped off) */ + readonly baseName: string; + + /** the collection of the node's children */ + readonly childNodes: IXMLDOMNodeList; + cloneNode(deep: boolean): IXMLDOMNode; + + /** value of the node */ + data: string; + + /** the data type of the node */ + dataType: any; + + /** pointer to the definition of the node in the DTD or schema */ + readonly definition: IXMLDOMNode; + + /** delete string within the value */ + deleteData(offset: number, count: number): void; + + /** first child of the node */ + readonly firstChild: IXMLDOMNode; + hasChildNodes(): boolean; + + /** insert a child node */ + insertBefore(newChild: IXMLDOMNode, refChild: any): IXMLDOMNode; + + /** insert string into value */ + insertData(offset: number, data: string): void; + + /** last child of the node */ + readonly lastChild: IXMLDOMNode; + + /** number of characters in value */ + readonly length: number; + + /** the URI for the namespace applying to the node */ + readonly namespaceURI: string; + + /** right sibling of the node */ + readonly nextSibling: IXMLDOMNode; + + /** name of the node */ + readonly nodeName: string; + + /** the node's type */ + readonly nodeType: DOMNodeType; + + /** get the strongly typed value of the node */ + nodeTypedValue: any; + + /** the type of node in string form */ + readonly nodeTypeString: string; + + /** value stored in the node */ + nodeValue: any; + + /** document that contains the node */ + readonly ownerDocument: IXMLDOMDocument; + + /** parent of the node */ + readonly parentNode: IXMLDOMNode; + + /** has sub-tree been completely parsed */ + readonly parsed: boolean; + + /** the prefix for the namespace applying to the node */ + readonly prefix: string; + + /** left sibling of the node */ + readonly previousSibling: IXMLDOMNode; + + /** remove a child node */ + removeChild(childNode: IXMLDOMNode): IXMLDOMNode; + + /** replace a child node */ + replaceChild(newChild: IXMLDOMNode, oldChild: IXMLDOMNode): IXMLDOMNode; + + /** replace string within the value */ + replaceData(offset: number, count: number, data: string): void; + + /** execute query on the subtree */ + selectNodes(queryString: string): IXMLDOMNodeList; + + /** execute query on the subtree */ + selectSingleNode(queryString: string): IXMLDOMNode; + + /** indicates whether node is a default value */ + readonly specified: boolean; + + /** split the text node into two text nodes at the position specified */ + splitText(offset: number): IXMLDOMText; + + /** retrieve substring of value */ + substringData(offset: number, count: number): string; + + /** text content of the node and subtree */ + text: string; + + /** apply the stylesheet to the subtree */ + transformNode(stylesheet: IXMLDOMNode): string; + + /** apply the stylesheet to the subtree, returning the result through a document or a stream */ + transformNodeToObject(stylesheet: IXMLDOMNode, outputObject: any): void; + + /** return the XML source for the node and each of its descendants */ + readonly xml: string; + } + + /** IXMLHTTPRequest2Callback Interface */ + class IXMLHTTPRequest2Callback { + private 'MSXML2.IXMLHTTPRequest2Callback_typekey': IXMLHTTPRequest2Callback; + private constructor(); + ondataavailable(pXHR: FreeThreadedXMLHTTP60, pResponseStream: ISequentialStream): void; + OnError(pXHR: FreeThreadedXMLHTTP60, hrError: undefined): void; + OnHeadersAvailable(pXHR: FreeThreadedXMLHTTP60, dwStatus: number, pwszStatus: string): void; + OnRedirect(pXHR: FreeThreadedXMLHTTP60, pwszRedirectUrl: string): void; + OnResponseReceived(pXHR: FreeThreadedXMLHTTP60, pResponseStream: ISequentialStream): void; + } + + /** IXSLProcessor Interface */ + class IXSLProcessor { + private 'MSXML2.IXSLProcessor_typekey': IXSLProcessor; + private constructor(); + + /** pass object to stylesheet */ + addObject(obj: any, namespaceURI: string): void; + + /** + * set values + * @param string [namespaceURI=''] + */ + addParameter(baseName: string, parameter: any, namespaceURI?: string): void; + + /** XML input tree to transform */ + input: any; + + /** custom stream object for transform output */ + output: any; + + /** template object used to create this processor object */ + readonly ownerTemplate: XSLTemplate60; + + /** current state of the processor */ + readonly readyState: number; + + /** reset state of processor and abort current transform */ + reset(): void; + + /** + * set XSL mode and it's namespace + * @param string [namespaceURI=''] + */ + setStartMode(mode: string, namespaceURI?: string): void; + + /** starting XSL mode */ + readonly startMode: string; + + /** namespace of starting XSL mode */ + readonly startModeURI: string; + + /** current stylesheet being used */ + readonly stylesheet: IXMLDOMNode; + + /** start/resume the XSL transformation process */ + transform(): boolean; + } + + /** Microsoft HTML Writer 6.0 */ + class MXHTMLWriter60 { + private 'MSXML2.MXHTMLWriter60_typekey': MXHTMLWriter60; + private constructor(); + + /** Determine whether or not to write the byte order mark */ + byteOrderMark: boolean; + + /** When enabled, the writer no longer escapes out its input when writing it out. */ + disableOutputEscaping: boolean; + + /** Set or get the output encoding. */ + encoding: string; + + /** Flushes all writer buffers forcing the writer to write to the underlying output object */ + flush(): void; + + /** Enable or disable auto indent mode. */ + indent: boolean; + + /** Determine whether or not to omit the XML declaration. */ + omitXMLDeclaration: boolean; + + /** Set or get the output. */ + output: any; + + /** Set or get the standalone document declaration. */ + standalone: boolean; + + /** Set or get the xml version info. */ + version: string; + } + + /** MX Namespace Manager 6.0 */ + class MXNamespaceManager60 { + private 'MSXML2.MXNamespaceManager60_typekey': MXNamespaceManager60; + private constructor(); + allowOverride: boolean; + declarePrefix(prefix: string, namespaceURI: string): void; + getDeclaredPrefixes(): IMXNamespacePrefixes; + getPrefixes(namespaceURI: string): IMXNamespacePrefixes; + getURI(prefix: string): any; + getURIFromNode(strPrefix: string, contextNode: IXMLDOMNode): any; + popContext(): void; + pushContext(): void; + + /** @param boolean [fDeep=true] */ + pushNodeContext(contextNode: IXMLDOMNode, fDeep?: boolean): void; + reset(): void; + } + + /** Microsoft XML Writer 6.0 */ + class MXXMLWriter60 { + private 'MSXML2.MXXMLWriter60_typekey': MXXMLWriter60; + private constructor(); + + /** Determine whether or not to write the byte order mark */ + byteOrderMark: boolean; + + /** When enabled, the writer no longer escapes out its input when writing it out. */ + disableOutputEscaping: boolean; + + /** Set or get the output encoding. */ + encoding: string; + + /** Flushes all writer buffers forcing the writer to write to the underlying output object */ + flush(): void; + + /** Enable or disable auto indent mode. */ + indent: boolean; + + /** Determine whether or not to omit the XML declaration. */ + omitXMLDeclaration: boolean; + + /** Set or get the output. */ + output: any; + + /** Set or get the standalone document declaration. */ + standalone: boolean; + + /** Set or get the xml version info. */ + version: string; + } + + /** SAX Attributes 6.0 */ + class SAXAttributes60 { + private 'MSXML2.SAXAttributes60_typekey': SAXAttributes60; + private constructor(); + + /** Add an attribute to the end of the list. */ + addAttribute(strURI: string, strLocalName: string, strQName: string, strType: string, strValue: string): void; + + /** Add an attribute, whose value is equal to the indexed attribute in the input attributes object, to the end of the list. */ + addAttributeFromIndex(varAtts: any, nIndex: number): void; + + /** Clear the attribute list for reuse. */ + clear(): void; + + /** Remove an attribute from the list. */ + removeAttribute(nIndex: number): void; + + /** Set an attribute in the list. */ + setAttribute(nIndex: number, strURI: string, strLocalName: string, strQName: string, strType: string, strValue: string): void; + + /** Copy an entire Attributes object. */ + setAttributes(varAtts: any): void; + + /** Set the local name of a specific attribute. */ + setLocalName(nIndex: number, strLocalName: string): void; + + /** Set the qualified name of a specific attribute. */ + setQName(nIndex: number, strQName: string): void; + + /** Set the type of a specific attribute. */ + setType(nIndex: number, strType: string): void; + + /** Set the Namespace URI of a specific attribute. */ + setURI(nIndex: number, strURI: string): void; + + /** Set the value of a specific attribute. */ + setValue(nIndex: number, strValue: string): void; + } + + /** SAX XML Reader 6.0 */ + class SAXXMLReader60 { + private 'MSXML2.SAXXMLReader60_typekey': SAXXMLReader60; + private constructor(); + + /** Set or get the base URL for the document. */ + baseURL: string; + + /** Allow an application to register a content event handler or look up the current content event handler. */ + contentHandler: IVBSAXContentHandler; + + /** Allow an application to register a DTD event handler or look up the current DTD event handler. */ + dtdHandler: IVBSAXDTDHandler; + + /** Allow an application to register an entity resolver or look up the current entity resolver. */ + entityResolver: IVBSAXEntityResolver; + + /** Allow an application to register an error event handler or look up the current error event handler. */ + errorHandler: IVBSAXErrorHandler; + + /** Look up the value of a feature. */ + getFeature(strName: string): boolean; + + /** Look up the value of a property. */ + getProperty(strName: string): any; + + /** Parse an XML document. */ + parse(varInput?: any): void; + + /** Parse an XML document from a system identifier (URI). */ + parseURL(strURL: string): void; + + /** Set the state of a feature. */ + putFeature(strName: string, fValue: boolean): void; + + /** Set the value of a property. */ + putProperty(strName: string, varValue: any): void; + + /** Set or get the secure base URL for the document. */ + secureBaseURL: string; + } + + /** Server XML HTTP Request 6.0 */ + class ServerXMLHTTP60 { + private 'MSXML2.ServerXMLHTTP60_typekey': ServerXMLHTTP60; + private constructor(); + + /** Abort HTTP request */ + abort(): void; + + /** Get all HTTP response headers */ + getAllResponseHeaders(): string; + + /** Get an option value */ + getOption(option: SERVERXMLHTTP_OPTION): any; + + /** Get HTTP response header */ + getResponseHeader(bstrHeader: string): string; + + /** Register a complete event handler */ + readonly onreadystatechange: any; + + /** Open HTTP connection */ + open(bstrMethod: string, bstrUrl: string, varAsync?: any, bstrUser?: any, bstrPassword?: any): void; + + /** Get ready state */ + readonly readyState: number; + + /** Get response body */ + readonly responseBody: any; + + /** Get response body */ + readonly responseStream: any; + + /** Get response body */ + readonly responseText: string; + + /** Get response body */ + readonly responseXML: any; + + /** Send HTTP request */ + send(varBody?: any): void; + + /** Set an option value */ + setOption(option: SERVERXMLHTTP_OPTION, value: any): void; + + /** Specify proxy configuration */ + setProxy(proxySetting: SXH_PROXY_SETTING, varProxyServer?: any, varBypassList?: any): void; + + /** Specify proxy authentication credentials */ + setProxyCredentials(bstrUserName: string, bstrPassword: string): void; + + /** Add HTTP request header */ + setRequestHeader(bstrHeader: string, bstrValue: string): void; + + /** Specify timeout settings (in milliseconds) */ + setTimeouts(resolveTimeout: number, connectTimeout: number, sendTimeout: number, receiveTimeout: number): void; + + /** Get HTTP status code */ + readonly status: number; + + /** Get HTTP status text */ + readonly statusText: string; + + /** Wait for asynchronous send to complete, with optional timeout (in seconds) */ + waitForResponse(timeoutInSeconds?: any): boolean; + } + + interface tagXHR_COOKIE { + readonly dwFlags: number; + readonly ftExpires: _FILETIME; + readonly pwszName: string; + readonly pwszP3PPolicy: string; + readonly pwszUrl: string; + readonly pwszValue: string; + } + + /** XML HTTP Request class 6.0 */ + class XMLHTTP60 { + private 'MSXML2.XMLHTTP60_typekey': XMLHTTP60; + private constructor(); + + /** Abort HTTP request */ + abort(): void; + + /** Get all HTTP response headers */ + getAllResponseHeaders(): string; + + /** Get HTTP response header */ + getResponseHeader(bstrHeader: string): string; + + /** Register a complete event handler */ + readonly onreadystatechange: any; + + /** Open HTTP connection */ + open(bstrMethod: string, bstrUrl: string, varAsync?: any, bstrUser?: any, bstrPassword?: any): void; + + /** Get ready state */ + readonly readyState: number; + + /** Get response body */ + readonly responseBody: any; + + /** Get response body */ + readonly responseStream: any; + + /** Get response body */ + readonly responseText: string; + + /** Get response body */ + readonly responseXML: any; + + /** Send HTTP request */ + send(varBody?: any): void; + + /** Add HTTP request header */ + setRequestHeader(bstrHeader: string, bstrValue: string): void; + + /** Get HTTP status code */ + readonly status: number; + + /** Get HTTP status text */ + readonly statusText: string; + } + + /** XML Schema Cache 6.0 */ + class XMLSchemaCache60 { + private 'MSXML2.XMLSchemaCache60_typekey': XMLSchemaCache60; + private constructor(); + + /** add a new schema */ + add(namespaceURI: string, var_1: any): void; + + /** copy & merge other collection into this one */ + addCollection(otherCollection: IXMLDOMSchemaCollection): void; + + /** lookup schema by namespaceURI */ + get(namespaceURI: string): IXMLDOMNode; + getDeclaration(node: IXMLDOMNode): ISchemaItem; + getSchema(namespaceURI: string): ISchema; + + /** number of schemas in collection */ + readonly length: number; + + /** Get namespaceURI for schema by index */ + namespaceURI(index: number): string; + + /** remove schema by namespaceURI */ + remove(namespaceURI: string): void; + validate(): void; + validateOnLoad: boolean; + } + + /** XSL Stylesheet Cache 6.0 */ + class XSLTemplate60 { + private 'MSXML2.XSLTemplate60_typekey': XSLTemplate60; + private constructor(); + + /** create a new processor object */ + createProcessor(): IXSLProcessor; + + /** stylesheet to use with processors */ + stylesheet: IXMLDOMNode; + } +} + +interface ActiveXObject { + on(obj: MSXML2.DOMDocument60, event: 'ondataavailable' | 'onreadystatechange', handler: (this: MSXML2.DOMDocument60, parameter: {}) => void): void; + on(obj: MSXML2.FreeThreadedDOMDocument60, event: 'ondataavailable' | 'onreadystatechange', handler: (this: MSXML2.FreeThreadedDOMDocument60, parameter: {}) => void): void; + new(progid: K): ActiveXObjectNameMap[K]; +} + +interface ActiveXObjectNameMap { + 'Msxml2.DOMDocument': MSXML2.DOMDocument60; + 'Msxml2.DOMDocument.6.0': MSXML2.DOMDocument60; + 'Msxml2.FreeThreadedDOMDocument': MSXML2.FreeThreadedDOMDocument60; + 'Msxml2.MXHTMLWriter': MSXML2.MXHTMLWriter60; + 'Msxml2.MXNamespaceManager': MSXML2.MXNamespaceManager60; + 'Msxml2.MXXMLWriter': MSXML2.MXXMLWriter60; + 'Msxml2.SAXAttributes': MSXML2.SAXAttributes60; + 'Msxml2.SAXXMLReader': MSXML2.SAXXMLReader60; + 'Msxml2.ServerXMLHTTP': MSXML2.ServerXMLHTTP60; + 'Msxml2.XMLHTTP': MSXML2.XMLHTTP60; + 'Msxml2.XMLHTTP.6.0': MSXML2.XMLHTTP60; + 'Msxml2.XMLSchemaCache': MSXML2.XMLSchemaCache60; + 'Msxml2.XMLSchemaCache.6.0': MSXML2.XMLSchemaCache60; + 'Msxml2.XSLTemplate': MSXML2.XSLTemplate60; +} + +interface SafeArray { + _brand: SafeArray; +} diff --git a/types/activex-msxml2/package.json b/types/activex-msxml2/package.json new file mode 100644 index 0000000000..d9b1031263 --- /dev/null +++ b/types/activex-msxml2/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "activex-helpers": "*" + } +} \ No newline at end of file diff --git a/types/activex-msxml2/tsconfig.json b/types/activex-msxml2/tsconfig.json new file mode 100644 index 0000000000..96a984bd36 --- /dev/null +++ b/types/activex-msxml2/tsconfig.json @@ -0,0 +1,21 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es5", "scripthost"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "activex-msxml2-tests.ts" + ] +} \ No newline at end of file diff --git a/types/activex-msxml2/tslint.json b/types/activex-msxml2/tslint.json new file mode 100644 index 0000000000..4ac54521fe --- /dev/null +++ b/types/activex-msxml2/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": [false] + } +} \ No newline at end of file diff --git a/types/activex-office/activex-office-tests.ts b/types/activex-office/activex-office-tests.ts new file mode 100644 index 0000000000..69a0563640 --- /dev/null +++ b/types/activex-office/activex-office-tests.ts @@ -0,0 +1,19 @@ +/// + +let app = new ActiveXObject('Word.Application'); +let dlg = app.FileDialog(Office.MsoFileDialogType.msoFileDialogFolderPicker); +dlg.AllowMultiSelect = true; +dlg.Title = 'Select one or more folders'; +dlg.Execute(); +let enumerator = new Enumerator(dlg.SelectedItems); +enumerator.moveFirst(); +while (!enumerator.atEnd()) { + WScript.Echo(enumerator.item); +} + +let enumerator2 = new Enumerator(app.COMAddIns); +enumerator2.moveFirst(); +while (!enumerator2.atEnd()) { + const item = enumerator2.item(); + WScript.Echo(`COM Addin: ${item.Description} -- ${item.ProgId}`); +} diff --git a/types/activex-office/index.d.ts b/types/activex-office/index.d.ts new file mode 100644 index 0000000000..20351b91f9 --- /dev/null +++ b/types/activex-office/index.d.ts @@ -0,0 +1,6865 @@ +// Type definitions for Microsoft Office 14.0 Object Library - Office 14.0 +// Project: https://msdn.microsoft.com/VBA/Office-Shared-VBA/articles/office-vba-object-library-reference +// Definitions by: Zev Spitz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// + +declare namespace Office { + type MsoRGBType = number; + + const enum BackstageGroupStyle { + BackstageGroupStyleError = 2, + BackstageGroupStyleNormal = 0, + BackstageGroupStyleWarning = 1, + } + + const enum CertificateDetail { + certdetAvailable = 0, + certdetExpirationDate = 3, + certdetIssuer = 2, + certdetSubject = 1, + certdetThumbprint = 4, + } + + const enum CertificateVerificationResults { + certverresError = 0, + certverresExpired = 5, + certverresInvalid = 4, + certverresRevoked = 6, + certverresUntrusted = 7, + certverresUnverified = 2, + certverresValid = 3, + certverresVerifying = 1, + } + + const enum ContentVerificationResults { + contverresError = 0, + contverresModified = 4, + contverresUnverified = 2, + contverresValid = 3, + contverresVerifying = 1, + } + + const enum DocProperties { + offPropertyTypeBoolean = 2, + offPropertyTypeDate = 3, + offPropertyTypeFloat = 5, + offPropertyTypeNumber = 1, + offPropertyTypeString = 4, + } + + const enum EncryptionCipherMode { + cipherModeCBC = 1, + cipherModeECB = 0, + } + + const enum EncryptionProviderDetail { + encprovdetAlgorithm = 1, + encprovdetBlockCipher = 2, + encprovdetCipherBlockSize = 3, + encprovdetCipherMode = 4, + encprovdetUrl = 0, + } + + const enum MailFormat { + mfHTML = 2, + mfPlainText = 1, + mfRTF = 3, + } + + const enum MsoAlertButtonType { + msoAlertButtonAbortRetryIgnore = 2, + msoAlertButtonOK = 0, + msoAlertButtonOKCancel = 1, + msoAlertButtonRetryCancel = 5, + msoAlertButtonYesAllNoCancel = 6, + msoAlertButtonYesNo = 4, + msoAlertButtonYesNoCancel = 3, + } + + const enum MsoAlertCancelType { + msoAlertCancelDefault = -1, + msoAlertCancelFifth = 4, + msoAlertCancelFirst = 0, + msoAlertCancelFourth = 3, + msoAlertCancelSecond = 1, + msoAlertCancelThird = 2, + } + + const enum MsoAlertDefaultType { + msoAlertDefaultFifth = 4, + msoAlertDefaultFirst = 0, + msoAlertDefaultFourth = 3, + msoAlertDefaultSecond = 1, + msoAlertDefaultThird = 2, + } + + const enum MsoAlertIconType { + msoAlertIconCritical = 1, + msoAlertIconInfo = 4, + msoAlertIconNoIcon = 0, + msoAlertIconQuery = 2, + msoAlertIconWarning = 3, + } + + const enum MsoAlignCmd { + msoAlignBottoms = 5, + msoAlignCenters = 1, + msoAlignLefts = 0, + msoAlignMiddles = 4, + msoAlignRights = 2, + msoAlignTops = 3, + } + + const enum MsoAnimationType { + msoAnimationAppear = 32, + msoAnimationBeginSpeaking = 4, + msoAnimationCharacterSuccessMajor = 6, + msoAnimationCheckingSomething = 103, + msoAnimationDisappear = 31, + msoAnimationEmptyTrash = 116, + msoAnimationGestureDown = 113, + msoAnimationGestureLeft = 114, + msoAnimationGestureRight = 19, + msoAnimationGestureUp = 115, + msoAnimationGetArtsy = 100, + msoAnimationGetAttentionMajor = 11, + msoAnimationGetAttentionMinor = 12, + msoAnimationGetTechy = 101, + msoAnimationGetWizardy = 102, + msoAnimationGoodbye = 3, + msoAnimationGreeting = 2, + msoAnimationIdle = 1, + msoAnimationListensToComputer = 26, + msoAnimationLookDown = 104, + msoAnimationLookDownLeft = 105, + msoAnimationLookDownRight = 106, + msoAnimationLookLeft = 107, + msoAnimationLookRight = 108, + msoAnimationLookUp = 109, + msoAnimationLookUpLeft = 110, + msoAnimationLookUpRight = 111, + msoAnimationPrinting = 18, + msoAnimationRestPose = 5, + msoAnimationSaving = 112, + msoAnimationSearching = 13, + msoAnimationSendingMail = 25, + msoAnimationThinking = 24, + msoAnimationWorkingAtSomething = 23, + msoAnimationWritingNotingSomething = 22, + } + + const enum MsoAppLanguageID { + msoLanguageIDExeMode = 4, + msoLanguageIDHelp = 3, + msoLanguageIDInstall = 1, + msoLanguageIDUI = 2, + msoLanguageIDUIPrevious = 5, + } + + const enum MsoArrowheadLength { + msoArrowheadLengthMedium = 2, + msoArrowheadLengthMixed = -2, + msoArrowheadLong = 3, + msoArrowheadShort = 1, + } + + const enum MsoArrowheadStyle { + msoArrowheadDiamond = 5, + msoArrowheadNone = 1, + msoArrowheadOpen = 3, + msoArrowheadOval = 6, + msoArrowheadStealth = 4, + msoArrowheadStyleMixed = -2, + msoArrowheadTriangle = 2, + } + + const enum MsoArrowheadWidth { + msoArrowheadNarrow = 1, + msoArrowheadWide = 3, + msoArrowheadWidthMedium = 2, + msoArrowheadWidthMixed = -2, + } + + const enum MsoAutomationSecurity { + msoAutomationSecurityByUI = 2, + msoAutomationSecurityForceDisable = 3, + msoAutomationSecurityLow = 1, + } + + const enum MsoAutoShapeType { + msoShape10pointStar = 149, + msoShape12pointStar = 150, + msoShape16pointStar = 94, + msoShape24pointStar = 95, + msoShape32pointStar = 96, + msoShape4pointStar = 91, + msoShape5pointStar = 92, + msoShape6pointStar = 147, + msoShape7pointStar = 148, + msoShape8pointStar = 93, + msoShapeActionButtonBackorPrevious = 129, + msoShapeActionButtonBeginning = 131, + msoShapeActionButtonCustom = 125, + msoShapeActionButtonDocument = 134, + msoShapeActionButtonEnd = 132, + msoShapeActionButtonForwardorNext = 130, + msoShapeActionButtonHelp = 127, + msoShapeActionButtonHome = 126, + msoShapeActionButtonInformation = 128, + msoShapeActionButtonMovie = 136, + msoShapeActionButtonReturn = 133, + msoShapeActionButtonSound = 135, + msoShapeArc = 25, + msoShapeBalloon = 137, + msoShapeBentArrow = 41, + msoShapeBentUpArrow = 44, + msoShapeBevel = 15, + msoShapeBlockArc = 20, + msoShapeCan = 13, + msoShapeChartPlus = 182, + msoShapeChartStar = 181, + msoShapeChartX = 180, + msoShapeChevron = 52, + msoShapeChord = 161, + msoShapeCircularArrow = 60, + msoShapeCloud = 179, + msoShapeCloudCallout = 108, + msoShapeCorner = 162, + msoShapeCornerTabs = 169, + msoShapeCross = 11, + msoShapeCube = 14, + msoShapeCurvedDownArrow = 48, + msoShapeCurvedDownRibbon = 100, + msoShapeCurvedLeftArrow = 46, + msoShapeCurvedRightArrow = 45, + msoShapeCurvedUpArrow = 47, + msoShapeCurvedUpRibbon = 99, + msoShapeDecagon = 144, + msoShapeDiagonalStripe = 141, + msoShapeDiamond = 4, + msoShapeDodecagon = 146, + msoShapeDonut = 18, + msoShapeDoubleBrace = 27, + msoShapeDoubleBracket = 26, + msoShapeDoubleWave = 104, + msoShapeDownArrow = 36, + msoShapeDownArrowCallout = 56, + msoShapeDownRibbon = 98, + msoShapeExplosion1 = 89, + msoShapeExplosion2 = 90, + msoShapeFlowchartAlternateProcess = 62, + msoShapeFlowchartCard = 75, + msoShapeFlowchartCollate = 79, + msoShapeFlowchartConnector = 73, + msoShapeFlowchartData = 64, + msoShapeFlowchartDecision = 63, + msoShapeFlowchartDelay = 84, + msoShapeFlowchartDirectAccessStorage = 87, + msoShapeFlowchartDisplay = 88, + msoShapeFlowchartDocument = 67, + msoShapeFlowchartExtract = 81, + msoShapeFlowchartInternalStorage = 66, + msoShapeFlowchartMagneticDisk = 86, + msoShapeFlowchartManualInput = 71, + msoShapeFlowchartManualOperation = 72, + msoShapeFlowchartMerge = 82, + msoShapeFlowchartMultidocument = 68, + msoShapeFlowchartOfflineStorage = 139, + msoShapeFlowchartOffpageConnector = 74, + msoShapeFlowchartOr = 78, + msoShapeFlowchartPredefinedProcess = 65, + msoShapeFlowchartPreparation = 70, + msoShapeFlowchartProcess = 61, + msoShapeFlowchartPunchedTape = 76, + msoShapeFlowchartSequentialAccessStorage = 85, + msoShapeFlowchartSort = 80, + msoShapeFlowchartStoredData = 83, + msoShapeFlowchartSummingJunction = 77, + msoShapeFlowchartTerminator = 69, + msoShapeFoldedCorner = 16, + msoShapeFrame = 158, + msoShapeFunnel = 174, + msoShapeGear6 = 172, + msoShapeGear9 = 173, + msoShapeHalfFrame = 159, + msoShapeHeart = 21, + msoShapeHeptagon = 145, + msoShapeHexagon = 10, + msoShapeHorizontalScroll = 102, + msoShapeIsoscelesTriangle = 7, + msoShapeLeftArrow = 34, + msoShapeLeftArrowCallout = 54, + msoShapeLeftBrace = 31, + msoShapeLeftBracket = 29, + msoShapeLeftCircularArrow = 176, + msoShapeLeftRightArrow = 37, + msoShapeLeftRightArrowCallout = 57, + msoShapeLeftRightCircularArrow = 177, + msoShapeLeftRightRibbon = 140, + msoShapeLeftRightUpArrow = 40, + msoShapeLeftUpArrow = 43, + msoShapeLightningBolt = 22, + msoShapeLineCallout1 = 109, + msoShapeLineCallout1AccentBar = 113, + msoShapeLineCallout1BorderandAccentBar = 121, + msoShapeLineCallout1NoBorder = 117, + msoShapeLineCallout2 = 110, + msoShapeLineCallout2AccentBar = 114, + msoShapeLineCallout2BorderandAccentBar = 122, + msoShapeLineCallout2NoBorder = 118, + msoShapeLineCallout3 = 111, + msoShapeLineCallout3AccentBar = 115, + msoShapeLineCallout3BorderandAccentBar = 123, + msoShapeLineCallout3NoBorder = 119, + msoShapeLineCallout4 = 112, + msoShapeLineCallout4AccentBar = 116, + msoShapeLineCallout4BorderandAccentBar = 124, + msoShapeLineCallout4NoBorder = 120, + msoShapeLineInverse = 183, + msoShapeMathDivide = 166, + msoShapeMathEqual = 167, + msoShapeMathMinus = 164, + msoShapeMathMultiply = 165, + msoShapeMathNotEqual = 168, + msoShapeMathPlus = 163, + msoShapeMixed = -2, + msoShapeMoon = 24, + msoShapeNonIsoscelesTrapezoid = 143, + msoShapeNoSymbol = 19, + msoShapeNotchedRightArrow = 50, + msoShapeNotPrimitive = 138, + msoShapeOctagon = 6, + msoShapeOval = 9, + msoShapeOvalCallout = 107, + msoShapeParallelogram = 2, + msoShapePentagon = 51, + msoShapePie = 142, + msoShapePieWedge = 175, + msoShapePlaque = 28, + msoShapePlaqueTabs = 171, + msoShapeQuadArrow = 39, + msoShapeQuadArrowCallout = 59, + msoShapeRectangle = 1, + msoShapeRectangularCallout = 105, + msoShapeRegularPentagon = 12, + msoShapeRightArrow = 33, + msoShapeRightArrowCallout = 53, + msoShapeRightBrace = 32, + msoShapeRightBracket = 30, + msoShapeRightTriangle = 8, + msoShapeRound1Rectangle = 151, + msoShapeRound2DiagRectangle = 153, + msoShapeRound2SameRectangle = 152, + msoShapeRoundedRectangle = 5, + msoShapeRoundedRectangularCallout = 106, + msoShapeSmileyFace = 17, + msoShapeSnip1Rectangle = 155, + msoShapeSnip2DiagRectangle = 157, + msoShapeSnip2SameRectangle = 156, + msoShapeSnipRoundRectangle = 154, + msoShapeSquareTabs = 170, + msoShapeStripedRightArrow = 49, + msoShapeSun = 23, + msoShapeSwooshArrow = 178, + msoShapeTear = 160, + msoShapeTrapezoid = 3, + msoShapeUpArrow = 35, + msoShapeUpArrowCallout = 55, + msoShapeUpDownArrow = 38, + msoShapeUpDownArrowCallout = 58, + msoShapeUpRibbon = 97, + msoShapeUTurnArrow = 42, + msoShapeVerticalScroll = 101, + msoShapeWave = 103, + } + + const enum MsoAutoSize { + msoAutoSizeMixed = -2, + msoAutoSizeNone = 0, + msoAutoSizeShapeToFitText = 1, + msoAutoSizeTextToFitShape = 2, + } + + const enum MsoBackgroundStyleIndex { + msoBackgroundStyleMixed = -2, + msoBackgroundStyleNotAPreset = 0, + msoBackgroundStylePreset1 = 1, + msoBackgroundStylePreset10 = 10, + msoBackgroundStylePreset11 = 11, + msoBackgroundStylePreset12 = 12, + msoBackgroundStylePreset2 = 2, + msoBackgroundStylePreset3 = 3, + msoBackgroundStylePreset4 = 4, + msoBackgroundStylePreset5 = 5, + msoBackgroundStylePreset6 = 6, + msoBackgroundStylePreset7 = 7, + msoBackgroundStylePreset8 = 8, + msoBackgroundStylePreset9 = 9, + } + + const enum MsoBalloonButtonType { + msoBalloonButtonAbort = -8, + msoBalloonButtonBack = -5, + msoBalloonButtonCancel = -2, + msoBalloonButtonClose = -12, + msoBalloonButtonIgnore = -9, + msoBalloonButtonNext = -6, + msoBalloonButtonNo = -4, + msoBalloonButtonNull = 0, + msoBalloonButtonOK = -1, + msoBalloonButtonOptions = -14, + msoBalloonButtonRetry = -7, + msoBalloonButtonSearch = -10, + msoBalloonButtonSnooze = -11, + msoBalloonButtonTips = -13, + msoBalloonButtonYes = -3, + msoBalloonButtonYesToAll = -15, + } + + const enum MsoBalloonErrorType { + msoBalloonErrorBadCharacter = 8, + msoBalloonErrorBadPictureRef = 4, + msoBalloonErrorBadReference = 5, + msoBalloonErrorButtonlessModal = 6, + msoBalloonErrorButtonModeless = 7, + msoBalloonErrorCharNotTopmostForModal = 10, + msoBalloonErrorCOMFailure = 9, + msoBalloonErrorNone = 0, + msoBalloonErrorOther = 1, + msoBalloonErrorOutOfMemory = 3, + msoBalloonErrorTooBig = 2, + msoBalloonErrorTooManyControls = 11, + } + + const enum MsoBalloonType { + msoBalloonTypeBullets = 1, + msoBalloonTypeButtons = 0, + msoBalloonTypeNumbers = 2, + } + + const enum MsoBarPosition { + msoBarBottom = 3, + msoBarFloating = 4, + msoBarLeft = 0, + msoBarMenuBar = 6, + msoBarPopup = 5, + msoBarRight = 2, + msoBarTop = 1, + } + + const enum MsoBarProtection { + msoBarNoChangeDock = 16, + msoBarNoChangeVisible = 8, + msoBarNoCustomize = 1, + msoBarNoHorizontalDock = 64, + msoBarNoMove = 4, + msoBarNoProtection = 0, + msoBarNoResize = 2, + msoBarNoVerticalDock = 32, + } + + const enum MsoBarRow { + msoBarRowFirst = 0, + msoBarRowLast = -1, + } + + const enum MsoBarType { + msoBarTypeMenuBar = 1, + msoBarTypeNormal = 0, + msoBarTypePopup = 2, + } + + const enum MsoBaselineAlignment { + msoBaselineAlignAuto = 5, + msoBaselineAlignBaseline = 1, + msoBaselineAlignCenter = 3, + msoBaselineAlignFarEast50 = 4, + msoBaselineAlignMixed = -2, + msoBaselineAlignTop = 2, + } + + const enum MsoBevelType { + msoBevelAngle = 6, + msoBevelArtDeco = 13, + msoBevelCircle = 3, + msoBevelConvex = 8, + msoBevelCoolSlant = 9, + msoBevelCross = 5, + msoBevelDivot = 10, + msoBevelHardEdge = 12, + msoBevelNone = 1, + msoBevelRelaxedInset = 2, + msoBevelRiblet = 11, + msoBevelSlope = 4, + msoBevelSoftRound = 7, + msoBevelTypeMixed = -2, + } + + const enum MsoBlackWhiteMode { + msoBlackWhiteAutomatic = 1, + msoBlackWhiteBlack = 8, + msoBlackWhiteBlackTextAndLine = 6, + msoBlackWhiteDontShow = 10, + msoBlackWhiteGrayOutline = 5, + msoBlackWhiteGrayScale = 2, + msoBlackWhiteHighContrast = 7, + msoBlackWhiteInverseGrayScale = 4, + msoBlackWhiteLightGrayScale = 3, + msoBlackWhiteMixed = -2, + msoBlackWhiteWhite = 9, + } + + const enum MsoBlogCategorySupport { + msoBlogMultipleCategories = 2, + msoBlogNoCategories = 0, + msoBlogOneCategory = 1, + } + + const enum MsoBlogImageType { + msoblogImageTypeGIF = 2, + msoblogImageTypeJPEG = 1, + msoblogImageTypePNG = 3, + } + + const enum MsoBulletType { + msoBulletMixed = -2, + msoBulletNone = 0, + msoBulletNumbered = 2, + msoBulletPicture = 3, + msoBulletUnnumbered = 1, + } + + const enum MsoButtonSetType { + msoButtonSetAbortRetryIgnore = 10, + msoButtonSetBackClose = 6, + msoButtonSetBackNextClose = 8, + msoButtonSetBackNextSnooze = 12, + msoButtonSetCancel = 2, + msoButtonSetNextClose = 7, + msoButtonSetNone = 0, + msoButtonSetOK = 1, + msoButtonSetOkCancel = 3, + msoButtonSetRetryCancel = 9, + msoButtonSetSearchClose = 11, + msoButtonSetTipsOptionsClose = 13, + msoButtonSetYesAllNoCancel = 14, + msoButtonSetYesNo = 4, + msoButtonSetYesNoCancel = 5, + } + + const enum MsoButtonState { + msoButtonDown = -1, + msoButtonMixed = 2, + msoButtonUp = 0, + } + + const enum MsoButtonStyle { + msoButtonAutomatic = 0, + msoButtonCaption = 2, + msoButtonIcon = 1, + msoButtonIconAndCaption = 3, + msoButtonIconAndCaptionBelow = 11, + msoButtonIconAndWrapCaption = 7, + msoButtonIconAndWrapCaptionBelow = 15, + msoButtonWrapCaption = 14, + } + + const enum MsoButtonStyleHidden { + msoButtonTextBelow = 8, + msoButtonWrapText = 4, + } + + const enum MsoCalloutAngleType { + msoCalloutAngle30 = 2, + msoCalloutAngle45 = 3, + msoCalloutAngle60 = 4, + msoCalloutAngle90 = 5, + msoCalloutAngleAutomatic = 1, + msoCalloutAngleMixed = -2, + } + + const enum MsoCalloutDropType { + msoCalloutDropBottom = 4, + msoCalloutDropCenter = 3, + msoCalloutDropCustom = 1, + msoCalloutDropMixed = -2, + msoCalloutDropTop = 2, + } + + const enum MsoCalloutType { + msoCalloutFour = 4, + msoCalloutMixed = -2, + msoCalloutOne = 1, + msoCalloutThree = 3, + msoCalloutTwo = 2, + } + + const enum MsoCharacterSet { + msoCharacterSetArabic = 1, + msoCharacterSetCyrillic = 2, + msoCharacterSetEnglishWesternEuropeanOtherLatinScript = 3, + msoCharacterSetGreek = 4, + msoCharacterSetHebrew = 5, + msoCharacterSetJapanese = 6, + msoCharacterSetKorean = 7, + msoCharacterSetMultilingualUnicode = 8, + msoCharacterSetSimplifiedChinese = 9, + msoCharacterSetThai = 10, + msoCharacterSetTraditionalChinese = 11, + msoCharacterSetVietnamese = 12, + } + + const enum MsoChartElementType { + msoElementChartFloorNone = 1200, + msoElementChartFloorShow = 1201, + msoElementChartTitleAboveChart = 2, + msoElementChartTitleCenteredOverlay = 1, + msoElementChartTitleNone = 0, + msoElementChartWallNone = 1100, + msoElementChartWallShow = 1101, + msoElementDataLabelBestFit = 210, + msoElementDataLabelBottom = 209, + msoElementDataLabelCenter = 202, + msoElementDataLabelInsideBase = 204, + msoElementDataLabelInsideEnd = 203, + msoElementDataLabelLeft = 206, + msoElementDataLabelNone = 200, + msoElementDataLabelOutSideEnd = 205, + msoElementDataLabelRight = 207, + msoElementDataLabelShow = 201, + msoElementDataLabelTop = 208, + msoElementDataTableNone = 500, + msoElementDataTableShow = 501, + msoElementDataTableWithLegendKeys = 502, + msoElementErrorBarNone = 700, + msoElementErrorBarPercentage = 702, + msoElementErrorBarStandardDeviation = 703, + msoElementErrorBarStandardError = 701, + msoElementLegendBottom = 104, + msoElementLegendLeft = 103, + msoElementLegendLeftOverlay = 106, + msoElementLegendNone = 100, + msoElementLegendRight = 101, + msoElementLegendRightOverlay = 105, + msoElementLegendTop = 102, + msoElementLineDropHiLoLine = 804, + msoElementLineDropLine = 801, + msoElementLineHiLoLine = 802, + msoElementLineNone = 800, + msoElementLineSeriesLine = 803, + msoElementPlotAreaNone = 1000, + msoElementPlotAreaShow = 1001, + msoElementPrimaryCategoryAxisBillions = 374, + msoElementPrimaryCategoryAxisLogScale = 375, + msoElementPrimaryCategoryAxisMillions = 373, + msoElementPrimaryCategoryAxisNone = 348, + msoElementPrimaryCategoryAxisReverse = 351, + msoElementPrimaryCategoryAxisShow = 349, + msoElementPrimaryCategoryAxisThousands = 372, + msoElementPrimaryCategoryAxisTitleAdjacentToAxis = 301, + msoElementPrimaryCategoryAxisTitleBelowAxis = 302, + msoElementPrimaryCategoryAxisTitleHorizontal = 305, + msoElementPrimaryCategoryAxisTitleNone = 300, + msoElementPrimaryCategoryAxisTitleRotated = 303, + msoElementPrimaryCategoryAxisTitleVertical = 304, + msoElementPrimaryCategoryAxisWithoutLabels = 350, + msoElementPrimaryCategoryGridLinesMajor = 334, + msoElementPrimaryCategoryGridLinesMinor = 333, + msoElementPrimaryCategoryGridLinesMinorMajor = 335, + msoElementPrimaryCategoryGridLinesNone = 332, + msoElementPrimaryValueAxisBillions = 356, + msoElementPrimaryValueAxisLogScale = 357, + msoElementPrimaryValueAxisMillions = 355, + msoElementPrimaryValueAxisNone = 352, + msoElementPrimaryValueAxisShow = 353, + msoElementPrimaryValueAxisThousands = 354, + msoElementPrimaryValueAxisTitleAdjacentToAxis = 306, + msoElementPrimaryValueAxisTitleBelowAxis = 308, + msoElementPrimaryValueAxisTitleHorizontal = 311, + msoElementPrimaryValueAxisTitleNone = 306, + msoElementPrimaryValueAxisTitleRotated = 309, + msoElementPrimaryValueAxisTitleVertical = 310, + msoElementPrimaryValueGridLinesMajor = 330, + msoElementPrimaryValueGridLinesMinor = 329, + msoElementPrimaryValueGridLinesMinorMajor = 331, + msoElementPrimaryValueGridLinesNone = 328, + msoElementSecondaryCategoryAxisBillions = 378, + msoElementSecondaryCategoryAxisLogScale = 379, + msoElementSecondaryCategoryAxisMillions = 377, + msoElementSecondaryCategoryAxisNone = 358, + msoElementSecondaryCategoryAxisReverse = 361, + msoElementSecondaryCategoryAxisShow = 359, + msoElementSecondaryCategoryAxisThousands = 376, + msoElementSecondaryCategoryAxisTitleAdjacentToAxis = 313, + msoElementSecondaryCategoryAxisTitleBelowAxis = 314, + msoElementSecondaryCategoryAxisTitleHorizontal = 317, + msoElementSecondaryCategoryAxisTitleNone = 312, + msoElementSecondaryCategoryAxisTitleRotated = 315, + msoElementSecondaryCategoryAxisTitleVertical = 316, + msoElementSecondaryCategoryAxisWithoutLabels = 360, + msoElementSecondaryCategoryGridLinesMajor = 342, + msoElementSecondaryCategoryGridLinesMinor = 341, + msoElementSecondaryCategoryGridLinesMinorMajor = 343, + msoElementSecondaryCategoryGridLinesNone = 340, + msoElementSecondaryValueAxisBillions = 366, + msoElementSecondaryValueAxisLogScale = 367, + msoElementSecondaryValueAxisMillions = 365, + msoElementSecondaryValueAxisNone = 362, + msoElementSecondaryValueAxisShow = 363, + msoElementSecondaryValueAxisThousands = 364, + msoElementSecondaryValueAxisTitleAdjacentToAxis = 319, + msoElementSecondaryValueAxisTitleBelowAxis = 320, + msoElementSecondaryValueAxisTitleHorizontal = 323, + msoElementSecondaryValueAxisTitleNone = 318, + msoElementSecondaryValueAxisTitleRotated = 321, + msoElementSecondaryValueAxisTitleVertical = 322, + msoElementSecondaryValueGridLinesMajor = 338, + msoElementSecondaryValueGridLinesMinor = 337, + msoElementSecondaryValueGridLinesMinorMajor = 339, + msoElementSecondaryValueGridLinesNone = 336, + msoElementSeriesAxisGridLinesMajor = 346, + msoElementSeriesAxisGridLinesMinor = 345, + msoElementSeriesAxisGridLinesMinorMajor = 347, + msoElementSeriesAxisGridLinesNone = 344, + msoElementSeriesAxisNone = 368, + msoElementSeriesAxisReverse = 371, + msoElementSeriesAxisShow = 369, + msoElementSeriesAxisTitleHorizontal = 327, + msoElementSeriesAxisTitleNone = 324, + msoElementSeriesAxisTitleRotated = 325, + msoElementSeriesAxisTitleVertical = 326, + msoElementSeriesAxisWithoutLabeling = 370, + msoElementTrendlineAddExponential = 602, + msoElementTrendlineAddLinear = 601, + msoElementTrendlineAddLinearForecast = 603, + msoElementTrendlineAddTwoPeriodMovingAverage = 604, + msoElementTrendlineNone = 600, + msoElementUpDownBarsNone = 900, + msoElementUpDownBarsShow = 901, + } + + const enum MsoClipboardFormat { + msoClipboardFormatHTML = 2, + msoClipboardFormatMixed = -2, + msoClipboardFormatNative = 1, + msoClipboardFormatPlainText = 4, + msoClipboardFormatRTF = 3, + } + + const enum MsoColorType { + msoColorTypeCMS = 4, + msoColorTypeCMYK = 3, + msoColorTypeInk = 5, + msoColorTypeMixed = -2, + msoColorTypeRGB = 1, + msoColorTypeScheme = 2, + } + + const enum MsoComboStyle { + msoComboLabel = 1, + msoComboNormal = 0, + } + + const enum MsoCommandBarButtonHyperlinkType { + msoCommandBarButtonHyperlinkInsertPicture = 2, + msoCommandBarButtonHyperlinkNone = 0, + msoCommandBarButtonHyperlinkOpen = 1, + } + + const enum MsoCondition { + msoConditionAnyNumberBetween = 34, + msoConditionAnytime = 25, + msoConditionAnytimeBetween = 26, + msoConditionAtLeast = 36, + msoConditionAtMost = 35, + msoConditionBeginsWith = 11, + msoConditionDoesNotEqual = 33, + msoConditionEndsWith = 12, + msoConditionEquals = 32, + msoConditionEqualsCompleted = 66, + msoConditionEqualsDeferred = 68, + msoConditionEqualsHigh = 60, + msoConditionEqualsInProgress = 65, + msoConditionEqualsLow = 58, + msoConditionEqualsNormal = 59, + msoConditionEqualsNotStarted = 64, + msoConditionEqualsWaitingForSomeoneElse = 67, + msoConditionFileTypeAllFiles = 1, + msoConditionFileTypeBinders = 6, + msoConditionFileTypeCalendarItem = 45, + msoConditionFileTypeContactItem = 46, + msoConditionFileTypeDatabases = 7, + msoConditionFileTypeDataConnectionFiles = 51, + msoConditionFileTypeDesignerFiles = 56, + msoConditionFileTypeDocumentImagingFiles = 54, + msoConditionFileTypeExcelWorkbooks = 4, + msoConditionFileTypeJournalItem = 48, + msoConditionFileTypeMailItem = 44, + msoConditionFileTypeNoteItem = 47, + msoConditionFileTypeOfficeFiles = 2, + msoConditionFileTypeOutlookItems = 43, + msoConditionFileTypePhotoDrawFiles = 50, + msoConditionFileTypePowerPointPresentations = 5, + msoConditionFileTypeProjectFiles = 53, + msoConditionFileTypePublisherFiles = 52, + msoConditionFileTypeTaskItem = 49, + msoConditionFileTypeTemplates = 8, + msoConditionFileTypeVisioFiles = 55, + msoConditionFileTypeWebPages = 57, + msoConditionFileTypeWordDocuments = 3, + msoConditionFreeText = 42, + msoConditionIncludes = 9, + msoConditionIncludesFormsOf = 41, + msoConditionIncludesNearEachOther = 13, + msoConditionIncludesPhrase = 10, + msoConditionInTheLast = 31, + msoConditionInTheNext = 30, + msoConditionIsExactly = 14, + msoConditionIsNo = 40, + msoConditionIsNot = 15, + msoConditionIsYes = 39, + msoConditionLastMonth = 22, + msoConditionLastWeek = 19, + msoConditionLessThan = 38, + msoConditionMoreThan = 37, + msoConditionNextMonth = 24, + msoConditionNextWeek = 21, + msoConditionNotEqualToCompleted = 71, + msoConditionNotEqualToDeferred = 73, + msoConditionNotEqualToHigh = 63, + msoConditionNotEqualToInProgress = 70, + msoConditionNotEqualToLow = 61, + msoConditionNotEqualToNormal = 62, + msoConditionNotEqualToNotStarted = 69, + msoConditionNotEqualToWaitingForSomeoneElse = 72, + msoConditionOn = 27, + msoConditionOnOrAfter = 28, + msoConditionOnOrBefore = 29, + msoConditionThisMonth = 23, + msoConditionThisWeek = 20, + msoConditionToday = 17, + msoConditionTomorrow = 18, + msoConditionYesterday = 16, + } + + const enum MsoConnector { + msoConnectorAnd = 1, + msoConnectorOr = 2, + } + + const enum MsoConnectorType { + msoConnectorCurve = 3, + msoConnectorElbow = 2, + msoConnectorStraight = 1, + msoConnectorTypeMixed = -2, + } + + const enum MsoContactCardAddressType { + msoContactCardAddressTypeIM = 3, + msoContactCardAddressTypeOutlook = 1, + msoContactCardAddressTypeSMTP = 2, + msoContactCardAddressTypeUnknown = 0, + } + + const enum MsoContactCardStyle { + msoContactCardFull = 1, + msoContactCardHover = 0, + } + + const enum MsoContactCardType { + msoContactCardTypeEnterpriseContact = 0, + msoContactCardTypeEnterpriseGroup = 3, + msoContactCardTypePersonalContact = 1, + msoContactCardTypePersonalDistributionList = 4, + msoContactCardTypeUnknownContact = 2, + } + + const enum MsoControlOLEUsage { + msoControlOLEUsageBoth = 3, + msoControlOLEUsageClient = 2, + msoControlOLEUsageNeither = 0, + msoControlOLEUsageServer = 1, + } + + const enum MsoControlType { + msoControlActiveX = 22, + msoControlAutoCompleteCombo = 26, + msoControlButton = 1, + msoControlButtonDropdown = 5, + msoControlButtonPopup = 12, + msoControlComboBox = 4, + msoControlCustom = 0, + msoControlDropdown = 3, + msoControlEdit = 2, + msoControlExpandingGrid = 16, + msoControlGauge = 19, + msoControlGenericDropdown = 8, + msoControlGraphicCombo = 20, + msoControlGraphicDropdown = 9, + msoControlGraphicPopup = 11, + msoControlGrid = 18, + msoControlLabel = 15, + msoControlLabelEx = 24, + msoControlOCXDropdown = 7, + msoControlPane = 21, + msoControlPopup = 10, + msoControlSpinner = 23, + msoControlSplitButtonMRUPopup = 14, + msoControlSplitButtonPopup = 13, + msoControlSplitDropdown = 6, + msoControlSplitExpandingGrid = 17, + msoControlWorkPane = 25, + } + + const enum MsoCTPDockPosition { + msoCTPDockPositionBottom = 3, + msoCTPDockPositionFloating = 4, + msoCTPDockPositionLeft = 0, + msoCTPDockPositionRight = 2, + msoCTPDockPositionTop = 1, + } + + const enum MsoCTPDockPositionRestrict { + msoCTPDockPositionRestrictNoChange = 1, + msoCTPDockPositionRestrictNoHorizontal = 2, + msoCTPDockPositionRestrictNone = 0, + msoCTPDockPositionRestrictNoVertical = 3, + } + + const enum MsoCustomXMLNodeType { + msoCustomXMLNodeAttribute = 2, + msoCustomXMLNodeCData = 4, + msoCustomXMLNodeComment = 8, + msoCustomXMLNodeDocument = 9, + msoCustomXMLNodeElement = 1, + msoCustomXMLNodeProcessingInstruction = 7, + msoCustomXMLNodeText = 3, + } + + const enum MsoCustomXMLValidationErrorType { + msoCustomXMLValidationErrorAutomaticallyCleared = 1, + msoCustomXMLValidationErrorManual = 2, + msoCustomXMLValidationErrorSchemaGenerated = 0, + } + + const enum MsoDateTimeFormat { + msoDateTimeddddMMMMddyyyy = 2, + msoDateTimedMMMMyyyy = 3, + msoDateTimedMMMyy = 5, + msoDateTimeFigureOut = 14, + msoDateTimeFormatMixed = -2, + msoDateTimeHmm = 10, + msoDateTimehmmAMPM = 12, + msoDateTimeHmmss = 11, + msoDateTimehmmssAMPM = 13, + msoDateTimeMdyy = 1, + msoDateTimeMMddyyHmm = 8, + msoDateTimeMMddyyhmmAMPM = 9, + msoDateTimeMMMMdyyyy = 4, + msoDateTimeMMMMyy = 6, + msoDateTimeMMyy = 7, + } + + const enum MsoDiagramNodeType { + msoDiagramAssistant = 2, + msoDiagramNode = 1, + } + + const enum MsoDiagramType { + msoDiagramCycle = 2, + msoDiagramMixed = -2, + msoDiagramOrgChart = 1, + msoDiagramPyramid = 4, + msoDiagramRadial = 3, + msoDiagramTarget = 6, + msoDiagramVenn = 5, + } + + const enum MsoDistributeCmd { + msoDistributeHorizontally = 0, + msoDistributeVertically = 1, + } + + const enum MsoDocInspectorStatus { + msoDocInspectorStatusDocOk = 0, + msoDocInspectorStatusError = 2, + msoDocInspectorStatusIssueFound = 1, + } + + const enum MsoDocProperties { + msoPropertyTypeBoolean = 2, + msoPropertyTypeDate = 3, + msoPropertyTypeFloat = 5, + msoPropertyTypeNumber = 1, + msoPropertyTypeString = 4, + } + + const enum MsoEditingType { + msoEditingAuto = 0, + msoEditingCorner = 1, + msoEditingSmooth = 2, + msoEditingSymmetric = 3, + } + + const enum MsoEncoding { + msoEncodingArabic = 1256, + msoEncodingArabicASMO = 708, + msoEncodingArabicAutoDetect = 51256, + msoEncodingArabicTransparentASMO = 720, + msoEncodingAutoDetect = 50001, + msoEncodingBaltic = 1257, + msoEncodingCentralEuropean = 1250, + msoEncodingCyrillic = 1251, + msoEncodingCyrillicAutoDetect = 51251, + msoEncodingEBCDICArabic = 20420, + msoEncodingEBCDICDenmarkNorway = 20277, + msoEncodingEBCDICFinlandSweden = 20278, + msoEncodingEBCDICFrance = 20297, + msoEncodingEBCDICGermany = 20273, + msoEncodingEBCDICGreek = 20423, + msoEncodingEBCDICGreekModern = 875, + msoEncodingEBCDICHebrew = 20424, + msoEncodingEBCDICIcelandic = 20871, + msoEncodingEBCDICInternational = 500, + msoEncodingEBCDICItaly = 20280, + msoEncodingEBCDICJapaneseKatakanaExtended = 20290, + msoEncodingEBCDICJapaneseKatakanaExtendedAndJapanese = 50930, + msoEncodingEBCDICJapaneseLatinExtendedAndJapanese = 50939, + msoEncodingEBCDICKoreanExtended = 20833, + msoEncodingEBCDICKoreanExtendedAndKorean = 50933, + msoEncodingEBCDICLatinAmericaSpain = 20284, + msoEncodingEBCDICMultilingualROECELatin2 = 870, + msoEncodingEBCDICRussian = 20880, + msoEncodingEBCDICSerbianBulgarian = 21025, + msoEncodingEBCDICSimplifiedChineseExtendedAndSimplifiedChinese = 50935, + msoEncodingEBCDICThai = 20838, + msoEncodingEBCDICTurkish = 20905, + msoEncodingEBCDICTurkishLatin5 = 1026, + msoEncodingEBCDICUnitedKingdom = 20285, + msoEncodingEBCDICUSCanada = 37, + msoEncodingEBCDICUSCanadaAndJapanese = 50931, + msoEncodingEBCDICUSCanadaAndTraditionalChinese = 50937, + msoEncodingEUCChineseSimplifiedChinese = 51936, + msoEncodingEUCJapanese = 51932, + msoEncodingEUCKorean = 51949, + msoEncodingEUCTaiwaneseTraditionalChinese = 51950, + msoEncodingEuropa3 = 29001, + msoEncodingExtAlphaLowercase = 21027, + msoEncodingGreek = 1253, + msoEncodingGreekAutoDetect = 51253, + msoEncodingHebrew = 1255, + msoEncodingHZGBSimplifiedChinese = 52936, + msoEncodingIA5German = 20106, + msoEncodingIA5IRV = 20105, + msoEncodingIA5Norwegian = 20108, + msoEncodingIA5Swedish = 20107, + msoEncodingISCIIAssamese = 57006, + msoEncodingISCIIBengali = 57003, + msoEncodingISCIIDevanagari = 57002, + msoEncodingISCIIGujarati = 57010, + msoEncodingISCIIKannada = 57008, + msoEncodingISCIIMalayalam = 57009, + msoEncodingISCIIOriya = 57007, + msoEncodingISCIIPunjabi = 57011, + msoEncodingISCIITamil = 57004, + msoEncodingISCIITelugu = 57005, + msoEncodingISO2022CNSimplifiedChinese = 50229, + msoEncodingISO2022CNTraditionalChinese = 50227, + msoEncodingISO2022JPJISX02011989 = 50222, + msoEncodingISO2022JPJISX02021984 = 50221, + msoEncodingISO2022JPNoHalfwidthKatakana = 50220, + msoEncodingISO2022KR = 50225, + msoEncodingISO6937NonSpacingAccent = 20269, + msoEncodingISO885915Latin9 = 28605, + msoEncodingISO88591Latin1 = 28591, + msoEncodingISO88592CentralEurope = 28592, + msoEncodingISO88593Latin3 = 28593, + msoEncodingISO88594Baltic = 28594, + msoEncodingISO88595Cyrillic = 28595, + msoEncodingISO88596Arabic = 28596, + msoEncodingISO88597Greek = 28597, + msoEncodingISO88598Hebrew = 28598, + msoEncodingISO88598HebrewLogical = 38598, + msoEncodingISO88599Turkish = 28599, + msoEncodingJapaneseAutoDetect = 50932, + msoEncodingJapaneseShiftJIS = 932, + msoEncodingKOI8R = 20866, + msoEncodingKOI8U = 21866, + msoEncodingKorean = 949, + msoEncodingKoreanAutoDetect = 50949, + msoEncodingKoreanJohab = 1361, + msoEncodingMacArabic = 10004, + msoEncodingMacCroatia = 10082, + msoEncodingMacCyrillic = 10007, + msoEncodingMacGreek1 = 10006, + msoEncodingMacHebrew = 10005, + msoEncodingMacIcelandic = 10079, + msoEncodingMacJapanese = 10001, + msoEncodingMacKorean = 10003, + msoEncodingMacLatin2 = 10029, + msoEncodingMacRoman = 10000, + msoEncodingMacRomania = 10010, + msoEncodingMacSimplifiedChineseGB2312 = 10008, + msoEncodingMacTraditionalChineseBig5 = 10002, + msoEncodingMacTurkish = 10081, + msoEncodingMacUkraine = 10017, + msoEncodingOEMArabic = 864, + msoEncodingOEMBaltic = 775, + msoEncodingOEMCanadianFrench = 863, + msoEncodingOEMCyrillic = 855, + msoEncodingOEMCyrillicII = 866, + msoEncodingOEMGreek437G = 737, + msoEncodingOEMHebrew = 862, + msoEncodingOEMIcelandic = 861, + msoEncodingOEMModernGreek = 869, + msoEncodingOEMMultilingualLatinI = 850, + msoEncodingOEMMultilingualLatinII = 852, + msoEncodingOEMNordic = 865, + msoEncodingOEMPortuguese = 860, + msoEncodingOEMTurkish = 857, + msoEncodingOEMUnitedStates = 437, + msoEncodingSimplifiedChineseAutoDetect = 50936, + msoEncodingSimplifiedChineseGB18030 = 54936, + msoEncodingSimplifiedChineseGBK = 936, + msoEncodingT61 = 20261, + msoEncodingTaiwanCNS = 20000, + msoEncodingTaiwanEten = 20002, + msoEncodingTaiwanIBM5550 = 20003, + msoEncodingTaiwanTCA = 20001, + msoEncodingTaiwanTeleText = 20004, + msoEncodingTaiwanWang = 20005, + msoEncodingThai = 874, + msoEncodingTraditionalChineseAutoDetect = 50950, + msoEncodingTraditionalChineseBig5 = 950, + msoEncodingTurkish = 1254, + msoEncodingUnicodeBigEndian = 1201, + msoEncodingUnicodeLittleEndian = 1200, + msoEncodingUSASCII = 20127, + msoEncodingUTF7 = 65000, + msoEncodingUTF8 = 65001, + msoEncodingVietnamese = 1258, + msoEncodingWestern = 1252, + } + + const enum MsoExtraInfoMethod { + msoMethodGet = 0, + msoMethodPost = 1, + } + + const enum MsoExtrusionColorType { + msoExtrusionColorAutomatic = 1, + msoExtrusionColorCustom = 2, + msoExtrusionColorTypeMixed = -2, + } + + const enum MsoFarEastLineBreakLanguageID { + MsoFarEastLineBreakLanguageJapanese = 1041, + MsoFarEastLineBreakLanguageKorean = 1042, + MsoFarEastLineBreakLanguageSimplifiedChinese = 2052, + MsoFarEastLineBreakLanguageTraditionalChinese = 1028, + } + + const enum MsoFeatureInstall { + msoFeatureInstallNone = 0, + msoFeatureInstallOnDemand = 1, + msoFeatureInstallOnDemandWithUI = 2, + } + + const enum MsoFileDialogType { + msoFileDialogFilePicker = 3, + msoFileDialogFolderPicker = 4, + msoFileDialogOpen = 1, + msoFileDialogSaveAs = 2, + } + + const enum MsoFileDialogView { + msoFileDialogViewDetails = 2, + msoFileDialogViewLargeIcons = 6, + msoFileDialogViewList = 1, + msoFileDialogViewPreview = 4, + msoFileDialogViewProperties = 3, + msoFileDialogViewSmallIcons = 7, + msoFileDialogViewThumbnail = 5, + msoFileDialogViewTiles = 9, + msoFileDialogViewWebView = 8, + } + + const enum MsoFileFindListBy { + msoListbyName = 1, + msoListbyTitle = 2, + } + + const enum MsoFileFindOptions { + msoOptionsAdd = 2, + msoOptionsNew = 1, + msoOptionsWithin = 3, + } + + const enum MsoFileFindSortBy { + msoFileFindSortbyAuthor = 1, + msoFileFindSortbyDateCreated = 2, + msoFileFindSortbyDateSaved = 4, + msoFileFindSortbyFileName = 5, + msoFileFindSortbyLastSavedBy = 3, + msoFileFindSortbySize = 6, + msoFileFindSortbyTitle = 7, + } + + const enum MsoFileFindView { + msoViewFileInfo = 1, + msoViewPreview = 2, + msoViewSummaryInfo = 3, + } + + const enum MsoFileNewAction { + msoCreateNewFile = 1, + msoEditFile = 0, + msoOpenFile = 2, + } + + const enum MsoFileNewSection { + msoBottomSection = 4, + msoNew = 1, + msoNewfromExistingFile = 2, + msoNewfromTemplate = 3, + msoOpenDocument = 0, + } + + const enum MsoFileType { + msoFileTypeAllFiles = 1, + msoFileTypeBinders = 6, + msoFileTypeCalendarItem = 11, + msoFileTypeContactItem = 12, + msoFileTypeDatabases = 7, + msoFileTypeDataConnectionFiles = 17, + msoFileTypeDesignerFiles = 22, + msoFileTypeDocumentImagingFiles = 20, + msoFileTypeExcelWorkbooks = 4, + msoFileTypeJournalItem = 14, + msoFileTypeMailItem = 10, + msoFileTypeNoteItem = 13, + msoFileTypeOfficeFiles = 2, + msoFileTypeOutlookItems = 9, + msoFileTypePhotoDrawFiles = 16, + msoFileTypePowerPointPresentations = 5, + msoFileTypeProjectFiles = 19, + msoFileTypePublisherFiles = 18, + msoFileTypeTaskItem = 15, + msoFileTypeTemplates = 8, + msoFileTypeVisioFiles = 21, + msoFileTypeWebPages = 23, + msoFileTypeWordDocuments = 3, + } + + const enum MsoFileValidationMode { + msoFileValidationDefault = 0, + msoFileValidationSkip = 1, + } + + const enum MsoFillType { + msoFillBackground = 5, + msoFillGradient = 3, + msoFillMixed = -2, + msoFillPatterned = 2, + msoFillPicture = 6, + msoFillSolid = 1, + msoFillTextured = 4, + } + + const enum MsoFilterComparison { + msoFilterComparisonContains = 8, + msoFilterComparisonEqual = 0, + msoFilterComparisonGreaterThan = 3, + msoFilterComparisonGreaterThanEqual = 5, + msoFilterComparisonIsBlank = 6, + msoFilterComparisonIsNotBlank = 7, + msoFilterComparisonLessThan = 2, + msoFilterComparisonLessThanEqual = 4, + msoFilterComparisonNotContains = 9, + msoFilterComparisonNotEqual = 1, + } + + const enum MsoFilterConjunction { + msoFilterConjunctionAnd = 0, + msoFilterConjunctionOr = 1, + } + + const enum MsoFlipCmd { + msoFlipHorizontal = 0, + msoFlipVertical = 1, + } + + const enum MsoFontLanguageIndex { + msoThemeComplexScript = 2, + msoThemeEastAsian = 3, + msoThemeLatin = 1, + } + + const enum MsoGradientColorType { + msoGradientColorMixed = -2, + msoGradientMultiColor = 4, + msoGradientOneColor = 1, + msoGradientPresetColors = 3, + msoGradientTwoColors = 2, + } + + const enum MsoGradientStyle { + msoGradientDiagonalDown = 4, + msoGradientDiagonalUp = 3, + msoGradientFromCenter = 7, + msoGradientFromCorner = 5, + msoGradientFromTitle = 6, + msoGradientHorizontal = 1, + msoGradientMixed = -2, + msoGradientVertical = 2, + } + + const enum MsoHorizontalAnchor { + msoAnchorCenter = 2, + msoAnchorNone = 1, + msoHorizontalAnchorMixed = -2, + } + + const enum MsoHTMLProjectOpen { + msoHTMLProjectOpenSourceView = 1, + msoHTMLProjectOpenTextView = 2, + } + + const enum MsoHTMLProjectState { + msoHTMLProjectStateDocumentLocked = 1, + msoHTMLProjectStateDocumentProjectUnlocked = 3, + msoHTMLProjectStateProjectLocked = 2, + } + + const enum MsoHyperlinkType { + msoHyperlinkInlineShape = 2, + msoHyperlinkRange = 0, + msoHyperlinkShape = 1, + } + + const enum MsoIconType { + msoIconAlert = 2, + msoIconAlertCritical = 7, + msoIconAlertInfo = 4, + msoIconAlertQuery = 6, + msoIconAlertWarning = 5, + msoIconNone = 0, + msoIconTip = 3, + } + + const enum MsoIodGroup { + msoIodGroupPIAs = 0, + msoIodGroupVSTOR35Mgd = 1, + msoIodGroupVSTOR40Mgd = 2, + } + + const enum MsoLanguageID { + msoLanguageIDAfrikaans = 1078, + msoLanguageIDAlbanian = 1052, + msoLanguageIDAmharic = 1118, + msoLanguageIDArabic = 1025, + msoLanguageIDArabicAlgeria = 5121, + msoLanguageIDArabicBahrain = 15361, + msoLanguageIDArabicEgypt = 3073, + msoLanguageIDArabicIraq = 2049, + msoLanguageIDArabicJordan = 11265, + msoLanguageIDArabicKuwait = 13313, + msoLanguageIDArabicLebanon = 12289, + msoLanguageIDArabicLibya = 4097, + msoLanguageIDArabicMorocco = 6145, + msoLanguageIDArabicOman = 8193, + msoLanguageIDArabicQatar = 16385, + msoLanguageIDArabicSyria = 10241, + msoLanguageIDArabicTunisia = 7169, + msoLanguageIDArabicUAE = 14337, + msoLanguageIDArabicYemen = 9217, + msoLanguageIDArmenian = 1067, + msoLanguageIDAssamese = 1101, + msoLanguageIDAzeriCyrillic = 2092, + msoLanguageIDAzeriLatin = 1068, + msoLanguageIDBasque = 1069, + msoLanguageIDBelgianDutch = 2067, + msoLanguageIDBelgianFrench = 2060, + msoLanguageIDBengali = 1093, + msoLanguageIDBosnian = 4122, + msoLanguageIDBosnianBosniaHerzegovinaCyrillic = 8218, + msoLanguageIDBosnianBosniaHerzegovinaLatin = 5146, + msoLanguageIDBrazilianPortuguese = 1046, + msoLanguageIDBulgarian = 1026, + msoLanguageIDBurmese = 1109, + msoLanguageIDByelorussian = 1059, + msoLanguageIDCatalan = 1027, + msoLanguageIDCherokee = 1116, + msoLanguageIDChineseHongKongSAR = 3076, + msoLanguageIDChineseMacaoSAR = 5124, + msoLanguageIDChineseSingapore = 4100, + msoLanguageIDCroatian = 1050, + msoLanguageIDCzech = 1029, + msoLanguageIDDanish = 1030, + msoLanguageIDDivehi = 1125, + msoLanguageIDDutch = 1043, + msoLanguageIDDzongkhaBhutan = 2129, + msoLanguageIDEdo = 1126, + msoLanguageIDEnglishAUS = 3081, + msoLanguageIDEnglishBelize = 10249, + msoLanguageIDEnglishCanadian = 4105, + msoLanguageIDEnglishCaribbean = 9225, + msoLanguageIDEnglishIndonesia = 14345, + msoLanguageIDEnglishIreland = 6153, + msoLanguageIDEnglishJamaica = 8201, + msoLanguageIDEnglishNewZealand = 5129, + msoLanguageIDEnglishPhilippines = 13321, + msoLanguageIDEnglishSouthAfrica = 7177, + msoLanguageIDEnglishTrinidadTobago = 11273, + msoLanguageIDEnglishUK = 2057, + msoLanguageIDEnglishUS = 1033, + msoLanguageIDEnglishZimbabwe = 12297, + msoLanguageIDEstonian = 1061, + msoLanguageIDFaeroese = 1080, + msoLanguageIDFarsi = 1065, + msoLanguageIDFilipino = 1124, + msoLanguageIDFinnish = 1035, + msoLanguageIDFrench = 1036, + msoLanguageIDFrenchCameroon = 11276, + msoLanguageIDFrenchCanadian = 3084, + msoLanguageIDFrenchCongoDRC = 9228, + msoLanguageIDFrenchCotedIvoire = 12300, + msoLanguageIDFrenchHaiti = 15372, + msoLanguageIDFrenchLuxembourg = 5132, + msoLanguageIDFrenchMali = 13324, + msoLanguageIDFrenchMonaco = 6156, + msoLanguageIDFrenchMorocco = 14348, + msoLanguageIDFrenchReunion = 8204, + msoLanguageIDFrenchSenegal = 10252, + msoLanguageIDFrenchWestIndies = 7180, + msoLanguageIDFrenchZaire = 9228, + msoLanguageIDFrisianNetherlands = 1122, + msoLanguageIDFulfulde = 1127, + msoLanguageIDGaelicIreland = 2108, + msoLanguageIDGaelicScotland = 1084, + msoLanguageIDGalician = 1110, + msoLanguageIDGeorgian = 1079, + msoLanguageIDGerman = 1031, + msoLanguageIDGermanAustria = 3079, + msoLanguageIDGermanLiechtenstein = 5127, + msoLanguageIDGermanLuxembourg = 4103, + msoLanguageIDGreek = 1032, + msoLanguageIDGuarani = 1140, + msoLanguageIDGujarati = 1095, + msoLanguageIDHausa = 1128, + msoLanguageIDHawaiian = 1141, + msoLanguageIDHebrew = 1037, + msoLanguageIDHindi = 1081, + msoLanguageIDHungarian = 1038, + msoLanguageIDIbibio = 1129, + msoLanguageIDIcelandic = 1039, + msoLanguageIDIgbo = 1136, + msoLanguageIDIndonesian = 1057, + msoLanguageIDInuktitut = 1117, + msoLanguageIDItalian = 1040, + msoLanguageIDJapanese = 1041, + msoLanguageIDKannada = 1099, + msoLanguageIDKanuri = 1137, + msoLanguageIDKashmiri = 1120, + msoLanguageIDKashmiriDevanagari = 2144, + msoLanguageIDKazakh = 1087, + msoLanguageIDKhmer = 1107, + msoLanguageIDKirghiz = 1088, + msoLanguageIDKonkani = 1111, + msoLanguageIDKorean = 1042, + msoLanguageIDKyrgyz = 1088, + msoLanguageIDLao = 1108, + msoLanguageIDLatin = 1142, + msoLanguageIDLatvian = 1062, + msoLanguageIDLithuanian = 1063, + msoLanguageIDMacedonian = 1071, + msoLanguageIDMacedonianFYROM = 1071, + msoLanguageIDMalayalam = 1100, + msoLanguageIDMalayBruneiDarussalam = 2110, + msoLanguageIDMalaysian = 1086, + msoLanguageIDMaltese = 1082, + msoLanguageIDManipuri = 1112, + msoLanguageIDMaori = 1153, + msoLanguageIDMarathi = 1102, + msoLanguageIDMexicanSpanish = 2058, + msoLanguageIDMixed = -2, + msoLanguageIDMongolian = 1104, + msoLanguageIDNepali = 1121, + msoLanguageIDNone = 0, + msoLanguageIDNoProofing = 1024, + msoLanguageIDNorwegianBokmol = 1044, + msoLanguageIDNorwegianNynorsk = 2068, + msoLanguageIDOriya = 1096, + msoLanguageIDOromo = 1138, + msoLanguageIDPashto = 1123, + msoLanguageIDPolish = 1045, + msoLanguageIDPortuguese = 2070, + msoLanguageIDPunjabi = 1094, + msoLanguageIDQuechuaBolivia = 1131, + msoLanguageIDQuechuaEcuador = 2155, + msoLanguageIDQuechuaPeru = 3179, + msoLanguageIDRhaetoRomanic = 1047, + msoLanguageIDRomanian = 1048, + msoLanguageIDRomanianMoldova = 2072, + msoLanguageIDRussian = 1049, + msoLanguageIDRussianMoldova = 2073, + msoLanguageIDSamiLappish = 1083, + msoLanguageIDSanskrit = 1103, + msoLanguageIDSepedi = 1132, + msoLanguageIDSerbianBosniaHerzegovinaCyrillic = 7194, + msoLanguageIDSerbianBosniaHerzegovinaLatin = 6170, + msoLanguageIDSerbianCyrillic = 3098, + msoLanguageIDSerbianLatin = 2074, + msoLanguageIDSesotho = 1072, + msoLanguageIDSimplifiedChinese = 2052, + msoLanguageIDSindhi = 1113, + msoLanguageIDSindhiPakistan = 2137, + msoLanguageIDSinhalese = 1115, + msoLanguageIDSlovak = 1051, + msoLanguageIDSlovenian = 1060, + msoLanguageIDSomali = 1143, + msoLanguageIDSorbian = 1070, + msoLanguageIDSpanish = 1034, + msoLanguageIDSpanishArgentina = 11274, + msoLanguageIDSpanishBolivia = 16394, + msoLanguageIDSpanishChile = 13322, + msoLanguageIDSpanishColombia = 9226, + msoLanguageIDSpanishCostaRica = 5130, + msoLanguageIDSpanishDominicanRepublic = 7178, + msoLanguageIDSpanishEcuador = 12298, + msoLanguageIDSpanishElSalvador = 17418, + msoLanguageIDSpanishGuatemala = 4106, + msoLanguageIDSpanishHonduras = 18442, + msoLanguageIDSpanishModernSort = 3082, + msoLanguageIDSpanishNicaragua = 19466, + msoLanguageIDSpanishPanama = 6154, + msoLanguageIDSpanishParaguay = 15370, + msoLanguageIDSpanishPeru = 10250, + msoLanguageIDSpanishPuertoRico = 20490, + msoLanguageIDSpanishUruguay = 14346, + msoLanguageIDSpanishVenezuela = 8202, + msoLanguageIDSutu = 1072, + msoLanguageIDSwahili = 1089, + msoLanguageIDSwedish = 1053, + msoLanguageIDSwedishFinland = 2077, + msoLanguageIDSwissFrench = 4108, + msoLanguageIDSwissGerman = 2055, + msoLanguageIDSwissItalian = 2064, + msoLanguageIDSyriac = 1114, + msoLanguageIDTajik = 1064, + msoLanguageIDTamazight = 1119, + msoLanguageIDTamazightLatin = 2143, + msoLanguageIDTamil = 1097, + msoLanguageIDTatar = 1092, + msoLanguageIDTelugu = 1098, + msoLanguageIDThai = 1054, + msoLanguageIDTibetan = 1105, + msoLanguageIDTigrignaEritrea = 2163, + msoLanguageIDTigrignaEthiopic = 1139, + msoLanguageIDTraditionalChinese = 1028, + msoLanguageIDTsonga = 1073, + msoLanguageIDTswana = 1074, + msoLanguageIDTurkish = 1055, + msoLanguageIDTurkmen = 1090, + msoLanguageIDUkrainian = 1058, + msoLanguageIDUrdu = 1056, + msoLanguageIDUzbekCyrillic = 2115, + msoLanguageIDUzbekLatin = 1091, + msoLanguageIDVenda = 1075, + msoLanguageIDVietnamese = 1066, + msoLanguageIDWelsh = 1106, + msoLanguageIDXhosa = 1076, + msoLanguageIDYi = 1144, + msoLanguageIDYiddish = 1085, + msoLanguageIDYoruba = 1130, + msoLanguageIDZulu = 1077, + } + + const enum MsoLanguageIDHidden { + msoLanguageIDChineseHongKong = 3076, + msoLanguageIDChineseMacao = 5124, + msoLanguageIDEnglishTrinidad = 11273, + } + + const enum MsoLastModified { + msoLastModifiedAnyTime = 7, + msoLastModifiedLastMonth = 5, + msoLastModifiedLastWeek = 3, + msoLastModifiedThisMonth = 6, + msoLastModifiedThisWeek = 4, + msoLastModifiedToday = 2, + msoLastModifiedYesterday = 1, + } + + const enum MsoLightRigType { + msoLightRigBalanced = 14, + msoLightRigBrightRoom = 27, + msoLightRigChilly = 22, + msoLightRigContrasting = 18, + msoLightRigFlat = 24, + msoLightRigFlood = 17, + msoLightRigFreezing = 23, + msoLightRigGlow = 26, + msoLightRigHarsh = 16, + msoLightRigLegacyFlat1 = 1, + msoLightRigLegacyFlat2 = 2, + msoLightRigLegacyFlat3 = 3, + msoLightRigLegacyFlat4 = 4, + msoLightRigLegacyHarsh1 = 9, + msoLightRigLegacyHarsh2 = 10, + msoLightRigLegacyHarsh3 = 11, + msoLightRigLegacyHarsh4 = 12, + msoLightRigLegacyNormal1 = 5, + msoLightRigLegacyNormal2 = 6, + msoLightRigLegacyNormal3 = 7, + msoLightRigLegacyNormal4 = 8, + msoLightRigMixed = -2, + msoLightRigMorning = 19, + msoLightRigSoft = 15, + msoLightRigSunrise = 20, + msoLightRigSunset = 21, + msoLightRigThreePoint = 13, + msoLightRigTwoPoint = 25, + } + + const enum MsoLineDashStyle { + msoLineDash = 4, + msoLineDashDot = 5, + msoLineDashDotDot = 6, + msoLineDashStyleMixed = -2, + msoLineLongDash = 7, + msoLineLongDashDot = 8, + msoLineLongDashDotDot = 9, + msoLineRoundDot = 3, + msoLineSolid = 1, + msoLineSquareDot = 2, + msoLineSysDash = 10, + msoLineSysDashDot = 12, + msoLineSysDot = 11, + } + + const enum MsoLineStyle { + msoLineSingle = 1, + msoLineStyleMixed = -2, + msoLineThickBetweenThin = 5, + msoLineThickThin = 4, + msoLineThinThick = 3, + msoLineThinThin = 2, + } + + const enum MsoMenuAnimation { + msoMenuAnimationNone = 0, + msoMenuAnimationRandom = 1, + msoMenuAnimationSlide = 3, + msoMenuAnimationUnfold = 2, + } + + const enum MsoMetaPropertyType { + msoMetaPropertyTypeBoolean = 1, + msoMetaPropertyTypeBusinessData = 20, + msoMetaPropertyTypeBusinessDataSecondary = 21, + msoMetaPropertyTypeCalculated = 3, + msoMetaPropertyTypeChoice = 2, + msoMetaPropertyTypeComputed = 4, + msoMetaPropertyTypeCurrency = 5, + msoMetaPropertyTypeDateTime = 6, + msoMetaPropertyTypeFillInChoice = 7, + msoMetaPropertyTypeGuid = 8, + msoMetaPropertyTypeInteger = 9, + msoMetaPropertyTypeLookup = 10, + msoMetaPropertyTypeMax = 22, + msoMetaPropertyTypeMultiChoice = 12, + msoMetaPropertyTypeMultiChoiceFillIn = 13, + msoMetaPropertyTypeMultiChoiceLookup = 11, + msoMetaPropertyTypeNote = 14, + msoMetaPropertyTypeNumber = 15, + msoMetaPropertyTypeText = 16, + msoMetaPropertyTypeUnknown = 0, + msoMetaPropertyTypeUrl = 17, + msoMetaPropertyTypeUser = 18, + msoMetaPropertyTypeUserMulti = 19, + } + + const enum MsoMixedType { + msoIntegerMixed = 32768, + msoSingleMixed = -2147483648, + } + + const enum MsoModeType { + msoModeAutoDown = 1, + msoModeModal = 0, + msoModeModeless = 2, + } + + const enum MsoMoveRow { + msoMoveRowFirst = -4, + msoMoveRowNbr = -1, + msoMoveRowNext = -2, + msoMoveRowPrev = -3, + } + + const enum MsoNumberedBulletStyle { + msoBulletAlphaLCParenBoth = 8, + msoBulletAlphaLCParenRight = 9, + msoBulletAlphaLCPeriod = 0, + msoBulletAlphaUCParenBoth = 10, + msoBulletAlphaUCParenRight = 11, + msoBulletAlphaUCPeriod = 1, + msoBulletArabicAbjadDash = 24, + msoBulletArabicAlphaDash = 23, + msoBulletArabicDBPeriod = 29, + msoBulletArabicDBPlain = 28, + msoBulletArabicParenBoth = 12, + msoBulletArabicParenRight = 2, + msoBulletArabicPeriod = 3, + msoBulletArabicPlain = 13, + msoBulletCircleNumDBPlain = 18, + msoBulletCircleNumWDBlackPlain = 20, + msoBulletCircleNumWDWhitePlain = 19, + msoBulletHebrewAlphaDash = 25, + msoBulletHindiAlpha1Period = 40, + msoBulletHindiAlphaPeriod = 36, + msoBulletHindiNumParenRight = 39, + msoBulletHindiNumPeriod = 37, + msoBulletKanjiKoreanPeriod = 27, + msoBulletKanjiKoreanPlain = 26, + msoBulletKanjiSimpChinDBPeriod = 38, + msoBulletRomanLCParenBoth = 4, + msoBulletRomanLCParenRight = 5, + msoBulletRomanLCPeriod = 6, + msoBulletRomanUCParenBoth = 14, + msoBulletRomanUCParenRight = 15, + msoBulletRomanUCPeriod = 7, + msoBulletSimpChinPeriod = 17, + msoBulletSimpChinPlain = 16, + msoBulletStyleMixed = -2, + msoBulletThaiAlphaParenBoth = 32, + msoBulletThaiAlphaParenRight = 31, + msoBulletThaiAlphaPeriod = 30, + msoBulletThaiNumParenBoth = 35, + msoBulletThaiNumParenRight = 34, + msoBulletThaiNumPeriod = 33, + msoBulletTradChinPeriod = 22, + msoBulletTradChinPlain = 21, + } + + const enum MsoOLEMenuGroup { + msoOLEMenuGroupContainer = 2, + msoOLEMenuGroupEdit = 1, + msoOLEMenuGroupFile = 0, + msoOLEMenuGroupHelp = 5, + msoOLEMenuGroupNone = -1, + msoOLEMenuGroupObject = 3, + msoOLEMenuGroupWindow = 4, + } + + const enum MsoOrgChartLayoutType { + msoOrgChartLayoutBothHanging = 2, + msoOrgChartLayoutDefault = 5, + msoOrgChartLayoutLeftHanging = 3, + msoOrgChartLayoutMixed = -2, + msoOrgChartLayoutRightHanging = 4, + msoOrgChartLayoutStandard = 1, + } + + const enum MsoOrgChartOrientation { + msoOrgChartOrientationMixed = -2, + msoOrgChartOrientationVertical = 1, + } + + const enum MsoOrientation { + msoOrientationHorizontal = 1, + msoOrientationMixed = -2, + msoOrientationVertical = 2, + } + + const enum MsoParagraphAlignment { + msoAlignCenter = 2, + msoAlignDistribute = 5, + msoAlignJustify = 4, + msoAlignJustifyLow = 7, + msoAlignLeft = 1, + msoAlignMixed = -2, + msoAlignRight = 3, + msoAlignThaiDistribute = 6, + } + + const enum MsoPathFormat { + msoPathType1 = 1, + msoPathType2 = 2, + msoPathType3 = 3, + msoPathType4 = 4, + msoPathTypeMixed = -2, + msoPathTypeNone = 0, + } + + const enum MsoPatternType { + msoPattern10Percent = 2, + msoPattern20Percent = 3, + msoPattern25Percent = 4, + msoPattern30Percent = 5, + msoPattern40Percent = 6, + msoPattern50Percent = 7, + msoPattern5Percent = 1, + msoPattern60Percent = 8, + msoPattern70Percent = 9, + msoPattern75Percent = 10, + msoPattern80Percent = 11, + msoPattern90Percent = 12, + msoPatternCross = 51, + msoPatternDarkDownwardDiagonal = 15, + msoPatternDarkHorizontal = 13, + msoPatternDarkUpwardDiagonal = 16, + msoPatternDarkVertical = 14, + msoPatternDashedDownwardDiagonal = 28, + msoPatternDashedHorizontal = 32, + msoPatternDashedUpwardDiagonal = 27, + msoPatternDashedVertical = 31, + msoPatternDiagonalBrick = 40, + msoPatternDiagonalCross = 54, + msoPatternDivot = 46, + msoPatternDottedDiamond = 24, + msoPatternDottedGrid = 45, + msoPatternDownwardDiagonal = 52, + msoPatternHorizontal = 49, + msoPatternHorizontalBrick = 35, + msoPatternLargeCheckerBoard = 36, + msoPatternLargeConfetti = 33, + msoPatternLargeGrid = 34, + msoPatternLightDownwardDiagonal = 21, + msoPatternLightHorizontal = 19, + msoPatternLightUpwardDiagonal = 22, + msoPatternLightVertical = 20, + msoPatternMixed = -2, + msoPatternNarrowHorizontal = 30, + msoPatternNarrowVertical = 29, + msoPatternOutlinedDiamond = 41, + msoPatternPlaid = 42, + msoPatternShingle = 47, + msoPatternSmallCheckerBoard = 17, + msoPatternSmallConfetti = 37, + msoPatternSmallGrid = 23, + msoPatternSolidDiamond = 39, + msoPatternSphere = 43, + msoPatternTrellis = 18, + msoPatternUpwardDiagonal = 53, + msoPatternVertical = 50, + msoPatternWave = 48, + msoPatternWeave = 44, + msoPatternWideDownwardDiagonal = 25, + msoPatternWideUpwardDiagonal = 26, + msoPatternZigZag = 38, + } + + const enum MsoPermission { + msoPermissionAllCommon = 127, + msoPermissionChange = 15, + msoPermissionEdit = 2, + msoPermissionExtract = 8, + msoPermissionFullControl = 64, + msoPermissionObjModel = 32, + msoPermissionPrint = 16, + msoPermissionRead = 1, + msoPermissionSave = 4, + msoPermissionView = 1, + } + + const enum MsoPickerField { + msoPickerFieldDateTime = 1, + msoPickerFieldMax = 5, + msoPickerFieldNumber = 2, + msoPickerFieldText = 3, + msoPickerFieldUnknown = 0, + msoPickerFieldUser = 4, + } + + const enum MsoPictureColorType { + msoPictureAutomatic = 1, + msoPictureBlackAndWhite = 3, + msoPictureGrayscale = 2, + msoPictureMixed = -2, + msoPictureWatermark = 4, + } + + const enum MsoPictureEffectType { + msoEffectBackgroundRemoval = 1, + msoEffectBlur = 2, + msoEffectBrightnessContrast = 3, + msoEffectCement = 4, + msoEffectChalkSketch = 6, + msoEffectColorTemperature = 7, + msoEffectCrisscrossEtching = 5, + msoEffectCutout = 8, + msoEffectFilmGrain = 9, + msoEffectGlass = 10, + msoEffectGlowDiffused = 11, + msoEffectGlowEdges = 12, + msoEffectLightScreen = 13, + msoEffectLineDrawing = 14, + msoEffectMarker = 15, + msoEffectMosiaicBubbles = 16, + msoEffectNone = 0, + msoEffectPaintBrush = 17, + msoEffectPaintStrokes = 18, + msoEffectPastelsSmooth = 19, + msoEffectPencilGrayscale = 20, + msoEffectPencilSketch = 21, + msoEffectPhotocopy = 22, + msoEffectPlasticWrap = 23, + msoEffectSaturation = 24, + msoEffectSharpenSoften = 25, + msoEffectTexturizer = 26, + msoEffectWatercolorSponge = 27, + } + + const enum MsoPresetCamera { + msoCameraIsometricBottomDown = 23, + msoCameraIsometricBottomUp = 22, + msoCameraIsometricLeftDown = 25, + msoCameraIsometricLeftUp = 24, + msoCameraIsometricOffAxis1Left = 28, + msoCameraIsometricOffAxis1Right = 29, + msoCameraIsometricOffAxis1Top = 30, + msoCameraIsometricOffAxis2Left = 31, + msoCameraIsometricOffAxis2Right = 32, + msoCameraIsometricOffAxis2Top = 33, + msoCameraIsometricOffAxis3Bottom = 36, + msoCameraIsometricOffAxis3Left = 34, + msoCameraIsometricOffAxis3Right = 35, + msoCameraIsometricOffAxis4Bottom = 39, + msoCameraIsometricOffAxis4Left = 37, + msoCameraIsometricOffAxis4Right = 38, + msoCameraIsometricRightDown = 27, + msoCameraIsometricRightUp = 26, + msoCameraIsometricTopDown = 21, + msoCameraIsometricTopUp = 20, + msoCameraLegacyObliqueBottom = 8, + msoCameraLegacyObliqueBottomLeft = 7, + msoCameraLegacyObliqueBottomRight = 9, + msoCameraLegacyObliqueFront = 5, + msoCameraLegacyObliqueLeft = 4, + msoCameraLegacyObliqueRight = 6, + msoCameraLegacyObliqueTop = 2, + msoCameraLegacyObliqueTopLeft = 1, + msoCameraLegacyObliqueTopRight = 3, + msoCameraLegacyPerspectiveBottom = 17, + msoCameraLegacyPerspectiveBottomLeft = 16, + msoCameraLegacyPerspectiveBottomRight = 18, + msoCameraLegacyPerspectiveFront = 14, + msoCameraLegacyPerspectiveLeft = 13, + msoCameraLegacyPerspectiveRight = 15, + msoCameraLegacyPerspectiveTop = 11, + msoCameraLegacyPerspectiveTopLeft = 10, + msoCameraLegacyPerspectiveTopRight = 12, + msoCameraObliqueBottom = 46, + msoCameraObliqueBottomLeft = 45, + msoCameraObliqueBottomRight = 47, + msoCameraObliqueLeft = 43, + msoCameraObliqueRight = 44, + msoCameraObliqueTop = 41, + msoCameraObliqueTopLeft = 40, + msoCameraObliqueTopRight = 42, + msoCameraOrthographicFront = 19, + msoCameraPerspectiveAbove = 51, + msoCameraPerspectiveAboveLeftFacing = 53, + msoCameraPerspectiveAboveRightFacing = 54, + msoCameraPerspectiveBelow = 52, + msoCameraPerspectiveContrastingLeftFacing = 55, + msoCameraPerspectiveContrastingRightFacing = 56, + msoCameraPerspectiveFront = 48, + msoCameraPerspectiveHeroicExtremeLeftFacing = 59, + msoCameraPerspectiveHeroicExtremeRightFacing = 60, + msoCameraPerspectiveHeroicLeftFacing = 57, + msoCameraPerspectiveHeroicRightFacing = 58, + msoCameraPerspectiveLeft = 49, + msoCameraPerspectiveRelaxed = 61, + msoCameraPerspectiveRelaxedModerately = 62, + msoCameraPerspectiveRight = 50, + msoPresetCameraMixed = -2, + } + + const enum MsoPresetExtrusionDirection { + msoExtrusionBottom = 2, + msoExtrusionBottomLeft = 3, + msoExtrusionBottomRight = 1, + msoExtrusionLeft = 6, + msoExtrusionNone = 5, + msoExtrusionRight = 4, + msoExtrusionTop = 8, + msoExtrusionTopLeft = 9, + msoExtrusionTopRight = 7, + msoPresetExtrusionDirectionMixed = -2, + } + + const enum MsoPresetGradientType { + msoGradientBrass = 20, + msoGradientCalmWater = 8, + msoGradientChrome = 21, + msoGradientChromeII = 22, + msoGradientDaybreak = 4, + msoGradientDesert = 6, + msoGradientEarlySunset = 1, + msoGradientFire = 9, + msoGradientFog = 10, + msoGradientGold = 18, + msoGradientGoldII = 19, + msoGradientHorizon = 5, + msoGradientLateSunset = 2, + msoGradientMahogany = 15, + msoGradientMoss = 11, + msoGradientNightfall = 3, + msoGradientOcean = 7, + msoGradientParchment = 14, + msoGradientPeacock = 12, + msoGradientRainbow = 16, + msoGradientRainbowII = 17, + msoGradientSapphire = 24, + msoGradientSilver = 23, + msoGradientWheat = 13, + msoPresetGradientMixed = -2, + } + + const enum MsoPresetLightingDirection { + msoLightingBottom = 8, + msoLightingBottomLeft = 7, + msoLightingBottomRight = 9, + msoLightingLeft = 4, + msoLightingNone = 5, + msoLightingRight = 6, + msoLightingTop = 2, + msoLightingTopLeft = 1, + msoLightingTopRight = 3, + msoPresetLightingDirectionMixed = -2, + } + + const enum MsoPresetLightingSoftness { + msoLightingBright = 3, + msoLightingDim = 1, + msoLightingNormal = 2, + msoPresetLightingSoftnessMixed = -2, + } + + const enum MsoPresetMaterial { + msoMaterialClear = 13, + msoMaterialDarkEdge = 11, + msoMaterialFlat = 14, + msoMaterialMatte = 1, + msoMaterialMatte2 = 5, + msoMaterialMetal = 3, + msoMaterialMetal2 = 7, + msoMaterialPlastic = 2, + msoMaterialPlastic2 = 6, + msoMaterialPowder = 10, + msoMaterialSoftEdge = 12, + msoMaterialSoftMetal = 15, + msoMaterialTranslucentPowder = 9, + msoMaterialWarmMatte = 8, + msoMaterialWireFrame = 4, + msoPresetMaterialMixed = -2, + } + + const enum MsoPresetTextEffect { + msoTextEffect1 = 0, + msoTextEffect10 = 9, + msoTextEffect11 = 10, + msoTextEffect12 = 11, + msoTextEffect13 = 12, + msoTextEffect14 = 13, + msoTextEffect15 = 14, + msoTextEffect16 = 15, + msoTextEffect17 = 16, + msoTextEffect18 = 17, + msoTextEffect19 = 18, + msoTextEffect2 = 1, + msoTextEffect20 = 19, + msoTextEffect21 = 20, + msoTextEffect22 = 21, + msoTextEffect23 = 22, + msoTextEffect24 = 23, + msoTextEffect25 = 24, + msoTextEffect26 = 25, + msoTextEffect27 = 26, + msoTextEffect28 = 27, + msoTextEffect29 = 28, + msoTextEffect3 = 2, + msoTextEffect30 = 29, + msoTextEffect4 = 3, + msoTextEffect5 = 4, + msoTextEffect6 = 5, + msoTextEffect7 = 6, + msoTextEffect8 = 7, + msoTextEffect9 = 8, + msoTextEffectMixed = -2, + } + + const enum MsoPresetTextEffectShape { + msoTextEffectShapeArchDownCurve = 10, + msoTextEffectShapeArchDownPour = 14, + msoTextEffectShapeArchUpCurve = 9, + msoTextEffectShapeArchUpPour = 13, + msoTextEffectShapeButtonCurve = 12, + msoTextEffectShapeButtonPour = 16, + msoTextEffectShapeCanDown = 20, + msoTextEffectShapeCanUp = 19, + msoTextEffectShapeCascadeDown = 40, + msoTextEffectShapeCascadeUp = 39, + msoTextEffectShapeChevronDown = 6, + msoTextEffectShapeChevronUp = 5, + msoTextEffectShapeCircleCurve = 11, + msoTextEffectShapeCirclePour = 15, + msoTextEffectShapeCurveDown = 18, + msoTextEffectShapeCurveUp = 17, + msoTextEffectShapeDeflate = 26, + msoTextEffectShapeDeflateBottom = 28, + msoTextEffectShapeDeflateInflate = 31, + msoTextEffectShapeDeflateInflateDeflate = 32, + msoTextEffectShapeDeflateTop = 30, + msoTextEffectShapeDoubleWave1 = 23, + msoTextEffectShapeDoubleWave2 = 24, + msoTextEffectShapeFadeDown = 36, + msoTextEffectShapeFadeLeft = 34, + msoTextEffectShapeFadeRight = 33, + msoTextEffectShapeFadeUp = 35, + msoTextEffectShapeInflate = 25, + msoTextEffectShapeInflateBottom = 27, + msoTextEffectShapeInflateTop = 29, + msoTextEffectShapeMixed = -2, + msoTextEffectShapePlainText = 1, + msoTextEffectShapeRingInside = 7, + msoTextEffectShapeRingOutside = 8, + msoTextEffectShapeSlantDown = 38, + msoTextEffectShapeSlantUp = 37, + msoTextEffectShapeStop = 2, + msoTextEffectShapeTriangleDown = 4, + msoTextEffectShapeTriangleUp = 3, + msoTextEffectShapeWave1 = 21, + msoTextEffectShapeWave2 = 22, + } + + const enum MsoPresetTexture { + msoPresetTextureMixed = -2, + msoTextureBlueTissuePaper = 17, + msoTextureBouquet = 20, + msoTextureBrownMarble = 11, + msoTextureCanvas = 2, + msoTextureCork = 21, + msoTextureDenim = 3, + msoTextureFishFossil = 7, + msoTextureGranite = 12, + msoTextureGreenMarble = 9, + msoTextureMediumWood = 24, + msoTextureNewsprint = 13, + msoTextureOak = 23, + msoTexturePaperBag = 6, + msoTexturePapyrus = 1, + msoTextureParchment = 15, + msoTexturePinkTissuePaper = 18, + msoTexturePurpleMesh = 19, + msoTextureRecycledPaper = 14, + msoTextureSand = 8, + msoTextureStationery = 16, + msoTextureWalnut = 22, + msoTextureWaterDroplets = 5, + msoTextureWhiteMarble = 10, + msoTextureWovenMat = 4, + } + + const enum MsoPresetThreeDFormat { + msoPresetThreeDFormatMixed = -2, + msoThreeD1 = 1, + msoThreeD10 = 10, + msoThreeD11 = 11, + msoThreeD12 = 12, + msoThreeD13 = 13, + msoThreeD14 = 14, + msoThreeD15 = 15, + msoThreeD16 = 16, + msoThreeD17 = 17, + msoThreeD18 = 18, + msoThreeD19 = 19, + msoThreeD2 = 2, + msoThreeD20 = 20, + msoThreeD3 = 3, + msoThreeD4 = 4, + msoThreeD5 = 5, + msoThreeD6 = 6, + msoThreeD7 = 7, + msoThreeD8 = 8, + msoThreeD9 = 9, + } + + const enum MsoReflectionType { + msoReflectionType1 = 1, + msoReflectionType2 = 2, + msoReflectionType3 = 3, + msoReflectionType4 = 4, + msoReflectionType5 = 5, + msoReflectionType6 = 6, + msoReflectionType7 = 7, + msoReflectionType8 = 8, + msoReflectionType9 = 9, + msoReflectionTypeMixed = -2, + msoReflectionTypeNone = 0, + } + + const enum MsoRelativeNodePosition { + msoAfterLastSibling = 4, + msoAfterNode = 2, + msoBeforeFirstSibling = 3, + msoBeforeNode = 1, + } + + const enum MsoScaleFrom { + msoScaleFromBottomRight = 2, + msoScaleFromMiddle = 1, + msoScaleFromTopLeft = 0, + } + + const enum MsoScreenSize { + msoScreenSize1024x768 = 4, + msoScreenSize1152x882 = 5, + msoScreenSize1152x900 = 6, + msoScreenSize1280x1024 = 7, + msoScreenSize1600x1200 = 8, + msoScreenSize1800x1440 = 9, + msoScreenSize1920x1200 = 10, + msoScreenSize544x376 = 0, + msoScreenSize640x480 = 1, + msoScreenSize720x512 = 2, + msoScreenSize800x600 = 3, + } + + const enum MsoScriptLanguage { + msoScriptLanguageASP = 3, + msoScriptLanguageJava = 1, + msoScriptLanguageOther = 4, + msoScriptLanguageVisualBasic = 2, + } + + const enum MsoScriptLocation { + msoScriptLocationInBody = 2, + msoScriptLocationInHead = 1, + } + + const enum MsoSearchIn { + msoSearchInCustom = 3, + msoSearchInMyComputer = 0, + msoSearchInMyNetworkPlaces = 2, + msoSearchInOutlook = 1, + } + + const enum MsoSegmentType { + msoSegmentCurve = 1, + msoSegmentLine = 0, + } + + const enum MsoShadowStyle { + msoShadowStyleInnerShadow = 1, + msoShadowStyleMixed = -2, + msoShadowStyleOuterShadow = 2, + } + + const enum MsoShadowType { + msoShadow1 = 1, + msoShadow10 = 10, + msoShadow11 = 11, + msoShadow12 = 12, + msoShadow13 = 13, + msoShadow14 = 14, + msoShadow15 = 15, + msoShadow16 = 16, + msoShadow17 = 17, + msoShadow18 = 18, + msoShadow19 = 19, + msoShadow2 = 2, + msoShadow20 = 20, + msoShadow21 = 21, + msoShadow22 = 22, + msoShadow23 = 23, + msoShadow24 = 24, + msoShadow25 = 25, + msoShadow26 = 26, + msoShadow27 = 27, + msoShadow28 = 28, + msoShadow29 = 29, + msoShadow3 = 3, + msoShadow30 = 30, + msoShadow31 = 31, + msoShadow32 = 32, + msoShadow33 = 33, + msoShadow34 = 34, + msoShadow35 = 35, + msoShadow36 = 36, + msoShadow37 = 37, + msoShadow38 = 38, + msoShadow39 = 39, + msoShadow4 = 4, + msoShadow40 = 40, + msoShadow41 = 41, + msoShadow42 = 42, + msoShadow43 = 43, + msoShadow5 = 5, + msoShadow6 = 6, + msoShadow7 = 7, + msoShadow8 = 8, + msoShadow9 = 9, + msoShadowMixed = -2, + } + + const enum MsoShapeStyleIndex { + msoLineStylePreset1 = 10001, + msoLineStylePreset10 = 10010, + msoLineStylePreset11 = 10011, + msoLineStylePreset12 = 10012, + msoLineStylePreset13 = 10013, + msoLineStylePreset14 = 10014, + msoLineStylePreset15 = 10015, + msoLineStylePreset16 = 10016, + msoLineStylePreset17 = 10017, + msoLineStylePreset18 = 10018, + msoLineStylePreset19 = 10019, + msoLineStylePreset2 = 10002, + msoLineStylePreset20 = 10020, + msoLineStylePreset21 = 10021, + msoLineStylePreset3 = 10003, + msoLineStylePreset4 = 10004, + msoLineStylePreset5 = 10005, + msoLineStylePreset6 = 10006, + msoLineStylePreset7 = 10007, + msoLineStylePreset8 = 10008, + msoLineStylePreset9 = 10009, + msoShapeStyleMixed = -2, + msoShapeStyleNotAPreset = 0, + msoShapeStylePreset1 = 1, + msoShapeStylePreset10 = 10, + msoShapeStylePreset11 = 11, + msoShapeStylePreset12 = 12, + msoShapeStylePreset13 = 13, + msoShapeStylePreset14 = 14, + msoShapeStylePreset15 = 15, + msoShapeStylePreset16 = 16, + msoShapeStylePreset17 = 17, + msoShapeStylePreset18 = 18, + msoShapeStylePreset19 = 19, + msoShapeStylePreset2 = 2, + msoShapeStylePreset20 = 20, + msoShapeStylePreset21 = 21, + msoShapeStylePreset22 = 22, + msoShapeStylePreset23 = 23, + msoShapeStylePreset24 = 24, + msoShapeStylePreset25 = 25, + msoShapeStylePreset26 = 26, + msoShapeStylePreset27 = 27, + msoShapeStylePreset28 = 28, + msoShapeStylePreset29 = 29, + msoShapeStylePreset3 = 3, + msoShapeStylePreset30 = 30, + msoShapeStylePreset31 = 31, + msoShapeStylePreset32 = 32, + msoShapeStylePreset33 = 33, + msoShapeStylePreset34 = 34, + msoShapeStylePreset35 = 35, + msoShapeStylePreset36 = 36, + msoShapeStylePreset37 = 37, + msoShapeStylePreset38 = 38, + msoShapeStylePreset39 = 39, + msoShapeStylePreset4 = 4, + msoShapeStylePreset40 = 40, + msoShapeStylePreset41 = 41, + msoShapeStylePreset42 = 42, + msoShapeStylePreset5 = 5, + msoShapeStylePreset6 = 6, + msoShapeStylePreset7 = 7, + msoShapeStylePreset8 = 8, + msoShapeStylePreset9 = 9, + } + + const enum MsoShapeType { + msoAutoShape = 1, + msoCallout = 2, + msoCanvas = 20, + msoChart = 3, + msoComment = 4, + msoDiagram = 21, + msoEmbeddedOLEObject = 7, + msoFormControl = 8, + msoFreeform = 5, + msoGroup = 6, + msoInk = 22, + msoInkComment = 23, + msoLine = 9, + msoLinkedOLEObject = 10, + msoLinkedPicture = 11, + msoMedia = 16, + msoOLEControlObject = 12, + msoPicture = 13, + msoPlaceholder = 14, + msoScriptAnchor = 18, + msoShapeTypeMixed = -2, + msoSlicer = 25, + msoSmartArt = 24, + msoTable = 19, + msoTextBox = 17, + msoTextEffect = 15, + } + + const enum MsoSharedWorkspaceTaskPriority { + msoSharedWorkspaceTaskPriorityHigh = 1, + msoSharedWorkspaceTaskPriorityLow = 3, + msoSharedWorkspaceTaskPriorityNormal = 2, + } + + const enum MsoSharedWorkspaceTaskStatus { + msoSharedWorkspaceTaskStatusCompleted = 3, + msoSharedWorkspaceTaskStatusDeferred = 4, + msoSharedWorkspaceTaskStatusInProgress = 2, + msoSharedWorkspaceTaskStatusNotStarted = 1, + msoSharedWorkspaceTaskStatusWaiting = 5, + } + + const enum MsoSignatureSubset { + msoSignatureSubsetAll = 5, + msoSignatureSubsetSignatureLines = 2, + msoSignatureSubsetSignatureLinesSigned = 3, + msoSignatureSubsetSignatureLinesUnsigned = 4, + msoSignatureSubsetSignaturesAllSigs = 0, + msoSignatureSubsetSignaturesNonVisible = 1, + } + + const enum MsoSmartArtNodePosition { + msoSmartArtNodeAbove = 4, + msoSmartArtNodeAfter = 2, + msoSmartArtNodeBefore = 3, + msoSmartArtNodeBelow = 5, + msoSmartArtNodeDefault = 1, + } + + const enum MsoSmartArtNodeType { + msoSmartArtNodeTypeAssistant = 2, + msoSmartArtNodeTypeDefault = 1, + } + + const enum MsoSoftEdgeType { + msoSoftEdgeType1 = 1, + msoSoftEdgeType2 = 2, + msoSoftEdgeType3 = 3, + msoSoftEdgeType4 = 4, + msoSoftEdgeType5 = 5, + msoSoftEdgeType6 = 6, + msoSoftEdgeTypeMixed = -2, + msoSoftEdgeTypeNone = 0, + } + + const enum MsoSortBy { + msoSortByFileName = 1, + msoSortByFileType = 3, + msoSortByLastModified = 4, + msoSortByNone = 5, + msoSortBySize = 2, + } + + const enum MsoSortOrder { + msoSortOrderAscending = 1, + msoSortOrderDescending = 2, + } + + const enum MsoSyncAvailableType { + msoSyncAvailableAnywhere = 2, + msoSyncAvailableNone = 0, + msoSyncAvailableOffline = 1, + } + + const enum MsoSyncCompareType { + msoSyncCompareAndMerge = 0, + msoSyncCompareSideBySide = 1, + } + + const enum MsoSyncConflictResolutionType { + msoSyncConflictClientWins = 0, + msoSyncConflictMerge = 2, + msoSyncConflictServerWins = 1, + } + + const enum MsoSyncErrorType { + msoSyncErrorCouldNotCompare = 13, + msoSyncErrorCouldNotConnect = 2, + msoSyncErrorCouldNotOpen = 11, + msoSyncErrorCouldNotResolve = 14, + msoSyncErrorCouldNotUpdate = 12, + msoSyncErrorFileInUse = 6, + msoSyncErrorFileNotFound = 4, + msoSyncErrorFileTooLarge = 5, + msoSyncErrorNone = 0, + msoSyncErrorNoNetwork = 15, + msoSyncErrorOutOfSpace = 3, + msoSyncErrorUnauthorizedUser = 1, + msoSyncErrorUnknown = 16, + msoSyncErrorUnknownDownload = 10, + msoSyncErrorUnknownUpload = 9, + msoSyncErrorVirusDownload = 8, + msoSyncErrorVirusUpload = 7, + } + + const enum MsoSyncEventType { + msoSyncEventDownloadFailed = 2, + msoSyncEventDownloadInitiated = 0, + msoSyncEventDownloadNoChange = 6, + msoSyncEventDownloadSucceeded = 1, + msoSyncEventOffline = 7, + msoSyncEventUploadFailed = 5, + msoSyncEventUploadInitiated = 3, + msoSyncEventUploadSucceeded = 4, + } + + const enum MsoSyncStatusType { + msoSyncStatusConflict = 4, + msoSyncStatusError = 6, + msoSyncStatusLatest = 1, + msoSyncStatusLocalChanges = 3, + msoSyncStatusNewerAvailable = 2, + msoSyncStatusNoSharedWorkspace = 0, + msoSyncStatusNotRoaming = 0, + msoSyncStatusSuspended = 5, + } + + const enum MsoSyncVersionType { + msoSyncVersionLastViewed = 0, + msoSyncVersionServer = 1, + } + + const enum MsoTabStopType { + msoTabStopCenter = 2, + msoTabStopDecimal = 4, + msoTabStopLeft = 1, + msoTabStopMixed = -2, + msoTabStopRight = 3, + } + + const enum MsoTargetBrowser { + msoTargetBrowserIE4 = 2, + msoTargetBrowserIE5 = 3, + msoTargetBrowserIE6 = 4, + msoTargetBrowserV3 = 0, + msoTargetBrowserV4 = 1, + } + + const enum MsoTextCaps { + msoAllCaps = 2, + msoCapsMixed = -2, + msoNoCaps = 0, + msoSmallCaps = 1, + } + + const enum MsoTextChangeCase { + msoCaseLower = 2, + msoCaseSentence = 1, + msoCaseTitle = 4, + msoCaseToggle = 5, + msoCaseUpper = 3, + } + + const enum MsoTextCharWrap { + msoCharWrapMixed = -2, + msoCustomCharWrap = 3, + msoNoCharWrap = 0, + msoStandardCharWrap = 1, + msoStrictCharWrap = 2, + } + + const enum MsoTextDirection { + msoTextDirectionLeftToRight = 1, + msoTextDirectionMixed = -2, + msoTextDirectionRightToLeft = 2, + } + + const enum MsoTextEffectAlignment { + msoTextEffectAlignmentCentered = 2, + msoTextEffectAlignmentLeft = 1, + msoTextEffectAlignmentLetterJustify = 4, + msoTextEffectAlignmentMixed = -2, + msoTextEffectAlignmentRight = 3, + msoTextEffectAlignmentStretchJustify = 6, + msoTextEffectAlignmentWordJustify = 5, + } + + const enum MsoTextFontAlign { + msoFontAlignAuto = 0, + msoFontAlignBaseline = 3, + msoFontAlignBottom = 4, + msoFontAlignCenter = 2, + msoFontAlignMixed = -2, + msoFontAlignTop = 1, + } + + const enum MsoTextOrientation { + msoTextOrientationDownward = 3, + msoTextOrientationHorizontal = 1, + msoTextOrientationHorizontalRotatedFarEast = 6, + msoTextOrientationMixed = -2, + msoTextOrientationUpward = 2, + msoTextOrientationVertical = 5, + msoTextOrientationVerticalFarEast = 4, + } + + const enum MsoTextStrike { + msoDoubleStrike = 2, + msoNoStrike = 0, + msoSingleStrike = 1, + msoStrikeMixed = -2, + } + + const enum MsoTextTabAlign { + msoTabAlignCenter = 1, + msoTabAlignDecimal = 3, + msoTabAlignLeft = 0, + msoTabAlignMixed = -2, + msoTabAlignRight = 2, + } + + const enum MsoTextUnderlineType { + msoNoUnderline = 0, + msoUnderlineDashHeavyLine = 8, + msoUnderlineDashLine = 7, + msoUnderlineDashLongHeavyLine = 10, + msoUnderlineDashLongLine = 9, + msoUnderlineDotDashHeavyLine = 12, + msoUnderlineDotDashLine = 11, + msoUnderlineDotDotDashHeavyLine = 14, + msoUnderlineDotDotDashLine = 13, + msoUnderlineDottedHeavyLine = 6, + msoUnderlineDottedLine = 5, + msoUnderlineDoubleLine = 3, + msoUnderlineHeavyLine = 4, + msoUnderlineMixed = -2, + msoUnderlineSingleLine = 2, + msoUnderlineWavyDoubleLine = 17, + msoUnderlineWavyHeavyLine = 16, + msoUnderlineWavyLine = 15, + msoUnderlineWords = 1, + } + + const enum MsoTextureAlignment { + msoTextureAlignmentMixed = -2, + msoTextureBottom = 7, + msoTextureBottomLeft = 6, + msoTextureBottomRight = 8, + msoTextureCenter = 4, + msoTextureLeft = 3, + msoTextureRight = 5, + msoTextureTop = 1, + msoTextureTopLeft = 0, + msoTextureTopRight = 2, + } + + const enum MsoTextureType { + msoTexturePreset = 1, + msoTextureTypeMixed = -2, + msoTextureUserDefined = 2, + } + + const enum MsoThemeColorIndex { + msoNotThemeColor = 0, + msoThemeColorAccent1 = 5, + msoThemeColorAccent2 = 6, + msoThemeColorAccent3 = 7, + msoThemeColorAccent4 = 8, + msoThemeColorAccent5 = 9, + msoThemeColorAccent6 = 10, + msoThemeColorBackground1 = 14, + msoThemeColorBackground2 = 16, + msoThemeColorDark1 = 1, + msoThemeColorDark2 = 3, + msoThemeColorFollowedHyperlink = 12, + msoThemeColorHyperlink = 11, + msoThemeColorLight1 = 2, + msoThemeColorLight2 = 4, + msoThemeColorMixed = -2, + msoThemeColorText1 = 13, + msoThemeColorText2 = 15, + } + + const enum MsoThemeColorSchemeIndex { + msoThemeAccent1 = 5, + msoThemeAccent2 = 6, + msoThemeAccent3 = 7, + msoThemeAccent4 = 8, + msoThemeAccent5 = 9, + msoThemeAccent6 = 10, + msoThemeDark1 = 1, + msoThemeDark2 = 3, + msoThemeFollowedHyperlink = 12, + msoThemeHyperlink = 11, + msoThemeLight1 = 2, + msoThemeLight2 = 4, + } + + const enum MsoTriState { + msoCTrue = 1, + msoFalse = 0, + msoTriStateMixed = -2, + msoTriStateToggle = -3, + msoTrue = -1, + } + + const enum MsoVerticalAnchor { + msoAnchorBottom = 4, + msoAnchorBottomBaseLine = 5, + msoAnchorMiddle = 3, + msoAnchorTop = 1, + msoAnchorTopBaseline = 2, + msoVerticalAnchorMixed = -2, + } + + const enum MsoWarpFormat { + msoWarpFormat1 = 0, + msoWarpFormat10 = 9, + msoWarpFormat11 = 10, + msoWarpFormat12 = 11, + msoWarpFormat13 = 12, + msoWarpFormat14 = 13, + msoWarpFormat15 = 14, + msoWarpFormat16 = 15, + msoWarpFormat17 = 16, + msoWarpFormat18 = 17, + msoWarpFormat19 = 18, + msoWarpFormat2 = 1, + msoWarpFormat20 = 19, + msoWarpFormat21 = 20, + msoWarpFormat22 = 21, + msoWarpFormat23 = 22, + msoWarpFormat24 = 23, + msoWarpFormat25 = 24, + msoWarpFormat26 = 25, + msoWarpFormat27 = 26, + msoWarpFormat28 = 27, + msoWarpFormat29 = 28, + msoWarpFormat3 = 2, + msoWarpFormat30 = 29, + msoWarpFormat31 = 30, + msoWarpFormat32 = 31, + msoWarpFormat33 = 32, + msoWarpFormat34 = 33, + msoWarpFormat35 = 34, + msoWarpFormat36 = 35, + msoWarpFormat37 = 36, + msoWarpFormat4 = 3, + msoWarpFormat5 = 4, + msoWarpFormat6 = 5, + msoWarpFormat7 = 6, + msoWarpFormat8 = 7, + msoWarpFormat9 = 8, + msoWarpFormatMixed = -2, + } + + const enum MsoWizardActType { + msoWizardActActive = 1, + msoWizardActInactive = 0, + msoWizardActResume = 3, + msoWizardActSuspend = 2, + } + + const enum MsoWizardMsgType { + msoWizardMsgLocalStateOff = 2, + msoWizardMsgLocalStateOn = 1, + msoWizardMsgResuming = 5, + msoWizardMsgShowHelp = 3, + msoWizardMsgSuspending = 4, + } + + const enum MsoZOrderCmd { + msoBringForward = 2, + msoBringInFrontOfText = 4, + msoBringToFront = 0, + msoSendBackward = 3, + msoSendBehindText = 5, + msoSendToBack = 1, + } + + const enum RibbonControlSize { + RibbonControlSizeLarge = 1, + RibbonControlSizeRegular = 0, + } + + const enum SignatureDetail { + sigdetApplicationName = 1, + sigdetApplicationVersion = 2, + sigdetColorDepth = 8, + sigdetDelSuggSigner = 16, + sigdetDelSuggSignerEmail = 20, + sigdetDelSuggSignerEmailSet = 21, + sigdetDelSuggSignerLine2 = 18, + sigdetDelSuggSignerLine2Set = 19, + sigdetDelSuggSignerSet = 17, + sigdetDocPreviewImg = 10, + sigdetHashAlgorithm = 14, + sigdetHorizResolution = 6, + sigdetIPCurrentView = 12, + sigdetIPFormHash = 11, + sigdetLocalSigningTime = 0, + sigdetNumberOfMonitors = 5, + sigdetOfficeVersion = 3, + sigdetShouldShowViewWarning = 15, + sigdetSignatureType = 13, + sigdetSignedData = 9, + sigdetVertResolution = 7, + sigdetWindowsVersion = 4, + } + + const enum SignatureLineImage { + siglnimgSigned = 4, + siglnimgSignedInvalid = 3, + siglnimgSignedValid = 2, + siglnimgSoftwareRequired = 0, + siglnimgUnsigned = 1, + } + + const enum SignatureProviderDetail { + sigprovdetHashAlgorithm = 1, + sigprovdetUIOnly = 2, + sigprovdetUrl = 0, + sigprovdetUseOfficeStampUI = 4, + sigprovdetUseOfficeUI = 3, + } + + const enum SignatureType { + sigtypeMax = 3, + sigtypeNonVisible = 1, + sigtypeSignatureLine = 2, + sigtypeUnknown = 0, + } + + const enum XlAxisCrosses { + xlAxisCrossesAutomatic = -4105, + xlAxisCrossesCustom = -4114, + xlAxisCrossesMaximum = 2, + xlAxisCrossesMinimum = 4, + } + + const enum XlAxisGroup { + xlPrimary = 1, + xlSecondary = 2, + } + + const enum XlAxisType { + xlCategory = 1, + xlSeriesAxis = 3, + xlValue = 2, + } + + const enum XlBarShape { + xlBox = 0, + xlConeToMax = 5, + xlConeToPoint = 4, + xlCylinder = 3, + xlPyramidToMax = 2, + xlPyramidToPoint = 1, + } + + const enum XlBorderWeight { + xlHairline = 1, + xlMedium = -4138, + xlThick = 4, + xlThin = 2, + } + + const enum XlCategoryType { + xlAutomaticScale = -4105, + xlCategoryScale = 2, + xlTimeScale = 3, + } + + const enum XlChartElementPosition { + xlChartElementPositionAutomatic = -4105, + xlChartElementPositionCustom = -4114, + } + + const enum XlChartItem { + xlAxis = 21, + xlAxisTitle = 17, + xlChartArea = 2, + xlChartTitle = 4, + xlCorners = 6, + xlDataLabel = 0, + xlDataTable = 7, + xlDisplayUnitLabel = 30, + xlDownBars = 20, + xlDropLines = 26, + xlErrorBars = 9, + xlFloor = 23, + xlHiLoLines = 25, + xlLeaderLines = 29, + xlLegend = 24, + xlLegendEntry = 12, + xlLegendKey = 13, + xlMajorGridlines = 15, + xlMinorGridlines = 16, + xlNothing = 28, + xlPivotChartDropZone = 32, + xlPivotChartFieldButton = 31, + xlPlotArea = 19, + xlRadarAxisLabels = 27, + xlSeries = 3, + xlSeriesLines = 22, + xlShape = 14, + xlTrendline = 8, + xlUpBars = 18, + xlWalls = 5, + xlXErrorBars = 10, + xlYErrorBars = 11, + } + + const enum XlChartOrientation { + xlDownward = -4170, + xlHorizontal = -4128, + xlUpward = -4171, + xlVertical = -4166, + } + + const enum XlChartPictureType { + xlStack = 2, + xlStackScale = 3, + xlStretch = 1, + } + + const enum XlChartSplitType { + xlSplitByCustomSplit = 4, + xlSplitByPercentValue = 3, + xlSplitByPosition = 1, + xlSplitByValue = 2, + } + + const enum XlChartType { + xl3DArea = -4098, + xl3DAreaStacked = 78, + xl3DAreaStacked100 = 79, + xl3DBarClustered = 60, + xl3DBarStacked = 61, + xl3DBarStacked100 = 62, + xl3DColumn = -4100, + xl3DColumnClustered = 54, + xl3DColumnStacked = 55, + xl3DColumnStacked100 = 56, + xl3DLine = -4101, + xl3DPie = -4102, + xl3DPieExploded = 70, + xlArea = 1, + xlAreaStacked = 76, + xlAreaStacked100 = 77, + xlBarClustered = 57, + xlBarOfPie = 71, + xlBarStacked = 58, + xlBarStacked100 = 59, + xlBubble = 15, + xlBubble3DEffect = 87, + xlColumnClustered = 51, + xlColumnStacked = 52, + xlColumnStacked100 = 53, + xlConeBarClustered = 102, + xlConeBarStacked = 103, + xlConeBarStacked100 = 104, + xlConeCol = 105, + xlConeColClustered = 99, + xlConeColStacked = 100, + xlConeColStacked100 = 101, + xlCylinderBarClustered = 95, + xlCylinderBarStacked = 96, + xlCylinderBarStacked100 = 97, + xlCylinderCol = 98, + xlCylinderColClustered = 92, + xlCylinderColStacked = 93, + xlCylinderColStacked100 = 94, + xlDoughnut = -4120, + xlDoughnutExploded = 80, + xlLine = 4, + xlLineMarkers = 65, + xlLineMarkersStacked = 66, + xlLineMarkersStacked100 = 67, + xlLineStacked = 63, + xlLineStacked100 = 64, + xlPie = 5, + xlPieExploded = 69, + xlPieOfPie = 68, + xlPyramidBarClustered = 109, + xlPyramidBarStacked = 110, + xlPyramidBarStacked100 = 111, + xlPyramidCol = 112, + xlPyramidColClustered = 106, + xlPyramidColStacked = 107, + xlPyramidColStacked100 = 108, + xlRadar = -4151, + xlRadarFilled = 82, + xlRadarMarkers = 81, + xlStockHLC = 88, + xlStockOHLC = 89, + xlStockVHLC = 90, + xlStockVOHLC = 91, + xlSurface = 83, + xlSurfaceTopView = 85, + xlSurfaceTopViewWireframe = 86, + xlSurfaceWireframe = 84, + xlXYScatter = -4169, + xlXYScatterLines = 74, + xlXYScatterLinesNoMarkers = 75, + xlXYScatterSmooth = 72, + xlXYScatterSmoothNoMarkers = 73, + } + + const enum XlColorIndex { + xlColorIndexAutomatic = -4105, + xlColorIndexNone = -4142, + } + + const enum XlConstants { + xl3DBar = -4099, + xl3DSurface = -4103, + xlAbove = 0, + xlAutomatic = -4105, + xlBar = 2, + xlBelow = 1, + xlBoth = 1, + xlBottom = -4107, + xlCenter = -4108, + xlChecker = 9, + xlCircle = 8, + xlColumn = 3, + xlCombination = -4111, + xlCorner = 2, + xlCrissCross = 16, + xlCross = 4, + xlCustom = -4114, + xlDefaultAutoFormat = -1, + xlDiamond = 2, + xlDistributed = -4117, + xlFill = 5, + xlFixedValue = 1, + xlGeneral = 1, + xlGray16 = 17, + xlGray25 = -4124, + xlGray50 = -4125, + xlGray75 = -4126, + xlGray8 = 18, + xlGrid = 15, + xlHigh = -4127, + xlInside = 2, + xlJustify = -4130, + xlLeft = -4131, + xlLightDown = 13, + xlLightHorizontal = 11, + xlLightUp = 14, + xlLightVertical = 12, + xlLow = -4134, + xlMaximum = 2, + xlMinimum = 4, + xlMinusValues = 3, + xlNextToAxis = 4, + xlNone = -4142, + xlOpaque = 3, + xlOutside = 3, + xlPercent = 2, + xlPlus = 9, + xlPlusValues = 2, + xlRight = -4152, + xlScale = 3, + xlSemiGray75 = 10, + xlShowLabel = 4, + xlShowLabelAndPercent = 5, + xlShowPercent = 3, + xlShowValue = 2, + xlSingle = 2, + xlSolid = 1, + xlSquare = 1, + xlStar = 5, + xlStError = 4, + xlTop = -4160, + xlTransparent = 2, + xlTriangle = 3, + } + + const enum XlDataLabelPosition { + xlLabelPositionAbove = 0, + xlLabelPositionBelow = 1, + xlLabelPositionBestFit = 5, + xlLabelPositionCenter = -4108, + xlLabelPositionCustom = 7, + xlLabelPositionInsideBase = 4, + xlLabelPositionInsideEnd = 3, + xlLabelPositionLeft = -4131, + xlLabelPositionMixed = 6, + xlLabelPositionOutsideEnd = 2, + xlLabelPositionRight = -4152, + } + + const enum XlDataLabelsType { + xlDataLabelsShowBubbleSizes = 6, + xlDataLabelsShowLabel = 4, + xlDataLabelsShowLabelAndPercent = 5, + xlDataLabelsShowNone = -4142, + xlDataLabelsShowPercent = 3, + xlDataLabelsShowValue = 2, + } + + const enum XlDisplayBlanksAs { + xlInterpolated = 3, + xlNotPlotted = 1, + xlZero = 2, + } + + const enum XlDisplayUnit { + xlDisplayUnitCustom = -4114, + xlDisplayUnitNone = -4142, + xlHundredMillions = -8, + xlHundreds = -2, + xlHundredThousands = -5, + xlMillionMillions = -10, + xlMillions = -6, + xlTenMillions = -7, + xlTenThousands = -4, + xlThousandMillions = -9, + xlThousands = -3, + } + + const enum XlEndStyleCap { + xlCap = 1, + xlNoCap = 2, + } + + const enum XlErrorBarDirection { + xlChartX = -4168, + xlChartY = 1, + } + + const enum XlErrorBarInclude { + xlErrorBarIncludeBoth = 1, + xlErrorBarIncludeMinusValues = 3, + xlErrorBarIncludeNone = -4142, + xlErrorBarIncludePlusValues = 2, + } + + const enum XlErrorBarType { + xlErrorBarTypeCustom = -4114, + xlErrorBarTypeFixedValue = 1, + xlErrorBarTypePercent = 2, + xlErrorBarTypeStDev = -4155, + xlErrorBarTypeStError = 4, + } + + const enum XlHAlign { + xlHAlignCenter = -4108, + xlHAlignCenterAcrossSelection = 7, + xlHAlignDistributed = -4117, + xlHAlignFill = 5, + xlHAlignGeneral = 1, + xlHAlignJustify = -4130, + xlHAlignLeft = -4131, + xlHAlignRight = -4152, + } + + const enum XlLegendPosition { + xlLegendPositionBottom = -4107, + xlLegendPositionCorner = 2, + xlLegendPositionCustom = -4161, + xlLegendPositionLeft = -4131, + xlLegendPositionRight = -4152, + xlLegendPositionTop = -4160, + } + + const enum XlMarkerStyle { + xlMarkerStyleAutomatic = -4105, + xlMarkerStyleCircle = 8, + xlMarkerStyleDash = -4115, + xlMarkerStyleDiamond = 2, + xlMarkerStyleDot = -4118, + xlMarkerStyleNone = -4142, + xlMarkerStylePicture = -4147, + xlMarkerStylePlus = 9, + xlMarkerStyleSquare = 1, + xlMarkerStyleStar = 5, + xlMarkerStyleTriangle = 3, + xlMarkerStyleX = -4168, + } + + const enum XlPieSliceIndex { + xlCenterPoint = 5, + xlInnerCenterPoint = 8, + xlInnerClockwisePoint = 7, + xlInnerCounterClockwisePoint = 9, + xlMidClockwiseRadiusPoint = 4, + xlMidCounterClockwiseRadiusPoint = 6, + xlOuterCenterPoint = 2, + xlOuterClockwisePoint = 3, + xlOuterCounterClockwisePoint = 1, + } + + const enum XlPieSliceLocation { + xlHorizontalCoordinate = 1, + xlVerticalCoordinate = 2, + } + + const enum XlPivotFieldOrientation { + xlColumnField = 2, + xlDataField = 4, + xlHidden = 0, + xlPageField = 3, + xlRowField = 1, + } + + const enum XlReadingOrder { + xlContext = -5002, + xlLTR = -5003, + xlRTL = -5004, + } + + const enum XlRowCol { + xlColumns = 2, + xlRows = 1, + } + + const enum XlScaleType { + xlScaleLinear = -4132, + xlScaleLogarithmic = -4133, + } + + const enum XlSizeRepresents { + xlSizeIsArea = 1, + xlSizeIsWidth = 2, + } + + const enum XlTickLabelOrientation { + xlTickLabelOrientationAutomatic = -4105, + xlTickLabelOrientationDownward = -4170, + xlTickLabelOrientationHorizontal = -4128, + xlTickLabelOrientationUpward = -4171, + xlTickLabelOrientationVertical = -4166, + } + + const enum XlTickLabelPosition { + xlTickLabelPositionHigh = -4127, + xlTickLabelPositionLow = -4134, + xlTickLabelPositionNextToAxis = 4, + xlTickLabelPositionNone = -4142, + } + + const enum XlTickMark { + xlTickMarkCross = 4, + xlTickMarkInside = 2, + xlTickMarkNone = -4142, + xlTickMarkOutside = 3, + } + + const enum XlTimeUnit { + xlDays = 0, + xlMonths = 1, + xlYears = 2, + } + + const enum XlTrendlineType { + xlExponential = 5, + xlLinear = -4132, + xlLogarithmic = -4133, + xlMovingAvg = 6, + xlPolynomial = 3, + xlPower = 4, + } + + const enum XlUnderlineStyle { + xlUnderlineStyleDouble = -4119, + xlUnderlineStyleDoubleAccounting = 5, + xlUnderlineStyleNone = -4142, + xlUnderlineStyleSingle = 2, + xlUnderlineStyleSingleAccounting = 4, + } + + const enum XlVAlign { + xlVAlignBottom = -4107, + xlVAlignCenter = -4108, + xlVAlignDistributed = -4117, + xlVAlignJustify = -4130, + xlVAlignTop = -4160, + } + + class Adjustments { + private 'Office.Adjustments_typekey': Adjustments; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): number; + readonly Parent: any; + } + + class AnswerWizard { + private 'Office.AnswerWizard_typekey': AnswerWizard; + private constructor(); + readonly Application: any; + ClearFileList(): void; + readonly Creator: number; + readonly Files: AnswerWizardFiles; + readonly Parent: any; + ResetFileList(): void; + } + + class AnswerWizardFiles { + private 'Office.AnswerWizardFiles_typekey': AnswerWizardFiles; + private constructor(); + Add(FileName: string): void; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Delete(FileName: string): void; + Item(Index: number): string; + readonly Parent: any; + } + + class Assistant { + private 'Office.Assistant_typekey': Assistant; + private constructor(); + ActivateWizard(WizardID: number, act: MsoWizardActType, Animation?: any): void; + Animation: MsoAnimationType; + readonly Application: any; + AssistWithAlerts: boolean; + AssistWithHelp: boolean; + AssistWithWizards: boolean; + readonly BalloonError: MsoBalloonErrorType; + readonly Creator: number; + DoAlert(bstrAlertTitle: string, bstrAlertText: string, alb: MsoAlertButtonType, alc: MsoAlertIconType, ald: MsoAlertDefaultType, alq: MsoAlertCancelType, varfSysAlert: boolean): number; + EndWizard(WizardID: number, varfSuccess: boolean, Animation?: any): void; + FeatureTips: boolean; + FileName: string; + GuessHelp: boolean; + Help(): void; + HighPriorityTips: boolean; + readonly Item: string; + KeyboardShortcutTips: boolean; + Left: number; + MouseTips: boolean; + Move(xLeft: number, yTop: number): void; + MoveWhenInTheWay: boolean; + readonly Name: string; + readonly NewBalloon: Balloon; + On: boolean; + readonly Parent: any; + Reduced: boolean; + ResetTips(): void; + SearchWhenProgramming: boolean; + Sounds: boolean; + StartWizard(On: boolean, Callback: string, PrivateX: number, Animation?: any, CustomTeaser?: any, Top?: any, Left?: any, Bottom?: any, Right?: any): number; + TipOfDay: boolean; + Top: number; + Visible: boolean; + } + + class Balloon { + private 'Office.Balloon_typekey': Balloon; + private constructor(); + Animation: MsoAnimationType; + readonly Application: any; + BalloonType: MsoBalloonType; + Button: MsoButtonSetType; + Callback: string; + readonly Checkboxes: any; + Close(): void; + readonly Creator: number; + Heading: string; + Icon: MsoIconType; + readonly Labels: any; + Mode: MsoModeType; + readonly Name: string; + readonly Parent: any; + Private: number; + SetAvoidRectangle(Left: number, Top: number, Right: number, Bottom: number): void; + Show(): MsoBalloonButtonType; + Text: string; + } + + class BulletFormat2 { + private 'Office.BulletFormat2_typekey': BulletFormat2; + private constructor(); + readonly Application: any; + Character: number; + readonly Creator: number; + readonly Font: Font2; + readonly Number: number; + readonly Parent: any; + Picture(FileName: string): void; + RelativeSize: number; + StartValue: number; + Style: MsoNumberedBulletStyle; + Type: MsoBulletType; + UseTextColor: MsoTriState; + UseTextFont: MsoTriState; + Visible: MsoTriState; + } + + class CalloutFormat { + private 'Office.CalloutFormat_typekey': CalloutFormat; + private constructor(); + Accent: MsoTriState; + Angle: MsoCalloutAngleType; + readonly Application: any; + AutoAttach: MsoTriState; + readonly AutoLength: MsoTriState; + AutomaticLength(): void; + Border: MsoTriState; + readonly Creator: number; + CustomDrop(Drop: number): void; + CustomLength(Length: number): void; + readonly Drop: number; + readonly DropType: MsoCalloutDropType; + Gap: number; + readonly Length: number; + readonly Parent: any; + PresetDrop(DropType: MsoCalloutDropType): void; + Type: MsoCalloutType; + } + + class CanvasShapes { + private 'Office.CanvasShapes_typekey': CanvasShapes; + private constructor(); + AddCallout(Type: MsoCalloutType, Left: number, Top: number, Width: number, Height: number): Shape; + AddConnector(Type: MsoConnectorType, BeginX: number, BeginY: number, EndX: number, EndY: number): Shape; + AddCurve(SafeArrayOfPoints: any): Shape; + AddLabel(Orientation: MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape; + AddLine(BeginX: number, BeginY: number, EndX: number, EndY: number): Shape; + + /** + * @param number [Width=-1] + * @param number [Height=-1] + */ + AddPicture(FileName: string, LinkToFile: MsoTriState, SaveWithDocument: MsoTriState, Left: number, Top: number, Width?: number, Height?: number): Shape; + AddPolyline(SafeArrayOfPoints: any): Shape; + AddShape(Type: MsoAutoShapeType, Left: number, Top: number, Width: number, Height: number): Shape; + AddTextbox(Orientation: MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape; + AddTextEffect(PresetTextEffect: MsoPresetTextEffect, Text: string, FontName: string, FontSize: number, FontBold: MsoTriState, FontItalic: MsoTriState, Left: number, Top: number): Shape; + readonly Application: any; + readonly Background: Shape; + BuildFreeform(EditingType: MsoEditingType, X1: number, Y1: number): FreeformBuilder; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Shape; + readonly Parent: any; + Range(Index: any): ShapeRange; + SelectAll(): void; + } + + class ChartColorFormat { + private 'Office.ChartColorFormat_typekey': ChartColorFormat; + private constructor(); + readonly _Default: number; + readonly Application: any; + readonly Creator: number; + readonly Parent: any; + RGB: number; + SchemeColor: number; + readonly Type: number; + } + + class ChartFillFormat { + private 'Office.ChartFillFormat_typekey': ChartFillFormat; + private constructor(); + readonly Application: any; + readonly BackColor: ChartColorFormat; + readonly Creator: number; + readonly ForeColor: ChartColorFormat; + readonly GradientColorType: number; + readonly GradientDegree: number; + readonly GradientStyle: number; + readonly GradientVariant: number; + OneColorGradient(Style: number, Variant: number, Degree: number): void; + readonly Parent: any; + readonly Pattern: number; + Patterned(Pattern: number): void; + PresetGradient(Style: number, Variant: number, PresetGradientType: number): void; + readonly PresetGradientType: number; + readonly PresetTexture: number; + PresetTextured(PresetTexture: number): void; + Solid(): void; + readonly TextureName: string; + readonly TextureType: number; + TwoColorGradient(Style: number, Variant: number): void; + readonly Type: number; + UserPicture(PictureFile: any, PictureFormat: any, PictureStackUnit: any, PicturePlacement: any): void; + UserTextured(TextureFile: string): void; + Visible: number; + } + + class ChartFont { + private 'Office.ChartFont_typekey': ChartFont; + private constructor(); + readonly Application: any; + Background: any; + Bold: any; + Color: any; + ColorIndex: any; + readonly Creator: number; + FontStyle: any; + Italic: any; + Name: any; + OutlineFont: any; + readonly Parent: any; + Shadow: any; + Size: any; + StrikeThrough: any; + Subscript: any; + Superscript: any; + Underline: any; + } + + class ColorFormat { + private 'Office.ColorFormat_typekey': ColorFormat; + private constructor(); + readonly Application: any; + Brightness: number; + readonly Creator: number; + ObjectThemeColor: MsoThemeColorIndex; + readonly Parent: any; + RGB: number; + SchemeColor: number; + TintAndShade: number; + readonly Type: MsoColorType; + } + + class COMAddIn { + private 'Office.COMAddIn_typekey': COMAddIn; + private constructor(); + readonly Application: any; + Connect: boolean; + readonly Creator: number; + Description: string; + readonly Guid: string; + Object: any; + readonly Parent: any; + readonly ProgId: string; + } + + class COMAddIns { + private 'Office.COMAddIns_typekey': COMAddIns; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): COMAddIn; + readonly Parent: any; + SetAppModal(varfModal: boolean): void; + Update(): void; + } + + class CommandBar { + private 'Office.CommandBar_typekey': CommandBar; + private constructor(); + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AdaptiveMenu: boolean; + readonly Application: any; + readonly BuiltIn: boolean; + Context: string; + readonly Controls: CommandBarControls; + readonly Creator: number; + Delete(): void; + Enabled: boolean; + FindControl(Type?: any, Id?: any, Tag?: any, Visible?: any, Recursive?: any): CommandBarControl; + Height: number; + readonly Id: number; + readonly Index: number; + readonly InstanceId: number; + readonly InstanceIdPtr: any; + Left: number; + Name: string; + NameLocal: string; + readonly Parent: any; + Position: MsoBarPosition; + Protection: MsoBarProtection; + Reset(): void; + RowIndex: number; + ShowPopup(x?: any, y?: any): void; + Top: number; + readonly Type: MsoBarType; + Visible: boolean; + Width: number; + } + + class CommandBarButton { + private 'Office.CommandBarButton_typekey': CommandBarButton; + private constructor(); + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + readonly Application: any; + BeginGroup: boolean; + readonly BuiltIn: boolean; + BuiltInFace: boolean; + Caption: string; + readonly Control: any; + Copy(Bar?: any, Before?: any): CommandBarControl; + CopyFace(): void; + readonly Creator: number; + Delete(Temporary?: any): void; + DescriptionText: string; + Enabled: boolean; + Execute(): void; + FaceId: number; + Height: number; + HelpContextId: number; + HelpFile: string; + HyperlinkType: MsoCommandBarButtonHyperlinkType; + readonly Id: number; + readonly Index: number; + readonly InstanceId: number; + readonly InstanceIdPtr: any; + readonly IsPriorityDropped: boolean; + readonly Left: number; + Mask: stdole.IPictureDisp; + Move(Bar?: any, Before?: any): CommandBarControl; + OLEUsage: MsoControlOLEUsage; + OnAction: string; + Parameter: string; + readonly Parent: CommandBar; + PasteFace(): void; + Picture: stdole.IPictureDisp; + Priority: number; + Reserved1(): void; + Reserved2(): void; + Reserved3(): void; + Reserved4(): void; + Reserved5(): void; + Reserved6(): void; + Reserved7(): void; + Reset(): void; + SetFocus(): void; + ShortcutText: string; + State: MsoButtonState; + Style: MsoButtonStyle; + Tag: string; + TooltipText: string; + readonly Top: number; + readonly Type: MsoControlType; + Visible: boolean; + Width: number; + } + + class CommandBarComboBox { + private 'Office.CommandBarComboBox_typekey': CommandBarComboBox; + private constructor(); + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + AddItem(Text: string, Index?: any): void; + readonly Application: any; + BeginGroup: boolean; + readonly BuiltIn: boolean; + Caption: string; + Clear(): void; + readonly Control: any; + Copy(Bar?: any, Before?: any): CommandBarControl; + readonly Creator: number; + Delete(Temporary?: any): void; + DescriptionText: string; + DropDownLines: number; + DropDownWidth: number; + Enabled: boolean; + Execute(): void; + Height: number; + HelpContextId: number; + HelpFile: string; + readonly Id: number; + readonly Index: number; + readonly InstanceId: number; + readonly InstanceIdPtr: any; + readonly IsPriorityDropped: boolean; + readonly Left: number; + List(Index: number): string; + readonly ListCount: number; + ListHeaderCount: number; + ListIndex: number; + Move(Bar?: any, Before?: any): CommandBarControl; + OLEUsage: MsoControlOLEUsage; + OnAction: string; + Parameter: string; + readonly Parent: CommandBar; + Priority: number; + RemoveItem(Index: number): void; + Reserved1(): void; + Reserved2(): void; + Reserved3(): void; + Reserved4(): void; + Reserved5(): void; + Reserved6(): void; + Reserved7(): void; + Reset(): void; + SetFocus(): void; + Style: MsoComboStyle; + Tag: string; + Text: string; + TooltipText: string; + readonly Top: number; + readonly Type: MsoControlType; + Visible: boolean; + Width: number; + } + + class CommandBarControl { + private 'Office.CommandBarControl_typekey': CommandBarControl; + private constructor(); + accChild(varChild: any): any; + readonly accChildCount: number; + accDefaultAction(varChild?: any): string; + accDescription(varChild?: any): string; + accDoDefaultAction(varChild?: any): void; + readonly accFocus: any; + accHelp(varChild?: any): string; + accHelpTopic(pszHelpFile: string, varChild?: any): number; + accHitTest(xLeft: number, yTop: number): any; + accKeyboardShortcut(varChild?: any): string; + accLocation(pxLeft: number, pyTop: number, pcxWidth: number, pcyHeight: number, varChild?: any): void; + accName(varChild?: any): string; + accNavigate(navDir: number, varStart?: any): any; + readonly accParent: any; + accRole(varChild?: any): any; + accSelect(flagsSelect: number, varChild?: any): void; + readonly accSelection: any; + accState(varChild?: any): any; + accValue(varChild?: any): string; + readonly Application: any; + BeginGroup: boolean; + readonly BuiltIn: boolean; + Caption: string; + readonly Control: any; + Copy(Bar?: any, Before?: any): CommandBarControl; + readonly Creator: number; + Delete(Temporary?: any): void; + DescriptionText: string; + Enabled: boolean; + Execute(): void; + Height: number; + HelpContextId: number; + HelpFile: string; + readonly Id: number; + readonly Index: number; + readonly InstanceId: number; + readonly IsPriorityDropped: boolean; + readonly Left: number; + Move(Bar?: any, Before?: any): CommandBarControl; + OLEUsage: MsoControlOLEUsage; + OnAction: string; + Parameter: string; + readonly Parent: CommandBar; + Priority: number; + Reserved1(): void; + Reserved2(): void; + Reserved3(): void; + Reserved4(): void; + Reserved5(): void; + Reserved6(): void; + Reserved7(): void; + Reset(): void; + SetFocus(): void; + Tag: string; + TooltipText: string; + readonly Top: number; + readonly Type: MsoControlType; + Visible: boolean; + Width: number; + } + + class CommandBarControls { + private 'Office.CommandBarControls_typekey': CommandBarControls; + private constructor(); + Add(Type?: any, Id?: any, Parameter?: any, Before?: any, Temporary?: any): CommandBarControl; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): CommandBarControl; + readonly Parent: CommandBar; + } + + class CommandBars { + private 'Office.CommandBars_typekey': CommandBars; + private constructor(); + readonly ActionControl: CommandBarControl; + readonly ActiveMenuBar: CommandBar; + AdaptiveMenus: boolean; + Add(Name?: any, Position?: any, MenuBar?: any, Temporary?: any): CommandBar; + AddEx(TbidOrName?: any, Position?: any, MenuBar?: any, Temporary?: any, TbtrProtection?: any): CommandBar; + readonly Application: any; + CommitRenderingTransaction(hwnd: number): void; + readonly Count: number; + readonly Creator: number; + DisableAskAQuestionDropdown: boolean; + DisableCustomize: boolean; + DisplayFonts: boolean; + DisplayKeysInTooltips: boolean; + DisplayTooltips: boolean; + ExecuteMso(idMso: string): void; + FindControl(Type?: any, Id?: any, Tag?: any, Visible?: any): CommandBarControl; + FindControls(Type?: any, Id?: any, Tag?: any, Visible?: any): CommandBarControls; + GetEnabledMso(idMso: string): boolean; + GetImageMso(idMso: string, Width: number, Height: number): stdole.IPictureDisp; + GetLabelMso(idMso: string): string; + GetPressedMso(idMso: string): boolean; + GetScreentipMso(idMso: string): string; + GetSupertipMso(idMso: string): string; + GetVisibleMso(idMso: string): boolean; + IdsString(ids: number, pbstrName: string): number; + Item(Index: any): CommandBar; + LargeButtons: boolean; + MenuAnimationStyle: MsoMenuAnimation; + readonly Parent: any; + ReleaseFocus(): void; + TmcGetName(tmc: number, pbstrName: string): number; + } + + class ConnectorFormat { + private 'Office.ConnectorFormat_typekey': ConnectorFormat; + private constructor(); + readonly Application: any; + BeginConnect(ConnectedShape: Shape, ConnectionSite: number): void; + readonly BeginConnected: MsoTriState; + readonly BeginConnectedShape: Shape; + readonly BeginConnectionSite: number; + BeginDisconnect(): void; + readonly Creator: number; + EndConnect(ConnectedShape: Shape, ConnectionSite: number): void; + readonly EndConnected: MsoTriState; + readonly EndConnectedShape: Shape; + readonly EndConnectionSite: number; + EndDisconnect(): void; + readonly Parent: any; + Type: MsoConnectorType; + } + + class ContactCard { + private 'Office.ContactCard_typekey': ContactCard; + private constructor(); + readonly Application: any; + Close(): void; + readonly Creator: number; + + /** @param boolean [ShowWithDelay=false] */ + Show( + CardStyle: MsoContactCardStyle, RectangleLeft: number, RectangleRight: number, RectangleTop: number, RectangleBottom: number, HorizontalPosition: number, ShowWithDelay?: boolean): void; + } + + class Crop { + private 'Office.Crop_typekey': Crop; + private constructor(); + readonly Application: any; + readonly Creator: number; + PictureHeight: number; + PictureOffsetX: number; + PictureOffsetY: number; + PictureWidth: number; + ShapeHeight: number; + ShapeLeft: number; + ShapeTop: number; + ShapeWidth: number; + } + + class CustomTaskPane { + private 'Office.CustomTaskPane_typekey': CustomTaskPane; + private constructor(); + readonly Application: any; + readonly ContentControl: any; + Delete(): void; + DockPosition: MsoCTPDockPosition; + DockPositionRestrict: MsoCTPDockPositionRestrict; + Height: number; + readonly Title: string; + Visible: boolean; + Width: number; + readonly Window: any; + } + + class CustomXMLNode { + private 'Office.CustomXMLNode_typekey': CustomXMLNode; + private constructor(); + + /** + * @param string [Name=''] + * @param string [NamespaceURI=''] + * @param Office.MsoCustomXMLNodeType [NodeType=1] + * @param string [NodeValue=''] + */ + AppendChildNode(Name?: string, NamespaceURI?: string, NodeType?: MsoCustomXMLNodeType, NodeValue?: string): void; + AppendChildSubtree(XML: string): void; + readonly Application: any; + readonly Attributes: CustomXMLNodes; + readonly BaseName: string; + readonly ChildNodes: CustomXMLNodes; + readonly Creator: number; + Delete(): void; + readonly FirstChild: CustomXMLNode; + HasChildNodes(): boolean; + + /** + * @param string [Name=''] + * @param string [NamespaceURI=''] + * @param Office.MsoCustomXMLNodeType [NodeType=1] + * @param string [NodeValue=''] + * @param Office.CustomXMLNode [NextSibling=0] + */ + InsertNodeBefore(Name?: string, NamespaceURI?: string, NodeType?: MsoCustomXMLNodeType, NodeValue?: string, NextSibling?: CustomXMLNode): void; + + /** @param Office.CustomXMLNode [NextSibling=0] */ + InsertSubtreeBefore(XML: string, NextSibling?: CustomXMLNode): void; + readonly LastChild: CustomXMLNode; + readonly NamespaceURI: string; + readonly NextSibling: CustomXMLNode; + readonly NodeType: MsoCustomXMLNodeType; + NodeValue: string; + readonly OwnerDocument: any; + readonly OwnerPart: CustomXMLPart; + readonly Parent: any; + readonly ParentNode: CustomXMLNode; + readonly PreviousSibling: CustomXMLNode; + RemoveChild(Child: CustomXMLNode): void; + + /** + * @param string [Name=''] + * @param string [NamespaceURI=''] + * @param Office.MsoCustomXMLNodeType [NodeType=1] + * @param string [NodeValue=''] + */ + ReplaceChildNode(OldNode: CustomXMLNode, Name?: string, NamespaceURI?: string, NodeType?: MsoCustomXMLNodeType, NodeValue?: string): void; + ReplaceChildSubtree(XML: string, OldNode: CustomXMLNode): void; + SelectNodes(XPath: string): CustomXMLNodes; + SelectSingleNode(XPath: string): CustomXMLNode; + Text: string; + readonly XML: string; + readonly XPath: string; + } + + class CustomXMLNodes { + private 'Office.CustomXMLNodes_typekey': CustomXMLNodes; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): CustomXMLNode; + readonly Parent: any; + } + + class CustomXMLPart { + private 'Office.CustomXMLPart_typekey': CustomXMLPart; + private constructor(); + + /** + * @param string [Name=''] + * @param string [NamespaceURI=''] + * @param Office.CustomXMLNode [NextSibling=0] + * @param Office.MsoCustomXMLNodeType [NodeType=1] + * @param string [NodeValue=''] + */ + AddNode(Parent: CustomXMLNode, Name?: string, NamespaceURI?: string, NextSibling?: CustomXMLNode, NodeType?: MsoCustomXMLNodeType, NodeValue?: string): void; + readonly Application: any; + readonly BuiltIn: boolean; + readonly Creator: number; + Delete(): void; + readonly DocumentElement: CustomXMLNode; + readonly Errors: CustomXMLValidationErrors; + readonly Id: string; + Load(FilePath: string): boolean; + LoadXML(XML: string): boolean; + readonly NamespaceManager: CustomXMLPrefixMappings; + readonly NamespaceURI: string; + readonly Parent: any; + SchemaCollection: CustomXMLSchemaCollection; + SelectNodes(XPath: string): CustomXMLNodes; + SelectSingleNode(XPath: string): CustomXMLNode; + readonly XML: string; + } + + class CustomXMLParts { + private 'Office.CustomXMLParts_typekey': CustomXMLParts; + private constructor(); + + /** @param string [XML=''] */ + Add(XML?: string, SchemaCollection?: any): CustomXMLPart; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): CustomXMLPart; + readonly Parent: any; + SelectByID(Id: string): CustomXMLPart; + SelectByNamespace(NamespaceURI: string): CustomXMLParts; + } + + class CustomXMLPrefixMapping { + private 'Office.CustomXMLPrefixMapping_typekey': CustomXMLPrefixMapping; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly NamespaceURI: string; + readonly Parent: any; + readonly Prefix: string; + } + + class CustomXMLPrefixMappings { + private 'Office.CustomXMLPrefixMappings_typekey': CustomXMLPrefixMappings; + private constructor(); + AddNamespace(Prefix: string, NamespaceURI: string): void; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): CustomXMLPrefixMapping; + LookupNamespace(Prefix: string): string; + LookupPrefix(NamespaceURI: string): string; + readonly Parent: any; + } + + class CustomXMLSchema { + private 'Office.CustomXMLSchema_typekey': CustomXMLSchema; + private constructor(); + readonly Application: any; + readonly Creator: number; + Delete(): void; + readonly Location: string; + readonly NamespaceURI: string; + readonly Parent: any; + Reload(): void; + } + + class CustomXMLSchemaCollection { + private 'Office.CustomXMLSchemaCollection_typekey': CustomXMLSchemaCollection; + private constructor(); + + /** + * @param string [NamespaceURI=''] + * @param string [Alias=''] + * @param string [FileName=''] + * @param boolean [InstallForAllUsers=false] + */ + Add(NamespaceURI?: string, Alias?: string, FileName?: string, InstallForAllUsers?: boolean): CustomXMLSchema; + AddCollection(SchemaCollection: CustomXMLSchemaCollection): void; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): CustomXMLSchema; + NamespaceURI(Index: number): string; + readonly Parent: any; + Validate(): boolean; + } + + class CustomXMLValidationError { + private 'Office.CustomXMLValidationError_typekey': CustomXMLValidationError; + private constructor(); + readonly Application: any; + readonly Creator: number; + Delete(): void; + readonly ErrorCode: number; + readonly Name: string; + readonly Node: CustomXMLNode; + readonly Parent: any; + readonly Text: string; + readonly Type: MsoCustomXMLValidationErrorType; + } + + class CustomXMLValidationErrors { + private 'Office.CustomXMLValidationErrors_typekey': CustomXMLValidationErrors; + private constructor(); + + /** + * @param string [ErrorText=''] + * @param boolean [ClearedOnUpdate=true] + */ + Add(Node: CustomXMLNode, ErrorName: string, ErrorText?: string, ClearedOnUpdate?: boolean): void; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): CustomXMLValidationError; + readonly Parent: any; + } + + class DiagramNode { + private 'Office.DiagramNode_typekey': DiagramNode; + private constructor(); + + /** + * @param Office.MsoRelativeNodePosition [Pos=2] + * @param Office.MsoDiagramNodeType [NodeType=1] + */ + AddNode(Pos?: MsoRelativeNodePosition, NodeType?: MsoDiagramNodeType): DiagramNode; + readonly Application: any; + readonly Children: DiagramNodeChildren; + + /** @param Office.MsoRelativeNodePosition [Pos=2] */ + CloneNode(CopyChildren: boolean, TargetNode: DiagramNode, Pos?: MsoRelativeNodePosition): DiagramNode; + readonly Creator: number; + Delete(): void; + readonly Diagram: IMsoDiagram; + Layout: MsoOrgChartLayoutType; + MoveNode(TargetNode: DiagramNode, Pos: MsoRelativeNodePosition): void; + NextNode(): DiagramNode; + readonly Parent: any; + PrevNode(): DiagramNode; + ReplaceNode(TargetNode: DiagramNode): void; + readonly Root: DiagramNode; + readonly Shape: Shape; + + /** @param boolean [SwapChildren=true] */ + SwapNode(TargetNode: DiagramNode, SwapChildren?: boolean): void; + readonly TextShape: Shape; + TransferChildren(ReceivingNode: DiagramNode): void; + } + + class DiagramNodeChildren { + private 'Office.DiagramNodeChildren_typekey': DiagramNodeChildren; + private constructor(); + + /** + * @param any [Index=-1] + * @param Office.MsoDiagramNodeType [NodeType=1] + */ + AddNode(Index?: any, NodeType?: MsoDiagramNodeType): DiagramNode; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + readonly FirstChild: DiagramNode; + Item(Index: any): DiagramNode; + readonly LastChild: DiagramNode; + readonly Parent: any; + SelectAll(): void; + } + + class DiagramNodes { + private 'Office.DiagramNodes_typekey': DiagramNodes; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): DiagramNode; + readonly Parent: any; + SelectAll(): void; + } + + class DocumentInspector { + private 'Office.DocumentInspector_typekey': DocumentInspector; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Description: string; + Fix(Status: MsoDocInspectorStatus, Results: string): void; + Inspect(Status: MsoDocInspectorStatus, Results: string): void; + readonly Name: string; + readonly Parent: any; + } + + class DocumentInspectors { + private 'Office.DocumentInspectors_typekey': DocumentInspectors; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): DocumentInspector; + readonly Parent: any; + } + + class DocumentProperties { + private 'Office.DocumentProperties_typekey': DocumentProperties; + private constructor(); + Add(Name: string, LinkToContent: boolean, Type?: MsoDocProperties, Value?: any, LinkSource?: string): DocumentProperty; + Application: TApplication; + Count: number; + Creator: number; + Item(index: string | number): DocumentProperty; + Parent: any; + } + + class DocumentProperty { + private 'Office.DocumentProperty_typekey': DocumentProperty; + private constructor(); + Application: TApplication; + Creator: number; + Delete(): void; + LinkSource: string; + LinkToContent: boolean; + Name: string; + Parent: any; + Type: MsoDocProperties; + Value: any; + } + + class DocumentLibraryVersion { + private 'Office.DocumentLibraryVersion_typekey': DocumentLibraryVersion; + private constructor(); + readonly Application: any; + readonly Comments: string; + readonly Creator: number; + Delete(): void; + readonly Index: number; + readonly Modified: any; + readonly ModifiedBy: string; + Open(): any; + readonly Parent: any; + Restore(): any; + } + + class DocumentLibraryVersions { + private 'Office.DocumentLibraryVersions_typekey': DocumentLibraryVersions; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + readonly IsVersioningEnabled: boolean; + Item(lIndex: number): DocumentLibraryVersion; + readonly Parent: any; + } + + class EffectParameter { + private 'Office.EffectParameter_typekey': EffectParameter; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Name: string; + Value: any; + } + + class EffectParameters { + private 'Office.EffectParameters_typekey': EffectParameters; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): EffectParameter; + } + + class FileDialog { + private 'Office.FileDialog_typekey': FileDialog; + private constructor(); + AllowMultiSelect: boolean; + readonly Application: any; + ButtonName: string; + readonly Creator: number; + readonly DialogType: MsoFileDialogType; + Execute(): void; + FilterIndex: number; + readonly Filters: FileDialogFilters; + InitialFileName: string; + InitialView: MsoFileDialogView; + readonly Item: string; + readonly Parent: any; + readonly SelectedItems: FileDialogSelectedItems; + Show(): number; + Title: string; + } + + class FileDialogFilter { + private 'Office.FileDialogFilter_typekey': FileDialogFilter; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Description: string; + readonly Extensions: string; + readonly Parent: any; + } + + class FileDialogFilters { + private 'Office.FileDialogFilters_typekey': FileDialogFilters; + private constructor(); + Add(Description: string, Extensions: string, Position?: any): FileDialogFilter; + readonly Application: any; + Clear(): void; + readonly Count: number; + readonly Creator: number; + Delete(filter?: any): void; + Item(Index: number): FileDialogFilter; + readonly Parent: any; + } + + class FileDialogSelectedItems { + private 'Office.FileDialogSelectedItems_typekey': FileDialogSelectedItems; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): string; + readonly Parent: any; + } + + class FileSearch { + private 'Office.FileSearch_typekey': FileSearch; + private constructor(); + readonly Application: any; + readonly Creator: number; + + /** + * @param Office.MsoSortBy [SortBy=1] + * @param Office.MsoSortOrder [SortOrder=1] + * @param boolean [AlwaysAccurate=true] + */ + Execute(SortBy?: MsoSortBy, SortOrder?: MsoSortOrder, AlwaysAccurate?: boolean): number; + FileName: string; + FileType: MsoFileType; + readonly FileTypes: FileTypes; + readonly FoundFiles: FoundFiles; + LastModified: MsoLastModified; + LookIn: string; + MatchAllWordForms: boolean; + MatchTextExactly: boolean; + NewSearch(): void; + readonly PropertyTests: PropertyTests; + RefreshScopes(): void; + readonly SearchFolders: SearchFolders; + readonly SearchScopes: SearchScopes; + SearchSubFolders: boolean; + TextOrProperty: string; + } + + class FileTypes { + private 'Office.FileTypes_typekey': FileTypes; + private constructor(); + Add(FileType: MsoFileType): void; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): MsoFileType; + Remove(Index: number): void; + } + + class FillFormat { + private 'Office.FillFormat_typekey': FillFormat; + private constructor(); + readonly Application: any; + BackColor: ColorFormat; + Background(): void; + readonly Creator: number; + ForeColor: ColorFormat; + GradientAngle: number; + readonly GradientColorType: MsoGradientColorType; + readonly GradientDegree: number; + readonly GradientStops: GradientStops; + readonly GradientStyle: MsoGradientStyle; + readonly GradientVariant: number; + OneColorGradient(Style: MsoGradientStyle, Variant: number, Degree: number): void; + readonly Parent: any; + readonly Pattern: MsoPatternType; + Patterned(Pattern: MsoPatternType): void; + readonly PictureEffects: PictureEffects; + PresetGradient(Style: MsoGradientStyle, Variant: number, PresetGradientType: MsoPresetGradientType): void; + readonly PresetGradientType: MsoPresetGradientType; + readonly PresetTexture: MsoPresetTexture; + PresetTextured(PresetTexture: MsoPresetTexture): void; + RotateWithObject: MsoTriState; + Solid(): void; + TextureAlignment: MsoTextureAlignment; + TextureHorizontalScale: number; + readonly TextureName: string; + TextureOffsetX: number; + TextureOffsetY: number; + TextureTile: MsoTriState; + readonly TextureType: MsoTextureType; + TextureVerticalScale: number; + Transparency: number; + TwoColorGradient(Style: MsoGradientStyle, Variant: number): void; + readonly Type: MsoFillType; + UserPicture(PictureFile: string): void; + UserTextured(TextureFile: string): void; + Visible: MsoTriState; + } + + class Font2 { + private 'Office.Font2_typekey': Font2; + private constructor(); + Allcaps: MsoTriState; + readonly Application: any; + AutorotateNumbers: MsoTriState; + BaselineOffset: number; + Bold: MsoTriState; + Caps: MsoTextCaps; + readonly Creator: number; + DoubleStrikeThrough: MsoTriState; + readonly Embeddable: MsoTriState; + readonly Embedded: MsoTriState; + Equalize: MsoTriState; + readonly Fill: FillFormat; + readonly Glow: GlowFormat; + readonly Highlight: ColorFormat; + Italic: MsoTriState; + Kerning: number; + readonly Line: LineFormat; + Name: string; + NameAscii: string; + NameComplexScript: string; + NameFarEast: string; + NameOther: string; + readonly Parent: any; + readonly Reflection: ReflectionFormat; + readonly Shadow: ShadowFormat; + Size: number; + Smallcaps: MsoTriState; + SoftEdgeFormat: MsoSoftEdgeType; + Spacing: number; + Strike: MsoTextStrike; + StrikeThrough: MsoTriState; + Subscript: MsoTriState; + Superscript: MsoTriState; + readonly UnderlineColor: ColorFormat; + UnderlineStyle: MsoTextUnderlineType; + WordArtformat: MsoPresetTextEffect; + } + + class FoundFiles { + private 'Office.FoundFiles_typekey': FoundFiles; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): string; + } + + class FreeformBuilder { + private 'Office.FreeformBuilder_typekey': FreeformBuilder; + private constructor(); + + /** + * @param number [X2=0] + * @param number [Y2=0] + * @param number [X3=0] + * @param number [Y3=0] + */ + AddNodes(SegmentType: MsoSegmentType, EditingType: MsoEditingType, X1: number, Y1: number, X2?: number, Y2?: number, X3?: number, Y3?: number): void; + readonly Application: any; + ConvertToShape(): Shape; + readonly Creator: number; + readonly Parent: any; + } + + class GlowFormat { + private 'Office.GlowFormat_typekey': GlowFormat; + private constructor(); + readonly Application: any; + readonly Color: ColorFormat; + readonly Creator: number; + Radius: number; + Transparency: number; + } + + class GradientStop { + private 'Office.GradientStop_typekey': GradientStop; + private constructor(); + readonly Application: any; + readonly Color: ColorFormat; + readonly Creator: number; + Position: number; + Transparency: number; + } + + class GradientStops { + private 'Office.GradientStops_typekey': GradientStops; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + + /** @param number [Index=-1] */ + Delete(Index?: number): void; + + /** + * @param number [Transparency=0] + * @param number [Index=-1] + */ + Insert(RGB: number, Position: number, Transparency?: number, Index?: number): void; + + /** + * @param number [Transparency=0] + * @param number [Index=-1] + * @param number [Brightness=0] + */ + Insert2(RGB: number, Position: number, Transparency?: number, Index?: number, Brightness?: number): void; + Item(Index: number): GradientStop; + } + + class GroupShapes { + private 'Office.GroupShapes_typekey': GroupShapes; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Shape; + readonly Parent: any; + Range(Index: any): ShapeRange; + } + + class HTMLProject { + private 'Office.HTMLProject_typekey': HTMLProject; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly HTMLProjectItems: HTMLProjectItems; + + /** @param Office.MsoHTMLProjectOpen [OpenKind=0] */ + Open(OpenKind?: MsoHTMLProjectOpen): void; + readonly Parent: any; + + /** @param boolean [Refresh=true] */ + RefreshDocument(Refresh?: boolean): void; + + /** @param boolean [Refresh=true] */ + RefreshProject(Refresh?: boolean): void; + readonly State: MsoHTMLProjectState; + } + + class HTMLProjectItem { + private 'Office.HTMLProjectItem_typekey': HTMLProjectItem; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly IsOpen: boolean; + LoadFromFile(FileName: string): void; + readonly Name: string; + + /** @param Office.MsoHTMLProjectOpen [OpenKind=0] */ + Open(OpenKind?: MsoHTMLProjectOpen): void; + readonly Parent: any; + SaveCopyAs(FileName: string): void; + Text: string; + } + + class HTMLProjectItems { + private 'Office.HTMLProjectItems_typekey': HTMLProjectItems; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): HTMLProjectItem; + readonly Parent: any; + } + + class IAssistance { + private 'Office.IAssistance_typekey': IAssistance; + private constructor(); + + /** ClearDefaultContext Method */ + ClearDefaultContext(HelpId: string): void; + + /** + * SearchHelp Method + * @param string [Scope=''] + */ + SearchHelp(Query: string, Scope?: string): void; + + /** SetDefaultContext Method */ + SetDefaultContext(HelpId: string): void; + + /** + * ShowHelp Method + * @param string [HelpId=''] + * @param string [Scope=''] + */ + ShowHelp(HelpId?: string, Scope?: string): void; + } + + class IFind { + private 'Office.IFind_typekey': IFind; + private constructor(); + Author: string; + DateCreatedFrom: any; + DateCreatedTo: any; + DateSavedFrom: any; + DateSavedTo: any; + Delete(bstrQueryName: string): void; + Execute(): void; + FileType: number; + Keywords: string; + ListBy: MsoFileFindListBy; + Load(bstrQueryName: string): void; + MatchCase: boolean; + Name: string; + Options: MsoFileFindOptions; + PatternMatch: boolean; + readonly Results: IFoundFiles; + Save(bstrQueryName: string): void; + SavedBy: string; + SearchPath: string; + SelectedFile: number; + Show(): number; + SortBy: MsoFileFindSortBy; + SubDir: boolean; + Subject: string; + Text: string; + Title: string; + View: MsoFileFindView; + } + + class IFoundFiles { + private 'Office.IFoundFiles_typekey': IFoundFiles; + private constructor(); + readonly Count: number; + Item(Index: number): string; + } + + class IMsoBorder { + private 'Office.IMsoBorder_typekey': IMsoBorder; + private constructor(); + readonly Application: any; + Color: any; + ColorIndex: any; + readonly Creator: number; + LineStyle: any; + readonly Parent: any; + Weight: any; + } + + class IMsoCharacters { + private 'Office.IMsoCharacters_typekey': IMsoCharacters; + private constructor(); + readonly Application: any; + Caption: string; + readonly Count: number; + readonly Creator: number; + Delete(): any; + readonly Font: ChartFont; + Insert(bstr: string): any; + readonly Parent: any; + PhoneticCharacters: string; + Text: string; + } + + class IMsoChart { + private 'Office.IMsoChart_typekey': IMsoChart; + private constructor(); + + /** @param Office.XlDataLabelsType [Type=2] */ + _ApplyDataLabels(Type?: XlDataLabelsType, IMsoLegendKey?: any, AutoText?: any, HasLeaderLines?: any): void; + readonly Application: any; + ApplyChartTemplate(bstrFileName: string): void; + ApplyCustomType(ChartType: XlChartType, TypeName?: any): void; + + /** @param Office.XlDataLabelsType [Type=2] */ + ApplyDataLabels( + Type?: XlDataLabelsType, IMsoLegendKey?: any, AutoText?: any, HasLeaderLines?: any, ShowSeriesName?: any, ShowCategoryName?: any, ShowValue?: any, + ShowPercentage?: any, ShowBubbleSize?: any, Separator?: any): void; + ApplyLayout(Layout: number, varChartType?: any): void; + readonly Area3DGroup: IMsoChartGroup; + AreaGroups(Index?: any): any; + AutoFormat(rGallery: number, varFormat?: any): void; + AutoScaling: boolean; + + /** @param Office.XlAxisGroup [AxisGroup=1] */ + Axes(Type: any, AxisGroup?: XlAxisGroup): any; + readonly BackWall: IMsoWalls; + readonly Bar3DGroup: IMsoChartGroup; + BarGroups(Index?: any): any; + BarShape: XlBarShape; + readonly ChartArea: IMsoChartArea; + readonly ChartData: IMsoChartData; + ChartGroups(pvarIndex?: any, varIgallery?: any): any; + ChartStyle: any; + readonly ChartTitle: IMsoChartTitle; + ChartType: XlChartType; + ChartWizard( + varSource?: any, varGallery?: any, varFormat?: any, varPlotBy?: any, varCategoryLabels?: any, varSeriesLabels?: any, varHasLegend?: any, varTitle?: any, + varCategoryTitle?: any, varValueTitle?: any, varExtraTitle?: any): void; + ClearToMatchStyle(): void; + readonly Column3DGroup: IMsoChartGroup; + ColumnGroups(Index?: any): any; + Copy(): any; + + /** + * @param number [Appearance=1] + * @param number [Format=-4147] + * @param number [Size=2] + */ + CopyPicture(Appearance?: number, Format?: number, Size?: number): void; + readonly Corners: IMsoCorners; + readonly Creator: number; + readonly DataTable: IMsoDataTable; + Delete(): any; + DepthPercent: number; + DisplayBlanksAs: XlDisplayBlanksAs; + DoughnutGroups(Index?: any): any; + Elevation: number; + Export(bstr: string, varFilterName?: any, varInteractive?: any): boolean; + readonly Floor: IMsoFloor; + readonly Format: IMsoChartFormat; + GapDepth: number; + GetChartElement(x: number, y: number, ElementID: number, Arg1: number, Arg2: number): void; + HasAxis(axisType?: any, AxisGroup?: any): any; + HasDataTable: boolean; + HasLegend: boolean; + HasPivotFields: boolean; + HasTitle: boolean; + HeightPercent: number; + readonly Legend: IMsoLegend; + readonly Line3DGroup: IMsoChartGroup; + LineGroups(Index?: any): any; + readonly Parent: any; + Perspective: number; + readonly Pie3DGroup: IMsoChartGroup; + PieGroups(Index?: any): any; + readonly PivotLayout: any; + readonly PlotArea: IMsoPlotArea; + PlotBy: XlRowCol; + PlotVisibleOnly: boolean; + RadarGroups(Index?: any): any; + Refresh(): void; + RefreshPivotTable(): void; + RightAngleAxes: any; + Rotation: any; + SaveChartTemplate(bstrFileName: string): void; + Select(Replace?: any): any; + SeriesCollection(Index?: any): any; + SetDefaultChart(varName: any): void; + SetElement(RHS: MsoChartElementType): void; + SetSourceData(Source: string, PlotBy?: any): void; + readonly Shapes: Shapes; + ShowAllFieldButtons: boolean; + ShowAxisFieldButtons: boolean; + ShowDataLabelsOverMaximum: boolean; + ShowLegendFieldButtons: boolean; + ShowReportFilterFieldButtons: boolean; + ShowValueFieldButtons: boolean; + readonly SideWall: IMsoWalls; + SubType: number; + readonly SurfaceGroup: IMsoChartGroup; + Type: number; + + /** @param boolean [fBackWall=true] */ + Walls(fBackWall?: boolean): IMsoWalls; + XYGroups(Index?: any): any; + } + + class IMsoChartArea { + private 'Office.IMsoChartArea_typekey': IMsoChartArea; + private constructor(); + readonly Application: any; + AutoScaleFont: any; + readonly Border: IMsoBorder; + Clear(): any; + ClearContents(): any; + ClearFormats(): any; + Copy(): any; + readonly Creator: number; + readonly Fill: ChartFillFormat; + readonly Font: ChartFont; + readonly Format: IMsoChartFormat; + Height: number; + readonly Interior: IMsoInterior; + Left: number; + readonly Name: string; + readonly Parent: any; + RoundedCorners: boolean; + Select(): any; + Shadow: boolean; + Top: number; + Width: number; + } + + class IMsoChartData { + private 'Office.IMsoChartData_typekey': IMsoChartData; + private constructor(); + Activate(): void; + BreakLink(): void; + readonly IsLinked: boolean; + readonly Workbook: any; + } + + class IMsoChartFormat { + private 'Office.IMsoChartFormat_typekey': IMsoChartFormat; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Fill: FillFormat; + readonly Glow: GlowFormat; + readonly Line: LineFormat; + readonly Parent: any; + readonly PictureFormat: PictureFormat; + readonly Shadow: ShadowFormat; + readonly SoftEdge: SoftEdgeFormat; + readonly TextFrame2: TextFrame2; + readonly ThreeD: ThreeDFormat; + } + + class IMsoChartGroup { + private 'Office.IMsoChartGroup_typekey': IMsoChartGroup; + private constructor(); + readonly Application: any; + AxisGroup: number; + BubbleScale: number; + readonly Creator: number; + DoughnutHoleSize: number; + readonly DownBars: IMsoDownBars; + readonly DropLines: IMsoDropLines; + FirstSliceAngle: number; + GapWidth: number; + Has3DShading: boolean; + HasDropLines: boolean; + HasHiLoLines: boolean; + HasRadarAxisLabels: boolean; + HasSeriesLines: boolean; + HasUpDownBars: boolean; + readonly HiLoLines: IMsoHiLoLines; + readonly Index: number; + Overlap: number; + readonly Parent: any; + readonly RadarAxisLabels: any; + SecondPlotSize: number; + SeriesCollection(Index?: any): any; + readonly SeriesLines: IMsoSeriesLines; + ShowNegativeBubbles: boolean; + SizeRepresents: XlSizeRepresents; + SplitType: XlChartSplitType; + SplitValue: any; + SubType: number; + Type: number; + readonly UpBars: IMsoUpBars; + VaryByCategories: boolean; + } + + class IMsoChartTitle { + private 'Office.IMsoChartTitle_typekey': IMsoChartTitle; + private constructor(); + readonly Application: any; + AutoScaleFont: any; + readonly Border: IMsoBorder; + Caption: string; + Characters(Start?: any, Length?: any): IMsoCharacters; + readonly Creator: number; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Font: ChartFont; + readonly Format: IMsoChartFormat; + Formula: string; + FormulaLocal: string; + FormulaR1C1: string; + FormulaR1C1Local: string; + readonly Height: number; + HorizontalAlignment: any; + IncludeInLayout: boolean; + readonly Interior: IMsoInterior; + Left: number; + readonly Name: string; + Orientation: any; + readonly Parent: any; + Position: XlChartElementPosition; + ReadingOrder: number; + Select(): any; + Shadow: boolean; + Text: string; + Top: number; + VerticalAlignment: any; + readonly Width: number; + } + + class IMsoCorners { + private 'Office.IMsoCorners_typekey': IMsoCorners; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class IMsoDataTable { + private 'Office.IMsoDataTable_typekey': IMsoDataTable; + private constructor(); + readonly Application: any; + AutoScaleFont: any; + readonly Border: IMsoBorder; + readonly Creator: number; + Delete(): void; + readonly Font: ChartFont; + readonly Format: IMsoChartFormat; + HasBorderHorizontal: boolean; + HasBorderOutline: boolean; + HasBorderVertical: boolean; + readonly Parent: any; + Select(): void; + ShowLegendKey: boolean; + } + + class IMsoDiagram { + private 'Office.IMsoDiagram_typekey': IMsoDiagram; + private constructor(); + readonly Application: any; + AutoFormat: MsoTriState; + AutoLayout: MsoTriState; + Convert(Type: MsoDiagramType): void; + readonly Creator: number; + FitText(): void; + readonly Nodes: DiagramNodes; + readonly Parent: any; + Reverse: MsoTriState; + readonly Type: MsoDiagramType; + } + + class IMsoDownBars { + private 'Office.IMsoDownBars_typekey': IMsoDownBars; + private constructor(); + readonly Application: any; + readonly Border: IMsoBorder; + readonly Creator: number; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Format: IMsoChartFormat; + readonly Interior: IMsoInterior; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class IMsoDropLines { + private 'Office.IMsoDropLines_typekey': IMsoDropLines; + private constructor(); + readonly Application: any; + readonly Border: IMsoBorder; + readonly Creator: number; + Delete(): void; + readonly Format: IMsoChartFormat; + readonly Name: string; + readonly Parent: any; + Select(): void; + } + + class IMsoFloor { + private 'Office.IMsoFloor_typekey': IMsoFloor; + private constructor(); + readonly Application: any; + readonly Border: IMsoBorder; + ClearFormats(): any; + readonly Creator: number; + readonly Fill: ChartFillFormat; + readonly Format: IMsoChartFormat; + readonly Interior: IMsoInterior; + readonly Name: string; + readonly Parent: any; + Paste(): void; + PictureType: any; + Select(): any; + Thickness: number; + } + + class IMsoHiLoLines { + private 'Office.IMsoHiLoLines_typekey': IMsoHiLoLines; + private constructor(); + readonly Application: any; + readonly Border: IMsoBorder; + readonly Creator: number; + Delete(): void; + readonly Format: IMsoChartFormat; + readonly Name: string; + readonly Parent: any; + Select(): void; + } + + class IMsoInterior { + private 'Office.IMsoInterior_typekey': IMsoInterior; + private constructor(); + readonly Application: any; + Color: any; + ColorIndex: any; + readonly Creator: number; + InvertIfNegative: any; + readonly Parent: any; + Pattern: any; + PatternColor: any; + PatternColorIndex: any; + } + + class IMsoLegend { + private 'Office.IMsoLegend_typekey': IMsoLegend; + private constructor(); + readonly Application: any; + AutoScaleFont: any; + readonly Border: IMsoBorder; + Clear(): any; + readonly Creator: number; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Font: ChartFont; + readonly Format: IMsoChartFormat; + Height: number; + IncludeInLayout: boolean; + readonly Interior: IMsoInterior; + Left: number; + LegendEntries(Index?: any): any; + readonly Name: string; + readonly Parent: any; + Position: XlLegendPosition; + Select(): any; + Shadow: boolean; + Top: number; + Width: number; + } + + class IMsoPlotArea { + private 'Office.IMsoPlotArea_typekey': IMsoPlotArea; + private constructor(); + readonly Application: any; + readonly Border: IMsoBorder; + ClearFormats(): any; + readonly Creator: number; + readonly Fill: ChartFillFormat; + readonly Format: IMsoChartFormat; + Height: number; + InsideHeight: number; + InsideLeft: number; + InsideTop: number; + InsideWidth: number; + readonly Interior: IMsoInterior; + Left: number; + readonly Name: string; + readonly Parent: any; + Position: XlChartElementPosition; + Select(): any; + Top: number; + Width: number; + } + + class IMsoSeriesLines { + private 'Office.IMsoSeriesLines_typekey': IMsoSeriesLines; + private constructor(); + readonly Application: any; + readonly Border: IMsoBorder; + readonly Creator: number; + Delete(): any; + readonly Format: IMsoChartFormat; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class IMsoUpBars { + private 'Office.IMsoUpBars_typekey': IMsoUpBars; + private constructor(); + readonly Application: any; + readonly Border: IMsoBorder; + readonly Creator: number; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Format: IMsoChartFormat; + readonly Interior: IMsoInterior; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class IMsoWalls { + private 'Office.IMsoWalls_typekey': IMsoWalls; + private constructor(); + readonly Application: any; + readonly Border: IMsoBorder; + ClearFormats(): any; + readonly Creator: number; + readonly Fill: ChartFillFormat; + readonly Format: IMsoChartFormat; + readonly Interior: IMsoInterior; + readonly Name: string; + readonly Parent: any; + Paste(): void; + PictureType: any; + PictureUnit: any; + Select(): any; + Thickness: number; + } + + class LanguageSettings { + private 'Office.LanguageSettings_typekey': LanguageSettings; + private constructor(); + readonly Application: any; + readonly Creator: number; + LanguageID(Id: MsoAppLanguageID): number; + LanguagePreferredForEditing(lid: MsoLanguageID): boolean; + readonly Parent: any; + } + + class LineFormat { + private 'Office.LineFormat_typekey': LineFormat; + private constructor(); + readonly Application: any; + BackColor: ColorFormat; + BeginArrowheadLength: MsoArrowheadLength; + BeginArrowheadStyle: MsoArrowheadStyle; + BeginArrowheadWidth: MsoArrowheadWidth; + readonly Creator: number; + DashStyle: MsoLineDashStyle; + EndArrowheadLength: MsoArrowheadLength; + EndArrowheadStyle: MsoArrowheadStyle; + EndArrowheadWidth: MsoArrowheadWidth; + ForeColor: ColorFormat; + InsetPen: MsoTriState; + readonly Parent: any; + Pattern: MsoPatternType; + Style: MsoLineStyle; + Transparency: number; + Visible: MsoTriState; + Weight: number; + } + + class MetaProperties { + private 'Office.MetaProperties_typekey': MetaProperties; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + GetItemByInternalName(InternalName: string): MetaProperty; + Item(Index: any): MetaProperty; + readonly Parent: any; + readonly SchemaXml: string; + Validate(): string; + readonly ValidationError: string; + } + + class MetaProperty { + private 'Office.MetaProperty_typekey': MetaProperty; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Id: string; + readonly IsReadOnly: boolean; + readonly IsRequired: boolean; + readonly Name: string; + readonly Parent: any; + readonly Type: MsoMetaPropertyType; + Validate(): string; + readonly ValidationError: string; + Value: any; + } + + class MsoDebugOptions { + private 'Office.MsoDebugOptions_typekey': MsoDebugOptions; + private constructor(); + readonly Application: any; + readonly Creator: number; + FeatureReports: number; + OutputToDebugger: boolean; + OutputToFile: boolean; + OutputToMessageBox: boolean; + readonly UnitTestManager: any; + } + + class MsoEnvelope { + private 'Office.MsoEnvelope_typekey': MsoEnvelope; + private constructor(); + readonly CommandBars: any; + Introduction: string; + readonly Item: any; + readonly Parent: any; + } + + class NewFile { + private 'Office.NewFile_typekey': NewFile; + private constructor(); + Add(FileName: string, Section?: any, DisplayName?: any, Action?: any): boolean; + readonly Application: any; + readonly Creator: number; + Remove(FileName: string, Section?: any, DisplayName?: any, Action?: any): boolean; + } + + class OfficeTheme { + private 'Office.OfficeTheme_typekey': OfficeTheme; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Parent: any; + readonly ThemeColorScheme: ThemeColorScheme; + readonly ThemeEffectScheme: ThemeEffectScheme; + readonly ThemeFontScheme: ThemeFontScheme; + } + + class ParagraphFormat2 { + private 'Office.ParagraphFormat2_typekey': ParagraphFormat2; + private constructor(); + Alignment: MsoParagraphAlignment; + readonly Application: any; + BaselineAlignment: MsoBaselineAlignment; + readonly Bullet: BulletFormat2; + readonly Creator: number; + FarEastLineBreakLevel: MsoTriState; + FirstLineIndent: number; + HangingPunctuation: MsoTriState; + IndentLevel: number; + LeftIndent: number; + LineRuleAfter: MsoTriState; + LineRuleBefore: MsoTriState; + LineRuleWithin: MsoTriState; + readonly Parent: any; + RightIndent: number; + SpaceAfter: number; + SpaceBefore: number; + SpaceWithin: number; + readonly TabStops: TabStops2; + TextDirection: MsoTextDirection; + WordWrap: MsoTriState; + } + + class Permission { + private 'Office.Permission_typekey': Permission; + private constructor(); + Add(UserId: string, Permission?: any, ExpirationDate?: any): UserPermission; + readonly Application: any; + ApplyPolicy(FileName: string): void; + readonly Count: number; + readonly Creator: number; + DocumentAuthor: string; + Enabled: boolean; + EnableTrustedBrowser: boolean; + Item(Index: any): UserPermission; + readonly Parent: any; + readonly PermissionFromPolicy: boolean; + readonly PolicyDescription: string; + readonly PolicyName: string; + RemoveAll(): void; + RequestPermissionURL: string; + StoreLicenses: boolean; + } + + class PickerDialog { + private 'Office.PickerDialog_typekey': PickerDialog; + private constructor(); + readonly Application: any; + CreatePickerResults(): PickerResults; + readonly Creator: number; + DataHandlerId: string; + readonly Properties: PickerProperties; + Resolve(TokenText: string, duplicateDlgMode: number): PickerResults; + + /** + * @param boolean [IsMultiSelect=true] + * @param Office.PickerResults [ExistingResults=0] + */ + Show(IsMultiSelect?: boolean, ExistingResults?: PickerResults): PickerResults; + Title: string; + } + + class PickerField { + private 'Office.PickerField_typekey': PickerField; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly IsHidden: boolean; + readonly Name: string; + readonly Type: MsoPickerField; + } + + class PickerFields { + private 'Office.PickerFields_typekey': PickerFields; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): PickerField; + } + + class PickerProperties { + private 'Office.PickerProperties_typekey': PickerProperties; + private constructor(); + Add(Id: string, Value: string, Type: MsoPickerField): PickerProperty; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): PickerProperty; + Remove(Id: string): void; + } + + class PickerProperty { + private 'Office.PickerProperty_typekey': PickerProperty; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Id: string; + readonly Type: MsoPickerField; + readonly Value: any; + } + + class PickerResult { + private 'Office.PickerResult_typekey': PickerResult; + private constructor(); + readonly Application: any; + readonly Creator: number; + DisplayName: string; + readonly DuplicateResults: any; + Fields: PickerFields; + readonly Id: string; + ItemData: any; + SIPId: string; + SubItems: any; + Type: string; + } + + class PickerResults { + private 'Office.PickerResults_typekey': PickerResults; + private constructor(); + + /** @param string [SIPId=''] */ + Add(Id: string, DisplayName: string, Type: string, SIPId?: string, ItemData?: any, SubItems?: any): PickerResult; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): PickerResult; + } + + class PictureEffect { + private 'Office.PictureEffect_typekey': PictureEffect; + private constructor(); + readonly Application: any; + readonly Creator: number; + Delete(): void; + readonly EffectParameters: EffectParameters; + Position: number; + readonly Type: MsoPictureEffectType; + Visible: MsoTriState; + } + + class PictureEffects { + private 'Office.PictureEffects_typekey': PictureEffects; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + + /** @param number [Index=-1] */ + Delete(Index?: number): void; + + /** @param number [Position=-1] */ + Insert(EffectType: MsoPictureEffectType, Position?: number): PictureEffect; + Item(Index: number): PictureEffect; + } + + class PictureFormat { + private 'Office.PictureFormat_typekey': PictureFormat; + private constructor(); + readonly Application: any; + Brightness: number; + ColorType: MsoPictureColorType; + Contrast: number; + readonly Creator: number; + readonly Crop: Crop; + CropBottom: number; + CropLeft: number; + CropRight: number; + CropTop: number; + IncrementBrightness(Increment: number): void; + IncrementContrast(Increment: number): void; + readonly Parent: any; + TransparencyColor: number; + TransparentBackground: MsoTriState; + } + + class PolicyItem { + private 'Office.PolicyItem_typekey': PolicyItem; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Data: string; + readonly Description: string; + readonly Id: string; + readonly Name: string; + readonly Parent: any; + } + + class PropertyTest { + private 'Office.PropertyTest_typekey': PropertyTest; + private constructor(); + readonly Application: any; + readonly Condition: MsoCondition; + readonly Connector: MsoConnector; + readonly Creator: number; + readonly Name: string; + readonly SecondValue: any; + readonly Value: any; + } + + class PropertyTests { + private 'Office.PropertyTests_typekey': PropertyTests; + private constructor(); + + /** @param Office.MsoConnector [Connector=1] */ + Add(Name: string, Condition: MsoCondition, Value: any, SecondValue: any, Connector?: MsoConnector): void; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): PropertyTest; + Remove(Index: number): void; + } + + class ReflectionFormat { + private 'Office.ReflectionFormat_typekey': ReflectionFormat; + private constructor(); + readonly Application: any; + Blur: number; + readonly Creator: number; + Offset: number; + Size: number; + Transparency: number; + Type: MsoReflectionType; + } + + class Ruler2 { + private 'Office.Ruler2_typekey': Ruler2; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Levels: RulerLevels2; + readonly Parent: any; + readonly TabStops: TabStops2; + } + + class RulerLevel2 { + private 'Office.RulerLevel2_typekey': RulerLevel2; + private constructor(); + readonly Application: any; + readonly Creator: number; + FirstMargin: number; + LeftMargin: number; + readonly Parent: any; + } + + class RulerLevels2 { + private 'Office.RulerLevels2_typekey': RulerLevels2; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): RulerLevel2; + readonly Parent: any; + } + + class ScopeFolder { + private 'Office.ScopeFolder_typekey': ScopeFolder; + private constructor(); + AddToSearchFolders(): void; + readonly Application: any; + readonly Creator: number; + readonly Name: string; + readonly Path: string; + readonly ScopeFolders: ScopeFolders; + } + + class ScopeFolders { + private 'Office.ScopeFolders_typekey': ScopeFolders; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): ScopeFolder; + } + + class Script { + private 'Office.Script_typekey': Script; + private constructor(); + readonly Application: any; + readonly Creator: number; + Delete(): void; + Extended: string; + Id: string; + Language: MsoScriptLanguage; + readonly Location: MsoScriptLocation; + readonly Parent: any; + ScriptText: string; + readonly Shape: any; + } + + class Scripts { + private 'Office.Scripts_typekey': Scripts; + private constructor(); + + /** + * @param Office.MsoScriptLocation [Location=2] + * @param Office.MsoScriptLanguage [Language=2] + * @param string [Id=''] + * @param string [Extended=''] + * @param string [ScriptText=''] + */ + Add(Anchor?: any, Location?: MsoScriptLocation, Language?: MsoScriptLanguage, Id?: string, Extended?: string, ScriptText?: string): Script; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Delete(): void; + Item(Index: any): Script; + readonly Parent: any; + } + + class SearchFolders { + private 'Office.SearchFolders_typekey': SearchFolders; + private constructor(); + Add(ScopeFolder: ScopeFolder): void; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): ScopeFolder; + Remove(Index: number): void; + } + + class SearchScope { + private 'Office.SearchScope_typekey': SearchScope; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly ScopeFolder: ScopeFolder; + readonly Type: MsoSearchIn; + } + + class SearchScopes { + private 'Office.SearchScopes_typekey': SearchScopes; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): SearchScope; + } + + class ServerPolicy { + private 'Office.ServerPolicy_typekey': ServerPolicy; + private constructor(); + readonly Application: any; + readonly BlockPreview: boolean; + readonly Count: number; + readonly Creator: number; + readonly Description: string; + readonly Id: string; + Item(Index: any): PolicyItem; + readonly Name: string; + readonly Parent: any; + readonly Statement: string; + } + + class ShadowFormat { + private 'Office.ShadowFormat_typekey': ShadowFormat; + private constructor(); + readonly Application: any; + Blur: number; + readonly Creator: number; + ForeColor: ColorFormat; + IncrementOffsetX(Increment: number): void; + IncrementOffsetY(Increment: number): void; + Obscured: MsoTriState; + OffsetX: number; + OffsetY: number; + readonly Parent: any; + RotateWithShape: MsoTriState; + Size: number; + Style: MsoShadowStyle; + Transparency: number; + Type: MsoShadowType; + Visible: MsoTriState; + } + + class Shape { + private 'Office.Shape_typekey': Shape; + private constructor(); + readonly Adjustments: Adjustments; + AlternativeText: string; + readonly Application: any; + Apply(): void; + AutoShapeType: MsoAutoShapeType; + BackgroundStyle: MsoBackgroundStyleIndex; + BlackWhiteMode: MsoBlackWhiteMode; + readonly Callout: CalloutFormat; + CanvasCropBottom(Increment: number): void; + CanvasCropLeft(Increment: number): void; + CanvasCropRight(Increment: number): void; + CanvasCropTop(Increment: number): void; + readonly CanvasItems: CanvasShapes; + readonly Chart: IMsoChart; + readonly Child: MsoTriState; + readonly ConnectionSiteCount: number; + readonly Connector: MsoTriState; + readonly ConnectorFormat: ConnectorFormat; + ConvertTextToSmartArt(Layout: SmartArtLayout): void; + Copy(): void; + readonly Creator: number; + Cut(): void; + Delete(): void; + readonly Diagram: IMsoDiagram; + readonly DiagramNode: DiagramNode; + Duplicate(): Shape; + readonly Fill: FillFormat; + Flip(FlipCmd: MsoFlipCmd): void; + readonly Glow: GlowFormat; + readonly GroupItems: GroupShapes; + readonly HasChart: MsoTriState; + readonly HasDiagram: MsoTriState; + readonly HasDiagramNode: MsoTriState; + readonly HasSmartArt: MsoTriState; + Height: number; + readonly HorizontalFlip: MsoTriState; + readonly Id: number; + IncrementLeft(Increment: number): void; + IncrementRotation(Increment: number): void; + IncrementTop(Increment: number): void; + Left: number; + readonly Line: LineFormat; + LockAspectRatio: MsoTriState; + Name: string; + readonly Nodes: ShapeNodes; + readonly Parent: any; + readonly ParentGroup: Shape; + PickUp(): void; + readonly PictureFormat: PictureFormat; + readonly Reflection: ReflectionFormat; + RerouteConnections(): void; + Rotation: number; + readonly RTF: string; + + /** @param Office.MsoScaleFrom [fScale=0] */ + ScaleHeight(Factor: number, RelativeToOriginalSize: MsoTriState, fScale?: MsoScaleFrom): void; + + /** @param Office.MsoScaleFrom [fScale=0] */ + ScaleWidth(Factor: number, RelativeToOriginalSize: MsoTriState, fScale?: MsoScaleFrom): void; + readonly Script: Script; + Select(Replace?: any): void; + SetShapesDefaultProperties(): void; + readonly Shadow: ShadowFormat; + ShapeStyle: MsoShapeStyleIndex; + readonly SmartArt: SmartArt; + readonly SoftEdge: SoftEdgeFormat; + readonly TextEffect: TextEffectFormat; + readonly TextFrame: TextFrame; + readonly TextFrame2: TextFrame2; + readonly ThreeD: ThreeDFormat; + Title: string; + Top: number; + readonly Type: MsoShapeType; + Ungroup(): ShapeRange; + readonly VerticalFlip: MsoTriState; + readonly Vertices: any; + Visible: MsoTriState; + Width: number; + ZOrder(ZOrderCmd: MsoZOrderCmd): void; + readonly ZOrderPosition: number; + } + + class ShapeNode { + private 'Office.ShapeNode_typekey': ShapeNode; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly EditingType: MsoEditingType; + readonly Parent: any; + readonly Points: any; + readonly SegmentType: MsoSegmentType; + } + + class ShapeNodes { + private 'Office.ShapeNodes_typekey': ShapeNodes; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Delete(Index: number): void; + + /** + * @param number [X2=0] + * @param number [Y2=0] + * @param number [X3=0] + * @param number [Y3=0] + */ + Insert(Index: number, SegmentType: MsoSegmentType, EditingType: MsoEditingType, X1: number, Y1: number, X2?: number, Y2?: number, X3?: number, Y3?: number): void; + Item(Index: any): ShapeNode; + readonly Parent: any; + SetEditingType(Index: number, EditingType: MsoEditingType): void; + SetPosition(Index: number, X1: number, Y1: number): void; + SetSegmentType(Index: number, SegmentType: MsoSegmentType): void; + } + + class ShapeRange { + private 'Office.ShapeRange_typekey': ShapeRange; + private constructor(); + readonly Adjustments: Adjustments; + Align(AlignCmd: MsoAlignCmd, RelativeTo: MsoTriState): void; + AlternativeText: string; + readonly Application: any; + Apply(): void; + AutoShapeType: MsoAutoShapeType; + BackgroundStyle: MsoBackgroundStyleIndex; + BlackWhiteMode: MsoBlackWhiteMode; + readonly Callout: CalloutFormat; + CanvasCropBottom(Increment: number): void; + CanvasCropLeft(Increment: number): void; + CanvasCropRight(Increment: number): void; + CanvasCropTop(Increment: number): void; + readonly CanvasItems: CanvasShapes; + readonly Chart: IMsoChart; + readonly Child: MsoTriState; + readonly ConnectionSiteCount: number; + readonly Connector: MsoTriState; + readonly ConnectorFormat: ConnectorFormat; + Copy(): void; + readonly Count: number; + readonly Creator: number; + Cut(): void; + Delete(): void; + readonly Diagram: IMsoDiagram; + readonly DiagramNode: DiagramNode; + Distribute(DistributeCmd: MsoDistributeCmd, RelativeTo: MsoTriState): void; + Duplicate(): ShapeRange; + readonly Fill: FillFormat; + Flip(FlipCmd: MsoFlipCmd): void; + readonly Glow: GlowFormat; + Group(): Shape; + readonly GroupItems: GroupShapes; + readonly HasChart: MsoTriState; + readonly HasDiagram: MsoTriState; + readonly HasDiagramNode: MsoTriState; + Height: number; + readonly HorizontalFlip: MsoTriState; + readonly Id: number; + IncrementLeft(Increment: number): void; + IncrementRotation(Increment: number): void; + IncrementTop(Increment: number): void; + Item(Index: any): Shape; + Left: number; + readonly Line: LineFormat; + LockAspectRatio: MsoTriState; + Name: string; + readonly Nodes: ShapeNodes; + readonly Parent: any; + readonly ParentGroup: Shape; + PickUp(): void; + readonly PictureFormat: PictureFormat; + readonly Reflection: ReflectionFormat; + Regroup(): Shape; + RerouteConnections(): void; + Rotation: number; + readonly RTF: string; + + /** @param Office.MsoScaleFrom [fScale=0] */ + ScaleHeight(Factor: number, RelativeToOriginalSize: MsoTriState, fScale?: MsoScaleFrom): void; + + /** @param Office.MsoScaleFrom [fScale=0] */ + ScaleWidth(Factor: number, RelativeToOriginalSize: MsoTriState, fScale?: MsoScaleFrom): void; + readonly Script: Script; + Select(Replace?: any): void; + SetShapesDefaultProperties(): void; + readonly Shadow: ShadowFormat; + ShapeStyle: MsoShapeStyleIndex; + readonly SoftEdge: SoftEdgeFormat; + readonly TextEffect: TextEffectFormat; + readonly TextFrame: TextFrame; + readonly TextFrame2: TextFrame2; + readonly ThreeD: ThreeDFormat; + Title: string; + Top: number; + readonly Type: MsoShapeType; + Ungroup(): ShapeRange; + readonly VerticalFlip: MsoTriState; + readonly Vertices: any; + Visible: MsoTriState; + Width: number; + ZOrder(ZOrderCmd: MsoZOrderCmd): void; + readonly ZOrderPosition: number; + } + + class Shapes { + private 'Office.Shapes_typekey': Shapes; + private constructor(); + AddCallout(Type: MsoCalloutType, Left: number, Top: number, Width: number, Height: number): Shape; + AddCanvas(Left: number, Top: number, Width: number, Height: number): Shape; + + /** + * @param Office.XlChartType [Type=-1] + * @param number [Left=-1] + * @param number [Top=-1] + * @param number [Width=-1] + * @param number [Height=-1] + */ + AddChart(Type?: XlChartType, Left?: number, Top?: number, Width?: number, Height?: number): Shape; + AddConnector(Type: MsoConnectorType, BeginX: number, BeginY: number, EndX: number, EndY: number): Shape; + AddCurve(SafeArrayOfPoints: any): Shape; + AddDiagram(Type: MsoDiagramType, Left: number, Top: number, Width: number, Height: number): Shape; + AddLabel(Orientation: MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape; + AddLine(BeginX: number, BeginY: number, EndX: number, EndY: number): Shape; + + /** + * @param number [Width=-1] + * @param number [Height=-1] + */ + AddPicture(FileName: string, LinkToFile: MsoTriState, SaveWithDocument: MsoTriState, Left: number, Top: number, Width?: number, Height?: number): Shape; + AddPolyline(SafeArrayOfPoints: any): Shape; + AddShape(Type: MsoAutoShapeType, Left: number, Top: number, Width: number, Height: number): Shape; + + /** + * @param number [Left=-1] + * @param number [Top=-1] + * @param number [Width=-1] + * @param number [Height=-1] + */ + AddSmartArt(Layout: SmartArtLayout, Left?: number, Top?: number, Width?: number, Height?: number): Shape; + AddTable(NumRows: number, NumColumns: number, Left: number, Top: number, Width: number, Height: number): Shape; + AddTextbox(Orientation: MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape; + AddTextEffect(PresetTextEffect: MsoPresetTextEffect, Text: string, FontName: string, FontSize: number, FontBold: MsoTriState, FontItalic: MsoTriState, Left: number, Top: number): Shape; + readonly Application: any; + readonly Background: Shape; + BuildFreeform(EditingType: MsoEditingType, X1: number, Y1: number): FreeformBuilder; + readonly Count: number; + readonly Creator: number; + readonly Default: Shape; + Item(Index: any): Shape; + readonly Parent: any; + Range(Index: any): ShapeRange; + SelectAll(): void; + } + + class SharedWorkspace { + private 'Office.SharedWorkspace_typekey': SharedWorkspace; + private constructor(); + readonly Application: any; + readonly Connected: boolean; + CreateNew(URL?: any, Name?: any): void; + readonly Creator: number; + Delete(): void; + Disconnect(): void; + readonly Files: SharedWorkspaceFiles; + readonly Folders: SharedWorkspaceFolders; + readonly LastRefreshed: any; + readonly Links: SharedWorkspaceLinks; + readonly Members: SharedWorkspaceMembers; + Name: string; + readonly Parent: any; + Refresh(): void; + RemoveDocument(): void; + SourceURL: string; + readonly Tasks: SharedWorkspaceTasks; + readonly URL: string; + } + + class SharedWorkspaceFile { + private 'Office.SharedWorkspaceFile_typekey': SharedWorkspaceFile; + private constructor(); + readonly Application: any; + readonly CreatedBy: string; + readonly CreatedDate: any; + readonly Creator: number; + Delete(): void; + readonly ModifiedBy: string; + readonly ModifiedDate: any; + readonly Parent: any; + readonly URL: string; + } + + class SharedWorkspaceFiles { + private 'Office.SharedWorkspaceFiles_typekey': SharedWorkspaceFiles; + private constructor(); + Add(FileName: string, ParentFolder?: any, OverwriteIfFileAlreadyExists?: any, KeepInSync?: any): SharedWorkspaceFile; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): SharedWorkspaceFile; + readonly ItemCountExceeded: boolean; + readonly Parent: any; + } + + class SharedWorkspaceFolder { + private 'Office.SharedWorkspaceFolder_typekey': SharedWorkspaceFolder; + private constructor(); + readonly Application: any; + readonly Creator: number; + Delete(DeleteEventIfFolderContainsFiles?: any): void; + readonly FolderName: string; + readonly Parent: any; + } + + class SharedWorkspaceFolders { + private 'Office.SharedWorkspaceFolders_typekey': SharedWorkspaceFolders; + private constructor(); + Add(FolderName: string, ParentFolder?: any): SharedWorkspaceFolder; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): SharedWorkspaceFolder; + readonly ItemCountExceeded: boolean; + readonly Parent: any; + } + + class SharedWorkspaceLink { + private 'Office.SharedWorkspaceLink_typekey': SharedWorkspaceLink; + private constructor(); + readonly Application: any; + readonly CreatedBy: string; + readonly CreatedDate: any; + readonly Creator: number; + Delete(): void; + Description: string; + readonly ModifiedBy: string; + readonly ModifiedDate: any; + Notes: string; + readonly Parent: any; + Save(): void; + URL: string; + } + + class SharedWorkspaceLinks { + private 'Office.SharedWorkspaceLinks_typekey': SharedWorkspaceLinks; + private constructor(); + Add(URL: string, Description?: any, Notes?: any): SharedWorkspaceLink; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): SharedWorkspaceLink; + readonly ItemCountExceeded: boolean; + readonly Parent: any; + } + + class SharedWorkspaceMember { + private 'Office.SharedWorkspaceMember_typekey': SharedWorkspaceMember; + private constructor(); + readonly Application: any; + readonly Creator: number; + Delete(): void; + readonly DomainName: string; + readonly Email: string; + readonly Id: string; + readonly Name: string; + readonly Parent: any; + } + + class SharedWorkspaceMembers { + private 'Office.SharedWorkspaceMembers_typekey': SharedWorkspaceMembers; + private constructor(); + Add(Email: string, DomainName: string, DisplayName: string, Role?: any): SharedWorkspaceMember; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): SharedWorkspaceMember; + readonly ItemCountExceeded: boolean; + readonly Parent: any; + } + + class SharedWorkspaceTask { + private 'Office.SharedWorkspaceTask_typekey': SharedWorkspaceTask; + private constructor(); + readonly Application: any; + AssignedTo: string; + readonly CreatedBy: string; + readonly CreatedDate: any; + readonly Creator: number; + Delete(): void; + Description: string; + DueDate: any; + readonly ModifiedBy: string; + readonly ModifiedDate: any; + readonly Parent: any; + Priority: MsoSharedWorkspaceTaskPriority; + Save(): void; + Status: MsoSharedWorkspaceTaskStatus; + Title: string; + } + + class SharedWorkspaceTasks { + private 'Office.SharedWorkspaceTasks_typekey': SharedWorkspaceTasks; + private constructor(); + Add(Title: string, Status?: any, Priority?: any, Assignee?: any, Description?: any, DueDate?: any): SharedWorkspaceTask; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): SharedWorkspaceTask; + readonly ItemCountExceeded: boolean; + readonly Parent: any; + } + + class Signature { + private 'Office.Signature_typekey': Signature; + private constructor(); + readonly Application: any; + AttachCertificate: boolean; + readonly CanSetup: boolean; + readonly Creator: number; + Delete(): void; + readonly Details: SignatureInfo; + readonly ExpireDate: any; + readonly IsCertificateExpired: boolean; + readonly IsCertificateRevoked: boolean; + readonly IsSignatureLine: boolean; + readonly IsSigned: boolean; + readonly Issuer: string; + readonly IsValid: boolean; + readonly Parent: any; + readonly Setup: SignatureSetup; + ShowDetails(): void; + Sign(varSigImg?: any, varDelSuggSigner?: any, varDelSuggSignerLine2?: any, varDelSuggSignerEmail?: any): void; + readonly SignatureLineShape: any; + readonly SignDate: any; + readonly Signer: string; + readonly SortHint: number; + } + + class SignatureInfo { + private 'Office.SignatureInfo_typekey': SignatureInfo; + private constructor(); + readonly Application: any; + readonly CertificateVerificationResults: CertificateVerificationResults; + readonly ContentVerificationResults: ContentVerificationResults; + readonly Creator: number; + GetCertificateDetail(certdet: CertificateDetail): any; + GetSignatureDetail(sigdet: SignatureDetail): any; + readonly IsCertificateExpired: boolean; + readonly IsCertificateRevoked: boolean; + readonly IsCertificateUntrusted: boolean; + readonly IsValid: boolean; + readonly ReadOnly: boolean; + SelectCertificateDetailByThumbprint(bstrThumbprint: string): void; + SelectSignatureCertificate(ParentWindow: any): void; + ShowSignatureCertificate(ParentWindow: any): void; + SignatureComment: string; + SignatureImage: stdole.IPictureDisp; + readonly SignatureProvider: string; + SignatureText: string; + } + + class SignatureSet { + private 'Office.SignatureSet_typekey': SignatureSet; + private constructor(); + Add(): Signature; + AddNonVisibleSignature(varSigProv?: any): Signature; + AddSignatureLine(varSigProv?: any): Signature; + readonly Application: any; + readonly CanAddSignatureLine: boolean; + Commit(): void; + readonly Count: number; + readonly Creator: number; + Item(iSig: number): Signature; + readonly Parent: any; + readonly ShowSignaturesPane: boolean; + Subset: MsoSignatureSubset; + } + + class SignatureSetup { + private 'Office.SignatureSetup_typekey': SignatureSetup; + private constructor(); + AdditionalXml: string; + AllowComments: boolean; + readonly Application: any; + readonly Creator: number; + readonly Id: string; + readonly ReadOnly: boolean; + ShowSignDate: boolean; + readonly SignatureProvider: string; + SigningInstructions: string; + SuggestedSigner: string; + SuggestedSignerEmail: string; + SuggestedSignerLine2: string; + } + + class SmartArt { + private 'Office.SmartArt_typekey': SmartArt; + private constructor(); + readonly AllNodes: SmartArtNodes; + readonly Application: any; + Color: SmartArtColor; + readonly Creator: number; + Layout: SmartArtLayout; + readonly Nodes: SmartArtNodes; + readonly Parent: any; + QuickStyle: SmartArtQuickStyle; + Reset(): void; + Reverse: MsoTriState; + } + + class SmartArtColor { + private 'Office.SmartArtColor_typekey': SmartArtColor; + private constructor(); + readonly Application: any; + readonly Category: string; + readonly Creator: number; + readonly Description: string; + readonly Id: string; + readonly Name: string; + readonly Parent: any; + } + + class SmartArtColors { + private 'Office.SmartArtColors_typekey': SmartArtColors; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): SmartArtColor; + readonly Parent: any; + } + + class SmartArtLayout { + private 'Office.SmartArtLayout_typekey': SmartArtLayout; + private constructor(); + readonly Application: any; + readonly Category: string; + readonly Creator: number; + readonly Description: string; + readonly Id: string; + readonly Name: string; + readonly Parent: any; + } + + class SmartArtLayouts { + private 'Office.SmartArtLayouts_typekey': SmartArtLayouts; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): SmartArtLayout; + readonly Parent: any; + } + + class SmartArtNode { + private 'Office.SmartArtNode_typekey': SmartArtNode; + private constructor(); + + /** + * @param Office.MsoSmartArtNodePosition [Position=1] + * @param Office.MsoSmartArtNodeType [Type=1] + */ + AddNode(Position?: MsoSmartArtNodePosition, Type?: MsoSmartArtNodeType): SmartArtNode; + readonly Application: any; + readonly Creator: number; + Delete(): void; + Demote(): void; + readonly Hidden: MsoTriState; + Larger(): void; + readonly Level: number; + readonly Nodes: SmartArtNodes; + OrgChartLayout: MsoOrgChartLayoutType; + readonly Parent: any; + readonly ParentNode: SmartArtNode; + Promote(): void; + ReorderDown(): void; + ReorderUp(): void; + readonly Shapes: ShapeRange; + Smaller(): void; + readonly TextFrame2: TextFrame2; + readonly Type: MsoSmartArtNodeType; + } + + class SmartArtNodes { + private 'Office.SmartArtNodes_typekey': SmartArtNodes; + private constructor(); + Add(): SmartArtNode; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): SmartArtNode; + readonly Parent: any; + } + + class SmartArtQuickStyle { + private 'Office.SmartArtQuickStyle_typekey': SmartArtQuickStyle; + private constructor(); + readonly Application: any; + readonly Category: string; + readonly Creator: number; + readonly Description: string; + readonly Id: string; + readonly Name: string; + readonly Parent: any; + } + + class SmartArtQuickStyles { + private 'Office.SmartArtQuickStyles_typekey': SmartArtQuickStyles; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): SmartArtQuickStyle; + readonly Parent: any; + } + + class SmartDocument { + private 'Office.SmartDocument_typekey': SmartDocument; + private constructor(); + readonly Application: any; + readonly Creator: number; + + /** @param boolean [ConsiderAllSchemas=false] */ + PickSolution(ConsiderAllSchemas?: boolean): void; + RefreshPane(): void; + SolutionID: string; + SolutionURL: string; + } + + class SoftEdgeFormat { + private 'Office.SoftEdgeFormat_typekey': SoftEdgeFormat; + private constructor(); + readonly Application: any; + readonly Creator: number; + Radius: number; + Type: MsoSoftEdgeType; + } + + class Sync { + private 'Office.Sync_typekey': Sync; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly ErrorType: MsoSyncErrorType; + GetUpdate(): void; + readonly LastSyncTime: any; + OpenVersion(SyncVersionType: MsoSyncVersionType): void; + readonly Parent: any; + PutUpdate(): void; + ResolveConflict(SyncConflictResolution: MsoSyncConflictResolutionType): void; + readonly Status: MsoSyncStatusType; + Unsuspend(): void; + readonly WorkspaceLastChangedBy: string; + } + + class TabStop2 { + private 'Office.TabStop2_typekey': TabStop2; + private constructor(); + readonly Application: any; + Clear(): void; + readonly Creator: number; + readonly Parent: any; + Position: number; + Type: MsoTabStopType; + } + + class TabStops2 { + private 'Office.TabStops2_typekey': TabStops2; + private constructor(); + Add(Type: MsoTabStopType, Position: number): TabStop2; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + DefaultSpacing: number; + Item(Index: any): TabStop2; + readonly Parent: any; + } + + class TextColumn2 { + private 'Office.TextColumn2_typekey': TextColumn2; + private constructor(); + readonly Application: any; + readonly Creator: number; + Number: number; + Spacing: number; + TextDirection: MsoTextDirection; + } + + class TextEffectFormat { + private 'Office.TextEffectFormat_typekey': TextEffectFormat; + private constructor(); + Alignment: MsoTextEffectAlignment; + readonly Application: any; + readonly Creator: number; + FontBold: MsoTriState; + FontItalic: MsoTriState; + FontName: string; + FontSize: number; + KernedPairs: MsoTriState; + NormalizedHeight: MsoTriState; + readonly Parent: any; + PresetShape: MsoPresetTextEffectShape; + PresetTextEffect: MsoPresetTextEffect; + RotatedChars: MsoTriState; + Text: string; + ToggleVerticalText(): void; + Tracking: number; + } + + class TextFrame { + private 'Office.TextFrame_typekey': TextFrame; + private constructor(); + readonly Application: any; + readonly Creator: number; + MarginBottom: number; + MarginLeft: number; + MarginRight: number; + MarginTop: number; + Orientation: MsoTextOrientation; + readonly Parent: any; + } + + class TextFrame2 { + private 'Office.TextFrame2_typekey': TextFrame2; + private constructor(); + readonly Application: any; + AutoSize: MsoAutoSize; + readonly Column: TextColumn2; + readonly Creator: number; + DeleteText(): void; + readonly HasText: MsoTriState; + HorizontalAnchor: MsoHorizontalAnchor; + MarginBottom: number; + MarginLeft: number; + MarginRight: number; + MarginTop: number; + NoTextRotation: MsoTriState; + Orientation: MsoTextOrientation; + readonly Parent: any; + PathFormat: MsoPathFormat; + readonly Ruler: Ruler2; + readonly TextRange: TextRange2; + readonly ThreeD: ThreeDFormat; + VerticalAnchor: MsoVerticalAnchor; + WarpFormat: MsoWarpFormat; + WordArtformat: MsoPresetTextEffect; + WordWrap: MsoTriState; + } + + class TextRange2 { + private 'Office.TextRange2_typekey': TextRange2; + private constructor(); + AddPeriods(): void; + readonly Application: any; + readonly BoundHeight: number; + readonly BoundLeft: number; + readonly BoundTop: number; + readonly BoundWidth: number; + ChangeCase(Type: MsoTextChangeCase): void; + + /** + * @param number [Start=-1] + * @param number [Length=-1] + */ + Characters(Start?: number, Length?: number): TextRange2; + Copy(): void; + readonly Count: number; + readonly Creator: number; + Cut(): void; + Delete(): void; + + /** + * @param number [After=0] + * @param Office.MsoTriState [MatchCase=0] + * @param Office.MsoTriState [WholeWords=0] + */ + Find(FindWhat: string, After?: number, MatchCase?: MsoTriState, WholeWords?: MsoTriState): TextRange2; + readonly Font: Font2; + + /** @param string [NewText=''] */ + InsertAfter(NewText?: string): TextRange2; + + /** @param string [NewText=''] */ + InsertBefore(NewText?: string): TextRange2; + + /** @param Office.MsoTriState [Unicode=0] */ + InsertSymbol(FontName: string, CharNumber: number, Unicode?: MsoTriState): TextRange2; + Item(Index: any): TextRange2; + LanguageID: MsoLanguageID; + readonly Length: number; + + /** + * @param number [Start=-1] + * @param number [Length=-1] + */ + Lines(Start?: number, Length?: number): TextRange2; + LtrRun(): void; + + /** + * @param number [Start=-1] + * @param number [Length=-1] + */ + MathZones(Start?: number, Length?: number): TextRange2; + readonly ParagraphFormat: ParagraphFormat2; + + /** + * @param number [Start=-1] + * @param number [Length=-1] + */ + Paragraphs(Start?: number, Length?: number): TextRange2; + readonly Parent: any; + Paste(): TextRange2; + PasteSpecial(Format: MsoClipboardFormat): TextRange2; + RemovePeriods(): void; + + /** + * @param number [After=0] + * @param Office.MsoTriState [MatchCase=0] + * @param Office.MsoTriState [WholeWords=0] + */ + Replace(FindWhat: string, ReplaceWhat: string, After?: number, MatchCase?: MsoTriState, WholeWords?: MsoTriState): TextRange2; + RotatedBounds(X1: number, Y1: number, X2: number, Y2: number, X3: number, Y3: number, x4: number, y4: number): void; + RtlRun(): void; + + /** + * @param number [Start=-1] + * @param number [Length=-1] + */ + Runs(Start?: number, Length?: number): TextRange2; + Select(): void; + + /** + * @param number [Start=-1] + * @param number [Length=-1] + */ + Sentences(Start?: number, Length?: number): TextRange2; + readonly Start: number; + Text: string; + TrimText(): TextRange2; + + /** + * @param number [Start=-1] + * @param number [Length=-1] + */ + Words(Start?: number, Length?: number): TextRange2; + } + + class ThemeColor { + private 'Office.ThemeColor_typekey': ThemeColor; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Parent: any; + RGB: number; + readonly ThemeColorSchemeIndex: MsoThemeColorSchemeIndex; + } + + class ThemeColorScheme { + private 'Office.ThemeColorScheme_typekey': ThemeColorScheme; + private constructor(); + readonly Application: any; + Colors(Index: MsoThemeColorSchemeIndex): ThemeColor; + readonly Count: number; + readonly Creator: number; + GetCustomColor(Name: string): number; + Load(FileName: string): void; + readonly Parent: any; + Save(FileName: string): void; + } + + class ThemeEffectScheme { + private 'Office.ThemeEffectScheme_typekey': ThemeEffectScheme; + private constructor(); + readonly Application: any; + readonly Creator: number; + Load(FileName: string): void; + readonly Parent: any; + } + + class ThemeFont { + private 'Office.ThemeFont_typekey': ThemeFont; + private constructor(); + readonly Application: any; + readonly Creator: number; + Name: string; + readonly Parent: any; + } + + class ThemeFonts { + private 'Office.ThemeFonts_typekey': ThemeFonts; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: MsoFontLanguageIndex): ThemeFont; + readonly Parent: any; + } + + class ThemeFontScheme { + private 'Office.ThemeFontScheme_typekey': ThemeFontScheme; + private constructor(); + readonly Application: any; + readonly Creator: number; + Load(FileName: string): void; + readonly MajorFont: ThemeFonts; + readonly MinorFont: ThemeFonts; + readonly Parent: any; + Save(FileName: string): void; + } + + class ThreeDFormat { + private 'Office.ThreeDFormat_typekey': ThreeDFormat; + private constructor(); + readonly Application: any; + BevelBottomDepth: number; + BevelBottomInset: number; + BevelBottomType: MsoBevelType; + BevelTopDepth: number; + BevelTopInset: number; + BevelTopType: MsoBevelType; + readonly ContourColor: ColorFormat; + ContourWidth: number; + readonly Creator: number; + Depth: number; + readonly ExtrusionColor: ColorFormat; + ExtrusionColorType: MsoExtrusionColorType; + FieldOfView: number; + IncrementRotationHorizontal(Increment: number): void; + IncrementRotationVertical(Increment: number): void; + IncrementRotationX(Increment: number): void; + IncrementRotationY(Increment: number): void; + IncrementRotationZ(Increment: number): void; + LightAngle: number; + readonly Parent: any; + Perspective: MsoTriState; + readonly PresetCamera: MsoPresetCamera; + readonly PresetExtrusionDirection: MsoPresetExtrusionDirection; + PresetLighting: MsoLightRigType; + PresetLightingDirection: MsoPresetLightingDirection; + PresetLightingSoftness: MsoPresetLightingSoftness; + PresetMaterial: MsoPresetMaterial; + readonly PresetThreeDFormat: MsoPresetThreeDFormat; + ProjectText: MsoTriState; + ResetRotation(): void; + RotationX: number; + RotationY: number; + RotationZ: number; + SetExtrusionDirection(PresetExtrusionDirection: MsoPresetExtrusionDirection): void; + SetPresetCamera(PresetCamera: MsoPresetCamera): void; + SetThreeDFormat(PresetThreeDFormat: MsoPresetThreeDFormat): void; + Visible: MsoTriState; + Z: number; + } + + class UserPermission { + private 'Office.UserPermission_typekey': UserPermission; + private constructor(); + readonly Application: any; + readonly Creator: number; + ExpirationDate: any; + readonly Parent: any; + Permission: number; + Remove(): void; + readonly UserId: string; + } + + class WebPageFont { + private 'Office.WebPageFont_typekey': WebPageFont; + private constructor(); + readonly Application: any; + readonly Creator: number; + FixedWidthFont: string; + FixedWidthFontSize: number; + ProportionalFont: string; + ProportionalFontSize: number; + } + + class WebPageFonts { + private 'Office.WebPageFonts_typekey': WebPageFonts; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: MsoCharacterSet): WebPageFont; + } + + class WorkflowTask { + private 'Office.WorkflowTask_typekey': WorkflowTask; + private constructor(); + readonly Application: any; + readonly AssignedTo: string; + readonly CreatedBy: string; + readonly CreatedDate: VarDate; + readonly Creator: number; + readonly Description: string; + readonly DueDate: VarDate; + readonly Id: string; + readonly ListID: string; + readonly Name: string; + Show(): number; + readonly WorkflowID: string; + } + + class WorkflowTasks { + private 'Office.WorkflowTasks_typekey': WorkflowTasks; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): WorkflowTask; + } + + class WorkflowTemplate { + private 'Office.WorkflowTemplate_typekey': WorkflowTemplate; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Description: string; + readonly DocumentLibraryName: string; + readonly DocumentLibraryURL: string; + readonly Id: string; + readonly Name: string; + Show(): number; + } + + class WorkflowTemplates { + private 'Office.WorkflowTemplates_typekey': WorkflowTemplates; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): WorkflowTemplate; + } + + namespace EventHelperTypes { + type CommandBarButton_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + type CommandBarComboBox_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + type CommandBars_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + type CustomTaskPane_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + type CustomXMLPart_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + type CustomXMLParts_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + interface CommandBarButton_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + + interface CommandBarComboBox_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + + interface CommandBars_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + + interface CustomTaskPane_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + + interface CustomXMLPart_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + + interface CustomXMLParts_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + } +} + +interface ActiveXObject { + on( + obj: Office.CommandBarButton, event: 'Click', argNames: ['Ctrl', 'CancelDefault'], handler: ( + this: Office.CommandBarButton, parameter: {readonly Ctrl: Office.CommandBarButton, CancelDefault: boolean}) => void): void; + on( + obj: Office.CommandBarButton, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: Office.CommandBarButton, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: Office.CommandBarButton, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: Office.CommandBarButton, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: Office.CommandBarButton, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: Office.CommandBarButton, parameter: {pctinfo: number}) => void): void; + on( + obj: Office.CommandBarButton, event: 'Invoke', argNames: Office.EventHelperTypes.CommandBarButton_Invoke_ArgNames, handler: ( + this: Office.CommandBarButton, parameter: Office.EventHelperTypes.CommandBarButton_Invoke_Parameter) => void): void; + on( + obj: Office.CommandBarButton, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: ( + this: Office.CommandBarButton, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on(obj: Office.CommandBarComboBox, event: 'Change', argNames: ['Ctrl'], handler: (this: Office.CommandBarComboBox, parameter: {readonly Ctrl: Office.CommandBarComboBox}) => void): void; + on( + obj: Office.CommandBarComboBox, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: Office.CommandBarComboBox, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: Office.CommandBarComboBox, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: Office.CommandBarComboBox, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: Office.CommandBarComboBox, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: Office.CommandBarComboBox, parameter: {pctinfo: number}) => void): void; + on( + obj: Office.CommandBarComboBox, event: 'Invoke', argNames: Office.EventHelperTypes.CommandBarComboBox_Invoke_ArgNames, handler: ( + this: Office.CommandBarComboBox, parameter: Office.EventHelperTypes.CommandBarComboBox_Invoke_Parameter) => void): void; + on( + obj: Office.CommandBarComboBox, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: ( + this: Office.CommandBarComboBox, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on( + obj: Office.CommandBars, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: Office.CommandBars, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: Office.CommandBars, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: Office.CommandBars, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: Office.CommandBars, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: Office.CommandBars, parameter: {pctinfo: number}) => void): void; + on( + obj: Office.CommandBars, event: 'Invoke', argNames: Office.EventHelperTypes.CommandBars_Invoke_ArgNames, handler: ( + this: Office.CommandBars, parameter: Office.EventHelperTypes.CommandBars_Invoke_Parameter) => void): void; + on(obj: Office.CommandBars, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: (this: Office.CommandBars, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on( + obj: Office.CustomTaskPane, event: 'DockPositionStateChange' | 'VisibleStateChange', argNames: ['CustomTaskPaneInst'], handler: ( + this: Office.CustomTaskPane, parameter: {readonly CustomTaskPaneInst: Office.CustomTaskPane}) => void): void; + on( + obj: Office.CustomTaskPane, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: Office.CustomTaskPane, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: Office.CustomTaskPane, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: Office.CustomTaskPane, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: Office.CustomTaskPane, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: Office.CustomTaskPane, parameter: {pctinfo: number}) => void): void; + on( + obj: Office.CustomTaskPane, event: 'Invoke', argNames: Office.EventHelperTypes.CustomTaskPane_Invoke_ArgNames, handler: ( + this: Office.CustomTaskPane, parameter: Office.EventHelperTypes.CustomTaskPane_Invoke_Parameter) => void): void; + on( + obj: Office.CustomTaskPane, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: ( + this: Office.CustomTaskPane, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on( + obj: Office.CustomXMLPart, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: Office.CustomXMLPart, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: Office.CustomXMLPart, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: Office.CustomXMLPart, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: Office.CustomXMLPart, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: Office.CustomXMLPart, parameter: {pctinfo: number}) => void): void; + on( + obj: Office.CustomXMLPart, event: 'Invoke', argNames: Office.EventHelperTypes.CustomXMLPart_Invoke_ArgNames, handler: ( + this: Office.CustomXMLPart, parameter: Office.EventHelperTypes.CustomXMLPart_Invoke_Parameter) => void): void; + on( + obj: Office.CustomXMLPart, event: 'NodeAfterDelete', argNames: ['OldNode', 'OldParentNode', 'OldNextSibling', 'InUndoRedo'], handler: ( + this: Office.CustomXMLPart, + parameter: { + readonly OldNode: Office.CustomXMLNode, readonly OldParentNode: Office.CustomXMLNode, readonly OldNextSibling: Office.CustomXMLNode, readonly InUndoRedo: boolean}) => void): void; + on( + obj: Office.CustomXMLPart, event: 'NodeAfterInsert', argNames: ['NewNode', 'InUndoRedo'], handler: ( + this: Office.CustomXMLPart, parameter: {readonly NewNode: Office.CustomXMLNode, readonly InUndoRedo: boolean}) => void): void; + on( + obj: Office.CustomXMLPart, event: 'NodeAfterReplace', argNames: ['OldNode', 'NewNode', 'InUndoRedo'], handler: ( + this: Office.CustomXMLPart, parameter: {readonly OldNode: Office.CustomXMLNode, readonly NewNode: Office.CustomXMLNode, readonly InUndoRedo: boolean}) => void): void; + on( + obj: Office.CustomXMLPart, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: ( + this: Office.CustomXMLPart, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on( + obj: Office.CustomXMLParts, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: Office.CustomXMLParts, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: Office.CustomXMLParts, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: Office.CustomXMLParts, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: Office.CustomXMLParts, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: Office.CustomXMLParts, parameter: {pctinfo: number}) => void): void; + on( + obj: Office.CustomXMLParts, event: 'Invoke', argNames: Office.EventHelperTypes.CustomXMLParts_Invoke_ArgNames, handler: ( + this: Office.CustomXMLParts, parameter: Office.EventHelperTypes.CustomXMLParts_Invoke_Parameter) => void): void; + on(obj: Office.CustomXMLParts, event: 'PartAfterAdd', argNames: ['NewPart'], handler: (this: Office.CustomXMLParts, parameter: {readonly NewPart: Office.CustomXMLPart}) => void): void; + on(obj: Office.CustomXMLParts, event: 'PartAfterLoad', argNames: ['Part'], handler: (this: Office.CustomXMLParts, parameter: {readonly Part: Office.CustomXMLPart}) => void): void; + on(obj: Office.CustomXMLParts, event: 'PartBeforeDelete', argNames: ['OldPart'], handler: (this: Office.CustomXMLParts, parameter: {readonly OldPart: Office.CustomXMLPart}) => void): void; + on( + obj: Office.CustomXMLParts, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: ( + this: Office.CustomXMLParts, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on(obj: Office.CommandBarButton, event: 'AddRef' | 'Release', handler: (this: Office.CommandBarButton, parameter: {}) => void): void; + on(obj: Office.CommandBarComboBox, event: 'AddRef' | 'Release', handler: (this: Office.CommandBarComboBox, parameter: {}) => void): void; + on(obj: Office.CommandBars, event: 'AddRef' | 'OnUpdate' | 'Release', handler: (this: Office.CommandBars, parameter: {}) => void): void; + on(obj: Office.CustomTaskPane, event: 'AddRef' | 'Release', handler: (this: Office.CustomTaskPane, parameter: {}) => void): void; + on(obj: Office.CustomXMLPart, event: 'AddRef' | 'Release', handler: (this: Office.CustomXMLPart, parameter: {}) => void): void; + on(obj: Office.CustomXMLParts, event: 'AddRef' | 'Release', handler: (this: Office.CustomXMLParts, parameter: {}) => void): void; + on(obj: Office.MsoEnvelope, event: 'EnvelopeHide' | 'EnvelopeShow', handler: (this: Office.MsoEnvelope, parameter: {}) => void): void; + set(obj: Office.CommandBarButton | Office.CommandBarComboBox, propertyName: 'accName' | 'accValue', parameterTypes: [any], newValue: string): void; + set(obj: Office.CommandBarComboBox, propertyName: 'List', parameterTypes: [number], newValue: string): void; +} + +interface EnumeratorConstructor { + new(col: Office.CanvasShapes | Office.GroupShapes | Office.ShapeRange | Office.Shapes): Enumerator; + new(col: Office.COMAddIns): Enumerator; + new(col: Office.CommandBarControls): Enumerator; + new(col: Office.CommandBars): Enumerator; + new(col: Office.CustomXMLNodes): Enumerator; + new(col: Office.CustomXMLParts): Enumerator; + new(col: Office.CustomXMLPrefixMappings): Enumerator; + new(col: Office.CustomXMLSchemaCollection): Enumerator; + new(col: Office.CustomXMLValidationErrors): Enumerator; + new(col: Office.DiagramNodeChildren | Office.DiagramNodes): Enumerator; + new(col: Office.DocumentInspectors): Enumerator; + new(col: Office.DocumentLibraryVersions): Enumerator; + new(col: Office.EffectParameters): Enumerator; + new(col: Office.FileDialogFilters): Enumerator; + new(col: Office.FileDialogSelectedItems | Office.FoundFiles | Office.IFoundFiles): Enumerator; + new(col: Office.FileTypes): Enumerator; + new(col: Office.GradientStops): Enumerator; + new(col: Office.HTMLProjectItems): Enumerator; + new(col: Office.MetaProperties): Enumerator; + new(col: Office.Permission): Enumerator; + new(col: Office.PickerFields): Enumerator; + new(col: Office.PickerProperties): Enumerator; + new(col: Office.PickerResults): Enumerator; + new(col: Office.PictureEffects): Enumerator; + new(col: Office.PropertyTests): Enumerator; + new(col: Office.RulerLevels2): Enumerator; + new(col: Office.ScopeFolders | Office.SearchFolders): Enumerator; + new(col: Office.Scripts): Enumerator; + new(col: Office.SearchScopes): Enumerator; + new(col: Office.ShapeNodes): Enumerator; + new(col: Office.SharedWorkspaceFiles): Enumerator; + new(col: Office.SharedWorkspaceFolders): Enumerator; + new(col: Office.SharedWorkspaceLinks): Enumerator; + new(col: Office.SharedWorkspaceMembers): Enumerator; + new(col: Office.SharedWorkspaceTasks): Enumerator; + new(col: Office.SignatureSet): Enumerator; + new(col: Office.SmartArtColors): Enumerator; + new(col: Office.SmartArtLayouts): Enumerator; + new(col: Office.SmartArtNodes): Enumerator; + new(col: Office.SmartArtQuickStyles): Enumerator; + new(col: Office.TabStops2): Enumerator; + new(col: Office.TextRange2): Enumerator; + new(col: Office.ThemeFonts): Enumerator; + new(col: Office.WebPageFonts): Enumerator; + new(col: Office.WorkflowTasks): Enumerator; + new(col: Office.WorkflowTemplates): Enumerator; +} + +interface SafeArray { + _brand: SafeArray; +} diff --git a/types/activex-office/package.json b/types/activex-office/package.json new file mode 100644 index 0000000000..d9b1031263 --- /dev/null +++ b/types/activex-office/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "activex-helpers": "*" + } +} \ No newline at end of file diff --git a/types/activex-office/tsconfig.json b/types/activex-office/tsconfig.json new file mode 100644 index 0000000000..9fc37a1754 --- /dev/null +++ b/types/activex-office/tsconfig.json @@ -0,0 +1,21 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es5", "scripthost"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "activex-office-tests.ts" + ] +} \ No newline at end of file diff --git a/types/activex-office/tslint.json b/types/activex-office/tslint.json new file mode 100644 index 0000000000..4ac54521fe --- /dev/null +++ b/types/activex-office/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": [false] + } +} \ No newline at end of file diff --git a/types/activex-outlook/activex-outlook-tests.ts b/types/activex-outlook/activex-outlook-tests.ts new file mode 100644 index 0000000000..53279fc185 --- /dev/null +++ b/types/activex-outlook/activex-outlook-tests.ts @@ -0,0 +1,59 @@ +/// + +let obj0 = new ActiveXObject('DOCSITE.DocSiteControl'); + +let obj1 = new ActiveXObject('RECIP.RecipCtl'); + +let obj2 = new ActiveXObject('Outlook.Application'); + +let obj3 = new ActiveXObject('Outlook.OlkBusinessCardControl'); + +let obj4 = new ActiveXObject('Outlook.OlkCategoryStrip'); + +let obj5 = new ActiveXObject('Outlook.OlkCheckBox'); + +let obj6 = new ActiveXObject('Outlook.OlkComboBox'); + +let obj7 = new ActiveXObject('Outlook.OlkCommandButton'); + +let obj8 = new ActiveXObject('Outlook.OlkContactPhoto'); + +let obj9 = new ActiveXObject('Outlook.OlkDateControl'); + +let obj10 = new ActiveXObject('Outlook.OlkFrameHeader'); + +let obj11 = new ActiveXObject('Outlook.OlkInfoBar'); + +let obj12 = new ActiveXObject('Outlook.OlkLabel'); + +let obj13 = new ActiveXObject('Outlook.OlkListBox'); + +let obj14 = new ActiveXObject('Outlook.OlkOptionButton'); + +let obj15 = new ActiveXObject('Outlook.OlkPageControl'); + +let obj16 = new ActiveXObject('Outlook.OlkSenderPhoto'); + +let obj17 = new ActiveXObject('Outlook.OlkTextBox'); + +let obj18 = new ActiveXObject('Outlook.OlkTimeControl'); + +let obj19 = new ActiveXObject('Outlook.OlkTimeZone'); + +// --------- + +let app = new ActiveXObject('Outlook.Application'); + +// https://msdn.microsoft.com/VBA/office-shared-vba/articles/getting-started-with-vba-in-office +(() => { + // create a message in Outlook + const message = app.CreateItem(Outlook.OlItemType.olMailItem); + message.Subject = 'Hello, world!'; + message.Display(); + + // copying a contact from Outlook to Word + const currentItem = app.ActiveInspector().CurrentItem as Outlook.ContactItem; + const wdApp = new ActiveXObject('Word.Application'); + const doc = wdApp.Documents.Add(); + doc.Range().InsertAfter(`${currentItem.FullName} from ${currentItem.CompanyName}`); +})(); diff --git a/types/activex-outlook/index.d.ts b/types/activex-outlook/index.d.ts new file mode 100644 index 0000000000..b7a709fe45 --- /dev/null +++ b/types/activex-outlook/index.d.ts @@ -0,0 +1,5892 @@ +// Type definitions for Microsoft Outlook 14.0 Object Library - Outlook 14.0 +// Project: https://msdn.microsoft.com/en-us/vba/vba-outlook +// Definitions by: Zev Spitz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// +/// + +declare namespace Outlook { + const enum OlAccountType { + olExchange = 0, + olHttp = 3, + olImap = 1, + olOtherAccount = 5, + olPop3 = 2, + } + + const enum OlActionCopyLike { + olForward = 2, + olReply = 0, + olReplyAll = 1, + olReplyFolder = 3, + olRespond = 4, + } + + const enum OlActionReplyStyle { + olEmbedOriginalItem = 1, + olIncludeOriginalText = 2, + olIndentOriginalText = 3, + olLinkOriginalItem = 4, + olOmitOriginalText = 0, + olReplyTickOriginalText = 1000, + olUserPreference = 5, + } + + const enum OlActionResponseStyle { + olOpen = 0, + olPrompt = 2, + olSend = 1, + } + + const enum OlActionShowOn { + olDontShow = 0, + olMenu = 1, + olMenuAndToolbar = 2, + } + + const enum OlAddressEntryUserType { + olExchangeAgentAddressEntry = 3, + olExchangeDistributionListAddressEntry = 1, + olExchangeOrganizationAddressEntry = 4, + olExchangePublicFolderAddressEntry = 2, + olExchangeRemoteUserAddressEntry = 5, + olExchangeUserAddressEntry = 0, + olLdapAddressEntry = 20, + olOtherAddressEntry = 40, + olOutlookContactAddressEntry = 10, + olOutlookDistributionListAddressEntry = 11, + olSmtpAddressEntry = 30, + } + + const enum OlAddressListType { + olCustomAddressList = 4, + olExchangeContainer = 1, + olExchangeGlobalAddressList = 0, + olOutlookAddressList = 2, + olOutlookLdapAddressList = 3, + } + + const enum OlAlign { + olAlignCenter = 1, + olAlignLeft = 0, + olAlignRight = 2, + } + + const enum OlAlignment { + olAlignmentLeft = 0, + olAlignmentRight = 1, + } + + const enum OlAlwaysDeleteConversation { + olAlwaysDelete = 1, + olAlwaysDeleteUnsupported = 2, + olDoNotDelete = 0, + } + + const enum OlAppointmentCopyOptions { + olCopyAsAccept = 2, + olCreateAppointment = 1, + olPromptUser = 0, + } + + const enum OlAppointmentTimeField { + olAppointmentTimeFieldEnd = 3, + olAppointmentTimeFieldNone = 1, + olAppointmentTimeFieldStart = 2, + } + + const enum OlAttachmentBlockLevel { + olAttachmentBlockLevelNone = 0, + olAttachmentBlockLevelOpen = 1, + } + + const enum OlAttachmentType { + olByReference = 4, + olByValue = 1, + olEmbeddeditem = 5, + olOLE = 6, + } + + const enum OlAutoDiscoverConnectionMode { + olAutoDiscoverConnectionExternal = 1, + olAutoDiscoverConnectionInternal = 2, + olAutoDiscoverConnectionInternalDomain = 3, + olAutoDiscoverConnectionUnknown = 0, + } + + const enum OlAutoPreview { + olAutoPreviewAll = 0, + olAutoPreviewNone = 2, + olAutoPreviewUnread = 1, + } + + const enum OlBackStyle { + olBackStyleOpaque = 1, + olBackStyleTransparent = 0, + } + + const enum OlBodyFormat { + olFormatHTML = 2, + olFormatPlain = 1, + olFormatRichText = 3, + olFormatUnspecified = 0, + } + + const enum OlBorderStyle { + olBorderStyleNone = 0, + olBorderStyleSingle = 1, + } + + const enum OlBusinessCardType { + olBusinessCardTypeInterConnect = 1, + olBusinessCardTypeOutlook = 0, + } + + const enum OlBusyStatus { + olBusy = 2, + olFree = 0, + olOutOfOffice = 3, + olTentative = 1, + } + + const enum OlCalendarDetail { + olFreeBusyAndSubject = 1, + olFreeBusyOnly = 0, + olFullDetails = 2, + } + + const enum OlCalendarMailFormat { + olCalendarMailFormatDailySchedule = 0, + olCalendarMailFormatEventList = 1, + } + + const enum OlCalendarViewMode { + olCalendarView5DayWeek = 4, + olCalendarViewDay = 0, + olCalendarViewMonth = 2, + olCalendarViewMultiDay = 3, + olCalendarViewWeek = 1, + } + + const enum OlCategoryColor { + olCategoryColorBlack = 15, + olCategoryColorBlue = 8, + olCategoryColorDarkBlue = 23, + olCategoryColorDarkGray = 14, + olCategoryColorDarkGreen = 20, + olCategoryColorDarkMaroon = 25, + olCategoryColorDarkOlive = 22, + olCategoryColorDarkOrange = 17, + olCategoryColorDarkPeach = 18, + olCategoryColorDarkPurple = 24, + olCategoryColorDarkRed = 16, + olCategoryColorDarkSteel = 12, + olCategoryColorDarkTeal = 21, + olCategoryColorDarkYellow = 19, + olCategoryColorGray = 13, + olCategoryColorGreen = 5, + olCategoryColorMaroon = 10, + olCategoryColorNone = 0, + olCategoryColorOlive = 7, + olCategoryColorOrange = 2, + olCategoryColorPeach = 3, + olCategoryColorPurple = 9, + olCategoryColorRed = 1, + olCategoryColorSteel = 11, + olCategoryColorTeal = 6, + olCategoryColorYellow = 4, + } + + const enum OlCategoryShortcutKey { + olCategoryShortcutKeyCtrlF10 = 9, + olCategoryShortcutKeyCtrlF11 = 10, + olCategoryShortcutKeyCtrlF12 = 11, + olCategoryShortcutKeyCtrlF2 = 1, + olCategoryShortcutKeyCtrlF3 = 2, + olCategoryShortcutKeyCtrlF4 = 3, + olCategoryShortcutKeyCtrlF5 = 4, + olCategoryShortcutKeyCtrlF6 = 5, + olCategoryShortcutKeyCtrlF7 = 6, + olCategoryShortcutKeyCtrlF8 = 7, + olCategoryShortcutKeyCtrlF9 = 8, + olCategoryShortcutKeyNone = 0, + } + + const enum OlColor { + olAutoColor = 0, + olColorAqua = 15, + olColorBlack = 1, + olColorBlue = 13, + olColorFuchsia = 14, + olColorGray = 8, + olColorGreen = 3, + olColorLime = 11, + olColorMaroon = 2, + olColorNavy = 5, + olColorOlive = 4, + olColorPurple = 6, + olColorRed = 10, + olColorSilver = 9, + olColorTeal = 7, + olColorWhite = 16, + olColorYellow = 12, + } + + const enum OlComboBoxStyle { + olComboBoxStyleCombo = 0, + olComboBoxStyleList = 2, + } + + const enum OlContactPhoneNumber { + olContactPhoneAssistant = 0, + olContactPhoneBusiness = 1, + olContactPhoneBusiness2 = 2, + olContactPhoneBusinessFax = 3, + olContactPhoneCallback = 4, + olContactPhoneCar = 5, + olContactPhoneCompany = 6, + olContactPhoneHome = 7, + olContactPhoneHome2 = 8, + olContactPhoneHomeFax = 9, + olContactPhoneISDN = 10, + olContactPhoneMobile = 11, + olContactPhoneOther = 12, + olContactPhoneOtherFax = 13, + olContactPhonePager = 14, + olContactPhonePrimary = 15, + olContactPhoneRadio = 16, + olContactPhoneTelex = 17, + olContactPhoneTTYTTD = 18, + } + + const enum OlContextMenu { + olAttachmentContextMenu = 3, + olFolderContextMenu = 2, + olItemContextMenu = 0, + olShortcutContextMenu = 5, + olStoreContextMenu = 4, + olViewContextMenu = 1, + } + + const enum OlDaysOfWeek { + olFriday = 32, + olMonday = 2, + olSaturday = 64, + olSunday = 1, + olThursday = 16, + olTuesday = 4, + olWednesday = 8, + } + + const enum OlDayWeekTimeScale { + olTimeScale10Minutes = 2, + olTimeScale15Minutes = 3, + olTimeScale30Minutes = 4, + olTimeScale5Minutes = 0, + olTimeScale60Minutes = 5, + olTimeScale6Minutes = 1, + } + + const enum OlDefaultExpandCollapseSetting { + olAllCollapsed = 1, + olAllExpanded = 0, + olLastViewed = 2, + } + + const enum OlDefaultFolders { + olFolderCalendar = 9, + olFolderConflicts = 19, + olFolderContacts = 10, + olFolderDeletedItems = 3, + olFolderDrafts = 16, + olFolderInbox = 6, + olFolderJournal = 11, + olFolderJunk = 23, + olFolderLocalFailures = 21, + olFolderManagedEmail = 29, + olFolderNotes = 12, + olFolderOutbox = 4, + olFolderRssFeeds = 25, + olFolderSentMail = 5, + olFolderServerFailures = 22, + olFolderSuggestedContacts = 30, + olFolderSyncIssues = 20, + olFolderTasks = 13, + olFolderToDo = 28, + olPublicFoldersAllPublicFolders = 18, + } + + const enum OlDefaultSelectNamesDisplayMode { + olDefaultDelegates = 6, + olDefaultMail = 1, + olDefaultMeeting = 2, + olDefaultMembers = 5, + olDefaultPickRooms = 8, + olDefaultSharingRequest = 4, + olDefaultSingleName = 7, + olDefaultTask = 3, + } + + const enum OlDisplayType { + olAgent = 3, + olDistList = 1, + olForum = 2, + olOrganization = 4, + olPrivateDistList = 5, + olRemoteUser = 6, + olUser = 0, + } + + const enum OlDownloadState { + olFullItem = 1, + olHeaderOnly = 0, + } + + const enum OlDragBehavior { + olDragBehaviorDisabled = 0, + olDragBehaviorEnabled = 1, + } + + const enum OlEditorType { + olEditorHTML = 2, + olEditorRTF = 3, + olEditorText = 1, + olEditorWord = 4, + } + + const enum OlEnterFieldBehavior { + olEnterFieldBehaviorRecallSelection = 1, + olEnterFieldBehaviorSelectAll = 0, + } + + const enum OlExchangeConnectionMode { + olCachedConnectedDrizzle = 600, + olCachedConnectedFull = 700, + olCachedConnectedHeaders = 500, + olCachedDisconnected = 400, + olCachedOffline = 200, + olDisconnected = 300, + olNoExchange = 0, + olOffline = 100, + olOnline = 800, + } + + const enum OlExchangeStoreType { + olAdditionalExchangeMailbox = 4, + olExchangeMailbox = 1, + olExchangePublicFolder = 2, + olNotExchange = 3, + olPrimaryExchangeMailbox = 0, + } + + const enum OlFlagIcon { + olBlueFlagIcon = 5, + olGreenFlagIcon = 3, + olNoFlagIcon = 0, + olOrangeFlagIcon = 2, + olPurpleFlagIcon = 1, + olRedFlagIcon = 6, + olYellowFlagIcon = 4, + } + + const enum OlFlagStatus { + olFlagComplete = 1, + olFlagMarked = 2, + olNoFlag = 0, + } + + const enum OlFolderDisplayMode { + olFolderDisplayFolderOnly = 1, + olFolderDisplayNoNavigation = 2, + olFolderDisplayNormal = 0, + } + + const enum OlFormatCurrency { + olFormatCurrencyDecimal = 1, + olFormatCurrencyNonDecimal = 2, + } + + const enum OlFormatDateTime { + olFormatDateTimeBestFit = 17, + olFormatDateTimeLongDate = 6, + olFormatDateTimeLongDateReversed = 7, + OlFormatDateTimeLongDayDate = 5, + olFormatDateTimeLongDayDateTime = 1, + olFormatDateTimeLongTime = 15, + olFormatDateTimeShortDate = 8, + olFormatDateTimeShortDateNumOnly = 9, + olFormatDateTimeShortDateTime = 2, + olFormatDateTimeShortDayDate = 13, + olFormatDateTimeShortDayDateTime = 3, + olFormatDateTimeShortDayMonth = 10, + olFormatDateTimeShortDayMonthDateTime = 4, + olFormatDateTimeShortMonthYear = 11, + olFormatDateTimeShortMonthYearNumOnly = 12, + olFormatDateTimeShortTime = 16, + } + + const enum OlFormatDuration { + olFormatDurationLong = 2, + olFormatDurationLongBusiness = 4, + olFormatDurationShort = 1, + olFormatDurationShortBusiness = 3, + } + + const enum OlFormatEnumeration { + olFormatEnumBitmap = 1, + olFormatEnumText = 2, + } + + const enum OlFormatInteger { + olFormatIntegerComputer1 = 2, + olFormatIntegerComputer2 = 3, + olFormatIntegerComputer3 = 4, + olFormatIntegerPlain = 1, + } + + const enum OlFormatKeywords { + olFormatKeywordsText = 1, + } + + const enum OlFormatNumber { + olFormatNumber1Decimal = 3, + olFormatNumber2Decimal = 4, + olFormatNumberAllDigits = 1, + olFormatNumberComputer1 = 6, + olFormatNumberComputer2 = 7, + olFormatNumberComputer3 = 8, + olFormatNumberRaw = 9, + olFormatNumberScientific = 5, + olFormatNumberTruncated = 2, + } + + const enum OlFormatPercent { + olFormatPercent1Decimal = 2, + olFormatPercent2Decimal = 3, + olFormatPercentAllDigits = 4, + olFormatPercentRounded = 1, + } + + const enum OlFormatSmartFrom { + olFormatSmartFromFromOnly = 2, + olFormatSmartFromFromTo = 1, + } + + const enum OlFormatText { + olFormatTextText = 1, + } + + const enum OlFormatYesNo { + olFormatYesNoIcon = 4, + olFormatYesNoOnOff = 2, + olFormatYesNoTrueFalse = 3, + olFormatYesNoYesNo = 1, + } + + const enum OlFormRegionIcon { + olFormRegionIconDefault = 1, + olFormRegionIconEncrypted = 9, + olFormRegionIconForwarded = 5, + olFormRegionIconPage = 11, + olFormRegionIconRead = 3, + olFormRegionIconRecurring = 12, + olFormRegionIconReplied = 4, + olFormRegionIconSigned = 8, + olFormRegionIconSubmitted = 7, + olFormRegionIconUnread = 2, + olFormRegionIconUnsent = 6, + olFormRegionIconWindow = 10, + } + + const enum OlFormRegionMode { + olFormRegionCompose = 1, + olFormRegionPreview = 2, + olFormRegionRead = 0, + } + + const enum OlFormRegionSize { + olFormRegionTypeAdjoining = 1, + olFormRegionTypeSeparate = 0, + } + + const enum OlFormRegistry { + olDefaultRegistry = 0, + olFolderRegistry = 3, + olOrganizationRegistry = 4, + olPersonalRegistry = 2, + } + + const enum OlGender { + olFemale = 1, + olMale = 2, + olUnspecified = 0, + } + + const enum OlGridLineStyle { + olGridLineDashes = 3, + olGridLineLargeDots = 2, + olGridLineNone = 0, + olGridLineSmallDots = 1, + olGridLineSolid = 4, + } + + const enum OlGroupType { + olCustomFoldersGroup = 0, + olFavoriteFoldersGroup = 4, + olMyFoldersGroup = 1, + olOtherFoldersGroup = 3, + olPeopleFoldersGroup = 2, + olReadOnlyGroup = 6, + olRoomsGroup = 5, + } + + const enum OlHorizontalLayout { + olHorizontalLayoutAlignCenter = 1, + olHorizontalLayoutAlignLeft = 0, + olHorizontalLayoutAlignRight = 2, + olHorizontalLayoutGrow = 3, + } + + const enum OlIconViewPlacement { + olIconAutoArrange = 2, + olIconDoNotArrange = 0, + olIconLineUp = 1, + olIconSortAndAutoArrange = 3, + } + + const enum OlIconViewType { + olIconViewLarge = 0, + olIconViewList = 2, + olIconViewSmall = 1, + } + + const enum OlImportance { + olImportanceHigh = 2, + olImportanceLow = 0, + olImportanceNormal = 1, + } + + const enum OlInspectorClose { + olDiscard = 1, + olPromptForSave = 2, + olSave = 0, + } + + const enum OlItemType { + olAppointmentItem = 1, + olContactItem = 2, + olDistributionListItem = 7, + olJournalItem = 4, + olMailItem = 0, + olMobileItemMMS = 12, + olMobileItemSMS = 11, + olNoteItem = 5, + olPostItem = 6, + olTaskItem = 3, + } + + const enum OlJournalRecipientType { + olAssociatedContact = 1, + } + + const enum OlMailingAddress { + olBusiness = 2, + olHome = 1, + olNone = 0, + olOther = 3, + } + + const enum OlMailRecipientType { + olBCC = 3, + olCC = 2, + olOriginator = 0, + olTo = 1, + } + + const enum OlMarkInterval { + olMarkComplete = 5, + olMarkNextWeek = 3, + olMarkNoDate = 4, + olMarkThisWeek = 2, + olMarkToday = 0, + olMarkTomorrow = 1, + } + + const enum OlMatchEntry { + olMatchEntryComplete = 1, + olMatchEntryFirstLetter = 0, + olMatchEntryNone = 2, + } + + const enum OlMeetingRecipientType { + olOptional = 2, + olOrganizer = 0, + olRequired = 1, + olResource = 3, + } + + const enum OlMeetingResponse { + olMeetingAccepted = 3, + olMeetingDeclined = 4, + olMeetingTentative = 2, + } + + const enum OlMeetingStatus { + olMeeting = 1, + olMeetingCanceled = 5, + olMeetingReceived = 3, + olMeetingReceivedAndCanceled = 7, + olNonMeeting = 0, + } + + const enum OlMobileFormat { + olMMS = 1, + olSMS = 0, + } + + const enum OlMouseButton { + olMouseButtonLeft = 1, + olMouseButtonMiddle = 4, + olMouseButtonRight = 2, + } + + const enum OlMousePointer { + olMousePointerAppStarting = 13, + olMousePointerArrow = 1, + olMousePointerCross = 2, + olMousePointerCustom = 99, + olMousePointerDefault = 0, + olMousePointerHelp = 14, + olMousePointerHourGlass = 11, + olMousePointerIBeam = 3, + olMousePointerNoDrop = 12, + olMousePointerSizeAll = 15, + olMousePointerSizeNESW = 6, + olMousePointerSizeNS = 7, + olMousePointerSizeNWSE = 8, + olMousePointerSizeWE = 9, + olMousePointerUpArrow = 10, + } + + const enum OlMultiLine { + olAlwaysMultiLine = 2, + olAlwaysSingleLine = 1, + olWidthMultiLine = 0, + } + + const enum OlMultiSelect { + olMultiSelectExtended = 2, + olMultiSelectMulti = 1, + olMultiSelectSingle = 0, + } + + const enum OlNavigationModuleType { + olModuleCalendar = 1, + olModuleContacts = 2, + olModuleFolderList = 6, + olModuleJournal = 4, + olModuleMail = 0, + olModuleNotes = 5, + olModuleShortcuts = 7, + olModuleSolutions = 8, + olModuleTasks = 3, + } + + const enum OlNetMeetingType { + olExchangeConferencing = 2, + olNetMeeting = 0, + olNetShow = 1, + } + + const enum OlNoteColor { + olBlue = 0, + olGreen = 1, + olPink = 2, + olWhite = 4, + olYellow = 3, + } + + const enum OlObjectClass { + olAccount = 105, + olAccountRuleCondition = 135, + olAccounts = 106, + olAction = 32, + olActions = 33, + olAddressEntries = 21, + olAddressEntry = 8, + olAddressList = 7, + olAddressLists = 20, + olAddressRuleCondition = 170, + olApplication = 0, + olAppointment = 26, + olAssignToCategoryRuleAction = 122, + olAttachment = 5, + olAttachments = 18, + olAttachmentSelection = 169, + olAutoFormatRule = 147, + olAutoFormatRules = 148, + olCalendarModule = 159, + olCalendarSharing = 151, + olCategories = 153, + olCategory = 152, + olCategoryRuleCondition = 130, + olClassBusinessCardView = 168, + olClassCalendarView = 139, + olClassCardView = 138, + olClassIconView = 137, + olClassNavigationPane = 155, + olClassTableView = 136, + olClassTimeLineView = 140, + olClassTimeZone = 174, + olClassTimeZones = 175, + olColumn = 154, + olColumnFormat = 149, + olColumns = 150, + olConflict = 102, + olConflicts = 103, + olContact = 40, + olContactsModule = 160, + olConversation = 178, + olConversationHeader = 182, + olDistributionList = 69, + olDocument = 41, + olException = 30, + olExceptions = 29, + olExchangeDistributionList = 111, + olExchangeUser = 110, + olExplorer = 34, + olExplorers = 60, + olFolder = 2, + olFolders = 15, + olFormDescription = 37, + olFormNameRuleCondition = 131, + olFormRegion = 129, + olFromRssFeedRuleCondition = 173, + olFromRuleCondition = 132, + olImportanceRuleCondition = 128, + olInspector = 35, + olInspectors = 61, + olItemProperties = 98, + olItemProperty = 99, + olItems = 16, + olJournal = 42, + olJournalModule = 162, + olLink = 75, + olLinks = 76, + olMail = 43, + olMailModule = 158, + olMarkAsTaskRuleAction = 124, + olMeetingCancellation = 54, + olMeetingForwardNotification = 181, + olMeetingRequest = 53, + olMeetingResponseNegative = 55, + olMeetingResponsePositive = 56, + olMeetingResponseTentative = 57, + olMobile = 176, + olMoveOrCopyRuleAction = 118, + olNamespace = 1, + olNavigationFolder = 167, + olNavigationFolders = 166, + olNavigationGroup = 165, + olNavigationGroups = 164, + olNavigationModule = 157, + olNavigationModules = 156, + olNewItemAlertRuleAction = 125, + olNote = 44, + olNotesModule = 163, + olOrderField = 144, + olOrderFields = 145, + olOutlookBarGroup = 66, + olOutlookBarGroups = 65, + olOutlookBarPane = 63, + olOutlookBarShortcut = 68, + olOutlookBarShortcuts = 67, + olOutlookBarStorage = 64, + olOutspace = 180, + olPages = 36, + olPanes = 62, + olPlaySoundRuleAction = 123, + olPost = 45, + olPropertyAccessor = 112, + olPropertyPages = 71, + olPropertyPageSite = 70, + olRecipient = 4, + olRecipients = 17, + olRecurrencePattern = 28, + olReminder = 101, + olReminders = 100, + olRemote = 47, + olReport = 46, + olResults = 78, + olRow = 121, + olRule = 115, + olRuleAction = 117, + olRuleActions = 116, + olRuleCondition = 127, + olRuleConditions = 126, + olRules = 114, + olSearch = 77, + olSelection = 74, + olSelectNamesDialog = 109, + olSenderInAddressListRuleCondition = 133, + olSendRuleAction = 119, + olSharing = 104, + olSimpleItems = 179, + olSolutionsModule = 177, + olStorageItem = 113, + olStore = 107, + olStores = 108, + olSyncObject = 72, + olSyncObjects = 73, + olTable = 120, + olTask = 48, + olTaskRequest = 49, + olTaskRequestAccept = 51, + olTaskRequestDecline = 52, + olTaskRequestUpdate = 50, + olTasksModule = 161, + olTextRuleCondition = 134, + olUserDefinedProperties = 172, + olUserDefinedProperty = 171, + olUserProperties = 38, + olUserProperty = 39, + olView = 80, + olViewField = 142, + olViewFields = 141, + olViewFont = 146, + olViews = 79, + } + + const enum OlOfficeDocItemsType { + olExcelWorkSheetItem = 8, + olPowerPointShowItem = 10, + olWordDocumentItem = 9, + } + + const enum OlOutlookBarViewType { + olLargeIcon = 0, + olSmallIcon = 1, + } + + const enum OlPageType { + olPageTypePlanner = 0, + olPageTypeTracker = 1, + } + + const enum OlPane { + olFolderList = 2, + olNavigationPane = 4, + olOutlookBar = 1, + olPreview = 3, + olToDoBar = 5, + } + + const enum OlPermission { + olDoNotForward = 1, + olPermissionTemplate = 2, + olUnrestricted = 0, + } + + const enum OlPermissionService { + olPassport = 2, + olUnknown = 0, + olWindows = 1, + } + + const enum OlPictureAlignment { + olPictureAlignmentLeft = 0, + olPictureAlignmentTop = 1, + } + + const enum OlRecipientSelectors { + olShowNone = 0, + olShowTo = 1, + olShowToCc = 2, + olShowToCcBcc = 3, + } + + const enum OlRecurrenceState { + olApptException = 3, + olApptMaster = 1, + olApptNotRecurring = 0, + olApptOccurrence = 2, + } + + const enum OlRecurrenceType { + olRecursDaily = 0, + olRecursMonthly = 2, + olRecursMonthNth = 3, + olRecursWeekly = 1, + olRecursYearly = 5, + olRecursYearNth = 6, + } + + const enum OlReferenceType { + olStrong = 1, + olWeak = 0, + } + + const enum OlRemoteStatus { + olMarkedForCopy = 3, + olMarkedForDelete = 4, + olMarkedForDownload = 2, + olRemoteStatusNone = 0, + olUnMarked = 1, + } + + const enum OlResponseStatus { + olResponseAccepted = 3, + olResponseDeclined = 4, + olResponseNone = 0, + olResponseNotResponded = 5, + olResponseOrganized = 1, + olResponseTentative = 2, + } + + const enum OlRuleActionType { + olRuleActionAssignToCategory = 2, + olRuleActionCcMessage = 27, + olRuleActionClearCategories = 30, + olRuleActionCopyToFolder = 5, + olRuleActionCustomAction = 22, + olRuleActionDefer = 28, + olRuleActionDelete = 3, + olRuleActionDeletePermanently = 4, + olRuleActionDesktopAlert = 24, + olRuleActionFlagClear = 13, + olRuleActionFlagColor = 12, + olRuleActionFlagForActionInDays = 11, + olRuleActionForward = 6, + olRuleActionForwardAsAttachment = 7, + olRuleActionImportance = 14, + olRuleActionMarkAsTask = 29, + olRuleActionMarkRead = 19, + olRuleActionMoveToFolder = 1, + olRuleActionNewItemAlert = 23, + olRuleActionNotifyDelivery = 26, + olRuleActionNotifyRead = 25, + olRuleActionPlaySound = 17, + olRuleActionPrint = 16, + olRuleActionRedirect = 8, + olRuleActionRunScript = 20, + olRuleActionSensitivity = 15, + olRuleActionServerReply = 9, + olRuleActionStartApplication = 18, + olRuleActionStop = 21, + olRuleActionTemplate = 10, + olRuleActionUnknown = 0, + } + + const enum OlRuleConditionType { + olConditionAccount = 3, + olConditionAnyCategory = 29, + olConditionBody = 13, + olConditionBodyOrSubject = 14, + olConditionCategory = 18, + olConditionCc = 9, + olConditionDateRange = 22, + olConditionFlaggedForAction = 8, + olConditionFormName = 23, + olConditionFrom = 1, + olConditionFromAnyRssFeed = 31, + olConditionFromRssFeed = 30, + olConditionHasAttachment = 20, + olConditionImportance = 6, + olConditionLocalMachineOnly = 27, + olConditionMeetingInviteOrUpdate = 26, + olConditionMessageHeader = 15, + olConditionNotTo = 11, + olConditionOnlyToMe = 4, + olConditionOOF = 19, + olConditionOtherMachine = 28, + olConditionProperty = 24, + olConditionRecipientAddress = 16, + olConditionSenderAddress = 17, + olConditionSenderInAddressBook = 25, + olConditionSensitivity = 7, + olConditionSentTo = 12, + olConditionSizeRange = 21, + olConditionSubject = 2, + olConditionTo = 5, + olConditionToOrCc = 10, + olConditionUnknown = 0, + } + + const enum OlRuleExecuteOption { + olRuleExecuteAllMessages = 0, + olRuleExecuteReadMessages = 1, + olRuleExecuteUnreadMessages = 2, + } + + const enum OlRuleType { + olRuleReceive = 0, + olRuleSend = 1, + } + + const enum OlSaveAsType { + olDoc = 4, + olHTML = 5, + olICal = 8, + olMHTML = 10, + olMSG = 3, + olMSGUnicode = 9, + olRTF = 1, + olTemplate = 2, + olTXT = 0, + olVCal = 7, + olVCard = 6, + } + + const enum OlScrollBars { + olScrollBarsBoth = 3, + olScrollBarsHorizontal = 1, + olScrollBarsNone = 0, + olScrollBarsVertical = 2, + } + + const enum OlSearchScope { + olSearchScopeAllFolders = 1, + olSearchScopeAllOutlookItems = 2, + olSearchScopeCurrentFolder = 0, + olSearchScopeSubfolders = 3, + } + + const enum OlSelectionContents { + olConversationHeaders = 1, + } + + const enum OlSelectionLocation { + olAttachmentWell = 4, + olDailyTaskList = 3, + olToDoBarAppointmentList = 2, + olToDoBarTaskList = 1, + olViewList = 0, + } + + const enum OlSensitivity { + olConfidential = 3, + olNormal = 0, + olPersonal = 1, + olPrivate = 2, + } + + const enum OlSharingMsgType { + olSharingMsgTypeInvite = 2, + olSharingMsgTypeInviteAndRequest = 3, + olSharingMsgTypeRequest = 1, + olSharingMsgTypeResponseAllow = 4, + olSharingMsgTypeResponseDeny = 5, + olSharingMsgTypeUnknown = 0, + } + + const enum OlSharingProvider { + olProviderExchange = 1, + olProviderFederate = 7, + olProviderICal = 4, + olProviderPubCal = 3, + olProviderRSS = 6, + olProviderSharePoint = 5, + olProviderUnknown = 0, + olProviderWebCal = 2, + } + + const enum OlShiftState { + olShiftStateAltMask = 4, + olShiftStateCtrlMask = 2, + olShiftStateShiftMask = 1, + } + + const enum OlShowItemCount { + olNoItemCount = 0, + olShowTotalItemCount = 2, + olShowUnreadItemCount = 1, + } + + const enum OlSolutionScope { + olHideInDefaultModules = 0, + olShowInDefaultModules = 1, + } + + const enum OlSortOrder { + olAscending = 1, + olDescending = 2, + olSortNone = 0, + } + + const enum OlSpecialFolders { + olSpecialFolderAllTasks = 0, + olSpecialFolderReminders = 1, + } + + const enum OlStorageIdentifierType { + olIdentifyByEntryID = 1, + olIdentifyByMessageClass = 2, + olIdentifyBySubject = 0, + } + + const enum OlStoreType { + olStoreANSI = 3, + olStoreDefault = 1, + olStoreUnicode = 2, + } + + const enum OlSyncState { + olSyncStarted = 1, + olSyncStopped = 0, + } + + const enum OlTableContents { + olHiddenItems = 1, + olUserItems = 0, + } + + const enum OlTaskDelegationState { + olTaskDelegationAccepted = 2, + olTaskDelegationDeclined = 3, + olTaskDelegationUnknown = 1, + olTaskNotDelegated = 0, + } + + const enum OlTaskOwnership { + olDelegatedTask = 1, + olNewTask = 0, + olOwnTask = 2, + } + + const enum OlTaskRecipientType { + olFinalStatus = 3, + olUpdate = 2, + } + + const enum OlTaskResponse { + olTaskAccept = 2, + olTaskAssign = 1, + olTaskDecline = 3, + olTaskSimple = 0, + } + + const enum OlTaskStatus { + olTaskComplete = 2, + olTaskDeferred = 4, + olTaskInProgress = 1, + olTaskNotStarted = 0, + olTaskWaiting = 3, + } + + const enum OlTextAlign { + olTextAlignCenter = 2, + olTextAlignLeft = 1, + olTextAlignRight = 3, + } + + const enum OlTimelineViewMode { + olTimelineViewDay = 0, + olTimelineViewMonth = 2, + olTimelineViewWeek = 1, + } + + const enum OlTimeStyle { + olTimeStyleShortDuration = 4, + olTimeStyleTimeDuration = 1, + olTimeStyleTimeOnly = 0, + } + + const enum OlTrackingStatus { + olTrackingDelivered = 1, + olTrackingNone = 0, + olTrackingNotDelivered = 2, + olTrackingNotRead = 3, + olTrackingRead = 6, + olTrackingRecallFailure = 4, + olTrackingRecallSuccess = 5, + olTrackingReplied = 7, + } + + const enum OlUserPropertyType { + olCombination = 19, + olCurrency = 14, + olDateTime = 5, + olDuration = 7, + olEnumeration = 21, + olFormula = 18, + olInteger = 20, + olKeywords = 11, + olNumber = 3, + olOutlookInternal = 0, + olPercent = 12, + olSmartFrom = 22, + olText = 1, + olYesNo = 6, + } + + const enum OlVerticalLayout { + olVerticalLayoutAlignBottom = 2, + olVerticalLayoutAlignMiddle = 1, + olVerticalLayoutAlignTop = 0, + olVerticalLayoutGrow = 3, + } + + const enum OlViewSaveOption { + olViewSaveOptionAllFoldersOfType = 2, + olViewSaveOptionThisFolderEveryone = 0, + olViewSaveOptionThisFolderOnlyMe = 1, + } + + const enum OlViewType { + olBusinessCardView = 5, + olCalendarView = 2, + olCardView = 1, + olDailyTaskListView = 6, + olIconView = 3, + olTableView = 0, + olTimelineView = 4, + } + + const enum OlWindowState { + olMaximized = 0, + olMinimized = 1, + olNormalWindow = 2, + } + + class _DocSiteControl { + private 'Outlook._DocSiteControl_typekey': _DocSiteControl; + private constructor(); + ReadOnly: number; + SuppressAttachments: number; + } + + class _RecipientControl { + private 'Outlook._RecipientControl_typekey': _RecipientControl; + private constructor(); + BackColor: number; + Enabled: number; + Font: any; + ForeColor: number; + ReadOnly: number; + SpecialEffect: number; + } + + class Account { + private 'Outlook.Account_typekey': Account; + private constructor(); + readonly AccountType: OlAccountType; + readonly Application: Application; + readonly AutoDiscoverConnectionMode: OlAutoDiscoverConnectionMode; + readonly AutoDiscoverXml: string; + readonly Class: OlObjectClass; + readonly CurrentUser: Recipient; + readonly DeliveryStore: Store; + readonly DisplayName: string; + readonly ExchangeConnectionMode: OlExchangeConnectionMode; + readonly ExchangeMailboxServerName: string; + readonly ExchangeMailboxServerVersion: string; + GetAddressEntryFromID(ID: string): AddressEntry; + GetRecipientFromID(EntryID: string): Recipient; + readonly Parent: any; + readonly Session: NameSpace; + readonly SmtpAddress: string; + readonly UserName: string; + } + + class AccountRuleCondition { + private 'Outlook.AccountRuleCondition_typekey': AccountRuleCondition; + private constructor(); + Account: Account; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly ConditionType: OlRuleConditionType; + Enabled: boolean; + readonly Parent: any; + readonly Session: NameSpace; + } + + class Accounts { + private 'Outlook.Accounts_typekey': Accounts; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): Account; + readonly Parent: any; + readonly Session: NameSpace; + } + + class AccountSelector { + private 'Outlook.AccountSelector_typekey': AccountSelector; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Parent: any; + readonly SelectedAccount: Account; + readonly Session: NameSpace; + } + + class Action { + private 'Outlook.Action_typekey': Action; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + CopyLike: OlActionCopyLike; + Delete(): void; + Enabled: boolean; + Execute(): any; + MessageClass: string; + Name: string; + readonly Parent: any; + Prefix: string; + ReplyStyle: OlActionReplyStyle; + ResponseStyle: OlActionResponseStyle; + readonly Session: NameSpace; + ShowOn: OlActionShowOn; + } + + class Actions { + private 'Outlook.Actions_typekey': Actions; + private constructor(); + Add(): Action; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): Action; + readonly Parent: any; + Remove(Index: number): void; + readonly Session: NameSpace; + } + + class AddressEntries { + private 'Outlook.AddressEntries_typekey': AddressEntries; + private constructor(); + Add(Type: string, Name?: any, Address?: any): AddressEntry; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + GetFirst(): AddressEntry; + GetLast(): AddressEntry; + GetNext(): AddressEntry; + GetPrevious(): AddressEntry; + Item(Index: any): AddressEntry; + readonly Parent: any; + readonly RawTable: any; + readonly Session: NameSpace; + Sort(Property?: any, Order?: any): void; + } + + class AddressEntry { + private 'Outlook.AddressEntry_typekey': AddressEntry; + private constructor(); + Address: string; + readonly AddressEntryUserType: OlAddressEntryUserType; + readonly Application: Application; + readonly Class: OlObjectClass; + Delete(): void; + Details(HWnd?: any): void; + readonly DisplayType: OlDisplayType; + GetContact(): ContactItem; + GetExchangeDistributionList(): ExchangeDistributionList; + GetExchangeUser(): ExchangeUser; + GetFreeBusy(Start: VarDate, MinPerChar: number, CompleteFormat?: any): string; + readonly ID: string; + readonly Manager: AddressEntry; + MAPIOBJECT: any; + readonly Members: AddressEntries; + Name: string; + readonly Parent: any; + readonly PropertyAccessor: PropertyAccessor; + readonly Session: NameSpace; + Type: string; + Update(MakePermanent?: any, Refresh?: any): void; + UpdateFreeBusy(): void; + } + + class AddressList { + private 'Outlook.AddressList_typekey': AddressList; + private constructor(); + readonly AddressEntries: AddressEntries; + readonly AddressListType: OlAddressListType; + readonly Application: Application; + readonly Class: OlObjectClass; + GetContactsFolder(): Folder; + readonly ID: string; + readonly Index: number; + readonly IsInitialAddressList: boolean; + readonly IsReadOnly: boolean; + readonly Name: string; + readonly Parent: any; + readonly PropertyAccessor: PropertyAccessor; + readonly ResolutionOrder: number; + readonly Session: NameSpace; + } + + class AddressLists { + private 'Outlook.AddressLists_typekey': AddressLists; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): AddressList; + readonly Parent: any; + readonly Session: NameSpace; + } + + class AddressRuleCondition { + private 'Outlook.AddressRuleCondition_typekey': AddressRuleCondition; + private constructor(); + Address: any; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly ConditionType: OlRuleConditionType; + Enabled: boolean; + readonly Parent: any; + readonly Session: NameSpace; + } + + class Application { + private 'Outlook.Application_typekey': Application; + private constructor(); + ActiveExplorer(): Explorer; + ActiveInspector(): Inspector; + ActiveWindow(): any; + AdvancedSearch(Scope: string, Filter?: any, SearchSubFolders?: any, Tag?: any): Search; + readonly AnswerWizard: Office.AnswerWizard; + readonly Application: Application; + readonly Assistance: Office.IAssistance; + readonly Assistant: Office.Assistant; + readonly Class: OlObjectClass; + readonly COMAddIns: Office.COMAddIns; + CopyFile(FilePath: string, DestFolderPath: string): any; + CreateItem(ItemType: OlItemType.olAppointmentItem): AppointmentItem; + CreateItem(ItemType: OlItemType.olContactItem): ContactItem; + CreateItem(ItemType: OlItemType.olDistributionListItem): DistListItem; + CreateItem(ItemType: OlItemType.olJournalItem): JournalItem; + CreateItem(ItemType: OlItemType.olMailItem): MailItem; + CreateItem(ItemType: OlItemType.olMobileItemMMS | OlItemType.olMobileItemSMS): MobileItem; + CreateItem(ItemType: OlItemType.olNoteItem): NoteItem; + CreateItem(ItemType: OlItemType.olPostItem): PostItem; + CreateItem(ItemType: OlItemType.olTaskItem): TaskItem; + CreateItemFromTemplate(TemplatePath: string, InFolder?: any): any; + CreateObject(ObjectName: string): any; + readonly DefaultProfileName: string; + readonly Explorers: Explorers; + FeatureInstall: Office.MsoFeatureInstall; + GetNamespace(Type: string): NameSpace; + GetNewNickNames(pvar: any): void; + GetObjectReference(Item: any, ReferenceType: OlReferenceType): any; + readonly Inspectors: Inspectors; + IsSearchSynchronous(LookInFolders: string): boolean; + readonly IsTrusted: boolean; + readonly LanguageSettings: Office.LanguageSettings; + readonly Name: string; + readonly Parent: any; + readonly PickerDialog: Office.PickerDialog; + readonly ProductCode: string; + Quit(): void; + RefreshFormRegionDefinition(RegionName: string): void; + readonly Reminders: Reminders; + readonly Session: NameSpace; + readonly TimeZones: TimeZones; + readonly Version: string; + } + + class AppointmentItem { + private 'Outlook.AppointmentItem_typekey': AppointmentItem; + private constructor(); + readonly Actions: Actions; + AllDayEvent: boolean; + readonly Application: Application; + readonly Attachments: Attachments; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Body: string; + BusyStatus: OlBusyStatus; + Categories: string; + readonly Class: OlObjectClass; + ClearRecurrencePattern(): void; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + ConferenceServerAllowExternal: boolean; + ConferenceServerPassword: string; + readonly Conflicts: Conflicts; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + CopyTo(DestinationFolder: Folder, CopyOptions: OlAppointmentCopyOptions): AppointmentItem; + readonly CreationTime: VarDate; + Delete(): void; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + Duration: number; + End: VarDate; + EndInEndTimeZone: VarDate; + EndTimeZone: TimeZone; + EndUTC: VarDate; + readonly EntryID: string; + ForceUpdateToAllAttendees: boolean; + readonly FormDescription: FormDescription; + ForwardAsVcal(): MailItem; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + GetOrganizer(): AddressEntry; + GetRecurrencePattern(): RecurrencePattern; + readonly GlobalAppointmentID: string; + Importance: OlImportance; + InternetCodepage: number; + readonly IsConflict: boolean; + IsOnlineMeeting: boolean; + readonly IsRecurring: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + Location: string; + readonly MAPIOBJECT: any; + MarkForDownload: OlRemoteStatus; + MeetingStatus: OlMeetingStatus; + readonly MeetingWorkspaceURL: string; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NetMeetingAutoStart: boolean; + NetMeetingDocPathName: string; + NetMeetingOrganizerAlias: string; + NetMeetingServer: string; + NetMeetingType: OlNetMeetingType; + NetShowURL: string; + NoAging: boolean; + OptionalAttendees: string; + readonly Organizer: string; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + readonly Recipients: Recipients; + readonly RecurrenceState: OlRecurrenceState; + ReminderMinutesBeforeStart: number; + ReminderOverrideDefault: boolean; + ReminderPlaySound: boolean; + ReminderSet: boolean; + ReminderSoundFile: string; + ReplyTime: VarDate; + RequiredAttendees: string; + Resources: string; + Respond(Response: OlMeetingResponse, fNoUI?: any, fAdditionalTextDialog?: any): MeetingItem; + ResponseRequested: boolean; + readonly ResponseStatus: OlResponseStatus; + RTFBody: any; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + Send(): void; + SendUsingAccount: Account; + Sensitivity: OlSensitivity; + readonly Session: NameSpace; + ShowCategoriesDialog(): void; + readonly Size: number; + Start: VarDate; + StartInStartTimeZone: VarDate; + StartTimeZone: TimeZone; + StartUTC: VarDate; + Subject: string; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class AssignToCategoryRuleAction { + private 'Outlook.AssignToCategoryRuleAction_typekey': AssignToCategoryRuleAction; + private constructor(); + readonly ActionType: OlRuleActionType; + readonly Application: Application; + Categories: any; + readonly Class: OlObjectClass; + Enabled: boolean; + readonly Parent: any; + readonly Session: NameSpace; + } + + class Attachment { + private 'Outlook.Attachment_typekey': Attachment; + private constructor(); + readonly Application: Application; + readonly BlockLevel: OlAttachmentBlockLevel; + readonly Class: OlObjectClass; + Delete(): void; + DisplayName: string; + readonly FileName: string; + GetTemporaryFilePath(): string; + readonly Index: number; + readonly MAPIOBJECT: any; + readonly Parent: any; + readonly PathName: string; + Position: number; + readonly PropertyAccessor: PropertyAccessor; + SaveAsFile(Path: string): void; + readonly Session: NameSpace; + readonly Size: number; + readonly Type: OlAttachmentType; + } + + class Attachments { + private 'Outlook.Attachments_typekey': Attachments; + private constructor(); + Add(Source: any, Type?: any, Position?: any, DisplayName?: any): Attachment; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): Attachment; + readonly Parent: any; + Remove(Index: number): void; + readonly Session: NameSpace; + } + + class AttachmentSelection { + private 'Outlook.AttachmentSelection_typekey': AttachmentSelection; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + GetSelection(SelectionContents: OlSelectionContents): Selection; + Item(Index: any): Attachment; + readonly Location: OlSelectionLocation; + readonly Parent: any; + readonly Session: NameSpace; + } + + class AutoFormatRule { + private 'Outlook.AutoFormatRule_typekey': AutoFormatRule; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + Enabled: boolean; + Filter: string; + Font: ViewFont; + Name: string; + readonly Parent: any; + readonly Session: NameSpace; + readonly Standard: boolean; + } + + class AutoFormatRules { + private 'Outlook.AutoFormatRules_typekey': AutoFormatRules; + private constructor(); + Add(Name: string): AutoFormatRule; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Insert(Name: string, Index: any): AutoFormatRule; + Item(Index: any): AutoFormatRule; + readonly Parent: any; + Remove(Index: any): void; + RemoveAll(): void; + Save(): void; + readonly Session: NameSpace; + } + + class BusinessCardView { + private 'Outlook.BusinessCardView_typekey': BusinessCardView; + private constructor(); + readonly Application: Application; + Apply(): void; + CardSize: number; + readonly Class: OlObjectClass; + Copy(Name: string, SaveOption: OlViewSaveOption): View; + Delete(): void; + Filter: string; + GoToDate(Date: VarDate): void; + readonly HeadingsFont: ViewFont; + Language: string; + LockUserChanges: boolean; + Name: string; + readonly Parent: any; + Reset(): void; + Save(): void; + readonly SaveOption: OlViewSaveOption; + readonly Session: NameSpace; + readonly SortFields: OrderFields; + readonly Standard: boolean; + readonly ViewType: OlViewType; + XML: string; + } + + class CalendarModule { + private 'Outlook.CalendarModule_typekey': CalendarModule; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Name: string; + readonly NavigationGroups: NavigationGroups; + readonly NavigationModuleType: OlNavigationModuleType; + readonly Parent: any; + Position: number; + readonly Session: NameSpace; + Visible: boolean; + } + + class CalendarSharing { + private 'Outlook.CalendarSharing_typekey': CalendarSharing; + private constructor(); + readonly Application: Application; + CalendarDetail: OlCalendarDetail; + readonly Class: OlObjectClass; + EndDate: VarDate; + readonly Folder: Folder; + ForwardAsICal(MailFormat: OlCalendarMailFormat): MailItem; + IncludeAttachments: boolean; + IncludePrivateDetails: boolean; + IncludeWholeCalendar: boolean; + readonly Parent: any; + RestrictToWorkingHours: boolean; + SaveAsICal(Path: string): void; + readonly Session: NameSpace; + StartDate: VarDate; + } + + class CalendarView { + private 'Outlook.CalendarView_typekey': CalendarView; + private constructor(); + readonly Application: Application; + Apply(): void; + readonly AutoFormatRules: AutoFormatRules; + BoldDatesWithItems: boolean; + BoldSubjects: boolean; + CalendarViewMode: OlCalendarViewMode; + readonly Class: OlObjectClass; + Copy(Name: string, SaveOption: OlViewSaveOption): View; + DaysInMultiDayMode: number; + readonly DayWeekFont: ViewFont; + readonly DayWeekTimeFont: ViewFont; + DayWeekTimeScale: OlDayWeekTimeScale; + Delete(): void; + readonly DisplayedDates: any; + EndField: string; + Filter: string; + GoToDate(Date: VarDate): void; + Language: string; + LockUserChanges: boolean; + readonly MonthFont: ViewFont; + MonthShowEndTime: boolean; + Name: string; + readonly Parent: any; + Reset(): void; + Save(): void; + readonly SaveOption: OlViewSaveOption; + readonly SelectedEndTime: VarDate; + readonly SelectedStartTime: VarDate; + readonly Session: NameSpace; + readonly Standard: boolean; + StartField: string; + readonly ViewType: OlViewType; + XML: string; + } + + class CardView { + private 'Outlook.CardView_typekey': CardView; + private constructor(); + AllowInCellEditing: boolean; + readonly Application: Application; + Apply(): void; + readonly AutoFormatRules: AutoFormatRules; + readonly BodyFont: ViewFont; + readonly Class: OlObjectClass; + Copy(Name: string, SaveOption: OlViewSaveOption): View; + Delete(): void; + Filter: string; + GoToDate(Date: VarDate): void; + readonly HeadingsFont: ViewFont; + Language: string; + LockUserChanges: boolean; + MultiLineFieldHeight: number; + Name: string; + readonly Parent: any; + Reset(): void; + Save(): void; + readonly SaveOption: OlViewSaveOption; + readonly Session: NameSpace; + ShowEmptyFields: boolean; + readonly SortFields: OrderFields; + readonly Standard: boolean; + readonly ViewFields: ViewFields; + readonly ViewType: OlViewType; + Width: number; + XML: string; + } + + class Categories { + private 'Outlook.Categories_typekey': Categories; + private constructor(); + Add(Name: string, Color?: any, ShortcutKey?: any): Category; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): Category; + readonly Parent: any; + Remove(Index: any): void; + readonly Session: NameSpace; + } + + class Category { + private 'Outlook.Category_typekey': Category; + private constructor(); + readonly Application: Application; + readonly CategoryBorderColor: stdole.OLE_COLOR; + readonly CategoryGradientBottomColor: stdole.OLE_COLOR; + readonly CategoryGradientTopColor: stdole.OLE_COLOR; + readonly CategoryID: string; + readonly Class: OlObjectClass; + Color: OlCategoryColor; + Name: string; + readonly Parent: any; + readonly Session: NameSpace; + ShortcutKey: OlCategoryShortcutKey; + } + + class CategoryRuleCondition { + private 'Outlook.CategoryRuleCondition_typekey': CategoryRuleCondition; + private constructor(); + readonly Application: Application; + Categories: any; + readonly Class: OlObjectClass; + readonly ConditionType: OlRuleConditionType; + Enabled: boolean; + readonly Parent: any; + readonly Session: NameSpace; + } + + class Column { + private 'Outlook.Column_typekey': Column; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Name: string; + readonly Parent: any; + readonly Session: NameSpace; + } + + class ColumnFormat { + private 'Outlook.ColumnFormat_typekey': ColumnFormat; + private constructor(); + Align: OlAlign; + readonly Application: Application; + readonly Class: OlObjectClass; + FieldFormat: number; + readonly FieldType: OlUserPropertyType; + Label: string; + readonly Parent: any; + readonly Session: NameSpace; + Width: number; + } + + class Columns { + private 'Outlook.Columns_typekey': Columns; + private constructor(); + Add(Name: string): Column; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): Column; + readonly Parent: any; + Remove(Index: any): void; + RemoveAll(): void; + readonly Session: NameSpace; + } + + class Conflict { + private 'Outlook.Conflict_typekey': Conflict; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Item: any; + readonly Name: string; + readonly Parent: any; + readonly Session: NameSpace; + readonly Type: OlObjectClass; + } + + class Conflicts { + private 'Outlook.Conflicts_typekey': Conflicts; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + GetFirst(): Conflict; + GetLast(): Conflict; + GetNext(): Conflict; + GetPrevious(): Conflict; + Item(Index: any): Conflict; + readonly Parent: any; + readonly Session: NameSpace; + } + + class ContactItem { + private 'Outlook.ContactItem_typekey': ContactItem; + private constructor(); + Account: string; + readonly Actions: Actions; + AddBusinessCardLogoPicture(Path: string): void; + AddPicture(Path: string): void; + Anniversary: VarDate; + readonly Application: Application; + AssistantName: string; + AssistantTelephoneNumber: string; + readonly Attachments: Attachments; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Birthday: VarDate; + Body: string; + Business2TelephoneNumber: string; + BusinessAddress: string; + BusinessAddressCity: string; + BusinessAddressCountry: string; + BusinessAddressPostalCode: string; + BusinessAddressPostOfficeBox: string; + BusinessAddressState: string; + BusinessAddressStreet: string; + BusinessCardLayoutXml: string; + readonly BusinessCardType: OlBusinessCardType; + BusinessFaxNumber: string; + BusinessHomePage: string; + BusinessTelephoneNumber: string; + CallbackTelephoneNumber: string; + CarTelephoneNumber: string; + Categories: string; + Children: string; + readonly Class: OlObjectClass; + ClearTaskFlag(): void; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly CompanyAndFullName: string; + readonly CompanyLastFirstNoSpace: string; + readonly CompanyLastFirstSpaceOnly: string; + CompanyMainTelephoneNumber: string; + CompanyName: string; + ComputerNetworkName: string; + readonly Conflicts: Conflicts; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + CustomerID: string; + Delete(): void; + Department: string; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + Email1Address: string; + Email1AddressType: string; + Email1DisplayName: string; + readonly Email1EntryID: string; + Email2Address: string; + Email2AddressType: string; + Email2DisplayName: string; + readonly Email2EntryID: string; + Email3Address: string; + Email3AddressType: string; + Email3DisplayName: string; + readonly Email3EntryID: string; + readonly EntryID: string; + FileAs: string; + FirstName: string; + readonly FormDescription: FormDescription; + ForwardAsBusinessCard(): MailItem; + ForwardAsVcard(): MailItem; + FTPSite: string; + FullName: string; + readonly FullNameAndCompany: string; + Gender: OlGender; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + GovernmentIDNumber: string; + readonly HasPicture: boolean; + Hobby: string; + Home2TelephoneNumber: string; + HomeAddress: string; + HomeAddressCity: string; + HomeAddressCountry: string; + HomeAddressPostalCode: string; + HomeAddressPostOfficeBox: string; + HomeAddressState: string; + HomeAddressStreet: string; + HomeFaxNumber: string; + HomeTelephoneNumber: string; + IMAddress: string; + Importance: OlImportance; + Initials: string; + InternetFreeBusyAddress: string; + readonly IsConflict: boolean; + ISDNNumber: string; + readonly IsMarkedAsTask: boolean; + readonly ItemProperties: ItemProperties; + JobTitle: string; + Journal: boolean; + Language: string; + readonly LastFirstAndSuffix: string; + readonly LastFirstNoSpace: string; + readonly LastFirstNoSpaceAndSuffix: string; + readonly LastFirstNoSpaceCompany: string; + readonly LastFirstSpaceOnly: string; + readonly LastFirstSpaceOnlyCompany: string; + readonly LastModificationTime: VarDate; + LastName: string; + readonly LastNameAndFirstName: string; + readonly Links: Links; + MailingAddress: string; + MailingAddressCity: string; + MailingAddressCountry: string; + MailingAddressPostalCode: string; + MailingAddressPostOfficeBox: string; + MailingAddressState: string; + MailingAddressStreet: string; + ManagerName: string; + readonly MAPIOBJECT: any; + MarkAsTask(MarkInterval: OlMarkInterval): void; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + MiddleName: string; + Mileage: string; + MobileTelephoneNumber: string; + Move(DestFldr: Folder): any; + NetMeetingAlias: string; + NetMeetingServer: string; + NickName: string; + NoAging: boolean; + OfficeLocation: string; + OrganizationalIDNumber: string; + OtherAddress: string; + OtherAddressCity: string; + OtherAddressCountry: string; + OtherAddressPostalCode: string; + OtherAddressPostOfficeBox: string; + OtherAddressState: string; + OtherAddressStreet: string; + OtherFaxNumber: string; + OtherTelephoneNumber: string; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + PagerNumber: string; + readonly Parent: any; + PersonalHomePage: string; + PrimaryTelephoneNumber: string; + PrintOut(): void; + Profession: string; + readonly PropertyAccessor: PropertyAccessor; + RadioTelephoneNumber: string; + ReferredBy: string; + ReminderOverrideDefault: boolean; + ReminderPlaySound: boolean; + ReminderSet: boolean; + ReminderSoundFile: string; + ReminderTime: VarDate; + RemovePicture(): void; + ResetBusinessCard(): void; + RTFBody: any; + Save(): void; + SaveAs(Path: string, Type?: any): void; + SaveBusinessCardImage(Path: string): void; + readonly Saved: boolean; + SelectedMailingAddress: OlMailingAddress; + Sensitivity: OlSensitivity; + readonly Session: NameSpace; + ShowBusinessCardEditor(): void; + ShowCategoriesDialog(): void; + ShowCheckPhoneDialog(PhoneNumber: OlContactPhoneNumber): void; + readonly Size: number; + Spouse: string; + Subject: string; + Suffix: string; + TaskCompletedDate: VarDate; + TaskDueDate: VarDate; + TaskStartDate: VarDate; + TaskSubject: string; + TelexNumber: string; + Title: string; + ToDoTaskOrdinal: VarDate; + TTYTDDTelephoneNumber: string; + UnRead: boolean; + User1: string; + User2: string; + User3: string; + User4: string; + UserCertificate: string; + readonly UserProperties: UserProperties; + WebPage: string; + YomiCompanyName: string; + YomiFirstName: string; + YomiLastName: string; + } + + class ContactsModule { + private 'Outlook.ContactsModule_typekey': ContactsModule; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Name: string; + readonly NavigationGroups: NavigationGroups; + readonly NavigationModuleType: OlNavigationModuleType; + readonly Parent: any; + Position: number; + readonly Session: NameSpace; + Visible: boolean; + } + + class Conversation { + private 'Outlook.Conversation_typekey': Conversation; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + ClearAlwaysAssignCategories(Store: Store): void; + readonly ConversationID: string; + GetAlwaysAssignCategories(Store: Store): string; + GetAlwaysDelete(Store: Store): OlAlwaysDeleteConversation; + GetAlwaysMoveToFolder(Store: Store): Folder; + GetChildren(Item: any): SimpleItems; + GetParent(Item: any): any; + GetRootItems(): SimpleItems; + GetTable(): Table; + MarkAsRead(): void; + MarkAsUnread(): void; + readonly Parent: any; + readonly Session: NameSpace; + SetAlwaysAssignCategories(Categories: string, Store: Store): void; + SetAlwaysDelete(AlwaysDelete: OlAlwaysDeleteConversation, Store: Store): void; + SetAlwaysMoveToFolder(MoveToFolder: Folder, Store: Store): void; + StopAlwaysDelete(Store: Store): void; + StopAlwaysMoveToFolder(Store: Store): void; + } + + class ConversationHeader { + private 'Outlook.ConversationHeader_typekey': ConversationHeader; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly ConversationID: string; + readonly ConversationTopic: string; + GetConversation(): Conversation; + GetItems(): SimpleItems; + readonly Parent: any; + readonly Session: NameSpace; + } + + class DistListItem { + private 'Outlook.DistListItem_typekey': DistListItem; + private constructor(); + readonly Actions: Actions; + AddMember(Recipient: Recipient): void; + AddMembers(Recipients: Recipients): void; + readonly Application: Application; + readonly Attachments: Attachments; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Body: string; + Categories: string; + readonly CheckSum: number; + readonly Class: OlObjectClass; + ClearTaskFlag(): void; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly Conflicts: Conflicts; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + Delete(): void; + Display(Modal?: any): void; + DLName: string; + readonly DownloadState: OlDownloadState; + readonly EntryID: string; + readonly FormDescription: FormDescription; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + GetMember(Index: number): Recipient; + Importance: OlImportance; + readonly IsConflict: boolean; + readonly IsMarkedAsTask: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + readonly MAPIOBJECT: any; + MarkAsTask(MarkInterval: OlMarkInterval): void; + MarkForDownload: OlRemoteStatus; + readonly MemberCount: number; + Members: any; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + OneOffMembers: any; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + ReminderOverrideDefault: boolean; + ReminderPlaySound: boolean; + ReminderSet: boolean; + ReminderSoundFile: string; + ReminderTime: VarDate; + RemoveMember(Recipient: Recipient): void; + RemoveMembers(Recipients: Recipients): void; + RTFBody: any; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + Sensitivity: OlSensitivity; + readonly Session: NameSpace; + ShowCategoriesDialog(): void; + readonly Size: number; + Subject: string; + TaskCompletedDate: VarDate; + TaskDueDate: VarDate; + TaskStartDate: VarDate; + TaskSubject: string; + ToDoTaskOrdinal: VarDate; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class DocumentItem { + private 'Outlook.DocumentItem_typekey': DocumentItem; + private constructor(); + readonly Actions: Actions; + readonly Application: Application; + readonly Attachments: Attachments; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Body: string; + Categories: string; + readonly Class: OlObjectClass; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly Conflicts: Conflicts; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + Delete(): void; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + readonly EntryID: string; + readonly FormDescription: FormDescription; + readonly GetInspector: Inspector; + Importance: OlImportance; + readonly IsConflict: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + readonly MAPIOBJECT: any; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + Sensitivity: OlSensitivity; + readonly Session: NameSpace; + ShowCategoriesDialog(): void; + readonly Size: number; + Subject: string; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class DoNotUseMeFolder { + private 'Outlook.DoNotUseMeFolder_typekey': DoNotUseMeFolder; + private constructor(); + AddressBookName: string; + AddToFavorites(fNoUI?: any, Name?: any): void; + AddToPFFavorites(): void; + readonly Application: Application; + readonly Class: OlObjectClass; + CopyTo(DestinationFolder: Folder): Folder; + readonly CurrentView: View; + CustomViewsOnly: boolean; + readonly DefaultItemType: OlItemType; + readonly DefaultMessageClass: string; + Delete(): void; + Description: string; + Display(): void; + readonly EntryID: string; + readonly FolderPath: string; + readonly Folders: Folders; + readonly FullFolderPath: string; + GetCalendarExporter(): CalendarSharing; + GetCustomIcon(): stdole.StdPicture; + GetExplorer(DisplayMode?: any): Explorer; + GetStorage(StorageIdentifier: string, StorageIdentifierType: OlStorageIdentifierType): StorageItem; + GetTable(Filter?: any, TableContents?: any): Table; + InAppFolderSyncObject: boolean; + readonly IsSharePointFolder: boolean; + readonly Items: Items; + readonly MAPIOBJECT: any; + MoveTo(DestinationFolder: Folder): void; + Name: string; + readonly Parent: any; + readonly PropertyAccessor: PropertyAccessor; + readonly Session: NameSpace; + SetCustomIcon(Picture: stdole.StdPicture): void; + ShowAsOutlookAB: boolean; + ShowItemCount: OlShowItemCount; + readonly Store: Store; + readonly StoreID: string; + readonly UnReadItemCount: number; + readonly UserDefinedProperties: UserDefinedProperties; + readonly UserPermissions: any; + readonly Views: Views; + WebViewAllowNavigation: boolean; + WebViewOn: boolean; + WebViewURL: string; + } + + class Exception { + private 'Outlook.Exception_typekey': Exception; + private constructor(); + readonly Application: Application; + readonly AppointmentItem: AppointmentItem; + readonly Class: OlObjectClass; + readonly Deleted: boolean; + readonly ItemProperties: ItemProperties; + readonly OriginalDate: VarDate; + readonly Parent: any; + readonly Session: NameSpace; + } + + class Exceptions { + private 'Outlook.Exceptions_typekey': Exceptions; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): Exception; + readonly Parent: any; + readonly Session: NameSpace; + } + + class ExchangeDistributionList { + private 'Outlook.ExchangeDistributionList_typekey': ExchangeDistributionList; + private constructor(); + Address: string; + readonly AddressEntryUserType: OlAddressEntryUserType; + readonly Alias: string; + readonly Application: Application; + readonly Class: OlObjectClass; + Comments: string; + Delete(): void; + Details(HWnd?: any): void; + readonly DisplayType: OlDisplayType; + GetContact(): ContactItem; + GetExchangeDistributionList(): ExchangeDistributionList; + GetExchangeDistributionListMembers(): AddressEntries; + GetExchangeUser(): ExchangeUser; + GetFreeBusy(Start: VarDate, MinPerChar: number, CompleteFormat?: any): string; + GetMemberOfList(): AddressEntries; + GetOwners(): AddressEntries; + readonly ID: string; + readonly Manager: AddressEntry; + MAPIOBJECT: any; + readonly Members: AddressEntries; + Name: string; + readonly Parent: any; + readonly PrimarySmtpAddress: string; + readonly PropertyAccessor: PropertyAccessor; + readonly Session: NameSpace; + Type: string; + Update(MakePermanent?: any, Refresh?: any): void; + UpdateFreeBusy(): void; + } + + class ExchangeUser { + private 'Outlook.ExchangeUser_typekey': ExchangeUser; + private constructor(); + Address: string; + readonly AddressEntryUserType: OlAddressEntryUserType; + readonly Alias: string; + readonly Application: Application; + AssistantName: string; + BusinessTelephoneNumber: string; + City: string; + readonly Class: OlObjectClass; + Comments: string; + CompanyName: string; + Delete(): void; + Department: string; + Details(HWnd?: any): void; + readonly DisplayType: OlDisplayType; + FirstName: string; + GetContact(): ContactItem; + GetDirectReports(): AddressEntries; + GetExchangeDistributionList(): ExchangeDistributionList; + GetExchangeUser(): ExchangeUser; + GetExchangeUserManager(): ExchangeUser; + GetFreeBusy(Start: VarDate, MinPerChar: number, CompleteFormat?: any): string; + GetMemberOfList(): AddressEntries; + GetPicture(): stdole.StdPicture; + readonly ID: string; + JobTitle: string; + LastName: string; + readonly Manager: AddressEntry; + MAPIOBJECT: any; + readonly Members: AddressEntries; + MobileTelephoneNumber: string; + Name: string; + OfficeLocation: string; + readonly Parent: any; + PostalCode: string; + readonly PrimarySmtpAddress: string; + readonly PropertyAccessor: PropertyAccessor; + readonly Session: NameSpace; + StateOrProvince: string; + StreetAddress: string; + Type: string; + Update(MakePermanent?: any, Refresh?: any): void; + UpdateFreeBusy(): void; + YomiCompanyName: string; + YomiDepartment: string; + YomiDisplayName: string; + YomiFirstName: string; + YomiLastName: string; + } + + class Explorer { + private 'Outlook.Explorer_typekey': Explorer; + private constructor(); + readonly AccountSelector: AccountSelector; + Activate(): void; + AddToSelection(Item: any): void; + readonly Application: Application; + readonly AttachmentSelection: AttachmentSelection; + readonly Caption: string; + readonly Class: OlObjectClass; + ClearSearch(): void; + ClearSelection(): void; + Close(): void; + readonly CommandBars: Office.CommandBars; + CurrentFolder: Folder; + CurrentView: any; + DeselectFolder(Folder: Folder): void; + Display(): void; + Height: number; + readonly HTMLDocument: any; + IsFolderSelected(Folder: Folder): boolean; + IsItemSelectableInView(Item: any): boolean; + IsPaneVisible(Pane: OlPane): boolean; + Left: number; + readonly NavigationPane: NavigationPane; + readonly Panes: Panes; + readonly Parent: any; + RemoveFromSelection(Item: any): void; + Search(Query: string, SearchScope: OlSearchScope): void; + SelectAllItems(): void; + SelectFolder(Folder: Folder): void; + readonly Selection: Selection; + readonly Session: NameSpace; + ShowPane(Pane: OlPane, Visible: boolean): void; + Top: number; + readonly Views: any; + Width: number; + WindowState: OlWindowState; + } + + class Explorers { + private 'Outlook.Explorers_typekey': Explorers; + private constructor(); + Add(Folder: any, DisplayMode: OlFolderDisplayMode): Explorer; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): Explorer; + readonly Parent: any; + readonly Session: NameSpace; + } + + class Folder { + private 'Outlook.Folder_typekey': Folder; + private constructor(); + AddressBookName: string; + AddToFavorites(fNoUI?: any, Name?: any): void; + AddToPFFavorites(): void; + readonly Application: Application; + readonly Class: OlObjectClass; + CopyTo(DestinationFolder: Folder): Folder; + readonly CurrentView: View; + CustomViewsOnly: boolean; + readonly DefaultItemType: OlItemType; + readonly DefaultMessageClass: string; + Delete(): void; + Description: string; + Display(): void; + readonly EntryID: string; + readonly FolderPath: string; + readonly Folders: Folders; + readonly FullFolderPath: string; + GetCalendarExporter(): CalendarSharing; + GetCustomIcon(): stdole.StdPicture; + GetExplorer(DisplayMode?: any): Explorer; + GetStorage(StorageIdentifier: string, StorageIdentifierType: OlStorageIdentifierType): StorageItem; + GetTable(Filter?: any, TableContents?: any): Table; + InAppFolderSyncObject: boolean; + readonly IsSharePointFolder: boolean; + readonly Items: Items; + readonly MAPIOBJECT: any; + MoveTo(DestinationFolder: Folder): void; + Name: string; + readonly Parent: any; + readonly PropertyAccessor: PropertyAccessor; + readonly Session: NameSpace; + SetCustomIcon(Picture: stdole.StdPicture): void; + ShowAsOutlookAB: boolean; + ShowItemCount: OlShowItemCount; + readonly Store: Store; + readonly StoreID: string; + readonly UnReadItemCount: number; + readonly UserDefinedProperties: UserDefinedProperties; + readonly UserPermissions: any; + readonly Views: Views; + WebViewAllowNavigation: boolean; + WebViewOn: boolean; + WebViewURL: string; + } + + class Folders { + private 'Outlook.Folders_typekey': Folders; + private constructor(); + Add(Name: string, Type?: any): Folder; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + GetFirst(): Folder; + GetLast(): Folder; + GetNext(): Folder; + GetPrevious(): Folder; + Item(Index: any): Folder; + readonly Parent: any; + readonly RawTable: any; + Remove(Index: number): void; + readonly Session: NameSpace; + } + + class FormDescription { + private 'Outlook.FormDescription_typekey': FormDescription; + private constructor(); + readonly Application: Application; + Category: string; + CategorySub: string; + readonly Class: OlObjectClass; + Comment: string; + ContactName: string; + DisplayName: string; + Hidden: boolean; + Icon: string; + Locked: boolean; + readonly MessageClass: string; + MiniIcon: string; + Name: string; + Number: string; + OneOff: boolean; + readonly Parent: any; + Password: string; + PublishForm(Registry: OlFormRegistry, Folder?: any): void; + readonly ScriptText: string; + readonly Session: NameSpace; + Template: string; + UseWordMail: boolean; + Version: string; + } + + class FormNameRuleCondition { + private 'Outlook.FormNameRuleCondition_typekey': FormNameRuleCondition; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly ConditionType: OlRuleConditionType; + Enabled: boolean; + FormName: any; + readonly Parent: any; + readonly Session: NameSpace; + } + + class FormRegion { + private 'Outlook.FormRegion_typekey': FormRegion; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + Detail: string; + readonly DisplayName: string; + EnableAutoLayout: boolean; + readonly Form: any; + readonly FormRegionMode: OlFormRegionMode; + readonly Inspector: Inspector; + readonly InternalName: string; + readonly IsExpanded: boolean; + readonly Item: any; + readonly Language: number; + readonly Parent: any; + Reflow(): void; + Select(): void; + readonly Session: NameSpace; + SetControlItemProperty(Control: any, PropertyName: string): void; + SuppressControlReplacement: boolean; + Visible: boolean; + } + + class FormRegionStartup { + private 'Outlook.FormRegionStartup_typekey': FormRegionStartup; + private constructor(); + BeforeFormRegionShow(FormRegion: FormRegion): void; + GetFormRegionIcon(FormRegionName: string, LCID: number, Icon: OlFormRegionIcon): any; + GetFormRegionManifest(FormRegionName: string, LCID: number): any; + GetFormRegionStorage(FormRegionName: string, Item: any, LCID: number, FormRegionMode: OlFormRegionMode, FormRegionSize: OlFormRegionSize): any; + } + + class FromRssFeedRuleCondition { + private 'Outlook.FromRssFeedRuleCondition_typekey': FromRssFeedRuleCondition; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly ConditionType: OlRuleConditionType; + Enabled: boolean; + FromRssFeed: any; + readonly Parent: any; + readonly Session: NameSpace; + } + + class IconView { + private 'Outlook.IconView_typekey': IconView; + private constructor(); + readonly Application: Application; + Apply(): void; + readonly Class: OlObjectClass; + Copy(Name: string, SaveOption: OlViewSaveOption): View; + Delete(): void; + Filter: string; + GoToDate(Date: VarDate): void; + IconPlacement: OlIconViewPlacement; + IconViewType: OlIconViewType; + Language: string; + LockUserChanges: boolean; + Name: string; + readonly Parent: any; + Reset(): void; + Save(): void; + readonly SaveOption: OlViewSaveOption; + readonly Session: NameSpace; + readonly SortFields: OrderFields; + readonly Standard: boolean; + readonly ViewType: OlViewType; + XML: string; + } + + class ImportanceRuleCondition { + private 'Outlook.ImportanceRuleCondition_typekey': ImportanceRuleCondition; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly ConditionType: OlRuleConditionType; + Enabled: boolean; + Importance: OlImportance; + readonly Parent: any; + readonly Session: NameSpace; + } + + class Inspector { + private 'Outlook.Inspector_typekey': Inspector; + private constructor(); + Activate(): void; + readonly Application: Application; + readonly AttachmentSelection: AttachmentSelection; + readonly Caption: string; + readonly Class: OlObjectClass; + Close(SaveMode: OlInspectorClose): void; + readonly CommandBars: Office.CommandBars; + readonly CurrentItem: any; + Display(Modal?: any): void; + readonly EditorType: OlEditorType; + Height: number; + HideFormPage(PageName: string): void; + readonly HTMLEditor: any; + IsWordMail(): boolean; + Left: number; + readonly ModifiedFormPages: any; + NewFormRegion(): any; + OpenFormRegion(Path: string): any; + readonly Parent: any; + SaveFormRegion(Page: any, FileName: string): void; + readonly Session: NameSpace; + SetControlItemProperty(Control: any, PropertyName: string): void; + SetCurrentFormPage(PageName: string): void; + SetSchedulingStartTime(Start: VarDate): void; + ShowFormPage(PageName: string): void; + Top: number; + Width: number; + WindowState: OlWindowState; + readonly WordEditor: any; + } + + class Inspectors { + private 'Outlook.Inspectors_typekey': Inspectors; + private constructor(); + Add(Item: any): Inspector; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): Inspector; + readonly Parent: any; + readonly Session: NameSpace; + } + + class ItemProperties { + private 'Outlook.ItemProperties_typekey': ItemProperties; + private constructor(); + Add(Name: string, Type: OlUserPropertyType, AddToFolderFields?: any, DisplayFormat?: any): ItemProperty; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): ItemProperty; + readonly Parent: any; + Remove(Index: number): void; + readonly Session: NameSpace; + } + + class ItemProperty { + private 'Outlook.ItemProperty_typekey': ItemProperty; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + Delete(): void; + Formula: string; + readonly IsUserProperty: boolean; + readonly Name: string; + readonly Parent: any; + readonly Session: NameSpace; + readonly Type: OlUserPropertyType; + ValidationFormula: string; + ValidationText: string; + Value: any; + } + + class Items { + private 'Outlook.Items_typekey': Items; + private constructor(); + Add(Type?: any): any; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Find(Filter: string): any; + FindNext(): any; + GetFirst(): any; + GetLast(): any; + GetNext(): any; + GetPrevious(): any; + IncludeRecurrences: boolean; + Item(Index: any): any; + readonly Parent: any; + readonly RawTable: any; + Remove(Index: number): void; + ResetColumns(): void; + Restrict(Filter: string): Items; + readonly Session: NameSpace; + SetColumns(Columns: string): void; + Sort(Property: string, Descending?: any): void; + } + + class JournalItem { + private 'Outlook.JournalItem_typekey': JournalItem; + private constructor(); + readonly Actions: Actions; + readonly Application: Application; + readonly Attachments: Attachments; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Body: string; + Categories: string; + readonly Class: OlObjectClass; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly Conflicts: Conflicts; + ContactNames: string; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + Delete(): void; + Display(Modal?: any): void; + DocPosted: boolean; + DocPrinted: boolean; + DocRouted: boolean; + DocSaved: boolean; + readonly DownloadState: OlDownloadState; + Duration: number; + End: VarDate; + readonly EntryID: string; + readonly FormDescription: FormDescription; + Forward(): MailItem; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + Importance: OlImportance; + readonly IsConflict: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + readonly MAPIOBJECT: any; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + readonly Recipients: Recipients; + Reply(): MailItem; + ReplyAll(): MailItem; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + Sensitivity: OlSensitivity; + readonly Session: NameSpace; + ShowCategoriesDialog(): void; + readonly Size: number; + Start: VarDate; + StartTimer(): void; + StopTimer(): void; + Subject: string; + Type: string; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class JournalModule { + private 'Outlook.JournalModule_typekey': JournalModule; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Name: string; + readonly NavigationGroups: NavigationGroups; + readonly NavigationModuleType: OlNavigationModuleType; + readonly Parent: any; + Position: number; + readonly Session: NameSpace; + Visible: boolean; + } + + class Link { + private 'Outlook.Link_typekey': Link; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Item: any; + readonly Name: string; + readonly Parent: any; + readonly Session: NameSpace; + readonly Type: OlObjectClass; + } + + class Links { + private 'Outlook.Links_typekey': Links; + private constructor(); + Add(Item: any): Link; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): Link; + readonly Parent: any; + Remove(Index: any): void; + readonly Session: NameSpace; + } + + class MailItem { + private 'Outlook.MailItem_typekey': MailItem; + private constructor(); + readonly Actions: Actions; + AddBusinessCard(contact: ContactItem): void; + AlternateRecipientAllowed: boolean; + readonly Application: Application; + readonly Attachments: Attachments; + AutoForwarded: boolean; + readonly AutoResolvedWinner: boolean; + BCC: string; + BillingInformation: string; + Body: string; + BodyFormat: OlBodyFormat; + Categories: string; + CC: string; + readonly Class: OlObjectClass; + ClearConversationIndex(): void; + ClearTaskFlag(): void; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly Conflicts: Conflicts; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + DeferredDeliveryTime: VarDate; + Delete(): void; + DeleteAfterSubmit: boolean; + Display(Modal?: boolean): void; + readonly DownloadState: OlDownloadState; + EnableSharedAttachments: boolean; + readonly EntryID: string; + ExpiryTime: VarDate; + FlagDueBy: VarDate; + FlagIcon: OlFlagIcon; + FlagRequest: string; + FlagStatus: OlFlagStatus; + readonly FormDescription: FormDescription; + Forward(): MailItem; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + HasCoverSheet: boolean; + HTMLBody: string; + Importance: OlImportance; + InternetCodepage: number; + readonly IsConflict: boolean; + IsIPFax: boolean; + readonly IsMarkedAsTask: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + readonly MAPIOBJECT: any; + MarkAsTask(MarkInterval: OlMarkInterval): void; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + OriginatorDeliveryReportRequested: boolean; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + Permission: OlPermission; + PermissionService: OlPermissionService; + PermissionTemplateGuid: string; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + ReadReceiptRequested: boolean; + readonly ReceivedByEntryID: string; + readonly ReceivedByName: string; + readonly ReceivedOnBehalfOfEntryID: string; + readonly ReceivedOnBehalfOfName: string; + readonly ReceivedTime: VarDate; + RecipientReassignmentProhibited: boolean; + readonly Recipients: Recipients; + ReminderOverrideDefault: boolean; + ReminderPlaySound: boolean; + ReminderSet: boolean; + ReminderSoundFile: string; + ReminderTime: VarDate; + RemoteStatus: OlRemoteStatus; + Reply(): MailItem; + ReplyAll(): MailItem; + readonly ReplyRecipientNames: string; + readonly ReplyRecipients: Recipients; + readonly RetentionExpirationDate: VarDate; + readonly RetentionPolicyName: string; + RTFBody: any; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + SaveSentMessageFolder: Folder; + Send(): void; + Sender: AddressEntry; + readonly SenderEmailAddress: string; + readonly SenderEmailType: string; + readonly SenderName: string; + SendUsingAccount: Account; + Sensitivity: OlSensitivity; + readonly Sent: boolean; + readonly SentOn: VarDate; + SentOnBehalfOfName: string; + readonly Session: NameSpace; + ShowCategoriesDialog(): void; + readonly Size: number; + Subject: string; + readonly Submitted: boolean; + TaskCompletedDate: VarDate; + TaskDueDate: VarDate; + TaskStartDate: VarDate; + TaskSubject: string; + To: string; + ToDoTaskOrdinal: VarDate; + UnRead: boolean; + readonly UserProperties: UserProperties; + VotingOptions: string; + VotingResponse: string; + } + + class MailModule { + private 'Outlook.MailModule_typekey': MailModule; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Name: string; + readonly NavigationGroups: NavigationGroups; + readonly NavigationModuleType: OlNavigationModuleType; + readonly Parent: any; + Position: number; + readonly Session: NameSpace; + Visible: boolean; + } + + class MarkAsTaskRuleAction { + private 'Outlook.MarkAsTaskRuleAction_typekey': MarkAsTaskRuleAction; + private constructor(); + readonly ActionType: OlRuleActionType; + readonly Application: Application; + readonly Class: OlObjectClass; + Enabled: boolean; + FlagTo: string; + MarkInterval: OlMarkInterval; + readonly Parent: any; + readonly Session: NameSpace; + } + + class MeetingItem { + private 'Outlook.MeetingItem_typekey': MeetingItem; + private constructor(); + readonly Actions: Actions; + readonly Application: Application; + readonly Attachments: Attachments; + AutoForwarded: boolean; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Body: string; + Categories: string; + readonly Class: OlObjectClass; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly Conflicts: Conflicts; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + DeferredDeliveryTime: VarDate; + Delete(): void; + DeleteAfterSubmit: boolean; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + readonly EntryID: string; + ExpiryTime: VarDate; + FlagDueBy: VarDate; + FlagIcon: OlFlagIcon; + FlagRequest: string; + FlagStatus: OlFlagStatus; + readonly FormDescription: FormDescription; + Forward(): MeetingItem; + GetAssociatedAppointment(AddToCalendar: boolean): AppointmentItem; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + Importance: OlImportance; + readonly IsConflict: boolean; + readonly IsLatestVersion: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + readonly MAPIOBJECT: any; + MarkForDownload: OlRemoteStatus; + readonly MeetingWorkspaceURL: string; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + OriginatorDeliveryReportRequested: boolean; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + ReceivedTime: VarDate; + readonly Recipients: Recipients; + ReminderSet: boolean; + ReminderTime: VarDate; + Reply(): MailItem; + ReplyAll(): MailItem; + readonly ReplyRecipients: Recipients; + readonly RetentionExpirationDate: VarDate; + readonly RetentionPolicyName: string; + RTFBody: any; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + SaveSentMessageFolder: Folder; + Send(): void; + readonly SenderEmailAddress: string; + readonly SenderEmailType: string; + readonly SenderName: string; + SendUsingAccount: Account; + Sensitivity: OlSensitivity; + readonly Sent: boolean; + readonly SentOn: VarDate; + readonly Session: NameSpace; + ShowCategoriesDialog(): void; + readonly Size: number; + Subject: string; + readonly Submitted: boolean; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class MobileItem { + private 'Outlook.MobileItem_typekey': MobileItem; + private constructor(); + readonly Actions: Actions; + readonly Application: Application; + readonly Attachments: Attachments; + BillingInformation: string; + Body: string; + Categories: string; + readonly Class: OlObjectClass; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly Count: number; + readonly CreationTime: VarDate; + Delete(): void; + Display(Modal?: any): void; + readonly EntryID: string; + readonly FormDescription: FormDescription; + Forward(): MobileItem; + readonly GetInspector: Inspector; + HTMLBody: string; + Importance: OlImportance; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly MAPIOBJECT: any; + MessageClass: string; + Mileage: string; + readonly MobileFormat: OlMobileFormat; + Move(DestFldr: Folder): any; + NoAging: boolean; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + readonly ReceivedByEntryID: string; + readonly ReceivedByName: string; + readonly ReceivedTime: VarDate; + readonly Recipients: Recipients; + Reply(): MobileItem; + ReplyAll(): MobileItem; + readonly ReplyRecipientNames: string; + readonly ReplyRecipients: Recipients; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + Send(ForceSend: boolean): void; + readonly SenderEmailAddress: string; + readonly SenderEmailType: string; + readonly SenderName: string; + SendUsingAccount: Account; + Sensitivity: OlSensitivity; + readonly Sent: boolean; + readonly SentOn: VarDate; + readonly Session: NameSpace; + readonly Size: number; + SMILBody: string; + Subject: string; + readonly Submitted: boolean; + To: string; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class MoveOrCopyRuleAction { + private 'Outlook.MoveOrCopyRuleAction_typekey': MoveOrCopyRuleAction; + private constructor(); + readonly ActionType: OlRuleActionType; + readonly Application: Application; + readonly Class: OlObjectClass; + Enabled: boolean; + Folder: Folder; + readonly Parent: any; + readonly Session: NameSpace; + } + + class NameSpace { + private 'Outlook.NameSpace_typekey': NameSpace; + private constructor(); + readonly Accounts: Accounts; + readonly AddressLists: AddressLists; + AddStore(Store: any): void; + AddStoreEx(Store: any, Type: OlStoreType): void; + readonly Application: Application; + readonly AutoDiscoverConnectionMode: OlAutoDiscoverConnectionMode; + readonly AutoDiscoverXml: string; + readonly Categories: Categories; + readonly Class: OlObjectClass; + CompareEntryIDs(FirstEntryID: string, SecondEntryID: string): boolean; + CreateContactCard(AddressEntry: AddressEntry): Office.ContactCard; + CreateRecipient(RecipientName: string): Recipient; + CreateSharingItem(Context: any, Provider?: any): SharingItem; + readonly CurrentProfileName: string; + readonly CurrentUser: Recipient; + readonly DefaultStore: Store; + Dial(ContactItem?: any): void; + readonly ExchangeConnectionMode: OlExchangeConnectionMode; + readonly ExchangeMailboxServerName: string; + readonly ExchangeMailboxServerVersion: string; + readonly Folders: Folders; + GetAddressEntryFromID(ID: string): AddressEntry; + GetDefaultFolder(FolderType: OlDefaultFolders): Folder; + GetFolderFromID(EntryIDFolder: string, EntryIDStore?: any): Folder; + GetGlobalAddressList(): AddressList; + GetItemFromID(EntryIDItem: string, EntryIDStore?: any): any; + GetRecipientFromID(EntryID: string): Recipient; + GetSelectNamesDialog(): SelectNamesDialog; + GetSharedDefaultFolder(Recipient: Recipient, FolderType: OlDefaultFolders): Folder; + GetStoreFromID(ID: string): Store; + Logoff(): void; + Logon(Profile?: any, Password?: any, ShowDialog?: any, NewSession?: any): void; + readonly MAPIOBJECT: any; + readonly Offline: boolean; + OpenSharedFolder(Path: string, Name?: any, DownloadAttachments?: any, UseTTL?: any): Folder; + OpenSharedItem(Path: string): any; + readonly Parent: any; + PickFolder(): Folder; + RefreshRemoteHeaders(): void; + RemoveStore(Folder: Folder): void; + SendAndReceive(showProgressDialog: boolean): void; + readonly Session: NameSpace; + readonly Stores: Stores; + readonly SyncObjects: SyncObjects; + readonly Type: string; + } + + class NavigationFolder { + private 'Outlook.NavigationFolder_typekey': NavigationFolder; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly DisplayName: string; + readonly Folder: Folder; + readonly IsRemovable: boolean; + IsSelected: boolean; + IsSideBySide: boolean; + readonly Parent: any; + Position: number; + readonly Session: NameSpace; + } + + class NavigationFolders { + private 'Outlook.NavigationFolders_typekey': NavigationFolders; + private constructor(); + Add(Folder: Folder): NavigationFolder; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): NavigationFolder; + readonly Parent: any; + Remove(RemovableFolder: NavigationFolder): void; + readonly Session: NameSpace; + } + + class NavigationGroup { + private 'Outlook.NavigationGroup_typekey': NavigationGroup; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly GroupType: OlGroupType; + Name: string; + readonly NavigationFolders: NavigationFolders; + readonly Parent: any; + Position: number; + readonly Session: NameSpace; + } + + class NavigationGroups { + private 'Outlook.NavigationGroups_typekey': NavigationGroups; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Create(GroupDisplayName: string): NavigationGroup; + Delete(Group: NavigationGroup): void; + GetDefaultNavigationGroup(DefaultFolderGroup: OlGroupType): NavigationGroup; + Item(Index: any): NavigationGroup; + readonly Parent: any; + readonly Session: NameSpace; + } + + class NavigationModule { + private 'Outlook.NavigationModule_typekey': NavigationModule; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Name: string; + readonly NavigationModuleType: OlNavigationModuleType; + readonly Parent: any; + Position: number; + readonly Session: NameSpace; + Visible: boolean; + } + + class NavigationModules { + private 'Outlook.NavigationModules_typekey': NavigationModules; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + GetNavigationModule(ModuleType: OlNavigationModuleType): NavigationModule; + Item(Index: any): NavigationModule; + readonly Parent: any; + readonly Session: NameSpace; + } + + class NavigationPane { + private 'Outlook.NavigationPane_typekey': NavigationPane; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + CurrentModule: NavigationModule; + DisplayedModuleCount: number; + IsCollapsed: boolean; + readonly Modules: NavigationModules; + readonly Parent: any; + readonly Session: NameSpace; + } + + class NewItemAlertRuleAction { + private 'Outlook.NewItemAlertRuleAction_typekey': NewItemAlertRuleAction; + private constructor(); + readonly ActionType: OlRuleActionType; + readonly Application: Application; + readonly Class: OlObjectClass; + Enabled: boolean; + readonly Parent: any; + readonly Session: NameSpace; + Text: string; + } + + class NoteItem { + private 'Outlook.NoteItem_typekey': NoteItem; + private constructor(); + readonly Application: Application; + readonly AutoResolvedWinner: boolean; + Body: string; + Categories: string; + readonly Class: OlObjectClass; + Close(SaveMode: OlInspectorClose): void; + Color: OlNoteColor; + readonly Conflicts: Conflicts; + Copy(): any; + readonly CreationTime: VarDate; + Delete(): void; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + readonly EntryID: string; + readonly GetInspector: Inspector; + Height: number; + readonly IsConflict: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + Left: number; + readonly Links: Links; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + Move(DestFldr: Folder): any; + readonly Parent: any; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + readonly Session: NameSpace; + readonly Size: number; + readonly Subject: string; + Top: number; + Width: number; + } + + class NotesModule { + private 'Outlook.NotesModule_typekey': NotesModule; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Name: string; + readonly NavigationGroups: NavigationGroups; + readonly NavigationModuleType: OlNavigationModuleType; + readonly Parent: any; + Position: number; + readonly Session: NameSpace; + Visible: boolean; + } + + class OlkBusinessCardControl { + private 'Outlook.OlkBusinessCardControl_typekey': OlkBusinessCardControl; + private constructor(); + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + } + + class OlkCategory { + private 'Outlook.OlkCategory_typekey': OlkCategory; + private constructor(); + AutoSize: boolean; + BackColor: stdole.OLE_COLOR; + BackStyle: OlBackStyle; + Enabled: boolean; + ForeColor: stdole.OLE_COLOR; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + } + + class OlkCheckBox { + private 'Outlook.OlkCheckBox_typekey': OlkCheckBox; + private constructor(); + Accelerator: string; + Alignment: OlAlignment; + BackColor: stdole.OLE_COLOR; + BackStyle: OlBackStyle; + Caption: string; + Enabled: boolean; + readonly Font: stdole.StdFont; + ForeColor: stdole.OLE_COLOR; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + TripleState: boolean; + Value: any; + WordWrap: boolean; + } + + class OlkComboBox { + private 'Outlook.OlkComboBox_typekey': OlkComboBox; + private constructor(); + AddItem(ItemText: string, Index?: any): void; + AutoSize: boolean; + AutoTab: boolean; + AutoWordSelect: boolean; + BackColor: stdole.OLE_COLOR; + BorderStyle: OlBorderStyle; + Clear(): void; + Copy(): void; + Cut(): void; + DragBehavior: OlDragBehavior; + DropDown(): void; + Enabled: boolean; + EnterFieldBehavior: OlEnterFieldBehavior; + readonly Font: stdole.StdFont; + ForeColor: stdole.OLE_COLOR; + GetItem(Index: number): string; + HideSelection: boolean; + readonly ListCount: number; + ListIndex: number; + Locked: boolean; + MaxLength: number; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + Paste(): void; + RemoveItem(Index: number): void; + SelectionMargin: boolean; + SelLength: number; + SelStart: number; + readonly SelText: string; + SetItem(Index: number, Item: string): void; + Style: OlComboBoxStyle; + Text: string; + TextAlign: OlTextAlign; + TopIndex: number; + Value: any; + } + + class OlkCommandButton { + private 'Outlook.OlkCommandButton_typekey': OlkCommandButton; + private constructor(); + Accelerator: string; + AutoSize: boolean; + Caption: string; + DisplayDropArrow: boolean; + Enabled: boolean; + readonly Font: stdole.StdFont; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + Picture: stdole.StdPicture; + PictureAlignment: OlPictureAlignment; + TextAlign: OlTextAlign; + WordWrap: boolean; + } + + class OlkContactPhoto { + private 'Outlook.OlkContactPhoto_typekey': OlkContactPhoto; + private constructor(); + Enabled: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + } + + class OlkDateControl { + private 'Outlook.OlkDateControl_typekey': OlkDateControl; + private constructor(); + AutoSize: boolean; + AutoWordSelect: boolean; + BackColor: stdole.OLE_COLOR; + BackStyle: OlBackStyle; + Date: VarDate; + DropDown(): void; + Enabled: boolean; + EnterFieldBehavior: OlEnterFieldBehavior; + readonly Font: stdole.StdFont; + ForeColor: stdole.OLE_COLOR; + HideSelection: boolean; + Locked: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + ShowNoneButton: boolean; + Text: string; + TextAlign: OlTextAlign; + Value: any; + } + + class OlkFrameHeader { + private 'Outlook.OlkFrameHeader_typekey': OlkFrameHeader; + private constructor(); + Alignment: OlAlignment; + Caption: string; + Enabled: boolean; + readonly Font: stdole.StdFont; + ForeColor: stdole.OLE_COLOR; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + } + + class OlkInfoBar { + private 'Outlook.OlkInfoBar_typekey': OlkInfoBar; + private constructor(); + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + } + + class OlkLabel { + private 'Outlook.OlkLabel_typekey': OlkLabel; + private constructor(); + Accelerator: string; + AutoSize: boolean; + BackColor: stdole.OLE_COLOR; + BackStyle: OlBackStyle; + BorderStyle: OlBorderStyle; + Caption: string; + Enabled: boolean; + readonly Font: stdole.StdFont; + ForeColor: stdole.OLE_COLOR; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + TextAlign: OlTextAlign; + UseHeaderColor: boolean; + Value: any; + WordWrap: boolean; + } + + class OlkListBox { + private 'Outlook.OlkListBox_typekey': OlkListBox; + private constructor(); + AddItem(ItemText: string, Index?: any): void; + BackColor: stdole.OLE_COLOR; + BorderStyle: OlBorderStyle; + Clear(): void; + Copy(): void; + Enabled: boolean; + readonly Font: stdole.StdFont; + ForeColor: stdole.OLE_COLOR; + GetItem(Index: number): string; + GetSelected(Index: number): boolean; + readonly ListCount: number; + ListIndex: number; + Locked: boolean; + MatchEntry: OlMatchEntry; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + MultiSelect: OlMultiSelect; + RemoveItem(Index: number): void; + SetItem(Index: number, Item: string): void; + SetSelected(Index: number, Selected: boolean): void; + Text: string; + TextAlign: OlTextAlign; + TopIndex: number; + Value: any; + } + + class OlkOptionButton { + private 'Outlook.OlkOptionButton_typekey': OlkOptionButton; + private constructor(); + Accelerator: string; + Alignment: OlAlignment; + BackColor: stdole.OLE_COLOR; + BackStyle: OlBackStyle; + Caption: string; + Enabled: boolean; + readonly Font: stdole.StdFont; + ForeColor: stdole.OLE_COLOR; + GroupName: string; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + Value: any; + WordWrap: boolean; + } + + class OlkPageControl { + private 'Outlook.OlkPageControl_typekey': OlkPageControl; + private constructor(); + Page: OlPageType; + } + + class OlkSenderPhoto { + private 'Outlook.OlkSenderPhoto_typekey': OlkSenderPhoto; + private constructor(); + Enabled: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + readonly PreferredHeight: number; + readonly PreferredWidth: number; + } + + /** Outlook TextBox */ + class OlkTextBox { + private 'Outlook.OlkTextBox_typekey': OlkTextBox; + private constructor(); + AutoSize: boolean; + AutoTab: boolean; + AutoWordSelect: boolean; + BackColor: stdole.OLE_COLOR; + BorderStyle: OlBorderStyle; + Clear(): void; + Copy(): void; + Cut(): void; + DragBehavior: OlDragBehavior; + Enabled: boolean; + EnableRichText: boolean; + EnterFieldBehavior: OlEnterFieldBehavior; + EnterKeyBehavior: boolean; + readonly Font: stdole.StdFont; + ForeColor: stdole.OLE_COLOR; + HideSelection: boolean; + IntegralHeight: boolean; + Locked: boolean; + MaxLength: number; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + MultiLine: boolean; + PasswordChar: string; + Paste(): void; + Scrollbars: OlScrollBars; + SelectionMargin: boolean; + SelLength: number; + SelStart: number; + readonly SelText: string; + TabKeyBehavior: boolean; + Text: string; + TextAlign: OlTextAlign; + Value: any; + WordWrap: boolean; + } + + class OlkTimeControl { + private 'Outlook.OlkTimeControl_typekey': OlkTimeControl; + private constructor(); + AutoSize: boolean; + AutoWordSelect: boolean; + BackColor: stdole.OLE_COLOR; + BackStyle: OlBackStyle; + DropDown(): void; + Enabled: boolean; + EnterFieldBehavior: OlEnterFieldBehavior; + readonly Font: stdole.StdFont; + ForeColor: stdole.OLE_COLOR; + HideSelection: boolean; + IntervalTime: VarDate; + Locked: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + ReferenceTime: VarDate; + Style: OlTimeStyle; + Text: string; + TextAlign: OlTextAlign; + Time: VarDate; + Value: any; + } + + class OlkTimeZoneControl { + private 'Outlook.OlkTimeZoneControl_typekey': OlkTimeZoneControl; + private constructor(); + AppointmentTimeField: OlAppointmentTimeField; + BorderStyle: OlBorderStyle; + DropDown(): void; + Enabled: boolean; + Locked: boolean; + MouseIcon: stdole.StdPicture; + MousePointer: OlMousePointer; + SelectedTimeZoneIndex: number; + Value: any; + } + + class OrderField { + private 'Outlook.OrderField_typekey': OrderField; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + IsDescending: boolean; + readonly Parent: any; + readonly Session: NameSpace; + readonly ViewXMLSchemaName: string; + } + + class OrderFields { + private 'Outlook.OrderFields_typekey': OrderFields; + private constructor(); + Add(PropertyName: string, IsDescending?: any): OrderField; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Insert(PropertyName: string, Index: any, IsDescending?: any): OrderField; + Item(Index: any): OrderField; + readonly Parent: any; + Remove(Index: any): void; + RemoveAll(): void; + readonly Session: NameSpace; + } + + class OutlookBarGroup { + private 'Outlook.OutlookBarGroup_typekey': OutlookBarGroup; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + Name: string; + readonly Parent: any; + readonly Session: NameSpace; + readonly Shortcuts: OutlookBarShortcuts; + ViewType: OlOutlookBarViewType; + } + + class OutlookBarGroups { + private 'Outlook.OutlookBarGroups_typekey': OutlookBarGroups; + private constructor(); + Add(Name: string, Index?: any): OutlookBarGroup; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): OutlookBarGroup; + readonly Parent: any; + Remove(Index: any): void; + readonly Session: NameSpace; + } + + class OutlookBarPane { + private 'Outlook.OutlookBarPane_typekey': OutlookBarPane; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Contents: OutlookBarStorage; + CurrentGroup: OutlookBarGroup; + readonly Name: string; + readonly Parent: any; + readonly Session: NameSpace; + Visible: boolean; + } + + class OutlookBarShortcut { + private 'Outlook.OutlookBarShortcut_typekey': OutlookBarShortcut; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + Name: string; + readonly Parent: any; + readonly Session: NameSpace; + SetIcon(Icon: any): void; + readonly Target: any; + } + + class OutlookBarShortcuts { + private 'Outlook.OutlookBarShortcuts_typekey': OutlookBarShortcuts; + private constructor(); + Add(Target: any, Name: string, Index?: any): OutlookBarShortcut; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): OutlookBarShortcut; + readonly Parent: any; + Remove(Index: any): void; + readonly Session: NameSpace; + } + + class OutlookBarStorage { + private 'Outlook.OutlookBarStorage_typekey': OutlookBarStorage; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Groups: OutlookBarGroups; + readonly Parent: any; + readonly Session: NameSpace; + } + + class Panes { + private 'Outlook.Panes_typekey': Panes; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): any; + readonly Parent: any; + readonly Session: NameSpace; + } + + class PlaySoundRuleAction { + private 'Outlook.PlaySoundRuleAction_typekey': PlaySoundRuleAction; + private constructor(); + readonly ActionType: OlRuleActionType; + readonly Application: Application; + readonly Class: OlObjectClass; + Enabled: boolean; + FilePath: string; + readonly Parent: any; + readonly Session: NameSpace; + } + + class PostItem { + private 'Outlook.PostItem_typekey': PostItem; + private constructor(); + readonly Actions: Actions; + readonly Application: Application; + readonly Attachments: Attachments; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Body: string; + BodyFormat: OlBodyFormat; + Categories: string; + readonly Class: OlObjectClass; + ClearConversationIndex(): void; + ClearTaskFlag(): void; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly Conflicts: Conflicts; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + Delete(): void; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + readonly EntryID: string; + ExpiryTime: VarDate; + readonly FormDescription: FormDescription; + Forward(): MailItem; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + HTMLBody: string; + Importance: OlImportance; + InternetCodepage: number; + readonly IsConflict: boolean; + readonly IsMarkedAsTask: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + readonly MAPIOBJECT: any; + MarkAsTask(MarkInterval: OlMarkInterval): void; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + Post(): void; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + readonly ReceivedTime: VarDate; + ReminderOverrideDefault: boolean; + ReminderPlaySound: boolean; + ReminderSet: boolean; + ReminderSoundFile: string; + ReminderTime: VarDate; + Reply(): MailItem; + RTFBody: any; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + readonly SenderEmailAddress: string; + readonly SenderEmailType: string; + readonly SenderName: string; + Sensitivity: OlSensitivity; + readonly SentOn: VarDate; + readonly Session: NameSpace; + SetACLs(): boolean; + ShowCategoriesDialog(): void; + readonly Size: number; + Subject: string; + TaskCompletedDate: VarDate; + TaskDueDate: VarDate; + TaskStartDate: VarDate; + TaskSubject: string; + ToDoTaskOrdinal: VarDate; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class PropertyAccessor { + private 'Outlook.PropertyAccessor_typekey': PropertyAccessor; + private constructor(); + readonly Application: Application; + BinaryToString(Value: any): string; + readonly Class: OlObjectClass; + DeleteProperties(SchemaNames: any): any; + DeleteProperty(SchemaName: string): void; + GetProperties(SchemaNames: any): any; + GetProperty(SchemaName: string): any; + LocalTimeToUTC(Value: VarDate): VarDate; + readonly Parent: any; + readonly Session: NameSpace; + SetProperties(SchemaNames: any, Values: any): any; + SetProperty(SchemaName: string, Value: any): void; + StringToBinary(Value: string): any; + UTCToLocalTime(Value: VarDate): VarDate; + } + + class PropertyPages { + private 'Outlook.PropertyPages_typekey': PropertyPages; + private constructor(); + Add(Page: any, Title: string): void; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): any; + readonly Parent: any; + Remove(Index: any): void; + readonly Session: NameSpace; + } + + class Recipient { + private 'Outlook.Recipient_typekey': Recipient; + private constructor(); + readonly Address: string; + AddressEntry: AddressEntry; + readonly Application: Application; + AutoResponse: string; + readonly Class: OlObjectClass; + Delete(): void; + readonly DisplayType: OlDisplayType; + readonly EntryID: string; + FreeBusy(Start: VarDate, MinPerChar: number, CompleteFormat?: any): string; + readonly Index: number; + readonly MeetingResponseStatus: OlResponseStatus; + readonly Name: string; + readonly Parent: any; + readonly PropertyAccessor: PropertyAccessor; + Resolve(): boolean; + readonly Resolved: boolean; + Sendable: boolean; + readonly Session: NameSpace; + TrackingStatus: OlTrackingStatus; + TrackingStatusTime: VarDate; + Type: number; + } + + class Recipients { + private 'Outlook.Recipients_typekey': Recipients; + private constructor(); + Add(Name: string): Recipient; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): Recipient; + readonly Parent: any; + Remove(Index: number): void; + ResolveAll(): boolean; + readonly Session: NameSpace; + } + + class RecurrencePattern { + private 'Outlook.RecurrencePattern_typekey': RecurrencePattern; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + DayOfMonth: number; + DayOfWeekMask: OlDaysOfWeek; + Duration: number; + EndTime: VarDate; + readonly Exceptions: Exceptions; + GetOccurrence(StartDate: VarDate): AppointmentItem; + Instance: number; + Interval: number; + MonthOfYear: number; + NoEndDate: boolean; + Occurrences: number; + readonly Parent: any; + PatternEndDate: VarDate; + PatternStartDate: VarDate; + RecurrenceType: OlRecurrenceType; + Regenerate: boolean; + readonly Session: NameSpace; + StartTime: VarDate; + } + + class Reminder { + private 'Outlook.Reminder_typekey': Reminder; + private constructor(); + readonly Application: Application; + readonly Caption: string; + readonly Class: OlObjectClass; + Dismiss(): void; + readonly IsVisible: boolean; + readonly Item: any; + readonly NextReminderDate: VarDate; + readonly OriginalReminderDate: VarDate; + readonly Parent: any; + readonly Session: NameSpace; + Snooze(SnoozeTime?: any): void; + } + + class Reminders { + private 'Outlook.Reminders_typekey': Reminders; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): Reminder; + readonly Parent: any; + Remove(Index: any): void; + readonly Session: NameSpace; + } + + class RemoteItem { + private 'Outlook.RemoteItem_typekey': RemoteItem; + private constructor(); + readonly Actions: Actions; + readonly Application: Application; + readonly Attachments: Attachments; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Body: string; + Categories: string; + readonly Class: OlObjectClass; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly Conflicts: Conflicts; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + Delete(): void; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + readonly EntryID: string; + readonly FormDescription: FormDescription; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + readonly HasAttachment: boolean; + Importance: OlImportance; + readonly IsConflict: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + readonly MAPIOBJECT: any; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + readonly RemoteMessageClass: string; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + Sensitivity: OlSensitivity; + readonly Session: NameSpace; + ShowCategoriesDialog(): void; + readonly Size: number; + Subject: string; + readonly TransferSize: number; + readonly TransferTime: number; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class ReportItem { + private 'Outlook.ReportItem_typekey': ReportItem; + private constructor(); + readonly Actions: Actions; + readonly Application: Application; + readonly Attachments: Attachments; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Body: string; + Categories: string; + readonly Class: OlObjectClass; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly Conflicts: Conflicts; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + Delete(): void; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + readonly EntryID: string; + readonly FormDescription: FormDescription; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + Importance: OlImportance; + readonly IsConflict: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + readonly MAPIOBJECT: any; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + readonly RetentionExpirationDate: VarDate; + readonly RetentionPolicyName: string; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + Sensitivity: OlSensitivity; + readonly Session: NameSpace; + ShowCategoriesDialog(): void; + readonly Size: number; + Subject: string; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class Results { + private 'Outlook.Results_typekey': Results; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + DefaultItemType: OlItemType; + GetFirst(): any; + GetLast(): any; + GetNext(): any; + GetPrevious(): any; + Item(Index: any): any; + readonly Parent: any; + readonly RawTable: any; + ResetColumns(): void; + readonly Session: NameSpace; + SetColumns(Columns: string): void; + Sort(Property: string, Descending?: any): void; + } + + class Row { + private 'Outlook.Row_typekey': Row; + private constructor(); + readonly Application: Application; + BinaryToString(Index: any): string; + readonly Class: OlObjectClass; + GetValues(): any; + Item(Index: any): any; + LocalTimeToUTC(Index: any): VarDate; + readonly Parent: any; + readonly Session: NameSpace; + UTCToLocalTime(Index: any): VarDate; + } + + class Rule { + private 'Outlook.Rule_typekey': Rule; + private constructor(); + readonly Actions: RuleActions; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Conditions: RuleConditions; + Enabled: boolean; + readonly Exceptions: RuleConditions; + Execute(ShowProgress?: any, Folder?: any, IncludeSubfolders?: any, RuleExecuteOption?: any): void; + ExecutionOrder: number; + readonly IsLocalRule: boolean; + Name: string; + readonly Parent: any; + readonly RuleType: OlRuleType; + readonly Session: NameSpace; + } + + class RuleAction { + private 'Outlook.RuleAction_typekey': RuleAction; + private constructor(); + readonly ActionType: OlRuleActionType; + readonly Application: Application; + readonly Class: OlObjectClass; + Enabled: boolean; + readonly Parent: any; + readonly Session: NameSpace; + } + + class RuleActions { + private 'Outlook.RuleActions_typekey': RuleActions; + private constructor(); + readonly Application: Application; + readonly AssignToCategory: AssignToCategoryRuleAction; + readonly CC: SendRuleAction; + readonly Class: OlObjectClass; + readonly ClearCategories: RuleAction; + readonly CopyToFolder: MoveOrCopyRuleAction; + readonly Count: number; + readonly Delete: RuleAction; + readonly DeletePermanently: RuleAction; + readonly DesktopAlert: RuleAction; + readonly Forward: SendRuleAction; + readonly ForwardAsAttachment: SendRuleAction; + Item(Index: number): RuleAction; + readonly MarkAsTask: MarkAsTaskRuleAction; + readonly MoveToFolder: MoveOrCopyRuleAction; + readonly NewItemAlert: NewItemAlertRuleAction; + readonly NotifyDelivery: RuleAction; + readonly NotifyRead: RuleAction; + readonly Parent: any; + readonly PlaySound: PlaySoundRuleAction; + readonly Redirect: SendRuleAction; + readonly Session: NameSpace; + readonly Stop: RuleAction; + } + + class RuleCondition { + private 'Outlook.RuleCondition_typekey': RuleCondition; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly ConditionType: OlRuleConditionType; + Enabled: boolean; + readonly Parent: any; + readonly Session: NameSpace; + } + + class RuleConditions { + private 'Outlook.RuleConditions_typekey': RuleConditions; + private constructor(); + readonly Account: AccountRuleCondition; + readonly AnyCategory: RuleCondition; + readonly Application: Application; + readonly Body: TextRuleCondition; + readonly BodyOrSubject: TextRuleCondition; + readonly Category: CategoryRuleCondition; + readonly CC: RuleCondition; + readonly Class: OlObjectClass; + readonly Count: number; + readonly FormName: FormNameRuleCondition; + readonly From: ToOrFromRuleCondition; + readonly FromAnyRSSFeed: RuleCondition; + readonly FromRssFeed: FromRssFeedRuleCondition; + readonly HasAttachment: RuleCondition; + readonly Importance: ImportanceRuleCondition; + Item(Index: number): RuleCondition; + readonly MeetingInviteOrUpdate: RuleCondition; + readonly MessageHeader: TextRuleCondition; + readonly NotTo: RuleCondition; + readonly OnLocalMachine: RuleCondition; + readonly OnlyToMe: RuleCondition; + readonly OnOtherMachine: RuleCondition; + readonly Parent: any; + readonly RecipientAddress: AddressRuleCondition; + readonly SenderAddress: AddressRuleCondition; + readonly SenderInAddressList: SenderInAddressListRuleCondition; + readonly SentTo: ToOrFromRuleCondition; + readonly Session: NameSpace; + readonly Subject: TextRuleCondition; + readonly ToMe: RuleCondition; + readonly ToOrCc: RuleCondition; + } + + class Rules { + private 'Outlook.Rules_typekey': Rules; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Create(Name: string, RuleType: OlRuleType): Rule; + IsRssRulesProcessingEnabled: boolean; + Item(Index: any): Rule; + readonly Parent: any; + Remove(Index: any): void; + Save(ShowProgress?: any): void; + readonly Session: NameSpace; + } + + class Search { + private 'Outlook.Search_typekey': Search; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Filter: string; + GetTable(): Table; + readonly IsSynchronous: boolean; + readonly Parent: any; + readonly Results: Results; + Save(Name: string): Folder; + readonly Scope: string; + readonly SearchSubFolders: boolean; + readonly Session: NameSpace; + Stop(): void; + readonly Tag: string; + } + + class Selection { + private 'Outlook.Selection_typekey': Selection; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + GetSelection(SelectionContents: OlSelectionContents): Selection; + Item(Index: any): any; + readonly Location: OlSelectionLocation; + readonly Parent: any; + readonly Session: NameSpace; + } + + class SelectNamesDialog { + private 'Outlook.SelectNamesDialog_typekey': SelectNamesDialog; + private constructor(); + AllowMultipleSelection: boolean; + readonly Application: Application; + BccLabel: string; + Caption: string; + CcLabel: string; + readonly Class: OlObjectClass; + Display(): boolean; + ForceResolution: boolean; + InitialAddressList: AddressList; + NumberOfRecipientSelectors: OlRecipientSelectors; + readonly Parent: any; + Recipients: Recipients; + readonly Session: NameSpace; + SetDefaultDisplayMode(defaultMode: OlDefaultSelectNamesDisplayMode): void; + ShowOnlyInitialAddressList: boolean; + ToLabel: string; + } + + class SenderInAddressListRuleCondition { + private 'Outlook.SenderInAddressListRuleCondition_typekey': SenderInAddressListRuleCondition; + private constructor(); + AddressList: AddressList; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly ConditionType: OlRuleConditionType; + Enabled: boolean; + readonly Parent: any; + readonly Session: NameSpace; + } + + class SendRuleAction { + private 'Outlook.SendRuleAction_typekey': SendRuleAction; + private constructor(); + readonly ActionType: OlRuleActionType; + readonly Application: Application; + readonly Class: OlObjectClass; + Enabled: boolean; + readonly Parent: any; + readonly Recipients: Recipients; + readonly Session: NameSpace; + } + + class SharingItem { + private 'Outlook.SharingItem_typekey': SharingItem; + private constructor(); + readonly Actions: Actions; + AddBusinessCard(contact: ContactItem): void; + Allow(): void; + AllowWriteAccess: boolean; + AlternateRecipientAllowed: boolean; + readonly Application: Application; + readonly Attachments: Attachments; + AutoForwarded: boolean; + BCC: string; + BillingInformation: string; + Body: string; + BodyFormat: OlBodyFormat; + Categories: string; + CC: string; + readonly Class: OlObjectClass; + ClearConversationIndex(): void; + ClearTaskFlag(): void; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly Conflicts: Conflicts; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + DeferredDeliveryTime: VarDate; + Delete(): void; + DeleteAfterSubmit: boolean; + Deny(): SharingItem; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + EnableSharedAttachments: boolean; + readonly EntryID: string; + ExpiryTime: VarDate; + FlagDueBy: VarDate; + FlagIcon: OlFlagIcon; + FlagRequest: string; + FlagStatus: OlFlagStatus; + readonly FormDescription: FormDescription; + Forward(): SharingItem; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + HTMLBody: string; + Importance: OlImportance; + InternetCodepage: number; + readonly IsConflict: boolean; + readonly IsMarkedAsTask: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly MAPIOBJECT: any; + MarkAsTask(MarkInterval: OlMarkInterval): void; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + OpenSharedFolder(): Folder; + OriginatorDeliveryReportRequested: boolean; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + Permission: OlPermission; + PermissionService: OlPermissionService; + PermissionTemplateGuid: string; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + ReadReceiptRequested: boolean; + readonly ReceivedByEntryID: string; + readonly ReceivedByName: string; + readonly ReceivedOnBehalfOfEntryID: string; + readonly ReceivedOnBehalfOfName: string; + readonly ReceivedTime: VarDate; + RecipientReassignmentProhibited: boolean; + readonly Recipients: Recipients; + ReminderOverrideDefault: boolean; + ReminderPlaySound: boolean; + ReminderSet: boolean; + ReminderSoundFile: string; + ReminderTime: VarDate; + readonly RemoteID: string; + readonly RemoteName: string; + readonly RemotePath: string; + RemoteStatus: OlRemoteStatus; + Reply(): MailItem; + ReplyAll(): MailItem; + readonly ReplyRecipientNames: string; + readonly ReplyRecipients: Recipients; + readonly RequestedFolder: OlDefaultFolders; + readonly RetentionExpirationDate: VarDate; + readonly RetentionPolicyName: string; + RTFBody: any; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + SaveSentMessageFolder: Folder; + Send(): void; + readonly SenderEmailAddress: string; + readonly SenderEmailType: string; + readonly SenderName: string; + SendUsingAccount: Account; + Sensitivity: OlSensitivity; + readonly Sent: boolean; + readonly SentOn: VarDate; + SentOnBehalfOfName: string; + readonly Session: NameSpace; + readonly SharingProvider: OlSharingProvider; + readonly SharingProviderGuid: string; + ShowCategoriesDialog(): void; + readonly Size: number; + Subject: string; + readonly Submitted: boolean; + TaskCompletedDate: VarDate; + TaskDueDate: VarDate; + TaskStartDate: VarDate; + TaskSubject: string; + To: string; + ToDoTaskOrdinal: VarDate; + Type: OlSharingMsgType; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class SimpleItems { + private 'Outlook.SimpleItems_typekey': SimpleItems; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): any; + readonly Parent: any; + readonly Session: NameSpace; + } + + class SolutionsModule { + private 'Outlook.SolutionsModule_typekey': SolutionsModule; + private constructor(); + AddSolution(Solution: Folder, Scope: OlSolutionScope): void; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Name: string; + readonly NavigationModuleType: OlNavigationModuleType; + readonly Parent: any; + Position: number; + readonly Session: NameSpace; + Visible: boolean; + } + + class StorageItem { + private 'Outlook.StorageItem_typekey': StorageItem; + private constructor(); + readonly Application: Application; + readonly Attachments: Attachments; + Body: string; + readonly Class: OlObjectClass; + readonly CreationTime: VarDate; + Creator: string; + Delete(): void; + readonly EntryID: string; + readonly LastModificationTime: VarDate; + readonly Parent: any; + readonly PropertyAccessor: PropertyAccessor; + Save(): void; + readonly Session: NameSpace; + readonly Size: number; + Subject: string; + readonly UserProperties: UserProperties; + } + + class Store { + private 'Outlook.Store_typekey': Store; + private constructor(); + readonly Application: Application; + readonly Categories: Categories; + readonly Class: OlObjectClass; + readonly DisplayName: string; + readonly ExchangeStoreType: OlExchangeStoreType; + readonly FilePath: string; + GetDefaultFolder(FolderType: OlDefaultFolders): Folder; + GetRootFolder(): Folder; + GetRules(): Rules; + GetSearchFolders(): Folders; + GetSpecialFolder(FolderType: OlSpecialFolders): Folder; + readonly IsCachedExchange: boolean; + readonly IsConversationEnabled: boolean; + readonly IsDataFileStore: boolean; + readonly IsInstantSearchEnabled: boolean; + readonly IsOpen: boolean; + readonly MAPIOBJECT: any; + readonly Parent: any; + readonly PropertyAccessor: PropertyAccessor; + RefreshQuotaDisplay(): void; + readonly Session: NameSpace; + readonly StoreID: string; + } + + class Stores { + private 'Outlook.Stores_typekey': Stores; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): Store; + readonly Parent: any; + readonly Session: NameSpace; + } + + class SyncObject { + private 'Outlook.SyncObject_typekey': SyncObject; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Name: string; + readonly Parent: any; + readonly Session: NameSpace; + Start(): void; + Stop(): void; + } + + class SyncObjects { + private 'Outlook.SyncObjects_typekey': SyncObjects; + private constructor(); + readonly AppFolders: SyncObject; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): SyncObject; + readonly Parent: any; + readonly Session: NameSpace; + } + + class Table { + private 'Outlook.Table_typekey': Table; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Columns: Columns; + readonly EndOfTable: boolean; + FindNextRow(): Row; + FindRow(Filter: string): Row; + GetArray(MaxRows: number): any; + GetNextRow(): Row; + GetRowCount(): number; + MoveToStart(): void; + readonly Parent: any; + Restrict(Filter: string): Table; + readonly Session: NameSpace; + Sort(SortProperty: string, Descending?: any): void; + } + + class TableView { + private 'Outlook.TableView_typekey': TableView; + private constructor(); + AllowInCellEditing: boolean; + AlwaysExpandConversation: boolean; + readonly Application: Application; + Apply(): void; + readonly AutoFormatRules: AutoFormatRules; + AutomaticColumnSizing: boolean; + AutomaticGrouping: boolean; + AutoPreview: OlAutoPreview; + readonly AutoPreviewFont: ViewFont; + readonly Class: OlObjectClass; + readonly ColumnFont: ViewFont; + Copy(Name: string, SaveOption: OlViewSaveOption): View; + DefaultExpandCollapseSetting: OlDefaultExpandCollapseSetting; + Delete(): void; + Filter: string; + GetTable(): Table; + GoToDate(Date: VarDate): void; + GridLineStyle: OlGridLineStyle; + readonly GroupByFields: OrderFields; + HideReadingPaneHeaderInfo: boolean; + Language: string; + LockUserChanges: boolean; + MaxLinesInMultiLineView: number; + MultiLine: OlMultiLine; + MultiLineWidth: number; + Name: string; + readonly Parent: any; + Reset(): void; + readonly RowFont: ViewFont; + Save(): void; + readonly SaveOption: OlViewSaveOption; + readonly Session: NameSpace; + ShowConversationByDate: boolean; + ShowConversationSendersAboveSubject: boolean; + ShowFullConversations: boolean; + ShowItemsInGroups: boolean; + ShowNewItemRow: boolean; + ShowReadingPane: boolean; + ShowUnreadAndFlaggedMessages: boolean; + readonly SortFields: OrderFields; + readonly Standard: boolean; + readonly ViewFields: ViewFields; + readonly ViewType: OlViewType; + XML: string; + } + + class TaskItem { + private 'Outlook.TaskItem_typekey': TaskItem; + private constructor(); + readonly Actions: Actions; + ActualWork: number; + readonly Application: Application; + Assign(): TaskItem; + readonly Attachments: Attachments; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Body: string; + CancelResponseState(): void; + CardData: string; + Categories: string; + readonly Class: OlObjectClass; + ClearRecurrencePattern(): void; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + Complete: boolean; + readonly Conflicts: Conflicts; + ContactNames: string; + Contacts: string; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + DateCompleted: VarDate; + readonly DelegationState: OlTaskDelegationState; + readonly Delegator: string; + Delete(): void; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + DueDate: VarDate; + readonly EntryID: string; + readonly FormDescription: FormDescription; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + GetRecurrencePattern(): RecurrencePattern; + Importance: OlImportance; + InternetCodepage: number; + readonly IsConflict: boolean; + readonly IsRecurring: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + readonly MAPIOBJECT: any; + MarkComplete(): void; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + Ordinal: number; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + Owner: string; + readonly Ownership: OlTaskOwnership; + readonly Parent: any; + PercentComplete: number; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + readonly Recipients: Recipients; + ReminderOverrideDefault: boolean; + ReminderPlaySound: boolean; + ReminderSet: boolean; + ReminderSoundFile: string; + ReminderTime: VarDate; + Respond(Response: OlTaskResponse, fNoUI: any, fAdditionalTextDialog: any): TaskItem; + readonly ResponseState: OlTaskResponse; + Role: string; + RTFBody: any; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + SchedulePlusPriority: string; + Send(): void; + SendUsingAccount: Account; + Sensitivity: OlSensitivity; + readonly Session: NameSpace; + ShowCategoriesDialog(): void; + readonly Size: number; + SkipRecurrence(): boolean; + StartDate: VarDate; + Status: OlTaskStatus; + StatusOnCompletionRecipients: string; + StatusReport(): any; + StatusUpdateRecipients: string; + Subject: string; + TeamTask: boolean; + ToDoTaskOrdinal: VarDate; + TotalWork: number; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class TaskRequestAcceptItem { + private 'Outlook.TaskRequestAcceptItem_typekey': TaskRequestAcceptItem; + private constructor(); + readonly Actions: Actions; + readonly Application: Application; + readonly Attachments: Attachments; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Body: string; + Categories: string; + readonly Class: OlObjectClass; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly Conflicts: Conflicts; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + Delete(): void; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + readonly EntryID: string; + readonly FormDescription: FormDescription; + GetAssociatedTask(AddToTaskList: boolean): TaskItem; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + Importance: OlImportance; + readonly IsConflict: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + readonly MAPIOBJECT: any; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + RTFBody: any; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + Sensitivity: OlSensitivity; + readonly Session: NameSpace; + ShowCategoriesDialog(): void; + readonly Size: number; + Subject: string; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class TaskRequestDeclineItem { + private 'Outlook.TaskRequestDeclineItem_typekey': TaskRequestDeclineItem; + private constructor(); + readonly Actions: Actions; + readonly Application: Application; + readonly Attachments: Attachments; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Body: string; + Categories: string; + readonly Class: OlObjectClass; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly Conflicts: Conflicts; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + Delete(): void; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + readonly EntryID: string; + readonly FormDescription: FormDescription; + GetAssociatedTask(AddToTaskList: boolean): TaskItem; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + Importance: OlImportance; + readonly IsConflict: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + readonly MAPIOBJECT: any; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + RTFBody: any; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + Sensitivity: OlSensitivity; + readonly Session: NameSpace; + ShowCategoriesDialog(): void; + readonly Size: number; + Subject: string; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class TaskRequestItem { + private 'Outlook.TaskRequestItem_typekey': TaskRequestItem; + private constructor(); + readonly Actions: Actions; + readonly Application: Application; + readonly Attachments: Attachments; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Body: string; + Categories: string; + readonly Class: OlObjectClass; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly Conflicts: Conflicts; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + Delete(): void; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + readonly EntryID: string; + readonly FormDescription: FormDescription; + GetAssociatedTask(AddToTaskList: boolean): TaskItem; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + Importance: OlImportance; + readonly IsConflict: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + readonly MAPIOBJECT: any; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + RTFBody: any; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + Sensitivity: OlSensitivity; + readonly Session: NameSpace; + ShowCategoriesDialog(): void; + readonly Size: number; + Subject: string; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class TaskRequestUpdateItem { + private 'Outlook.TaskRequestUpdateItem_typekey': TaskRequestUpdateItem; + private constructor(); + readonly Actions: Actions; + readonly Application: Application; + readonly Attachments: Attachments; + readonly AutoResolvedWinner: boolean; + BillingInformation: string; + Body: string; + Categories: string; + readonly Class: OlObjectClass; + Close(SaveMode: OlInspectorClose): void; + Companies: string; + readonly Conflicts: Conflicts; + readonly ConversationID: string; + readonly ConversationIndex: string; + readonly ConversationTopic: string; + Copy(): any; + readonly CreationTime: VarDate; + Delete(): void; + Display(Modal?: any): void; + readonly DownloadState: OlDownloadState; + readonly EntryID: string; + readonly FormDescription: FormDescription; + GetAssociatedTask(AddToTaskList: boolean): TaskItem; + GetConversation(): Conversation; + readonly GetInspector: Inspector; + Importance: OlImportance; + readonly IsConflict: boolean; + readonly ItemProperties: ItemProperties; + readonly LastModificationTime: VarDate; + readonly Links: Links; + readonly MAPIOBJECT: any; + MarkForDownload: OlRemoteStatus; + MessageClass: string; + Mileage: string; + Move(DestFldr: Folder): any; + NoAging: boolean; + readonly OutlookInternalVersion: number; + readonly OutlookVersion: string; + readonly Parent: any; + PrintOut(): void; + readonly PropertyAccessor: PropertyAccessor; + RTFBody: any; + Save(): void; + SaveAs(Path: string, Type?: any): void; + readonly Saved: boolean; + Sensitivity: OlSensitivity; + readonly Session: NameSpace; + ShowCategoriesDialog(): void; + readonly Size: number; + Subject: string; + UnRead: boolean; + readonly UserProperties: UserProperties; + } + + class TasksModule { + private 'Outlook.TasksModule_typekey': TasksModule; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Name: string; + readonly NavigationGroups: NavigationGroups; + readonly NavigationModuleType: OlNavigationModuleType; + readonly Parent: any; + Position: number; + readonly Session: NameSpace; + Visible: boolean; + } + + class TextRuleCondition { + private 'Outlook.TextRuleCondition_typekey': TextRuleCondition; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly ConditionType: OlRuleConditionType; + Enabled: boolean; + readonly Parent: any; + readonly Session: NameSpace; + Text: any; + } + + class TimelineView { + private 'Outlook.TimelineView_typekey': TimelineView; + private constructor(); + readonly Application: Application; + Apply(): void; + readonly Class: OlObjectClass; + Copy(Name: string, SaveOption: OlViewSaveOption): View; + DefaultExpandCollapseSetting: OlDefaultExpandCollapseSetting; + Delete(): void; + EndField: string; + Filter: string; + GoToDate(Date: VarDate): void; + readonly GroupByFields: OrderFields; + readonly ItemFont: ViewFont; + Language: string; + LockUserChanges: boolean; + readonly LowerScaleFont: ViewFont; + MaxLabelWidth: number; + Name: string; + readonly Parent: any; + Reset(): void; + Save(): void; + readonly SaveOption: OlViewSaveOption; + readonly Session: NameSpace; + ShowLabelWhenViewingByMonth: boolean; + ShowWeekNumbers: boolean; + readonly Standard: boolean; + StartField: string; + TimelineViewMode: OlTimelineViewMode; + readonly UpperScaleFont: ViewFont; + readonly ViewType: OlViewType; + XML: string; + } + + class TimeZone { + private 'Outlook.TimeZone_typekey': TimeZone; + private constructor(); + readonly Application: Application; + readonly Bias: number; + readonly Class: OlObjectClass; + readonly DaylightBias: number; + readonly DaylightDate: VarDate; + readonly DaylightDesignation: string; + readonly ID: string; + readonly Name: string; + readonly Parent: any; + readonly Session: NameSpace; + readonly StandardBias: number; + readonly StandardDate: VarDate; + readonly StandardDesignation: string; + } + + class TimeZones { + private 'Outlook.TimeZones_typekey': TimeZones; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + ConvertTime(SourceDateTime: VarDate, SourceTimeZone: TimeZone, DestinationTimeZone: TimeZone): VarDate; + readonly Count: number; + readonly CurrentTimeZone: TimeZone; + Item(Index: any): TimeZone; + readonly Parent: any; + readonly Session: NameSpace; + } + + class ToOrFromRuleCondition { + private 'Outlook.ToOrFromRuleCondition_typekey': ToOrFromRuleCondition; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly ConditionType: OlRuleConditionType; + Enabled: boolean; + readonly Parent: any; + readonly Recipients: Recipients; + readonly Session: NameSpace; + } + + class UserDefinedProperties { + private 'Outlook.UserDefinedProperties_typekey': UserDefinedProperties; + private constructor(); + Add(Name: string, Type: OlUserPropertyType, DisplayFormat?: any, Formula?: any): UserDefinedProperty; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Find(Name: string): UserDefinedProperty; + Item(Index: any): UserDefinedProperty; + readonly Parent: any; + Refresh(): void; + Remove(Index: number): void; + readonly Session: NameSpace; + } + + class UserDefinedProperty { + private 'Outlook.UserDefinedProperty_typekey': UserDefinedProperty; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + Delete(): void; + readonly DisplayFormat: number; + readonly Formula: string; + readonly Name: string; + readonly Parent: any; + readonly Session: NameSpace; + readonly Type: OlUserPropertyType; + } + + class UserProperties { + private 'Outlook.UserProperties_typekey': UserProperties; + private constructor(); + Add(Name: string, Type: OlUserPropertyType, AddToFolderFields?: any, DisplayFormat?: any): UserProperty; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Find(Name: string, Custom?: any): UserProperty; + Item(Index: any): UserProperty; + readonly Parent: any; + Remove(Index: number): void; + readonly Session: NameSpace; + } + + class UserProperty { + private 'Outlook.UserProperty_typekey': UserProperty; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + Delete(): void; + Formula: string; + readonly IsUserProperty: boolean; + readonly Name: string; + readonly Parent: any; + readonly Session: NameSpace; + readonly Type: OlUserPropertyType; + ValidationFormula: string; + ValidationText: string; + Value: any; + } + + class View { + private 'Outlook.View_typekey': View; + private constructor(); + readonly Application: Application; + Apply(): void; + readonly Class: OlObjectClass; + Copy(Name: string, SaveOption: OlViewSaveOption): View; + Delete(): void; + Filter: string; + GoToDate(Date: VarDate): void; + Language: string; + LockUserChanges: boolean; + Name: string; + readonly Parent: any; + Reset(): void; + Save(): void; + readonly SaveOption: OlViewSaveOption; + readonly Session: NameSpace; + readonly Standard: boolean; + readonly ViewType: OlViewType; + XML: string; + } + + class ViewField { + private 'Outlook.ViewField_typekey': ViewField; + private constructor(); + readonly Application: Application; + readonly Class: OlObjectClass; + readonly ColumnFormat: ColumnFormat; + readonly Parent: any; + readonly Session: NameSpace; + readonly ViewXMLSchemaName: string; + } + + class ViewFields { + private 'Outlook.ViewFields_typekey': ViewFields; + private constructor(); + Add(PropertyName: string): ViewField; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Insert(PropertyName: string, Index: any): ViewField; + Item(Index: any): ViewField; + readonly Parent: any; + Remove(Index: any): void; + readonly Session: NameSpace; + } + + class ViewFont { + private 'Outlook.ViewFont_typekey': ViewFont; + private constructor(); + readonly Application: Application; + Bold: boolean; + readonly Class: OlObjectClass; + Color: OlColor; + ExtendedColor: OlCategoryColor; + Italic: boolean; + Name: string; + readonly Parent: any; + readonly Session: NameSpace; + Size: number; + Strikethrough: boolean; + Underline: boolean; + } + + class Views { + private 'Outlook.Views_typekey': Views; + private constructor(); + Add(Name: string, ViewType: OlViewType, SaveOption: OlViewSaveOption): View; + readonly Application: Application; + readonly Class: OlObjectClass; + readonly Count: number; + Item(Index: any): View; + readonly Parent: any; + Remove(Index: any): void; + readonly Session: NameSpace; + } +} + +interface ActiveXObject { + on(obj: Outlook.Accounts, event: 'AutoDiscoverComplete', argNames: ['Account'], handler: (this: Outlook.Accounts, parameter: {readonly Account: Outlook.Account}) => void): void; + on( + obj: Outlook.AccountSelector, event: 'SelectedAccountChange', argNames: ['SelectedAccount'], handler: ( + this: Outlook.AccountSelector, parameter: {readonly SelectedAccount: Outlook.Account}) => void): void; + on( + obj: Outlook.Application, event: 'AdvancedSearchComplete' | 'AdvancedSearchStopped', argNames: ['SearchObject'], handler: ( + this: Outlook.Application, parameter: {readonly SearchObject: Outlook.Search}) => void): void; + on( + obj: Outlook.Application, event: 'AttachmentContextMenuDisplay', argNames: ['CommandBar', 'Attachments'], handler: ( + this: Outlook.Application, parameter: {readonly CommandBar: Office.CommandBar, readonly Attachments: Outlook.AttachmentSelection}) => void): void; + on( + obj: Outlook.Application, event: 'BeforeFolderSharingDialog', argNames: ['FolderToShare', 'Cancel'], handler: ( + this: Outlook.Application, parameter: {readonly FolderToShare: Outlook.Folder, Cancel: boolean}) => void): void; + on(obj: Outlook.Application, event: 'ContextMenuClose', argNames: ['ContextMenu'], handler: (this: Outlook.Application, parameter: {readonly ContextMenu: Outlook.OlContextMenu}) => void): void; + on( + obj: Outlook.Application, event: 'FolderContextMenuDisplay', argNames: ['CommandBar', 'Folder'], handler: ( + this: Outlook.Application, parameter: {readonly CommandBar: Office.CommandBar, readonly Folder: Outlook.Folder}) => void): void; + on( + obj: Outlook.Application, event: 'ItemContextMenuDisplay', argNames: ['CommandBar', 'Selection'], handler: ( + this: Outlook.Application, parameter: {readonly CommandBar: Office.CommandBar, readonly Selection: Outlook.Selection}) => void): void; + on(obj: Outlook.Application, event: 'ItemLoad' | 'Reminder', argNames: ['Item'], handler: (this: Outlook.Application, parameter: {readonly Item: any}) => void): void; + on(obj: Outlook.Application, event: 'ItemSend', argNames: ['Item', 'Cancel'], handler: (this: Outlook.Application, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on(obj: Outlook.Application, event: 'NewMailEx', argNames: ['EntryIDCollection'], handler: (this: Outlook.Application, parameter: {readonly EntryIDCollection: string}) => void): void; + on(obj: Outlook.Application, event: 'OptionsPagesAdd', argNames: ['Pages'], handler: (this: Outlook.Application, parameter: {readonly Pages: Outlook.PropertyPages}) => void): void; + on( + obj: Outlook.Application, event: 'ShortcutContextMenuDisplay', argNames: ['CommandBar', 'Shortcut'], handler: ( + this: Outlook.Application, parameter: {readonly CommandBar: Office.CommandBar, readonly Shortcut: Outlook.OutlookBarShortcut}) => void): void; + on( + obj: Outlook.Application, event: 'StoreContextMenuDisplay', argNames: ['CommandBar', 'Store'], handler: ( + this: Outlook.Application, parameter: {readonly CommandBar: Office.CommandBar, readonly Store: Outlook.Store}) => void): void; + on( + obj: Outlook.Application, event: 'ViewContextMenuDisplay', argNames: ['CommandBar', 'View'], handler: ( + this: Outlook.Application, parameter: {readonly CommandBar: Office.CommandBar, readonly View: Outlook.View}) => void): void; + on( + obj: Outlook.AppointmentItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.AppointmentItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.AppointmentItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.AppointmentItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.AppointmentItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.AppointmentItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.AppointmentItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.AppointmentItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.AppointmentItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.AppointmentItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.AppointmentItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.AppointmentItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.AppointmentItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.AppointmentItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.AppointmentItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: ( + this: Outlook.AppointmentItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.ContactItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.ContactItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.ContactItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.ContactItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.ContactItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.ContactItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.ContactItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.ContactItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.ContactItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.ContactItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.ContactItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.ContactItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.ContactItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.ContactItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.ContactItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: ( + this: Outlook.ContactItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.DistListItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.DistListItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.DistListItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.DistListItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.DistListItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.DistListItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.DistListItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.DistListItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.DistListItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.DistListItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.DistListItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.DistListItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.DistListItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.DistListItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.DistListItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: ( + this: Outlook.DistListItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.DocumentItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.DocumentItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.DocumentItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.DocumentItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.DocumentItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.DocumentItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.DocumentItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.DocumentItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.DocumentItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.DocumentItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.DocumentItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.DocumentItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.DocumentItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.DocumentItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.DocumentItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: ( + this: Outlook.DocumentItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.Explorer, event: 'BeforeFolderSwitch', argNames: ['NewFolder', 'Cancel'], handler: (this: Outlook.Explorer, parameter: {readonly NewFolder: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.Explorer, event: 'BeforeItemCopy' | 'BeforeItemCut' | 'BeforeMaximize' | 'BeforeMinimize' | 'BeforeMove' | 'BeforeSize', argNames: ['Cancel'], + handler: (this: Outlook.Explorer, parameter: {Cancel: boolean}) => void): void; + on( + obj: Outlook.Explorer, event: 'BeforeItemPaste', argNames: ['ClipboardContent', 'Target', 'Cancel'], handler: ( + this: Outlook.Explorer, parameter: {readonly ClipboardContent: any, readonly Target: Outlook.Folder, Cancel: boolean}) => void): void; + on(obj: Outlook.Explorer, event: 'BeforeViewSwitch', argNames: ['NewView', 'Cancel'], handler: (this: Outlook.Explorer, parameter: {readonly NewView: any, Cancel: boolean}) => void): void; + on(obj: Outlook.Explorers, event: 'NewExplorer', argNames: ['Explorer'], handler: (this: Outlook.Explorers, parameter: {readonly Explorer: Outlook.Explorer}) => void): void; + on(obj: Outlook.Folder, event: 'BeforeFolderMove', argNames: ['MoveTo', 'Cancel'], handler: (this: Outlook.Folder, parameter: {readonly MoveTo: Outlook.Folder, Cancel: boolean}) => void): void; + on( + obj: Outlook.Folder, event: 'BeforeItemMove', argNames: ['Item', 'MoveTo', 'Cancel'], handler: ( + this: Outlook.Folder, parameter: {readonly Item: any, readonly MoveTo: Outlook.Folder, Cancel: boolean}) => void): void; + on(obj: Outlook.Folders, event: 'FolderAdd' | 'FolderChange', argNames: ['Folder'], handler: (this: Outlook.Folders, parameter: {readonly Folder: Outlook.Folder}) => void): void; + on(obj: Outlook.FormRegion, event: 'Expanded', argNames: ['Expand'], handler: (this: Outlook.FormRegion, parameter: {readonly Expand: boolean}) => void): void; + on( + obj: Outlook.Inspector, event: 'BeforeMaximize' | 'BeforeMinimize' | 'BeforeMove' | 'BeforeSize', argNames: ['Cancel'], handler: ( + this: Outlook.Inspector, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.Inspector, event: 'PageChange', argNames: ['ActivePageName'], handler: (this: Outlook.Inspector, parameter: {readonly ActivePageName: string}) => void): void; + on(obj: Outlook.Inspectors, event: 'NewInspector', argNames: ['Inspector'], handler: (this: Outlook.Inspectors, parameter: {readonly Inspector: Outlook.Inspector}) => void): void; + on(obj: Outlook.Items, event: 'ItemAdd' | 'ItemChange', argNames: ['Item'], handler: (this: Outlook.Items, parameter: {readonly Item: any}) => void): void; + on( + obj: Outlook.JournalItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.JournalItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.JournalItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.JournalItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.JournalItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.JournalItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.JournalItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.JournalItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.JournalItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.JournalItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.JournalItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.JournalItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.JournalItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.JournalItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.JournalItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: ( + this: Outlook.JournalItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.MailItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.MailItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.MailItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', + argNames: ['Attachment', 'Cancel'], handler: (this: Outlook.MailItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.MailItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], handler: ( + this: Outlook.MailItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.MailItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.MailItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.MailItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.MailItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.MailItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.MailItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.MailItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.MailItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on(obj: Outlook.MailItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: (this: Outlook.MailItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.MeetingItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.MeetingItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.MeetingItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.MeetingItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.MeetingItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.MeetingItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.MeetingItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.MeetingItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.MeetingItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.MeetingItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.MeetingItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.MeetingItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.MeetingItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.MeetingItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.MeetingItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: ( + this: Outlook.MeetingItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.MobileItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.MobileItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.MobileItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.MobileItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.MobileItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.MobileItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.MobileItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.MobileItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.MobileItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.MobileItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.MobileItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.MobileItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.MobileItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.MobileItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on(obj: Outlook.MobileItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: (this: Outlook.MobileItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.NameSpace, event: 'OptionsPagesAdd', argNames: ['Pages', 'Folder'], handler: ( + this: Outlook.NameSpace, parameter: {readonly Pages: Outlook.PropertyPages, readonly Folder: Outlook.Folder}) => void): void; + on( + obj: Outlook.NavigationGroups, event: 'NavigationFolderAdd' | 'SelectedChange', argNames: ['NavigationFolder'], handler: ( + this: Outlook.NavigationGroups, parameter: {readonly NavigationFolder: Outlook.NavigationFolder}) => void): void; + on( + obj: Outlook.NavigationPane, event: 'ModuleSwitch', argNames: ['CurrentModule'], handler: ( + this: Outlook.NavigationPane, parameter: {readonly CurrentModule: Outlook.NavigationModule}) => void): void; + on( + obj: Outlook.OlkBusinessCardControl, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], + handler: ( + this: Outlook.OlkBusinessCardControl, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on(obj: Outlook.OlkCategory, event: 'Exit', argNames: ['Cancel'], handler: (this: Outlook.OlkCategory, parameter: {readonly Cancel: boolean}) => void): void; + on( + obj: Outlook.OlkCategory, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: Outlook.OlkCategory, parameter: {readonly KeyCode: number, readonly Shift: Outlook.OlShiftState}) => void): void; + on(obj: Outlook.OlkCategory, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Outlook.OlkCategory, parameter: {readonly KeyAscii: number}) => void): void; + on( + obj: Outlook.OlkCategory, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkCategory, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on(obj: Outlook.OlkCheckBox, event: 'BeforeUpdate' | 'Exit', argNames: ['Cancel'], handler: (this: Outlook.OlkCheckBox, parameter: {readonly Cancel: boolean}) => void): void; + on( + obj: Outlook.OlkCheckBox, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: Outlook.OlkCheckBox, parameter: {readonly KeyCode: number, readonly Shift: Outlook.OlShiftState}) => void): void; + on(obj: Outlook.OlkCheckBox, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Outlook.OlkCheckBox, parameter: {readonly KeyAscii: number}) => void): void; + on( + obj: Outlook.OlkCheckBox, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkCheckBox, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on(obj: Outlook.OlkComboBox, event: 'BeforeUpdate' | 'Exit', argNames: ['Cancel'], handler: (this: Outlook.OlkComboBox, parameter: {readonly Cancel: boolean}) => void): void; + on( + obj: Outlook.OlkComboBox, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: Outlook.OlkComboBox, parameter: {readonly KeyCode: number, readonly Shift: Outlook.OlShiftState}) => void): void; + on(obj: Outlook.OlkComboBox, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Outlook.OlkComboBox, parameter: {readonly KeyAscii: number}) => void): void; + on( + obj: Outlook.OlkComboBox, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkComboBox, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on(obj: Outlook.OlkCommandButton, event: 'BeforeUpdate' | 'Exit', argNames: ['Cancel'], handler: (this: Outlook.OlkCommandButton, parameter: {readonly Cancel: boolean}) => void): void; + on( + obj: Outlook.OlkCommandButton, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: Outlook.OlkCommandButton, parameter: {readonly KeyCode: number, readonly Shift: Outlook.OlShiftState}) => void): void; + on(obj: Outlook.OlkCommandButton, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Outlook.OlkCommandButton, parameter: {readonly KeyAscii: number}) => void): void; + on( + obj: Outlook.OlkCommandButton, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkCommandButton, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on(obj: Outlook.OlkContactPhoto, event: 'Exit', argNames: ['Cancel'], handler: (this: Outlook.OlkContactPhoto, parameter: {readonly Cancel: boolean}) => void): void; + on( + obj: Outlook.OlkContactPhoto, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: Outlook.OlkContactPhoto, parameter: {readonly KeyCode: number, readonly Shift: Outlook.OlShiftState}) => void): void; + on(obj: Outlook.OlkContactPhoto, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Outlook.OlkContactPhoto, parameter: {readonly KeyAscii: number}) => void): void; + on( + obj: Outlook.OlkContactPhoto, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkContactPhoto, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on(obj: Outlook.OlkDateControl, event: 'BeforeUpdate' | 'Exit', argNames: ['Cancel'], handler: (this: Outlook.OlkDateControl, parameter: {readonly Cancel: boolean}) => void): void; + on( + obj: Outlook.OlkDateControl, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: Outlook.OlkDateControl, parameter: {readonly KeyCode: number, readonly Shift: Outlook.OlShiftState}) => void): void; + on(obj: Outlook.OlkDateControl, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Outlook.OlkDateControl, parameter: {readonly KeyAscii: number}) => void): void; + on( + obj: Outlook.OlkDateControl, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkDateControl, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on( + obj: Outlook.OlkInfoBar, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkInfoBar, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on( + obj: Outlook.OlkLabel, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkLabel, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on(obj: Outlook.OlkListBox, event: 'BeforeUpdate' | 'Exit', argNames: ['Cancel'], handler: (this: Outlook.OlkListBox, parameter: {readonly Cancel: boolean}) => void): void; + on( + obj: Outlook.OlkListBox, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: Outlook.OlkListBox, parameter: {readonly KeyCode: number, readonly Shift: Outlook.OlShiftState}) => void): void; + on(obj: Outlook.OlkListBox, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Outlook.OlkListBox, parameter: {readonly KeyAscii: number}) => void): void; + on( + obj: Outlook.OlkListBox, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkListBox, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on(obj: Outlook.OlkOptionButton, event: 'BeforeUpdate' | 'Exit', argNames: ['Cancel'], handler: (this: Outlook.OlkOptionButton, parameter: {readonly Cancel: boolean}) => void): void; + on( + obj: Outlook.OlkOptionButton, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: Outlook.OlkOptionButton, parameter: {readonly KeyCode: number, readonly Shift: Outlook.OlShiftState}) => void): void; + on(obj: Outlook.OlkOptionButton, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Outlook.OlkOptionButton, parameter: {readonly KeyAscii: number}) => void): void; + on( + obj: Outlook.OlkOptionButton, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkOptionButton, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on( + obj: Outlook.OlkSenderPhoto, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkSenderPhoto, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on(obj: Outlook.OlkTextBox, event: 'BeforeUpdate' | 'Exit', argNames: ['Cancel'], handler: (this: Outlook.OlkTextBox, parameter: {readonly Cancel: boolean}) => void): void; + on( + obj: Outlook.OlkTextBox, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: Outlook.OlkTextBox, parameter: {readonly KeyCode: number, readonly Shift: Outlook.OlShiftState}) => void): void; + on(obj: Outlook.OlkTextBox, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Outlook.OlkTextBox, parameter: {readonly KeyAscii: number}) => void): void; + on( + obj: Outlook.OlkTextBox, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkTextBox, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on(obj: Outlook.OlkTimeControl, event: 'BeforeUpdate' | 'Exit', argNames: ['Cancel'], handler: (this: Outlook.OlkTimeControl, parameter: {readonly Cancel: boolean}) => void): void; + on( + obj: Outlook.OlkTimeControl, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: Outlook.OlkTimeControl, parameter: {readonly KeyCode: number, readonly Shift: Outlook.OlShiftState}) => void): void; + on(obj: Outlook.OlkTimeControl, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Outlook.OlkTimeControl, parameter: {readonly KeyAscii: number}) => void): void; + on( + obj: Outlook.OlkTimeControl, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkTimeControl, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on(obj: Outlook.OlkTimeZoneControl, event: 'BeforeUpdate' | 'Exit', argNames: ['Cancel'], handler: (this: Outlook.OlkTimeZoneControl, parameter: {readonly Cancel: boolean}) => void): void; + on( + obj: Outlook.OlkTimeZoneControl, event: 'KeyDown' | 'KeyUp', argNames: ['KeyCode', 'Shift'], handler: ( + this: Outlook.OlkTimeZoneControl, parameter: {readonly KeyCode: number, readonly Shift: Outlook.OlShiftState}) => void): void; + on(obj: Outlook.OlkTimeZoneControl, event: 'KeyPress', argNames: ['KeyAscii'], handler: (this: Outlook.OlkTimeZoneControl, parameter: {readonly KeyAscii: number}) => void): void; + on( + obj: Outlook.OlkTimeZoneControl, event: 'MouseDown' | 'MouseMove' | 'MouseUp', argNames: ['Button', 'Shift', 'X', 'Y'], handler: ( + this: Outlook.OlkTimeZoneControl, + parameter: {readonly Button: Outlook.OlMouseButton, readonly Shift: Outlook.OlShiftState, readonly X: stdole.OLE_XPOS_CONTAINER, readonly Y: stdole.OLE_YPOS_CONTAINER}) => void): void; + on(obj: Outlook.OutlookBarGroups, event: 'BeforeGroupAdd', argNames: ['Cancel'], handler: (this: Outlook.OutlookBarGroups, parameter: {Cancel: boolean}) => void): void; + on( + obj: Outlook.OutlookBarGroups, event: 'BeforeGroupRemove', argNames: ['Group', 'Cancel'], handler: ( + this: Outlook.OutlookBarGroups, parameter: {readonly Group: Outlook.OutlookBarGroup, Cancel: boolean}) => void): void; + on(obj: Outlook.OutlookBarGroups, event: 'GroupAdd', argNames: ['NewGroup'], handler: (this: Outlook.OutlookBarGroups, parameter: {readonly NewGroup: Outlook.OutlookBarGroup}) => void): void; + on( + obj: Outlook.OutlookBarPane, event: 'BeforeGroupSwitch', argNames: ['ToGroup', 'Cancel'], handler: ( + this: Outlook.OutlookBarPane, parameter: {readonly ToGroup: Outlook.OutlookBarGroup, Cancel: boolean}) => void): void; + on( + obj: Outlook.OutlookBarPane, event: 'BeforeNavigate', argNames: ['Shortcut', 'Cancel'], handler: ( + this: Outlook.OutlookBarPane, parameter: {readonly Shortcut: Outlook.OutlookBarShortcut, Cancel: boolean}) => void): void; + on(obj: Outlook.OutlookBarShortcuts, event: 'BeforeShortcutAdd', argNames: ['Cancel'], handler: (this: Outlook.OutlookBarShortcuts, parameter: {Cancel: boolean}) => void): void; + on( + obj: Outlook.OutlookBarShortcuts, event: 'BeforeShortcutRemove', argNames: ['Shortcut', 'Cancel'], handler: ( + this: Outlook.OutlookBarShortcuts, parameter: {readonly Shortcut: Outlook.OutlookBarShortcut, Cancel: boolean}) => void): void; + on( + obj: Outlook.OutlookBarShortcuts, event: 'ShortcutAdd', argNames: ['NewShortcut'], handler: ( + this: Outlook.OutlookBarShortcuts, parameter: {readonly NewShortcut: Outlook.OutlookBarShortcut}) => void): void; + on( + obj: Outlook.PostItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.PostItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.PostItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', + argNames: ['Attachment', 'Cancel'], handler: (this: Outlook.PostItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.PostItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], handler: ( + this: Outlook.PostItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.PostItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.PostItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.PostItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.PostItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.PostItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.PostItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.PostItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.PostItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on(obj: Outlook.PostItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: (this: Outlook.PostItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.Reminders, event: 'BeforeReminderShow', argNames: ['Cancel'], handler: (this: Outlook.Reminders, parameter: {Cancel: boolean}) => void): void; + on( + obj: Outlook.Reminders, event: 'ReminderAdd' | 'ReminderChange' | 'ReminderFire' | 'Snooze', argNames: ['ReminderObject'], handler: ( + this: Outlook.Reminders, parameter: {readonly ReminderObject: Outlook.Reminder}) => void): void; + on( + obj: Outlook.RemoteItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.RemoteItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.RemoteItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.RemoteItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.RemoteItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.RemoteItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.RemoteItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.RemoteItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.RemoteItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.RemoteItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.RemoteItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.RemoteItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.RemoteItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.RemoteItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on(obj: Outlook.RemoteItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: (this: Outlook.RemoteItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.ReportItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.ReportItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.ReportItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.ReportItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.ReportItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.ReportItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.ReportItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.ReportItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.ReportItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.ReportItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.ReportItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.ReportItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.ReportItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.ReportItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on(obj: Outlook.ReportItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: (this: Outlook.ReportItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.Results, event: 'ItemAdd' | 'ItemChange', argNames: ['Item'], handler: (this: Outlook.Results, parameter: {readonly Item: any}) => void): void; + on( + obj: Outlook.SharingItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.SharingItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.SharingItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.SharingItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.SharingItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.SharingItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.SharingItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.SharingItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.SharingItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.SharingItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.SharingItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.SharingItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.SharingItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.SharingItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.SharingItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: ( + this: Outlook.SharingItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.Stores, event: 'BeforeStoreRemove', argNames: ['Store', 'Cancel'], handler: (this: Outlook.Stores, parameter: {readonly Store: Outlook.Store, Cancel: boolean}) => void): void; + on(obj: Outlook.Stores, event: 'StoreAdd', argNames: ['Store'], handler: (this: Outlook.Stores, parameter: {readonly Store: Outlook.Store}) => void): void; + on( + obj: Outlook.SyncObject, event: 'OnError', argNames: ['Code', 'Description'], handler: ( + this: Outlook.SyncObject, parameter: {readonly Code: number, readonly Description: string}) => void): void; + on( + obj: Outlook.SyncObject, event: 'Progress', argNames: ['State', 'Description', 'Value', 'Max'], handler: ( + this: Outlook.SyncObject, parameter: {readonly State: Outlook.OlSyncState, readonly Description: string, readonly Value: number, readonly Max: number}) => void): void; + on( + obj: Outlook.TaskItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.TaskItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.TaskItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', + argNames: ['Attachment', 'Cancel'], handler: (this: Outlook.TaskItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], handler: ( + this: Outlook.TaskItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.TaskItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.TaskItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.TaskItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.TaskItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.TaskItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.TaskItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.TaskItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on(obj: Outlook.TaskItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: (this: Outlook.TaskItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestAcceptItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], + handler: (this: Outlook.TaskRequestAcceptItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.TaskRequestAcceptItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.TaskRequestAcceptItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestAcceptItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.TaskRequestAcceptItem, parameter: {Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestAcceptItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: ( + this: Outlook.TaskRequestAcceptItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestAcceptItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.TaskRequestAcceptItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestAcceptItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: ( + this: Outlook.TaskRequestAcceptItem, parameter: {readonly Name: string}) => void): void; + on( + obj: Outlook.TaskRequestAcceptItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: ( + this: Outlook.TaskRequestAcceptItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestAcceptItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: ( + this: Outlook.TaskRequestAcceptItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestDeclineItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], + handler: (this: Outlook.TaskRequestDeclineItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.TaskRequestDeclineItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.TaskRequestDeclineItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestDeclineItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.TaskRequestDeclineItem, parameter: {Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestDeclineItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: ( + this: Outlook.TaskRequestDeclineItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestDeclineItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.TaskRequestDeclineItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestDeclineItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: ( + this: Outlook.TaskRequestDeclineItem, parameter: {readonly Name: string}) => void): void; + on( + obj: Outlook.TaskRequestDeclineItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: ( + this: Outlook.TaskRequestDeclineItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestDeclineItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: ( + this: Outlook.TaskRequestDeclineItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], handler: ( + this: Outlook.TaskRequestItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.TaskRequestItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.TaskRequestItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.TaskRequestItem, parameter: {Cancel: boolean}) => void): void; + on(obj: Outlook.TaskRequestItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: (this: Outlook.TaskRequestItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.TaskRequestItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.TaskRequestItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: (this: Outlook.TaskRequestItem, parameter: {readonly Name: string}) => void): void; + on(obj: Outlook.TaskRequestItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: (this: Outlook.TaskRequestItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: ( + this: Outlook.TaskRequestItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestUpdateItem, event: 'AttachmentAdd' | 'AttachmentRead' | 'AttachmentRemove', argNames: ['Attachment'], + handler: (this: Outlook.TaskRequestUpdateItem, parameter: {readonly Attachment: Outlook.Attachment}) => void): void; + on( + obj: Outlook.TaskRequestUpdateItem, event: 'BeforeAttachmentAdd' | 'BeforeAttachmentPreview' | 'BeforeAttachmentRead' | 'BeforeAttachmentSave' | + 'BeforeAttachmentWriteToTempFile', argNames: ['Attachment', 'Cancel'], handler: ( + this: Outlook.TaskRequestUpdateItem, parameter: {readonly Attachment: Outlook.Attachment, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestUpdateItem, event: 'BeforeAutoSave' | 'BeforeCheckNames' | 'Close' | 'Open' | 'Send' | 'Write', argNames: ['Cancel'], + handler: (this: Outlook.TaskRequestUpdateItem, parameter: {Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestUpdateItem, event: 'BeforeDelete', argNames: ['Item', 'Cancel'], handler: ( + this: Outlook.TaskRequestUpdateItem, parameter: {readonly Item: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestUpdateItem, event: 'CustomAction', argNames: ['Action', 'Response', 'Cancel'], handler: ( + this: Outlook.TaskRequestUpdateItem, parameter: {readonly Action: any, readonly Response: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestUpdateItem, event: 'CustomPropertyChange' | 'PropertyChange', argNames: ['Name'], handler: ( + this: Outlook.TaskRequestUpdateItem, parameter: {readonly Name: string}) => void): void; + on( + obj: Outlook.TaskRequestUpdateItem, event: 'Forward', argNames: ['Forward', 'Cancel'], handler: ( + this: Outlook.TaskRequestUpdateItem, parameter: {readonly Forward: any, Cancel: boolean}) => void): void; + on( + obj: Outlook.TaskRequestUpdateItem, event: 'Reply' | 'ReplyAll', argNames: ['Response', 'Cancel'], handler: ( + this: Outlook.TaskRequestUpdateItem, parameter: {readonly Response: any, Cancel: boolean}) => void): void; + on(obj: Outlook.Views, event: 'ViewAdd' | 'ViewRemove', argNames: ['View'], handler: (this: Outlook.Views, parameter: {readonly View: Outlook.View}) => void): void; + on(obj: Outlook.Application, event: 'MAPILogonComplete' | 'NewMail' | 'Quit' | 'Startup', handler: (this: Outlook.Application, parameter: {}) => void): void; + on(obj: Outlook.AppointmentItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.AppointmentItem, parameter: {}) => void): void; + on(obj: Outlook.ContactItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.ContactItem, parameter: {}) => void): void; + on(obj: Outlook.DistListItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.DistListItem, parameter: {}) => void): void; + on(obj: Outlook.DocumentItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.DocumentItem, parameter: {}) => void): void; + on( + obj: Outlook.Explorer, event: 'Activate' | 'AttachmentSelectionChange' | 'Close' | 'Deactivate' | 'FolderSwitch' | 'SelectionChange' | 'ViewSwitch', + handler: (this: Outlook.Explorer, parameter: {}) => void): void; + on(obj: Outlook.Folders, event: 'FolderRemove', handler: (this: Outlook.Folders, parameter: {}) => void): void; + on(obj: Outlook.FormRegion, event: 'Close', handler: (this: Outlook.FormRegion, parameter: {}) => void): void; + on(obj: Outlook.Inspector, event: 'Activate' | 'AttachmentSelectionChange' | 'Close' | 'Deactivate', handler: (this: Outlook.Inspector, parameter: {}) => void): void; + on(obj: Outlook.Items, event: 'ItemRemove', handler: (this: Outlook.Items, parameter: {}) => void): void; + on(obj: Outlook.JournalItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.JournalItem, parameter: {}) => void): void; + on(obj: Outlook.MailItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.MailItem, parameter: {}) => void): void; + on(obj: Outlook.MeetingItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.MeetingItem, parameter: {}) => void): void; + on(obj: Outlook.MobileItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.MobileItem, parameter: {}) => void): void; + on(obj: Outlook.NameSpace, event: 'AutoDiscoverComplete', handler: (this: Outlook.NameSpace, parameter: {}) => void): void; + on(obj: Outlook.NavigationGroups, event: 'NavigationFolderRemove', handler: (this: Outlook.NavigationGroups, parameter: {}) => void): void; + on(obj: Outlook.OlkBusinessCardControl, event: 'Click' | 'DoubleClick', handler: (this: Outlook.OlkBusinessCardControl, parameter: {}) => void): void; + on(obj: Outlook.OlkCategory, event: 'Change' | 'Click' | 'DoubleClick' | 'Enter', handler: (this: Outlook.OlkCategory, parameter: {}) => void): void; + on(obj: Outlook.OlkCheckBox, event: 'AfterUpdate' | 'Change' | 'Click' | 'DoubleClick' | 'Enter', handler: (this: Outlook.OlkCheckBox, parameter: {}) => void): void; + on(obj: Outlook.OlkComboBox, event: 'AfterUpdate' | 'Change' | 'Click' | 'DoubleClick' | 'DropButtonClick' | 'Enter', handler: (this: Outlook.OlkComboBox, parameter: {}) => void): void; + on(obj: Outlook.OlkCommandButton, event: 'AfterUpdate' | 'Click' | 'DoubleClick' | 'Enter', handler: (this: Outlook.OlkCommandButton, parameter: {}) => void): void; + on(obj: Outlook.OlkContactPhoto, event: 'Change' | 'Click' | 'DoubleClick' | 'Enter', handler: (this: Outlook.OlkContactPhoto, parameter: {}) => void): void; + on(obj: Outlook.OlkDateControl, event: 'AfterUpdate' | 'Change' | 'Click' | 'DoubleClick' | 'DropButtonClick' | 'Enter', handler: (this: Outlook.OlkDateControl, parameter: {}) => void): void; + on(obj: Outlook.OlkInfoBar, event: 'Click' | 'DoubleClick', handler: (this: Outlook.OlkInfoBar, parameter: {}) => void): void; + on(obj: Outlook.OlkLabel, event: 'Click' | 'DoubleClick', handler: (this: Outlook.OlkLabel, parameter: {}) => void): void; + on(obj: Outlook.OlkListBox, event: 'AfterUpdate' | 'Change' | 'Click' | 'DoubleClick' | 'Enter', handler: (this: Outlook.OlkListBox, parameter: {}) => void): void; + on(obj: Outlook.OlkOptionButton, event: 'AfterUpdate' | 'Change' | 'Click' | 'DoubleClick' | 'Enter', handler: (this: Outlook.OlkOptionButton, parameter: {}) => void): void; + on(obj: Outlook.OlkSenderPhoto, event: 'Change' | 'Click' | 'DoubleClick', handler: (this: Outlook.OlkSenderPhoto, parameter: {}) => void): void; + on(obj: Outlook.OlkTextBox, event: 'AfterUpdate' | 'Change' | 'Click' | 'DoubleClick' | 'Enter', handler: (this: Outlook.OlkTextBox, parameter: {}) => void): void; + on(obj: Outlook.OlkTimeControl, event: 'AfterUpdate' | 'Change' | 'Click' | 'DoubleClick' | 'DropButtonClick' | 'Enter', handler: (this: Outlook.OlkTimeControl, parameter: {}) => void): void; + on( + obj: Outlook.OlkTimeZoneControl, event: 'AfterUpdate' | 'Change' | 'Click' | 'DoubleClick' | 'DropButtonClick' | 'Enter', + handler: (this: Outlook.OlkTimeZoneControl, parameter: {}) => void): void; + on(obj: Outlook.PostItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.PostItem, parameter: {}) => void): void; + on(obj: Outlook.Reminders, event: 'ReminderRemove', handler: (this: Outlook.Reminders, parameter: {}) => void): void; + on(obj: Outlook.RemoteItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.RemoteItem, parameter: {}) => void): void; + on(obj: Outlook.ReportItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.ReportItem, parameter: {}) => void): void; + on(obj: Outlook.Results, event: 'ItemRemove', handler: (this: Outlook.Results, parameter: {}) => void): void; + on(obj: Outlook.SharingItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.SharingItem, parameter: {}) => void): void; + on(obj: Outlook.SyncObject, event: 'SyncEnd' | 'SyncStart', handler: (this: Outlook.SyncObject, parameter: {}) => void): void; + on(obj: Outlook.TaskItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.TaskItem, parameter: {}) => void): void; + on(obj: Outlook.TaskRequestAcceptItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.TaskRequestAcceptItem, parameter: {}) => void): void; + on(obj: Outlook.TaskRequestDeclineItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.TaskRequestDeclineItem, parameter: {}) => void): void; + on(obj: Outlook.TaskRequestItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.TaskRequestItem, parameter: {}) => void): void; + on(obj: Outlook.TaskRequestUpdateItem, event: 'AfterWrite' | 'BeforeRead' | 'Read' | 'Unload', handler: (this: Outlook.TaskRequestUpdateItem, parameter: {}) => void): void; + new(progid: K): ActiveXObjectNameMap[K]; +} + +interface ActiveXObjectNameMap { + 'DOCSITE.DocSiteControl': Outlook._DocSiteControl; + 'Outlook.Application': Outlook.Application; + 'Outlook.OlkBusinessCardControl': Outlook.OlkBusinessCardControl; + 'Outlook.OlkCategoryStrip': Outlook.OlkCategory; + 'Outlook.OlkCheckBox': Outlook.OlkCheckBox; + 'Outlook.OlkComboBox': Outlook.OlkComboBox; + 'Outlook.OlkCommandButton': Outlook.OlkCommandButton; + 'Outlook.OlkContactPhoto': Outlook.OlkContactPhoto; + 'Outlook.OlkDateControl': Outlook.OlkDateControl; + 'Outlook.OlkFrameHeader': Outlook.OlkFrameHeader; + 'Outlook.OlkInfoBar': Outlook.OlkInfoBar; + 'Outlook.OlkLabel': Outlook.OlkLabel; + 'Outlook.OlkListBox': Outlook.OlkListBox; + 'Outlook.OlkOptionButton': Outlook.OlkOptionButton; + 'Outlook.OlkPageControl': Outlook.OlkPageControl; + 'Outlook.OlkSenderPhoto': Outlook.OlkSenderPhoto; + 'Outlook.OlkTextBox': Outlook.OlkTextBox; + 'Outlook.OlkTimeControl': Outlook.OlkTimeControl; + 'Outlook.OlkTimeZone': Outlook.OlkTimeZoneControl; + 'RECIP.RecipCtl': Outlook._RecipientControl; +} + +interface EnumeratorConstructor { + new(col: Outlook.ItemProperties): Enumerator; + new(col: Outlook.Reminders): Enumerator; + new(col: Outlook.Views): Enumerator; +} + +interface SafeArray { + _brand: SafeArray; +} diff --git a/types/activex-outlook/package.json b/types/activex-outlook/package.json new file mode 100644 index 0000000000..d9b1031263 --- /dev/null +++ b/types/activex-outlook/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "activex-helpers": "*" + } +} \ No newline at end of file diff --git a/types/activex-outlook/tsconfig.json b/types/activex-outlook/tsconfig.json new file mode 100644 index 0000000000..79f59c68a1 --- /dev/null +++ b/types/activex-outlook/tsconfig.json @@ -0,0 +1,21 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es5", "scripthost"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "activex-outlook-tests.ts" + ] +} \ No newline at end of file diff --git a/types/activex-outlook/tslint.json b/types/activex-outlook/tslint.json new file mode 100644 index 0000000000..4ac54521fe --- /dev/null +++ b/types/activex-outlook/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": [false] + } +} \ No newline at end of file diff --git a/types/activex-powerpoint/activex-powerpoint-tests.ts b/types/activex-powerpoint/activex-powerpoint-tests.ts new file mode 100644 index 0000000000..0d161081f8 --- /dev/null +++ b/types/activex-powerpoint/activex-powerpoint-tests.ts @@ -0,0 +1,21 @@ +const collectionToArray = (col: any) => { + const results: T[] = []; + const enumerator = new Enumerator(col); + enumerator.moveFirst(); + while (!enumerator.atEnd()) { + results.push(enumerator.item()); + } + return results; +}; + +// -- https://msdn.microsoft.com/VBA/office-shared-vba/articles/getting-started-with-vba-in-office +const app = new ActiveXObject('PowerPoint.Application'); +(() => { + // delete empty textboxes in PowerPoint + collectionToArray(app.ActivePresentation.Slides).forEach(slide => { + collectionToArray(slide.Shapes).filter(shape => + shape.Type === Office.MsoShapeType.msoTextBox + && shape.TextFrame.TextRange.Text.trim() === '' + ).forEach(shape => shape.Delete()); + }); +})(); diff --git a/types/activex-powerpoint/index.d.ts b/types/activex-powerpoint/index.d.ts new file mode 100644 index 0000000000..6de089010d --- /dev/null +++ b/types/activex-powerpoint/index.d.ts @@ -0,0 +1,5427 @@ +// Type definitions for Microsoft PowerPoint 14.0 Object Library - PowerPoint 14.0 +// Project: https://msdn.microsoft.com/en-us/library/fp161225.aspx +// Definitions by: Zev Spitz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// +/// + +declare namespace PowerPoint { + const enum MsoAnimAccumulate { + msoAnimAccumulateAlways = 2, + msoAnimAccumulateNone = 1, + } + + const enum MsoAnimAdditive { + msoAnimAdditiveAddBase = 1, + msoAnimAdditiveAddSum = 2, + } + + const enum MsoAnimAfterEffect { + msoAnimAfterEffectDim = 1, + msoAnimAfterEffectHide = 2, + msoAnimAfterEffectHideOnNextClick = 3, + msoAnimAfterEffectMixed = -1, + msoAnimAfterEffectNone = 0, + } + + const enum MsoAnimateByLevel { + msoAnimateChartAllAtOnce = 7, + msoAnimateChartByCategory = 8, + msoAnimateChartByCategoryElements = 9, + msoAnimateChartBySeries = 10, + msoAnimateChartBySeriesElements = 11, + msoAnimateDiagramAllAtOnce = 12, + msoAnimateDiagramBreadthByLevel = 16, + msoAnimateDiagramBreadthByNode = 15, + msoAnimateDiagramClockwise = 17, + msoAnimateDiagramClockwiseIn = 18, + msoAnimateDiagramClockwiseOut = 19, + msoAnimateDiagramCounterClockwise = 20, + msoAnimateDiagramCounterClockwiseIn = 21, + msoAnimateDiagramCounterClockwiseOut = 22, + msoAnimateDiagramDepthByBranch = 14, + msoAnimateDiagramDepthByNode = 13, + msoAnimateDiagramDown = 26, + msoAnimateDiagramInByRing = 23, + msoAnimateDiagramOutByRing = 24, + msoAnimateDiagramUp = 25, + msoAnimateLevelMixed = -1, + msoAnimateLevelNone = 0, + msoAnimateTextByAllLevels = 1, + msoAnimateTextByFifthLevel = 6, + msoAnimateTextByFirstLevel = 2, + msoAnimateTextByFourthLevel = 5, + msoAnimateTextBySecondLevel = 3, + msoAnimateTextByThirdLevel = 4, + } + + const enum MsoAnimCommandType { + msoAnimCommandTypeCall = 1, + msoAnimCommandTypeEvent = 0, + msoAnimCommandTypeVerb = 2, + } + + const enum MsoAnimDirection { + msoAnimDirectionAcross = 18, + msoAnimDirectionBottom = 11, + msoAnimDirectionBottomLeft = 15, + msoAnimDirectionBottomRight = 14, + msoAnimDirectionCenter = 28, + msoAnimDirectionClockwise = 21, + msoAnimDirectionCounterclockwise = 22, + msoAnimDirectionCycleClockwise = 43, + msoAnimDirectionCycleCounterclockwise = 44, + msoAnimDirectionDown = 3, + msoAnimDirectionDownLeft = 9, + msoAnimDirectionDownRight = 8, + msoAnimDirectionFontAllCaps = 40, + msoAnimDirectionFontBold = 35, + msoAnimDirectionFontItalic = 36, + msoAnimDirectionFontShadow = 39, + msoAnimDirectionFontStrikethrough = 38, + msoAnimDirectionFontUnderline = 37, + msoAnimDirectionGradual = 42, + msoAnimDirectionHorizontal = 16, + msoAnimDirectionHorizontalIn = 23, + msoAnimDirectionHorizontalOut = 24, + msoAnimDirectionIn = 19, + msoAnimDirectionInBottom = 31, + msoAnimDirectionInCenter = 30, + msoAnimDirectionInSlightly = 29, + msoAnimDirectionInstant = 41, + msoAnimDirectionLeft = 4, + msoAnimDirectionNone = 0, + msoAnimDirectionOrdinalMask = 5, + msoAnimDirectionOut = 20, + msoAnimDirectionOutBottom = 34, + msoAnimDirectionOutCenter = 33, + msoAnimDirectionOutSlightly = 32, + msoAnimDirectionRight = 2, + msoAnimDirectionSlightly = 27, + msoAnimDirectionTop = 10, + msoAnimDirectionTopLeft = 12, + msoAnimDirectionTopRight = 13, + msoAnimDirectionUp = 1, + msoAnimDirectionUpLeft = 6, + msoAnimDirectionUpRight = 7, + msoAnimDirectionVertical = 17, + msoAnimDirectionVerticalIn = 25, + msoAnimDirectionVerticalOut = 26, + } + + const enum MsoAnimEffect { + msoAnimEffectAppear = 1, + msoAnimEffectArcUp = 47, + msoAnimEffectAscend = 39, + msoAnimEffectBlast = 64, + msoAnimEffectBlinds = 3, + msoAnimEffectBoldFlash = 63, + msoAnimEffectBoldReveal = 65, + msoAnimEffectBoomerang = 25, + msoAnimEffectBounce = 26, + msoAnimEffectBox = 4, + msoAnimEffectBrushOnColor = 66, + msoAnimEffectBrushOnUnderline = 67, + msoAnimEffectCenterRevolve = 40, + msoAnimEffectChangeFillColor = 54, + msoAnimEffectChangeFont = 55, + msoAnimEffectChangeFontColor = 56, + msoAnimEffectChangeFontSize = 57, + msoAnimEffectChangeFontStyle = 58, + msoAnimEffectChangeLineColor = 60, + msoAnimEffectCheckerboard = 5, + msoAnimEffectCircle = 6, + msoAnimEffectColorBlend = 68, + msoAnimEffectColorReveal = 27, + msoAnimEffectColorWave = 69, + msoAnimEffectComplementaryColor = 70, + msoAnimEffectComplementaryColor2 = 71, + msoAnimEffectContrastingColor = 72, + msoAnimEffectCrawl = 7, + msoAnimEffectCredits = 28, + msoAnimEffectCustom = 0, + msoAnimEffectDarken = 73, + msoAnimEffectDesaturate = 74, + msoAnimEffectDescend = 42, + msoAnimEffectDiamond = 8, + msoAnimEffectDissolve = 9, + msoAnimEffectEaseIn = 29, + msoAnimEffectExpand = 50, + msoAnimEffectFade = 10, + msoAnimEffectFadedSwivel = 41, + msoAnimEffectFadedZoom = 48, + msoAnimEffectFlashBulb = 75, + msoAnimEffectFlashOnce = 11, + msoAnimEffectFlicker = 76, + msoAnimEffectFlip = 51, + msoAnimEffectFloat = 30, + msoAnimEffectFly = 2, + msoAnimEffectFold = 53, + msoAnimEffectGlide = 49, + msoAnimEffectGrowAndTurn = 31, + msoAnimEffectGrowShrink = 59, + msoAnimEffectGrowWithColor = 77, + msoAnimEffectLighten = 78, + msoAnimEffectLightSpeed = 32, + msoAnimEffectMediaPause = 84, + msoAnimEffectMediaPlay = 83, + msoAnimEffectMediaPlayFromBookmark = 150, + msoAnimEffectMediaStop = 85, + msoAnimEffectPath4PointStar = 101, + msoAnimEffectPath5PointStar = 90, + msoAnimEffectPath6PointStar = 96, + msoAnimEffectPath8PointStar = 102, + msoAnimEffectPathArcDown = 122, + msoAnimEffectPathArcLeft = 136, + msoAnimEffectPathArcRight = 143, + msoAnimEffectPathArcUp = 129, + msoAnimEffectPathBean = 116, + msoAnimEffectPathBounceLeft = 126, + msoAnimEffectPathBounceRight = 139, + msoAnimEffectPathBuzzsaw = 110, + msoAnimEffectPathCircle = 86, + msoAnimEffectPathCrescentMoon = 91, + msoAnimEffectPathCurvedSquare = 105, + msoAnimEffectPathCurvedX = 106, + msoAnimEffectPathCurvyLeft = 133, + msoAnimEffectPathCurvyRight = 146, + msoAnimEffectPathCurvyStar = 108, + msoAnimEffectPathDecayingWave = 145, + msoAnimEffectPathDiagonalDownRight = 134, + msoAnimEffectPathDiagonalUpRight = 141, + msoAnimEffectPathDiamond = 88, + msoAnimEffectPathDown = 127, + msoAnimEffectPathEqualTriangle = 98, + msoAnimEffectPathFigure8Four = 113, + msoAnimEffectPathFootball = 97, + msoAnimEffectPathFunnel = 137, + msoAnimEffectPathHeart = 94, + msoAnimEffectPathHeartbeat = 130, + msoAnimEffectPathHexagon = 89, + msoAnimEffectPathHorizontalFigure8 = 111, + msoAnimEffectPathInvertedSquare = 119, + msoAnimEffectPathInvertedTriangle = 118, + msoAnimEffectPathLeft = 120, + msoAnimEffectPathLoopdeLoop = 109, + msoAnimEffectPathNeutron = 114, + msoAnimEffectPathOctagon = 95, + msoAnimEffectPathParallelogram = 99, + msoAnimEffectPathPeanut = 112, + msoAnimEffectPathPentagon = 100, + msoAnimEffectPathPlus = 117, + msoAnimEffectPathPointyStar = 104, + msoAnimEffectPathRight = 149, + msoAnimEffectPathRightTriangle = 87, + msoAnimEffectPathSCurve1 = 144, + msoAnimEffectPathSCurve2 = 124, + msoAnimEffectPathSineWave = 125, + msoAnimEffectPathSpiralLeft = 140, + msoAnimEffectPathSpiralRight = 131, + msoAnimEffectPathSpring = 138, + msoAnimEffectPathSquare = 92, + msoAnimEffectPathStairsDown = 147, + msoAnimEffectPathSwoosh = 115, + msoAnimEffectPathTeardrop = 103, + msoAnimEffectPathTrapezoid = 93, + msoAnimEffectPathTurnDown = 135, + msoAnimEffectPathTurnRight = 121, + msoAnimEffectPathTurnUp = 128, + msoAnimEffectPathTurnUpRight = 142, + msoAnimEffectPathUp = 148, + msoAnimEffectPathVerticalFigure8 = 107, + msoAnimEffectPathWave = 132, + msoAnimEffectPathZigzag = 123, + msoAnimEffectPeek = 12, + msoAnimEffectPinwheel = 33, + msoAnimEffectPlus = 13, + msoAnimEffectRandomBars = 14, + msoAnimEffectRandomEffects = 24, + msoAnimEffectRiseUp = 34, + msoAnimEffectShimmer = 52, + msoAnimEffectSling = 43, + msoAnimEffectSpin = 61, + msoAnimEffectSpinner = 44, + msoAnimEffectSpiral = 15, + msoAnimEffectSplit = 16, + msoAnimEffectStretch = 17, + msoAnimEffectStretchy = 45, + msoAnimEffectStrips = 18, + msoAnimEffectStyleEmphasis = 79, + msoAnimEffectSwish = 35, + msoAnimEffectSwivel = 19, + msoAnimEffectTeeter = 80, + msoAnimEffectThinLine = 36, + msoAnimEffectTransparency = 62, + msoAnimEffectUnfold = 37, + msoAnimEffectVerticalGrow = 81, + msoAnimEffectWave = 82, + msoAnimEffectWedge = 20, + msoAnimEffectWheel = 21, + msoAnimEffectWhip = 38, + msoAnimEffectWipe = 22, + msoAnimEffectZip = 46, + msoAnimEffectZoom = 23, + } + + const enum MsoAnimEffectAfter { + msoAnimEffectAfterFreeze = 1, + msoAnimEffectAfterHold = 3, + msoAnimEffectAfterRemove = 2, + msoAnimEffectAfterTransition = 4, + } + + const enum MsoAnimEffectRestart { + msoAnimEffectRestartAlways = 1, + msoAnimEffectRestartNever = 3, + msoAnimEffectRestartWhenOff = 2, + } + + const enum MsoAnimFilterEffectSubtype { + msoAnimFilterEffectSubtypeAcross = 9, + msoAnimFilterEffectSubtypeDown = 25, + msoAnimFilterEffectSubtypeDownLeft = 14, + msoAnimFilterEffectSubtypeDownRight = 16, + msoAnimFilterEffectSubtypeFromBottom = 13, + msoAnimFilterEffectSubtypeFromLeft = 10, + msoAnimFilterEffectSubtypeFromRight = 11, + msoAnimFilterEffectSubtypeFromTop = 12, + msoAnimFilterEffectSubtypeHorizontal = 5, + msoAnimFilterEffectSubtypeIn = 7, + msoAnimFilterEffectSubtypeInHorizontal = 3, + msoAnimFilterEffectSubtypeInVertical = 1, + msoAnimFilterEffectSubtypeLeft = 23, + msoAnimFilterEffectSubtypeNone = 0, + msoAnimFilterEffectSubtypeOut = 8, + msoAnimFilterEffectSubtypeOutHorizontal = 4, + msoAnimFilterEffectSubtypeOutVertical = 2, + msoAnimFilterEffectSubtypeRight = 24, + msoAnimFilterEffectSubtypeSpokes1 = 18, + msoAnimFilterEffectSubtypeSpokes2 = 19, + msoAnimFilterEffectSubtypeSpokes3 = 20, + msoAnimFilterEffectSubtypeSpokes4 = 21, + msoAnimFilterEffectSubtypeSpokes8 = 22, + msoAnimFilterEffectSubtypeUp = 26, + msoAnimFilterEffectSubtypeUpLeft = 15, + msoAnimFilterEffectSubtypeUpRight = 17, + msoAnimFilterEffectSubtypeVertical = 6, + } + + const enum MsoAnimFilterEffectType { + msoAnimFilterEffectTypeBarn = 1, + msoAnimFilterEffectTypeBlinds = 2, + msoAnimFilterEffectTypeBox = 3, + msoAnimFilterEffectTypeCheckerboard = 4, + msoAnimFilterEffectTypeCircle = 5, + msoAnimFilterEffectTypeDiamond = 6, + msoAnimFilterEffectTypeDissolve = 7, + msoAnimFilterEffectTypeFade = 8, + msoAnimFilterEffectTypeImage = 9, + msoAnimFilterEffectTypeNone = 0, + msoAnimFilterEffectTypePixelate = 10, + msoAnimFilterEffectTypePlus = 11, + msoAnimFilterEffectTypeRandomBar = 12, + msoAnimFilterEffectTypeSlide = 13, + msoAnimFilterEffectTypeStretch = 14, + msoAnimFilterEffectTypeStrips = 15, + msoAnimFilterEffectTypeWedge = 16, + msoAnimFilterEffectTypeWheel = 17, + msoAnimFilterEffectTypeWipe = 18, + } + + const enum MsoAnimProperty { + msoAnimColor = 7, + msoAnimHeight = 4, + msoAnimNone = 0, + msoAnimOpacity = 5, + msoAnimRotation = 6, + msoAnimShapeFillBackColor = 1007, + msoAnimShapeFillColor = 1005, + msoAnimShapeFillOn = 1004, + msoAnimShapeFillOpacity = 1006, + msoAnimShapeLineColor = 1009, + msoAnimShapeLineOn = 1008, + msoAnimShapePictureBrightness = 1001, + msoAnimShapePictureContrast = 1000, + msoAnimShapePictureGamma = 1002, + msoAnimShapePictureGrayscale = 1003, + msoAnimShapeShadowColor = 1012, + msoAnimShapeShadowOffsetX = 1014, + msoAnimShapeShadowOffsetY = 1015, + msoAnimShapeShadowOn = 1010, + msoAnimShapeShadowOpacity = 1013, + msoAnimShapeShadowType = 1011, + msoAnimTextBulletCharacter = 111, + msoAnimTextBulletColor = 114, + msoAnimTextBulletFontName = 112, + msoAnimTextBulletNumber = 113, + msoAnimTextBulletRelativeSize = 115, + msoAnimTextBulletStyle = 116, + msoAnimTextBulletType = 117, + msoAnimTextFontBold = 100, + msoAnimTextFontColor = 101, + msoAnimTextFontEmboss = 102, + msoAnimTextFontItalic = 103, + msoAnimTextFontName = 104, + msoAnimTextFontShadow = 105, + msoAnimTextFontSize = 106, + msoAnimTextFontStrikeThrough = 110, + msoAnimTextFontSubscript = 107, + msoAnimTextFontSuperscript = 108, + msoAnimTextFontUnderline = 109, + msoAnimVisibility = 8, + msoAnimWidth = 3, + msoAnimX = 1, + msoAnimY = 2, + } + + const enum MsoAnimTextUnitEffect { + msoAnimTextUnitEffectByCharacter = 1, + msoAnimTextUnitEffectByParagraph = 0, + msoAnimTextUnitEffectByWord = 2, + msoAnimTextUnitEffectMixed = -1, + } + + const enum MsoAnimTriggerType { + msoAnimTriggerAfterPrevious = 3, + msoAnimTriggerMixed = -1, + msoAnimTriggerNone = 0, + msoAnimTriggerOnMediaBookmark = 5, + msoAnimTriggerOnPageClick = 1, + msoAnimTriggerOnShapeClick = 4, + msoAnimTriggerWithPrevious = 2, + } + + const enum MsoAnimType { + msoAnimTypeColor = 2, + msoAnimTypeCommand = 6, + msoAnimTypeFilter = 7, + msoAnimTypeMixed = -2, + msoAnimTypeMotion = 1, + msoAnimTypeNone = 0, + msoAnimTypeProperty = 5, + msoAnimTypeRotation = 4, + msoAnimTypeScale = 3, + msoAnimTypeSet = 8, + } + + const enum MsoClickState { + msoClickStateAfterAllAnimations = -2, + msoClickStateBeforeAutomaticAnimations = -1, + } + + const enum PpActionType { + ppActionEndShow = 6, + ppActionFirstSlide = 3, + ppActionHyperlink = 7, + ppActionLastSlide = 4, + ppActionLastSlideViewed = 5, + ppActionMixed = -2, + ppActionNamedSlideShow = 10, + ppActionNextSlide = 1, + ppActionNone = 0, + ppActionOLEVerb = 11, + ppActionPlay = 12, + ppActionPreviousSlide = 2, + ppActionRunMacro = 8, + ppActionRunProgram = 9, + } + + const enum PpAdvanceMode { + ppAdvanceModeMixed = -2, + ppAdvanceOnClick = 1, + ppAdvanceOnTime = 2, + } + + const enum PpAfterEffect { + ppAfterEffectDim = 2, + ppAfterEffectHide = 1, + ppAfterEffectHideOnClick = 3, + ppAfterEffectMixed = -2, + ppAfterEffectNothing = 0, + } + + const enum PpAlertLevel { + ppAlertsAll = 2, + ppAlertsNone = 1, + } + + const enum PpArrangeStyle { + ppArrangeCascade = 2, + ppArrangeTiled = 1, + } + + const enum PpAutoSize { + ppAutoSizeMixed = -2, + ppAutoSizeNone = 0, + ppAutoSizeShapeToFitText = 1, + } + + const enum PpBaselineAlignment { + ppBaselineAlignAuto = 5, + ppBaselineAlignBaseline = 1, + ppBaselineAlignCenter = 3, + ppBaselineAlignFarEast50 = 4, + ppBaselineAlignMixed = -2, + ppBaselineAlignTop = 2, + } + + const enum PpBorderType { + ppBorderBottom = 3, + ppBorderDiagonalDown = 5, + ppBorderDiagonalUp = 6, + ppBorderLeft = 2, + ppBorderRight = 4, + ppBorderTop = 1, + } + + const enum PpBulletType { + ppBulletMixed = -2, + ppBulletNone = 0, + ppBulletNumbered = 2, + ppBulletPicture = 3, + ppBulletUnnumbered = 1, + } + + const enum PpChangeCase { + ppCaseLower = 2, + ppCaseSentence = 1, + ppCaseTitle = 4, + ppCaseToggle = 5, + ppCaseUpper = 3, + } + + const enum PpChartUnitEffect { + ppAnimateByCategory = 2, + ppAnimateByCategoryElements = 4, + ppAnimateBySeries = 1, + ppAnimateBySeriesElements = 3, + ppAnimateChartAllAtOnce = 5, + ppAnimateChartMixed = -2, + } + + const enum PpCheckInVersionType { + ppCheckInMajorVersion = 1, + ppCheckInMinorVersion = 0, + ppCheckInOverwriteVersion = 2, + } + + const enum PpColorSchemeIndex { + ppAccent1 = 6, + ppAccent2 = 7, + ppAccent3 = 8, + ppBackground = 1, + ppFill = 5, + ppForeground = 2, + ppNotSchemeColor = 0, + ppSchemeColorMixed = -2, + ppShadow = 3, + ppTitle = 4, + } + + const enum PpDateTimeFormat { + ppDateTimeddddMMMMddyyyy = 2, + ppDateTimedMMMMyyyy = 3, + ppDateTimedMMMyy = 5, + ppDateTimeFigureOut = 14, + ppDateTimeFormatMixed = -2, + ppDateTimeHmm = 10, + ppDateTimehmmAMPM = 12, + ppDateTimeHmmss = 11, + ppDateTimehmmssAMPM = 13, + ppDateTimeMdyy = 1, + ppDateTimeMMddyyHmm = 8, + ppDateTimeMMddyyhmmAMPM = 9, + ppDateTimeMMMMdyyyy = 4, + ppDateTimeMMMMyy = 6, + ppDateTimeMMyy = 7, + } + + const enum PpDirection { + ppDirectionLeftToRight = 1, + ppDirectionMixed = -2, + ppDirectionRightToLeft = 2, + } + + const enum PpEntryEffect { + ppEffectAppear = 3844, + ppEffectBlindsHorizontal = 769, + ppEffectBlindsVertical = 770, + ppEffectBoxDown = 3925, + ppEffectBoxIn = 3074, + ppEffectBoxLeft = 3922, + ppEffectBoxOut = 3073, + ppEffectBoxRight = 3924, + ppEffectBoxUp = 3923, + ppEffectCheckerboardAcross = 1025, + ppEffectCheckerboardDown = 1026, + ppEffectCircleOut = 3845, + ppEffectCombHorizontal = 3847, + ppEffectCombVertical = 3848, + ppEffectConveyorLeft = 3882, + ppEffectConveyorRight = 3883, + ppEffectCoverDown = 1284, + ppEffectCoverLeft = 1281, + ppEffectCoverLeftDown = 1287, + ppEffectCoverLeftUp = 1285, + ppEffectCoverRight = 1283, + ppEffectCoverRightDown = 1288, + ppEffectCoverRightUp = 1286, + ppEffectCoverUp = 1282, + ppEffectCrawlFromDown = 3344, + ppEffectCrawlFromLeft = 3341, + ppEffectCrawlFromRight = 3343, + ppEffectCrawlFromUp = 3342, + ppEffectCubeDown = 3917, + ppEffectCubeLeft = 3914, + ppEffectCubeRight = 3916, + ppEffectCubeUp = 3915, + ppEffectCut = 257, + ppEffectCutThroughBlack = 258, + ppEffectDiamondOut = 3846, + ppEffectDissolve = 1537, + ppEffectDoorsHorizontal = 3885, + ppEffectDoorsVertical = 3884, + ppEffectFade = 1793, + ppEffectFadeSmoothly = 3849, + ppEffectFerrisWheelLeft = 3899, + ppEffectFerrisWheelRight = 3900, + ppEffectFlashbulb = 3909, + ppEffectFlashOnceFast = 3841, + ppEffectFlashOnceMedium = 3842, + ppEffectFlashOnceSlow = 3843, + ppEffectFlipDown = 3908, + ppEffectFlipLeft = 3905, + ppEffectFlipRight = 3907, + ppEffectFlipUp = 3906, + ppEffectFlyFromBottom = 3332, + ppEffectFlyFromBottomLeft = 3335, + ppEffectFlyFromBottomRight = 3336, + ppEffectFlyFromLeft = 3329, + ppEffectFlyFromRight = 3331, + ppEffectFlyFromTop = 3330, + ppEffectFlyFromTopLeft = 3333, + ppEffectFlyFromTopRight = 3334, + ppEffectFlyThroughIn = 3890, + ppEffectFlyThroughInBounce = 3892, + ppEffectFlyThroughOut = 3891, + ppEffectFlyThroughOutBounce = 3893, + ppEffectGalleryLeft = 3880, + ppEffectGalleryRight = 3881, + ppEffectGlitterDiamondDown = 3875, + ppEffectGlitterDiamondLeft = 3872, + ppEffectGlitterDiamondRight = 3874, + ppEffectGlitterDiamondUp = 3873, + ppEffectGlitterHexagonDown = 3879, + ppEffectGlitterHexagonLeft = 3876, + ppEffectGlitterHexagonRight = 3878, + ppEffectGlitterHexagonUp = 3877, + ppEffectHoneycomb = 3898, + ppEffectMixed = -2, + ppEffectNewsflash = 3850, + ppEffectNone = 0, + ppEffectOrbitDown = 3929, + ppEffectOrbitLeft = 3926, + ppEffectOrbitRight = 3928, + ppEffectOrbitUp = 3927, + ppEffectPanDown = 3933, + ppEffectPanLeft = 3930, + ppEffectPanRight = 3932, + ppEffectPanUp = 3931, + ppEffectPeekFromDown = 3338, + ppEffectPeekFromLeft = 3337, + ppEffectPeekFromRight = 3339, + ppEffectPeekFromUp = 3340, + ppEffectPlusOut = 3851, + ppEffectPushDown = 3852, + ppEffectPushLeft = 3853, + ppEffectPushRight = 3854, + ppEffectPushUp = 3855, + ppEffectRandom = 513, + ppEffectRandomBarsHorizontal = 2305, + ppEffectRandomBarsVertical = 2306, + ppEffectRevealBlackLeft = 3896, + ppEffectRevealBlackRight = 3897, + ppEffectRevealSmoothLeft = 3894, + ppEffectRevealSmoothRight = 3895, + ppEffectRippleCenter = 3867, + ppEffectRippleLeftDown = 3870, + ppEffectRippleLeftUp = 3869, + ppEffectRippleRightDown = 3871, + ppEffectRippleRightUp = 3868, + ppEffectRotateDown = 3921, + ppEffectRotateLeft = 3918, + ppEffectRotateRight = 3920, + ppEffectRotateUp = 3919, + ppEffectShredRectangleIn = 3912, + ppEffectShredRectangleOut = 3913, + ppEffectShredStripsIn = 3910, + ppEffectShredStripsOut = 3911, + ppEffectSpiral = 3357, + ppEffectSplitHorizontalIn = 3586, + ppEffectSplitHorizontalOut = 3585, + ppEffectSplitVerticalIn = 3588, + ppEffectSplitVerticalOut = 3587, + ppEffectStretchAcross = 3351, + ppEffectStretchDown = 3355, + ppEffectStretchLeft = 3352, + ppEffectStretchRight = 3354, + ppEffectStretchUp = 3353, + ppEffectStripsDownLeft = 2563, + ppEffectStripsDownRight = 2564, + ppEffectStripsLeftDown = 2567, + ppEffectStripsLeftUp = 2565, + ppEffectStripsRightDown = 2568, + ppEffectStripsRightUp = 2566, + ppEffectStripsUpLeft = 2561, + ppEffectStripsUpRight = 2562, + ppEffectSwitchDown = 3904, + ppEffectSwitchLeft = 3901, + ppEffectSwitchRight = 3903, + ppEffectSwitchUp = 3902, + ppEffectSwivel = 3356, + ppEffectUncoverDown = 2052, + ppEffectUncoverLeft = 2049, + ppEffectUncoverLeftDown = 2055, + ppEffectUncoverLeftUp = 2053, + ppEffectUncoverRight = 2051, + ppEffectUncoverRightDown = 2056, + ppEffectUncoverRightUp = 2054, + ppEffectUncoverUp = 2050, + ppEffectVortexDown = 3866, + ppEffectVortexLeft = 3863, + ppEffectVortexRight = 3865, + ppEffectVortexUp = 3864, + ppEffectWarpIn = 3888, + ppEffectWarpOut = 3889, + ppEffectWedge = 3856, + ppEffectWheel1Spoke = 3857, + ppEffectWheel2Spokes = 3858, + ppEffectWheel3Spokes = 3859, + ppEffectWheel4Spokes = 3860, + ppEffectWheel8Spokes = 3861, + ppEffectWheelReverse1Spoke = 3862, + ppEffectWindowHorizontal = 3887, + ppEffectWindowVertical = 3886, + ppEffectWipeDown = 2820, + ppEffectWipeLeft = 2817, + ppEffectWipeRight = 2819, + ppEffectWipeUp = 2818, + ppEffectZoomBottom = 3350, + ppEffectZoomCenter = 3349, + ppEffectZoomIn = 3345, + ppEffectZoomInSlightly = 3346, + ppEffectZoomOut = 3347, + ppEffectZoomOutSlightly = 3348, + } + + const enum PpExportMode { + ppClipRelativeToSlide = 2, + ppRelativeToSlide = 1, + ppScaleToFit = 3, + ppScaleXY = 4, + } + + const enum PpFarEastLineBreakLevel { + ppFarEastLineBreakLevelCustom = 3, + ppFarEastLineBreakLevelNormal = 1, + ppFarEastLineBreakLevelStrict = 2, + } + + const enum PpFileDialogType { + ppFileDialogOpen = 1, + ppFileDialogSave = 2, + } + + const enum PpFixedFormatIntent { + ppFixedFormatIntentPrint = 2, + ppFixedFormatIntentScreen = 1, + } + + const enum PpFixedFormatType { + ppFixedFormatTypePDF = 2, + ppFixedFormatTypeXPS = 1, + } + + const enum PpFollowColors { + ppFollowColorsMixed = -2, + ppFollowColorsNone = 0, + ppFollowColorsScheme = 1, + ppFollowColorsTextAndBackground = 2, + } + + const enum PpFrameColors { + ppFrameColorsBlackTextOnWhite = 5, + ppFrameColorsBrowserColors = 1, + ppFrameColorsPresentationSchemeAccentColor = 3, + ppFrameColorsPresentationSchemeTextColor = 2, + ppFrameColorsWhiteTextOnBlack = 4, + } + + const enum PpHTMLVersion { + ppHTMLAutodetect = 4, + ppHTMLDual = 3, + ppHTMLv3 = 1, + ppHTMLv4 = 2, + } + + const enum PpIndentControl { + ppIndentControlMixed = -2, + ppIndentKeepAttr = 2, + ppIndentReplaceAttr = 1, + } + + const enum PpMediaTaskStatus { + ppMediaTaskStatusDone = 3, + ppMediaTaskStatusFailed = 4, + ppMediaTaskStatusInProgress = 1, + ppMediaTaskStatusNone = 0, + ppMediaTaskStatusQueued = 2, + } + + const enum PpMediaType { + ppMediaTypeMixed = -2, + ppMediaTypeMovie = 3, + ppMediaTypeOther = 1, + ppMediaTypeSound = 2, + } + + const enum PpMouseActivation { + ppMouseClick = 1, + ppMouseOver = 2, + } + + const enum PpNumberedBulletStyle { + ppBulletAlphaLCParenBoth = 8, + ppBulletAlphaLCParenRight = 9, + ppBulletAlphaLCPeriod = 0, + ppBulletAlphaUCParenBoth = 10, + ppBulletAlphaUCParenRight = 11, + ppBulletAlphaUCPeriod = 1, + ppBulletArabicAbjadDash = 24, + ppBulletArabicAlphaDash = 23, + ppBulletArabicDBPeriod = 29, + ppBulletArabicDBPlain = 28, + ppBulletArabicParenBoth = 12, + ppBulletArabicParenRight = 2, + ppBulletArabicPeriod = 3, + ppBulletArabicPlain = 13, + ppBulletCircleNumDBPlain = 18, + ppBulletCircleNumWDBlackPlain = 20, + ppBulletCircleNumWDWhitePlain = 19, + ppBulletHebrewAlphaDash = 25, + ppBulletHindiAlpha1Period = 40, + ppBulletHindiAlphaPeriod = 36, + ppBulletHindiNumParenRight = 39, + ppBulletHindiNumPeriod = 37, + ppBulletKanjiKoreanPeriod = 27, + ppBulletKanjiKoreanPlain = 26, + ppBulletKanjiSimpChinDBPeriod = 38, + ppBulletRomanLCParenBoth = 4, + ppBulletRomanLCParenRight = 5, + ppBulletRomanLCPeriod = 6, + ppBulletRomanUCParenBoth = 14, + ppBulletRomanUCParenRight = 15, + ppBulletRomanUCPeriod = 7, + ppBulletSimpChinPeriod = 17, + ppBulletSimpChinPlain = 16, + ppBulletStyleMixed = -2, + ppBulletThaiAlphaParenBoth = 32, + ppBulletThaiAlphaParenRight = 31, + ppBulletThaiAlphaPeriod = 30, + ppBulletThaiNumParenBoth = 35, + ppBulletThaiNumParenRight = 34, + ppBulletThaiNumPeriod = 33, + ppBulletTradChinPeriod = 22, + ppBulletTradChinPlain = 21, + } + + const enum PpParagraphAlignment { + ppAlignCenter = 2, + ppAlignDistribute = 5, + ppAlignJustify = 4, + ppAlignJustifyLow = 7, + ppAlignLeft = 1, + ppAlignmentMixed = -2, + ppAlignRight = 3, + ppAlignThaiDistribute = 6, + } + + const enum PpPasteDataType { + ppPasteBitmap = 1, + ppPasteDefault = 0, + ppPasteEnhancedMetafile = 2, + ppPasteGIF = 4, + ppPasteHTML = 8, + ppPasteJPG = 5, + ppPasteMetafilePicture = 3, + ppPasteOLEObject = 10, + ppPastePNG = 6, + ppPasteRTF = 9, + ppPasteShape = 11, + ppPasteText = 7, + } + + const enum PpPlaceholderType { + ppPlaceholderBitmap = 9, + ppPlaceholderBody = 2, + ppPlaceholderCenterTitle = 3, + ppPlaceholderChart = 8, + ppPlaceholderDate = 16, + ppPlaceholderFooter = 15, + ppPlaceholderHeader = 14, + ppPlaceholderMediaClip = 10, + ppPlaceholderMixed = -2, + ppPlaceholderObject = 7, + ppPlaceholderOrgChart = 11, + ppPlaceholderPicture = 18, + ppPlaceholderSlideNumber = 13, + ppPlaceholderSubtitle = 4, + ppPlaceholderTable = 12, + ppPlaceholderTitle = 1, + ppPlaceholderVerticalBody = 6, + ppPlaceholderVerticalObject = 17, + ppPlaceholderVerticalTitle = 5, + } + + const enum PpPlayerState { + ppNotReady = 3, + ppPaused = 1, + ppPlaying = 0, + ppStopped = 2, + } + + const enum PpPrintColorType { + ppPrintBlackAndWhite = 2, + ppPrintColor = 1, + ppPrintPureBlackAndWhite = 3, + } + + const enum PpPrintHandoutOrder { + ppPrintHandoutHorizontalFirst = 2, + ppPrintHandoutVerticalFirst = 1, + } + + const enum PpPrintOutputType { + ppPrintOutputBuildSlides = 7, + ppPrintOutputFourSlideHandouts = 8, + ppPrintOutputNineSlideHandouts = 9, + ppPrintOutputNotesPages = 5, + ppPrintOutputOneSlideHandouts = 10, + ppPrintOutputOutline = 6, + ppPrintOutputSixSlideHandouts = 4, + ppPrintOutputSlides = 1, + ppPrintOutputThreeSlideHandouts = 3, + ppPrintOutputTwoSlideHandouts = 2, + } + + const enum PpPrintRangeType { + ppPrintAll = 1, + ppPrintCurrent = 3, + ppPrintNamedSlideShow = 5, + ppPrintSection = 6, + ppPrintSelection = 2, + ppPrintSlideRange = 4, + } + + const enum PpProtectedViewCloseReason { + ppProtectedViewCloseEdit = 1, + ppProtectedViewCloseForced = 2, + ppProtectedViewCloseNormal = 0, + } + + const enum PpPublishSourceType { + ppPublishAll = 1, + ppPublishNamedSlideShow = 3, + ppPublishSlideRange = 2, + } + + const enum PpRemoveDocInfoType { + ppRDIAll = 99, + ppRDIComments = 1, + ppRDIContentType = 16, + ppRDIDocumentManagementPolicy = 15, + ppRDIDocumentProperties = 8, + ppRDIDocumentServerProperties = 14, + ppRDIDocumentWorkspace = 10, + ppRDIInkAnnotations = 11, + ppRDIPublishPath = 13, + ppRDIRemovePersonalInformation = 4, + ppRDISlideUpdateInformation = 17, + } + + const enum PpResampleMediaProfile { + ppResampleMediaProfileCustom = 1, + ppResampleMediaProfileSmall = 2, + ppResampleMediaProfileSmaller = 3, + ppResampleMediaProfileSmallest = 4, + } + + const enum PpRevisionInfo { + ppRevisionInfoBaseline = 1, + ppRevisionInfoMerged = 2, + ppRevisionInfoNone = 0, + } + + const enum PpSaveAsFileType { + ppSaveAsAddIn = 8, + ppSaveAsBMP = 19, + ppSaveAsDefault = 11, + ppSaveAsEMF = 23, + ppSaveAsExternalConverter = 64000, + ppSaveAsGIF = 16, + ppSaveAsHTML = 12, + ppSaveAsHTMLDual = 14, + ppSaveAsHTMLv3 = 13, + ppSaveAsJPG = 17, + ppSaveAsMetaFile = 15, + ppSaveAsOpenDocumentPresentation = 35, + ppSaveAsOpenXMLAddin = 30, + ppSaveAsOpenXMLPicturePresentation = 36, + ppSaveAsOpenXMLPresentation = 24, + ppSaveAsOpenXMLPresentationMacroEnabled = 25, + ppSaveAsOpenXMLShow = 28, + ppSaveAsOpenXMLShowMacroEnabled = 29, + ppSaveAsOpenXMLTemplate = 26, + ppSaveAsOpenXMLTemplateMacroEnabled = 27, + ppSaveAsOpenXMLTheme = 31, + ppSaveAsPDF = 32, + ppSaveAsPNG = 18, + ppSaveAsPowerPoint3 = 4, + ppSaveAsPowerPoint4 = 3, + ppSaveAsPowerPoint4FarEast = 10, + ppSaveAsPowerPoint7 = 2, + ppSaveAsPresentation = 1, + ppSaveAsPresForReview = 22, + ppSaveAsRTF = 6, + ppSaveAsShow = 7, + ppSaveAsTemplate = 5, + ppSaveAsTIF = 21, + ppSaveAsWebArchive = 20, + ppSaveAsWMV = 37, + ppSaveAsXMLPresentation = 34, + ppSaveAsXPS = 33, + } + + const enum PpSelectionType { + ppSelectionNone = 0, + ppSelectionShapes = 2, + ppSelectionSlides = 1, + ppSelectionText = 3, + } + + const enum PpShapeFormat { + ppShapeFormatBMP = 3, + ppShapeFormatEMF = 5, + ppShapeFormatGIF = 0, + ppShapeFormatJPG = 1, + ppShapeFormatPNG = 2, + ppShapeFormatWMF = 4, + } + + const enum PpSlideLayout { + ppLayoutBlank = 12, + ppLayoutChart = 8, + ppLayoutChartAndText = 6, + ppLayoutClipartAndText = 10, + ppLayoutClipArtAndVerticalText = 26, + ppLayoutComparison = 34, + ppLayoutContentWithCaption = 35, + ppLayoutCustom = 32, + ppLayoutFourObjects = 24, + ppLayoutLargeObject = 15, + ppLayoutMediaClipAndText = 18, + ppLayoutMixed = -2, + ppLayoutObject = 16, + ppLayoutObjectAndText = 14, + ppLayoutObjectAndTwoObjects = 30, + ppLayoutObjectOverText = 19, + ppLayoutOrgchart = 7, + ppLayoutPictureWithCaption = 36, + ppLayoutSectionHeader = 33, + ppLayoutTable = 4, + ppLayoutText = 2, + ppLayoutTextAndChart = 5, + ppLayoutTextAndClipart = 9, + ppLayoutTextAndMediaClip = 17, + ppLayoutTextAndObject = 13, + ppLayoutTextAndTwoObjects = 21, + ppLayoutTextOverObject = 20, + ppLayoutTitle = 1, + ppLayoutTitleOnly = 11, + ppLayoutTwoColumnText = 3, + ppLayoutTwoObjects = 29, + ppLayoutTwoObjectsAndObject = 31, + ppLayoutTwoObjectsAndText = 22, + ppLayoutTwoObjectsOverText = 23, + ppLayoutVerticalText = 25, + ppLayoutVerticalTitleAndText = 27, + ppLayoutVerticalTitleAndTextOverChart = 28, + } + + const enum PpSlideShowAdvanceMode { + ppSlideShowManualAdvance = 1, + ppSlideShowRehearseNewTimings = 3, + ppSlideShowUseSlideTimings = 2, + } + + const enum PpSlideShowPointerType { + ppSlideShowPointerAlwaysHidden = 3, + ppSlideShowPointerArrow = 1, + ppSlideShowPointerAutoArrow = 4, + ppSlideShowPointerEraser = 5, + ppSlideShowPointerNone = 0, + ppSlideShowPointerPen = 2, + } + + const enum PpSlideShowRangeType { + ppShowAll = 1, + ppShowNamedSlideShow = 3, + ppShowSlideRange = 2, + } + + const enum PpSlideShowState { + ppSlideShowBlackScreen = 3, + ppSlideShowDone = 5, + ppSlideShowPaused = 2, + ppSlideShowRunning = 1, + ppSlideShowWhiteScreen = 4, + } + + const enum PpSlideShowType { + ppShowTypeKiosk = 3, + ppShowTypeSpeaker = 1, + ppShowTypeWindow = 2, + ppShowTypeWindow2 = 4, + } + + const enum PpSlideSizeType { + ppSlideSize35MM = 4, + ppSlideSizeA3Paper = 9, + ppSlideSizeA4Paper = 3, + ppSlideSizeB4ISOPaper = 10, + ppSlideSizeB4JISPaper = 12, + ppSlideSizeB5ISOPaper = 11, + ppSlideSizeB5JISPaper = 13, + ppSlideSizeBanner = 6, + ppSlideSizeCustom = 7, + ppSlideSizeHagakiCard = 14, + ppSlideSizeLedgerPaper = 8, + ppSlideSizeLetterPaper = 2, + ppSlideSizeOnScreen = 1, + ppSlideSizeOnScreen16x10 = 16, + ppSlideSizeOnScreen16x9 = 15, + ppSlideSizeOverhead = 5, + } + + const enum PpSoundEffectType { + ppSoundEffectsMixed = -2, + ppSoundFile = 2, + ppSoundNone = 0, + ppSoundStopPrevious = 1, + } + + const enum PpSoundFormatType { + ppSoundFormatCDAudio = 3, + ppSoundFormatMIDI = 2, + ppSoundFormatMixed = -2, + ppSoundFormatNone = 0, + ppSoundFormatWAV = 1, + } + + const enum PpTabStopType { + ppTabStopCenter = 2, + ppTabStopDecimal = 4, + ppTabStopLeft = 1, + ppTabStopMixed = -2, + ppTabStopRight = 3, + } + + const enum PpTextLevelEffect { + ppAnimateByAllLevels = 16, + ppAnimateByFifthLevel = 5, + ppAnimateByFirstLevel = 1, + ppAnimateByFourthLevel = 4, + ppAnimateBySecondLevel = 2, + ppAnimateByThirdLevel = 3, + ppAnimateLevelMixed = -2, + ppAnimateLevelNone = 0, + } + + const enum PpTextStyleType { + ppBodyStyle = 3, + ppDefaultStyle = 1, + ppTitleStyle = 2, + } + + const enum PpTextUnitEffect { + ppAnimateByCharacter = 2, + ppAnimateByParagraph = 0, + ppAnimateByWord = 1, + ppAnimateUnitMixed = -2, + } + + const enum PpTransitionSpeed { + ppTransitionSpeedFast = 3, + ppTransitionSpeedMedium = 2, + ppTransitionSpeedMixed = -2, + ppTransitionSpeedSlow = 1, + } + + const enum PpUpdateOption { + ppUpdateOptionAutomatic = 2, + ppUpdateOptionManual = 1, + ppUpdateOptionMixed = -2, + } + + const enum PpViewType { + ppViewHandoutMaster = 4, + ppViewMasterThumbnails = 12, + ppViewNormal = 9, + ppViewNotesMaster = 5, + ppViewNotesPage = 3, + ppViewOutline = 6, + ppViewPrintPreview = 10, + ppViewSlide = 1, + ppViewSlideMaster = 2, + ppViewSlideSorter = 7, + ppViewThumbnails = 11, + ppViewTitleMaster = 8, + } + + const enum PpWindowState { + ppWindowMaximized = 3, + ppWindowMinimized = 2, + ppWindowNormal = 1, + } + + const enum XlAxisCrosses { + xlAxisCrossesAutomatic = -4105, + xlAxisCrossesCustom = -4114, + xlAxisCrossesMaximum = 2, + xlAxisCrossesMinimum = 4, + } + + const enum XlAxisGroup { + xlPrimary = 1, + xlSecondary = 2, + } + + const enum XlAxisType { + xlCategory = 1, + xlSeriesAxis = 3, + xlValue = 2, + } + + const enum XlBackground { + xlBackgroundAutomatic = -4105, + xlBackgroundOpaque = 3, + xlBackgroundTransparent = 2, + } + + const enum XlBarShape { + xlBox = 0, + xlConeToMax = 5, + xlConeToPoint = 4, + xlCylinder = 3, + xlPyramidToMax = 2, + xlPyramidToPoint = 1, + } + + const enum XlBorderWeight { + xlHairline = 1, + xlMedium = -4138, + xlThick = 4, + xlThin = 2, + } + + const enum XlCategoryType { + xlAutomaticScale = -4105, + xlCategoryScale = 2, + xlTimeScale = 3, + } + + const enum XlChartElementPosition { + xlChartElementPositionAutomatic = -4105, + xlChartElementPositionCustom = -4114, + } + + const enum XlChartGallery { + xlAnyGallery = 23, + xlBuiltIn = 21, + xlUserDefined = 22, + } + + const enum XlChartItem { + xlAxis = 21, + xlAxisTitle = 17, + xlChartArea = 2, + xlChartTitle = 4, + xlCorners = 6, + xlDataLabel = 0, + xlDataTable = 7, + xlDisplayUnitLabel = 30, + xlDownBars = 20, + xlDropLines = 26, + xlErrorBars = 9, + xlFloor = 23, + xlHiLoLines = 25, + xlLeaderLines = 29, + xlLegend = 24, + xlLegendEntry = 12, + xlLegendKey = 13, + xlMajorGridlines = 15, + xlMinorGridlines = 16, + xlNothing = 28, + xlPivotChartDropZone = 32, + xlPivotChartFieldButton = 31, + xlPlotArea = 19, + xlRadarAxisLabels = 27, + xlSeries = 3, + xlSeriesLines = 22, + xlShape = 14, + xlTrendline = 8, + xlUpBars = 18, + xlWalls = 5, + xlXErrorBars = 10, + xlYErrorBars = 11, + } + + const enum XlChartPicturePlacement { + xlAllFaces = 7, + xlEnd = 2, + xlEndSides = 3, + xlFront = 4, + xlFrontEnd = 6, + xlFrontSides = 5, + xlSides = 1, + } + + const enum XlChartPictureType { + xlStack = 2, + xlStackScale = 3, + xlStretch = 1, + } + + const enum XlChartSplitType { + xlSplitByCustomSplit = 4, + xlSplitByPercentValue = 3, + xlSplitByPosition = 1, + xlSplitByValue = 2, + } + + const enum XlColorIndex { + xlColorIndexAutomatic = -4105, + xlColorIndexNone = -4142, + } + + const enum XlConstants { + xl3DBar = -4099, + xl3DSurface = -4103, + xlAbove = 0, + xlAutomatic = -4105, + xlBar = 2, + xlBelow = 1, + xlBoth = 1, + xlBottom = -4107, + xlCenter = -4108, + xlChecker = 9, + xlCircle = 8, + xlColumn = 3, + xlCombination = -4111, + xlCorner = 2, + xlCrissCross = 16, + xlCross = 4, + xlCustom = -4114, + xlDefaultAutoFormat = -1, + xlDiamond = 2, + xlDistributed = -4117, + xlFill = 5, + xlFixedValue = 1, + xlGeneral = 1, + xlGray16 = 17, + xlGray25 = -4124, + xlGray50 = -4125, + xlGray75 = -4126, + xlGray8 = 18, + xlGrid = 15, + xlHigh = -4127, + xlInside = 2, + xlJustify = -4130, + xlLeft = -4131, + xlLightDown = 13, + xlLightHorizontal = 11, + xlLightUp = 14, + xlLightVertical = 12, + xlLow = -4134, + xlMaximum = 2, + xlMinimum = 4, + xlMinusValues = 3, + xlNextToAxis = 4, + xlNone = -4142, + xlOpaque = 3, + xlOutside = 3, + xlPercent = 2, + xlPlus = 9, + xlPlusValues = 2, + xlRight = -4152, + xlScale = 3, + xlSemiGray75 = 10, + xlShowLabel = 4, + xlShowLabelAndPercent = 5, + xlShowPercent = 3, + xlShowValue = 2, + xlSingle = 2, + xlSolid = 1, + xlSquare = 1, + xlStar = 5, + xlStError = 4, + xlTop = -4160, + xlTransparent = 2, + xlTriangle = 3, + } + + const enum XlCopyPictureFormat { + xlBitmap = 2, + xlPicture = -4147, + } + + const enum XlDataLabelPosition { + xlLabelPositionAbove = 0, + xlLabelPositionBelow = 1, + xlLabelPositionBestFit = 5, + xlLabelPositionCenter = -4108, + xlLabelPositionCustom = 7, + xlLabelPositionInsideBase = 4, + xlLabelPositionInsideEnd = 3, + xlLabelPositionLeft = -4131, + xlLabelPositionMixed = 6, + xlLabelPositionOutsideEnd = 2, + xlLabelPositionRight = -4152, + } + + const enum XlDataLabelSeparator { + xlDataLabelSeparatorDefault = 1, + } + + const enum XlDataLabelsType { + xlDataLabelsShowBubbleSizes = 6, + xlDataLabelsShowLabel = 4, + xlDataLabelsShowLabelAndPercent = 5, + xlDataLabelsShowNone = -4142, + xlDataLabelsShowPercent = 3, + xlDataLabelsShowValue = 2, + } + + const enum XlDisplayBlanksAs { + xlInterpolated = 3, + xlNotPlotted = 1, + xlZero = 2, + } + + const enum XlDisplayUnit { + xlHundredMillions = -8, + xlHundreds = -2, + xlHundredThousands = -5, + xlMillionMillions = -10, + xlMillions = -6, + xlTenMillions = -7, + xlTenThousands = -4, + xlThousandMillions = -9, + xlThousands = -3, + } + + const enum XlEndStyleCap { + xlCap = 1, + xlNoCap = 2, + } + + const enum XlErrorBarDirection { + xlChartX = -4168, + xlChartY = 1, + } + + const enum XlErrorBarInclude { + xlErrorBarIncludeBoth = 1, + xlErrorBarIncludeMinusValues = 3, + xlErrorBarIncludeNone = -4142, + xlErrorBarIncludePlusValues = 2, + } + + const enum XlErrorBarType { + xlErrorBarTypeCustom = -4114, + xlErrorBarTypeFixedValue = 1, + xlErrorBarTypePercent = 2, + xlErrorBarTypeStDev = -4155, + xlErrorBarTypeStError = 4, + } + + const enum XlHAlign { + xlHAlignCenter = -4108, + xlHAlignCenterAcrossSelection = 7, + xlHAlignDistributed = -4117, + xlHAlignFill = 5, + xlHAlignGeneral = 1, + xlHAlignJustify = -4130, + xlHAlignLeft = -4131, + xlHAlignRight = -4152, + } + + const enum XlLegendPosition { + xlLegendPositionBottom = -4107, + xlLegendPositionCorner = 2, + xlLegendPositionCustom = -4161, + xlLegendPositionLeft = -4131, + xlLegendPositionRight = -4152, + xlLegendPositionTop = -4160, + } + + const enum XlLineStyle { + xlContinuous = 1, + xlDash = -4115, + xlDashDot = 4, + xlDashDotDot = 5, + xlDot = -4118, + xlDouble = -4119, + xlLineStyleNone = -4142, + xlSlantDashDot = 13, + } + + const enum XlMarkerStyle { + xlMarkerStyleAutomatic = -4105, + xlMarkerStyleCircle = 8, + xlMarkerStyleDash = -4115, + xlMarkerStyleDiamond = 2, + xlMarkerStyleDot = -4118, + xlMarkerStyleNone = -4142, + xlMarkerStylePicture = -4147, + xlMarkerStylePlus = 9, + xlMarkerStyleSquare = 1, + xlMarkerStyleStar = 5, + xlMarkerStyleTriangle = 3, + xlMarkerStyleX = -4168, + } + + const enum XlOrientation { + xlDownward = -4170, + xlHorizontal = -4128, + xlUpward = -4171, + xlVertical = -4166, + } + + const enum XlPattern { + xlPatternAutomatic = -4105, + xlPatternChecker = 9, + xlPatternCrissCross = 16, + xlPatternDown = -4121, + xlPatternGray16 = 17, + xlPatternGray25 = -4124, + xlPatternGray50 = -4125, + xlPatternGray75 = -4126, + xlPatternGray8 = 18, + xlPatternGrid = 15, + xlPatternHorizontal = -4128, + xlPatternLightDown = 13, + xlPatternLightHorizontal = 11, + xlPatternLightUp = 14, + xlPatternLightVertical = 12, + xlPatternLinearGradient = 4000, + xlPatternNone = -4142, + xlPatternRectangularGradient = 4001, + xlPatternSemiGray75 = 10, + xlPatternSolid = 1, + xlPatternUp = -4162, + xlPatternVertical = -4166, + } + + const enum XlPictureAppearance { + xlPrinter = 2, + xlScreen = 1, + } + + const enum XlPieSliceIndex { + xlCenterPoint = 5, + xlInnerCenterPoint = 8, + xlInnerClockwisePoint = 7, + xlInnerCounterClockwisePoint = 9, + xlMidClockwiseRadiusPoint = 4, + xlMidCounterClockwiseRadiusPoint = 6, + xlOuterCenterPoint = 2, + xlOuterClockwisePoint = 3, + xlOuterCounterClockwisePoint = 1, + } + + const enum XlPieSliceLocation { + xlHorizontalCoordinate = 1, + xlVerticalCoordinate = 2, + } + + const enum XlPivotFieldOrientation { + xlColumnField = 2, + xlDataField = 4, + xlHidden = 0, + xlPageField = 3, + xlRowField = 1, + } + + const enum XlReadingOrder { + xlContext = -5002, + xlLTR = -5003, + xlRTL = -5004, + } + + const enum XlRgbColor { + rgbAliceBlue = 16775408, + rgbAntiqueWhite = 14150650, + rgbAqua = 16776960, + rgbAquamarine = 13959039, + rgbAzure = 16777200, + rgbBeige = 14480885, + rgbBisque = 12903679, + rgbBlack = 0, + rgbBlanchedAlmond = 13495295, + rgbBlue = 16711680, + rgbBlueViolet = 14822282, + rgbBrown = 2763429, + rgbBurlyWood = 8894686, + rgbCadetBlue = 10526303, + rgbChartreuse = 65407, + rgbCoral = 5275647, + rgbCornflowerBlue = 15570276, + rgbCornsilk = 14481663, + rgbCrimson = 3937500, + rgbDarkBlue = 9109504, + rgbDarkCyan = 9145088, + rgbDarkGoldenrod = 755384, + rgbDarkGray = 11119017, + rgbDarkGreen = 25600, + rgbDarkGrey = 11119017, + rgbDarkKhaki = 7059389, + rgbDarkMagenta = 9109643, + rgbDarkOliveGreen = 3107669, + rgbDarkOrange = 36095, + rgbDarkOrchid = 13382297, + rgbDarkRed = 139, + rgbDarkSalmon = 8034025, + rgbDarkSeaGreen = 9419919, + rgbDarkSlateBlue = 9125192, + rgbDarkSlateGray = 5197615, + rgbDarkSlateGrey = 5197615, + rgbDarkTurquoise = 13749760, + rgbDarkViolet = 13828244, + rgbDeepPink = 9639167, + rgbDeepSkyBlue = 16760576, + rgbDimGray = 6908265, + rgbDimGrey = 6908265, + rgbDodgerBlue = 16748574, + rgbFireBrick = 2237106, + rgbFloralWhite = 15792895, + rgbForestGreen = 2263842, + rgbFuchsia = 16711935, + rgbGainsboro = 14474460, + rgbGhostWhite = 16775416, + rgbGold = 55295, + rgbGoldenrod = 2139610, + rgbGray = 8421504, + rgbGreen = 32768, + rgbGreenYellow = 3145645, + rgbGrey = 8421504, + rgbHoneydew = 15794160, + rgbHotPink = 11823615, + rgbIndianRed = 6053069, + rgbIndigo = 8519755, + rgbIvory = 15794175, + rgbKhaki = 9234160, + rgbLavender = 16443110, + rgbLavenderBlush = 16118015, + rgbLawnGreen = 64636, + rgbLemonChiffon = 13499135, + rgbLightBlue = 15128749, + rgbLightCoral = 8421616, + rgbLightCyan = 9145088, + rgbLightGoldenrodYellow = 13826810, + rgbLightGray = 13882323, + rgbLightGreen = 9498256, + rgbLightGrey = 13882323, + rgbLightPink = 12695295, + rgbLightSalmon = 8036607, + rgbLightSeaGreen = 11186720, + rgbLightSkyBlue = 16436871, + rgbLightSlateGray = 10061943, + rgbLightSlateGrey = 10061943, + rgbLightSteelBlue = 14599344, + rgbLightYellow = 14745599, + rgbLime = 65280, + rgbLimeGreen = 3329330, + rgbLinen = 15134970, + rgbMaroon = 128, + rgbMediumAquamarine = 11206502, + rgbMediumBlue = 13434880, + rgbMediumOrchid = 13850042, + rgbMediumPurple = 14381203, + rgbMediumSeaGreen = 7451452, + rgbMediumSlateBlue = 15624315, + rgbMediumSpringGreen = 10156544, + rgbMediumTurquoise = 13422920, + rgbMediumVioletRed = 8721863, + rgbMidnightBlue = 7346457, + rgbMintCream = 16449525, + rgbMistyRose = 14804223, + rgbMoccasin = 11920639, + rgbNavajoWhite = 11394815, + rgbNavy = 8388608, + rgbNavyBlue = 8388608, + rgbOldLace = 15136253, + rgbOlive = 32896, + rgbOliveDrab = 2330219, + rgbOrange = 42495, + rgbOrangeRed = 17919, + rgbOrchid = 14053594, + rgbPaleGoldenrod = 7071982, + rgbPaleGreen = 10025880, + rgbPaleTurquoise = 15658671, + rgbPaleVioletRed = 9662683, + rgbPapayaWhip = 14020607, + rgbPeachPuff = 12180223, + rgbPeru = 4163021, + rgbPink = 13353215, + rgbPlum = 14524637, + rgbPowderBlue = 15130800, + rgbPurple = 8388736, + rgbRed = 255, + rgbRosyBrown = 9408444, + rgbRoyalBlue = 14772545, + rgbSalmon = 7504122, + rgbSandyBrown = 6333684, + rgbSeaGreen = 5737262, + rgbSeashell = 15660543, + rgbSienna = 2970272, + rgbSilver = 12632256, + rgbSkyBlue = 15453831, + rgbSlateBlue = 13458026, + rgbSlateGray = 9470064, + rgbSlateGrey = 9470064, + rgbSnow = 16448255, + rgbSpringGreen = 8388352, + rgbSteelBlue = 11829830, + rgbTan = 9221330, + rgbTeal = 8421376, + rgbThistle = 14204888, + rgbTomato = 4678655, + rgbTurquoise = 13688896, + rgbViolet = 15631086, + rgbWheat = 11788021, + rgbWhite = 16777215, + rgbWhiteSmoke = 16119285, + rgbYellow = 65535, + rgbYellowGreen = 3329434, + } + + const enum XlRowCol { + xlColumns = 2, + xlRows = 1, + } + + const enum XlScaleType { + xlScaleLinear = -4132, + xlScaleLogarithmic = -4133, + } + + const enum XlSizeRepresents { + xlSizeIsArea = 1, + xlSizeIsWidth = 2, + } + + const enum XlTickLabelOrientation { + xlTickLabelOrientationAutomatic = -4105, + xlTickLabelOrientationDownward = -4170, + xlTickLabelOrientationHorizontal = -4128, + xlTickLabelOrientationUpward = -4171, + xlTickLabelOrientationVertical = -4166, + } + + const enum XlTickLabelPosition { + xlTickLabelPositionHigh = -4127, + xlTickLabelPositionLow = -4134, + xlTickLabelPositionNextToAxis = 4, + xlTickLabelPositionNone = -4142, + } + + const enum XlTickMark { + xlTickMarkCross = 4, + xlTickMarkInside = 2, + xlTickMarkNone = -4142, + xlTickMarkOutside = 3, + } + + const enum XlTimeUnit { + xlDays = 0, + xlMonths = 1, + xlYears = 2, + } + + const enum XlTrendlineType { + xlExponential = 5, + xlLinear = -4132, + xlLogarithmic = -4133, + xlMovingAvg = 6, + xlPolynomial = 3, + xlPower = 4, + } + + const enum XlUnderlineStyle { + xlUnderlineStyleDouble = -4119, + xlUnderlineStyleDoubleAccounting = 5, + xlUnderlineStyleNone = -4142, + xlUnderlineStyleSingle = 2, + xlUnderlineStyleSingleAccounting = 4, + } + + const enum XlVAlign { + xlVAlignBottom = -4107, + xlVAlignCenter = -4108, + xlVAlignDistributed = -4117, + xlVAlignJustify = -4130, + xlVAlignTop = -4160, + } + + class ActionSetting { + private 'PowerPoint.ActionSetting_typekey': ActionSetting; + private constructor(); + Action: PpActionType; + ActionVerb: string; + AnimateAction: Office.MsoTriState; + readonly Application: Application; + readonly Hyperlink: Hyperlink; + readonly Parent: any; + Run: string; + ShowAndReturn: Office.MsoTriState; + SlideShowName: string; + readonly SoundEffect: SoundEffect; + } + + class ActionSettings { + private 'PowerPoint.ActionSettings_typekey': ActionSettings; + private constructor(); + readonly Application: Application; + readonly Count: number; + Item(Index: PpMouseActivation): ActionSetting; + readonly Parent: any; + } + + class AddIn { + private 'PowerPoint.AddIn_typekey': AddIn; + private constructor(); + readonly Application: Application; + AutoLoad: Office.MsoTriState; + DisplayAlerts: Office.MsoTriState; + readonly FullName: string; + Loaded: Office.MsoTriState; + readonly Name: string; + readonly Parent: any; + readonly Path: string; + Registered: Office.MsoTriState; + readonly RegisteredInHKLM: Office.MsoTriState; + } + + class AddIns { + private 'PowerPoint.AddIns_typekey': AddIns; + private constructor(); + Add(FileName: string): AddIn; + readonly Application: Application; + readonly Count: number; + Item(Index: any): AddIn; + readonly Parent: any; + Remove(Index: any): void; + } + + class Adjustments { + private 'PowerPoint.Adjustments_typekey': Adjustments; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): number; + readonly Parent: any; + } + + class AnimationBehavior { + private 'PowerPoint.AnimationBehavior_typekey': AnimationBehavior; + private constructor(); + Accumulate: MsoAnimAccumulate; + Additive: MsoAnimAdditive; + readonly Application: Application; + readonly ColorEffect: ColorEffect; + readonly CommandEffect: CommandEffect; + Delete(): void; + readonly FilterEffect: FilterEffect; + readonly MotionEffect: MotionEffect; + readonly Parent: any; + readonly PropertyEffect: PropertyEffect; + readonly RotationEffect: RotationEffect; + readonly ScaleEffect: ScaleEffect; + readonly SetEffect: SetEffect; + readonly Timing: Timing; + Type: MsoAnimType; + } + + class AnimationBehaviors { + private 'PowerPoint.AnimationBehaviors_typekey': AnimationBehaviors; + private constructor(); + + /** @param number [Index=-1] */ + Add(Type: MsoAnimType, Index?: number): AnimationBehavior; + readonly Application: Application; + readonly Count: number; + Item(Index: number): AnimationBehavior; + readonly Parent: any; + } + + class AnimationPoint { + private 'PowerPoint.AnimationPoint_typekey': AnimationPoint; + private constructor(); + readonly Application: Application; + Delete(): void; + Formula: string; + readonly Parent: any; + Time: number; + Value: any; + } + + class AnimationPoints { + private 'PowerPoint.AnimationPoints_typekey': AnimationPoints; + private constructor(); + + /** @param number [Index=-1] */ + Add(Index?: number): AnimationPoint; + readonly Application: Application; + readonly Count: number; + Item(Index: number): AnimationPoint; + readonly Parent: any; + Smooth: Office.MsoTriState; + } + + class AnimationSettings { + private 'PowerPoint.AnimationSettings_typekey': AnimationSettings; + private constructor(); + AdvanceMode: PpAdvanceMode; + AdvanceTime: number; + AfterEffect: PpAfterEffect; + Animate: Office.MsoTriState; + AnimateBackground: Office.MsoTriState; + AnimateTextInReverse: Office.MsoTriState; + AnimationOrder: number; + readonly Application: Application; + ChartUnitEffect: PpChartUnitEffect; + readonly DimColor: ColorFormat; + EntryEffect: PpEntryEffect; + readonly Parent: any; + readonly PlaySettings: PlaySettings; + readonly SoundEffect: SoundEffect; + TextLevelEffect: PpTextLevelEffect; + TextUnitEffect: PpTextUnitEffect; + } + + class Application { + private 'PowerPoint.Application_typekey': Application; + private constructor(); + Activate(): void; + readonly Active: Office.MsoTriState; + readonly ActiveEncryptionSession: number; + readonly ActivePresentation: Presentation; + readonly ActivePrinter: string; + readonly ActiveProtectedViewWindow: ProtectedViewWindow; + readonly ActiveWindow: DocumentWindow; + readonly AddIns: AddIns; + readonly AnswerWizard: Office.AnswerWizard; + readonly Assistance: Office.IAssistance; + readonly Assistant: Office.Assistant; + readonly AutoCorrect: AutoCorrect; + AutomationSecurity: Office.MsoAutomationSecurity; + readonly Build: string; + Caption: string; + readonly COMAddIns: Office.COMAddIns; + readonly CommandBars: Office.CommandBars; + readonly Creator: number; + readonly DefaultWebOptions: DefaultWebOptions; + readonly Dialogs: any; + DisplayAlerts: PpAlertLevel; + DisplayDocumentInformationPanel: boolean; + DisplayGridLines: Office.MsoTriState; + FeatureInstall: Office.MsoFeatureInstall; + readonly FileConverters: FileConverters; + FileDialog(Type: Office.MsoFileDialogType): Office.FileDialog; + readonly FileFind: Office.IFind; + readonly FileSearch: Office.FileSearch; + FileValidation: Office.MsoFileValidationMode; + + /** @param boolean [Persist=false] */ + GetOptionFlag(Option: number, Persist?: boolean): boolean; + Height: number; + + /** + * @param string [HelpFile='vbapp10.chm'] + * @param number [ContextID=0] + */ + Help(HelpFile?: string, ContextID?: number): void; + readonly IsSandboxed: boolean; + readonly LanguageSettings: Office.LanguageSettings; + LaunchPublishSlidesDialog(SlideLibraryUrl: string): void; + LaunchSendToPPTDialog(SlideUrls: any): void; + Left: number; + readonly Marker: any; + readonly MsoDebugOptions: Office.MsoDebugOptions; + readonly Name: string; + readonly NewPresentation: Office.NewFile; + readonly OperatingSystem: string; + readonly Options: Options; + readonly Path: string; + PPFileDialog(Type: PpFileDialogType): any; + readonly Presentations: Presentations; + readonly ProductCode: string; + readonly ProtectedViewWindows: ProtectedViewWindows; + Quit(): void; + readonly ResampleMediaTasks: ResampleMediaTasks; + Run(MacroName: string, ...safeArrayOfParams: any[]): any; + + /** @param boolean [Persist=false] */ + SetOptionFlag(Option: number, State: boolean, Persist?: boolean): void; + SetPerfMarker(Marker: number): void; + ShowStartupDialog: Office.MsoTriState; + ShowWindowsInTaskbar: Office.MsoTriState; + readonly SlideShowWindows: SlideShowWindows; + readonly SmartArtColors: Office.SmartArtColors; + readonly SmartArtLayouts: Office.SmartArtLayouts; + readonly SmartArtQuickStyles: Office.SmartArtQuickStyles; + StartNewUndoEntry(): void; + Top: number; + readonly VBE: VBIDE.VBE; + readonly Version: string; + Visible: Office.MsoTriState; + Width: number; + readonly Windows: DocumentWindows; + WindowState: PpWindowState; + } + + class AutoCorrect { + private 'PowerPoint.AutoCorrect_typekey': AutoCorrect; + private constructor(); + DisplayAutoCorrectOptions: boolean; + DisplayAutoLayoutOptions: boolean; + } + + class Borders { + private 'PowerPoint.Borders_typekey': Borders; + private constructor(); + readonly Application: Application; + readonly Count: number; + Item(BorderType: PpBorderType): LineFormat; + readonly Parent: any; + } + + class Broadcast { + private 'PowerPoint.Broadcast_typekey': Broadcast; + private constructor(); + readonly Application: Application; + readonly AttendeeUrl: string; + End(): void; + readonly IsBroadcasting: boolean; + readonly Parent: any; + Start(serverUrl: string): void; + } + + class BulletFormat { + private 'PowerPoint.BulletFormat_typekey': BulletFormat; + private constructor(); + readonly Application: Application; + Character: number; + readonly Font: Font; + readonly Number: number; + readonly Parent: any; + Picture(Picture: string): void; + RelativeSize: number; + StartValue: number; + Style: PpNumberedBulletStyle; + Type: PpBulletType; + UseTextColor: Office.MsoTriState; + UseTextFont: Office.MsoTriState; + Visible: Office.MsoTriState; + } + + class CalloutFormat { + private 'PowerPoint.CalloutFormat_typekey': CalloutFormat; + private constructor(); + Accent: Office.MsoTriState; + Angle: Office.MsoCalloutAngleType; + readonly Application: any; + AutoAttach: Office.MsoTriState; + readonly AutoLength: Office.MsoTriState; + AutomaticLength(): void; + Border: Office.MsoTriState; + readonly Creator: number; + CustomDrop(Drop: number): void; + CustomLength(Length: number): void; + readonly Drop: number; + readonly DropType: Office.MsoCalloutDropType; + Gap: number; + readonly Length: number; + readonly Parent: any; + PresetDrop(DropType: Office.MsoCalloutDropType): void; + Type: Office.MsoCalloutType; + } + + class CanvasShapes { + private 'PowerPoint.CanvasShapes_typekey': CanvasShapes; + private constructor(); + AddCallout(Type: Office.MsoCalloutType, Left: number, Top: number, Width: number, Height: number): Shape; + AddConnector(Type: Office.MsoConnectorType, BeginX: number, BeginY: number, EndX: number, EndY: number): Shape; + AddCurve(SafeArrayOfPoints: any): Shape; + AddLabel(Orientation: Office.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape; + AddLine(BeginX: number, BeginY: number, EndX: number, EndY: number): Shape; + + /** + * @param number [Width=-1] + * @param number [Height=-1] + */ + AddPicture(FileName: string, LinkToFile: Office.MsoTriState, SaveWithDocument: Office.MsoTriState, Left: number, Top: number, Width?: number, Height?: number): Shape; + AddPolyline(SafeArrayOfPoints: any): Shape; + AddShape(Type: Office.MsoAutoShapeType, Left: number, Top: number, Width: number, Height: number): Shape; + AddTextbox(Orientation: Office.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape; + AddTextEffect( + PresetTextEffect: Office.MsoPresetTextEffect, Text: string, FontName: string, FontSize: number, FontBold: Office.MsoTriState, FontItalic: Office.MsoTriState, + Left: number, Top: number): Shape; + readonly Application: any; + readonly Background: Shape; + BuildFreeform(EditingType: Office.MsoEditingType, X1: number, Y1: number): FreeformBuilder; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Shape; + readonly Parent: any; + Range(Index: any): ShapeRange; + SelectAll(): void; + } + + class Cell { + private 'PowerPoint.Cell_typekey': Cell; + private constructor(); + readonly Application: Application; + readonly Borders: Borders; + Merge(MergeTo: Cell): void; + readonly Parent: any; + Select(): void; + readonly Selected: boolean; + readonly Shape: Shape; + Split(NumRows: number, NumColumns: number): void; + } + + class CellRange { + private 'PowerPoint.CellRange_typekey': CellRange; + private constructor(); + readonly Application: Application; + readonly Borders: Borders; + readonly Count: number; + Item(Index: number): Cell; + readonly Parent: any; + } + + class Chart { + private 'PowerPoint.Chart_typekey': Chart; + private constructor(); + + /** @param PowerPoint.XlDataLabelsType [Type=2] */ + _ApplyDataLabels(Type?: XlDataLabelsType, LegendKey?: any, AutoText?: any, HasLeaderLines?: any): void; + AlternativeText: string; + readonly Application: Application; + ApplyChartTemplate(FileName: string): void; + ApplyCustomType(ChartType: Office.XlChartType, TypeName?: any): void; + + /** @param PowerPoint.XlDataLabelsType [Type=2] */ + ApplyDataLabels( + Type?: XlDataLabelsType, LegendKey?: any, AutoText?: any, HasLeaderLines?: any, ShowSeriesName?: any, ShowCategoryName?: any, ShowValue?: any, + ShowPercentage?: any, ShowBubbleSize?: any, Separator?: any): void; + ApplyLayout(Layout: number, ChartType?: any): void; + readonly Area3DGroup: ChartGroup; + AreaGroups(Index?: any): any; + AutoFormat(Gallery: number, Format?: any): void; + AutoScaling: boolean; + + /** @param PowerPoint.XlAxisGroup [AxisGroup=1] */ + Axes(Type: any, AxisGroup?: XlAxisGroup): any; + readonly BackWall: Walls; + readonly Bar3DGroup: ChartGroup; + BarGroups(Index?: any): any; + BarShape: XlBarShape; + readonly ChartArea: ChartArea; + readonly ChartData: ChartData; + ChartGroups(Index?: any): any; + ChartStyle: any; + readonly ChartTitle: ChartTitle; + ChartType: Office.XlChartType; + ChartWizard( + Source?: any, Gallery?: any, Format?: any, PlotBy?: any, CategoryLabels?: any, SeriesLabels?: any, HasLegend?: any, Title?: any, CategoryTitle?: any, + ValueTitle?: any, ExtraTitle?: any): void; + ClearToMatchStyle(): void; + readonly Column3DGroup: ChartGroup; + ColumnGroups(Index?: any): any; + Copy(Before?: any, After?: any): void; + + /** + * @param PowerPoint.XlPictureAppearance [Appearance=1] + * @param PowerPoint.XlCopyPictureFormat [Format=-4147] + * @param PowerPoint.XlPictureAppearance [Size=2] + */ + CopyPicture(Appearance?: XlPictureAppearance, Format?: XlCopyPictureFormat, Size?: XlPictureAppearance): void; + readonly Corners: Corners; + readonly Creator: number; + readonly DataTable: DataTable; + Delete(): void; + DepthPercent: number; + DisplayBlanksAs: XlDisplayBlanksAs; + DoughnutGroups(Index?: any): any; + Elevation: number; + Export(FileName: string, FilterName?: any, Interactive?: any): boolean; + readonly Floor: Floor; + readonly Format: ChartFormat; + GapDepth: number; + GetChartElement(X: number, Y: number, ElementID: number, Arg1: number, Arg2: number): void; + HasAxis(Index1?: any, Index2?: any): any; + HasDataTable: boolean; + HasLegend: boolean; + HasPivotFields: boolean; + HasTitle: boolean; + HeightPercent: number; + readonly Legend: Legend; + readonly Line3DGroup: ChartGroup; + LineGroups(Index?: any): any; + Name: string; + readonly Parent: any; + Paste(Type?: any): void; + Perspective: number; + readonly Pie3DGroup: ChartGroup; + PieGroups(Index?: any): any; + readonly PlotArea: PlotArea; + PlotBy: XlRowCol; + PlotVisibleOnly: boolean; + RadarGroups(Index?: any): any; + Refresh(): void; + RightAngleAxes: any; + Rotation: any; + SaveChartTemplate(FileName: string): void; + Select(Replace?: any): void; + SeriesCollection(Index?: any): any; + SetBackgroundPicture(FileName: string): void; + SetDefaultChart(Name: any): void; + SetElement(Element: Office.MsoChartElementType): void; + SetSourceData(Source: string, PlotBy?: any): void; + readonly Shapes: Shapes; + ShowAllFieldButtons: boolean; + ShowAxisFieldButtons: boolean; + ShowDataLabelsOverMaximum: boolean; + ShowLegendFieldButtons: boolean; + ShowReportFilterFieldButtons: boolean; + ShowValueFieldButtons: boolean; + readonly SideWall: Walls; + Subtype: number; + readonly SurfaceGroup: ChartGroup; + Title: string; + Type: number; + readonly Walls: Walls; + XYGroups(Index?: any): any; + } + + class ChartArea { + private 'PowerPoint.ChartArea_typekey': ChartArea; + private constructor(); + readonly Application: Application; + AutoScaleFont: any; + readonly Border: ChartBorder; + Clear(): any; + ClearContents(): any; + ClearFormats(): any; + Copy(): any; + readonly Creator: number; + readonly Fill: ChartFillFormat; + readonly Font: ChartFont; + readonly Format: ChartFormat; + Height: number; + readonly Interior: Interior; + Left: number; + readonly Name: string; + readonly Parent: any; + Select(): any; + Shadow: boolean; + Top: number; + Width: number; + } + + class ChartBorder { + private 'PowerPoint.ChartBorder_typekey': ChartBorder; + private constructor(); + readonly Application: Application; + Color: any; + ColorIndex: any; + readonly Creator: number; + LineStyle: any; + readonly Parent: any; + Weight: any; + } + + class ChartCharacters { + private 'PowerPoint.ChartCharacters_typekey': ChartCharacters; + private constructor(); + readonly Application: Application; + Caption: string; + readonly Count: number; + readonly Creator: number; + Delete(): any; + readonly Font: ChartFont; + Insert(String: string): any; + readonly Parent: any; + PhoneticCharacters: string; + Text: string; + } + + class ChartColorFormat { + private 'PowerPoint.ChartColorFormat_typekey': ChartColorFormat; + private constructor(); + readonly _Default: number; + readonly Application: Application; + readonly Creator: number; + readonly Parent: any; + readonly RGB: number; + SchemeColor: number; + readonly Type: number; + } + + class ChartData { + private 'PowerPoint.ChartData_typekey': ChartData; + private constructor(); + Activate(): void; + BreakLink(): void; + readonly IsLinked: boolean; + readonly Workbook: any; + } + + class ChartFillFormat { + private 'PowerPoint.ChartFillFormat_typekey': ChartFillFormat; + private constructor(); + readonly Application: Application; + readonly BackColor: ChartColorFormat; + readonly Creator: number; + readonly ForeColor: ChartColorFormat; + readonly GradientColorType: Office.MsoGradientColorType; + readonly GradientDegree: number; + readonly GradientStyle: Office.MsoGradientStyle; + readonly GradientVariant: number; + OneColorGradient(Style: Office.MsoGradientStyle, Variant: number, Degree: number): void; + readonly Parent: any; + readonly Pattern: Office.MsoPatternType; + Patterned(Pattern: Office.MsoPatternType): void; + PresetGradient(Style: Office.MsoGradientStyle, Variant: number, PresetGradientType: Office.MsoPresetGradientType): void; + readonly PresetGradientType: Office.MsoPresetGradientType; + readonly PresetTexture: Office.MsoPresetTexture; + PresetTextured(PresetTexture: Office.MsoPresetTexture): void; + Solid(): void; + readonly TextureName: string; + readonly TextureType: Office.MsoTextureType; + TwoColorGradient(Style: Office.MsoGradientStyle, Variant: number): void; + readonly Type: Office.MsoFillType; + UserPicture(PictureFile?: any, PictureFormat?: any, PictureStackUnit?: any, PicturePlacement?: any): void; + UserTextured(TextureFile: string): void; + Visible: Office.MsoTriState; + } + + class ChartFont { + private 'PowerPoint.ChartFont_typekey': ChartFont; + private constructor(); + readonly Application: Application; + Background: any; + Bold: any; + Color: any; + ColorIndex: any; + readonly Creator: number; + FontStyle: any; + Italic: any; + Name: any; + OutlineFont: any; + readonly Parent: any; + Shadow: any; + Size: any; + Strikethrough: any; + Subscript: any; + Superscript: any; + Underline: any; + } + + class ChartFormat { + private 'PowerPoint.ChartFormat_typekey': ChartFormat; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Fill: FillFormat; + readonly Glow: Office.GlowFormat; + readonly Line: LineFormat; + readonly Parent: any; + readonly PictureFormat: PictureFormat; + readonly Shadow: ShadowFormat; + readonly SoftEdge: Office.SoftEdgeFormat; + readonly TextFrame2: TextFrame2; + readonly ThreeD: ThreeDFormat; + } + + class ChartGroup { + private 'PowerPoint.ChartGroup_typekey': ChartGroup; + private constructor(); + readonly Application: Application; + AxisGroup: XlAxisGroup; + BubbleScale: number; + readonly Creator: number; + DoughnutHoleSize: number; + readonly DownBars: DownBars; + readonly DropLines: DropLines; + FirstSliceAngle: number; + GapWidth: number; + Has3DShading: boolean; + HasDropLines: boolean; + HasHiLoLines: boolean; + HasRadarAxisLabels: boolean; + HasSeriesLines: boolean; + HasUpDownBars: boolean; + readonly HiLoLines: HiLoLines; + readonly Index: number; + Overlap: number; + readonly Parent: any; + readonly RadarAxisLabels: TickLabels; + SecondPlotSize: number; + SeriesCollection(Index?: any): any; + readonly SeriesLines: SeriesLines; + ShowNegativeBubbles: boolean; + SizeRepresents: XlSizeRepresents; + SplitType: XlChartSplitType; + SplitValue: any; + Subtype: number; + Type: number; + readonly UpBars: UpBars; + VaryByCategories: boolean; + } + + class ChartTitle { + private 'PowerPoint.ChartTitle_typekey': ChartTitle; + private constructor(); + readonly Application: Application; + AutoScaleFont: any; + readonly Border: ChartBorder; + Caption: string; + Characters(Start?: any, Length?: any): ChartCharacters; + readonly Creator: number; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Font: ChartFont; + readonly Format: ChartFormat; + Formula: string; + FormulaLocal: string; + FormulaR1C1: string; + FormulaR1C1Local: string; + readonly Height: number; + HorizontalAlignment: any; + IncludeInLayout: boolean; + readonly Interior: Interior; + Left: number; + readonly Name: string; + Orientation: any; + readonly Parent: any; + Position: XlChartElementPosition; + ReadingOrder: number; + Select(): any; + Shadow: boolean; + Text: string; + Top: number; + VerticalAlignment: any; + readonly Width: number; + } + + class Coauthoring { + private 'PowerPoint.Coauthoring_typekey': Coauthoring; + private constructor(); + readonly Application: Application; + readonly CoauthorCount: number; + EndReview(): void; + FavorServerEditsDuringMerge: boolean; + readonly MergeMode: boolean; + readonly Parent: any; + readonly PendingUpdates: boolean; + } + + class ColorEffect { + private 'PowerPoint.ColorEffect_typekey': ColorEffect; + private constructor(); + readonly Application: Application; + readonly By: ColorFormat; + readonly From: ColorFormat; + readonly Parent: any; + readonly To: ColorFormat; + } + + class ColorFormat { + private 'PowerPoint.ColorFormat_typekey': ColorFormat; + private constructor(); + readonly Application: any; + Brightness: number; + readonly Creator: number; + ObjectThemeColor: Office.MsoThemeColorIndex; + readonly Parent: any; + RGB: Office.MsoRGBType; + SchemeColor: PpColorSchemeIndex; + TintAndShade: number; + readonly Type: Office.MsoColorType; + } + + class ColorScheme { + private 'PowerPoint.ColorScheme_typekey': ColorScheme; + private constructor(); + readonly Application: Application; + Colors(SchemeColor: PpColorSchemeIndex): RGBColor; + readonly Count: number; + Delete(): void; + readonly Parent: any; + } + + class ColorSchemes { + private 'PowerPoint.ColorSchemes_typekey': ColorSchemes; + private constructor(); + + /** @param PowerPoint.ColorScheme [Scheme=0] */ + Add(Scheme?: ColorScheme): ColorScheme; + readonly Application: Application; + readonly Count: number; + Item(Index: number): ColorScheme; + readonly Parent: any; + } + + class Column { + private 'PowerPoint.Column_typekey': Column; + private constructor(); + readonly Application: Application; + readonly Cells: CellRange; + Delete(): void; + readonly Parent: any; + Select(): void; + Width: number; + } + + class Columns { + private 'PowerPoint.Columns_typekey': Columns; + private constructor(); + + /** @param number [BeforeColumn=-1] */ + Add(BeforeColumn?: number): Column; + readonly Application: Application; + readonly Count: number; + Item(Index: number): Column; + readonly Parent: any; + } + + class CommandEffect { + private 'PowerPoint.CommandEffect_typekey': CommandEffect; + private constructor(); + readonly Application: Application; + bookmark: string; + Command: string; + readonly Parent: any; + Type: MsoAnimCommandType; + } + + class Comment { + private 'PowerPoint.Comment_typekey': Comment; + private constructor(); + readonly Application: Application; + readonly Author: string; + readonly AuthorIndex: number; + readonly AuthorInitials: string; + readonly DateTime: VarDate; + Delete(): void; + readonly Left: number; + readonly Parent: any; + readonly Text: string; + readonly Top: number; + } + + class Comments { + private 'PowerPoint.Comments_typekey': Comments; + private constructor(); + Add(Left: number, Top: number, Author: string, AuthorInitials: string, Text: string): Comment; + readonly Application: Application; + readonly Count: number; + Item(Index: number): Comment; + readonly Parent: any; + } + + class ConnectorFormat { + private 'PowerPoint.ConnectorFormat_typekey': ConnectorFormat; + private constructor(); + readonly Application: any; + BeginConnect(ConnectedShape: Shape, ConnectionSite: number): void; + readonly BeginConnected: Office.MsoTriState; + readonly BeginConnectedShape: Shape; + readonly BeginConnectionSite: number; + BeginDisconnect(): void; + readonly Creator: number; + EndConnect(ConnectedShape: Shape, ConnectionSite: number): void; + readonly EndConnected: Office.MsoTriState; + readonly EndConnectedShape: Shape; + readonly EndConnectionSite: number; + EndDisconnect(): void; + readonly Parent: any; + Type: Office.MsoConnectorType; + } + + class Corners { + private 'PowerPoint.Corners_typekey': Corners; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class CustomerData { + private 'PowerPoint.CustomerData_typekey': CustomerData; + private constructor(); + Add(): Office.CustomXMLPart; + readonly Application: Application; + readonly Count: number; + Delete(Id: string): void; + Item(Id: string): Office.CustomXMLPart; + readonly Parent: any; + } + + class CustomLayout { + private 'PowerPoint.CustomLayout_typekey': CustomLayout; + private constructor(); + readonly Application: Application; + readonly Background: ShapeRange; + Copy(): void; + readonly CustomerData: CustomerData; + Cut(): void; + Delete(): void; + readonly Design: Design; + DisplayMasterShapes: Office.MsoTriState; + Duplicate(): CustomLayout; + FollowMasterBackground: Office.MsoTriState; + readonly HeadersFooters: HeadersFooters; + readonly Height: number; + readonly Hyperlinks: Hyperlinks; + readonly Index: number; + MatchingName: string; + MoveTo(toPos: number): void; + Name: string; + readonly Parent: any; + Preserved: Office.MsoTriState; + Select(): void; + readonly Shapes: Shapes; + readonly SlideShowTransition: SlideShowTransition; + readonly ThemeColorScheme: Office.ThemeColorScheme; + readonly TimeLine: TimeLine; + readonly Width: number; + } + + class CustomLayouts { + private 'PowerPoint.CustomLayouts_typekey': CustomLayouts; + private constructor(); + Add(Index: number): CustomLayout; + readonly Application: Application; + readonly Count: number; + Item(Index: any): CustomLayout; + readonly Parent: any; + + /** @param number [Index=-1] */ + Paste(Index?: number): CustomLayout; + } + + class DataTable { + private 'PowerPoint.DataTable_typekey': DataTable; + private constructor(); + readonly Application: Application; + AutoScaleFont: any; + readonly Border: ChartBorder; + readonly Creator: number; + Delete(): void; + readonly Font: ChartFont; + readonly Format: ChartFormat; + HasBorderHorizontal: boolean; + HasBorderOutline: boolean; + HasBorderVertical: boolean; + readonly Parent: any; + Select(): void; + ShowLegendKey: boolean; + } + + class DefaultWebOptions { + private 'PowerPoint.DefaultWebOptions_typekey': DefaultWebOptions; + private constructor(); + AllowPNG: Office.MsoTriState; + AlwaysSaveInDefaultEncoding: Office.MsoTriState; + CheckIfOfficeIsHTMLEditor: Office.MsoTriState; + Encoding: Office.MsoEncoding; + readonly FolderSuffix: string; + readonly Fonts: Office.WebPageFonts; + FrameColors: PpFrameColors; + HTMLVersion: PpHTMLVersion; + IncludeNavigation: Office.MsoTriState; + OrganizeInFolder: Office.MsoTriState; + RelyOnVML: Office.MsoTriState; + ResizeGraphics: Office.MsoTriState; + SaveNewWebPagesAsWebArchives: Office.MsoTriState; + ScreenSize: Office.MsoScreenSize; + ShowSlideAnimation: Office.MsoTriState; + TargetBrowser: Office.MsoTargetBrowser; + UpdateLinksOnSave: Office.MsoTriState; + UseLongFileNames: Office.MsoTriState; + } + + class Design { + private 'PowerPoint.Design_typekey': Design; + private constructor(); + AddTitleMaster(): Master; + readonly Application: Application; + Delete(): void; + readonly HasTitleMaster: Office.MsoTriState; + readonly Index: number; + MoveTo(toPos: number): void; + Name: string; + readonly Parent: any; + Preserved: Office.MsoTriState; + readonly SlideMaster: Master; + readonly TitleMaster: Master; + } + + class Designs { + private 'PowerPoint.Designs_typekey': Designs; + private constructor(); + + /** @param number [Index=-1] */ + Add(designName: string, Index?: number): Design; + readonly Application: Application; + + /** @param number [Index=-1] */ + Clone(pOriginal: Design, Index?: number): Design; + readonly Count: number; + Item(Index: any): Design; + + /** @param number [Index=-1] */ + Load(TemplateName: string, Index?: number): Design; + readonly Parent: any; + } + + class Diagram { + private 'PowerPoint.Diagram_typekey': Diagram; + private constructor(); + readonly Application: any; + AutoFormat: Office.MsoTriState; + AutoLayout: Office.MsoTriState; + Convert(Type: Office.MsoDiagramType): void; + readonly Creator: number; + FitText(): void; + readonly Nodes: DiagramNodes; + readonly Parent: any; + Reverse: Office.MsoTriState; + readonly Type: Office.MsoDiagramType; + } + + class DiagramNode { + private 'PowerPoint.DiagramNode_typekey': DiagramNode; + private constructor(); + + /** + * @param Office.MsoRelativeNodePosition [Pos=2] + * @param Office.MsoDiagramNodeType [NodeType=1] + */ + AddNode(Pos?: Office.MsoRelativeNodePosition, NodeType?: Office.MsoDiagramNodeType): DiagramNode; + readonly Application: any; + readonly Children: DiagramNodeChildren; + + /** @param Office.MsoRelativeNodePosition [Pos=2] */ + CloneNode(CopyChildren: boolean, TargetNode: DiagramNode, Pos?: Office.MsoRelativeNodePosition): DiagramNode; + readonly Creator: number; + Delete(): void; + readonly Diagram: Diagram; + Layout: Office.MsoOrgChartLayoutType; + MoveNode(TargetNode: DiagramNode, Pos: Office.MsoRelativeNodePosition): void; + NextNode(): DiagramNode; + readonly Parent: any; + PrevNode(): DiagramNode; + ReplaceNode(TargetNode: DiagramNode): void; + readonly Root: DiagramNode; + readonly Shape: Shape; + + /** @param boolean [SwapChildren=true] */ + SwapNode(TargetNode: DiagramNode, SwapChildren?: boolean): void; + readonly TextShape: Shape; + TransferChildren(ReceivingNode: DiagramNode): void; + } + + class DiagramNodeChildren { + private 'PowerPoint.DiagramNodeChildren_typekey': DiagramNodeChildren; + private constructor(); + + /** + * @param any [Index=-1] + * @param Office.MsoDiagramNodeType [NodeType=1] + */ + AddNode(Index?: any, NodeType?: Office.MsoDiagramNodeType): DiagramNode; + readonly Application: any; + readonly Count: number; + readonly Creator: number; + readonly FirstChild: DiagramNode; + Item(Index: any): DiagramNode; + readonly LastChild: DiagramNode; + readonly Parent: any; + SelectAll(): void; + } + + class DiagramNodes { + private 'PowerPoint.DiagramNodes_typekey': DiagramNodes; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): DiagramNode; + readonly Parent: any; + SelectAll(): void; + } + + class DocumentWindow { + private 'PowerPoint.DocumentWindow_typekey': DocumentWindow; + private constructor(); + Activate(): void; + readonly Active: Office.MsoTriState; + readonly ActivePane: Pane; + readonly Application: Application; + BlackAndWhite: Office.MsoTriState; + readonly Caption: string; + Close(): void; + ExpandSection(sectionIndex: number, Expand: boolean): void; + FitToPage(): void; + Height: number; + IsSectionExpanded(sectionIndex: number): boolean; + + /** + * @param number [Down=1] + * @param number [Up=0] + * @param number [ToRight=0] + * @param number [ToLeft=0] + */ + LargeScroll(Down?: number, Up?: number, ToRight?: number, ToLeft?: number): void; + Left: number; + NewWindow(): DocumentWindow; + readonly Panes: Panes; + readonly Parent: any; + PointsToScreenPixelsX(Points: number): number; + PointsToScreenPixelsY(Points: number): number; + readonly Presentation: Presentation; + RangeFromPoint(X: number, Y: number): any; + + /** @param Office.MsoTriState [Start=-1] */ + ScrollIntoView(Left: number, Top: number, Width: number, Height: number, Start?: Office.MsoTriState): void; + readonly Selection: Selection; + + /** + * @param number [Down=1] + * @param number [Up=0] + * @param number [ToRight=0] + * @param number [ToLeft=0] + */ + SmallScroll(Down?: number, Up?: number, ToRight?: number, ToLeft?: number): void; + SplitHorizontal: number; + SplitVertical: number; + Top: number; + readonly View: View; + ViewType: PpViewType; + Width: number; + WindowState: PpWindowState; + } + + class DocumentWindows { + private 'PowerPoint.DocumentWindows_typekey': DocumentWindows; + private constructor(); + readonly Application: Application; + + /** @param PowerPoint.PpArrangeStyle [arrangeStyle=1] */ + Arrange(arrangeStyle?: PpArrangeStyle): void; + readonly Count: number; + Item(Index: number): DocumentWindow; + readonly Parent: any; + } + + class DownBars { + private 'PowerPoint.DownBars_typekey': DownBars; + private constructor(); + readonly Application: Application; + readonly Border: ChartBorder; + readonly Creator: number; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + readonly Interior: Interior; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class DropLines { + private 'PowerPoint.DropLines_typekey': DropLines; + private constructor(); + readonly Application: Application; + readonly Border: ChartBorder; + readonly Creator: number; + Delete(): any; + readonly Format: ChartFormat; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class Effect { + private 'PowerPoint.Effect_typekey': Effect; + private constructor(); + readonly Application: Application; + readonly Behaviors: AnimationBehaviors; + Delete(): void; + readonly DisplayName: string; + readonly EffectInformation: EffectInformation; + readonly EffectParameters: EffectParameters; + EffectType: MsoAnimEffect; + Exit: Office.MsoTriState; + readonly Index: number; + MoveAfter(Effect: Effect): void; + MoveBefore(Effect: Effect): void; + MoveTo(toPos: number): void; + Paragraph: number; + readonly Parent: any; + Shape: Shape; + readonly TextRangeLength: number; + readonly TextRangeStart: number; + readonly Timing: Timing; + } + + class EffectInformation { + private 'PowerPoint.EffectInformation_typekey': EffectInformation; + private constructor(); + readonly AfterEffect: MsoAnimAfterEffect; + readonly AnimateBackground: Office.MsoTriState; + readonly AnimateTextInReverse: Office.MsoTriState; + readonly Application: Application; + readonly BuildByLevelEffect: MsoAnimateByLevel; + readonly Dim: ColorFormat; + readonly Parent: any; + readonly PlaySettings: PlaySettings; + readonly SoundEffect: SoundEffect; + readonly TextUnitEffect: MsoAnimTextUnitEffect; + } + + class EffectParameters { + private 'PowerPoint.EffectParameters_typekey': EffectParameters; + private constructor(); + Amount: number; + readonly Application: Application; + readonly Color2: ColorFormat; + Direction: MsoAnimDirection; + FontName: string; + readonly Parent: any; + Relative: Office.MsoTriState; + Size: number; + } + + class ExtraColors { + private 'PowerPoint.ExtraColors_typekey': ExtraColors; + private constructor(); + Add(Type: Office.MsoRGBType): void; + readonly Application: Application; + Clear(): void; + readonly Count: number; + Item(Index: number): Office.MsoRGBType; + readonly Parent: any; + } + + class FileConverter { + private 'PowerPoint.FileConverter_typekey': FileConverter; + private constructor(); + readonly Application: Application; + readonly CanOpen: boolean; + readonly CanSave: boolean; + readonly ClassName: string; + readonly Creator: FileConverters; + readonly Extensions: string; + readonly FormatName: string; + readonly Name: string; + readonly OpenFormat: number; + readonly Parent: FileConverters; + readonly Path: string; + readonly SaveFormat: number; + } + + class FileConverters { + private 'PowerPoint.FileConverters_typekey': FileConverters; + private constructor(); + readonly Count: number; + Item(Index: any): FileConverter; + } + + class FillFormat { + private 'PowerPoint.FillFormat_typekey': FillFormat; + private constructor(); + readonly Application: any; + BackColor: ColorFormat; + Background(): void; + readonly Creator: number; + ForeColor: ColorFormat; + GradientAngle: number; + readonly GradientColorType: Office.MsoGradientColorType; + readonly GradientDegree: number; + readonly GradientStops: Office.GradientStops; + readonly GradientStyle: Office.MsoGradientStyle; + readonly GradientVariant: number; + OneColorGradient(Style: Office.MsoGradientStyle, Variant: number, Degree: number): void; + readonly Parent: any; + readonly Pattern: Office.MsoPatternType; + Patterned(Pattern: Office.MsoPatternType): void; + readonly PictureEffects: Office.PictureEffects; + PresetGradient(Style: Office.MsoGradientStyle, Variant: number, PresetGradientType: Office.MsoPresetGradientType): void; + readonly PresetGradientType: Office.MsoPresetGradientType; + readonly PresetTexture: Office.MsoPresetTexture; + PresetTextured(PresetTexture: Office.MsoPresetTexture): void; + RotateWithObject: Office.MsoTriState; + Solid(): void; + TextureAlignment: Office.MsoTextureAlignment; + TextureHorizontalScale: number; + readonly TextureName: string; + TextureOffsetX: number; + TextureOffsetY: number; + TextureTile: Office.MsoTriState; + readonly TextureType: Office.MsoTextureType; + TextureVerticalScale: number; + Transparency: number; + TwoColorGradient(Style: Office.MsoGradientStyle, Variant: number): void; + readonly Type: Office.MsoFillType; + UserPicture(PictureFile: string): void; + UserTextured(TextureFile: string): void; + Visible: Office.MsoTriState; + } + + class FilterEffect { + private 'PowerPoint.FilterEffect_typekey': FilterEffect; + private constructor(); + readonly Application: Application; + readonly Parent: any; + Reveal: Office.MsoTriState; + Subtype: MsoAnimFilterEffectSubtype; + Type: MsoAnimFilterEffectType; + } + + class Floor { + private 'PowerPoint.Floor_typekey': Floor; + private constructor(); + readonly Application: Application; + readonly Border: ChartBorder; + ClearFormats(): any; + readonly Creator: number; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + readonly Interior: Interior; + readonly Name: string; + readonly Parent: any; + Paste(): void; + PictureType: any; + Select(): any; + Thickness: number; + } + + class Font { + private 'PowerPoint.Font_typekey': Font; + private constructor(); + readonly Application: Application; + AutoRotateNumbers: Office.MsoTriState; + BaselineOffset: number; + Bold: Office.MsoTriState; + readonly Color: ColorFormat; + readonly Embeddable: Office.MsoTriState; + readonly Embedded: Office.MsoTriState; + Emboss: Office.MsoTriState; + Italic: Office.MsoTriState; + Name: string; + NameAscii: string; + NameComplexScript: string; + NameFarEast: string; + NameOther: string; + readonly Parent: any; + Shadow: Office.MsoTriState; + Size: number; + Subscript: Office.MsoTriState; + Superscript: Office.MsoTriState; + Underline: Office.MsoTriState; + } + + class Fonts { + private 'PowerPoint.Fonts_typekey': Fonts; + private constructor(); + readonly Application: Application; + readonly Count: number; + Item(Index: any): Font; + readonly Parent: any; + Replace(Original: string, Replacement: string): void; + } + + class FreeformBuilder { + private 'PowerPoint.FreeformBuilder_typekey': FreeformBuilder; + private constructor(); + + /** + * @param number [X2=0] + * @param number [Y2=0] + * @param number [X3=0] + * @param number [Y3=0] + */ + AddNodes(SegmentType: Office.MsoSegmentType, EditingType: Office.MsoEditingType, X1: number, Y1: number, X2?: number, Y2?: number, X3?: number, Y3?: number): void; + readonly Application: any; + ConvertToShape(): Shape; + readonly Creator: number; + readonly Parent: any; + } + + class Global { + private 'PowerPoint.Global_typekey': Global; + private constructor(); + readonly ActivePresentation: Presentation; + readonly ActiveProtectedViewWindow: ProtectedViewWindow; + readonly ActiveWindow: DocumentWindow; + readonly AddIns: AddIns; + readonly AnswerWizard: Office.AnswerWizard; + readonly Application: Application; + readonly Assistant: Office.Assistant; + readonly CommandBars: Office.CommandBars; + readonly Dialogs: any; + readonly FileConverters: FileConverters; + readonly IsSandboxed: boolean; + readonly Presentations: Presentations; + readonly ProtectedViewWindows: ProtectedViewWindows; + readonly SlideShowWindows: SlideShowWindows; + readonly Windows: DocumentWindows; + } + + class GroupShapes { + private 'PowerPoint.GroupShapes_typekey': GroupShapes; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Shape; + readonly Parent: any; + Range(Index: any): ShapeRange; + } + + class HeaderFooter { + private 'PowerPoint.HeaderFooter_typekey': HeaderFooter; + private constructor(); + readonly Application: Application; + Format: PpDateTimeFormat; + readonly Parent: any; + Text: string; + UseFormat: Office.MsoTriState; + Visible: Office.MsoTriState; + } + + class HeadersFooters { + private 'PowerPoint.HeadersFooters_typekey': HeadersFooters; + private constructor(); + readonly Application: Application; + Clear(): void; + readonly DateAndTime: HeaderFooter; + DisplayOnTitleSlide: Office.MsoTriState; + readonly Footer: HeaderFooter; + readonly Header: HeaderFooter; + readonly Parent: any; + readonly SlideNumber: HeaderFooter; + } + + class HiLoLines { + private 'PowerPoint.HiLoLines_typekey': HiLoLines; + private constructor(); + readonly Application: Application; + readonly Border: ChartBorder; + readonly Creator: number; + Delete(): any; + readonly Format: ChartFormat; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class Hyperlink { + private 'PowerPoint.Hyperlink_typekey': Hyperlink; + private constructor(); + Address: string; + AddToFavorites(): void; + readonly Application: Application; + CreateNewDocument(FileName: string, EditNow: Office.MsoTriState, Overwrite: Office.MsoTriState): void; + Delete(): void; + EmailSubject: string; + Follow(): void; + readonly Parent: any; + ScreenTip: string; + ShowAndReturn: Office.MsoTriState; + SubAddress: string; + TextToDisplay: string; + readonly Type: Office.MsoHyperlinkType; + } + + class Hyperlinks { + private 'PowerPoint.Hyperlinks_typekey': Hyperlinks; + private constructor(); + readonly Application: Application; + readonly Count: number; + Item(Index: number): Hyperlink; + readonly Parent: any; + } + + class Interior { + private 'PowerPoint.Interior_typekey': Interior; + private constructor(); + readonly Application: Application; + Color: any; + ColorIndex: any; + readonly Creator: number; + InvertIfNegative: any; + readonly Parent: any; + Pattern: any; + PatternColor: any; + PatternColorIndex: any; + } + + class Legend { + private 'PowerPoint.Legend_typekey': Legend; + private constructor(); + readonly Application: Application; + AutoScaleFont: any; + readonly Border: ChartBorder; + Clear(): any; + readonly Creator: number; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Font: ChartFont; + readonly Format: ChartFormat; + Height: number; + IncludeInLayout: boolean; + readonly Interior: Interior; + Left: number; + LegendEntries(Index?: any): any; + readonly Name: string; + readonly Parent: any; + Position: XlLegendPosition; + Select(): any; + Shadow: boolean; + Top: number; + Width: number; + } + + class LineFormat { + private 'PowerPoint.LineFormat_typekey': LineFormat; + private constructor(); + readonly Application: any; + BackColor: ColorFormat; + BeginArrowheadLength: Office.MsoArrowheadLength; + BeginArrowheadStyle: Office.MsoArrowheadStyle; + BeginArrowheadWidth: Office.MsoArrowheadWidth; + readonly Creator: number; + DashStyle: Office.MsoLineDashStyle; + EndArrowheadLength: Office.MsoArrowheadLength; + EndArrowheadStyle: Office.MsoArrowheadStyle; + EndArrowheadWidth: Office.MsoArrowheadWidth; + ForeColor: ColorFormat; + InsetPen: Office.MsoTriState; + readonly Parent: any; + Pattern: Office.MsoPatternType; + Style: Office.MsoLineStyle; + Transparency: number; + Visible: Office.MsoTriState; + Weight: number; + } + + class LinkFormat { + private 'PowerPoint.LinkFormat_typekey': LinkFormat; + private constructor(); + readonly Application: Application; + AutoUpdate: PpUpdateOption; + BreakLink(): void; + readonly Parent: any; + SourceFullName: string; + Update(): void; + } + + class Master { + private 'PowerPoint.Master_typekey': Master; + private constructor(); + readonly Application: Application; + ApplyTheme(themeName: string): void; + readonly Background: ShapeRange; + BackgroundStyle: Office.MsoBackgroundStyleIndex; + ColorScheme: ColorScheme; + readonly CustomerData: CustomerData; + readonly CustomLayouts: CustomLayouts; + Delete(): void; + readonly Design: Design; + readonly HeadersFooters: HeadersFooters; + readonly Height: number; + readonly Hyperlinks: Hyperlinks; + Name: string; + readonly Parent: any; + readonly Scripts: Office.Scripts; + readonly Shapes: Shapes; + readonly SlideShowTransition: SlideShowTransition; + readonly TextStyles: TextStyles; + readonly Theme: Office.OfficeTheme; + readonly TimeLine: TimeLine; + readonly Width: number; + } + + class MediaBookmark { + private 'PowerPoint.MediaBookmark_typekey': MediaBookmark; + private constructor(); + Delete(): void; + readonly Index: number; + readonly Name: string; + readonly Position: number; + } + + class MediaBookmarks { + private 'PowerPoint.MediaBookmarks_typekey': MediaBookmarks; + private constructor(); + Add(Position: number, Name: string): MediaBookmark; + readonly Count: number; + Item(Index: number): MediaBookmark; + } + + class MediaFormat { + private 'PowerPoint.MediaFormat_typekey': MediaFormat; + private constructor(); + readonly Application: Application; + readonly AudioCompressionType: string; + readonly AudioSamplingRate: number; + EndPoint: number; + FadeInDuration: number; + FadeOutDuration: number; + readonly IsEmbedded: boolean; + readonly IsLinked: boolean; + readonly Length: number; + readonly MediaBookmarks: MediaBookmarks; + Muted: boolean; + readonly Parent: any; + + /** + * @param boolean [Trim=false] + * @param number [SampleHeight=768] + * @param number [SampleWidth=1280] + * @param number [VideoFrameRate=24] + * @param number [AudioSamplingRate=48000] + * @param number [VideoBitRate=7000000] + */ + Resample(Trim?: boolean, SampleHeight?: number, SampleWidth?: number, VideoFrameRate?: number, AudioSamplingRate?: number, VideoBitRate?: number): void; + + /** @param PowerPoint.PpResampleMediaProfile [profile=2] */ + ResampleFromProfile(profile?: PpResampleMediaProfile): void; + readonly ResamplingStatus: PpMediaTaskStatus; + readonly SampleHeight: number; + readonly SampleWidth: number; + SetDisplayPicture(Position: number): void; + SetDisplayPictureFromFile(FilePath: string): void; + StartPoint: number; + readonly VideoCompressionType: string; + readonly VideoFrameRate: number; + Volume: number; + } + + class MotionEffect { + private 'PowerPoint.MotionEffect_typekey': MotionEffect; + private constructor(); + readonly Application: Application; + ByX: number; + ByY: number; + FromX: number; + FromY: number; + readonly Parent: any; + Path: string; + ToX: number; + ToY: number; + } + + class MouseTracker { + private 'PowerPoint.MouseTracker_typekey': MouseTracker; + private constructor(); + EndTrack(X: number, Y: number): void; + OnTrack(X: number, Y: number): void; + } + + class NamedSlideShow { + private 'PowerPoint.NamedSlideShow_typekey': NamedSlideShow; + private constructor(); + readonly Application: Application; + readonly Count: number; + Delete(): void; + readonly Name: string; + readonly Parent: any; + readonly SlideIDs: any; + } + + class NamedSlideShows { + private 'PowerPoint.NamedSlideShows_typekey': NamedSlideShows; + private constructor(); + Add(Name: string, safeArrayOfSlideIDs: any): NamedSlideShow; + readonly Application: Application; + readonly Count: number; + Item(Index: any): NamedSlideShow; + readonly Parent: any; + } + + class ObjectVerbs { + private 'PowerPoint.ObjectVerbs_typekey': ObjectVerbs; + private constructor(); + readonly Application: Application; + readonly Count: number; + Item(Index: number): string; + readonly Parent: any; + } + + class OLEControl { + private 'PowerPoint.OLEControl_typekey': OLEControl; + private constructor(); + AltHTML: string; + Height: number; + Left: number; + Name: string; + Top: number; + Visible: boolean; + Width: number; + readonly ZOrderPosition: number; + } + + class OLEFormat { + private 'PowerPoint.OLEFormat_typekey': OLEFormat; + private constructor(); + Activate(): void; + readonly Application: Application; + + /** @param number [Index=0] */ + DoVerb(Index?: number): void; + FollowColors: PpFollowColors; + readonly Object: any; + readonly ObjectVerbs: ObjectVerbs; + readonly Parent: any; + readonly ProgID: string; + } + + class Options { + private 'PowerPoint.Options_typekey': Options; + private constructor(); + DisplayPasteOptions: Office.MsoTriState; + DoNotPromptForConvert: Office.MsoTriState; + ShowCoauthoringMergeChanges: boolean; + } + + class PageSetup { + private 'PowerPoint.PageSetup_typekey': PageSetup; + private constructor(); + readonly Application: Application; + FirstSlideNumber: number; + NotesOrientation: Office.MsoOrientation; + readonly Parent: any; + SlideHeight: number; + SlideOrientation: Office.MsoOrientation; + SlideSize: PpSlideSizeType; + SlideWidth: number; + } + + class Pane { + private 'PowerPoint.Pane_typekey': Pane; + private constructor(); + Activate(): void; + readonly Active: Office.MsoTriState; + readonly Application: Application; + readonly Parent: any; + readonly ViewType: PpViewType; + } + + class Panes { + private 'PowerPoint.Panes_typekey': Panes; + private constructor(); + readonly Application: Application; + readonly Count: number; + Item(Index: number): Pane; + readonly Parent: any; + } + + class ParagraphFormat { + private 'PowerPoint.ParagraphFormat_typekey': ParagraphFormat; + private constructor(); + Alignment: PpParagraphAlignment; + readonly Application: Application; + BaseLineAlignment: PpBaselineAlignment; + readonly Bullet: BulletFormat; + FarEastLineBreakControl: Office.MsoTriState; + HangingPunctuation: Office.MsoTriState; + LineRuleAfter: Office.MsoTriState; + LineRuleBefore: Office.MsoTriState; + LineRuleWithin: Office.MsoTriState; + readonly Parent: any; + SpaceAfter: number; + SpaceBefore: number; + SpaceWithin: number; + TextDirection: PpDirection; + WordWrap: Office.MsoTriState; + } + + class PictureFormat { + private 'PowerPoint.PictureFormat_typekey': PictureFormat; + private constructor(); + readonly Application: any; + Brightness: number; + ColorType: Office.MsoPictureColorType; + Contrast: number; + readonly Creator: number; + readonly Crop: Office.Crop; + CropBottom: number; + CropLeft: number; + CropRight: number; + CropTop: number; + IncrementBrightness(Increment: number): void; + IncrementContrast(Increment: number): void; + readonly Parent: any; + TransparencyColor: Office.MsoRGBType; + TransparentBackground: Office.MsoTriState; + } + + class PlaceholderFormat { + private 'PowerPoint.PlaceholderFormat_typekey': PlaceholderFormat; + private constructor(); + readonly Application: Application; + readonly ContainedType: Office.MsoShapeType; + Name: string; + readonly Parent: any; + readonly Type: PpPlaceholderType; + } + + class Placeholders { + private 'PowerPoint.Placeholders_typekey': Placeholders; + private constructor(); + readonly Application: Application; + readonly Count: number; + FindByName(Index: any): Shape; + Item(Index: number): Shape; + readonly Parent: any; + } + + class Player { + private 'PowerPoint.Player_typekey': Player; + private constructor(); + readonly Application: Application; + CurrentPosition: number; + GoToNextBookmark(): void; + GoToPreviousBookmark(): void; + readonly Parent: any; + Pause(): void; + Play(): void; + readonly State: PpPlayerState; + Stop(): void; + } + + class PlaySettings { + private 'PowerPoint.PlaySettings_typekey': PlaySettings; + private constructor(); + ActionVerb: string; + readonly Application: Application; + HideWhileNotPlaying: Office.MsoTriState; + LoopUntilStopped: Office.MsoTriState; + readonly Parent: any; + PauseAnimation: Office.MsoTriState; + PlayOnEntry: Office.MsoTriState; + RewindMovie: Office.MsoTriState; + StopAfterSlides: number; + } + + class PlotArea { + private 'PowerPoint.PlotArea_typekey': PlotArea; + private constructor(); + readonly Application: Application; + readonly Border: ChartBorder; + ClearFormats(): any; + readonly Creator: number; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + Height: number; + InsideHeight: number; + InsideLeft: number; + InsideTop: number; + InsideWidth: number; + readonly Interior: Interior; + Left: number; + readonly Name: string; + readonly Parent: any; + Position: XlChartElementPosition; + Select(): any; + Top: number; + Width: number; + } + + class PowerRex { + private 'PowerPoint.PowerRex_typekey': PowerRex; + private constructor(); + OnAsfEncoderEvent(erorCode: any, bstrErrorDesc: any): void; + } + + class Presentation { + private 'PowerPoint.Presentation_typekey': Presentation; + private constructor(); + AcceptAll(): void; + + /** @param string [FileName=''] */ + AddBaseline(FileName?: string): void; + AddTitleMaster(): Master; + AddToFavorites(): void; + readonly Application: Application; + ApplyTemplate(FileName: string): void; + ApplyTheme(themeName: string): void; + readonly Broadcast: Broadcast; + readonly BuiltInDocumentProperties: any; + CanCheckIn(): boolean; + + /** @param boolean [SaveChanges=true] */ + CheckIn(SaveChanges?: boolean, Comments?: any, MakePublic?: any): void; + + /** @param boolean [SaveChanges=true] */ + CheckInWithVersion(SaveChanges?: boolean, Comments?: any, MakePublic?: any, VersionType?: any): void; + Close(): void; + readonly Coauthoring: Coauthoring; + readonly ColorSchemes: ColorSchemes; + readonly CommandBars: Office.CommandBars; + readonly Container: any; + readonly ContentTypeProperties: Office.MetaProperties; + Convert(): void; + Convert2(FileName: string): void; + + /** + * @param boolean [UseTimingsAndNarrations=true] + * @param number [DefaultSlideDuration=5] + * @param number [VertResolution=720] + * @param number [FramesPerSecond=30] + * @param number [Quality=85] + */ + CreateVideo(FileName: string, UseTimingsAndNarrations?: boolean, DefaultSlideDuration?: number, VertResolution?: number, FramesPerSecond?: number, Quality?: number): void; + readonly CreateVideoStatus: PpMediaTaskStatus; + readonly CustomDocumentProperties: any; + readonly CustomerData: CustomerData; + readonly CustomXMLParts: Office.CustomXMLParts; + DefaultLanguageID: Office.MsoLanguageID; + readonly DefaultShape: Shape; + DeleteSection(Index: number): void; + readonly Designs: Designs; + DisableSections(): void; + DisplayComments: Office.MsoTriState; + readonly DocumentInspectors: Office.DocumentInspectors; + readonly DocumentLibraryVersions: Office.DocumentLibraryVersions; + EncryptionProvider: string; + EndReview(): void; + EnsureAllMediaUpgraded(): void; + EnvelopeVisible: Office.MsoTriState; + + /** + * @param number [ScaleWidth=0] + * @param number [ScaleHeight=0] + */ + Export(Path: string, FilterName: string, ScaleWidth?: number, ScaleHeight?: number): void; + + /** + * @param PowerPoint.PpFixedFormatIntent [Intent=1] + * @param Office.MsoTriState [FrameSlides=0] + * @param PowerPoint.PpPrintHandoutOrder [HandoutOrder=1] + * @param PowerPoint.PpPrintOutputType [OutputType=1] + * @param Office.MsoTriState [PrintHiddenSlides=0] + * @param PowerPoint.PrintRange [PrintRange=0] + * @param PowerPoint.PpPrintRangeType [RangeType=1] + * @param string [SlideShowName=''] + * @param boolean [IncludeDocProperties=false] + * @param boolean [KeepIRMSettings=true] + * @param boolean [DocStructureTags=true] + * @param boolean [BitmapMissingFonts=true] + * @param boolean [UseISO19005_1=false] + */ + ExportAsFixedFormat( + Path: string, FixedFormatType: PpFixedFormatType, Intent?: PpFixedFormatIntent, FrameSlides?: Office.MsoTriState, HandoutOrder?: PpPrintHandoutOrder, + OutputType?: PpPrintOutputType, PrintHiddenSlides?: Office.MsoTriState, PrintRange?: PrintRange, RangeType?: PpPrintRangeType, SlideShowName?: string, + IncludeDocProperties?: boolean, KeepIRMSettings?: boolean, DocStructureTags?: boolean, BitmapMissingFonts?: boolean, UseISO19005_1?: boolean, ExternalExporter?: any): void; + readonly ExtraColors: ExtraColors; + FarEastLineBreakLanguage: Office.MsoFarEastLineBreakLanguageID; + FarEastLineBreakLevel: PpFarEastLineBreakLevel; + Final: boolean; + + /** + * @param string [SubAddress=''] + * @param boolean [NewWindow=false] + * @param boolean [AddHistory=true] + * @param string [ExtraInfo=''] + * @param Office.MsoExtraInfoMethod [Method=0] + * @param string [HeaderInfo=''] + */ + FollowHyperlink(Address: string, SubAddress?: string, NewWindow?: boolean, AddHistory?: boolean, ExtraInfo?: string, Method?: Office.MsoExtraInfoMethod, HeaderInfo?: string): void; + readonly Fonts: Fonts; + readonly FullName: string; + GetWorkflowTasks(): Office.WorkflowTasks; + GetWorkflowTemplates(): Office.WorkflowTemplates; + GridDistance: number; + readonly HandoutMaster: Master; + readonly HasHandoutMaster: boolean; + readonly HasNotesMaster: boolean; + readonly HasRevisionInfo: PpRevisionInfo; + readonly HasSections: boolean; + readonly HasTitleMaster: Office.MsoTriState; + readonly HasVBProject: boolean; + readonly HTMLProject: Office.HTMLProject; + readonly InMergeMode: boolean; + LayoutDirection: PpDirection; + LockServerFile(): void; + MakeIntoTemplate(IsDesignTemplate: Office.MsoTriState): void; + Merge(Path: string): void; + MergeWithBaseline(withPresentation: string, baselinePresentation: string): void; + readonly Name: string; + NewSectionAfter(Index: number, AfterSlide: boolean, sectionTitle: string, newSectionIndex: number): void; + NewWindow(): DocumentWindow; + NoLineBreakAfter: string; + NoLineBreakBefore: string; + readonly NotesMaster: Master; + readonly PageSetup: PageSetup; + readonly Parent: any; + Password: string; + readonly PasswordEncryptionAlgorithm: string; + readonly PasswordEncryptionFileProperties: boolean; + readonly PasswordEncryptionKeyLength: number; + readonly PasswordEncryptionProvider: string; + readonly Path: string; + readonly Permission: Office.Permission; + readonly PrintOptions: PrintOptions; + + /** + * @param number [From=-1] + * @param number [To=-1] + * @param string [PrintToFile=''] + * @param number [Copies=0] + * @param Office.MsoTriState [Collate=-99] + */ + PrintOut(From?: number, To?: number, PrintToFile?: string, Copies?: number, Collate?: Office.MsoTriState): void; + readonly PublishObjects: PublishObjects; + + /** + * @param boolean [Overwrite=false] + * @param boolean [UseSlideOrder=false] + */ + PublishSlides(SlideLibraryUrl: string, Overwrite?: boolean, UseSlideOrder?: boolean): void; + readonly ReadOnly: Office.MsoTriState; + RejectAll(): void; + ReloadAs(cp: Office.MsoEncoding): void; + RemoveBaseline(): void; + RemoveDocumentInformation(Type: PpRemoveDocInfoType): void; + RemovePersonalInformation: Office.MsoTriState; + + /** @param boolean [ShowMessage=true] */ + ReplyWithChanges(ShowMessage?: boolean): void; + readonly Research: Research; + Save(): void; + + /** + * @param PowerPoint.PpSaveAsFileType [FileFormat=11] + * @param Office.MsoTriState [EmbedTrueTypeFonts=-2] + */ + SaveAs(FileName: string, FileFormat?: PpSaveAsFileType, EmbedTrueTypeFonts?: Office.MsoTriState): void; + + /** + * @param PowerPoint.PpSaveAsFileType [FileFormat=11] + * @param Office.MsoTriState [EmbedTrueTypeFonts=-2] + */ + SaveCopyAs(FileName: string, FileFormat?: PpSaveAsFileType, EmbedTrueTypeFonts?: Office.MsoTriState): void; + Saved: Office.MsoTriState; + sblt(s: string): void; + readonly SectionCount: number; + readonly SectionProperties: SectionProperties; + sectionTitle(Index: number): string; + + /** + * @param string [Recipients=''] + * @param string [Subject=''] + * @param boolean [ShowMessage=false] + */ + SendFaxOverInternet(Recipients?: string, Subject?: string, ShowMessage?: boolean): void; + + /** + * @param string [Recipients=''] + * @param string [Subject=''] + * @param boolean [ShowMessage=true] + */ + SendForReview(Recipients?: string, Subject?: string, ShowMessage?: boolean, IncludeAttachment?: any): void; + readonly ServerPolicy: Office.ServerPolicy; + SetPasswordEncryptionOptions( + PasswordEncryptionProvider: string, PasswordEncryptionAlgorithm: string, PasswordEncryptionKeyLength: number, PasswordEncryptionFileProperties: boolean): void; + SetUndoText(Text: string): void; + readonly SharedWorkspace: Office.SharedWorkspace; + readonly Signatures: Office.SignatureSet; + readonly SlideMaster: Master; + readonly Slides: Slides; + readonly SlideShowSettings: SlideShowSettings; + readonly SlideShowWindow: SlideShowWindow; + SnapToGrid: Office.MsoTriState; + readonly Sync: Office.Sync; + readonly Tags: Tags; + readonly TemplateName: string; + readonly TitleMaster: Master; + UpdateLinks(): void; + readonly VBASigned: Office.MsoTriState; + readonly VBProject: VBIDE.VBProject; + readonly WebOptions: WebOptions; + WebPagePreview(): void; + readonly Windows: DocumentWindows; + WritePassword: string; + } + + class Presentations { + private 'PowerPoint.Presentations_typekey': Presentations; + private constructor(); + + /** @param Office.MsoTriState [WithWindow=-1] */ + Add(WithWindow?: Office.MsoTriState): Presentation; + readonly Application: Application; + CanCheckOut(FileName: string): boolean; + CheckOut(FileName: string): void; + readonly Count: number; + Item(Index: any): Presentation; + + /** + * @param Office.MsoTriState [ReadOnly=0] + * @param Office.MsoTriState [Untitled=0] + * @param Office.MsoTriState [WithWindow=-1] + */ + Open(FileName: string, ReadOnly?: Office.MsoTriState, Untitled?: Office.MsoTriState, WithWindow?: Office.MsoTriState): Presentation; + + /** + * @param Office.MsoTriState [ReadOnly=0] + * @param Office.MsoTriState [Untitled=0] + * @param Office.MsoTriState [WithWindow=-1] + * @param Office.MsoTriState [OpenAndRepair=0] + */ + Open2007(FileName: string, ReadOnly?: Office.MsoTriState, Untitled?: Office.MsoTriState, WithWindow?: Office.MsoTriState, OpenAndRepair?: Office.MsoTriState): Presentation; + + /** + * @param Office.MsoTriState [ReadOnly=0] + * @param Office.MsoTriState [Untitled=0] + * @param Office.MsoTriState [WithWindow=-1] + */ + OpenOld(FileName: string, ReadOnly?: Office.MsoTriState, Untitled?: Office.MsoTriState, WithWindow?: Office.MsoTriState): Presentation; + readonly Parent: any; + } + + class PrintOptions { + private 'PowerPoint.PrintOptions_typekey': PrintOptions; + private constructor(); + ActivePrinter: string; + readonly Application: Application; + Collate: Office.MsoTriState; + FitToPage: Office.MsoTriState; + FrameSlides: Office.MsoTriState; + HandoutOrder: PpPrintHandoutOrder; + HighQuality: Office.MsoTriState; + NumberOfCopies: number; + OutputType: PpPrintOutputType; + readonly Parent: any; + PrintColorType: PpPrintColorType; + PrintComments: Office.MsoTriState; + PrintFontsAsGraphics: Office.MsoTriState; + PrintHiddenSlides: Office.MsoTriState; + PrintInBackground: Office.MsoTriState; + readonly Ranges: PrintRanges; + RangeType: PpPrintRangeType; + sectionIndex: number; + SlideShowName: string; + } + + class PrintRange { + private 'PowerPoint.PrintRange_typekey': PrintRange; + private constructor(); + readonly Application: Application; + Delete(): void; + readonly End: number; + readonly Parent: any; + readonly Start: number; + } + + class PrintRanges { + private 'PowerPoint.PrintRanges_typekey': PrintRanges; + private constructor(); + Add(Start: number, End: number): PrintRange; + readonly Application: Application; + ClearAll(): void; + readonly Count: number; + Item(Index: number): PrintRange; + readonly Parent: any; + } + + class PropertyEffect { + private 'PowerPoint.PropertyEffect_typekey': PropertyEffect; + private constructor(); + readonly Application: Application; + From: any; + readonly Parent: any; + readonly Points: AnimationPoints; + Property: MsoAnimProperty; + To: any; + } + + class ProtectedViewWindow { + private 'PowerPoint.ProtectedViewWindow_typekey': ProtectedViewWindow; + private constructor(); + Activate(): void; + readonly Active: Office.MsoTriState; + readonly Application: Application; + readonly Caption: string; + Close(): void; + + /** @param string [ModifyPassword=''] */ + Edit(ModifyPassword?: string): Presentation; + Height: number; + Left: number; + readonly Parent: any; + readonly Presentation: Presentation; + readonly SourceName: string; + readonly SourcePath: string; + Top: number; + Width: number; + WindowState: PpWindowState; + } + + class ProtectedViewWindows { + private 'PowerPoint.ProtectedViewWindows_typekey': ProtectedViewWindows; + private constructor(); + readonly Application: Application; + readonly Count: number; + Item(Index: number): ProtectedViewWindow; + + /** + * @param string [ReadPassword=''] + * @param Office.MsoTriState [OpenAndRepair=0] + */ + Open(FileName: string, ReadPassword?: string, OpenAndRepair?: Office.MsoTriState): ProtectedViewWindow; + readonly Parent: any; + } + + class PublishObject { + private 'PowerPoint.PublishObject_typekey': PublishObject; + private constructor(); + readonly Application: Application; + FileName: string; + HTMLVersion: PpHTMLVersion; + readonly Parent: any; + Publish(): void; + RangeEnd: number; + RangeStart: number; + SlideShowName: string; + SourceType: PpPublishSourceType; + SpeakerNotes: Office.MsoTriState; + } + + class PublishObjects { + private 'PowerPoint.PublishObjects_typekey': PublishObjects; + private constructor(); + readonly Application: Application; + readonly Count: number; + Item(Index: number): PublishObject; + readonly Parent: any; + } + + class ResampleMediaTask { + private 'PowerPoint.ResampleMediaTask_typekey': ResampleMediaTask; + private constructor(); + readonly AudioCompressionType: string; + readonly AudioSamplingRate: number; + readonly ContainerType: string; + readonly IsEmbedded: boolean; + readonly IsLinked: boolean; + readonly profile: PpResampleMediaProfile; + readonly SampleHeight: number; + readonly SampleWidth: number; + readonly Shape: Shape; + readonly VideoCompressionType: string; + readonly VideoFrameRate: number; + } + + class ResampleMediaTasks { + private 'PowerPoint.ResampleMediaTasks_typekey': ResampleMediaTasks; + private constructor(); + Cancel(): void; + readonly Count: number; + Item(Index: number): ResampleMediaTask; + Pause(): void; + readonly PercentComplete: number; + Resume(): void; + } + + class Research { + private 'PowerPoint.Research_typekey': Research; + private constructor(); + readonly Application: Application; + IsResearchService(ServiceID: string): boolean; + readonly Parent: any; + + /** + * @param boolean [UseSelection=false] + * @param boolean [LaunchQuery=true] + */ + Query(ServiceID: string, QueryString: any, QueryLanguage: any, UseSelection?: boolean, LaunchQuery?: boolean): void; + SetLanguagePair(Language1: any, Language2: any): void; + } + + class RGBColor { + private 'PowerPoint.RGBColor_typekey': RGBColor; + private constructor(); + readonly Application: Application; + readonly Parent: any; + RGB: Office.MsoRGBType; + } + + class RotationEffect { + private 'PowerPoint.RotationEffect_typekey': RotationEffect; + private constructor(); + readonly Application: Application; + By: number; + From: number; + readonly Parent: any; + To: number; + } + + class Row { + private 'PowerPoint.Row_typekey': Row; + private constructor(); + readonly Application: Application; + readonly Cells: CellRange; + Delete(): void; + Height: number; + readonly Parent: any; + Select(): void; + } + + class Rows { + private 'PowerPoint.Rows_typekey': Rows; + private constructor(); + + /** @param number [BeforeRow=-1] */ + Add(BeforeRow?: number): Row; + readonly Application: Application; + readonly Count: number; + Item(Index: number): Row; + readonly Parent: any; + } + + class Ruler { + private 'PowerPoint.Ruler_typekey': Ruler; + private constructor(); + readonly Application: Application; + readonly Levels: RulerLevels; + readonly Parent: any; + readonly TabStops: TabStops; + } + + class RulerLevel { + private 'PowerPoint.RulerLevel_typekey': RulerLevel; + private constructor(); + readonly Application: Application; + FirstMargin: number; + LeftMargin: number; + readonly Parent: any; + } + + class RulerLevels { + private 'PowerPoint.RulerLevels_typekey': RulerLevels; + private constructor(); + readonly Application: Application; + readonly Count: number; + Item(Index: number): RulerLevel; + readonly Parent: any; + } + + class ScaleEffect { + private 'PowerPoint.ScaleEffect_typekey': ScaleEffect; + private constructor(); + readonly Application: Application; + ByX: number; + ByY: number; + FromX: number; + FromY: number; + readonly Parent: any; + ToX: number; + ToY: number; + } + + class SectionProperties { + private 'PowerPoint.SectionProperties_typekey': SectionProperties; + private constructor(); + AddBeforeSlide(SlideIndex: number, sectionName: string): number; + AddSection(sectionIndex: number, sectionName?: any): number; + readonly Application: Application; + readonly Count: number; + Delete(sectionIndex: number, deleteSlides: boolean): void; + FirstSlide(sectionIndex: number): number; + Move(sectionIndex: number, toPos: number): void; + Name(sectionIndex: number): string; + readonly Parent: any; + Rename(sectionIndex: number, sectionName: string): void; + SectionID(sectionIndex: number): string; + SlidesCount(sectionIndex: number): number; + } + + class Selection { + private 'PowerPoint.Selection_typekey': Selection; + private constructor(); + readonly Application: Application; + readonly ChildShapeRange: ShapeRange; + Copy(): void; + Cut(): void; + Delete(): void; + readonly HasChildShapeRange: boolean; + readonly Parent: any; + readonly ShapeRange: ShapeRange; + readonly SlideRange: SlideRange; + readonly TextRange: TextRange; + readonly TextRange2: Office.TextRange2; + readonly Type: PpSelectionType; + Unselect(): void; + } + + class Sequence { + private 'PowerPoint.Sequence_typekey': Sequence; + private constructor(); + + /** + * @param PowerPoint.MsoAnimateByLevel [Level=0] + * @param PowerPoint.MsoAnimTriggerType [trigger=1] + * @param number [Index=-1] + */ + AddEffect(Shape: Shape, effectId: MsoAnimEffect, Level?: MsoAnimateByLevel, trigger?: MsoAnimTriggerType, Index?: number): Effect; + + /** + * @param string [bookmark=''] + * @param PowerPoint.MsoAnimateByLevel [Level=0] + */ + AddTriggerEffect(pShape: Shape, effectId: MsoAnimEffect, trigger: MsoAnimTriggerType, pTriggerShape: Shape, bookmark?: string, Level?: MsoAnimateByLevel): Effect; + readonly Application: Application; + + /** @param number [Index=-1] */ + Clone(Effect: Effect, Index?: number): Effect; + + /** + * @param Office.MsoRGBType [DimColor=0] + * @param PowerPoint.PpColorSchemeIndex [DimSchemeColor=0] + */ + ConvertToAfterEffect(Effect: Effect, After: MsoAnimAfterEffect, DimColor?: Office.MsoRGBType, DimSchemeColor?: PpColorSchemeIndex): Effect; + ConvertToAnimateBackground(Effect: Effect, AnimateBackground: Office.MsoTriState): Effect; + ConvertToAnimateInReverse(Effect: Effect, animateInReverse: Office.MsoTriState): Effect; + ConvertToBuildLevel(Effect: Effect, Level: MsoAnimateByLevel): Effect; + ConvertToTextUnitEffect(Effect: Effect, unitEffect: MsoAnimTextUnitEffect): Effect; + readonly Count: number; + FindFirstAnimationFor(Shape: Shape): Effect; + FindFirstAnimationForClick(click: number): Effect; + Item(Index: number): Effect; + readonly Parent: any; + } + + class Sequences { + private 'PowerPoint.Sequences_typekey': Sequences; + private constructor(); + + /** @param number [Index=-1] */ + Add(Index?: number): Sequence; + readonly Application: Application; + readonly Count: number; + Item(Index: number): Sequence; + readonly Parent: any; + } + + class SeriesLines { + private 'PowerPoint.SeriesLines_typekey': SeriesLines; + private constructor(); + readonly Application: Application; + readonly Border: ChartBorder; + readonly Creator: number; + Delete(): any; + readonly Format: ChartFormat; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class SetEffect { + private 'PowerPoint.SetEffect_typekey': SetEffect; + private constructor(); + readonly Application: Application; + readonly Parent: any; + Property: MsoAnimProperty; + To: any; + } + + class ShadowFormat { + private 'PowerPoint.ShadowFormat_typekey': ShadowFormat; + private constructor(); + readonly Application: any; + Blur: number; + readonly Creator: number; + ForeColor: ColorFormat; + IncrementOffsetX(Increment: number): void; + IncrementOffsetY(Increment: number): void; + Obscured: Office.MsoTriState; + OffsetX: number; + OffsetY: number; + readonly Parent: any; + RotateWithShape: Office.MsoTriState; + Size: number; + Style: Office.MsoShadowStyle; + Transparency: number; + Type: Office.MsoShadowType; + Visible: Office.MsoTriState; + } + + class Shape { + private 'PowerPoint.Shape_typekey': Shape; + private constructor(); + readonly ActionSettings: ActionSettings; + readonly Adjustments: Adjustments; + AlternativeText: string; + readonly AnimationSettings: AnimationSettings; + readonly Application: any; + Apply(): void; + ApplyAnimation(): void; + AutoShapeType: Office.MsoAutoShapeType; + BackgroundStyle: Office.MsoBackgroundStyleIndex; + BlackWhiteMode: Office.MsoBlackWhiteMode; + readonly Callout: CalloutFormat; + CanvasCropBottom(Increment: number): void; + CanvasCropLeft(Increment: number): void; + CanvasCropRight(Increment: number): void; + CanvasCropTop(Increment: number): void; + readonly CanvasItems: CanvasShapes; + readonly Chart: Chart; + readonly Child: Office.MsoTriState; + readonly ConnectionSiteCount: number; + readonly Connector: Office.MsoTriState; + readonly ConnectorFormat: ConnectorFormat; + ConvertTextToSmartArt(Layout: Office.SmartArtLayout): void; + Copy(): void; + readonly Creator: number; + readonly CustomerData: CustomerData; + Cut(): void; + Delete(): void; + readonly Diagram: Diagram; + readonly DiagramNode: DiagramNode; + Duplicate(): ShapeRange; + + /** + * @param number [ScaleWidth=0] + * @param number [ScaleHeight=0] + * @param PowerPoint.PpExportMode [ExportMode=1] + */ + Export(PathName: string, Filter: PpShapeFormat, ScaleWidth?: number, ScaleHeight?: number, ExportMode?: PpExportMode): void; + readonly Fill: FillFormat; + Flip(FlipCmd: Office.MsoFlipCmd): void; + readonly Glow: Office.GlowFormat; + readonly GroupItems: GroupShapes; + readonly HasChart: Office.MsoTriState; + readonly HasDiagram: Office.MsoTriState; + readonly HasDiagramNode: Office.MsoTriState; + readonly HasSmartArt: Office.MsoTriState; + readonly HasTable: Office.MsoTriState; + readonly HasTextFrame: Office.MsoTriState; + Height: number; + readonly HorizontalFlip: Office.MsoTriState; + readonly Id: number; + IncrementLeft(Increment: number): void; + IncrementRotation(Increment: number): void; + IncrementTop(Increment: number): void; + Left: number; + readonly Line: LineFormat; + readonly LinkFormat: LinkFormat; + LockAspectRatio: Office.MsoTriState; + readonly MediaFormat: MediaFormat; + readonly MediaType: PpMediaType; + Name: string; + readonly Nodes: ShapeNodes; + readonly OLEFormat: OLEFormat; + readonly Parent: any; + readonly ParentGroup: Shape; + PickUp(): void; + PickupAnimation(): void; + readonly PictureFormat: PictureFormat; + readonly PlaceholderFormat: PlaceholderFormat; + readonly Reflection: Office.ReflectionFormat; + RerouteConnections(): void; + Rotation: number; + readonly RTF: string; + + /** @param Office.MsoScaleFrom [fScale=0] */ + ScaleHeight(Factor: number, RelativeToOriginalSize: Office.MsoTriState, fScale?: Office.MsoScaleFrom): void; + + /** @param Office.MsoScaleFrom [fScale=0] */ + ScaleWidth(Factor: number, RelativeToOriginalSize: Office.MsoTriState, fScale?: Office.MsoScaleFrom): void; + readonly Script: Office.Script; + + /** @param Office.MsoTriState [Replace=-1] */ + Select(Replace?: Office.MsoTriState): void; + SetShapesDefaultProperties(): void; + readonly Shadow: ShadowFormat; + ShapeStyle: Office.MsoShapeStyleIndex; + readonly SmartArt: Office.SmartArt; + readonly SoftEdge: Office.SoftEdgeFormat; + readonly SoundFormat: SoundFormat; + readonly Table: Table; + readonly Tags: Tags; + readonly TextEffect: TextEffectFormat; + readonly TextFrame: TextFrame; + readonly TextFrame2: TextFrame2; + readonly ThreeD: ThreeDFormat; + Title: string; + Top: number; + readonly Type: Office.MsoShapeType; + Ungroup(): ShapeRange; + UpgradeMedia(): void; + readonly VerticalFlip: Office.MsoTriState; + readonly Vertices: any; + Visible: Office.MsoTriState; + Width: number; + ZOrder(ZOrderCmd: Office.MsoZOrderCmd): void; + readonly ZOrderPosition: number; + } + + class ShapeNode { + private 'PowerPoint.ShapeNode_typekey': ShapeNode; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly EditingType: Office.MsoEditingType; + readonly Parent: any; + readonly Points: any; + readonly SegmentType: Office.MsoSegmentType; + } + + class ShapeNodes { + private 'PowerPoint.ShapeNodes_typekey': ShapeNodes; + private constructor(); + readonly Application: any; + readonly Count: number; + readonly Creator: number; + Delete(Index: number): void; + + /** + * @param number [X2=0] + * @param number [Y2=0] + * @param number [X3=0] + * @param number [Y3=0] + */ + Insert(Index: number, SegmentType: Office.MsoSegmentType, EditingType: Office.MsoEditingType, X1: number, Y1: number, X2?: number, Y2?: number, X3?: number, Y3?: number): void; + Item(Index: any): ShapeNode; + readonly Parent: any; + SetEditingType(Index: number, EditingType: Office.MsoEditingType): void; + SetPosition(Index: number, X1: number, Y1: number): void; + SetSegmentType(Index: number, SegmentType: Office.MsoSegmentType): void; + } + + class ShapeRange { + private 'PowerPoint.ShapeRange_typekey': ShapeRange; + private constructor(); + readonly ActionSettings: ActionSettings; + readonly Adjustments: Adjustments; + Align(AlignCmd: Office.MsoAlignCmd, RelativeTo: Office.MsoTriState): void; + AlternativeText: string; + readonly AnimationSettings: AnimationSettings; + readonly Application: any; + Apply(): void; + ApplyAnimation(): void; + AutoShapeType: Office.MsoAutoShapeType; + BackgroundStyle: Office.MsoBackgroundStyleIndex; + BlackWhiteMode: Office.MsoBlackWhiteMode; + readonly Callout: CalloutFormat; + CanvasCropBottom(Increment: number): void; + CanvasCropLeft(Increment: number): void; + CanvasCropRight(Increment: number): void; + CanvasCropTop(Increment: number): void; + readonly CanvasItems: CanvasShapes; + readonly Chart: Chart; + readonly Child: Office.MsoTriState; + readonly ConnectionSiteCount: number; + readonly Connector: Office.MsoTriState; + readonly ConnectorFormat: ConnectorFormat; + ConvertTextToSmartArt(Layout: Office.SmartArtLayout): void; + Copy(): void; + readonly Count: number; + readonly Creator: number; + readonly CustomerData: CustomerData; + Cut(): void; + Delete(): void; + readonly Diagram: Diagram; + readonly DiagramNode: DiagramNode; + Distribute(DistributeCmd: Office.MsoDistributeCmd, RelativeTo: Office.MsoTriState): void; + Duplicate(): ShapeRange; + + /** + * @param number [ScaleWidth=0] + * @param number [ScaleHeight=0] + * @param PowerPoint.PpExportMode [ExportMode=1] + */ + Export(PathName: string, Filter: PpShapeFormat, ScaleWidth?: number, ScaleHeight?: number, ExportMode?: PpExportMode): void; + readonly Fill: FillFormat; + Flip(FlipCmd: Office.MsoFlipCmd): void; + readonly Glow: Office.GlowFormat; + Group(): Shape; + readonly GroupItems: GroupShapes; + readonly HasChart: Office.MsoTriState; + readonly HasDiagram: Office.MsoTriState; + readonly HasDiagramNode: Office.MsoTriState; + readonly HasSmartArt: Office.MsoTriState; + readonly HasTable: Office.MsoTriState; + readonly HasTextFrame: Office.MsoTriState; + Height: number; + readonly HorizontalFlip: Office.MsoTriState; + readonly Id: number; + IncrementLeft(Increment: number): void; + IncrementRotation(Increment: number): void; + IncrementTop(Increment: number): void; + Item(Index: any): Shape; + Left: number; + readonly Line: LineFormat; + readonly LinkFormat: LinkFormat; + LockAspectRatio: Office.MsoTriState; + readonly MediaFormat: MediaFormat; + readonly MediaType: PpMediaType; + Name: string; + readonly Nodes: ShapeNodes; + readonly OLEFormat: OLEFormat; + readonly Parent: any; + readonly ParentGroup: Shape; + PickUp(): void; + PickupAnimation(): void; + readonly PictureFormat: PictureFormat; + readonly PlaceholderFormat: PlaceholderFormat; + readonly Reflection: Office.ReflectionFormat; + Regroup(): Shape; + RerouteConnections(): void; + Rotation: number; + readonly RTF: string; + + /** @param Office.MsoScaleFrom [fScale=0] */ + ScaleHeight(Factor: number, RelativeToOriginalSize: Office.MsoTriState, fScale?: Office.MsoScaleFrom): void; + + /** @param Office.MsoScaleFrom [fScale=0] */ + ScaleWidth(Factor: number, RelativeToOriginalSize: Office.MsoTriState, fScale?: Office.MsoScaleFrom): void; + readonly Script: Office.Script; + + /** @param Office.MsoTriState [Replace=-1] */ + Select(Replace?: Office.MsoTriState): void; + SetShapesDefaultProperties(): void; + readonly Shadow: ShadowFormat; + ShapeStyle: Office.MsoShapeStyleIndex; + readonly SmartArt: Office.SmartArt; + readonly SoftEdge: Office.SoftEdgeFormat; + readonly SoundFormat: SoundFormat; + readonly Table: Table; + readonly Tags: Tags; + readonly TextEffect: TextEffectFormat; + readonly TextFrame: TextFrame; + readonly TextFrame2: TextFrame2; + readonly ThreeD: ThreeDFormat; + Title: string; + Top: number; + readonly Type: Office.MsoShapeType; + Ungroup(): ShapeRange; + UpgradeMedia(): void; + readonly VerticalFlip: Office.MsoTriState; + readonly Vertices: any; + Visible: Office.MsoTriState; + Width: number; + ZOrder(ZOrderCmd: Office.MsoZOrderCmd): void; + readonly ZOrderPosition: number; + } + + class Shapes { + private 'PowerPoint.Shapes_typekey': Shapes; + private constructor(); + AddCallout(Type: Office.MsoCalloutType, Left: number, Top: number, Width: number, Height: number): Shape; + AddCanvas(Left: number, Top: number, Width: number, Height: number): Shape; + + /** + * @param Office.XlChartType [Type=-1] + * @param number [Left=-1] + * @param number [Top=-1] + * @param number [Width=-1] + * @param number [Height=-1] + */ + AddChart(Type?: Office.XlChartType, Left?: number, Top?: number, Width?: number, Height?: number): Shape; + + /** + * @param number [Left=1.25] + * @param number [Top=1.25] + * @param number [Width=145.25] + * @param number [Height=145.25] + */ + AddComment(Left?: number, Top?: number, Width?: number, Height?: number): Shape; + AddConnector(Type: Office.MsoConnectorType, BeginX: number, BeginY: number, EndX: number, EndY: number): Shape; + AddCurve(SafeArrayOfPoints: any): Shape; + AddDiagram(Type: Office.MsoDiagramType, Left: number, Top: number, Width: number, Height: number): Shape; + AddLabel(Orientation: Office.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape; + AddLine(BeginX: number, BeginY: number, EndX: number, EndY: number): Shape; + + /** + * @param number [Left=0] + * @param number [Top=0] + * @param number [Width=-1] + * @param number [Height=-1] + */ + AddMediaObject(FileName: string, Left?: number, Top?: number, Width?: number, Height?: number): Shape; + + /** + * @param Office.MsoTriState [LinkToFile=0] + * @param Office.MsoTriState [SaveWithDocument=-1] + * @param number [Left=0] + * @param number [Top=0] + * @param number [Width=-1] + * @param number [Height=-1] + */ + AddMediaObject2(FileName: string, LinkToFile?: Office.MsoTriState, SaveWithDocument?: Office.MsoTriState, Left?: number, Top?: number, Width?: number, Height?: number): Shape; + + /** + * @param number [Left=0] + * @param number [Top=0] + * @param number [Width=-1] + * @param number [Height=-1] + */ + AddMediaObjectFromEmbedTag(EmbedTag: string, Left?: number, Top?: number, Width?: number, Height?: number): Shape; + + /** + * @param number [Left=0] + * @param number [Top=0] + * @param number [Width=-1] + * @param number [Height=-1] + * @param string [ClassName=''] + * @param string [FileName=''] + * @param Office.MsoTriState [DisplayAsIcon=0] + * @param string [IconFileName=''] + * @param number [IconIndex=0] + * @param string [IconLabel=''] + * @param Office.MsoTriState [Link=0] + */ + AddOLEObject( + Left?: number, Top?: number, Width?: number, Height?: number, ClassName?: string, FileName?: string, DisplayAsIcon?: Office.MsoTriState, IconFileName?: string, + IconIndex?: number, IconLabel?: string, Link?: Office.MsoTriState): Shape; + + /** + * @param number [Width=-1] + * @param number [Height=-1] + */ + AddPicture(FileName: string, LinkToFile: Office.MsoTriState, SaveWithDocument: Office.MsoTriState, Left: number, Top: number, Width?: number, Height?: number): Shape; + + /** + * @param number [Left=-1] + * @param number [Top=-1] + * @param number [Width=-1] + * @param number [Height=-1] + */ + AddPlaceholder(Type: PpPlaceholderType, Left?: number, Top?: number, Width?: number, Height?: number): Shape; + AddPolyline(SafeArrayOfPoints: any): Shape; + AddShape(Type: Office.MsoAutoShapeType, Left: number, Top: number, Width: number, Height: number): Shape; + + /** + * @param number [Left=-1] + * @param number [Top=-1] + * @param number [Width=-1] + * @param number [Height=-1] + */ + AddSmartArt(Layout: Office.SmartArtLayout, Left?: number, Top?: number, Width?: number, Height?: number): Shape; + + /** + * @param number [Left=-1] + * @param number [Top=-1] + * @param number [Width=-1] + * @param number [Height=-1] + */ + AddTable(NumRows: number, NumColumns: number, Left?: number, Top?: number, Width?: number, Height?: number): Shape; + AddTextbox(Orientation: Office.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape; + AddTextEffect( + PresetTextEffect: Office.MsoPresetTextEffect, Text: string, FontName: string, FontSize: number, FontBold: Office.MsoTriState, FontItalic: Office.MsoTriState, + Left: number, Top: number): Shape; + AddTitle(): Shape; + readonly Application: any; + BuildFreeform(EditingType: Office.MsoEditingType, X1: number, Y1: number): FreeformBuilder; + readonly Count: number; + readonly Creator: number; + readonly HasTitle: Office.MsoTriState; + Item(Index: any): Shape; + readonly Parent: any; + Paste(): ShapeRange; + + /** + * @param PowerPoint.PpPasteDataType [DataType=0] + * @param Office.MsoTriState [DisplayAsIcon=0] + * @param string [IconFileName=''] + * @param number [IconIndex=0] + * @param string [IconLabel=''] + * @param Office.MsoTriState [Link=0] + */ + PasteSpecial(DataType?: PpPasteDataType, DisplayAsIcon?: Office.MsoTriState, IconFileName?: string, IconIndex?: number, IconLabel?: string, Link?: Office.MsoTriState): ShapeRange; + readonly Placeholders: Placeholders; + Range(Index?: any): ShapeRange; + SelectAll(): void; + readonly Title: Shape; + } + + class Slide { + private 'PowerPoint.Slide_typekey': Slide; + private constructor(); + readonly Application: Application; + ApplyTemplate(FileName: string): void; + ApplyTheme(themeName: string): void; + ApplyThemeColorScheme(themeColorSchemeName: string): void; + readonly Background: ShapeRange; + BackgroundStyle: Office.MsoBackgroundStyleIndex; + ColorScheme: ColorScheme; + readonly Comments: Comments; + Copy(): void; + readonly CustomerData: CustomerData; + CustomLayout: CustomLayout; + Cut(): void; + Delete(): void; + Design: Design; + DisplayMasterShapes: Office.MsoTriState; + Duplicate(): SlideRange; + + /** + * @param number [ScaleWidth=0] + * @param number [ScaleHeight=0] + */ + Export(FileName: string, FilterName: string, ScaleWidth?: number, ScaleHeight?: number): void; + FollowMasterBackground: Office.MsoTriState; + readonly HasNotesPage: Office.MsoTriState; + readonly HeadersFooters: HeadersFooters; + readonly Hyperlinks: Hyperlinks; + Layout: PpSlideLayout; + readonly Master: Master; + MoveTo(toPos: number): void; + MoveToSectionStart(toSection: number): void; + Name: string; + readonly NotesPage: SlideRange; + readonly Parent: any; + readonly PrintSteps: number; + + /** + * @param boolean [Overwrite=false] + * @param boolean [UseSlideOrder=false] + */ + PublishSlides(SlideLibraryUrl: string, Overwrite?: boolean, UseSlideOrder?: boolean): void; + readonly Scripts: Office.Scripts; + readonly sectionIndex: number; + readonly SectionNumber: number; + Select(): void; + readonly Shapes: Shapes; + readonly SlideID: number; + readonly SlideIndex: number; + readonly SlideNumber: number; + readonly SlideShowTransition: SlideShowTransition; + readonly Tags: Tags; + readonly ThemeColorScheme: Office.ThemeColorScheme; + readonly TimeLine: TimeLine; + } + + class SlideRange { + private 'PowerPoint.SlideRange_typekey': SlideRange; + private constructor(); + readonly Application: Application; + ApplyTemplate(FileName: string): void; + ApplyTheme(themeName: string): void; + ApplyThemeColorScheme(themeColorSchemeName: string): void; + readonly Background: ShapeRange; + BackgroundStyle: Office.MsoBackgroundStyleIndex; + ColorScheme: ColorScheme; + readonly Comments: Comments; + Copy(): void; + readonly Count: number; + readonly CustomerData: CustomerData; + CustomLayout: CustomLayout; + Cut(): void; + Delete(): void; + Design: Design; + DisplayMasterShapes: Office.MsoTriState; + Duplicate(): SlideRange; + + /** + * @param number [ScaleWidth=0] + * @param number [ScaleHeight=0] + */ + Export(FileName: string, FilterName: string, ScaleWidth?: number, ScaleHeight?: number): void; + FollowMasterBackground: Office.MsoTriState; + readonly HasNotesPage: Office.MsoTriState; + readonly HeadersFooters: HeadersFooters; + readonly Hyperlinks: Hyperlinks; + Item(Index: any): Slide; + Layout: PpSlideLayout; + readonly Master: Master; + MoveTo(toPos: number): void; + MoveToSectionStart(toSection: number): void; + Name: string; + readonly NotesPage: SlideRange; + readonly Parent: any; + readonly PrintSteps: number; + + /** + * @param boolean [Overwrite=false] + * @param boolean [UseSlideOrder=false] + */ + PublishSlides(SlideLibraryUrl: string, Overwrite?: boolean, UseSlideOrder?: boolean): void; + readonly Scripts: Office.Scripts; + readonly sectionIndex: number; + readonly SectionNumber: number; + Select(): void; + readonly Shapes: Shapes; + readonly SlideID: number; + readonly SlideIndex: number; + readonly SlideNumber: number; + readonly SlideShowTransition: SlideShowTransition; + readonly Tags: Tags; + readonly ThemeColorScheme: Office.ThemeColorScheme; + readonly TimeLine: TimeLine; + } + + class Slides { + private 'PowerPoint.Slides_typekey': Slides; + private constructor(); + Add(Index: number, Layout: PpSlideLayout): Slide; + AddSlide(Index: number, pCustomLayout: CustomLayout): Slide; + readonly Application: Application; + readonly Count: number; + FindBySlideID(SlideID: number): Slide; + + /** + * @param number [SlideStart=1] + * @param number [SlideEnd=-1] + */ + InsertFromFile(FileName: string, Index: number, SlideStart?: number, SlideEnd?: number): number; + Item(Index: any): Slide; + readonly Parent: any; + + /** @param number [Index=-1] */ + Paste(Index?: number): SlideRange; + Range(Index?: any): SlideRange; + } + + class SlideShowSettings { + private 'PowerPoint.SlideShowSettings_typekey': SlideShowSettings; + private constructor(); + AdvanceMode: PpSlideShowAdvanceMode; + readonly Application: Application; + EndingSlide: number; + LoopUntilStopped: Office.MsoTriState; + readonly NamedSlideShows: NamedSlideShows; + readonly Parent: any; + readonly PointerColor: ColorFormat; + RangeType: PpSlideShowRangeType; + Run(): SlideShowWindow; + ShowMediaControls: Office.MsoTriState; + ShowPresenterView: Office.MsoTriState; + ShowScrollbar: Office.MsoTriState; + ShowType: PpSlideShowType; + ShowWithAnimation: Office.MsoTriState; + ShowWithNarration: Office.MsoTriState; + SlideShowName: string; + StartingSlide: number; + } + + class SlideShowTransition { + private 'PowerPoint.SlideShowTransition_typekey': SlideShowTransition; + private constructor(); + AdvanceOnClick: Office.MsoTriState; + AdvanceOnTime: Office.MsoTriState; + AdvanceTime: number; + readonly Application: Application; + Duration: number; + EntryEffect: PpEntryEffect; + Hidden: Office.MsoTriState; + LoopSoundUntilNext: Office.MsoTriState; + readonly Parent: any; + readonly SoundEffect: SoundEffect; + Speed: PpTransitionSpeed; + } + + class SlideShowView { + private 'PowerPoint.SlideShowView_typekey': SlideShowView; + private constructor(); + AcceleratorsEnabled: Office.MsoTriState; + readonly AdvanceMode: PpSlideShowAdvanceMode; + readonly Application: Application; + readonly CurrentShowPosition: number; + DrawLine(BeginX: number, BeginY: number, EndX: number, EndY: number): void; + EndNamedShow(): void; + EraseDrawing(): void; + Exit(): void; + First(): void; + FirstAnimationIsAutomatic(): boolean; + GetClickCount(): number; + GetClickIndex(): number; + GotoClick(Index: number): void; + GotoNamedShow(SlideShowName: string): void; + + /** @param Office.MsoTriState [ResetSlide=-1] */ + GotoSlide(Index: number, ResetSlide?: Office.MsoTriState): void; + InstallTracker(pTracker: MouseTracker, Presenter: Office.MsoTriState): void; + readonly IsNamedShow: Office.MsoTriState; + Last(): void; + readonly LastSlideViewed: Slide; + readonly MediaControlsHeight: number; + readonly MediaControlsLeft: number; + readonly MediaControlsTop: number; + readonly MediaControlsVisible: Office.MsoTriState; + readonly MediaControlsWidth: number; + Next(): void; + readonly Parent: any; + Player(ShapeId: any): Player; + readonly PointerColor: ColorFormat; + PointerType: PpSlideShowPointerType; + readonly PresentationElapsedTime: number; + Previous(): void; + ResetSlideTime(): void; + readonly Slide: Slide; + SlideElapsedTime: number; + readonly SlideShowName: string; + State: PpSlideShowState; + readonly Zoom: number; + } + + class SlideShowWindow { + private 'PowerPoint.SlideShowWindow_typekey': SlideShowWindow; + private constructor(); + Activate(): void; + readonly Active: Office.MsoTriState; + readonly Application: Application; + Height: number; + readonly IsFullScreen: Office.MsoTriState; + Left: number; + readonly Parent: any; + readonly Presentation: Presentation; + Top: number; + readonly View: SlideShowView; + Width: number; + } + + class SlideShowWindows { + private 'PowerPoint.SlideShowWindows_typekey': SlideShowWindows; + private constructor(); + readonly Application: Application; + readonly Count: number; + Item(Index: number): SlideShowWindow; + readonly Parent: any; + } + + class SoundEffect { + private 'PowerPoint.SoundEffect_typekey': SoundEffect; + private constructor(); + readonly Application: Application; + ImportFromFile(FileName: string): void; + Name: string; + readonly Parent: any; + Play(): void; + Type: PpSoundEffectType; + } + + class SoundFormat { + private 'PowerPoint.SoundFormat_typekey': SoundFormat; + private constructor(); + Export(FileName: string): PpSoundFormatType; + Import(FileName: string): void; + Play(): void; + readonly SourceFullName: string; + readonly Type: PpSoundFormatType; + } + + class Table { + private 'PowerPoint.Table_typekey': Table; + private constructor(); + AlternativeText: string; + readonly Application: Application; + + /** + * @param string [StyleID=''] + * @param boolean [SaveFormatting=false] + */ + ApplyStyle(StyleID?: string, SaveFormatting?: boolean): void; + readonly Background: TableBackground; + Cell(Row: number, Column: number): Cell; + readonly Columns: Columns; + FirstCol: boolean; + FirstRow: boolean; + HorizBanding: boolean; + LastCol: boolean; + LastRow: boolean; + MergeBorders(): void; + readonly Parent: any; + readonly Rows: Rows; + ScaleProportionally(scale: number): void; + readonly Style: TableStyle; + TableDirection: PpDirection; + Title: string; + VertBanding: boolean; + } + + class TableBackground { + private 'PowerPoint.TableBackground_typekey': TableBackground; + private constructor(); + readonly Fill: FillFormat; + readonly Picture: PictureFormat; + readonly Reflection: Office.ReflectionFormat; + readonly Shadow: ShadowFormat; + } + + class TableStyle { + private 'PowerPoint.TableStyle_typekey': TableStyle; + private constructor(); + readonly Id: string; + readonly Name: string; + } + + class TabStop { + private 'PowerPoint.TabStop_typekey': TabStop; + private constructor(); + readonly Application: Application; + Clear(): void; + readonly Parent: any; + Position: number; + Type: PpTabStopType; + } + + class TabStops { + private 'PowerPoint.TabStops_typekey': TabStops; + private constructor(); + Add(Type: PpTabStopType, Position: number): TabStop; + readonly Application: Application; + readonly Count: number; + DefaultSpacing: number; + Item(Index: number): TabStop; + readonly Parent: any; + } + + class Tags { + private 'PowerPoint.Tags_typekey': Tags; + private constructor(); + Add(Name: string, Value: string): void; + AddBinary(Name: string, FilePath: string): void; + readonly Application: Application; + BinaryValue(Name: string): number; + readonly Count: number; + Delete(Name: string): void; + Item(Name: string): string; + Name(Index: number): string; + readonly Parent: any; + Value(Index: number): string; + } + + class TextEffectFormat { + private 'PowerPoint.TextEffectFormat_typekey': TextEffectFormat; + private constructor(); + Alignment: Office.MsoTextEffectAlignment; + readonly Application: any; + readonly Creator: number; + FontBold: Office.MsoTriState; + FontItalic: Office.MsoTriState; + FontName: string; + FontSize: number; + KernedPairs: Office.MsoTriState; + NormalizedHeight: Office.MsoTriState; + readonly Parent: any; + PresetShape: Office.MsoPresetTextEffectShape; + PresetTextEffect: Office.MsoPresetTextEffect; + RotatedChars: Office.MsoTriState; + Text: string; + ToggleVerticalText(): void; + Tracking: number; + } + + class TextFrame { + private 'PowerPoint.TextFrame_typekey': TextFrame; + private constructor(); + readonly Application: any; + AutoSize: PpAutoSize; + readonly Creator: number; + DeleteText(): void; + readonly HasText: Office.MsoTriState; + HorizontalAnchor: Office.MsoHorizontalAnchor; + MarginBottom: number; + MarginLeft: number; + MarginRight: number; + MarginTop: number; + Orientation: Office.MsoTextOrientation; + readonly Parent: any; + readonly Ruler: Ruler; + readonly TextRange: TextRange; + VerticalAnchor: Office.MsoVerticalAnchor; + WordWrap: Office.MsoTriState; + } + + class TextFrame2 { + private 'PowerPoint.TextFrame2_typekey': TextFrame2; + private constructor(); + readonly Application: any; + AutoSize: Office.MsoAutoSize; + readonly Column: Office.TextColumn2; + readonly Creator: number; + DeleteText(): void; + readonly HasText: Office.MsoTriState; + HorizontalAnchor: Office.MsoHorizontalAnchor; + MarginBottom: number; + MarginLeft: number; + MarginRight: number; + MarginTop: number; + NoTextRotation: Office.MsoTriState; + Orientation: Office.MsoTextOrientation; + readonly Parent: any; + PathFormat: Office.MsoPathFormat; + readonly Ruler: Office.Ruler2; + readonly TextRange: Office.TextRange2; + readonly ThreeD: ThreeDFormat; + VerticalAnchor: Office.MsoVerticalAnchor; + WarpFormat: Office.MsoWarpFormat; + WordArtFormat: Office.MsoPresetTextEffect; + WordWrap: Office.MsoTriState; + } + + class TextRange { + private 'PowerPoint.TextRange_typekey': TextRange; + private constructor(); + readonly ActionSettings: ActionSettings; + AddPeriods(): void; + readonly Application: Application; + readonly BoundHeight: number; + readonly BoundLeft: number; + readonly BoundTop: number; + readonly BoundWidth: number; + ChangeCase(Type: PpChangeCase): void; + + /** + * @param number [Start=-1] + * @param number [Length=-1] + */ + Characters(Start?: number, Length?: number): TextRange; + Copy(): void; + readonly Count: number; + Cut(): void; + Delete(): void; + + /** + * @param number [After=0] + * @param Office.MsoTriState [MatchCase=0] + * @param Office.MsoTriState [WholeWords=0] + */ + Find(FindWhat: string, After?: number, MatchCase?: Office.MsoTriState, WholeWords?: Office.MsoTriState): TextRange; + readonly Font: Font; + IndentLevel: number; + + /** @param string [NewText=''] */ + InsertAfter(NewText?: string): TextRange; + + /** @param string [NewText=''] */ + InsertBefore(NewText?: string): TextRange; + + /** @param Office.MsoTriState [InsertAsField=0] */ + InsertDateTime(DateTimeFormat: PpDateTimeFormat, InsertAsField?: Office.MsoTriState): TextRange; + InsertSlideNumber(): TextRange; + + /** @param Office.MsoTriState [Unicode=0] */ + InsertSymbol(FontName: string, CharNumber: number, Unicode?: Office.MsoTriState): TextRange; + LanguageID: Office.MsoLanguageID; + readonly Length: number; + + /** + * @param number [Start=-1] + * @param number [Length=-1] + */ + Lines(Start?: number, Length?: number): TextRange; + LtrRun(): void; + readonly ParagraphFormat: ParagraphFormat; + + /** + * @param number [Start=-1] + * @param number [Length=-1] + */ + Paragraphs(Start?: number, Length?: number): TextRange; + readonly Parent: any; + Paste(): TextRange; + + /** + * @param PowerPoint.PpPasteDataType [DataType=0] + * @param Office.MsoTriState [DisplayAsIcon=0] + * @param string [IconFileName=''] + * @param number [IconIndex=0] + * @param string [IconLabel=''] + * @param Office.MsoTriState [Link=0] + */ + PasteSpecial(DataType?: PpPasteDataType, DisplayAsIcon?: Office.MsoTriState, IconFileName?: string, IconIndex?: number, IconLabel?: string, Link?: Office.MsoTriState): TextRange; + RemovePeriods(): void; + + /** + * @param number [After=0] + * @param Office.MsoTriState [MatchCase=0] + * @param Office.MsoTriState [WholeWords=0] + */ + Replace(FindWhat: string, ReplaceWhat: string, After?: number, MatchCase?: Office.MsoTriState, WholeWords?: Office.MsoTriState): TextRange; + RotatedBounds(X1: number, Y1: number, X2: number, Y2: number, X3: number, Y3: number, x4: number, y4: number): void; + RtlRun(): void; + + /** + * @param number [Start=-1] + * @param number [Length=-1] + */ + Runs(Start?: number, Length?: number): TextRange; + Select(): void; + + /** + * @param number [Start=-1] + * @param number [Length=-1] + */ + Sentences(Start?: number, Length?: number): TextRange; + readonly Start: number; + Text: string; + TrimText(): TextRange; + + /** + * @param number [Start=-1] + * @param number [Length=-1] + */ + Words(Start?: number, Length?: number): TextRange; + } + + class TextStyle { + private 'PowerPoint.TextStyle_typekey': TextStyle; + private constructor(); + readonly Application: Application; + readonly Levels: TextStyleLevels; + readonly Parent: any; + readonly Ruler: Ruler; + readonly TextFrame: TextFrame; + } + + class TextStyleLevel { + private 'PowerPoint.TextStyleLevel_typekey': TextStyleLevel; + private constructor(); + readonly Application: Application; + readonly Font: Font; + readonly ParagraphFormat: ParagraphFormat; + readonly Parent: any; + } + + class TextStyleLevels { + private 'PowerPoint.TextStyleLevels_typekey': TextStyleLevels; + private constructor(); + readonly Application: Application; + readonly Count: number; + Item(Level: number): TextStyleLevel; + readonly Parent: any; + } + + class TextStyles { + private 'PowerPoint.TextStyles_typekey': TextStyles; + private constructor(); + readonly Application: Application; + readonly Count: number; + Item(Type: PpTextStyleType): TextStyle; + readonly Parent: any; + } + + class ThreeDFormat { + private 'PowerPoint.ThreeDFormat_typekey': ThreeDFormat; + private constructor(); + readonly Application: any; + BevelBottomDepth: number; + BevelBottomInset: number; + BevelBottomType: Office.MsoBevelType; + BevelTopDepth: number; + BevelTopInset: number; + BevelTopType: Office.MsoBevelType; + readonly ContourColor: ColorFormat; + ContourWidth: number; + readonly Creator: number; + Depth: number; + readonly ExtrusionColor: ColorFormat; + ExtrusionColorType: Office.MsoExtrusionColorType; + FieldOfView: number; + IncrementRotationHorizontal(Increment: number): void; + IncrementRotationVertical(Increment: number): void; + IncrementRotationX(Increment: number): void; + IncrementRotationY(Increment: number): void; + IncrementRotationZ(Increment: number): void; + LightAngle: number; + readonly Parent: any; + Perspective: Office.MsoTriState; + readonly PresetCamera: Office.MsoPresetCamera; + readonly PresetExtrusionDirection: Office.MsoPresetExtrusionDirection; + PresetLighting: Office.MsoLightRigType; + PresetLightingDirection: Office.MsoPresetLightingDirection; + PresetLightingSoftness: Office.MsoPresetLightingSoftness; + PresetMaterial: Office.MsoPresetMaterial; + readonly PresetThreeDFormat: Office.MsoPresetThreeDFormat; + ProjectText: Office.MsoTriState; + ResetRotation(): void; + RotationX: number; + RotationY: number; + RotationZ: number; + SetExtrusionDirection(PresetExtrusionDirection: Office.MsoPresetExtrusionDirection): void; + SetPresetCamera(PresetCamera: Office.MsoPresetCamera): void; + SetThreeDFormat(PresetThreeDFormat: Office.MsoPresetThreeDFormat): void; + Visible: Office.MsoTriState; + Z: number; + } + + class TickLabels { + private 'PowerPoint.TickLabels_typekey': TickLabels; + private constructor(); + Alignment: number; + readonly Application: Application; + AutoScaleFont: any; + readonly Creator: number; + Delete(): any; + readonly Depth: number; + readonly Font: ChartFont; + readonly Format: ChartFormat; + MultiLevel: boolean; + readonly Name: string; + NumberFormat: string; + NumberFormatLinked: boolean; + NumberFormatLocal: any; + Offset: number; + Orientation: XlTickLabelOrientation; + readonly Parent: any; + ReadingOrder: number; + Select(): any; + } + + class TimeLine { + private 'PowerPoint.TimeLine_typekey': TimeLine; + private constructor(); + readonly Application: Application; + readonly InteractiveSequences: Sequences; + readonly MainSequence: Sequence; + readonly Parent: any; + } + + class Timing { + private 'PowerPoint.Timing_typekey': Timing; + private constructor(); + Accelerate: number; + readonly Application: Application; + AutoReverse: Office.MsoTriState; + BounceEnd: Office.MsoTriState; + BounceEndIntensity: number; + Decelerate: number; + Duration: number; + readonly Parent: any; + RepeatCount: number; + RepeatDuration: number; + Restart: MsoAnimEffectRestart; + RewindAtEnd: Office.MsoTriState; + SmoothEnd: Office.MsoTriState; + SmoothStart: Office.MsoTriState; + Speed: number; + TriggerBookmark: string; + TriggerDelayTime: number; + TriggerShape: Shape; + TriggerType: MsoAnimTriggerType; + } + + class UpBars { + private 'PowerPoint.UpBars_typekey': UpBars; + private constructor(); + readonly Application: Application; + readonly Border: ChartBorder; + readonly Creator: number; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + readonly Interior: Interior; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class View { + private 'PowerPoint.View_typekey': View; + private constructor(); + readonly Application: Application; + DisplaySlideMiniature: Office.MsoTriState; + GotoSlide(Index: number): void; + readonly MediaControlsHeight: number; + readonly MediaControlsLeft: number; + readonly MediaControlsTop: number; + readonly MediaControlsVisible: Office.MsoTriState; + readonly MediaControlsWidth: number; + readonly Parent: any; + Paste(): void; + + /** + * @param PowerPoint.PpPasteDataType [DataType=0] + * @param Office.MsoTriState [DisplayAsIcon=0] + * @param string [IconFileName=''] + * @param number [IconIndex=0] + * @param string [IconLabel=''] + * @param Office.MsoTriState [Link=0] + */ + PasteSpecial(DataType?: PpPasteDataType, DisplayAsIcon?: Office.MsoTriState, IconFileName?: string, IconIndex?: number, IconLabel?: string, Link?: Office.MsoTriState): void; + Player(ShapeId: any): Player; + readonly PrintOptions: PrintOptions; + + /** + * @param number [From=-1] + * @param number [To=-1] + * @param string [PrintToFile=''] + * @param number [Copies=0] + * @param Office.MsoTriState [Collate=-99] + */ + PrintOut(From?: number, To?: number, PrintToFile?: string, Copies?: number, Collate?: Office.MsoTriState): void; + Slide: any; + readonly Type: PpViewType; + Zoom: number; + ZoomToFit: Office.MsoTriState; + } + + class Walls { + private 'PowerPoint.Walls_typekey': Walls; + private constructor(); + readonly Application: Application; + readonly Border: ChartBorder; + ClearFormats(): any; + readonly Creator: number; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + readonly Interior: Interior; + readonly Name: string; + readonly Parent: any; + Paste(): void; + PictureType: any; + PictureUnit: any; + Select(): any; + Thickness: number; + } + + class WebOptions { + private 'PowerPoint.WebOptions_typekey': WebOptions; + private constructor(); + AllowPNG: Office.MsoTriState; + Encoding: Office.MsoEncoding; + readonly FolderSuffix: string; + FrameColors: PpFrameColors; + HTMLVersion: PpHTMLVersion; + IncludeNavigation: Office.MsoTriState; + OrganizeInFolder: Office.MsoTriState; + RelyOnVML: Office.MsoTriState; + ResizeGraphics: Office.MsoTriState; + ScreenSize: Office.MsoScreenSize; + ShowSlideAnimation: Office.MsoTriState; + TargetBrowser: Office.MsoTargetBrowser; + UseDefaultFolderSuffix(): void; + UseLongFileNames: Office.MsoTriState; + } +} + +interface ActiveXObject { + on( + obj: PowerPoint.Application, event: 'AfterNewPresentation' | 'AfterPresentationOpen' | 'NewPresentation' | 'PresentationClose' | 'PresentationCloseFinal' | + 'PresentationOpen' | 'PresentationPrint' | 'PresentationSave' | 'SlideShowEnd', argNames: ['Pres'], handler: ( + this: PowerPoint.Application, parameter: {readonly Pres: PowerPoint.Presentation}) => void): void; + on( + obj: PowerPoint.Application, event: 'ColorSchemeChanged' | 'SlideSelectionChanged', argNames: ['SldRange'], handler: ( + this: PowerPoint.Application, parameter: {readonly SldRange: PowerPoint.SlideRange}) => void): void; + on( + obj: PowerPoint.Application, event: 'PresentationBeforeClose' | 'PresentationBeforeSave', argNames: ['Pres', 'Cancel'], handler: ( + this: PowerPoint.Application, parameter: {readonly Pres: PowerPoint.Presentation, Cancel: boolean}) => void): void; + on(obj: PowerPoint.Application, event: 'PresentationNewSlide', argNames: ['Sld'], handler: (this: PowerPoint.Application, parameter: {readonly Sld: PowerPoint.Slide}) => void): void; + on( + obj: PowerPoint.Application, event: 'PresentationSync', argNames: ['Pres', 'SyncEventType'], handler: ( + this: PowerPoint.Application, parameter: {readonly Pres: PowerPoint.Presentation, readonly SyncEventType: Office.MsoSyncEventType}) => void): void; + on( + obj: PowerPoint.Application, event: 'ProtectedViewWindowActivate' | 'ProtectedViewWindowDeactivate' | 'ProtectedViewWindowOpen', argNames: ['ProtViewWindow'], + handler: (this: PowerPoint.Application, parameter: {readonly ProtViewWindow: PowerPoint.ProtectedViewWindow}) => void): void; + on( + obj: PowerPoint.Application, event: 'ProtectedViewWindowBeforeClose', argNames: ['ProtViewWindow', 'ProtectedViewCloseReason', 'Cancel'], + handler: ( + this: PowerPoint.Application, + parameter: {readonly ProtViewWindow: PowerPoint.ProtectedViewWindow, readonly ProtectedViewCloseReason: PowerPoint.PpProtectedViewCloseReason, Cancel: boolean}) => void): void; + on( + obj: PowerPoint.Application, event: 'ProtectedViewWindowBeforeEdit', argNames: ['ProtViewWindow', 'Cancel'], handler: ( + this: PowerPoint.Application, parameter: {readonly ProtViewWindow: PowerPoint.ProtectedViewWindow, Cancel: boolean}) => void): void; + on( + obj: PowerPoint.Application, event: 'SlideShowBegin' | 'SlideShowNextBuild' | 'SlideShowNextSlide' | 'SlideShowOnNext' | 'SlideShowOnPrevious', argNames: ['Wn'], + handler: (this: PowerPoint.Application, parameter: {readonly Wn: PowerPoint.SlideShowWindow}) => void): void; + on( + obj: PowerPoint.Application, event: 'SlideShowNextClick', argNames: ['Wn', 'nEffect'], handler: ( + this: PowerPoint.Application, parameter: {readonly Wn: PowerPoint.SlideShowWindow, readonly nEffect: PowerPoint.Effect}) => void): void; + on( + obj: PowerPoint.Application, event: 'WindowActivate' | 'WindowDeactivate', argNames: ['Pres', 'Wn'], handler: ( + this: PowerPoint.Application, parameter: {readonly Pres: PowerPoint.Presentation, readonly Wn: PowerPoint.DocumentWindow}) => void): void; + on( + obj: PowerPoint.Application, event: 'WindowBeforeDoubleClick' | 'WindowBeforeRightClick', argNames: ['Sel', 'Cancel'], handler: ( + this: PowerPoint.Application, parameter: {readonly Sel: PowerPoint.Selection, Cancel: boolean}) => void): void; + on(obj: PowerPoint.Application, event: 'WindowSelectionChange', argNames: ['Sel'], handler: (this: PowerPoint.Application, parameter: {readonly Sel: PowerPoint.Selection}) => void): void; + on(obj: PowerPoint.OLEControl, event: 'GotFocus' | 'LostFocus', handler: (this: PowerPoint.OLEControl, parameter: {}) => void): void; + new(progid: K): ActiveXObjectNameMap[K]; +} + +interface ActiveXObjectNameMap { + 'PowerPoint.Application': PowerPoint.Application; +} + +interface EnumeratorConstructor { + new(col: PowerPoint.ActionSettings): Enumerator; + new(col: PowerPoint.AddIns): Enumerator; + new(col: PowerPoint.AnimationBehaviors): Enumerator; + new(col: PowerPoint.AnimationPoints): Enumerator; + new(col: PowerPoint.Borders): Enumerator; + new(col: PowerPoint.CanvasShapes | PowerPoint.GroupShapes | PowerPoint.Placeholders | PowerPoint.ShapeRange | PowerPoint.Shapes): Enumerator; + new(col: PowerPoint.CellRange): Enumerator; + new(col: PowerPoint.ColorSchemes): Enumerator; + new(col: PowerPoint.Columns): Enumerator; + new(col: PowerPoint.Comments): Enumerator; + new(col: PowerPoint.CustomerData): Enumerator; + new(col: PowerPoint.CustomLayouts): Enumerator; + new(col: PowerPoint.Designs): Enumerator; + new(col: PowerPoint.DiagramNodeChildren | PowerPoint.DiagramNodes): Enumerator; + new(col: PowerPoint.DocumentWindows): Enumerator; + new(col: PowerPoint.ExtraColors): Enumerator; + new(col: PowerPoint.FileConverters): Enumerator; + new(col: PowerPoint.Fonts): Enumerator; + new(col: PowerPoint.Hyperlinks): Enumerator; + new(col: PowerPoint.MediaBookmarks): Enumerator; + new(col: PowerPoint.NamedSlideShows): Enumerator; + new(col: PowerPoint.ObjectVerbs | PowerPoint.Tags): Enumerator; + new(col: PowerPoint.Panes): Enumerator; + new(col: PowerPoint.Presentations): Enumerator; + new(col: PowerPoint.PrintRanges): Enumerator; + new(col: PowerPoint.ProtectedViewWindows): Enumerator; + new(col: PowerPoint.PublishObjects): Enumerator; + new(col: PowerPoint.ResampleMediaTasks): Enumerator; + new(col: PowerPoint.Rows): Enumerator; + new(col: PowerPoint.RulerLevels): Enumerator; + new(col: PowerPoint.Sequence): Enumerator; + new(col: PowerPoint.Sequences): Enumerator; + new(col: PowerPoint.ShapeNodes): Enumerator; + new(col: PowerPoint.SlideRange | PowerPoint.Slides): Enumerator; + new(col: PowerPoint.SlideShowWindows): Enumerator; + new(col: PowerPoint.TabStops): Enumerator; + new(col: PowerPoint.TextStyleLevels): Enumerator; + new(col: PowerPoint.TextStyles): Enumerator; +} + +interface SafeArray { + _brand: SafeArray; +} diff --git a/types/activex-powerpoint/package.json b/types/activex-powerpoint/package.json new file mode 100644 index 0000000000..d9b1031263 --- /dev/null +++ b/types/activex-powerpoint/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "activex-helpers": "*" + } +} \ No newline at end of file diff --git a/types/activex-powerpoint/tsconfig.json b/types/activex-powerpoint/tsconfig.json new file mode 100644 index 0000000000..148adf0197 --- /dev/null +++ b/types/activex-powerpoint/tsconfig.json @@ -0,0 +1,21 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es5", "scripthost"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "activex-powerpoint-tests.ts" + ] +} \ No newline at end of file diff --git a/types/activex-powerpoint/tslint.json b/types/activex-powerpoint/tslint.json new file mode 100644 index 0000000000..4ac54521fe --- /dev/null +++ b/types/activex-powerpoint/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": [false] + } +} \ No newline at end of file diff --git a/types/activex-stdole/activex-stdole-tests.ts b/types/activex-stdole/activex-stdole-tests.ts new file mode 100644 index 0000000000..d827726931 --- /dev/null +++ b/types/activex-stdole/activex-stdole-tests.ts @@ -0,0 +1,3 @@ +let obj0 = new ActiveXObject('StdFont'); + +let obj1 = new ActiveXObject('StdPicture'); diff --git a/types/activex-stdole/index.d.ts b/types/activex-stdole/index.d.ts new file mode 100644 index 0000000000..9d0c8f3a3c --- /dev/null +++ b/types/activex-stdole/index.d.ts @@ -0,0 +1,92 @@ +// Type definitions for OLE Automation - stdole 2.0 +// Project: https://msdn.microsoft.com/en-us/library/hh272953.aspx +// Definitions by: Zev Spitz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +declare namespace stdole { + type IPictureDisp = StdPicture; + + type OLE_COLOR = number; + + type OLE_XPOS_CONTAINER = number; + + type OLE_YPOS_CONTAINER = number; + + const enum LoadPictureConstants { + Color = 4, + Default = 0, + Monochrome = 1, + VgaColor = 2, + } + + const enum OLE_TRISTATE { + Checked = 1, + Gray = 2, + Unchecked = 0, + } + + interface DISPPARAMS { + readonly cArgs: number; + readonly cNamedArgs: number; + readonly rgdispidNamedArgs: number; + readonly rgvarg: any; + } + + interface EXCEPINFO { + readonly bstrDescription: string; + readonly bstrHelpFile: string; + readonly bstrSource: string; + readonly dwHelpContext: number; + readonly pfnDeferredFillIn: undefined; + readonly pvReserved: undefined; + readonly scode: any; + readonly wCode: number; + readonly wReserved: number; + } + + interface GUID { + readonly Data1: number; + readonly Data2: number; + readonly Data3: number; + readonly Data4: SafeArray; + } + + class StdFont { + private 'stdole.StdFont_typekey': StdFont; + private constructor(); + readonly Bold: boolean; + readonly Charset: number; + readonly Italic: boolean; + readonly Name: string; + readonly Size: number; + readonly Strikethrough: boolean; + readonly Underline: boolean; + readonly Weight: number; + } + + class StdPicture { + private 'stdole.StdPicture_typekey': StdPicture; + private constructor(); + readonly Handle: number; + readonly Height: number; + readonly hPal: number; + Render(hdc: number, x: number, y: number, cx: number, cy: number, xSrc: number, ySrc: number, cxSrc: number, cySrc: number, prcWBounds: undefined): void; + readonly Type: number; + readonly Width: number; + } +} + +interface ActiveXObject { + on(obj: stdole.StdFont, event: 'FontChanged', argNames: ['PropertyName'], handler: (this: stdole.StdFont, parameter: {readonly PropertyName: string}) => void): void; + new(progid: K): ActiveXObjectNameMap[K]; +} + +interface ActiveXObjectNameMap { + StdFont: stdole.StdFont; + StdPicture: stdole.StdPicture; +} + +interface SafeArray { + _brand: SafeArray; +} diff --git a/types/activex-stdole/package.json b/types/activex-stdole/package.json new file mode 100644 index 0000000000..d9b1031263 --- /dev/null +++ b/types/activex-stdole/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "activex-helpers": "*" + } +} \ No newline at end of file diff --git a/types/activex-stdole/tsconfig.json b/types/activex-stdole/tsconfig.json new file mode 100644 index 0000000000..5ce15cf560 --- /dev/null +++ b/types/activex-stdole/tsconfig.json @@ -0,0 +1,21 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es5", "scripthost"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "activex-stdole-tests.ts" + ] +} \ No newline at end of file diff --git a/types/activex-stdole/tslint.json b/types/activex-stdole/tslint.json new file mode 100644 index 0000000000..4ac54521fe --- /dev/null +++ b/types/activex-stdole/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": [false] + } +} \ No newline at end of file diff --git a/types/activex-vbide/activex-vbide-tests.ts b/types/activex-vbide/activex-vbide-tests.ts new file mode 100644 index 0000000000..f94491f8cb --- /dev/null +++ b/types/activex-vbide/activex-vbide-tests.ts @@ -0,0 +1,22 @@ +/// + +const collectionToArray = (col: any) => { + const results: T[] = []; + const enumerator = new Enumerator(col); + enumerator.moveFirst(); + while (!enumerator.atEnd()) { + results.push(enumerator.item()); + } + return results; +}; + +const app = new ActiveXObject('Word.Application'); +const projects = collectionToArray(app.VBE.VBProjects); +projects.forEach(project => { + WScript.Echo(`Name: ${project.Name}`); + + collectionToArray(project.References) + .forEach(reference => { + WScript.Echo(` ${reference.Name} ${reference.Major}.${reference.Minor} -- ${reference.FullPath}`); + }); +}); diff --git a/types/activex-vbide/index.d.ts b/types/activex-vbide/index.d.ts new file mode 100644 index 0000000000..83049260c2 --- /dev/null +++ b/types/activex-vbide/index.d.ts @@ -0,0 +1,423 @@ +// Type definitions for Microsoft Visual Basic for Applications Extensibility 5.3 - VBIDE 14.0 +// Project: https://msdn.microsoft.com/en-us/vba/language-reference-vba/articles/collections-visual-basic-add-in-model +// Definitions by: Zev Spitz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// + +declare namespace VBIDE { + const enum vbext_CodePaneview { + vbext_cv_FullModuleView = 1, + vbext_cv_ProcedureView = 0, + } + + const enum vbext_ComponentType { + vbext_ct_ActiveXDesigner = 11, + vbext_ct_ClassModule = 2, + vbext_ct_Document = 100, + vbext_ct_MSForm = 3, + vbext_ct_StdModule = 1, + } + + const enum vbext_ProcKind { + vbext_pk_Get = 3, + vbext_pk_Let = 1, + vbext_pk_Proc = 0, + vbext_pk_Set = 2, + } + + const enum vbext_ProjectProtection { + vbext_pp_locked = 1, + vbext_pp_none = 0, + } + + const enum vbext_ProjectType { + vbext_pt_HostProject = 100, + vbext_pt_StandAlone = 101, + } + + const enum vbext_RefKind { + vbext_rk_Project = 1, + vbext_rk_TypeLib = 0, + } + + const enum vbext_VBAMode { + vbext_vm_Break = 1, + vbext_vm_Design = 2, + vbext_vm_Run = 0, + } + + const enum vbext_WindowState { + vbext_ws_Maximize = 2, + vbext_ws_Minimize = 1, + vbext_ws_Normal = 0, + } + + const enum vbext_WindowType { + vbext_wt_Browser = 2, + vbext_wt_CodeWindow = 0, + vbext_wt_Designer = 1, + vbext_wt_Find = 8, + vbext_wt_FindReplace = 9, + vbext_wt_Immediate = 5, + vbext_wt_LinkedWindowFrame = 11, + vbext_wt_Locals = 4, + vbext_wt_MainWindow = 12, + vbext_wt_ProjectWindow = 6, + vbext_wt_PropertyWindow = 7, + vbext_wt_Toolbox = 10, + vbext_wt_ToolWindow = 15, + vbext_wt_Watch = 3, + } + + const enum vbextFileTypes { + vbextFileTypeBinary = 10, + vbextFileTypeClass = 2, + vbextFileTypeDesigners = 12, + vbextFileTypeDocObject = 9, + vbextFileTypeExe = 4, + vbextFileTypeForm = 0, + vbextFileTypeFrx = 5, + vbextFileTypeGroupProject = 11, + vbextFileTypeModule = 1, + vbextFileTypeProject = 3, + vbextFileTypePropertyPage = 8, + vbextFileTypeRes = 6, + vbextFileTypeUserControl = 7, + } + + class AddIn { + private 'VBIDE.AddIn_typekey': AddIn; + private constructor(); + readonly Collection: Addins; + Connect: boolean; + Description: string; + readonly Guid: string; + Object: any; + readonly ProgId: string; + readonly VBE: VBE; + } + + class Addins { + private 'VBIDE.Addins_typekey': Addins; + private constructor(); + readonly Count: number; + Item(index: any): AddIn; + readonly Parent: any; + Update(): void; + readonly VBE: VBE; + } + + class Application { + private 'VBIDE.Application_typekey': Application; + private constructor(); + readonly Version: string; + } + + class CodeModule { + private 'VBIDE.CodeModule_typekey': CodeModule; + private constructor(); + AddFromFile(FileName: string): void; + AddFromString(String: string): void; + readonly CodePane: CodePane; + readonly CountOfDeclarationLines: number; + readonly CountOfLines: number; + CreateEventProc(EventName: string, ObjectName: string): number; + + /** @param number [Count=1] */ + DeleteLines(StartLine: number, Count?: number): void; + + /** + * @param boolean [WholeWord=false] + * @param boolean [MatchCase=false] + * @param boolean [PatternSearch=false] + */ + Find(Target: string, StartLine: number, StartColumn: number, EndLine: number, EndColumn: number, WholeWord?: boolean, MatchCase?: boolean, PatternSearch?: boolean): boolean; + InsertLines(Line: number, String: string): void; + Lines(StartLine: number, Count: number): string; + Name: string; + readonly Parent: VBComponent; + ProcBodyLine(ProcName: string, ProcKind: vbext_ProcKind): number; + ProcCountLines(ProcName: string, ProcKind: vbext_ProcKind): number; + ProcOfLine(Line: number, ProcKind: vbext_ProcKind): string; + ProcStartLine(ProcName: string, ProcKind: vbext_ProcKind): number; + ReplaceLine(Line: number, String: string): void; + readonly VBE: VBE; + } + + class CodePane { + private 'VBIDE.CodePane_typekey': CodePane; + private constructor(); + readonly CodeModule: CodeModule; + readonly CodePaneView: vbext_CodePaneview; + readonly Collection: CodePanes; + readonly CountOfVisibleLines: number; + GetSelection(StartLine: number, StartColumn: number, EndLine: number, EndColumn: number): void; + SetSelection(StartLine: number, StartColumn: number, EndLine: number, EndColumn: number): void; + Show(): void; + TopLine: number; + readonly VBE: VBE; + readonly Window: Window; + } + + class CodePanes { + private 'VBIDE.CodePanes_typekey': CodePanes; + private constructor(); + readonly Count: number; + Current: CodePane; + Item(index: any): CodePane; + readonly Parent: VBE; + readonly VBE: VBE; + } + + class CommandBarEvents { + private 'VBIDE.CommandBarEvents_typekey': CommandBarEvents; + private constructor(); + } + + class Component { + private 'VBIDE.Component_typekey': Component; + private constructor(); + readonly Application: Application; + IsDirty: boolean; + Name: string; + readonly Parent: Components; + } + + class Components { + private 'VBIDE.Components_typekey': Components; + private constructor(); + Add(ComponentType: vbext_ComponentType): Component; + readonly Application: Application; + readonly Count: number; + Import(FileName: string): Component; + Item(index: any): Component; + readonly Parent: VBProject; + Remove(Component: Component): void; + readonly VBE: VBE; + } + + class Events { + private 'VBIDE.Events_typekey': Events; + private constructor(); + CommandBarEvents(CommandBarControl: any): CommandBarEvents; + ReferencesEvents(VBProject: VBProject): ReferencesEvents; + } + + class LinkedWindows { + private 'VBIDE.LinkedWindows_typekey': LinkedWindows; + private constructor(); + Add(Window: Window): void; + readonly Count: number; + Item(index: any): Window; + readonly Parent: Window; + Remove(Window: Window): void; + readonly VBE: VBE; + } + + class ProjectTemplate { + private 'VBIDE.ProjectTemplate_typekey': ProjectTemplate; + private constructor(); + readonly Application: Application; + readonly Parent: Application; + } + + class Properties { + private 'VBIDE.Properties_typekey': Properties; + private constructor(); + readonly Application: Application; + readonly Count: number; + Item(index: any): Property; + readonly Parent: any; + readonly VBE: VBE; + } + + class Property { + private 'VBIDE.Property_typekey': Property; + private constructor(); + readonly Application: Application; + readonly Collection: Properties; + IndexedValue(Index1: any, Index2?: any, Index3?: any, Index4?: any): any; + readonly Name: string; + readonly NumIndices: number; + Object: any; + readonly Parent: Properties; + Value: any; + readonly VBE: VBE; + } + + class Reference { + private 'VBIDE.Reference_typekey': Reference; + private constructor(); + readonly BuiltIn: boolean; + readonly Collection: References; + readonly Description: string; + readonly FullPath: string; + readonly Guid: string; + readonly IsBroken: boolean; + readonly Major: number; + readonly Minor: number; + readonly Name: string; + readonly Type: vbext_RefKind; + readonly VBE: VBE; + } + + class References { + private 'VBIDE.References_typekey': References; + private constructor(); + AddFromFile(FileName: string): Reference; + AddFromGuid(Guid: string, Major: number, Minor: number): Reference; + readonly Count: number; + Item(index: any): Reference; + readonly Parent: VBProject; + Remove(Reference: Reference): void; + readonly VBE: VBE; + } + + class ReferencesEvents { + private 'VBIDE.ReferencesEvents_typekey': ReferencesEvents; + private constructor(); + } + + class VBComponent { + private 'VBIDE.VBComponent_typekey': VBComponent; + private constructor(); + Activate(): void; + readonly CodeModule: CodeModule; + readonly Collection: VBComponents; + readonly Designer: any; + readonly DesignerID: string; + DesignerWindow(): Window; + Export(FileName: string): void; + readonly HasOpenDesigner: boolean; + Name: string; + readonly Properties: Properties; + readonly Saved: boolean; + readonly Type: vbext_ComponentType; + readonly VBE: VBE; + } + + class VBComponents { + private 'VBIDE.VBComponents_typekey': VBComponents; + private constructor(); + Add(ComponentType: vbext_ComponentType): VBComponent; + AddCustom(ProgId: string): VBComponent; + + /** @param number [index=0] */ + AddMTDesigner(index?: number): VBComponent; + readonly Count: number; + Import(FileName: string): VBComponent; + Item(index: any): VBComponent; + readonly Parent: VBProject; + Remove(VBComponent: VBComponent): void; + readonly VBE: VBE; + } + + class VBE { + private 'VBIDE.VBE_typekey': VBE; + private constructor(); + ActiveCodePane: CodePane; + ActiveVBProject: VBProject; + readonly ActiveWindow: Window; + readonly Addins: Addins; + readonly CodePanes: CodePanes; + readonly CommandBars: Office.CommandBars; + readonly Events: Events; + readonly MainWindow: Window; + readonly SelectedVBComponent: VBComponent; + readonly VBProjects: VBProjects; + readonly Version: string; + readonly Windows: Windows; + } + + class VBProject { + private 'VBIDE.VBProject_typekey': VBProject; + private constructor(); + readonly Application: Application; + BuildFileName: string; + readonly Collection: VBProjects; + Description: string; + readonly FileName: string; + HelpContextID: number; + HelpFile: string; + MakeCompiledFile(): void; + readonly Mode: vbext_VBAMode; + Name: string; + readonly Parent: Application; + readonly Protection: vbext_ProjectProtection; + readonly References: References; + SaveAs(FileName: string): void; + readonly Saved: boolean; + readonly Type: vbext_ProjectType; + readonly VBComponents: VBComponents; + readonly VBE: VBE; + } + + class VBProjects { + private 'VBIDE.VBProjects_typekey': VBProjects; + private constructor(); + Add(Type: vbext_ProjectType): VBProject; + readonly Count: number; + Item(index: any): VBProject; + Open(bstrPath: string): VBProject; + readonly Parent: VBE; + Remove(lpc: VBProject): void; + readonly VBE: VBE; + } + + class Window { + private 'VBIDE.Window_typekey': Window; + private constructor(); + readonly Caption: string; + Close(): void; + readonly Collection: Windows; + Height: number; + readonly HWnd: number; + Left: number; + readonly LinkedWindowFrame: Window; + readonly LinkedWindows: LinkedWindows; + SetFocus(): void; + Top: number; + readonly Type: vbext_WindowType; + readonly VBE: VBE; + Visible: boolean; + Width: number; + WindowState: vbext_WindowState; + } + + class Windows { + private 'VBIDE.Windows_typekey': Windows; + private constructor(); + readonly Count: number; + CreateToolWindow(AddInInst: AddIn, ProgId: string, Caption: string, GuidPosition: string, DocObj: any): Window; + Item(index: any): Window; + readonly Parent: Application; + readonly VBE: VBE; + } +} + +interface ActiveXObject { + on( + obj: VBIDE.CommandBarEvents, event: 'Click', argNames: ['CommandBarControl', 'handled', 'CancelDefault'], handler: ( + this: VBIDE.CommandBarEvents, parameter: {readonly CommandBarControl: any, readonly handled: boolean, readonly CancelDefault: boolean}) => void): void; + on(obj: VBIDE.References, event: 'ItemAdded' | 'ItemRemoved', argNames: ['Reference'], handler: (this: VBIDE.References, parameter: {readonly Reference: VBIDE.Reference}) => void): void; + on( + obj: VBIDE.ReferencesEvents, event: 'ItemAdded' | 'ItemRemoved', argNames: ['Reference'], handler: ( + this: VBIDE.ReferencesEvents, parameter: {readonly Reference: VBIDE.Reference}) => void): void; +} + +interface EnumeratorConstructor { + new(col: VBIDE.Addins): Enumerator; + new(col: VBIDE.CodePanes): Enumerator; + new(col: VBIDE.Components): Enumerator; + new(col: VBIDE.LinkedWindows | VBIDE.Windows): Enumerator; + new(col: VBIDE.Properties): Enumerator; + new(col: VBIDE.References): Enumerator; + new(col: VBIDE.VBComponents): Enumerator; + new(col: VBIDE.VBProjects): Enumerator; +} + +interface SafeArray { + _brand: SafeArray; +} diff --git a/types/activex-vbide/package.json b/types/activex-vbide/package.json new file mode 100644 index 0000000000..d9b1031263 --- /dev/null +++ b/types/activex-vbide/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "activex-helpers": "*" + } +} \ No newline at end of file diff --git a/types/activex-vbide/tsconfig.json b/types/activex-vbide/tsconfig.json new file mode 100644 index 0000000000..c0c819dde7 --- /dev/null +++ b/types/activex-vbide/tsconfig.json @@ -0,0 +1,21 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es5", "scripthost"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "activex-vbide-tests.ts" + ] +} \ No newline at end of file diff --git a/types/activex-vbide/tslint.json b/types/activex-vbide/tslint.json new file mode 100644 index 0000000000..4ac54521fe --- /dev/null +++ b/types/activex-vbide/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": [false] + } +} \ No newline at end of file diff --git a/types/activex-word/activex-word-tests.ts b/types/activex-word/activex-word-tests.ts new file mode 100644 index 0000000000..d93a5f4e16 --- /dev/null +++ b/types/activex-word/activex-word-tests.ts @@ -0,0 +1,351 @@ +const collectionToArray = (col: any) => { + const results: T[] = []; + const enumerator = new Enumerator(col); + enumerator.moveFirst(); + while (!enumerator.atEnd()) { + results.push(enumerator.item()); + } + return results; +}; + +const app = new ActiveXObject('Word.Application'); + +// https://msdn.microsoft.com/en-us/vba/word-vba/articles/modifying-a-portion-of-a-document +app.Selection.Words.Item(1).Copy(); +app.ActiveDocument.Paragraphs.Item(1).Range.Copy(); +app.ActiveDocument.Words.Item(1).Case = Word.WdCharacterCase.wdUpperCase; +app.Selection.Sections.Item(1).PageSetup.BottomMargin = app.InchesToPoints(0.5); +app.ActiveDocument.Content.ParagraphFormat.Space2(); + +const activeDoc = app.ActiveDocument; +(() => { + const rngTenCharacters = activeDoc.Range(0, 10); + const rngThreeWords = activeDoc.Range(activeDoc.Words.Item(1).Start, activeDoc.Words.Item(3).End); + const rngParagraphs = activeDoc.Range( + activeDoc.Paragraphs.Item(2).Range.Start, + activeDoc.Paragraphs.Item(3).Range.End + ); +})(); + +// https://msdn.microsoft.com/en-us/vba/word-vba/articles/working-with-range-objects +(() => { + // using the Range method + + let rngDoc = activeDoc.Range(0, 10); + rngDoc.Bold = true; + + rngDoc = activeDoc.Range(0, 0); + rngDoc.InsertBefore('Hello'); + + rngDoc = activeDoc.Range( + activeDoc.Paragraphs.Item(2).Range.Start, + activeDoc.Paragraphs.Item(3).Range.End + ); + + // using the Range property + + const rngParagraphs = activeDoc.Paragraphs.Item(1).Range; + + activeDoc.Paragraphs.Item(2).Range.Select(); + + rngParagraphs.Bold = true; + rngParagraphs.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter; + rngParagraphs.Font.Name = 'Stencil'; + rngParagraphs.Font.Size = 15; + + // redefine a Range object + + let rngParagraph = app.Selection.Range; + rngParagraph.SetRange(rngParagraph.Start, rngParagraph.End + 10); + + rngParagraph = activeDoc.Paragraphs.Item(2).Range; + rngParagraph.SetRange(rngParagraph.Start, activeDoc.Paragraphs.Item(3).Range.End); + rngParagraph.Select(); + app.Selection.Font.Italic = true; +})(); + +// https://msdn.microsoft.com/en-us/vba/word-vba/articles/displaying-built-in-word-dialog-boxes +(() => { + // showing a built-in dialog box + + app.Dialogs.Item(Word.WdWordDialog.wdDialogFileOpen).Show(); + app.Dialogs.Item(Word.WdWordDialog.wdDialogFilePrint).Show(); + + let dlg = app.Dialogs.Item(Word.WdWordDialog.wdDialogFormatBordersAndShading); + dlg.DefaultTab = Word.WdWordDialogTab.wdDialogFormatBordersAndShadingTabBorders; + dlg.Show(); + + dlg = app.Dialogs.Item(Word.WdWordDialog.wdDialogToolsOptionsUserInfo); + dlg.Display(); + if ((dlg as any).Name !== '') { dlg.Execute(); } + + // returning and changing dialog box settings + + const dlgParagraph = app.Dialogs.Item(Word.WdWordDialog.wdDialogFormatParagraph); + WScript.Echo(`Right indent = ${(dlgParagraph as any).RightIndent}`); + + dlg = app.Dialogs.Item(Word.WdWordDialog.wdDialogFormatParagraph); + (dlg as any).KeepWithNext = 1; + dlg.Execute(); + + // use of the Update method -- https://msdn.microsoft.com/en-us/vba/word-vba/articles/dialog-update-method-word + dlg = app.Dialogs.Item(Word.WdWordDialog.wdDialogFormatFont); + app.Selection.Font.Name = 'Arial'; + dlg.Update(); + dlg.Show(); + + // checking how a dialog box was closed + + if (app.Dialogs.Item(Word.WdWordDialog.wdDialogInsertBreak).Show() === -1) { + app.StatusBar = 'Break inserted'; + } +})(); + +// https://msdn.microsoft.com/en-us/vba/word-vba/articles/applying-formatting-to-text +(() => { + // Applying formatting to the selection + let font = app.Selection.Font; + font.Name = 'Times New Roman'; + font.Size = 14; + font.AllCaps = true; + const paragraphFormat = app.Selection.ParagraphFormat; + paragraphFormat.LeftIndent = app.InchesToPoints(0.5); + paragraphFormat.Space1(); + + // Applying formatting to a range + let rngFormat = activeDoc.Range( + activeDoc.Paragraphs.Item(1).Range.Start, + activeDoc.Paragraphs.Item(3).Range.End + ); + rngFormat.Font.Name = 'Arial'; + rngFormat.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphJustify; + + // Inserting text and applying character and paragraph formatting + rngFormat = activeDoc.Range(0, 0); + rngFormat.InsertAfter('Title'); + rngFormat.InsertParagraphAfter(); + font = rngFormat.Font; + font.Name = 'Tahoma'; + font.Size = 24; + font.Bold = true; + let paragraph = activeDoc.Paragraphs.Item(1); + paragraph.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter; + paragraph.SpaceAfter = app.InchesToPoints(0.5); + + // Toggling the space before a paragraph between 12 points and none + paragraph = app.Selection.Paragraphs.Item(1); + paragraph.SpaceBefore = paragraph.SpaceBefore > 0 ? 0 : 6; + + // Toggle bold formatting + app.Selection.Font.Bold = Word.WdConstants.wdToggle; + + // Increase margins by .5 inches + const pageSetup = activeDoc.PageSetup; + pageSetup.LeftMargin += app.InchesToPoints(.5); + pageSetup.RightMargin += app.InchesToPoints(.5); +})(); + +// Assigning ranges -- https://msdn.microsoft.com/en-us/vba/word-vba/articles/assigning-ranges +(() => { + let rng1 = activeDoc.Words.Item(1); + const rng2 = activeDoc.Words.Item(2); + + // unlike VBA, Javascript doesn't have the notion of default properties + // after this line, rng1 and rng2 will refer to the same Range object + rng1 = rng2; + // changes to the Range will be visible via both variables + rng1.MoveStart(Word.WdUnits.wdParagraph); + + // using the Duplicate property creates a copy of the original Range + rng1 = rng2.Duplicate; +})(); + +// Editing text -- https://msdn.microsoft.com/en-us/vba/word-vba/articles/editing-text +(() => { + // Determining whether text is selected + if (app.Selection.Type === Word.WdSelectionType.wdSelectionIP) { + app.Selection.Font.Engrave = true; + } else { + WScript.Echo('You need to select some text'); + } + + // Collapsing a section or range + + app.Selection.Collapse(Word.WdCollapseDirection.wdCollapseStart); + + const rngWords = activeDoc.Words.Item(1); + rngWords.Collapse(Word.WdCollapseDirection.wdCollapseEnd); + rngWords.Text = '(This is a test.)'; + + // Extending a selection or range + + app.Selection.MoveEnd(Word.WdUnits.wdWord, 3); + + const rngParagraphs = activeDoc.Paragraphs.Item(1).Range; + rngParagraphs.MoveEnd(Word.WdUnits.wdParagraph, 2); + + // Changing text + + activeDoc.Words.Item(1).Text = 'The '; + + const rngFirstParagraph = activeDoc.Paragraphs.Item(1).Range; + rngFirstParagraph.Delete(); + rngFirstParagraph.InsertAfter('New text'); + rngFirstParagraph.InsertParagraphAfter(); +})(); + +// finding and replacing text or formatting -- https://msdn.microsoft.com/en-us/vba/word-vba/articles/finding-and-replacing-text-or-formatting +(() => { + // Finding text and selecting it + const find = app.Selection.Find; + find.Forward = true; + find.Wrap = Word.WdFindWrap.wdFindStop; + find.Text = 'Hello'; + find.Execute(); + + // Finding text without changing the selection + const find2 = app.ActiveDocument.Content.Find; + find2.Text = 'blue'; + find2.Forward = true; + find2.Execute(); + if (find2.Found) { find2.Parent.Bold = true; } + + // Using the Replacement object + + const find3 = app.Selection.Find; + find3.ClearFormatting; + find3.Text = 'Hi'; + find3.Replacement.ClearFormatting(); + find3.Replacement.Text = 'Hello'; + find3.Forward = true; + find3.Wrap = Word.WdFindWrap.wdFindContinue; + find3.Execute(undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, Word.WdReplace.wdReplaceAll); + + const find4 = app.ActiveDocument.Content.Find; + find4.ClearFormatting(); + find4.Format = true; + find4.Font.Bold = true; + find4.Replacement.ClearFormatting(); + find4.Replacement.Font.Bold = false; + find4.Execute("", undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, Word.WdReplace.wdReplaceAll); +})(); + +// looping through a collection -- https://msdn.microsoft.com/en-us/vba/word-vba/articles/looping-through-a-collection +(() => { + collectionToArray(app.Documents) + .forEach(openDocument => WScript.Echo(openDocument.Name)); + + const strMarks = collectionToArray(activeDoc.Bookmarks) + .map(bookmark => bookmark.Name); + + collectionToArray(activeDoc.Fields) + .filter(dateField => dateField.Code.Text.indexOf('Date', 1) !== -1) + .forEach(dateField => dateField.Update()); + + const exists = collectionToArray(activeDoc.AttachedTemplate.AutoTextEntries) + .some(autotextEntry => autotextEntry.Name === 'Filename'); + if (exists) { + WScript.Echo('The Filename AutoText entry exists.'); + } +})(); + +// inserting text in a document -- https://msdn.microsoft.com/en-us/vba/word-vba/articles/inserting-text-in-a-document +(() => { + activeDoc.Content.InsertAfter(' The end.'); + app.Selection.InsertBefore('new text'); +})(); + +// referring to the active document element -- https://msdn.microsoft.com/en-us/vba/word-vba/articles/referring-to-the-active-document-element +(() => { + app.Selection.Paragraphs.Item(1).Borders.Enable = true; + + app.Selection.Paragraphs.Borders.Enable = true; + + if (app.Selection.Tables.Count >= 1) { + app.Selection.Tables.Item(1).Rows.Item(1).Shading.Texture = Word.WdTextureIndex.wdTexture10Percent; + } else { + WScript.Echo('Selection doesn\'t include a table'); + } + + if (app.Selection.Tables.Count >= 1) { + collectionToArray(app.Selection.Tables) + .forEach(table => table.Rows.Item(1).Shading.Texture = Word.WdTextureIndex.wdTexture30Percent); + } +})(); + +// returning an object from a collection -- https://msdn.microsoft.com/en-us/vba/word-vba/articles/returning-an-object-from-a-collection-word +(() => { + // no default properties in Javascript; we can't write app.Documents(1) + const docFirst = app.Documents.Item(1); + + app.Documents.Item('Sales.doc').Activate(); + WScript.Echo(app.ActiveDocument.Name); + + app.ActiveDocument.Bookmarks.Item(1).Select(); + WScript.Echo(app.Selection.Text); + + // predefined index values; + const border = app.Selection.Paragraphs.Item(1).Borders.Item(Word.WdBorderType.wdBorderBottom); + border.LineStyle = Word.WdLineStyle.wdLineStyleSingle; + border.LineWidth = Word.WdLineWidth.wdLineWidth300pt; + border.Color = Word.WdColor.wdColorBlue; +})(); + +// returning text from a document -- https://msdn.microsoft.com/en-us/vba/word-vba/articles/returning-text-from-a-document +(() => { + const find = app.Selection.Find; + find.ClearFormatting(); + find.Style = Word.WdBuiltinStyle.wdStyleHeading1; + find.Format = true; + find.Forward = true; + find.Wrap = Word.WdFindWrap.wdFindStop; + find.Text = ""; + find.Execute(); + if (find.Found) { + WScript.Echo(app.Selection.Text); + } + + WScript.Echo(app.Selection.Text); + + WScript.Echo(activeDoc.Words.Item(1).Text); + + if (activeDoc.Bookmarks.Count > 0) { + WScript.Echo(activeDoc.Bookmarks.Item(1).Range.Text); + } +})(); + +// selecting text in a document -- https://msdn.microsoft.com/en-us/vba/word-vba/articles/selecting-text-in-a-document +(() => { + activeDoc.Tables.Item(1).Select(); + + activeDoc.Fields.Item(1).Select(); + + const rngParagraphs = activeDoc.Range( + activeDoc.Paragraphs.Item(1).Range.Start, + activeDoc.Paragraphs.Item(4).Range.End + ); + rngParagraphs.Select(); +})(); + +// storing values when a macro ends -- https://msdn.microsoft.com/en-us/vba/word-vba/articles/storing-values-when-a-macro-ends +(() => { + // document variables + activeDoc.Variables.Add('Age', 12); + const i = parseInt(activeDoc.Variables.Item('Age').Value, 10); + + // document properties + activeDoc.CustomDocumentProperties.Add('YourName', false, Office.MsoDocProperties.msoPropertyTypeString); + + activeDoc.AttachedTemplate.AutoTextEntries.Add('MyText', app.Selection.Range); + + // no method assignment in Javascript + ActiveXObject.set(app.System, 'PrivateProfileString', ['C:\\My Documents\\Macro.ini', 'DocTracker', 'DocNum'], '1'); + + const docNum = parseInt(app.System.PrivateProfileString('C:\\My Documents\\Macro.ini', 'DocTracker', 'DocNum'), 10); + + const section = 'HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\12.0\\Word\Options'; + const programDir = app.System.PrivateProfileString('', section, 'PROGRAMDIR'); + WScript.Echo(`The program directory for Word is ${programDir}`); + + ActiveXObject.set(app.System, 'PrivateProfileString', ['', section, 'DOC-PATH'], 'C:\\My Documents'); +})(); diff --git a/types/activex-word/index.d.ts b/types/activex-word/index.d.ts new file mode 100644 index 0000000000..7fe194552a --- /dev/null +++ b/types/activex-word/index.d.ts @@ -0,0 +1,12613 @@ +// Type definitions for Microsoft Word 14.0 Object Library - Word 14.0 +// Project: https://msdn.microsoft.com/en-us/library/fp179696.aspx +// Definitions by: Zev Spitz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// +/// +/// + +declare namespace Word { + const enum WdAlertLevel { + wdAlertsAll = -1, + wdAlertsMessageBox = -2, + wdAlertsNone = 0, + } + + const enum WdAlignmentTabAlignment { + wdCenter = 1, + wdLeft = 0, + wdRight = 2, + } + + const enum WdAlignmentTabRelative { + wdIndent = 1, + wdMargin = 0, + } + + const enum WdAnimation { + wdAnimationBlinkingBackground = 2, + wdAnimationLasVegasLights = 1, + wdAnimationMarchingBlackAnts = 4, + wdAnimationMarchingRedAnts = 5, + wdAnimationNone = 0, + wdAnimationShimmer = 6, + wdAnimationSparkleText = 3, + } + + const enum WdApplyQuickStyleSets { + wdSessionStartSet = 1, + wdTemplateSet = 2, + } + + const enum WdArabicNumeral { + wdNumeralArabic = 0, + wdNumeralContext = 2, + wdNumeralHindi = 1, + wdNumeralSystem = 3, + } + + const enum WdAraSpeller { + wdBoth = 3, + wdFinalYaa = 2, + wdInitialAlef = 1, + wdNone = 0, + } + + const enum WdArrangeStyle { + wdIcons = 1, + wdTiled = 0, + } + + const enum WdAutoFitBehavior { + wdAutoFitContent = 1, + wdAutoFitFixed = 0, + wdAutoFitWindow = 2, + } + + const enum WdAutoMacros { + wdAutoClose = 3, + wdAutoExec = 0, + wdAutoExit = 4, + wdAutoNew = 1, + wdAutoOpen = 2, + wdAutoSync = 5, + } + + const enum WdAutoVersions { + wdAutoVersionOff = 0, + wdAutoVersionOnClose = 1, + } + + const enum WdBaselineAlignment { + wdBaselineAlignAuto = 4, + wdBaselineAlignBaseline = 2, + wdBaselineAlignCenter = 1, + wdBaselineAlignFarEast50 = 3, + wdBaselineAlignTop = 0, + } + + const enum WdBookmarkSortBy { + wdSortByLocation = 1, + wdSortByName = 0, + } + + const enum WdBorderDistanceFrom { + wdBorderDistanceFromPageEdge = 1, + wdBorderDistanceFromText = 0, + } + + const enum WdBorderType { + wdBorderBottom = -3, + wdBorderDiagonalDown = -7, + wdBorderDiagonalUp = -8, + wdBorderHorizontal = -5, + wdBorderLeft = -2, + wdBorderRight = -4, + wdBorderTop = -1, + wdBorderVertical = -6, + } + + const enum WdBorderTypeHID { + emptyenum = 0, + } + + const enum WdBreakType { + wdColumnBreak = 8, + wdLineBreak = 6, + wdLineBreakClearLeft = 9, + wdLineBreakClearRight = 10, + wdPageBreak = 7, + wdSectionBreakContinuous = 3, + wdSectionBreakEvenPage = 4, + wdSectionBreakNextPage = 2, + wdSectionBreakOddPage = 5, + wdTextWrappingBreak = 11, + } + + const enum WdBrowserLevel { + wdBrowserLevelMicrosoftInternetExplorer5 = 1, + wdBrowserLevelMicrosoftInternetExplorer6 = 2, + wdBrowserLevelV4 = 0, + } + + const enum WdBrowseTarget { + wdBrowseComment = 3, + wdBrowseEdit = 10, + wdBrowseEndnote = 5, + wdBrowseField = 6, + wdBrowseFind = 11, + wdBrowseFootnote = 4, + wdBrowseGoTo = 12, + wdBrowseGraphic = 8, + wdBrowseHeading = 9, + wdBrowsePage = 1, + wdBrowseSection = 2, + wdBrowseTable = 7, + } + + const enum WdBuildingBlockTypes { + wdTypeAutoText = 9, + wdTypeBibliography = 34, + wdTypeCoverPage = 2, + wdTypeCustom1 = 29, + wdTypeCustom2 = 30, + wdTypeCustom3 = 31, + wdTypeCustom4 = 32, + wdTypeCustom5 = 33, + wdTypeCustomAutoText = 23, + wdTypeCustomBibliography = 35, + wdTypeCustomCoverPage = 16, + wdTypeCustomEquations = 17, + wdTypeCustomFooters = 18, + wdTypeCustomHeaders = 19, + wdTypeCustomPageNumber = 20, + wdTypeCustomPageNumberBottom = 26, + wdTypeCustomPageNumberPage = 27, + wdTypeCustomPageNumberTop = 25, + wdTypeCustomQuickParts = 15, + wdTypeCustomTableOfContents = 28, + wdTypeCustomTables = 21, + wdTypeCustomTextBox = 24, + wdTypeCustomWatermarks = 22, + wdTypeEquations = 3, + wdTypeFooters = 4, + wdTypeHeaders = 5, + wdTypePageNumber = 6, + wdTypePageNumberBottom = 12, + wdTypePageNumberPage = 13, + wdTypePageNumberTop = 11, + wdTypeQuickParts = 1, + wdTypeTableOfContents = 14, + wdTypeTables = 7, + wdTypeTextBox = 10, + wdTypeWatermarks = 8, + } + + const enum WdBuiltInProperty { + wdPropertyAppName = 9, + wdPropertyAuthor = 3, + wdPropertyBytes = 22, + wdPropertyCategory = 18, + wdPropertyCharacters = 16, + wdPropertyCharsWSpaces = 30, + wdPropertyComments = 5, + wdPropertyCompany = 21, + wdPropertyFormat = 19, + wdPropertyHiddenSlides = 27, + wdPropertyHyperlinkBase = 29, + wdPropertyKeywords = 4, + wdPropertyLastAuthor = 7, + wdPropertyLines = 23, + wdPropertyManager = 20, + wdPropertyMMClips = 28, + wdPropertyNotes = 26, + wdPropertyPages = 14, + wdPropertyParas = 24, + wdPropertyRevision = 8, + wdPropertySecurity = 17, + wdPropertySlides = 25, + wdPropertySubject = 2, + wdPropertyTemplate = 6, + wdPropertyTimeCreated = 11, + wdPropertyTimeLastPrinted = 10, + wdPropertyTimeLastSaved = 12, + wdPropertyTitle = 1, + wdPropertyVBATotalEdit = 13, + wdPropertyWords = 15, + } + + const enum WdBuiltinStyle { + wdStyleBibliography = -266, + wdStyleBlockQuotation = -85, + wdStyleBodyText = -67, + wdStyleBodyText2 = -81, + wdStyleBodyText3 = -82, + wdStyleBodyTextFirstIndent = -78, + wdStyleBodyTextFirstIndent2 = -79, + wdStyleBodyTextIndent = -68, + wdStyleBodyTextIndent2 = -83, + wdStyleBodyTextIndent3 = -84, + wdStyleBookTitle = -265, + wdStyleCaption = -35, + wdStyleClosing = -64, + wdStyleCommentReference = -40, + wdStyleCommentText = -31, + wdStyleDate = -77, + wdStyleDefaultParagraphFont = -66, + wdStyleEmphasis = -89, + wdStyleEndnoteReference = -43, + wdStyleEndnoteText = -44, + wdStyleEnvelopeAddress = -37, + wdStyleEnvelopeReturn = -38, + wdStyleFooter = -33, + wdStyleFootnoteReference = -39, + wdStyleFootnoteText = -30, + wdStyleHeader = -32, + wdStyleHeading1 = -2, + wdStyleHeading2 = -3, + wdStyleHeading3 = -4, + wdStyleHeading4 = -5, + wdStyleHeading5 = -6, + wdStyleHeading6 = -7, + wdStyleHeading7 = -8, + wdStyleHeading8 = -9, + wdStyleHeading9 = -10, + wdStyleHtmlAcronym = -96, + wdStyleHtmlAddress = -97, + wdStyleHtmlCite = -98, + wdStyleHtmlCode = -99, + wdStyleHtmlDfn = -100, + wdStyleHtmlKbd = -101, + wdStyleHtmlNormal = -95, + wdStyleHtmlPre = -102, + wdStyleHtmlSamp = -103, + wdStyleHtmlTt = -104, + wdStyleHtmlVar = -105, + wdStyleHyperlink = -86, + wdStyleHyperlinkFollowed = -87, + wdStyleIndex1 = -11, + wdStyleIndex2 = -12, + wdStyleIndex3 = -13, + wdStyleIndex4 = -14, + wdStyleIndex5 = -15, + wdStyleIndex6 = -16, + wdStyleIndex7 = -17, + wdStyleIndex8 = -18, + wdStyleIndex9 = -19, + wdStyleIndexHeading = -34, + wdStyleIntenseEmphasis = -262, + wdStyleIntenseQuote = -182, + wdStyleIntenseReference = -264, + wdStyleLineNumber = -41, + wdStyleList = -48, + wdStyleList2 = -51, + wdStyleList3 = -52, + wdStyleList4 = -53, + wdStyleList5 = -54, + wdStyleListBullet = -49, + wdStyleListBullet2 = -55, + wdStyleListBullet3 = -56, + wdStyleListBullet4 = -57, + wdStyleListBullet5 = -58, + wdStyleListContinue = -69, + wdStyleListContinue2 = -70, + wdStyleListContinue3 = -71, + wdStyleListContinue4 = -72, + wdStyleListContinue5 = -73, + wdStyleListNumber = -50, + wdStyleListNumber2 = -59, + wdStyleListNumber3 = -60, + wdStyleListNumber4 = -61, + wdStyleListNumber5 = -62, + wdStyleListParagraph = -180, + wdStyleMacroText = -46, + wdStyleMessageHeader = -74, + wdStyleNavPane = -90, + wdStyleNormal = -1, + wdStyleNormalIndent = -29, + wdStyleNormalObject = -158, + wdStyleNormalTable = -106, + wdStyleNoteHeading = -80, + wdStylePageNumber = -42, + wdStylePlainText = -91, + wdStyleQuote = -181, + wdStyleSalutation = -76, + wdStyleSignature = -65, + wdStyleStrong = -88, + wdStyleSubtitle = -75, + wdStyleSubtleEmphasis = -261, + wdStyleSubtleReference = -263, + wdStyleTableColorfulGrid = -172, + wdStyleTableColorfulList = -171, + wdStyleTableColorfulShading = -170, + wdStyleTableDarkList = -169, + wdStyleTableLightGrid = -161, + wdStyleTableLightGridAccent1 = -175, + wdStyleTableLightList = -160, + wdStyleTableLightListAccent1 = -174, + wdStyleTableLightShading = -159, + wdStyleTableLightShadingAccent1 = -173, + wdStyleTableMediumGrid1 = -166, + wdStyleTableMediumGrid2 = -167, + wdStyleTableMediumGrid3 = -168, + wdStyleTableMediumList1 = -164, + wdStyleTableMediumList1Accent1 = -178, + wdStyleTableMediumList2 = -165, + wdStyleTableMediumShading1 = -162, + wdStyleTableMediumShading1Accent1 = -176, + wdStyleTableMediumShading2 = -163, + wdStyleTableMediumShading2Accent1 = -177, + wdStyleTableOfAuthorities = -45, + wdStyleTableOfFigures = -36, + wdStyleTitle = -63, + wdStyleTOAHeading = -47, + wdStyleTOC1 = -20, + wdStyleTOC2 = -21, + wdStyleTOC3 = -22, + wdStyleTOC4 = -23, + wdStyleTOC5 = -24, + wdStyleTOC6 = -25, + wdStyleTOC7 = -26, + wdStyleTOC8 = -27, + wdStyleTOC9 = -28, + wdStyleTocHeading = -267, + } + + const enum WdCalendarType { + wdCalendarArabic = 1, + wdCalendarHebrew = 2, + wdCalendarJapan = 4, + wdCalendarKorean = 6, + wdCalendarSakaEra = 7, + wdCalendarTaiwan = 3, + wdCalendarThai = 5, + wdCalendarTranslitEnglish = 8, + wdCalendarTranslitFrench = 9, + wdCalendarUmalqura = 13, + wdCalendarWestern = 0, + } + + const enum WdCalendarTypeBi { + wdCalendarTypeBidi = 99, + wdCalendarTypeGregorian = 100, + } + + const enum WdCaptionLabelID { + wdCaptionEquation = -3, + wdCaptionFigure = -1, + wdCaptionTable = -2, + } + + const enum WdCaptionNumberStyle { + wdCaptionNumberStyleArabic = 0, + wdCaptionNumberStyleArabicFullWidth = 14, + wdCaptionNumberStyleArabicLetter1 = 46, + wdCaptionNumberStyleArabicLetter2 = 48, + wdCaptionNumberStyleChosung = 25, + wdCaptionNumberStyleGanada = 24, + wdCaptionNumberStyleHanjaRead = 41, + wdCaptionNumberStyleHanjaReadDigit = 42, + wdCaptionNumberStyleHebrewLetter1 = 45, + wdCaptionNumberStyleHebrewLetter2 = 47, + wdCaptionNumberStyleHindiArabic = 51, + wdCaptionNumberStyleHindiCardinalText = 52, + wdCaptionNumberStyleHindiLetter1 = 49, + wdCaptionNumberStyleHindiLetter2 = 50, + wdCaptionNumberStyleKanji = 10, + wdCaptionNumberStyleKanjiDigit = 11, + wdCaptionNumberStyleKanjiTraditional = 16, + wdCaptionNumberStyleLowercaseLetter = 4, + wdCaptionNumberStyleLowercaseRoman = 2, + wdCaptionNumberStyleNumberInCircle = 18, + wdCaptionNumberStyleSimpChinNum2 = 38, + wdCaptionNumberStyleSimpChinNum3 = 39, + wdCaptionNumberStyleThaiArabic = 54, + wdCaptionNumberStyleThaiCardinalText = 55, + wdCaptionNumberStyleThaiLetter = 53, + wdCaptionNumberStyleTradChinNum2 = 34, + wdCaptionNumberStyleTradChinNum3 = 35, + wdCaptionNumberStyleUppercaseLetter = 3, + wdCaptionNumberStyleUppercaseRoman = 1, + wdCaptionNumberStyleVietCardinalText = 56, + wdCaptionNumberStyleZodiac1 = 30, + wdCaptionNumberStyleZodiac2 = 31, + } + + const enum WdCaptionNumberStyleHID { + emptyenum = 0, + } + + const enum WdCaptionPosition { + wdCaptionPositionAbove = 0, + wdCaptionPositionBelow = 1, + } + + const enum WdCellColor { + wdCellColorByAuthor = -1, + wdCellColorLightBlue = 2, + wdCellColorLightGray = 7, + wdCellColorLightGreen = 6, + wdCellColorLightOrange = 5, + wdCellColorLightPurple = 4, + wdCellColorLightYellow = 3, + wdCellColorNoHighlight = 0, + wdCellColorPink = 1, + } + + const enum WdCellVerticalAlignment { + wdCellAlignVerticalBottom = 3, + wdCellAlignVerticalCenter = 1, + wdCellAlignVerticalTop = 0, + } + + const enum WdCharacterCase { + wdFullWidth = 7, + wdHalfWidth = 6, + wdHiragana = 9, + wdKatakana = 8, + wdLowerCase = 0, + wdNextCase = -1, + wdTitleSentence = 4, + wdTitleWord = 2, + wdToggleCase = 5, + wdUpperCase = 1, + } + + const enum WdCharacterCaseHID { + emptyenum = 0, + } + + const enum WdCharacterWidth { + wdWidthFullWidth = 7, + wdWidthHalfWidth = 6, + } + + const enum WdCheckInVersionType { + wdCheckInMajorVersion = 1, + wdCheckInMinorVersion = 0, + wdCheckInOverwriteVersion = 2, + } + + const enum WdChevronConvertRule { + wdAlwaysConvert = 1, + wdAskToConvert = 3, + wdAskToNotConvert = 2, + wdNeverConvert = 0, + } + + const enum WdCollapseDirection { + wdCollapseEnd = 0, + wdCollapseStart = 1, + } + + const enum WdColor { + wdColorAqua = 13421619, + wdColorAutomatic = -16777216, + wdColorBlack = 0, + wdColorBlue = 16711680, + wdColorBlueGray = 10053222, + wdColorBrightGreen = 65280, + wdColorBrown = 13209, + wdColorDarkBlue = 8388608, + wdColorDarkGreen = 13056, + wdColorDarkRed = 128, + wdColorDarkTeal = 6697728, + wdColorDarkYellow = 32896, + wdColorGold = 52479, + wdColorGray05 = 15987699, + wdColorGray10 = 15132390, + wdColorGray125 = 14737632, + wdColorGray15 = 14277081, + wdColorGray20 = 13421772, + wdColorGray25 = 12632256, + wdColorGray30 = 11776947, + wdColorGray35 = 10921638, + wdColorGray375 = 10526880, + wdColorGray40 = 10066329, + wdColorGray45 = 9211020, + wdColorGray50 = 8421504, + wdColorGray55 = 7566195, + wdColorGray60 = 6710886, + wdColorGray625 = 6316128, + wdColorGray65 = 5855577, + wdColorGray70 = 5000268, + wdColorGray75 = 4210752, + wdColorGray80 = 3355443, + wdColorGray85 = 2500134, + wdColorGray875 = 2105376, + wdColorGray90 = 1644825, + wdColorGray95 = 789516, + wdColorGreen = 32768, + wdColorIndigo = 10040115, + wdColorLavender = 16751052, + wdColorLightBlue = 16737843, + wdColorLightGreen = 13434828, + wdColorLightOrange = 39423, + wdColorLightTurquoise = 16777164, + wdColorLightYellow = 10092543, + wdColorLime = 52377, + wdColorOliveGreen = 13107, + wdColorOrange = 26367, + wdColorPaleBlue = 16764057, + wdColorPink = 16711935, + wdColorPlum = 6697881, + wdColorRed = 255, + wdColorRose = 13408767, + wdColorSeaGreen = 6723891, + wdColorSkyBlue = 16763904, + wdColorTan = 10079487, + wdColorTeal = 8421376, + wdColorTurquoise = 16776960, + wdColorViolet = 8388736, + wdColorWhite = 16777215, + wdColorYellow = 65535, + } + + const enum WdColorIndex { + wdAuto = 0, + wdBlack = 1, + wdBlue = 2, + wdBrightGreen = 4, + wdByAuthor = -1, + wdDarkBlue = 9, + wdDarkRed = 13, + wdDarkYellow = 14, + wdGray25 = 16, + wdGray50 = 15, + wdGreen = 11, + wdNoHighlight = 0, + wdPink = 5, + wdRed = 6, + wdTeal = 10, + wdTurquoise = 3, + wdViolet = 12, + wdWhite = 8, + wdYellow = 7, + } + + const enum WdCompareDestination { + wdCompareDestinationNew = 2, + wdCompareDestinationOriginal = 0, + wdCompareDestinationRevised = 1, + } + + const enum WdCompareTarget { + wdCompareTargetCurrent = 1, + wdCompareTargetNew = 2, + wdCompareTargetSelected = 0, + } + + const enum WdCompatibility { + wdAlignTablesRowByRow = 39, + wdAllowSpaceOfSameStyleInTable = 54, + wdApplyBreakingRules = 46, + wdAutofitLikeWW11 = 57, + wdAutospaceLikeWW7 = 38, + wdCachedColBalance = 65, + wdConvMailMergeEsc = 6, + wdDisableOTKerning = 66, + wdDontAdjustLineHeightInTable = 36, + wdDontAutofitConstrainedTables = 56, + wdDontBalanceSingleByteDoubleByteWidth = 16, + wdDontBreakConstrainedForcedTables = 62, + wdDontBreakWrappedTables = 43, + wdDontOverrideTableStyleFontSzAndJustification = 68, + wdDontSnapTextToGridInTableWithObjects = 44, + wdDontULTrailSpace = 15, + wdDontUseAsianBreakRulesInGrid = 48, + wdDontUseHTMLParagraphAutoSpacing = 35, + wdDontUseIndentAsNumberingTabStop = 52, + wdDontVertAlignCellWithShape = 61, + wdDontVertAlignInTextbox = 63, + wdDontWrapTextWithPunctuation = 47, + wdExactOnTop = 28, + wdExpandShiftReturn = 14, + wdFELineBreak11 = 53, + wdFlipMirrorIndents = 67, + wdFootnoteLayoutLikeWW8 = 34, + wdForgetLastTabAlignment = 37, + wdGrowAutofit = 50, + wdHangulWidthLikeWW11 = 59, + wdLayoutRawTableWidth = 40, + wdLayoutTableRowsApart = 41, + wdLeaveBackslashAlone = 13, + wdLineWrapLikeWord6 = 32, + wdMWSmallCaps = 22, + wdNoColumnBalance = 5, + wdNoExtraLineSpacing = 23, + wdNoLeading = 20, + wdNoSpaceForUL = 21, + wdNoSpaceRaiseLower = 2, + wdNoTabHangIndent = 1, + wdOrigWordTableRules = 9, + wdPrintBodyTextBeforeHeader = 19, + wdPrintColBlack = 3, + wdSelectFieldWithFirstOrLastCharacter = 45, + wdShapeLayoutLikeWW8 = 33, + wdShowBreaksInFrames = 11, + wdSpacingInWholePoints = 18, + wdSplitPgBreakAndParaMark = 60, + wdSubFontBySize = 25, + wdSuppressBottomSpacing = 29, + wdSuppressSpBfAfterPgBrk = 7, + wdSuppressTopSpacing = 8, + wdSuppressTopSpacingMac5 = 17, + wdSwapBordersFacingPages = 12, + wdTransparentMetafiles = 10, + wdTruncateFontHeight = 24, + wdUnderlineTabInNumList = 58, + wdUseNormalStyleForList = 51, + wdUsePrinterMetrics = 26, + wdUseWord2002TableStyleRules = 49, + wdUseWord97LineBreakingRules = 42, + wdWord11KerningPairs = 64, + wdWPJustification = 31, + wdWPSpaceWidth = 30, + wdWrapTrailSpaces = 4, + wdWW11IndentRules = 55, + wdWW6BorderRules = 27, + } + + const enum WdCompatibilityMode { + wdCurrent = 65535, + wdWord2003 = 11, + wdWord2007 = 12, + wdWord2010 = 14, + } + + const enum WdConditionCode { + wdEvenColumnBanding = 7, + wdEvenRowBanding = 3, + wdFirstColumn = 4, + wdFirstRow = 0, + wdLastColumn = 5, + wdLastRow = 1, + wdNECell = 8, + wdNWCell = 9, + wdOddColumnBanding = 6, + wdOddRowBanding = 2, + wdSECell = 10, + wdSWCell = 11, + } + + const enum WdConstants { + wdAutoPosition = 0, + wdBackward = -1073741823, + wdCreatorCode = 1297307460, + wdFirst = 1, + wdForward = 1073741823, + wdToggle = 9999998, + wdUndefined = 9999999, + } + + const enum WdContentControlDateStorageFormat { + wdContentControlDateStorageDate = 1, + wdContentControlDateStorageDateTime = 2, + wdContentControlDateStorageText = 0, + } + + const enum WdContentControlType { + wdContentControlBuildingBlockGallery = 5, + wdContentControlCheckBox = 8, + wdContentControlComboBox = 3, + wdContentControlDate = 6, + wdContentControlDropdownList = 4, + wdContentControlGroup = 7, + wdContentControlPicture = 2, + wdContentControlRichText = 0, + wdContentControlText = 1, + } + + const enum WdContinue { + wdContinueDisabled = 0, + wdContinueList = 2, + wdResetList = 1, + } + + const enum WdCountry { + wdArgentina = 54, + wdBrazil = 55, + wdCanada = 2, + wdChile = 56, + wdChina = 86, + wdDenmark = 45, + wdFinland = 358, + wdFrance = 33, + wdGermany = 49, + wdIceland = 354, + wdItaly = 39, + wdJapan = 81, + wdKorea = 82, + wdLatinAmerica = 3, + wdMexico = 52, + wdNetherlands = 31, + wdNorway = 47, + wdPeru = 51, + wdSpain = 34, + wdSweden = 46, + wdTaiwan = 886, + wdUK = 44, + wdUS = 1, + wdVenezuela = 58, + } + + const enum WdCursorMovement { + wdCursorMovementLogical = 0, + wdCursorMovementVisual = 1, + } + + const enum WdCursorType { + wdCursorIBeam = 1, + wdCursorNormal = 2, + wdCursorNorthwestArrow = 3, + wdCursorWait = 0, + } + + const enum WdCustomLabelPageSize { + wdCustomLabelA4 = 2, + wdCustomLabelA4LS = 3, + wdCustomLabelA5 = 4, + wdCustomLabelA5LS = 5, + wdCustomLabelB4JIS = 13, + wdCustomLabelB5 = 6, + wdCustomLabelFanfold = 8, + wdCustomLabelHigaki = 11, + wdCustomLabelHigakiLS = 12, + wdCustomLabelLetter = 0, + wdCustomLabelLetterLS = 1, + wdCustomLabelMini = 7, + wdCustomLabelVertHalfSheet = 9, + wdCustomLabelVertHalfSheetLS = 10, + } + + const enum WdDateLanguage { + wdDateLanguageBidi = 10, + wdDateLanguageLatin = 1033, + } + + const enum WdDefaultFilePath { + wdAutoRecoverPath = 5, + wdBorderArtPath = 19, + wdCurrentFolderPath = 14, + wdDocumentsPath = 0, + wdGraphicsFiltersPath = 10, + wdPicturesPath = 1, + wdProgramPath = 9, + wdProofingToolsPath = 12, + wdStartupPath = 8, + wdStyleGalleryPath = 15, + wdTempFilePath = 13, + wdTextConvertersPath = 11, + wdToolsPath = 6, + wdTutorialPath = 7, + wdUserOptionsPath = 4, + wdUserTemplatesPath = 2, + wdWorkgroupTemplatesPath = 3, + } + + const enum WdDefaultListBehavior { + wdWord10ListBehavior = 2, + wdWord8ListBehavior = 0, + wdWord9ListBehavior = 1, + } + + const enum WdDefaultTableBehavior { + wdWord8TableBehavior = 0, + wdWord9TableBehavior = 1, + } + + const enum WdDeleteCells { + wdDeleteCellsEntireColumn = 3, + wdDeleteCellsEntireRow = 2, + wdDeleteCellsShiftLeft = 0, + wdDeleteCellsShiftUp = 1, + } + + const enum WdDeletedTextMark { + wdDeletedTextMarkBold = 5, + wdDeletedTextMarkCaret = 2, + wdDeletedTextMarkColorOnly = 9, + wdDeletedTextMarkDoubleStrikeThrough = 10, + wdDeletedTextMarkDoubleUnderline = 8, + wdDeletedTextMarkHidden = 0, + wdDeletedTextMarkItalic = 6, + wdDeletedTextMarkNone = 4, + wdDeletedTextMarkPound = 3, + wdDeletedTextMarkStrikeThrough = 1, + wdDeletedTextMarkUnderline = 7, + } + + const enum WdDiacriticColor { + wdDiacriticColorBidi = 0, + wdDiacriticColorLatin = 1, + } + + const enum WdDictionaryType { + wdGrammar = 1, + wdHangulHanjaConversion = 8, + wdHangulHanjaConversionCustom = 9, + wdHyphenation = 3, + wdSpelling = 0, + wdSpellingComplete = 4, + wdSpellingCustom = 5, + wdSpellingLegal = 6, + wdSpellingMedical = 7, + wdThesaurus = 2, + } + + const enum WdDictionaryTypeHID { + emptyenum = 0, + } + + const enum WdDisableFeaturesIntroducedAfter { + wd70 = 0, + wd70FE = 1, + wd80 = 2, + } + + const enum WdDocPartInsertOptions { + wdInsertContent = 0, + wdInsertPage = 2, + wdInsertParagraph = 1, + } + + const enum WdDocumentDirection { + wdLeftToRight = 0, + wdRightToLeft = 1, + } + + const enum WdDocumentKind { + wdDocumentEmail = 2, + wdDocumentLetter = 1, + wdDocumentNotSpecified = 0, + } + + const enum WdDocumentMedium { + wdDocument = 1, + wdEmailMessage = 0, + wdWebPage = 2, + } + + const enum WdDocumentType { + wdTypeDocument = 0, + wdTypeFrameset = 2, + wdTypeTemplate = 1, + } + + const enum WdDocumentViewDirection { + wdDocumentViewLtr = 1, + wdDocumentViewRtl = 0, + } + + const enum WdDropPosition { + wdDropMargin = 2, + wdDropNone = 0, + wdDropNormal = 1, + } + + const enum WdEditionOption { + wdAutomaticUpdate = 3, + wdCancelPublisher = 0, + wdChangeAttributes = 5, + wdManualUpdate = 4, + wdOpenSource = 7, + wdSelectPublisher = 2, + wdSendPublisher = 1, + wdUpdateSubscriber = 6, + } + + const enum WdEditionType { + wdPublisher = 0, + wdSubscriber = 1, + } + + const enum WdEditorType { + wdEditorCurrent = -6, + wdEditorEditors = -5, + wdEditorEveryone = -1, + wdEditorOwners = -4, + } + + const enum WdEmailHTMLFidelity { + wdEmailHTMLFidelityHigh = 3, + wdEmailHTMLFidelityLow = 1, + wdEmailHTMLFidelityMedium = 2, + } + + const enum WdEmphasisMark { + wdEmphasisMarkNone = 0, + wdEmphasisMarkOverComma = 2, + wdEmphasisMarkOverSolidCircle = 1, + wdEmphasisMarkOverWhiteCircle = 3, + wdEmphasisMarkUnderSolidCircle = 4, + } + + const enum WdEnableCancelKey { + wdCancelDisabled = 0, + wdCancelInterrupt = 1, + } + + const enum WdEncloseStyle { + wdEncloseStyleLarge = 2, + wdEncloseStyleNone = 0, + wdEncloseStyleSmall = 1, + } + + const enum WdEnclosureType { + wdEnclosureCircle = 0, + wdEnclosureDiamond = 3, + wdEnclosureSquare = 1, + wdEnclosureTriangle = 2, + } + + const enum WdEndnoteLocation { + wdEndOfDocument = 1, + wdEndOfSection = 0, + } + + const enum WdEnvelopeOrientation { + wdCenterClockwise = 7, + wdCenterLandscape = 4, + wdCenterPortrait = 1, + wdLeftClockwise = 6, + wdLeftLandscape = 3, + wdLeftPortrait = 0, + wdRightClockwise = 8, + wdRightLandscape = 5, + wdRightPortrait = 2, + } + + const enum WdExportCreateBookmarks { + wdExportCreateHeadingBookmarks = 1, + wdExportCreateNoBookmarks = 0, + wdExportCreateWordBookmarks = 2, + } + + const enum WdExportFormat { + wdExportFormatPDF = 17, + wdExportFormatXPS = 18, + } + + const enum WdExportItem { + wdExportDocumentContent = 0, + wdExportDocumentWithMarkup = 7, + } + + const enum WdExportOptimizeFor { + wdExportOptimizeForOnScreen = 1, + wdExportOptimizeForPrint = 0, + } + + const enum WdExportRange { + wdExportAllDocument = 0, + wdExportCurrentPage = 2, + wdExportFromTo = 3, + wdExportSelection = 1, + } + + const enum WdFarEastLineBreakLanguageID { + wdLineBreakJapanese = 1041, + wdLineBreakKorean = 1042, + wdLineBreakSimplifiedChinese = 2052, + wdLineBreakTraditionalChinese = 1028, + } + + const enum WdFarEastLineBreakLevel { + wdFarEastLineBreakLevelCustom = 2, + wdFarEastLineBreakLevelNormal = 0, + wdFarEastLineBreakLevelStrict = 1, + } + + const enum WdFieldKind { + wdFieldKindCold = 3, + wdFieldKindHot = 1, + wdFieldKindNone = 0, + wdFieldKindWarm = 2, + } + + const enum WdFieldShading { + wdFieldShadingAlways = 1, + wdFieldShadingNever = 0, + wdFieldShadingWhenSelected = 2, + } + + const enum WdFieldType { + wdFieldAddin = 81, + wdFieldAddressBlock = 93, + wdFieldAdvance = 84, + wdFieldAsk = 38, + wdFieldAuthor = 17, + wdFieldAutoNum = 54, + wdFieldAutoNumLegal = 53, + wdFieldAutoNumOutline = 52, + wdFieldAutoText = 79, + wdFieldAutoTextList = 89, + wdFieldBarCode = 63, + wdFieldBibliography = 97, + wdFieldBidiOutline = 92, + wdFieldCitation = 96, + wdFieldComments = 19, + wdFieldCompare = 80, + wdFieldCreateDate = 21, + wdFieldData = 40, + wdFieldDatabase = 78, + wdFieldDate = 31, + wdFieldDDE = 45, + wdFieldDDEAuto = 46, + wdFieldDocProperty = 85, + wdFieldDocVariable = 64, + wdFieldEditTime = 25, + wdFieldEmbed = 58, + wdFieldEmpty = -1, + wdFieldExpression = 34, + wdFieldFileName = 29, + wdFieldFileSize = 69, + wdFieldFillIn = 39, + wdFieldFootnoteRef = 5, + wdFieldFormCheckBox = 71, + wdFieldFormDropDown = 83, + wdFieldFormTextInput = 70, + wdFieldFormula = 49, + wdFieldGlossary = 47, + wdFieldGoToButton = 50, + wdFieldGreetingLine = 94, + wdFieldHTMLActiveX = 91, + wdFieldHyperlink = 88, + wdFieldIf = 7, + wdFieldImport = 55, + wdFieldInclude = 36, + wdFieldIncludePicture = 67, + wdFieldIncludeText = 68, + wdFieldIndex = 8, + wdFieldIndexEntry = 4, + wdFieldInfo = 14, + wdFieldKeyWord = 18, + wdFieldLastSavedBy = 20, + wdFieldLink = 56, + wdFieldListNum = 90, + wdFieldMacroButton = 51, + wdFieldMergeField = 59, + wdFieldMergeRec = 44, + wdFieldMergeSeq = 75, + wdFieldNext = 41, + wdFieldNextIf = 42, + wdFieldNoteRef = 72, + wdFieldNumChars = 28, + wdFieldNumPages = 26, + wdFieldNumWords = 27, + wdFieldOCX = 87, + wdFieldPage = 33, + wdFieldPageRef = 37, + wdFieldPrint = 48, + wdFieldPrintDate = 23, + wdFieldPrivate = 77, + wdFieldQuote = 35, + wdFieldRef = 3, + wdFieldRefDoc = 11, + wdFieldRevisionNum = 24, + wdFieldSaveDate = 22, + wdFieldSection = 65, + wdFieldSectionPages = 66, + wdFieldSequence = 12, + wdFieldSet = 6, + wdFieldShape = 95, + wdFieldSkipIf = 43, + wdFieldStyleRef = 10, + wdFieldSubject = 16, + wdFieldSubscriber = 82, + wdFieldSymbol = 57, + wdFieldTemplate = 30, + wdFieldTime = 32, + wdFieldTitle = 15, + wdFieldTOA = 73, + wdFieldTOAEntry = 74, + wdFieldTOC = 13, + wdFieldTOCEntry = 9, + wdFieldUserAddress = 62, + wdFieldUserInitials = 61, + wdFieldUserName = 60, + } + + const enum WdFindMatch { + wdMatchAnyCharacter = 65599, + wdMatchAnyDigit = 65567, + wdMatchAnyLetter = 65583, + wdMatchCaretCharacter = 11, + wdMatchColumnBreak = 14, + wdMatchCommentMark = 5, + wdMatchEmDash = 8212, + wdMatchEnDash = 8211, + wdMatchEndnoteMark = 65555, + wdMatchField = 19, + wdMatchFootnoteMark = 65554, + wdMatchGraphic = 1, + wdMatchManualLineBreak = 65551, + wdMatchManualPageBreak = 65564, + wdMatchNonbreakingHyphen = 30, + wdMatchNonbreakingSpace = 160, + wdMatchOptionalHyphen = 31, + wdMatchParagraphMark = 65551, + wdMatchSectionBreak = 65580, + wdMatchTabCharacter = 9, + wdMatchWhiteSpace = 65655, + } + + const enum WdFindWrap { + wdFindAsk = 2, + wdFindContinue = 1, + wdFindStop = 0, + } + + const enum WdFlowDirection { + wdFlowLtr = 0, + wdFlowRtl = 1, + } + + const enum WdFontBias { + wdFontBiasDefault = 0, + wdFontBiasDontCare = 255, + wdFontBiasFareast = 1, + } + + const enum WdFootnoteLocation { + wdBeneathText = 1, + wdBottomOfPage = 0, + } + + const enum WdFramePosition { + wdFrameBottom = -999997, + wdFrameCenter = -999995, + wdFrameInside = -999994, + wdFrameLeft = -999998, + wdFrameOutside = -999993, + wdFrameRight = -999996, + wdFrameTop = -999999, + } + + const enum WdFramesetNewFrameLocation { + wdFramesetNewFrameAbove = 0, + wdFramesetNewFrameBelow = 1, + wdFramesetNewFrameLeft = 3, + wdFramesetNewFrameRight = 2, + } + + const enum WdFramesetSizeType { + wdFramesetSizeTypeFixed = 1, + wdFramesetSizeTypePercent = 0, + wdFramesetSizeTypeRelative = 2, + } + + const enum WdFramesetType { + wdFramesetTypeFrame = 1, + wdFramesetTypeFrameset = 0, + } + + const enum WdFrameSizeRule { + wdFrameAtLeast = 1, + wdFrameAuto = 0, + wdFrameExact = 2, + } + + const enum WdFrenchSpeller { + wdFrenchBoth = 0, + wdFrenchPostReform = 2, + wdFrenchPreReform = 1, + } + + const enum WdGoToDirection { + wdGoToAbsolute = 1, + wdGoToFirst = 1, + wdGoToLast = -1, + wdGoToNext = 2, + wdGoToPrevious = 3, + wdGoToRelative = 2, + } + + const enum WdGoToItem { + wdGoToBookmark = -1, + wdGoToComment = 6, + wdGoToEndnote = 5, + wdGoToEquation = 10, + wdGoToField = 7, + wdGoToFootnote = 4, + wdGoToGrammaticalError = 14, + wdGoToGraphic = 8, + wdGoToHeading = 11, + wdGoToLine = 3, + wdGoToObject = 9, + wdGoToPage = 1, + wdGoToPercent = 12, + wdGoToProofreadingError = 15, + wdGoToSection = 0, + wdGoToSpellingError = 13, + wdGoToTable = 2, + } + + const enum WdGranularity { + wdGranularityCharLevel = 0, + wdGranularityWordLevel = 1, + } + + const enum WdGutterStyle { + wdGutterPosLeft = 0, + wdGutterPosRight = 2, + wdGutterPosTop = 1, + } + + const enum WdGutterStyleOld { + wdGutterStyleBidi = 2, + wdGutterStyleLatin = -10, + } + + const enum WdHeaderFooterIndex { + wdHeaderFooterEvenPages = 3, + wdHeaderFooterFirstPage = 2, + wdHeaderFooterPrimary = 1, + } + + const enum WdHeadingSeparator { + wdHeadingSeparatorBlankLine = 1, + wdHeadingSeparatorLetter = 2, + wdHeadingSeparatorLetterFull = 4, + wdHeadingSeparatorLetterLow = 3, + wdHeadingSeparatorNone = 0, + } + + const enum WdHebSpellStart { + wdFullScript = 0, + wdMixedAuthorizedScript = 3, + wdMixedScript = 2, + wdPartialScript = 1, + } + + const enum WdHelpType { + wdHelp = 0, + wdHelpAbout = 1, + wdHelpActiveWindow = 2, + wdHelpContents = 3, + wdHelpExamplesAndDemos = 4, + wdHelpHWP = 13, + wdHelpIchitaro = 11, + wdHelpIndex = 5, + wdHelpKeyboard = 6, + wdHelpPE2 = 12, + wdHelpPSSHelp = 7, + wdHelpQuickPreview = 8, + wdHelpSearch = 9, + wdHelpUsingHelp = 10, + } + + const enum WdHelpTypeHID { + emptyenum = 0, + } + + const enum WdHighAnsiText { + wdAutoDetectHighAnsiFarEast = 2, + wdHighAnsiIsFarEast = 0, + wdHighAnsiIsHighAnsi = 1, + } + + const enum WdHorizontalInVerticalType { + wdHorizontalInVerticalFitInLine = 1, + wdHorizontalInVerticalNone = 0, + wdHorizontalInVerticalResizeLine = 2, + } + + const enum WdHorizontalLineAlignment { + wdHorizontalLineAlignCenter = 1, + wdHorizontalLineAlignLeft = 0, + wdHorizontalLineAlignRight = 2, + } + + const enum WdHorizontalLineWidthType { + wdHorizontalLineFixedWidth = -2, + wdHorizontalLinePercentWidth = -1, + } + + const enum WdIMEMode { + wdIMEModeAlpha = 8, + wdIMEModeAlphaFull = 7, + wdIMEModeHangul = 10, + wdIMEModeHangulFull = 9, + wdIMEModeHiragana = 4, + wdIMEModeKatakana = 5, + wdIMEModeKatakanaHalf = 6, + wdIMEModeNoControl = 0, + wdIMEModeOff = 2, + wdIMEModeOn = 1, + } + + const enum WdIndexFilter { + wdIndexFilterAiueo = 1, + wdIndexFilterAkasatana = 2, + wdIndexFilterChosung = 3, + wdIndexFilterFull = 6, + wdIndexFilterLow = 4, + wdIndexFilterMedium = 5, + wdIndexFilterNone = 0, + } + + const enum WdIndexFormat { + wdIndexBulleted = 4, + wdIndexClassic = 1, + wdIndexFancy = 2, + wdIndexFormal = 5, + wdIndexModern = 3, + wdIndexSimple = 6, + wdIndexTemplate = 0, + } + + const enum WdIndexSortBy { + wdIndexSortByStroke = 0, + wdIndexSortBySyllable = 1, + } + + const enum WdIndexType { + wdIndexIndent = 0, + wdIndexRunin = 1, + } + + const enum WdInformation { + wdActiveEndAdjustedPageNumber = 1, + wdActiveEndPageNumber = 3, + wdActiveEndSectionNumber = 2, + wdAtEndOfRowMarker = 31, + wdCapsLock = 21, + wdEndOfRangeColumnNumber = 17, + wdEndOfRangeRowNumber = 14, + wdFirstCharacterColumnNumber = 9, + wdFirstCharacterLineNumber = 10, + wdFrameIsSelected = 11, + wdHeaderFooterType = 33, + wdHorizontalPositionRelativeToPage = 5, + wdHorizontalPositionRelativeToTextBoundary = 7, + wdInClipboard = 38, + wdInCommentPane = 26, + wdInEndnote = 36, + wdInFootnote = 35, + wdInFootnoteEndnotePane = 25, + wdInHeaderFooter = 28, + wdInMasterDocument = 34, + wdInWordMail = 37, + wdMaximumNumberOfColumns = 18, + wdMaximumNumberOfRows = 15, + wdNumberOfPagesInDocument = 4, + wdNumLock = 22, + wdOverType = 23, + wdReferenceOfType = 32, + wdRevisionMarking = 24, + wdSelectionMode = 20, + wdStartOfRangeColumnNumber = 16, + wdStartOfRangeRowNumber = 13, + wdVerticalPositionRelativeToPage = 6, + wdVerticalPositionRelativeToTextBoundary = 8, + wdWithInTable = 12, + wdZoomPercentage = 19, + } + + const enum WdInlineShapeType { + wdInlineShapeChart = 12, + wdInlineShapeDiagram = 13, + wdInlineShapeEmbeddedOLEObject = 1, + wdInlineShapeHorizontalLine = 6, + wdInlineShapeLinkedOLEObject = 2, + wdInlineShapeLinkedPicture = 4, + wdInlineShapeLinkedPictureHorizontalLine = 8, + wdInlineShapeLockedCanvas = 14, + wdInlineShapeOLEControlObject = 5, + wdInlineShapeOWSAnchor = 11, + wdInlineShapePicture = 3, + wdInlineShapePictureBullet = 9, + wdInlineShapePictureHorizontalLine = 7, + wdInlineShapeScriptAnchor = 10, + wdInlineShapeSmartArt = 15, + } + + const enum WdInsertCells { + wdInsertCellsEntireColumn = 3, + wdInsertCellsEntireRow = 2, + wdInsertCellsShiftDown = 1, + wdInsertCellsShiftRight = 0, + } + + const enum WdInsertedTextMark { + wdInsertedTextMarkBold = 1, + wdInsertedTextMarkColorOnly = 5, + wdInsertedTextMarkDoubleStrikeThrough = 7, + wdInsertedTextMarkDoubleUnderline = 4, + wdInsertedTextMarkItalic = 2, + wdInsertedTextMarkNone = 0, + wdInsertedTextMarkStrikeThrough = 6, + wdInsertedTextMarkUnderline = 3, + } + + const enum WdInternationalIndex { + wd24HourClock = 21, + wdCurrencyCode = 20, + wdDateSeparator = 25, + wdDecimalSeparator = 18, + wdInternationalAM = 22, + wdInternationalPM = 23, + wdListSeparator = 17, + wdProductLanguageID = 26, + wdThousandsSeparator = 19, + wdTimeSeparator = 24, + } + + const enum WdJustificationMode { + wdJustificationModeCompress = 1, + wdJustificationModeCompressKana = 2, + wdJustificationModeExpand = 0, + } + + const enum WdKana { + wdKanaHiragana = 9, + wdKanaKatakana = 8, + } + + const enum WdKey { + wdKey0 = 48, + wdKey1 = 49, + wdKey2 = 50, + wdKey3 = 51, + wdKey4 = 52, + wdKey5 = 53, + wdKey6 = 54, + wdKey7 = 55, + wdKey8 = 56, + wdKey9 = 57, + wdKeyA = 65, + wdKeyAlt = 1024, + wdKeyB = 66, + wdKeyBackSingleQuote = 192, + wdKeyBackSlash = 220, + wdKeyBackspace = 8, + wdKeyC = 67, + wdKeyCloseSquareBrace = 221, + wdKeyComma = 188, + wdKeyCommand = 512, + wdKeyControl = 512, + wdKeyD = 68, + wdKeyDelete = 46, + wdKeyE = 69, + wdKeyEnd = 35, + wdKeyEquals = 187, + wdKeyEsc = 27, + wdKeyF = 70, + wdKeyF1 = 112, + wdKeyF10 = 121, + wdKeyF11 = 122, + wdKeyF12 = 123, + wdKeyF13 = 124, + wdKeyF14 = 125, + wdKeyF15 = 126, + wdKeyF16 = 127, + wdKeyF2 = 113, + wdKeyF3 = 114, + wdKeyF4 = 115, + wdKeyF5 = 116, + wdKeyF6 = 117, + wdKeyF7 = 118, + wdKeyF8 = 119, + wdKeyF9 = 120, + wdKeyG = 71, + wdKeyH = 72, + wdKeyHome = 36, + wdKeyHyphen = 189, + wdKeyI = 73, + wdKeyInsert = 45, + wdKeyJ = 74, + wdKeyK = 75, + wdKeyL = 76, + wdKeyM = 77, + wdKeyN = 78, + wdKeyNumeric0 = 96, + wdKeyNumeric1 = 97, + wdKeyNumeric2 = 98, + wdKeyNumeric3 = 99, + wdKeyNumeric4 = 100, + wdKeyNumeric5 = 101, + wdKeyNumeric5Special = 12, + wdKeyNumeric6 = 102, + wdKeyNumeric7 = 103, + wdKeyNumeric8 = 104, + wdKeyNumeric9 = 105, + wdKeyNumericAdd = 107, + wdKeyNumericDecimal = 110, + wdKeyNumericDivide = 111, + wdKeyNumericMultiply = 106, + wdKeyNumericSubtract = 109, + wdKeyO = 79, + wdKeyOpenSquareBrace = 219, + wdKeyOption = 1024, + wdKeyP = 80, + wdKeyPageDown = 34, + wdKeyPageUp = 33, + wdKeyPause = 19, + wdKeyPeriod = 190, + wdKeyQ = 81, + wdKeyR = 82, + wdKeyReturn = 13, + wdKeyS = 83, + wdKeyScrollLock = 145, + wdKeySemiColon = 186, + wdKeyShift = 256, + wdKeySingleQuote = 222, + wdKeySlash = 191, + wdKeySpacebar = 32, + wdKeyT = 84, + wdKeyTab = 9, + wdKeyU = 85, + wdKeyV = 86, + wdKeyW = 87, + wdKeyX = 88, + wdKeyY = 89, + wdKeyZ = 90, + wdNoKey = 255, + } + + const enum WdKeyCategory { + wdKeyCategoryAutoText = 4, + wdKeyCategoryCommand = 1, + wdKeyCategoryDisable = 0, + wdKeyCategoryFont = 3, + wdKeyCategoryMacro = 2, + wdKeyCategoryNil = -1, + wdKeyCategoryPrefix = 7, + wdKeyCategoryStyle = 5, + wdKeyCategorySymbol = 6, + } + + const enum WdLanguageID { + wdAfrikaans = 1078, + wdAlbanian = 1052, + wdAmharic = 1118, + wdArabic = 1025, + wdArabicAlgeria = 5121, + wdArabicBahrain = 15361, + wdArabicEgypt = 3073, + wdArabicIraq = 2049, + wdArabicJordan = 11265, + wdArabicKuwait = 13313, + wdArabicLebanon = 12289, + wdArabicLibya = 4097, + wdArabicMorocco = 6145, + wdArabicOman = 8193, + wdArabicQatar = 16385, + wdArabicSyria = 10241, + wdArabicTunisia = 7169, + wdArabicUAE = 14337, + wdArabicYemen = 9217, + wdArmenian = 1067, + wdAssamese = 1101, + wdAzeriCyrillic = 2092, + wdAzeriLatin = 1068, + wdBasque = 1069, + wdBelgianDutch = 2067, + wdBelgianFrench = 2060, + wdBengali = 1093, + wdBulgarian = 1026, + wdBurmese = 1109, + wdByelorussian = 1059, + wdCatalan = 1027, + wdCherokee = 1116, + wdChineseHongKongSAR = 3076, + wdChineseMacaoSAR = 5124, + wdChineseSingapore = 4100, + wdCroatian = 1050, + wdCzech = 1029, + wdDanish = 1030, + wdDivehi = 1125, + wdDutch = 1043, + wdEdo = 1126, + wdEnglishAUS = 3081, + wdEnglishBelize = 10249, + wdEnglishCanadian = 4105, + wdEnglishCaribbean = 9225, + wdEnglishIndonesia = 14345, + wdEnglishIreland = 6153, + wdEnglishJamaica = 8201, + wdEnglishNewZealand = 5129, + wdEnglishPhilippines = 13321, + wdEnglishSouthAfrica = 7177, + wdEnglishTrinidadTobago = 11273, + wdEnglishUK = 2057, + wdEnglishUS = 1033, + wdEnglishZimbabwe = 12297, + wdEstonian = 1061, + wdFaeroese = 1080, + wdFilipino = 1124, + wdFinnish = 1035, + wdFrench = 1036, + wdFrenchCameroon = 11276, + wdFrenchCanadian = 3084, + wdFrenchCongoDRC = 9228, + wdFrenchCotedIvoire = 12300, + wdFrenchHaiti = 15372, + wdFrenchLuxembourg = 5132, + wdFrenchMali = 13324, + wdFrenchMonaco = 6156, + wdFrenchMorocco = 14348, + wdFrenchReunion = 8204, + wdFrenchSenegal = 10252, + wdFrenchWestIndies = 7180, + wdFrisianNetherlands = 1122, + wdFulfulde = 1127, + wdGaelicIreland = 2108, + wdGaelicScotland = 1084, + wdGalician = 1110, + wdGeorgian = 1079, + wdGerman = 1031, + wdGermanAustria = 3079, + wdGermanLiechtenstein = 5127, + wdGermanLuxembourg = 4103, + wdGreek = 1032, + wdGuarani = 1140, + wdGujarati = 1095, + wdHausa = 1128, + wdHawaiian = 1141, + wdHebrew = 1037, + wdHindi = 1081, + wdHungarian = 1038, + wdIbibio = 1129, + wdIcelandic = 1039, + wdIgbo = 1136, + wdIndonesian = 1057, + wdInuktitut = 1117, + wdItalian = 1040, + wdJapanese = 1041, + wdKannada = 1099, + wdKanuri = 1137, + wdKashmiri = 1120, + wdKazakh = 1087, + wdKhmer = 1107, + wdKirghiz = 1088, + wdKonkani = 1111, + wdKorean = 1042, + wdKyrgyz = 1088, + wdLanguageNone = 0, + wdLao = 1108, + wdLatin = 1142, + wdLatvian = 1062, + wdLithuanian = 1063, + wdMacedonianFYROM = 1071, + wdMalayalam = 1100, + wdMalayBruneiDarussalam = 2110, + wdMalaysian = 1086, + wdMaltese = 1082, + wdManipuri = 1112, + wdMarathi = 1102, + wdMexicanSpanish = 2058, + wdMongolian = 1104, + wdNepali = 1121, + wdNoProofing = 1024, + wdNorwegianBokmol = 1044, + wdNorwegianNynorsk = 2068, + wdOriya = 1096, + wdOromo = 1138, + wdPashto = 1123, + wdPersian = 1065, + wdPolish = 1045, + wdPortuguese = 2070, + wdPortugueseBrazil = 1046, + wdPunjabi = 1094, + wdRhaetoRomanic = 1047, + wdRomanian = 1048, + wdRomanianMoldova = 2072, + wdRussian = 1049, + wdRussianMoldova = 2073, + wdSamiLappish = 1083, + wdSanskrit = 1103, + wdSerbianCyrillic = 3098, + wdSerbianLatin = 2074, + wdSesotho = 1072, + wdSimplifiedChinese = 2052, + wdSindhi = 1113, + wdSindhiPakistan = 2137, + wdSinhalese = 1115, + wdSlovak = 1051, + wdSlovenian = 1060, + wdSomali = 1143, + wdSorbian = 1070, + wdSpanish = 1034, + wdSpanishArgentina = 11274, + wdSpanishBolivia = 16394, + wdSpanishChile = 13322, + wdSpanishColombia = 9226, + wdSpanishCostaRica = 5130, + wdSpanishDominicanRepublic = 7178, + wdSpanishEcuador = 12298, + wdSpanishElSalvador = 17418, + wdSpanishGuatemala = 4106, + wdSpanishHonduras = 18442, + wdSpanishModernSort = 3082, + wdSpanishNicaragua = 19466, + wdSpanishPanama = 6154, + wdSpanishParaguay = 15370, + wdSpanishPeru = 10250, + wdSpanishPuertoRico = 20490, + wdSpanishUruguay = 14346, + wdSpanishVenezuela = 8202, + wdSutu = 1072, + wdSwahili = 1089, + wdSwedish = 1053, + wdSwedishFinland = 2077, + wdSwissFrench = 4108, + wdSwissGerman = 2055, + wdSwissItalian = 2064, + wdSyriac = 1114, + wdTajik = 1064, + wdTamazight = 1119, + wdTamazightLatin = 2143, + wdTamil = 1097, + wdTatar = 1092, + wdTelugu = 1098, + wdThai = 1054, + wdTibetan = 1105, + wdTigrignaEritrea = 2163, + wdTigrignaEthiopic = 1139, + wdTraditionalChinese = 1028, + wdTsonga = 1073, + wdTswana = 1074, + wdTurkish = 1055, + wdTurkmen = 1090, + wdUkrainian = 1058, + wdUrdu = 1056, + wdUzbekCyrillic = 2115, + wdUzbekLatin = 1091, + wdVenda = 1075, + wdVietnamese = 1066, + wdWelsh = 1106, + wdXhosa = 1076, + wdYi = 1144, + wdYiddish = 1085, + wdYoruba = 1130, + wdZulu = 1077, + } + + const enum WdLanguageID2000 { + wdChineseHongKong = 3076, + wdChineseMacao = 5124, + wdEnglishTrinidad = 11273, + } + + const enum WdLayoutMode { + wdLayoutModeDefault = 0, + wdLayoutModeGenko = 3, + wdLayoutModeGrid = 1, + wdLayoutModeLineGrid = 2, + } + + const enum WdLetterheadLocation { + wdLetterBottom = 1, + wdLetterLeft = 2, + wdLetterRight = 3, + wdLetterTop = 0, + } + + const enum WdLetterStyle { + wdFullBlock = 0, + wdModifiedBlock = 1, + wdSemiBlock = 2, + } + + const enum WdLigatures { + wdLigaturesAll = 15, + wdLigaturesContextual = 2, + wdLigaturesContextualDiscretional = 10, + wdLigaturesContextualHistorical = 6, + wdLigaturesContextualHistoricalDiscretional = 14, + wdLigaturesDiscretional = 8, + wdLigaturesHistorical = 4, + wdLigaturesHistoricalDiscretional = 12, + wdLigaturesNone = 0, + wdLigaturesStandard = 1, + wdLigaturesStandardContextual = 3, + wdLigaturesStandardContextualDiscretional = 11, + wdLigaturesStandardContextualHistorical = 7, + wdLigaturesStandardDiscretional = 9, + wdLigaturesStandardHistorical = 5, + wdLigaturesStandardHistoricalDiscretional = 13, + } + + const enum WdLineEndingType { + wdCRLF = 0, + wdCROnly = 1, + wdLFCR = 3, + wdLFOnly = 2, + wdLSPS = 4, + } + + const enum WdLineSpacing { + wdLineSpace1pt5 = 1, + wdLineSpaceAtLeast = 3, + wdLineSpaceDouble = 2, + wdLineSpaceExactly = 4, + wdLineSpaceMultiple = 5, + wdLineSpaceSingle = 0, + } + + const enum WdLineStyle { + wdLineStyleDashDot = 5, + wdLineStyleDashDotDot = 6, + wdLineStyleDashDotStroked = 20, + wdLineStyleDashLargeGap = 4, + wdLineStyleDashSmallGap = 3, + wdLineStyleDot = 2, + wdLineStyleDouble = 7, + wdLineStyleDoubleWavy = 19, + wdLineStyleEmboss3D = 21, + wdLineStyleEngrave3D = 22, + wdLineStyleInset = 24, + wdLineStyleNone = 0, + wdLineStyleOutset = 23, + wdLineStyleSingle = 1, + wdLineStyleSingleWavy = 18, + wdLineStyleThickThinLargeGap = 16, + wdLineStyleThickThinMedGap = 13, + wdLineStyleThickThinSmallGap = 10, + wdLineStyleThinThickLargeGap = 15, + wdLineStyleThinThickMedGap = 12, + wdLineStyleThinThickSmallGap = 9, + wdLineStyleThinThickThinLargeGap = 17, + wdLineStyleThinThickThinMedGap = 14, + wdLineStyleThinThickThinSmallGap = 11, + wdLineStyleTriple = 8, + } + + const enum WdLineType { + wdTableRow = 1, + wdTextLine = 0, + } + + const enum WdLineWidth { + wdLineWidth025pt = 2, + wdLineWidth050pt = 4, + wdLineWidth075pt = 6, + wdLineWidth100pt = 8, + wdLineWidth150pt = 12, + wdLineWidth225pt = 18, + wdLineWidth300pt = 24, + wdLineWidth450pt = 36, + wdLineWidth600pt = 48, + } + + const enum WdLinkType { + wdLinkTypeChart = 8, + wdLinkTypeDDE = 6, + wdLinkTypeDDEAuto = 7, + wdLinkTypeImport = 5, + wdLinkTypeInclude = 4, + wdLinkTypeOLE = 0, + wdLinkTypePicture = 1, + wdLinkTypeReference = 3, + wdLinkTypeText = 2, + } + + const enum WdListApplyTo { + wdListApplyToSelection = 2, + wdListApplyToThisPointForward = 1, + wdListApplyToWholeList = 0, + } + + const enum WdListGalleryType { + wdBulletGallery = 1, + wdNumberGallery = 2, + wdOutlineNumberGallery = 3, + } + + const enum WdListLevelAlignment { + wdListLevelAlignCenter = 1, + wdListLevelAlignLeft = 0, + wdListLevelAlignRight = 2, + } + + const enum WdListNumberStyle { + wdListNumberStyleAiueo = 20, + wdListNumberStyleAiueoHalfWidth = 12, + wdListNumberStyleArabic = 0, + wdListNumberStyleArabic1 = 46, + wdListNumberStyleArabic2 = 48, + wdListNumberStyleArabicFullWidth = 14, + wdListNumberStyleArabicLZ = 22, + wdListNumberStyleArabicLZ2 = 62, + wdListNumberStyleArabicLZ3 = 63, + wdListNumberStyleArabicLZ4 = 64, + wdListNumberStyleBullet = 23, + wdListNumberStyleCardinalText = 6, + wdListNumberStyleChosung = 25, + wdListNumberStyleGanada = 24, + wdListNumberStyleGBNum1 = 26, + wdListNumberStyleGBNum2 = 27, + wdListNumberStyleGBNum3 = 28, + wdListNumberStyleGBNum4 = 29, + wdListNumberStyleHangul = 43, + wdListNumberStyleHanja = 44, + wdListNumberStyleHanjaRead = 41, + wdListNumberStyleHanjaReadDigit = 42, + wdListNumberStyleHebrew1 = 45, + wdListNumberStyleHebrew2 = 47, + wdListNumberStyleHindiArabic = 51, + wdListNumberStyleHindiCardinalText = 52, + wdListNumberStyleHindiLetter1 = 49, + wdListNumberStyleHindiLetter2 = 50, + wdListNumberStyleIroha = 21, + wdListNumberStyleIrohaHalfWidth = 13, + wdListNumberStyleKanji = 10, + wdListNumberStyleKanjiDigit = 11, + wdListNumberStyleKanjiTraditional = 16, + wdListNumberStyleKanjiTraditional2 = 17, + wdListNumberStyleLegal = 253, + wdListNumberStyleLegalLZ = 254, + wdListNumberStyleLowercaseBulgarian = 67, + wdListNumberStyleLowercaseGreek = 60, + wdListNumberStyleLowercaseLetter = 4, + wdListNumberStyleLowercaseRoman = 2, + wdListNumberStyleLowercaseRussian = 58, + wdListNumberStyleLowercaseTurkish = 65, + wdListNumberStyleNone = 255, + wdListNumberStyleNumberInCircle = 18, + wdListNumberStyleOrdinal = 5, + wdListNumberStyleOrdinalText = 7, + wdListNumberStylePictureBullet = 249, + wdListNumberStyleSimpChinNum1 = 37, + wdListNumberStyleSimpChinNum2 = 38, + wdListNumberStyleSimpChinNum3 = 39, + wdListNumberStyleSimpChinNum4 = 40, + wdListNumberStyleThaiArabic = 54, + wdListNumberStyleThaiCardinalText = 55, + wdListNumberStyleThaiLetter = 53, + wdListNumberStyleTradChinNum1 = 33, + wdListNumberStyleTradChinNum2 = 34, + wdListNumberStyleTradChinNum3 = 35, + wdListNumberStyleTradChinNum4 = 36, + wdListNumberStyleUppercaseBulgarian = 68, + wdListNumberStyleUppercaseGreek = 61, + wdListNumberStyleUppercaseLetter = 3, + wdListNumberStyleUppercaseRoman = 1, + wdListNumberStyleUppercaseRussian = 59, + wdListNumberStyleUppercaseTurkish = 66, + wdListNumberStyleVietCardinalText = 56, + wdListNumberStyleZodiac1 = 30, + wdListNumberStyleZodiac2 = 31, + wdListNumberStyleZodiac3 = 32, + } + + const enum WdListNumberStyleHID { + emptyenum = 0, + } + + const enum WdListType { + wdListBullet = 2, + wdListListNumOnly = 1, + wdListMixedNumbering = 5, + wdListNoNumbering = 0, + wdListOutlineNumbering = 4, + wdListPictureBullet = 6, + wdListSimpleNumbering = 3, + } + + const enum WdLockType { + wdLockChanged = 3, + wdLockEphemeral = 2, + wdLockNone = 0, + wdLockReservation = 1, + } + + const enum WdMailerPriority { + wdPriorityHigh = 3, + wdPriorityLow = 2, + wdPriorityNormal = 1, + } + + const enum WdMailMergeActiveRecord { + wdFirstDataSourceRecord = -6, + wdFirstRecord = -4, + wdLastDataSourceRecord = -7, + wdLastRecord = -5, + wdNextDataSourceRecord = -8, + wdNextRecord = -2, + wdNoActiveRecord = -1, + wdPreviousDataSourceRecord = -9, + wdPreviousRecord = -3, + } + + const enum WdMailMergeComparison { + wdMergeIfEqual = 0, + wdMergeIfGreaterThan = 3, + wdMergeIfGreaterThanOrEqual = 5, + wdMergeIfIsBlank = 6, + wdMergeIfIsNotBlank = 7, + wdMergeIfLessThan = 2, + wdMergeIfLessThanOrEqual = 4, + wdMergeIfNotEqual = 1, + } + + const enum WdMailMergeDataSource { + wdMergeInfoFromAccessDDE = 1, + wdMergeInfoFromExcelDDE = 2, + wdMergeInfoFromMSQueryDDE = 3, + wdMergeInfoFromODBC = 4, + wdMergeInfoFromODSO = 5, + wdMergeInfoFromWord = 0, + wdNoMergeInfo = -1, + } + + const enum WdMailMergeDefaultRecord { + wdDefaultFirstRecord = 1, + wdDefaultLastRecord = -16, + } + + const enum WdMailMergeDestination { + wdSendToEmail = 2, + wdSendToFax = 3, + wdSendToNewDocument = 0, + wdSendToPrinter = 1, + } + + const enum WdMailMergeMailFormat { + wdMailFormatHTML = 1, + wdMailFormatPlainText = 0, + } + + const enum WdMailMergeMainDocType { + wdCatalog = 3, + wdDirectory = 3, + wdEMail = 4, + wdEnvelopes = 2, + wdFax = 5, + wdFormLetters = 0, + wdMailingLabels = 1, + wdNotAMergeDocument = -1, + } + + const enum WdMailMergeState { + wdDataSource = 5, + wdMainAndDataSource = 2, + wdMainAndHeader = 3, + wdMainAndSourceAndHeader = 4, + wdMainDocumentOnly = 1, + wdNormalDocument = 0, + } + + const enum WdMailSystem { + wdMAPI = 1, + wdMAPIandPowerTalk = 3, + wdNoMailSystem = 0, + wdPowerTalk = 2, + } + + const enum WdMappedDataFields { + wdAddress1 = 10, + wdAddress2 = 11, + wdAddress3 = 29, + wdBusinessFax = 17, + wdBusinessPhone = 16, + wdCity = 12, + wdCompany = 9, + wdCountryRegion = 15, + wdCourtesyTitle = 2, + wdDepartment = 30, + wdEmailAddress = 20, + wdFirstName = 3, + wdHomeFax = 19, + wdHomePhone = 18, + wdJobTitle = 8, + wdLastName = 5, + wdMiddleName = 4, + wdNickname = 7, + wdPostalCode = 14, + wdRubyFirstName = 27, + wdRubyLastName = 28, + wdSpouseCourtesyTitle = 22, + wdSpouseFirstName = 23, + wdSpouseLastName = 25, + wdSpouseMiddleName = 24, + wdSpouseNickname = 26, + wdState = 13, + wdSuffix = 6, + wdUniqueIdentifier = 1, + wdWebPageURL = 21, + } + + const enum WdMeasurementUnits { + wdCentimeters = 1, + wdInches = 0, + wdMillimeters = 2, + wdPicas = 4, + wdPoints = 3, + } + + const enum WdMeasurementUnitsHID { + emptyenum = 0, + } + + const enum WdMergeFormatFrom { + wdMergeFormatFromOriginal = 0, + wdMergeFormatFromPrompt = 2, + wdMergeFormatFromRevised = 1, + } + + const enum WdMergeSubType { + wdMergeSubTypeAccess = 1, + wdMergeSubTypeOAL = 2, + wdMergeSubTypeOLEDBText = 5, + wdMergeSubTypeOLEDBWord = 3, + wdMergeSubTypeOther = 0, + wdMergeSubTypeOutlook = 6, + wdMergeSubTypeWord = 7, + wdMergeSubTypeWord2000 = 8, + wdMergeSubTypeWorks = 4, + } + + const enum WdMergeTarget { + wdMergeTargetCurrent = 1, + wdMergeTargetNew = 2, + wdMergeTargetSelected = 0, + } + + const enum WdMonthNames { + wdMonthNamesArabic = 0, + wdMonthNamesEnglish = 1, + wdMonthNamesFrench = 2, + } + + const enum WdMoveFromTextMark { + wdMoveFromTextMarkBold = 6, + wdMoveFromTextMarkCaret = 3, + wdMoveFromTextMarkColorOnly = 10, + wdMoveFromTextMarkDoubleStrikeThrough = 1, + wdMoveFromTextMarkDoubleUnderline = 9, + wdMoveFromTextMarkHidden = 0, + wdMoveFromTextMarkItalic = 7, + wdMoveFromTextMarkNone = 5, + wdMoveFromTextMarkPound = 4, + wdMoveFromTextMarkStrikeThrough = 2, + wdMoveFromTextMarkUnderline = 8, + } + + const enum WdMovementType { + wdExtend = 1, + wdMove = 0, + } + + const enum WdMoveToTextMark { + wdMoveToTextMarkBold = 1, + wdMoveToTextMarkColorOnly = 5, + wdMoveToTextMarkDoubleStrikeThrough = 7, + wdMoveToTextMarkDoubleUnderline = 4, + wdMoveToTextMarkItalic = 2, + wdMoveToTextMarkNone = 0, + wdMoveToTextMarkStrikeThrough = 6, + wdMoveToTextMarkUnderline = 3, + } + + const enum WdMultipleWordConversionsMode { + wdHangulToHanja = 0, + wdHanjaToHangul = 1, + } + + const enum WdNewDocumentType { + wdNewBlankDocument = 0, + wdNewEmailMessage = 2, + wdNewFrameset = 3, + wdNewWebPage = 1, + wdNewXMLDocument = 4, + } + + const enum WdNoteNumberStyle { + wdNoteNumberStyleArabic = 0, + wdNoteNumberStyleArabicFullWidth = 14, + wdNoteNumberStyleArabicLetter1 = 46, + wdNoteNumberStyleArabicLetter2 = 48, + wdNoteNumberStyleHanjaRead = 41, + wdNoteNumberStyleHanjaReadDigit = 42, + wdNoteNumberStyleHebrewLetter1 = 45, + wdNoteNumberStyleHebrewLetter2 = 47, + wdNoteNumberStyleHindiArabic = 51, + wdNoteNumberStyleHindiCardinalText = 52, + wdNoteNumberStyleHindiLetter1 = 49, + wdNoteNumberStyleHindiLetter2 = 50, + wdNoteNumberStyleKanji = 10, + wdNoteNumberStyleKanjiDigit = 11, + wdNoteNumberStyleKanjiTraditional = 16, + wdNoteNumberStyleLowercaseLetter = 4, + wdNoteNumberStyleLowercaseRoman = 2, + wdNoteNumberStyleNumberInCircle = 18, + wdNoteNumberStyleSimpChinNum1 = 37, + wdNoteNumberStyleSimpChinNum2 = 38, + wdNoteNumberStyleSymbol = 9, + wdNoteNumberStyleThaiArabic = 54, + wdNoteNumberStyleThaiCardinalText = 55, + wdNoteNumberStyleThaiLetter = 53, + wdNoteNumberStyleTradChinNum1 = 33, + wdNoteNumberStyleTradChinNum2 = 34, + wdNoteNumberStyleUppercaseLetter = 3, + wdNoteNumberStyleUppercaseRoman = 1, + wdNoteNumberStyleVietCardinalText = 56, + } + + const enum WdNoteNumberStyleHID { + emptyenum = 0, + } + + const enum WdNumberForm { + wdNumberFormDefault = 0, + wdNumberFormLining = 1, + wdNumberFormOldStyle = 2, + } + + const enum WdNumberingRule { + wdRestartContinuous = 0, + wdRestartPage = 2, + wdRestartSection = 1, + } + + const enum WdNumberSpacing { + wdNumberSpacingDefault = 0, + wdNumberSpacingProportional = 1, + wdNumberSpacingTabular = 2, + } + + const enum WdNumberStyleWordBasicBiDi { + wdCaptionNumberStyleBidiLetter1 = 49, + wdCaptionNumberStyleBidiLetter2 = 50, + wdListNumberStyleBidi1 = 49, + wdListNumberStyleBidi2 = 50, + wdNoteNumberStyleBidiLetter1 = 49, + wdNoteNumberStyleBidiLetter2 = 50, + wdPageNumberStyleBidiLetter1 = 49, + wdPageNumberStyleBidiLetter2 = 50, + } + + const enum WdNumberType { + wdNumberAllNumbers = 3, + wdNumberListNum = 2, + wdNumberParagraph = 1, + } + + const enum WdOLEPlacement { + wdFloatOverText = 1, + wdInLine = 0, + } + + const enum WdOLEType { + wdOLEControl = 2, + wdOLEEmbed = 1, + wdOLELink = 0, + } + + const enum WdOLEVerb { + wdOLEVerbDiscardUndoState = -6, + wdOLEVerbHide = -3, + wdOLEVerbInPlaceActivate = -5, + wdOLEVerbOpen = -2, + wdOLEVerbPrimary = 0, + wdOLEVerbShow = -1, + wdOLEVerbUIActivate = -4, + } + + const enum WdOMathBreakBin { + wdOMathBreakBinAfter = 1, + wdOMathBreakBinBefore = 0, + wdOMathBreakBinRepeat = 2, + } + + const enum WdOMathBreakSub { + wdOMathBreakSubMinusMinus = 0, + wdOMathBreakSubMinusPlus = 2, + wdOMathBreakSubPlusMinus = 1, + } + + const enum WdOMathFracType { + wdOMathFracBar = 0, + wdOMathFracLin = 3, + wdOMathFracNoBar = 1, + wdOMathFracSkw = 2, + } + + const enum WdOMathFunctionType { + wdOMathFunctionAcc = 1, + wdOMathFunctionBar = 2, + wdOMathFunctionBorderBox = 4, + wdOMathFunctionBox = 3, + wdOMathFunctionDelim = 5, + wdOMathFunctionEqArray = 6, + wdOMathFunctionFrac = 7, + wdOMathFunctionFunc = 8, + wdOMathFunctionGroupChar = 9, + wdOMathFunctionLimLow = 10, + wdOMathFunctionLimUpp = 11, + wdOMathFunctionLiteralText = 22, + wdOMathFunctionMat = 12, + wdOMathFunctionNary = 13, + wdOMathFunctionNormalText = 21, + wdOMathFunctionPhantom = 14, + wdOMathFunctionRad = 16, + wdOMathFunctionScrPre = 15, + wdOMathFunctionScrSub = 17, + wdOMathFunctionScrSubSup = 18, + wdOMathFunctionScrSup = 19, + wdOMathFunctionText = 20, + } + + const enum WdOMathHorizAlignType { + wdOMathHorizAlignCenter = 0, + wdOMathHorizAlignLeft = 1, + wdOMathHorizAlignRight = 2, + } + + const enum WdOMathJc { + wdOMathJcCenter = 2, + wdOMathJcCenterGroup = 1, + wdOMathJcInline = 7, + wdOMathJcLeft = 3, + wdOMathJcRight = 4, + } + + const enum WdOMathShapeType { + wdOMathShapeCentered = 0, + wdOMathShapeMatch = 1, + } + + const enum WdOMathSpacingRule { + wdOMathSpacing1pt5 = 1, + wdOMathSpacingDouble = 2, + wdOMathSpacingExactly = 3, + wdOMathSpacingMultiple = 4, + wdOMathSpacingSingle = 0, + } + + const enum WdOMathType { + wdOMathDisplay = 0, + wdOMathInline = 1, + } + + const enum WdOMathVertAlignType { + wdOMathVertAlignBottom = 2, + wdOMathVertAlignCenter = 0, + wdOMathVertAlignTop = 1, + } + + const enum WdOpenFormat { + wdOpenFormatAllWord = 6, + wdOpenFormatAllWordTemplates = 13, + wdOpenFormatAuto = 0, + wdOpenFormatDocument = 1, + wdOpenFormatDocument97 = 1, + wdOpenFormatEncodedText = 5, + wdOpenFormatOpenDocumentText = 18, + wdOpenFormatRTF = 3, + wdOpenFormatTemplate = 2, + wdOpenFormatTemplate97 = 2, + wdOpenFormatText = 4, + wdOpenFormatUnicodeText = 5, + wdOpenFormatWebPages = 7, + wdOpenFormatXML = 8, + wdOpenFormatXMLDocument = 9, + wdOpenFormatXMLDocumentMacroEnabled = 10, + wdOpenFormatXMLDocumentMacroEnabledSerialized = 15, + wdOpenFormatXMLDocumentSerialized = 14, + wdOpenFormatXMLTemplate = 11, + wdOpenFormatXMLTemplateMacroEnabled = 12, + wdOpenFormatXMLTemplateMacroEnabledSerialized = 17, + wdOpenFormatXMLTemplateSerialized = 16, + } + + const enum WdOrganizerObject { + wdOrganizerObjectAutoText = 1, + wdOrganizerObjectCommandBars = 2, + wdOrganizerObjectProjectItems = 3, + wdOrganizerObjectStyles = 0, + } + + const enum WdOrientation { + wdOrientLandscape = 1, + wdOrientPortrait = 0, + } + + const enum WdOriginalFormat { + wdOriginalDocumentFormat = 1, + wdPromptUser = 2, + wdWordDocument = 0, + } + + const enum WdOutlineLevel { + wdOutlineLevel1 = 1, + wdOutlineLevel2 = 2, + wdOutlineLevel3 = 3, + wdOutlineLevel4 = 4, + wdOutlineLevel5 = 5, + wdOutlineLevel6 = 6, + wdOutlineLevel7 = 7, + wdOutlineLevel8 = 8, + wdOutlineLevel9 = 9, + wdOutlineLevelBodyText = 10, + } + + const enum WdPageBorderArt { + wdArtApples = 1, + wdArtArchedScallops = 97, + wdArtBabyPacifier = 70, + wdArtBabyRattle = 71, + wdArtBalloons3Colors = 11, + wdArtBalloonsHotAir = 12, + wdArtBasicBlackDashes = 155, + wdArtBasicBlackDots = 156, + wdArtBasicBlackSquares = 154, + wdArtBasicThinLines = 151, + wdArtBasicWhiteDashes = 152, + wdArtBasicWhiteDots = 147, + wdArtBasicWhiteSquares = 153, + wdArtBasicWideInline = 150, + wdArtBasicWideMidline = 148, + wdArtBasicWideOutline = 149, + wdArtBats = 37, + wdArtBirds = 102, + wdArtBirdsFlight = 35, + wdArtCabins = 72, + wdArtCakeSlice = 3, + wdArtCandyCorn = 4, + wdArtCelticKnotwork = 99, + wdArtCertificateBanner = 158, + wdArtChainLink = 128, + wdArtChampagneBottle = 6, + wdArtCheckedBarBlack = 145, + wdArtCheckedBarColor = 61, + wdArtCheckered = 144, + wdArtChristmasTree = 8, + wdArtCirclesLines = 91, + wdArtCirclesRectangles = 140, + wdArtClassicalWave = 56, + wdArtClocks = 27, + wdArtCompass = 54, + wdArtConfetti = 31, + wdArtConfettiGrays = 115, + wdArtConfettiOutline = 116, + wdArtConfettiStreamers = 14, + wdArtConfettiWhite = 117, + wdArtCornerTriangles = 141, + wdArtCouponCutoutDashes = 163, + wdArtCouponCutoutDots = 164, + wdArtCrazyMaze = 100, + wdArtCreaturesButterfly = 32, + wdArtCreaturesFish = 34, + wdArtCreaturesInsects = 142, + wdArtCreaturesLadyBug = 33, + wdArtCrossStitch = 138, + wdArtCup = 67, + wdArtDecoArch = 89, + wdArtDecoArchColor = 50, + wdArtDecoBlocks = 90, + wdArtDiamondsGray = 88, + wdArtDoubleD = 55, + wdArtDoubleDiamonds = 127, + wdArtEarth1 = 22, + wdArtEarth2 = 21, + wdArtEclipsingSquares1 = 101, + wdArtEclipsingSquares2 = 86, + wdArtEggsBlack = 66, + wdArtFans = 51, + wdArtFilm = 52, + wdArtFirecrackers = 28, + wdArtFlowersBlockPrint = 49, + wdArtFlowersDaisies = 48, + wdArtFlowersModern1 = 45, + wdArtFlowersModern2 = 44, + wdArtFlowersPansy = 43, + wdArtFlowersRedRose = 39, + wdArtFlowersRoses = 38, + wdArtFlowersTeacup = 103, + wdArtFlowersTiny = 42, + wdArtGems = 139, + wdArtGingerbreadMan = 69, + wdArtGradient = 122, + wdArtHandmade1 = 159, + wdArtHandmade2 = 160, + wdArtHeartBalloon = 16, + wdArtHeartGray = 68, + wdArtHearts = 15, + wdArtHeebieJeebies = 120, + wdArtHolly = 41, + wdArtHouseFunky = 73, + wdArtHypnotic = 87, + wdArtIceCreamCones = 5, + wdArtLightBulb = 121, + wdArtLightning1 = 53, + wdArtLightning2 = 119, + wdArtMapleLeaf = 81, + wdArtMapleMuffins = 2, + wdArtMapPins = 30, + wdArtMarquee = 146, + wdArtMarqueeToothed = 131, + wdArtMoons = 125, + wdArtMosaic = 118, + wdArtMusicNotes = 79, + wdArtNorthwest = 104, + wdArtOvals = 126, + wdArtPackages = 26, + wdArtPalmsBlack = 80, + wdArtPalmsColor = 10, + wdArtPaperClips = 82, + wdArtPapyrus = 92, + wdArtPartyFavor = 13, + wdArtPartyGlass = 7, + wdArtPencils = 25, + wdArtPeople = 84, + wdArtPeopleHats = 23, + wdArtPeopleWaving = 85, + wdArtPoinsettias = 40, + wdArtPostageStamp = 135, + wdArtPumpkin1 = 65, + wdArtPushPinNote1 = 63, + wdArtPushPinNote2 = 64, + wdArtPyramids = 113, + wdArtPyramidsAbove = 114, + wdArtQuadrants = 60, + wdArtRings = 29, + wdArtSafari = 98, + wdArtSawtooth = 133, + wdArtSawtoothGray = 134, + wdArtScaredCat = 36, + wdArtSeattle = 78, + wdArtShadowedSquares = 57, + wdArtSharksTeeth = 132, + wdArtShorebirdTracks = 83, + wdArtSkyrocket = 77, + wdArtSnowflakeFancy = 76, + wdArtSnowflakes = 75, + wdArtSombrero = 24, + wdArtSouthwest = 105, + wdArtStars = 19, + wdArtStars3D = 17, + wdArtStarsBlack = 74, + wdArtStarsShadowed = 18, + wdArtStarsTop = 157, + wdArtSun = 20, + wdArtSwirligig = 62, + wdArtTornPaper = 161, + wdArtTornPaperBlack = 162, + wdArtTrees = 9, + wdArtTriangleParty = 123, + wdArtTriangles = 129, + wdArtTribal1 = 130, + wdArtTribal2 = 109, + wdArtTribal3 = 108, + wdArtTribal4 = 107, + wdArtTribal5 = 110, + wdArtTribal6 = 106, + wdArtTwistedLines1 = 58, + wdArtTwistedLines2 = 124, + wdArtVine = 47, + wdArtWaveline = 59, + wdArtWeavingAngles = 96, + wdArtWeavingBraid = 94, + wdArtWeavingRibbon = 95, + wdArtWeavingStrips = 136, + wdArtWhiteFlowers = 46, + wdArtWoodwork = 93, + wdArtXIllusions = 111, + wdArtZanyTriangles = 112, + wdArtZigZag = 137, + wdArtZigZagStitch = 143, + } + + const enum WdPageFit { + wdPageFitBestFit = 2, + wdPageFitFullPage = 1, + wdPageFitNone = 0, + wdPageFitTextFit = 3, + } + + const enum WdPageNumberAlignment { + wdAlignPageNumberCenter = 1, + wdAlignPageNumberInside = 3, + wdAlignPageNumberLeft = 0, + wdAlignPageNumberOutside = 4, + wdAlignPageNumberRight = 2, + } + + const enum WdPageNumberStyle { + wdPageNumberStyleArabic = 0, + wdPageNumberStyleArabicFullWidth = 14, + wdPageNumberStyleArabicLetter1 = 46, + wdPageNumberStyleArabicLetter2 = 48, + wdPageNumberStyleHanjaRead = 41, + wdPageNumberStyleHanjaReadDigit = 42, + wdPageNumberStyleHebrewLetter1 = 45, + wdPageNumberStyleHebrewLetter2 = 47, + wdPageNumberStyleHindiArabic = 51, + wdPageNumberStyleHindiCardinalText = 52, + wdPageNumberStyleHindiLetter1 = 49, + wdPageNumberStyleHindiLetter2 = 50, + wdPageNumberStyleKanji = 10, + wdPageNumberStyleKanjiDigit = 11, + wdPageNumberStyleKanjiTraditional = 16, + wdPageNumberStyleLowercaseLetter = 4, + wdPageNumberStyleLowercaseRoman = 2, + wdPageNumberStyleNumberInCircle = 18, + wdPageNumberStyleNumberInDash = 57, + wdPageNumberStyleSimpChinNum1 = 37, + wdPageNumberStyleSimpChinNum2 = 38, + wdPageNumberStyleThaiArabic = 54, + wdPageNumberStyleThaiCardinalText = 55, + wdPageNumberStyleThaiLetter = 53, + wdPageNumberStyleTradChinNum1 = 33, + wdPageNumberStyleTradChinNum2 = 34, + wdPageNumberStyleUppercaseLetter = 3, + wdPageNumberStyleUppercaseRoman = 1, + wdPageNumberStyleVietCardinalText = 56, + } + + const enum WdPageNumberStyleHID { + emptyenum = 0, + } + + const enum WdPaperSize { + wdPaper10x14 = 0, + wdPaper11x17 = 1, + wdPaperA3 = 6, + wdPaperA4 = 7, + wdPaperA4Small = 8, + wdPaperA5 = 9, + wdPaperB4 = 10, + wdPaperB5 = 11, + wdPaperCSheet = 12, + wdPaperCustom = 41, + wdPaperDSheet = 13, + wdPaperEnvelope10 = 25, + wdPaperEnvelope11 = 26, + wdPaperEnvelope12 = 27, + wdPaperEnvelope14 = 28, + wdPaperEnvelope9 = 24, + wdPaperEnvelopeB4 = 29, + wdPaperEnvelopeB5 = 30, + wdPaperEnvelopeB6 = 31, + wdPaperEnvelopeC3 = 32, + wdPaperEnvelopeC4 = 33, + wdPaperEnvelopeC5 = 34, + wdPaperEnvelopeC6 = 35, + wdPaperEnvelopeC65 = 36, + wdPaperEnvelopeDL = 37, + wdPaperEnvelopeItaly = 38, + wdPaperEnvelopeMonarch = 39, + wdPaperEnvelopePersonal = 40, + wdPaperESheet = 14, + wdPaperExecutive = 5, + wdPaperFanfoldLegalGerman = 15, + wdPaperFanfoldStdGerman = 16, + wdPaperFanfoldUS = 17, + wdPaperFolio = 18, + wdPaperLedger = 19, + wdPaperLegal = 4, + wdPaperLetter = 2, + wdPaperLetterSmall = 3, + wdPaperNote = 20, + wdPaperQuarto = 21, + wdPaperStatement = 22, + wdPaperTabloid = 23, + } + + const enum WdPaperTray { + wdPrinterAutomaticSheetFeed = 7, + wdPrinterDefaultBin = 0, + wdPrinterEnvelopeFeed = 5, + wdPrinterFormSource = 15, + wdPrinterLargeCapacityBin = 11, + wdPrinterLargeFormatBin = 10, + wdPrinterLowerBin = 2, + wdPrinterManualEnvelopeFeed = 6, + wdPrinterManualFeed = 4, + wdPrinterMiddleBin = 3, + wdPrinterOnlyBin = 1, + wdPrinterPaperCassette = 14, + wdPrinterSmallFormatBin = 9, + wdPrinterTractorFeed = 8, + wdPrinterUpperBin = 1, + } + + const enum WdParagraphAlignment { + wdAlignParagraphCenter = 1, + wdAlignParagraphDistribute = 4, + wdAlignParagraphJustify = 3, + wdAlignParagraphJustifyHi = 7, + wdAlignParagraphJustifyLow = 8, + wdAlignParagraphJustifyMed = 5, + wdAlignParagraphLeft = 0, + wdAlignParagraphRight = 2, + wdAlignParagraphThaiJustify = 9, + } + + const enum WdParagraphAlignmentHID { + emptyenum = 0, + } + + const enum WdPartOfSpeech { + wdAdjective = 0, + wdAdverb = 2, + wdConjunction = 5, + wdIdiom = 8, + wdInterjection = 7, + wdNoun = 1, + wdOther = 9, + wdPreposition = 6, + wdPronoun = 4, + wdVerb = 3, + } + + const enum WdPasteDataType { + wdPasteBitmap = 4, + wdPasteDeviceIndependentBitmap = 5, + wdPasteEnhancedMetafile = 9, + wdPasteHTML = 10, + wdPasteHyperlink = 7, + wdPasteMetafilePicture = 3, + wdPasteOLEObject = 0, + wdPasteRTF = 1, + wdPasteShape = 8, + wdPasteText = 2, + } + + const enum WdPasteOptions { + wdKeepSourceFormatting = 0, + wdKeepTextOnly = 2, + wdMatchDestinationFormatting = 1, + wdUseDestinationStyles = 3, + } + + const enum WdPhoneticGuideAlignmentType { + wdPhoneticGuideAlignmentCenter = 0, + wdPhoneticGuideAlignmentLeft = 3, + wdPhoneticGuideAlignmentOneTwoOne = 2, + wdPhoneticGuideAlignmentRight = 4, + wdPhoneticGuideAlignmentRightVertical = 5, + wdPhoneticGuideAlignmentZeroOneZero = 1, + } + + const enum WdPictureLinkType { + wdLinkDataInDoc = 1, + wdLinkDataOnDisk = 2, + wdLinkNone = 0, + } + + const enum WdPortugueseReform { + wdPortugueseBoth = 3, + wdPortuguesePostReform = 2, + wdPortuguesePreReform = 1, + } + + const enum WdPreferredWidthType { + wdPreferredWidthAuto = 1, + wdPreferredWidthPercent = 2, + wdPreferredWidthPoints = 3, + } + + const enum WdPrintOutItem { + wdPrintAutoTextEntries = 4, + wdPrintComments = 2, + wdPrintDocumentContent = 0, + wdPrintDocumentWithMarkup = 7, + wdPrintEnvelope = 6, + wdPrintKeyAssignments = 5, + wdPrintMarkup = 2, + wdPrintProperties = 1, + wdPrintStyles = 3, + } + + const enum WdPrintOutPages { + wdPrintAllPages = 0, + wdPrintEvenPagesOnly = 2, + wdPrintOddPagesOnly = 1, + } + + const enum WdPrintOutRange { + wdPrintAllDocument = 0, + wdPrintCurrentPage = 2, + wdPrintFromTo = 3, + wdPrintRangeOfPages = 4, + wdPrintSelection = 1, + } + + const enum WdProofreadingErrorType { + wdGrammaticalError = 1, + wdSpellingError = 0, + } + + const enum WdProtectedViewCloseReason { + wdProtectedViewCloseEdit = 1, + wdProtectedViewCloseForced = 2, + wdProtectedViewCloseNormal = 0, + } + + const enum WdProtectionType { + wdAllowOnlyComments = 1, + wdAllowOnlyFormFields = 2, + wdAllowOnlyReading = 3, + wdAllowOnlyRevisions = 0, + wdNoProtection = -1, + } + + const enum WdReadingLayoutMargin { + wdAutomaticMargin = 0, + wdFullMargin = 2, + wdSuppressMargin = 1, + } + + const enum WdReadingOrder { + wdReadingOrderLtr = 1, + wdReadingOrderRtl = 0, + } + + const enum WdRecoveryType { + wdChart = 14, + wdChartLinked = 15, + wdChartPicture = 13, + wdFormatOriginalFormatting = 16, + wdFormatPlainText = 22, + wdFormatSurroundingFormattingWithEmphasis = 20, + wdListCombineWithExistingList = 24, + wdListContinueNumbering = 7, + wdListDontMerge = 25, + wdListRestartNumbering = 8, + wdPasteDefault = 0, + wdSingleCellTable = 6, + wdSingleCellText = 5, + wdTableAppendTable = 10, + wdTableInsertAsRows = 11, + wdTableOriginalFormatting = 12, + wdTableOverwriteCells = 23, + wdUseDestinationStylesRecovery = 19, + } + + const enum WdRectangleType { + wdDocumentControlRectangle = 13, + wdLineBetweenColumnRectangle = 5, + wdMailNavArea = 12, + wdMarkupRectangle = 2, + wdMarkupRectangleArea = 8, + wdMarkupRectangleButton = 3, + wdMarkupRectangleMoveMatch = 10, + wdPageBorderRectangle = 4, + wdReadingModeNavigation = 9, + wdReadingModePanningArea = 11, + wdSelection = 6, + wdShapeRectangle = 1, + wdSystem = 7, + wdTextRectangle = 0, + } + + const enum WdReferenceKind { + wdContentText = -1, + wdEndnoteNumber = 6, + wdEndnoteNumberFormatted = 17, + wdEntireCaption = 2, + wdFootnoteNumber = 5, + wdFootnoteNumberFormatted = 16, + wdNumberFullContext = -4, + wdNumberNoContext = -3, + wdNumberRelativeContext = -2, + wdOnlyCaptionText = 4, + wdOnlyLabelAndNumber = 3, + wdPageNumber = 7, + wdPosition = 15, + } + + const enum WdReferenceType { + wdRefTypeBookmark = 2, + wdRefTypeEndnote = 4, + wdRefTypeFootnote = 3, + wdRefTypeHeading = 1, + wdRefTypeNumberedItem = 0, + } + + const enum WdRelativeHorizontalPosition { + wdRelativeHorizontalPositionCharacter = 3, + wdRelativeHorizontalPositionColumn = 2, + wdRelativeHorizontalPositionInnerMarginArea = 6, + wdRelativeHorizontalPositionLeftMarginArea = 4, + wdRelativeHorizontalPositionMargin = 0, + wdRelativeHorizontalPositionOuterMarginArea = 7, + wdRelativeHorizontalPositionPage = 1, + wdRelativeHorizontalPositionRightMarginArea = 5, + } + + const enum WdRelativeHorizontalSize { + wdRelativeHorizontalSizeInnerMarginArea = 4, + wdRelativeHorizontalSizeLeftMarginArea = 2, + wdRelativeHorizontalSizeMargin = 0, + wdRelativeHorizontalSizeOuterMarginArea = 5, + wdRelativeHorizontalSizePage = 1, + wdRelativeHorizontalSizeRightMarginArea = 3, + } + + const enum WdRelativeVerticalPosition { + wdRelativeVerticalPositionBottomMarginArea = 5, + wdRelativeVerticalPositionInnerMarginArea = 6, + wdRelativeVerticalPositionLine = 3, + wdRelativeVerticalPositionMargin = 0, + wdRelativeVerticalPositionOuterMarginArea = 7, + wdRelativeVerticalPositionPage = 1, + wdRelativeVerticalPositionParagraph = 2, + wdRelativeVerticalPositionTopMarginArea = 4, + } + + const enum WdRelativeVerticalSize { + wdRelativeVerticalSizeBottomMarginArea = 3, + wdRelativeVerticalSizeInnerMarginArea = 4, + wdRelativeVerticalSizeMargin = 0, + wdRelativeVerticalSizeOuterMarginArea = 5, + wdRelativeVerticalSizePage = 1, + wdRelativeVerticalSizeTopMarginArea = 2, + } + + const enum WdRelocate { + wdRelocateDown = 1, + wdRelocateUp = 0, + } + + const enum WdRemoveDocInfoType { + wdRDIAll = 99, + wdRDIComments = 1, + wdRDIContentType = 16, + wdRDIDocumentManagementPolicy = 15, + wdRDIDocumentProperties = 8, + wdRDIDocumentServerProperties = 14, + wdRDIDocumentWorkspace = 10, + wdRDIEmailHeader = 5, + wdRDIInkAnnotations = 11, + wdRDIRemovePersonalInformation = 4, + wdRDIRevisions = 2, + wdRDIRoutingSlip = 6, + wdRDISendForReview = 7, + wdRDITemplate = 9, + wdRDIVersions = 3, + } + + const enum WdReplace { + wdReplaceAll = 2, + wdReplaceNone = 0, + wdReplaceOne = 1, + } + + const enum WdRevisedLinesMark { + wdRevisedLinesMarkLeftBorder = 1, + wdRevisedLinesMarkNone = 0, + wdRevisedLinesMarkOutsideBorder = 3, + wdRevisedLinesMarkRightBorder = 2, + } + + const enum WdRevisedPropertiesMark { + wdRevisedPropertiesMarkBold = 1, + wdRevisedPropertiesMarkColorOnly = 5, + wdRevisedPropertiesMarkDoubleStrikeThrough = 7, + wdRevisedPropertiesMarkDoubleUnderline = 4, + wdRevisedPropertiesMarkItalic = 2, + wdRevisedPropertiesMarkNone = 0, + wdRevisedPropertiesMarkStrikeThrough = 6, + wdRevisedPropertiesMarkUnderline = 3, + } + + const enum WdRevisionsBalloonMargin { + wdLeftMargin = 0, + wdRightMargin = 1, + } + + const enum WdRevisionsBalloonPrintOrientation { + wdBalloonPrintOrientationAuto = 0, + wdBalloonPrintOrientationForceLandscape = 2, + wdBalloonPrintOrientationPreserve = 1, + } + + const enum WdRevisionsBalloonWidthType { + wdBalloonWidthPercent = 0, + wdBalloonWidthPoints = 1, + } + + const enum WdRevisionsMode { + wdBalloonRevisions = 0, + wdInLineRevisions = 1, + wdMixedRevisions = 2, + } + + const enum WdRevisionsView { + wdRevisionsViewFinal = 0, + wdRevisionsViewOriginal = 1, + } + + const enum WdRevisionsWrap { + wdWrapAlways = 1, + wdWrapAsk = 2, + wdWrapNever = 0, + } + + const enum WdRevisionType { + wdNoRevision = 0, + wdRevisionCellDeletion = 17, + wdRevisionCellInsertion = 16, + wdRevisionCellMerge = 18, + wdRevisionCellSplit = 19, + wdRevisionConflict = 7, + wdRevisionConflictDelete = 21, + wdRevisionConflictInsert = 20, + wdRevisionDelete = 2, + wdRevisionDisplayField = 5, + wdRevisionInsert = 1, + wdRevisionMovedFrom = 14, + wdRevisionMovedTo = 15, + wdRevisionParagraphNumber = 4, + wdRevisionParagraphProperty = 10, + wdRevisionProperty = 3, + wdRevisionReconcile = 6, + wdRevisionReplace = 9, + wdRevisionSectionProperty = 12, + wdRevisionStyle = 8, + wdRevisionStyleDefinition = 13, + wdRevisionTableProperty = 11, + } + + const enum WdRoutingSlipDelivery { + wdAllAtOnce = 1, + wdOneAfterAnother = 0, + } + + const enum WdRoutingSlipStatus { + wdNotYetRouted = 0, + wdRouteComplete = 2, + wdRouteInProgress = 1, + } + + const enum WdRowAlignment { + wdAlignRowCenter = 1, + wdAlignRowLeft = 0, + wdAlignRowRight = 2, + } + + const enum WdRowHeightRule { + wdRowHeightAtLeast = 1, + wdRowHeightAuto = 0, + wdRowHeightExactly = 2, + } + + const enum WdRulerStyle { + wdAdjustFirstColumn = 2, + wdAdjustNone = 0, + wdAdjustProportional = 1, + wdAdjustSameWidth = 3, + } + + const enum WdSalutationGender { + wdGenderFemale = 0, + wdGenderMale = 1, + wdGenderNeutral = 2, + wdGenderUnknown = 3, + } + + const enum WdSalutationType { + wdSalutationBusiness = 2, + wdSalutationFormal = 1, + wdSalutationInformal = 0, + wdSalutationOther = 3, + } + + const enum WdSaveFormat { + wdFormatDocument = 0, + wdFormatDocument97 = 0, + wdFormatDocumentDefault = 16, + wdFormatDOSText = 4, + wdFormatDOSTextLineBreaks = 5, + wdFormatEncodedText = 7, + wdFormatFilteredHTML = 10, + wdFormatFlatXML = 19, + wdFormatFlatXMLMacroEnabled = 20, + wdFormatFlatXMLTemplate = 21, + wdFormatFlatXMLTemplateMacroEnabled = 22, + wdFormatHTML = 8, + wdFormatOpenDocumentText = 23, + wdFormatPDF = 17, + wdFormatRTF = 6, + wdFormatTemplate = 1, + wdFormatTemplate97 = 1, + wdFormatText = 2, + wdFormatTextLineBreaks = 3, + wdFormatUnicodeText = 7, + wdFormatWebArchive = 9, + wdFormatXML = 11, + wdFormatXMLDocument = 12, + wdFormatXMLDocumentMacroEnabled = 13, + wdFormatXMLTemplate = 14, + wdFormatXMLTemplateMacroEnabled = 15, + wdFormatXPS = 18, + } + + const enum WdSaveOptions { + wdDoNotSaveChanges = 0, + wdPromptToSaveChanges = -2, + wdSaveChanges = -1, + } + + const enum WdScrollbarType { + wdScrollbarTypeAuto = 0, + wdScrollbarTypeNo = 2, + wdScrollbarTypeYes = 1, + } + + const enum WdSectionDirection { + wdSectionDirectionLtr = 1, + wdSectionDirectionRtl = 0, + } + + const enum WdSectionStart { + wdSectionContinuous = 0, + wdSectionEvenPage = 3, + wdSectionNewColumn = 1, + wdSectionNewPage = 2, + wdSectionOddPage = 4, + } + + const enum WdSeekView { + wdSeekCurrentPageFooter = 10, + wdSeekCurrentPageHeader = 9, + wdSeekEndnotes = 8, + wdSeekEvenPagesFooter = 6, + wdSeekEvenPagesHeader = 3, + wdSeekFirstPageFooter = 5, + wdSeekFirstPageHeader = 2, + wdSeekFootnotes = 7, + wdSeekMainDocument = 0, + wdSeekPrimaryFooter = 4, + wdSeekPrimaryHeader = 1, + } + + const enum WdSelectionFlags { + wdSelActive = 8, + wdSelAtEOL = 2, + wdSelOvertype = 4, + wdSelReplace = 16, + wdSelStartActive = 1, + } + + const enum WdSelectionType { + wdNoSelection = 0, + wdSelectionBlock = 6, + wdSelectionColumn = 4, + wdSelectionFrame = 3, + wdSelectionInlineShape = 7, + wdSelectionIP = 1, + wdSelectionNormal = 2, + wdSelectionRow = 5, + wdSelectionShape = 8, + } + + const enum WdSeparatorType { + wdSeparatorColon = 2, + wdSeparatorEmDash = 3, + wdSeparatorEnDash = 4, + wdSeparatorHyphen = 0, + wdSeparatorPeriod = 1, + } + + const enum WdShapePosition { + wdShapeBottom = -999997, + wdShapeCenter = -999995, + wdShapeInside = -999994, + wdShapeLeft = -999998, + wdShapeOutside = -999993, + wdShapeRight = -999996, + wdShapeTop = -999999, + } + + const enum WdShapePositionRelative { + wdShapePositionRelativeNone = -999999, + } + + const enum WdShapeSizeRelative { + wdShapeSizeRelativeNone = -999999, + } + + const enum WdShowFilter { + wdShowFilterFormattingAvailable = 4, + wdShowFilterFormattingInUse = 3, + wdShowFilterFormattingRecommended = 5, + wdShowFilterStylesAll = 2, + wdShowFilterStylesAvailable = 0, + wdShowFilterStylesInUse = 1, + } + + const enum WdShowSourceDocuments { + wdShowSourceDocumentsBoth = 3, + wdShowSourceDocumentsNone = 0, + wdShowSourceDocumentsOriginal = 1, + wdShowSourceDocumentsRevised = 2, + } + + const enum WdSmartTagControlType { + wdControlActiveX = 13, + wdControlButton = 6, + wdControlCheckbox = 9, + wdControlCombo = 12, + wdControlDocumentFragment = 14, + wdControlDocumentFragmentURL = 15, + wdControlHelp = 3, + wdControlHelpURL = 4, + wdControlImage = 8, + wdControlLabel = 7, + wdControlLink = 2, + wdControlListbox = 11, + wdControlRadioGroup = 16, + wdControlSeparator = 5, + wdControlSmartTag = 1, + wdControlTextbox = 10, + } + + const enum WdSortFieldType { + wdSortFieldAlphanumeric = 0, + wdSortFieldDate = 2, + wdSortFieldJapanJIS = 4, + wdSortFieldKoreaKS = 6, + wdSortFieldNumeric = 1, + wdSortFieldStroke = 5, + wdSortFieldSyllable = 3, + } + + const enum WdSortFieldTypeHID { + emptyenum = 0, + } + + const enum WdSortOrder { + wdSortOrderAscending = 0, + wdSortOrderDescending = 1, + } + + const enum WdSortSeparator { + wdSortSeparateByCommas = 1, + wdSortSeparateByDefaultTableSeparator = 2, + wdSortSeparateByTabs = 0, + } + + const enum WdSpanishSpeller { + wdSpanishTuteoAndVoseo = 1, + wdSpanishTuteoOnly = 0, + wdSpanishVoseoOnly = 2, + } + + const enum WdSpecialPane { + wdPaneComments = 15, + wdPaneCurrentPageFooter = 17, + wdPaneCurrentPageHeader = 16, + wdPaneEndnoteContinuationNotice = 12, + wdPaneEndnoteContinuationSeparator = 13, + wdPaneEndnotes = 8, + wdPaneEndnoteSeparator = 14, + wdPaneEvenPagesFooter = 6, + wdPaneEvenPagesHeader = 3, + wdPaneFirstPageFooter = 5, + wdPaneFirstPageHeader = 2, + wdPaneFootnoteContinuationNotice = 9, + wdPaneFootnoteContinuationSeparator = 10, + wdPaneFootnotes = 7, + wdPaneFootnoteSeparator = 11, + wdPaneNone = 0, + wdPanePrimaryFooter = 4, + wdPanePrimaryHeader = 1, + wdPaneRevisions = 18, + wdPaneRevisionsHoriz = 19, + wdPaneRevisionsVert = 20, + } + + const enum WdSpellingErrorType { + wdSpellingCapitalization = 2, + wdSpellingCorrect = 0, + wdSpellingNotInDictionary = 1, + } + + const enum WdSpellingWordType { + wdAnagram = 2, + wdSpellword = 0, + wdWildcard = 1, + } + + const enum WdStatistic { + wdStatisticCharacters = 3, + wdStatisticCharactersWithSpaces = 5, + wdStatisticFarEastCharacters = 6, + wdStatisticLines = 1, + wdStatisticPages = 2, + wdStatisticParagraphs = 4, + wdStatisticWords = 0, + } + + const enum WdStatisticHID { + emptyenum = 0, + } + + const enum WdStoryType { + wdCommentsStory = 4, + wdEndnoteContinuationNoticeStory = 17, + wdEndnoteContinuationSeparatorStory = 16, + wdEndnoteSeparatorStory = 15, + wdEndnotesStory = 3, + wdEvenPagesFooterStory = 8, + wdEvenPagesHeaderStory = 6, + wdFirstPageFooterStory = 11, + wdFirstPageHeaderStory = 10, + wdFootnoteContinuationNoticeStory = 14, + wdFootnoteContinuationSeparatorStory = 13, + wdFootnoteSeparatorStory = 12, + wdFootnotesStory = 2, + wdMainTextStory = 1, + wdPrimaryFooterStory = 9, + wdPrimaryHeaderStory = 7, + wdTextFrameStory = 5, + } + + const enum WdStyleSheetLinkType { + wdStyleSheetLinkTypeImported = 1, + wdStyleSheetLinkTypeLinked = 0, + } + + const enum WdStyleSheetPrecedence { + wdStyleSheetPrecedenceHigher = -1, + wdStyleSheetPrecedenceHighest = 1, + wdStyleSheetPrecedenceLower = -2, + wdStyleSheetPrecedenceLowest = 0, + } + + const enum WdStyleSort { + wdStyleSortByBasedOn = 3, + wdStyleSortByFont = 2, + wdStyleSortByName = 0, + wdStyleSortByType = 4, + wdStyleSortRecommended = 1, + } + + const enum WdStyleType { + wdStyleTypeCharacter = 2, + wdStyleTypeLinked = 6, + wdStyleTypeList = 4, + wdStyleTypeParagraph = 1, + wdStyleTypeParagraphOnly = 5, + wdStyleTypeTable = 3, + } + + const enum WdStylisticSet { + wdStylisticSet01 = 1, + wdStylisticSet02 = 2, + wdStylisticSet03 = 4, + wdStylisticSet04 = 8, + wdStylisticSet05 = 16, + wdStylisticSet06 = 32, + wdStylisticSet07 = 64, + wdStylisticSet08 = 128, + wdStylisticSet09 = 256, + wdStylisticSet10 = 512, + wdStylisticSet11 = 1024, + wdStylisticSet12 = 2048, + wdStylisticSet13 = 4096, + wdStylisticSet14 = 8192, + wdStylisticSet15 = 16384, + wdStylisticSet16 = 32768, + wdStylisticSet17 = 65536, + wdStylisticSet18 = 131072, + wdStylisticSet19 = 262144, + wdStylisticSet20 = 524288, + wdStylisticSetDefault = 0, + } + + const enum WdSubscriberFormats { + wdSubscriberBestFormat = 0, + wdSubscriberPict = 4, + wdSubscriberRTF = 1, + wdSubscriberText = 2, + } + + const enum WdSummaryLength { + wd100Words = -4, + wd10Percent = -6, + wd10Sentences = -2, + wd20Sentences = -3, + wd25Percent = -7, + wd500Words = -5, + wd50Percent = -8, + wd75Percent = -9, + } + + const enum WdSummaryMode { + wdSummaryModeCreateNew = 3, + wdSummaryModeHideAllButSummary = 1, + wdSummaryModeHighlight = 0, + wdSummaryModeInsert = 2, + } + + const enum WdTabAlignment { + wdAlignTabBar = 4, + wdAlignTabCenter = 1, + wdAlignTabDecimal = 3, + wdAlignTabLeft = 0, + wdAlignTabList = 6, + wdAlignTabRight = 2, + } + + const enum WdTabLeader { + wdTabLeaderDashes = 2, + wdTabLeaderDots = 1, + wdTabLeaderHeavy = 4, + wdTabLeaderLines = 3, + wdTabLeaderMiddleDot = 5, + wdTabLeaderSpaces = 0, + } + + const enum WdTabLeaderHID { + emptyenum = 0, + } + + const enum WdTableDirection { + wdTableDirectionLtr = 1, + wdTableDirectionRtl = 0, + } + + const enum WdTableFieldSeparator { + wdSeparateByCommas = 2, + wdSeparateByDefaultListSeparator = 3, + wdSeparateByParagraphs = 0, + wdSeparateByTabs = 1, + } + + const enum WdTableFormat { + wdTableFormat3DEffects1 = 32, + wdTableFormat3DEffects2 = 33, + wdTableFormat3DEffects3 = 34, + wdTableFormatClassic1 = 4, + wdTableFormatClassic2 = 5, + wdTableFormatClassic3 = 6, + wdTableFormatClassic4 = 7, + wdTableFormatColorful1 = 8, + wdTableFormatColorful2 = 9, + wdTableFormatColorful3 = 10, + wdTableFormatColumns1 = 11, + wdTableFormatColumns2 = 12, + wdTableFormatColumns3 = 13, + wdTableFormatColumns4 = 14, + wdTableFormatColumns5 = 15, + wdTableFormatContemporary = 35, + wdTableFormatElegant = 36, + wdTableFormatGrid1 = 16, + wdTableFormatGrid2 = 17, + wdTableFormatGrid3 = 18, + wdTableFormatGrid4 = 19, + wdTableFormatGrid5 = 20, + wdTableFormatGrid6 = 21, + wdTableFormatGrid7 = 22, + wdTableFormatGrid8 = 23, + wdTableFormatList1 = 24, + wdTableFormatList2 = 25, + wdTableFormatList3 = 26, + wdTableFormatList4 = 27, + wdTableFormatList5 = 28, + wdTableFormatList6 = 29, + wdTableFormatList7 = 30, + wdTableFormatList8 = 31, + wdTableFormatNone = 0, + wdTableFormatProfessional = 37, + wdTableFormatSimple1 = 1, + wdTableFormatSimple2 = 2, + wdTableFormatSimple3 = 3, + wdTableFormatSubtle1 = 38, + wdTableFormatSubtle2 = 39, + wdTableFormatWeb1 = 40, + wdTableFormatWeb2 = 41, + wdTableFormatWeb3 = 42, + } + + const enum WdTableFormatApply { + wdTableFormatApplyAutoFit = 16, + wdTableFormatApplyBorders = 1, + wdTableFormatApplyColor = 8, + wdTableFormatApplyFirstColumn = 128, + wdTableFormatApplyFont = 4, + wdTableFormatApplyHeadingRows = 32, + wdTableFormatApplyLastColumn = 256, + wdTableFormatApplyLastRow = 64, + wdTableFormatApplyShading = 2, + } + + const enum WdTablePosition { + wdTableBottom = -999997, + wdTableCenter = -999995, + wdTableInside = -999994, + wdTableLeft = -999998, + wdTableOutside = -999993, + wdTableRight = -999996, + wdTableTop = -999999, + } + + const enum WdTaskPanes { + wdTaskPaneApplyStyles = 17, + wdTaskPaneDocumentActions = 7, + wdTaskPaneDocumentManagement = 16, + wdTaskPaneDocumentProtection = 6, + wdTaskPaneDocumentUpdates = 13, + wdTaskPaneFaxService = 11, + wdTaskPaneFormatting = 0, + wdTaskPaneHelp = 9, + wdTaskPaneMailMerge = 2, + wdTaskPaneNav = 18, + wdTaskPaneResearch = 10, + wdTaskPaneRevealFormatting = 1, + wdTaskPaneSearch = 4, + wdTaskPaneSelection = 19, + wdTaskPaneSharedWorkspace = 8, + wdTaskPaneSignature = 14, + wdTaskPaneStyleInspector = 15, + wdTaskPaneTranslate = 3, + wdTaskPaneXMLDocument = 12, + wdTaskPaneXMLStructure = 5, + } + + const enum WdTCSCConverterDirection { + wdTCSCConverterDirectionAuto = 2, + wdTCSCConverterDirectionSCTC = 0, + wdTCSCConverterDirectionTCSC = 1, + } + + const enum WdTemplateType { + wdAttachedTemplate = 2, + wdGlobalTemplate = 1, + wdNormalTemplate = 0, + } + + const enum WdTextboxTightWrap { + wdTightAll = 1, + wdTightFirstAndLastLines = 2, + wdTightFirstLineOnly = 3, + wdTightLastLineOnly = 4, + wdTightNone = 0, + } + + const enum WdTextFormFieldType { + wdCalculationText = 5, + wdCurrentDateText = 3, + wdCurrentTimeText = 4, + wdDateText = 2, + wdNumberText = 1, + wdRegularText = 0, + } + + const enum WdTextOrientation { + wdTextOrientationDownward = 3, + wdTextOrientationHorizontal = 0, + wdTextOrientationHorizontalRotatedFarEast = 4, + wdTextOrientationUpward = 2, + wdTextOrientationVertical = 5, + wdTextOrientationVerticalFarEast = 1, + } + + const enum WdTextOrientationHID { + emptyenum = 0, + } + + const enum WdTextureIndex { + wdTexture10Percent = 100, + wdTexture12Pt5Percent = 125, + wdTexture15Percent = 150, + wdTexture17Pt5Percent = 175, + wdTexture20Percent = 200, + wdTexture22Pt5Percent = 225, + wdTexture25Percent = 250, + wdTexture27Pt5Percent = 275, + wdTexture2Pt5Percent = 25, + wdTexture30Percent = 300, + wdTexture32Pt5Percent = 325, + wdTexture35Percent = 350, + wdTexture37Pt5Percent = 375, + wdTexture40Percent = 400, + wdTexture42Pt5Percent = 425, + wdTexture45Percent = 450, + wdTexture47Pt5Percent = 475, + wdTexture50Percent = 500, + wdTexture52Pt5Percent = 525, + wdTexture55Percent = 550, + wdTexture57Pt5Percent = 575, + wdTexture5Percent = 50, + wdTexture60Percent = 600, + wdTexture62Pt5Percent = 625, + wdTexture65Percent = 650, + wdTexture67Pt5Percent = 675, + wdTexture70Percent = 700, + wdTexture72Pt5Percent = 725, + wdTexture75Percent = 750, + wdTexture77Pt5Percent = 775, + wdTexture7Pt5Percent = 75, + wdTexture80Percent = 800, + wdTexture82Pt5Percent = 825, + wdTexture85Percent = 850, + wdTexture87Pt5Percent = 875, + wdTexture90Percent = 900, + wdTexture92Pt5Percent = 925, + wdTexture95Percent = 950, + wdTexture97Pt5Percent = 975, + wdTextureCross = -11, + wdTextureDarkCross = -5, + wdTextureDarkDiagonalCross = -6, + wdTextureDarkDiagonalDown = -3, + wdTextureDarkDiagonalUp = -4, + wdTextureDarkHorizontal = -1, + wdTextureDarkVertical = -2, + wdTextureDiagonalCross = -12, + wdTextureDiagonalDown = -9, + wdTextureDiagonalUp = -10, + wdTextureHorizontal = -7, + wdTextureNone = 0, + wdTextureSolid = 1000, + wdTextureVertical = -8, + } + + const enum WdThemeColorIndex { + wdNotThemeColor = -1, + wdThemeColorAccent1 = 4, + wdThemeColorAccent2 = 5, + wdThemeColorAccent3 = 6, + wdThemeColorAccent4 = 7, + wdThemeColorAccent5 = 8, + wdThemeColorAccent6 = 9, + wdThemeColorBackground1 = 12, + wdThemeColorBackground2 = 14, + wdThemeColorHyperlink = 10, + wdThemeColorHyperlinkFollowed = 11, + wdThemeColorMainDark1 = 0, + wdThemeColorMainDark2 = 2, + wdThemeColorMainLight1 = 1, + wdThemeColorMainLight2 = 3, + wdThemeColorText1 = 13, + wdThemeColorText2 = 15, + } + + const enum WdToaFormat { + wdTOAClassic = 1, + wdTOADistinctive = 2, + wdTOAFormal = 3, + wdTOASimple = 4, + wdTOATemplate = 0, + } + + const enum WdTocFormat { + wdTOCClassic = 1, + wdTOCDistinctive = 2, + wdTOCFancy = 3, + wdTOCFormal = 5, + wdTOCModern = 4, + wdTOCSimple = 6, + wdTOCTemplate = 0, + } + + const enum WdTofFormat { + wdTOFCentered = 3, + wdTOFClassic = 1, + wdTOFDistinctive = 2, + wdTOFFormal = 4, + wdTOFSimple = 5, + wdTOFTemplate = 0, + } + + const enum WdTrailingCharacter { + wdTrailingNone = 2, + wdTrailingSpace = 1, + wdTrailingTab = 0, + } + + const enum WdTwoLinesInOneType { + wdTwoLinesInOneAngleBrackets = 4, + wdTwoLinesInOneCurlyBrackets = 5, + wdTwoLinesInOneNoBrackets = 1, + wdTwoLinesInOneNone = 0, + wdTwoLinesInOneParentheses = 2, + wdTwoLinesInOneSquareBrackets = 3, + } + + const enum WdUnderline { + wdUnderlineDash = 7, + wdUnderlineDashHeavy = 23, + wdUnderlineDashLong = 39, + wdUnderlineDashLongHeavy = 55, + wdUnderlineDotDash = 9, + wdUnderlineDotDashHeavy = 25, + wdUnderlineDotDotDash = 10, + wdUnderlineDotDotDashHeavy = 26, + wdUnderlineDotted = 4, + wdUnderlineDottedHeavy = 20, + wdUnderlineDouble = 3, + wdUnderlineNone = 0, + wdUnderlineSingle = 1, + wdUnderlineThick = 6, + wdUnderlineWavy = 11, + wdUnderlineWavyDouble = 43, + wdUnderlineWavyHeavy = 27, + wdUnderlineWords = 2, + } + + const enum WdUnits { + wdCell = 12, + wdCharacter = 1, + wdCharacterFormatting = 13, + wdColumn = 9, + wdItem = 16, + wdLine = 5, + wdParagraph = 4, + wdParagraphFormatting = 14, + wdRow = 10, + wdScreen = 7, + wdSection = 8, + wdSentence = 3, + wdStory = 6, + wdTable = 15, + wdWindow = 11, + wdWord = 2, + } + + const enum WdUpdateStyleListBehavior { + wdListBehaviorAddBulletsNumbering = 1, + wdListBehaviorKeepPreviousPattern = 0, + } + + const enum WdUseFormattingFrom { + wdFormattingFromCurrent = 0, + wdFormattingFromPrompt = 2, + wdFormattingFromSelected = 1, + } + + const enum WdVerticalAlignment { + wdAlignVerticalBottom = 3, + wdAlignVerticalCenter = 1, + wdAlignVerticalJustify = 2, + wdAlignVerticalTop = 0, + } + + const enum WdViewType { + wdConflictView = 8, + wdMasterView = 5, + wdNormalView = 1, + wdOutlineView = 2, + wdPrintPreview = 4, + wdPrintView = 3, + wdReadingView = 7, + wdWebView = 6, + } + + const enum WdViewTypeOld { + wdOnlineView = 6, + wdPageView = 3, + } + + const enum WdVisualSelection { + wdVisualSelectionBlock = 0, + wdVisualSelectionContinuous = 1, + } + + const enum WdWindowState { + wdWindowStateMaximize = 1, + wdWindowStateMinimize = 2, + wdWindowStateNormal = 0, + } + + const enum WdWindowType { + wdWindowDocument = 0, + wdWindowTemplate = 1, + } + + const enum WdWordDialog { + wdDialogBuildingBlockOrganizer = 2067, + wdDialogCompatibilityChecker = 2439, + wdDialogConnect = 420, + wdDialogConsistencyChecker = 1121, + wdDialogContentControlProperties = 2394, + wdDialogControlRun = 235, + wdDialogConvertObject = 392, + wdDialogCopyFile = 300, + wdDialogCreateAutoText = 872, + wdDialogCreateSource = 1922, + wdDialogCSSLinks = 1261, + wdDialogDocumentInspector = 1482, + wdDialogDocumentStatistics = 78, + wdDialogDrawAlign = 634, + wdDialogDrawSnapToGrid = 633, + wdDialogEditAutoText = 985, + wdDialogEditCreatePublisher = 732, + wdDialogEditFind = 112, + wdDialogEditFrame = 458, + wdDialogEditGoTo = 896, + wdDialogEditGoToOld = 811, + wdDialogEditLinks = 124, + wdDialogEditObject = 125, + wdDialogEditPasteSpecial = 111, + wdDialogEditPublishOptions = 735, + wdDialogEditReplace = 117, + wdDialogEditStyle = 120, + wdDialogEditSubscribeOptions = 736, + wdDialogEditSubscribeTo = 733, + wdDialogEditTOACategory = 625, + wdDialogEmailOptions = 863, + wdDialogExportAsFixedFormat = 2349, + wdDialogFileDocumentLayout = 178, + wdDialogFileFind = 99, + wdDialogFileMacCustomPageSetupGX = 737, + wdDialogFileMacPageSetup = 685, + wdDialogFileMacPageSetupGX = 444, + wdDialogFileNew = 79, + wdDialogFileNew2007 = 1116, + wdDialogFileOpen = 80, + wdDialogFilePageSetup = 178, + wdDialogFilePrint = 88, + wdDialogFilePrintOneCopy = 445, + wdDialogFilePrintSetup = 97, + wdDialogFileRoutingSlip = 624, + wdDialogFileSaveAs = 84, + wdDialogFileSaveVersion = 1007, + wdDialogFileSummaryInfo = 86, + wdDialogFileVersions = 945, + wdDialogFitText = 983, + wdDialogFontSubstitution = 581, + wdDialogFormatAddrFonts = 103, + wdDialogFormatBordersAndShading = 189, + wdDialogFormatBulletsAndNumbering = 824, + wdDialogFormatCallout = 610, + wdDialogFormatChangeCase = 322, + wdDialogFormatColumns = 177, + wdDialogFormatDefineStyleBorders = 185, + wdDialogFormatDefineStyleFont = 181, + wdDialogFormatDefineStyleFrame = 184, + wdDialogFormatDefineStyleLang = 186, + wdDialogFormatDefineStylePara = 182, + wdDialogFormatDefineStyleTabs = 183, + wdDialogFormatDrawingObject = 960, + wdDialogFormatDropCap = 488, + wdDialogFormatEncloseCharacters = 1162, + wdDialogFormatFont = 174, + wdDialogFormatFrame = 190, + wdDialogFormatPageNumber = 298, + wdDialogFormatParagraph = 175, + wdDialogFormatPicture = 187, + wdDialogFormatRetAddrFonts = 221, + wdDialogFormatSectionLayout = 176, + wdDialogFormatStyle = 180, + wdDialogFormatStyleGallery = 505, + wdDialogFormatStylesCustom = 1248, + wdDialogFormatTabs = 179, + wdDialogFormatTheme = 855, + wdDialogFormattingRestrictions = 1427, + wdDialogFormFieldHelp = 361, + wdDialogFormFieldOptions = 353, + wdDialogFrameSetProperties = 1074, + wdDialogHelpAbout = 9, + wdDialogHelpWordPerfectHelp = 10, + wdDialogHelpWordPerfectHelpOptions = 511, + wdDialogHorizontalInVertical = 1160, + wdDialogIMESetDefault = 1094, + wdDialogInsertAddCaption = 402, + wdDialogInsertAutoCaption = 359, + wdDialogInsertBookmark = 168, + wdDialogInsertBreak = 159, + wdDialogInsertCaption = 357, + wdDialogInsertCaptionNumbering = 358, + wdDialogInsertCrossReference = 367, + wdDialogInsertDatabase = 341, + wdDialogInsertDateTime = 165, + wdDialogInsertField = 166, + wdDialogInsertFile = 164, + wdDialogInsertFootnote = 370, + wdDialogInsertFormField = 483, + wdDialogInsertHyperlink = 925, + wdDialogInsertIndex = 170, + wdDialogInsertIndexAndTables = 473, + wdDialogInsertMergeField = 167, + wdDialogInsertNumber = 812, + wdDialogInsertObject = 172, + wdDialogInsertPageNumbers = 294, + wdDialogInsertPicture = 163, + wdDialogInsertPlaceholder = 2348, + wdDialogInsertSource = 2120, + wdDialogInsertSubdocument = 583, + wdDialogInsertSymbol = 162, + wdDialogInsertTableOfAuthorities = 471, + wdDialogInsertTableOfContents = 171, + wdDialogInsertTableOfFigures = 472, + wdDialogInsertWebComponent = 1324, + wdDialogLabelOptions = 1367, + wdDialogLetterWizard = 821, + wdDialogListCommands = 723, + wdDialogMailMerge = 676, + wdDialogMailMergeCheck = 677, + wdDialogMailMergeCreateDataSource = 642, + wdDialogMailMergeCreateHeaderSource = 643, + wdDialogMailMergeFieldMapping = 1304, + wdDialogMailMergeFindRecipient = 1326, + wdDialogMailMergeFindRecord = 569, + wdDialogMailMergeHelper = 680, + wdDialogMailMergeInsertAddressBlock = 1305, + wdDialogMailMergeInsertAsk = 4047, + wdDialogMailMergeInsertFields = 1307, + wdDialogMailMergeInsertFillIn = 4048, + wdDialogMailMergeInsertGreetingLine = 1306, + wdDialogMailMergeInsertIf = 4049, + wdDialogMailMergeInsertNextIf = 4053, + wdDialogMailMergeInsertSet = 4054, + wdDialogMailMergeInsertSkipIf = 4055, + wdDialogMailMergeOpenDataSource = 81, + wdDialogMailMergeOpenHeaderSource = 82, + wdDialogMailMergeQueryOptions = 681, + wdDialogMailMergeRecipients = 1308, + wdDialogMailMergeSetDocumentType = 1339, + wdDialogMailMergeUseAddressBook = 779, + wdDialogMarkCitation = 463, + wdDialogMarkIndexEntry = 169, + wdDialogMarkTableOfContentsEntry = 442, + wdDialogMyPermission = 1437, + wdDialogNewToolbar = 586, + wdDialogNoteOptions = 373, + wdDialogOMathRecognizedFunctions = 2165, + wdDialogOrganizer = 222, + wdDialogPermission = 1469, + wdDialogPhoneticGuide = 986, + wdDialogReviewAfmtRevisions = 570, + wdDialogSchemaLibrary = 1417, + wdDialogSearch = 1363, + wdDialogShowRepairs = 1381, + wdDialogSourceManager = 1920, + wdDialogStyleManagement = 1948, + wdDialogTableAutoFormat = 563, + wdDialogTableCellOptions = 1081, + wdDialogTableColumnWidth = 143, + wdDialogTableDeleteCells = 133, + wdDialogTableFormatCell = 612, + wdDialogTableFormula = 348, + wdDialogTableInsertCells = 130, + wdDialogTableInsertRow = 131, + wdDialogTableInsertTable = 129, + wdDialogTableOfCaptionsOptions = 551, + wdDialogTableOfContentsOptions = 470, + wdDialogTableProperties = 861, + wdDialogTableRowHeight = 142, + wdDialogTableSort = 199, + wdDialogTableSplitCells = 137, + wdDialogTableTableOptions = 1080, + wdDialogTableToText = 128, + wdDialogTableWrapping = 854, + wdDialogTCSCTranslator = 1156, + wdDialogTextToTable = 127, + wdDialogToolsAcceptRejectChanges = 506, + wdDialogToolsAdvancedSettings = 206, + wdDialogToolsAutoCorrect = 378, + wdDialogToolsAutoCorrectExceptions = 762, + wdDialogToolsAutoManager = 915, + wdDialogToolsAutoSummarize = 874, + wdDialogToolsBulletsNumbers = 196, + wdDialogToolsCompareDocuments = 198, + wdDialogToolsCreateDirectory = 833, + wdDialogToolsCreateEnvelope = 173, + wdDialogToolsCreateLabels = 489, + wdDialogToolsCustomize = 152, + wdDialogToolsCustomizeKeyboard = 432, + wdDialogToolsCustomizeMenuBar = 615, + wdDialogToolsCustomizeMenus = 433, + wdDialogToolsDictionary = 989, + wdDialogToolsEnvelopesAndLabels = 607, + wdDialogToolsGrammarSettings = 885, + wdDialogToolsHangulHanjaConversion = 784, + wdDialogToolsHighlightChanges = 197, + wdDialogToolsHyphenation = 195, + wdDialogToolsLanguage = 188, + wdDialogToolsMacro = 215, + wdDialogToolsMacroRecord = 214, + wdDialogToolsManageFields = 631, + wdDialogToolsMergeDocuments = 435, + wdDialogToolsOptions = 974, + wdDialogToolsOptionsAutoFormat = 959, + wdDialogToolsOptionsAutoFormatAsYouType = 778, + wdDialogToolsOptionsBidi = 1029, + wdDialogToolsOptionsCompatibility = 525, + wdDialogToolsOptionsEdit = 224, + wdDialogToolsOptionsEditCopyPaste = 1356, + wdDialogToolsOptionsFileLocations = 225, + wdDialogToolsOptionsFuzzy = 790, + wdDialogToolsOptionsGeneral = 203, + wdDialogToolsOptionsPrint = 208, + wdDialogToolsOptionsSave = 209, + wdDialogToolsOptionsSecurity = 1361, + wdDialogToolsOptionsSmartTag = 1395, + wdDialogToolsOptionsSpellingAndGrammar = 211, + wdDialogToolsOptionsTrackChanges = 386, + wdDialogToolsOptionsTypography = 739, + wdDialogToolsOptionsUserInfo = 213, + wdDialogToolsOptionsView = 204, + wdDialogToolsProtectDocument = 503, + wdDialogToolsProtectSection = 578, + wdDialogToolsRevisions = 197, + wdDialogToolsSpellingAndGrammar = 828, + wdDialogToolsTemplates = 87, + wdDialogToolsThesaurus = 194, + wdDialogToolsUnprotectDocument = 521, + wdDialogToolsWordCount = 228, + wdDialogTwoLinesInOne = 1161, + wdDialogUpdateTOC = 331, + wdDialogViewZoom = 577, + wdDialogWebOptions = 898, + wdDialogWindowActivate = 220, + wdDialogXMLElementAttributes = 1460, + wdDialogXMLOptions = 1425, + } + + const enum WdWordDialogHID { + emptyenum = 0, + } + + const enum WdWordDialogTab { + wdDialogEmailOptionsTabQuoting = 1900002, + wdDialogEmailOptionsTabSignature = 1900000, + wdDialogEmailOptionsTabStationary = 1900001, + wdDialogFilePageSetupTabCharsLines = 150004, + wdDialogFilePageSetupTabLayout = 150003, + wdDialogFilePageSetupTabMargins = 150000, + wdDialogFilePageSetupTabPaper = 150001, + wdDialogFormatBordersAndShadingTabBorders = 700000, + wdDialogFormatBordersAndShadingTabPageBorder = 700001, + wdDialogFormatBordersAndShadingTabShading = 700002, + wdDialogFormatBulletsAndNumberingTabBulleted = 1500000, + wdDialogFormatBulletsAndNumberingTabNumbered = 1500001, + wdDialogFormatBulletsAndNumberingTabOutlineNumbered = 1500002, + wdDialogFormatDrawingObjectTabColorsAndLines = 1200000, + wdDialogFormatDrawingObjectTabHR = 1200007, + wdDialogFormatDrawingObjectTabPicture = 1200004, + wdDialogFormatDrawingObjectTabPosition = 1200002, + wdDialogFormatDrawingObjectTabSize = 1200001, + wdDialogFormatDrawingObjectTabTextbox = 1200005, + wdDialogFormatDrawingObjectTabWeb = 1200006, + wdDialogFormatDrawingObjectTabWrapping = 1200003, + wdDialogFormatFontTabAnimation = 600002, + wdDialogFormatFontTabCharacterSpacing = 600001, + wdDialogFormatFontTabFont = 600000, + wdDialogFormatParagraphTabIndentsAndSpacing = 1000000, + wdDialogFormatParagraphTabTeisai = 1000002, + wdDialogFormatParagraphTabTextFlow = 1000001, + wdDialogInsertIndexAndTablesTabIndex = 400000, + wdDialogInsertIndexAndTablesTabTableOfAuthorities = 400003, + wdDialogInsertIndexAndTablesTabTableOfContents = 400001, + wdDialogInsertIndexAndTablesTabTableOfFigures = 400002, + wdDialogInsertSymbolTabSpecialCharacters = 200001, + wdDialogInsertSymbolTabSymbols = 200000, + wdDialogLetterWizardTabLetterFormat = 1600000, + wdDialogLetterWizardTabOtherElements = 1600002, + wdDialogLetterWizardTabRecipientInfo = 1600001, + wdDialogLetterWizardTabSenderInfo = 1600003, + wdDialogNoteOptionsTabAllEndnotes = 300001, + wdDialogNoteOptionsTabAllFootnotes = 300000, + wdDialogOrganizerTabAutoText = 500001, + wdDialogOrganizerTabCommandBars = 500002, + wdDialogOrganizerTabMacros = 500003, + wdDialogOrganizerTabStyles = 500000, + wdDialogStyleManagementTabEdit = 2200000, + wdDialogStyleManagementTabRecommend = 2200001, + wdDialogStyleManagementTabRestrict = 2200002, + wdDialogTablePropertiesTabCell = 1800003, + wdDialogTablePropertiesTabColumn = 1800002, + wdDialogTablePropertiesTabRow = 1800001, + wdDialogTablePropertiesTabTable = 1800000, + wdDialogTemplates = 2100000, + wdDialogTemplatesLinkedCSS = 2100003, + wdDialogTemplatesXMLExpansionPacks = 2100002, + wdDialogTemplatesXMLSchema = 2100001, + wdDialogToolsAutoCorrectExceptionsTabFirstLetter = 1400000, + wdDialogToolsAutoCorrectExceptionsTabHangulAndAlphabet = 1400002, + wdDialogToolsAutoCorrectExceptionsTabIac = 1400003, + wdDialogToolsAutoCorrectExceptionsTabInitialCaps = 1400001, + wdDialogToolsAutoManagerTabAutoCorrect = 1700000, + wdDialogToolsAutoManagerTabAutoFormat = 1700003, + wdDialogToolsAutoManagerTabAutoFormatAsYouType = 1700001, + wdDialogToolsAutoManagerTabAutoText = 1700002, + wdDialogToolsAutoManagerTabSmartTags = 1700004, + wdDialogToolsEnvelopesAndLabelsTabEnvelopes = 800000, + wdDialogToolsEnvelopesAndLabelsTabLabels = 800001, + wdDialogToolsOptionsTabAcetate = 1266, + wdDialogToolsOptionsTabBidi = 1029, + wdDialogToolsOptionsTabCompatibility = 525, + wdDialogToolsOptionsTabEdit = 224, + wdDialogToolsOptionsTabFileLocations = 225, + wdDialogToolsOptionsTabFuzzy = 790, + wdDialogToolsOptionsTabGeneral = 203, + wdDialogToolsOptionsTabHangulHanjaConversion = 786, + wdDialogToolsOptionsTabPrint = 208, + wdDialogToolsOptionsTabProofread = 211, + wdDialogToolsOptionsTabSave = 209, + wdDialogToolsOptionsTabSecurity = 1361, + wdDialogToolsOptionsTabTrackChanges = 386, + wdDialogToolsOptionsTabTypography = 739, + wdDialogToolsOptionsTabUserInfo = 213, + wdDialogToolsOptionsTabView = 204, + wdDialogWebOptionsBrowsers = 2000000, + wdDialogWebOptionsEncoding = 2000003, + wdDialogWebOptionsFiles = 2000001, + wdDialogWebOptionsFonts = 2000004, + wdDialogWebOptionsGeneral = 2000000, + wdDialogWebOptionsPictures = 2000002, + } + + const enum WdWordDialogTabHID { + wdDialogFilePageSetupTabPaperSize = 150001, + wdDialogFilePageSetupTabPaperSource = 150002, + } + + const enum WdWrapSideType { + wdWrapBoth = 0, + wdWrapLargest = 3, + wdWrapLeft = 1, + wdWrapRight = 2, + } + + const enum WdWrapType { + wdWrapBehind = 5, + wdWrapFront = 3, + wdWrapInline = 7, + wdWrapNone = 3, + wdWrapSquare = 0, + wdWrapThrough = 2, + wdWrapTight = 1, + wdWrapTopBottom = 4, + } + + const enum WdWrapTypeMerged { + wdWrapMergeBehind = 3, + wdWrapMergeFront = 4, + wdWrapMergeInline = 0, + wdWrapMergeSquare = 1, + wdWrapMergeThrough = 5, + wdWrapMergeTight = 2, + wdWrapMergeTopBottom = 6, + } + + const enum WdXMLNodeLevel { + wdXMLNodeLevelCell = 3, + wdXMLNodeLevelInline = 0, + wdXMLNodeLevelParagraph = 1, + wdXMLNodeLevelRow = 2, + } + + const enum WdXMLNodeType { + wdXMLNodeAttribute = 2, + wdXMLNodeElement = 1, + } + + const enum WdXMLSelectionChangeReason { + wdXMLSelectionChangeReasonDelete = 2, + wdXMLSelectionChangeReasonInsert = 1, + wdXMLSelectionChangeReasonMove = 0, + } + + const enum WdXMLValidationStatus { + wdXMLValidationStatusCustom = -1072898048, + wdXMLValidationStatusOK = 0, + } + + const enum XlAxisCrosses { + xlAxisCrossesAutomatic = -4105, + xlAxisCrossesCustom = -4114, + xlAxisCrossesMaximum = 2, + xlAxisCrossesMinimum = 4, + } + + const enum XlAxisGroup { + xlPrimary = 1, + xlSecondary = 2, + } + + const enum XlAxisType { + xlCategory = 1, + xlSeriesAxis = 3, + xlValue = 2, + } + + const enum XlBackground { + xlBackgroundAutomatic = -4105, + xlBackgroundOpaque = 3, + xlBackgroundTransparent = 2, + } + + const enum XlBarShape { + xlBox = 0, + xlConeToMax = 5, + xlConeToPoint = 4, + xlCylinder = 3, + xlPyramidToMax = 2, + xlPyramidToPoint = 1, + } + + const enum XlBorderWeight { + xlHairline = 1, + xlMedium = -4138, + xlThick = 4, + xlThin = 2, + } + + const enum XlCategoryType { + xlAutomaticScale = -4105, + xlCategoryScale = 2, + xlTimeScale = 3, + } + + const enum XlChartElementPosition { + xlChartElementPositionAutomatic = -4105, + xlChartElementPositionCustom = -4114, + } + + const enum XlChartGallery { + xlAnyGallery = 23, + xlBuiltIn = 21, + xlUserDefined = 22, + } + + const enum XlChartItem { + xlAxis = 21, + xlAxisTitle = 17, + xlChartArea = 2, + xlChartTitle = 4, + xlCorners = 6, + xlDataLabel = 0, + xlDataTable = 7, + xlDisplayUnitLabel = 30, + xlDownBars = 20, + xlDropLines = 26, + xlErrorBars = 9, + xlFloor = 23, + xlHiLoLines = 25, + xlLeaderLines = 29, + xlLegend = 24, + xlLegendEntry = 12, + xlLegendKey = 13, + xlMajorGridlines = 15, + xlMinorGridlines = 16, + xlNothing = 28, + xlPivotChartDropZone = 32, + xlPivotChartFieldButton = 31, + xlPlotArea = 19, + xlRadarAxisLabels = 27, + xlSeries = 3, + xlSeriesLines = 22, + xlShape = 14, + xlTrendline = 8, + xlUpBars = 18, + xlWalls = 5, + xlXErrorBars = 10, + xlYErrorBars = 11, + } + + const enum XlChartPicturePlacement { + xlAllFaces = 7, + xlEnd = 2, + xlEndSides = 3, + xlFront = 4, + xlFrontEnd = 6, + xlFrontSides = 5, + xlSides = 1, + } + + const enum XlChartPictureType { + xlStack = 2, + xlStackScale = 3, + xlStretch = 1, + } + + const enum XlChartSplitType { + xlSplitByCustomSplit = 4, + xlSplitByPercentValue = 3, + xlSplitByPosition = 1, + xlSplitByValue = 2, + } + + const enum XlColorIndex { + xlColorIndexAutomatic = -4105, + xlColorIndexNone = -4142, + } + + const enum XlConstants { + xl3DBar = -4099, + xl3DSurface = -4103, + xlAbove = 0, + xlAutomatic = -4105, + xlBar = 2, + xlBelow = 1, + xlBoth = 1, + xlBottom = -4107, + xlCenter = -4108, + xlChecker = 9, + xlCircle = 8, + xlColumn = 3, + xlCombination = -4111, + xlCorner = 2, + xlCrissCross = 16, + xlCross = 4, + xlCustom = -4114, + xlDefaultAutoFormat = -1, + xlDiamond = 2, + xlDistributed = -4117, + xlFill = 5, + xlFixedValue = 1, + xlGeneral = 1, + xlGray16 = 17, + xlGray25 = -4124, + xlGray50 = -4125, + xlGray75 = -4126, + xlGray8 = 18, + xlGrid = 15, + xlHigh = -4127, + xlInside = 2, + xlJustify = -4130, + xlLeft = -4131, + xlLightDown = 13, + xlLightHorizontal = 11, + xlLightUp = 14, + xlLightVertical = 12, + xlLow = -4134, + xlMaximum = 2, + xlMinimum = 4, + xlMinusValues = 3, + xlNextToAxis = 4, + xlNone = -4142, + xlOpaque = 3, + xlOutside = 3, + xlPercent = 2, + xlPlus = 9, + xlPlusValues = 2, + xlRight = -4152, + xlScale = 3, + xlSemiGray75 = 10, + xlShowLabel = 4, + xlShowLabelAndPercent = 5, + xlShowPercent = 3, + xlShowValue = 2, + xlSingle = 2, + xlSolid = 1, + xlSquare = 1, + xlStar = 5, + xlStError = 4, + xlTop = -4160, + xlTransparent = 2, + xlTriangle = 3, + } + + const enum XlCopyPictureFormat { + xlBitmap = 2, + xlPicture = -4147, + } + + const enum XlDataLabelPosition { + xlLabelPositionAbove = 0, + xlLabelPositionBelow = 1, + xlLabelPositionBestFit = 5, + xlLabelPositionCenter = -4108, + xlLabelPositionCustom = 7, + xlLabelPositionInsideBase = 4, + xlLabelPositionInsideEnd = 3, + xlLabelPositionLeft = -4131, + xlLabelPositionMixed = 6, + xlLabelPositionOutsideEnd = 2, + xlLabelPositionRight = -4152, + } + + const enum XlDataLabelSeparator { + xlDataLabelSeparatorDefault = 1, + } + + const enum XlDataLabelsType { + xlDataLabelsShowBubbleSizes = 6, + xlDataLabelsShowLabel = 4, + xlDataLabelsShowLabelAndPercent = 5, + xlDataLabelsShowNone = -4142, + xlDataLabelsShowPercent = 3, + xlDataLabelsShowValue = 2, + } + + const enum XlDisplayBlanksAs { + xlInterpolated = 3, + xlNotPlotted = 1, + xlZero = 2, + } + + const enum XlDisplayUnit { + xlHundredMillions = -8, + xlHundreds = -2, + xlHundredThousands = -5, + xlMillionMillions = -10, + xlMillions = -6, + xlTenMillions = -7, + xlTenThousands = -4, + xlThousandMillions = -9, + xlThousands = -3, + } + + const enum XlEndStyleCap { + xlCap = 1, + xlNoCap = 2, + } + + const enum XlErrorBarDirection { + xlChartX = -4168, + xlChartY = 1, + } + + const enum XlErrorBarInclude { + xlErrorBarIncludeBoth = 1, + xlErrorBarIncludeMinusValues = 3, + xlErrorBarIncludeNone = -4142, + xlErrorBarIncludePlusValues = 2, + } + + const enum XlErrorBarType { + xlErrorBarTypeCustom = -4114, + xlErrorBarTypeFixedValue = 1, + xlErrorBarTypePercent = 2, + xlErrorBarTypeStDev = -4155, + xlErrorBarTypeStError = 4, + } + + const enum XlHAlign { + xlHAlignCenter = -4108, + xlHAlignCenterAcrossSelection = 7, + xlHAlignDistributed = -4117, + xlHAlignFill = 5, + xlHAlignGeneral = 1, + xlHAlignJustify = -4130, + xlHAlignLeft = -4131, + xlHAlignRight = -4152, + } + + const enum XlLegendPosition { + xlLegendPositionBottom = -4107, + xlLegendPositionCorner = 2, + xlLegendPositionCustom = -4161, + xlLegendPositionLeft = -4131, + xlLegendPositionRight = -4152, + xlLegendPositionTop = -4160, + } + + const enum XlLineStyle { + xlContinuous = 1, + xlDash = -4115, + xlDashDot = 4, + xlDashDotDot = 5, + xlDot = -4118, + xlDouble = -4119, + xlLineStyleNone = -4142, + xlSlantDashDot = 13, + } + + const enum XlMarkerStyle { + xlMarkerStyleAutomatic = -4105, + xlMarkerStyleCircle = 8, + xlMarkerStyleDash = -4115, + xlMarkerStyleDiamond = 2, + xlMarkerStyleDot = -4118, + xlMarkerStyleNone = -4142, + xlMarkerStylePicture = -4147, + xlMarkerStylePlus = 9, + xlMarkerStyleSquare = 1, + xlMarkerStyleStar = 5, + xlMarkerStyleTriangle = 3, + xlMarkerStyleX = -4168, + } + + const enum XlOrientation { + xlDownward = -4170, + xlHorizontal = -4128, + xlUpward = -4171, + xlVertical = -4166, + } + + const enum XlPattern { + xlPatternAutomatic = -4105, + xlPatternChecker = 9, + xlPatternCrissCross = 16, + xlPatternDown = -4121, + xlPatternGray16 = 17, + xlPatternGray25 = -4124, + xlPatternGray50 = -4125, + xlPatternGray75 = -4126, + xlPatternGray8 = 18, + xlPatternGrid = 15, + xlPatternHorizontal = -4128, + xlPatternLightDown = 13, + xlPatternLightHorizontal = 11, + xlPatternLightUp = 14, + xlPatternLightVertical = 12, + xlPatternLinearGradient = 4000, + xlPatternNone = -4142, + xlPatternRectangularGradient = 4001, + xlPatternSemiGray75 = 10, + xlPatternSolid = 1, + xlPatternUp = -4162, + xlPatternVertical = -4166, + } + + const enum XlPictureAppearance { + xlPrinter = 2, + xlScreen = 1, + } + + const enum XlPieSliceIndex { + xlCenterPoint = 5, + xlInnerCenterPoint = 8, + xlInnerClockwisePoint = 7, + xlInnerCounterClockwisePoint = 9, + xlMidClockwiseRadiusPoint = 4, + xlMidCounterClockwiseRadiusPoint = 6, + xlOuterCenterPoint = 2, + xlOuterClockwisePoint = 3, + xlOuterCounterClockwisePoint = 1, + } + + const enum XlPieSliceLocation { + xlHorizontalCoordinate = 1, + xlVerticalCoordinate = 2, + } + + const enum XlPivotFieldOrientation { + xlColumnField = 2, + xlDataField = 4, + xlHidden = 0, + xlPageField = 3, + xlRowField = 1, + } + + const enum XlReadingOrder { + xlContext = -5002, + xlLTR = -5003, + xlRTL = -5004, + } + + const enum XlRgbColor { + xlAliceBlue = 16775408, + xlAntiqueWhite = 14150650, + xlAqua = 16776960, + xlAquamarine = 13959039, + xlAzure = 16777200, + xlBeige = 14480885, + xlBisque = 12903679, + xlBlack = 0, + xlBlanchedAlmond = 13495295, + xlBlue = 16711680, + xlBlueViolet = 14822282, + xlBrown = 2763429, + xlBurlyWood = 8894686, + xlCadetBlue = 10526303, + xlChartreuse = 65407, + xlCoral = 5275647, + xlCornflowerBlue = 15570276, + xlCornsilk = 14481663, + xlCrimson = 3937500, + xlDarkBlue = 9109504, + xlDarkCyan = 9145088, + xlDarkGoldenrod = 755384, + xlDarkGray = 11119017, + xlDarkGreen = 25600, + xlDarkGrey = 11119017, + xlDarkKhaki = 7059389, + xlDarkMagenta = 9109643, + xlDarkOliveGreen = 3107669, + xlDarkOrange = 36095, + xlDarkOrchid = 13382297, + xlDarkRed = 139, + xlDarkSalmon = 8034025, + xlDarkSeaGreen = 9419919, + xlDarkSlateBlue = 9125192, + xlDarkSlateGray = 5197615, + xlDarkSlateGrey = 5197615, + xlDarkTurquoise = 13749760, + xlDarkViolet = 13828244, + xlDeepPink = 9639167, + xlDeepSkyBlue = 16760576, + xlDimGray = 6908265, + xlDimGrey = 6908265, + xlDodgerBlue = 16748574, + xlFireBrick = 2237106, + xlFloralWhite = 15792895, + xlForestGreen = 2263842, + xlFuchsia = 16711935, + xlGainsboro = 14474460, + xlGhostWhite = 16775416, + xlGold = 55295, + xlGoldenrod = 2139610, + xlGray = 8421504, + xlGreen = 32768, + xlGreenYellow = 3145645, + xlGrey = 8421504, + xlHoneydew = 15794160, + xlHotPink = 11823615, + xlIndianRed = 6053069, + xlIndigo = 8519755, + xlIvory = 15794175, + xlKhaki = 9234160, + xlLavender = 16443110, + xlLavenderBlush = 16118015, + xlLawnGreen = 64636, + xlLemonChiffon = 13499135, + xlLightBlue = 15128749, + xlLightCoral = 8421616, + xlLightCyan = 9145088, + xlLightGoldenrodYellow = 13826810, + xlLightGray = 13882323, + xlLightGreen = 9498256, + xlLightGrey = 13882323, + xlLightPink = 12695295, + xlLightSalmon = 8036607, + xlLightSeaGreen = 11186720, + xlLightSkyBlue = 16436871, + xlLightSlateGray = 10061943, + xlLightSlateGrey = 10061943, + xlLightSteelBlue = 14599344, + xlLightYellow = 14745599, + xlLime = 65280, + xlLimeGreen = 3329330, + xlLinen = 15134970, + xlMaroon = 128, + xlMediumAquamarine = 11206502, + xlMediumBlue = 13434880, + xlMediumOrchid = 13850042, + xlMediumPurple = 14381203, + xlMediumSeaGreen = 7451452, + xlMediumSlateBlue = 15624315, + xlMediumSpringGreen = 10156544, + xlMediumTurquoise = 13422920, + xlMediumVioletRed = 8721863, + xlMidnightBlue = 7346457, + xlMintCream = 16449525, + xlMistyRose = 14804223, + xlMoccasin = 11920639, + xlNavajoWhite = 11394815, + xlNavy = 8388608, + xlNavyBlue = 8388608, + xlOldLace = 15136253, + xlOlive = 32896, + xlOliveDrab = 2330219, + xlOrange = 42495, + xlOrangeRed = 17919, + xlOrchid = 14053594, + xlPaleGoldenrod = 7071982, + xlPaleGreen = 10025880, + xlPaleTurquoise = 15658671, + xlPaleVioletRed = 9662683, + xlPapayaWhip = 14020607, + xlPeachPuff = 12180223, + xlPeru = 4163021, + xlPink = 13353215, + xlPlum = 14524637, + xlPowderBlue = 15130800, + xlPurple = 8388736, + xlRed = 255, + xlRosyBrown = 9408444, + xlRoyalBlue = 14772545, + xlSalmon = 7504122, + xlSandyBrown = 6333684, + xlSeaGreen = 5737262, + xlSeashell = 15660543, + xlSienna = 2970272, + xlSilver = 12632256, + xlSkyBlue = 15453831, + xlSlateBlue = 13458026, + xlSlateGray = 9470064, + xlSlateGrey = 9470064, + xlSnow = 16448255, + xlSpringGreen = 8388352, + xlSteelBlue = 11829830, + xlTan = 9221330, + xlTeal = 8421376, + xlThistle = 14204888, + xlTomato = 4678655, + xlTurquoise = 13688896, + xlViolet = 15631086, + xlWheat = 11788021, + xlWhite = 16777215, + xlWhiteSmoke = 16119285, + xlYellow = 65535, + xlYellowGreen = 3329434, + } + + const enum XlRowCol { + xlColumns = 2, + xlRows = 1, + } + + const enum XlScaleType { + xlScaleLinear = -4132, + xlScaleLogarithmic = -4133, + } + + const enum XlSizeRepresents { + xlSizeIsArea = 1, + xlSizeIsWidth = 2, + } + + const enum XlTickLabelOrientation { + xlTickLabelOrientationAutomatic = -4105, + xlTickLabelOrientationDownward = -4170, + xlTickLabelOrientationHorizontal = -4128, + xlTickLabelOrientationUpward = -4171, + xlTickLabelOrientationVertical = -4166, + } + + const enum XlTickLabelPosition { + xlTickLabelPositionHigh = -4127, + xlTickLabelPositionLow = -4134, + xlTickLabelPositionNextToAxis = 4, + xlTickLabelPositionNone = -4142, + } + + const enum XlTickMark { + xlTickMarkCross = 4, + xlTickMarkInside = 2, + xlTickMarkNone = -4142, + xlTickMarkOutside = 3, + } + + const enum XlTimeUnit { + xlDays = 0, + xlMonths = 1, + xlYears = 2, + } + + const enum XlTrendlineType { + xlExponential = 5, + xlLinear = -4132, + xlLogarithmic = -4133, + xlMovingAvg = 6, + xlPolynomial = 3, + xlPower = 4, + } + + const enum XlUnderlineStyle { + xlUnderlineStyleDouble = -4119, + xlUnderlineStyleDoubleAccounting = 5, + xlUnderlineStyleNone = -4142, + xlUnderlineStyleSingle = 2, + xlUnderlineStyleSingleAccounting = 4, + } + + const enum XlVAlign { + xlVAlignBottom = -4107, + xlVAlignCenter = -4108, + xlVAlignDistributed = -4117, + xlVAlignJustify = -4130, + xlVAlignTop = -4160, + } + + class AddIn { + private 'Word.AddIn_typekey': AddIn; + private constructor(); + readonly Application: Application; + readonly Autoload: boolean; + readonly Compiled: boolean; + readonly Creator: number; + Delete(): void; + readonly Index: number; + Installed: boolean; + readonly Name: string; + readonly Parent: any; + readonly Path: string; + } + + class AddIns { + private 'Word.AddIns_typekey': AddIns; + private constructor(); + Add(FileName: string, Install?: any): AddIn; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): AddIn; + readonly Parent: any; + Unload(RemoveFromList: boolean): void; + } + + class Adjustments { + private 'Word.Adjustments_typekey': Adjustments; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): number; + readonly Parent: any; + } + + class Application { + private 'Word.Application_typekey': Application; + private constructor(); + Activate(): void; + readonly ActiveDocument: Document; + readonly ActiveEncryptionSession: number; + ActivePrinter: string; + readonly ActiveProtectedViewWindow: ProtectedViewWindow; + readonly ActiveWindow: Window; + AddAddress(TagID: SafeArray, Value: SafeArray): void; + readonly AddIns: AddIns; + readonly AnswerWizard: Office.AnswerWizard; + readonly Application: Application; + readonly ArbitraryXMLSupportAvailable: boolean; + readonly Assistance: Office.IAssistance; + readonly Assistant: Office.Assistant; + readonly AutoCaptions: AutoCaptions; + readonly AutoCorrect: AutoCorrect; + readonly AutoCorrectEmail: AutoCorrect; + AutomaticChange(): void; + AutomationSecurity: Office.MsoAutomationSecurity; + readonly BackgroundPrintingStatus: number; + readonly BackgroundSavingStatus: number; + readonly Bibliography: Bibliography; + BrowseExtraFileTypes: string; + readonly Browser: Browser; + readonly Build: string; + readonly BuildFeatureCrew: string; + readonly BuildFull: string; + BuildKeyCode(Arg1: WdKey, Arg2?: any, Arg3?: any, Arg4?: any): number; + readonly CapsLock: boolean; + Caption: string; + readonly CaptionLabels: CaptionLabels; + CentimetersToPoints(Centimeters: number): number; + ChangeFileOpenDirectory(Path: string): void; + CheckGrammar(String: string): boolean; + CheckLanguage: boolean; + CheckSpelling( + Word: string, CustomDictionary?: any, IgnoreUppercase?: any, MainDictionary?: any, CustomDictionary2?: any, CustomDictionary3?: any, CustomDictionary4?: any, + CustomDictionary5?: any, CustomDictionary6?: any, CustomDictionary7?: any, CustomDictionary8?: any, CustomDictionary9?: any, CustomDictionary10?: any): boolean; + CleanString(String: string): string; + readonly COMAddIns: Office.COMAddIns; + readonly CommandBars: Office.CommandBars; + + /** + * @param Word.WdCompareDestination [Destination=2] + * @param Word.WdGranularity [Granularity=1] + * @param boolean [CompareFormatting=true] + * @param boolean [CompareCaseChanges=true] + * @param boolean [CompareWhitespace=true] + * @param boolean [CompareTables=true] + * @param boolean [CompareHeaders=true] + * @param boolean [CompareFootnotes=true] + * @param boolean [CompareTextboxes=true] + * @param boolean [CompareFields=true] + * @param boolean [CompareComments=true] + * @param boolean [CompareMoves=true] + * @param string [RevisedAuthor=''] + * @param boolean [IgnoreAllComparisonWarnings=false] + */ + CompareDocuments( + OriginalDocument: Document, RevisedDocument: Document, Destination?: WdCompareDestination, Granularity?: WdGranularity, CompareFormatting?: boolean, + CompareCaseChanges?: boolean, CompareWhitespace?: boolean, CompareTables?: boolean, CompareHeaders?: boolean, CompareFootnotes?: boolean, + CompareTextboxes?: boolean, CompareFields?: boolean, CompareComments?: boolean, CompareMoves?: boolean, RevisedAuthor?: string, IgnoreAllComparisonWarnings?: boolean): Document; + readonly Creator: number; + readonly CustomDictionaries: Dictionaries; + CustomizationContext: any; + DDEExecute(Channel: number, Command: string): void; + DDEInitiate(App: string, Topic: string): number; + DDEPoke(Channel: number, Item: string, Data: string): void; + DDERequest(Channel: number, Item: string): string; + DDETerminate(Channel: number): void; + DDETerminateAll(): void; + DefaultLegalBlackline: boolean; + DefaultSaveFormat: string; + DefaultTableSeparator: string; + DefaultWebOptions(): DefaultWebOptions; + readonly Dialogs: Dialogs; + DiscussionSupport(Range: any, cid: any, piCSE: any): void; + DisplayAlerts: WdAlertLevel; + DisplayAutoCompleteTips: boolean; + DisplayDocumentInformationPanel: boolean; + DisplayRecentFiles: boolean; + DisplayScreenTips: boolean; + DisplayScrollBars: boolean; + DisplayStatusBar: boolean; + readonly Documents: Documents; + DontResetInsertionPointProperties: boolean; + readonly Dummy1: boolean; + Dummy2(): boolean; + Dummy4(): void; + readonly EmailOptions: EmailOptions; + EmailTemplate: string; + EnableCancelKey: WdEnableCancelKey; + FeatureInstall: Office.MsoFeatureInstall; + readonly FileConverters: FileConverters; + FileDialog(FileDialogType: Office.MsoFileDialogType): Office.FileDialog; + readonly FileSearch: Office.FileSearch; + FileValidation: Office.MsoFileValidationMode; + FindKey(KeyCode: number, KeyCode2?: any): KeyBinding; + readonly FocusInMailHeader: boolean; + readonly FontNames: FontNames; + GetAddress( + Name?: any, AddressProperties?: any, UseAutoText?: any, DisplaySelectDialog?: any, SelectDialog?: any, CheckNamesDialog?: any, RecentAddressesChoice?: any, + UpdateRecentAddresses?: any): string; + GetDefaultTheme(DocumentType: WdDocumentMedium): string; + GetSpellingSuggestions( + Word: string, CustomDictionary?: any, IgnoreUppercase?: any, MainDictionary?: any, SuggestionMode?: any, CustomDictionary2?: any, CustomDictionary3?: any, + CustomDictionary4?: any, CustomDictionary5?: any, CustomDictionary6?: any, CustomDictionary7?: any, CustomDictionary8?: any, CustomDictionary9?: any, + CustomDictionary10?: any): SpellingSuggestions; + GoBack(): void; + GoForward(): void; + readonly HangulHanjaDictionaries: HangulHanjaConversionDictionaries; + Height: number; + Help(HelpType: any): void; + HelpTool(): void; + InchesToPoints(Inches: number): number; + International(Index: WdInternationalIndex): any; + IsObjectValid(Object: any): boolean; + readonly IsSandboxed: boolean; + readonly KeyBindings: KeyBindings; + + /** @param number [LangId=0] */ + Keyboard(LangId?: number): number; + KeyboardBidi(): void; + KeyboardLatin(): void; + KeysBoundTo(KeyCategory: WdKeyCategory, Command: string, CommandParameter?: any): KeysBoundTo; + KeyString(KeyCode: number, KeyCode2?: any): string; + readonly LandscapeFontNames: FontNames; + readonly Language: Office.MsoLanguageID; + readonly Languages: Languages; + readonly LanguageSettings: Office.LanguageSettings; + Left: number; + LinesToPoints(Lines: number): number; + ListCommands(ListAllCommands: boolean): void; + readonly ListGalleries: ListGalleries; + LoadMasterList(FileName: string): void; + LookupNameProperties(Name: string): void; + readonly MacroContainer: any; + readonly MailingLabel: MailingLabel; + readonly MailMessage: MailMessage; + readonly MailSystem: WdMailSystem; + readonly MAPIAvailable: boolean; + readonly MathCoprocessorAvailable: boolean; + + /** + * @param Word.WdCompareDestination [Destination=2] + * @param Word.WdGranularity [Granularity=1] + * @param boolean [CompareFormatting=true] + * @param boolean [CompareCaseChanges=true] + * @param boolean [CompareWhitespace=true] + * @param boolean [CompareTables=true] + * @param boolean [CompareHeaders=true] + * @param boolean [CompareFootnotes=true] + * @param boolean [CompareTextboxes=true] + * @param boolean [CompareFields=true] + * @param boolean [CompareComments=true] + * @param boolean [CompareMoves=true] + * @param string [OriginalAuthor=''] + * @param string [RevisedAuthor=''] + * @param Word.WdMergeFormatFrom [FormatFrom=2] + */ + MergeDocuments( + OriginalDocument: Document, RevisedDocument: Document, Destination?: WdCompareDestination, Granularity?: WdGranularity, CompareFormatting?: boolean, + CompareCaseChanges?: boolean, CompareWhitespace?: boolean, CompareTables?: boolean, CompareHeaders?: boolean, CompareFootnotes?: boolean, + CompareTextboxes?: boolean, CompareFields?: boolean, CompareComments?: boolean, CompareMoves?: boolean, OriginalAuthor?: string, RevisedAuthor?: string, + FormatFrom?: WdMergeFormatFrom): Document; + MillimetersToPoints(Millimeters: number): number; + MountVolume(Zone: string, Server: string, Volume: string, User?: any, UserPassword?: any, VolumePassword?: any): number; + readonly MouseAvailable: boolean; + Move(Left: number, Top: number): void; + readonly Name: string; + readonly NewDocument: Office.NewFile; + NewWindow(): Window; + NextLetter(): void; + readonly NormalTemplate: Template; + readonly NumLock: boolean; + readonly OMathAutoCorrect: OMathAutoCorrect; + OnTime(When: any, Name: string, Tolerance?: any): void; + OpenAttachmentsInFullScreen: boolean; + readonly Options: Options; + OrganizerCopy(Source: string, Destination: string, Name: string, Object: WdOrganizerObject): void; + OrganizerDelete(Source: string, Name: string, Object: WdOrganizerObject): void; + OrganizerRename(Source: string, Name: string, NewName: string, Object: WdOrganizerObject): void; + readonly Parent: any; + readonly Path: string; + readonly PathSeparator: string; + PicasToPoints(Picas: number): number; + readonly PickerDialog: Office.PickerDialog; + PixelsToPoints(Pixels: number, fVertical?: any): number; + PointsToCentimeters(Points: number): number; + PointsToInches(Points: number): number; + PointsToLines(Points: number): number; + PointsToMillimeters(Points: number): number; + PointsToPicas(Points: number): number; + PointsToPixels(Points: number, fVertical?: any): number; + readonly PortraitFontNames: FontNames; + PrintOut( + Background?: any, Append?: any, Range?: any, OutputFileName?: any, From?: any, To?: any, Item?: any, Copies?: any, Pages?: any, PageType?: any, + PrintToFile?: any, Collate?: any, FileName?: any, ActivePrinterMacGX?: any, ManualDuplexPrint?: any, PrintZoomColumn?: any, PrintZoomRow?: any, + PrintZoomPaperWidth?: any, PrintZoomPaperHeight?: any): void; + PrintOut2000( + Background?: any, Append?: any, Range?: any, OutputFileName?: any, From?: any, To?: any, Item?: any, Copies?: any, Pages?: any, PageType?: any, + PrintToFile?: any, Collate?: any, FileName?: any, ActivePrinterMacGX?: any, ManualDuplexPrint?: any, PrintZoomColumn?: any, PrintZoomRow?: any, + PrintZoomPaperWidth?: any, PrintZoomPaperHeight?: any): void; + PrintOutOld( + Background?: any, Append?: any, Range?: any, OutputFileName?: any, From?: any, To?: any, Item?: any, Copies?: any, Pages?: any, PageType?: any, + PrintToFile?: any, Collate?: any, FileName?: any, ActivePrinterMacGX?: any, ManualDuplexPrint?: any): void; + PrintPreview: boolean; + ProductCode(): string; + readonly ProtectedViewWindows: ProtectedViewWindows; + PutFocusInMailHeader(): void; + Quit(SaveChanges?: any, OriginalFormat?: any, RouteDocument?: any): void; + readonly RecentFiles: RecentFiles; + Repeat(Times?: any): boolean; + ResetIgnoreAll(): void; + Resize(Width: number, Height: number): void; + RestrictLinkedStyles: boolean; + Run( + MacroName: string, varg1?: any, varg2?: any, varg3?: any, varg4?: any, varg5?: any, varg6?: any, varg7?: any, varg8?: any, varg9?: any, varg10?: any, + varg11?: any, varg12?: any, varg13?: any, varg14?: any, varg15?: any, varg16?: any, varg17?: any, varg18?: any, varg19?: any, varg20?: any, varg21?: any, + varg22?: any, varg23?: any, varg24?: any, varg25?: any, varg26?: any, varg27?: any, varg28?: any, varg29?: any, varg30?: any): any; + RunOld(MacroName: string): void; + ScreenRefresh(): void; + ScreenUpdating: boolean; + readonly Selection: Selection; + SendFax(): void; + SetDefaultTheme(Name: string, DocumentType: WdDocumentMedium): void; + ShowClipboard(): void; + ShowMe(): void; + ShowStartupDialog: boolean; + ShowStylePreviews: boolean; + ShowVisualBasicEditor: boolean; + ShowWindowsInTaskbar: boolean; + readonly SmartArtColors: Office.SmartArtColors; + readonly SmartArtLayouts: Office.SmartArtLayouts; + readonly SmartArtQuickStyles: Office.SmartArtQuickStyles; + readonly SmartTagRecognizers: SmartTagRecognizers; + readonly SmartTagTypes: SmartTagTypes; + readonly SpecialMode: boolean; + StartupPath: string; + StatusBar: string; + SubstituteFont(UnavailableFont: string, SubstituteFont: string): void; + SynonymInfo(Word: string, LanguageID?: any): SynonymInfo; + readonly System: System; + readonly TaskPanes: TaskPanes; + readonly Tasks: Tasks; + readonly Templates: Templates; + ThreeWayMerge(LocalDocument: Document, ServerDocument: Document, BaseDocument: Document, FavorSource: boolean): void; + ToggleKeyboard(): void; + Top: number; + readonly UndoRecord: UndoRecord; + readonly UsableHeight: number; + readonly UsableWidth: number; + UserAddress: string; + readonly UserControl: boolean; + UserInitials: string; + UserName: string; + readonly VBE: VBIDE.VBE; + readonly Version: string; + Visible: boolean; + Width: number; + readonly Windows: Windows; + WindowState: WdWindowState; + readonly WordBasic: any; + readonly XMLNamespaces: XMLNamespaces; + } + + class AutoCaption { + private 'Word.AutoCaption_typekey': AutoCaption; + private constructor(); + readonly Application: Application; + AutoInsert: boolean; + CaptionLabel: any; + readonly Creator: number; + readonly Index: number; + readonly Name: string; + readonly Parent: any; + } + + class AutoCaptions { + private 'Word.AutoCaptions_typekey': AutoCaptions; + private constructor(); + readonly Application: Application; + CancelAutoInsert(): void; + readonly Count: number; + readonly Creator: number; + Item(Index: any): AutoCaption; + readonly Parent: any; + } + + class AutoCorrect { + private 'Word.AutoCorrect_typekey': AutoCorrect; + private constructor(); + readonly Application: Application; + CorrectCapsLock: boolean; + CorrectDays: boolean; + CorrectHangulAndAlphabet: boolean; + CorrectInitialCaps: boolean; + CorrectKeyboardSetting: boolean; + CorrectSentenceCaps: boolean; + CorrectTableCells: boolean; + readonly Creator: number; + DisplayAutoCorrectOptions: boolean; + readonly Entries: AutoCorrectEntries; + FirstLetterAutoAdd: boolean; + readonly FirstLetterExceptions: FirstLetterExceptions; + HangulAndAlphabetAutoAdd: boolean; + readonly HangulAndAlphabetExceptions: HangulAndAlphabetExceptions; + OtherCorrectionsAutoAdd: boolean; + readonly OtherCorrectionsExceptions: OtherCorrectionsExceptions; + readonly Parent: any; + ReplaceText: boolean; + ReplaceTextFromSpellingChecker: boolean; + TwoInitialCapsAutoAdd: boolean; + readonly TwoInitialCapsExceptions: TwoInitialCapsExceptions; + } + + class AutoCorrectEntries { + private 'Word.AutoCorrectEntries_typekey': AutoCorrectEntries; + private constructor(); + Add(Name: string, Value: string): AutoCorrectEntry; + AddRichText(Name: string, Range: Range): AutoCorrectEntry; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): AutoCorrectEntry; + readonly Parent: any; + } + + class AutoCorrectEntry { + private 'Word.AutoCorrectEntry_typekey': AutoCorrectEntry; + private constructor(); + readonly Application: Application; + Apply(Range: Range): void; + readonly Creator: number; + Delete(): void; + readonly Index: number; + Name: string; + readonly Parent: any; + readonly RichText: boolean; + Value: string; + } + + class AutoTextEntries { + private 'Word.AutoTextEntries_typekey': AutoTextEntries; + private constructor(); + Add(Name: string, Range: Range): AutoTextEntry; + AppendToSpike(Range: Range): AutoTextEntry; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): AutoTextEntry; + readonly Parent: any; + } + + class AutoTextEntry { + private 'Word.AutoTextEntry_typekey': AutoTextEntry; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Index: number; + Insert(Where: Range, RichText?: any): Range; + Name: string; + readonly Parent: any; + readonly StyleName: string; + Value: string; + } + + class Bibliography { + private 'Word.Bibliography_typekey': Bibliography; + private constructor(); + readonly Application: Application; + BibliographyStyle: string; + readonly Creator: number; + GenerateUniqueTag(): string; + readonly Parent: any; + readonly Sources: Sources; + } + + class Bookmark { + private 'Word.Bookmark_typekey': Bookmark; + private constructor(); + readonly Application: Application; + readonly Column: boolean; + Copy(Name: string): Bookmark; + readonly Creator: number; + Delete(): void; + readonly Empty: boolean; + End: number; + readonly Name: string; + readonly Parent: any; + readonly Range: Range; + Select(): void; + Start: number; + readonly StoryType: WdStoryType; + } + + class Bookmarks { + private 'Word.Bookmarks_typekey': Bookmarks; + private constructor(); + Add(Name: string, Range?: any): Bookmark; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + DefaultSorting: WdBookmarkSortBy; + Exists(Name: string): boolean; + Item(Index: number | string): Bookmark; + readonly Parent: any; + ShowHidden: boolean; + } + + class Border { + private 'Word.Border_typekey': Border; + private constructor(); + readonly Application: Application; + ArtStyle: WdPageBorderArt; + ArtWidth: number; + Color: WdColor; + ColorIndex: WdColorIndex; + readonly Creator: number; + readonly Inside: boolean; + LineStyle: WdLineStyle; + LineWidth: WdLineWidth; + readonly Parent: any; + Visible: boolean; + } + + class Borders { + private 'Word.Borders_typekey': Borders; + private constructor(); + AlwaysInFront: boolean; + readonly Application: Application; + ApplyPageBordersToAllSections(): void; + readonly Count: number; + readonly Creator: number; + DistanceFrom: WdBorderDistanceFrom; + DistanceFromBottom: number; + DistanceFromLeft: number; + DistanceFromRight: number; + DistanceFromTop: number; + Enable: boolean | WdConstants.wdUndefined | WdLineStyle; + EnableFirstPageInSection: boolean; + EnableOtherPagesInSection: boolean; + readonly HasHorizontal: boolean; + readonly HasVertical: boolean; + InsideColor: WdColor; + InsideColorIndex: WdColorIndex; + InsideLineStyle: WdLineStyle; + InsideLineWidth: WdLineWidth; + Item(Index: WdBorderType): Border; + JoinBorders: boolean; + OutsideColor: WdColor; + OutsideColorIndex: WdColorIndex; + OutsideLineStyle: WdLineStyle; + OutsideLineWidth: WdLineWidth; + readonly Parent: any; + Shadow: boolean; + SurroundFooter: boolean; + SurroundHeader: boolean; + } + + class Break { + private 'Word.Break_typekey': Break; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly PageIndex: number; + readonly Parent: any; + readonly Range: Range; + } + + class Breaks { + private 'Word.Breaks_typekey': Breaks; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Break; + readonly Parent: any; + } + + class Browser { + private 'Word.Browser_typekey': Browser; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Next(): void; + readonly Parent: any; + Previous(): void; + Target: WdBrowseTarget; + } + + class BuildingBlock { + private 'Word.BuildingBlock_typekey': BuildingBlock; + private constructor(); + readonly Application: Application; + readonly Category: Category; + readonly Creator: number; + Delete(): void; + Description: string; + readonly ID: string; + readonly Index: number; + Insert(Where: Range, RichText?: any): Range; + InsertOptions: number; + Name: string; + readonly Parent: any; + readonly Type: BuildingBlockType; + Value: string; + } + + class BuildingBlockEntries { + private 'Word.BuildingBlockEntries_typekey': BuildingBlockEntries; + private constructor(); + + /** @param Word.WdDocPartInsertOptions [InsertOptions=0] */ + Add(Name: string, Type: WdBuildingBlockTypes, Category: string, Range: Range, Description: any, InsertOptions?: WdDocPartInsertOptions): BuildingBlock; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): BuildingBlock; + readonly Parent: any; + } + + class BuildingBlocks { + private 'Word.BuildingBlocks_typekey': BuildingBlocks; + private constructor(); + + /** @param Word.WdDocPartInsertOptions [InsertOptions=0] */ + Add(Name: string, Range: Range, Description: any, InsertOptions?: WdDocPartInsertOptions): BuildingBlock; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): BuildingBlock; + readonly Parent: any; + } + + class BuildingBlockType { + private 'Word.BuildingBlockType_typekey': BuildingBlockType; + private constructor(); + readonly Application: Application; + readonly Categories: Categories; + readonly Creator: number; + readonly Index: number; + readonly Name: string; + readonly Parent: any; + } + + class BuildingBlockTypes { + private 'Word.BuildingBlockTypes_typekey': BuildingBlockTypes; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: WdBuildingBlockTypes): BuildingBlockType; + readonly Parent: any; + } + + class CalloutFormat { + private 'Word.CalloutFormat_typekey': CalloutFormat; + private constructor(); + Accent: Office.MsoTriState; + Angle: Office.MsoCalloutAngleType; + readonly Application: Application; + AutoAttach: Office.MsoTriState; + readonly AutoLength: Office.MsoTriState; + AutomaticLength(): void; + Border: Office.MsoTriState; + readonly Creator: number; + CustomDrop(Drop: number): void; + CustomLength(Length: number): void; + readonly Drop: number; + readonly DropType: Office.MsoCalloutDropType; + Gap: number; + readonly Length: number; + readonly Parent: any; + PresetDrop(DropType: Office.MsoCalloutDropType): void; + Type: Office.MsoCalloutType; + } + + class CanvasShapes { + private 'Word.CanvasShapes_typekey': CanvasShapes; + private constructor(); + AddCallout(Type: Office.MsoCalloutType, Left: number, Top: number, Width: number, Height: number): Shape; + AddConnector(Type: Office.MsoConnectorType, BeginX: number, BeginY: number, EndX: number, EndY: number): Shape; + AddCurve(SafeArrayOfPoints: any): Shape; + AddLabel(Orientation: Office.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape; + AddLine(BeginX: number, BeginY: number, EndX: number, EndY: number): Shape; + AddPicture(FileName: string, LinkToFile?: any, SaveWithDocument?: any, Left?: any, Top?: any, Width?: any, Height?: any): Shape; + AddPolyline(SafeArrayOfPoints: any): Shape; + AddShape(Type: number, Left: number, Top: number, Width: number, Height: number): Shape; + AddTextbox(Orientation: Office.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number): Shape; + AddTextEffect( + PresetTextEffect: Office.MsoPresetTextEffect, Text: string, FontName: string, FontSize: number, FontBold: Office.MsoTriState, FontItalic: Office.MsoTriState, + Left: number, Top: number): Shape; + readonly Application: Application; + BuildFreeform(EditingType: Office.MsoEditingType, X1: number, Y1: number): FreeformBuilder; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Shape; + readonly Parent: any; + Range(Index: any): ShapeRange; + SelectAll(): void; + } + + class CaptionLabel { + private 'Word.CaptionLabel_typekey': CaptionLabel; + private constructor(); + readonly Application: Application; + readonly BuiltIn: boolean; + ChapterStyleLevel: number; + readonly Creator: number; + Delete(): void; + readonly ID: WdCaptionLabelID; + IncludeChapterNumber: boolean; + readonly Name: string; + NumberStyle: WdCaptionNumberStyle; + readonly Parent: any; + Position: WdCaptionPosition; + Separator: WdSeparatorType; + } + + class CaptionLabels { + private 'Word.CaptionLabels_typekey': CaptionLabels; + private constructor(); + Add(Name: string): CaptionLabel; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): CaptionLabel; + readonly Parent: any; + } + + class Categories { + private 'Word.Categories_typekey': Categories; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Category; + readonly Parent: any; + } + + class Category { + private 'Word.Category_typekey': Category; + private constructor(); + readonly Application: Application; + readonly BuildingBlocks: BuildingBlocks; + readonly Creator: number; + readonly Index: number; + readonly Name: string; + readonly Parent: any; + readonly Type: BuildingBlockType; + } + + class Cell { + private 'Word.Cell_typekey': Cell; + private constructor(); + readonly Application: Application; + AutoSum(): void; + Borders: Borders; + BottomPadding: number; + readonly Column: Column; + readonly ColumnIndex: number; + readonly Creator: number; + Delete(ShiftCells?: any): void; + FitText: boolean; + Formula(Formula?: any, NumFormat?: any): void; + Height: number; + HeightRule: WdRowHeightRule; + ID: string; + LeftPadding: number; + Merge(MergeTo: Cell): void; + readonly NestingLevel: number; + readonly Next: Cell; + readonly Parent: any; + PreferredWidth: number; + PreferredWidthType: WdPreferredWidthType; + readonly Previous: Cell; + readonly Range: Range; + RightPadding: number; + readonly Row: Row; + readonly RowIndex: number; + Select(): void; + SetHeight(RowHeight: any, HeightRule: WdRowHeightRule): void; + SetWidth(ColumnWidth: number, RulerStyle: WdRulerStyle): void; + readonly Shading: Shading; + Split(NumRows?: any, NumColumns?: any): void; + readonly Tables: Tables; + TopPadding: number; + VerticalAlignment: WdCellVerticalAlignment; + Width: number; + WordWrap: boolean; + } + + class Cells { + private 'Word.Cells_typekey': Cells; + private constructor(); + Add(BeforeCell?: any): Cell; + readonly Application: Application; + AutoFit(): void; + Borders: Borders; + readonly Count: number; + readonly Creator: number; + Delete(ShiftCells?: any): void; + DistributeHeight(): void; + DistributeWidth(): void; + Height: number; + HeightRule: WdRowHeightRule; + Item(Index: number): Cell; + Merge(): void; + readonly NestingLevel: number; + readonly Parent: any; + PreferredWidth: number; + PreferredWidthType: WdPreferredWidthType; + SetHeight(RowHeight: any, HeightRule: WdRowHeightRule): void; + SetWidth(ColumnWidth: number, RulerStyle: WdRulerStyle): void; + readonly Shading: Shading; + Split(NumRows?: any, NumColumns?: any, MergeBeforeSplit?: any): void; + VerticalAlignment: WdCellVerticalAlignment; + Width: number; + } + + class Characters { + private 'Word.Characters_typekey': Characters; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + readonly First: Range; + Item(Index: number): Range; + readonly Last: Range; + readonly Parent: any; + } + + class Chart { + private 'Word.Chart_typekey': Chart; + private constructor(); + readonly Application: any; + ApplyChartTemplate(FileName: string): void; + ApplyCustomType(ChartType: Office.XlChartType, TypeName?: any): void; + + /** @param Word.XlDataLabelsType [Type=2] */ + ApplyDataLabels( + Type?: XlDataLabelsType, LegendKey?: any, AutoText?: any, HasLeaderLines?: any, ShowSeriesName?: any, ShowCategoryName?: any, ShowValue?: any, + ShowPercentage?: any, ShowBubbleSize?: any, Separator?: any): void; + ApplyLayout(Layout: number, ChartType?: any): void; + readonly Area3DGroup: ChartGroup; + AreaGroups(Index?: any): any; + AutoFormat(Gallery: number, Format?: any): void; + AutoScaling: boolean; + + /** @param Word.XlAxisGroup [AxisGroup=1] */ + Axes(Type: any, AxisGroup?: XlAxisGroup): any; + readonly BackWall: Walls; + readonly Bar3DGroup: ChartGroup; + BarGroups(Index?: any): any; + BarShape: XlBarShape; + readonly ChartArea: ChartArea; + readonly ChartData: ChartData; + ChartGroups(Index?: any): any; + ChartStyle: any; + readonly ChartTitle: ChartTitle; + ChartType: Office.XlChartType; + ChartWizard( + Source?: any, Gallery?: any, Format?: any, PlotBy?: any, CategoryLabels?: any, SeriesLabels?: any, HasLegend?: any, Title?: any, CategoryTitle?: any, + ValueTitle?: any, ExtraTitle?: any): void; + ClearToMatchStyle(): void; + readonly Column3DGroup: ChartGroup; + ColumnGroups(Index?: any): any; + Copy(Before?: any, After?: any): void; + + /** + * @param Word.XlPictureAppearance [Appearance=1] + * @param Word.XlCopyPictureFormat [Format=-4147] + * @param Word.XlPictureAppearance [Size=2] + */ + CopyPicture(Appearance?: XlPictureAppearance, Format?: XlCopyPictureFormat, Size?: XlPictureAppearance): void; + readonly Corners: Corners; + readonly Creator: number; + readonly DataTable: DataTable; + Delete(): any; + DepthPercent: number; + DisplayBlanksAs: XlDisplayBlanksAs; + DoughnutGroups(Index?: any): any; + Elevation: number; + Export(FileName: string, FilterName?: any, Interactive?: any): boolean; + readonly Floor: Floor; + GapDepth: number; + GetChartElement(x: number, y: number, ElementID: number, Arg1: number, Arg2: number): void; + HasAxis(Index1?: any, Index2?: any): any; + HasDataTable: boolean; + HasLegend: boolean; + HasPivotFields: boolean; + HasTitle: boolean; + HeightPercent: number; + readonly Legend: Legend; + readonly Line3DGroup: ChartGroup; + LineGroups(Index?: any): any; + readonly Parent: any; + Paste(Type?: any): void; + Perspective: number; + readonly Pie3DGroup: ChartGroup; + PieGroups(Index?: any): any; + readonly PivotLayout: any; + readonly PlotArea: PlotArea; + PlotBy: XlRowCol; + PlotVisibleOnly: boolean; + RadarGroups(Index?: any): any; + Refresh(): void; + RightAngleAxes: any; + Rotation: any; + SaveChartTemplate(FileName: string): void; + Select(Replace?: any): any; + SeriesCollection(Index?: any): any; + SetBackgroundPicture(FileName: string): void; + SetDefaultChart(Name: any): void; + SetElement(Element: Office.MsoChartElementType): void; + SetSourceData(Source: string, PlotBy?: any): void; + readonly Shapes: any; + ShowAllFieldButtons: boolean; + ShowAxisFieldButtons: boolean; + ShowDataLabelsOverMaximum: boolean; + ShowLegendFieldButtons: boolean; + ShowReportFilterFieldButtons: boolean; + ShowValueFieldButtons: boolean; + readonly SideWall: Walls; + SubType: number; + readonly SurfaceGroup: ChartGroup; + Type: number; + readonly Walls: Walls; + XYGroups(Index?: any): any; + } + + class ChartArea { + private 'Word.ChartArea_typekey': ChartArea; + private constructor(); + readonly Application: any; + AutoScaleFont: any; + readonly Border: ChartBorder; + Clear(): any; + ClearContents(): any; + ClearFormats(): any; + Copy(): any; + readonly Creator: number; + readonly Fill: ChartFillFormat; + readonly Font: ChartFont; + readonly Format: ChartFormat; + Height: number; + readonly Interior: Interior; + Left: number; + readonly Name: string; + readonly Parent: any; + Select(): any; + Shadow: boolean; + Top: number; + Width: number; + } + + class ChartBorder { + private 'Word.ChartBorder_typekey': ChartBorder; + private constructor(); + readonly Application: any; + Color: any; + ColorIndex: any; + readonly Creator: number; + LineStyle: any; + readonly Parent: any; + Weight: any; + } + + class ChartCharacters { + private 'Word.ChartCharacters_typekey': ChartCharacters; + private constructor(); + readonly Application: any; + Caption: string; + readonly Count: number; + readonly Creator: number; + Delete(): any; + readonly Font: ChartFont; + Insert(String: string): any; + readonly Parent: any; + PhoneticCharacters: string; + Text: string; + } + + class ChartColorFormat { + private 'Word.ChartColorFormat_typekey': ChartColorFormat; + private constructor(); + readonly _Default: number; + readonly Application: any; + readonly Creator: number; + readonly Parent: any; + readonly RGB: number; + SchemeColor: number; + readonly Type: number; + } + + class ChartData { + private 'Word.ChartData_typekey': ChartData; + private constructor(); + Activate(): void; + BreakLink(): void; + readonly IsLinked: boolean; + readonly Workbook: any; + } + + class ChartFillFormat { + private 'Word.ChartFillFormat_typekey': ChartFillFormat; + private constructor(); + readonly Application: any; + readonly BackColor: ChartColorFormat; + readonly Creator: number; + readonly ForeColor: ChartColorFormat; + readonly GradientColorType: Office.MsoGradientColorType; + readonly GradientDegree: number; + readonly GradientStyle: Office.MsoGradientStyle; + readonly GradientVariant: number; + OneColorGradient(Style: Office.MsoGradientStyle, Variant: number, Degree: number): void; + readonly Parent: any; + readonly Pattern: Office.MsoPatternType; + Patterned(Pattern: Office.MsoPatternType): void; + PresetGradient(Style: Office.MsoGradientStyle, Variant: number, PresetGradientType: Office.MsoPresetGradientType): void; + readonly PresetGradientType: Office.MsoPresetGradientType; + readonly PresetTexture: Office.MsoPresetTexture; + PresetTextured(PresetTexture: Office.MsoPresetTexture): void; + Solid(): void; + readonly TextureName: string; + readonly TextureType: Office.MsoTextureType; + TwoColorGradient(Style: Office.MsoGradientStyle, Variant: number): void; + readonly Type: Office.MsoFillType; + UserPicture(PictureFile?: any, PictureFormat?: any, PictureStackUnit?: any, PicturePlacement?: any): void; + UserTextured(TextureFile: string): void; + Visible: Office.MsoTriState; + } + + class ChartFont { + private 'Word.ChartFont_typekey': ChartFont; + private constructor(); + readonly Application: any; + Background: any; + Bold: any; + Color: any; + ColorIndex: any; + readonly Creator: number; + FontStyle: any; + Italic: any; + Name: any; + OutlineFont: any; + readonly Parent: any; + Shadow: any; + Size: any; + StrikeThrough: any; + Subscript: any; + Superscript: any; + Underline: any; + } + + class ChartFormat { + private 'Word.ChartFormat_typekey': ChartFormat; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Fill: FillFormat; + readonly Glow: GlowFormat; + readonly Line: LineFormat; + readonly Parent: any; + readonly PictureFormat: PictureFormat; + readonly Shadow: ShadowFormat; + readonly SoftEdge: SoftEdgeFormat; + readonly TextFrame2: Office.TextFrame2; + readonly ThreeD: ThreeDFormat; + } + + class ChartGroup { + private 'Word.ChartGroup_typekey': ChartGroup; + private constructor(); + readonly Application: any; + AxisGroup: XlAxisGroup; + BubbleScale: number; + readonly Creator: number; + DoughnutHoleSize: number; + readonly DownBars: DownBars; + readonly DropLines: DropLines; + FirstSliceAngle: number; + GapWidth: number; + Has3DShading: boolean; + HasDropLines: boolean; + HasHiLoLines: boolean; + HasRadarAxisLabels: boolean; + HasSeriesLines: boolean; + HasUpDownBars: boolean; + readonly HiLoLines: HiLoLines; + readonly Index: number; + Overlap: number; + readonly Parent: any; + readonly RadarAxisLabels: TickLabels; + SecondPlotSize: number; + SeriesCollection(Index?: any): any; + readonly SeriesLines: SeriesLines; + ShowNegativeBubbles: boolean; + SizeRepresents: XlSizeRepresents; + SplitType: XlChartSplitType; + SplitValue: any; + SubType: number; + Type: number; + readonly UpBars: UpBars; + VaryByCategories: boolean; + } + + class ChartTitle { + private 'Word.ChartTitle_typekey': ChartTitle; + private constructor(); + readonly Application: any; + AutoScaleFont: any; + readonly Border: ChartBorder; + Caption: string; + Characters(Start?: any, Length?: any): ChartCharacters; + readonly Creator: number; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Font: ChartFont; + readonly Format: ChartFormat; + Formula: string; + FormulaLocal: string; + FormulaR1C1: string; + FormulaR1C1Local: string; + readonly Height: number; + HorizontalAlignment: any; + IncludeInLayout: boolean; + readonly Interior: Interior; + Left: number; + readonly Name: string; + Orientation: any; + readonly Parent: any; + Position: XlChartElementPosition; + ReadingOrder: number; + Select(): any; + Shadow: boolean; + Text: string; + Top: number; + VerticalAlignment: any; + readonly Width: number; + } + + class CheckBox { + private 'Word.CheckBox_typekey': CheckBox; + private constructor(); + readonly Application: Application; + AutoSize: boolean; + readonly Creator: number; + Default: boolean; + readonly Parent: any; + Size: number; + readonly Valid: boolean; + Value: boolean; + } + + class CoAuthLock { + private 'Word.CoAuthLock_typekey': CoAuthLock; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly HeaderFooter: boolean; + readonly Owner: CoAuthor; + readonly Parent: any; + readonly Range: Range; + readonly Type: WdLockType; + Unlock(): void; + } + + class CoAuthLocks { + private 'Word.CoAuthLocks_typekey': CoAuthLocks; + private constructor(); + + /** @param Word.WdLockType [Type=1] */ + Add(Range: any, Type?: WdLockType): CoAuthLock; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): CoAuthLock; + readonly Parent: any; + RemoveEphemeralLocks(): void; + } + + class CoAuthor { + private 'Word.CoAuthor_typekey': CoAuthor; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly EmailAddress: string; + readonly ID: string; + readonly IsMe: boolean; + readonly Locks: CoAuthLocks; + readonly Name: string; + readonly Parent: any; + } + + class CoAuthoring { + private 'Word.CoAuthoring_typekey': CoAuthoring; + private constructor(); + readonly Application: Application; + readonly Authors: CoAuthors; + readonly CanMerge: boolean; + readonly CanShare: boolean; + readonly Conflicts: Conflicts; + readonly Creator: number; + readonly Locks: CoAuthLocks; + readonly Me: CoAuthor; + readonly Parent: any; + readonly PendingUpdates: boolean; + readonly Updates: CoAuthUpdates; + } + + class CoAuthors { + private 'Word.CoAuthors_typekey': CoAuthors; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): CoAuthor; + readonly Parent: any; + } + + class CoAuthUpdate { + private 'Word.CoAuthUpdate_typekey': CoAuthUpdate; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Parent: any; + readonly Range: Range; + } + + class CoAuthUpdates { + private 'Word.CoAuthUpdates_typekey': CoAuthUpdates; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): CoAuthUpdate; + readonly Parent: any; + } + + class ColorFormat { + private 'Word.ColorFormat_typekey': ColorFormat; + private constructor(); + readonly Application: Application; + Black: number; + Brightness: number; + readonly Creator: number; + Cyan: number; + Ink(Index: number): number; + Magenta: number; + Name: string; + ObjectThemeColor: WdThemeColorIndex; + OverPrint: Office.MsoTriState; + readonly Parent: any; + RGB: number; + SchemeColor: number; + SetCMYK(Cyan: number, Magenta: number, Yellow: number, Black: number): void; + TintAndShade: number; + readonly Type: Office.MsoColorType; + Yellow: number; + } + + class Column { + private 'Word.Column_typekey': Column; + private constructor(); + readonly Application: Application; + AutoFit(): void; + Borders: Borders; + readonly Cells: Cells; + readonly Creator: number; + Delete(): void; + readonly Index: number; + readonly IsFirst: boolean; + readonly IsLast: boolean; + readonly NestingLevel: number; + readonly Next: Column; + readonly Parent: any; + PreferredWidth: number; + PreferredWidthType: WdPreferredWidthType; + readonly Previous: Column; + Select(): void; + SetWidth(ColumnWidth: number, RulerStyle: WdRulerStyle): void; + readonly Shading: Shading; + Sort( + ExcludeHeader?: any, SortFieldType?: any, SortOrder?: any, CaseSensitive?: any, BidiSort?: any, IgnoreThe?: any, IgnoreKashida?: any, IgnoreDiacritics?: any, + IgnoreHe?: any, LanguageID?: any): void; + SortOld(ExcludeHeader?: any, SortFieldType?: any, SortOrder?: any, CaseSensitive?: any, LanguageID?: any): void; + Width: number; + } + + class Columns { + private 'Word.Columns_typekey': Columns; + private constructor(); + Add(BeforeColumn?: any): Column; + readonly Application: Application; + AutoFit(): void; + Borders: Borders; + readonly Count: number; + readonly Creator: number; + Delete(): void; + DistributeWidth(): void; + readonly First: Column; + Item(Index: number): Column; + readonly Last: Column; + readonly NestingLevel: number; + readonly Parent: any; + PreferredWidth: number; + PreferredWidthType: WdPreferredWidthType; + Select(): void; + SetWidth(ColumnWidth: number, RulerStyle: WdRulerStyle): void; + readonly Shading: Shading; + Width: number; + } + + class Comment { + private 'Word.Comment_typekey': Comment; + private constructor(); + readonly Application: Application; + Author: string; + readonly Creator: number; + readonly Date: VarDate; + Delete(): void; + Edit(): void; + readonly Index: number; + Initial: string; + readonly IsInk: boolean; + readonly Parent: any; + readonly Range: Range; + readonly Reference: Range; + readonly Scope: Range; + ShowTip: boolean; + } + + class Comments { + private 'Word.Comments_typekey': Comments; + private constructor(); + Add(Range: Range, Text?: any): Comment; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Comment; + readonly Parent: any; + ShowBy: string; + } + + class ConditionalStyle { + private 'Word.ConditionalStyle_typekey': ConditionalStyle; + private constructor(); + readonly Application: Application; + Borders: Borders; + BottomPadding: number; + readonly Creator: number; + Font: Font; + LeftPadding: number; + ParagraphFormat: ParagraphFormat; + readonly Parent: any; + RightPadding: number; + readonly Shading: Shading; + TopPadding: number; + } + + class Conflict { + private 'Word.Conflict_typekey': Conflict; + private constructor(); + Accept(): void; + readonly Application: Application; + readonly Creator: number; + readonly Index: number; + readonly Parent: any; + readonly Range: Range; + Reject(): void; + readonly Type: WdRevisionType; + } + + class Conflicts { + private 'Word.Conflicts_typekey': Conflicts; + private constructor(); + AcceptAll(): void; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Conflict; + readonly Parent: any; + RejectAll(): void; + } + + class ConnectorFormat { + private 'Word.ConnectorFormat_typekey': ConnectorFormat; + private constructor(); + readonly Application: Application; + BeginConnect(ConnectedShape: Shape, ConnectionSite: number): void; + readonly BeginConnected: Office.MsoTriState; + readonly BeginConnectedShape: Shape; + readonly BeginConnectionSite: number; + BeginDisconnect(): void; + readonly Creator: number; + EndConnect(ConnectedShape: Shape, ConnectionSite: number): void; + readonly EndConnected: Office.MsoTriState; + readonly EndConnectedShape: Shape; + readonly EndConnectionSite: number; + EndDisconnect(): void; + readonly Parent: any; + Type: Office.MsoConnectorType; + } + + class ContentControl { + private 'Word.ContentControl_typekey': ContentControl; + private constructor(); + readonly Application: Application; + BuildingBlockCategory: string; + BuildingBlockType: WdBuildingBlockTypes; + Checked: boolean; + Copy(): void; + readonly Creator: number; + Cut(): void; + DateCalendarType: WdCalendarType; + DateDisplayFormat: string; + DateDisplayLocale: WdLanguageID; + DateStorageFormat: WdContentControlDateStorageFormat; + DefaultTextStyle: any; + + /** @param boolean [DeleteContents=false] */ + Delete(DeleteContents?: boolean): void; + readonly DropdownListEntries: ContentControlListEntries; + readonly ID: string; + LockContentControl: boolean; + LockContents: boolean; + MultiLine: boolean; + readonly Parent: any; + readonly ParentContentControl: ContentControl; + readonly PlaceholderText: BuildingBlock; + readonly Range: Range; + + /** @param string [Font=''] */ + SetCheckedSymbol(CharacterNumber: number, Font?: string): void; + + /** + * @param Word.BuildingBlock [BuildingBlock=0] + * @param Word.Range [Range=0] + * @param string [Text=''] + */ + SetPlaceholderText(BuildingBlock?: BuildingBlock, Range?: Range, Text?: string): void; + + /** @param string [Font=''] */ + SetUncheckedSymbol(CharacterNumber: number, Font?: string): void; + readonly ShowingPlaceholderText: boolean; + Tag: string; + Temporary: boolean; + Title: string; + Type: WdContentControlType; + Ungroup(): void; + readonly XMLMapping: XMLMapping; + } + + class ContentControlListEntries { + private 'Word.ContentControlListEntries_typekey': ContentControlListEntries; + private constructor(); + + /** + * @param string [Value=''] + * @param number [Index=0] + */ + Add(Text: string, Value?: string, Index?: number): ContentControlListEntry; + readonly Application: Application; + Clear(): void; + readonly Count: number; + readonly Creator: number; + Item(Index: number): ContentControlListEntry; + readonly Parent: any; + } + + class ContentControlListEntry { + private 'Word.ContentControlListEntry_typekey': ContentControlListEntry; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + Index: number; + MoveDown(): void; + MoveUp(): void; + readonly Parent: any; + Select(): void; + Text: string; + Value: string; + } + + class ContentControls { + private 'Word.ContentControls_typekey': ContentControls; + private constructor(); + + /** @param Word.WdContentControlType [Type=0] */ + Add(Type?: WdContentControlType, Range?: any): ContentControl; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): ContentControl; + readonly Parent: any; + } + + class Corners { + private 'Word.Corners_typekey': Corners; + private constructor(); + readonly Application: any; + readonly Creator: number; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class CustomLabel { + private 'Word.CustomLabel_typekey': CustomLabel; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly DotMatrix: boolean; + Height: number; + HorizontalPitch: number; + readonly Index: number; + Name: string; + NumberAcross: number; + NumberDown: number; + PageSize: WdCustomLabelPageSize; + readonly Parent: any; + SideMargin: number; + TopMargin: number; + readonly Valid: boolean; + VerticalPitch: number; + Width: number; + } + + class CustomLabels { + private 'Word.CustomLabels_typekey': CustomLabels; + private constructor(); + Add(Name: string, DotMatrix?: any): CustomLabel; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): CustomLabel; + readonly Parent: any; + } + + class CustomProperties { + private 'Word.CustomProperties_typekey': CustomProperties; + private constructor(); + Add(Name: string, Value: string): CustomProperty; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): CustomProperty; + readonly Parent: any; + } + + class CustomProperty { + private 'Word.CustomProperty_typekey': CustomProperty; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Name: string; + readonly Parent: any; + Value: string; + } + + class DataTable { + private 'Word.DataTable_typekey': DataTable; + private constructor(); + readonly Application: any; + AutoScaleFont: any; + readonly Border: ChartBorder; + readonly Creator: number; + Delete(): void; + readonly Font: ChartFont; + readonly Format: ChartFormat; + HasBorderHorizontal: boolean; + HasBorderOutline: boolean; + HasBorderVertical: boolean; + readonly Parent: any; + Select(): void; + ShowLegendKey: boolean; + } + + class DefaultWebOptions { + private 'Word.DefaultWebOptions_typekey': DefaultWebOptions; + private constructor(); + AllowPNG: boolean; + AlwaysSaveInDefaultEncoding: boolean; + readonly Application: Application; + BrowserLevel: WdBrowserLevel; + CheckIfOfficeIsHTMLEditor: boolean; + CheckIfWordIsDefaultHTMLEditor: boolean; + readonly Creator: number; + Encoding: Office.MsoEncoding; + readonly FolderSuffix: string; + readonly Fonts: Office.WebPageFonts; + OptimizeForBrowser: boolean; + OrganizeInFolder: boolean; + readonly Parent: any; + PixelsPerInch: number; + RelyOnCSS: boolean; + RelyOnVML: boolean; + SaveNewWebPagesAsWebArchives: boolean; + ScreenSize: Office.MsoScreenSize; + TargetBrowser: Office.MsoTargetBrowser; + UpdateLinksOnSave: boolean; + UseLongFileNames: boolean; + } + + class Diagram { + private 'Word.Diagram_typekey': Diagram; + private constructor(); + readonly Application: Application; + AutoFormat: Office.MsoTriState; + AutoLayout: Office.MsoTriState; + Convert(Type: Office.MsoDiagramType): void; + readonly Creator: number; + FitText(): void; + readonly Nodes: DiagramNodes; + readonly Parent: any; + Reverse: Office.MsoTriState; + readonly Type: Office.MsoDiagramType; + } + + class DiagramNode { + private 'Word.DiagramNode_typekey': DiagramNode; + private constructor(); + + /** + * @param Office.MsoRelativeNodePosition [Pos=2] + * @param Office.MsoDiagramNodeType [NodeType=1] + */ + AddNode(Pos?: Office.MsoRelativeNodePosition, NodeType?: Office.MsoDiagramNodeType): DiagramNode; + readonly Application: Application; + readonly Children: DiagramNodeChildren; + + /** + * @param Word.DiagramNode [TargetNode=0] + * @param Office.MsoRelativeNodePosition [Pos=2] + */ + CloneNode(copyChildren: boolean, TargetNode?: DiagramNode, Pos?: Office.MsoRelativeNodePosition): DiagramNode; + readonly Creator: number; + Delete(): void; + readonly Diagram: Diagram; + Layout: Office.MsoOrgChartLayoutType; + MoveNode(TargetNode: DiagramNode, Pos: Office.MsoRelativeNodePosition): void; + NextNode(): DiagramNode; + readonly Parent: any; + PrevNode(): DiagramNode; + ReplaceNode(TargetNode: DiagramNode): void; + readonly Root: DiagramNode; + readonly Shape: Shape; + + /** @param Office.MsoRelativeNodePosition [Pos=-1] */ + SwapNode(TargetNode: DiagramNode, Pos?: Office.MsoRelativeNodePosition): void; + readonly TextShape: Shape; + TransferChildren(ReceivingNode: DiagramNode): void; + } + + class DiagramNodeChildren { + private 'Word.DiagramNodeChildren_typekey': DiagramNodeChildren; + private constructor(); + + /** + * @param any [Index=-1] + * @param Office.MsoDiagramNodeType [NodeType=1] + */ + AddNode(Index?: any, NodeType?: Office.MsoDiagramNodeType): DiagramNode; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + readonly FirstChild: DiagramNode; + Item(Index: any): DiagramNode; + readonly LastChild: DiagramNode; + readonly Parent: any; + SelectAll(): void; + } + + class DiagramNodes { + private 'Word.DiagramNodes_typekey': DiagramNodes; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): DiagramNode; + readonly Parent: any; + SelectAll(): void; + } + + class Dialog { + private 'Word.Dialog_typekey': Dialog; + private constructor(); + readonly Application: Application; + readonly CommandBarId: number; + readonly CommandName: string; + readonly Creator: number; + DefaultTab: WdWordDialogTab; + Display(TimeOut?: number): number; + Execute(): void; + readonly Parent: any; + Show(TimeOut?: any): number; + readonly Type: WdWordDialog; + Update(): void; + } + + class Dialogs { + private 'Word.Dialogs_typekey': Dialogs; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: WdWordDialog): Dialog; + readonly Parent: any; + } + + class Dictionaries { + private 'Word.Dictionaries_typekey': Dictionaries; + private constructor(); + ActiveCustomDictionary: Dictionary; + Add(FileName: string): Dictionary; + readonly Application: Application; + ClearAll(): void; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Dictionary; + readonly Maximum: number; + readonly Parent: any; + } + + class Dictionary { + private 'Word.Dictionary_typekey': Dictionary; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + LanguageID: WdLanguageID; + LanguageSpecific: boolean; + readonly Name: string; + readonly Parent: any; + readonly Path: string; + readonly ReadOnly: boolean; + readonly Type: WdDictionaryType; + } + + class Document { + private 'Word.Document_typekey': Document; + private constructor(); + _CodeName: string; + AcceptAllRevisions(): void; + AcceptAllRevisionsShown(): void; + Activate(): void; + readonly ActiveTheme: string; + readonly ActiveThemeDisplayName: string; + readonly ActiveWindow: Window; + ActiveWritingStyle(LanguageID: any): string; + AddDocumentWorkspaceHeader(RichFormat: boolean, Url: string, Title: string, Description: string, ID: string): void; + AddMeetingWorkspaceHeader(SkipIfAbsent: boolean, Url: string, Title: string, Description: string, ID: string): void; + AddToFavorites(): void; + readonly Application: Application; + ApplyDocumentTheme(FileName: string): void; + ApplyQuickStyleSet(Name: string): void; + ApplyQuickStyleSet2(Style: any): void; + ApplyTheme(Name: string): void; + AttachedTemplate: Template; + AutoFormat(): void; + AutoFormatOverride: boolean; + AutoHyphenation: boolean; + AutoSummarize(Length?: any, Mode?: any, UpdateProperties?: any): Range; + Background: Shape; + readonly Bibliography: Bibliography; + readonly Bookmarks: Bookmarks; + readonly BuiltInDocumentProperties: Office.DocumentProperties; + CanCheckin(): boolean; + readonly Characters: Characters; + CheckConsistency(): void; + CheckGrammar(): void; + + /** + * @param boolean [SaveChanges=true] + * @param boolean [MakePublic=false] + */ + CheckIn(SaveChanges?: boolean, Comments?: any, MakePublic?: boolean): void; + + /** + * @param boolean [SaveChanges=true] + * @param boolean [MakePublic=false] + */ + CheckInWithVersion(SaveChanges?: boolean, Comments?: any, MakePublic?: boolean, VersionType?: any): void; + CheckNewSmartTags(): void; + CheckSpelling( + CustomDictionary?: any, IgnoreUppercase?: any, AlwaysSuggest?: any, CustomDictionary2?: any, CustomDictionary3?: any, CustomDictionary4?: any, + CustomDictionary5?: any, CustomDictionary6?: any, CustomDictionary7?: any, CustomDictionary8?: any, CustomDictionary9?: any, CustomDictionary10?: any): void; + readonly ChildNodeSuggestions: XMLChildNodeSuggestions; + ClickAndTypeParagraphStyle: any; + Close(SaveChanges?: any, OriginalFormat?: any, RouteDocument?: any): void; + ClosePrintPreview(): void; + readonly CoAuthoring: CoAuthoring; + readonly CodeName: string; + readonly CommandBars: Office.CommandBars; + readonly Comments: Comments; + Compare( + Name: string, AuthorName?: any, CompareTarget?: any, DetectFormatChanges?: any, IgnoreAllComparisonWarnings?: any, AddToRecentFiles?: any, + RemovePersonalInformation?: any, RemoveDateAndTime?: any): void; + Compare2000(Name: string): void; + Compare2002(Name: string, AuthorName?: any, CompareTarget?: any, DetectFormatChanges?: any, IgnoreAllComparisonWarnings?: any, AddToRecentFiles?: any): void; + Compatibility(Type: WdCompatibility): boolean; + readonly CompatibilityMode: number; + ComputeStatistics(Statistic: WdStatistic, IncludeFootnotesAndEndnotes?: any): number; + ConsecutiveHyphensLimit: number; + readonly Container: any; + readonly Content: Range; + readonly ContentControls: ContentControls; + readonly ContentTypeProperties: Office.MetaProperties; + Convert(): void; + ConvertAutoHyphens(): void; + ConvertNumbersToText(NumberType?: any): void; + ConvertVietDoc(CodePageOrigin: number): void; + CopyStylesFromTemplate(Template: string): void; + CountNumberedItems(NumberType?: any, Level?: any): number; + CreateLetterContent( + DateFormat: string, IncludeHeaderFooter: boolean, PageDesign: string, LetterStyle: WdLetterStyle, Letterhead: boolean, + LetterheadLocation: WdLetterheadLocation, LetterheadSize: number, RecipientName: string, RecipientAddress: string, Salutation: string, + SalutationType: WdSalutationType, RecipientReference: string, MailingInstructions: string, AttentionLine: string, Subject: string, CCList: string, + ReturnAddress: string, SenderName: string, Closing: string, SenderCompany: string, SenderJobTitle: string, SenderInitials: string, EnclosureNumber: number, + InfoBlock?: any, RecipientCode?: any, RecipientGender?: any, ReturnAddressShortForm?: any, SenderCity?: any, SenderCode?: any, SenderGender?: any, SenderReference?: any): LetterContent; + readonly Creator: number; + readonly CurrentRsid: number; + readonly CustomDocumentProperties: Office.DocumentProperties; + readonly CustomXMLParts: Office.CustomXMLParts; + DataForm(): void; + readonly DefaultTableStyle: any; + DefaultTabStop: number; + DefaultTargetFrame: string; + DeleteAllComments(): void; + DeleteAllCommentsShown(): void; + DeleteAllEditableRanges(EditorID?: any): void; + DeleteAllInkAnnotations(): void; + DetectLanguage(): void; + DisableFeatures: boolean; + DisableFeaturesIntroducedAfter: WdDisableFeaturesIntroducedAfter; + readonly DocID: number; + readonly DocumentInspectors: Office.DocumentInspectors; + readonly DocumentLibraryVersions: Office.DocumentLibraryVersions; + readonly DocumentTheme: Office.OfficeTheme; + DoNotEmbedSystemFonts: boolean; + DowngradeDocument(): void; + readonly Dummy1: undefined; + Dummy2(): void; + readonly Dummy3: undefined; + Dummy4(): void; + EditionOptions(Type: WdEditionType, Option: WdEditionOption, Name: string, Format?: any): void; + readonly Email: Email; + EmbedLinguisticData: boolean; + EmbedSmartTags: boolean; + EmbedTrueTypeFonts: boolean; + EncryptionProvider: string; + readonly Endnotes: Endnotes; + EndReview(): void; + EnforceStyle: boolean; + readonly Envelope: Envelope; + + /** + * @param boolean [OpenAfterExport=false] + * @param Word.WdExportOptimizeFor [OptimizeFor=0] + * @param Word.WdExportRange [Range=0] + * @param number [From=1] + * @param number [To=1] + * @param Word.WdExportItem [Item=0] + * @param boolean [IncludeDocProps=false] + * @param boolean [KeepIRM=true] + * @param Word.WdExportCreateBookmarks [CreateBookmarks=0] + * @param boolean [DocStructureTags=true] + * @param boolean [BitmapMissingFonts=true] + * @param boolean [UseISO19005_1=false] + */ + ExportAsFixedFormat( + OutputFileName: string, ExportFormat: WdExportFormat, OpenAfterExport?: boolean, OptimizeFor?: WdExportOptimizeFor, Range?: WdExportRange, From?: number, + To?: number, Item?: WdExportItem, IncludeDocProps?: boolean, KeepIRM?: boolean, CreateBookmarks?: WdExportCreateBookmarks, DocStructureTags?: boolean, + BitmapMissingFonts?: boolean, UseISO19005_1?: boolean, FixedFormatExtClassPtr?: any): void; + FarEastLineBreakLanguage: WdFarEastLineBreakLanguageID; + FarEastLineBreakLevel: WdFarEastLineBreakLevel; + readonly Fields: Fields; + Final: boolean; + FitToPages(): void; + FollowHyperlink(Address?: any, SubAddress?: any, NewWindow?: any, AddHistory?: any, ExtraInfo?: any, Method?: any, HeaderInfo?: any): void; + readonly Footnotes: Footnotes; + FormattingShowClear: boolean; + FormattingShowFilter: WdShowFilter; + FormattingShowFont: boolean; + FormattingShowNextLevel: boolean; + FormattingShowNumbering: boolean; + FormattingShowParagraph: boolean; + FormattingShowUserStyleName: boolean; + readonly FormFields: FormFields; + readonly FormsDesign: boolean; + ForwardMailer(): void; + readonly Frames: Frames; + readonly Frameset: Frameset; + FreezeLayout(): void; + readonly FullName: string; + GetCrossReferenceItems(ReferenceType: any): any; + GetLetterContent(): LetterContent; + GetWorkflowTasks(): Office.WorkflowTasks; + GetWorkflowTemplates(): Office.WorkflowTemplates; + GoTo(What?: any, Which?: any, Count?: any, Name?: any): Range; + GrammarChecked: boolean; + readonly GrammaticalErrors: ProofreadingErrors; + GridDistanceHorizontal: number; + GridDistanceVertical: number; + GridOriginFromMargin: boolean; + GridOriginHorizontal: number; + GridOriginVertical: number; + GridSpaceBetweenHorizontalLines: number; + GridSpaceBetweenVerticalLines: number; + HasMailer: boolean; + readonly HasPassword: boolean; + HasRoutingSlip: boolean; + readonly HasVBProject: boolean; + readonly HTMLDivisions: HTMLDivisions; + readonly HTMLProject: Office.HTMLProject; + readonly Hyperlinks: Hyperlinks; + HyphenateCaps: boolean; + HyphenationZone: number; + readonly Indexes: Indexes; + readonly InlineShapes: InlineShapes; + readonly IsMasterDocument: boolean; + readonly IsSubdocument: boolean; + JustificationMode: WdJustificationMode; + KerningByAlgorithm: boolean; + Kind: WdDocumentKind; + LanguageDetected: boolean; + readonly ListParagraphs: ListParagraphs; + readonly Lists: Lists; + readonly ListTemplates: ListTemplates; + LockQuickStyleSet: boolean; + LockServerFile(): void; + LockTheme: boolean; + readonly MailEnvelope: Office.MsoEnvelope; + readonly Mailer: Mailer; + readonly MailMerge: MailMerge; + MakeCompatibilityDefault(): void; + ManualHyphenation(): void; + Merge(FileName: string, MergeTarget?: any, DetectFormatChanges?: any, UseFormattingFrom?: any, AddToRecentFiles?: any): void; + Merge2000(FileName: string): void; + readonly Name: string; + NoLineBreakAfter: string; + NoLineBreakBefore: string; + OMathBreakBin: WdOMathBreakBin; + OMathBreakSub: WdOMathBreakSub; + OMathFontName: string; + OMathIntSubSupLim: boolean; + OMathJc: WdOMathJc; + OMathLeftMargin: number; + OMathNarySupSubLim: boolean; + OMathRightMargin: number; + readonly OMaths: OMaths; + OMathSmallFrac: boolean; + OMathWrap: number; + readonly OpenEncoding: Office.MsoEncoding; + OptimizeForWord97: boolean; + readonly OriginalDocumentTitle: string; + PageSetup: PageSetup; + readonly Paragraphs: Paragraphs; + readonly Parent: any; + readonly Password: string; + readonly PasswordEncryptionAlgorithm: string; + readonly PasswordEncryptionFileProperties: boolean; + readonly PasswordEncryptionKeyLength: number; + readonly PasswordEncryptionProvider: string; + readonly Path: string; + readonly Permission: Office.Permission; + Post(): void; + PresentIt(): void; + PrintFormsData: boolean; + PrintFractionalWidths: boolean; + PrintOut( + Background?: any, Append?: any, Range?: any, OutputFileName?: any, From?: any, To?: any, Item?: any, Copies?: any, Pages?: any, PageType?: any, + PrintToFile?: any, Collate?: any, ActivePrinterMacGX?: any, ManualDuplexPrint?: any, PrintZoomColumn?: any, PrintZoomRow?: any, PrintZoomPaperWidth?: any, + PrintZoomPaperHeight?: any): void; + PrintOut2000( + Background?: any, Append?: any, Range?: any, OutputFileName?: any, From?: any, To?: any, Item?: any, Copies?: any, Pages?: any, PageType?: any, + PrintToFile?: any, Collate?: any, ActivePrinterMacGX?: any, ManualDuplexPrint?: any, PrintZoomColumn?: any, PrintZoomRow?: any, PrintZoomPaperWidth?: any, + PrintZoomPaperHeight?: any): void; + PrintOutOld( + Background?: any, Append?: any, Range?: any, OutputFileName?: any, From?: any, To?: any, Item?: any, Copies?: any, Pages?: any, PageType?: any, + PrintToFile?: any, Collate?: any, ActivePrinterMacGX?: any, ManualDuplexPrint?: any): void; + PrintPostScriptOverText: boolean; + PrintPreview(): void; + PrintRevisions: boolean; + Protect(Type: WdProtectionType, NoReset?: any, Password?: any, UseIRM?: any, EnforceStyleLock?: any): void; + Protect2002(Type: WdProtectionType, NoReset?: any, Password?: any): void; + readonly ProtectionType: WdProtectionType; + Range(Start?: number, End?: number): Range; + readonly ReadabilityStatistics: ReadabilityStatistics; + ReadingLayoutSizeX: number; + ReadingLayoutSizeY: number; + ReadingModeLayoutFrozen: boolean; + readonly ReadOnly: boolean; + ReadOnlyRecommended: boolean; + RecheckSmartTags(): void; + Redo(Times?: any): boolean; + RejectAllRevisions(): void; + RejectAllRevisionsShown(): void; + Reload(): void; + ReloadAs(Encoding: Office.MsoEncoding): void; + RemoveDateAndTime: boolean; + RemoveDocumentInformation(RemoveDocInfoType: WdRemoveDocInfoType): void; + RemoveDocumentWorkspaceHeader(ID: string): void; + RemoveLockedStyles(): void; + RemoveNumbers(NumberType?: any): void; + RemovePersonalInformation: boolean; + RemoveSmartTags(): void; + RemoveTheme(): void; + Repaginate(): void; + Reply(): void; + ReplyAll(): void; + ReplyWithChanges(ShowMessage?: any): void; + readonly Research: Research; + ResetFormFields(): void; + readonly RevisedDocumentTitle: string; + readonly Revisions: Revisions; + Route(): void; + readonly Routed: boolean; + readonly RoutingSlip: RoutingSlip; + RunAutoMacro(Which: WdAutoMacros): void; + RunLetterWizard(LetterContent?: any, WizardMode?: any): void; + Save(): void; + SaveAs( + FileName?: any, FileFormat?: any, LockComments?: any, Password?: any, AddToRecentFiles?: any, WritePassword?: any, ReadOnlyRecommended?: any, + EmbedTrueTypeFonts?: any, SaveNativePictureFormat?: any, SaveFormsData?: any, SaveAsAOCELetter?: any, Encoding?: any, InsertLineBreaks?: any, + AllowSubstitutions?: any, LineEnding?: any, AddBiDiMarks?: any): void; + SaveAs2( + FileName?: any, FileFormat?: any, LockComments?: any, Password?: any, AddToRecentFiles?: any, WritePassword?: any, ReadOnlyRecommended?: any, + EmbedTrueTypeFonts?: any, SaveNativePictureFormat?: any, SaveFormsData?: any, SaveAsAOCELetter?: any, Encoding?: any, InsertLineBreaks?: any, + AllowSubstitutions?: any, LineEnding?: any, AddBiDiMarks?: any, CompatibilityMode?: any): void; + SaveAs2000( + FileName?: any, FileFormat?: any, LockComments?: any, Password?: any, AddToRecentFiles?: any, WritePassword?: any, ReadOnlyRecommended?: any, + EmbedTrueTypeFonts?: any, SaveNativePictureFormat?: any, SaveFormsData?: any, SaveAsAOCELetter?: any): void; + SaveAsQuickStyleSet(FileName: string): void; + Saved: boolean; + SaveEncoding: Office.MsoEncoding; + readonly SaveFormat: number; + SaveFormsData: boolean; + SaveSubsetFonts: boolean; + sblt(s: string): void; + readonly Scripts: Office.Scripts; + readonly Sections: Sections; + Select(): void; + SelectAllEditableRanges(EditorID?: any): void; + SelectContentControlsByTag(Tag: string): ContentControls; + SelectContentControlsByTitle(Title: string): ContentControls; + SelectLinkedControls(Node: Office.CustomXMLNode): ContentControls; + + /** + * @param string [PrefixMapping=''] + * @param boolean [FastSearchSkippingTextNodes=true] + */ + SelectNodes(XPath: string, PrefixMapping?: string, FastSearchSkippingTextNodes?: boolean): XMLNodes; + + /** + * @param string [PrefixMapping=''] + * @param boolean [FastSearchSkippingTextNodes=true] + */ + SelectSingleNode(XPath: string, PrefixMapping?: string, FastSearchSkippingTextNodes?: boolean): XMLNode; + + /** @param Office.CustomXMLPart [Stream=0] */ + SelectUnlinkedControls(Stream?: Office.CustomXMLPart): ContentControls; + SendFax(Address: string, Subject?: any): void; + SendFaxOverInternet(Recipients?: any, Subject?: any, ShowMessage?: any): void; + SendForReview(Recipients?: any, Subject?: any, ShowMessage?: any, IncludeAttachment?: any): void; + SendMail(): void; + SendMailer(FileFormat?: any, Priority?: any): void; + readonly Sentences: Sentences; + readonly ServerPolicy: Office.ServerPolicy; + SetCompatibilityMode(Mode: number): void; + SetDefaultTableStyle(Style: any, SetInTemplate: boolean): void; + SetLetterContent(LetterContent: any): void; + SetPasswordEncryptionOptions(PasswordEncryptionProvider: string, PasswordEncryptionAlgorithm: string, PasswordEncryptionKeyLength: number, PasswordEncryptionFileProperties?: any): void; + readonly Shapes: Shapes; + readonly SharedWorkspace: Office.SharedWorkspace; + ShowGrammaticalErrors: boolean; + ShowRevisions: boolean; + ShowSpellingErrors: boolean; + ShowSummary: boolean; + readonly Signatures: Office.SignatureSet; + readonly SmartDocument: Office.SmartDocument; + readonly SmartTags: SmartTags; + SmartTagsAsXMLProps: boolean; + SnapToGrid: boolean; + SnapToShapes: boolean; + SpellingChecked: boolean; + readonly SpellingErrors: ProofreadingErrors; + readonly StoryRanges: StoryRanges; + readonly Styles: Styles; + readonly StyleSheets: StyleSheets; + StyleSortMethod: WdStyleSort; + readonly Subdocuments: Subdocuments; + SummaryLength: number; + SummaryViewMode: WdSummaryMode; + readonly Sync: Office.Sync; + readonly Tables: Tables; + readonly TablesOfAuthorities: TablesOfAuthorities; + readonly TablesOfAuthoritiesCategories: TablesOfAuthoritiesCategories; + readonly TablesOfContents: TablesOfContents; + readonly TablesOfFigures: TablesOfFigures; + TextEncoding: Office.MsoEncoding; + TextLineEnding: WdLineEndingType; + ToggleFormsDesign(): void; + TrackFormatting: boolean; + TrackMoves: boolean; + TrackRevisions: boolean; + + /** @param boolean [DataOnly=true] */ + TransformDocument(Path: string, DataOnly?: boolean): void; + readonly Type: WdDocumentType; + Undo(Times?: any): boolean; + UndoClear(): void; + UnfreezeLayout(): void; + Unprotect(Password?: any): void; + UpdateStyles(): void; + UpdateStylesOnOpen: boolean; + UpdateSummaryProperties(): void; + UseMathDefaults: boolean; + UserControl: boolean; + readonly Variables: Variables; + readonly VBASigned: boolean; + readonly VBProject: VBIDE.VBProject; + readonly Versions: Versions; + ViewCode(): void; + ViewPropertyBrowser(): void; + readonly WebOptions: WebOptions; + WebPagePreview(): void; + readonly Windows: Windows; + readonly WordOpenXML: string; + readonly Words: Words; + readonly WritePassword: string; + readonly WriteReserved: boolean; + XMLHideNamespaces: boolean; + readonly XMLNodes: XMLNodes; + XMLSaveDataOnly: boolean; + XMLSaveThroughXSLT: string; + readonly XMLSchemaReferences: XMLSchemaReferences; + readonly XMLSchemaViolations: XMLNodes; + XMLShowAdvancedErrors: boolean; + XMLUseXSLTWhenSaving: boolean; + } + + class Documents { + private 'Word.Documents_typekey': Documents; + private constructor(); + Add(Template?: string, NewTemplate?: boolean, DocumentType?: WdNewDocumentType, Visible?: boolean): Document; + + /** @param string [PostID=''] */ + AddBlogDocument(ProviderID: string, PostURL: string, BlogName: string, PostID?: string): Document; + AddOld(Template?: any, NewTemplate?: any): Document; + readonly Application: Application; + CanCheckOut(FileName: string): boolean; + CheckOut(FileName: string): void; + Close(SaveChanges?: any, OriginalFormat?: any, RouteDocument?: any): void; + readonly Count: number; + readonly Creator: number; + Item(Index: number | string): Document; + Open( + FileName: any, ConfirmConversions?: any, ReadOnly?: any, AddToRecentFiles?: any, PasswordDocument?: any, PasswordTemplate?: any, Revert?: any, + WritePasswordDocument?: any, WritePasswordTemplate?: any, Format?: any, Encoding?: any, Visible?: any, OpenAndRepair?: any, DocumentDirection?: any, + NoEncodingDialog?: any, XMLTransform?: any): Document; + Open2000( + FileName: any, ConfirmConversions?: any, ReadOnly?: any, AddToRecentFiles?: any, PasswordDocument?: any, PasswordTemplate?: any, Revert?: any, + WritePasswordDocument?: any, WritePasswordTemplate?: any, Format?: any, Encoding?: any, Visible?: any): Document; + Open2002( + FileName: any, ConfirmConversions?: any, ReadOnly?: any, AddToRecentFiles?: any, PasswordDocument?: any, PasswordTemplate?: any, Revert?: any, + WritePasswordDocument?: any, WritePasswordTemplate?: any, Format?: any, Encoding?: any, Visible?: any, OpenAndRepair?: any, DocumentDirection?: any, NoEncodingDialog?: any): Document; + OpenNoRepairDialog( + FileName: any, ConfirmConversions?: any, ReadOnly?: any, AddToRecentFiles?: any, PasswordDocument?: any, PasswordTemplate?: any, Revert?: any, + WritePasswordDocument?: any, WritePasswordTemplate?: any, Format?: any, Encoding?: any, Visible?: any, OpenAndRepair?: any, DocumentDirection?: any, + NoEncodingDialog?: any, XMLTransform?: any): Document; + OpenOld( + FileName: any, ConfirmConversions?: any, ReadOnly?: any, AddToRecentFiles?: any, PasswordDocument?: any, PasswordTemplate?: any, Revert?: any, + WritePasswordDocument?: any, WritePasswordTemplate?: any, Format?: any): Document; + readonly Parent: any; + Save(NoPrompt?: any, OriginalFormat?: any): void; + } + + class DownBars { + private 'Word.DownBars_typekey': DownBars; + private constructor(); + readonly Application: any; + readonly Border: ChartBorder; + readonly Creator: number; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + readonly Interior: Interior; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class DropCap { + private 'Word.DropCap_typekey': DropCap; + private constructor(); + readonly Application: Application; + Clear(): void; + readonly Creator: number; + DistanceFromText: number; + Enable(): void; + FontName: string; + LinesToDrop: number; + readonly Parent: any; + Position: WdDropPosition; + } + + class DropDown { + private 'Word.DropDown_typekey': DropDown; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Default: number; + readonly ListEntries: ListEntries; + readonly Parent: any; + readonly Valid: boolean; + Value: number; + } + + class DropLines { + private 'Word.DropLines_typekey': DropLines; + private constructor(); + readonly Application: any; + readonly Border: ChartBorder; + readonly Creator: number; + Delete(): void; + readonly Format: ChartFormat; + readonly Name: string; + readonly Parent: any; + Select(): void; + } + + class Editor { + private 'Word.Editor_typekey': Editor; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + DeleteAll(): void; + readonly ID: string; + readonly Name: string; + readonly NextRange: Range; + readonly Parent: any; + readonly Range: Range; + SelectAll(): void; + } + + class Editors { + private 'Word.Editors_typekey': Editors; + private constructor(); + Add(EditorID: any): Editor; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Editor; + readonly Parent: any; + } + + class Email { + private 'Word.Email_typekey': Email; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly CurrentEmailAuthor: EmailAuthor; + readonly Parent: any; + } + + class EmailAuthor { + private 'Word.EmailAuthor_typekey': EmailAuthor; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Parent: any; + readonly Style: Style; + } + + class EmailOptions { + private 'Word.EmailOptions_typekey': EmailOptions; + private constructor(); + readonly Application: Application; + AutoFormatAsYouTypeApplyBorders: boolean; + AutoFormatAsYouTypeApplyBulletedLists: boolean; + AutoFormatAsYouTypeApplyClosings: boolean; + AutoFormatAsYouTypeApplyDates: boolean; + AutoFormatAsYouTypeApplyFirstIndents: boolean; + AutoFormatAsYouTypeApplyHeadings: boolean; + AutoFormatAsYouTypeApplyNumberedLists: boolean; + AutoFormatAsYouTypeApplyTables: boolean; + AutoFormatAsYouTypeAutoLetterWizard: boolean; + AutoFormatAsYouTypeDefineStyles: boolean; + AutoFormatAsYouTypeDeleteAutoSpaces: boolean; + AutoFormatAsYouTypeFormatListItemBeginning: boolean; + AutoFormatAsYouTypeInsertClosings: boolean; + AutoFormatAsYouTypeInsertOvers: boolean; + AutoFormatAsYouTypeMatchParentheses: boolean; + AutoFormatAsYouTypeReplaceFarEastDashes: boolean; + AutoFormatAsYouTypeReplaceFractions: boolean; + AutoFormatAsYouTypeReplaceHyperlinks: boolean; + AutoFormatAsYouTypeReplaceOrdinals: boolean; + AutoFormatAsYouTypeReplacePlainTextEmphasis: boolean; + AutoFormatAsYouTypeReplaceQuotes: boolean; + AutoFormatAsYouTypeReplaceSymbols: boolean; + readonly ComposeStyle: Style; + readonly Creator: number; + readonly Dummy1: boolean; + readonly Dummy2: boolean; + Dummy3(): void; + readonly EmailSignature: EmailSignature; + EmbedSmartTag: boolean; + HTMLFidelity: WdEmailHTMLFidelity; + MarkComments: boolean; + MarkCommentsWith: string; + NewColorOnReply: boolean; + readonly Parent: any; + readonly PlainTextStyle: Style; + RelyOnCSS: boolean; + readonly ReplyStyle: Style; + TabIndentKey: boolean; + ThemeName: string; + UseThemeStyle: boolean; + UseThemeStyleOnReply: boolean; + } + + class EmailSignature { + private 'Word.EmailSignature_typekey': EmailSignature; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly EmailSignatureEntries: EmailSignatureEntries; + NewMessageSignature: string; + readonly Parent: any; + ReplyMessageSignature: string; + } + + class EmailSignatureEntries { + private 'Word.EmailSignatureEntries_typekey': EmailSignatureEntries; + private constructor(); + Add(Name: string, Range: Range): EmailSignatureEntry; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): EmailSignatureEntry; + readonly Parent: any; + } + + class EmailSignatureEntry { + private 'Word.EmailSignatureEntry_typekey': EmailSignatureEntry; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Index: number; + Name: string; + readonly Parent: any; + } + + class Endnote { + private 'Word.Endnote_typekey': Endnote; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Index: number; + readonly Parent: any; + readonly Range: Range; + readonly Reference: Range; + } + + class EndnoteOptions { + private 'Word.EndnoteOptions_typekey': EndnoteOptions; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Location: WdEndnoteLocation; + NumberingRule: WdNumberingRule; + NumberStyle: WdNoteNumberStyle; + readonly Parent: any; + StartingNumber: number; + } + + class Endnotes { + private 'Word.Endnotes_typekey': Endnotes; + private constructor(); + Add(Range: Range, Reference?: any, Text?: any): Endnote; + readonly Application: Application; + readonly ContinuationNotice: Range; + readonly ContinuationSeparator: Range; + Convert(): void; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Endnote; + Location: WdEndnoteLocation; + NumberingRule: WdNumberingRule; + NumberStyle: WdNoteNumberStyle; + readonly Parent: any; + ResetContinuationNotice(): void; + ResetContinuationSeparator(): void; + ResetSeparator(): void; + readonly Separator: Range; + StartingNumber: number; + SwapWithFootnotes(): void; + } + + class Envelope { + private 'Word.Envelope_typekey': Envelope; + private constructor(); + readonly Address: Range; + AddressFromLeft: number; + AddressFromTop: number; + readonly AddressStyle: Style; + readonly Application: Application; + readonly Creator: number; + DefaultFaceUp: boolean; + DefaultHeight: number; + DefaultOmitReturnAddress: boolean; + DefaultOrientation: WdEnvelopeOrientation; + DefaultPrintBarCode: boolean; + DefaultPrintFIMA: boolean; + DefaultSize: string; + DefaultWidth: number; + FeedSource: WdPaperTray; + Insert( + ExtractAddress?: any, Address?: any, AutoText?: any, OmitReturnAddress?: any, ReturnAddress?: any, ReturnAutoText?: any, PrintBarCode?: any, PrintFIMA?: any, + Size?: any, Height?: any, Width?: any, FeedSource?: any, AddressFromLeft?: any, AddressFromTop?: any, ReturnAddressFromLeft?: any, ReturnAddressFromTop?: any, + DefaultFaceUp?: any, DefaultOrientation?: any, PrintEPostage?: any, Vertical?: any, RecipientNamefromLeft?: any, RecipientNamefromTop?: any, + RecipientPostalfromLeft?: any, RecipientPostalfromTop?: any, SenderNamefromLeft?: any, SenderNamefromTop?: any, SenderPostalfromLeft?: any, SenderPostalfromTop?: any): void; + Insert2000( + ExtractAddress?: any, Address?: any, AutoText?: any, OmitReturnAddress?: any, ReturnAddress?: any, ReturnAutoText?: any, PrintBarCode?: any, PrintFIMA?: any, + Size?: any, Height?: any, Width?: any, FeedSource?: any, AddressFromLeft?: any, AddressFromTop?: any, ReturnAddressFromLeft?: any, ReturnAddressFromTop?: any, + DefaultFaceUp?: any, DefaultOrientation?: any): void; + Options(): void; + readonly Parent: any; + PrintOut( + ExtractAddress?: any, Address?: any, AutoText?: any, OmitReturnAddress?: any, ReturnAddress?: any, ReturnAutoText?: any, PrintBarCode?: any, PrintFIMA?: any, + Size?: any, Height?: any, Width?: any, FeedSource?: any, AddressFromLeft?: any, AddressFromTop?: any, ReturnAddressFromLeft?: any, ReturnAddressFromTop?: any, + DefaultFaceUp?: any, DefaultOrientation?: any, PrintEPostage?: any, Vertical?: any, RecipientNamefromLeft?: any, RecipientNamefromTop?: any, + RecipientPostalfromLeft?: any, RecipientPostalfromTop?: any, SenderNamefromLeft?: any, SenderNamefromTop?: any, SenderPostalfromLeft?: any, SenderPostalfromTop?: any): void; + PrintOut2000( + ExtractAddress?: any, Address?: any, AutoText?: any, OmitReturnAddress?: any, ReturnAddress?: any, ReturnAutoText?: any, PrintBarCode?: any, PrintFIMA?: any, + Size?: any, Height?: any, Width?: any, FeedSource?: any, AddressFromLeft?: any, AddressFromTop?: any, ReturnAddressFromLeft?: any, ReturnAddressFromTop?: any, + DefaultFaceUp?: any, DefaultOrientation?: any): void; + RecipientNamefromLeft: number; + RecipientNamefromTop: number; + RecipientPostalfromLeft: number; + RecipientPostalfromTop: number; + readonly ReturnAddress: Range; + ReturnAddressFromLeft: number; + ReturnAddressFromTop: number; + readonly ReturnAddressStyle: Style; + SenderNamefromLeft: number; + SenderNamefromTop: number; + SenderPostalfromLeft: number; + SenderPostalfromTop: number; + UpdateDocument(): void; + Vertical: boolean; + } + + class Field { + private 'Word.Field_typekey': Field; + private constructor(); + readonly Application: Application; + Code: Range; + Copy(): void; + readonly Creator: number; + Cut(): void; + Data: string; + Delete(): void; + DoClick(): void; + readonly Index: number; + readonly InlineShape: InlineShape; + readonly Kind: WdFieldKind; + readonly LinkFormat: LinkFormat; + Locked: boolean; + readonly Next: Field; + readonly OLEFormat: OLEFormat; + readonly Parent: any; + readonly Previous: Field; + Result: Range; + Select(): void; + ShowCodes: boolean; + readonly Type: WdFieldType; + Unlink(): void; + Update(): boolean; + UpdateSource(): void; + } + + class Fields { + private 'Word.Fields_typekey': Fields; + private constructor(); + Add(Range: Range, Type?: any, Text?: any, PreserveFormatting?: any): Field; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Field; + Locked: number; + readonly Parent: any; + ToggleShowCodes(): void; + Unlink(): void; + Update(): number; + UpdateSource(): void; + } + + class FileConverter { + private 'Word.FileConverter_typekey': FileConverter; + private constructor(); + readonly Application: Application; + readonly CanOpen: boolean; + readonly CanSave: boolean; + readonly ClassName: string; + readonly Creator: number; + readonly Extensions: string; + readonly FormatName: string; + readonly Name: string; + readonly OpenFormat: number; + readonly Parent: any; + readonly Path: string; + readonly SaveFormat: number; + } + + class FileConverters { + private 'Word.FileConverters_typekey': FileConverters; + private constructor(); + readonly Application: Application; + ConvertMacWordChevrons: WdChevronConvertRule; + readonly Count: number; + readonly Creator: number; + Item(Index: any): FileConverter; + readonly Parent: any; + } + + class FillFormat { + private 'Word.FillFormat_typekey': FillFormat; + private constructor(); + readonly Application: Application; + readonly BackColor: ColorFormat; + Background(): void; + readonly Creator: number; + readonly ForeColor: ColorFormat; + GradientAngle: number; + readonly GradientColorType: Office.MsoGradientColorType; + readonly GradientDegree: number; + readonly GradientStops: Office.GradientStops; + readonly GradientStyle: Office.MsoGradientStyle; + readonly GradientVariant: number; + OneColorGradient(Style: Office.MsoGradientStyle, Variant: number, Degree: number): void; + readonly Parent: any; + readonly Pattern: Office.MsoPatternType; + Patterned(Pattern: Office.MsoPatternType): void; + readonly PictureEffects: Office.PictureEffects; + PresetGradient(Style: Office.MsoGradientStyle, Variant: number, PresetGradientType: Office.MsoPresetGradientType): void; + readonly PresetGradientType: Office.MsoPresetGradientType; + readonly PresetTexture: Office.MsoPresetTexture; + PresetTextured(PresetTexture: Office.MsoPresetTexture): void; + RotateWithObject: Office.MsoTriState; + Solid(): void; + TextureAlignment: Office.MsoTextureAlignment; + TextureHorizontalScale: number; + readonly TextureName: string; + TextureOffsetX: number; + TextureOffsetY: number; + TextureTile: Office.MsoTriState; + readonly TextureType: Office.MsoTextureType; + TextureVerticalScale: number; + Transparency: number; + TwoColorGradient(Style: Office.MsoGradientStyle, Variant: number): void; + readonly Type: Office.MsoFillType; + UserPicture(PictureFile: string): void; + UserTextured(TextureFile: string): void; + Visible: Office.MsoTriState; + } + + class Find { + private 'Word.Find_typekey': Find; + private constructor(); + readonly Application: Application; + ClearAllFuzzyOptions(): void; + ClearFormatting(): void; + ClearHitHighlight(): boolean; + CorrectHangulEndings: boolean; + readonly Creator: number; + Execute( + FindText?: string, MatchCase?: boolean, MatchWholeWord?: boolean, MatchWildcards?: boolean, MatchSoundsLike?: boolean, MatchAllWordForms?: boolean, Forward?: boolean, Wrap?: WdFindWrap, + Format?: boolean, ReplaceWith?: string, Replace?: WdReplace, MatchKashida?: boolean, MatchDiacritics?: boolean, MatchAlefHamza?: boolean, MatchControl?: boolean): boolean; + Execute2007( + FindText?: string, MatchCase?: boolean, MatchWholeWord?: boolean, MatchWildcards?: boolean, MatchSoundsLike?: boolean, MatchAllWordForms?: boolean, Forward?: boolean, Wrap?: WdFindWrap, + Format?: boolean, ReplaceWith?: string, Replace?: WdReplace, MatchKashida?: boolean, MatchDiacritics?: boolean, MatchAlefHamza?: boolean, MatchControl?: boolean, MatchPrefix?: boolean, + MatchSuffix?: boolean, MatchPhrase?: boolean, IgnoreSpace?: boolean, IgnorePunct?: boolean): boolean; + ExecuteOld( + FindText?: string, MatchCase?: boolean, MatchWholeWord?: boolean, MatchWildcards?: boolean, MatchSoundsLike?: boolean, MatchAllWordForms?: boolean, Forward?: boolean, Wrap?: WdFindWrap, + Format?: boolean, ReplaceWith?: string, Replace?: WdReplace): boolean; + Font: Font; + Format: boolean; + Forward: boolean; + readonly Found: boolean; + readonly Frame: Frame; + HanjaPhoneticHangul: boolean; + Highlight: number; + HitHighlight( + FindText: any, HighlightColor?: any, TextColor?: any, MatchCase?: any, MatchWholeWord?: any, MatchPrefix?: any, MatchSuffix?: any, MatchPhrase?: any, + MatchWildcards?: any, MatchSoundsLike?: any, MatchAllWordForms?: any, MatchByte?: any, MatchFuzzy?: any, MatchKashida?: any, MatchDiacritics?: any, + MatchAlefHamza?: any, MatchControl?: any, IgnoreSpace?: any, IgnorePunct?: any, HanjaPhoneticHangul?: any): boolean; + IgnorePunct: boolean; + IgnoreSpace: boolean; + LanguageID: WdLanguageID; + LanguageIDFarEast: WdLanguageID; + LanguageIDOther: WdLanguageID; + MatchAlefHamza: boolean; + MatchAllWordForms: boolean; + MatchByte: boolean; + MatchCase: boolean; + MatchControl: boolean; + MatchDiacritics: boolean; + MatchFuzzy: boolean; + MatchKashida: boolean; + MatchPhrase: boolean; + MatchPrefix: boolean; + MatchSoundsLike: boolean; + MatchSuffix: boolean; + MatchWholeWord: boolean; + MatchWildcards: boolean; + NoProofing: number; + ParagraphFormat: ParagraphFormat; + readonly Parent: TParent; + readonly Replacement: Replacement; + SetAllFuzzyOptions(): void; + Style: any; + Text: string; + Wrap: WdFindWrap; + } + + class FirstLetterException { + private 'Word.FirstLetterException_typekey': FirstLetterException; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Index: number; + readonly Name: string; + readonly Parent: any; + } + + class FirstLetterExceptions { + private 'Word.FirstLetterExceptions_typekey': FirstLetterExceptions; + private constructor(); + Add(Name: string): FirstLetterException; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): FirstLetterException; + readonly Parent: any; + } + + class Floor { + private 'Word.Floor_typekey': Floor; + private constructor(); + readonly Application: any; + readonly Border: ChartBorder; + ClearFormats(): any; + readonly Creator: number; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + readonly Interior: Interior; + readonly Name: string; + readonly Parent: any; + Paste(): void; + PictureType: any; + Select(): any; + Thickness: number; + } + + class Font { + private 'Word.Font_typekey': Font; + private constructor(); + AllCaps: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + Animation: WdAnimation; + readonly Application: Application; + Bold: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + BoldBi: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + Borders: Borders; + Color: WdColor; + ColorIndex: WdColorIndex; + ColorIndexBi: WdColorIndex; + ContextualAlternates: number; + readonly Creator: number; + DiacriticColor: WdColor; + DisableCharacterSpaceGrid: boolean; + DoubleStrikeThrough: number; + readonly Duplicate: Font; + Emboss: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + EmphasisMark: WdEmphasisMark; + Engrave: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + Fill: FillFormat; + Glow: GlowFormat; + Grow(): void; + Hidden: number; + Italic: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + ItalicBi: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + Kerning: number; + Ligatures: WdLigatures; + Line: LineFormat; + Name: string; + NameAscii: string; + NameBi: string; + NameFarEast: string; + NameOther: string; + NumberForm: WdNumberForm; + NumberSpacing: WdNumberSpacing; + Outline: number; + readonly Parent: any; + Position: number; + Reflection: ReflectionFormat; + Reset(): void; + Scaling: number; + SetAsTemplateDefault(): void; + readonly Shading: Shading; + Shadow: number; + Shrink(): void; + Size: number; + SizeBi: number; + SmallCaps: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + Spacing: number; + StrikeThrough: number; + StylisticSet: WdStylisticSet; + Subscript: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + Superscript: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + readonly TextColor: ColorFormat; + TextShadow: ShadowFormat; + ThreeD: ThreeDFormat; + Underline: WdUnderline; + UnderlineColor: WdColor; + } + + class FontNames { + private 'Word.FontNames_typekey': FontNames; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): string; + readonly Parent: any; + } + + class Footnote { + private 'Word.Footnote_typekey': Footnote; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Index: number; + readonly Parent: any; + readonly Range: Range; + readonly Reference: Range; + } + + class FootnoteOptions { + private 'Word.FootnoteOptions_typekey': FootnoteOptions; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Location: WdFootnoteLocation; + NumberingRule: WdNumberingRule; + NumberStyle: WdNoteNumberStyle; + readonly Parent: any; + StartingNumber: number; + } + + class Footnotes { + private 'Word.Footnotes_typekey': Footnotes; + private constructor(); + Add(Range: Range, Reference?: any, Text?: any): Footnote; + readonly Application: Application; + readonly ContinuationNotice: Range; + readonly ContinuationSeparator: Range; + Convert(): void; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Footnote; + Location: WdFootnoteLocation; + NumberingRule: WdNumberingRule; + NumberStyle: WdNoteNumberStyle; + readonly Parent: any; + ResetContinuationNotice(): void; + ResetContinuationSeparator(): void; + ResetSeparator(): void; + readonly Separator: Range; + StartingNumber: number; + SwapWithEndnotes(): void; + } + + class FormField { + private 'Word.FormField_typekey': FormField; + private constructor(); + readonly Application: Application; + CalculateOnExit: boolean; + readonly CheckBox: CheckBox; + Copy(): void; + readonly Creator: number; + Cut(): void; + Delete(): void; + readonly DropDown: DropDown; + Enabled: boolean; + EntryMacro: string; + ExitMacro: string; + HelpText: string; + Name: string; + readonly Next: FormField; + OwnHelp: boolean; + OwnStatus: boolean; + readonly Parent: any; + readonly Previous: FormField; + readonly Range: Range; + Result: string; + Select(): void; + StatusText: string; + readonly TextInput: TextInput; + readonly Type: WdFieldType; + } + + class FormFields { + private 'Word.FormFields_typekey': FormFields; + private constructor(); + Add(Range: Range, Type: WdFieldType): FormField; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): FormField; + readonly Parent: any; + Shaded: boolean; + } + + class Frame { + private 'Word.Frame_typekey': Frame; + private constructor(); + readonly Application: Application; + Borders: Borders; + Copy(): void; + readonly Creator: number; + Cut(): void; + Delete(): void; + Height: number; + HeightRule: WdFrameSizeRule; + HorizontalDistanceFromText: number; + HorizontalPosition: number; + LockAnchor: boolean; + readonly Parent: any; + readonly Range: Range; + RelativeHorizontalPosition: WdRelativeHorizontalPosition; + RelativeVerticalPosition: WdRelativeVerticalPosition; + Select(): void; + readonly Shading: Shading; + TextWrap: boolean; + VerticalDistanceFromText: number; + VerticalPosition: number; + Width: number; + WidthRule: WdFrameSizeRule; + } + + class Frames { + private 'Word.Frames_typekey': Frames; + private constructor(); + Add(Range: Range): Frame; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Delete(): void; + Item(Index: number): Frame; + readonly Parent: any; + } + + class Frameset { + private 'Word.Frameset_typekey': Frameset; + private constructor(); + AddNewFrame(Where: WdFramesetNewFrameLocation): Frameset; + readonly Application: Application; + readonly ChildFramesetCount: number; + ChildFramesetItem(Index: number): Frameset; + readonly Creator: number; + Delete(): void; + FrameDefaultURL: string; + FrameDisplayBorders: boolean; + FrameLinkToFile: boolean; + FrameName: string; + FrameResizable: boolean; + FrameScrollbarType: WdScrollbarType; + FramesetBorderColor: WdColor; + FramesetBorderWidth: number; + Height: number; + HeightType: WdFramesetSizeType; + readonly Parent: any; + readonly ParentFrameset: Frameset; + readonly Type: WdFramesetType; + Width: number; + WidthType: WdFramesetSizeType; + } + + class FreeformBuilder { + private 'Word.FreeformBuilder_typekey': FreeformBuilder; + private constructor(); + + /** + * @param number [X2=0] + * @param number [Y2=0] + * @param number [X3=0] + * @param number [Y3=0] + */ + AddNodes(SegmentType: Office.MsoSegmentType, EditingType: Office.MsoEditingType, X1: number, Y1: number, X2?: number, Y2?: number, X3?: number, Y3?: number): void; + readonly Application: Application; + ConvertToShape(Anchor?: any): Shape; + readonly Creator: number; + readonly Parent: any; + } + + class Global { + private 'Word.Global_typekey': Global; + private constructor(); + readonly ActiveDocument: Document; + ActivePrinter: string; + readonly ActiveProtectedViewWindow: ProtectedViewWindow; + readonly ActiveWindow: Window; + readonly AddIns: AddIns; + readonly AnswerWizard: Office.AnswerWizard; + readonly Application: Application; + readonly Assistant: Office.Assistant; + readonly AutoCaptions: AutoCaptions; + readonly AutoCorrect: AutoCorrect; + readonly AutoCorrectEmail: AutoCorrect; + BuildKeyCode(Arg1: WdKey, Arg2?: any, Arg3?: any, Arg4?: any): number; + readonly CaptionLabels: CaptionLabels; + CentimetersToPoints(Centimeters: number): number; + ChangeFileOpenDirectory(Path: string): void; + CheckSpelling( + Word: string, CustomDictionary?: any, IgnoreUppercase?: any, MainDictionary?: any, CustomDictionary2?: any, CustomDictionary3?: any, CustomDictionary4?: any, + CustomDictionary5?: any, CustomDictionary6?: any, CustomDictionary7?: any, CustomDictionary8?: any, CustomDictionary9?: any, CustomDictionary10?: any): boolean; + CleanString(String: string): string; + readonly CommandBars: Office.CommandBars; + readonly Creator: number; + readonly CustomDictionaries: Dictionaries; + CustomizationContext: any; + DDEExecute(Channel: number, Command: string): void; + DDEInitiate(App: string, Topic: string): number; + DDEPoke(Channel: number, Item: string, Data: string): void; + DDERequest(Channel: number, Item: string): string; + DDETerminate(Channel: number): void; + DDETerminateAll(): void; + readonly Dialogs: Dialogs; + readonly Documents: Documents; + readonly FileConverters: FileConverters; + FindKey(KeyCode: number, KeyCode2?: any): KeyBinding; + readonly FontNames: FontNames; + GetSpellingSuggestions( + Word: string, CustomDictionary?: any, IgnoreUppercase?: any, MainDictionary?: any, SuggestionMode?: any, CustomDictionary2?: any, CustomDictionary3?: any, + CustomDictionary4?: any, CustomDictionary5?: any, CustomDictionary6?: any, CustomDictionary7?: any, CustomDictionary8?: any, CustomDictionary9?: any, + CustomDictionary10?: any): SpellingSuggestions; + readonly HangulHanjaDictionaries: HangulHanjaConversionDictionaries; + Help(HelpType: any): void; + InchesToPoints(Inches: number): number; + IsObjectValid(Object: any): boolean; + readonly IsSandboxed: boolean; + readonly KeyBindings: KeyBindings; + KeysBoundTo(KeyCategory: WdKeyCategory, Command: string, CommandParameter?: any): KeysBoundTo; + KeyString(KeyCode: number, KeyCode2?: any): string; + readonly LandscapeFontNames: FontNames; + readonly Languages: Languages; + readonly LanguageSettings: Office.LanguageSettings; + LinesToPoints(Lines: number): number; + readonly ListGalleries: ListGalleries; + readonly MacroContainer: any; + MillimetersToPoints(Millimeters: number): number; + readonly Name: string; + NewWindow(): Window; + readonly NormalTemplate: Template; + readonly Options: Options; + readonly Parent: any; + PicasToPoints(Picas: number): number; + PixelsToPoints(Pixels: number, fVertical?: any): number; + PointsToCentimeters(Points: number): number; + PointsToInches(Points: number): number; + PointsToLines(Points: number): number; + PointsToMillimeters(Points: number): number; + PointsToPicas(Points: number): number; + PointsToPixels(Points: number, fVertical?: any): number; + readonly PortraitFontNames: FontNames; + PrintPreview: boolean; + readonly ProtectedViewWindows: ProtectedViewWindows; + readonly RecentFiles: RecentFiles; + Repeat(Times?: any): boolean; + readonly Selection: Selection; + ShowVisualBasicEditor: boolean; + readonly StatusBar: string; + SynonymInfo(Word: string, LanguageID?: any): SynonymInfo; + readonly System: System; + readonly Tasks: Tasks; + readonly Templates: Templates; + readonly VBE: VBIDE.VBE; + readonly Windows: Windows; + readonly WordBasic: any; + } + + class GlowFormat { + private 'Word.GlowFormat_typekey': GlowFormat; + private constructor(); + readonly Application: Application; + readonly Color: ColorFormat; + readonly Creator: number; + readonly Parent: any; + Radius: number; + Transparency: number; + } + + class GroupShapes { + private 'Word.GroupShapes_typekey': GroupShapes; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Shape; + readonly Parent: any; + Range(Index: any): ShapeRange; + } + + class HangulAndAlphabetException { + private 'Word.HangulAndAlphabetException_typekey': HangulAndAlphabetException; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Index: number; + readonly Name: string; + readonly Parent: any; + } + + class HangulAndAlphabetExceptions { + private 'Word.HangulAndAlphabetExceptions_typekey': HangulAndAlphabetExceptions; + private constructor(); + Add(Name: string): HangulAndAlphabetException; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): HangulAndAlphabetException; + readonly Parent: any; + } + + class HangulHanjaConversionDictionaries { + private 'Word.HangulHanjaConversionDictionaries_typekey': HangulHanjaConversionDictionaries; + private constructor(); + ActiveCustomDictionary: Dictionary; + Add(FileName: string): Dictionary; + readonly Application: Application; + readonly BuiltinDictionary: Dictionary; + ClearAll(): void; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Dictionary; + readonly Maximum: number; + readonly Parent: any; + } + + class HeaderFooter { + private 'Word.HeaderFooter_typekey': HeaderFooter; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Exists: boolean; + readonly Index: WdHeaderFooterIndex; + readonly IsHeader: boolean; + LinkToPrevious: boolean; + readonly PageNumbers: PageNumbers; + readonly Parent: any; + readonly Range: Range; + readonly Shapes: Shapes; + } + + class HeadersFooters { + private 'Word.HeadersFooters_typekey': HeadersFooters; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: WdHeaderFooterIndex): HeaderFooter; + readonly Parent: any; + } + + class HeadingStyle { + private 'Word.HeadingStyle_typekey': HeadingStyle; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + Level: number; + readonly Parent: any; + Style: any; + } + + class HeadingStyles { + private 'Word.HeadingStyles_typekey': HeadingStyles; + private constructor(); + Add(Style: any, Level: number): HeadingStyle; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): HeadingStyle; + readonly Parent: any; + } + + class HiLoLines { + private 'Word.HiLoLines_typekey': HiLoLines; + private constructor(); + readonly Application: any; + readonly Border: ChartBorder; + readonly Creator: number; + Delete(): void; + readonly Format: ChartFormat; + readonly Name: string; + readonly Parent: any; + Select(): void; + } + + class HorizontalLineFormat { + private 'Word.HorizontalLineFormat_typekey': HorizontalLineFormat; + private constructor(); + Alignment: WdHorizontalLineAlignment; + readonly Application: Application; + readonly Creator: number; + NoShade: boolean; + readonly Parent: any; + PercentWidth: number; + WidthType: WdHorizontalLineWidthType; + } + + class HTMLDivision { + private 'Word.HTMLDivision_typekey': HTMLDivision; + private constructor(); + readonly Application: Application; + readonly Borders: Borders; + readonly Creator: number; + Delete(): void; + HTMLDivisionParent(LevelsUp?: any): HTMLDivision; + readonly HTMLDivisions: HTMLDivisions; + LeftIndent: number; + readonly Parent: any; + readonly Range: Range; + RightIndent: number; + SpaceAfter: number; + SpaceBefore: number; + } + + class HTMLDivisions { + private 'Word.HTMLDivisions_typekey': HTMLDivisions; + private constructor(); + Add(Range?: any): HTMLDivision; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): HTMLDivision; + readonly NestingLevel: number; + readonly Parent: any; + } + + class Hyperlink { + private 'Word.Hyperlink_typekey': Hyperlink; + private constructor(); + Address: string; + readonly AddressOld: string; + AddToFavorites(): void; + readonly Application: Application; + CreateNewDocument(FileName: string, EditNow: boolean, Overwrite: boolean): void; + readonly Creator: number; + Delete(): void; + EmailSubject: string; + readonly ExtraInfoRequired: boolean; + Follow(NewWindow?: any, AddHistory?: any, ExtraInfo?: any, Method?: any, HeaderInfo?: any): void; + readonly Name: string; + readonly Parent: any; + readonly Range: Range; + ScreenTip: string; + readonly Shape: Shape; + SubAddress: string; + readonly SubAddressOld: string; + Target: string; + TextToDisplay: string; + readonly Type: Office.MsoHyperlinkType; + } + + class Hyperlinks { + private 'Word.Hyperlinks_typekey': Hyperlinks; + private constructor(); + _Add(Anchor: any, Address?: any, SubAddress?: any): Hyperlink; + Add(Anchor: any, Address?: any, SubAddress?: any, ScreenTip?: any, TextToDisplay?: any, Target?: any): Hyperlink; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Hyperlink; + readonly Parent: any; + } + + class Index { + private 'Word.Index_typekey': Index; + private constructor(); + AccentedLetters: boolean; + readonly Application: Application; + readonly Creator: number; + Delete(): void; + Filter: WdIndexFilter; + HeadingSeparator: WdHeadingSeparator; + IndexLanguage: WdLanguageID; + NumberOfColumns: number; + readonly Parent: any; + readonly Range: Range; + RightAlignPageNumbers: boolean; + SortBy: WdIndexSortBy; + TabLeader: WdTabLeader; + Type: WdIndexType; + Update(): void; + } + + class Indexes { + private 'Word.Indexes_typekey': Indexes; + private constructor(); + Add(Range: Range, HeadingSeparator?: any, RightAlignPageNumbers?: any, Type?: any, NumberOfColumns?: any, AccentedLetters?: any, SortBy?: any, IndexLanguage?: any): Index; + AddOld(Range: Range, HeadingSeparator?: any, RightAlignPageNumbers?: any, Type?: any, NumberOfColumns?: any, AccentedLetters?: any): Index; + readonly Application: Application; + AutoMarkEntries(ConcordanceFileName: string): void; + readonly Count: number; + readonly Creator: number; + Format: WdIndexFormat; + Item(Index: number): Index; + MarkAllEntries(Range: Range, Entry?: any, EntryAutoText?: any, CrossReference?: any, CrossReferenceAutoText?: any, BookmarkName?: any, Bold?: any, Italic?: any): void; + MarkEntry(Range: Range, Entry?: any, EntryAutoText?: any, CrossReference?: any, CrossReferenceAutoText?: any, BookmarkName?: any, Bold?: any, Italic?: any, Reading?: any): Field; + readonly Parent: any; + } + + class InlineShape { + private 'Word.InlineShape_typekey': InlineShape; + private constructor(); + Activate(): void; + AlternativeText: string; + readonly AnchorID: number; + readonly Application: Application; + Borders: Borders; + readonly Chart: Chart; + ConvertToShape(): Shape; + readonly Creator: number; + Delete(): void; + readonly EditID: number; + readonly Field: Field; + readonly Fill: FillFormat; + readonly Glow: GlowFormat; + readonly GroupItems: GroupShapes; + readonly HasChart: Office.MsoTriState; + readonly HasSmartArt: Office.MsoTriState; + Height: number; + readonly HorizontalLineFormat: HorizontalLineFormat; + readonly Hyperlink: Hyperlink; + readonly IsPictureBullet: boolean; + readonly Line: LineFormat; + readonly LinkFormat: LinkFormat; + LockAspectRatio: Office.MsoTriState; + readonly OLEFormat: OLEFormat; + readonly OWSAnchor: number; + readonly Parent: any; + PictureFormat: PictureFormat; + readonly Range: Range; + readonly Reflection: ReflectionFormat; + Reset(): void; + ScaleHeight: number; + ScaleWidth: number; + readonly Script: Office.Script; + Select(): void; + readonly Shadow: ShadowFormat; + readonly SmartArt: Office.SmartArt; + readonly SoftEdge: SoftEdgeFormat; + TextEffect: TextEffectFormat; + Title: string; + readonly Type: WdInlineShapeType; + Width: number; + } + + class InlineShapes { + private 'Word.InlineShapes_typekey': InlineShapes; + private constructor(); + + /** @param Office.XlChartType [Type=-1] */ + AddChart(Type?: Office.XlChartType, Range?: any): InlineShape; + AddHorizontalLine(FileName: string, Range?: any): InlineShape; + AddHorizontalLineStandard(Range?: any): InlineShape; + AddOLEControl(ClassType?: any, Range?: any): InlineShape; + AddOLEObject(ClassType?: any, FileName?: any, LinkToFile?: any, DisplayAsIcon?: any, IconFileName?: any, IconIndex?: any, IconLabel?: any, Range?: any): InlineShape; + AddPicture(FileName: string, LinkToFile?: any, SaveWithDocument?: any, Range?: any): InlineShape; + AddPictureBullet(FileName: string, Range?: any): InlineShape; + AddSmartArt(Layout: Office.SmartArtLayout, Range?: any): InlineShape; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): InlineShape; + New(Range: Range): InlineShape; + readonly Parent: any; + } + + class Interior { + private 'Word.Interior_typekey': Interior; + private constructor(); + readonly Application: any; + Color: any; + ColorIndex: any; + readonly Creator: number; + InvertIfNegative: any; + readonly Parent: any; + Pattern: any; + PatternColor: any; + PatternColorIndex: any; + } + + class KeyBinding { + private 'Word.KeyBinding_typekey': KeyBinding; + private constructor(); + readonly Application: Application; + Clear(): void; + readonly Command: string; + readonly CommandParameter: string; + readonly Context: any; + readonly Creator: number; + Disable(): void; + Execute(): void; + readonly KeyCategory: WdKeyCategory; + readonly KeyCode: number; + readonly KeyCode2: number; + readonly KeyString: string; + readonly Parent: any; + readonly Protected: boolean; + Rebind(KeyCategory: WdKeyCategory, Command: string, CommandParameter?: any): void; + } + + class KeyBindings { + private 'Word.KeyBindings_typekey': KeyBindings; + private constructor(); + Add(KeyCategory: WdKeyCategory, Command: string, KeyCode: number, KeyCode2?: any, CommandParameter?: any): KeyBinding; + readonly Application: Application; + ClearAll(): void; + readonly Context: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): KeyBinding; + Key(KeyCode: number, KeyCode2?: any): KeyBinding; + readonly Parent: any; + } + + class KeysBoundTo { + private 'Word.KeysBoundTo_typekey': KeysBoundTo; + private constructor(); + readonly Application: Application; + readonly Command: string; + readonly CommandParameter: string; + readonly Context: any; + readonly Count: number; + readonly Creator: number; + Item(Index: number): KeyBinding; + Key(KeyCode: number, KeyCode2?: any): KeyBinding; + readonly KeyCategory: WdKeyCategory; + readonly Parent: any; + } + + class Language { + private 'Word.Language_typekey': Language; + private constructor(); + readonly ActiveGrammarDictionary: Dictionary; + readonly ActiveHyphenationDictionary: Dictionary; + readonly ActiveSpellingDictionary: Dictionary; + readonly ActiveThesaurusDictionary: Dictionary; + readonly Application: Application; + readonly Creator: number; + DefaultWritingStyle: string; + readonly ID: WdLanguageID; + readonly Name: string; + readonly NameLocal: string; + readonly Parent: any; + SpellingDictionaryType: WdDictionaryType; + readonly WritingStyleList: any; + } + + class Languages { + private 'Word.Languages_typekey': Languages; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Language; + readonly Parent: any; + } + + class Legend { + private 'Word.Legend_typekey': Legend; + private constructor(); + readonly Application: any; + AutoScaleFont: any; + readonly Border: ChartBorder; + Clear(): any; + readonly Creator: number; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Font: ChartFont; + readonly Format: ChartFormat; + Height: number; + IncludeInLayout: boolean; + readonly Interior: Interior; + Left: number; + LegendEntries(Index?: any): any; + readonly Name: string; + readonly Parent: any; + Position: XlLegendPosition; + Select(): any; + Shadow: boolean; + Top: number; + Width: number; + } + + class LetterContent { + private 'Word.LetterContent_typekey': LetterContent; + private constructor(); + readonly Application: Application; + AttentionLine: string; + CCList: string; + Closing: string; + readonly Creator: number; + DateFormat: string; + readonly Duplicate: LetterContent; + EnclosureNumber: number; + IncludeHeaderFooter: boolean; + InfoBlock: boolean; + Letterhead: boolean; + LetterheadLocation: WdLetterheadLocation; + LetterheadSize: number; + LetterStyle: WdLetterStyle; + MailingInstructions: string; + PageDesign: string; + readonly Parent: any; + RecipientAddress: string; + RecipientCode: string; + RecipientGender: WdSalutationGender; + RecipientName: string; + RecipientReference: string; + ReturnAddress: string; + ReturnAddressShortForm: string; + Salutation: string; + SalutationType: WdSalutationType; + SenderCity: string; + SenderCode: string; + SenderCompany: string; + SenderGender: WdSalutationGender; + SenderInitials: string; + SenderJobTitle: string; + SenderName: string; + SenderReference: string; + Subject: string; + } + + class Line { + private 'Word.Line_typekey': Line; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Height: number; + readonly Left: number; + readonly LineType: WdLineType; + readonly Parent: any; + readonly Range: Range; + readonly Rectangles: Rectangles; + readonly Top: number; + readonly Width: number; + } + + class LineFormat { + private 'Word.LineFormat_typekey': LineFormat; + private constructor(); + readonly Application: Application; + readonly BackColor: ColorFormat; + BeginArrowheadLength: Office.MsoArrowheadLength; + BeginArrowheadStyle: Office.MsoArrowheadStyle; + BeginArrowheadWidth: Office.MsoArrowheadWidth; + readonly Creator: number; + DashStyle: Office.MsoLineDashStyle; + EndArrowheadLength: Office.MsoArrowheadLength; + EndArrowheadStyle: Office.MsoArrowheadStyle; + EndArrowheadWidth: Office.MsoArrowheadWidth; + readonly ForeColor: ColorFormat; + InsetPen: Office.MsoTriState; + readonly Parent: any; + Pattern: Office.MsoPatternType; + Style: Office.MsoLineStyle; + Transparency: number; + Visible: Office.MsoTriState; + Weight: number; + } + + class LineNumbering { + private 'Word.LineNumbering_typekey': LineNumbering; + private constructor(); + Active: number; + readonly Application: Application; + CountBy: number; + readonly Creator: number; + DistanceFromText: number; + readonly Parent: any; + RestartMode: WdNumberingRule; + StartingNumber: number; + } + + class Lines { + private 'Word.Lines_typekey': Lines; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Line; + readonly Parent: any; + } + + class LinkFormat { + private 'Word.LinkFormat_typekey': LinkFormat; + private constructor(); + readonly Application: Application; + AutoUpdate: boolean; + BreakLink(): void; + readonly Creator: number; + Locked: boolean; + readonly Parent: any; + SavePictureWithDocument: boolean; + SourceFullName: string; + readonly SourceName: string; + readonly SourcePath: string; + readonly Type: WdLinkType; + Update(): void; + } + + class List { + private 'Word.List_typekey': List; + private constructor(); + readonly Application: Application; + ApplyListTemplate(ListTemplate: ListTemplate, ContinuePreviousList?: any, DefaultListBehavior?: any): void; + ApplyListTemplateOld(ListTemplate: ListTemplate, ContinuePreviousList?: any): void; + ApplyListTemplateWithLevel(ListTemplate: ListTemplate, ContinuePreviousList?: any, DefaultListBehavior?: any, ApplyLevel?: any): void; + CanContinuePreviousList(ListTemplate: ListTemplate): WdContinue; + ConvertNumbersToText(NumberType?: any): void; + CountNumberedItems(NumberType?: any, Level?: any): number; + readonly Creator: number; + readonly ListParagraphs: ListParagraphs; + readonly Parent: any; + readonly Range: Range; + RemoveNumbers(NumberType?: any): void; + readonly SingleListTemplate: boolean; + readonly StyleName: string; + } + + class ListEntries { + private 'Word.ListEntries_typekey': ListEntries; + private constructor(); + Add(Name: string, Index?: any): ListEntry; + readonly Application: Application; + Clear(): void; + readonly Count: number; + readonly Creator: number; + Item(Index: any): ListEntry; + readonly Parent: any; + } + + class ListEntry { + private 'Word.ListEntry_typekey': ListEntry; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Index: number; + Name: string; + readonly Parent: any; + } + + class ListFormat { + private 'Word.ListFormat_typekey': ListFormat; + private constructor(); + readonly Application: Application; + ApplyBulletDefault(DefaultListBehavior?: any): void; + ApplyBulletDefaultOld(): void; + ApplyListTemplate(ListTemplate: ListTemplate, ContinuePreviousList?: any, ApplyTo?: any, DefaultListBehavior?: any): void; + ApplyListTemplateOld(ListTemplate: ListTemplate, ContinuePreviousList?: any, ApplyTo?: any): void; + ApplyListTemplateWithLevel(ListTemplate: ListTemplate, ContinuePreviousList?: any, ApplyTo?: any, DefaultListBehavior?: any, ApplyLevel?: any): void; + ApplyNumberDefault(DefaultListBehavior?: any): void; + ApplyNumberDefaultOld(): void; + ApplyOutlineNumberDefault(DefaultListBehavior?: any): void; + ApplyOutlineNumberDefaultOld(): void; + CanContinuePreviousList(ListTemplate: ListTemplate): WdContinue; + ConvertNumbersToText(NumberType?: any): void; + CountNumberedItems(NumberType?: any, Level?: any): number; + readonly Creator: number; + readonly List: List; + ListIndent(): void; + ListLevelNumber: number; + ListOutdent(): void; + readonly ListPictureBullet: InlineShape; + readonly ListString: string; + readonly ListTemplate: ListTemplate; + readonly ListType: WdListType; + readonly ListValue: number; + readonly Parent: any; + RemoveNumbers(NumberType?: any): void; + readonly SingleList: boolean; + readonly SingleListTemplate: boolean; + } + + class ListGalleries { + private 'Word.ListGalleries_typekey': ListGalleries; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: WdListGalleryType): ListGallery; + readonly Parent: any; + } + + class ListGallery { + private 'Word.ListGallery_typekey': ListGallery; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly ListTemplates: ListTemplates; + Modified(Index: number): boolean; + readonly Parent: any; + Reset(Index: number): void; + } + + class ListLevel { + private 'Word.ListLevel_typekey': ListLevel; + private constructor(); + Alignment: WdListLevelAlignment; + readonly Application: Application; + ApplyPictureBullet(FileName: string): InlineShape; + readonly Creator: number; + Font: Font; + readonly Index: number; + LinkedStyle: string; + NumberFormat: string; + NumberPosition: number; + NumberStyle: WdListNumberStyle; + readonly Parent: any; + readonly PictureBullet: InlineShape; + ResetOnHigher: number; + ResetOnHigherOld: boolean; + StartAt: number; + TabPosition: number; + TextPosition: number; + TrailingCharacter: WdTrailingCharacter; + } + + class ListLevels { + private 'Word.ListLevels_typekey': ListLevels; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): ListLevel; + readonly Parent: any; + } + + class ListParagraphs { + private 'Word.ListParagraphs_typekey': ListParagraphs; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Paragraph; + readonly Parent: any; + } + + class Lists { + private 'Word.Lists_typekey': Lists; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): List; + readonly Parent: any; + } + + class ListTemplate { + private 'Word.ListTemplate_typekey': ListTemplate; + private constructor(); + readonly Application: Application; + Convert(Level?: any): ListTemplate; + readonly Creator: number; + readonly ListLevels: ListLevels; + Name: string; + OutlineNumbered: boolean; + readonly Parent: any; + } + + class ListTemplates { + private 'Word.ListTemplates_typekey': ListTemplates; + private constructor(); + Add(OutlineNumbered?: any, Name?: any): ListTemplate; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): ListTemplate; + readonly Parent: any; + } + + class Mailer { + private 'Word.Mailer_typekey': Mailer; + private constructor(); + readonly Application: Application; + BCCRecipients: any; + CCRecipients: any; + readonly Creator: number; + Enclosures: any; + readonly Parent: any; + readonly Received: boolean; + Recipients: any; + readonly SendDateTime: VarDate; + readonly Sender: string; + Subject: string; + } + + class MailingLabel { + private 'Word.MailingLabel_typekey': MailingLabel; + private constructor(); + readonly Application: Application; + CreateNewDocument(Name?: any, Address?: any, AutoText?: any, ExtractAddress?: any, LaserTray?: any, PrintEPostageLabel?: any, Vertical?: any): Document; + CreateNewDocument2000(Name?: any, Address?: any, AutoText?: any, ExtractAddress?: any, LaserTray?: any): Document; + CreateNewDocumentByID(LabelID?: any, Address?: any, AutoText?: any, ExtractAddress?: any, LaserTray?: any, PrintEPostageLabel?: any, Vertical?: any): Document; + readonly Creator: number; + readonly CustomLabels: CustomLabels; + DefaultLabelName: string; + DefaultLaserTray: WdPaperTray; + DefaultPrintBarCode: boolean; + LabelOptions(): void; + readonly Parent: any; + PrintOut(Name?: any, Address?: any, ExtractAddress?: any, LaserTray?: any, SingleLabel?: any, Row?: any, Column?: any, PrintEPostageLabel?: any, Vertical?: any): void; + PrintOut2000(Name?: any, Address?: any, ExtractAddress?: any, LaserTray?: any, SingleLabel?: any, Row?: any, Column?: any): void; + PrintOutByID(LabelID?: any, Address?: any, ExtractAddress?: any, LaserTray?: any, SingleLabel?: any, Row?: any, Column?: any, PrintEPostageLabel?: any, Vertical?: any): void; + Vertical: boolean; + } + + class MailMerge { + private 'Word.MailMerge_typekey': MailMerge; + private constructor(); + readonly Application: Application; + Check(): void; + CreateDataSource( + Name?: any, PasswordDocument?: any, WritePasswordDocument?: any, HeaderRecord?: any, MSQuery?: any, SQLStatement?: any, SQLStatement1?: any, Connection?: any, LinkToSource?: any): void; + CreateHeaderSource(Name: string, PasswordDocument?: any, WritePasswordDocument?: any, HeaderRecord?: any): void; + readonly Creator: number; + readonly DataSource: MailMergeDataSource; + Destination: WdMailMergeDestination; + EditDataSource(): void; + EditHeaderSource(): void; + EditMainDocument(): void; + Execute(Pause?: any): void; + readonly Fields: MailMergeFields; + HighlightMergeFields: boolean; + MailAddressFieldName: string; + MailAsAttachment: boolean; + MailFormat: WdMailMergeMailFormat; + MailSubject: string; + MainDocumentType: WdMailMergeMainDocType; + OpenDataSource( + Name: string, Format?: any, ConfirmConversions?: any, ReadOnly?: any, LinkToSource?: any, AddToRecentFiles?: any, PasswordDocument?: any, + PasswordTemplate?: any, Revert?: any, WritePasswordDocument?: any, WritePasswordTemplate?: any, Connection?: any, SQLStatement?: any, SQLStatement1?: any, + OpenExclusive?: any, SubType?: any): void; + OpenDataSource2000( + Name: string, Format?: any, ConfirmConversions?: any, ReadOnly?: any, LinkToSource?: any, AddToRecentFiles?: any, PasswordDocument?: any, + PasswordTemplate?: any, Revert?: any, WritePasswordDocument?: any, WritePasswordTemplate?: any, Connection?: any, SQLStatement?: any, SQLStatement1?: any): void; + OpenHeaderSource( + Name: string, Format?: any, ConfirmConversions?: any, ReadOnly?: any, AddToRecentFiles?: any, PasswordDocument?: any, PasswordTemplate?: any, Revert?: any, + WritePasswordDocument?: any, WritePasswordTemplate?: any, OpenExclusive?: any): void; + OpenHeaderSource2000( + Name: string, Format?: any, ConfirmConversions?: any, ReadOnly?: any, AddToRecentFiles?: any, PasswordDocument?: any, PasswordTemplate?: any, Revert?: any, + WritePasswordDocument?: any, WritePasswordTemplate?: any): void; + readonly Parent: any; + ShowSendToCustom: string; + ShowWizard(InitialState: any, ShowDocumentStep?: any, ShowTemplateStep?: any, ShowDataStep?: any, ShowWriteStep?: any, ShowPreviewStep?: any, ShowMergeStep?: any): void; + readonly State: WdMailMergeState; + SuppressBlankLines: boolean; + UseAddressBook(Type: string): void; + ViewMailMergeFieldCodes: number; + WizardState: number; + } + + class MailMergeDataField { + private 'Word.MailMergeDataField_typekey': MailMergeDataField; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Index: number; + readonly Name: string; + readonly Parent: any; + readonly Value: string; + } + + class MailMergeDataFields { + private 'Word.MailMergeDataFields_typekey': MailMergeDataFields; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): MailMergeDataField; + readonly Parent: any; + } + + class MailMergeDataSource { + private 'Word.MailMergeDataSource_typekey': MailMergeDataSource; + private constructor(); + ActiveRecord: WdMailMergeActiveRecord; + readonly Application: Application; + Close(): void; + readonly ConnectString: string; + readonly Creator: number; + readonly DataFields: MailMergeDataFields; + readonly FieldNames: MailMergeFieldNames; + FindRecord(FindText: string, Field?: any): boolean; + FindRecord2000(FindText: string, Field: string): boolean; + FirstRecord: number; + readonly HeaderSourceName: string; + readonly HeaderSourceType: WdMailMergeDataSource; + Included: boolean; + InvalidAddress: boolean; + InvalidComments: string; + LastRecord: number; + readonly MappedDataFields: MappedDataFields; + readonly Name: string; + readonly Parent: any; + QueryString: string; + readonly RecordCount: number; + SetAllErrorFlags(Invalid: boolean, InvalidComment: string): void; + SetAllIncludedFlags(Included: boolean): void; + readonly TableName: string; + readonly Type: WdMailMergeDataSource; + } + + class MailMergeField { + private 'Word.MailMergeField_typekey': MailMergeField; + private constructor(); + readonly Application: Application; + Code: Range; + Copy(): void; + readonly Creator: number; + Cut(): void; + Delete(): void; + Locked: boolean; + readonly Next: MailMergeField; + readonly Parent: any; + readonly Previous: MailMergeField; + Select(): void; + readonly Type: WdFieldType; + } + + class MailMergeFieldName { + private 'Word.MailMergeFieldName_typekey': MailMergeFieldName; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Index: number; + readonly Name: string; + readonly Parent: any; + } + + class MailMergeFieldNames { + private 'Word.MailMergeFieldNames_typekey': MailMergeFieldNames; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): MailMergeFieldName; + readonly Parent: any; + } + + class MailMergeFields { + private 'Word.MailMergeFields_typekey': MailMergeFields; + private constructor(); + Add(Range: Range, Name: string): MailMergeField; + AddAsk(Range: Range, Name: string, Prompt?: any, DefaultAskText?: any, AskOnce?: any): MailMergeField; + AddFillIn(Range: Range, Prompt?: any, DefaultFillInText?: any, AskOnce?: any): MailMergeField; + AddIf(Range: Range, MergeField: string, Comparison: WdMailMergeComparison, CompareTo?: any, TrueAutoText?: any, TrueText?: any, FalseAutoText?: any, FalseText?: any): MailMergeField; + AddMergeRec(Range: Range): MailMergeField; + AddMergeSeq(Range: Range): MailMergeField; + AddNext(Range: Range): MailMergeField; + AddNextIf(Range: Range, MergeField: string, Comparison: WdMailMergeComparison, CompareTo?: any): MailMergeField; + AddSet(Range: Range, Name: string, ValueText?: any, ValueAutoText?: any): MailMergeField; + AddSkipIf(Range: Range, MergeField: string, Comparison: WdMailMergeComparison, CompareTo?: any): MailMergeField; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): MailMergeField; + readonly Parent: any; + } + + class MailMessage { + private 'Word.MailMessage_typekey': MailMessage; + private constructor(); + readonly Application: Application; + CheckName(): void; + readonly Creator: number; + Delete(): void; + DisplayMoveDialog(): void; + DisplayProperties(): void; + DisplaySelectNamesDialog(): void; + Forward(): void; + GoToNext(): void; + GoToPrevious(): void; + readonly Parent: any; + Reply(): void; + ReplyAll(): void; + ToggleHeader(): void; + } + + class MappedDataField { + private 'Word.MappedDataField_typekey': MappedDataField; + private constructor(); + readonly Application: Application; + readonly Creator: number; + DataFieldIndex: number; + readonly DataFieldName: string; + readonly Index: number; + readonly Name: string; + readonly Parent: any; + readonly Value: string; + } + + class MappedDataFields { + private 'Word.MappedDataFields_typekey': MappedDataFields; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: WdMappedDataFields): MappedDataField; + readonly Parent: any; + } + + class OLEControl { + private 'Word.OLEControl_typekey': OLEControl; + private constructor(); + Activate(): void; + AltHTML: string; + readonly Automation: any; + Copy(): void; + Cut(): void; + Delete(): void; + Height: number; + Left: number; + Name: string; + Select(): void; + Top: number; + Width: number; + } + + class OLEFormat { + private 'Word.OLEFormat_typekey': OLEFormat; + private constructor(); + Activate(): void; + ActivateAs(ClassType: string): void; + readonly Application: Application; + ClassType: string; + ConvertTo(ClassType?: any, DisplayAsIcon?: any, IconFileName?: any, IconIndex?: any, IconLabel?: any): void; + readonly Creator: number; + DisplayAsIcon: boolean; + DoVerb(VerbIndex?: any): void; + Edit(): void; + IconIndex: number; + IconLabel: string; + IconName: string; + readonly IconPath: string; + readonly Label: string; + readonly Object: any; + Open(): void; + readonly Parent: any; + PreserveFormattingOnUpdate: boolean; + readonly ProgID: string; + } + + class OMath { + private 'Word.OMath_typekey': OMath; + private constructor(); + AlignPoint: number; + readonly Application: Application; + readonly ArgIndex: number; + ArgSize: number; + readonly Breaks: OMathBreaks; + BuildUp(): void; + ConvertToLiteralText(): void; + ConvertToMathText(): void; + ConvertToNormalText(): void; + readonly Creator: number; + readonly Functions: OMathFunctions; + Justification: WdOMathJc; + Linearize(): void; + readonly NestingLevel: number; + readonly Parent: any; + readonly ParentArg: OMath; + readonly ParentCol: OMathMatCol; + readonly ParentFunction: OMathFunction; + readonly ParentOMath: OMath; + readonly ParentRow: OMathMatRow; + readonly Range: Range; + Remove(): void; + Type: WdOMathType; + } + + class OMathAcc { + private 'Word.OMathAcc_typekey': OMathAcc; + private constructor(); + readonly Application: Application; + Char: number; + readonly Creator: number; + readonly E: OMath; + readonly Parent: any; + } + + class OMathArgs { + private 'Word.OMathArgs_typekey': OMathArgs; + private constructor(); + Add(BeforeArg?: any): OMath; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): OMath; + readonly Parent: any; + } + + class OMathAutoCorrect { + private 'Word.OMathAutoCorrect_typekey': OMathAutoCorrect; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Entries: OMathAutoCorrectEntries; + readonly Functions: OMathRecognizedFunctions; + readonly Parent: any; + ReplaceText: boolean; + UseOutsideOMath: boolean; + } + + class OMathAutoCorrectEntries { + private 'Word.OMathAutoCorrectEntries_typekey': OMathAutoCorrectEntries; + private constructor(); + Add(Name: string, Value: string): OMathAutoCorrectEntry; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): OMathAutoCorrectEntry; + readonly Parent: any; + } + + class OMathAutoCorrectEntry { + private 'Word.OMathAutoCorrectEntry_typekey': OMathAutoCorrectEntry; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Index: number; + Name: string; + readonly Parent: any; + Value: string; + } + + class OMathBar { + private 'Word.OMathBar_typekey': OMathBar; + private constructor(); + readonly Application: Application; + BarTop: boolean; + readonly Creator: number; + readonly E: OMath; + readonly Parent: any; + } + + class OMathBorderBox { + private 'Word.OMathBorderBox_typekey': OMathBorderBox; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly E: OMath; + HideBot: boolean; + HideLeft: boolean; + HideRight: boolean; + HideTop: boolean; + readonly Parent: any; + StrikeBLTR: boolean; + StrikeH: boolean; + StrikeTLBR: boolean; + StrikeV: boolean; + } + + class OMathBox { + private 'Word.OMathBox_typekey': OMathBox; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Diff: boolean; + readonly E: OMath; + NoBreak: boolean; + OpEmu: boolean; + readonly Parent: any; + } + + class OMathBreak { + private 'Word.OMathBreak_typekey': OMathBreak; + private constructor(); + AlignAt: number; + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Parent: any; + readonly Range: Range; + } + + class OMathBreaks { + private 'Word.OMathBreaks_typekey': OMathBreaks; + private constructor(); + Add(Range: Range): OMathBreak; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): OMathBreak; + readonly Parent: any; + } + + class OMathDelim { + private 'Word.OMathDelim_typekey': OMathDelim; + private constructor(); + readonly Application: Application; + BegChar: number; + readonly Creator: number; + readonly E: OMathArgs; + EndChar: number; + Grow: boolean; + NoLeftChar: boolean; + NoRightChar: boolean; + readonly Parent: any; + SepChar: number; + Shape: WdOMathShapeType; + } + + class OMathEqArray { + private 'Word.OMathEqArray_typekey': OMathEqArray; + private constructor(); + Align: WdOMathVertAlignType; + readonly Application: Application; + readonly Creator: number; + readonly E: OMathArgs; + MaxDist: boolean; + ObjDist: boolean; + readonly Parent: any; + RowSpacing: number; + RowSpacingRule: WdOMathSpacingRule; + } + + class OMathFrac { + private 'Word.OMathFrac_typekey': OMathFrac; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Den: OMath; + readonly Num: OMath; + readonly Parent: any; + Type: WdOMathFracType; + } + + class OMathFunc { + private 'Word.OMathFunc_typekey': OMathFunc; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly E: OMath; + readonly FName: OMath; + readonly Parent: any; + } + + class OMathFunction { + private 'Word.OMathFunction_typekey': OMathFunction; + private constructor(); + readonly Acc: OMathAcc; + readonly Application: Application; + readonly Args: OMathArgs; + readonly Bar: OMathBar; + readonly BorderBox: OMathBorderBox; + readonly Box: OMathBox; + readonly Creator: number; + readonly Delim: OMathDelim; + readonly EqArray: OMathEqArray; + readonly Frac: OMathFrac; + readonly Func: OMathFunc; + readonly GroupChar: OMathGroupChar; + readonly LimLow: OMathLimLow; + readonly LimUpp: OMathLimUpp; + readonly Mat: OMathMat; + readonly Nary: OMathNary; + readonly OMath: OMath; + readonly Parent: any; + readonly Phantom: OMathPhantom; + readonly Rad: OMathRad; + readonly Range: Range; + Remove(): OMathFunction; + readonly ScrPre: OMathScrPre; + readonly ScrSub: OMathScrSub; + readonly ScrSubSup: OMathScrSubSup; + readonly ScrSup: OMathScrSup; + readonly Type: WdOMathFunctionType; + } + + class OMathFunctions { + private 'Word.OMathFunctions_typekey': OMathFunctions; + private constructor(); + Add(Range: Range, Type: WdOMathFunctionType, NumArgs?: any, NumCols?: any): OMathFunction; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): OMathFunction; + readonly Parent: any; + } + + class OMathGroupChar { + private 'Word.OMathGroupChar_typekey': OMathGroupChar; + private constructor(); + AlignTop: boolean; + readonly Application: Application; + Char: number; + CharTop: boolean; + readonly Creator: number; + readonly E: OMath; + readonly Parent: any; + } + + class OMathLimLow { + private 'Word.OMathLimLow_typekey': OMathLimLow; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly E: OMath; + readonly Lim: OMath; + readonly Parent: any; + ToLimUpp(): OMathFunction; + } + + class OMathLimUpp { + private 'Word.OMathLimUpp_typekey': OMathLimUpp; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly E: OMath; + readonly Lim: OMath; + readonly Parent: any; + ToLimLow(): OMathFunction; + } + + class OMathMat { + private 'Word.OMathMat_typekey': OMathMat; + private constructor(); + Align: WdOMathVertAlignType; + readonly Application: Application; + Cell(Row: number, Col: number): OMath; + ColGap: number; + ColGapRule: WdOMathSpacingRule; + readonly Cols: OMathMatCols; + ColSpacing: number; + readonly Creator: number; + readonly Parent: any; + PlcHoldHidden: boolean; + readonly Rows: OMathMatRows; + RowSpacing: number; + RowSpacingRule: WdOMathSpacingRule; + } + + class OMathMatCol { + private 'Word.OMathMatCol_typekey': OMathMatCol; + private constructor(); + Align: WdOMathHorizAlignType; + readonly Application: Application; + readonly Args: OMathArgs; + readonly ColIndex: number; + readonly Creator: number; + Delete(): void; + readonly Parent: any; + } + + class OMathMatCols { + private 'Word.OMathMatCols_typekey': OMathMatCols; + private constructor(); + Add(BeforeCol?: any): OMathMatCol; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): OMathMatCol; + readonly Parent: any; + } + + class OMathMatRow { + private 'Word.OMathMatRow_typekey': OMathMatRow; + private constructor(); + readonly Application: Application; + readonly Args: OMathArgs; + readonly Creator: number; + Delete(): void; + readonly Parent: any; + readonly RowIndex: number; + } + + class OMathMatRows { + private 'Word.OMathMatRows_typekey': OMathMatRows; + private constructor(); + Add(BeforeRow?: any): OMathMatRow; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): OMathMatRow; + readonly Parent: any; + } + + class OMathNary { + private 'Word.OMathNary_typekey': OMathNary; + private constructor(); + readonly Application: Application; + Char: number; + readonly Creator: number; + readonly E: OMath; + Grow: boolean; + HideSub: boolean; + HideSup: boolean; + readonly Parent: any; + readonly Sub: OMath; + SubSupLim: boolean; + readonly Sup: OMath; + } + + class OMathPhantom { + private 'Word.OMathPhantom_typekey': OMathPhantom; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly E: OMath; + readonly Parent: any; + Show: boolean; + Smash: boolean; + Transp: boolean; + ZeroAsc: boolean; + ZeroDesc: boolean; + ZeroWid: boolean; + } + + class OMathRad { + private 'Word.OMathRad_typekey': OMathRad; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Deg: OMath; + readonly E: OMath; + HideDeg: boolean; + readonly Parent: any; + } + + class OMathRecognizedFunction { + private 'Word.OMathRecognizedFunction_typekey': OMathRecognizedFunction; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Index: number; + readonly Name: string; + readonly Parent: any; + } + + class OMathRecognizedFunctions { + private 'Word.OMathRecognizedFunctions_typekey': OMathRecognizedFunctions; + private constructor(); + Add(Name: string): OMathRecognizedFunction; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): OMathRecognizedFunction; + readonly Parent: any; + } + + class OMaths { + private 'Word.OMaths_typekey': OMaths; + private constructor(); + Add(Range: Range): Range; + readonly Application: Application; + BuildUp(): void; + readonly Count: number; + readonly Creator: number; + Item(Index: number): OMath; + Linearize(): void; + readonly Parent: any; + } + + class OMathScrPre { + private 'Word.OMathScrPre_typekey': OMathScrPre; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly E: OMath; + readonly Parent: any; + readonly Sub: OMath; + readonly Sup: OMath; + ToScrSubSup(): OMathFunction; + } + + class OMathScrSub { + private 'Word.OMathScrSub_typekey': OMathScrSub; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly E: OMath; + readonly Parent: any; + readonly Sub: OMath; + } + + class OMathScrSubSup { + private 'Word.OMathScrSubSup_typekey': OMathScrSubSup; + private constructor(); + AlignScripts: boolean; + readonly Application: Application; + readonly Creator: number; + readonly E: OMath; + readonly Parent: any; + RemoveSub(): OMathFunction; + RemoveSup(): OMathFunction; + readonly Sub: OMath; + readonly Sup: OMath; + ToScrPre(): OMathFunction; + } + + class OMathScrSup { + private 'Word.OMathScrSup_typekey': OMathScrSup; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly E: OMath; + readonly Parent: any; + readonly Sup: OMath; + } + + class Options { + private 'Word.Options_typekey': Options; + private constructor(); + AddBiDirectionalMarksWhenSavingTextFile: boolean; + AddControlCharacters: boolean; + AddHebDoubleQuote: boolean; + AllowAccentedUppercase: boolean; + AllowClickAndTypeMouse: boolean; + AllowCombinedAuxiliaryForms: boolean; + AllowCompoundNounProcessing: boolean; + AllowDragAndDrop: boolean; + AllowFastSave: boolean; + AllowOpenInDraftView: boolean; + AllowPixelUnits: boolean; + AllowReadingMode: boolean; + AlwaysUseClearType: boolean; + AnimateScreenMovements: boolean; + readonly Application: Application; + ApplyFarEastFontsToAscii: boolean; + ArabicMode: WdAraSpeller; + ArabicNumeral: WdArabicNumeral; + AutoCreateNewDrawings: boolean; + AutoFormatApplyBulletedLists: boolean; + AutoFormatApplyFirstIndents: boolean; + AutoFormatApplyHeadings: boolean; + AutoFormatApplyLists: boolean; + AutoFormatApplyOtherParas: boolean; + AutoFormatAsYouTypeApplyBorders: boolean; + AutoFormatAsYouTypeApplyBulletedLists: boolean; + AutoFormatAsYouTypeApplyClosings: boolean; + AutoFormatAsYouTypeApplyDates: boolean; + AutoFormatAsYouTypeApplyFirstIndents: boolean; + AutoFormatAsYouTypeApplyHeadings: boolean; + AutoFormatAsYouTypeApplyNumberedLists: boolean; + AutoFormatAsYouTypeApplyTables: boolean; + AutoFormatAsYouTypeAutoLetterWizard: boolean; + AutoFormatAsYouTypeDefineStyles: boolean; + AutoFormatAsYouTypeDeleteAutoSpaces: boolean; + AutoFormatAsYouTypeFormatListItemBeginning: boolean; + AutoFormatAsYouTypeInsertClosings: boolean; + AutoFormatAsYouTypeInsertOvers: boolean; + AutoFormatAsYouTypeMatchParentheses: boolean; + AutoFormatAsYouTypeReplaceFarEastDashes: boolean; + AutoFormatAsYouTypeReplaceFractions: boolean; + AutoFormatAsYouTypeReplaceHyperlinks: boolean; + AutoFormatAsYouTypeReplaceOrdinals: boolean; + AutoFormatAsYouTypeReplacePlainTextEmphasis: boolean; + AutoFormatAsYouTypeReplaceQuotes: boolean; + AutoFormatAsYouTypeReplaceSymbols: boolean; + AutoFormatDeleteAutoSpaces: boolean; + AutoFormatMatchParentheses: boolean; + AutoFormatPlainTextWordMail: boolean; + AutoFormatPreserveStyles: boolean; + AutoFormatReplaceFarEastDashes: boolean; + AutoFormatReplaceFractions: boolean; + AutoFormatReplaceHyperlinks: boolean; + AutoFormatReplaceOrdinals: boolean; + AutoFormatReplacePlainTextEmphasis: boolean; + AutoFormatReplaceQuotes: boolean; + AutoFormatReplaceSymbols: boolean; + AutoKeyboardSwitching: boolean; + AutoWordSelection: boolean; + BackgroundOpen: boolean; + BackgroundSave: boolean; + BibliographySort: string; + BibliographyStyle: string; + BlueScreen: boolean; + BrazilReform: WdPortugueseReform; + ButtonFieldClicks: number; + CheckGrammarAsYouType: boolean; + CheckGrammarWithSpelling: boolean; + CheckHangulEndings: boolean; + CheckSpellingAsYouType: boolean; + CommentsColor: WdColorIndex; + ConfirmConversions: boolean; + ContextualSpeller: boolean; + ConvertHighAnsiToFarEast: boolean; + CreateBackup: boolean; + readonly Creator: number; + CtrlClickHyperlinkToOpen: boolean; + CursorMovement: WdCursorMovement; + DefaultBorderColor: WdColor; + DefaultBorderColorIndex: WdColorIndex; + DefaultBorderLineStyle: WdLineStyle; + DefaultBorderLineWidth: WdLineWidth; + DefaultEPostageApp: string; + DefaultFilePath(Path: WdDefaultFilePath): string; + DefaultHighlightColorIndex: WdColorIndex; + DefaultOpenFormat: WdOpenFormat; + DefaultTextEncoding: Office.MsoEncoding; + DefaultTray: string; + DefaultTrayID: number; + DeletedCellColor: WdCellColor; + DeletedTextColor: WdColorIndex; + DeletedTextMark: WdDeletedTextMark; + DiacriticColorVal: WdColor; + DisableFeaturesbyDefault: boolean; + DisableFeaturesIntroducedAfterbyDefault: WdDisableFeaturesIntroducedAfter; + DisplayGridLines: boolean; + DisplayPasteOptions: boolean; + DisplaySmartTagButtons: boolean; + DocumentViewDirection: WdDocumentViewDirection; + DoNotPromptForConvert: boolean; + EnableHangulHanjaRecentOrdering: boolean; + EnableLegacyIMEMode: boolean; + EnableLivePreview: boolean; + EnableMisusedWordsDictionary: boolean; + EnableSound: boolean; + readonly EnvelopeFeederInstalled: boolean; + FormatScanning: boolean; + FrenchReform: WdFrenchSpeller; + GridDistanceHorizontal: number; + GridDistanceVertical: number; + GridOriginHorizontal: number; + GridOriginVertical: number; + HangulHanjaFastConversion: boolean; + HebrewMode: WdHebSpellStart; + IgnoreInternetAndFileAddresses: boolean; + IgnoreMixedDigits: boolean; + IgnoreUppercase: boolean; + IMEAutomaticControl: boolean; + InlineConversion: boolean; + InsertedCellColor: WdCellColor; + InsertedTextColor: WdColorIndex; + InsertedTextMark: WdInsertedTextMark; + INSKeyForOvertype: boolean; + INSKeyForPaste: boolean; + InterpretHighAnsi: WdHighAnsiText; + LabelSmartTags: boolean; + LocalNetworkFile: boolean; + MapPaperSize: boolean; + MatchFuzzyAY: boolean; + MatchFuzzyBV: boolean; + MatchFuzzyByte: boolean; + MatchFuzzyCase: boolean; + MatchFuzzyDash: boolean; + MatchFuzzyDZ: boolean; + MatchFuzzyHF: boolean; + MatchFuzzyHiragana: boolean; + MatchFuzzyIterationMark: boolean; + MatchFuzzyKanji: boolean; + MatchFuzzyKiKu: boolean; + MatchFuzzyOldKana: boolean; + MatchFuzzyProlongedSoundMark: boolean; + MatchFuzzyPunctuation: boolean; + MatchFuzzySmallKana: boolean; + MatchFuzzySpace: boolean; + MatchFuzzyTC: boolean; + MatchFuzzyZJ: boolean; + MeasurementUnit: WdMeasurementUnits; + MergedCellColor: WdCellColor; + MonthNames: WdMonthNames; + MoveFromTextColor: WdColorIndex; + MoveFromTextMark: WdMoveFromTextMark; + MoveToTextColor: WdColorIndex; + MoveToTextMark: WdMoveToTextMark; + MultipleWordConversionsMode: WdMultipleWordConversionsMode; + OMathAutoBuildUp: boolean; + OMathCopyLF: boolean; + OptimizeForWord97byDefault: boolean; + Overtype: boolean; + Pagination: boolean; + readonly Parent: any; + PasteAdjustParagraphSpacing: boolean; + PasteAdjustTableFormatting: boolean; + PasteAdjustWordSpacing: boolean; + PasteFormatBetweenDocuments: WdPasteOptions; + PasteFormatBetweenStyledDocuments: WdPasteOptions; + PasteFormatFromExternalSource: WdPasteOptions; + PasteFormatWithinDocument: WdPasteOptions; + PasteMergeFromPPT: boolean; + PasteMergeFromXL: boolean; + PasteMergeLists: boolean; + PasteOptionKeepBulletsAndNumbers: boolean; + PasteSmartCutPaste: boolean; + PasteSmartStyleBehavior: boolean; + PictureEditor: string; + PictureWrapType: WdWrapTypeMerged; + PortugalReform: WdPortugueseReform; + PrecisePositioning: boolean; + PrintBackground: boolean; + PrintBackgrounds: boolean; + PrintComments: boolean; + PrintDraft: boolean; + PrintDrawingObjects: boolean; + PrintEvenPagesInAscendingOrder: boolean; + PrintFieldCodes: boolean; + PrintHiddenText: boolean; + PrintOddPagesInAscendingOrder: boolean; + PrintProperties: boolean; + PrintReverse: boolean; + PrintXMLTag: boolean; + PromptUpdateStyle: boolean; + RepeatWord: boolean; + ReplaceSelection: boolean; + RevisedLinesColor: WdColorIndex; + RevisedLinesMark: WdRevisedLinesMark; + RevisedPropertiesColor: WdColorIndex; + RevisedPropertiesMark: WdRevisedPropertiesMark; + RevisionsBalloonPrintOrientation: WdRevisionsBalloonPrintOrientation; + RTFInClipboard: boolean; + SaveInterval: number; + SaveNormalPrompt: boolean; + SavePropertiesPrompt: boolean; + SendMailAttach: boolean; + SequenceCheck: boolean; + SetWPHelpOptions(CommandKeyHelp?: any, DocNavigationKeys?: any, MouseSimulation?: any, DemoGuidance?: any, DemoSpeed?: any, HelpType?: any): void; + ShortMenuNames: boolean; + ShowControlCharacters: boolean; + ShowDevTools: boolean; + ShowDiacritics: boolean; + ShowFormatError: boolean; + ShowMarkupOpenSave: boolean; + ShowMenuFloaties: boolean; + ShowReadabilityStatistics: boolean; + ShowSelectionFloaties: boolean; + SmartCursoring: boolean; + SmartCutPaste: boolean; + SmartParaSelection: boolean; + SnapToGrid: boolean; + SnapToShapes: boolean; + SpanishMode: WdSpanishSpeller; + SplitCellColor: WdCellColor; + StoreRSIDOnSave: boolean; + StrictFinalYaa: boolean; + StrictInitialAlefHamza: boolean; + StrictRussianE: boolean; + StrictTaaMarboota: boolean; + SuggestFromMainDictionaryOnly: boolean; + SuggestSpellingCorrections: boolean; + TabIndentKey: boolean; + TypeNReplace: boolean; + UpdateFieldsAtPrint: boolean; + UpdateFieldsWithTrackedChangesAtPrint: boolean; + UpdateLinksAtOpen: boolean; + UpdateLinksAtPrint: boolean; + UpdateStyleListBehavior: WdUpdateStyleListBehavior; + UseCharacterUnit: boolean; + UseDiffDiacColor: boolean; + UseGermanSpellingReform: boolean; + UseNormalStyleForList: boolean; + VirusProtection: boolean; + VisualSelection: WdVisualSelection; + WarnBeforeSavingPrintingSendingMarkup: boolean; + WPDocNavKeys: boolean; + WPHelp: boolean; + } + + class OtherCorrectionsException { + private 'Word.OtherCorrectionsException_typekey': OtherCorrectionsException; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Index: number; + readonly Name: string; + readonly Parent: any; + } + + class OtherCorrectionsExceptions { + private 'Word.OtherCorrectionsExceptions_typekey': OtherCorrectionsExceptions; + private constructor(); + Add(Name: string): OtherCorrectionsException; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): OtherCorrectionsException; + readonly Parent: any; + } + + class Page { + private 'Word.Page_typekey': Page; + private constructor(); + readonly Application: Application; + readonly Breaks: Breaks; + readonly Creator: number; + readonly EnhMetaFileBits: any; + readonly Height: number; + readonly Left: number; + readonly Parent: any; + readonly Rectangles: Rectangles; + readonly Top: number; + readonly Width: number; + } + + class PageNumber { + private 'Word.PageNumber_typekey': PageNumber; + private constructor(); + Alignment: WdPageNumberAlignment; + readonly Application: Application; + Copy(): void; + readonly Creator: number; + Cut(): void; + Delete(): void; + readonly Index: number; + readonly Parent: any; + Select(): void; + } + + class PageNumbers { + private 'Word.PageNumbers_typekey': PageNumbers; + private constructor(); + Add(PageNumberAlignment?: any, FirstPage?: any): PageNumber; + readonly Application: Application; + ChapterPageSeparator: WdSeparatorType; + readonly Count: number; + readonly Creator: number; + DoubleQuote: boolean; + HeadingLevelForChapter: number; + IncludeChapterNumber: boolean; + Item(Index: number): PageNumber; + NumberStyle: WdPageNumberStyle; + readonly Parent: any; + RestartNumberingAtSection: boolean; + ShowFirstPageNumber: boolean; + StartingNumber: number; + } + + class Pages { + private 'Word.Pages_typekey': Pages; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Page; + readonly Parent: any; + } + + class PageSetup { + private 'Word.PageSetup_typekey': PageSetup; + private constructor(); + readonly Application: Application; + BookFoldPrinting: boolean; + BookFoldPrintingSheets: number; + BookFoldRevPrinting: boolean; + BottomMargin: number; + CharsLine: number; + readonly Creator: number; + DifferentFirstPageHeaderFooter: number; + FirstPageTray: WdPaperTray; + FooterDistance: number; + Gutter: number; + GutterOnTop: boolean; + GutterPos: WdGutterStyle; + GutterStyle: WdGutterStyleOld; + HeaderDistance: number; + LayoutMode: WdLayoutMode; + LeftMargin: number; + LineNumbering: LineNumbering; + LinesPage: number; + MirrorMargins: number; + OddAndEvenPagesHeaderFooter: number; + Orientation: WdOrientation; + OtherPagesTray: WdPaperTray; + PageHeight: number; + PageWidth: number; + PaperSize: WdPaperSize; + readonly Parent: any; + RightMargin: number; + SectionDirection: WdSectionDirection; + SectionStart: WdSectionStart; + SetAsTemplateDefault(): void; + ShowGrid: boolean; + SuppressEndnotes: number; + TextColumns: TextColumns; + TogglePortrait(): void; + TopMargin: number; + TwoPagesOnOne: boolean; + VerticalAlignment: WdVerticalAlignment; + } + + class Pane { + private 'Word.Pane_typekey': Pane; + private constructor(); + Activate(): void; + readonly Application: Application; + AutoScroll(Velocity: number): void; + BrowseToWindow: boolean; + readonly BrowseWidth: number; + Close(): void; + readonly Creator: number; + DisplayRulers: boolean; + DisplayVerticalRuler: boolean; + readonly Document: Document; + readonly Frameset: Frameset; + HorizontalPercentScrolled: number; + readonly Index: number; + LargeScroll(Down?: any, Up?: any, ToRight?: any, ToLeft?: any): void; + MinimumFontSize: number; + NewFrameset(): void; + readonly Next: Pane; + readonly Pages: Pages; + PageScroll(Down?: any, Up?: any): void; + readonly Parent: any; + readonly Previous: Pane; + readonly Selection: Selection; + SmallScroll(Down?: any, Up?: any, ToRight?: any, ToLeft?: any): void; + TOCInFrameset(): void; + VerticalPercentScrolled: number; + readonly View: View; + readonly Zooms: Zooms; + } + + class Panes { + private 'Word.Panes_typekey': Panes; + private constructor(); + Add(SplitVertical?: any): Pane; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Pane; + readonly Parent: any; + } + + class Paragraph { + private 'Word.Paragraph_typekey': Paragraph; + private constructor(); + AddSpaceBetweenFarEastAndAlpha: number; + AddSpaceBetweenFarEastAndDigit: number; + Alignment: WdParagraphAlignment; + readonly Application: Application; + AutoAdjustRightIndent: number; + BaseLineAlignment: WdBaselineAlignment; + Borders: Borders; + CharacterUnitFirstLineIndent: number; + CharacterUnitLeftIndent: number; + CharacterUnitRightIndent: number; + CloseUp(): void; + readonly Creator: number; + DisableLineHeightGrid: number; + readonly DropCap: DropCap; + FarEastLineBreakControl: number; + FirstLineIndent: number; + Format: ParagraphFormat; + HalfWidthPunctuationOnTopOfLine: number; + HangingPunctuation: number; + Hyphenation: number; + ID: string; + Indent(): void; + IndentCharWidth(Count: number): void; + IndentFirstLineCharWidth(Count: number): void; + readonly IsStyleSeparator: boolean; + JoinList(): void; + KeepTogether: number; + KeepWithNext: number; + LeftIndent: number; + LineSpacing: number; + LineSpacingRule: WdLineSpacing; + LineUnitAfter: number; + LineUnitBefore: number; + + /** + * @param number [Level1=0] + * @param number [Level2=0] + * @param number [Level3=0] + * @param number [Level4=0] + * @param number [Level5=0] + * @param number [Level6=0] + * @param number [Level7=0] + * @param number [Level8=0] + * @param number [Level9=0] + */ + ListAdvanceTo(Level1?: number, Level2?: number, Level3?: number, Level4?: number, Level5?: number, Level6?: number, Level7?: number, Level8?: number, Level9?: number): void; + ListNumberOriginal(Level: number): number; + MirrorIndents: number; + Next(Count?: any): Paragraph; + NoLineNumber: number; + OpenOrCloseUp(): void; + OpenUp(): void; + Outdent(): void; + OutlineDemote(): void; + OutlineDemoteToBody(): void; + OutlineLevel: WdOutlineLevel; + OutlinePromote(): void; + PageBreakBefore: number; + readonly ParaID: number; + readonly Parent: any; + Previous(Count?: any): Paragraph; + readonly Range: Range; + ReadingOrder: WdReadingOrder; + Reset(): void; + ResetAdvanceTo(): void; + RightIndent: number; + SelectNumber(): void; + SeparateList(): void; + readonly Shading: Shading; + Space1(): void; + Space15(): void; + Space2(): void; + SpaceAfter: number; + SpaceAfterAuto: number; + SpaceBefore: number; + SpaceBeforeAuto: number; + Style: any; + TabHangingIndent(Count: number): void; + TabIndent(Count: number): void; + TabStops: TabStops; + TextboxTightWrap: WdTextboxTightWrap; + readonly TextID: number; + WidowControl: number; + WordWrap: number; + } + + class ParagraphFormat { + private 'Word.ParagraphFormat_typekey': ParagraphFormat; + private constructor(); + AddSpaceBetweenFarEastAndAlpha: number; + AddSpaceBetweenFarEastAndDigit: number; + Alignment: WdParagraphAlignment; + readonly Application: Application; + AutoAdjustRightIndent: number; + BaseLineAlignment: WdBaselineAlignment; + Borders: Borders; + CharacterUnitFirstLineIndent: number; + CharacterUnitLeftIndent: number; + CharacterUnitRightIndent: number; + CloseUp(): void; + readonly Creator: number; + DisableLineHeightGrid: number; + readonly Duplicate: ParagraphFormat; + FarEastLineBreakControl: number; + FirstLineIndent: number; + HalfWidthPunctuationOnTopOfLine: number; + HangingPunctuation: number; + Hyphenation: number; + IndentCharWidth(Count: number): void; + IndentFirstLineCharWidth(Count: number): void; + KeepTogether: number; + KeepWithNext: number; + LeftIndent: number; + LineSpacing: number; + LineSpacingRule: WdLineSpacing; + LineUnitAfter: number; + LineUnitBefore: number; + MirrorIndents: number; + NoLineNumber: number; + OpenOrCloseUp(): void; + OpenUp(): void; + OutlineLevel: WdOutlineLevel; + PageBreakBefore: number; + readonly Parent: any; + ReadingOrder: WdReadingOrder; + Reset(): void; + RightIndent: number; + readonly Shading: Shading; + Space1(): void; + Space15(): void; + Space2(): void; + SpaceAfter: number; + SpaceAfterAuto: number; + SpaceBefore: number; + SpaceBeforeAuto: number; + Style: any; + TabHangingIndent(Count: number): void; + TabIndent(Count: number): void; + TabStops: TabStops; + TextboxTightWrap: WdTextboxTightWrap; + WidowControl: number; + WordWrap: number; + } + + class Paragraphs { + private 'Word.Paragraphs_typekey': Paragraphs; + private constructor(); + Add(Range?: any): Paragraph; + AddSpaceBetweenFarEastAndAlpha: number; + AddSpaceBetweenFarEastAndDigit: number; + Alignment: WdParagraphAlignment; + readonly Application: Application; + AutoAdjustRightIndent: number; + BaseLineAlignment: WdBaselineAlignment; + Borders: Borders; + CharacterUnitFirstLineIndent: number; + CharacterUnitLeftIndent: number; + CharacterUnitRightIndent: number; + CloseUp(): void; + readonly Count: number; + readonly Creator: number; + DecreaseSpacing(): void; + DisableLineHeightGrid: number; + FarEastLineBreakControl: number; + readonly First: Paragraph; + FirstLineIndent: number; + Format: ParagraphFormat; + HalfWidthPunctuationOnTopOfLine: number; + HangingPunctuation: number; + Hyphenation: number; + IncreaseSpacing(): void; + Indent(): void; + IndentCharWidth(Count: number): void; + IndentFirstLineCharWidth(Count: number): void; + Item(Index: number): Paragraph; + KeepTogether: number; + KeepWithNext: number; + readonly Last: Paragraph; + LeftIndent: number; + LineSpacing: number; + LineSpacingRule: WdLineSpacing; + LineUnitAfter: number; + LineUnitBefore: number; + NoLineNumber: number; + OpenOrCloseUp(): void; + OpenUp(): void; + Outdent(): void; + OutlineDemote(): void; + OutlineDemoteToBody(): void; + OutlineLevel: WdOutlineLevel; + OutlinePromote(): void; + PageBreakBefore: number; + readonly Parent: any; + ReadingOrder: WdReadingOrder; + Reset(): void; + RightIndent: number; + readonly Shading: Shading; + Space1(): void; + Space15(): void; + Space2(): void; + SpaceAfter: number; + SpaceAfterAuto: number; + SpaceBefore: number; + SpaceBeforeAuto: number; + Style: any; + TabHangingIndent(Count: number): void; + TabIndent(Count: number): void; + TabStops: TabStops; + WidowControl: number; + WordWrap: number; + } + + class PictureFormat { + private 'Word.PictureFormat_typekey': PictureFormat; + private constructor(); + readonly Application: Application; + Brightness: number; + ColorType: Office.MsoPictureColorType; + Contrast: number; + readonly Creator: number; + Crop: Office.Crop; + CropBottom: number; + CropLeft: number; + CropRight: number; + CropTop: number; + IncrementBrightness(Increment: number): void; + IncrementContrast(Increment: number): void; + readonly Parent: any; + TransparencyColor: number; + TransparentBackground: Office.MsoTriState; + } + + class PlotArea { + private 'Word.PlotArea_typekey': PlotArea; + private constructor(); + readonly Application: any; + readonly Border: ChartBorder; + ClearFormats(): any; + readonly Creator: number; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + Height: number; + InsideHeight: number; + InsideLeft: number; + InsideTop: number; + InsideWidth: number; + readonly Interior: Interior; + Left: number; + readonly Name: string; + readonly Parent: any; + Position: XlChartElementPosition; + Select(): any; + Top: number; + Width: number; + } + + class ProofreadingErrors { + private 'Word.ProofreadingErrors_typekey': ProofreadingErrors; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Range; + readonly Parent: any; + readonly Type: WdProofreadingErrorType; + } + + class ProtectedViewWindow { + private 'Word.ProtectedViewWindow_typekey': ProtectedViewWindow; + private constructor(); + Activate(): void; + readonly Active: boolean; + readonly Application: Application; + Caption: string; + Close(): void; + readonly Creator: number; + readonly Document: Document; + Edit(PasswordTemplate?: any, WritePasswordDocument?: any, WritePasswordTemplate?: any): Document; + Height: number; + readonly Index: number; + Left: number; + readonly Parent: any; + readonly SourceName: string; + readonly SourcePath: string; + ToggleRibbon(): void; + Top: number; + Visible: boolean; + Width: number; + WindowState: WdWindowState; + } + + class ProtectedViewWindows { + private 'Word.ProtectedViewWindows_typekey': ProtectedViewWindows; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): ProtectedViewWindow; + Open(FileName: any, AddToRecentFiles?: any, PasswordDocument?: any, Visible?: any, OpenAndRepair?: any): ProtectedViewWindow; + readonly Parent: any; + } + + class Range { + private 'Word.Range_typekey': Range; + private constructor(); + readonly Application: Application; + AutoFormat(): void; + Bold: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + BoldBi: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + readonly BookmarkID: number; + readonly Bookmarks: Bookmarks; + Borders: Borders; + Calculate(): number; + readonly CanEdit: number; + readonly CanPaste: number; + Case: WdCharacterCase; + readonly Cells: Cells; + readonly Characters: Characters; + readonly CharacterStyle: any; + CharacterWidth: WdCharacterWidth; + CheckGrammar(): void; + CheckSpelling( + CustomDictionary?: any, IgnoreUppercase?: any, AlwaysSuggest?: any, CustomDictionary2?: any, CustomDictionary3?: any, CustomDictionary4?: any, + CustomDictionary5?: any, CustomDictionary6?: any, CustomDictionary7?: any, CustomDictionary8?: any, CustomDictionary9?: any, CustomDictionary10?: any): void; + CheckSynonyms(): void; + + /** @param WdCollapseDirection [Direction=wdCollapseStart] */ + Collapse(Direction?: WdCollapseDirection): void; + readonly Columns: Columns; + CombineCharacters: boolean; + readonly Comments: Comments; + ComputeStatistics(Statistic: WdStatistic): number; + readonly Conflicts: Conflicts; + readonly ContentControls: ContentControls; + ConvertHangulAndHanja(ConversionsMode?: any, FastConversion?: any, CheckHangulEnding?: any, EnableRecentOrdering?: any, CustomDictionary?: any): void; + ConvertToTable( + Separator?: any, NumRows?: any, NumColumns?: any, InitialColumnWidth?: any, Format?: any, ApplyBorders?: any, ApplyShading?: any, ApplyFont?: any, + ApplyColor?: any, ApplyHeadingRows?: any, ApplyLastRow?: any, ApplyFirstColumn?: any, ApplyLastColumn?: any, AutoFit?: any, AutoFitBehavior?: any, DefaultTableBehavior?: any): Table; + ConvertToTableOld( + Separator?: any, NumRows?: any, NumColumns?: any, InitialColumnWidth?: any, Format?: any, ApplyBorders?: any, ApplyShading?: any, ApplyFont?: any, + ApplyColor?: any, ApplyHeadingRows?: any, ApplyLastRow?: any, ApplyFirstColumn?: any, ApplyLastColumn?: any, AutoFit?: any): Table; + Copy(): void; + CopyAsPicture(): void; + CreatePublisher(Edition?: any, ContainsPICT?: any, ContainsRTF?: any, ContainsText?: any): void; + readonly Creator: number; + Cut(): void; + Delete(Unit?: WdUnits, Count?: number): number; + DetectLanguage(): void; + DisableCharacterSpaceGrid: boolean; + readonly Document: Document; + readonly Duplicate: Range; + readonly Editors: Editors; + EmphasisMark: WdEmphasisMark; + End: number; + readonly EndnoteOptions: EndnoteOptions; + readonly Endnotes: Endnotes; + EndOf(Unit?: any, Extend?: any): number; + readonly EnhMetaFileBits: any; + Expand(Unit?: any): number; + + /** + * @param boolean [OpenAfterExport=false] + * @param Word.WdExportOptimizeFor [OptimizeFor=0] + * @param boolean [ExportCurrentPage=false] + * @param Word.WdExportItem [Item=0] + * @param boolean [IncludeDocProps=false] + * @param boolean [KeepIRM=true] + * @param Word.WdExportCreateBookmarks [CreateBookmarks=0] + * @param boolean [DocStructureTags=true] + * @param boolean [BitmapMissingFonts=true] + * @param boolean [UseISO19005_1=false] + */ + ExportAsFixedFormat( + OutputFileName: string, ExportFormat: WdExportFormat, OpenAfterExport?: boolean, OptimizeFor?: WdExportOptimizeFor, ExportCurrentPage?: boolean, + Item?: WdExportItem, IncludeDocProps?: boolean, KeepIRM?: boolean, CreateBookmarks?: WdExportCreateBookmarks, DocStructureTags?: boolean, + BitmapMissingFonts?: boolean, UseISO19005_1?: boolean, FixedFormatExtClassPtr?: any): void; + ExportFragment(FileName: string, Format: WdSaveFormat): void; + readonly Fields: Fields; + readonly Find: Find; + FitTextWidth: number; + Font: Font; + readonly FootnoteOptions: FootnoteOptions; + readonly Footnotes: Footnotes; + FormattedText: Range; + readonly FormFields: FormFields; + readonly Frames: Frames; + GetSpellingSuggestions( + CustomDictionary?: any, IgnoreUppercase?: any, MainDictionary?: any, SuggestionMode?: any, CustomDictionary2?: any, CustomDictionary3?: any, + CustomDictionary4?: any, CustomDictionary5?: any, CustomDictionary6?: any, CustomDictionary7?: any, CustomDictionary8?: any, CustomDictionary9?: any, + CustomDictionary10?: any): SpellingSuggestions; + GoTo(What?: any, Which?: any, Count?: any, Name?: any): Range; + GoToEditableRange(EditorID?: any): Range; + GoToNext(What: WdGoToItem): Range; + GoToPrevious(What: WdGoToItem): Range; + GrammarChecked: boolean; + readonly GrammaticalErrors: ProofreadingErrors; + HighlightColorIndex: WdColorIndex; + HorizontalInVertical: WdHorizontalInVerticalType; + readonly HTMLDivisions: HTMLDivisions; + readonly Hyperlinks: Hyperlinks; + ID: string; + + /** @param boolean [MatchDestination=false] */ + ImportFragment(FileName: string, MatchDestination?: boolean): void; + Information(Type: WdInformation): any; + readonly InlineShapes: InlineShapes; + InRange(Range: Range): boolean; + InsertAfter(Text: string): void; + + /** @param number [RelativeTo=0] */ + InsertAlignmentTab(Alignment: number, RelativeTo?: number): void; + InsertAutoText(): void; + InsertBefore(Text: string): void; + InsertBreak(Type?: any): void; + InsertCaption(Label: any, Title?: any, TitleAutoText?: any, Position?: any, ExcludeLabel?: any): void; + InsertCaptionXP(Label: any, Title?: any, TitleAutoText?: any, Position?: any): void; + InsertCrossReference( + ReferenceType: any, ReferenceKind: WdReferenceKind, ReferenceItem: any, InsertAsHyperlink?: any, IncludePosition?: any, SeparateNumbers?: any, SeparatorString?: any): void; + InsertCrossReference_2002(ReferenceType: any, ReferenceKind: WdReferenceKind, ReferenceItem: any, InsertAsHyperlink?: any, IncludePosition?: any): void; + InsertDatabase( + Format?: any, Style?: any, LinkToSource?: any, Connection?: any, SQLStatement?: any, SQLStatement1?: any, PasswordDocument?: any, PasswordTemplate?: any, + WritePasswordDocument?: any, WritePasswordTemplate?: any, DataSource?: any, From?: any, To?: any, IncludeFields?: any): void; + InsertDateTime(DateTimeFormat?: any, InsertAsField?: any, InsertAsFullWidth?: any, DateLanguage?: any, CalendarType?: any): void; + InsertDateTimeOld(DateTimeFormat?: any, InsertAsField?: any, InsertAsFullWidth?: any): void; + InsertFile(FileName: string, Range?: any, ConfirmConversions?: any, Link?: any, Attachment?: any): void; + InsertParagraph(): void; + InsertParagraphAfter(): void; + InsertParagraphBefore(): void; + InsertSymbol(CharacterNumber: number, Font?: any, Unicode?: any, Bias?: any): void; + InsertXML(XML: string, Transform?: any): void; + InStory(Range: Range): boolean; + readonly IsEndOfRowMark: boolean; + IsEqual(Range: Range): boolean; + Italic: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + ItalicBi: boolean | WdConstants.wdUndefined | WdConstants.wdToggle; + Kana: WdKana; + LanguageDetected: boolean; + LanguageID: WdLanguageID; + LanguageIDFarEast: WdLanguageID; + LanguageIDOther: WdLanguageID; + readonly ListFormat: ListFormat; + readonly ListParagraphs: ListParagraphs; + readonly ListStyle: any; + readonly Locks: CoAuthLocks; + LookupNameProperties(): void; + ModifyEnclosure(Style: any, Symbol?: any, EnclosedText?: any): void; + Move(Unit?: WdUnits, Count?: number): number; + MoveEnd(Unit?: WdUnits, Count?: number): number; + MoveEndUntil(Cset: any, Count?: any): number; + MoveEndWhile(Cset: any, Count?: any): number; + MoveStart(Unit?: WdUnits, Count?: number): number; + MoveStartUntil(Cset: any, Count?: any): number; + MoveStartWhile(Cset: any, Count?: any): number; + MoveUntil(Cset: any, Count?: any): number; + MoveWhile(Cset: any, Count?: any): number; + Next(Unit?: any, Count?: any): Range; + readonly NextStoryRange: Range; + NextSubdocument(): void; + NoProofing: number; + readonly OMaths: OMaths; + Orientation: WdTextOrientation; + PageSetup: PageSetup; + ParagraphFormat: ParagraphFormat; + readonly Paragraphs: Paragraphs; + readonly ParagraphStyle: any; + readonly Parent: any; + readonly ParentContentControl: ContentControl; + Paste(): void; + PasteAndFormat(Type: WdRecoveryType): void; + PasteAppendTable(): void; + PasteAsNestedTable(): void; + PasteExcelTable(LinkedToExcel: boolean, WordFormatting: boolean, RTF: boolean): void; + PasteSpecial(IconIndex?: any, Link?: any, Placement?: any, DisplayAsIcon?: any, DataType?: any, IconFileName?: any, IconLabel?: any): void; + + /** + * @param Word.WdPhoneticGuideAlignmentType [Alignment=-1] + * @param number [Raise=0] + * @param number [FontSize=0] + * @param string [FontName=''] + */ + PhoneticGuide(Text: string, Alignment?: WdPhoneticGuideAlignmentType, Raise?: number, FontSize?: number, FontName?: string): void; + Previous(Unit?: any, Count?: any): Range; + readonly PreviousBookmarkID: number; + PreviousSubdocument(): void; + readonly ReadabilityStatistics: ReadabilityStatistics; + Relocate(Direction: number): void; + readonly Revisions: Revisions; + readonly Rows: Rows; + readonly Scripts: Office.Scripts; + readonly Sections: Sections; + Select(): void; + readonly Sentences: Sentences; + SetListLevel(Level: number): void; + SetRange(Start: number, End: number): void; + readonly Shading: Shading; + readonly ShapeRange: ShapeRange; + ShowAll: boolean; + readonly SmartTags: SmartTags; + Sort( + ExcludeHeader?: any, FieldNumber?: any, SortFieldType?: any, SortOrder?: any, FieldNumber2?: any, SortFieldType2?: any, SortOrder2?: any, FieldNumber3?: any, + SortFieldType3?: any, SortOrder3?: any, SortColumn?: any, Separator?: any, CaseSensitive?: any, BidiSort?: any, IgnoreThe?: any, IgnoreKashida?: any, + IgnoreDiacritics?: any, IgnoreHe?: any, LanguageID?: any): void; + SortAscending(): void; + SortDescending(): void; + SortOld( + ExcludeHeader?: any, FieldNumber?: any, SortFieldType?: any, SortOrder?: any, FieldNumber2?: any, SortFieldType2?: any, SortOrder2?: any, FieldNumber3?: any, + SortFieldType3?: any, SortOrder3?: any, SortColumn?: any, Separator?: any, CaseSensitive?: any, LanguageID?: any): void; + SpellingChecked: boolean; + readonly SpellingErrors: ProofreadingErrors; + Start: number; + StartOf(Unit?: any, Extend?: any): number; + readonly StoryLength: number; + readonly StoryType: WdStoryType; + Style: any; + readonly Subdocuments: Subdocuments; + SubscribeTo(Edition: string, Format?: any): void; + readonly SynonymInfo: SynonymInfo; + readonly Tables: Tables; + readonly TableStyle: any; + + /** + * @param Word.WdTCSCConverterDirection [WdTCSCConverterDirection=2] + * @param boolean [CommonTerms=false] + * @param boolean [UseVariants=false] + */ + TCSCConverter(WdTCSCConverterDirection?: WdTCSCConverterDirection, CommonTerms?: boolean, UseVariants?: boolean): void; + Text: string; + TextRetrievalMode: TextRetrievalMode; + readonly TopLevelTables: Tables; + TwoLinesInOne: WdTwoLinesInOneType; + Underline: WdUnderline; + readonly Updates: CoAuthUpdates; + WholeStory(): void; + readonly WordOpenXML: string; + readonly Words: Words; + + /** @param boolean [DataOnly=false] */ + XML(DataOnly?: boolean): string; + readonly XMLNodes: XMLNodes; + readonly XMLParentNode: XMLNode; + } + + class ReadabilityStatistic { + private 'Word.ReadabilityStatistic_typekey': ReadabilityStatistic; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Name: string; + readonly Parent: any; + readonly Value: number; + } + + class ReadabilityStatistics { + private 'Word.ReadabilityStatistics_typekey': ReadabilityStatistics; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): ReadabilityStatistic; + readonly Parent: any; + } + + class RecentFile { + private 'Word.RecentFile_typekey': RecentFile; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Index: number; + readonly Name: string; + Open(): Document; + readonly Parent: any; + readonly Path: string; + ReadOnly: boolean; + } + + class RecentFiles { + private 'Word.RecentFiles_typekey': RecentFiles; + private constructor(); + Add(Document: any, ReadOnly?: any): RecentFile; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): RecentFile; + Maximum: number; + readonly Parent: any; + } + + class Rectangle { + private 'Word.Rectangle_typekey': Rectangle; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Height: number; + readonly Left: number; + readonly Lines: Lines; + readonly Parent: any; + readonly Range: Range; + readonly RectangleType: WdRectangleType; + readonly Top: number; + readonly Width: number; + } + + class Rectangles { + private 'Word.Rectangles_typekey': Rectangles; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Rectangle; + readonly Parent: any; + } + + class ReflectionFormat { + private 'Word.ReflectionFormat_typekey': ReflectionFormat; + private constructor(); + readonly Application: Application; + Blur: number; + readonly Creator: number; + Offset: number; + readonly Parent: any; + Size: number; + Transparency: number; + Type: Office.MsoReflectionType; + } + + class Replacement { + private 'Word.Replacement_typekey': Replacement; + private constructor(); + readonly Application: Application; + ClearFormatting(): void; + readonly Creator: number; + Font: Font; + readonly Frame: Frame; + Highlight: number; + LanguageID: WdLanguageID; + LanguageIDFarEast: WdLanguageID; + NoProofing: number; + ParagraphFormat: ParagraphFormat; + readonly Parent: any; + Style: any; + Text: string; + } + + class Research { + private 'Word.Research_typekey': Research; + private constructor(); + readonly Application: Application; + readonly Creator: number; + FavoriteService: string; + IsResearchService(ServiceID: string): boolean; + readonly Parent: any; + + /** + * @param string [QueryString=''] + * @param Word.WdLanguageID [QueryLanguage=0] + * @param boolean [UseSelection=false] + * @param boolean [LaunchQuery=true] + */ + Query(ServiceID: string, QueryString?: string, QueryLanguage?: WdLanguageID, UseSelection?: boolean, LaunchQuery?: boolean): any; + SetLanguagePair(LanguageFrom: WdLanguageID, LanguageTo: WdLanguageID): any; + } + + class Reviewer { + private 'Word.Reviewer_typekey': Reviewer; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Parent: any; + Visible: boolean; + } + + class Reviewers { + private 'Word.Reviewers_typekey': Reviewers; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Reviewer; + readonly Parent: any; + } + + class Revision { + private 'Word.Revision_typekey': Revision; + private constructor(); + Accept(): void; + readonly Application: Application; + readonly Author: string; + readonly Cells: Cells; + readonly Creator: number; + readonly Date: VarDate; + readonly FormatDescription: string; + readonly Index: number; + readonly MovedRange: Range; + readonly Parent: any; + readonly Range: Range; + Reject(): void; + readonly Style: Style; + readonly Type: WdRevisionType; + } + + class Revisions { + private 'Word.Revisions_typekey': Revisions; + private constructor(); + AcceptAll(): void; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Revision; + readonly Parent: any; + RejectAll(): void; + } + + class RoutingSlip { + private 'Word.RoutingSlip_typekey': RoutingSlip; + private constructor(); + AddRecipient(Recipient: string): void; + readonly Application: Application; + readonly Creator: number; + Delivery: WdRoutingSlipDelivery; + Message: string; + readonly Parent: any; + Protect: WdProtectionType; + Recipients(Index?: any): any; + Reset(): void; + ReturnWhenDone: boolean; + readonly Status: WdRoutingSlipStatus; + Subject: string; + TrackStatus: boolean; + } + + class Row { + private 'Word.Row_typekey': Row; + private constructor(); + Alignment: WdRowAlignment; + AllowBreakAcrossPages: number; + readonly Application: Application; + Borders: Borders; + readonly Cells: Cells; + ConvertToText(Separator?: any, NestedTables?: any): Range; + ConvertToTextOld(Separator?: any): Range; + readonly Creator: number; + Delete(): void; + HeadingFormat: number; + Height: number; + HeightRule: WdRowHeightRule; + ID: string; + readonly Index: number; + readonly IsFirst: boolean; + readonly IsLast: boolean; + LeftIndent: number; + readonly NestingLevel: number; + readonly Next: Row; + readonly Parent: any; + readonly Previous: Row; + readonly Range: Range; + Select(): void; + SetHeight(RowHeight: number, HeightRule: WdRowHeightRule): void; + SetLeftIndent(LeftIndent: number, RulerStyle: WdRulerStyle): void; + readonly Shading: Shading; + SpaceBetweenColumns: number; + } + + class Rows { + private 'Word.Rows_typekey': Rows; + private constructor(); + Add(BeforeRow?: any): Row; + Alignment: WdRowAlignment; + AllowBreakAcrossPages: number; + AllowOverlap: number; + readonly Application: Application; + Borders: Borders; + ConvertToText(Separator?: any, NestedTables?: any): Range; + ConvertToTextOld(Separator?: any): Range; + readonly Count: number; + readonly Creator: number; + Delete(): void; + DistanceBottom: number; + DistanceLeft: number; + DistanceRight: number; + DistanceTop: number; + DistributeHeight(): void; + readonly First: Row; + HeadingFormat: number; + Height: number; + HeightRule: WdRowHeightRule; + HorizontalPosition: number; + Item(Index: number): Row; + readonly Last: Row; + LeftIndent: number; + readonly NestingLevel: number; + readonly Parent: any; + RelativeHorizontalPosition: WdRelativeHorizontalPosition; + RelativeVerticalPosition: WdRelativeVerticalPosition; + Select(): void; + SetHeight(RowHeight: number, HeightRule: WdRowHeightRule): void; + SetLeftIndent(LeftIndent: number, RulerStyle: WdRulerStyle): void; + readonly Shading: Shading; + SpaceBetweenColumns: number; + TableDirection: WdTableDirection; + VerticalPosition: number; + WrapAroundText: number; + } + + class Section { + private 'Word.Section_typekey': Section; + private constructor(); + readonly Application: Application; + Borders: Borders; + readonly Creator: number; + readonly Footers: HeadersFooters; + readonly Headers: HeadersFooters; + readonly Index: number; + PageSetup: PageSetup; + readonly Parent: any; + ProtectedForForms: boolean; + readonly Range: Range; + } + + class Sections { + private 'Word.Sections_typekey': Sections; + private constructor(); + Add(Range?: any, Start?: any): Section; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + readonly First: Section; + Item(Index: number): Section; + readonly Last: Section; + PageSetup: PageSetup; + readonly Parent: any; + } + + class Selection { + private 'Word.Selection_typekey': Selection; + private constructor(); + readonly Active: boolean; + readonly Application: Application; + BoldRun(): void; + readonly BookmarkID: number; + readonly Bookmarks: Bookmarks; + Borders: Borders; + Calculate(): number; + readonly Cells: Cells; + readonly Characters: Characters; + readonly ChildShapeRange: ShapeRange; + ClearCharacterAllFormatting(): void; + ClearCharacterDirectFormatting(): void; + ClearCharacterStyle(): void; + ClearFormatting(): void; + ClearParagraphAllFormatting(): void; + ClearParagraphDirectFormatting(): void; + ClearParagraphStyle(): void; + + /** @param WdCollapseDirection [Direction=wdCollapseStart] */ + Collapse(Direction?: WdCollapseDirection): void; + readonly Columns: Columns; + ColumnSelectMode: boolean; + readonly Comments: Comments; + readonly ContentControls: ContentControls; + ConvertToTable( + Separator?: any, NumRows?: any, NumColumns?: any, InitialColumnWidth?: any, Format?: any, ApplyBorders?: any, ApplyShading?: any, ApplyFont?: any, + ApplyColor?: any, ApplyHeadingRows?: any, ApplyLastRow?: any, ApplyFirstColumn?: any, ApplyLastColumn?: any, AutoFit?: any, AutoFitBehavior?: any, DefaultTableBehavior?: any): Table; + ConvertToTableOld( + Separator?: any, NumRows?: any, NumColumns?: any, InitialColumnWidth?: any, Format?: any, ApplyBorders?: any, ApplyShading?: any, ApplyFont?: any, + ApplyColor?: any, ApplyHeadingRows?: any, ApplyLastRow?: any, ApplyFirstColumn?: any, ApplyLastColumn?: any, AutoFit?: any): Table; + Copy(): void; + CopyAsPicture(): void; + CopyFormat(): void; + CreateAutoTextEntry(Name: string, StyleName: string): AutoTextEntry; + CreateTextbox(): void; + readonly Creator: number; + Cut(): void; + Delete(Unit?: WdUnits, Count?: number): number; + DetectLanguage(): void; + readonly Document: Document; + readonly Editors: Editors; + End: number; + EndKey(Unit?: any, Extend?: any): number; + readonly EndnoteOptions: EndnoteOptions; + readonly Endnotes: Endnotes; + EndOf(Unit?: any, Extend?: any): number; + readonly EnhMetaFileBits: any; + EscapeKey(): void; + Expand(Unit?: any): number; + + /** + * @param boolean [OpenAfterExport=false] + * @param Word.WdExportOptimizeFor [OptimizeFor=0] + * @param boolean [ExportCurrentPage=false] + * @param Word.WdExportItem [Item=0] + * @param boolean [IncludeDocProps=false] + * @param boolean [KeepIRM=true] + * @param Word.WdExportCreateBookmarks [CreateBookmarks=0] + * @param boolean [DocStructureTags=true] + * @param boolean [BitmapMissingFonts=true] + * @param boolean [UseISO19005_1=false] + */ + ExportAsFixedFormat( + OutputFileName: string, ExportFormat: WdExportFormat, OpenAfterExport?: boolean, OptimizeFor?: WdExportOptimizeFor, ExportCurrentPage?: boolean, + Item?: WdExportItem, IncludeDocProps?: boolean, KeepIRM?: boolean, CreateBookmarks?: WdExportCreateBookmarks, DocStructureTags?: boolean, + BitmapMissingFonts?: boolean, UseISO19005_1?: boolean, FixedFormatExtClassPtr?: any): void; + Extend(Character?: any): void; + ExtendMode: boolean; + readonly Fields: Fields; + readonly Find: Find; + FitTextWidth: number; + Flags: WdSelectionFlags; + Font: Font; + readonly FootnoteOptions: FootnoteOptions; + readonly Footnotes: Footnotes; + FormattedText: Range; + readonly FormFields: FormFields; + readonly Frames: Frames; + GoTo(What?: any, Which?: any, Count?: any, Name?: any): Range; + GoToEditableRange(EditorID?: any): Range; + GoToNext(What: WdGoToItem): Range; + GoToPrevious(What: WdGoToItem): Range; + readonly HasChildShapeRange: boolean; + readonly HeaderFooter: HeaderFooter; + HomeKey(Unit?: any, Extend?: any): number; + readonly HTMLDivisions: HTMLDivisions; + readonly Hyperlinks: Hyperlinks; + Information(Type: WdInformation): any; + readonly InlineShapes: InlineShapes; + InRange(Range: Range): boolean; + InsertAfter(Text: string): void; + InsertBefore(Text: string): void; + InsertBreak(Type?: any): void; + InsertCaption(Label: any, Title?: any, TitleAutoText?: any, Position?: any, ExcludeLabel?: any): void; + InsertCaptionXP(Label: any, Title?: any, TitleAutoText?: any, Position?: any): void; + InsertCells(ShiftCells?: any): void; + InsertColumns(): void; + InsertColumnsRight(): void; + InsertCrossReference( + ReferenceType: any, ReferenceKind: WdReferenceKind, ReferenceItem: any, InsertAsHyperlink?: any, IncludePosition?: any, SeparateNumbers?: any, SeparatorString?: any): void; + InsertCrossReference_2002(ReferenceType: any, ReferenceKind: WdReferenceKind, ReferenceItem: any, InsertAsHyperlink?: any, IncludePosition?: any): void; + InsertDateTime(DateTimeFormat?: any, InsertAsField?: any, InsertAsFullWidth?: any, DateLanguage?: any, CalendarType?: any): void; + InsertDateTimeOld(DateTimeFormat?: any, InsertAsField?: any, InsertAsFullWidth?: any): void; + InsertFile(FileName: string, Range?: any, ConfirmConversions?: any, Link?: any, Attachment?: any): void; + InsertFormula(Formula?: any, NumberFormat?: any): void; + InsertNewPage(): void; + InsertParagraph(): void; + InsertParagraphAfter(): void; + InsertParagraphBefore(): void; + InsertRows(NumRows?: any): void; + InsertRowsAbove(NumRows?: any): void; + InsertRowsBelow(NumRows?: any): void; + InsertStyleSeparator(): void; + InsertSymbol(CharacterNumber: number, Font?: any, Unicode?: any, Bias?: any): void; + InsertXML(XML: string, Transform?: any): void; + InStory(Range: Range): boolean; + readonly IPAtEndOfLine: boolean; + readonly IsEndOfRowMark: boolean; + IsEqual(Range: Range): boolean; + ItalicRun(): void; + LanguageDetected: boolean; + LanguageID: WdLanguageID; + LanguageIDFarEast: WdLanguageID; + LanguageIDOther: WdLanguageID; + LtrPara(): void; + LtrRun(): void; + Move(Unit?: WdUnits, Count?: number): number; + MoveDown(Unit?: WdUnits, Count?: number): number; + MoveEnd(Unit?: WdUnits, Count?: number): number; + MoveEndUntil(Cset: any, Count?: any): number; + MoveEndWhile(Cset: any, Count?: any): number; + MoveLeft(Unit?: WdUnits, Count?: number): number; + MoveRight(Unit?: WdUnits, Count?: number): number; + MoveStart(Unit?: WdUnits, Count?: number): number; + MoveStartUntil(Cset: any, Count?: any): number; + MoveStartWhile(Cset: any, Count?: any): number; + MoveUntil(Cset: any, Count?: any): number; + MoveUp(Unit?: WdUnits, Count?: number): number; + MoveWhile(Cset: any, Count?: any): number; + Next(Unit?: WdUnits, Count?: number): Range; + NextField(): Field; + NextRevision(Wrap?: any): Revision; + NextSubdocument(): void; + NoProofing: number; + readonly OMaths: OMaths; + Orientation: WdTextOrientation; + PageSetup: PageSetup; + ParagraphFormat: ParagraphFormat; + readonly Paragraphs: Paragraphs; + readonly Parent: any; + readonly ParentContentControl: ContentControl; + Paste(): void; + PasteAndFormat(Type: WdRecoveryType): void; + PasteAppendTable(): void; + PasteAsNestedTable(): void; + PasteExcelTable(LinkedToExcel: boolean, WordFormatting: boolean, RTF: boolean): void; + PasteFormat(): void; + PasteSpecial(IconIndex?: any, Link?: any, Placement?: any, DisplayAsIcon?: any, DataType?: any, IconFileName?: any, IconLabel?: any): void; + Previous(Unit?: any, Count?: any): Range; + readonly PreviousBookmarkID: number; + PreviousField(): Field; + PreviousRevision(Wrap?: any): Revision; + PreviousSubdocument(): void; + readonly Range: Range; + ReadingModeGrowFont(): void; + ReadingModeShrinkFont(): void; + readonly Rows: Rows; + RtlPara(): void; + RtlRun(): void; + readonly Sections: Sections; + Select(): void; + SelectCell(): void; + SelectColumn(): void; + SelectCurrentAlignment(): void; + SelectCurrentColor(): void; + SelectCurrentFont(): void; + SelectCurrentIndent(): void; + SelectCurrentSpacing(): void; + SelectCurrentTabs(): void; + SelectRow(): void; + readonly Sentences: Sentences; + SetRange(Start: number, End: number): void; + readonly Shading: Shading; + readonly ShapeRange: ShapeRange; + Shrink(): void; + ShrinkDiscontiguousSelection(): void; + readonly SmartTags: SmartTags; + Sort( + ExcludeHeader?: any, FieldNumber?: any, SortFieldType?: any, SortOrder?: any, FieldNumber2?: any, SortFieldType2?: any, SortOrder2?: any, FieldNumber3?: any, + SortFieldType3?: any, SortOrder3?: any, SortColumn?: any, Separator?: any, CaseSensitive?: any, BidiSort?: any, IgnoreThe?: any, IgnoreKashida?: any, + IgnoreDiacritics?: any, IgnoreHe?: any, LanguageID?: any, SubFieldNumber?: any, SubFieldNumber2?: any, SubFieldNumber3?: any): void; + Sort2000( + ExcludeHeader?: any, FieldNumber?: any, SortFieldType?: any, SortOrder?: any, FieldNumber2?: any, SortFieldType2?: any, SortOrder2?: any, FieldNumber3?: any, + SortFieldType3?: any, SortOrder3?: any, SortColumn?: any, Separator?: any, CaseSensitive?: any, BidiSort?: any, IgnoreThe?: any, IgnoreKashida?: any, + IgnoreDiacritics?: any, IgnoreHe?: any, LanguageID?: any): void; + SortAscending(): void; + SortDescending(): void; + SortOld( + ExcludeHeader?: any, FieldNumber?: any, SortFieldType?: any, SortOrder?: any, FieldNumber2?: any, SortFieldType2?: any, SortOrder2?: any, FieldNumber3?: any, + SortFieldType3?: any, SortOrder3?: any, SortColumn?: any, Separator?: any, CaseSensitive?: any, LanguageID?: any): void; + SplitTable(): void; + Start: number; + StartIsActive: boolean; + StartOf(Unit?: any, Extend?: any): number; + readonly StoryLength: number; + readonly StoryType: WdStoryType; + Style: any; + readonly Tables: Tables; + Text: string; + ToggleCharacterCode(): void; + readonly TopLevelTables: Tables; + readonly Type: WdSelectionType; + TypeBackspace(): void; + TypeParagraph(): void; + TypeText(Text: string): void; + WholeStory(): void; + readonly WordOpenXML: string; + readonly Words: Words; + + /** @param boolean [DataOnly=false] */ + XML(DataOnly?: boolean): string; + readonly XMLNodes: XMLNodes; + readonly XMLParentNode: XMLNode; + } + + class Sentences { + private 'Word.Sentences_typekey': Sentences; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + readonly First: Range; + Item(Index: number): Range; + readonly Last: Range; + readonly Parent: any; + } + + class SeriesLines { + private 'Word.SeriesLines_typekey': SeriesLines; + private constructor(); + readonly Application: any; + readonly Border: ChartBorder; + readonly Creator: number; + Delete(): any; + readonly Format: ChartFormat; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class Shading { + private 'Word.Shading_typekey': Shading; + private constructor(); + readonly Application: Application; + BackgroundPatternColor: WdColor; + BackgroundPatternColorIndex: WdColorIndex; + readonly Creator: number; + ForegroundPatternColor: WdColor; + ForegroundPatternColorIndex: WdColorIndex; + readonly Parent: any; + Texture: WdTextureIndex; + } + + class ShadowFormat { + private 'Word.ShadowFormat_typekey': ShadowFormat; + private constructor(); + readonly Application: Application; + Blur: number; + readonly Creator: number; + readonly ForeColor: ColorFormat; + IncrementOffsetX(Increment: number): void; + IncrementOffsetY(Increment: number): void; + Obscured: Office.MsoTriState; + OffsetX: number; + OffsetY: number; + readonly Parent: any; + RotateWithShape: Office.MsoTriState; + Size: number; + Style: Office.MsoShadowStyle; + Transparency: number; + Type: Office.MsoShadowType; + Visible: Office.MsoTriState; + } + + class Shape { + private 'Word.Shape_typekey': Shape; + private constructor(); + Activate(): void; + readonly Adjustments: Adjustments; + AlternativeText: string; + readonly Anchor: Range; + readonly AnchorID: number; + readonly Application: Application; + Apply(): void; + AutoShapeType: Office.MsoAutoShapeType; + BackgroundStyle: Office.MsoBackgroundStyleIndex; + readonly Callout: CalloutFormat; + CanvasCropBottom(Increment: number): void; + CanvasCropLeft(Increment: number): void; + CanvasCropRight(Increment: number): void; + CanvasCropTop(Increment: number): void; + readonly CanvasItems: CanvasShapes; + readonly Chart: Chart; + readonly Child: Office.MsoTriState; + readonly ConnectionSiteCount: number; + readonly Connector: Office.MsoTriState; + readonly ConnectorFormat: ConnectorFormat; + ConvertToFrame(): Frame; + ConvertToInlineShape(): InlineShape; + readonly Creator: number; + Delete(): void; + readonly Diagram: Office.IMsoDiagram; + readonly DiagramNode: DiagramNode; + Duplicate(): Shape; + readonly EditID: number; + readonly Fill: FillFormat; + Flip(FlipCmd: Office.MsoFlipCmd): void; + readonly Glow: GlowFormat; + readonly GroupItems: GroupShapes; + readonly HasChart: Office.MsoTriState; + readonly HasDiagram: Office.MsoTriState; + readonly HasDiagramNode: Office.MsoTriState; + readonly HasSmartArt: Office.MsoTriState; + Height: number; + HeightRelative: number; + readonly HorizontalFlip: Office.MsoTriState; + readonly Hyperlink: Hyperlink; + readonly ID: number; + IncrementLeft(Increment: number): void; + IncrementRotation(Increment: number): void; + IncrementTop(Increment: number): void; + LayoutInCell: number; + Left: number; + LeftRelative: number; + readonly Line: LineFormat; + readonly LinkFormat: LinkFormat; + LockAnchor: number; + LockAspectRatio: Office.MsoTriState; + Name: string; + readonly Nodes: ShapeNodes; + readonly OLEFormat: OLEFormat; + readonly Parent: any; + readonly ParentGroup: Shape; + PickUp(): void; + readonly PictureFormat: PictureFormat; + readonly Reflection: ReflectionFormat; + RelativeHorizontalPosition: WdRelativeHorizontalPosition; + RelativeHorizontalSize: WdRelativeHorizontalSize; + RelativeVerticalPosition: WdRelativeVerticalPosition; + RelativeVerticalSize: WdRelativeVerticalSize; + RerouteConnections(): void; + Rotation: number; + readonly RTF: string; + + /** @param Office.MsoScaleFrom [Scale=0] */ + ScaleHeight(Factor: number, RelativeToOriginalSize: Office.MsoTriState, Scale?: Office.MsoScaleFrom): void; + + /** @param Office.MsoScaleFrom [Scale=0] */ + ScaleWidth(Factor: number, RelativeToOriginalSize: Office.MsoTriState, Scale?: Office.MsoScaleFrom): void; + readonly Script: Office.Script; + Select(Replace?: any): void; + SetShapesDefaultProperties(): void; + readonly Shadow: ShadowFormat; + ShapeStyle: Office.MsoShapeStyleIndex; + readonly SmartArt: Office.SmartArt; + readonly SoftEdge: SoftEdgeFormat; + readonly TextEffect: TextEffectFormat; + readonly TextFrame: TextFrame; + readonly TextFrame2: Office.TextFrame2; + readonly ThreeD: ThreeDFormat; + Title: string; + Top: number; + TopRelative: number; + readonly Type: Office.MsoShapeType; + Ungroup(): ShapeRange; + readonly VerticalFlip: Office.MsoTriState; + readonly Vertices: any; + Visible: Office.MsoTriState; + Width: number; + WidthRelative: number; + readonly WrapFormat: WrapFormat; + ZOrder(ZOrderCmd: Office.MsoZOrderCmd): void; + readonly ZOrderPosition: number; + } + + class ShapeNode { + private 'Word.ShapeNode_typekey': ShapeNode; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly EditingType: Office.MsoEditingType; + readonly Parent: any; + readonly Points: any; + readonly SegmentType: Office.MsoSegmentType; + } + + class ShapeNodes { + private 'Word.ShapeNodes_typekey': ShapeNodes; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Delete(Index: number): void; + + /** + * @param number [X2=0] + * @param number [Y2=0] + * @param number [X3=0] + * @param number [Y3=0] + */ + Insert(Index: number, SegmentType: Office.MsoSegmentType, EditingType: Office.MsoEditingType, X1: number, Y1: number, X2?: number, Y2?: number, X3?: number, Y3?: number): void; + Item(Index: any): ShapeNode; + readonly Parent: any; + SetEditingType(Index: number, EditingType: Office.MsoEditingType): void; + SetPosition(Index: number, X1: number, Y1: number): void; + SetSegmentType(Index: number, SegmentType: Office.MsoSegmentType): void; + } + + class ShapeRange { + private 'Word.ShapeRange_typekey': ShapeRange; + private constructor(); + Activate(): void; + readonly Adjustments: Adjustments; + Align(Align: Office.MsoAlignCmd, RelativeTo: number): void; + AlternativeText: string; + readonly Anchor: Range; + readonly Application: Application; + Apply(): void; + AutoShapeType: Office.MsoAutoShapeType; + BackgroundStyle: Office.MsoBackgroundStyleIndex; + readonly Callout: CalloutFormat; + CanvasCropBottom(Increment: number): void; + CanvasCropLeft(Increment: number): void; + CanvasCropRight(Increment: number): void; + CanvasCropTop(Increment: number): void; + readonly CanvasItems: CanvasShapes; + readonly Child: Office.MsoTriState; + readonly ConnectionSiteCount: number; + readonly Connector: Office.MsoTriState; + readonly ConnectorFormat: ConnectorFormat; + ConvertToFrame(): Frame; + ConvertToInlineShape(): InlineShape; + readonly Count: number; + readonly Creator: number; + Delete(): void; + readonly Diagram: Office.IMsoDiagram; + readonly DiagramNode: DiagramNode; + Distribute(Distribute: Office.MsoDistributeCmd, RelativeTo: number): void; + Duplicate(): ShapeRange; + readonly Fill: FillFormat; + Flip(FlipCmd: Office.MsoFlipCmd): void; + readonly Glow: GlowFormat; + Group(): Shape; + readonly GroupItems: GroupShapes; + readonly HasDiagram: Office.MsoTriState; + readonly HasDiagramNode: Office.MsoTriState; + Height: number; + HeightRelative: number; + readonly HorizontalFlip: Office.MsoTriState; + readonly Hyperlink: Hyperlink; + readonly ID: number; + IncrementLeft(Increment: number): void; + IncrementRotation(Increment: number): void; + IncrementTop(Increment: number): void; + Item(Index: any): Shape; + LayoutInCell: number; + Left: number; + LeftRelative: number; + readonly Line: LineFormat; + LockAnchor: number; + LockAspectRatio: Office.MsoTriState; + Name: string; + readonly Nodes: ShapeNodes; + readonly Parent: any; + readonly ParentGroup: Shape; + PickUp(): void; + readonly PictureFormat: PictureFormat; + readonly Reflection: ReflectionFormat; + Regroup(): Shape; + RelativeHorizontalPosition: WdRelativeHorizontalPosition; + RelativeHorizontalSize: WdRelativeHorizontalSize; + RelativeVerticalPosition: WdRelativeVerticalPosition; + RelativeVerticalSize: WdRelativeVerticalSize; + RerouteConnections(): void; + Rotation: number; + readonly RTF: string; + + /** @param Office.MsoScaleFrom [Scale=0] */ + ScaleHeight(Factor: number, RelativeToOriginalSize: Office.MsoTriState, Scale?: Office.MsoScaleFrom): void; + + /** @param Office.MsoScaleFrom [Scale=0] */ + ScaleWidth(Factor: number, RelativeToOriginalSize: Office.MsoTriState, Scale?: Office.MsoScaleFrom): void; + Select(Replace?: any): void; + SetShapesDefaultProperties(): void; + readonly Shadow: ShadowFormat; + ShapeStyle: Office.MsoShapeStyleIndex; + readonly SoftEdge: SoftEdgeFormat; + readonly TextEffect: TextEffectFormat; + readonly TextFrame: TextFrame; + readonly TextFrame2: Office.TextFrame2; + readonly ThreeD: ThreeDFormat; + Title: string; + Top: number; + TopRelative: number; + readonly Type: Office.MsoShapeType; + Ungroup(): ShapeRange; + readonly VerticalFlip: Office.MsoTriState; + readonly Vertices: any; + Visible: Office.MsoTriState; + Width: number; + WidthRelative: number; + readonly WrapFormat: WrapFormat; + ZOrder(ZOrderCmd: Office.MsoZOrderCmd): void; + readonly ZOrderPosition: number; + } + + class Shapes { + private 'Word.Shapes_typekey': Shapes; + private constructor(); + AddCallout(Type: Office.MsoCalloutType, Left: number, Top: number, Width: number, Height: number, Anchor?: any): Shape; + AddCanvas(Left: number, Top: number, Width: number, Height: number, Anchor?: any): Shape; + + /** @param Office.XlChartType [Type=-1] */ + AddChart(Type?: Office.XlChartType, Left?: any, Top?: any, Width?: any, Height?: any, Anchor?: any): Shape; + AddConnector(Type: Office.MsoConnectorType, BeginX: number, BeginY: number, EndX: number, EndY: number): Shape; + AddCurve(SafeArrayOfPoints: any, Anchor?: any): Shape; + AddDiagram(Type: Office.MsoDiagramType, Left: number, Top: number, Width: number, Height: number, Anchor?: any): Shape; + AddLabel(Orientation: Office.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number, Anchor?: any): Shape; + AddLine(BeginX: number, BeginY: number, EndX: number, EndY: number, Anchor?: any): Shape; + AddOLEControl(ClassType?: any, Left?: any, Top?: any, Width?: any, Height?: any, Anchor?: any): Shape; + AddOLEObject( + ClassType?: any, FileName?: any, LinkToFile?: any, DisplayAsIcon?: any, IconFileName?: any, IconIndex?: any, IconLabel?: any, Left?: any, Top?: any, + Width?: any, Height?: any, Anchor?: any): Shape; + AddPicture(FileName: string, LinkToFile?: any, SaveWithDocument?: any, Left?: any, Top?: any, Width?: any, Height?: any, Anchor?: any): Shape; + AddPolyline(SafeArrayOfPoints: any, Anchor?: any): Shape; + AddShape(Type: number, Left: number, Top: number, Width: number, Height: number, Anchor?: any): Shape; + AddSmartArt(Layout: Office.SmartArtLayout, Left?: any, Top?: any, Width?: any, Height?: any, Anchor?: any): Shape; + AddTextbox(Orientation: Office.MsoTextOrientation, Left: number, Top: number, Width: number, Height: number, Anchor?: any): Shape; + AddTextEffect( + PresetTextEffect: Office.MsoPresetTextEffect, Text: string, FontName: string, FontSize: number, FontBold: Office.MsoTriState, FontItalic: Office.MsoTriState, + Left: number, Top: number, Anchor?: any): Shape; + readonly Application: Application; + BuildFreeform(EditingType: Office.MsoEditingType, X1: number, Y1: number): FreeformBuilder; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Shape; + readonly Parent: any; + Range(Index: any): ShapeRange; + SelectAll(): void; + } + + class SmartTag { + private 'Word.SmartTag_typekey': SmartTag; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly DownloadURL: string; + readonly Name: string; + readonly Parent: any; + readonly Properties: CustomProperties; + readonly Range: Range; + Select(): void; + readonly SmartTagActions: SmartTagActions; + readonly XML: string; + readonly XMLNode: XMLNode; + } + + class SmartTagAction { + private 'Word.SmartTagAction_typekey': SmartTagAction; + private constructor(); + readonly ActiveXControl: any; + readonly Application: Application; + CheckboxState: boolean; + readonly Creator: number; + Execute(): void; + ExpandDocumentFragment: boolean; + ExpandHelp: boolean; + ListSelection: number; + readonly Name: string; + readonly Parent: any; + readonly PresentInPane: boolean; + RadioGroupSelection: number; + TextboxText: string; + readonly Type: WdSmartTagControlType; + } + + class SmartTagActions { + private 'Word.SmartTagActions_typekey': SmartTagActions; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): SmartTagAction; + readonly Parent: any; + ReloadActions(): void; + } + + class SmartTagRecognizer { + private 'Word.SmartTagRecognizer_typekey': SmartTagRecognizer; + private constructor(); + readonly Application: Application; + readonly Caption: string; + readonly Creator: number; + Enabled: boolean; + readonly FullName: string; + readonly Parent: any; + readonly ProgID: string; + } + + class SmartTagRecognizers { + private 'Word.SmartTagRecognizers_typekey': SmartTagRecognizers; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): SmartTagRecognizer; + readonly Parent: any; + ReloadRecognizers(): void; + } + + class SmartTags { + private 'Word.SmartTags_typekey': SmartTags; + private constructor(); + Add(Name: string, Range?: any, Properties?: any): SmartTag; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): SmartTag; + readonly Parent: any; + SmartTagsByType(Name: string): SmartTags; + } + + class SmartTagType { + private 'Word.SmartTagType_typekey': SmartTagType; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly FriendlyName: string; + readonly Name: string; + readonly Parent: any; + readonly SmartTagActions: SmartTagActions; + readonly SmartTagRecognizers: SmartTagRecognizers; + } + + class SmartTagTypes { + private 'Word.SmartTagTypes_typekey': SmartTagTypes; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): SmartTagType; + readonly Parent: any; + ReloadAll(): void; + } + + class SoftEdgeFormat { + private 'Word.SoftEdgeFormat_typekey': SoftEdgeFormat; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Parent: any; + Radius: number; + Type: Office.MsoSoftEdgeType; + } + + class Source { + private 'Word.Source_typekey': Source; + private constructor(); + readonly Application: Application; + readonly Cited: boolean; + readonly Creator: number; + Delete(): void; + Field(Name: string): string; + readonly Parent: any; + readonly Tag: string; + readonly XML: string; + } + + class Sources { + private 'Word.Sources_typekey': Sources; + private constructor(); + Add(Data: string): void; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Source; + readonly Parent: any; + } + + class SpellingSuggestion { + private 'Word.SpellingSuggestion_typekey': SpellingSuggestion; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Name: string; + readonly Parent: any; + } + + class SpellingSuggestions { + private 'Word.SpellingSuggestions_typekey': SpellingSuggestions; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): SpellingSuggestion; + readonly Parent: any; + readonly SpellingErrorType: WdSpellingErrorType; + } + + class StoryRanges { + private 'Word.StoryRanges_typekey': StoryRanges; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: WdStoryType): Range; + readonly Parent: any; + } + + class Style { + private 'Word.Style_typekey': Style; + private constructor(); + readonly Application: Application; + AutomaticallyUpdate: boolean; + BaseStyle: any; + Borders: Borders; + readonly BuiltIn: boolean; + readonly Creator: number; + Delete(): void; + readonly Description: string; + Font: Font; + readonly Frame: Frame; + Hidden: boolean; + readonly InUse: boolean; + LanguageID: WdLanguageID; + LanguageIDFarEast: WdLanguageID; + readonly Linked: boolean; + LinkStyle: any; + LinkToListTemplate(ListTemplate: ListTemplate, ListLevelNumber?: any): void; + readonly ListLevelNumber: number; + readonly ListTemplate: ListTemplate; + Locked: boolean; + NameLocal: string; + NextParagraphStyle: any; + NoProofing: number; + NoSpaceBetweenParagraphsOfSameStyle: boolean; + ParagraphFormat: ParagraphFormat; + readonly Parent: any; + Priority: number; + QuickStyle: boolean; + readonly Shading: Shading; + readonly Table: TableStyle; + readonly Type: WdStyleType; + UnhideWhenUsed: boolean; + Visibility: boolean; + } + + class Styles { + private 'Word.Styles_typekey': Styles; + private constructor(); + Add(Name: string, Type?: any): Style; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Style; + readonly Parent: any; + } + + class StyleSheet { + private 'Word.StyleSheet_typekey': StyleSheet; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly FullName: string; + readonly Index: number; + Move(Precedence: WdStyleSheetPrecedence): void; + readonly Name: string; + readonly Parent: any; + readonly Path: string; + Title: string; + Type: WdStyleSheetLinkType; + } + + class StyleSheets { + private 'Word.StyleSheets_typekey': StyleSheets; + private constructor(); + Add(FileName: string, LinkType: WdStyleSheetLinkType, Title: string, Precedence: WdStyleSheetPrecedence): StyleSheet; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): StyleSheet; + readonly Parent: any; + } + + class Subdocument { + private 'Word.Subdocument_typekey': Subdocument; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly HasFile: boolean; + readonly Level: number; + Locked: boolean; + readonly Name: string; + Open(): Document; + readonly Parent: any; + readonly Path: string; + readonly Range: Range; + Split(Range: Range): void; + } + + class Subdocuments { + private 'Word.Subdocuments_typekey': Subdocuments; + private constructor(); + AddFromFile( + Name: any, ConfirmConversions?: any, ReadOnly?: any, PasswordDocument?: any, PasswordTemplate?: any, Revert?: any, WritePasswordDocument?: any, WritePasswordTemplate?: any): Subdocument; + AddFromRange(Range: Range): Subdocument; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Delete(): void; + Expanded: boolean; + Item(Index: number): Subdocument; + Merge(FirstSubdocument?: any, LastSubdocument?: any): void; + readonly Parent: any; + Select(): void; + } + + class SynonymInfo { + private 'Word.SynonymInfo_typekey': SynonymInfo; + private constructor(); + readonly AntonymList: any; + readonly Application: Application; + readonly Creator: number; + readonly Found: boolean; + readonly MeaningCount: number; + readonly MeaningList: any; + readonly Parent: any; + readonly PartOfSpeechList: any; + readonly RelatedExpressionList: any; + readonly RelatedWordList: any; + SynonymList(Meaning: any): any; + readonly Word: string; + } + + class System { + private 'Word.System_typekey': System; + private constructor(); + readonly Application: Application; + readonly ComputerType: string; + Connect(Path: string, Drive?: any, Password?: any): void; + readonly Country: WdCountry; + readonly CountryRegion: WdCountry; + readonly Creator: number; + Cursor: WdCursorType; + readonly FreeDiskSpace: number; + readonly HorizontalResolution: number; + readonly LanguageDesignation: string; + readonly MacintoshName: string; + readonly MathCoprocessorInstalled: boolean; + MSInfo(): void; + readonly OperatingSystem: string; + readonly Parent: any; + PrivateProfileString(FileName: string, Section: string, Key: string): string; + readonly ProcessorType: string; + ProfileString(Section: string, Key: string): string; + readonly QuickDrawInstalled: boolean; + readonly Version: string; + readonly VerticalResolution: number; + } + + class Table { + private 'Word.Table_typekey': Table; + private constructor(); + AllowAutoFit: boolean; + AllowPageBreaks: boolean; + readonly Application: Application; + ApplyStyleColumnBands: boolean; + ApplyStyleDirectFormatting(StyleName: string): void; + ApplyStyleFirstColumn: boolean; + ApplyStyleHeadingRows: boolean; + ApplyStyleLastColumn: boolean; + ApplyStyleLastRow: boolean; + ApplyStyleRowBands: boolean; + AutoFitBehavior(Behavior: WdAutoFitBehavior): void; + AutoFormat( + Format?: any, ApplyBorders?: any, ApplyShading?: any, ApplyFont?: any, ApplyColor?: any, ApplyHeadingRows?: any, ApplyLastRow?: any, ApplyFirstColumn?: any, + ApplyLastColumn?: any, AutoFit?: any): void; + readonly AutoFormatType: number; + Borders: Borders; + BottomPadding: number; + Cell(Row: number, Column: number): Cell; + readonly Columns: Columns; + ConvertToText(Separator?: any, NestedTables?: any): Range; + ConvertToTextOld(Separator?: any): Range; + readonly Creator: number; + Delete(): void; + Descr: string; + ID: string; + LeftPadding: number; + readonly NestingLevel: number; + readonly Parent: any; + PreferredWidth: number; + PreferredWidthType: WdPreferredWidthType; + readonly Range: Range; + RightPadding: number; + readonly Rows: Rows; + Select(): void; + readonly Shading: Shading; + Sort( + ExcludeHeader?: any, FieldNumber?: any, SortFieldType?: any, SortOrder?: any, FieldNumber2?: any, SortFieldType2?: any, SortOrder2?: any, FieldNumber3?: any, + SortFieldType3?: any, SortOrder3?: any, CaseSensitive?: any, BidiSort?: any, IgnoreThe?: any, IgnoreKashida?: any, IgnoreDiacritics?: any, IgnoreHe?: any, LanguageID?: any): void; + SortAscending(): void; + SortDescending(): void; + SortOld( + ExcludeHeader?: any, FieldNumber?: any, SortFieldType?: any, SortOrder?: any, FieldNumber2?: any, SortFieldType2?: any, SortOrder2?: any, FieldNumber3?: any, + SortFieldType3?: any, SortOrder3?: any, CaseSensitive?: any, LanguageID?: any): void; + Spacing: number; + Split(BeforeRow: any): Table; + Style: any; + TableDirection: WdTableDirection; + readonly Tables: Tables; + Title: string; + TopPadding: number; + readonly Uniform: boolean; + UpdateAutoFormat(): void; + } + + class TableOfAuthorities { + private 'Word.TableOfAuthorities_typekey': TableOfAuthorities; + private constructor(); + readonly Application: Application; + Bookmark: string; + Category: number; + readonly Creator: number; + Delete(): void; + EntrySeparator: string; + IncludeCategoryHeader: boolean; + IncludeSequenceName: string; + KeepEntryFormatting: boolean; + PageNumberSeparator: string; + PageRangeSeparator: string; + readonly Parent: any; + Passim: boolean; + readonly Range: Range; + Separator: string; + TabLeader: WdTabLeader; + Update(): void; + } + + class TableOfAuthoritiesCategory { + private 'Word.TableOfAuthoritiesCategory_typekey': TableOfAuthoritiesCategory; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Index: number; + Name: string; + readonly Parent: any; + } + + class TableOfContents { + private 'Word.TableOfContents_typekey': TableOfContents; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly HeadingStyles: HeadingStyles; + HidePageNumbersInWeb: boolean; + IncludePageNumbers: boolean; + LowerHeadingLevel: number; + readonly Parent: any; + readonly Range: Range; + RightAlignPageNumbers: boolean; + TabLeader: WdTabLeader; + TableID: string; + Update(): void; + UpdatePageNumbers(): void; + UpperHeadingLevel: number; + UseFields: boolean; + UseHeadingStyles: boolean; + UseHyperlinks: boolean; + } + + class TableOfFigures { + private 'Word.TableOfFigures_typekey': TableOfFigures; + private constructor(); + readonly Application: Application; + Caption: string; + readonly Creator: number; + Delete(): void; + readonly HeadingStyles: HeadingStyles; + HidePageNumbersInWeb: boolean; + IncludeLabel: boolean; + IncludePageNumbers: boolean; + LowerHeadingLevel: number; + readonly Parent: any; + readonly Range: Range; + RightAlignPageNumbers: boolean; + TabLeader: WdTabLeader; + TableID: string; + Update(): void; + UpdatePageNumbers(): void; + UpperHeadingLevel: number; + UseFields: boolean; + UseHeadingStyles: boolean; + UseHyperlinks: boolean; + } + + class Tables { + private 'Word.Tables_typekey': Tables; + private constructor(); + Add(Range: Range, NumRows: number, NumColumns: number, DefaultTableBehavior?: any, AutoFitBehavior?: any): Table; + AddOld(Range: Range, NumRows: number, NumColumns: number): Table; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Table; + readonly NestingLevel: number; + readonly Parent: any; + } + + class TablesOfAuthorities { + private 'Word.TablesOfAuthorities_typekey': TablesOfAuthorities; + private constructor(); + Add( + Range: Range, Category?: any, Bookmark?: any, Passim?: any, KeepEntryFormatting?: any, Separator?: any, IncludeSequenceName?: any, EntrySeparator?: any, + PageRangeSeparator?: any, IncludeCategoryHeader?: any, PageNumberSeparator?: any): TableOfAuthorities; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Format: WdToaFormat; + Item(Index: number): TableOfAuthorities; + MarkAllCitations(ShortCitation: string, LongCitation?: any, LongCitationAutoText?: any, Category?: any): void; + MarkCitation(Range: Range, ShortCitation: string, LongCitation?: any, LongCitationAutoText?: any, Category?: any): Field; + NextCitation(ShortCitation: string): void; + readonly Parent: any; + } + + class TablesOfAuthoritiesCategories { + private 'Word.TablesOfAuthoritiesCategories_typekey': TablesOfAuthoritiesCategories; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): TableOfAuthoritiesCategory; + readonly Parent: any; + } + + class TablesOfContents { + private 'Word.TablesOfContents_typekey': TablesOfContents; + private constructor(); + Add( + Range: Range, UseHeadingStyles?: any, UpperHeadingLevel?: any, LowerHeadingLevel?: any, UseFields?: any, TableID?: any, RightAlignPageNumbers?: any, + IncludePageNumbers?: any, AddedStyles?: any, UseHyperlinks?: any, HidePageNumbersInWeb?: any, UseOutlineLevels?: any): TableOfContents; + Add2000( + Range: Range, UseHeadingStyles?: any, UpperHeadingLevel?: any, LowerHeadingLevel?: any, UseFields?: any, TableID?: any, RightAlignPageNumbers?: any, + IncludePageNumbers?: any, AddedStyles?: any, UseHyperlinks?: any, HidePageNumbersInWeb?: any): TableOfContents; + AddOld( + Range: Range, UseHeadingStyles?: any, UpperHeadingLevel?: any, LowerHeadingLevel?: any, UseFields?: any, TableID?: any, RightAlignPageNumbers?: any, + IncludePageNumbers?: any, AddedStyles?: any): TableOfContents; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Format: WdTocFormat; + Item(Index: number): TableOfContents; + MarkEntry(Range: Range, Entry?: any, EntryAutoText?: any, TableID?: any, Level?: any): Field; + readonly Parent: any; + } + + class TablesOfFigures { + private 'Word.TablesOfFigures_typekey': TablesOfFigures; + private constructor(); + Add( + Range: Range, Caption?: any, IncludeLabel?: any, UseHeadingStyles?: any, UpperHeadingLevel?: any, LowerHeadingLevel?: any, UseFields?: any, TableID?: any, + RightAlignPageNumbers?: any, IncludePageNumbers?: any, AddedStyles?: any, UseHyperlinks?: any, HidePageNumbersInWeb?: any): TableOfFigures; + AddOld( + Range: Range, Caption?: any, IncludeLabel?: any, UseHeadingStyles?: any, UpperHeadingLevel?: any, LowerHeadingLevel?: any, UseFields?: any, TableID?: any, + RightAlignPageNumbers?: any, IncludePageNumbers?: any, AddedStyles?: any): TableOfFigures; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Format: WdTofFormat; + Item(Index: number): TableOfFigures; + MarkEntry(Range: Range, Entry?: any, EntryAutoText?: any, TableID?: any, Level?: any): Field; + readonly Parent: any; + } + + class TableStyle { + private 'Word.TableStyle_typekey': TableStyle; + private constructor(); + Alignment: WdRowAlignment; + AllowBreakAcrossPage: number; + AllowPageBreaks: boolean; + readonly Application: Application; + Borders: Borders; + BottomPadding: number; + ColumnStripe: number; + Condition(ConditionCode: WdConditionCode): ConditionalStyle; + readonly Creator: number; + LeftIndent: number; + LeftPadding: number; + readonly Parent: any; + RightPadding: number; + RowStripe: number; + readonly Shading: Shading; + Spacing: number; + TableDirection: WdTableDirection; + TopPadding: number; + } + + class TabStop { + private 'Word.TabStop_typekey': TabStop; + private constructor(); + Alignment: WdTabAlignment; + readonly Application: Application; + Clear(): void; + readonly Creator: number; + readonly CustomTab: boolean; + Leader: WdTabLeader; + readonly Next: TabStop; + readonly Parent: any; + Position: number; + readonly Previous: TabStop; + } + + class TabStops { + private 'Word.TabStops_typekey': TabStops; + private constructor(); + Add(Position: number, Alignment?: any, Leader?: any): TabStop; + After(Position: number): TabStop; + readonly Application: Application; + Before(Position: number): TabStop; + ClearAll(): void; + readonly Count: number; + readonly Creator: number; + Item(Index: any): TabStop; + readonly Parent: any; + } + + class Task { + private 'Word.Task_typekey': Task; + private constructor(); + Activate(Wait?: any): void; + readonly Application: Application; + Close(): void; + readonly Creator: number; + Height: number; + Left: number; + Move(Left: number, Top: number): void; + readonly Name: string; + readonly Parent: any; + Resize(Width: number, Height: number): void; + SendWindowMessage(Message: number, wParam: number, lParam: number): void; + Top: number; + Visible: boolean; + Width: number; + WindowState: WdWindowState; + } + + class TaskPane { + private 'Word.TaskPane_typekey': TaskPane; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Parent: any; + Visible: boolean; + } + + class TaskPanes { + private 'Word.TaskPanes_typekey': TaskPanes; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: WdTaskPanes): TaskPane; + readonly Parent: any; + } + + class Tasks { + private 'Word.Tasks_typekey': Tasks; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Exists(Name: string): boolean; + ExitWindows(): void; + Item(Index: any): Task; + readonly Parent: any; + } + + class Template { + private 'Word.Template_typekey': Template; + private constructor(); + readonly Application: Application; + readonly AutoTextEntries: AutoTextEntries; + readonly BuildingBlockEntries: BuildingBlockEntries; + readonly BuildingBlockTypes: BuildingBlockTypes; + readonly BuiltInDocumentProperties: Office.DocumentProperties; + readonly Creator: number; + readonly CustomDocumentProperties: Office.DocumentProperties; + FarEastLineBreakLanguage: WdFarEastLineBreakLanguageID; + FarEastLineBreakLevel: WdFarEastLineBreakLevel; + readonly FullName: string; + JustificationMode: WdJustificationMode; + KerningByAlgorithm: boolean; + LanguageID: WdLanguageID; + LanguageIDFarEast: WdLanguageID; + readonly ListTemplates: ListTemplates; + readonly Name: string; + NoLineBreakAfter: string; + NoLineBreakBefore: string; + NoProofing: number; + OpenAsDocument(): Document; + readonly Parent: any; + readonly Path: string; + Save(): void; + Saved: boolean; + readonly Type: WdTemplateType; + readonly VBProject: VBIDE.VBProject; + } + + class Templates { + private 'Word.Templates_typekey': Templates; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Template; + LoadBuildingBlocks(): void; + readonly Parent: any; + } + + class TextColumn { + private 'Word.TextColumn_typekey': TextColumn; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Parent: any; + SpaceAfter: number; + Width: number; + } + + class TextColumns { + private 'Word.TextColumns_typekey': TextColumns; + private constructor(); + Add(Width?: any, Spacing?: any, EvenlySpaced?: any): TextColumn; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + EvenlySpaced: number; + FlowDirection: WdFlowDirection; + Item(Index: number): TextColumn; + LineBetween: number; + readonly Parent: any; + SetCount(NumColumns: number): void; + Spacing: number; + Width: number; + } + + class TextEffectFormat { + private 'Word.TextEffectFormat_typekey': TextEffectFormat; + private constructor(); + Alignment: Office.MsoTextEffectAlignment; + readonly Application: Application; + readonly Creator: number; + FontBold: Office.MsoTriState; + FontItalic: Office.MsoTriState; + FontName: string; + FontSize: number; + KernedPairs: Office.MsoTriState; + NormalizedHeight: Office.MsoTriState; + readonly Parent: any; + PresetShape: Office.MsoPresetTextEffectShape; + PresetTextEffect: Office.MsoPresetTextEffect; + RotatedChars: Office.MsoTriState; + Text: string; + ToggleVerticalText(): void; + Tracking: number; + } + + class TextFrame { + private 'Word.TextFrame_typekey': TextFrame; + private constructor(); + readonly Application: Application; + AutoSize: number; + BreakForwardLink(): void; + readonly Column: Office.TextColumn2; + readonly ContainingRange: Range; + readonly Creator: number; + DeleteText(): void; + readonly HasText: number; + HorizontalAnchor: Office.MsoHorizontalAnchor; + MarginBottom: number; + MarginLeft: number; + MarginRight: number; + MarginTop: number; + Next: TextFrame; + NoTextRotation: Office.MsoTriState; + Orientation: Office.MsoTextOrientation; + readonly Overflowing: boolean; + readonly Parent: Shape; + PathFormat: Office.MsoPathFormat; + Previous: TextFrame; + readonly TextRange: Range; + readonly ThreeD: ThreeDFormat; + ValidLinkTarget(TargetTextFrame: TextFrame): boolean; + VerticalAnchor: Office.MsoVerticalAnchor; + WarpFormat: Office.MsoWarpFormat; + WordWrap: number; + } + + class TextInput { + private 'Word.TextInput_typekey': TextInput; + private constructor(); + readonly Application: Application; + Clear(): void; + readonly Creator: number; + Default: string; + EditType(Type: WdTextFormFieldType, Default?: any, Format?: any, Enabled?: any): void; + readonly Format: string; + readonly Parent: any; + readonly Type: WdTextFormFieldType; + readonly Valid: boolean; + Width: number; + } + + class TextRetrievalMode { + private 'Word.TextRetrievalMode_typekey': TextRetrievalMode; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly Duplicate: TextRetrievalMode; + IncludeFieldCodes: boolean; + IncludeHiddenText: boolean; + readonly Parent: any; + ViewType: WdViewType; + } + + class ThreeDFormat { + private 'Word.ThreeDFormat_typekey': ThreeDFormat; + private constructor(); + readonly Application: Application; + BevelBottomDepth: number; + BevelBottomInset: number; + BevelBottomType: Office.MsoBevelType; + BevelTopDepth: number; + BevelTopInset: number; + BevelTopType: Office.MsoBevelType; + readonly ContourColor: ColorFormat; + ContourWidth: number; + readonly Creator: number; + Depth: number; + readonly ExtrusionColor: ColorFormat; + ExtrusionColorType: Office.MsoExtrusionColorType; + FieldOfView: number; + IncrementRotationHorizontal(Increment: number): void; + IncrementRotationVertical(Increment: number): void; + IncrementRotationX(Increment: number): void; + IncrementRotationY(Increment: number): void; + IncrementRotationZ(Increment: number): void; + LightAngle: number; + readonly Parent: any; + Perspective: Office.MsoTriState; + readonly PresetCamera: Office.MsoPresetCamera; + readonly PresetExtrusionDirection: Office.MsoPresetExtrusionDirection; + PresetLighting: Office.MsoLightRigType; + PresetLightingDirection: Office.MsoPresetLightingDirection; + PresetLightingSoftness: Office.MsoPresetLightingSoftness; + PresetMaterial: Office.MsoPresetMaterial; + readonly PresetThreeDFormat: Office.MsoPresetThreeDFormat; + ProjectText: Office.MsoTriState; + ResetRotation(): void; + RotationX: number; + RotationY: number; + RotationZ: number; + SetExtrusionDirection(PresetExtrusionDirection: Office.MsoPresetExtrusionDirection): void; + SetPresetCamera(PresetCamera: Office.MsoPresetCamera): void; + SetThreeDFormat(PresetThreeDFormat: Office.MsoPresetThreeDFormat): void; + Visible: Office.MsoTriState; + Z: number; + } + + class TickLabels { + private 'Word.TickLabels_typekey': TickLabels; + private constructor(); + Alignment: number; + readonly Application: any; + AutoScaleFont: any; + readonly Creator: number; + Delete(): any; + readonly Depth: number; + readonly Font: ChartFont; + readonly Format: ChartFormat; + MultiLevel: boolean; + readonly Name: string; + NumberFormat: string; + NumberFormatLinked: boolean; + NumberFormatLocal: any; + Offset: number; + Orientation: XlTickLabelOrientation; + readonly Parent: any; + ReadingOrder: number; + Select(): any; + } + + class TwoInitialCapsException { + private 'Word.TwoInitialCapsException_typekey': TwoInitialCapsException; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Index: number; + readonly Name: string; + readonly Parent: any; + } + + class TwoInitialCapsExceptions { + private 'Word.TwoInitialCapsExceptions_typekey': TwoInitialCapsExceptions; + private constructor(); + Add(Name: string): TwoInitialCapsException; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): TwoInitialCapsException; + readonly Parent: any; + } + + class UndoRecord { + private 'Word.UndoRecord_typekey': UndoRecord; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly CustomRecordLevel: number; + readonly CustomRecordName: string; + EndCustomRecord(): void; + readonly IsRecordingCustomRecord: boolean; + readonly Parent: any; + + /** @param string [Name=''] */ + StartCustomRecord(Name?: string): void; + } + + class UpBars { + private 'Word.UpBars_typekey': UpBars; + private constructor(); + readonly Application: any; + readonly Border: ChartBorder; + readonly Creator: number; + Delete(): any; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + readonly Interior: Interior; + readonly Name: string; + readonly Parent: any; + Select(): any; + } + + class Variable { + private 'Word.Variable_typekey': Variable; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Index: number; + readonly Name: string; + readonly Parent: any; + Value: string; + } + + class Variables { + private 'Word.Variables_typekey': Variables; + private constructor(); + Add(Name: string, Value?: any): Variable; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number | string): Variable; + readonly Parent: any; + } + + class Version { + private 'Word.Version_typekey': Version; + private constructor(); + readonly Application: Application; + readonly Comment: string; + readonly Creator: number; + readonly Date: VarDate; + Delete(): void; + readonly Index: number; + Open(): Document; + OpenOld(): void; + readonly Parent: any; + readonly SavedBy: string; + } + + class Versions { + private 'Word.Versions_typekey': Versions; + private constructor(); + readonly Application: Application; + AutoVersion: WdAutoVersions; + readonly Count: number; + readonly Creator: number; + Item(Index: number): Version; + readonly Parent: any; + Save(Comment?: any): void; + } + + class View { + private 'Word.View_typekey': View; + private constructor(); + readonly Application: Application; + BrowseToWindow: number; + CollapseOutline(Range?: any): void; + ConflictMode: boolean; + readonly Creator: number; + DisplayBackgrounds: boolean; + DisplayPageBoundaries: boolean; + DisplaySmartTags: boolean; + Draft: boolean; + EnlargeFontsLessThan: number; + ExpandOutline(Range?: any): void; + FieldShading: WdFieldShading; + FullScreen: boolean; + Magnifier: boolean; + MailMergeDataView: boolean; + MarkupMode: WdRevisionsMode; + NextHeaderFooter(): void; + Panning: boolean; + readonly Parent: any; + PreviousHeaderFooter(): void; + ReadingLayout: boolean; + ReadingLayoutActualView: boolean; + ReadingLayoutAllowEditing: boolean; + ReadingLayoutAllowMultiplePages: boolean; + ReadingLayoutTruncateMargins: WdReadingLayoutMargin; + readonly Reviewers: Reviewers; + RevisionsBalloonShowConnectingLines: boolean; + RevisionsBalloonSide: WdRevisionsBalloonMargin; + RevisionsBalloonWidth: number; + RevisionsBalloonWidthType: WdRevisionsBalloonWidthType; + RevisionsMode: WdRevisionsMode; + RevisionsView: WdRevisionsView; + SeekView: WdSeekView; + ShadeEditableRanges: number; + ShowAll: boolean; + ShowAllHeadings(): void; + ShowAnimation: boolean; + ShowBookmarks: boolean; + ShowComments: boolean; + ShowCropMarks: boolean; + ShowDrawings: boolean; + ShowFieldCodes: boolean; + ShowFirstLineOnly: boolean; + ShowFormat: boolean; + ShowFormatChanges: boolean; + ShowHeading(Level: number): void; + ShowHiddenText: boolean; + ShowHighlight: boolean; + ShowHyphens: boolean; + ShowInkAnnotations: boolean; + ShowInsertionsAndDeletions: boolean; + ShowMainTextLayer: boolean; + ShowMarkupAreaHighlight: boolean; + ShowObjectAnchors: boolean; + ShowOptionalBreaks: boolean; + ShowOtherAuthors: boolean; + ShowParagraphs: boolean; + ShowPicturePlaceHolders: boolean; + ShowRevisionsAndComments: boolean; + ShowSpaces: boolean; + ShowTabs: boolean; + ShowTextBoundaries: boolean; + ShowXMLMarkup: number; + SplitSpecial: WdSpecialPane; + TableGridlines: boolean; + Type: WdViewType; + WrapToWindow: boolean; + readonly Zoom: Zoom; + } + + class Walls { + private 'Word.Walls_typekey': Walls; + private constructor(); + readonly Application: any; + readonly Border: ChartBorder; + ClearFormats(): any; + readonly Creator: number; + readonly Fill: ChartFillFormat; + readonly Format: ChartFormat; + readonly Interior: Interior; + readonly Name: string; + readonly Parent: any; + Paste(): void; + PictureType: any; + PictureUnit: any; + Select(): any; + Thickness: number; + } + + class WebOptions { + private 'Word.WebOptions_typekey': WebOptions; + private constructor(); + AllowPNG: boolean; + readonly Application: Application; + BrowserLevel: WdBrowserLevel; + readonly Creator: number; + Encoding: Office.MsoEncoding; + readonly FolderSuffix: string; + OptimizeForBrowser: boolean; + OrganizeInFolder: boolean; + readonly Parent: any; + PixelsPerInch: number; + RelyOnCSS: boolean; + RelyOnVML: boolean; + ScreenSize: Office.MsoScreenSize; + TargetBrowser: Office.MsoTargetBrowser; + UseDefaultFolderSuffix(): void; + UseLongFileNames: boolean; + } + + class Window { + private 'Word.Window_typekey': Window; + private constructor(); + Activate(): void; + readonly Active: boolean; + readonly ActivePane: Pane; + readonly Application: Application; + Caption: string; + Close(SaveChanges?: any, RouteDocument?: any): void; + readonly Creator: number; + DisplayHorizontalScrollBar: boolean; + DisplayLeftScrollBar: boolean; + DisplayRightRuler: boolean; + DisplayRulers: boolean; + DisplayScreenTips: boolean; + DisplayVerticalRuler: boolean; + DisplayVerticalScrollBar: boolean; + readonly Document: Document; + DocumentMap: boolean; + DocumentMapPercentWidth: number; + EnvelopeVisible: boolean; + GetPoint(ScreenPixelsLeft: number, ScreenPixelsTop: number, ScreenPixelsWidth: number, ScreenPixelsHeight: number, obj: any): void; + Height: number; + HorizontalPercentScrolled: number; + IMEMode: WdIMEMode; + readonly Index: number; + LargeScroll(Down?: any, Up?: any, ToRight?: any, ToLeft?: any): void; + Left: number; + NewWindow(): Window; + readonly Next: Window; + PageScroll(Down?: any, Up?: any): void; + readonly Panes: Panes; + readonly Parent: any; + readonly Previous: Window; + PrintOut( + Background?: any, Append?: any, Range?: any, OutputFileName?: any, From?: any, To?: any, Item?: any, Copies?: any, Pages?: any, PageType?: any, + PrintToFile?: any, Collate?: any, ActivePrinterMacGX?: any, ManualDuplexPrint?: any, PrintZoomColumn?: any, PrintZoomRow?: any, PrintZoomPaperWidth?: any, + PrintZoomPaperHeight?: any): void; + PrintOut2000( + Background?: any, Append?: any, Range?: any, OutputFileName?: any, From?: any, To?: any, Item?: any, Copies?: any, Pages?: any, PageType?: any, + PrintToFile?: any, Collate?: any, ActivePrinterMacGX?: any, ManualDuplexPrint?: any, PrintZoomColumn?: any, PrintZoomRow?: any, PrintZoomPaperWidth?: any, + PrintZoomPaperHeight?: any): void; + PrintOutOld( + Background?: any, Append?: any, Range?: any, OutputFileName?: any, From?: any, To?: any, Item?: any, Copies?: any, Pages?: any, PageType?: any, + PrintToFile?: any, Collate?: any, ActivePrinterMacGX?: any, ManualDuplexPrint?: any): void; + RangeFromPoint(x: number, y: number): any; + ScrollIntoView(obj: any, Start?: any): void; + readonly Selection: Selection; + SetFocus(): void; + ShowSourceDocuments: WdShowSourceDocuments; + SmallScroll(Down?: any, Up?: any, ToRight?: any, ToLeft?: any): void; + Split: boolean; + SplitVertical: number; + StyleAreaWidth: number; + Thumbnails: boolean; + ToggleRibbon(): void; + ToggleShowAllReviewers(): void; + Top: number; + readonly Type: WdWindowType; + readonly UsableHeight: number; + readonly UsableWidth: number; + VerticalPercentScrolled: number; + readonly View: View; + Visible: boolean; + Width: number; + readonly WindowNumber: number; + WindowState: WdWindowState; + } + + class Windows { + private 'Word.Windows_typekey': Windows; + private constructor(); + Add(Window?: any): Window; + readonly Application: Application; + Arrange(ArrangeStyle?: any): void; + BreakSideBySide(): boolean; + CompareSideBySideWith(Document: any): boolean; + readonly Count: number; + readonly Creator: number; + Item(Index: any): Window; + readonly Parent: any; + ResetPositionsSideBySide(): void; + SyncScrollingSideBySide: boolean; + } + + class Words { + private 'Word.Words_typekey': Words; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + readonly First: Range; + Item(Index: number): Range; + readonly Last: Range; + readonly Parent: any; + } + + class WrapFormat { + private 'Word.WrapFormat_typekey': WrapFormat; + private constructor(); + AllowOverlap: number; + readonly Application: Application; + readonly Creator: number; + DistanceBottom: number; + DistanceLeft: number; + DistanceRight: number; + DistanceTop: number; + readonly Parent: any; + Side: WdWrapSideType; + Type: WdWrapType; + } + + class XMLChildNodeSuggestion { + private 'Word.XMLChildNodeSuggestion_typekey': XMLChildNodeSuggestion; + private constructor(); + readonly Application: Application; + readonly BaseName: string; + readonly Creator: number; + Insert(Range?: any): XMLNode; + readonly NamespaceURI: string; + readonly Parent: any; + readonly XMLSchemaReference: XMLSchemaReference; + } + + class XMLChildNodeSuggestions { + private 'Word.XMLChildNodeSuggestions_typekey': XMLChildNodeSuggestions; + private constructor(); + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): XMLChildNodeSuggestion; + readonly Parent: any; + } + + class XMLMapping { + private 'Word.XMLMapping_typekey': XMLMapping; + private constructor(); + readonly Application: Application; + readonly Creator: number; + readonly CustomXMLNode: Office.CustomXMLNode; + readonly CustomXMLPart: Office.CustomXMLPart; + Delete(): void; + readonly IsMapped: boolean; + readonly Parent: any; + readonly PrefixMappings: string; + + /** + * @param string [PrefixMapping=''] + * @param Office.CustomXMLPart [Source=0] + */ + SetMapping(XPath: string, PrefixMapping?: string, Source?: Office.CustomXMLPart): boolean; + SetMappingByNode(Node: Office.CustomXMLNode): boolean; + readonly XPath: string; + } + + class XMLNamespace { + private 'Word.XMLNamespace_typekey': XMLNamespace; + private constructor(); + + /** @param boolean [AllUsers=false] */ + Alias(AllUsers?: boolean): string; + readonly Application: Application; + AttachToDocument(Document: any): void; + readonly Creator: number; + + /** @param boolean [AllUsers=false] */ + DefaultTransform(AllUsers?: boolean): XSLTransform; + Delete(): void; + + /** @param boolean [AllUsers=false] */ + Location(AllUsers?: boolean): string; + readonly Parent: any; + readonly URI: string; + readonly XSLTransforms: XSLTransforms; + } + + class XMLNamespaces { + private 'Word.XMLNamespaces_typekey': XMLNamespaces; + private constructor(); + + /** @param boolean [InstallForAllUsers=false] */ + Add(Path: string, NamespaceURI: any, Alias: any, InstallForAllUsers?: boolean): XMLNamespace; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + + /** @param boolean [InstallForAllUsers=false] */ + InstallManifest(Path: string, InstallForAllUsers?: boolean): void; + Item(Index: any): XMLNamespace; + readonly Parent: any; + } + + class XMLNode { + private 'Word.XMLNode_typekey': XMLNode; + private constructor(); + readonly Application: Application; + readonly Attributes: XMLNodes; + readonly BaseName: string; + readonly ChildNodes: XMLNodes; + readonly ChildNodeSuggestions: XMLChildNodeSuggestions; + Copy(): void; + readonly Creator: number; + Cut(): void; + Delete(): void; + readonly FirstChild: XMLNode; + readonly HasChildNodes: boolean; + readonly LastChild: XMLNode; + readonly Level: WdXMLNodeLevel; + readonly NamespaceURI: string; + readonly NextSibling: XMLNode; + readonly NodeType: WdXMLNodeType; + NodeValue: string; + readonly OwnerDocument: Document; + readonly Parent: any; + readonly ParentNode: XMLNode; + PlaceholderText: string; + readonly PreviousSibling: XMLNode; + readonly Range: Range; + RemoveChild(ChildElement: XMLNode): void; + + /** + * @param string [PrefixMapping=''] + * @param boolean [FastSearchSkippingTextNodes=true] + */ + SelectNodes(XPath: string, PrefixMapping?: string, FastSearchSkippingTextNodes?: boolean): XMLNodes; + + /** + * @param string [PrefixMapping=''] + * @param boolean [FastSearchSkippingTextNodes=true] + */ + SelectSingleNode(XPath: string, PrefixMapping?: string, FastSearchSkippingTextNodes?: boolean): XMLNode; + + /** @param boolean [ClearedAutomatically=true] */ + SetValidationError(Status: WdXMLValidationStatus, ErrorText: any, ClearedAutomatically?: boolean): void; + readonly SmartTag: SmartTag; + Text: string; + Validate(): void; + + /** @param boolean [Advanced=false] */ + ValidationErrorText(Advanced?: boolean): string; + readonly ValidationStatus: WdXMLValidationStatus; + readonly WordOpenXML: string; + + /** @param boolean [DataOnly=false] */ + XML(DataOnly?: boolean): string; + } + + class XMLNodes { + private 'Word.XMLNodes_typekey': XMLNodes; + private constructor(); + Add(Name: string, Namespace: string, Range?: any): XMLNode; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: number): XMLNode; + readonly Parent: any; + } + + class XMLSchemaReference { + private 'Word.XMLSchemaReference_typekey': XMLSchemaReference; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly Location: string; + readonly NamespaceURI: string; + readonly Parent: any; + Reload(): void; + } + + class XMLSchemaReferences { + private 'Word.XMLSchemaReferences_typekey': XMLSchemaReferences; + private constructor(); + + /** @param boolean [InstallForAllUsers=false] */ + Add(NamespaceURI: any, Alias: any, FileName: any, InstallForAllUsers?: boolean): XMLSchemaReference; + AllowSaveAsXMLWithoutValidation: boolean; + readonly Application: Application; + AutomaticValidation: boolean; + readonly Count: number; + readonly Creator: number; + HideValidationErrors: boolean; + IgnoreMixedContent: boolean; + Item(Index: any): XMLSchemaReference; + readonly Parent: any; + ShowPlaceholderText: boolean; + Validate(): void; + } + + class XSLTransform { + private 'Word.XSLTransform_typekey': XSLTransform; + private constructor(); + + /** @param boolean [AllUsers=false] */ + Alias(AllUsers?: boolean): string; + readonly Application: Application; + readonly Creator: number; + Delete(): void; + readonly ID: string; + + /** @param boolean [AllUsers=false] */ + Location(AllUsers?: boolean): string; + readonly Parent: any; + } + + class XSLTransforms { + private 'Word.XSLTransforms_typekey': XSLTransforms; + private constructor(); + + /** @param boolean [InstallForAllUsers=false] */ + Add(Location: string, Alias: any, InstallForAllUsers?: boolean): XSLTransform; + readonly Application: Application; + readonly Count: number; + readonly Creator: number; + Item(Index: any): XSLTransform; + readonly Parent: any; + } + + class Zoom { + private 'Word.Zoom_typekey': Zoom; + private constructor(); + readonly Application: Application; + readonly Creator: number; + PageColumns: number; + PageFit: WdPageFit; + PageRows: number; + readonly Parent: any; + Percentage: number; + } + + class Zooms { + private 'Word.Zooms_typekey': Zooms; + private constructor(); + readonly Application: Application; + readonly Creator: number; + Item(Index: WdViewType): Zoom; + readonly Parent: any; + } + + namespace EventHelperTypes { + type Application_EPostageInsertEx_ArgNames = ['Doc', 'cpDeliveryAddrStart', 'cpDeliveryAddrEnd', 'cpReturnAddrStart', 'cpReturnAddrEnd', 'xaWidth', 'yaHeight', 'bstrPrinterName', + 'bstrPaperFeed', 'fPrint', 'fCancel']; + + type Application_Invoke_ArgNames = ['dispidMember', 'riid', 'lcid', 'wFlags', 'pdispparams', 'pvarResult', 'pexcepinfo', 'puArgErr']; + + interface Application_EPostageInsertEx_Parameter { + readonly bstrPaperFeed: string; + readonly bstrPrinterName: string; + readonly cpDeliveryAddrEnd: number; + readonly cpDeliveryAddrStart: number; + readonly cpReturnAddrEnd: number; + readonly cpReturnAddrStart: number; + readonly Doc: Document; + fCancel: boolean; + readonly fPrint: boolean; + readonly xaWidth: number; + readonly yaHeight: number; + } + + interface Application_Invoke_Parameter { + readonly dispidMember: number; + readonly lcid: number; + readonly pdispparams: stdole.DISPPARAMS; + pexcepinfo: stdole.EXCEPINFO; + puArgErr: number; + pvarResult: any; + readonly riid: stdole.GUID; + readonly wFlags: number; + } + } +} + +interface ActiveXObject { + on( + obj: Word.Application, event: 'DocumentBeforeClose' | 'DocumentBeforePrint' | 'MailMergeBeforeRecordMerge', argNames: ['Doc', 'Cancel'], + handler: (this: Word.Application, parameter: {readonly Doc: Word.Document, Cancel: boolean}) => void): void; + on( + obj: Word.Application, event: 'DocumentBeforeSave', argNames: ['Doc', 'SaveAsUI', 'Cancel'], handler: ( + this: Word.Application, parameter: {readonly Doc: Word.Document, readonly SaveAsUI: boolean, Cancel: boolean}) => void): void; + on( + obj: Word.Application, event: 'DocumentOpen' | 'EPostageInsert' | 'EPostagePropertyDialog' | 'MailMergeAfterRecordMerge' | 'MailMergeDataSourceLoad' | + 'MailMergeWizardSendToCustom' | 'NewDocument', + argNames: ['Doc'], handler: (this: Word.Application, parameter: {readonly Doc: Word.Document}) => void): void; + on( + obj: Word.Application, event: 'DocumentSync', argNames: ['Doc', 'SyncEventType'], handler: ( + this: Word.Application, parameter: {readonly Doc: Word.Document, readonly SyncEventType: Office.MsoSyncEventType}) => void): void; + on( + obj: Word.Application, event: 'EPostageInsertEx', argNames: Word.EventHelperTypes.Application_EPostageInsertEx_ArgNames, handler: ( + this: Word.Application, parameter: Word.EventHelperTypes.Application_EPostageInsertEx_Parameter) => void): void; + on( + obj: Word.Application, event: 'GetIDsOfNames', argNames: ['riid', 'rgszNames', 'cNames', 'lcid', 'rgdispid'], handler: ( + this: Word.Application, parameter: {readonly riid: stdole.GUID, readonly rgszNames: number, readonly cNames: number, readonly lcid: number, rgdispid: number}) => void): void; + on( + obj: Word.Application, event: 'GetTypeInfo', argNames: ['itinfo', 'lcid', 'pptinfo'], handler: ( + this: Word.Application, parameter: {readonly itinfo: number, readonly lcid: number, pptinfo: undefined}) => void): void; + on(obj: Word.Application, event: 'GetTypeInfoCount', argNames: ['pctinfo'], handler: (this: Word.Application, parameter: {pctinfo: number}) => void): void; + on( + obj: Word.Application, event: 'Invoke', argNames: Word.EventHelperTypes.Application_Invoke_ArgNames, handler: ( + this: Word.Application, parameter: Word.EventHelperTypes.Application_Invoke_Parameter) => void): void; + on( + obj: Word.Application, event: 'MailMergeAfterMerge', argNames: ['Doc', 'DocResult'], handler: ( + this: Word.Application, parameter: {readonly Doc: Word.Document, readonly DocResult: Word.Document}) => void): void; + on( + obj: Word.Application, event: 'MailMergeBeforeMerge', argNames: ['Doc', 'StartRecord', 'EndRecord', 'Cancel'], handler: ( + this: Word.Application, parameter: {readonly Doc: Word.Document, readonly StartRecord: number, readonly EndRecord: number, Cancel: boolean}) => void): void; + on( + obj: Word.Application, event: 'MailMergeDataSourceValidate', argNames: ['Doc', 'Handled'], handler: ( + this: Word.Application, parameter: {readonly Doc: Word.Document, readonly Handled: boolean}) => void): void; + on( + obj: Word.Application, event: 'MailMergeDataSourceValidate2', argNames: ['Doc', 'Handled'], handler: ( + this: Word.Application, parameter: {readonly Doc: Word.Document, Handled: boolean}) => void): void; + on( + obj: Word.Application, event: 'MailMergeWizardStateChange', argNames: ['Doc', 'FromState', 'ToState', 'Handled'], handler: ( + this: Word.Application, parameter: {readonly Doc: Word.Document, readonly FromState: number, readonly ToState: number, readonly Handled: boolean}) => void): void; + on( + obj: Word.Application, event: 'ProtectedViewWindowActivate' | 'ProtectedViewWindowDeactivate' | 'ProtectedViewWindowOpen' | 'ProtectedViewWindowSize', + argNames: ['PvWindow'], handler: (this: Word.Application, parameter: {readonly PvWindow: Word.ProtectedViewWindow}) => void): void; + on( + obj: Word.Application, event: 'ProtectedViewWindowBeforeClose', argNames: ['PvWindow', 'CloseReason', 'Cancel'], handler: ( + this: Word.Application, parameter: {readonly PvWindow: Word.ProtectedViewWindow, readonly CloseReason: number, Cancel: boolean}) => void): void; + on( + obj: Word.Application, event: 'ProtectedViewWindowBeforeEdit', argNames: ['PvWindow', 'Cancel'], handler: ( + this: Word.Application, parameter: {readonly PvWindow: Word.ProtectedViewWindow, Cancel: boolean}) => void): void; + on(obj: Word.Application, event: 'QueryInterface', argNames: ['riid', 'ppvObj'], handler: (this: Word.Application, parameter: {readonly riid: stdole.GUID, ppvObj: undefined}) => void): void; + on( + obj: Word.Application, event: 'WindowActivate' | 'WindowDeactivate' | 'WindowSize', argNames: ['Doc', 'Wn'], handler: ( + this: Word.Application, parameter: {readonly Doc: Word.Document, readonly Wn: Word.Window}) => void): void; + on( + obj: Word.Application, event: 'WindowBeforeDoubleClick' | 'WindowBeforeRightClick', argNames: ['Sel', 'Cancel'], handler: ( + this: Word.Application, parameter: {readonly Sel: Word.Selection, Cancel: boolean}) => void): void; + on(obj: Word.Application, event: 'WindowSelectionChange', argNames: ['Sel'], handler: (this: Word.Application, parameter: {readonly Sel: Word.Selection}) => void): void; + on( + obj: Word.Application, event: 'XMLSelectionChange', argNames: ['Sel', 'OldXMLNode', 'NewXMLNode', 'Reason'], handler: ( + this: Word.Application, parameter: {readonly Sel: Word.Selection, readonly OldXMLNode: Word.XMLNode, readonly NewXMLNode: Word.XMLNode, readonly Reason: number}) => void): void; + on(obj: Word.Application, event: 'XMLValidationError', argNames: ['XMLNode'], handler: (this: Word.Application, parameter: {readonly XMLNode: Word.XMLNode}) => void): void; + on( + obj: Word.Document, event: 'BuildingBlockInsert', argNames: ['Range', 'Name', 'Category', 'BlockType', 'Template'], handler: ( + this: Word.Document, parameter: {readonly Range: Word.Range, readonly Name: string, readonly Category: string, readonly BlockType: string, readonly Template: string}) => void): void; + on( + obj: Word.Document, event: 'ContentControlAfterAdd', argNames: ['NewContentControl', 'InUndoRedo'], handler: ( + this: Word.Document, parameter: {readonly NewContentControl: Word.ContentControl, readonly InUndoRedo: boolean}) => void): void; + on( + obj: Word.Document, event: 'ContentControlBeforeContentUpdate' | 'ContentControlBeforeStoreUpdate', argNames: ['ContentControl', 'Content'], + handler: (this: Word.Document, parameter: {readonly ContentControl: Word.ContentControl, Content: string}) => void): void; + on( + obj: Word.Document, event: 'ContentControlBeforeDelete', argNames: ['OldContentControl', 'InUndoRedo'], handler: ( + this: Word.Document, parameter: {readonly OldContentControl: Word.ContentControl, readonly InUndoRedo: boolean}) => void): void; + on(obj: Word.Document, event: 'ContentControlOnEnter', argNames: ['ContentControl'], handler: (this: Word.Document, parameter: {readonly ContentControl: Word.ContentControl}) => void): void; + on( + obj: Word.Document, event: 'ContentControlOnExit', argNames: ['ContentControl', 'Cancel'], handler: ( + this: Word.Document, parameter: {readonly ContentControl: Word.ContentControl, Cancel: boolean}) => void): void; + on(obj: Word.Document, event: 'Sync', argNames: ['SyncEventType'], handler: (this: Word.Document, parameter: {readonly SyncEventType: Office.MsoSyncEventType}) => void): void; + on( + obj: Word.Document, event: 'XMLAfterInsert', argNames: ['NewXMLNode', 'InUndoRedo'], handler: ( + this: Word.Document, parameter: {readonly NewXMLNode: Word.XMLNode, readonly InUndoRedo: boolean}) => void): void; + on( + obj: Word.Document, event: 'XMLBeforeDelete', argNames: ['DeletedRange', 'OldXMLNode', 'InUndoRedo'], handler: ( + this: Word.Document, parameter: {readonly DeletedRange: Word.Range, readonly OldXMLNode: Word.XMLNode, readonly InUndoRedo: boolean}) => void): void; + on(obj: Word.Application, event: 'AddRef' | 'DocumentChange' | 'Quit' | 'Release' | 'Startup', handler: (this: Word.Application, parameter: {}) => void): void; + on(obj: Word.Document, event: 'Close' | 'New' | 'Open', handler: (this: Word.Document, parameter: {}) => void): void; + on(obj: Word.OLEControl, event: 'GotFocus' | 'LostFocus', handler: (this: Word.OLEControl, parameter: {}) => void): void; + set(obj: Word.Document, propertyName: 'ActiveWritingStyle', parameterTypes: [any], newValue: string): void; + set(obj: Word.Document, propertyName: 'Compatibility', parameterTypes: [Word.WdCompatibility], newValue: boolean): void; + set(obj: Word.System, propertyName: 'PrivateProfileString', parameterTypes: [string, string, string], newValue: string): void; + new(progid: K): ActiveXObjectNameMap[K]; +} + +interface ActiveXObjectNameMap { + 'Word.Application': Word.Application; + 'Word.Document': Word.Document; +} + +interface EnumeratorConstructor { + new(col: Word.AddIns): Enumerator; + new(col: Word.AutoCaptions): Enumerator; + new(col: Word.AutoCorrectEntries): Enumerator; + new(col: Word.AutoTextEntries): Enumerator; + new(col: Word.Bookmarks): Enumerator; + new(col: Word.Borders): Enumerator; + new(col: Word.Breaks): Enumerator; + new(col: Word.CanvasShapes | Word.GroupShapes | Word.ShapeRange | Word.Shapes): Enumerator; + new(col: Word.CaptionLabels): Enumerator; + new(col: Word.Cells): Enumerator; + new(col: Word.Characters | Word.ProofreadingErrors | Word.Sentences | Word.StoryRanges | Word.Words): Enumerator; + new(col: Word.CoAuthLocks): Enumerator; + new(col: Word.CoAuthors): Enumerator; + new(col: Word.CoAuthUpdates): Enumerator; + new(col: Word.Columns): Enumerator; + new(col: Word.Comments): Enumerator; + new(col: Word.Conflicts): Enumerator; + new(col: Word.ContentControlListEntries): Enumerator; + new(col: Word.ContentControls): Enumerator; + new(col: Word.CustomLabels): Enumerator; + new(col: Word.CustomProperties): Enumerator; + new(col: Word.DiagramNodeChildren | Word.DiagramNodes): Enumerator; + new(col: Word.Dialogs): Enumerator; + new(col: Word.Dictionaries | Word.HangulHanjaConversionDictionaries): Enumerator; + new(col: Word.Documents): Enumerator; + new(col: Word.EmailSignatureEntries): Enumerator; + new(col: Word.Endnotes): Enumerator; + new(col: Word.Fields): Enumerator; + new(col: Word.FileConverters): Enumerator; + new(col: Word.FirstLetterExceptions): Enumerator; + new(col: Word.FontNames): Enumerator; + new(col: Word.Footnotes): Enumerator; + new(col: Word.FormFields): Enumerator; + new(col: Word.Frames): Enumerator; + new(col: Word.HangulAndAlphabetExceptions): Enumerator; + new(col: Word.HeadersFooters): Enumerator; + new(col: Word.HeadingStyles): Enumerator; + new(col: Word.HTMLDivisions): Enumerator; + new(col: Word.Hyperlinks): Enumerator; + new(col: Word.Indexes): Enumerator; + new(col: Word.InlineShapes): Enumerator; + new(col: Word.KeyBindings | Word.KeysBoundTo): Enumerator; + new(col: Word.Languages): Enumerator; + new(col: Word.Lines): Enumerator; + new(col: Word.ListEntries): Enumerator; + new(col: Word.ListGalleries): Enumerator; + new(col: Word.ListLevels): Enumerator; + new(col: Word.ListParagraphs | Word.Paragraphs): Enumerator; + new(col: Word.Lists): Enumerator; + new(col: Word.ListTemplates): Enumerator; + new(col: Word.MailMergeDataFields): Enumerator; + new(col: Word.MailMergeFieldNames): Enumerator; + new(col: Word.MailMergeFields): Enumerator; + new(col: Word.MappedDataFields): Enumerator; + new(col: Word.OMathAutoCorrectEntries): Enumerator; + new(col: Word.OMathFunctions): Enumerator; + new(col: Word.OMathMatCols): Enumerator; + new(col: Word.OMathMatRows): Enumerator; + new(col: Word.OMathRecognizedFunctions): Enumerator; + new(col: Word.OMaths): Enumerator; + new(col: Word.OtherCorrectionsExceptions): Enumerator; + new(col: Word.PageNumbers): Enumerator; + new(col: Word.Pages): Enumerator; + new(col: Word.Panes): Enumerator; + new(col: Word.ProtectedViewWindows): Enumerator; + new(col: Word.ReadabilityStatistics): Enumerator; + new(col: Word.RecentFiles): Enumerator; + new(col: Word.Rectangles): Enumerator; + new(col: Word.Reviewers): Enumerator; + new(col: Word.Revisions): Enumerator; + new(col: Word.Rows): Enumerator; + new(col: Word.Sections): Enumerator; + new(col: Word.ShapeNodes): Enumerator; + new(col: Word.SmartTagActions): Enumerator; + new(col: Word.SmartTagRecognizers): Enumerator; + new(col: Word.SmartTags): Enumerator; + new(col: Word.SmartTagTypes): Enumerator; + new(col: Word.Sources): Enumerator; + new(col: Word.SpellingSuggestions): Enumerator; + new(col: Word.Styles): Enumerator; + new(col: Word.StyleSheets): Enumerator; + new(col: Word.Subdocuments): Enumerator; + new(col: Word.Tables): Enumerator; + new(col: Word.TablesOfAuthorities): Enumerator; + new(col: Word.TablesOfAuthoritiesCategories): Enumerator; + new(col: Word.TablesOfContents): Enumerator; + new(col: Word.TablesOfFigures): Enumerator; + new(col: Word.TabStops): Enumerator; + new(col: Word.TaskPanes): Enumerator; + new(col: Word.Tasks): Enumerator; + new(col: Word.Templates): Enumerator; + new(col: Word.TextColumns): Enumerator; + new(col: Word.TwoInitialCapsExceptions): Enumerator; + new(col: Word.Variables): Enumerator; + new(col: Word.Versions): Enumerator; + new(col: Word.Windows): Enumerator; + new(col: Word.XMLChildNodeSuggestions): Enumerator; + new(col: Word.XMLNamespaces): Enumerator; + new(col: Word.XMLNodes): Enumerator; + new(col: Word.XMLSchemaReferences): Enumerator; + new(col: Word.XSLTransforms): Enumerator; +} + +interface SafeArray { + _brand: SafeArray; +} diff --git a/types/activex-word/package.json b/types/activex-word/package.json new file mode 100644 index 0000000000..d9b1031263 --- /dev/null +++ b/types/activex-word/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "activex-helpers": "*" + } +} \ No newline at end of file diff --git a/types/activex-word/tsconfig.json b/types/activex-word/tsconfig.json new file mode 100644 index 0000000000..feeb1b5858 --- /dev/null +++ b/types/activex-word/tsconfig.json @@ -0,0 +1,21 @@ + +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es5", "scripthost"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "activex-word-tests.ts" + ] +} \ No newline at end of file diff --git a/types/activex-word/tslint.json b/types/activex-word/tslint.json new file mode 100644 index 0000000000..4ac54521fe --- /dev/null +++ b/types/activex-word/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "interface-name": [false] + } +} \ No newline at end of file diff --git a/types/adal/index.d.ts b/types/adal/index.d.ts index 43655efbbb..a51933b734 100644 --- a/types/adal/index.d.ts +++ b/types/adal/index.d.ts @@ -8,7 +8,8 @@ declare var AuthenticationContext: adal.AuthenticationContextStatic; declare var Logging: adal.Logging; declare module 'adal' { - export = { AuthenticationContext, Logging }; + export const AuthenticationContext: adal.AuthenticationContextStatic; + export const Logging: adal.Logging; } declare namespace adal { @@ -47,15 +48,15 @@ declare namespace adal { stateResponse: string; requestType: string; } - + interface Logging { log: (message: string) => void; level: LoggingLevel; } - + enum LoggingLevel { ERROR = 0, - WARNING = 1, + WARNING = 1, INFO = 2, VERBOSE = 3 } @@ -67,7 +68,7 @@ declare namespace adal { interface AuthenticationContext { instance: string; - config: Config; + config: Config; /** * Gets initial Idtoken for the app backend @@ -162,7 +163,7 @@ declare namespace adal { getResourceForEndpoint(endpoint: string): string; /** - * Handles redirection after login operation. + * Handles redirection after login operation. * Gets access token from url and saves token to the (local/session) storage * or saves error in case unsuccessful login. */ diff --git a/types/adone/adone.d.ts b/types/adone/adone.d.ts index a4f102752c..34540761b5 100644 --- a/types/adone/adone.d.ts +++ b/types/adone/adone.d.ts @@ -1,85 +1,133 @@ /// -declare const _null: symbol; -export { _null as null }; -export function noop(): void; -export function identity(x: T): T; -export function truly(): true; -export function falsely(): false; -export const ok: "OK"; -export const bad: "BAD"; -export const exts: [".js", ".tjs", ".ajs"]; -export function log(...args: any[]): void; -export function fatal(...args: any[]): void; -export function error(...args: any[]): void; -export function warn(...args: any[]): void; -export function info(...args: any[]): void; -export function debug(...args: any[]): void; -export function trace(...args: any[]): void; -export function o(...props: any[]): object; -export const Date: typeof global.Date; -export const hrtime: typeof global.process.hrtime; -export const setTimeout: typeof global.setTimeout; -export const setInterval: typeof global.setInterval; -export const setImmediate: typeof global.setImmediate; -export const clearTimeout: typeof global.clearTimeout; -export const clearInterval: typeof global.clearInterval; -export const clearImmediate: typeof global.clearImmediate; -interface LazifyOptions { - configurable: boolean; +declare namespace adone { + const _null: symbol; + export { _null as null }; + export function noop(): void; + export function identity(x: T): T; + export function truly(): true; + export function falsely(): false; + export const ok: "OK"; + export const bad: "BAD"; + export const exts: [".js", ".tjs", ".ajs"]; + export function log(...args: any[]): void; + export function fatal(...args: any[]): void; + export function error(...args: any[]): void; + export function warn(...args: any[]): void; + export function info(...args: any[]): void; + export function debug(...args: any[]): void; + export function trace(...args: any[]): void; + export function o(...props: any[]): object; + export const Date: typeof global.Date; + export const hrtime: typeof global.process.hrtime; + export const setTimeout: typeof global.setTimeout; + export const setInterval: typeof global.setInterval; + export const setImmediate: typeof global.setImmediate; + export const clearTimeout: typeof global.clearTimeout; + export const clearInterval: typeof global.clearInterval; + export const clearImmediate: typeof global.clearImmediate; + + namespace I { + interface LazifyOptions { + /** + * Whether the new properties are configurable, false by default + */ + configurable?: boolean; + + /** + * Whether the new properties are writable, false by default + */ + writable?: boolean; + + /** + * A custom mapper for values, by default returns the exported object (module.exports), + * but if the object is a transpiled es module and the default export is defined, + * it returns the default export + * + * @param key property + * @param mod module.exports + */ + mapper?(key: string, mod: any): any; + } + } + + /** + * Extends the given object(or creates a new one) with the given lazyfied properties + */ + export function lazify(modules: object, obj?: object, require?: (path: string) => any, options?: I.LazifyOptions): object; + + /** + * Defines or extends the private part of the given object with the given lazyfied properties + */ + export function lazifyPrivate(modules: object, obj?: object, require?: (path: string) => any, options?: I.LazifyOptions): object; + + /** + * Defines the private part of the given object with the given modules + */ + export function definePrivate(modules: object, obj: object): object; + + /** + * Returns the private part of the given object + */ + export function private(obj: object): any; + + namespace I { + interface Tag { + set(Class: object, tag: string): void; + has(obj: object, tag: string): boolean; + define(tag: string, predicate?: string): void; + SUBSYSTEM: symbol; + APPLICATION: symbol; + TRANSFORM: symbol; + CORE_STREAM: symbol; + LOGGER: symbol; + LONG: symbol; + BIGNUMBER: symbol; + EXBUFFER: symbol; + EXDATE: symbol; + CONFIGURATION: symbol; + GENESIS_NETRON: symbol; + GENESIS_PEER: symbol; + NETRON: symbol; + NETRON_PEER: symbol; + NETRON_ADAPTER: symbol; + NETRON_DEFINITION: symbol; + NETRON_DEFINITIONS: symbol; + NETRON_REFERENCE: symbol; + NETRON_INTERFACE: symbol; + NETRON_STUB: symbol; + NETRON_REMOTESTUB: symbol; + NETRON_STREAM: symbol; + FAST_STREAM: symbol; + FAST_FS_STREAM: symbol; + FAST_FS_MAP_STREAM: symbol; + } + } + export const tag: I.Tag; + export function bind(libName: string): object; + export function getAssetAbsolutePath(relPath: string): string; + export function loadAsset(relPath: string): string | Buffer; + export function require(path: string): object; + export const package: object; + + namespace I { + interface Runtime { + term: object; // TODO + logger: object; // TODO + app: object; // TODO + } + } + + export const runtime: I.Runtime; + + export const homePath: string; + export const rootPath: string; + export const etcPath: string; + export const config: object; + export const emptyBuffer: Buffer; + + export const assert: assertion.I.AssertFunction; + export const expect: assertion.I.ExpectFunction; + + export const std: typeof nodestd; } -export function lazify(modules: object, obj?: object, require?: (path: string) => any, options?: LazifyOptions): object; -interface Tag { - set(Class: object, tag: string): void; - has(obj: object, tag: string): boolean; - define(tag: string, predicate?: string): void; - SUBSYSTEM: symbol; - APPLICATION: symbol; - TRANSFORM: symbol; - CORE_STREAM: symbol; - LOGGER: symbol; - LONG: symbol; - BIGNUMBER: symbol; - EXBUFFER: symbol; - EXDATE: symbol; - CONFIGURATION: symbol; - GENESIS_NETRON: symbol; - GENESIS_PEER: symbol; - NETRON: symbol; - NETRON_PEER: symbol; - NETRON_ADAPTER: symbol; - NETRON_DEFINITION: symbol; - NETRON_DEFINITIONS: symbol; - NETRON_REFERENCE: symbol; - NETRON_INTERFACE: symbol; - NETRON_STUB: symbol; - NETRON_REMOTESTUB: symbol; - NETRON_STREAM: symbol; - FAST_STREAM: symbol; - FAST_FS_STREAM: symbol; - FAST_FS_MAP_STREAM: symbol; -} -export const tag: Tag; -export function run(App: object, ignoreArgs?: boolean): Promise; -export function bind(libName: string): object; -export function getAssetAbsolutePath(relPath: string): string; -export function loadAsset(relPath: string): string | Buffer; -export function require(path: string): object; -export const package: object; - -import * as std from "./glosses/std"; -export { std }; - -export * from "./glosses/common"; -export * from "./glosses/math"; -export * from "./glosses/utils"; -export * from "./glosses/assertion"; -export * from "./glosses/promise"; -export * from "./glosses/shani"; - -import "./glosses/shani-global"; - -export const assert: adone.assertion.I.AssertFunction; -export const expect: adone.assertion.I.ExpectFunction; - -export as namespace adone; diff --git a/types/adone/glosses/application.d.ts b/types/adone/glosses/application.d.ts new file mode 100644 index 0000000000..6b2b783d68 --- /dev/null +++ b/types/adone/glosses/application.d.ts @@ -0,0 +1,5 @@ +declare namespace adone { + namespace application { + function run(app: object, ignoreArgs?: boolean): Promise; + } +} diff --git a/types/adone/glosses/archives.d.ts b/types/adone/glosses/archives.d.ts new file mode 100644 index 0000000000..3f059ff14d --- /dev/null +++ b/types/adone/glosses/archives.d.ts @@ -0,0 +1,670 @@ +declare namespace adone { + /** + * Various archivers + */ + namespace archive { + /** + * tar archiver + */ + namespace tar { + namespace I { + interface Header { + /** + * File path + */ + name: string; + + /** + * Type of entry, file by default + */ + type: "file" | "directory" | "link" | "symlink" | "block-device" | "character-device" | "fifo" | "contiguous-file"; + + /** + * Entry mode, 0755 for dirs and 0644 by default + */ + mode: number; + + /** + * Last modified date for entry, now by default + */ + mtime: number; + + /** + * Entry size, 0 by default + */ + size: number; + + /** + * Linked file name + */ + linkname: string; + + /** + * uid for entry owner, 0 by default + */ + uid: number; + + /** + * gid for entry owner, 9 by default + */ + gid: number; + + /** + * uname of entry owner, null by default + */ + uname: string; + + /** + * gname of entry owner, null by default + */ + gname: string; + + /** + * device minor versio, 0 by default + */ + devmajor: number; + + /** + * device minor version, 0 by default + */ + devminor: number; + } + + type Optional = { + [P in keyof T]?: T[P]; + }; + + interface OptionalHeader extends Optional
{ + /** + * File path + */ + name: string; + } + + interface CommonOptions { + /** + * Entries filter + */ + ignore?(name: string): boolean; + + /** + * Header mapper, called for each each entry + */ + map?(header: Header): Header | undefined; + + /** + * Set the dmode and fmode to writable + */ + readable?: boolean; + + /** + * Set the dmode and fmode to writable + */ + writable?: boolean; + + /** + * Strip the parts of paths of files + */ + strip?: number; + + /** + * Ensure that packed directories have the corresponding modes + */ + dmode?: number; + + /** + * Ensure that packed files have the corresponding modes + */ + fmode?: number; + + /** + * A custom umask, process.umask() by default + */ + umask?: number; + } + + interface PackOptions extends CommonOptions { + /** + * Input read stream modifier, called for each entry + */ + mapStream?(stream: fs.I.ReadStream, header: Header): nodestd.stream.Readable; + + /** + * Pack the contents of the symlink instead of the link itself, false by default + */ + dereference?: boolean; + + /** + * Specifies which entries to pack, all by default + */ + entries?: string[]; + + /** + * Whether to sort entries before packing + */ + sort?: boolean; + + /** + * set false to ignore errors due to unsupported entry types (like device files), true by default + */ + strict?: boolean; + + /** + * A custom initial pack stream + */ + pack?: RawPackStream; + } + + type Writable = nodestd.stream.Writable; + + interface LinkSink extends Writable { + linkname: string; + } + + interface UnpackOptions extends CommonOptions { + /** + * Input read stream modifier, called for each entry + */ + mapStream?(stream: UnpackSourceStream, header: Header): nodestd.stream.Readable; + + /** + * Whether to change time properties of files + */ + utimes?: boolean; + + /** + * Whether to change owner of the files + */ + chown?: boolean; + + /** + * A custom unpack stream + */ + unpack?: RawUnpackStream; + + /** + * Copies a file if cannot create a link + */ + hardlinkAsFilesFallback?: boolean; + } + + interface UnpackSourceStream extends nodestd.stream.PassThrough { + _parent: RawUnpackStream; + } + } + + /** + * Represents a raw tar unpack stream + */ + class RawPackStream extends nodestd.stream.Readable { + entry(header: I.OptionalHeader, buffer: Buffer, callback?: (err: any) => void): I.Writable; + entry(header: I.OptionalHeader & { type: "symblink", linkname: string }, callback?: (err: any) => void): I.Writable; + entry(header: I.OptionalHeader & { type: "symlink" }, callback?: (err: any) => void): I.LinkSink; + entry(header: I.OptionalHeader, callback?: (err: any) => void): I.Writable; + + finalize(): void; + + destroy(err?: any): void; + } + + /** + * Represents a raw writable unpack stream + */ + class RawUnpackStream extends nodestd.stream.Writable { + on(event: string, listener: (...args: any[]) => void): this; + on(event: "entry", listener: (header: I.Header, stream: I.UnpackSourceStream, next: (err?: any) => void) => void): this; + on(event: "close", listener: () => void): this; + on(event: "drain", listener: () => void): this; + on(event: "error", listener: (err: Error) => void): this; + on(event: "finish", listener: () => void): this; + on(event: "pipe", listener: (src: nodestd.stream.Readable) => void): this; + on(event: "unpipe", listener: (src: nodestd.stream.Readable) => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: "entry", listener: (header: I.Header, stream: I.UnpackSourceStream, next: (err?: any) => void) => void): this; + once(event: "close", listener: () => void): this; + once(event: "drain", listener: () => void): this; + once(event: "error", listener: (err: Error) => void): this; + once(event: "finish", listener: () => void): this; + once(event: "pipe", listener: (src: nodestd.stream.Readable) => void): this; + once(event: "unpipe", listener: (src: nodestd.stream.Readable) => void): this; + } + + /** + * Creates a pack stream for the files from the given directory + * + * @param cwd directory to pack + */ + function packStream(cwd: string, options?: I.PackOptions): RawPackStream; + + /** + * Creates an unpack stream to the given direcotry + * + * @param cwd direcotry to unpack to + */ + function unpackStream(cwd: string, options?: I.UnpackOptions): RawUnpackStream; + } + + /** + * zip archiver + */ + namespace zip { + /** + * zip packer + */ + namespace pack { + class ZipFile { + /** + * A readable stream that will produce the contents of the zip file + */ + outputStream: nodestd.stream.Readable; + + /** + * Adds a file from the file system at realPath into the zipfile as metadataPath + * + * @param path path to the file + * @param metadataPath path to the file inside the archive + */ + addFile(path: string, metadataPath: string, options?: { + /** + * Overrides the value that will be obtained from stat + */ + mtime?: number, + + /** + * Overrides the value that will be obtained from stat + */ + mode?: number, + + /** + * If true, the file data will be deflated (compression method 8). + * + * If false, the file data will be stored (compression method 0) + */ + compress?: boolean, + + /** + * Use ZIP64 format in this entry's Data Descriptor and Central Directory Record + * regardless of if it's required or not (this may be useful for testing.). + * Otherwise, packer will use ZIP64 format where necessary. + */ + forceZip64Format?: boolean + }): this; + + /** + * Adds a file to the zip file whose content is read from readStream + * + * @param stream a readable stream for the file + * @param metadataPath path to the file inside the archive + */ + addReadStream(stream: nodestd.stream.Readable, metadataPath: string, options?: { + /** + * Defines modified date, now by default + */ + mtime?: number, + + /** + * Defines file mode, 0o100664 by default + */ + mode?: number, + + /** + * If true, the file data will be deflated (compression method 8). + * + * If false, the file data will be stored (compression method 0) + */ + compress?: boolean, + + /** + * Use ZIP64 format in this entry's Data Descriptor and Central Directory Record + * regardless of if it's required or not (this may be useful for testing.). + * Otherwise, packer will use ZIP64 format where necessary. + */ + forceZip64Format?: boolean, + + /** + * If given, it will be checked against the actual number of bytes in the readStream, + * and an error will be emitted if there is a mismatch + */ + size?: number + }): this; + + /** + * Adds a file to the zip file whose content is buffer + * + * @param buffer the file's contents, must be at most 0x3fffffff bytes long + * @param metadataPath path to the file inside the archive + */ + addBuffer(buffer: Buffer, metadataPath: string, options?: { + /** + * Defines modified date, now by default + */ + mtime?: number, + + /** + * Defines file mode, 0o100664 by default + */ + mode?: number, + + /** + * If true, the file data will be deflated (compression method 8). + * + * If false, the file data will be stored (compression method 0) + */ + compress?: boolean, + + /** + * Use ZIP64 format in this entry's Data Descriptor and Central Directory Record + * regardless of if it's required or not (this may be useful for testing.). + * Otherwise, packer will use ZIP64 format where necessary. + */ + forceZip64Format?: boolean + }): this; + + /** + * Adds an entry to the zip file that indicates a directory should be created, + * even if no other items in the zip file are contained in the directory + */ + addEmptyDirectory(metadataPath: string, options?: { + /** + * Defines modified date, now by default + */ + mtime?: number, + + /** + * Defines file mode, 0o40775 by default + */ + mode?: number + }): this; + + /** + * Indicates that no more files will be added via addFile(), addReadStream(), or addBuffer(). + * Some time after calling this function, outputStream will be ended. + * + * @returns the final guessed size of the file, can be -1 if it is hard to guess before processing. This will happend + * only if compression is enabled, or a stream with no size hint given + */ + end(options?: { + /** + * If true, packet will include the ZIP64 End of Central Directory Locator and ZIP64 End of Central Directory Record + * regardless of whether or not they are required (this may be useful for testing.). + * Otherwise, packer will include these structures if necessary + */ + forceZip64Format?: boolean + }): Promise; + } + } + + /** + * zip unpacker + */ + namespace unpack { + namespace I { + interface ExtraField { + id: number; + data: Buffer; + } + + interface Entry { + versionMadeBy: number; + versionNeededToExtract: number; + generalPurposeBitFlag: number; + compressionMethod: number; + lastModFileTime: number; + lastModFileDate: number; + crc32: number; + compressedSize: number; + uncompressedSize: number; + fileNameLength: number; + extraFieldLength: number; + fileCommentLength: number; + internalFileAttributes: number; + externalFileAttributes: number; + relativeOffsetOfLocalHeader: number; + + /** + * The bytes for the file name are decoded with UTF-8 if generalPurposeBitFlag & 0x800, otherwise with CP437. + * Alternatively, this field may be populated from the Info-ZIP Unicode Path Extra Field (see extraFields). + */ + fileName: StringType; + + extraFields: ExtraField[]; + + /** + * Comment decoded with the charset indicated by generalPurposeBitFlag & 0x800 as with the fileName + */ + fileComment: StringType; + + getLastModDate(): adone.I.datetime.Datetime; + + /** + * Whether this entry is encrypted with "Traditional Encryption" + */ + isEncrypted(): boolean; + + /** + * Whether the entry is compressed + */ + isCompressed(): boolean; + } + + interface ZipFile extends event.EventEmitter { + /** + * true until close() is called; then it's false + */ + isOpen: boolean; + + /** + * Total number of central directory records + */ + entryCount: number; + + /** + * Always decoded with CP437 per the spec + */ + comment: StringType; + + /** + * Causes all future calls to openReadStream() to fail, + * and closes the fd after all streams created by openReadStream() have emitted their end events + */ + close(): void; + + readEntry(): Promise; + + /** + * Opens a read stream for the given entry + */ + openReadStream(entry: Entry, options?: { + /** + * The option must be omitted when the entry is not compressed (see isCompressed()), + * and either true (or omitted) or false when the entry is compressed. + * Specifying decompress: false for a compressed entry causes the read stream + * to provide the raw compressed file data without going through a zlib inflate transform + */ + decompress?: boolean, + + /** + * The option must be null (or omitted) for non-encrypted entries, + * and false for encrypted entries. Omitting the option for an encrypted entry will result in an err. + */ + decrypt?: boolean, + + /** + * The start byte offset (inclusive) into this entry's file data + */ + start?: number, + + /** + * The end byte offset (exclusive) into this entry's file data + */ + end?: number, + }): Promise; + + /** + * Emitted for each entry. + * + * If decodeStrings is true, entries emitted via this event have already passed file name validation + * + * If validateEntrySizes is true and this entry's compressionMethod is 0 (stored without compression), + * this entry has already passed entry size validation + */ + on(event: "entry", listener: (entry: Entry) => void): this; + + /** + * Emitted after the last entry event has been emitted + */ + on(event: "end", listener: () => void): this; + + /** + * Emitted after the fd is actually closed + */ + on(event: "close", listener: () => void): this; + + /** + * Emitted in the case of errors with reading the zip file + */ + on(event: "error", listener: (err: any) => void): this; + + /** + * Emitted for each entry. + * + * If decodeStrings is true, entries emitted via this event have already passed file name validation + * + * If validateEntrySizes is true and this entry's compressionMethod is 0 (stored without compression), + * this entry has already passed entry size validation + */ + once(event: "entry", listener: (entry: Entry) => void): this; + + /** + * Emitted after the last entry event has been emitted + */ + once(event: "end", listener: () => void): this; + + /** + * Emitted after the fd is actually closed + */ + once(event: "close", listener: () => void): this; + + /** + * Emitted in the case of errors with reading the zip file + */ + once(event: "error", listener: (err: any) => void): this; + } + + interface CommonOptions { + /** + * Indicates that entries should be read only when readEntry() is called. + * If lazyEntries is false, entry events will be emitted as fast as possible + * to allow pipe()-ing file data from all entries in parallel. + * + * Default is false + */ + lazyEntries?: boolean; + + /** + * Causes unpacker to decode strings with CP437 or UTF-8 as required by the spec. + * + * When turned off zipfile.comment, entry.fileName, and entry.fileComment will be Buffer, + * any Info-ZIP Unicode Path Extra Field will be ignored, automatic file name validation will not be performed + */ + decodeStrings?: boolean; + + /** + * Ensures that an entry's reported uncompressed size matches its actual uncompressed size + */ + validateEntrySizes?: boolean; + } + + interface PathOptions extends CommonOptions { + /** + * Autocloses the file after the last entry reading or when an error occurs + * + * Default is true + */ + autoClose?: boolean; + } + + interface FdOptions extends CommonOptions { + /** + * Autocloses the file after the last entry reading or when an error occurs + * + * Default is false + */ + autoClose?: boolean; + } + + type BufferOptions = CommonOptions; + + interface RandomAccessReaderOptions extends CommonOptions { + /** + * Autocloses the file after the last entry reading or when an error occurs + * + * Default is true + */ + autoClose?: boolean; + } + } + + /** + * Opens a file and creates a zipfile unpacker + */ + function open(path: string, options: I.PathOptions & { decodeStrings: false }): I.ZipFile; + + /** + * Opens a file and creates a zipfile unpacker + */ + function open(path: string, options?: I.PathOptions): I.ZipFile; + + /** + * Creates a zipfile unpacker for the given fd + */ + function fromFd(fd: number, options: I.FdOptions & { decodeStrings: false }): I.ZipFile; + + /** + * Creates a zipfile unpacker for the given fd + */ + function fromFd(fd: number, options?: I.FdOptions): I.ZipFile; + + /** + * Creates a zipfile unpacker for the given buffer + */ + function fromBuffer(buffer: Buffer, options: I.BufferOptions & { decodeStrings: false }): I.ZipFile; + + /** + * Creates a zipfile unpacker for the given buffer + */ + function fromBuffer(buffer: Buffer, options?: I.BufferOptions): I.ZipFile; + + /** + * Creates a zipfile unpacker for the given random access reader. + * This method of reading a zip file allows clients to implement their own back-end file system + * + * @param totalSize Indicates the total file size of the zip file + */ + function fromRandomAccessReader( + reader: fs.AbstractRandomAccessReader, + totalSize: number, + options: I.RandomAccessReaderOptions & { decodeStrings: false } + ): I.ZipFile; + + /** + * Creates a zipfile unpacker for the given random access reader. + * This method of reading a zip file allows clients to implement their own back-end file system + * + * @param totalSize Indicates the total file size of the zip file + */ + function fromRandomAccessReader( + reader: fs.AbstractRandomAccessReader, + totalSize: number, + options?: I.RandomAccessReaderOptions + ): I.ZipFile; + + /** + * Returns null or a String error message depending on the validity of fileName + */ + function validateFileName(filename: string): string | null; + } + } + } +} diff --git a/types/adone/glosses/assertion.d.ts b/types/adone/glosses/assertion.d.ts index 4e8bfc593a..e7ba662791 100644 --- a/types/adone/glosses/assertion.d.ts +++ b/types/adone/glosses/assertion.d.ts @@ -1,1074 +1,1074 @@ -import adone from "adone"; +declare namespace adone { + /** + * assertion functions + */ + namespace assertion { + namespace I { + interface assertion { + AssertionError: AssertionError; + config: Config; + use: UseFunction; + loadMockInterface: LoadInterfaceFunction; + loadExpectInterface: LoadInterfaceFunction; + loadAssertInterface: LoadInterfaceFunction; + assert: AssertFunction; + expect: ExpectFunction; + } -/** - * assertion functions - */ -export namespace assertion { - namespace I { - interface assertion { - AssertionError: AssertionError; - config: Config; - use: UseFunction; - loadMockInterface: LoadInterfaceFunction; - loadExpectInterface: LoadInterfaceFunction; - loadAssertInterface: LoadInterfaceFunction; - assert: AssertFunction; - expect: ExpectFunction; + interface Config { + /** + * Include stack in Assertion error message + */ + includeStack: boolean; + /** + * Include `showDiff` flag in the thrown errors + */ + showDiff: boolean; + /** + * Length threshold for actual and expected values in assertion errors + */ + truncateThreshold: number; + /** + * use Proxy to throw an error when a non-existent property is read + */ + useProxy: boolean; + /** + * properties that should be ignored instead of throwing an error if they do not exist on the assertion + */ + proxyExcludedKeys: string[]; + } + + type PossibleTypes = util.I.PossibleTypes | "array"; + + type UseFunction = (fn: () => void) => assertion; + + type LoadInterfaceFunction = () => assertion; + + interface AssertFunction { + /** + * Asserts that value is truthy + */ + (value: any, message?: string): void; + /** + * Throws an AssertionError, like node.js + */ + fail(actual?: any, expected?: any, message?: string, operator?: any): void; + /** + * Asserts that value is truthy + */ + isOk(value: any, message?: string): void; + /** + * Asserts that value is truthy + */ + ok(value: any, message?: string): void; + /** + * Asserts that value is falsy + */ + isNotOk(value: any, message?: string): void; + /** + * Asserts that value is falsy + */ + notOk(value: any, message?: string): void; + /** + * Asserts non-strict equality + */ + equal(actual: any, expected: any, message?: string): void; + /** + * Asserts non-strict inequality + */ + notEqual(actual: any, expected: any, message?: string): void; + /** + * Asserts strict equality + */ + strictEqual(actual: any, expected: any, message?: string): void; + /** + * Asserts strict inequality + */ + notStrictEqual(actual: any, expected: any, message?: string): void; + /** + * Asserts that actual is deeply equal to expected + */ + deepEqual(actual: any, expected: any, message?: string): void; + /** + * Asserts that actual is deeply equal to expected + */ + deepStrictEqual(actual: any, expected: any, message?: string): void; + /** + * Asserts that actual and expected have the same length and the same members (===) + */ + equalArrays(actual: any[], expected: any[], message?: string): void; + /** + * Asserts that actual is not deeply equal to expected + */ + notDeepEqual(actual: any, expected: any, message?: string): void; + /** + * Asserts that value > above + */ + isAbove(value: any, above: any, message?: string): void; + /** + * Asserts that value >= atLeast + */ + isAtLeast(value: any, atLeast: any, message?: string): void; + /** + * Asserts that value < below + */ + isBelow(value: any, below: any, message?: string): void; + /** + * Asserts that value <= atMost + */ + isAtMost(value: any, atMost: any, message?: string): void; + /** + * Asserts that value is true + */ + isTrue(value: any, message?: string): void; + /** + * Asserts that value is not true + */ + isNotTrue(value: any, message?: string): void; + /** + * Asserts that value is false + */ + isFalse(value: any, message?: string): void; + /** + * Asserts that value is not false + */ + isNotFalse(value: any, message?: string): void; + /** + * Asserts that value is null + */ + isNull(value: any, message?: string): void; + /** + * Asserts that valus is not null + */ + isNotNull(value: any, message?: string): void; + /** + * Asserts that value is NaN + */ + isNaN(value: any, message?: string): void; + /** + * Asserts that value is not NaN + */ + isNotNaN(value: any, message?: string): void; + /** + * Asserts that value is neither null nor undefined + */ + exists(value: any, message?: string): void; + /** + * Asserts that value is either null or undefined + */ + notExists(value: any, message?: string): void; + /** + * Asserts that value is undefined + */ + isUndefined(value: any, message?: string): void; + /** + * Asserts that value is not undefined + */ + isDefined(value: any, message?: string): void; + /** + * Asserts that value is a function + */ + isFunction(value: any, message?: string): void; + /** + * Asserts that value is not a function + */ + isNotFunction(value: any, message?: string): void; + /** + * Asserts that value is an object of type Object + */ + isObject(value: any, message?: string): void; + /** + * Asserts that value is not an object of type Object + */ + isNotObject(value: any, message?: string): void; + /** + * Asserts that value is an array + */ + isArray(value: any, message?: string): void; + /** + * Asserts that value is not an array + */ + isNotArray(value: any, message?: string): void; + /** + * Asserts that value is a string + */ + isString(value: any, message?: string): void; + /** + * Asserts that value is not a string + */ + isNotString(value: any, message?: string): void; + /** + * Asserts that value is a number + */ + isNumber(value: any, message?: string): void; + /** + * Asserts that value is not a number + */ + isNotNumber(value: any, message?: string): void; + /** + * Asserts that value is a finite number + */ + isFinite(value: any, message?: string): void; + /** + * Asserts that value is a boolean + */ + isBoolean(value: any, message?: string): void; + /** + * Asserts that value is not a boolean + */ + isNotBoolean(value: any, message?: string): void; + /** + * Asserts that value's type is `type` + */ + typeOf(value: any, type: PossibleTypes, message?: string): void; + typeOf(value: any, type: string, message?: string): void; + /** + * Assert that value's type is not `type` + */ + notTypeOf(value: any, type: PossibleTypes, message?: string): void; + notTypeOf(value: any, type: string, message?: string): void; + /** + * Asserts that value is an instance of constructor + */ + instanceOf(value: any, constructor: object, message?: string): void; + /** + * Asserts that value is not an instance of constructor + */ + notInstanceOf(value: any, constructor: object, message?: string): void; + /** + * Asserts that expected includes inc + */ + include(expected: T[], inc: T, message?: string): void; + include(expected: string, inc: string, message?: string): void; + /** + * Asserts that expected does not include inc + */ + notInclude(expected: T[], inc: T, message?: string): void; + notInclude(expected: string, inc: string, message?: string): void; + /** + * Asserts that expected includes inc + */ + deepInclude(expected: T[], inc: T, message?: string): void; + deepInclude(expected: string, inc: string, message?: string): void; + /** + * Asserts that expected does not include inc + */ + notDeepInclude(expected: T[], inc: T, message?: string): void; + notDeepInclude(expected: string, inc: string, message?: string): void; + /** + * Asserts that expected includes inc + */ + nestedInclude(expected: object, inc: object, message?: string): void; + /** + * Asserts that expected does not include inc + */ + notNestedInclude(expected: object, inc: object, message?: string): void; + /** + * Assert that expected includes inc + */ + deepNestedInclude(expected: object, inc: object, message?: string): void; + /** + * Assert that expected includes inc + */ + notDeepNestedInclude(expected: object, inc: object, message?: string): void; + /** + * Assert that expected includes inc + */ + ownInclude(expected: object, inc: object, message?: string): void; + /** + * Assert that expected does not include inc + */ + notOwnInclude(expected: object, inc: object, message?: string): void; + /** + * Assert that expected includes inc + */ + deepOwnInclude(expected: object, inc: object, message?: string): void; + /** + * Assert that expected does not include inc + */ + notDeepOwnInclude(expected: object, inc: object, message?: string): void; + /** + * Asserts that expected matches the regular expression regExp + */ + match(expected: any, regExp: RegExp, message?: string): void; + /** + * Asserts that expected does not match the regular expression regExp + */ + notMatch(expected: any, regExp: RegExp, message?: string): void; + /** + * Asserts that object has a property named `property` + */ + property(object: object, property: string, message?: string): void; + /** + * Asserts that object does not have a property named `property` + */ + notProperty(object: object, property: string, message?: string): void; + /** + * Asserts that object has a property named `property` with value `value` (===) + */ + propertyVal(object: object, property: string, value: any, message?: string): void; + /** + * Asserts that object does not have a property named `property` with value `value` (===) + */ + notPropertyVal(object: object, property: string, value: any, message?: string): void; + /** + * Asserts that object has a property named `property` with a value `value` + */ + deepPropertyVal(object: object, property: string, value: any, message?: string): void; + /** + * Asserts that object does not have a property named `property` with value `value` + */ + notDeepPropertyVal(object: object, property: string, value: any, message?: string): void; + /** + * Asserts that object has an owned property named `property` + */ + ownProperty(object: object, property: string, message?: string): void; + /** + * Asserts that object does not have an owned property named `property` + */ + notOwnProperty(object: object, property: string, message?: string): void; + /** + * Asserts that object has an owned property named `property` with value `value`(===) + */ + ownPropertyVal(object: object, property: string, value: any, message?: string): void; + /** + * Asserts that object does not have an owned property named `property` with value `value`(===) + */ + notOwnPropertyVal(object: object, property: string, value: any, message?: string): void; + /** + * Asserts that object has an owned property named `property` with value `value` + */ + deepOwnPropertyVal(object: object, property: string, value: any, message?: string): void; + /** + * Asserts that object does not have an owned property named `property` with value `value`(===) + */ + notDeepOwnPropertyVal(object: object, property: string, value: any, message?: string): void; + /** + * Asserts that object has a property named `property` + */ + nestedProperty(object: object, property: string, message?: string): void; + /** + * Asserts that object does not have a property named `property` + */ + notNestedProperty(object: object, property: string, message?: string): void; + /** + * Asserts that object has a property named `property` with value `value`(===) + */ + nestedPropertyVal(object: object, property: string, value: any, message?: string): void; + /** + * Asserts that object does not have a property named `property` with value `value`(===) + */ + notNestedPropertyVal(object: object, property: string, value: any, message?: string): void; + /** + * Asserts that object has a property named `property` with value `value` + */ + deepNestedPropertyVal(object: object, property: string, value: any, message?: string): void; + /** + * Asserts that object does not have a property named `property` with value `value` + */ + notDeepNestedPropertyVal(object: object, property: string, value: any, message?: string): void; + /** + * Asserts that expected has a length property with value `length` + */ + lengthOf(expected: any, length: number, message?: string): void; + /** + * Asserts that object has at least one key from `keys` + */ + hasAnyKeys(object: object, keys: string | string[] | object, message?: string): void; + /** + * Asserts that object has all and only all of the keys provided + */ + hasAllKeys(object: object, keys: string | string[] | object, message?: string): void; + /** + * Asserts that object has all the keys provided but maybe more + */ + containsAllKeys(object: object, keys: string | string[] | object, message?: string): void; + /** + * Asserts that object does not have any provided key + */ + doesNotHaveAnyKeys(object: object, keys: string | string[] | object, message?: string): void; + /** + * Asserts that object does not have all the keys provided + */ + doesNotHaveAllKeys(object: object, keys: string | string[] | object, message?: string): void; + /** + * Asserts that object has at least one of the keys provided + */ + hasAnyDeepKeys(object: object, keys: string | string[] | object, message?: string): void; + /** + * Asserts that object has all and only all of the keys provided + */ + hasAllDeepKeys(object: object, keys: string | string[] | object, message?: string): void; + /** + * Asserts that object has all the keys provided but maybe more + */ + containsAllDeepKeys(object: object, keys: string | string[] | object, message?: string): void; + /** + * Asserts that object does not have any provided key + */ + doesNotHaveAnyDeepKeys(object: object, keys: string | string[] | object, message?: string): void; + /** + * Asserts that object does not have all the keys provided + */ + doesNotHaveAllDeepKeys(object: object, keys: string | string[] | object, message?: string): void; + /** + * Asserts that a function or an async functions throws an error + */ + throws(fn: () => void, errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): any; + throws(fn: () => Promise, errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): Promise; + /** + * Asserts that a function or an async functions throws an error + */ + throw(fn: () => void, errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): any; + throw(fn: () => Promise, errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): Promise; + /** + * Asserts that a function or an async function does not throw an error + */ + doesNotThrow(fn: () => Promise, errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): Promise; + doesNotThrow(fn: () => void, errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): any; + /** + * Compares two values using operator + */ + operator(value: any, operator: string, val2: any, message?: string): void; + /** + * Asserts that actual is expected +/- delta + */ + closeTo(actual: number, expected: number, delta: number, message?: string): void; + /** + * Asserts that actual is expect +/- delta + */ + approximately(actual: number, expected: number, delta: number, message?: string): void; + /** + * Asserts that arrays have the same members in any order (===) + */ + sameMembers(set1: any[], set2: any[], message?: string): void; + /** + * Asserts that arrays do not have the same members in any order (===) + */ + notSameMembers(set1: any[], set2: any[], message?: string): void; + /** + * Asserts that arrays have the same members in any order + */ + sameDeepMembers(set1: any[], set2: any[], message?: string): void; + /** + * Asserts that arrays do not have the same members in any order + */ + notSameDeepMembers(set1: any[], set2: any[], message?: string): void; + /** + * Asserts that arrays have the same members in the same order (===) + */ + sameOrderedMembers(set1: any[], set2: any[], message?: string): void; + /** + * Asserts that arrays do not have the same members in the same order (===) + */ + notSameOrderedMembers(set1: any[], set2: any[], message?: string): void; + /** + * Asserts that arrays have the same members in the same order + */ + sameDeepOrderedMembers(set1: any[], set2: any[], message?: string): void; + /** + * Asserts that arrays do not have the same members in the same order + */ + notSameDeepOrderedMembers(set1: any[], set2: any[], message?: string): void; + /** + * Asserts that subset is included in superset in any order (===) + */ + includeMembers(superset: any[], subset: any[], message?: string): void; + /** + * Asserts that subset is not included in superset in any order (===) + */ + notIncludeMembers(superset: any[], subset: any[], message?: string): void; + /** + * Asserts that subset is included in superset in any order + */ + includeDeepMembers(superset: any[], subset: any[], message?: string): void; + /** + * Asserts that subset is not included in superset in any order + */ + notIncludeDeepMembers(superset: any[], subset: any[], message?: string): void; + /** + * Asserts that subset is included in superset in the same order (===) + */ + includeOrderedMembers(superset: any[], subset: any[], message?: string): void; + /** + * Asserts that subset is not included in superset in the same order (===) + */ + notIncludeOrderedMembers(superset: any[], subset: any[], message?: string): void; + /** + * Asserts that subset is included in superset in the same order + */ + includeDeepOrderedMembers(superset: any[], subset: any[], message?: string): void; + /** + * Asserts that subset is not included in superset in the same order + */ + notIncludeDeepOrderedMembers(superset: any[], subset: any[], message?: string): void; + /** + * Asserts that list includes inList + */ + oneOf(inList: any, list: any[], message?: string): void; + /** + * Asserts that a function changes the value of a property + */ + changes(fn: () => void, object: object, property: string, message?: string): void; + /** + * Asserts that a function changes the value of a property by delta + */ + changesBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; + /** + * Asserts that a function does not changes the value of a property + */ + doesNotChange(fn: () => void, object: object, property: string, message?: string): void; + /** + * Asserts that a function does not change the value of a property or of a function’s return value by delta + */ + changesButNotBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; + /** + * Asserts that a function increases a numeric object property + */ + increases(fn: () => void, object: object, property: string, message?: string): void; + /** + * Asserts that a function increases a numeric object property or a function’s return value by delta + */ + increasesBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; + /** + * Asserts that a function does not increase a numeric object property + */ + doesNotIncrease(fn: () => void, object: object, property: string, message?: string): void; + /** + * Asserts that a function does not increase a numeric object property or function’s return value by delta + */ + increasesButNotBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; + /** + * Asserts that a function decreases the value of a property + */ + decreases(fn: () => void, object: object, property: string, message?: string): void; + /** + * Asserts that a function decreases the value of a property by delta + */ + decreasesBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; + /** + * Asserts that a function does not decrease the value of a property + */ + doesNotDecrease(fn: () => void, object: object, property: string, message?: string): void; + /** + * Asserts that a function does not decrease the value of a property or a function's return value by delta + */ + doesNotDecreaseBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; + /** + * Asserts that a function does not decreases a numeric object property or a function’s return value by delta + */ + decreasesButNotBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; + /** + * Throws an error if value is truthy + */ + ifError(value: any): void; + /** + * Asserts that object is extensible + */ + isExtensible(object: object, message?: string): void; + /** + * Asserts that object is extensible + */ + extensible(object: object, message?: string): void; + /** + * Asserts that object is not extensible + */ + isNotExtensible(object: object, message?: string): void; + /** + * Asserts that object is not extensible + */ + notExtensible(object: object, message?: string): void; + /** + * Asserts that object is sealed + */ + isSealed(object: object, message?: string): void; + /** + * Asserts that object is sealed + */ + sealed(object: object, message?: string): void; + /** + * Asserts that object is not sealed + */ + isNotSealed(object: object, message?: string): void; + /** + * Asserts that object is not sealed + */ + notSealed(object: object, message?: string): void; + /** + * Asserts that object is frozen + */ + isFrozen(object: object, message?: string): void; + /** + * Asserts that object is frozen + */ + frozen(object: object, message?: string): void; + /** + * Asserts that object is not frozen + */ + isNotFrozen(object: object, message?: string): void; + /** + * Asserts that object is not frozen + */ + notFrozen(object: object, message?: string): void; + /** + * Asserts that value is empty + */ + isEmpty(value: any, message?: string): void; + /** + * Asserts that value is empty + */ + empty(value: any, message?: string): void; + /** + * Asserts that value is not empty + */ + isNotEmpty(value: any, message?: string): void; + /** + * Asserts that value is not empty + */ + notEmpty(value: any, message?: string): void; + } + + interface ExpectFunction { + (value: shani.util.I.Spy, message?: string): MockAssertions; + (value: any, message?: string): Assertion; + fail(actual: any, expected: any, message?: string, operator?: any): void; + } + + interface LanguageChains { + to: this; + be: this; + been: this; + is: this; + that: this; + which: this; + and: this; + has: this; + have: this; + with: this; + at: this; + of: this; + same: this; + but: this; + does: this; + } + + interface Assertion extends LanguageChains { + /** + * Negates all following assertion in the chain + */ + not: this; + /** + * Causes following assertions to use deep equality + */ + deep: this; + /** + * Enables dot- and bracket-notation in following property and include assertions + */ + nested: this; + /** + * Causes following property and incude assertions to ignore inherited properties + */ + own: this; + /** + * Causes following members assertions to require that members be in the same order + */ + ordered: this; + /** + * Causes following keys assertions to only require that the target have at least one of the given keys + */ + any: this; + /** + * Causes following keys assertions to require that the target have all of the given keys + */ + all: this; + /** + * Asserts that the target's type is `type` + */ + a(type: PossibleTypes, message?: string): this; + a(type: string, message?: string): this; + /** + * Asserts that the target's type is `type` + */ + an(type: PossibleTypes, message?: string): this; + an(type: string, message?: string): this; + /** + * Asserts that the target includes the given value + */ + include(value: any, message?: string): this; + /** + * Asserts that the target includes the given value + */ + includes(value: any, message?: string): this; + /** + * Asserts that the target contains the given value + */ + contain(value: any, message?: string): this; + /** + * Asserts that the target contains the given value + */ + contains(value: any, message?: string): this; + /** + * Asserts that the target is non-strictly equal to true + */ + ok: this; + /** + * Asserts that the target is true + */ + true: this; + /** + * Asserts that the target is false + */ + false: this; + /** + * Asserts that the target is null + */ + null: this; + /** + * Asserts that the target is undefined + */ + undefined: this; + /** + * Asserts that the target is NaN + */ + NaN: this; + /** + * Asserts that the target is neither null nor undefined + */ + exist: this; + /** + * Asserts that the target is empty + */ + empty: this; + /** + * Asserts that the target is an arguments object + */ + arguments: this; + /** + * Asserts that the target is an arguments object + */ + Arguments: this; + /** + * Asserts that the target is strictly equal to value(===) + */ + equal(value: any, message?: string): this; + /** + * Asserts that the target is strictly equal to value(===) + */ + equals(value: any, message?: string): this; + /** + * Asserts that the target is strictly equal to value(===) + */ + eq(value: any, message?: string): this; + /** + * Asserts that the target is deeply equal to object + */ + eql(object: any, message?: string): this; + /** + * Asserts that the target is deeply equal to object + */ + eqls(object: any, message?: string): this; + /** + * Asserts that the target has the same length length and elements as array in the same order + */ + eqlArray(array: any[], message?: string): this; + /** + * Asserts that target > n + */ + above(n: number, message?: string): this; + /** + * Asserts that target > n + */ + gt(n: number, message?: string): this; + /** + * Asserts that target > n + */ + greaterThan(n: number, message?: string): this; + /** + * Asserts that target >= n + */ + least(n: number, message?: string): this; + /** + * Asserts that target >= n + */ + gte(n: number, message?: string): this; + /** + * Asserts that target < n + */ + below(n: number, message?: string): this; + /** + * Asserts that target < n + */ + lt(n: number, message?: string): this; + /** + * Asserts that target < n + */ + lessThan(n: number, message?: string): this; + /** + * Asserts that target <= n + */ + most(n: number, message?: string): this; + /** + * Asserts that target <= n + */ + lte(n: number, message?: string): this; + /** + * Asserts that start <= target <= end + */ + within(start: number, end: number, message?: string): this; + /** + * Asserts that the target is an instance of constructor + */ + instanceof(constructor: object, message?: string): this; + /** + * Asserts that the target is an instance of constructor + */ + instanceOf(constructor: object, message?: string): this; + /** + * Asserts that the target has a property name `name` with value `value` + */ + property(name: string, value?: any, message?: string): this; + /** + * Asserts that the target has its own property name `name` with value `value` + */ + ownProperty(name: string, value?: any, message?: string): this; + /** + * Asserts that the target has its own property name `name` with value `value` + */ + haveOwnProperty(name: string, value?: any, message?: string): this; + /** + * Asserts that the target has its own property descriptor with name `name` and value `value` + */ + ownPropertyDescriptor(name: string, descriptor?: object, message?: string): this; + /** + * Asserts that the target has its own property descriptor with name `name` and value `value` + */ + haveOwnPropertyDescriptor(name: string, descriptor?: object, message?: string): this; + /** + * Asserts that the target's property length equal to n + */ + length(n: number, message?: string): this; + /** + * Asserts that the target's property length equal to n + */ + lengthOf(n: number, message?: string): this; + /** + * Asserts that the target matches the regular expression regExp + */ + match(regExp: RegExp, message?: string): this; + /** + * Asserts that the target matches the regular expression regExp + */ + matches(regExp: RegExp, message?: string): this; + /** + * Asserts that the target contains str as a substring + */ + string(str: string, message?: string): this; + /** + * Assert that the target has the given keys + */ + key(key: string | string[] | object): this; + key(...keys: string[]): this; + /** + * Assert that the target has the given keys + */ + keys(key: string | string[] | object): this; + keys(...keys: string[]): this; + /** + * Assert that the target throws an error + */ + throw(errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): this; + /** + * Assert that the target throws an error + */ + throws(errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): this; + /** + * Assert that the target throws an error + */ + Throw(errorLike?: Error, errMsgMatcher?: string | RegExp): this; + /** + * Assert that the target has a method with name `method`. For functions checks the prototype + */ + respondTo(method: string, message?: string): this; + /** + * Assert that the target has a method with name `method`. For functions checks the prototype + */ + respondsTo(method: string, message?: string): this; + /** + * Makes respondsTo behave like the target is not a function + */ + itself: this; + /** + * Asserts that matches returns a truthy value with the target as the first argument + */ + satisfy(matcher: () => boolean, message?: string): this; + /** + * Asserts that matches returns a truthy value with the target as the first argument + */ + satisfies(matcher: () => boolean, message?: string): this; + /** + * Asserts that the target is expected +/- delta + */ + closeTo(expected: number, delta: number, message?: string): this; + /** + * Asserts that the target is expected +/- delta + */ + approximately(expected: number, delta: number, message?: string): this; + /** + * Asserts that the target array has the same members as the given + */ + members(set: any[], message?: string): this; + /** + * Asserts that the target is the member of list + */ + oneOf(list: any[], message?: string): this; + /** + * Asserts that fn returns a different value after the target's invokation than before + */ + change(fn: () => any, message?: string): this; + /** + * Asserts that the target's invokation changes subject's property + */ + change(subject: object, property: string, message?: string): this; + /** + * Asserts that fn returns a different value after the target's invokation than before + */ + changes(fn: () => any, message?: string): this; + /** + * Asserts that the target's invokation changes subject's property + */ + changes(subject: object, property: string, message?: string): this; + /** + * Asserts that fn returns a greater number after the target's invokation than before + */ + increase(fn: () => number, message?: string): this; + /** + * Asserts that the target's invokation increases subject's property + */ + increase(subject: object, property?: string, message?: string): this; + /** + * Asserts that fn returns a greater number after the target's invokation than before + */ + increases(fn: () => number, message?: string): this; + /** + * Asserts that the target's invokation increases subject's property + */ + increases(subject: object, property?: string, message?: string): this; + /** + * Asserts that fn returns a lesser number after the target's invokation than before + */ + decrease(fn: () => number, message?: string): this; + /** + * Asserts that the target's invokation decreases subject's property + */ + decrease(subject: object, property?: string, message?: string): this; + /** + * Asserts that fn returns a lesser number after the target's invokation than before + */ + decreases(fn: () => number, message?: string): this; + /** + * Asserts that the target's invokation decreases subject's property + */ + decreases(subject: object, property?: string, message?: string): this; + /** + * Asserts that the value was decreased/increased by delta + */ + by(delta: number, message?: string): this; + /** + * Asserts that the target is extensible + */ + extensible: this; + /** + * Asserts that the target is sealed + */ + sealed: this; + /** + * Asserts that the target is frozen + */ + frozen: this; + /** + * Asserts that the target is a finite number + */ + finite: this; + } + + interface MockAssertions extends Assertion { + /** + * Asserts that the spy has been called + */ + called: this; + /** + * Asserts that the spy has been called n times + */ + callCount(n: number): this; + /** + * Asserts that the spy has been called once + */ + calledOnce: this; + /** + * Asserts that the spy has been called twice + */ + calledTwice: this; + /** + * Asserts that the spy has been been called with `new` + */ + calledThrice: this; + /** + * Asserts that the spy has been called before anotherSpy + */ + calledBefore(anotherSpy: shani.util.I.Spy): this; + /** + * Asserts that the spy has been called after anotherSpy + */ + calledAfter(anotherSpy: shani.util.I.Spy): this; + /** + * Asserts that the spy has been called immediately before anotherSpy + */ + calledImmediatelyBefore(anotherSpy: shani.util.I.Spy): this; + /** + * Asserts that the spy has been called immediately after anotherSpy + */ + calledImmediatelyAfter(anotherSpy: shani.util.I.Spy): this; + /** + * Asserts that the spy has been called with context as this value + */ + calledOn(context: object): this; + /** + * Asserts that the spy has been called with the given arguments + */ + calledWith(...args: any[]): this; + /** + * Asserts that the spy has been called exactly with the given arguments + */ + calledWithExactly(...args: any[]): this; + /** + * Asserts that the spy has been called with matching arguments + */ + calledWithMatch(...args: any[]): this; + /** + * Asserts that the spy returned value + */ + returned(value: any): this; + /** + * Asserts that the spy threw error + */ + thrown(error: any): this; + /** + * Asserts that the spy threw error + */ + threw(error: any): this; + } } - interface Config { - /** - * Include stack in Assertion error message - */ - includeStack: boolean; - /** - * Include `showDiff` flag in the thrown errors - */ - showDiff: boolean; - /** - * Length threshold for actual and expected values in assertion errors - */ - truncateThreshold: number; - /** - * use Proxy to throw an error when a non-existent property is read - */ - useProxy: boolean; - /** - * properties that should be ignored instead of throwing an error if they do not exist on the assertion - */ - proxyExcludedKeys: string[]; + class AssertionError extends x.Exception { + constructor(message?: string, props?: object, ssf?: object) } - type PossibleTypes = adone.util.I.PossibleTypes | "array"; - - type UseFunction = (fn: () => void) => assertion; - - type LoadInterfaceFunction = () => assertion; - - interface AssertFunction { - /** - * Asserts that value is truthy - */ - (value: any, message?: string): void; - /** - * Throws an AssertionError, like node.js - */ - fail(actual?: any, expected?: any, message?: string, operator?: any): void; - /** - * Asserts that value is truthy - */ - isOk(value: any, message?: string): void; - /** - * Asserts that value is truthy - */ - ok(value: any, message?: string): void; - /** - * Asserts that value is falsy - */ - isNotOk(value: any, message?: string): void; - /** - * Asserts that value is falsy - */ - notOk(value: any, message?: string): void; - /** - * Asserts non-strict equality - */ - equal(actual: any, expected: any, message?: string): void; - /** - * Asserts non-strict inequality - */ - notEqual(actual: any, expected: any, message?: string): void; - /** - * Asserts strict equality - */ - strictEqual(actual: any, expected: any, message?: string): void; - /** - * Asserts strict inequality - */ - notStrictEqual(actual: any, expected: any, message?: string): void; - /** - * Asserts that actual is deeply equal to expected - */ - deepEqual(actual: any, expected: any, message?: string): void; - /** - * Asserts that actual is deeply equal to expected - */ - deepStrictEqual(actual: any, expected: any, message?: string): void; - /** - * Asserts that actual and expected have the same length and the same members (===) - */ - equalArrays(actual: any[], expected: any[], message?: string): void; - /** - * Asserts that actual is not deeply equal to expected - */ - notDeepEqual(actual: any, expected: any, message?: string): void; - /** - * Asserts that value > above - */ - isAbove(value: any, above: any, message?: string): void; - /** - * Asserts that value >= atLeast - */ - isAtLeast(value: any, atLeast: any, message?: string): void; - /** - * Asserts that value < below - */ - isBelow(value: any, below: any, message?: string): void; - /** - * Asserts that value <= atMost - */ - isAtMost(value: any, atMost: any, message?: string): void; - /** - * Asserts that value is true - */ - isTrue(value: any, message?: string): void; - /** - * Asserts that value is not true - */ - isNotTrue(value: any, message?: string): void; - /** - * Asserts that value is false - */ - isFalse(value: any, message?: string): void; - /** - * Asserts that value is not false - */ - isNotFalse(value: any, message?: string): void; - /** - * Asserts that value is null - */ - isNull(value: any, message?: string): void; - /** - * Asserts that valus is not null - */ - isNotNull(value: any, message?: string): void; - /** - * Asserts that value is NaN - */ - isNaN(value: any, message?: string): void; - /** - * Asserts that value is not NaN - */ - isNotNaN(value: any, message?: string): void; - /** - * Asserts that value is neither null nor undefined - */ - exists(value: any, message?: string): void; - /** - * Asserts that value is either null or undefined - */ - notExists(value: any, message?: string): void; - /** - * Asserts that value is undefined - */ - isUndefined(value: any, message?: string): void; - /** - * Asserts that value is not undefined - */ - isDefined(value: any, message?: string): void; - /** - * Asserts that value is a function - */ - isFunction(value: any, message?: string): void; - /** - * Asserts that value is not a function - */ - isNotFunction(value: any, message?: string): void; - /** - * Asserts that value is an object of type Object - */ - isObject(value: any, message?: string): void; - /** - * Asserts that value is not an object of type Object - */ - isNotObject(value: any, message?: string): void; - /** - * Asserts that value is an array - */ - isArray(value: any, message?: string): void; - /** - * Asserts that value is not an array - */ - isNotArray(value: any, message?: string): void; - /** - * Asserts that value is a string - */ - isString(value: any, message?: string): void; - /** - * Asserts that value is not a string - */ - isNotString(value: any, message?: string): void; - /** - * Asserts that value is a number - */ - isNumber(value: any, message?: string): void; - /** - * Asserts that value is not a number - */ - isNotNumber(value: any, message?: string): void; - /** - * Asserts that value is a finite number - */ - isFinite(value: any, message?: string): void; - /** - * Asserts that value is a boolean - */ - isBoolean(value: any, message?: string): void; - /** - * Asserts that value is not a boolean - */ - isNotBoolean(value: any, message?: string): void; - /** - * Asserts that value's type is `type` - */ - typeOf(value: any, type: I.PossibleTypes, message?: string): void; - typeOf(value: any, type: string, message?: string): void; - /** - * Assert that value's type is not `type` - */ - notTypeOf(value: any, type: I.PossibleTypes, message?: string): void; - notTypeOf(value: any, type: string, message?: string): void; - /** - * Asserts that value is an instance of constructor - */ - instanceOf(value: any, constructor: object, message?: string): void; - /** - * Asserts that value is not an instance of constructor - */ - notInstanceOf(value: any, constructor: object, message?: string): void; - /** - * Asserts that expected includes inc - */ - include(expected: T[], inc: T, message?: string): void; - include(expected: string, inc: string, message?: string): void; - /** - * Asserts that expected does not include inc - */ - notInclude(expected: T[], inc: T, message?: string): void; - notInclude(expected: string, inc: string, message?: string): void; - /** - * Asserts that expected includes inc - */ - deepInclude(expected: T[], inc: T, message?: string): void; - deepInclude(expected: string, inc: string, message?: string): void; - /** - * Asserts that expected does not include inc - */ - notDeepInclude(expected: T[], inc: T, message?: string): void; - notDeepInclude(expected: string, inc: string, message?: string): void; - /** - * Asserts that expected includes inc - */ - nestedInclude(expected: object, inc: object, message?: string): void; - /** - * Asserts that expected does not include inc - */ - notNestedInclude(expected: object, inc: object, message?: string): void; - /** - * Assert that expected includes inc - */ - deepNestedInclude(expected: object, inc: object, message?: string): void; - /** - * Assert that expected includes inc - */ - notDeepNestedInclude(expected: object, inc: object, message?: string): void; - /** - * Assert that expected includes inc - */ - ownInclude(expected: object, inc: object, message?: string): void; - /** - * Assert that expected does not include inc - */ - notOwnInclude(expected: object, inc: object, message?: string): void; - /** - * Assert that expected includes inc - */ - deepOwnInclude(expected: object, inc: object, message?: string): void; - /** - * Assert that expected does not include inc - */ - notDeepOwnInclude(expected: object, inc: object, message?: string): void; - /** - * Asserts that expected matches the regular expression regExp - */ - match(expected: any, regExp: RegExp, message?: string): void; - /** - * Asserts that expected does not match the regular expression regExp - */ - notMatch(expected: any, regExp: RegExp, message?: string): void; - /** - * Asserts that object has a property named `property` - */ - property(object: object, property: string, message?: string): void; - /** - * Asserts that object does not have a property named `property` - */ - notProperty(object: object, property: string, message?: string): void; - /** - * Asserts that object has a property named `property` with value `value` (===) - */ - propertyVal(object: object, property: string, value: any, message?: string): void; - /** - * Asserts that object does not have a property named `property` with value `value` (===) - */ - notPropertyVal(object: object, property: string, value: any, message?: string): void; - /** - * Asserts that object has a property named `property` with a value `value` - */ - deepPropertyVal(object: object, property: string, value: any, message?: string): void; - /** - * Asserts that object does not have a property named `property` with value `value` - */ - notDeepPropertyVal(object: object, property: string, value: any, message?: string): void; - /** - * Asserts that object has an owned property named `property` - */ - ownProperty(object: object, property: string, message?: string): void; - /** - * Asserts that object does not have an owned property named `property` - */ - notOwnProperty(object: object, property: string, message?: string): void; - /** - * Asserts that object has an owned property named `property` with value `value`(===) - */ - ownPropertyVal(object: object, property: string, value: any, message?: string): void; - /** - * Asserts that object does not have an owned property named `property` with value `value`(===) - */ - notOwnPropertyVal(object: object, property: string, value: any, message?: string): void; - /** - * Asserts that object has an owned property named `property` with value `value` - */ - deepOwnPropertyVal(object: object, property: string, value: any, message?: string): void; - /** - * Asserts that object does not have an owned property named `property` with value `value`(===) - */ - notDeepOwnPropertyVal(object: object, property: string, value: any, message?: string): void; - /** - * Asserts that object has a property named `property` - */ - nestedProperty(object: object, property: string, message?: string): void; - /** - * Asserts that object does not have a property named `property` - */ - notNestedProperty(object: object, property: string, message?: string): void; - /** - * Asserts that object has a property named `property` with value `value`(===) - */ - nestedPropertyVal(object: object, property: string, value: any, message?: string): void; - /** - * Asserts that object does not have a property named `property` with value `value`(===) - */ - notNestedPropertyVal(object: object, property: string, value: any, message?: string): void; - /** - * Asserts that object has a property named `property` with value `value` - */ - deepNestedPropertyVal(object: object, property: string, value: any, message?: string): void; - /** - * Asserts that object does not have a property named `property` with value `value` - */ - notDeepNestedPropertyVal(object: object, property: string, value: any, message?: string): void; - /** - * Asserts that expected has a length property with value `length` - */ - lengthOf(expected: any, length: number, message?: string): void; - /** - * Asserts that object has at least one key from `keys` - */ - hasAnyKeys(object: object, keys: string | string[] | object, message?: string): void; - /** - * Asserts that object has all and only all of the keys provided - */ - hasAllKeys(object: object, keys: string | string[] | object, message?: string): void; - /** - * Asserts that object has all the keys provided but maybe more - */ - containsAllKeys(object: object, keys: string | string[] | object, message?: string): void; - /** - * Asserts that object does not have any provided key - */ - doesNotHaveAnyKeys(object: object, keys: string | string[] | object, message?: string): void; - /** - * Asserts that object does not have all the keys provided - */ - doesNotHaveAllKeys(object: object, keys: string | string[] | object, message?: string): void; - /** - * Asserts that object has at least one of the keys provided - */ - hasAnyDeepKeys(object: object, keys: string | string[] | object, message?: string): void; - /** - * Asserts that object has all and only all of the keys provided - */ - hasAllDeepKeys(object: object, keys: string | string[] | object, message?: string): void; - /** - * Asserts that object has all the keys provided but maybe more - */ - containsAllDeepKeys(object: object, keys: string | string[] | object, message?: string): void; - /** - * Asserts that object does not have any provided key - */ - doesNotHaveAnyDeepKeys(object: object, keys: string | string[] | object, message?: string): void; - /** - * Asserts that object does not have all the keys provided - */ - doesNotHaveAllDeepKeys(object: object, keys: string | string[] | object, message?: string): void; - /** - * Asserts that a function or an async functions throws an error - */ - throws(fn: () => void, errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): any; - throws(fn: () => Promise, errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): Promise; - /** - * Asserts that a function or an async functions throws an error - */ - throw(fn: () => void, errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): any; - throw(fn: () => Promise, errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): Promise; - /** - * Asserts that a function or an async function does not throw an error - */ - doesNotThrow(fn: () => Promise, errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): Promise; - doesNotThrow(fn: () => void, errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): any; - /** - * Compares two values using operator - */ - operator(value: any, operator: string, val2: any, message?: string): void; - /** - * Asserts that actual is expected +/- delta - */ - closeTo(actual: number, expected: number, delta: number, message?: string): void; - /** - * Asserts that actual is expect +/- delta - */ - approximately(actual: number, expected: number, delta: number, message?: string): void; - /** - * Asserts that arrays have the same members in any order (===) - */ - sameMembers(set1: any[], set2: any[], message?: string): void; - /** - * Asserts that arrays do not have the same members in any order (===) - */ - notSameMembers(set1: any[], set2: any[], message?: string): void; - /** - * Asserts that arrays have the same members in any order - */ - sameDeepMembers(set1: any[], set2: any[], message?: string): void; - /** - * Asserts that arrays do not have the same members in any order - */ - notSameDeepMembers(set1: any[], set2: any[], message?: string): void; - /** - * Asserts that arrays have the same members in the same order (===) - */ - sameOrderedMembers(set1: any[], set2: any[], message?: string): void; - /** - * Asserts that arrays do not have the same members in the same order (===) - */ - notSameOrderedMembers(set1: any[], set2: any[], message?: string): void; - /** - * Asserts that arrays have the same members in the same order - */ - sameDeepOrderedMembers(set1: any[], set2: any[], message?: string): void; - /** - * Asserts that arrays do not have the same members in the same order - */ - notSameDeepOrderedMembers(set1: any[], set2: any[], message?: string): void; - /** - * Asserts that subset is included in superset in any order (===) - */ - includeMembers(superset: any[], subset: any[], message?: string): void; - /** - * Asserts that subset is not included in superset in any order (===) - */ - notIncludeMembers(superset: any[], subset: any[], message?: string): void; - /** - * Asserts that subset is included in superset in any order - */ - includeDeepMembers(superset: any[], subset: any[], message?: string): void; - /** - * Asserts that subset is not included in superset in any order - */ - notIncludeDeepMembers(superset: any[], subset: any[], message?: string): void; - /** - * Asserts that subset is included in superset in the same order (===) - */ - includeOrderedMembers(superset: any[], subset: any[], message?: string): void; - /** - * Asserts that subset is not included in superset in the same order (===) - */ - notIncludeOrderedMembers(superset: any[], subset: any[], message?: string): void; - /** - * Asserts that subset is included in superset in the same order - */ - includeDeepOrderedMembers(superset: any[], subset: any[], message?: string): void; - /** - * Asserts that subset is not included in superset in the same order - */ - notIncludeDeepOrderedMembers(superset: any[], subset: any[], message?: string): void; - /** - * Asserts that list includes inList - */ - oneOf(inList: any, list: any[], message?: string): void; - /** - * Asserts that a function changes the value of a property - */ - changes(fn: () => void, object: object, property: string, message?: string): void; - /** - * Asserts that a function changes the value of a property by delta - */ - changesBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; - /** - * Asserts that a function does not changes the value of a property - */ - doesNotChange(fn: () => void, object: object, property: string, message?: string): void; - /** - * Asserts that a function does not change the value of a property or of a function’s return value by delta - */ - changesButNotBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; - /** - * Asserts that a function increases a numeric object property - */ - increases(fn: () => void, object: object, property: string, message?: string): void; - /** - * Asserts that a function increases a numeric object property or a function’s return value by delta - */ - increasesBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; - /** - * Asserts that a function does not increase a numeric object property - */ - doesNotIncrease(fn: () => void, object: object, property: string, message?: string): void; - /** - * Asserts that a function does not increase a numeric object property or function’s return value by delta - */ - increasesButNotBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; - /** - * Asserts that a function decreases the value of a property - */ - decreases(fn: () => void, object: object, property: string, message?: string): void; - /** - * Asserts that a function decreases the value of a property by delta - */ - decreasesBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; - /** - * Asserts that a function does not decrease the value of a property - */ - doesNotDecrease(fn: () => void, object: object, property: string, message?: string): void; - /** - * Asserts that a function does not decrease the value of a property or a function's return value by delta - */ - doesNotDecreaseBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; - /** - * Asserts that a function does not decreases a numeric object property or a function’s return value by delta - */ - decreasesButNotBy(fn: () => void, object: object, property: string, delta: number, message?: string): void; - /** - * Throws an error if value is truthy - */ - ifError(value: any): void; - /** - * Asserts that object is extensible - */ - isExtensible(object: object, message?: string): void; - /** - * Asserts that object is extensible - */ - extensible(object: object, message?: string): void; - /** - * Asserts that object is not extensible - */ - isNotExtensible(object: object, message?: string): void; - /** - * Asserts that object is not extensible - */ - notExtensible(object: object, message?: string): void; - /** - * Asserts that object is sealed - */ - isSealed(object: object, message?: string): void; - /** - * Asserts that object is sealed - */ - sealed(object: object, message?: string): void; - /** - * Asserts that object is not sealed - */ - isNotSealed(object: object, message?: string): void; - /** - * Asserts that object is not sealed - */ - notSealed(object: object, message?: string): void; - /** - * Asserts that object is frozen - */ - isFrozen(object: object, message?: string): void; - /** - * Asserts that object is frozen - */ - frozen(object: object, message?: string): void; - /** - * Asserts that object is not frozen - */ - isNotFrozen(object: object, message?: string): void; - /** - * Asserts that object is not frozen - */ - notFrozen(object: object, message?: string): void; - /** - * Asserts that value is empty - */ - isEmpty(value: any, message?: string): void; - /** - * Asserts that value is empty - */ - empty(value: any, message?: string): void; - /** - * Asserts that value is not empty - */ - isNotEmpty(value: any, message?: string): void; - /** - * Asserts that value is not empty - */ - notEmpty(value: any, message?: string): void; - } - - interface ExpectFunction { - (value: adone.shani.util.I.Spy, message?: string): MockAssertions; - (value: any, message?: string): Assertion; - fail(actual: any, expected: any, message?: string, operator?: any): void; - } - - interface LanguageChains { - to: this; - be: this; - been: this; - is: this; - that: this; - which: this; - and: this; - has: this; - have: this; - with: this; - at: this; - of: this; - same: this; - but: this; - does: this; - } - - interface Assertion extends LanguageChains { - /** - * Negates all following assertion in the chain - */ - not: this; - /** - * Causes following assertions to use deep equality - */ - deep: this; - /** - * Enables dot- and bracket-notation in following property and include assertions - */ - nested: this; - /** - * Causes following property and incude assertions to ignore inherited properties - */ - own: this; - /** - * Causes following members assertions to require that members be in the same order - */ - ordered: this; - /** - * Causes following keys assertions to only require that the target have at least one of the given keys - */ - any: this; - /** - * Causes following keys assertions to require that the target have all of the given keys - */ - all: this; - /** - * Asserts that the target's type is `type` - */ - a(type: I.PossibleTypes, message?: string): this; - a(type: string, message?: string): this; - /** - * Asserts that the target's type is `type` - */ - an(type: I.PossibleTypes, message?: string): this; - an(type: string, message?: string): this; - /** - * Asserts that the target includes the given value - */ - include(value: any, message?: string): this; - /** - * Asserts that the target includes the given value - */ - includes(value: any, message?: string): this; - /** - * Asserts that the target contains the given value - */ - contain(value: any, message?: string): this; - /** - * Asserts that the target contains the given value - */ - contains(value: any, message?: string): this; - /** - * Asserts that the target is non-strictly equal to true - */ - ok: this; - /** - * Asserts that the target is true - */ - true: this; - /** - * Asserts that the target is false - */ - false: this; - /** - * Asserts that the target is null - */ - null: this; - /** - * Asserts that the target is undefined - */ - undefined: this; - /** - * Asserts that the target is NaN - */ - NaN: this; - /** - * Asserts that the target is neither null nor undefined - */ - exist: this; - /** - * Asserts that the target is empty - */ - empty: this; - /** - * Asserts that the target is an arguments object - */ - arguments: this; - /** - * Asserts that the target is an arguments object - */ - Arguments: this; - /** - * Asserts that the target is strictly equal to value(===) - */ - equal(value: any, message?: string): this; - /** - * Asserts that the target is strictly equal to value(===) - */ - equals(value: any, message?: string): this; - /** - * Asserts that the target is strictly equal to value(===) - */ - eq(value: any, message?: string): this; - /** - * Asserts that the target is deeply equal to object - */ - eql(object: any, message?: string): this; - /** - * Asserts that the target is deeply equal to object - */ - eqls(object: any, message?: string): this; - /** - * Asserts that the target has the same length length and elements as array in the same order - */ - eqlArray(array: any[], message?: string): this; - /** - * Asserts that target > n - */ - above(n: number, message?: string): this; - /** - * Asserts that target > n - */ - gt(n: number, message?: string): this; - /** - * Asserts that target > n - */ - greaterThan(n: number, message?: string): this; - /** - * Asserts that target >= n - */ - least(n: number, message?: string): this; - /** - * Asserts that target >= n - */ - gte(n: number, message?: string): this; - /** - * Asserts that target < n - */ - below(n: number, message?: string): this; - /** - * Asserts that target < n - */ - lt(n: number, message?: string): this; - /** - * Asserts that target < n - */ - lessThan(n: number, message?: string): this; - /** - * Asserts that target <= n - */ - most(n: number, message?: string): this; - /** - * Asserts that target <= n - */ - lte(n: number, message?: string): this; - /** - * Asserts that start <= target <= end - */ - within(start: number, end: number, message?: string): this; - /** - * Asserts that the target is an instance of constructor - */ - instanceof(constructor: object, message?: string): this; - /** - * Asserts that the target is an instance of constructor - */ - instanceOf(constructor: object, message?: string): this; - /** - * Asserts that the target has a property name `name` with value `value` - */ - property(name: string, value?: any, message?: string): this; - /** - * Asserts that the target has its own property name `name` with value `value` - */ - ownProperty(name: string, value?: any, message?: string): this; - /** - * Asserts that the target has its own property name `name` with value `value` - */ - haveOwnProperty(name: string, value?: any, message?: string): this; - /** - * Asserts that the target has its own property descriptor with name `name` and value `value` - */ - ownPropertyDescriptor(name: string, descriptor?: object, message?: string): this; - /** - * Asserts that the target has its own property descriptor with name `name` and value `value` - */ - haveOwnPropertyDescriptor(name: string, descriptor?: object, message?: string): this; - /** - * Asserts that the target's property length equal to n - */ - length(n: number, message?: string): this; - /** - * Asserts that the target's property length equal to n - */ - lengthOf(n: number, message?: string): this; - /** - * Asserts that the target matches the regular expression regExp - */ - match(regExp: RegExp, message?: string): this; - /** - * Asserts that the target matches the regular expression regExp - */ - matches(regExp: RegExp, message?: string): this; - /** - * Asserts that the target contains str as a substring - */ - string(str: string, message?: string): this; - /** - * Assert that the target has the given keys - */ - key(key: string | string[] | object): this; - key(...keys: string[]): this; - /** - * Assert that the target has the given keys - */ - keys(key: string | string[] | object): this; - keys(...keys: string[]): this; - /** - * Assert that the target throws an error - */ - throw(errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): this; - /** - * Assert that the target throws an error - */ - throws(errorLike?: object, errMsgMatcher?: string | RegExp, message?: string): this; - /** - * Assert that the target throws an error - */ - Throw(errorLike?: Error, errMsgMatcher?: string | RegExp): this; - /** - * Assert that the target has a method with name `method`. For functions checks the prototype - */ - respondTo(method: string, message?: string): this; - /** - * Assert that the target has a method with name `method`. For functions checks the prototype - */ - respondsTo(method: string, message?: string): this; - /** - * Makes respondsTo behave like the target is not a function - */ - itself: this; - /** - * Asserts that matches returns a truthy value with the target as the first argument - */ - satisfy(matcher: () => boolean, message?: string): this; - /** - * Asserts that matches returns a truthy value with the target as the first argument - */ - satisfies(matcher: () => boolean, message?: string): this; - /** - * Asserts that the target is expected +/- delta - */ - closeTo(expected: number, delta: number, message?: string): this; - /** - * Asserts that the target is expected +/- delta - */ - approximately(expected: number, delta: number, message?: string): this; - /** - * Asserts that the target array has the same members as the given - */ - members(set: any[], message?: string): this; - /** - * Asserts that the target is the member of list - */ - oneOf(list: any[], message?: string): this; - /** - * Asserts that fn returns a different value after the target's invokation than before - */ - change(fn: () => any, message?: string): this; - /** - * Asserts that the target's invokation changes subject's property - */ - change(subject: object, property: string, message?: string): this; - /** - * Asserts that fn returns a different value after the target's invokation than before - */ - changes(fn: () => any, message?: string): this; - /** - * Asserts that the target's invokation changes subject's property - */ - changes(subject: object, property: string, message?: string): this; - /** - * Asserts that fn returns a greater number after the target's invokation than before - */ - increase(fn: () => number, message?: string): this; - /** - * Asserts that the target's invokation increases subject's property - */ - increase(subject: object, property?: string, message?: string): this; - /** - * Asserts that fn returns a greater number after the target's invokation than before - */ - increases(fn: () => number, message?: string): this; - /** - * Asserts that the target's invokation increases subject's property - */ - increases(subject: object, property?: string, message?: string): this; - /** - * Asserts that fn returns a lesser number after the target's invokation than before - */ - decrease(fn: () => number, message?: string): this; - /** - * Asserts that the target's invokation decreases subject's property - */ - decrease(subject: object, property?: string, message?: string): this; - /** - * Asserts that fn returns a lesser number after the target's invokation than before - */ - decreases(fn: () => number, message?: string): this; - /** - * Asserts that the target's invokation decreases subject's property - */ - decreases(subject: object, property?: string, message?: string): this; - /** - * Asserts that the value was decreased/increased by delta - */ - by(delta: number, message?: string): this; - /** - * Asserts that the target is extensible - */ - extensible: this; - /** - * Asserts that the target is sealed - */ - sealed: this; - /** - * Asserts that the target is frozen - */ - frozen: this; - /** - * Asserts that the target is a finite number - */ - finite: this; - } - - interface MockAssertions extends Assertion { - /** - * Asserts that the spy has been called - */ - called: this; - /** - * Asserts that the spy has been called n times - */ - callCount(n: number): this; - /** - * Asserts that the spy has been called once - */ - calledOnce: this; - /** - * Asserts that the spy has been called twice - */ - calledTwice: this; - /** - * Asserts that the spy has been been called with `new` - */ - calledThrice: this; - /** - * Asserts that the spy has been called before anotherSpy - */ - calledBefore(anotherSpy: adone.shani.util.I.Spy): this; - /** - * Asserts that the spy has been called after anotherSpy - */ - calledAfter(anotherSpy: adone.shani.util.I.Spy): this; - /** - * Asserts that the spy has been called immediately before anotherSpy - */ - calledImmediatelyBefore(anotherSpy: adone.shani.util.I.Spy): this; - /** - * Asserts that the spy has been called immediately after anotherSpy - */ - calledImmediatelyAfter(anotherSpy: adone.shani.util.I.Spy): this; - /** - * Asserts that the spy has been called with context as this value - */ - calledOn(context: object): this; - /** - * Asserts that the spy has been called with the given arguments - */ - calledWith(...args: any[]): this; - /** - * Asserts that the spy has been called exactly with the given arguments - */ - calledWithExactly(...args: any[]): this; - /** - * Asserts that the spy has been called with matching arguments - */ - calledWithMatch(...args: any[]): this; - /** - * Asserts that the spy returned value - */ - returned(value: any): this; - /** - * Asserts that the spy threw error - */ - thrown(error: any): this; - /** - * Asserts that the spy threw error - */ - threw(error: any): this; - } + const config: I.Config; + const use: I.UseFunction; + const loadMockInterface: I.LoadInterfaceFunction; + const loadExpectInterface: I.LoadInterfaceFunction; + const loadAssertInterface: I.LoadInterfaceFunction; + const assert: I.AssertFunction; + const expect: I.ExpectFunction; } - - class AssertionError extends adone.x.Exception { - constructor(message?: string, props?: object, ssf?: object) - } - - const config: I.Config; - const use: I.UseFunction; - const loadMockInterface: I.LoadInterfaceFunction; - const loadExpectInterface: I.LoadInterfaceFunction; - const loadAssertInterface: I.LoadInterfaceFunction; - const assert: I.AssertFunction; - const expect: I.ExpectFunction; } diff --git a/types/adone/glosses/collections.d.ts b/types/adone/glosses/collections.d.ts new file mode 100644 index 0000000000..c21c13abb9 --- /dev/null +++ b/types/adone/glosses/collections.d.ts @@ -0,0 +1,1966 @@ +declare namespace adone { + namespace collection { + namespace I.LinkedList { + /** + * Represents the node of a linked list + */ + interface Node { + /** + * The next node + */ + next?: Node; + + /** + * The previous node + */ + prev?: Node; + + /** + * The value this node contains + */ + value: T; + } + } + + /** + * Represents a linked list + */ + class LinkedList { + /** + * The maximum length of the list + */ + readonly maxLength: number; + + /** + * Current length of the list + */ + readonly length: number; + + /** + * Whether the list is autoresizable + */ + readonly autoresize: boolean; + + /** + * @param maxLength Maximum length of the linked list + */ + constructor(maxLength?: number); + + /** + * Whether the list is full + */ + readonly full: boolean; + + /** + * Whether the list is empty + */ + readonly empty: boolean; + + /** + * Resizes the list + */ + resize(newLength: number): this; + + /** + * Adds a new node to the end + * + * @returns Added node + */ + push(value: T): I.LinkedList.Node; + + /** + * Removes the last node, returns undefined if the list is empty + */ + pop(): T | undefined; + + /** + * Removes the first node, returns undefined if the list is empty + */ + shift(): T | undefined; + + /** + * Inserts a new node at the beginning of the list + * + * @returns Added node + */ + unshift(value: T): I.LinkedList.Node; + + /** + * Moves the given node to the end of the list + */ + pushNode(node: I.LinkedList.Node): void; + + /** + * Moved the given node to the beginning of the list + */ + unshiftNode(node: I.LinkedList.Node): void; + + /** + * Removes the given node from the list + */ + removeNode(node: I.LinkedList.Node): void; + + /** + * Clears the list + * + * @param strong Whether to reset all the node's values + */ + clear(strong?: boolean): void; + + /** + * Convers the list to an array + */ + toArray(): T[]; + + /** + * The first element of the list + */ + readonly front: T; + + /** + * The last element of the list + */ + readonly back: T; + + /** + * Returns an iterator over the list elements + */ + [Symbol.iterator](): IterableIterator; + + /** + * Returns the next node for the given node + */ + nextNode(node: I.LinkedList.Node): I.LinkedList.Node; + + /** + * Maps this linked list to a new one using the given function + */ + map(fn: (value: T, index: number) => R): LinkedList; + + /** + * Invokes the given callback for each value from the beginning to the end (much faster than for-of). + * If the given function returns false it stops iterating. + */ + forEach(callback: (value: T, index: number) => void | boolean): void; + + /** + * Default length of a new created linked list + */ + static DEFAULT_LENGTH: number; + } + + namespace I { + type Long = math.Long; + + type Longable = math.I.Longable; + + namespace ByteArray { + interface Varint32 { + value: number; + length: number; + } + + interface Varint64 { + value: Long; + length: number; + } + + interface String { + string: string; + length: number; + } + + type Wrappable = string | ByteArray | Buffer | Uint8Array | ArrayBuffer; + + type Metrics = "b" | "c"; + } + } + + /** + * Represents an array of bytes, enhanced Node.js Buffer + */ + class ByteArray { + /** + * Constructs a new ByteArray + * + * @param capacity Initial capacity. Defaults to ByteArray.DEFAULT_CAPACITY(64) + * @param noAssert Whether to skip assertions of offsets and values. Defaults to ByteArray.DEFAULT_NOASSERT(false) + */ + constructor(capacity?: number, noAssert?: boolean); + + /** + * Reads a BitSet as an array of booleans. + * + * @param offset Offset to read from. Will use and increase offset by length if omitted. + */ + readBitSet(offset?: number): boolean[]; + + /** + * Reads the specified number of bytes. + * + * @param length Number of bytes to read + * @param offset Offset to read from. Will use and increase offset by length if omitted. + */ + read(length: number, offset?: number): ByteArray; + + /** + * Reads an 8bit signed integer + * + * @param offset Offset to read from + */ + readInt8(offset?: number): number; + + /** + * Reads an 8bit unsigned integer + * + * @param offset Offset to read from + */ + readUInt8(offset?: number): number; + + /** + * Reads a 16bit signed le integer + * + * @param offset Offset to read from + */ + readInt16LE(offset?: number): number; + + /** + * Reads a 16bit unsigned le integer + * + * @param offset Offset to read from + */ + readUInt16LE(offset?: number): number; + + /** + * Reads a 16bit signed be integer + * + * @param offset Offset to read from + */ + readInt16BE(offset?: number): number; + + /** + * Reads a 16bit unsigned be integer + * + * @param offset Offset to read from + */ + readUInt16BE(offset?: number): number; + + /** + * Reads a 32bit signed le integer + * + * @param offset Offset to read from + */ + readInt32LE(offset?: number): number; + + /** + * Reads a 32bit unsigned le integer + * + * @param offset Offset to read from + */ + readUInt32LE(offset?: number): number; + + /** + * Reads a 32bit signed be integer + * + * @param offset Offset to read from + */ + readInt32BE(offset?: number): number; + + /** + * Reads a 32bit unsigned be integer + * + * @param offset Offset to read from + */ + readUInt32BE(offset?: number): number; + + /** + * Reads a 64bit signed le integer as math.Long + * + * @param offset Offset to read from + */ + readInt64LE(offset?: number): math.Long; + + /** + * Reads a 64bit unsigned le integer as math.Long + * + * @param offset Offset to read from + */ + readUInt64LE(offset?: number): math.Long; + + /** + * Reads a 64bit signed be integer as math.Long + * + * @param offset Offset to read from + */ + readInt64BE(offset?: number): math.Long; + + /** + * Reads a 64bit unsigned be integer as math.Long + * + * @param offset Offset to read from + */ + readUInt64BE(offset?: number): math.Long; + + /** + * Reads a 32bit le float + * + * @param offset Offset to read from + */ + readFloatLE(offset?: number): number; + + /** + * Reads a 32bit be float + * + * @param offset Offset to read from + */ + readFloatBE(offset?: number): number; + + /** + * Reads a 64bit le float + * + * @param offset Offset to read from + */ + readDoubleLE(offset?: number): number; + + /** + * Reads a 64bit be float + * + * @param offset Offset to read from + */ + readDoubleBE(offset?: number): number; + + /** + * Appends some data to this ByteArray. + * This will overwrite any contents behind the specified offset up to the appended data's length. + * + * @param source The source write from + * @param offset Offset to write to + * @param length length to read from the source + * @param encoding encoding to use for wrapping the source in bytearray + */ + write(source: I.ByteArray.Wrappable, offset?: number, length?: number, encoding?: string): this; + + /** + * Writes the array as a bitset. + * @param value Array of booleans to write + */ + writeBitSet(value: number[]): this; + + /** + * Writes the array as a bitset. + * @param value Array of booleans to write + * @param offset Offset to write to + */ + writeBitSet(value: number[], offset: number): number; + + /** + * Writes an 8bit signed integer + * + * @param offset Offset to write to + */ + writeInt8(value: number, offset?: number): this; + + /** + * Writes an 8bit unsigned integer + * + * @param offset Offset to write to + */ + writeUInt8(value: number, offset?: number): this; + + /** + * Writes a 16bit signed le integer + * + * @param offset Offset to write to + */ + writeInt16LE(value: number, offset?: number): this; + + /** + * Writes a 16bit signed be integer + * + * @param offset Offset to write to + */ + writeInt16BE(value: number, offset?: number): this; + + /** + * Writes a 16bit unsigned le integer + * + * @param offset Offset to write to + */ + writeUInt16LE(value: number, offset?: number): this; + + /** + * Writes a 16bit unsigned be integer + * + * @param offset Offset to write to + */ + writeUInt16BE(value: number, offset?: number): this; + + /** + * Writes a 32bit signed le integer + * + * @param offset Offset to write to + */ + writeInt32LE(value: number, offset?: number): this; + + /** + * Writes a 32bit signed be integer + * + * @param offset Offset to write to + */ + writeInt32BE(value: number, offset?: number): this; + + /** + * Writes a 32bit unsigned le integer + * + * @param offset Offset to write to + */ + writeUInt32LE(value: number, offset?: number): this; + + /** + * Writes a 32bit unsigned be integer + * + * @param offset Offset to write to + */ + writeUInt32BE(value: number, offset?: number): this; + + /** + * Writes a 64bit signed le long integer + * + * @param offset Offset to write to + */ + writeInt64LE(value: math.Long | string | number, offset?: number): this; + + /** + * Writes a 64bit signed be long integer + * + * @param offset Offset to write to + */ + writeInt64BE(value: math.Long | string | number, offset?: number): this; + + /** + * Writes a 64bit unsigned le long integer + * + * @param offset Offset to write to + */ + writeUInt64LE(value: math.Long | string | number, offset?: number): this; + + /** + * Writes a 64bit unsigned be long integer + * + * @param offset Offset to write to + */ + writeUInt64BE(value: math.Long | string | number, offset?: number): this; + + /** + * Writes a 32bit le float + * + * @param offset Offset to write to + * @returns {this} + */ + writeFloatLE(value: number, offset?: number): this; + + /** + * Writes a 32bit be float + * + * @param offset Offset to write to + */ + writeFloatBE(value: number, offset?: number): this; + + /** + * Writes a 64bit le float + * + * @param offset Offset to write to + */ + writeDoubleLE(value: number, offset?: number): this; + + /** + * Writes a 64bit be float + * + * @param offset Offset to write to + */ + writeDoubleBE(value: number, offset?: number): this; + + /** + * Writes a 32bit base 128 variable-length integer + */ + writeVarint32(value: number): this; + + /** + * Writes a 32bit base 128 variable-length integer + * + * @param offset Offset to write to + */ + writeVarint32(value: number, offset: number): number; + + /** + * Writes a zig-zag encoded 32bit base 128 variable-length integer + */ + writeVarint32ZigZag(value: number): this; + + /** + * Writes a zig-zag encoded 32bit base 128 variable-length integer + * + * @param offset Offset to write to + */ + writeVarint32ZigZag(value: number, offset: number): number; + + /** + * Reads a 32bit base 128 variable-length integer + */ + readVarint32(): number; + + /** + * Reads a 32bit base 128 variable-length integer + * + * @param offset Offset to read from + */ + readVarint32(offset: number): I.ByteArray.Varint32; + + /** + * Reads a zig-zag encoded 32bit base 128 variable-length integer + */ + readVarint32ZigZag(): number; + + /** + * Reads a zig-zag encoded 32bit base 128 variable-length integer + * + * @param offset Offset to read from + */ + readVarint32ZigZag(offset: number): I.ByteArray.Varint32; + + /** + * Writes a 64bit base 128 variable-length integer + */ + writeVarint64(value: math.Long | string | number): this; + + /** + * Writes a 64bit base 128 variable-length integer + * + * @param offset Offset to write to + */ + writeVarint64(value: math.Long | string | number, offset: number): number; + + /** + * Writes a zig-zag encoded 64bit base 128 variable-length integer + */ + writeVarint64ZigZag(value: math.Long | string | number): this; + + /** + * Writes a zig-zag encoded 64bit base 128 variable-length integer + * + * @param offset Offset to write to + */ + writeVarint64ZigZag(value: math.Long | string | number, offset: number): number; + + /** + * Reads a 64bit base 128 variable-length integer + */ + readVarint64(): I.Long; + + /** + * Reads a 64bit base 128 variable-length integer + * + * @param offset Offset to read from + */ + readVarint64(offset: number): I.ByteArray.Varint64; + + /** + * Reads a zig-zag encoded 64bit base 128 variable-length integer + */ + readVarint64ZigZag(): math.Long; + + /** + * Reads a zig-zag encoded 64bit base 128 variable-length integer + * + * @param offset Offset to read from + */ + readVarint64ZigZag(offset: number): I.ByteArray.Varint64; + + /** + * Writes a NULL-terminated UTF8 encoded string. + * For this to work the specified string must not contain any NULL characters itself + */ + writeCString(str: string): this; + + /** + * Writes a NULL-terminated UTF8 encoded string. + * For this to work the specified string must not contain any NULL characters itself + * + * @param offset Offset to write to + */ + writeCString(str: string, offset: number): number; + + /** + * Reads a NULL-terminated UTF8 encoded string. + * For this to work the string read must not contain any NULL characters itself + */ + readCString(): string; + + /** + * Reads a NULL-terminated UTF8 encoded string. + * For this to work the string read must not contain any NULL characters itself + * + * @param offset Offset to read from + */ + readCString(offset: number): I.ByteArray.String; + + /** + * Writes an UTF8 encoded string + */ + writeString(str: string): this; + + /** + * Writes an UTF8 encoded string + * + * @param offset Offset to write to + */ + writeString(str: string, offset: number): number; + + /** + * Reads an UTF8 encoded string + * + * @param length Number of characters or bytes to read + * @param metrics Metrics specifying what n is meant to count. Defaults to ByteArray.METRICS_CHARS("c") + */ + readString(length: number, metrics?: I.ByteArray.Metrics): string; + + /** + * Reads an UTF8 encoded string + * + * @param length Number of characters or bytes to read + * @param metrics Metrics specifying what n is meant to count. Defaults to ByteArray.METRICS_CHARS("c") + * @param offset Offset to read from + */ + readString(length: number, metrics: I.ByteArray.Metrics, offset: number): I.ByteArray.String; + + /** + * Reads an UTF8 encoded string + * + * @param length Number of characters or bytes to read + * @param offset Offset to read from + */ + readString(length: number, offset: number): I.ByteArray.String; + + /** + * Writes a length as varint32 prefixed UTF8 encoded string + */ + writeVString(str: string): this; + + /** + * Writes a length as varint32 prefixed UTF8 encoded string + * + * @param offset Offset to read from + */ + writeVString(str: string, offset: number): number; + + /** + * Reads a length as varint32 prefixed UTF8 encoded string + */ + readVString(): string; + + /** + * Reads a length as varint32 prefixed UTF8 encoded string + * + * @param offset Offset to read from + */ + readVString(offset: number): I.ByteArray.String; + + /** + * Appends this ByteArray's contents to another ByteArray. + * This will overwrite any contents behind the specified offset up to the length of this ByteArray's data + * + * @param offset Offset to append to + */ + appendTo(target: ByteArray, offset?: number): this; + + /** + * Enables or disables assertions of argument types and offsets. + * Assertions are enabled by default but you can opt to disable them if your code already makes sure that everything is valid + */ + assert(assert?: boolean): this; + + /** + * Gets the capacity of this ByteArray's backing buffer + */ + capacity(): number; + + /** + * Clears this ByteArray's offsets by setting offset to 0 and limit to the backing buffer's capacity + */ + clear(): this; + + /** + * Creates a cloned instance of this ByteArray, + * preset with this ByteArray's values for offset, markedOffset and limit + * + * @param copy Whether to copy the backing buffer or to return another view on the same, false by default + */ + clone(copy?: boolean): ByteArray; + + /** + * Compacts this ByteArray to be backed by a buffer of its contents' length. + * Will set offset = 0 and limit = capacity and adapt markedOffset to the same relative position if set + * + * @param begin Offset to start at, buffer offset by default + * @param end Offset to end at, buffer limit by default + */ + compact(begin?: number, end?: number): this; + + /** + * Creates a copy of this ByteArray's contents. + * + * @param begin Begin offset, buffer offset by default + * @param end End offset, buffer limit by default + */ + copy(begin?: number, end?: number): ByteArray; + + /** + * Copies this ByteArray's contents to another ByteArray. + * + * @param targetOffset Offset to copy to. Will use and increase the target's offset by the number of bytes copied if omitted + * @param sourceOffset Offset to start copying from. Will use and increase offset by the number of bytes copied if omitted + * @param sourceLimit Offset to end copying from, defaults to the buffer limit + */ + copyTo(target: ByteArray, targetOffset?: number, souceOffset?: number, sourceLimit?: number): this | ByteArray; + + /** + * Makes sure that this ByteArray is backed by a ByteArray#buffer of at least the specified capacity. + * If the current capacity is exceeded, it will be doubled. + * If double the current capacity is less than the required capacity, the required capacity will be used instead + */ + ensureCapacity(capacity: number): this; + + /** + * Overwrites this ByteArray's contents with the specified value. + * + * @param value Byte value to fill with. If given as a string, the first character is used + * @param begin Begin offset. Will use and increase offset by the number of bytes written if omitted. defaults to offset + * @param end End offset, defaults to limit. + */ + fill(value: string | number, begin?: number, end?: number): this; + + /** + * Makes this ByteArray ready for a new sequence of write or relative read operations. + * Sets limit = offset and offset = 0. + * Make sure always to flip a ByteArray when all relative read or write operations are complete + */ + flip(): this; + + /** + * Marks an offset on this ByteArray to be used later + * + * @param offset Offset to mark. Defaults to offset. + */ + mark(offset?: number): this; + + /** + * Prepends some data to this ByteArray. + * This will overwrite any contents before the specified offset up to the prepended data's length. + * If there is not enough space available before the specified offset, + * the backing buffer will be resized and its contents moved accordingly + * + * @param source Data to prepend + * @param offset Offset to prepend at. Will use and decrease offset by the number of bytes prepended if omitted. + */ + prepend(source: I.ByteArray.Wrappable, offset: number): this; + + /** + * Prepends some data to this ByteArray. + * This will overwrite any contents before the specified offset up to the prepended data's length. + * If there is not enough space available before the specified offset, + * the backing buffer will be resized and its contents moved accordingly + * + * @param source Data to prepend + * @param encoding Encoding if data is a string + * @param offset Offset to prepend at. Will use and decrease offset by the number of bytes prepended if omitted. + */ + prepend(source: I.ByteArray.Wrappable, encoding?: string, offset?: number): this; + + /** + * Prepends this ByteArray to another ByteArray. + * This will overwrite any contents before the specified offset up to the prepended data's length. + * If there is not enough space available before the specified offset, + * the backing buffer will be resized and its contents moved accordingly + * + * @param offset Offset to prepend at + */ + prependTo(target: ByteArray, offset?: number): this; + + /** + * Gets the number of remaining readable bytes + */ + remaining(): number; + + /** + * Resets this ByteArray's offset. + * If an offset has been marked through mark before, offset will be set to markedOffset, which will then be discarded. + * If no offset has been marked, sets offset = 0 + */ + reset(): this; + + /** + * Resizes this ByteArray to be backed by a buffer of at least the given capacity. + * Will do nothing if already that large or larger. + * + * @param {number} capacity Capacity required + * @returns {this} + */ + resize(capacity: number): this; + + /** + * Reverses this ByteArray's contents. + * + * @param begin Offset to start at, defaults to offset + * @param end Offset to end at, defaults to limit + */ + reverse(begin?: number, end?: number): this; + + /** + * Skips the next length bytes. This will just advance + */ + skip(length: number): this; + + /** + * Slices this ByteArray by creating a cloned instance with offset = begin and limit = end + * + * @param begin Begin offset, defaults to offset + * @param end End offset, defaults to limit + */ + slice(begin?: number, end?: number): ByteArray; + + /** + * Returns a copy of the backing buffer that contains this ByteArray's contents. + * + * @param forceCopy If true returns a copy, otherwise returns a view referencing the same memory if possible, false by default + * @param begin Begin offset, offset by default + * @param end End offset, limit by default + */ + toBuffer(forceCopy?: boolean, begin?: number, end?: number): Buffer; + + /** + * Returns a raw buffer compacted to contain this ByteArray's contents + */ + toArrayBuffer(): ArrayBuffer; + + /** + * Converts the ByteArray's contents to a string + * + * @param encoding Output encoding + * @param begin Begin offset, offset by default + * @param end End offset, limit by default + */ + toString(encoding?: string, begin?: number, end?: number): string; + + /** + * Encodes this ByteArray's contents to a base64 encoded string + * + * @param begin Begin offset, offset by default + * @param end End offset, limit by default + */ + toBase64(begin?: number, end?: number): string; + + /** + * Encodes this ByteArray to a binary encoded string, that is using only characters 0x00-0xFF as bytes + * + * @param begin Begin offset, offset by default + * @param end End offset, limit by default + */ + toBinary(begin?: number, end?: number): string; + + /** + * Encodes this ByteArray to a hex encoded string with marked offsets + * + * @param columns If true returns two columns hex + ascii, defaults to false + */ + toDebug(columns?: boolean): string; + + /** + * Encodes this ByteArray's contents to a hex encoded string + * + * @param begin Begin offset, offset by default + * @param end End offset, limit by default + */ + toHex(begin?: number, end?: number): string; + + /** + * Encodes this ByteArray's contents to an UTF8 encoded string + * + * @param begin Begin offset, offset by default + * @param end End offset, limit by default + */ + toUTF8(begin?: number, end?: number): string; + + static accessor(): typeof Buffer; + + /** + * Allocates a new ByteArray backed by a buffer of the specified capacity. + * + * @param capacity Initial capacity. Defaults to ByteArray.DEFAULT_CAPACITY(64) + * @param noAssert Whether to skip assertions of offsets and values. Defaults to ByteArray.DEFAULT_NOASSERT(false) + */ + static allocate(capacity?: number, noAssert?: boolean): ByteArray; + + /** + * Concatenates multiple ByteArrays into one + * + * @param encoding Encoding for strings + * @param noAssert Whether to skip assertions of offsets and values. Defaults to ByteArray.DEFAULT_NOASSERT(false) + */ + static concat(buffers: I.ByteArray.Wrappable[], encoding?: string, noAssert?: boolean): ByteArray; + + static type(): typeof Buffer; + + /** + * Wraps a buffer or a string. + * Sets the allocated ByteArray's offset to 0 and its limit to the length of the wrapped data + * + * @param encoding Encoding for strings + * @param noAssert Whether to skip assertions of offsets and values. Defaults to ByteArray.DEFAULT_NOASSERT(false) + */ + static wrap(buffer: I.ByteArray.Wrappable, encoding?: string, noAssert?: boolean): ByteArray; + + /** + * Calculates the actual number of bytes required to store a 32bit base 128 variable-length integer + */ + static calculateVarint32(value: number): number; + + /** + * Zigzag encodes a signed 32bit integer so that it can be effectively used with varint encoding + */ + static zigZagEncode32(n: number): number; + + /** + * Decodes a zigzag encoded signed 32bit integer + */ + static zigZagDecode32(n: number): number; + + /** + * Calculates the actual number of bytes required to store a 64bit base 128 variable-length integer + */ + static calculateVarint64(value: number | string): number; + + /** + * Zigzag encodes a signed 64bit integer so that it can be effectively used with varint encoding + */ + static zigZagEncode64(value: number | string | I.Long): I.Long; + + /** + * Decodes a zigzag encoded signed 64bit integer. + */ + static zigZagDecode64(value: number | string | I.Long): I.Long; + + /** + * Calculates the number of UTF8 characters of a string. + * JavaScript itself uses UTF-16, + * so that a string's length property does not reflect its actual UTF8 size if it contains code points larger than 0xFFFF + */ + static calculateUTF8Chars(str: string): number; + + /** + * Calculates the number of UTF8 bytes of a string. + */ + static calculateString(str: string): number; + + /** + * Decodes a base64 encoded string to a ByteArray + */ + static fromBase64(str: string): ByteArray; + + /** + * Encodes a binary string to base64 like window.btoa does + */ + static btoa(str: string): string; + + /** + * Decodes a base64 encoded string to binary like window.atob does + */ + static atob(b64: string): string; + + /** + * Decodes a binary encoded string, that is using only characters 0x00-0xFF as bytes, to a ByteArray + */ + static fromBinary(str: string): ByteArray; + + /** + * Decodes a hex encoded string with marked offsets to a ByteArray + */ + static fromDebug(str: string, noAssert?: boolean): ByteArray; + + /** + * Decodes a hex encoded string to a ByteArray + */ + static fromHex(str: string, noAssert?: boolean): ByteArray; + + /** + * Decodes an UTF8 encoded string to a ByteArray + */ + static fromUTF8(str: string, noAssert?: boolean): ByteArray; + + /** + * Default initial capacity + */ + static DEFAULT_CAPACITY: number; + + /** + * Default no assertions flag + */ + static DEFAULT_NOASSERT: boolean; + + /** + * Maximum number of bytes required to store a 32bit base 128 variable-length integer + */ + static MAX_VARINT32_BYTES: number; + + /** + * Maximum number of bytes required to store a 64bit base 128 variable-length integer + */ + static MAX_VARINT64_BYTES: number; + + /** + * Metrics representing number of UTF8 characters. Evaluates to `c`. + */ + static METRICS_CHARS: string; + + /** + * Metrics representing number of bytes. Evaluates to `b`. + */ + static METRICS_BYTES: string; + } + + /** + * Represents a queue + */ + class Queue { + /** + * Whether the queue is full + */ + readonly full: boolean; + + /** + * The length of the queue + */ + readonly length: number; + + /** + * Whether the queue is empty + */ + readonly empty: boolean; + + /** + * Inserts a new element at the end + */ + push(x: S): this; + + /** + * Removes and returns an element from the beginning + */ + pop(): T | undefined; + } + + /** + * Represents an asynchronous queue, each pop is a promise + * that is resolved with an existing element or an element that will be pushed in the future + */ + class AsyncQueue extends Queue> { + /** + * Returns a promise that will be resolved with an existing element or an element that will be pushed in the future + */ + pop(): Promise; + } + + namespace I.PriorityQueue { + interface ConstructorOptions { + /** + * Function that compares objects. + * + * Must return a positive value if a > b, a negative if a < b, and zero for equal objects + */ + compare?(a: T, b: T): number; + + /** + * Function that evaluates the priority value by the given objects, + * if the returned value > 0, then the first argument has higher priority, + * = 0 same priority, < 0 lower priority. + * By default the top element is an element that has the highest priority, + * the default priority function is equal to the compare function + */ + priority?(a: T, b: T): number; + } + } + + /** + * Represents a priority queue + */ + class PriorityQueue { + /** + * Whether the queue is empty + */ + readonly empty: boolean; + + /** + * The length of the queue + */ + readonly length: number; + + constructor(options?: I.PriorityQueue.ConstructorOptions); + + /** + * Clones the queue + */ + clone(): PriorityQueue; + + /** + * Inserts a new element + */ + push(x: T): this; + + /** + * Removes the top element (that has the highest priority) + */ + pop(): T | undefined; + + /** + * Deletes the given element from the queue + */ + delete(x: T): this; + + /** + * Replaces the top element (pop + push) + */ + replace(x: T): T; + + /** + * Faster push + pop + */ + pushpop(x: T): T; + + /** + * Converts the queue to an array, it works with a clone of the queue, so the original queue is untouched + */ + toArray(): T[]; + + /** + * Creates a queue object from the given iterable + */ + static from(iterable: Iterable, options?: I.PriorityQueue.ConstructorOptions): PriorityQueue; + } + + /** + * Represents a faster LRU cache but with less functionality + */ + class FastLRU { + /** + * @param size Cache size, unlimited by default + */ + constructor(size?: number, options?: { + /** + * Function that is called when a value is deleted + */ + dispose?(key: K, value: V): void + }); + + /** + * The actual size of the cache + */ + readonly size: number; + + /** + * Gets the value by the given key + */ + get(key: K): V | undefined; + + /** + * Sets a new value for the given key + */ + set(key: K, value: V): void; + + /** + * Deletes the given key from the cache + */ + delete(key: K): boolean; + + /** + * Checks whether the cache has an element with the given key + */ + has(key: K): boolean; + + /** + * Returns the keys iterator + */ + keys(): IterableIterator; + + /** + * Returns the values iterator + */ + values(): IterableIterator; + + /** + * Returns the entries iterator + */ + entries(): IterableIterator<[K, V]>; + + /** + * Clears the cache + */ + clear(): void; + } + + /** + * Represents a stack + */ + class Stack { + /** + * Whether the stack is empty + */ + readonly empty: boolean; + + /** + * The top element of the stack + */ + readonly top: T; + + /** + * Inserts a new element + */ + push(x: T): this; + + /** + * Removes the top element + */ + pop(): T | undefined; + + /** + * Returns an iterator over the values + */ + [Symbol.iterator](): IterableIterator; + + /** + * Creates a stack and pushed all the values from the given iterable object + */ + static from(iterable: Iterable): Stack; + } + + namespace I.BinarySearchTree { + interface ConstructorOptions { + /** + * The parent tree + */ + parent?: Tree; + + /** + * Value to keep in this node + */ + value?: V; + + /** + * WHether the values must be unique, false by default. + * If false you can store many values for same keys, otherwise only one + */ + unique?: boolean; + + /** + * Custom keys comparator, by default if a > b => -1, a < b -1, a === b => 0 + */ + compareKeys?(a: K, b: K): number; + + /** + * Function that defines whether 2 values are the same, by default a === b + */ + checkValueEquality?(a: V, b: V): boolean; + } + + interface Query { + $lt?: K; + $lte?: K; + $gt?: K; + $gte?: K; + } + } + + /** + * Represents a binary search tree + */ + class BinarySearchTree { + constructor(options?: I.BinarySearchTree.ConstructorOptions>); + + /** + * Returns the max descendant tree + */ + getMaxKeyDescendant(): BinarySearchTree; + + /** + * Returns the maximum key + */ + getMaxKey(): K; + + /** + * Returns the min descendant tree + */ + getMinKeyDescendant(): BinarySearchTree; + + /** + * Returns the minumum key + */ + getMinKey(): K; + + /** + * Traverses the tree and calls the given function for each node + */ + checkAllNodesFullfillCondition(test: (key: K, value: V) => void): void; + + /** + * Checks whether the tree is a binary search tree + */ + checkIsBST(): void; + + /** + * Returns the of keys in the tree + */ + getNumberOfKeys(): number; + + /** + * Inserts a new key/value + */ + insert(key: K, value: V): void; + + /** + * Searches the given key in the tree + */ + search(key: K): V[]; + + /** + * Returns all the values from the given key bounds + */ + betweenBounds(query: I.BinarySearchTree.Query): V[]; + + /** + * Deletes the given key/value from the tree + */ + delete(key: K, value?: V): void; + + /** + * Executed the given callback for each node from left to right + */ + executeOnEveryNode(fn: (tree: BinarySearchTree) => void): void; + + /** + * Prints the tree + */ + prettyPrint(printData?: boolean, spacing?: string): void; + } + + /** + * Represents an AVL tree, a self-balancing binary search tree + */ + class AVLTree { + constructor(options?: I.BinarySearchTree.ConstructorOptions>); + + /** + * Checks whether the tree is an avl tree + */ + checkIsAVLT(): void; + + /** + * Inserts a new key/value + */ + insert(key: K, value: V): void; + + /** + * Deletes the given key/value from the tree + */ + delete(key: K, value?: V): void; + + /** + * Returns the of keys in the tree + */ + getNumberOFKeys(): number; + + /** + * Searches the given key in the tree + */ + search(key: K): V[]; + + /** + * Returns all the values from the given key bounds + */ + betweenBounds(query: I.BinarySearchTree.Query): V[]; + + /** + * Executed the given callback for each node from left to right + */ + executeOnEveryNode(fn: (tree: AVLTree) => void): void; + + /** + * Prints the tree + */ + prettyPrint(printDate?: boolean, spacing?: string): void; + } + + namespace I.RedBlackTree { + interface Node { + /** + * The key associated to the node + */ + key: K; + + /** + * The value associated to the node + */ + value: V; + + /** + * The left subtree of the node + */ + left?: Node; + + /** + * The right subtree of the node + */ + right?: Node; + } + + interface Iterator { + /** + * Checks if the iterator is valid + */ + readonly valid: boolean; + + /** + * The value of the node at the iterator's current position, null if invalid + */ + readonly node: Node | null; + + /** + * The key of the item referenced by the iterator, undefined if invalid + */ + readonly key?: K; + + /** + * The value of the item referenced by the iterator, undefined if invalid + */ + readonly value?: V; + + /** + * Returns the position of this iterator in the sequence + */ + readonly index: number; + + /** + * If true, then the iterator is not at the end of the sequence + */ + readonly hasNext: boolean; + + /** + * If true, then the iterator is not at the beginning of the sequence + */ + readonly hasPrev: boolean; + + /** + * The tree associated to the iterator + */ + tree: RedBlackTree; + + /** + * Makes a copy of the iterator + */ + clone(): Iterator; + + /** + * Removes the item at the position of the iterator and returns a new rb-tree + */ + remove(): RedBlackTree; + + /** + * Advances the iterator to the next position + */ + next(): void; + + /** + * Updates the value of the node in the tree at this iterator and returns a new rb-tree + */ + update(value: V): RedBlackTree; + + /** + * Moves the iterator backward one element + */ + prev(): void; + } + } + + /** + * Represents a fully persistent red-black tree + */ + class RedBlackTree { + /** + * The root node of the tree + */ + root: I.RedBlackTree.Node; + + constructor(compare?: (a: K, b: K) => number, root?: RedBlackTree); + + /** + * A sorted array of all the keys in the tree + */ + readonly keys: K[]; + + /** + * An array of all the values in the tree + */ + readonly values: V[]; + + /** + * The number of items in the tree + */ + readonly length: number; + + /** + * An iterator pointing to the first element in the tree + */ + readonly begin: I.RedBlackTree.Iterator; + + /** + * An iterator pointing to the last element in the tree + */ + readonly end: I.RedBlackTree.Iterator; + + /** + * Creates a new tree with the new pair inserted + */ + insert(key: K, value: V): RedBlackTree; + + /** + * Walks a visitor function over the nodes of the tree in order + * + * @param visit A callback that gets executed on each node. + * If a truthy value is returned from the visitor, then iteration is stopped. + * @param lo An optional start of the range to visit (inclusive) + * @param hi An optional end of the range to visit (non-inclusive) + */ + forEach(visit: (key: K, value: V) => T, lo?: K, hi?: K): T; + + /** + * Finds an iterator starting at the given element + */ + at(idx: number): I.RedBlackTree.Iterator; + + /** + * Finds the first item in the tree whose key is >= key + */ + ge(key: K): I.RedBlackTree.Iterator; + + /** + * Finds the first item in the tree whose key is > key + */ + gt(key: K): I.RedBlackTree.Iterator; + + /** + * Finds the first item in the tree whose key is < key + */ + lt(key: K): I.RedBlackTree.Iterator; + + /** + * Finds the first item in the tree whose key is <= key + */ + le(key: K): I.RedBlackTree.Iterator; + + /** + * Returns an iterator pointing to the first item in the tree with key, otherwise null + */ + find(key: K): I.RedBlackTree.Iterator | null; + + /** + * Removes the first item with key in the tree + */ + remove(key: K): RedBlackTree; + + /** + * Retrieves the value associated to the given key + */ + get(key: K): V | undefined; + } + + /** + * Respresetns a data structure which is a combination of an array and a set. + * Adding a new member is O(1), testing for membership is O(1), + * and finding the index of an element is O(1). + */ + class ArraySet { + /** + * The number of unique items in this ArraySet. + * If duplicates have been added, than those do not count towards the size. + */ + readonly length: number; + + /** + * Adds the given value to this set. + * + * @param allowDuplicates Whether to allow duplicates in the set, false by default + */ + add(value: T, allowDuplicates?: boolean): this; + + /** + * Checks whether the given value is a member of the set + */ + has(value: T): boolean; + + /** + * Returns the index of the given element. + * If the value is not present it will return -1 + */ + indexOf(value: T): number; + + /** + * Converts the set to an array + */ + toArray(): T[]; + + /** + * Creates an ArraySet from the given iterable object + * + * @param allowDuplicates Whether to allow duplicates in the set, false by default + */ + static from(iterable: Iterable, allowDuplicates?: boolean): ArraySet; + } + + namespace I.BufferList { + type Appendable = Buffer | BufferList | string | number | Array; + } + + /** + * Represents a Node.js Buffer list collector, reader and streamer with callback/promise interface support + */ + class BufferList extends std.stream.Duplex implements PromiseLike { + /** + * Creates a new buffer list + */ + constructor(); + + /** + * Creates a new buffer list and initiates with the given value + */ + constructor(buffer: I.BufferList.Appendable); + + /** + * Creates a new buffer list and subscribes the given callback on the end/error event + */ + constructor(callback: (err: any, data: Buffer) => void); + + /** + * Adds an additional buffer or BufferList to the internal list + */ + append(buf: I.BufferList.Appendable): this; + + /** + * Ends the stream + */ + end(chunk?: Buffer): void; + + /** + * Returns the byte at the specified index + */ + get(idx: number): number; + + /** + * Returns a new Buffer object containing the bytes within the range specified. + */ + slice(start?: number, end?: number): Buffer; + + /** + * Copies the content of the list in the dest buffer + * starting from destStart and containing the bytes within the range specified with srcStart to srcEnd + * + * @param dstStart writes from this position + * @param srcStart reads bytes from this position + * @param srcEnd read bytes to this position + */ + copy(dst: T, dstStart?: number, srcStart?: number, srcEnd?: number): T; + + /** + * Returns a new BufferList object containing the bytes within the range specified. + * No copies will be performed. All buffers in the result share memory with the original list. + * + * @param {number} start slice from + * @param {number} end slice to + */ + shallowSlice(start?: number, end?: number): BufferList; + + /** + * Return a string representation of the buffer + */ + toString(encoding?: fs.I.Encoding, start?: number, end?: number): string; + + /** + * Shifts bytes off the start of the list + */ + consume(bytes: number): this; + + /** + * Performs a shallow-copy of the list. + */ + duplicate(): BufferList; + + /** + * Destroys the stream + */ + destroy(): void; + + then( + onfulfilled?: ((value: Buffer) => T1 | PromiseLike) | undefined | null, + onrejected?: ((reason: any) => T2 | PromiseLike) | undefined | null + ): PromiseLike; + + catch(onrejected?: ((reason: any) => T | PromiseLike) | undefined | null): PromiseLike; + } + + /** + * Represents a Map that has a default values factory object or function. + * Each get of non-existent key goes through the factory + */ + class DefaultMap extends Map { + constructor(factory?: ((key: K) => V) | { [key: string]: V }, iterable?: Iterable<[K, V]>); + } + + namespace I.LRU { + type LengthCalculator = (value: V, key: K) => number; + interface ConstructorOptions { + /** + * The maximum size of the cache, checked by applying the length function to all values in the cache. + * Default is Infinity + */ + max?: number; + + /** + * Maximum age in ms. Items are not pro-actively pruned out as they age, + * but if you try to get an item that is too old, + * it'll drop it and return undefined instead of giving it to you + */ + maxAge?: number; + + /** + * Function that is used to calculate the length of stored items + */ + length?: LengthCalculator; + + /** + * Function that is called on items when they are dropped from the cache + */ + dispose?(key: K, value: V): void; + + /** + * Whether to return the stale value before deleting it + */ + stale?: boolean; + + /** + * Dispose will only be called when a key falls out of the cache, not when it is overwritten + */ + noDisposeOnSet?: boolean; + } + + interface SerializedEntry { + /** + * key + */ + key: K; + + /** + * value + */ + value: V; + + /** + * when it becomes expired + */ + e: number; + } + + interface Entry { + /** + * key + */ + key: K; + + /** + * value + */ + value: V; + + /** + * entry length + */ + length: number; + + /** + * Timestamp when the entry was created + */ + now: number; + + /** + * Maximum live time + */ + maxAge: number; + } + } + + /** + * Represent an LRU cache + */ + class LRU { + /** + * Creates an LRU cache of the given size + */ + constructor(max: number); + + /** + * Creates an LRU cache with the given options + */ + constructor(options?: I.LRU.ConstructorOptions); + + /** + * The length of the cache, setter resizes the cache + */ + max: number; + + /** + * stale setting + */ + allowStale: boolean; + + /** + * maxAge setting + */ + maxAge: number; + + /** + * length setting + */ + lengthCalculator: I.LRU.LengthCalculator; + + /** + * Total length of objects in cache taking into account length options function + */ + readonly length: number; + + /** + * Total quantity of objects currently in cache. + * Note, that stale items are returned as part of this item count. + */ + readonly itemCount: number; + + /** + * Iterates over all the keys in the cache, in reverse recent-ness order. (ie, less recently used items are iterated over first.) + */ + rforEach(fn: (this: T, value: V, key: K, cache: LRU) => void, thisp?: T): void; + + /** + * Iterates over all the keys in the cache, in order of recent-ness + */ + forEach(fn: (this: T, value: V, key: K, cache: LRU) => void, thisp?: T): void; + + /** + * Returns an array of the keys in the cache + */ + keys(): K[]; + + /** + * Returns an array of the values in the cache + */ + values(): V[]; + + /** + * Clears the cache entirely, throwing away all values + */ + reset(): void; + + /** + * Return an array of the cache entries ready for serialization and usage with 'destinationCache.load(arr)` + */ + dump(): Array>; + + /** + * Returns an internal lru list of entries + */ + dumpLru(): LinkedList>; + + /** + * @param opts std.util.inspect options + */ + inspect(opts?: object): string; + + /** + * Sets a new value for the given key. Updates the "recently used"-ness of the key + * + * @param maxAge maxAge option specific for this key + * @returns Whether the key was set + */ + set(key: K, value: V, maxAge?: number): boolean; + + /** + * Check if a key is in the cache, without updating the recent-ness or deleting it for being stale + */ + has(key: K): boolean; + + /** + * Gets the value of the given key. Updates the "recently used"-ness of the key + */ + get(key: K): V | undefined; + + /** + * Returns the key value without updating the "recently used"-ness of the key + */ + peek(key: K): V | undefined; + + /** + * Deletes the less recently used element + */ + pop(): I.LRU.Entry; + + /** + * Deletes a key out of the cache + */ + del(key: K): void; + + /** + * Loads another cache entries array, obtained with sourceCache.dump(), into the cache. + * The destination cache is reset before loading new entries + */ + load(arr: Array>): void; + + /** + * Manually iterates over the entire cache proactively pruning old entries + */ + prune(): void; + } + + /** + * Represents a Map that keeps keys only for a specified interval of time + */ + class TimedoutMap extends Map { + /** + * @param timeout maximum age of the keys, 1000 by default + * @param callback callback that is called with each key when the timeout is passed + */ + constructor(timeout?: number, callback?: (key: K) => void); + + /** + * Gets the timeout + */ + getTimeout(): number; + + /** + * Sets the timeout + */ + setTimeout(ms: number): void; + + /** + * Iterates over the map and calls the callback for each element + */ + forEach(callback: (this: T, value: V, key: K, cache: this) => void, thisArg?: T): this; + + /** + * Deletes the given key + */ + delete(key: K): boolean; + } + } +} diff --git a/types/adone/glosses/common.d.ts b/types/adone/glosses/common.d.ts deleted file mode 100644 index 57025ea054..0000000000 --- a/types/adone/glosses/common.d.ts +++ /dev/null @@ -1,465 +0,0 @@ -/** - * predicates - */ -export namespace is { - function _null(obj: any): boolean; - export { _null as null }; - export function undefined(obj: any): boolean; - export function exist(obj: any): boolean; - export function nil(obj: any): boolean; - export function number(obj: any): boolean; - export function numeral(obj: any): boolean; - export function infinite(obj: any): boolean; - export function odd(obj: any): boolean; - export function even(obj: any): boolean; - export function float(obj: any): boolean; - export function negativeZero(obj: any): boolean; - export function string(obj: any): boolean; - export function emptyString(obj: any): boolean; - export function substring(substring: string, string: string, offset?: number): boolean; - export function prefix(prefix: string, string: string): boolean; - export function suffix(suffix: string, string: string): boolean; - export function boolean(obj: any): boolean; - export function json(obj: any): boolean; - export function object(obj: any): boolean; - export function plainObject(obj: any): boolean; - function _class(obj: any): boolean; - export { _class as class }; - export function emptyObject(obj: any): boolean; - export function propertyOwned(obj: any, field: string): boolean; - export function propertyDefined(obj: any, field: string): boolean; - export function conforms(obj: object, schema: object, strict?: boolean): boolean; - export function arrayLikeObject(obj: any): boolean; - export function inArray(value: T, array: any[], offset?: number, comparator?: (a: T, b: T) => boolean): boolean; - export function sameType(value: any, other: any): boolean; - export function primitive(obj: any): boolean; - export function equalArrays(left: any[], right: any[]): boolean; - export function deepEqual(left: any, right: any): boolean; - export function shallowEqual(left: any, right: any): boolean; - export function stream(obj: any): boolean; - export function writableStream(obj: any): boolean; - export function readableStream(obj: any): boolean; - export function duplexStream(obj: any): boolean; - export function transformStream(obj: any): boolean; - export function utf8(obj: Buffer): boolean; - export function win32PathAbsolute(path: string): boolean; - export function posixPathAbsolute(path: string): boolean; - export function pathAbsolute(path: string): boolean; - export function glob(str: string): boolean; - export function dotfile(str: string): boolean; - function _function(obj: any): boolean; - export { _function as function }; - export function asyncFunction(obj: any): boolean; - export function promise(obj: any): boolean; - export function validDate(str: string): boolean; - export function buffer(obj: any): boolean; - export function callback(obj: any): boolean; - export function generator(obj: any): boolean; - export function nan(obj: any): boolean; - export function finite(obj: any): boolean; - export function integer(obj: any): boolean; - export function safeInteger(obj: any): boolean; - export function array(obj: any): boolean; - export function uint8Array(obj: any): boolean; - export function configuration(obj: any): boolean; - export function long(obj: any): boolean; - export function bigNumber(obj: any): boolean; - export function exbuffer(obj: any): boolean; - export function exdate(obj: any): boolean; - export function transform(obj: any): boolean; - export function subsystem(obj: any): boolean; - export function application(obj: any): boolean; - export function logger(obj: any): boolean; - export function coreStream(obj: any): boolean; - export function fastStream(obj: any): boolean; - export function fastFSStream(obj: any): boolean; - export function fastFSMapStream(obj: any): boolean; - export function genesisNetron(obj: any): boolean; - export function genesisPeer(obj: any): boolean; - export function netronAdapter(obj: any): boolean; - export function netron(obj: any): boolean; - export function netronPeer(obj: any): boolean; - export function netronDefinition(obj: any): boolean; - export function netronDefinitions(obj: any): boolean; - export function netronReference(obj: any): boolean; - export function netronInterface(obj: any): boolean; - export function netronContext(obj: any): boolean; - export function netronIMethod(netronInterface: object, name: string): boolean; - export function netronIProperty(netronInterface: any, name: string): boolean; - export function netronStub(obj: any): boolean; - export function netronRemoteStub(obj: any): boolean; - export function netronStream(obj: any): boolean; - export function iterable(obj: any): boolean; - export const windows: boolean; - export const linux: boolean; - export const freebsd: boolean; - export const darwin: boolean; - export const sunos: boolean; - export function uppercase(str: string): boolean; - export function lowercase(str: string): boolean; - export function digits(str: string): boolean; - export function identifier(str: string): boolean; - export function binaryExtension(str: string): boolean; - export function binaryPath(str: string): boolean; - export function ip4(str: string): boolean; - export function ip6(str: string): boolean; - export function arrayBuffer(obj: any): boolean; - export function arrayBufferView(obj: any): boolean; - export function date(obj: any): boolean; - export function error(obj: any): boolean; - export function map(obj: any): boolean; - export function regexp(obj: any): boolean; - export function set(obj: any): boolean; - export function symbol(obj: any): boolean; - export function validUTF8(obj: any): boolean; -} - -export namespace x { - class Exception extends Error { - constructor(message?: string | Error, captureStackTrace?: boolean); - } - class Runtime extends Exception { } - class IncompleteBufferError extends Exception { } - class NotImplemented extends Exception { } - class IllegalState extends Exception { } - class NotValid extends Exception { } - class Unknown extends Exception { } - class NotExists extends Exception { } - class Exists extends Exception { } - class Empty extends Exception { } - class InvalidAccess extends Exception { } - class NotSupported extends Exception { } - class InvalidArgument extends Exception { } - class InvalidNumberOfArguments extends Exception { } - class NotFound extends Exception { } - class Timeout extends Exception { } - class Incorrect extends Exception { } - class NotAllowed extends Exception { } - class LimitExceeded extends Exception { } - class Encoding extends Exception { } - class Network extends Exception { } - class Bind extends Exception { } - class Connect extends Exception { } - class Database extends Exception { } - class DatabaseInitialization extends Exception { } - class DatabaseOpen extends Exception { } - class DatabaseRead extends Exception { } - class DatabaseWrite extends Exception { } - class NetronIllegalState extends Exception { } - class NetronPeerDisconnected extends Exception { } - class NetronTimeout extends Exception { } -} - -export class EventEmitter { - static listenerCount(emitter: EventEmitter, event: string | symbol): number; - static defaultMaxListeners: number; - - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - removeListener(event: string | symbol, listener: (...args: any[]) => void): this; - removeAllListeners(event?: string | symbol): this; - setMaxListeners(n: number): this; - getMaxListeners(): number; - listeners(event: string | symbol): Array<(...args: any[]) => any>; - emit(event: string | symbol, ...args: any[]): boolean; - eventNames(): Array; - listenerCount(type: string | symbol): number; -} - -export class AsyncEmitter extends EventEmitter { - constructor(concurrency?: number); - - setConcurrency(max?: number): this; - - emitParallel(event: string, ...args: any[]): Promise; - - emitSerial(event: string, ...args: any[]): Promise; - - emitReduce(event: string, ...args: any[]): Promise; - - emitReduceRight(event: string, ...args: any[]): Promise; - - subscribe(event: string, listener: (...args: any[]) => void, once?: boolean): () => void; -} - -declare namespace I { - type Long = adone.math.Long; - - type Longable = adone.math.I.Longable; - - namespace ExBuffer { - interface Varint32 { - value: number; - length: number; - } - - interface Varint64 { - value: Long; - length: number; - } - - interface String { - string: string; - length: number; - } - - type Wrappable = string | ExBuffer | Buffer | Uint8Array | ArrayBuffer; - - type METRICS = "b" | "c"; - } -} - -export class ExBuffer { - constructor(capacity?: number, noAssert?: boolean); - - readBitSet(offset?: number): number[]; - - read(length: number, offset?: number): ExBuffer; - - readInt8(offset?: number): number; - - readUInt8(offset?: number): number; - - readInt16LE(offset?: number): number; - - readUInt16LE(offset?: number): number; - - readInt16BE(offset?: number): number; - - readUInt16BE(offset?: number): number; - - readInt32LE(offset?: number): number; - - readUInt32LE(offset?: number): number; - - readInt32BE(offset?: number): number; - - readUInt32BE(offset?: number): number; - - readInt64LE(offset?: number): adone.math.Long; - - readUInt64LE(offset?: number): adone.math.Long; - - readInt64BE(offset?: number): adone.math.Long; - - readUInt64BE(offset?: number): adone.math.Long; - - readFloatLE(offset?: number): number; - - readFloatBE(offset?: number): number; - - readDoubleLE(offset?: number): number; - - readDoubleBE(offset?: number): number; - - write(source: I.ExBuffer.Wrappable, offset?: number, length?: number, encoding?: string): this; - - writeBitSet(value: number[]): this; - - writeBitSet(value: number[], offset: number): number; - - writeInt8(value: number, offset?: number): this; - - writeUInt8(value: number, offset?: number): this; - - writeInt16LE(value: number, offset?: number): this; - - writeInt16BE(value: number, offset?: number): this; - - writeUInt16LE(value: number, offset?: number): this; - - writeUInt16BE(value: number, offset?: number): this; - - writeInt32LE(value: number, offset?: number): this; - - writeInt32BE(value: number, offset?: number): this; - - writeUInt32LE(value: number, offset?: number): this; - - writeUInt32BE(value: number, offset?: number): this; - - writeInt64LE(value: I.Longable, offset?: number): this; - - writeInt64BE(value: I.Longable, offset?: number): this; - - writeUInt64LE(value: I.Longable, offset?: number): this; - - writeUInt64BE(value: I.Longable, offset?: number): this; - - writeFloatLE(value: number, offset?: number): this; - - writeFloatBE(value: number, offset?: number): this; - - writeDoubleLE(value: number, offset?: number): this; - - writeDoubleBE(value: number, offset?: number): this; - - writeVarint32(value: number): this; - - writeVarint32(value: number, offset: number): number; - - writeVarint32ZigZag(value: number): this; - - writeVarint32ZigZag(value: number, offset: number): number; - - readVarint32(): number; - - readVarint32(offset: number): I.ExBuffer.Varint32; - - readVarint32ZigZag(): number; - - readVarint32ZigZag(offset: number): I.ExBuffer.Varint32; - - writeVarint64(value: I.Longable): this; - - writeVarint64(value: I.Longable, offset: number): number; - - writeVarint64ZigZag(value: I.Longable): this; - - writeVarint64ZigZag(value: I.Longable, offset: number): number; - - readVarint64(): I.Long; - - readVarint64(offset: number): I.ExBuffer.Varint64; - - readVarint64ZigZag(): adone.math.Long; - - readVarint64ZigZag(offset: number): I.ExBuffer.Varint64; - - writeCString(str: string): this; - - writeCString(str: string, offset: number): number; - - readCString(): string; - - readCString(offset: number): I.ExBuffer.String; - - writeString(str: string): this; - - writeString(str: string, offset: number): number; - - readString(length: number, metrics?: I.ExBuffer.METRICS): string; - - readString(length: number, metrics: I.ExBuffer.METRICS, offset: number): I.ExBuffer.String; - - readString(length: number, offset: number): I.ExBuffer.String; - - writeVString(str: string): this; - - writeVString(str: string, offset: number): number; - - readVString(): string; - - readVString(offset: number): I.ExBuffer.String; - - appendTo(target: ExBuffer, offset?: number): this; - - assert(assert?: boolean): this; - - capacity(): number; - - clear(): this; - - compact(begin?: number, end?: number): this; - - copy(begin?: number, end?: number): ExBuffer; - - copyTo(target: ExBuffer, targetOffset?: number, souceOffset?: number, sourceLimit?: number): this | ExBuffer; - - ensureCapacity(capacity: number): this; - - fill(value: string | number, begin?: number, end?: number): this; - - flip(): this; - - mark(offset?: number): this; - - prepend(source: I.ExBuffer.Wrappable, encoding?: string, offset?: number): this; - - prepend(source: I.ExBuffer.Wrappable, offset: number): this; - - prependTo(target: ExBuffer, offset?: number): this; - - remaining(): number; - - reset(): this; - - resize(capacity: number): this; - - reverse(begin?: number, end?: number): this; - - skip(length: number): this; - - slice(begin?: number, end?: number): ExBuffer; - - toBuffer(forceCopy?: boolean, begin?: number, end?: number): Buffer; - - toArrayBuffer(): ArrayBuffer; - - toString(encoding?: string, begin?: number, end?: number): string; - - toBase64(begin?: number, end?: number): string; - - toBinary(begin?: number, end?: number): string; - - toDebug(columns?: boolean): string; - - toHex(begin?: number, end?: number): string; - - toUTF8(begin?: number, end?: number): string; - - static accessor(): typeof Buffer; - - static allocate(capacity?: number, noAssert?: boolean): ExBuffer; - - static concat(buffers: I.ExBuffer.Wrappable[], encoding?: string, noAssert?: boolean): ExBuffer; - - static type(): typeof Buffer; - - static wrap(buffer: I.ExBuffer.Wrappable, encoding?: string, noAssert?: boolean): ExBuffer; - - static calculateVarint32(value: number): number; - - static zigZagEncode32(n: number): number; - - static zigZagDecode32(n: number): number; - - static calculateVarint64(value: number | string): number; - - static zigZagEncode64(value: number | string | I.Long): I.Long; - - static zigZagDecode64(value: number | string | I.Long): I.Long; - - static calculateUTF8Chars(str: string): number; - - static calculateString(str: string): number; - - static fromBase64(str: string): ExBuffer; - - static btoa(str: string): string; - - static atob(b64: string): string; - - static fromBinary(str: string): ExBuffer; - - static fromDebug(str: string, noAssert?: boolean): ExBuffer; - - static fromHex(str: string, noAssert?: boolean): ExBuffer; - - static fromUTF8(str: string, noAssert?: boolean): ExBuffer; - - static DEFAULT_CAPACITY: number; - - static DEFAULT_NOASSERT: boolean; - - static MAX_VARINT32_BYTES: number; - - static MAX_VARINT64_BYTES: number; - - static METRICS_CHARS: string; - - static METRICS_BYTES: string; -} diff --git a/types/adone/glosses/compressors.d.ts b/types/adone/glosses/compressors.d.ts new file mode 100644 index 0000000000..963eddc99d --- /dev/null +++ b/types/adone/glosses/compressors.d.ts @@ -0,0 +1,1137 @@ +declare namespace adone { + /** + * Various compressors + */ + namespace compressor { + namespace I { + namespace zlib { + type TypedArray = Int8Array | Uint8Array + | Uint8ClampedArray + | Int16Array | Uint16Array + | Int32Array | Uint32Array + | Float32Array | Float64Array; + + interface CommonOptions { + flush?: number; + finishFlush?: number; + chunkSize?: number; + + /** + * The base two logarithm of the window size (the size of the history buffer). + * It should be in the range 8..15. + * Larger values of this parameter result in better compression at the expense of memory usage. + */ + windowBits?: number; + } + + interface CompressStreamOptions extends CommonOptions { + /** + * The compression level must be Z_DEFAULT_COMPRESSION, or between 0 and 9: + * 1 gives best speed, + * 9 gives best compression, + * 0 gives no compression at all (the input data is simply copied a block at a time). + * Z_DEFAULT_COMPRESSION requests a default compromise between speed and compression (currently equivalent to level 6) + */ + level?: number; + + /** + * How much memory should be allocated for the internal compression state + * + * memLevel=1 uses minimum memory but is slow and reduces compression ratio + * + * memLevel=9 uses maximum memory for optimal speed + */ + memLevel?: number; + + /** + * Used to tune the compression algorithm. + * + * Use the value Z_DEFAULT_STRATEGY for normal data, + * Z_FILTERED for data produced by a filter (or predictor), + * Z_HUFFMAN_ONLY to force Huffman encoding only (no string match), + * or Z_RLE to limit match distances to one (run-length encoding). + */ + strategy?: number; + } + + type DecompressStreamOptions = CommonOptions; + + interface CompressOptions extends CompressStreamOptions { + /** + * If true, returns an object with buffer and engine + */ + info?: boolean; + } + + interface DecompressOptions extends DecompressStreamOptions { + /** + * If true, returns an object with buffer and engine + */ + info?: boolean; + } + + interface Info { + buffer: Buffer; + engine: T; + } + + type GzipInfo = Info; + + type GunzipInfo = Info; + + type DeflateInfo = Info; + + type DeflateRawInfo = Info; + + type InflateInfo = Info; + + type InflateRawInfo = Info; + } + } + /** + * GZIP compressor + */ + namespace gz { + /** + * Compresses the given string or buffer + */ + function compress(buf: string | Buffer, options: I.zlib.CompressOptions & { info: true }): Promise; + + /** + * Compresses the given string or buffer + */ + function compress(buf: string | Buffer, options?: I.zlib.CompressOptions): Promise; + + /** + * Synchronously compreses the given string or buffer + */ + function compressSync(buf: string | Buffer, options: I.zlib.CompressOptions & { info: true }): I.zlib.GzipInfo; + + /** + * Synchronously compreses the given string or buffer + */ + function compressSync(buf: string | Buffer, options?: I.zlib.CompressOptions): Buffer; + + /** + * Creates a compress stream + */ + function compressStream(options?: I.zlib.CompressStreamOptions): nodestd.zlib.Gzip; + + /** + * Decompresses the given string or buffer + */ + function decompress(buf: string | Buffer, options: I.zlib.DecompressOptions & { info: true }): Promise; + + /** + * Decompresses the given string or buffer + */ + function decompress(buf: string | Buffer, options?: I.zlib.DecompressOptions): Promise; + + /** + * Synchronously decompresses the given string or buffer + */ + function decompressSync(buf: string | Buffer, options: I.zlib.DecompressOptions & { info: true }): I.zlib.GunzipInfo; + + /** + * Synchronously decompresses the given string or buffer + */ + function decompressSync(buf: string | Buffer, options?: I.zlib.DecompressOptions): Buffer; + + /** + * Creates a decompress stream + */ + function decompressStream(options?: I.zlib.DecompressStreamOptions): nodestd.zlib.Gunzip; + + const Z_NO_FLUSH: number; + const Z_PARTIAL_FLUSH: number; + const Z_SYNC_FLUSH: number; + const Z_FULL_FLUSH: number; + const Z_FINISH: number; + const Z_BLOCK: number; + const Z_TREES: number; + + const Z_OK: number; + const Z_STREAM_END: number; + const Z_NEED_DICT: number; + const Z_ERRNO: number; + const Z_STREAM_ERROR: number; + const Z_DATA_ERROR: number; + const Z_MEM_ERROR: number; + const Z_BUF_ERROR: number; + const Z_VERSION_ERROR: number; + + const Z_NO_COMPRESSION: number; + const Z_BEST_SPEED: number; + const Z_BEST_COMPRESSION: number; + const Z_DEFAULT_COMPRESSION: number; + + const Z_FILTERED: number; + const Z_HUFFMAN_ONLY: number; + const Z_RLE: number; + const Z_FIXED: number; + const Z_DEFAULT_STRATEGY: number; + } + + /** + * Deflate compressor + */ + namespace deflate { + namespace I { + interface CompressStreamOptions extends compressor.I.zlib.CompressStreamOptions { + dictionary?: Buffer | DataView | compressor.I.zlib.TypedArray; + } + + interface DecompressStreamOptions extends compressor.I.zlib.DecompressStreamOptions { + dictionary?: Buffer | DataView | compressor.I.zlib.TypedArray; + } + + interface CompressOptions extends CompressStreamOptions { + /** + * If true, returns an object with buffer and engine + */ + info?: boolean; + } + + interface DecompressOptions extends DecompressStreamOptions { + /** + * If true, returns an object with buffer and engine + */ + info?: boolean; + } + + type DeflateInfo = compressor.I.zlib.DeflateInfo; + + type DeflateRawInfo = compressor.I.zlib.DeflateRawInfo; + + type InflateInfo = compressor.I.zlib.InflateInfo; + + type InflateRawInfo = compressor.I.zlib.InflateRawInfo; + } + + /** + * Compresses the given string or buffer + */ + function compress(buf: string | Buffer, options: I.CompressOptions & { info: true }): Promise; + + /** + * Compresses the given string or buffer + */ + function compress(buf: string | Buffer, options?: I.CompressOptions): Promise; + + /** + * Synchronously compresses the given string or buffer + */ + function compressSync(buf: string | Buffer, options: I.CompressOptions & { info: true }): I.DeflateInfo; + + /** + * Synchronously compresses the given string or buffer + */ + function compressSync(buf: string | Buffer, options?: I.CompressOptions): Buffer; + + /** + * Creates a compress stream + */ + function compressStream(options?: I.CompressStreamOptions): nodestd.zlib.Deflate; + + /** + * Compresses data using deflate, and does not append a zlib header + */ + function rawCompress(buf: string | Buffer, options: I.CompressOptions & { info: true }): Promise; + + /** + * Compresses data using deflate, and does not append a zlib header + */ + function rawCompress(buf: string | Buffer, options?: I.CompressOptions): Promise; + + /** + * Synchronously compresses data using deflate, and does not append a zlib header + */ + function rawCompressSync(buf: string | Buffer, options: I.CompressOptions & { info: true }): I.DeflateRawInfo; + + /** + * Synchronously compresses data using deflate, and does not append a zlib header + */ + function rawCompressSync(buf: string | Buffer, options?: I.CompressOptions): Buffer; + + /** + * Creates a raw compress stream + */ + function rawCompressStream(options?: I.CompressStreamOptions): nodestd.zlib.DeflateRaw; + + /** + * Decomrpesses the given string of buffer + */ + function decompress(buf: string | Buffer, options: I.DecompressOptions & { info: true }): Promise; + + /** + * Decomrpesses the given string of buffer + */ + function decompress(buf: string | Buffer, options?: I.DecompressOptions): Promise; + + /** + * Synchronously decomrpesses the given string of buffer + */ + function decompressSync(buf: string | Buffer, options: I.DecompressOptions & { info: true }): I.InflateInfo; + + /** + * Synchronously decomrpesses the given string of buffer + */ + function decompressSync(buf: string | Buffer, options?: I.DecompressOptions): Buffer; + + /** + * Creates a decompress stream + */ + function decompressStream(options?: I.DecompressStreamOptions): nodestd.zlib.Inflate; + + /** + * Decompresses raw compressed data + */ + function rawDecompress(buf: string | Buffer, options: I.DecompressOptions & { info: true }): Promise; + + /** + * Decompresses raw compressed data + */ + function rawDecompress(buf: string | Buffer, options?: I.DecompressOptions): Promise; + + /** + * Synchronously decompresses raw compressed data + */ + function rawDecompressSync(buf: string | Buffer, options: I.DecompressOptions & { info: true }): I.InflateRawInfo; + + /** + * Synchronously decompresses raw compressed data + */ + function rawDecompressSync(buf: string | Buffer, options?: I.DecompressOptions): Buffer; + + /** + * Creates a raw decompress stream + */ + function rawDecompressStream(options?: I.DecompressStreamOptions): nodestd.zlib.InflateRaw; + + const Z_NO_FLUSH: number; + const Z_PARTIAL_FLUSH: number; + const Z_SYNC_FLUSH: number; + const Z_FULL_FLUSH: number; + const Z_FINISH: number; + const Z_BLOCK: number; + const Z_TREES: number; + + const Z_OK: number; + const Z_STREAM_END: number; + const Z_NEED_DICT: number; + const Z_ERRNO: number; + const Z_STREAM_ERROR: number; + const Z_DATA_ERROR: number; + const Z_MEM_ERROR: number; + const Z_BUF_ERROR: number; + const Z_VERSION_ERROR: number; + + const Z_NO_COMPRESSION: number; + const Z_BEST_SPEED: number; + const Z_BEST_COMPRESSION: number; + const Z_DEFAULT_COMPRESSION: number; + + const Z_FILTERED: number; + const Z_HUFFMAN_ONLY: number; + const Z_RLE: number; + const Z_FIXED: number; + const Z_DEFAULT_STRATEGY: number; + } + + /** + * Brotli compressor (br) + */ + namespace brotli { + namespace I { + interface CompressOptions { + /** + * Tune encoder for specific input. + * + * 0 - Generic mode, compressor does not know anything in advance about the properties of the input. + * + * 1 - Text mode, compression mode for UTF-8 formatted text input. + * + * 2 - Font, compression mode used in WOFF 2.0. + * + * Default is 0. + */ + mode?: number; + + /** + * The main compression speed-density lever. + * The higher the quality, the slower the compression. + * From 0 to 11. + * + * Default is 11. + */ + quality?: number; + + /** + * Recommended sliding LZ77 window size. + * Encoder may reduce this value, e.g. if input is much smaller than window size. + * Window size is (1 << value) - 16. + * From 10 to 24. + * + * Default is 22. + */ + lgwin?: number; + + /** + * Recommended input block size. + * Encoder may reduce this value, e.g. if input is much smaller than input block size. + * Bigger input block size allows better compression, but consumes more memory. + * From 16 to 24. + */ + lgblock?: number; + + /** + * Estimated total input size for all BrotliEncoderCompressStream calls. + * + * Automatically set for `compress` and `compressSync` to the input buffer length + */ + size_hint?: number; + + /** + * Flag that affects usage of "literal context modeling" format feature. + * This flag is a "decoding-speed vs compression ratio" trade-off. + */ + disable_literal_context_modeling?: boolean; + + /** + * A custom dictionary + */ + dictionary?: Buffer; + } + + interface DecompressOptions { + /** + * A custom dictionary + */ + dictionary?: Buffer; + } + + interface EncodeStream extends nodestd.stream.Transform { + flush(force?: boolean): void; + } + + type DecodeStream = nodestd.stream.Transform; + } + + /** + * Compresses the given string or buffer + */ + function compress(buf: string | Buffer, options?: I.CompressOptions): Promise; + + /** + * Synchronously compresses the given string or buffer + */ + function compressSync(buf: string | Buffer, options?: I.CompressOptions): Buffer; + + /** + * Creates a compress stream + */ + function compressStream(options?: I.CompressOptions): I.EncodeStream; + + /** + * Decompresses the given buffer + */ + function decompress(buf: Buffer, options?: I.DecompressOptions): Promise; + + /** + * Synchronously decompresses the given buffer + */ + function decompressSync(buf: Buffer, options?: I.DecompressOptions): Buffer; + + /** + * Creates a decompress stream + */ + function decompressStream(options?: I.DecompressOptions): I.DecodeStream; + } + + /** + * Snappy compressor + */ + namespace snappy { + /** + * Compresses the given string or buffer + */ + function compress(buf: string | Buffer): Promise; + + /** + * Synchronously compresses the given string or buffer + */ + function compressSync(buf: string | Buffer): Buffer; + + /** + * Checks whether the given buffer is a valid compressed buffer + */ + function isValidCompressed(buf: Buffer): Promise; + + /** + * Synchronously checks whether the given buffer is a valid compressed buffer + */ + function isValidCompressedSync(buf: Buffer): boolean; + + /** + * Decompresses the given buffer + */ + function decompress(buf: Buffer): Promise; + + /** + * Synchronously decompresses the given buffer + */ + function decompressSync(buf: Buffer): Buffer; + } + + namespace I.lzma { + interface Filter { + id: "LZMA_FILTERS_MAX" + | "LZMA_FILTER_ARM" + | "LZMA_FILTER_ARMTHUMB" + | "LZMA_FILTER_IA64" + | "LZMA_FILTER_POWERPC" + | "LZMA_FILTER_SPARC" + | "LZMA_FILTER_X86" + | "LZMA_FILTER_LZMA1" + | "LZMA_FILTER_LZMA2"; + } + + interface DeltaFilter { + id: "LZMA_FILTER_DELTA"; + dist?: number; + } + + interface LZMAFilter { + id: "LZMA_FILTER_LZMA1" | "LZMA_FILTER_LZMA2"; + + /** + * Dictionary size indicates how many bytes of the recently processed + * uncompressed data is kept in memory. + */ + dict_size?: number; + + /** + * The number of literal position bits. + * From 0 to 4. + * Default is 0. + * In addition, the sum of lc and lp must not exceed 4. + */ + lp?: number; + + /** + * The number of literal context bits. + * From 0 to 4. + * Default is 3. + * In addition, the sum of lc and lp must not exceed 4. + */ + lc?: number; + + /** + * The number of position bits. + * From 0 to 4. + * Default is 2. + */ + pb?: number; + + /** + * Compression mode + * + * lzma.MODE_FAST - 1 + * + * lzma.MODE_NORMAL - 2 + */ + mode?: number; + + /** + * Specify what is considered to be a nice length for a match. + * Once a match of at least nice bytes is found, the algorithm stops looking for possibly better matches. + * From 2 to 273. + * Default is 64. + */ + nice_len?: number; + + /** + * Match finder has major effect on both speed and compression ratio. + * Usually hash chains are faster than binary trees. + * + * MF_HC3 - 3 + * + * MF_HC4 - 4 + * + * MF_BT2 - 18 + * + * MF_BT3 - 19 + * + * MF_BT4 - 201 + * + */ + mf?: number; + + /** + * Specify the maximum search depth in the match finder. + * The default is the special value of 0, which makes the + * compressor determine a reasonable depth from mf and nice. + * + * Reasonable depth for Hash Chains is 4-100 and 16-1000 for Binary Trees. + */ + depth?: number; + + /** + * A number from 0 to 9, 0 being the fastest and weakest compression, + * 9 the slowest and highest compression level + */ + preset?: number; + } + + type Filters = Array; + + type Coder = "easyEncoder" + | "autoDecoder" + | "aloneEncoder" + | "aloneDecoder" + | "rawEncoder" + | "rawDecoder" + | "streamEncoder" + | "streamDecoder"; + + interface AloneEncoderOptions { + /** + * Any of: + * + * CHECK_CRC32 (1) + * + * CHECK_CRC64 (4) + * + * CHECK_NONE (0) + * + * CHECK_SHA256 (10) + */ + check?: number; + + /** + * A memory limit for (de-)compression in bytes + */ + memlimit?: number; + + /** + * A number from 0 to 9, 0 being the fastest and weakest compression, 9 the slowest and highest compression level + */ + preset?: number; + + /** + * A bitwise OR of + * LZMA_TELL_NO_CHECK, + * LZMA_TELL_UNSUPPORTED_CHECK, + * LZMA_TELL_ANY_CHECK, + * LZMA_CONCATENATED + */ + flags?: number; + + /** + * If true, forces synchronous coding (i.e. no usage of threading) + */ + synchronous?: boolean; + + /** + * The default size for allocated buffers + */ + bufsize?: number; + + /** + * Set to an integer to use liblzma’s multi-threading support. 0 will choose the number of CPU cores. + */ + threads?: number; + + /** + * Maximum uncompressed size of a block in multi-threading mode + */ + blockSize?: number; + + /** + * Timeout for a single encoding operation in multi-threading mode + */ + timeout?: number; + + /** + * An array of additional filters + */ + filters?: Filters; + } + + interface Stream extends nodestd.stream.Transform { + bufsize: number; + + totalIn(): number; + + totalOut(): number; + + cleanup(): void; + } + + interface EasyEncoderOptions { + /** + * A number from 0 to 9, 0 being the fastest and weakest compression, 9 the slowest and highest compression level + */ + preset?: number; + + /** + * Any of: + * + * CHECK_CRC32 (1) + * + * CHECK_CRC64 (4) + * + * CHECK_NONE (0) + * + * CHECK_SHA256 (10) + */ + check?: number; + } + + interface AutoDecoderOptions { + /** + * A memory limit for (de-)compression in bytes + */ + memlimit?: number; + + /** + * A bitwise OR of + * LZMA_TELL_NO_CHECK, + * LZMA_TELL_UNSUPPORTED_CHECK, + * LZMA_TELL_ANY_CHECK, + * LZMA_CONCATENATED + */ + flags?: number; + } + + interface AloneDecoderOptions { + /** + * A memory limit for (de-)compression in bytes + */ + memlimit?: number; + } + + interface RawEncoderOptions { + /** + * An array of additional filters + */ + filters?: Filters; + } + + interface RawDecoderOptions { + /** + * An array of additional filters + */ + filters?: Filters; + } + + interface StreamEncoderOptions { + /** + * Any of: + * + * CHECK_CRC32 (1) + * + * CHECK_CRC64 (4) + * + * CHECK_NONE (0) + * + * CHECK_SHA256 (10) + */ + check?: number; + + /** + * An array of additional filters + */ + filters?: Filters; + } + + interface StreamDecoderOptions { + /** + * A memory limit for (de-)compression in bytes + */ + memlimit?: number; + + /** + * A bitwise OR of + * LZMA_TELL_NO_CHECK, + * LZMA_TELL_UNSUPPORTED_CHECK, + * LZMA_TELL_ANY_CHECK, + * LZMA_CONCATENATED + */ + flags?: number; + } + } + + /** + * lzma compressor + common lzma functionality + */ + namespace lzma { + const asyncCodeAvailable: boolean; + + /** + * Returns the version of the underlying C library + */ + function versionNumber(): number; + + /** + * Returns the version of the underlying C library + */ + function versionString(): string; + + /** + * Checks whether the given Check ID is supported by this liblzma build + */ + function checkIsSupported(check: number): boolean; + + /** + * Return the byte size of a check sums + * + * @param check Any supported check constant + */ + function checkSize(check: number): number; + + /** + * Checks whether the given encoder filter is supported + */ + function filterEncoderIsSupported(encoder: string): boolean; + + /** + * Checks whether the given encoder filter is supported + */ + function filterDecoderIsSupported(decoder: string): boolean; + + /** + * Checks whether the given match finder is supported by this liblzma build + */ + function mfIsSupported(mf: number): boolean; + + /** + * Checks whether the given compression mode is supported by this liblzma build + */ + function modeIsSupported(mode: number): boolean; + + /** + * Returns the approximate memory usage when encoding using rawEncoder for a given filter list + */ + function rawEncoderMemusage(filters: I.lzma.Filters): number; + + /** + * Returns the approximate memory usage when decoding using rawDecoder for a given filter list + */ + function rawDecoderMemusage(filters: I.lzma.Filters): number; + + /** + * Returns the approximate memory usage when encoding using easyEncoder for a given preset + */ + function easyEncoderMemusage(preset: number): number; + + /** + * Returns the approximate memory usage when decoding using easyDecoder for a given preset + */ + function easyDecoderMemusage(preset: number): number; + + /** + * Returns a standard LZMA2 (.xz) encoder + * + * @param options preset or options + */ + function createStream(coder: "easyEncoder", options?: number | I.lzma.EasyEncoderOptions): I.lzma.Stream; + + /** + * Returns a standard LZMA 1/2 (bith .xz and .lzma) decoder with auto detection of file format + * + * @param options preset or options + */ + function createStream(coder: "autoDecoder", options?: I.lzma.AutoDecoderOptions): I.lzma.Stream; + + /** + * Returns a standard LZMA encoder + * + * @param options preset or options + */ + function createStream(coder: "aloneEncoder", options?: number | I.lzma.AloneEncoderOptions): I.lzma.Stream; + + /** + * Returns a standard LZMA decoder + */ + function createStream(coder: "aloneDecoder", options?: I.lzma.AloneDecoderOptions): I.lzma.Stream; + + /** + * Returns a custom encoder corresponding to lzma_raw_encoder + */ + function createStream(coder: "rawEncoder", options?: I.lzma.RawEncoderOptions): I.lzma.Stream; + + /** + * Returns a custom decoder corresponding to lzma_raw_decoder + */ + function createStream(coder: "rawDecoder", options?: I.lzma.RawDecoderOptions): I.lzma.Stream; + + /** + * Returns a custom encoder corresponding to lzma_stream_encoder + */ + function createStream(coder: "streamEncoder", options?: I.lzma.StreamEncoderOptions): I.lzma.Stream; + + /** + * Returns a custom decoder corresponding to lzma_stream_decoder + */ + function createStream(coder: "streamDecoder", options?: I.lzma.StreamDecoderOptions): I.lzma.Stream; + + /** + * Encodes the given string or buffer using the given stream + */ + function singleStringCoding( + stream: I.lzma.Stream, + string: string | Buffer, + onFinish?: (err: any, data: Buffer) => void, + onProgress?: (progress: number) => void + ): Promise; + + const CHECK_CRC32: number; + const CHECK_CRC64: number; + const CHECK_NONE: number; + const CHECK_SHA256: number; + + const FILTERS_MAX: string; + const FILTER_ARM: string; + const FILTER_ARMTHUMB: string; + const FILTER_IA64: string; + const FILTER_POWERPC: string; + const FILTER_SPARC: string; + const FILTER_X86: string; + const FILTER_DELTA: string; + const FILTER_LZMA1: string; + const FILTER_LZMA2: string; + + const PRESET_EXTREME: number; + const PRESET_DEFAULT: number; + const PRESET_LEVEL_MASK: number; + + const MF_HC3: number; + const MF_HC4: number; + const MF_BT2: number; + const MF_BT3: number; + const MF_BT4: number; + + const LZMA_TELL_NO_CHECK: number; + const LZMA_TELL_UNSUPPORTED_CHECK: number; + const LZMA_TELL_ANY_CHECK: number; + const LZMA_CONCATENATED: number; + + const MODE_FAST: number; + const MODE_NORMAL: number; + + const STREAM_HEADER_SIZE: number; + + /** + * Compresses the given string or buffer + * + * @param options preset or options + */ + function compress(buf: string | Buffer, options?: number | I.lzma.AloneEncoderOptions): Promise; + + /** + * Creates a compress stream + * + * @param options preset or options + */ + function compressStream(options?: number | I.lzma.AloneEncoderOptions): I.lzma.Stream; + + /** + * Decompresses the given buffer + */ + function decompress(buf: Buffer, options?: I.lzma.AloneDecoderOptions): Promise; + + /** + * Creates a decompress stream + * + * @param options preset or options + */ + function decompressStream(options?: I.lzma.AloneDecoderOptions): I.lzma.Stream; + } + + /** + * xz compressor (lzma2) + common lzma functionality + */ + namespace xz { + const asyncCodeAvailable: boolean; + + /** + * Returns the version of the underlying C library + */ + function versionNumber(): number; + + /** + * Returns the version of the underlying C library + */ + function versionString(): string; + + /** + * Checks whether the given Check ID is supported by this liblzma build + */ + function checkIsSupported(check: number): boolean; + + /** + * Return the byte size of a check sums + * + * @param check Any supported check constant + */ + function checkSize(check: number): number; + + /** + * Checks whether the given encoder filter is supported + */ + function filterEncoderIsSupported(encoder: string): boolean; + + /** + * Checks whether the given encoder filter is supported + */ + function filterDecoderIsSupported(decoder: string): boolean; + + /** + * Checks whether the given match finder is supported by this liblzma build + */ + function mfIsSupported(mf: number): boolean; + + /** + * Checks whether the given compression mode is supported by this liblzma build + */ + function modeIsSupported(mode: number): boolean; + + /** + * Returns the approximate memory usage when encoding using rawEncoder for a given filter list + */ + function rawEncoderMemusage(filters: I.lzma.Filters): number; + + /** + * Returns the approximate memory usage when decoding using rawDecoder for a given filter list + */ + function rawDecoderMemusage(filters: I.lzma.Filters): number; + + /** + * Returns the approximate memory usage when encoding using easyEncoder for a given preset + */ + function easyEncoderMemusage(preset: number): number; + + /** + * Returns the approximate memory usage when decoding using easyDecoder for a given preset + */ + function easyDecoderMemusage(preset: number): number; + + /** + * Returns a standard LZMA2 (.xz) encoder + * + * @param options preset or options + */ + function createStream(coder: "easyEncoder", options?: number | I.lzma.EasyEncoderOptions): I.lzma.Stream; + + /** + * Returns a standard LZMA 1/2 (bith .xz and .lzma) decoder with auto detection of file format + */ + function createStream(coder: "autoDecoder", options?: I.lzma.AutoDecoderOptions): I.lzma.Stream; + + /** + * Returns a standard LZMA encoder + * + * @param options preset or options + */ + function createStream(coder: "aloneEncoder", options?: number | I.lzma.AloneEncoderOptions): I.lzma.Stream; + + /** + * Returns a standard LZMA decoder + */ + function createStream(coder: "aloneDecoder", options?: I.lzma.AloneDecoderOptions): I.lzma.Stream; + + /** + * Returns a custom encoder corresponding to lzma_raw_encoder + */ + function createStream(coder: "rawEncoder", options?: I.lzma.RawEncoderOptions): I.lzma.Stream; + + /** + * Returns a custom decoder corresponding to lzma_raw_decoder + */ + function createStream(coder: "rawDecoder", options?: I.lzma.RawDecoderOptions): I.lzma.Stream; + + /** + * Returns a custom encoder corresponding to lzma_stream_encoder + */ + function createStream(coder: "streamEncoder", options?: I.lzma.StreamEncoderOptions): I.lzma.Stream; + + /** + * Returns a custom decoder corresponding to lzma_stream_decoder + */ + function createStream(coder: "streamDecoder", options?: I.lzma.StreamDecoderOptions): I.lzma.Stream; + + /** + * Encodes the given string or buffer using the given stream + */ + function singleStringCoding( + stream: I.lzma.Stream, + string: string | Buffer, + onFinish?: (err: any, data: Buffer) => void, + onProgress?: (progress: number) => void + ): Promise; + + const CHECK_CRC32: number; + const CHECK_CRC64: number; + const CHECK_NONE: number; + const CHECK_SHA256: number; + + const FILTERS_MAX: string; + const FILTER_ARM: string; + const FILTER_ARMTHUMB: string; + const FILTER_IA64: string; + const FILTER_POWERPC: string; + const FILTER_SPARC: string; + const FILTER_X86: string; + const FILTER_DELTA: string; + const FILTER_LZMA1: string; + const FILTER_LZMA2: string; + + const PRESET_EXTREME: number; + const PRESET_DEFAULT: number; + const PRESET_LEVEL_MASK: number; + + const MF_HC3: number; + const MF_HC4: number; + const MF_BT2: number; + const MF_BT3: number; + const MF_BT4: number; + + const LZMA_TELL_NO_CHECK: number; + const LZMA_TELL_UNSUPPORTED_CHECK: number; + const LZMA_TELL_ANY_CHECK: number; + const LZMA_CONCATENATED: number; + + const MODE_FAST: number; + const MODE_NORMAL: number; + + const STREAM_HEADER_SIZE: number; + + /** + * Compresses the given string or buffer + * + * @param options preset or options + */ + function compress(buf: string | Buffer, options?: number | I.lzma.EasyEncoderOptions): Promise; + + /** + * Creates a compress stream + * + * @param options preset or options + */ + function compressStream(options?: number | I.lzma.EasyEncoderOptions): I.lzma.Stream; + + /** + * Decompresses the given buffer + */ + function decompress(buf: Buffer, options?: I.lzma.AutoDecoderOptions): Promise; + + /** + * Creates a decompress stream + * + * @param options preset or options + */ + function decompressStream(options?: I.lzma.AutoDecoderOptions): I.lzma.Stream; + } + } +} diff --git a/types/adone/glosses/data.d.ts b/types/adone/glosses/data.d.ts new file mode 100644 index 0000000000..f711836bdd --- /dev/null +++ b/types/adone/glosses/data.d.ts @@ -0,0 +1,1032 @@ +declare namespace adone { + /** + * Various data [de]serializers + */ + namespace data { + /** + * JSON encoder + */ + namespace json { + namespace I { + type Replacer = ((key: string, value: any) => any) | string[]; + interface CompareValue { + key: string; + value: any; + } + type CompareFunction = (a: CompareValue, b: CompareValue) => number; + } + + /** + * Actually, the same as JSON.stringify, but returns a buffer + */ + function encode(obj: any, options?: { + /** + * A String or Number object that's used to insert white space into the output JSON string for readability purposes + */ + space?: string, + + /** + * A function that alters the behavior of the stringification process, + * or an array of String and Number objects that serve as a whitelist + * for selecting/filtering the properties of the value object to be included in the JSON string + */ + replacer?: I.Replacer + }): Buffer; + + /** + * Decodes JSON string or buffer + */ + function decode(buf: string | Buffer): any; + + /** + * Deterministic version of JSON.stringify() so you can get a consistent hash from stringified results + */ + function encodeStable(obj: any, options?: { + /** + * Indent spaces for pretty-printing + */ + space?: string, + + /** + * Whether to allow circular JSON structure + */ + cycles?: boolean, + + /** + * A function that alters the behavior of the stringification process, + * or an array of String and Number objects that serve as a whitelist + * for selecting/filtering the properties of the value object to be included in the JSON string + */ + replacer?: I.Replacer, + + /** + * Custom comparison function for object keys + */ + cmp?: I.CompareFunction + }): string; + + function encodeSafe(obj: any): string; + + function decodeSafe(str: string): any; + } + + /** + * MessagePack encoder + */ + namespace mpak { + /** + * Encodes the given object + */ + function encode(obj: any): Buffer; + + /** + * Decoder the given buffer + */ + function decode(buf: collection.I.ByteArray.Wrappable): any; + + namespace I { + type Type = string | number; // ? + type DecodeFunction = (buf: collection.ByteArray) => any; + type EncodeFunction = (x: any) => collection.ByteArray; + type EncodeCheckFunction = (x: any) => boolean; + + interface DecodingType { + /** + * Value type + */ + type: Type; + + /** + * Decode function + */ + decode: DecodeFunction; + } + + interface EncodingType { + /** + * Value type + */ + type: Type; + + /** + * Encode function + */ + encode: EncodeFunction; + + /** + * Check function + */ + check: EncodeCheckFunction; + } + } + + /** + * Represents a MessagePack encoder + */ + class Encoder { + constructor(encodingTypes: I.EncodingType[]); + + /** + * Encodes the given value + */ + encode(x: any, buf?: T): T; + } + + /** + * Represents a MessagePack decoder + */ + class Decoder { + constructor(decodingTypes: I.DecodingType[]); + + /** + * Decodes the given buffer + */ + decode(buf: collection.I.ByteArray.Wrappable): any; + + /** + * Decodes the given ByteArray buffer, but does not throw IncompleteBufferError if the size is invalid + */ + tryDecode(buf: collection.ByteArray): any; + } + + /** + * Represents a MessagePack serializer + */ + class Serializer { + /** + * Encoder instance + */ + readonly encoder: Encoder; + + /** + * Decoder instance + */ + readonly decoder: Decoder; + + /** + * Registers an encoder for the given type + * + * @param type type identifier + * @param check type predicate + * @param encode type encoder + */ + registerEncoder(type: I.Type, check: I.EncodeCheckFunction, encode: I.EncodeFunction): this; + + /** + * Registers a decoder for the given type + * + * @param type type identifier + * @param decode type decoder + */ + registerDecoder(type: I.Type, decode: I.DecodeFunction): this; + + /** + * Registers encoder/decoder functions for the given type and constructor + * + * @param type type identifier + * @param constructor type constructor, used in the predicate function (instanceof) + * @param encode type encoder + * @param decode type decoder + */ + register( + type: I.Type, + constructor: { new (...args: any[]): T }, + encode: (x: T, buf: collection.ByteArray) => void, + decode: (buf: collection.ByteArray) => T + ): this; + + /** + * Encodes the given value + */ + encode(x: any, buf?: T): T; + + /** + * Decodes the given buffer + */ + decode(buf: collection.I.ByteArray.Wrappable, needFlip?: boolean): any; + } + + /** + * An instance of default adone serializer with registered encoders/decoders for standard js/adone types like + * x.Exception, Error, Date, Map, Set, math.Long + */ + const serializer: Serializer; + } + + /** + * JSON5 encoder + */ + namespace json5 { + /** + * Encodes the given value + */ + function encode(obj: any, options?: { + /** + * Indent spaces for pretty-printing + */ + space?: string, + + /** + * A function that alters the behavior of the stringification process, + * or an array of String and Number objects that serve as a whitelist + * for selecting/filtering the properties of the value object to be included in the JSON string + */ + replacer?: ((key: string, value: any) => any) | string[] + }): Buffer; + + /** + * Decodes the given string/buffer + */ + function decode(buf: string | Buffer, reviver?: (holder: object, key: string, value: any) => any): any; + } + + /** + * Base64 encoder + */ + namespace base64 { + /** + * Encodes a string/Buffer to base64 + */ + function encode(str: string | Buffer, options: { buffer: false }): string; + function encode(str: string | Buffer, options?: { buffer?: true }): Buffer; + + /** + * Decodes base64 string/buffer into a buffer + */ + function decode(str: string | Buffer, options: { buffer: true }): Buffer; + + /** + * Decodes base64 string/buffer into a string + */ + function decode(str: string | Buffer, options?: { buffer?: false }): string; + + function encodeVLQ(value: number): string; + + function decodeVLQ(value: string, index: number | undefined, rest: true): { value: number, index: number }; + function decodeVLQ(value: string, index?: number, rest?: boolean): number; + + /** + * Maps a character to a base64 number + */ + function decodeCharCode(c: string): number; + + /** + * Maps a number to a base64 character + */ + function decodeNumber(n: number): string; + } + + /** + * YAML encoder + */ + namespace yaml { + /** + * YAML loaders + */ + namespace loader { + namespace I { + interface Options { + /** + * String to be used as a file path in error/warning messages. Default: null + */ + filename?: string; + + /** + * Specifies a schema to use + */ + schema?: schema.Schema; + + /** + * Function to call on warning messages. + * Loader will throw on warnings if this function is not provided + */ + onWarning?(warning: any): void; + + /** + * Compatibility with JSON.parse behaviour. + * If true, then duplicate keys in a mapping will override values rather than throwing an error + */ + json?: boolean; + } + } + + /** + * Same as safeLoadAll() but uses DEFAULT_FULL by default + */ + function loadAll(input: string | Buffer, iterator: (doc: any) => void, options?: I.Options): void; + function loadAll(input: string | Buffer, iterator?: undefined, options?: I.Options): any[]; + + /** + * The same as safeLoad() but uses DEFAULT_FULL_SCHEMA by default - adds some JavaScript-specific types: !!js/function, !!js/regexp and !!js/undefined. + * For untrusted sources, you must additionally validate object structure to avoid injections + */ + function load(input: string | Buffer, options?: I.Options): any; + + /** + * Parses string as single YAML document. Returns a JavaScript object or throws YAMLException on error. + * By default, does not support regexps, functions and undefined. + * This method is safe for untrusted data + */ + function safeLoadAll(input: string | Buffer, iterator: (doc: any) => void, options?: I.Options): void; + function safeLoadAll(input: string | Buffer, iterator?: undefined, options?: I.Options): any[]; + + /** + * Same as safeLoad(), but understands multi-document sources. + * Applies iterator to each document if specified, or returns array of documents + */ + function safeLoad(input: string | Buffer, options?: I.Options): any; + } + + /** + * YAML dumpers + */ + namespace dumper { + namespace I { + interface Options { + /** + * indentation width to use (in spaces). Default: 2 + */ + indent?: number; + + /** + * Do not throw on invalid types (like function in the safe schema) and skip pairs and single values with such types. + * Default: false + */ + skipInvalid?: boolean; + + /** + * Specifies level of nesting, when to switch from block to flow style for collections. + * -1 means block style everwhere. Default: -1 + */ + flowLevel?: number; + + /** + * "tag" => "style" map. Each tag may have own set of styles + */ + styles?: object; + + /** + * Specifies a schema to use + */ + schema?: schema.Schema; + + /** + * If true, sort keys when dumping YAML. If a function, use the function to sort the keys. Default: false + */ + sortKeys?: boolean; + + /** + * Set max line width. Default: 80 + */ + lineWidth?: number; + + /** + * If true, don't convert duplicate objects into references. Default: false + */ + noRefs?: boolean; + + /** + * If true don't try to be compatible with older yaml versions. + * Currently: don't quote "yes", "no" and so on, as required for YAML 1.1. + * Default: false + */ + noCompatMode?: boolean; + + /** + * If true flow sequences will be condensed, omitting the space between a, b. Eg. '[a,b]' + */ + condenseFlow?: boolean; + } + } + + /** + * Same as safeDump() but without limits (uses DEFAULT_FULL by default) + */ + function dump(input: any, options?: I.Options): string; + + /** + * Serializes object as a YAML document. + * Uses DEFAULT_SAFE, so it will throw an exception if you try to dump regexps or functions + */ + function safeDump(input: any, options?: I.Options): string; + } + + /** + * YAML types for custom schemas + */ + namespace type { + namespace I { + type Kind = "scalar" | "sequence" | "mapping"; + + interface TypeOptions { + kind: Kind; + resolve?(data: string): boolean; + construct?(data: string): T; + instanceOf?: object; + predicate?(obj: any): boolean; + represent?: ((obj: any, style: string) => string) | { [key: string]: (obj: any, style: string) => string }; + defaultStyle?: string; + styleAliases?: object; + } + } + + class Type { + tag: string; + resolve(data: string): boolean; + construct(data: string): T; + instanceOf?: object; + predicate?(obj: any): boolean; + represent?: (obj: any, style: string) => string | { [key: string]: (obj: any, style: string) => string }; + defaultStyle?: string; + styleAliases?: object; + + constructor(tag: string, options: I.TypeOptions); + } + + namespace I { + interface Scalar extends Type { + kind: "scalar"; + } + + interface Mapping extends Type { + kind: "mapping"; + } + + interface Sequence extends Type { + kind: "sequence"; + } + } + + const Binary: I.Scalar; + + const Bool: I.Scalar; + + const Float: I.Scalar; + + const Int: I.Scalar; + + const Map: I.Mapping; + + const Merge: I.Scalar; + + const Null: I.Scalar; + + const Omap: I.Sequence; + + const Pairs: I.Sequence<[string, any]>; + + const Seq: I.Sequence; + + const Set: I.Mapping; + + const Str: I.Scalar; + + const Timestamp: I.Scalar; + + namespace js { + const Function: I.Scalar<(...args: any[]) => void>; + + const RegExp: I.Scalar; + + const Undefined: I.Scalar; + } + } + + /** + * YAML schemas + */ + namespace schema { + class Schema { + include: Schema[]; + implicit: type.Type[]; + explicit: type.Type[]; + compiledImplicit: type.Type[]; + compiledExplicit: type.Type[]; + compiledTypeMap: { + scalar: { [key: string]: type.Type }, + sequence: { [key: string]: type.Type }, + mapping: { [key: string]: type.Type }, + fallback: { [key: string]: type.Type } + }; + + constructor(_?: { include?: Schema[], implicit?: type.Type[], explicit?: type.Type[] }); + } + + function create(schemas: Schema | Schema[], types: type.Type | type.Type[]): Schema; + + /** + * same as JSON + */ + const CORE: Schema; + + /** + * all supported YAML types + */ + const DEFAULT_FULL: Schema; + + /** + * all supported YAML types, without unsafe ones: !!js/undefined, !!js/regexp and !!js/function + */ + const DEFAULT_SAFE: Schema; + + /** + * only strings, arrays and plain objects + */ + const FAILSAFE: Schema; + + /** + * all JSON-supported types + */ + const JSON: Schema; + } + + /** + * Represetns a mark that is used in exceptions to define the error's location + */ + class Mark { + name: string; + buffer: string; + position: number; + line: number; + column: number; + + constructor(name: string, buffer: string, position: number, line: number, column: number); + + getSnippet(indent?: number, maxLength?: number): string; + + toString(compact?: boolean): string; + } + + /** + * Represents a YAML exception + */ + class Exception extends adone.x.Exception { + reason: string; + mark: Mark; + + constructor(reason: string, mark: Mark); + } + + /** + * Encodes the given object using DEFAULT_SAFE scheme by default + */ + function encode(obj: any, options?: dumper.I.Options): Buffer; + + /** + * Decodes the given string/buffer using DEFAULT_SAFE scheme by default + */ + function decode(buf: string | Buffer, options?: loader.I.Options): any; + + /** + * The same as safeLoad() but uses DEFAULT_FULL_SCHEMA by default - adds some JavaScript-specific types: !!js/function, !!js/regexp and !!js/undefined. + * For untrusted sources, you must additionally validate object structure to avoid injections + */ + const load: typeof loader.load; + + /** + * Same as safeLoadAll() but uses DEFAULT_FULL by default + */ + const loadAll: typeof loader.loadAll; + + /** + * Parses string as single YAML document. Returns a JavaScript object or throws YAMLException on error. + * By default, does not support regexps, functions and undefined. + * This method is safe for untrusted data + */ + const safeLoad: typeof loader.safeLoad; + + /** + * Same as safeLoad(), but understands multi-document sources. + * Applies iterator to each document if specified, or returns array of documents + */ + const safeLoadAll: typeof loader.safeLoadAll; + + /** + * Same as safeDump() but without limits (uses DEFAULT_FULL by default) + */ + const dump: typeof dumper.dump; + + /** + * Serializes object as a YAML document. + * Uses DEFAULT_SAFE, so it will throw an exception if you try to dump regexps or functions + */ + const safeDump: typeof dumper.safeDump; + } + + /** + * BSON encoder + */ + namespace bson { + namespace I { + interface Type { + _bsontype: string; + } + } + + /** + * Represents a BSON Binary type + */ + class Binary implements I.Type { + _bsontype: "binary"; + + constructor(buffer: number | Buffer, subType?: number); + + /** + * Updates this binary with `byte` + */ + put(byte: number): void; + + /** + * Writes a buffer or string to the binary + */ + write(string: string | Buffer, offset?: number): void; + + /** + * Reads length bytes starting at position + */ + read(position: number, length?: number): void; + + /** + * Returns the value of this binary as a string or buffer + */ + value(asRaw: true): Buffer; + value(): string; + + /** + * Returns the length of the binary + */ + length(): number; + + toJSON(): string; + + toString(): string; + + static BUFFER_SIZE: number; + static SUBTYPE_DEFAULT: number; + static SUBTYPE_FUNCTION: number; + static SUBTYPE_BYTE_ARRAY: number; + static SUBTYPE_UUID_OLD: number; + static SUBTYPE_UUID: number; + static SUBTYPE_MD5: number; + static SUBTYPE_USER_DEFINED: number; + } + + /** + * Represents BSON Code type + */ + class Code implements I.Type { + _bsontype: "Code"; + + /** + * @param code a string or function + * @param scope an optional scope for the function + */ + constructor(code: string | ((...args: any[]) => void), scope?: object); + + toJSON(): { scope: object, code: string }; + } + + /** + * Represents BSON DBRef type + */ + class DBRef implements I.Type { + _bsontype: "DBRef"; + + /** + * @param namespace the collection name + * @param oid the reference ObjectID + * @param db optional db name, if omitted the reference is local to the current db + */ + constructor(namespace: string, oid: ObjectId, db?: string); + + toJSON(): { $ref: string, $id: ObjectId, $db: string }; + } + + /** + * Represents BSON Decimal128 type + */ + class Decimal128 implements I.Type { + _bsontype: "Decimal128"; + + /** + * @param bytes a buffer containing the raw Decimal128 bytes + */ + constructor(bytes: Buffer); + + toString(): string; + + toJSON(): { $numberDecimal: string }; + + /** + * Create a Decimal128 instance from a string representation + * + * @param string a numeric string representation + */ + static fromString(string: string): Decimal128; + } + + /** + * Represents BSON Double type + */ + class Double implements I.Type { + _bsontype: "Double"; + + constructor(value: number); + + valueOf(): number; + + toJSON(): number; + } + + /** + * /** + * Represents BSON Int32 type + */ + class Int32 implements I.Type { + _bsontype: "Int32"; + + constructor(value: number); + + valueOf(): number; + + toJSON(): number; + } + + /** + * Represents BSON Long type + */ + class Long extends math.Long implements I.Type { + _bsontype: "Long"; + + static MIN_VALUE: Long; + static MAX_VALUE: Long; + static MAX_UNSIGNED_VALUE: Long; + static ZERO: Long; + static UZERO: Long; + static ONCE: Long; + static ONE: Long; + static UONE: Long; + static NEG_ONE: Long; + } + + /** + * Represents BSON MaxKey type + */ + class MaxKey implements I.Type { + _bsontype: "MaxKey"; + } + + /** + * Represents BSON MinKey type + */ + class MinKey implements I.Type { + _bsontype: "MinKey"; + } + + /** + * Represents BSON ObjectId type + */ + class ObjectId implements I.Type { + _bsontype: "ObjectId"; + + generationTime: number; + + constructor(id?: string | Buffer | ObjectId | { toHexString(): string, id: string | Buffer | ObjectId }); + + /** + * Return the ObjectId id as a 24 byte hex string representation + */ + toHexString(): string; + + /** + * Returns the next ObjectId index + */ + getInc(): number; + + /** + * Generate a 12 byte id buffer used in ObjectId's + */ + generate(time?: number): Buffer; + + toString(format?: string): string; + + toJSON(): string; + + /** + * Compares the equality of this ObjectID with otherID + */ + equals(other: string | Buffer | ObjectId | { toHexString(): string }): boolean; + + /** + * Returns the generation date (accurate up to the second) that this ID was generated + */ + getTimestamp(): Date; + + /** + * Creates an ObjectId + */ + static createPk(): ObjectId; + + /** + * Creates an ObjectId from a second based number, with the rest of the ObjectId zeroed out. Used for comparisons or sorting the ObjectId + */ + static createFromTime(time: number): ObjectId; + + /** + * Creates an ObjectID from a hex string representation of an ObjectId + */ + static createFromHexString(string: string): ObjectId; + + /** + * Checks if a value is a valid bson ObjectId + */ + static isValid(id: any): boolean; + + static index: number; + } + + /** + * Represents BSON RegExp type + */ + class BSONRegExp implements I.Type { + _bsontype: "BSONRegExp"; + + constructor(pattern: string, options?: string); + } + + /** + * Represents BSON Symbol type + */ + class Symbol implements I.Type { + _bsontype: "Symbol"; + + constructor(value: string); + + valueOf(): string; + + toString(): string; + + inspect(): string; + + toJSON(): string; + } + + /** + * This type is for INTERNAL use in MongoDB only and should not be used in applications + */ + class Timestamp extends math.Long implements I.Type { + _bsontype: "Timestamp"; + + static MIN_VALUE: Timestamp; + static MAX_VALUE: Timestamp; + static MAX_UNSIGNED_VALUE: Timestamp; + static ZERO: Timestamp; + static UZERO: Timestamp; + static ONCE: Timestamp; + static ONE: Timestamp; + static UONE: Timestamp; + static NEG_ONE: Timestamp; + } + + namespace I { + interface SerializeOptions { + /** + * Whether to check if keys are valid. Default: false + */ + checkKeys?: boolean; + + /** + * Whether to serialize javascript functions. Default: false + */ + serializeFunctions?: boolean; + + /** + * Whether to ignore undefined values. Default: true + */ + ignoreUndefined?: boolean; + } + + interface DeserializeOptions { + /** + * Evaluate functions in the BSON document scoped to the object deserialized. + * Default: false + */ + evalFunctions?: boolean; + + /** + * Cache evaluated functions for reuse. + * Default: false + */ + cacheFunctions?: boolean; + + /** + * Use a crc32 code for caching, otherwise use the string of the function. + * Default: false + */ + cacheFunctonsCrc32?: boolean; + + /** + * When deserializing a Long will fit it into a Number if it's smaller than 53 bits. + * Default: true + */ + promoteLongs?: boolean; + + /** + * When deserializing a Binary will return it as a node.js Buffer instance. + * Default: false + */ + promoteBuffers?: boolean; + + /** + * When deserializing will promote BSON values to their Node.js closest equivalent types. + * Default: false + */ + promoteValues?: boolean; + + /** + * Allow to specify if there what fields we wish to return as unserialized raw buffer. + */ + fieldsAsRaw?: string[]; + + /** + * Return BSON regular expressions as BSONRegExp instances. + * Default: false + */ + bsonRegExp?: boolean; + } + } + + /** + * Represents a BSON serializer + */ + class BSON { + constructor(types?: Array<{ new (...args: any[]): I.Type }>); + + /** + * Serializes a js object into a buffer + */ + serialize(object: object, options?: I.SerializeOptions): Buffer; + + /** + * Takes an object, a target buffer instance and an optional options object and returns the end serialization index + * in the final buffer + */ + serializeWithBufferAndIndex(object: object, buffer: Buffer, options?: I.SerializeOptions & { + /** + * The index in the buffer where we wish to start serializing into + */ + index?: number + }): number; + + /** + * Calculates the size BSON object for the given object + */ + calculateObjectSize(object: object, options?: { + /** + * Whether to serialize javascript functions. Default: false + */ + serializeFunctions?: boolean, + + /** + * Whether to ignore undefined values. Default: true + */ + ignoreUndefined?: boolean + }): number; + + /** + * Deserializes the given buffer into an object + */ + deserialize(buf: Buffer, options?: I.DeserializeOptions): any; + + /** + * Takes a node.js Buffer, startIndex and allow more control over deserialization of a Buffer containing concatenated BSON documents + */ + deserializeStream(buf: Buffer, startIndex: number, numberOfDocuments: number, documents: any[], docStartIndex: number, options?: I.DeserializeOptions): number; + } + + namespace c { + const BSON_INT32_MIN: number; + const BSON_INT32_MAX: number; + const BSON_INT64_MAX: number; + const BSON_INT64_MIN: number; + const JS_INT_MAX: number; + const JS_INT_MIN: number; + } + + /** + * BSON serializator instance + */ + const serializer: BSON; + + /** + * Encodes the given object + */ + function encode(obj: object, options?: I.SerializeOptions): Buffer; + + /** + * Decodes the given buffer with enabled buffers and values promoting + */ + function decode(buf: Buffer, options?: I.DeserializeOptions): any; + } + } +} diff --git a/types/adone/glosses/datetime.d.ts b/types/adone/glosses/datetime.d.ts new file mode 100644 index 0000000000..417f706d95 --- /dev/null +++ b/types/adone/glosses/datetime.d.ts @@ -0,0 +1,1394 @@ +// based on https://github.com/moment/moment/blob/develop/moment.d.ts + +declare namespace adone { + namespace I { + namespace datetime { + type RelativeTimeKey = "s" | "m" | "mm" | "h" | "hh" | "d" | "dd" | "M" | "MM" | "y" | "yy"; + type CalendarKey = "sameDay" | "nextDay" | "lastDay" | "nextWeek" | "lastWeek" | "sameElse"; + type LongDateFormatKey = "LTS" | "LT" | "L" | "LL" | "LLL" | "LLLL" | "lts" | "lt" | "l" | "ll" | "lll" | "llll"; + + interface Locale { + calendar(key?: CalendarKey, m?: Datetime, now?: Datetime): string; + + longDateFormat(key: LongDateFormatKey): string; + invalidDate(): string; + ordinal(n: number): string; + + preparse(inp: string): string; + postformat(inp: string): string; + relativeTime(n: number, withoutSuffix: boolean, key: RelativeTimeKey, isFuture: boolean): string; + pastFuture(diff: number, absRelTime: string): string; + set(config: object): void; + + months(): string[]; + months(m: Datetime, format?: string): string; + monthsShort(): string[]; + monthsShort(m: Datetime, format?: string): string; + monthsParse(monthName: string, format: string, strict: boolean): number; + monthsRegex(strict: boolean): RegExp; + monthsShortRegex(strict: boolean): RegExp; + + week(m: Datetime): number; + firstDayOfYear(): number; + firstDayOfWeek(): number; + + weekdays(): string[]; + weekdays(m: Datetime, format?: string): string; + weekdaysMin(): string[]; + weekdaysMin(m: Datetime): string; + weekdaysShort(): string[]; + weekdaysShort(m: Datetime): string; + weekdaysParse(weekdayName: string, format: string, strict: boolean): number; + weekdaysRegex(strict: boolean): RegExp; + weekdaysShortRegex(strict: boolean): RegExp; + weekdaysMinRegex(strict: boolean): RegExp; + + isPM(input: string): boolean; + meridiem(hour: number, minute: number, isLower: boolean): string; + } + + interface StandaloneFormatSpec { + format: string[]; + standalone: string[]; + isFormat?: RegExp; + } + + interface WeekSpec { + dow: number; + doy: number; + } + + type CalendarSpecVal = string | ((m?: DatetimeInput, now?: Datetime) => string); + interface CalendarSpec { + sameDay?: CalendarSpecVal; + nextDay?: CalendarSpecVal; + lastDay?: CalendarSpecVal; + nextWeek?: CalendarSpecVal; + lastWeek?: CalendarSpecVal; + sameElse?: CalendarSpecVal; + + // any additional properties might be used with datetime.calendarFormat + [x: string]: CalendarSpecVal | undefined; + } + + type RelativeTimeSpecVal = ( + string | + ((n: number, withoutSuffix: boolean, key: RelativeTimeKey, isFuture: boolean) => string) + ); + type RelativeTimeFuturePastVal = string | ((relTime: string) => string); + + interface RelativeTimeSpec { + future: RelativeTimeFuturePastVal; + past: RelativeTimeFuturePastVal; + s: RelativeTimeSpecVal; + m: RelativeTimeSpecVal; + mm: RelativeTimeSpecVal; + h: RelativeTimeSpecVal; + hh: RelativeTimeSpecVal; + d: RelativeTimeSpecVal; + dd: RelativeTimeSpecVal; + M: RelativeTimeSpecVal; + MM: RelativeTimeSpecVal; + y: RelativeTimeSpecVal; + yy: RelativeTimeSpecVal; + } + + interface LongDateFormatSpec { + LTS: string; + LT: string; + L: string; + LL: string; + LLL: string; + LLLL: string; + + // lets forget for a sec that any upper/lower permutation will also work + lts?: string; + lt?: string; + l?: string; + ll?: string; + lll?: string; + llll?: string; + } + + type MonthWeekdayFn = (datetimeToFormat: Datetime, format?: string) => string; + type WeekdaySimpleFn = (datetimeToFormat: Datetime) => string; + + interface LocaleSpecification { + months?: string[] | StandaloneFormatSpec | MonthWeekdayFn; + monthsShort?: string[] | StandaloneFormatSpec | MonthWeekdayFn; + + weekdays?: string[] | StandaloneFormatSpec | MonthWeekdayFn; + weekdaysShort?: string[] | StandaloneFormatSpec | WeekdaySimpleFn; + weekdaysMin?: string[] | StandaloneFormatSpec | WeekdaySimpleFn; + + meridiemParse?: RegExp; + meridiem?(hour: number, minute: number, isLower: boolean): string; + + isPM?(input: string): boolean; + + longDateFormat?: LongDateFormatSpec; + calendar?: CalendarSpec; + relativeTime?: RelativeTimeSpec; + invalidDate?: string; + ordinal?(n: number): string; + ordinalParse?: RegExp; + + week?: WeekSpec; + + // Allow anything: in general any property that is passed as locale spec is + // put in the locale object so it can be used by locale functions + [x: string]: any; + } + + interface DatetimeObjectOutput { + years: number; + /* One digit */ + months: number; + /* Day of the month */ + date: number; + hours: number; + minutes: number; + seconds: number; + milliseconds: number; + } + + interface Duration { + /** + * Returns a human readable representation + */ + humanize(withSuffix?: boolean): string; + + abs(): Duration; + + /** + * Returns the length of the duration in the given units + */ + as(units: unitOfTime.Base): number; + + /** + * Returns the value of the given unit + */ + get(units: unitOfTime.Base): number; + + /** + * Returns the number of milliseconds in the duration + */ + milliseconds(): number; + + /** + * Returns the length of the duration in milliseconds + */ + asMilliseconds(): number; + + /** + * Returns the number of seconds in the duration + */ + seconds(): number; + + /** + * Returns the length of the duration in seconds + */ + asSeconds(): number; + + /** + * Returns the number of minutes in the duration + */ + minutes(): number; + + /** + * Returns the length of the duration in minutes + */ + asMinutes(): number; + + /** + * Returns the number of hours in the duration + */ + hours(): number; + + /** + * Returns the length of the duration in hours + */ + asHours(): number; + + /** + * Returns the number of days in the duration + */ + days(): number; + + /** + * Returns the length of the duration in days + */ + asDays(): number; + + /** + * Returns the number of weeks in the duration + */ + weeks(): number; + + /** + * Returns the length of the duration in weeks + */ + asWeeks(): number; + + /** + * Returns the number of months in the duration + */ + months(): number; + + /** + * Returns the length of the duration in months + */ + asMonths(): number; + + /** + * Returns the number of years in the duration + */ + years(): number; + + /** + * Returns the length of the duration in years + */ + asYears(): number; + + /** + * Mutates the original duration by adding time + */ + add(inp?: DurationInputArg1, unit?: DurationInputArg2): Duration; + + /** + * Mutates the original duration by subtracting time. + */ + subtract(inp?: DurationInputArg1, unit?: DurationInputArg2): Duration; + + /** + * Returns the using locale + */ + locale(): string; + + /** + * Sets a new locale + */ + locale(locale: LocaleSpecifier): Duration; + + /** + * Returns the data of the using locale + */ + localeData(): Locale; + + /** + * Returns duration in string as specified by ISO 8601 standard. + */ + toISOString(): string; + + /** + * When serializing a duration object to JSON, it will be represented as an ISO8601 string. + */ + toJSON(): string; + } + + interface DatetimeParsingFlags { + empty: boolean; + unusedTokens: string[]; + unusedInput: string[]; + overflow: number; + charsLeftOver: number; + nullInput: boolean; + invalidMonth: string | null; + invalidFormat: boolean; + userInvalidated: boolean; + iso: boolean; + parsedDateParts: any[]; + meridiem: string | null; + } + + interface DatetimeParsingFlagsOpt { + empty?: boolean; + unusedTokens?: string[]; + unusedInput?: string[]; + overflow?: number; + charsLeftOver?: number; + nullInput?: boolean; + invalidMonth?: string; + invalidFormat?: boolean; + userInvalidated?: boolean; + iso?: boolean; + parsedDateParts?: any[]; + meridiem?: string; + } + + type DatetimeFormatSpecification = string | string[]; + + namespace unitOfTime { + type Base = ( + "year" | "years" | "y" | + "month" | "months" | "M" | + "week" | "weeks" | "w" | + "day" | "days" | "d" | + "hour" | "hours" | "h" | + "minute" | "minutes" | "m" | + "second" | "seconds" | "s" | + "millisecond" | "milliseconds" | "ms" + ); + + type _quarter = "quarter" | "quarters" | "Q"; + type _isoWeek = "isoWeek" | "isoWeeks" | "W"; + type _date = "date" | "dates" | "D"; + type DurationConstructor = Base | _quarter; + + type DurationAs = Base; + + type StartOf = Base | _quarter | _isoWeek | _date; + + type Diff = Base | _quarter; + + type DatetimeConstructor = Base | _date; + + type All = Base | _quarter | _isoWeek | _date | + "weekYear" | "weekYears" | "gg" | + "isoWeekYear" | "isoWeekYears" | "GG" | + "dayOfYear" | "dayOfYears" | "DDD" | + "weekday" | "weekdays" | "e" | + "isoWeekday" | "isoWeekdays" | "E"; + } + + interface DatetimeInputObject { + /** + * Year + */ + years?: number; + /** + * Year + */ + year?: number; + /** + * Year + */ + y?: number; + + /** + * Month, 0..11 + */ + months?: number; + /** + * Month, 0..11 + */ + month?: number; + /** + * Month, 0..11 + */ + M?: number; + + /** + * Day of week, 0..6 + */ + days?: number; + /** + * Day of week, 0..6 + */ + day?: number; + /** + * Day of week, 0..6 + */ + d?: number; + + /** + * Day of month, 1..31 + */ + dates?: number; + /** + * Day of month, 1..31 + */ + date?: number; + /** + * Day of month, 1..31 + */ + D?: number; + + /** + * Hour, 0..23 + */ + hours?: number; + /** + * Hour, 0..23 + */ + hour?: number; + /** + * Hour, 0..23 + */ + h?: number; + + /** + * Minute, 0..59 + */ + minutes?: number; + /** + * Minute, 0..59 + */ + minute?: number; + /** + * Minute, 0..59 + */ + m?: number; + + /** + * Second, 0..59 + */ + seconds?: number; + /** + * Second, 0..59 + */ + second?: number; + /** + * Second, 0..59 + */ + s?: number; + + /** + * Millisecond, 0..999 + */ + milliseconds?: number; + /** + * Millisecond, 0..999 + */ + millisecond?: number; + /** + * Millisecond, 0..999 + */ + ms?: number; + } + + interface DurationInputObject extends DatetimeInputObject { + /** + * Quarter, 1..4 + */ + quarters?: number; + /** + * Quarter, 1..4 + */ + quarter?: number; + /** + * Quarter, 1..4 + */ + Q?: number; + + /** + * Week of the year, 1..53 + */ + weeks?: number; + /** + * Week of the year, 1..53 + */ + week?: number; + /** + * Week of the year, 1..53 + */ + w?: number; + } + + interface DatetimeSetObject extends DatetimeInputObject { + /** + * Week-year according to the locale + */ + weekYears?: number; + + /** + * Week-year according to the locale + */ + weekYear?: number; + + /** + * Week-year according to the locale + */ + gg?: number; + + /** + * ISO week-year + */ + isoWeekYears?: number; + + /** + * ISO week-year + */ + isoWeekYear?: number; + + /** + * ISO week-year + */ + GG?: number; + + /** + * Quarter, 1..4 + */ + quarters?: number; + + /** + * Quarter, 1..4 + */ + quarter?: number; + + /** + * Quarter, 1..4 + */ + Q?: number; + + /** + * Week of the year, 1..53 + */ + weeks?: number; + + /** + * Week of the year, 1..53 + */ + week?: number; + + /** + * Week of the year, 1..53 + */ + w?: number; + + /** + * ISO week of the year, 1..53 + */ + isoWeeks?: number; + + /** + * ISO week of the year, 1..53 + */ + isoWeek?: number; + + /** + * ISO week of the year, 1..53 + */ + W?: number; + + /** + * Day of the year, 1..366 + */ + dayOfYears?: number; + + /** + * Day of the year, 1..366 + */ + dayOfYear?: number; + + /** + * Day of the year, 1..366 + */ + DDD?: number; + + /** + * Day of Week according to the locale + */ + weekdays?: number; + + /** + * Day of Week according to the locale + */ + weekday?: number; + + /** + * Day of Week according to the locale + */ + e?: number; + + /** + * ISO Day of Week + */ + isoWeekdays?: number; + + /** + * ISO Day of Week + */ + isoWeekday?: number; + + /** + * ISO Day of Week + */ + E?: number; + } + + interface FromTo { + from: DatetimeInput; + to: DatetimeInput; + } + + type DatetimeInput = string | number | Array | DatetimeInputObject | Datetime | Date | null | undefined; + type DurationInputArg1 = Duration | number | string | FromTo | DurationInputObject | null | undefined; + type DurationInputArg2 = unitOfTime.DurationConstructor; + type LocaleSpecifier = string | Datetime | Duration | string[] | boolean; + + interface DatetimeCreationData { + input: DatetimeInput; + format?: DatetimeFormatSpecification; + locale: Locale; + isUTC: boolean; + strict?: boolean; + } + + interface MSDOSFormat { + /** + * an unsigned 16-bit integer represents MS-DOS date + */ + date: number; + + /** + * an unsigned 16-bit integer represents MS-DOS time + */ + time: number; + } + + interface Datetime extends Object { + /** + * Formats the datetime using the given format. + * It takes a string of tokens and replaces them with their corresponding values + */ + format(format?: string): string; + + /** + * Mutates the original datetime by setting it to the start of a unit of time + */ + startOf(unitOfTime: unitOfTime.StartOf): Datetime; + + /** + * Mutates the original moment by setting it to the end of a unit of time + */ + endOf(unitOfTime: unitOfTime.StartOf): Datetime; + + /** + * Mutates the original moment by adding time, by default milliseconds + */ + add(amount?: DurationInputArg1, unit?: DurationInputArg2): Datetime; + + /** + * Mutates the original moment by subtracting time, by default milliseconds + */ + subtract(amount?: DurationInputArg1, unit?: DurationInputArg2): Datetime; + + /** + * Calendar time displays time relative to a given referenceTime (defaults to now) + */ + calendar(time?: DatetimeInput, formats?: CalendarSpec): string; + + /** + * Clones the datetime object + */ + clone(): Datetime; + + /** + * Returns unix timestamp in milliseconds + */ + valueOf(): number; + + /** + * Sets a flag on the original datetime to use local time to display a datetime instead of the original datetime's time + */ + local(keepLocalTime?: boolean): Datetime; + + /** + * Returns true if local flag is set + */ + isLocal(): boolean; + + /** + * Sets a flag on the original datetime to use UTC to display a datetime instead of the original datetime's time + */ + utc(keepLocalTime?: boolean): Datetime; + + /** + * Return true if utc flag is set + */ + isUTC(): boolean; + + /** + * Return true if utc flag is set + */ + isUtc(): boolean; + + parseZone(): Datetime; + + /** + * Return true if the datetime object is valid + */ + isValid(): boolean; + + /** + * Returns the index of the first overflowed unit + * + * 0 - years + * 1 - months + * 2 - days + * 3 - hours + * 4 - minutes + * 5 - seconds + * 6 - milliseconds + */ + invalidAt(): number; + + hasAlignedHourOffset(other?: DatetimeInput): boolean; + + /** + * Returns all the constructor inputs of this datatime object + */ + creationData(): DatetimeCreationData; + + /** + * + */ + parsingFlags(): DatetimeParsingFlags; + + /** + * Gets the year + */ + year(): number; + + /** + * Sets the year + */ + year(y: number): Datetime; + + /** + * Gets the year + * + * @deprecated use year(y) + */ + years(y: number): Datetime; + + /** + * Sets the year + * @deprecated use year() + */ + years(): number; + + /** + * Gets the quarter, 1..4 + */ + quarter(): number; + + /** + * Sets the quarter, 1..4 + */ + quarter(q: number): Datetime; + + /** + * Gets the quarter, 1..4 + */ + quarters(): number; + + /** + * Sets the quarter, 1..4 + */ + quarters(q: number): Datetime; + + /** + * Gets the month, 0..11 + */ + month(): number; + + /** + * Sets the month, 0..11. + * If the range is exceeded, it will bubble up to the year + */ + month(M: number | string): Datetime; + + /** + * Sets the month, 0..11. + * If the range is exceeded, it will bubble up to the year + * + * @deprecated use month(M) + */ + months(M: number | string): Datetime; + + /** + * Gets the month, 0..11 + * + * @deprecated use month() + */ + months(): number; + + /** + * Gets the day of week, 0(Sunday)..6(Saturday) + */ + day(): number; + + /** + * Sets the day of week, 0(Sunday)..6(Saturday). + * If the range is exceeded, it will bubble up to other weeks + */ + day(d: number | string): Datetime; + + /** + * Sets the day of week, 0(Sunday)..6(Saturday). + * If the range is exceeded, it will bubble up to other weeks + */ + days(d: number | string): Datetime; + + /** + * Gets the day of week, 0(Sunday)..6(Saturday) + */ + days(): number; + + /** + * Gets the day of the month, 1..31 + */ + date(): number; + + /** + * Sets the day of the month, 1..31. + * If the range is exceeded, it will bubble up to the months. + */ + date(d: number): Datetime; + + /** + * Gets the day of the month, 1..31 + * + * @deprecated use date(d) + */ + dates(d: number): Datetime; + + /** + * Sets the day of the month, 1..31. + * If the range is exceeded, it will bubble up to the months. + * + * @deprecated use date() + */ + dates(): number; + + /** + * Gets the hour, 0..23 + */ + hour(): number; + + /** + * Sets the hour, 0..23. + * If the range is exceeded, it will bubble up to the day. + */ + hour(h: number): Datetime; + + /** + * Gets the hour, 0..23 + */ + hours(): number; + + /** + * Sets the hour, 0..23. + * If the range is exceeded, it will bubble up to the day. + */ + hours(h: number): Datetime; + + /** + * Gets the minute, 0..59 + */ + minute(): number; + + /** + * Sets the minute, 0..59. + * If the range is exceeded, it will bubble up to the hour. + */ + minute(m: number): Datetime; + + /** + * Gets the minute, 0..59 + */ + minutes(): number; + + /** + * Sets the minute, 0..59. + * If the range is exceeded, it will bubble up to the hour. + */ + minutes(m: number): Datetime; + + /** + * Gets the second, 0..59 + */ + second(): number; + + /** + * Sets the second, 0..59. + * If the range is exceeded, it will bubble up to the minutes. + */ + second(s: number): Datetime; + + /** + * Gets the second, 0..59 + */ + seconds(): number; + + /** + * Sets the second, 0..59. + * If the range is exceeded, it will bubble up to the minutes. + */ + seconds(s: number): Datetime; + + /** + * Gets the millisecond, 0..999 + */ + millisecond(): number; + + /** + * Sets the millisecond, 0..999. + * If the range is exceeded, it will bubble up to the seconds. + */ + millisecond(ms: number): Datetime; + + /** + * Gets the millisecond, 0..999 + */ + milliseconds(): number; + + /** + * Sets the millisecond, 0..999. + * If the range is exceeded, it will bubble up to the seconds. + */ + milliseconds(ms: number): Datetime; + + /** + * Gets the day of the week according to the locale, 0..6. + * If the locale assigns Monday as the first day of the week, datetime().weekday() will be Monday (0). + */ + weekday(): number; + + /** + * Sets the day of the week according to the locale, 0..6. + * If the locale assigns Monday as the first day of the week, datetime().weekday(0) will be Monday. + * If Sunday is the first day of the week, moment().weekday(0) will be Sunday. + */ + weekday(d: number): Datetime; + + /** + * Gets the ISO day of the week, 1(Monday)..7(Sunday) + */ + isoWeekday(): number; + + /** + * Sets the ISO day of the week, 1(Monday)..7(Sunday) + * If the range is exceeded, it will bubble up to other weeks. + */ + isoWeekday(d: number | string): Datetime; + + /** + * Gets the week-year according to the locale + */ + weekYear(): number; + + /** + * Gets or sets the week-year according to the locale + * + */ + weekYear(d: number): Datetime; + + /** + * Gets the ISO week-year + */ + isoWeekYear(): number; + + /** + * Sets the ISO week-year + */ + isoWeekYear(d: number): Datetime; + + /** + * Gets the week of the year, 1..53 + */ + week(): number; + + /** + * Sets the week of the year, 1..53 + */ + week(d: number): Datetime; + + /** + * Gets the week of the year, 1..53 + */ + weeks(): number; + + /** + * Sets the week of the year, 1..53 + */ + weeks(d: number): Datetime; + + /** + * Gets the ISO week of the year, 1..53 + */ + isoWeek(): number; + + /** + * Sets the ISO week of the year, 1..53 + */ + isoWeek(d: number): Datetime; + + /** + * Gets the ISO week of the year, 1..53 + */ + isoWeeks(): number; + + /** + * Sets the ISO week of the year, 1..53 + */ + isoWeeks(d: number): Datetime; + + /** + * Gets the number of weeks according to locale in the current datetime's year + */ + weeksInYear(): number; + + /** + * Gets the number of weeks in the current datetime's year, according to ISO weeks + */ + isoWeeksInYear(): number; + + /** + * Gets the day of the year, 1..366 + */ + dayOfYear(): number; + + /** + * Sets the day of the year, 1..366. + * If the range is exceeded, it will bubble up to the years + */ + dayOfYear(d: number): Datetime; + + /** + * Displays a datetime in relation to a time other than now + */ + from(inp: DatetimeInput, suffix?: boolean): string; + + /** + * Displays the datetime in relation to a time other than now + */ + to(inp: DatetimeInput, suffix?: boolean): string; + + /** + * Displays the datatime in relation to now + */ + fromNow(withoutSuffix?: boolean): string; + + /** + * Displays the datatime in relation to now + */ + toNow(withoutPrefix?: boolean): string; + + /** + * Returns the difference in the given unit, default is milliseconds + */ + diff(b: DatetimeInput, unitOfTime?: unitOfTime.Diff, precise?: boolean): number; + + /** + * Returns an array that mirrors the parameters from new Date() + */ + toArray(): number[]; + + /** + * Conver the datetime to MS-DOS date/time format + */ + toDOS(): MSDOSFormat; + + /** + * Returns a copy of the native Date object that the datetime wraps + */ + toDate(): Date; + + /** + * Formats a string to the ISO8601 standard + */ + toISOString(): string; + + /** + * Returns a machine readable string, that can be evaluated to produce the same datetime + */ + inspect(): string; + + /** + * When serializing a duration object to JSON, it will be represented as an ISO8601 string + */ + toJSON(): string; + + /** + * Returns a Unix timestamp (the number of seconds since the Unix Epoch) + */ + unix(): number; + + /** + * Returns true if that year is a leap year, and false if it is not. + */ + isLeapYear(): boolean; + + /** + * Get the UTC offset in minutes. + */ + utcOffset(): number; + + /** + * Sets the UTC offset + */ + utcOffset(b: number | string, keepLocalTime?: boolean): Datetime; + + isUtcOffset(): boolean; + + /** + * Returns the number of days in the current month + */ + daysInMonth(): number; + + /** + * Checks if the current moment is in daylight saving time + */ + isDST(): boolean; + + /** + * Returns the zone abbreviation + */ + zoneAbbr(): string; + + /** + * Returns the zone name + */ + zoneName(): string; + + /** + * Check if the datetime is before another datetime. + */ + isBefore(inp?: DatetimeInput, granularity?: unitOfTime.StartOf): boolean; + + /** + * Check if the datetime is after another datetime. + */ + isAfter(inp?: DatetimeInput, granularity?: unitOfTime.StartOf): boolean; + + /** + * Check if the datetime is the same as another datetime. + */ + isSame(inp?: DatetimeInput, granularity?: unitOfTime.StartOf): boolean; + + /** + * Check if a datetime is after or the same as another datetime. + */ + isSameOrAfter(inp?: DatetimeInput, granularity?: unitOfTime.StartOf): boolean; + + /** + * Check if a datetime is before or the same as another datetime. + */ + isSameOrBefore(inp?: DatetimeInput, granularity?: unitOfTime.StartOf): boolean; + + /** + * Check if a datetime is between two other datetimes, optionally looking at unit scale (minutes, hours, days, etc). + * The match is exclusive. + */ + isBetween(a: DatetimeInput, b: DatetimeInput, granularity?: unitOfTime.StartOf, inclusivity?: "()" | "[)" | "(]" | "[]"): boolean; + + /** + * Returns the using locale + */ + locale(): string; + + /** + * Sets a new locale + */ + locale(locale: LocaleSpecifier): Datetime; + + /** + * Returns the data of the using locale + */ + localeData(): Locale; + + /** + * @deprecated no reliable implementation + */ + isDSTShifted(): boolean; + + /** + * Returns the value of the given unit + */ + get(unit: unitOfTime.All): number; + + /** + * Sets the value of the given unit + */ + set(unit: unitOfTime.All, value: number): Datetime; + + /** + * Sets the values of the given units represented as an object + */ + set(objectLiteral: DatetimeSetObject): Datetime; + + /** + * Returns an object containing year, month, day-of-month, hour, minute, seconds, milliseconds. + */ + toObject(): DatetimeObjectOutput; + } + + interface DatetimeFunction { + (inp?: DatetimeInput, format?: DatetimeFormatSpecification, strict?: boolean): Datetime; + (inp?: DatetimeInput, format?: DatetimeFormatSpecification, language?: string, strict?: boolean): Datetime; + + /** + * Creates a datetime in UTC + */ + utc(inp?: DatetimeInput, format?: DatetimeFormatSpecification, strict?: boolean): Datetime; + utc(inp?: DatetimeInput, format?: DatetimeFormatSpecification, language?: string, strict?: boolean): Datetime; + + /** + * Creates a datetime from the given UNIX timestamp + */ + unix(timestamp: number): Datetime; + + /** + * Creates a datetime from the given MS-DOS date and time + */ + dos(inp: MSDOSFormat): Datetime; + + /** + * Crates an invalid datetime object + */ + invalid(flags?: DatetimeParsingFlagsOpt): Datetime; + + /** + * Checks whether the given object is a Duration + */ + isDuration(d: any): d is Duration; + + /** + * Changes the using locale + */ + locale(language?: string): string; + + /** + * Changes the using locale, will use the first one it has localizations for. + */ + locale(language?: string[]): string; + + /** + * Changes the using locale with customization + */ + locale(language?: string, definition?: LocaleSpecification | null): string; + + /** + * Returns a locale by the given key or the current locale + */ + localeData(key?: string | string[]): Locale; + + /** + * Creates a new Duration object + */ + duration(inp?: DurationInputArg1, unit?: DurationInputArg2): Duration; + + parseZone(inp?: DatetimeInput, format?: DatetimeFormatSpecification, strict?: boolean): Datetime; + parseZone(inp?: DatetimeInput, format?: DatetimeFormatSpecification, language?: string, strict?: boolean): Datetime; + + /** + * Returns the months of the current locale + */ + months(): string[]; + + /** + * Returns a month of the current locale at the given index + */ + months(index: number): string; + + months(format: string): string[]; + months(format: string, index: number): string; + + /** + * Returns the short form of the months of the current locale + */ + monthsShort(): string[]; + + monthsShort(index: number): string; + monthsShort(format: string): string[]; + monthsShort(format: string, index: number): string; + + /** + * Returns the weekdays of the current locale + */ + weekdays(): string[]; + weekdays(index: number): string; + weekdays(format: string): string[]; + weekdays(format: string, index: number): string; + weekdays(localeSorted: boolean): string[]; + weekdays(localeSorted: boolean, index: number): string; + weekdays(localeSorted: boolean, format: string): string[]; + weekdays(localeSorted: boolean, format: string, index: number): string; + + /** + * Returns the short form of the weekdays of the current locale + */ + weekdaysShort(): string[]; + weekdaysShort(index: number): string; + weekdaysShort(format: string): string[]; + weekdaysShort(format: string, index: number): string; + weekdaysShort(localeSorted: boolean): string[]; + weekdaysShort(localeSorted: boolean, index: number): string; + weekdaysShort(localeSorted: boolean, format: string): string[]; + weekdaysShort(localeSorted: boolean, format: string, index: number): string; + + /** + * Returns the min form of the weekdays of the current locale + */ + weekdaysMin(): string[]; + weekdaysMin(index: number): string; + weekdaysMin(format: string): string[]; + weekdaysMin(format: string, index: number): string; + weekdaysMin(localeSorted: boolean): string[]; + weekdaysMin(localeSorted: boolean, index: number): string; + weekdaysMin(localeSorted: boolean, format: string): string[]; + weekdaysMin(localeSorted: boolean, format: string, index: number): string; + + /** + * Returns the minimum of the given datetimes + */ + min(...datetimes: DatetimeInput[]): Datetime; + + /** + * Returns the maximum of the given datetimes + */ + max(...datetimes: DatetimeInput[]): Datetime; + + /** + * Returns the number of milliseconds since the Unix epoch (January 1, 1970) + */ + now(): number; + + /** + * Defines a new locale + */ + defineLocale(language: string, localeSpec: LocaleSpecification | null): Locale; + + /** + * Updates an existing locale + */ + updateLocale(language: string, localeSpec: LocaleSpecification | null): Locale; + + /** + * Returns a list of the defined locales (lazy-loaded locales are not listed until they are loaded) + */ + locales(): string[]; + + /** + * Returns the original name of the given unit alias + */ + normalizeUnits(unit: unitOfTime.All): string; + + relativeTimeThreshold(threshold: string): number; + relativeTimeThreshold(threshold: string, limit: number): boolean; + relativeTimeRounding(fn: (num: number) => number): boolean; + relativeTimeRounding(): (num: number) => number; + + calendarFormat(m: Datetime, now: Datetime): string; + + /** + * Default format for datetime.format() + */ + defaultFormat: string; + + /** + * Default utc format for datetime.format() + */ + defaultFormatUtc: string; + } + } + } + + /** + * Creates a new datetime object + */ + const datetime: I.datetime.DatetimeFunction; +} diff --git a/types/adone/glosses/events.d.ts b/types/adone/glosses/events.d.ts new file mode 100644 index 0000000000..ecb323f925 --- /dev/null +++ b/types/adone/glosses/events.d.ts @@ -0,0 +1,38 @@ +declare namespace adone { + namespace event { + class EventEmitter { + static listenerCount(emitter: EventEmitter, event: string | symbol): number; + static defaultMaxListeners: number; + + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + removeListener(event: string | symbol, listener: (...args: any[]) => void): this; + removeAllListeners(event?: string | symbol): this; + setMaxListeners(n: number): this; + getMaxListeners(): number; + listeners(event: string | symbol): Array<(...args: any[]) => any>; + emit(event: string | symbol, ...args: any[]): boolean; + eventNames(): Array; + listenerCount(type: string | symbol): number; + } + + class AsyncEmitter extends EventEmitter { + constructor(concurrency?: number); + + setConcurrency(max?: number): this; + + emitParallel(event: string, ...args: any[]): Promise; + + emitSerial(event: string, ...args: any[]): Promise; + + emitReduce(event: string, ...args: any[]): Promise; + + emitReduceRight(event: string, ...args: any[]): Promise; + + subscribe(event: string, listener: (...args: any[]) => void, once?: boolean): () => void; + } + } +} diff --git a/types/adone/glosses/exceptions.d.ts b/types/adone/glosses/exceptions.d.ts new file mode 100644 index 0000000000..347a3c632d --- /dev/null +++ b/types/adone/glosses/exceptions.d.ts @@ -0,0 +1,37 @@ +declare namespace adone { + namespace x { + class Exception extends Error { + constructor(message?: string | Error, captureStackTrace?: boolean); + } + class Runtime extends Exception { } + class IncompleteBufferError extends Exception { } + class NotImplemented extends Exception { } + class IllegalState extends Exception { } + class NotValid extends Exception { } + class Unknown extends Exception { } + class NotExists extends Exception { } + class Exists extends Exception { } + class Empty extends Exception { } + class InvalidAccess extends Exception { } + class NotSupported extends Exception { } + class InvalidArgument extends Exception { } + class InvalidNumberOfArguments extends Exception { } + class NotFound extends Exception { } + class Timeout extends Exception { } + class Incorrect extends Exception { } + class NotAllowed extends Exception { } + class LimitExceeded extends Exception { } + class Encoding extends Exception { } + class Network extends Exception { } + class Bind extends Exception { } + class Connect extends Exception { } + class Database extends Exception { } + class DatabaseInitialization extends Exception { } + class DatabaseOpen extends Exception { } + class DatabaseRead extends Exception { } + class DatabaseWrite extends Exception { } + class NetronIllegalState extends Exception { } + class NetronPeerDisconnected extends Exception { } + class NetronTimeout extends Exception { } + } +} diff --git a/types/adone/glosses/fast.d.ts b/types/adone/glosses/fast.d.ts new file mode 100644 index 0000000000..725e0e9db3 --- /dev/null +++ b/types/adone/glosses/fast.d.ts @@ -0,0 +1,745 @@ +declare namespace adone { + /** + * Filesystem Automation Streaming Templates/Transforms + */ + namespace fast { + // File is based on vinyl typings + // https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/vinyl/index.d.ts + + namespace I { + interface FileConstructorOptions { + /** + * The current workring directory of the file. Default: process.cwd() + */ + cwd?: string; + + /** + * Full path to the file + */ + path?: string; + + /** + * Stores the path history + */ + history?: string[]; + + /** + * The result of a fs.Stat call + */ + stat?: fs.I.Stats; + + /** + * File contents + */ + contents?: null | Buffer | nodestd.stream.Readable; + + /** + * Used for relative pathing. Typically where a glob starts. Default: options.cwd + */ + base?: string; + + symlink?: string; + } + + interface FileCloneOptions { + contents?: boolean; + deep?: boolean; + } + + interface FileConstructor { + new(options: FileConstructorOptions & { contents: Buffer }): BufferFile; + new(options: FileConstructorOptions & { contents: nodestd.stream.Readable }): StreamFile; + new(options?: FileConstructorOptions): NullFile; + + prototype: File; + } + + interface File { + /** + * Gets and sets the contents of the file + */ + contents: null | Buffer | nodestd.stream.Readable; + + /** + * Gets and sets current working directory. Will always be normalized and have trailing separators removed. + */ + cwd: string; + + /** + * Gets and sets base directory. Used for relative pathing (typically where a glob starts). + */ + base: string; + + /** + * Gets and sets the absolute pathname string or `undefined`. Setting to a different value + * appends the new path to `file.history`. If set to the same value as the current path, it + * is ignored. All new values are normalized and have trailing separators removed. + */ + path: string; + + stat: fs.I.Stats; + + /** + * Gets the result of `path.relative(file.base, file.path)`. Or sets a new relative path for file.base + */ + relative: string; + + /** + * Gets and sets the dirname of `file.path`. Will always be normalized and have trailing + * separators removed. + */ + dirname: string; + + /** + * Gets and sets the basename of `file.path`. + */ + basename: string; + + /** + * Gets and sets extname of `file.path`. + */ + extname: string; + + /** + * Gets and sets stem (filename without suffix) of `file.path`. + */ + stem: string; + + /** + * Array of `file.path` values the file has had, from `file.history[0]` (original) + * through `file.history[file.history.length - 1]` (current). `file.history` and its elements + * should normally be treated as read-only and only altered indirectly by setting `file.path`. + */ + readonly history: ReadonlyArray; + + /** + * Gets and sets the path where the file points to if it's a symbolic link. Will always + * be normalized and have trailing separators removed. + */ + symlink: string; + + /** + * Returns a new File object with all attributes cloned. + */ + clone(options: FileCloneOptions & { contents: true }): this; + clone(options?: FileCloneOptions): File; + + isBuffer(): boolean; + + isStream(): boolean; + + isNull(): boolean; + + isDirectory(): boolean; + + isSymbolic(): boolean; + } + + interface NullFile extends File { + contents: null; + } + + interface BufferFile extends File { + contents: Buffer; + // + } + + interface StreamFile extends File { + contents: nodestd.stream.Readable; + } + + type DirectoryFile = File; + type SymbolicFile = File; + + /* tslint:disable-next-line:no-empty-interface */ + interface Stream extends stream.CoreStream { + // + } + } + + export const File: I.FileConstructor; + + namespace I { + type CoreStreamSource = stream.I.CoreStream.Source; + + interface LocalStreamConstructorOptions { + /** + * Whether to read files. Default: true + */ + read?: boolean; + + /** + * Read files as buffers. Default: true + */ + buffer?: boolean; + + /** + * Read files as streams + */ + stream?: boolean; + + /** + * Current working directory for files. Default: process.cwd() + */ + cwd?: string; + } + + interface LocalStreamConstructor { + new(source: CoreStreamSource | File[], options: LocalStreamConstructorOptions & { read: false }): LocalStream; + new(source: CoreStreamSource | File[], options: LocalStreamConstructorOptions & { stream: true }): LocalStream; + new(source: CoreStreamSource | File[], options?: LocalStreamConstructorOptions): LocalStream; + + prototype: LocalStream; + } + + interface LocalStreamDestOptions { + /** + * Mode that is used for writing + */ + mode?: number; + + /** + * Flag that is used for writing + */ + flag?: fs.I.Flag; + + /** + * Current working directory for files, dest is resolved using this cwd. Default: constuctor cwd or process.cwd() + */ + cwd?: string; + + /** + * Whether to push written files into the stream + */ + produceFiles?: boolean; + + /** + * Whether to inherit the source file's mode (access properties) + */ + originMode?: boolean; + + /** + * Whether to inherit the source file's time properties (atime, mtime) + */ + originTimes?: boolean; + + /** + * Whether to inherit the source file's uid and gid + */ + originOwner?: boolean; + } + + interface LocalStream extends Stream { + /** + * Writes all files into the given directory + * + * @param directory directory where to write files + */ + dest(directory: string, options?: LocalStreamDestOptions): this; + + /** + * Writes all files into the given directory using the given callback + * + * @param getDirectory callback that returns a directory for each file + */ + dest(getDirectory: (file: T) => string, options?: LocalStreamDestOptions): this; + } + } + + export const LocalStream: I.LocalStreamConstructor; + + namespace I { + interface SrcOptions extends LocalStreamConstructorOptions { + /** + * Used for relative pathing of files. Typically where a glob starts. + */ + base?: string; + + /** + * Whether to match dotted files (hidden). Default: true + */ + dot?: boolean; + + /** + * Whether to lstat instead of stat when stating. Default: false + */ + links?: boolean; + } + } + + /** + * @param globs Source file/files + */ + function src(globs: string | string[], options: I.SrcOptions & { read: false }): I.LocalStream; + function src(globs: string | string[], options: I.SrcOptions & { stream: true }): I.LocalStream; + function src(globs: string | string[], options?: I.SrcOptions): I.LocalStream; + + namespace I { + type WatcherConstructorOptions = fs.I.Watcher.ConstructorOptions; + + interface WatchOptions extends WatcherConstructorOptions, LocalStreamConstructorOptions { + /** + * Used for relative pathing of files. Typically where a glob starts. + */ + base?: string; + + /** + * Whether to match dotted files (hidden). Default: true + */ + dot?: boolean; + + /** + * Whether to resume the stream on the next tick. Default: true + */ + resume?: boolean; + } + } + + /** + * @param globs Source file/files + */ + function watch(globs: string | string[], options: I.WatchOptions & { read: false }): I.LocalStream; + function watch(globs: string | string[], options: I.WatchOptions & { stream: true }): I.LocalStream; + function watch(globs: string | string[], options?: I.WatchOptions): I.LocalStream; + + namespace I { + interface LocalMapStream extends Stream { + dest(options?: LocalStreamDestOptions): this; + } + + interface Mapping { + /** + * Source file/files + */ + from: string; + + /** + * Destination directory + */ + to: string; + } + + interface MapOptions extends LocalStreamConstructorOptions { + /** + * Used for relative pathing of files. Typically where a glob starts. + */ + base?: string; + + /** + * Whether to match dotted files (hidden). Default: true + */ + dot?: boolean; + } + + type WatchMapOptions = MapOptions & WatcherConstructorOptions; + + type MapSource = Mapping | Mapping[]; + } + + /** + * The same as fast.src, but source and dest paths are defined in one place + */ + function map(mappings: I.MapSource, options: I.MapOptions & { read: false }): I.LocalMapStream; + function map(mappings: I.MapSource, options: I.MapOptions & { stream: true }): I.LocalMapStream; + function map(mappings: I.MapSource, options?: I.MapOptions): I.LocalMapStream; + + function watchMap(mappings: I.MapSource, options: I.WatchMapOptions & { read: false }): I.LocalMapStream; + function watchMap(mappings: I.MapSource, options: I.WatchMapOptions & { stream: true }): I.LocalMapStream; + function watchMap(mappings: I.MapSource, options?: I.WatchMapOptions): I.LocalMapStream; + + // plugins + + namespace I { + namespace plugin.compressor { + type Compressor = "gz" | "deflate" | "brotli" | "lzma" | "xz" | "snappy"; // TODO keyof adone.compressor ? + } + + interface Stream { + /** + * Compresses all files using the given compressor + */ + compress(this: {}, type: plugin.compressor.Compressor, options?: { + /** + * Whether to rename files, adds corresponding extname + */ + rename?: boolean, + [key: string]: any + }): this; + + /** + * Decompresses all files using the given compressor + */ + decompress(type: plugin.compressor.Compressor, options?: object): this; + } + + namespace plugin.archive { + type Archiver = "tar" | "zip"; // TODO keyof adone.archive ? + } + + interface Stream { + /** + * Packs all files into one archive of the given type + */ + pack(type: plugin.archive.Archiver, options?: object): this; + + /** + * Unpacks the incoming files using the given archive type + */ + unpack(type: plugin.archive.Archiver, options?: object): this; + + /** + * transpiles files + */ + transpile(options: object): this; // TODO adone.js.transpiler options + + /** + * Deletes lines from files + */ + deleteLines(filters: RegExp | RegExp[]): this; + + /** + * sets new filename + */ + rename(filename: string): this; + rename(handle: { + dirname?: string, + prefix?: string, + basename?: string, + extname?: string + }): this; + rename(handler: (handle: { + dirname: string, + basename: string, + extname: string + }) => void): this; + + /** + * concats all files into one + */ + concat(file: string | { path: string }, options?: { + newLine?: string + }): this; + + // flatten(options?: { + // newPath?: string, + // includeParents?: number | [number, number], + // subPath?: number | [number, number], + // }): this; + } + + namespace plugin.sourcemaps { + interface WriteOptions { + /** + * By default the source maps include the source code. Pass false to use the original files + */ + includeContent?: boolean; + + /** + * By default a comment containing / referencing the source map is added. + * Set this to false to disable the comment (e.g. if you want to load the source maps by header) + */ + addComment?: boolean; + + /** + * Sets the charset for inline source maps + */ + charset?: fs.I.Encoding; + + /** + * Set the location where the source files are hosted (use this when includeContent is set to false) + */ + sourceRoot?: string | ((file: T) => string); + + /** + * Function that is called for every source and receives the default source path as a parameter and the original file + */ + mapSources?(path: string, file: T): string; + mapSourcesAbsolute?: boolean; + + /** + * This option allows to rename the map file. + * It takes a function that is called for every map and receives the default map path as a parameter + */ + mapFile?(file: T): string; + + /** + * Set the destination path + */ + destPath?: string; + + /** + * Clone options + */ + clone?: FileCloneOptions; + + /** + * Specify a prefix to be prepended onto the source map URL when writing external source maps. + */ + sourceMappingURLPrefix?: string | ((file: T) => string); + + /** + * The output of the function must be the full URL to the source map (in function of the output file) + */ + sourceMappingURL?(file: T): string; + } + } + + interface Stream { + sourcemapsInit(options?: { + /** + * Whether to load existing sourcemaps + */ + loadMaps?: boolean, + + /** + * Whether to generate initial sourcemaps instead of using empty sourcemap + */ + identityMap?: boolean, + + largeFile?: boolean + }): this; + + /** + * + * + * @param dest destination directory + */ + sourcemapsWrite(dest: string, options?: plugin.sourcemaps.WriteOptions): this; + sourcemapsWrite(options?: plugin.sourcemaps.WriteOptions): this; + } + + namespace plugin.wrap { + interface Options { + /** + * Set to explicit false value to disable automatic JSON, JSON5 and YAML parsing + */ + parse?: boolean; + escape?: RegExp; + evaluate?: RegExp; + imports?: object; + interpolate?: RegExp; + sourceURL?: string; + variable?: string; + } + + interface TemplateFunctionData extends Options { + file: T; + contents: object; + [custom: string]: any; + } + } + + interface Stream { + /** + * Wraps contents + */ + wrap( + template: { src: string } | string | ((data: plugin.wrap.TemplateFunctionData) => string), + data?: object | ((file: T) => object), + options?: plugin.wrap.Options | ((file: T) => plugin.wrap.Options) + ): this; + + /** + * Replaces contents + */ + replace(search: string, replacement: string | ((search: string) => string)): this; + replace(search: RegExp, replacement: string): this; + replace(search: Array, replacement: Array string)>): this; + + /** + * Static asset revisioning by appending content hash to filenames + */ + revisionHash(options?: { + manifest: { + path?: string, + merge?: boolean + transformer?: { + parse(str: string): any; + stringify(obj: any): string; + } + } + }): this; + + /** + * Rewrite occurrences of filenames which have been renamed by revisionHash + */ + revisionHashReplace(options?: { + /** + * Use canonical Uris when replacing filePaths, + * i.e. when working with filepaths with non forward slash (/) path separators + * we replace them with forward slash. + * Default: true + */ + canonicalUris?: boolean, + + /** + * Add the prefix string to each replacement + */ + prefix?: string, + + /** + * Only substitute in new filenames in files of these types + * Default: ['.js', '.css', '.html', '.hbs'] + */ + replaceExtensions?: string[], + + /** + * Read JSON manifests written out by revisionHash + */ + manifest?: File[] | stream.CoreStream, + + /** + * Modify the name of the unreved files before using them + */ + modifyUnreved?(path: string): string, + + /** + * Modify the name of the reved files before using them + */ + modifyReved?(path: string): string + }): this; + } + + namespace plugin.chmod { + interface Access { + /** + * Whether to have read access + */ + read?: boolean; + + /** + * Whether to have write access + */ + write?: boolean; + + /** + * Whether to ahve execute access + */ + execute?: boolean; + } + + interface Mode { + /** + * Owner properties + */ + owner?: Access; + + /** + * Group properties + */ + group?: Access; + + /** + * Others properties + */ + others?: Access; + } + } + + interface Stream { + /** + * Changes file mode + */ + chmod(mode?: number | plugin.chmod.Mode, dirMode?: number | plugin.chmod.Mode): this; + } + + namespace plugin.notify { + interface Options { + notifier?: object; // TODO adone.notifier + + host?: string; + appName?: string; + port?: number; + + /** + * Filter out files + */ + filter?(file: T): boolean; + + /** + * Whether to emit an error when the stream emits an error. Default: false + */ + emitError?: boolean; + + /** + * Whether to notify on the last file. Default: false + */ + onLast?: boolean; + + /** + * Whether to debounce notifications. Accepts a number as timeout or debounce options + * Default: undefined + */ + debounce?: number | util.I.DebounceOptions & { + /** + * debounce timeout + */ + timeout: number + }; + + /** + * Object passed to the lodash template, for additional properties passed to the template + */ + templateOptions?: object; + + /** + * Whether to use console notifications (print a message to console) + */ + console?: boolean; + + /** + * Whether to use GUI notifications (notify-send/toaster/etc) + */ + gui?: boolean; + + /** + * Notification title + */ + title?: string | ((file: T) => string); + + /** + * Notification subtitle + */ + subtitle?: string | ((file: T) => string); + + open?: string | ((file: T) => string); + + /** + * Notification message + */ + message?: string | ((file: T) => string); + } + + interface OnErrorOptions extends Options { + /** + * Whether to end the stream when an error occurs + */ + endStream?: boolean; + } + + type OptionsArg = string | O | (() => O); + } + + interface Stream { + /** + * Notify about passing through files + */ + notify(options?: plugin.notify.OptionsArg>): this; + + /** + * Notify about errors + */ + notifyError(options?: plugin.notify.OptionsArg>): this; + } + } + + namespace plugin { + namespace notify { + /** + * Creates a callback that can be used as a reporter for errors + */ + function onError(options?: I.plugin.notify.OptionsArg>): (error: T) => void; + } + } + } +} diff --git a/types/adone/glosses/fs.d.ts b/types/adone/glosses/fs.d.ts new file mode 100644 index 0000000000..7fa8f51593 --- /dev/null +++ b/types/adone/glosses/fs.d.ts @@ -0,0 +1,1728 @@ +declare namespace adone { + /** + * File system stuff + */ + namespace fs { + namespace I { + type URL = nodestd.url.URL; + type Stats = nodestd.fs.Stats; + type Flag = "r" | "r+" | "rs+" | "w" | "wx" | "w+" | "wx+" | "a" | "ax" | "a+" | "ax+"; + type Encoding = "ascii" | "utf8" | "utf16le" | "usc2" | "base64" | "latin1" | "binary" | "hex"; + type SymlinkType = "dir" | "file" | "junction"; + type ReadStream = nodestd.fs.ReadStream; + type WriteStream = nodestd.fs.WriteStream; + type FD = number; + } + + /** + * Reads the value of a symbolic link + */ + function readlink(path: string | Buffer | I.URL, encoding: null): Promise; + function readlink(path: string | Buffer | I.URL, encoding: I.Encoding): Promise; + function readlink(path: string | Buffer | I.URL, options: { encoding: null }): Promise; + function readlink(path: string | Buffer | I.URL, options?: { encoding?: I.Encoding }): Promise; + + /** + * Deletes a name and possibly the file it refers to + */ + function unlink(path: string | Buffer | I.URL): Promise; + + /** + * Deletes a name and possibly the file it refers to + */ + function unlinkSync(path: string | Buffer | I.URL): void; + + /** + * Changes permissions of a file + */ + function chmod(path: string | Buffer | I.URL, mode: number): Promise; + + /** + * Changes ownership of a file + */ + function chown(path: string | Buffer | I.URL, uid: number, gid: number): Promise; + + /** + * Deletes a directory + */ + function rmdir(path: string | Buffer | I.URL): Promise; + + /** + * Reads a directory + */ + function readdir(path: string | Buffer | I.URL, encoding: null): Promise; + function readdir(path: string | Buffer | I.URL, encoding: I.Encoding): Promise; + function readdir(path: string | Buffer | I.URL, options: { encoding: null }): Promise; + function readdir(path: string | Buffer | I.URL, options?: { encoding?: I.Encoding }): Promise; + + /** + * Reads a directory + */ + function readdirSync(path: string | Buffer | I.URL, encoding: null): Buffer[]; + function readdirSync(path: string | Buffer | I.URL, encoding: I.Encoding): string[]; + function readdirSync(path: string | Buffer | I.URL, options: { encoding: null }): Buffer[]; + function readdirSync(path: string | Buffer | I.URL, options?: { encoding?: I.Encoding }): string[]; + + /** + * Gets file status, identical to stat, except that if pathname is a symbolic link, + * then it returns information about the link itself, not the file that it refers to + */ + function lstat(path: string | Buffer | I.URL): Promise; + + /** + * Gets file status, identical to stat, except that if pathname is a symbolic link, + * then it returns information about the link itself, not the file that it refers to + */ + function lstatSync(path: string | Buffer | I.URL): I.Stats; + + /** + * Gets file status + */ + function stat(path: string | Buffer | I.URL): Promise; + + /** + * Gets file status + */ + function statSync(path: string | Buffer | I.URL): I.Stats; + + /** + * Truncates file to the given length + */ + function truncate(path: string | Buffer, length?: number): Promise; + + /** + * Writes data to a file, replacing the file if it already exists + */ + function writeFile(file: string | Buffer | number, data: string | Buffer | Uint8Array, options?: { + encoding?: I.Encoding, + mode?: number, + flag?: I.Flag + }): Promise; + + /** + * Writes data to a file, replacing the file if it already exists + */ + function writeFileSync(file: string | Buffer | number, data: string | Buffer | Uint8Array, options?: { + encoding?: I.Encoding, + mode?: number, + flag?: I.Flag + }): void; + + /** + * Appends data to a file, creating the file if it does not yet exist + */ + function appendFile(file: string | Buffer | number, data: string | Buffer, options?: { + encoding?: I.Encoding, + mode?: number, + flag?: I.Flag + }): Promise; + + /** + * Tests a user's permissions for the file or directory specified by path + */ + function access(file: string | Buffer | I.URL, mode?: number): Promise; + + /** + * Tests a user's permissions for the file or directory specified by path + */ + function accessSync(file: string | Buffer | I.URL, mode?: number): void; + + /** + * Makes a new name for a file + */ + function symlink(target: string | Buffer | I.URL, path: string | Buffer | I.URL, type?: I.SymlinkType): Promise; + + /** + * Recursively deletes the given path, that can be a glob pattern + */ + function rm(path: string, options?: { + /** + * Whether to consider the given path as a glob pattern + */ + glob?: boolean, + /** + * Maximum busy tries, errors when cannot remove a file due to EBUSY, ENOTEMPTY, EPERM + */ + maxBusyTries?: number, + /** + * The delay to wait between busy tries + */ + emfileWait?: number + /** + * cwd to use + */ + cwd?: string + }): Promise; + + namespace I { + interface Access { + read: boolean; + write: boolean; + execute: boolean; + } + } + + /** + * Represents the permissions of a file + */ + class Mode { + stat: I.Stats; + owner: I.Access; + group: I.Access; + others: I.Access; + + constructor(stat: I.Stats); + + valueOf(): number; + } + + /** + * Represents a file + */ + class File { + constructor(...path: string[]); + + /** + * Sets the file encoding + */ + encoding(name: I.Encoding | "buffer"): this; + + /** + * Returns the file stats + */ + stat(): Promise; + + /** + * Returns the file stats synchronously + */ + statSync(): I.Stats; + + /** + * Returns the files stats, for links the link stats + */ + lstat(): Promise; + + /** + * Returns the files stats, for links the link stats, works synchronously + */ + lstatSync(): I.Stats; + + /** + * Returns the file mode + */ + mode(): Mode; + + /** + * Returns the file absoulte path + */ + path(): string; + + /** + * Returns normalized file path, with only / and removed redundant slashes + */ + normalizedPath(): string; + + /** + * Returns the file dirname + */ + dirname(): string; + + /** + * Returns the filename + */ + filename(): string; + + /** + * Returns the file extension + */ + extname(): string; + + /** + * Returns the filename with no extension + */ + stem(): string; + + /** + * Returns a relative path + */ + relativePath(path: string | Directory): string; + + /** + * Returns true if the file exists, visible by the process + */ + exists(): Promise; + + /** + * Creates the file, writes an empty string + */ + create(options?: { mode?: number }): Promise; + + /** + * Writes the given data to the file + */ + write(buffer: string | Buffer, options?: { encoding?: I.Encoding, mode?: number, flag?: I.Flag }): Promise; + + /** + * Appends the given data to the file + */ + append(buffer: string | Buffer, options?: { encoding?: I.Encoding, mode?: number, flag?: I.Flag }): Promise; + + /** + * Removes the file + */ + unlink(): Promise; + + /** + * Returns the contents as a buffer + */ + contents(encoding: "buffer"): Promise; + + /** + * Returns the contents as a string + */ + contents(encoding?: I.Encoding): Promise; + + /** + * Returns the contents as a buffer synchronously + */ + contentsSync(encoding: "buffer"): Buffer; + + /** + * Returns the contents as a string synchronously + */ + contentsSync(encoding?: I.Encoding): string; + + /** + * Returns a read stream for this file + */ + contentsStream(encoding?: "buffer" | I.Encoding): I.ReadStream; + + /** + * Changes the file premissions + */ + chmod(mode: number | Mode): Promise; + + /** + * Renames the file + */ + rename(name: string | File): Promise; + + /** + * Creates a symbolic link to this file + */ + symbolicLink(path: string | File): SymbolicLinkFile; + + /** + * Returns the file size in bytes + */ + size(): Promise; + } + + namespace I.Directory { + interface AddFileOptions { + contents?: string | Buffer; + encoding?: string; + mode?: number; + } + } + + /** + * Represents a directory + */ + class Directory { + constructor(...path: string[]); + + /** + * Returns dirname + */ + dirname(): string; + + /** + * Returns filename + */ + filename(): string; + + /** + * Returns absoulte path + */ + path(): string; + + /** + * Returns normalized file path, with only / and removed redundant slashes + */ + normalizedPath(): string; + + /** + * Returns relative path + */ + relativePath(path: string | Directory): string; + + /** + * Returns directory stats + */ + stat(): Promise; + + /** + * Returns the files stats, for links the link stats + */ + lstat(): Promise; + + /** + * Returns true if the directory exists + */ + exists(): Promise; + + /** + * Creates the directory if doesnt exist + */ + create(options?: { mode?: number }): Promise; + + /** + * Returns path relative to this directory + */ + resolve(...path: string[]): string; + + /** + * Returns directory relative to this directory + */ + getDirectory(...path: string[]): Directory; + + /** + * Returns file relative to this directory + */ + getFile(...path: string[]): File; + + /** + * Returns file that is a symbolic link + */ + getSymbolicLinkFile(...path: string[]): SymbolicLinkFile; + + /** + * Returns directory that is a symbolic link + */ + getSymbolicLinkDirectory(...path: string[]): SymbolicLinkDirectory; + + /** + * Adds a new file + */ + addFile(filename: string, options?: I.Directory.AddFileOptions): Promise; + addFile(a: string, filename: string, options?: I.Directory.AddFileOptions): Promise; + addFile(a: string, b: string, filename: string, options?: I.Directory.AddFileOptions): Promise; + addFile(a: string, b: string, c: string, filename: string, options?: I.Directory.AddFileOptions): Promise; + addFile(a: string, b: string, c: string, d: string, filename: string, options?: I.Directory.AddFileOptions): Promise; + addFile(a: string, ...filename: Array>): Promise; + + /** + * Adds a new directory + */ + addDirectory(...path: string[]): Promise; + + /** + * Returns files inside this directory + */ + files(): Promise>; + + /** + * Returns files inside this directory synchronously + */ + filesSync(): Array; + + /** + * Deletes all the file inside this directory, but not the directory + */ + clean(): Promise; + + /** + * Deletes the directory + */ + unlink(options?: { retries?: number, delay?: number }): Promise; + + /** + * Searches all nested files and directories + */ + find(options?: { files?: boolean, dirs?: boolean }): Promise>; + + /** + * Searches all nested files and directories synchronously + */ + findSync(options?: { files?: boolean, dirs?: boolean }): Array; + + /** + * Renames the directory + */ + rename(name: string | Directory): Promise; + + /** + * Create a symbolic link for this directory + */ + symbolicLink(path: string | Directory): Promise; + + /** + * Copies this from this directory to the given path + */ + copyTo(destPath: string, options?: I.CopyOptions): Promise; + + /** + * Copies files from the given path to this directory + */ + copyFrom(srcPath: string, options?: I.CopyOptions): Promise; + + /** + * Creates a new directory with the given path + */ + static create(...path: string[]): Promise; + + /** + * Creates a new temporary directory + */ + static createTmp(options?: I.TmpNameOptions): Promise; + } + + /** + * Represents a file that is a symbolic link to another file + */ + class SymbolicLinkFile extends File { + /** + * Returns the path of the file it refers to + */ + realpath(): Promise; + + /** + * Returns the contents of the original file as a buffer + */ + contents(encoding: "buffer"): Promise; + + /** + * Returns the contents of the original file as a string + */ + contents(encoding?: I.Encoding): Promise; + + /** + * Returns the contents of the original file as a buffer synchronously + */ + contentsSync(encoding: "buffer"): Buffer; + + /** + * Returns the contents of the original file as a string synchronously + */ + contentsSync(encoding?: I.Encoding): string; + + /** + * Returns a read stream for the original file + */ + contentsStream(encoding?: "buffer" | I.Encoding): I.ReadStream; + } + + /** + * Represents a directory that is a symbolic link to another directory + */ + class SymbolicLinkDirectory extends Directory { + /** + * Returns the path of the directory it refers to + */ + realpath(): Promise; + + /** + * Removes the link, not the directory it refers to + */ + unlink(): Promise; + } + + namespace I.RandomAccessFile { + interface ConstructorOptions { + /** + * Whether the file should be open as readable + */ + readable?: boolean; + /** + * Whether the file should be open as writable + */ + writable?: boolean; + /** + * Whether the file should be open as appendable + */ + appendable?: boolean; + /** + * Predefined mtime + */ + mtime?: number; + /** + * Predefined atime + */ + atime?: number; + /** + * Base direcotry for the file + */ + cwd?: string; + } + } + + /** + * Represents a file that supports random access + */ + class RandomAccessFile extends event.EventEmitter { + constructor(filename: string, options?: I.RandomAccessFile.ConstructorOptions); + + /** + * Reads a buffer at the given offset + */ + read(length: number, offset?: number): Promise; + + /** + * Writes the given buffer at the given offset + */ + write(buf: string | Buffer, offset?: number): Promise; + + /** + * Closes the file + */ + close(): Promise; + + /** + * Writes atime and mtime properties of the file + */ + end(options?: { atime?: number, mtime?: number }): Promise; + + /** + * Truncates the file to the given length + */ + truncate(size: number): Promise; + + /** + * Removes this file + */ + unlink(): Promise; + + /** + * Opens the given file with the given options + */ + static open(filename: string, options?: I.RandomAccessFile.ConstructorOptions): Promise; + } + + /** + * Represents an abstract random access reader + */ + class AbstractRandomAccessReader extends event.EventEmitter { + /** + * Increments the reference counter + */ + ref(): void; + + /** + * Decrements the reference counter + */ + unref(): void; + + /** + * Creates a readable stream for the given range + */ + createReadStream(options?: { + /** + * Start offset, inslusive + */ + start?: number, + + /** + * End offset, exclusive + */ + end?: number + }): nodestd.stream.Readable; + + /** + * Reads data and writes to the given buffer + * + * @param buffer buffer to write to + * @param offset buffer offset to write to + * @param length number of bytes to read + * @param position position to read from + */ + read(buffer: Buffer, offset: number, length: number, position: number): Promise; + + /** + * Must be implemented in derived classes and return a readable stream for the given range [start, end] + */ + _readStreamFromRange(start: number, end: number): nodestd.stream.Readable; + } + + /** + * Represents a random access reader for a file by its file descriptor + */ + class RandomAccessFdReader extends AbstractRandomAccessReader { + constructor(fd: number); + } + + /** + * Represents a random access reader for a buffer + */ + class RandomAccessBufferReader extends AbstractRandomAccessReader { + constructor(buffer: Buffer); + } + + namespace I.Glob { + interface Options { + /** + * The current working directory in which to search. Defaults to process.cwd() + */ + cwd?: string; + + /** + * The place where patterns starting with / will be mounted onto + */ + root?: string; + + /** + * Include .dot files in normal matches and globstar matches + */ + dot?: boolean; + + /** + * By default, a pattern starting with a forward-slash will be "mounted" onto the root setting, + * so that a valid filesystem path is returned + */ + nomount?: boolean; + + /** + * Add a / character to directory matches. Note that this requires additional stat calls + */ + mark?: boolean; + + /** + * Don't sort the results + */ + nosort?: boolean; + + /** + * Set to true to stat all results + */ + stat?: boolean; + + /** + * When an unusual error is encountered when attempting to read a directory, a warning will be printed to stderr. + * Set the option to true to suppress these warnings. + */ + silent?: boolean; + + /** + * When an unusual error is encountered when attempting to read a directory, + * the process will just continue on in search of other matches. + * Set the option to raise an error in these cases + */ + strict?: boolean; + + /** + * Pass in a previously generated cache object to save some fs calls + */ + cache?: Map; + + /** + * A cache of results of filesystem information, to prevent unnecessary stat calls + */ + statCache?: Map; + + /** + * A cache of results of filesystem information, to prevent unnecessary realpath calls + */ + realpathCache?: Map; + + /** + * A cache of known symbolic links + */ + symlinks?: object; + + /** + * In some cases, brace-expanded patterns can result in the same file showing up multiple times in the result set. + * By default, this implementation prevents duplicates in the result set. + * Set this flag to disable that behavior + */ + nounique?: boolean; + + /** + * Set to never return an empty set, instead returning a set containing the pattern itself. + * This is the default in glob(3). + */ + nonull?: boolean; + + /** + * Do not expand {a,b} and {1..3} brace sets. + */ + nobrace?: boolean; + + /** + * Do not match ** against multiple filenames. (Ie, treat it as a normal * instead.) + */ + noglobstar?: boolean; + + /** + * Do not match +(a|b) "extglob" patterns. + */ + noext?: boolean; + + /** + * Perform a case-insensitive match. + * Note: on case-insensitive filesystems, non-magic patterns will match by default, since stat and readdir will not raise errors. + */ + nocase?: boolean; + + /** + * Perform a basename-only match if the pattern does not contain any slash characters. + * That is, *.js would be treated as equivalent to **\/*.js, matching all js files in all directories + */ + matchBase?: boolean; + + /** + * Do not match directories, only files + */ + nodir?: boolean; + + /** + * Add a pattern or an array of glob patterns to exclude matches + */ + ignore?: string | string[]; + + /** + * Follow symlinked directories when expanding ** patterns. + * Note that this can result in a lot of duplicate references in the presence of cyclic links + */ + follow?: boolean; + + /** + * Set to true to call fs.realpath on all of the results + */ + realpath?: boolean; + + /** + * Set to true to always receive absolute paths for matched files + */ + absolute?: boolean; + } + + interface StreamOptions extends Options { + /** + * Add the index of the matching pattern to the result + */ + patternIndex?: boolean; + } + + interface StreamConstructor { + new(patterns: string | string[], options: StreamOptions & { stat: true, patternIndex: true }): Stream<{ + path: string, + stat: Stats, + patternIndex: number + }>; + new(patterns: string | string[], options: StreamOptions & { stat: true }): Stream<{ + path: string, + stat: Stats + }>; + new(patterns: string | string[], options: StreamOptions & { patternIndex: true }): Stream<{ + path: string, + patternIndex: number + }>; + new(patterns: string | string[], options?: StreamOptions): Stream; + + prototype: Stream; + } + + type Stream = stream.CoreStream; + + interface EmitterConstructor { + new(pattern: string, optons: Options, callback?: (error: any, matches: string[]) => void): Emitter; + new(pattern: string, callback?: (error: any, matches: string[]) => void): Emitter; + + prototype: Emitter; + } + + interface Emitter extends event.EventEmitter { + isIgnored(path: string): boolean; + + /** + * Stops the search permanently + */ + abort(): void; + + /** + * Temporarely stops the search + */ + pause(): void; + + /** + * Resumes the search + */ + resume(): void; + + on(event: "match", callback: (match: string, stat?: Stats) => void): this; + on(event: "end", callback: (matches: string[]) => void): this; + } + + interface GlobFunction { + (patterns: string | string[], options: StreamOptions & { stat: true, patternIndex: true }): Stream<{ + /** + * File path + */ + path: string, + + /** + * File stats + */ + stat: Stats, + + /** + * Pattern index + */ + patternIndex: number + }>; + (patterns: string | string[], options: StreamOptions & { stat: true }): Stream<{ + /** + * File path + */ + path: string, + + /** + * File stats + */ + stat: Stats + }>; + (patterns: string | string[], options: StreamOptions & { patternIndex: true }): Stream<{ + /** + * File path + */ + path: string, + + /** + * Pattern index + */ + patternIndex: number + }>; + (patterns: string | string[], options?: StreamOptions): Stream; + + /** + * low level glob emitter + */ + Glob: EmitterConstructor; + + /** + * Glob stream class + */ + Core: StreamConstructor; + } + } + + /** + * Creates a glob stream + */ + const glob: I.Glob.GlobFunction; + + namespace I.Watcher { + interface ConstructorOptions { + /** + * Indicates whether the process should continue to run as long as files are being watched + */ + persistent?: boolean; + /** + * If set to false then add/addDir events are also emitted for matching paths + * while instantiating the watching as watcher discovers these file paths + */ + ignoreInitial?: boolean; + /** + * Indicates whether to watch files that don't have read permissions if possible + */ + ignorePermissionErrors?: boolean; + /** + * Interval of file system polling (used when usePolling = true) + */ + interval?: number; + /** + * Interval of file system polling for binary files (used when usePolling = true) + */ + binaryInterval?: number; + /** + * If set to true then the strings passed to .watch() and .add() are treated as literal path names, + * even if they look like globs + */ + disableGlobbing?: boolean; + /** + * Whether to use the fsevents watching interface if available (true on mac by default) + */ + useFsEvents?: boolean; + /** + * Whether to use fs.watchFile (backed by polling), or fs.watch. + */ + usePolling?: boolean; + /** + * Automatically filters out artifacts that occur when using editors that use "atomic writes" + * instead of writing directly to the source file. If a file is re-added within 100 ms of being deleted, + * wather emits a change event rather than unlink then add + */ + atomic?: boolean | number; + /** + * When false, only the symlinks themselves will be watched for changes + * instead of following the link references and bubbling events through the link's path + */ + followSymlinks?: boolean; + /** + * If truthy, defines settings to control how long a file must not change after add/change events and only then emit the event + */ + awaitWriteFinish?: boolean | { + /** + * Amount of time in milliseconds for a file size to remain constant before emitting its event + */ + stabilityThreshold?: number, + /** + * File size polling interval + */ + pollInterval?: number + }; + /** + * Defines files/paths to be ignored + */ + ignored?: string[]; + /** + * Always passes fs.Stat file with `add`, `addDir` events + */ + alwaysStat?: boolean; + /** + * If set, limits how many levels of subdirectories will be traversed + */ + depth?: number; + /** + * The base directory from which watch paths are to be derived + */ + cwd?: string; + } + + type Event = "add" | "addDir" | "change" | "unlink" | "unlinkDir" | "ready" | "raw" | "error"; + } + + /** + * Represents a file watcher + */ + class Watcher extends event.EventEmitter { + constructor(options?: I.Watcher.ConstructorOptions); + + /** + * Adds files, directories, or glob patterns for tracking + */ + add(path: string | string[]): this; + + /** + * Stops watching files, directories, or glob patterns. + */ + unwatch(path: string | string[]): this; + + /** + * Removes all listeners from watched files + */ + close(): this; + + /** + * Returns an object representing all the paths on the file system being watched by this watcher + */ + getWatched(): { [path: string]: string[] }; + + on(event: "all", callback: (event: I.Watcher.Event, path: string, stat?: I.Stats) => void): this; + on(event: "raw", callback: (event: string, path: string, details: object) => void): this; + on(event: I.Watcher.Event, callback: (path: string, stat?: I.Stats) => void): this; + } + + /** + * Creates a Watcher instance with the given options and starts watching the given paths + */ + function watch(paths: string | string[], options?: I.Watcher.ConstructorOptions): Watcher; + + namespace is { + /** + * Returns true if the given path refers to a file + */ + function file(path: string): Promise; + + /** + * Returns true if the given path refers to a file + */ + function fileSync(path: string): boolean; + + /** + * Returns true if the given path refers to a direcotry + */ + function directory(path: string): Promise; + + /** + * Returns true if the given path refers to a direcotry + */ + function directorySync(path: string): boolean; + + /** + * Returns true if the given path refers to an executable file + */ + function executable(path: string): Promise; + + /** + * Returns true if the given path refers to an executable file + */ + function executableSync(path: string): boolean; + } + + namespace I.Which { + interface Options { + colon?: string; + path?: string; + pathExt?: string; + nothrow?: boolean; + all?: boolean; + } + + interface OptionsAll extends Options { + all: true; + } + + interface OptionsNothrow extends Options { + nothrow: true; + } + + interface OptionsAllNothrow extends Options { + all: true; + nothrow: true; + } + } + + /** + * Finds instances of a specified executable in the PATH environment variable + */ + function which(cmd: string, options: I.Which.OptionsAllNothrow): Promise; + + /** + * Finds instances of a specified executable in the PATH environment variable + */ + function which(cmd: string, options: I.Which.OptionsAll): Promise; + + /** + * Finds the first instance of a specified executable in the PATH environment variable + */ + function which(cmd: string, options: I.Which.OptionsNothrow): Promise; + + /** + * Finds instances of a specified executable in the PATH environment variable + */ + function which(cmd: string, options?: I.Which.Options): Promise; + + /** + * Finds instances of a specified executable in the PATH environment variable + */ + function whichSync(cmd: string, options: I.Which.OptionsAllNothrow): string[] | null; + + /** + * Finds instances of a specified executable in the PATH environment variable + */ + function whichSync(cmd: string, options: I.Which.OptionsAll): string[]; + + /** + * Finds the first instance of a specified executable in the PATH environment variable + */ + function whichSync(cmd: string, options: I.Which.OptionsNothrow): string | null; + + /** + * Finds instances of a specified executable in the PATH environment variable + */ + function whichSync(cmd: string, options?: I.Which.Options): string; + + /** + * Functions to work with files using file descriptors + */ + namespace fd { + /** + * Opens and possibly create a file + */ + function open(path: string | Buffer | I.URL, flags: I.Flag | number, mode?: number): Promise; + + /** + * Opens and possibly create a file + */ + function openSync(path: string | Buffer | I.URL, flags: I.Flag | number, mode?: number): I.FD; + + /** + * Closes a file descriptor + */ + function close(fd: I.FD): Promise; + + /** + * Closes a file descriptor + */ + function closeSync(fd: I.FD): void; + + /** + * Changes the file timestamps of a file referenced by the supplied file descriptor + */ + function utimes(fd: I.FD, atime: number, mtime: number): Promise; + + /** + * Changes the file timestamps of a file referenced by the supplied file descriptor + */ + function utimesSync(fd: I.FD, atime: number, mtime: number): void; + + /** + * Gets file status + */ + function stat(fd: I.FD): Promise; + + /** + * Gets file status + */ + function statSync(fd: I.FD): I.Stats; + + /** + * Truncates a file to a specified length + */ + function truncate(fd: I.FD, length?: number): Promise; + + /** + * Truncates a file to a specified length + */ + function truncateSync(fd: I.FD, length?: number): void; + + /** + * Read data from the file specified by fd + */ + function read( + fd: I.FD, + /** + * The buffer that the data will be written to + */ + buffer: Buffer | Uint8Array, + /** + * The offset in the buffer to start writing at + */ + offset: number, + /** + * An integer specifying the number of bytes to read + */ + length: number, + /** + * An argument specifying where to begin reading from in the file + */ + position: number + ): Promise; + + function readSync( + fd: I.FD, + /** + * The buffer that the data will be written to + */ + buffer: Buffer | Uint8Array, + /** + * The offset in the buffer to start writing at + */ + offset: number, + /** + * An integer specifying the number of bytes to read + */ + length: number, + /** + * An argument specifying where to begin reading from in the file + */ + position: number + ): number; + + /** + * Writes buffer to the file specified by fd + */ + function write( + fd: I.FD, + buffer: Buffer | Uint8Array, + /** + * Determines the part of the buffer to be written + */ + offset?: number, + /** + * An integer specifying the number of bytes to write + */ + length?: number, + /** + * The offset from the beginning of the file where this data should be written + */ + position?: number + ): Promise; + + /** + * Writes string to the file specified by fd + */ + function write( + fd: I.FD, + string: string, + /** + * The offset from the beginning of the file where this data should be written + */ + position?: number, + /** + * The expected string encoding + */ + encoding?: I.Encoding + ): Promise; + + /** + * Writes buffer to the file specified by fd + */ + function writeSync( + fd: I.FD, + buffer: Buffer | Uint8Array, + /** + * Determines the part of the buffer to be written + */ + offset?: number, + /** + * An integer specifying the number of bytes to write + */ + length?: number, + /** + * The offset from the beginning of the file where this data should be written + */ + position?: number + ): number; + + /** + * Writes string to the file specified by fd + */ + function writeSync( + fd: I.FD, + string: string, + /** + * The offset from the beginning of the file where this data should be written + */ + position?: number, + /** + * The expected string encoding + */ + encoding?: I.Encoding + ): number; + + /** + * Synchronizes a file's in-core state with storage + */ + function sync(fd: I.FD): Promise; + + /** + * Synchronizes a file's in-core state with storage + */ + function syncSync(fd: I.FD): void; + + /** + * Changes ownership of a file + */ + function chown(fd: I.FD, uid: number, gid: number): Promise; + + /** + * Changes ownership of a file + */ + function chownSync(fd: I.FD, uid: number, gid: number): void; + + /** + * Changes permissions of a file + */ + function chmod(fd: I.FD, mode: number): Promise; + + /** + * Changes permissions of a file + */ + function chmodSync(fd: I.FD, mode: number): void; + + /** + * Repositions read/write file offset + */ + function seek(fd: I.FD, offset: number, whence: number): Promise; + + /** + * Applies or removes an advisory lock on an open file + */ + function lock(fd: I.FD, flags: "sh" | "ex" | "shnb" | "exnb" | "un" | number): Promise; + } + + namespace constants { + const F_OK: number; + const LOCK_EX: number; + const LOCK_NB: number; + const LOCK_SH: number; + const LOCK_UN: number; + const O_APPEND: number; + const O_CREAT: number; + const O_DIRECT: number; + const O_DIRECTORY: number; + const O_EXCL: number; + const O_NOATIME: number; + const O_NOCTTY: number; + const O_NOFOLLOW: number; + const O_NONBLOCK: number; + const O_RDONLY: number; + const O_RDWR: number; + const O_SYNC: number; + const O_TRUNC: number; + const O_WRONLY: number; + const R_OK: number; + const SEEK_CUR: number; + const SEEK_END: number; + const SEEK_SET: number; + const S_IFBLK: number; + const S_IFCHR: number; + const S_IFDIR: number; + const S_IFIFO: number; + const S_IFLNK: number; + const S_IFMT: number; + const S_IFREG: number; + const S_IFSOCK: number; + const S_IRGRP: number; + const S_IROTH: number; + const S_IRUSR: number; + const S_IRWXG: number; + const S_IRWXO: number; + const S_IRWXU: number; + const S_IWGRP: number; + const S_IWOTH: number; + const S_IWUSR: number; + const S_IXGRP: number; + const S_IXOTH: number; + const S_IXUSR: number; + const W_OK: number; + const X_OK: number; + } + + /** + * Returns the canonicalized absolute pathname + */ + function realpath(path: string | Buffer | I.URL, encoding: "buffer"): Promise; + function realpath(path: string | Buffer | I.URL, encoding: I.Encoding): Promise; + function realpath(path: string | Buffer | I.URL, options: { encoding: "buffer" }): Promise; + function realpath(path: string | Buffer | I.URL, options?: { encoding?: I.Encoding }): Promise; + + /** + * Returns the canonicalized absolute pathname + */ + function realpathSync(path: string | Buffer | I.URL, encoding: "buffer"): Buffer; + function realpathSync(path: string | Buffer | I.URL, encoding: I.Encoding): string; + function realpathSync(path: string | Buffer | I.URL, options: { encoding: "buffer" }): Buffer; + function realpathSync(path: string | Buffer | I.URL, options?: { encoding?: I.Encoding }): string; + + namespace I { + interface ReadFileOptions { + check?: boolean; + flags?: Flag; + encoding?: null | Encoding; + } + } + + /** + * Reads a file + */ + function readFile(filepath: string | Buffer | I.URL, options: I.ReadFileOptions & { check: true, encoding: null }): Promise; + function readFile(filepath: string | Buffer | I.URL, options: I.ReadFileOptions & { check: true, encoding: I.Encoding }): Promise; + function readFile(filepath: string | Buffer | I.URL, options: I.ReadFileOptions & { check: true }): Promise; + function readFile(filepath: string | Buffer | I.URL, options: I.ReadFileOptions & { encoding: null }): Promise; + function readFile(filepath: string | Buffer | I.URL, options: I.ReadFileOptions & { encoding: I.Encoding }): Promise; + function readFile(filepath: string | Buffer | I.URL, options: I.ReadFileOptions): Promise; + function readFile(filepath: string | Buffer | I.URL, encoding: null): Promise; + function readFile(filepath: string | Buffer | I.URL, encoding: I.Encoding): Promise; + function readFile(filepath: string | Buffer | I.URL): Promise; + + /** + * Reads a file + */ + function readFileSync(filepath: string | Buffer | I.URL, options: I.ReadFileOptions & { check: true, encoding: null }): Buffer | null; + function readFileSync(filepath: string | Buffer | I.URL, options: I.ReadFileOptions & { check: true, encoding: I.Encoding }): string | null; + function readFileSync(filepath: string | Buffer | I.URL, options: I.ReadFileOptions & { check: true }): Buffer | null; + function readFileSync(filepath: string | Buffer | I.URL, options: I.ReadFileOptions & { encoding: null }): Buffer; + function readFileSync(filepath: string | Buffer | I.URL, options: I.ReadFileOptions & { encoding: I.Encoding }): string; + function readFileSync(filepath: string | Buffer | I.URL, options: I.ReadFileOptions): Buffer; + function readFileSync(filepath: string | Buffer | I.URL, options: I.ReadFileOptions): Buffer; + function readFileSync(filepath: string | Buffer | I.URL, encoding: null): Buffer; + function readFileSync(filepath: string | Buffer | I.URL, encoding: I.Encoding): string; + function readFileSync(filepath: string | Buffer | I.URL): Buffer; + + /** + * Reads lines from a file + */ + function readLines(filepath: string | Buffer | I.URL, options: { check: true, flags?: I.Flag, encoding?: null | I.Encoding }): Promise; + function readLines(filepath: string | Buffer | I.URL, options: { check?: false, flags?: I.Flag, encoding?: null | I.Encoding }): Promise; + function readLines(filepath: string | Buffer | I.URL, encoding?: null | I.Encoding): Promise; + + /** + * Reads lines from a file + */ + function readLinesSync(filepath: string | Buffer | I.URL, options: { check: true, flags?: I.Flag, encoding?: null | I.Encoding }): string[] | null; + function readLinesSync(filepath: string | Buffer | I.URL, options: { check?: false, flags?: I.Flag, encoding?: null | I.Encoding }): string[]; + function readLinesSync(filepath: string | Buffer | I.URL, encoding?: null | I.Encoding): string[]; + + /** + * Reads words from a file + */ + function readWords(filepath: string | Buffer | I.URL, options: { check: true, flags?: I.Flag, encoding?: null | I.Encoding }): Promise; + function readWords(filepath: string | Buffer | I.URL, options: { check?: false, flags?: I.Flag, encoding?: null | I.Encoding }): Promise; + function readWords(filepath: string | Buffer | I.URL, encoding?: null | I.Encoding): Promise; + + /** + * Reads words from a file + */ + function readWordsSync(filepath: string | Buffer | I.URL, options: { check: true, flags?: I.Flag, encoding?: null | I.Encoding }): string[] | null; + function readWordsSync(filepath: string | Buffer | I.URL, options: { check?: false, flags?: I.Flag, encoding?: null | I.Encoding }): string[]; + function readWordsSync(filepath: string | Buffer | I.URL, encoding?: null | I.Encoding): string[]; + + /** + * Checks whether a file exists + */ + function exists(path: string | Buffer | I.URL): Promise; + + /** + * Checks whether a file exists + */ + function existsSync(path: string | Buffer | I.URL): boolean; + + /** + * Creates a new directory and any necessary subdirectories + */ + function mkdir(path: string, mode?: number): Promise; + + namespace I { + interface CopyOptions { + /** + * Do not replace existing files + */ + ignoreExisting?: boolean; + + /** + * Base direcotry for paths + */ + cwd?: string; + } + } + + /** + * Copies all files from src to dst + */ + function copy(src: string, dst: string, options?: I.CopyOptions): Promise; + + /** + * Renames a file + */ + function rename(oldPath: string, newPath: string, options?: { + /** + * Will retry if fails with EPERM or EACCESS errors + */ + retries?: number, + /** + * Will retry after this delay + */ + delay?: number + }): Promise; + + /** + * Returns the last lines of a file + */ + function tail(path: string, n: number, options?: { separator?: string, chunkLength?: number }): Promise; + + namespace I { + interface StatVFS { + /** + * Maximum filename length + */ + f_namemax: number; + + /** + * File system block size + */ + f_bsize: number; + + /** + * Fragment size + */ + f_frsize: number; + + /** + * Size of fs in f_frsize units + */ + f_blocks: number; + + /** + * # free blocks for unprivileged users + */ + f_bavail: number; + + /** + * # free blocks + */ + f_bfree: number; + + /** + * # inodes + */ + f_files: number; + + /** + * # free inodes for unprivileged users + */ + f_favail: number; + + /** + * # free inodes + */ + f_ffree: number; + } + } + + /** + * Returns information about a mounted file system + */ + function statVFS(path: string): Promise; + + namespace I { + interface ReadStreamOptions { + flags?: Flag; + encoding?: Encoding | null; + /** + * File mode + */ + mode?: number; + /** + * Inclusive start of the reading range + */ + start?: number; + /** + * Inclusive end of the reading range + */ + end?: number; + } + + interface ReadStreamOptionsFD extends ReadStreamOptions { + /** + * Use the specified file descriptor for reading instead of `path` + */ + fd: number; + /** + * Whether to close the file descriptor + */ + autoClose?: boolean; + } + } + + /** + * Returns a read stream for the given file + */ + function createReadStream(path: null | undefined, options: I.ReadStreamOptionsFD): I.ReadStream; + function createReadStream(path: string | Buffer | I.URL, options?: I.ReadStreamOptions): I.ReadStream; + function createReadStream(path: string | Buffer | I.URL, encoding: I.Encoding | null): I.ReadStream; + + namespace I { + interface WriteStreamOptions { + flags?: Flag; + defaultEncoding?: Encoding | null; + /** + * File mode + */ + mode?: number; + /** + * Start position to write data at some position past the beginning of the file + */ + start?: number; + } + + interface WriteStreamOptionsFD extends WriteStreamOptions { + /** + * Use the specified file descriptor for writing instead of `path` + */ + fd: number; + /** + * Whether to close the file descriptor + */ + autoClose?: boolean; + } + } + + /** + * Returns a write stream to the given file + */ + function createWriteStream(path: null | undefined, options: I.WriteStreamOptionsFD): I.WriteStream; + function createWriteStream(path: string | Buffer | I.URL, options?: I.WriteStreamOptions): I.WriteStream; + function createWriteStream(path: string | Buffer | I.URL, encoding: I.Encoding | null): I.WriteStream; + + namespace I { + interface TmpNameOptions { + name?: string; + tries?: number; + template?: RegExp; + dir?: string; + prefix?: string; + ext?: string; + } + } + + /** + * Generates a temporary filepath + */ + function tmpName(options?: I.TmpNameOptions): Promise; + + /** + * Returns the current user homedir + */ + function homeDir(): string; + + /** + * TODO + */ + function lookup(path: string): Promise; + + /** + * Recursively changes ownership of files + */ + function chownr(path: string, uid: number, gid: number): Promise; + + namespace I.TailWatcher { + interface ConstructorOptions { + /** + * Uses this separator to split lines + */ + separator?: string | RegExp; + /** + * Options for fs.watch + */ + fsWatchOptions?: object; + /** + * Start from the beginning of the file + */ + fromBeginning?: boolean; + /** + * Follow the file when it renames + */ + follow?: boolean; + /** + * use fs.watchFile + */ + useWatchFile?: boolean; + /** + * Use the given encoding for reading + */ + encoding?: Encoding | null; + /** + * Start watching from the given position + */ + pos?: number; + } + } + + /** + * Represents an event emitter that watches for a file growing, + * emits "line" event for each new line in a file + */ + class TailWatcher extends event.EventEmitter { + constructor(filename: string, options?: I.TailWatcher.ConstructorOptions); + + /** + * Stop watching + */ + unwatch(): void; + + on(event: "line", callback: (line: string) => void): this; + } + + /** + * Creates a new TailWatcher instance with the given arguments + */ + function watchTail(filename: string, options?: I.TailWatcher.ConstructorOptions): TailWatcher; + } +} diff --git a/types/adone/glosses/is.d.ts b/types/adone/glosses/is.d.ts new file mode 100644 index 0000000000..335439a0bf --- /dev/null +++ b/types/adone/glosses/is.d.ts @@ -0,0 +1,553 @@ +declare namespace adone { + /** + * predicates + */ + namespace is { + /** + * Checks whether the given object is `null` + */ + function _null(obj: any): boolean; + export { _null as null }; + + /** + * Checks whether the given object is `undefined` + */ + export function undefined(obj: any): boolean; + + /** + * Checks whether the given object is nither `undefined` nor `null` + */ + export function exist(obj: any): boolean; + + /** + * Checks whether the given object is either `undefined` or `null` + */ + export function nil(obj: any): boolean; + + /** + * Checks whether the given object is a number + */ + export function number(obj: any): boolean; + + /** + * Checks whether the given object is a finite number or a string represents a finite number + */ + export function numeral(obj: any): boolean; + + /** + * Checks whether the given object is either +Infinity or -Inginity + */ + export function infinite(obj: any): boolean; + + /** + * Checks whether the given object is an odd number + */ + export function odd(obj: any): boolean; + + /** + * Checks whether the given object is an even number + */ + export function even(obj: any): boolean; + + /** + * Checks whether the given object is a float + */ + export function float(obj: any): boolean; + + /** + * Checks whether the given object is -0 + */ + export function negativeZero(obj: any): boolean; + + /** + * Checks whether the given object is a string + */ + export function string(obj: any): boolean; + + /** + * Checks whether the given object is an empty string + */ + export function emptyString(obj: any): boolean; + + /** + * Checks whether the first string is a substring of the second string from the given offset + */ + export function substring(substring: string, string: string, offset?: number): boolean; + + /** + * Checks whether `string` starts from `prefix` + */ + export function prefix(prefix: string, string: string): boolean; + + /** + * Checks whether `strin` ends with `prefix` + */ + export function suffix(suffix: string, string: string): boolean; + + /** + * Checks whether the given object is a boolean + */ + export function boolean(obj: any): boolean; + + /** + * Checks whether the given object is a string with ".json" extension or an object + */ + export function json(obj: any): boolean; + + /** + * Checks whether the given object is not a primitive, i.e. neither `undefined` nor `null` nor number nor string nor boolean nor symbol) + */ + export function object(obj: any): boolean; + + /** + * Checks whether the given object is a plain object, i.e. created by Object + */ + export function plainObject(obj: any): boolean; + + /** + * Checks whether the given object is an adone namespace + */ + export function namespace(obj: any): boolean; + + /** + * Checks whether the given object is a class + */ + function _class(obj: any): boolean; + export { _class as class }; + + /** + * Checks whether the given object is empty, i.e. it is an object(not a primitive), and Object.keys returns an empty array + */ + export function emptyObject(obj: any): boolean; + + /** + * Checks whether the given object has the given owned property + */ + export function propertyOwned(obj: any, field: string): boolean; + + /** + * Checks whether the given object has the given property + */ + export function propertyDefined(obj: any, field: string): boolean; + + /** + * Checks whether the given object conforms to `schema`. + */ + export function conforms(obj: object, schema: object, strict?: boolean): boolean; + + /** + * Checks whether the given object is like an array, i.e. it is not a primitive, not a function and has length + */ + export function arrayLikeObject(obj: any): boolean; + + /** + * Checks whether the given array has the given value + */ + export function inArray(value: T, array: any[], offset?: number, comparator?: (a: T, b: T) => boolean): boolean; + + /** + * Checks whether the given objects has same type + */ + export function sameType(value: any, other: any): boolean; + + /** + * Checks whether the given object is a primitive, i.e. it is either `undefined` or `null` or number or boolean or string or symbol + */ + export function primitive(obj: any): boolean; + + /** + * Checks whether the given arrays are equal + */ + export function equalArrays(left: any[], right: any[]): boolean; + + /** + * Checks whether the given objects are deep equal + */ + export function deepEqual(left: any, right: any): boolean; + + export function shallowEqual(left: any, right: any): boolean; + + /** + * Checks whether the given object is a stream, i.e. an object and has a pipe method + */ + export function stream(obj: any): boolean; + + /** + * Checks whether the given object is a writable stream, i.e. a stream that has _writableState + */ + export function writableStream(obj: any): boolean; + + /** + * Checks whether the given object is a readable stream, i.e. a stream that has _readableState + */ + export function readableStream(obj: any): boolean; + + /** + * Checks whether the given object is a duplex stream, i.e. a readable and writable stream + */ + export function duplexStream(obj: any): boolean; + + /** + * Checks whether the given object is a transform stream, i.e. a stream that has _transformState + */ + export function transformStream(obj: any): boolean; + + /** + * Checks whether the given buffer is in utf8 + */ + export function utf8(obj: Buffer): boolean; + + /** + * Checks whether the given path is an absolute win32 path + */ + export function win32PathAbsolute(path: string): boolean; + + /** + * Checks whether the given path is an absolute posix path + */ + export function posixPathAbsolute(path: string): boolean; + + /** + * Checks whether the given path is an absolute path + */ + export function pathAbsolute(path: string): boolean; + + /** + * Checks whether the given string is a glob + */ + export function glob(str: string): boolean; + + /** + * Checks whether the given path is not a dot-file path (.secret) + */ + export function dotfile(str: string): boolean; + + /** + * Checks whether the given object is a function + */ + function _function(obj: any): boolean; + export { _function as function }; + + /** + * Checks whether the given object is an async function + */ + export function asyncFunction(obj: any): boolean; + + /** + * Checks whether the given object is a promise + */ + export function promise(obj: any): boolean; + + /** + * Checks whether the given string is a valid date-string + */ + export function validDate(str: string): boolean; + + /** + * Checks whether the given object is a buffer + */ + export function buffer(obj: any): boolean; + + /** + * Checks whether the given object is a callback function, i.e. it has a common function name + */ + export function callback(obj: any): boolean; + + /** + * Checks whether the given object is a generator function + */ + export function generator(obj: any): boolean; + + /** + * Checks whether the given object is NaN + */ + export function nan(obj: any): boolean; + + /** + * Checks whether the given object is a finite number + */ + export function finite(obj: any): boolean; + + /** + * Checks whether the given object is an integer + */ + export function integer(obj: any): boolean; + + /** + * Checks whether the given object is a safe integer + */ + export function safeInteger(obj: any): boolean; + + /** + * Checks whether the given object is an array + */ + export function array(obj: any): boolean; + + /** + * Checks whether the given object is a Uint8 array + */ + export function uint8Array(obj: any): boolean; + + /** + * Checks whether the given object is an adone configuration + */ + export function configuration(obj: any): boolean; + + /** + * Checks whether the given object is an instance of adone.math.Long + */ + export function long(obj: any): boolean; + + /** + * Checks whether the given object is an instance of adone.math.BigNumber + */ + export function bigNumber(obj: any): boolean; + + /** + * Checks whether the given object is an instance of adone.collection.ByteArray + */ + export function byteArray(obj: any): boolean; + + /** + * Checks whether the given object is an instance of adone.datetime + */ + export function datetime(obj: any): boolean; + + export function transform(obj: any): boolean; + + /** + * Checks whether the given object is an adone subsystem + */ + export function subsystem(obj: any): boolean; + + /** + * Checks whether the given object is an adone application + */ + export function application(obj: any): boolean; + + /** + * Checks whether the given object is an adone logger + */ + export function logger(obj: any): boolean; + + /** + * Checks whether the given object is a core stream + */ + export function coreStream(obj: any): boolean; + + /** + * Checks whether the given object is a fast local map stream + */ + export function fastLocalMapStream(obj: any): boolean; + + /** + * Checks whether the given object is a fast local stream + */ + export function fastLocalStream(obj: any): boolean; + + /** + * Checks whether the given object is a fast stream + */ + export function fastStream(obj: any): boolean; + + /** + * Checks whether the given object is a genesis netron + */ + export function genesisNetron(obj: any): boolean; + + /** + * Checks whether the given object is a genesis peer + */ + export function genesisPeer(obj: any): boolean; + + /** + * Checks whether the given object is a netron adapter + */ + export function netronAdapter(obj: any): boolean; + + /** + * Checks whether the given object is a netron instance + */ + export function netron(obj: any): boolean; + + /** + * Checks whether the given object is a netron peer instance + */ + export function netronPeer(obj: any): boolean; + + /** + * Checks whether the given object is a netron definition + */ + export function netronDefinition(obj: any): boolean; + + /** + * Checks whether the given object represents netron definitions + */ + export function netronDefinitions(obj: any): boolean; + + /** + * Checks whether the given object is a netron reference + */ + export function netronReference(obj: any): boolean; + + /** + * Checks whether the given object is a netron interface + */ + export function netronInterface(obj: any): boolean; + + /** + * Checks whether the given object is a netron context + */ + export function netronContext(obj: any): boolean; + + /** + * Checks whether the given netron interface has `name` method + */ + export function netronIMethod(netronInterface: object, name: string): boolean; + + /** + * Checks whether the given netron interface has `name` property + */ + export function netronIProperty(netronInterface: any, name: string): boolean; + + /** + * Checks whether the given object is a netron stub + */ + export function netronStub(obj: any): boolean; + + /** + * Checks whether the given object is a netron remote stub + */ + export function netronRemoteStub(obj: any): boolean; + + /** + * Checks whether the given object is a netron stream + */ + export function netronStream(obj: any): boolean; + + /** + * Checks whether the given object is iterable, has defined Symbol.iterator property + */ + export function iterable(obj: any): boolean; + + /** + * true if the OS is Windows + */ + export const windows: boolean; + + /** + * true if the OS is Linux + */ + export const linux: boolean; + + /** + * true is the OS is FreeBSD + */ + export const freebsd: boolean; + + /** + * true is the os is macOS + */ + export const darwin: boolean; + + /** + * true is the os is SunOS + */ + export const sunos: boolean; + + /** + * Checks whether the given string is uppercased + */ + export function uppercase(str: string): boolean; + + /** + * Checks whether the given string is lowercased + */ + export function lowercase(str: string): boolean; + + /** + * Checks whether the given string includes only digits + */ + export function digits(str: string): boolean; + + /** + * Checks whether the given string is a valid js identifier + */ + export function identifier(str: string): boolean; + + /** + * Checks whether the given string is a binary extension (7z, zip, mp3, etc) + */ + export function binaryExtension(str: string): boolean; + + /** + * Checks whether the given string is a path to a binary file + */ + export function binaryPath(str: string): boolean; + + /** + * Checks whether the given string is an IPv4 address + */ + export function ip4(str: string): boolean; + + /** + * Checks whether the given string is an IPv6 address + */ + export function ip6(str: string): boolean; + + /** + * Checks whether the given object is an array buffer + */ + export function arrayBuffer(obj: any): boolean; + + /** + * Checks whether the given object is an array buffer view + */ + export function arrayBufferView(obj: any): boolean; + + /** + * Checks whether the given object is a date + */ + export function date(obj: any): boolean; + + /** + * Checks whether the given object is an error, instance of Error + */ + export function error(obj: any): boolean; + + /** + * Checks whether the given object is a map + */ + export function map(obj: any): boolean; + + /** + * Checks whether the given object is a regexp + */ + export function regexp(obj: any): boolean; + + /** + * Checks whether the given object is a set + */ + export function set(obj: any): boolean; + + /** + * Checks whether the given object is a symbol + */ + export function symbol(obj: any): boolean; + + /** + * Checks whether the given buffer a valid UTF-8 encoded text + */ + export function validUTF8(obj: Buffer): boolean; + + /** + * Checks whether the given object is a vault valuable + */ + export function vaultValuable(obj: any): boolean; + + /** + * Checks whether the given object is an adone task + */ + export function task(obj: any): boolean; + } +} diff --git a/types/adone/glosses/math.d.ts b/types/adone/glosses/math.d.ts deleted file mode 100644 index 076bdd105f..0000000000 --- a/types/adone/glosses/math.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -/** - * math related things - */ -export namespace math { - namespace I { - interface LowHighBits { - low: number; - high: number; - } - type Longable = math.Long | number | string | LowHighBits; - } - - export class Long { - constructor(low?: number, high?: number, unsigned?: boolean); - - toInt(): number; - - toNumber(): number; - - toString(radix?: number): string; - - getHighBits(): number; - - getHighBitsUnsigned(): number; - - getLowBits(): number; - - getLowBitsUnsigned(): number; - - getNumBitsAbs(): number; - - isZero(): boolean; - - isNegative(): boolean; - - isPositive(): boolean; - - isOdd(): boolean; - - isEven(): boolean; - - equals(other: I.Longable): boolean; - - lessThan(other: I.Longable): boolean; - - lessThanOrEqual(other: I.Longable): boolean; - - greaterThan(other: I.Longable): boolean; - - greaterThanOrEqual(other: I.Longable): boolean; - - compare(other: I.Longable): number; - - negate(): Long; - - add(addend: I.Longable): Long; - - sub(subtrahend: I.Longable): Long; - - mul(multiplier: I.Longable): Long; - - div(divisor: I.Longable): Long; - - mod(divisor: I.Longable): Long; - - not(): Long; - - and(other: I.Longable): Long; - - or(other: I.Longable): Long; - - xor(other: I.Longable): Long; - - shl(numBits: number | Long): Long; - - shr(numBits: number | Long): Long; - - shru(numBits: number | Long): Long; - - toSigned(): Long; - - toUnsigned(): Long; - - toBytes(le?: boolean): number[]; - - toBytesLE(): number[]; - - toBytesBE(): number[]; - - static fromInt(value: number, unsigned?: boolean): Long; - - static fromNumber(value?: number, unsigned?: boolean): Long; - - static fromBits(lowBits: number, highBits: number, unsigned?: boolean): Long; - - static fromString(str: string, unsigned?: boolean, radix?: number): Long; - - static fromString(str: string, radix?: number): Long; - - static fromValue(val: I.Longable): Long; - - static MIN_VALUE: Long; - - static MAX_VALUE: Long; - - static MAX_UNSIGNED_VALUE: Long; - - static ZERO: Long; - - static UZERO: Long; - - static ONE: Long; - - static UONE: Long; - - static NEG_ONE: Long; - } -} diff --git a/types/adone/glosses/math/index.d.ts b/types/adone/glosses/math/index.d.ts new file mode 100644 index 0000000000..2713196e6e --- /dev/null +++ b/types/adone/glosses/math/index.d.ts @@ -0,0 +1,759 @@ +/// +/// + +declare namespace adone { + /** + * math related things + */ + namespace math { + namespace I { + interface LowHighBits { + /** + * The low (signed) 32 bits of the long + */ + low: number; + /** + * The high (signed) 32 bits of the long + */ + high: number; + } + type Longable = Long | number | string | LowHighBits; + } + + /** + * Represents a 64 bit two's-complement integer + */ + class Long { + low: number; + high: number; + unsigned: boolean; + + /** + * @param low The low (signed) 32 bits of the long + * @param high The high (signed) 32 bits of the long + * @param unsigned Whether unsigned or not, defaults to false for signed + */ + constructor(low?: number, high?: number, unsigned?: boolean); + + /** + * Converts the Long to a 32 bit integer, assuming it is a 32 bit integer + */ + toInt(): number; + + /** + * Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa) + */ + toNumber(): number; + + /** + * Converts the Long to a string written in the specified radix + * + * @param radix Radix (2-36), 10 by default + */ + toString(radix?: number): string; + + inspect(): string; + + /** + * Gets the high 32 bits as a signed integer + */ + getHighBits(): number; + + /** + * Gets the high 32 bits as an unsigned integer + */ + getHighBitsUnsigned(): number; + + /** + * Gets the low 32 bits as a signed integer + */ + getLowBits(): number; + + /** + * Gets the low 32 bits as an unsigned integer + */ + getLowBitsUnsigned(): number; + + /** + * Gets the number of bits needed to represent the absolute value of this Long + */ + getNumBitsAbs(): number; + + /** + * Tests if this Long's value equals zero + */ + isZero(): boolean; + + /** + * Tests if this Long's value is negative + */ + isNegative(): boolean; + + /** + * Tests if this Long's value is positive + */ + isPositive(): boolean; + + /** + * Tests if this Long's value is odd + */ + isOdd(): boolean; + + /** + * Tests if this Long's value is even + */ + isEven(): boolean; + + /** + * Tests if this Long's value equals the specified's + */ + equals(other: I.Longable): boolean; + + /** + * Tests if this Long's value is less than the specified's + */ + lessThan(other: I.Longable): boolean; + + /** + * Tests if this Long's value is less than or equal the specified's + */ + lessThanOrEqual(other: I.Longable): boolean; + + /** + * Tests if this Long's value is greater than the specified's + */ + greaterThan(other: I.Longable): boolean; + + /** + * Tests if this Long's value is greater than or equal the specified's + */ + greaterThanOrEqual(other: I.Longable): boolean; + + /** + * Compares this Long's value with the specified's. + * Returns 0 if they are the same, 1 if the this is greater and -1 if the given one is greater + */ + compare(other: I.Longable): number; + + /** + * Negates this Long's value + */ + negate(): Long; + + /** + * Returns the sum of this and the specified Long + */ + add(addend: I.Longable): Long; + + /** + * Returns the difference of this and the specified Long + */ + sub(subtrahend: I.Longable): Long; + + /** + * Returns the product of this and the specified Long + */ + mul(multiplier: I.Longable): Long; + + /** + * Returns this Long divided by the specified + */ + div(divisor: I.Longable): Long; + + /** + * Returns this Long modulo the specified + */ + mod(divisor: I.Longable): Long; + + /** + * Returns the bitwise NOT of this Long + */ + not(): Long; + + /** + * Returns the bitwise AND of this Long and the specified + */ + and(other: I.Longable): Long; + + /** + * Returns the bitwise OR of this Long and the specifieds + */ + or(other: I.Longable): Long; + + /** + * Returns the bitwise XOR of this Long and the given one + */ + xor(other: I.Longable): Long; + + /** + * Returns this Long with bits shifted to the left by the given amount + */ + shl(numBits: number | Long): Long; + + /** + * Returns this Long with bits arithmetically shifted to the right by the given amount + */ + shr(numBits: number | Long): Long; + + /** + * Returns this Long with bits logically shifted to the right by the given amount + */ + shru(numBits: number | Long): Long; + + /** + * Converts this Long to signed + */ + toSigned(): Long; + + /** + * Converts this Long to unsigned + */ + toUnsigned(): Long; + + /** + * Converts this Long to an array of bytes, big-endian by default + * + * @param le Whether to return an array in little-endian format + */ + toBytes(le?: boolean): number[]; + + /** + * Converts this Long to an array of bytes in little-endian format + */ + toBytesLE(): number[]; + + /** + * Converts this Long to an array of bytes in big-endian format + */ + toBytesBE(): number[]; + + /** + * Returns a Long representing the given 32 bit integer value + */ + static fromInt(value: number, unsigned?: boolean): Long; + + /** + * Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned + */ + static fromNumber(value?: number, unsigned?: boolean): Long; + + /** + * Returns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is assumed to use 32 bits + */ + static fromBits(lowBits: number, highBits: number, unsigned?: boolean): Long; + + /** + * Returns a Long representation of the given string, written using the specified radix + */ + static fromString(str: string, unsigned?: boolean, radix?: number): Long; + + /** + * Returns a Long representation of the given string, written using the specified radix + */ + static fromString(str: string, radix?: number): Long; + + /** + * Converts the specified value to a Long + */ + static fromValue(val: I.Longable): Long; + + /** + * Minimum signed value + */ + static MIN_VALUE: Long; + + /** + * Maximum signed value + */ + static MAX_VALUE: Long; + + /** + * Maximum unsigned value + */ + static MAX_UNSIGNED_VALUE: Long; + + /** + * Signed zero + */ + static ZERO: Long; + + /** + * Unsigned zero + */ + static UZERO: Long; + + /** + * Signed one + */ + static ONE: Long; + + /** + * Unsigned one + */ + static UONE: Long; + + /** + * Signed negative one + */ + static NEG_ONE: Long; + } + + namespace I.BigNumber { + interface BufferConvertOptions { + endian?: 1 | -1 | "big" | "little"; + size?: "auto" | number; + } + } + + /** + * Represents a number of arbitrary precision + */ + class BigNumber { + /** + * Creates a BigNumber from the given value, the base is 10 + */ + constructor(n: number | string | BigNumber); + + /** + * Creates a BigNumber from the given string and base + */ + constructor(n: string, base: number); + + /** + * Converts the number to a string in the given base + */ + toString(base?: number): string; + + /** + * Converts the bignum into a Number. + * If the bignum is too big you'll lose precision or you'll get ±Infinity. + */ + toNumber(): number; + + /** + * Returns a new Buffer with the data from the bignum. + */ + toBuffer(opts?: I.BigNumber.BufferConvertOptions): Buffer; + + /** + * Returns a new bignum containing the instance value plus n + */ + add(n: number | string | BigNumber): BigNumber; + + /** + * Return a new bignum containing the instance value minus n + */ + sub(n: number | string | BigNumber): BigNumber; + + /** + * Returns a new bignum containing the instance value multiplied by n + */ + mul(n: number | string | BigNumber): BigNumber; + + /** + * Returns a new bignum containing the instance value integrally divided by n + */ + div(n: number | string | BigNumber): BigNumber; + + /** + * Returns a new bignum with the absolute value of the instance + */ + abs(): BigNumber; + + /** + * Returns a new bignum with the negative of the instance value + */ + neg(): BigNumber; + + /** + * Compares the instance value to n. + * + * Returns a positive integer if > n, a negative integer if < n, and 0 if == n + */ + cmp(n: number | string | BigNumber): number; + + /** + * Checks whether the instance value is greater than n (> n). + */ + gt(n: number | string | BigNumber): boolean; + + /** + * Checks whether the instance value is greater than or equal to n (>= n). + */ + ge(n: number | string | BigNumber): boolean; + + /** + * Checks whether the instance value is equal to n (== n). + */ + eq(n: number | string | BigNumber): boolean; + + /** + * Checks whether the instance value is less than n (< n). + */ + lt(n: number | string | BigNumber): boolean; + + /** + * Checks whether the instance value is less than or equal to n (<= n). + */ + le(n: number | string | BigNumber): boolean; + + /** + * Returns a new bignum with the instance value bitwise AND (&)-ed with n. + */ + and(n: number | string | BigNumber): BigNumber; + + /** + * Returns a new bignum with the instance value bitwise inclusive-OR (|)-ed with n. + */ + or(n: number | string | BigNumber): BigNumber; + + /** + * Returns a new bignum with the instance value bitwise exclusive-OR (^)-ed with n. + */ + xor(n: number | string | BigNumber): BigNumber; + + /** + * Returns a new bignum with the instance value modulo n. + */ + mod(n: number | string | BigNumber): BigNumber; + + /** + * Returns a new bignum with the instance value raised to the nth power. + */ + pow(n: number | string | BigNumber): BigNumber; + + /** + * Returns a new bignum with the instance value raised to the nth power modulo m. + */ + powm(n: number | string | BigNumber, m: number | string | BigNumber): BigNumber; + + /** + * Computes the multiplicative inverse modulo m. + */ + invertm(m: number | string | BigNumber): BigNumber; + + /** + * Returns a random number from 0 to this -1 + */ + rand(): BigNumber; + + /** + * Returns a random number from this to upperBound - 1 + */ + rand(upperBound: number | string | BigNumber): BigNumber; + + /** + * Checks whether the bignum is: + * + * - certainly prime (true) + * + * - probably prime ('maybe') + * + * - certainly composite (false) + */ + probPrime(): boolean | "maybe"; + + /** + * Returns the next prime number after this bignum + */ + nextPrime(): BigNumber; + + /** + * Returns a new bignum that is the square root. This truncates. + */ + sqrt(): BigNumber; + + /** + * Returns a new bignum that is the nth root. This truncates. + */ + root(n: number | string | BigNumber): BigNumber; + + /** + * Returns a new bignum that is the 2^n multiple. Equivalent of the << operator. + */ + shiftLeft(n: number | string | BigNumber): BigNumber; + + /** + * Returns a new bignum of the value integer divided by 2^n. Equivalent of the >> operator. + */ + shiftRight(n: number | string | BigNumber): BigNumber; + + /** + * Returns the greatest common divisor of the current bignum with n as a new bignum. + */ + gcd(n: number | string | BigNumber): BigNumber; + + /** + * Returns the Jacobi symbol (or Legendre symbol if n is prime) of the current bignum (= a) over n. + * Note that n must be odd and >= 3. 0 <= a < n. + * Returns -1 or 1 + */ + jacobi(n: number | string | BigNumber): number; + + /** + * Returns the number of bits used to represent the current bignum + */ + bitLength(): number; + + /** + * Checks whether the bit at the given index is set + */ + isBitSet(n: number): boolean; + + /** + * Generates a probable prime number of length bits. + * + * @param bits the number of bits + * @param safe If true, it will be a "safe" prime of the form p=2p'+1 where p' is also prime. Default: true + */ + static prime(bits: number, safe?: boolean): BigNumber; + + /** + * Creates a new bignum from a Buffer. + */ + static fromBuffer(buf: Buffer, opts?: I.BigNumber.BufferConvertOptions): BigNumber; + + /** + * One + */ + static ONE: BigNumber; + + /** + * Zero + */ + static ZERO: BigNumber; + } + + /** + * Represents a set of bits + */ + class BitSet { + /** + * Creates a new bitset of n bits + */ + constructor(n: number); + + /** + * Creates a new bitset from a dehydrated bitset + */ + constructor(key: string); + + /** + * Checks whether a bit at a specific index is set + */ + get(idx: number): boolean; + + /** + * Sets a single bit. + * Returns true if set was successfull + */ + set(idx: number): boolean; + + /** + * Sets a range of bits. + * Returns true if set was successfull + */ + setRange(from: number, to: number): boolean; + + /** + * Unsets a single bit. + * Returns true if unset was successfull + */ + unset(idx: number): boolean; + + /** + * Unsets a range of bits. + * Returns true if unset was successfull + */ + unsetRange(from: number, to: number): boolean; + + /** + * Toggles a single bit + */ + toggle(idx: number): boolean; + + /** + * Toggles a range of bits + */ + toggleRange(from: number, to: number): boolean; + + /** + * Clears the entire bitset + */ + clear(): boolean; + + /** + * Clones the set + */ + clone(): BitSet; + + /** + * Turns the bitset into a comma separated string that skips leading & trailing 0 words. + * Ends with the number of leading 0s and MAX_BIT. + * Useful if you need the bitset to be an object key (eg dynamic programming). + * Can rehydrate by passing the result into the constructor + */ + dehydrate(): string; + + /** + * Performs a bitwise AND on 2 bitsets or 1 bitset and 1 index. + * Both bitsets must have the same number of words, no length check is performed to prevent and overflow. + */ + and(value: number | BitSet): BitSet; + + /** + * Performs a bitwise OR on 2 bitsets or 1 bitset and 1 index. + * Both bitsets must have the same number of words, no length check is performed to prevent and overflow. + */ + or(value: number | BitSet): BitSet; + + /** + * Performs a bitwise XOR on 2 bitsets or 1 bitset and 1 index. + * Both bitsets must have the same number of words, no length check is performed to prevent and overflow. + */ + xor(value: number | BitSet): BitSet; + + /** + * Runs a custom function on every set bit. + * Faster than iterating over the entire bitset with a get(). + * If the callback returns `false` it stops iterating. + */ + forEach(callback: ((idx: number) => void | boolean)): void; + + /** + * Performs a circular shift bitset by an offset + * + * @param n number of positions that the bitset that will be shifted to the right. Using a negative number will result in a left shift. + */ + circularShift(n: number): BitSet; + + /** + * Gets the cardinality (count of set bits) for the entire bitset + */ + getCardinality(): number; + + /** + * Gets the indices of all set bits + */ + getIndices(): number[]; + + /** + * Checks if one bitset is subset of another. + */ + isSubsetOf(other: BitSet): boolean; + + /** + * Quickly determines if a bitset is empty + */ + isEmpty(): boolean; + + /** + * Quickly determines if both bitsets are equal (faster than checking if the XOR of the two is === 0). + * Both bitsets must have the same number of words, no length check is performed to prevent and overflow. + */ + isEqual(other: BitSet): boolean; + + /** + * Gets a string representation of the entire bitset, including leading 0s + */ + toString(): string; + + /** + * Finds first set bit (useful for processing queues, breadth-first tree searches, etc.). + * Returns -1 if not found + * + * @param startWord the word to start with (only used internally by nextSetBit) + */ + ffs(startWord?: number): number; + + /** + * Finds first zero (unset bit). + * Returns -1 if not found + * + * @param startWord the word to start with (only used internally by nextUnsetBit) + */ + ffz(startWord?: number): number; + + /** + * Finds last set bit. + * Returns -1 if not found + * + * @param startWord the word to start with (only used internally by previousSetBit) + */ + fls(startWord?: number): number; + + /** + * Finds last zero (unset bit). + * Returns -1 if not found + * + * @param startWord the word to start with (only used internally by previousUnsetBit) + */ + flz(startWord?: number): number; + + /** + * Finds first set bit, starting at a given index. + * Return -1 if not found + * + * @param idx the starting index for the next set bit + */ + nextSetBit(idx: number): number; + + /** + * Finds first unset bit, starting at a given index. + * Return -1 if not found + * + * @param idx the starting index for the next unset bit + */ + nextUnsetBit(idx: number): number; + + /** + * Finds last set bit, up to a given index. + * Returns -1 if not found + * + * @param idx the starting index for the next unset bit (going in reverse) + */ + previousSetBit(idx: number): number; + + /** + * Finds last unset bit, up to a given index. + * Returns -1 if not found + */ + previousUnsetBit(idx: number): number; + + /** + * Converts the bitset to a math.Long number + */ + toLong(): Long; + + /** + * Reads an unsigned integer of the given bits from the given offset + * + * @param bits number of bits, 1 by default + * @param offset offset, 0 by default + */ + readUInt(bits?: number, offset?: number): number; + + /** + * Writes the given unsigned integer + * + * @param val integer + * @param bits number of bits to write, 1 by default + * @param offset write offset, 0 by default + */ + writeUInt(val: number, bits?: number, offset?: number): void; + + /** + * Creates a new BitSet from the given math.Long number + */ + static fromLong(l: Long): BitSet; + } + + /** + * Returns a random number from min to max - 1 + * + * @param min lower bound, default is 0 + * @param max upper bound, default is 0xFFFFFFFF + */ + function random(min?: number, max?: number): number; + } +} diff --git a/types/adone/glosses/math/matrix.d.ts b/types/adone/glosses/math/matrix.d.ts new file mode 100644 index 0000000000..0340929ed6 --- /dev/null +++ b/types/adone/glosses/math/matrix.d.ts @@ -0,0 +1,3140 @@ +// based on https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/gl-matrix + +declare namespace adone.math { + /** + * vector and matrix operations + */ + namespace matrix { + let EPSILON: number; + + /** + * Convert Degree To Radian + * + * @param a - Angle in Degrees + */ + function toRadian(a: number): number; + + /** + * Tests whether or not the arguments have approximately the same value, within an absolute + * or relative tolerance of EPSILON (an absolute tolerance is used for values less + * than or equal to 1.0, and a relative tolerance is used for larger values) + * + * @param a - The first number to test. + * @param b - The second number to test. + * @returns True if the numbers are approximately equal, false otherwise. + */ + function equals(a: number, b: number): boolean; + + namespace I { + type vec2 = Float32Array; + } + + /** + * 2 Dimensional Vector + */ + namespace vec2 { + /** + * Creates a new, empty vec2 + * + * @returns a new 2D vector + */ + function create(): I.vec2; + + /** + * Creates a new vec2 initialized with values from an existing vector + * + * @param a a vector to clone + * @returns a new 2D vector + */ + function clone(a: I.vec2 | number[]): I.vec2; + + /** + * Creates a new vec2 initialized with the given values + * + * @param x X component + * @param y Y component + * @returns a new 2D vector + */ + function fromValues(x: number, y: number): I.vec2; + + /** + * Copy the values from one vec2 to another + * + * @param out the receiving vector + * @param a the source vector + * @returns out + */ + function copy(out: I.vec2, a: I.vec2 | number[]): I.vec2; + + /** + * Set the components of a vec2 to the given values + * + * @param out the receiving vector + * @param x X component + * @param y Y component + * @returns out + */ + function set(out: I.vec2, x: number, y: number): I.vec2; + + /** + * Adds two vec2's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function add(out: I.vec2, a: I.vec2 | number[], b: I.vec2 | number[]): I.vec2; + + /** + * Subtracts vector b from vector a + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function subtract(out: I.vec2, a: I.vec2 | number[], b: I.vec2 | number[]): I.vec2; + + /** + * Subtracts vector b from vector a + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function sub(out: I.vec2, a: I.vec2 | number[], b: I.vec2 | number[]): I.vec2; + + /** + * Multiplies two vec2's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function multiply(out: I.vec2, a: I.vec2 | number[], b: I.vec2 | number[]): I.vec2; + + /** + * Multiplies two vec2's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function mul(out: I.vec2, a: I.vec2 | number[], b: I.vec2 | number[]): I.vec2; + + /** + * Divides two vec2's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function divide(out: I.vec2, a: I.vec2 | number[], b: I.vec2 | number[]): I.vec2; + + /** + * Divides two vec2's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function div(out: I.vec2, a: I.vec2 | number[], b: I.vec2 | number[]): I.vec2; + + /** + * Math.ceil the components of a vec2 + * + * @param {vec2} out the receiving vector + * @param {vec2} a vector to ceil + * @returns {vec2} out + */ + function ceil(out: I.vec2, a: I.vec2 | number[]): I.vec2; + + /** + * Math.floor the components of a vec2 + * + * @param {vec2} out the receiving vector + * @param {vec2} a vector to floor + * @returns {vec2} out + */ + function floor(out: I.vec2, a: I.vec2 | number[]): I.vec2; + + /** + * Returns the minimum of two vec2's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function min(out: I.vec2, a: I.vec2 | number[], b: I.vec2 | number[]): I.vec2; + + /** + * Returns the maximum of two vec2's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function max(out: I.vec2, a: I.vec2 | number[], b: I.vec2 | number[]): I.vec2; + + /** + * Math.round the components of a vec2 + * + * @param {vec2} out the receiving vector + * @param {vec2} a vector to round + * @returns {vec2} out + */ + function round(out: I.vec2, a: I.vec2 | number[]): I.vec2; + + /** + * Scales a vec2 by a scalar number + * + * @param out the receiving vector + * @param a the vector to scale + * @param b amount to scale the vector by + * @returns out + */ + function scale(out: I.vec2, a: I.vec2 | number[], b: number): I.vec2; + + /** + * Adds two vec2's after scaling the second operand by a scalar value + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @param scale the amount to scale b by before adding + * @returns out + */ + function scaleAndAdd(out: I.vec2, a: I.vec2 | number[], b: I.vec2 | number[], scale: number): I.vec2; + + /** + * Calculates the euclidian distance between two vec2's + * + * @param a the first operand + * @param b the second operand + * @returns distance between a and b + */ + function distance(a: I.vec2 | number[], b: I.vec2 | number[]): number; + + /** + * Calculates the euclidian distance between two vec2's + * + * @param a the first operand + * @param b the second operand + * @returns distance between a and b + */ + function dist(a: I.vec2 | number[], b: I.vec2 | number[]): number; + + /** + * Calculates the squared euclidian distance between two vec2's + * + * @param a the first operand + * @param b the second operand + * @returns squared distance between a and b + */ + function squaredDistance(a: I.vec2 | number[], b: I.vec2 | number[]): number; + + /** + * Calculates the squared euclidian distance between two vec2's + * + * @param a the first operand + * @param b the second operand + * @returns squared distance between a and b + */ + function sqrDist(a: I.vec2 | number[], b: I.vec2 | number[]): number; + + /** + * Calculates the length of a vec2 + * + * @param a vector to calculate length of + * @returns length of a + */ + function length(a: I.vec2 | number[]): number; + + /** + * Calculates the length of a vec2 + * + * @param a vector to calculate length of + * @returns length of a + */ + function len(a: I.vec2 | number[]): number; + + /** + * Calculates the squared length of a vec2 + * + * @param a vector to calculate squared length of + * @returns squared length of a + */ + function squaredLength(a: I.vec2 | number[]): number; + + /** + * Calculates the squared length of a vec2 + * + * @param a vector to calculate squared length of + * @returns squared length of a + */ + function sqrLen(a: I.vec2 | number[]): number; + + /** + * Negates the components of a vec2 + * + * @param out the receiving vector + * @param a vector to negate + * @returns out + */ + function negate(out: I.vec2, a: I.vec2 | number[]): I.vec2; + + /** + * Returns the inverse of the components of a vec2 + * + * @param out the receiving vector + * @param a vector to invert + * @returns out + */ + function inverse(out: I.vec2, a: I.vec2 | number[]): I.vec2; + + /** + * Normalize a vec2 + * + * @param out the receiving vector + * @param a vector to normalize + * @returns out + */ + function normalize(out: I.vec2, a: I.vec2 | number[]): I.vec2; + + /** + * Calculates the dot product of two vec2's + * + * @param a the first operand + * @param b the second operand + * @returns dot product of a and b + */ + function dot(a: I.vec2 | number[], b: I.vec2 | number[]): number; + + /** + * Computes the cross product of two vec2's + * Note that the cross product must by definition produce a 3D vector + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function cross(out: I.vec2, a: I.vec2 | number[], b: I.vec2 | number[]): I.vec2; + + /** + * Performs a linear interpolation between two vec2's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @param t interpolation amount between the two inputs + * @returns out + */ + function lerp(out: I.vec2, a: I.vec2 | number[], b: I.vec2 | number[], t: number): I.vec2; + + /** + * Generates a random unit vector + * + * @param out the receiving vector + * @returns out + */ + function random(out: I.vec2): I.vec2; + + /** + * Generates a random vector with the given scale + * + * @param out the receiving vector + * @param scale Length of the resulting vector. If ommitted, a unit vector will be returned + * @returns out + */ + function random(out: I.vec2, scale: number): I.vec2; + + /** + * Transforms the vec2 with a mat2 + * + * @param out the receiving vector + * @param a the vector to transform + * @param m matrix to transform with + * @returns out + */ + function transformMat2(out: I.vec2, a: I.vec2 | number[], m: I.mat2): I.vec2; + + /** + * Transforms the vec2 with a mat2d + * + * @param out the receiving vector + * @param a the vector to transform + * @param m matrix to transform with + * @returns out + */ + function transformMat2d(out: I.vec2, a: I.vec2 | number[], m: I.mat2d): I.vec2; + + /** + * Transforms the vec2 with a mat3 + * 3rd vector component is implicitly '1' + * + * @param out the receiving vector + * @param a the vector to transform + * @param m matrix to transform with + * @returns out + */ + function transformMat3(out: I.vec2, a: I.vec2 | number[], m: I.mat3): I.vec2; + + /** + * Transforms the vec2 with a mat4 + * 3rd vector component is implicitly '0' + * 4th vector component is implicitly '1' + * + * @param out the receiving vector + * @param a the vector to transform + * @param m matrix to transform with + * @returns out + */ + function transformMat4(out: I.vec2, a: I.vec2 | number[], m: I.mat4): I.vec2; + + /** + * Perform some operation over an array of vec2s. + * + * @param a the array of vectors to iterate over + * @param stride Number of elements between the start of each vec2. If 0 assumes tightly packed + * @param offset Number of elements to skip at the beginning of the array + * @param count Number of vec2s to iterate over. If 0 iterates over entire array + * @param fn Function to call for each vector in the array + * @param arg additional argument to pass to fn + * @returns a + */ + function forEach(a: Float32Array, stride: number, offset: number, count: number, + fn: (a: I.vec2 | number[], b: I.vec2 | number[], arg: any) => void, arg: any): Float32Array; + + /** + * Perform some operation over an array of vec2s. + * + * @param a the array of vectors to iterate over + * @param stride Number of elements between the start of each vec2. If 0 assumes tightly packed + * @param offset Number of elements to skip at the beginning of the array + * @param count Number of vec2s to iterate over. If 0 iterates over entire array + * @param fn Function to call for each vector in the array + * @returns a + */ + function forEach(a: Float32Array, stride: number, offset: number, count: number, + fn: (a: I.vec2 | number[], b: I.vec2 | number[]) => void): Float32Array; + + /** + * Returns a string representation of a vector + * + * @param a vector to represent as a string + * @returns string representation of the vector + */ + function str(a: I.vec2 | number[]): string; + + /** + * Returns whether or not the vectors exactly have the same elements in the same position (when compared with ===) + * + * @param {vec2} a The first vector. + * @param {vec2} b The second vector. + * @returns {boolean} True if the vectors are equal, false otherwise. + */ + function exactEquals(a: I.vec2 | number[], b: I.vec2 | number[]): boolean; + + /** + * Returns whether or not the vectors have approximately the same elements in the same position. + * + * @param {vec2} a The first vector. + * @param {vec2} b The second vector. + * @returns {boolean} True if the vectors are equal, false otherwise. + */ + function equals(a: I.vec2 | number[], b: I.vec2 | number[]): boolean; + } + + namespace I { + type vec3 = Float32Array; + } + + /** + * 3 Dimensional Vector + */ + namespace vec3 { + /** + * Creates a new, empty vec3 + * + * @returns a new 3D vector + */ + function create(): I.vec3; + + /** + * Creates a new vec3 initialized with values from an existing vector + * + * @param a vector to clone + * @returns a new 3D vector + */ + function clone(a: I.vec3 | number[]): I.vec3; + + /** + * Creates a new vec3 initialized with the given values + * + * @param x X component + * @param y Y component + * @param z Z component + * @returns a new 3D vector + */ + function fromValues(x: number, y: number, z: number): I.vec3; + + /** + * Copy the values from one vec3 to another + * + * @param out the receiving vector + * @param a the source vector + * @returns out + */ + function copy(out: I.vec3, a: I.vec3 | number[]): I.vec3; + + /** + * Set the components of a vec3 to the given values + * + * @param out the receiving vector + * @param x X component + * @param y Y component + * @param z Z component + * @returns out + */ + function set(out: I.vec3, x: number, y: number, z: number): I.vec3; + + /** + * Adds two vec3's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function add(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[]): I.vec3; + + /** + * Subtracts vector b from vector a + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function subtract(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[]): I.vec3; + + /** + * Subtracts vector b from vector a + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function sub(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[]): I.vec3; + + /** + * Multiplies two vec3's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function multiply(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[]): I.vec3; + + /** + * Multiplies two vec3's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function mul(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[]): I.vec3; + + /** + * Divides two vec3's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function divide(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[]): I.vec3; + + /** + * Divides two vec3's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function div(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[]): I.vec3; + + /** + * Math.ceil the components of a vec3 + * + * @param {vec3} out the receiving vector + * @param {vec3} a vector to ceil + * @returns {vec3} out + */ + function ceil(out: I.vec3, a: I.vec3 | number[]): I.vec3; + + /** + * Math.floor the components of a vec3 + * + * @param {vec3} out the receiving vector + * @param {vec3} a vector to floor + * @returns {vec3} out + */ + function floor(out: I.vec3, a: I.vec3 | number[]): I.vec3; + + /** + * Returns the minimum of two vec3's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function min(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[]): I.vec3; + + /** + * Returns the maximum of two vec3's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function max(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[]): I.vec3; + + /** + * Math.round the components of a vec3 + * + * @param {vec3} out the receiving vector + * @param {vec3} a vector to round + * @returns {vec3} out + */ + function round(out: I.vec3, a: I.vec3 | number[]): I.vec3; + + /** + * Scales a vec3 by a scalar number + * + * @param out the receiving vector + * @param a the vector to scale + * @param b amount to scale the vector by + * @returns out + */ + function scale(out: I.vec3, a: I.vec3 | number[], b: number): I.vec3; + + /** + * Adds two vec3's after scaling the second operand by a scalar value + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @param scale the amount to scale b by before adding + * @returns out + */ + function scaleAndAdd(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[], scale: number): I.vec3; + + /** + * Calculates the euclidian distance between two vec3's + * + * @param a the first operand + * @param b the second operand + * @returns distance between a and b + */ + function distance(a: I.vec3 | number[], b: I.vec3 | number[]): number; + + /** + * Calculates the euclidian distance between two vec3's + * + * @param a the first operand + * @param b the second operand + * @returns distance between a and b + */ + function dist(a: I.vec3 | number[], b: I.vec3 | number[]): number; + + /** + * Calculates the squared euclidian distance between two vec3's + * + * @param a the first operand + * @param b the second operand + * @returns squared distance between a and b + */ + function squaredDistance(a: I.vec3 | number[], b: I.vec3 | number[]): number; + + /** + * Calculates the squared euclidian distance between two vec3's + * + * @param a the first operand + * @param b the second operand + * @returns squared distance between a and b + */ + function sqrDist(a: I.vec3 | number[], b: I.vec3 | number[]): number; + + /** + * Calculates the length of a vec3 + * + * @param a vector to calculate length of + * @returns length of a + */ + function length(a: I.vec3 | number[]): number; + + /** + * Calculates the length of a vec3 + * + * @param a vector to calculate length of + * @returns length of a + */ + function len(a: I.vec3 | number[]): number; + + /** + * Calculates the squared length of a vec3 + * + * @param a vector to calculate squared length of + * @returns squared length of a + */ + function squaredLength(a: I.vec3 | number[]): number; + + /** + * Calculates the squared length of a vec3 + * + * @param a vector to calculate squared length of + * @returns squared length of a + */ + function sqrLen(a: I.vec3 | number[]): number; + + /** + * Negates the components of a vec3 + * + * @param out the receiving vector + * @param a vector to negate + * @returns out + */ + function negate(out: I.vec3, a: I.vec3 | number[]): I.vec3; + + /** + * Returns the inverse of the components of a vec3 + * + * @param out the receiving vector + * @param a vector to invert + * @returns out + */ + function inverse(out: I.vec3, a: I.vec3 | number[]): I.vec3; + + /** + * Normalize a vec3 + * + * @param out the receiving vector + * @param a vector to normalize + * @returns out + */ + function normalize(out: I.vec3, a: I.vec3 | number[]): I.vec3; + + /** + * Calculates the dot product of two vec3's + * + * @param a the first operand + * @param b the second operand + * @returns dot product of a and b + */ + function dot(a: I.vec3 | number[], b: I.vec3 | number[]): number; + + /** + * Computes the cross product of two vec3's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function cross(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[]): I.vec3; + + /** + * Performs a linear interpolation between two vec3's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @param t interpolation amount between the two inputs + * @returns out + */ + function lerp(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[], t: number): I.vec3; + + /** + * Performs a hermite interpolation with two control points + * + * @param {vec3} out the receiving vector + * @param {vec3} a the first operand + * @param {vec3} b the second operand + * @param {vec3} c the third operand + * @param {vec3} d the fourth operand + * @param {number} t interpolation amount between the two inputs + * @returns {vec3} out + */ + function hermite(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[], c: I.vec3 | number[], d: I.vec3 | number[], t: number): I.vec3; + + /** + * Performs a bezier interpolation with two control points + * + * @param {vec3} out the receiving vector + * @param {vec3} a the first operand + * @param {vec3} b the second operand + * @param {vec3} c the third operand + * @param {vec3} d the fourth operand + * @param {number} t interpolation amount between the two inputs + * @returns {vec3} out + */ + function bezier(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[], c: I.vec3 | number[], d: I.vec3 | number[], t: number): I.vec3; + + /** + * Generates a random unit vector + * + * @param out the receiving vector + * @returns out + */ + function random(out: I.vec3): I.vec3; + + /** + * Generates a random vector with the given scale + * + * @param out the receiving vector + * @param [scale] Length of the resulting vector. If omitted, a unit vector will be returned + * @returns out + */ + function random(out: I.vec3, scale: number): I.vec3; + + /** + * Transforms the vec3 with a mat3. + * + * @param out the receiving vector + * @param a the vector to transform + * @param m the 3x3 matrix to transform with + * @returns out + */ + function transformMat3(out: I.vec3, a: I.vec3 | number[], m: I.mat3): I.vec3; + + /** + * Transforms the vec3 with a mat4. + * 4th vector component is implicitly '1' + * + * @param out the receiving vector + * @param a the vector to transform + * @param m matrix to transform with + * @returns out + */ + function transformMat4(out: I.vec3, a: I.vec3 | number[], m: I.mat4): I.vec3; + + /** + * Transforms the vec3 with a quat + * + * @param out the receiving vector + * @param a the vector to transform + * @param q quaternion to transform with + * @returns out + */ + function transformQuat(out: I.vec3, a: I.vec3 | number[], q: I.quat): I.vec3; + + /** + * Rotate a 3D vector around the x-axis + * @param out The receiving vec3 + * @param a The vec3 point to rotate + * @param b The origin of the rotation + * @param c The angle of rotation + * @returns out + */ + function rotateX(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[], c: number): I.vec3; + + /** + * Rotate a 3D vector around the y-axis + * @param out The receiving vec3 + * @param a The vec3 point to rotate + * @param b The origin of the rotation + * @param c The angle of rotation + * @returns out + */ + function rotateY(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[], c: number): I.vec3; + + /** + * Rotate a 3D vector around the z-axis + * @param out The receiving vec3 + * @param a The vec3 point to rotate + * @param b The origin of the rotation + * @param c The angle of rotation + * @returns out + */ + function rotateZ(out: I.vec3, a: I.vec3 | number[], b: I.vec3 | number[], c: number): I.vec3; + + /** + * Perform some operation over an array of vec3s. + * + * @param a the array of vectors to iterate over + * @param stride Number of elements between the start of each vec3. If 0 assumes tightly packed + * @param offset Number of elements to skip at the beginning of the array + * @param count Number of vec3s to iterate over. If 0 iterates over entire array + * @param fn Function to call for each vector in the array + * @param arg additional argument to pass to fn + * @returns a + * @function + */ + function forEach(a: Float32Array, stride: number, offset: number, count: number, + fn: (a: I.vec3 | number[], b: I.vec3 | number[], arg: any) => void, arg: any): Float32Array; + + /** + * Perform some operation over an array of vec3s. + * + * @param a the array of vectors to iterate over + * @param stride Number of elements between the start of each vec3. If 0 assumes tightly packed + * @param offset Number of elements to skip at the beginning of the array + * @param count Number of vec3s to iterate over. If 0 iterates over entire array + * @param fn Function to call for each vector in the array + * @returns a + * @function + */ + function forEach(a: Float32Array, stride: number, offset: number, count: number, + fn: (a: I.vec3 | number[], b: I.vec3 | number[]) => void): Float32Array; + + /** + * Get the angle between two 3D vectors + * @param a The first operand + * @param b The second operand + * @returns The angle in radians + */ + function angle(a: I.vec3 | number[], b: I.vec3 | number[]): number; + + /** + * Returns a string representation of a vector + * + * @param a vector to represent as a string + * @returns string representation of the vector + */ + function str(a: I.vec3 | number[]): string; + + /** + * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===) + * + * @param {vec3} a The first vector. + * @param {vec3} b The second vector. + * @returns {boolean} True if the vectors are equal, false otherwise. + */ + function exactEquals(a: I.vec3 | number[], b: I.vec3 | number[]): boolean; + + /** + * Returns whether or not the vectors have approximately the same elements in the same position. + * + * @param {vec3} a The first vector. + * @param {vec3} b The second vector. + * @returns {boolean} True if the vectors are equal, false otherwise. + */ + function equals(a: I.vec3 | number[], b: I.vec3 | number[]): boolean; + } + + namespace I { + type vec4 = Float32Array; + } + + /** + * 4 Dimensional Vector + */ + namespace vec4 { + /** + * Creates a new, empty vec4 + * + * @returns a new 4D vector + */ + function create(): I.vec4; + + /** + * Creates a new vec4 initialized with values from an existing vector + * + * @param a vector to clone + * @returns a new 4D vector + */ + function clone(a: I.vec4 | number[]): I.vec4; + + /** + * Creates a new vec4 initialized with the given values + * + * @param x X component + * @param y Y component + * @param z Z component + * @param w W component + * @returns a new 4D vector + */ + function fromValues(x: number, y: number, z: number, w: number): I.vec4; + + /** + * Copy the values from one vec4 to another + * + * @param out the receiving vector + * @param a the source vector + * @returns out + */ + function copy(out: I.vec4, a: I.vec4 | number[]): I.vec4; + + /** + * Set the components of a vec4 to the given values + * + * @param out the receiving vector + * @param x X component + * @param y Y component + * @param z Z component + * @param w W component + * @returns out + */ + function set(out: I.vec4, x: number, y: number, z: number, w: number): I.vec4; + + /** + * Adds two vec4's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function add(out: I.vec4, a: I.vec4 | number[], b: I.vec4 | number[]): I.vec4; + + /** + * Subtracts vector b from vector a + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function subtract(out: I.vec4, a: I.vec4 | number[], b: I.vec4 | number[]): I.vec4; + + /** + * Subtracts vector b from vector a + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function sub(out: I.vec4, a: I.vec4 | number[], b: I.vec4 | number[]): I.vec4; + + /** + * Multiplies two vec4's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function multiply(out: I.vec4, a: I.vec4 | number[], b: I.vec4 | number[]): I.vec4; + + /** + * Multiplies two vec4's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function mul(out: I.vec4, a: I.vec4 | number[], b: I.vec4 | number[]): I.vec4; + + /** + * Divides two vec4's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function divide(out: I.vec4, a: I.vec4 | number[], b: I.vec4 | number[]): I.vec4; + + /** + * Divides two vec4's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function div(out: I.vec4, a: I.vec4 | number[], b: I.vec4 | number[]): I.vec4; + + /** + * Math.ceil the components of a vec4 + * + * @param {vec4} out the receiving vector + * @param {vec4} a vector to ceil + * @returns {vec4} out + */ + function ceil(out: I.vec4, a: I.vec4 | number[]): I.vec4; + + /** + * Math.floor the components of a vec4 + * + * @param {vec4} out the receiving vector + * @param {vec4} a vector to floor + * @returns {vec4} out + */ + function floor(out: I.vec4, a: I.vec4 | number[]): I.vec4; + + /** + * Returns the minimum of two vec4's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function min(out: I.vec4, a: I.vec4 | number[], b: I.vec4 | number[]): I.vec4; + + /** + * Returns the maximum of two vec4's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @returns out + */ + function max(out: I.vec4, a: I.vec4 | number[], b: I.vec4 | number[]): I.vec4; + + /** + * Math.round the components of a vec4 + * + * @param {vec4} out the receiving vector + * @param {vec4} a vector to round + * @returns {vec4} out + */ + function round(out: I.vec4, a: I.vec4 | number[]): I.vec4; + + /** + * Scales a vec4 by a scalar number + * + * @param out the receiving vector + * @param a the vector to scale + * @param b amount to scale the vector by + * @returns out + */ + function scale(out: I.vec4, a: I.vec4 | number[], b: number): I.vec4; + + /** + * Adds two vec4's after scaling the second operand by a scalar value + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @param scale the amount to scale b by before adding + * @returns out + */ + function scaleAndAdd(out: I.vec4, a: I.vec4 | number[], b: I.vec4 | number[], scale: number): I.vec4; + + /** + * Calculates the euclidian distance between two vec4's + * + * @param a the first operand + * @param b the second operand + * @returns distance between a and b + */ + function distance(a: I.vec4 | number[], b: I.vec4 | number[]): number; + + /** + * Calculates the euclidian distance between two vec4's + * + * @param a the first operand + * @param b the second operand + * @returns distance between a and b + */ + function dist(a: I.vec4 | number[], b: I.vec4 | number[]): number; + + /** + * Calculates the squared euclidian distance between two vec4's + * + * @param a the first operand + * @param b the second operand + * @returns squared distance between a and b + */ + function squaredDistance(a: I.vec4 | number[], b: I.vec4 | number[]): number; + + /** + * Calculates the squared euclidian distance between two vec4's + * + * @param a the first operand + * @param b the second operand + * @returns squared distance between a and b + */ + function sqrDist(a: I.vec4 | number[], b: I.vec4 | number[]): number; + + /** + * Calculates the length of a vec4 + * + * @param a vector to calculate length of + * @returns length of a + */ + function length(a: I.vec4 | number[]): number; + + /** + * Calculates the length of a vec4 + * + * @param a vector to calculate length of + * @returns length of a + */ + function len(a: I.vec4 | number[]): number; + + /** + * Calculates the squared length of a vec4 + * + * @param a vector to calculate squared length of + * @returns squared length of a + */ + function squaredLength(a: I.vec4 | number[]): number; + + /** + * Calculates the squared length of a vec4 + * + * @param a vector to calculate squared length of + * @returns squared length of a + */ + function sqrLen(a: I.vec4 | number[]): number; + + /** + * Negates the components of a vec4 + * + * @param out the receiving vector + * @param a vector to negate + * @returns out + */ + function negate(out: I.vec4, a: I.vec4 | number[]): I.vec4; + + /** + * Returns the inverse of the components of a vec4 + * + * @param out the receiving vector + * @param a vector to invert + * @returns out + */ + function inverse(out: I.vec4, a: I.vec4 | number[]): I.vec4; + + /** + * Normalize a vec4 + * + * @param out the receiving vector + * @param a vector to normalize + * @returns out + */ + function normalize(out: I.vec4, a: I.vec4 | number[]): I.vec4; + + /** + * Calculates the dot product of two vec4's + * + * @param a the first operand + * @param b the second operand + * @returns dot product of a and b + */ + function dot(a: I.vec4 | number[], b: I.vec4 | number[]): number; + + /** + * Performs a linear interpolation between two vec4's + * + * @param out the receiving vector + * @param a the first operand + * @param b the second operand + * @param t interpolation amount between the two inputs + * @returns out + */ + function lerp(out: I.vec4, a: I.vec4 | number[], b: I.vec4 | number[], t: number): I.vec4; + + /** + * Generates a random unit vector + * + * @param out the receiving vector + * @returns out + */ + function random(out: I.vec4): I.vec4; + + /** + * Generates a random vector with the given scale + * + * @param out the receiving vector + * @param scale length of the resulting vector. If ommitted, a unit vector will be returned + * @returns out + */ + function random(out: I.vec4, scale: number): I.vec4; + + /** + * Transforms the vec4 with a mat4. + * + * @param out the receiving vector + * @param a the vector to transform + * @param m matrix to transform with + * @returns out + */ + function transformMat4(out: I.vec4, a: I.vec4 | number[], m: I.mat4): I.vec4; + + /** + * Transforms the vec4 with a quat + * + * @param out the receiving vector + * @param a the vector to transform + * @param q quaternion to transform with + * @returns out + */ + + function transformQuat(out: I.vec4, a: I.vec4 | number[], q: I.quat): I.vec4; + + /** + * Perform some operation over an array of vec4s. + * + * @param a the array of vectors to iterate over + * @param stride Number of elements between the start of each vec4. If 0 assumes tightly packed + * @param offset Number of elements to skip at the beginning of the array + * @param count Number of vec4s to iterate over. If 0 iterates over entire array + * @param fn Function to call for each vector in the array + * @param arg additional argument to pass to fn + * @returns a + * @function + */ + function forEach(a: Float32Array, stride: number, offset: number, count: number, + fn: (a: I.vec4 | number[], b: I.vec4 | number[], arg: any) => void, arg: any): Float32Array; + + /** + * Perform some operation over an array of vec4s. + * + * @param a the array of vectors to iterate over + * @param stride Number of elements between the start of each vec4. If 0 assumes tightly packed + * @param offset Number of elements to skip at the beginning of the array + * @param count Number of vec4s to iterate over. If 0 iterates over entire array + * @param fn Function to call for each vector in the array + * @returns a + * @function + */ + function forEach(a: Float32Array, stride: number, offset: number, count: number, + fn: (a: I.vec4 | number[], b: I.vec4 | number[]) => void): Float32Array; + + /** + * Returns a string representation of a vector + * + * @param a vector to represent as a string + * @returns string representation of the vector + */ + function str(a: I.vec4 | number[]): string; + + /** + * Returns whether or not the vectors have exactly the same elements in the same position (when compared with ===) + * + * @param {vec4} a The first vector. + * @param {vec4} b The second vector. + * @returns {boolean} True if the vectors are equal, false otherwise. + */ + function exactEquals(a: I.vec4 | number[], b: I.vec4 | number[]): boolean; + + /** + * Returns whether or not the vectors have approximately the same elements in the same position. + * + * @param {vec4} a The first vector. + * @param {vec4} b The second vector. + * @returns {boolean} True if the vectors are equal, false otherwise. + */ + function equals(a: I.vec4 | number[], b: I.vec4 | number[]): boolean; + } + + namespace I { + type mat2 = Float32Array; + } + + /** + * 2x2 Matrix + */ + namespace mat2 { + /** + * Creates a new identity mat2 + * + * @returns a new 2x2 matrix + */ + function create(): I.mat2; + + /** + * Creates a new mat2 initialized with values from an existing matrix + * + * @param a matrix to clone + * @returns a new 2x2 matrix + */ + function clone(a: I.mat2): I.mat2; + + /** + * Copy the values from one mat2 to another + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function copy(out: I.mat2, a: I.mat2): I.mat2; + + /** + * Set a mat2 to the identity matrix + * + * @param out the receiving matrix + * @returns out + */ + function identity(out: I.mat2): I.mat2; + + /** + * Create a new mat2 with the given values + * + * @param {number} m00 Component in column 0, row 0 position (index 0) + * @param {number} m01 Component in column 0, row 1 position (index 1) + * @param {number} m10 Component in column 1, row 0 position (index 2) + * @param {number} m11 Component in column 1, row 1 position (index 3) + * @returns {mat2} out A new 2x2 matrix + */ + function fromValues(m00: number, m01: number, m10: number, m11: number): I.mat2; + + /** + * Set the components of a mat2 to the given values + * + * @param {mat2} out the receiving matrix + * @param {number} m00 Component in column 0, row 0 position (index 0) + * @param {number} m01 Component in column 0, row 1 position (index 1) + * @param {number} m10 Component in column 1, row 0 position (index 2) + * @param {number} m11 Component in column 1, row 1 position (index 3) + * @returns {mat2} out + */ + function set(out: I.mat2, m00: number, m01: number, m10: number, m11: number): I.mat2; + + /** + * Transpose the values of a mat2 + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function transpose(out: I.mat2, a: I.mat2): I.mat2; + + /** + * Inverts a mat2 + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function invert(out: I.mat2, a: I.mat2): I.mat2 | null; + + /** + * Calculates the adjugate of a mat2 + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function adjoint(out: I.mat2, a: I.mat2): I.mat2; + + /** + * Calculates the determinant of a mat2 + * + * @param a the source matrix + * @returns determinant of a + */ + function determinant(a: I.mat2): number; + + /** + * Multiplies two mat2's + * + * @param out the receiving matrix + * @param a the first operand + * @param b the second operand + * @returns out + */ + function multiply(out: I.mat2, a: I.mat2, b: I.mat2): I.mat2; + + /** + * Multiplies two mat2's + * + * @param out the receiving matrix + * @param a the first operand + * @param b the second operand + * @returns out + */ + function mul(out: I.mat2, a: I.mat2, b: I.mat2): I.mat2; + + /** + * Rotates a mat2 by the given angle + * + * @param out the receiving matrix + * @param a the matrix to rotate + * @param rad the angle to rotate the matrix by + * @returns out + */ + function rotate(out: I.mat2, a: I.mat2, rad: number): I.mat2; + + /** + * Scales the mat2 by the dimensions in the given vec2 + * + * @param out the receiving matrix + * @param a the matrix to rotate + * @param v the vec2 to scale the matrix by + * @returns out + */ + function scale(out: I.mat2, a: I.mat2, v: I.vec2 | number[]): I.mat2; + + /** + * Creates a matrix from a given angle + * This is equivalent to (but much faster than): + * + * mat2.identity(dest); + * mat2.rotate(dest, dest, rad); + * + * @param {mat2} out mat2 receiving operation result + * @param {number} rad the angle to rotate the matrix by + * @returns {mat2} out + */ + function fromRotation(out: I.mat2, rad: number): I.mat2; + + /** + * Creates a matrix from a vector scaling + * This is equivalent to (but much faster than): + * + * mat2.identity(dest); + * mat2.scale(dest, dest, vec); + * + * @param {mat2} out mat2 receiving operation result + * @param {vec2} v Scaling vector + * @returns {mat2} out + */ + function fromScaling(out: I.mat2, v: I.vec2 | number[]): I.mat2; + + /** + * Returns a string representation of a mat2 + * + * @param a matrix to represent as a string + * @returns string representation of the matrix + */ + function str(a: I.mat2): string; + + /** + * Returns Frobenius norm of a mat2 + * + * @param a the matrix to calculate Frobenius norm of + * @returns Frobenius norm + */ + function frob(a: I.mat2): number; + + /** + * Returns L, D and U matrices (Lower triangular, Diagonal and Upper triangular) by factorizing the input matrix + * @param L the lower triangular matrix + * @param D the diagonal matrix + * @param U the upper triangular matrix + * @param a the input matrix to factorize + */ + function LDU(L: I.mat2, D: I.mat2, U: I.mat2, a: I.mat2): I.mat2; + + /** + * Adds two mat2's + * + * @param {mat2} out the receiving matrix + * @param {mat2} a the first operand + * @param {mat2} b the second operand + * @returns {mat2} out + */ + function add(out: I.mat2, a: I.mat2, b: I.mat2): I.mat2; + + /** + * Subtracts matrix b from matrix a + * + * @param {mat2} out the receiving matrix + * @param {mat2} a the first operand + * @param {mat2} b the second operand + * @returns {mat2} out + */ + function subtract(out: I.mat2, a: I.mat2, b: I.mat2): I.mat2; + + /** + * Subtracts matrix b from matrix a + * + * @param {mat2} out the receiving matrix + * @param {mat2} a the first operand + * @param {mat2} b the second operand + * @returns {mat2} out + */ + function sub(out: I.mat2, a: I.mat2, b: I.mat2): I.mat2; + + /** + * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) + * + * @param {mat2} a The first matrix. + * @param {mat2} b The second matrix. + * @returns {boolean} True if the matrices are equal, false otherwise. + */ + function exactEquals(a: I.mat2, b: I.mat2): boolean; + + /** + * Returns whether or not the matrices have approximately the same elements in the same position. + * + * @param {mat2} a The first matrix. + * @param {mat2} b The second matrix. + * @returns {boolean} True if the matrices are equal, false otherwise. + */ + function equals(a: I.mat2, b: I.mat2): boolean; + + /** + * Multiply each element of the matrix by a scalar. + * + * @param {mat2} out the receiving matrix + * @param {mat2} a the matrix to scale + * @param {number} b amount to scale the matrix's elements by + * @returns {mat2} out + */ + function multiplyScalar(out: I.mat2, a: I.mat2, b: number): I.mat2; + + /** + * Adds two mat2's after multiplying each element of the second operand by a scalar value. + * + * @param {mat2} out the receiving vector + * @param {mat2} a the first operand + * @param {mat2} b the second operand + * @param {number} scale the amount to scale b's elements by before adding + * @returns {mat2} out + */ + function multiplyScalarAndAdd(out: I.mat2, a: I.mat2, b: I.mat2, scale: number): I.mat2; + } + + namespace I { + type mat2d = Float32Array; + } + + /** + * 2x3 Matrix + */ + namespace mat2d { + /** + * Creates a new identity mat2d + * + * @returns a new 2x3 matrix + */ + function create(): I.mat2d; + + /** + * Creates a new mat2d initialized with values from an existing matrix + * + * @param a matrix to clone + * @returns a new 2x3 matrix + */ + function clone(a: I.mat2d): I.mat2d; + + /** + * Copy the values from one mat2d to another + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function copy(out: I.mat2d, a: I.mat2d): I.mat2d; + + /** + * Set a mat2d to the identity matrix + * + * @param out the receiving matrix + * @returns out + */ + function identity(out: I.mat2d): I.mat2d; + + /** + * Create a new mat2d with the given values + * + * @param {number} a Component A (index 0) + * @param {number} b Component B (index 1) + * @param {number} c Component C (index 2) + * @param {number} d Component D (index 3) + * @param {number} tx Component TX (index 4) + * @param {number} ty Component TY (index 5) + * @returns {mat2d} A new mat2d + */ + function fromValues(a: number, b: number, c: number, d: number, tx: number, ty: number): I.mat2d; + + /** + * Set the components of a mat2d to the given values + * + * @param {mat2d} out the receiving matrix + * @param {number} a Component A (index 0) + * @param {number} b Component B (index 1) + * @param {number} c Component C (index 2) + * @param {number} d Component D (index 3) + * @param {number} tx Component TX (index 4) + * @param {number} ty Component TY (index 5) + * @returns {mat2d} out + */ + function set(out: I.mat2d, a: number, b: number, c: number, d: number, tx: number, ty: number): I.mat2d; + + /** + * Inverts a mat2d + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function invert(out: I.mat2d, a: I.mat2d): I.mat2d | null; + + /** + * Calculates the determinant of a mat2d + * + * @param a the source matrix + * @returns determinant of a + */ + function determinant(a: I.mat2d): number; + + /** + * Multiplies two mat2d's + * + * @param out the receiving matrix + * @param a the first operand + * @param b the second operand + * @returns out + */ + function multiply(out: I.mat2d, a: I.mat2d, b: I.mat2d): I.mat2d; + + /** + * Multiplies two mat2d's + * + * @param out the receiving matrix + * @param a the first operand + * @param b the second operand + * @returns out + */ + function mul(out: I.mat2d, a: I.mat2d, b: I.mat2d): I.mat2d; + + /** + * Rotates a mat2d by the given angle + * + * @param out the receiving matrix + * @param a the matrix to rotate + * @param rad the angle to rotate the matrix by + * @returns out + */ + function rotate(out: I.mat2d, a: I.mat2d, rad: number): I.mat2d; + + /** + * Scales the mat2d by the dimensions in the given vec2 + * + * @param out the receiving matrix + * @param a the matrix to translate + * @param v the vec2 to scale the matrix by + * @returns out + */ + function scale(out: I.mat2d, a: I.mat2d, v: I.vec2 | number[]): I.mat2d; + + /** + * Translates the mat2d by the dimensions in the given vec2 + * + * @param out the receiving matrix + * @param a the matrix to translate + * @param v the vec2 to translate the matrix by + * @returns out + */ + function translate(out: I.mat2d, a: I.mat2d, v: I.vec2 | number[]): I.mat2d; + + /** + * Creates a matrix from a given angle + * This is equivalent to (but much faster than): + * + * mat2d.identity(dest); + * mat2d.rotate(dest, dest, rad); + * + * @param {mat2d} out mat2d receiving operation result + * @param {number} rad the angle to rotate the matrix by + * @returns {mat2d} out + */ + function fromRotation(out: I.mat2d, rad: number): I.mat2d; + + /** + * Creates a matrix from a vector scaling + * This is equivalent to (but much faster than): + * + * mat2d.identity(dest); + * mat2d.scale(dest, dest, vec); + * + * @param {mat2d} out mat2d receiving operation result + * @param {vec2} v Scaling vector + * @returns {mat2d} out + */ + function fromScaling(out: I.mat2d, v: I.vec2 | number[]): I.mat2d; + + /** + * Creates a matrix from a vector translation + * This is equivalent to (but much faster than): + * + * mat2d.identity(dest); + * mat2d.translate(dest, dest, vec); + * + * @param {mat2d} out mat2d receiving operation result + * @param {vec2} v Translation vector + * @returns {mat2d} out + */ + function fromTranslation(out: I.mat2d, v: I.vec2 | number[]): I.mat2d; + + /** + * Returns a string representation of a mat2d + * + * @param a matrix to represent as a string + * @returns string representation of the matrix + */ + function str(a: I.mat2d): string; + + /** + * Returns Frobenius norm of a mat2d + * + * @param a the matrix to calculate Frobenius norm of + * @returns Frobenius norm + */ + function frob(a: I.mat2d): number; + + /** + * Adds two mat2d's + * + * @param {mat2d} out the receiving matrix + * @param {mat2d} a the first operand + * @param {mat2d} b the second operand + * @returns {mat2d} out + */ + function add(out: I.mat2d, a: I.mat2d, b: I.mat2d): I.mat2d; + + /** + * Subtracts matrix b from matrix a + * + * @param {mat2d} out the receiving matrix + * @param {mat2d} a the first operand + * @param {mat2d} b the second operand + * @returns {mat2d} out + */ + function subtract(out: I.mat2d, a: I.mat2d, b: I.mat2d): I.mat2d; + + /** + * Subtracts matrix b from matrix a + * + * @param {mat2d} out the receiving matrix + * @param {mat2d} a the first operand + * @param {mat2d} b the second operand + * @returns {mat2d} out + */ + function sub(out: I.mat2d, a: I.mat2d, b: I.mat2d): I.mat2d; + + /** + * Multiply each element of the matrix by a scalar. + * + * @param {mat2d} out the receiving matrix + * @param {mat2d} a the matrix to scale + * @param {number} b amount to scale the matrix's elements by + * @returns {mat2d} out + */ + function multiplyScalar(out: I.mat2d, a: I.mat2d, b: number): I.mat2d; + + /** + * Adds two mat2d's after multiplying each element of the second operand by a scalar value. + * + * @param {mat2d} out the receiving vector + * @param {mat2d} a the first operand + * @param {mat2d} b the second operand + * @param {number} scale the amount to scale b's elements by before adding + * @returns {mat2d} out + */ + function multiplyScalarAndAdd(out: I.mat2d, a: I.mat2d, b: I.mat2d, scale: number): I.mat2d; + + /** + * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) + * + * @param {mat2d} a The first matrix. + * @param {mat2d} b The second matrix. + * @returns {boolean} True if the matrices are equal, false otherwise. + */ + function exactEquals(a: I.mat2d, b: I.mat2d): boolean; + + /** + * Returns whether or not the matrices have approximately the same elements in the same position. + * + * @param {mat2d} a The first matrix. + * @param {mat2d} b The second matrix. + * @returns {boolean} True if the matrices are equal, false otherwise. + */ + function equals(a: I.mat2d, b: I.mat2d): boolean; + } + + namespace I { + type mat3 = Float32Array; + } + + /** + * 3x3 Matrix + */ + namespace mat3 { + /** + * Creates a new identity mat3 + * + * @returns a new 3x3 matrix + */ + function create(): I.mat3; + + /** + * Copies the upper-left 3x3 values into the given mat3. + * + * @param {mat3} out the receiving 3x3 matrix + * @param {mat4} a the source 4x4 matrix + * @returns {mat3} out + */ + function fromMat4(out: I.mat3, a: I.mat4): I.mat3; + + /** + * Creates a new mat3 initialized with values from an existing matrix + * + * @param a matrix to clone + * @returns a new 3x3 matrix + */ + function clone(a: I.mat3): I.mat3; + + /** + * Copy the values from one mat3 to another + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function copy(out: I.mat3, a: I.mat3): I.mat3; + + /** + * Create a new mat3 with the given values + * + * @param {number} m00 Component in column 0, row 0 position (index 0) + * @param {number} m01 Component in column 0, row 1 position (index 1) + * @param {number} m02 Component in column 0, row 2 position (index 2) + * @param {number} m10 Component in column 1, row 0 position (index 3) + * @param {number} m11 Component in column 1, row 1 position (index 4) + * @param {number} m12 Component in column 1, row 2 position (index 5) + * @param {number} m20 Component in column 2, row 0 position (index 6) + * @param {number} m21 Component in column 2, row 1 position (index 7) + * @param {number} m22 Component in column 2, row 2 position (index 8) + * @returns {mat3} A new mat3 + */ + function fromValues(m00: number, m01: number, m02: number, m10: number, m11: number, m12: number, m20: number, m21: number, m22: number): I.mat3; + + /** + * Set the components of a mat3 to the given values + * + * @param {mat3} out the receiving matrix + * @param {number} m00 Component in column 0, row 0 position (index 0) + * @param {number} m01 Component in column 0, row 1 position (index 1) + * @param {number} m02 Component in column 0, row 2 position (index 2) + * @param {number} m10 Component in column 1, row 0 position (index 3) + * @param {number} m11 Component in column 1, row 1 position (index 4) + * @param {number} m12 Component in column 1, row 2 position (index 5) + * @param {number} m20 Component in column 2, row 0 position (index 6) + * @param {number} m21 Component in column 2, row 1 position (index 7) + * @param {number} m22 Component in column 2, row 2 position (index 8) + * @returns {mat3} out + */ + function set(out: I.mat3, m00: number, m01: number, m02: number, m10: number, m11: number, m12: number, m20: number, m21: number, m22: number): I.mat3; + + /** + * Set a mat3 to the identity matrix + * + * @param out the receiving matrix + * @returns out + */ + function identity(out: I.mat3): I.mat3; + + /** + * Transpose the values of a mat3 + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function transpose(out: I.mat3, a: I.mat3): I.mat3; + + /** + * Inverts a mat3 + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function invert(out: I.mat3, a: I.mat3): I.mat3 | null; + + /** + * Calculates the adjugate of a mat3 + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function adjoint(out: I.mat3, a: I.mat3): I.mat3; + + /** + * Calculates the determinant of a mat3 + * + * @param a the source matrix + * @returns determinant of a + */ + function determinant(a: I.mat3): number; + + /** + * Multiplies two mat3's + * + * @param out the receiving matrix + * @param a the first operand + * @param b the second operand + * @returns out + */ + function multiply(out: I.mat3, a: I.mat3, b: I.mat3): I.mat3; + + /** + * Multiplies two mat3's + * + * @param out the receiving matrix + * @param a the first operand + * @param b the second operand + * @returns out + */ + function mul(out: I.mat3, a: I.mat3, b: I.mat3): I.mat3; + + /** + * Translate a mat3 by the given vector + * + * @param out the receiving matrix + * @param a the matrix to translate + * @param v vector to translate by + * @returns out + */ + function translate(out: I.mat3, a: I.mat3, v: I.vec3 | number[]): I.mat3; + + /** + * Rotates a mat3 by the given angle + * + * @param out the receiving matrix + * @param a the matrix to rotate + * @param rad the angle to rotate the matrix by + * @returns out + */ + function rotate(out: I.mat3, a: I.mat3, rad: number): I.mat3; + + /** + * Scales the mat3 by the dimensions in the given vec2 + * + * @param out the receiving matrix + * @param a the matrix to rotate + * @param v the vec2 to scale the matrix by + * @returns out + */ + function scale(out: I.mat3, a: I.mat3, v: I.vec2 | number[]): I.mat3; + + /** + * Creates a matrix from a vector translation + * This is equivalent to (but much faster than): + * + * mat3.identity(dest); + * mat3.translate(dest, dest, vec); + * + * @param {mat3} out mat3 receiving operation result + * @param {vec2} v Translation vector + * @returns {mat3} out + */ + function fromTranslation(out: I.mat3, v: I.vec2 | number[]): I.mat3; + + /** + * Creates a matrix from a given angle + * This is equivalent to (but much faster than): + * + * mat3.identity(dest); + * mat3.rotate(dest, dest, rad); + * + * @param {mat3} out mat3 receiving operation result + * @param {number} rad the angle to rotate the matrix by + * @returns {mat3} out + */ + function fromRotation(out: I.mat3, rad: number): I.mat3; + + /** + * Creates a matrix from a vector scaling + * This is equivalent to (but much faster than): + * + * mat3.identity(dest); + * mat3.scale(dest, dest, vec); + * + * @param {mat3} out mat3 receiving operation result + * @param {vec2} v Scaling vector + * @returns {mat3} out + */ + function fromScaling(out: I.mat3, v: I.vec2 | number[]): I.mat3; + + /** + * Copies the values from a mat2d into a mat3 + * + * @param out the receiving matrix + * @param {mat2d} a the matrix to copy + * @returns out + */ + function fromMat2d(out: I.mat3, a: I.mat2d): I.mat3; + + /** + * Calculates a 3x3 matrix from the given quaternion + * + * @param out mat3 receiving operation result + * @param q Quaternion to create matrix from + * + * @returns out + */ + function fromQuat(out: I.mat3, q: I.quat): I.mat3; + + /** + * Calculates a 3x3 normal matrix (transpose inverse) from the 4x4 matrix + * + * @param out mat3 receiving operation result + * @param a Mat4 to derive the normal matrix from + * + * @returns out + */ + function normalFromMat4(out: I.mat3, a: I.mat4): I.mat3 | null; + + /** + * Returns a string representation of a mat3 + * + * @param mat matrix to represent as a string + * @returns string representation of the matrix + */ + function str(mat: I.mat3): string; + + /** + * Returns Frobenius norm of a mat3 + * + * @param a the matrix to calculate Frobenius norm of + * @returns Frobenius norm + */ + function frob(a: I.mat3): number; + + /** + * Adds two mat3's + * + * @param {mat3} out the receiving matrix + * @param {mat3} a the first operand + * @param {mat3} b the second operand + * @returns {mat3} out + */ + function add(out: I.mat3, a: I.mat3, b: I.mat3): I.mat3; + + /** + * Subtracts matrix b from matrix a + * + * @param {mat3} out the receiving matrix + * @param {mat3} a the first operand + * @param {mat3} b the second operand + * @returns {mat3} out + */ + function subtract(out: I.mat3, a: I.mat3, b: I.mat3): I.mat3; + + /** + * Subtracts matrix b from matrix a + * + * @param {mat3} out the receiving matrix + * @param {mat3} a the first operand + * @param {mat3} b the second operand + * @returns {mat3} out + */ + function sub(out: I.mat3, a: I.mat3, b: I.mat3): I.mat3; + + /** + * Multiply each element of the matrix by a scalar. + * + * @param {mat3} out the receiving matrix + * @param {mat3} a the matrix to scale + * @param {number} b amount to scale the matrix's elements by + * @returns {mat3} out + */ + function multiplyScalar(out: I.mat3, a: I.mat3, b: number): I.mat3; + + /** + * Adds two mat3's after multiplying each element of the second operand by a scalar value. + * + * @param {mat3} out the receiving vector + * @param {mat3} a the first operand + * @param {mat3} b the second operand + * @param {number} scale the amount to scale b's elements by before adding + * @returns {mat3} out + */ + function multiplyScalarAndAdd(out: I.mat3, a: I.mat3, b: I.mat3, scale: number): I.mat3; + + /** + * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) + * + * @param {mat3} a The first matrix. + * @param {mat3} b The second matrix. + * @returns {boolean} True if the matrices are equal, false otherwise. + */ + function exactEquals(a: I.mat3, b: I.mat3): boolean; + + /** + * Returns whether or not the matrices have approximately the same elements in the same position. + * + * @param {mat3} a The first matrix. + * @param {mat3} b The second matrix. + * @returns {boolean} True if the matrices are equal, false otherwise. + */ + function equals(a: I.mat3, b: I.mat3): boolean; + } + + namespace I { + type mat4 = Float32Array; + } + + /** + * 4x4 Matrix + */ + namespace mat4 { + /** + * Creates a new identity mat4 + * + * @returns a new 4x4 matrix + */ + function create(): I.mat4; + + /** + * Creates a new mat4 initialized with values from an existing matrix + * + * @param a matrix to clone + * @returns a new 4x4 matrix + */ + function clone(a: I.mat4): I.mat4; + + /** + * Copy the values from one mat4 to another + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function copy(out: I.mat4, a: I.mat4): I.mat4; + + /** + * Create a new mat4 with the given values + * + * @param {number} m00 Component in column 0, row 0 position (index 0) + * @param {number} m01 Component in column 0, row 1 position (index 1) + * @param {number} m02 Component in column 0, row 2 position (index 2) + * @param {number} m03 Component in column 0, row 3 position (index 3) + * @param {number} m10 Component in column 1, row 0 position (index 4) + * @param {number} m11 Component in column 1, row 1 position (index 5) + * @param {number} m12 Component in column 1, row 2 position (index 6) + * @param {number} m13 Component in column 1, row 3 position (index 7) + * @param {number} m20 Component in column 2, row 0 position (index 8) + * @param {number} m21 Component in column 2, row 1 position (index 9) + * @param {number} m22 Component in column 2, row 2 position (index 10) + * @param {number} m23 Component in column 2, row 3 position (index 11) + * @param {number} m30 Component in column 3, row 0 position (index 12) + * @param {number} m31 Component in column 3, row 1 position (index 13) + * @param {number} m32 Component in column 3, row 2 position (index 14) + * @param {number} m33 Component in column 3, row 3 position (index 15) + * @returns {mat4} A new mat4 + */ + function fromValues( + m00: number, + m01: number, + m02: number, + m03: number, + m10: number, + m11: number, + m12: number, + m13: number, + m20: number, + m21: number, + m22: number, + m23: number, + m30: number, + m31: number, + m32: number, + m33: number + ): I.mat4; + + /** + * Set the components of a mat4 to the given values + * + * @param {mat4} out the receiving matrix + * @param {number} m00 Component in column 0, row 0 position (index 0) + * @param {number} m01 Component in column 0, row 1 position (index 1) + * @param {number} m02 Component in column 0, row 2 position (index 2) + * @param {number} m03 Component in column 0, row 3 position (index 3) + * @param {number} m10 Component in column 1, row 0 position (index 4) + * @param {number} m11 Component in column 1, row 1 position (index 5) + * @param {number} m12 Component in column 1, row 2 position (index 6) + * @param {number} m13 Component in column 1, row 3 position (index 7) + * @param {number} m20 Component in column 2, row 0 position (index 8) + * @param {number} m21 Component in column 2, row 1 position (index 9) + * @param {number} m22 Component in column 2, row 2 position (index 10) + * @param {number} m23 Component in column 2, row 3 position (index 11) + * @param {number} m30 Component in column 3, row 0 position (index 12) + * @param {number} m31 Component in column 3, row 1 position (index 13) + * @param {number} m32 Component in column 3, row 2 position (index 14) + * @param {number} m33 Component in column 3, row 3 position (index 15) + * @returns {mat4} out + */ + function set( + out: I.mat4, + m00: number, + m01: number, + m02: number, + m03: number, + m10: number, + m11: number, + m12: number, + m13: number, + m20: number, + m21: number, + m22: number, + m23: number, + m30: number, + m31: number, + m32: number, + m33: number + ): I.mat4; + + /** + * Set a mat4 to the identity matrix + * + * @param out the receiving matrix + * @returns out + */ + function identity(out: I.mat4): I.mat4; + + /** + * Transpose the values of a mat4 + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function transpose(out: I.mat4, a: I.mat4): I.mat4; + + /** + * Inverts a mat4 + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function invert(out: I.mat4, a: I.mat4): I.mat4 | null; + + /** + * Calculates the adjugate of a mat4 + * + * @param out the receiving matrix + * @param a the source matrix + * @returns out + */ + function adjoint(out: I.mat4, a: I.mat4): I.mat4; + + /** + * Calculates the determinant of a mat4 + * + * @param a the source matrix + * @returns determinant of a + */ + function determinant(a: I.mat4): number; + + /** + * Multiplies two mat4's + * + * @param out the receiving matrix + * @param a the first operand + * @param b the second operand + * @returns out + */ + function multiply(out: I.mat4, a: I.mat4, b: I.mat4): I.mat4; + + /** + * Multiplies two mat4's + * + * @param out the receiving matrix + * @param a the first operand + * @param b the second operand + * @returns out + */ + function mul(out: I.mat4, a: I.mat4, b: I.mat4): I.mat4; + + /** + * Translate a mat4 by the given vector + * + * @param out the receiving matrix + * @param a the matrix to translate + * @param v vector to translate by + * @returns out + */ + function translate(out: I.mat4, a: I.mat4, v: I.vec3 | number[]): I.mat4; + + /** + * Scales the mat4 by the dimensions in the given vec3 + * + * @param out the receiving matrix + * @param a the matrix to scale + * @param v the vec3 to scale the matrix by + * @returns out + */ + function scale(out: I.mat4, a: I.mat4, v: I.vec3 | number[]): I.mat4; + + /** + * Rotates a mat4 by the given angle + * + * @param out the receiving matrix + * @param a the matrix to rotate + * @param rad the angle to rotate the matrix by + * @param axis the axis to rotate around + * @returns out + */ + function rotate(out: I.mat4, a: I.mat4, rad: number, axis: I.vec3 | number[]): I.mat4; + + /** + * Rotates a matrix by the given angle around the X axis + * + * @param out the receiving matrix + * @param a the matrix to rotate + * @param rad the angle to rotate the matrix by + * @returns out + */ + function rotateX(out: I.mat4, a: I.mat4, rad: number): I.mat4; + + /** + * Rotates a matrix by the given angle around the Y axis + * + * @param out the receiving matrix + * @param a the matrix to rotate + * @param rad the angle to rotate the matrix by + * @returns out + */ + function rotateY(out: I.mat4, a: I.mat4, rad: number): I.mat4; + + /** + * Rotates a matrix by the given angle around the Z axis + * + * @param out the receiving matrix + * @param a the matrix to rotate + * @param rad the angle to rotate the matrix by + * @returns out + */ + function rotateZ(out: I.mat4, a: I.mat4, rad: number): I.mat4; + + /** + * Creates a matrix from a vector translation + * This is equivalent to (but much faster than): + * + * mat4.identity(dest); + * mat4.translate(dest, dest, vec); + * + * @param {mat4} out mat4 receiving operation result + * @param {vec3} v Translation vector + * @returns {mat4} out + */ + function fromTranslation(out: I.mat4, v: I.vec3 | number[]): I.mat4; + + /** + * Creates a matrix from a vector scaling + * This is equivalent to (but much faster than): + * + * mat4.identity(dest); + * mat4.scale(dest, dest, vec); + * + * @param {mat4} out mat4 receiving operation result + * @param {vec3} v Scaling vector + * @returns {mat4} out + */ + function fromScaling(out: I.mat4, v: I.vec3 | number[]): I.mat4; + + /** + * Creates a matrix from a given angle around a given axis + * This is equivalent to (but much faster than): + * + * mat4.identity(dest); + * mat4.rotate(dest, dest, rad, axis); + * + * @param {mat4} out mat4 receiving operation result + * @param {number} rad the angle to rotate the matrix by + * @param {vec3} axis the axis to rotate around + * @returns {mat4} out + */ + function fromRotation(out: I.mat4, rad: number, axis: I.vec3 | number[]): I.mat4; + + /** + * Creates a matrix from the given angle around the X axis + * This is equivalent to (but much faster than): + * + * mat4.identity(dest); + * mat4.rotateX(dest, dest, rad); + * + * @param {mat4} out mat4 receiving operation result + * @param {number} rad the angle to rotate the matrix by + * @returns {mat4} out + */ + function fromXRotation(out: I.mat4, rad: number): I.mat4; + + /** + * Creates a matrix from the given angle around the Y axis + * This is equivalent to (but much faster than): + * + * mat4.identity(dest); + * mat4.rotateY(dest, dest, rad); + * + * @param {mat4} out mat4 receiving operation result + * @param {number} rad the angle to rotate the matrix by + * @returns {mat4} out + */ + function fromYRotation(out: I.mat4, rad: number): I.mat4; + + /** + * Creates a matrix from the given angle around the Z axis + * This is equivalent to (but much faster than): + * + * mat4.identity(dest); + * mat4.rotateZ(dest, dest, rad); + * + * @param {mat4} out mat4 receiving operation result + * @param {number} rad the angle to rotate the matrix by + * @returns {mat4} out + */ + function fromZRotation(out: I.mat4, rad: number): I.mat4; + + /** + * Creates a matrix from a quaternion rotation and vector translation + * This is equivalent to (but much faster than): + * + * mat4.identity(dest); + * mat4.translate(dest, vec); + * var quatMat = mat4.create(); + * quat4.toMat4(quat, quatMat); + * mat4.multiply(dest, quatMat); + * + * @param out mat4 receiving operation result + * @param q Rotation quaternion + * @param v Translation vector + * @returns out + */ + function fromRotationTranslation(out: I.mat4, q: I.quat, v: I.vec3 | number[]): I.mat4; + + /** + * Returns the translation vector component of a transformation + * matrix. If a matrix is built with fromRotationTranslation, + * the returned vector will be the same as the translation vector + * originally supplied. + * @param {vec3} out Vector to receive translation component + * @param {mat4} mat Matrix to be decomposed (input) + * @return {vec3} out + */ + function getTranslation(out: I.vec3, mat: I.mat4): I.vec3; + + /** + * Returns the scaling factor component of a transformation matrix. + * If a matrix is built with fromRotationTranslationScale with a + * normalized Quaternion parameter, the returned vector will be + * the same as the scaling vector originally supplied. + * @param {vec3} out Vector to receive scaling factor component + * @param {mat4} mat Matrix to be decomposed (input) + * @return {vec3} out + */ + function getScaling(out: I.vec3, mat: I.mat4): I.vec3; + + /** + * Returns a quaternion representing the rotational component + * of a transformation matrix. If a matrix is built with + * fromRotationTranslation, the returned quaternion will be the + * same as the quaternion originally supplied. + * @param {quat} out Quaternion to receive the rotation component + * @param {mat4} mat Matrix to be decomposed (input) + * @return {quat} out + */ + function getRotation(out: I.quat, mat: I.mat4): I.quat; + + /** + * Creates a matrix from a quaternion rotation, vector translation and vector scale + * This is equivalent to (but much faster than): + * + * mat4.identity(dest); + * mat4.translate(dest, vec); + * var quatMat = mat4.create(); + * quat4.toMat4(quat, quatMat); + * mat4.multiply(dest, quatMat); + * mat4.scale(dest, scale) + * + * @param out mat4 receiving operation result + * @param q Rotation quaternion + * @param v Translation vector + * @param s Scaling vector + * @returns out + */ + function fromRotationTranslationScale(out: I.mat4, q: I.quat, v: I.vec3 | number[], s: I.vec3 | number[]): I.mat4; + + /** + * Creates a matrix from a quaternion rotation, vector translation and vector scale, rotating and scaling around the given origin + * This is equivalent to (but much faster than): + * + * mat4.identity(dest); + * mat4.translate(dest, vec); + * mat4.translate(dest, origin); + * var quatMat = mat4.create(); + * quat4.toMat4(quat, quatMat); + * mat4.multiply(dest, quatMat); + * mat4.scale(dest, scale) + * mat4.translate(dest, negativeOrigin); + * + * @param {mat4} out mat4 receiving operation result + * @param {quat} q Rotation quaternion + * @param {vec3} v Translation vector + * @param {vec3} s Scaling vector + * @param {vec3} o The origin vector around which to scale and rotate + * @returns {mat4} out + */ + function fromRotationTranslationScaleOrigin(out: I.mat4, q: I.quat, v: I.vec3 | number[], s: I.vec3 | number[], o: I.vec3 | number[]): I.mat4; + + /** + * Calculates a 4x4 matrix from the given quaternion + * + * @param {mat4} out mat4 receiving operation result + * @param {quat} q Quaternion to create matrix from + * + * @returns {mat4} out + */ + function fromQuat(out: I.mat4, q: I.quat): I.mat4; + + /** + * Generates a frustum matrix with the given bounds + * + * @param out mat4 frustum matrix will be written into + * @param left Left bound of the frustum + * @param right Right bound of the frustum + * @param bottom Bottom bound of the frustum + * @param top Top bound of the frustum + * @param near Near bound of the frustum + * @param far Far bound of the frustum + * @returns out + */ + function frustum(out: I.mat4, left: number, right: number, + bottom: number, top: number, near: number, far: number): I.mat4; + + /** + * Generates a perspective projection matrix with the given bounds + * + * @param out mat4 frustum matrix will be written into + * @param fovy Vertical field of view in radians + * @param aspect Aspect ratio. typically viewport width/height + * @param near Near bound of the frustum + * @param far Far bound of the frustum + * @returns out + */ + function perspective(out: I.mat4, fovy: number, aspect: number, + near: number, far: number): I.mat4; + + /** + * Generates a perspective projection matrix with the given field of view. + * This is primarily useful for generating projection matrices to be used + * with the still experimental WebVR API. + * + * @param {mat4} out mat4 frustum matrix will be written into + * @param {Object} fov Object containing the following values: upDegrees, downDegrees, leftDegrees, rightDegrees + * @param {number} near Near bound of the frustum + * @param {number} far Far bound of the frustum + * @returns {mat4} out + */ + function perspectiveFromFieldOfView( + out: I.mat4, + fov: { + upDegrees: number, + downDegrees: number, + leftDegrees: number, + rightDegrees: number + }, + near: number, + far: number + ): I.mat4; + + /** + * Generates a orthogonal projection matrix with the given bounds + * + * @param out mat4 frustum matrix will be written into + * @param left Left bound of the frustum + * @param right Right bound of the frustum + * @param bottom Bottom bound of the frustum + * @param top Top bound of the frustum + * @param near Near bound of the frustum + * @param far Far bound of the frustum + * @returns out + */ + function ortho(out: I.mat4, left: number, right: number, bottom: number, top: number, near: number, far: number): I.mat4; + + /** + * Generates a look-at matrix with the given eye position, focal point, and up axis + * + * @param out mat4 frustum matrix will be written into + * @param eye Position of the viewer + * @param center Point the viewer is looking at + * @param up vec3 pointing up + * @returns out + */ + function lookAt(out: I.mat4, eye: I.vec3 | number[], center: I.vec3 | number[], up: I.vec3 | number[]): I.mat4; + + /** + * Returns a string representation of a mat4 + * + * @param mat matrix to represent as a string + * @returns string representation of the matrix + */ + function str(mat: I.mat4): string; + + /** + * Returns Frobenius norm of a mat4 + * + * @param a the matrix to calculate Frobenius norm of + * @returns Frobenius norm + */ + function frob(a: I.mat4): number; + + /** + * Adds two mat4's + * + * @param {mat4} out the receiving matrix + * @param {mat4} a the first operand + * @param {mat4} b the second operand + * @returns {mat4} out + */ + function add(out: I.mat4, a: I.mat4, b: I.mat4): I.mat4; + + /** + * Subtracts matrix b from matrix a + * + * @param {mat4} out the receiving matrix + * @param {mat4} a the first operand + * @param {mat4} b the second operand + * @returns {mat4} out + */ + function subtract(out: I.mat4, a: I.mat4, b: I.mat4): I.mat4; + + /** + * Subtracts matrix b from matrix a + * + * @param {mat4} out the receiving matrix + * @param {mat4} a the first operand + * @param {mat4} b the second operand + * @returns {mat4} out + */ + function sub(out: I.mat4, a: I.mat4, b: I.mat4): I.mat4; + + /** + * Multiply each element of the matrix by a scalar. + * + * @param {mat4} out the receiving matrix + * @param {mat4} a the matrix to scale + * @param {number} b amount to scale the matrix's elements by + * @returns {mat4} out + */ + function multiplyScalar(out: I.mat4, a: I.mat4, b: number): I.mat4; + + /** + * Adds two mat4's after multiplying each element of the second operand by a scalar value. + * + * @param {mat4} out the receiving vector + * @param {mat4} a the first operand + * @param {mat4} b the second operand + * @param {number} scale the amount to scale b's elements by before adding + * @returns {mat4} out + */ + function multiplyScalarAndAdd(out: I.mat4, a: I.mat4, b: I.mat4, scale: number): I.mat4; + + /** + * Returns whether or not the matrices have exactly the same elements in the same position (when compared with ===) + * + * @param {mat4} a The first matrix. + * @param {mat4} b The second matrix. + * @returns {boolean} True if the matrices are equal, false otherwise. + */ + function exactEquals(a: I.mat4, b: I.mat4): boolean; + + /** + * Returns whether or not the matrices have approximately the same elements in the same position. + * + * @param {mat4} a The first matrix. + * @param {mat4} b The second matrix. + * @returns {boolean} True if the matrices are equal, false otherwise. + */ + function equals(a: I.mat4, b: I.mat4): boolean; + } + + namespace I { + type quat = Float32Array; + } + + /** + * Quaternion + */ + namespace quat { + /** + * Creates a new identity quat + * + * @returns a new quaternion + */ + function create(): I.quat; + + /** + * Creates a new quat initialized with values from an existing quaternion + * + * @param a quaternion to clone + * @returns a new quaternion + * @function + */ + function clone(a: I.quat): I.quat; + + /** + * Creates a new quat initialized with the given values + * + * @param x X component + * @param y Y component + * @param z Z component + * @param w W component + * @returns a new quaternion + * @function + */ + function fromValues(x: number, y: number, z: number, w: number): I.quat; + + /** + * Copy the values from one quat to another + * + * @param out the receiving quaternion + * @param a the source quaternion + * @returns out + * @function + */ + function copy(out: I.quat, a: I.quat): I.quat; + + /** + * Set the components of a quat to the given values + * + * @param out the receiving quaternion + * @param x X component + * @param y Y component + * @param z Z component + * @param w W component + * @returns out + * @function + */ + function set(out: I.quat, x: number, y: number, z: number, w: number): I.quat; + + /** + * Set a quat to the identity quaternion + * + * @param out the receiving quaternion + * @returns out + */ + function identity(out: I.quat): I.quat; + + /** + * Sets a quaternion to represent the shortest rotation from one + * vector to another. + * + * Both vectors are assumed to be unit length. + * + * @param {quat} out the receiving quaternion. + * @param {vec3} a the initial vector + * @param {vec3} b the destination vector + * @returns {quat} out + */ + function rotationTo(out: I.quat, a: I.vec3 | number[], b: I.vec3 | number[]): I.quat; + + /** + * Sets a quaternion to represent the shortest rotation from one + * vector to another. + * + * Both vectors are assumed to be unit length. + * + * @param out the receiving quaternion. + * @param a the initial vector + * @param b the destination vector + * @returns out + */ + function rotationTo(out: I.quat, a: I.vec3 | number[], b: I.vec3 | number[]): I.quat; + + /** + * Sets the specified quaternion with values corresponding to the given + * axes. Each axis is a vec3 and is expected to be unit length and + * perpendicular to all other specified axes. + * + * @param {vec3} view the vector representing the viewing direction + * @param {vec3} right the vector representing the local "right" direction + * @param {vec3} up the vector representing the local "up" direction + * @returns {quat} out + */ + function setAxes(out: I.quat, view: I.vec3 | number[], right: I.vec3 | number[], up: I.vec3 | number[]): I.quat; + + /** + * Sets the specified quaternion with values corresponding to the given + * axes. Each axis is a vec3 and is expected to be unit length and + * perpendicular to all other specified axes. + * + * @param out the receiving quat + * @param view the vector representing the viewing direction + * @param right the vector representing the local "right" direction + * @param up the vector representing the local "up" direction + * @returns out + */ + function setAxes(out: I.quat, view: I.vec3 | number[], right: I.vec3 | number[], up: I.vec3 | number[]): I.quat; + + /** + * Sets a quat from the given angle and rotation axis, + * then returns it. + * + * @param out the receiving quaternion + * @param axis the axis around which to rotate + * @param rad the angle in radians + * @returns out + */ + function setAxisAngle(out: I.quat, axis: I.vec3 | number[], rad: number): I.quat; + + /** + * Gets the rotation axis and angle for a given + * quaternion. If a quaternion is created with + * setAxisAngle, this method will return the same + * values as providied in the original parameter list + * OR functionally equivalent values. + * Example: The quaternion formed by axis [0, 0, 1] and + * angle -90 is the same as the quaternion formed by + * [0, 0, 1] and 270. This method favors the latter. + * @param {vec3} out_axis Vector receiving the axis of rotation + * @param {quat} q Quaternion to be decomposed + * @return {number} Angle, in radians, of the rotation + */ + function getAxisAngle(out_axis: I.vec3 | number[], q: I.quat): number; + + /** + * Adds two quat's + * + * @param out the receiving quaternion + * @param a the first operand + * @param b the second operand + * @returns out + * @function + */ + function add(out: I.quat, a: I.quat, b: I.quat): I.quat; + + /** + * Multiplies two quat's + * + * @param out the receiving quaternion + * @param a the first operand + * @param b the second operand + * @returns out + */ + function multiply(out: I.quat, a: I.quat, b: I.quat): I.quat; + + /** + * Multiplies two quat's + * + * @param out the receiving quaternion + * @param a the first operand + * @param b the second operand + * @returns out + */ + function mul(out: I.quat, a: I.quat, b: I.quat): I.quat; + + /** + * Scales a quat by a scalar number + * + * @param out the receiving vector + * @param a the vector to scale + * @param b amount to scale the vector by + * @returns out + * @function + */ + function scale(out: I.quat, a: I.quat, b: number): I.quat; + + /** + * Calculates the length of a quat + * + * @param a vector to calculate length of + * @returns length of a + * @function + */ + function length(a: I.quat): number; + + /** + * Calculates the length of a quat + * + * @param a vector to calculate length of + * @returns length of a + * @function + */ + function len(a: I.quat): number; + + /** + * Calculates the squared length of a quat + * + * @param a vector to calculate squared length of + * @returns squared length of a + * @function + */ + function squaredLength(a: I.quat): number; + + /** + * Calculates the squared length of a quat + * + * @param a vector to calculate squared length of + * @returns squared length of a + * @function + */ + function sqrLen(a: I.quat): number; + + /** + * Normalize a quat + * + * @param out the receiving quaternion + * @param a quaternion to normalize + * @returns out + * @function + */ + function normalize(out: I.quat, a: I.quat): I.quat; + + /** + * Calculates the dot product of two quat's + * + * @param a the first operand + * @param b the second operand + * @returns dot product of a and b + * @function + */ + function dot(a: I.quat, b: I.quat): number; + + /** + * Performs a linear interpolation between two quat's + * + * @param out the receiving quaternion + * @param a the first operand + * @param b the second operand + * @param t interpolation amount between the two inputs + * @returns out + * @function + */ + function lerp(out: I.quat, a: I.quat, b: I.quat, t: number): I.quat; + + /** + * Performs a spherical linear interpolation between two quat + * + * @param out the receiving quaternion + * @param a the first operand + * @param b the second operand + * @param t interpolation amount between the two inputs + * @returns out + */ + function slerp(out: I.quat, a: I.quat, b: I.quat, t: number): I.quat; + + /** + * Performs a spherical linear interpolation with two control points + * + * @param {quat} out the receiving quaternion + * @param {quat} a the first operand + * @param {quat} b the second operand + * @param {quat} c the third operand + * @param {quat} d the fourth operand + * @param {number} t interpolation amount + * @returns {quat} out + */ + function sqlerp(out: I.quat, a: I.quat, b: I.quat, c: I.quat, d: I.quat, t: number): I.quat; + + /** + * Calculates the inverse of a quat + * + * @param out the receiving quaternion + * @param a quat to calculate inverse of + * @returns out + */ + function invert(out: I.quat, a: I.quat): I.quat; + + /** + * Calculates the conjugate of a quat + * If the quaternion is normalized, this function is faster than quat.inverse and produces the same result. + * + * @param out the receiving quaternion + * @param a quat to calculate conjugate of + * @returns out + */ + function conjugate(out: I.quat, a: I.quat): I.quat; + + /** + * Returns a string representation of a quaternion + * + * @param a quat to represent as a string + * @returns string representation of the quat + */ + function str(a: I.quat): string; + + /** + * Rotates a quaternion by the given angle about the X axis + * + * @param out quat receiving operation result + * @param a quat to rotate + * @param rad angle (in radians) to rotate + * @returns out + */ + function rotateX(out: I.quat, a: I.quat, rad: number): I.quat; + + /** + * Rotates a quaternion by the given angle about the Y axis + * + * @param out quat receiving operation result + * @param a quat to rotate + * @param rad angle (in radians) to rotate + * @returns out + */ + function rotateY(out: I.quat, a: I.quat, rad: number): I.quat; + + /** + * Rotates a quaternion by the given angle about the Z axis + * + * @param out quat receiving operation result + * @param a quat to rotate + * @param rad angle (in radians) to rotate + * @returns out + */ + function rotateZ(out: I.quat, a: I.quat, rad: number): I.quat; + + /** + * Creates a quaternion from the given 3x3 rotation matrix. + * + * NOTE: The resultant quaternion is not normalized, so you should be sure + * to renormalize the quaternion yourself where necessary. + * + * @param out the receiving quaternion + * @param m rotation matrix + * @returns out + * @function + */ + function fromMat3(out: I.quat, m: I.mat3): I.quat; + + /** + * Calculates the W component of a quat from the X, Y, and Z components. + * Assumes that quaternion is 1 unit in length. + * Any existing W component will be ignored. + * + * @param out the receiving quaternion + * @param a quat to calculate W component of + * @returns out + */ + function calculateW(out: I.quat, a: I.quat): I.quat; + + /** + * Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===) + * + * @param {quat} a The first vector. + * @param {quat} b The second vector. + * @returns {boolean} True if the quaternions are equal, false otherwise. + */ + function exactEquals(a: I.quat, b: I.quat): boolean; + + /** + * Returns whether or not the quaternions have approximately the same elements in the same position. + * + * @param {quat} a The first vector. + * @param {quat} b The second vector. + * @returns {boolean} True if the quaternions are equal, false otherwise. + */ + function equals(a: I.quat, b: I.quat): boolean; + } + } +} diff --git a/types/adone/glosses/math/simd.d.ts b/types/adone/glosses/math/simd.d.ts new file mode 100644 index 0000000000..a90d761036 --- /dev/null +++ b/types/adone/glosses/math/simd.d.ts @@ -0,0 +1,2053 @@ +// based on https://github.com/ConquestArrow/simd.d.ts + +declare namespace adone.math { + /** + * ES7 (proposed) SIMD numeric type polyfill + */ + namespace simd { + namespace I { + type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray + | Int16Array | Uint16Array + | Int32Array | Uint32Array + | Float32Array | Float64Array; + + /** + * 128-bits divided into 4 lanes storing single precision floating point values. + */ + interface Float32x4 { + constructor: Float32x4Constructor; + valueOf(): Float32x4; + toLocaleString(): string; + toString(): string; + + /** + * The initial value of the @@toStringTag property is the String value "SIMD.Float32x4". + */ + [Symbol.toStringTag]: string; + [Symbol.toPrimitive](hint: "string"): string; + [Symbol.toPrimitive](hint: "number"): number; + [Symbol.toPrimitive](hint: "default"): Float32x4; + [Symbol.toPrimitive](hint: string): any; + } + + interface Float32x4Constructor { + /** + * SIMD.Float32x4 constructor + * @param s0 A 32bit float specifying the value of the lane. + * @param s1 A 32bit float specifying the value of the lane. + * @param s2 A 32bit float specifying the value of the lane. + * @param s3 A 32bit float specifying the value of the lane. + * @return SIMD.Float32x4 object + */ + (s0?: number, s1?: number, s2?: number, s3?: number): Float32x4; + + prototype: Float32x4; + + /** + * Returns the value of the given lane. + * @param simd An instance of a corresponding SIMD type. + * @param lane An index number for which lane to extract. + * @return The value of the extracted lane. + */ + extractLane(simd: Float32x4, lane: number): number; + + /** + * Returns a new instance with the lane values swizzled. + * @param a + * @param l1 + * @param l2 + * @param l3 + * @param l4 + */ + swizzle(a: Float32x4, l1: number, l2: number, l3: number, l4: number): Float32x4; + + /** + * Returns a new instance with the lane values shuffled. + * @param a + * @param b + * @param l1 + * @param l2 + * @param l3 + * @param l4 + */ + shuffle(a: Float32x4, b: Float32x4, l1: number, l2: number, l3: number, l4: number): Float32x4; + + /** + * Returns a new instance if the parameter is a valid SIMD data type and the same as Float32x4. Throws a TypeError otherwise. + * @param a + */ + check(a: Float32x4): Float32x4; + + /** + * Creates a new SIMD.Float32x4 data type with all lanes set to a given value. + * @param n + */ + splat(n: number): Float32x4; + + /** + * Returns a new instance with the given lane value replaced. + * @param simd An instance of a corresponding SIMD type. + * @param lane + * @param value A new value to be used for the lane. + * @return A new SIMD data type with the given lane value replaced. + */ + replaceLane(simd: Float32x4, lane: number, value: number): Float32x4; + + /** + * Returns a new instance with the lane values being a mix of the lanes depending on the selector mask. + * @param selector the selector mask. + * @param a If the selector mask lane is `true`, pick the corresponding lane value from here. + * @param b If the selector mask lane is `false`, pick the corresponding lane value from here. + */ + select(selector: Bool32x4, a: Float32x4, b: Float32x4): Float32x4; + + equal(a: Float32x4, b: Float32x4): Bool32x4; + + notEqual(a: Float32x4, b: Float32x4): Bool32x4; + + lessThan(a: Float32x4, b: Float32x4): Bool32x4; + + lessThanOrEqual(a: Float32x4, b: Float32x4): Bool32x4; + + greaterThan(a: Float32x4, b: Float32x4): Bool32x4; + + greaterThanOrEqual(a: Float32x4, b: Float32x4): Bool32x4; + + add(a: Float32x4, b: Float32x4): Float32x4; + + sub(a: Float32x4, b: Float32x4): Float32x4; + + mul(a: Float32x4, b: Float32x4): Float32x4; + + div(a: Float32x4, b: Float32x4): Float32x4; + + /** + * + * @param a + */ + neg(a: Float32x4): Float32x4; + + /** + * + * @param a + */ + abs(a: Float32x4): Float32x4; + + min(a: Float32x4, b: Float32x4): Float32x4; + + max(a: Float32x4, b: Float32x4): Float32x4; + + minNum(a: Float32x4, b: Float32x4): Float32x4; + + maxNum(a: Float32x4, b: Float32x4): Float32x4; + + reciprocalApproximation(a: Float32x4, b: Float32x4): Float32x4; + + /** + * + * @param a + */ + reciprocalSqrtApproximation(a: Float32x4): Float32x4; + + /** + * + * @param a + */ + sqrt(a: Float32x4): Float32x4; + + /** + * Returns a new instance with all lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load(tarray: TypedArray, index: number): Float32x4; + + /** + * Returns a new instance with 1 lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load1(tarray: TypedArray, index: number): Float32x4; + + /** + * Returns a new instance with 2 lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load2(tarray: TypedArray, index: number): Float32x4; + + /** + * Returns a new instance with 3 lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load3(tarray: TypedArray, index: number): Float32x4; + + /** + * Store all values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store(tarray: TypedArray, index: number, value: Float32x4): Float32x4; + + /** + * Store 1 values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store1(tarray: TypedArray, index: number, value: Float32x4): Float32x4; + + /** + * Store 2 values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store2(tarray: TypedArray, index: number, value: Float32x4): Float32x4; + + /** + * Store 3 values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store3(tarray: Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array, index: number, value: Float32x4): Float32x4; + + /** + * Creates a new SIMD data type with a float conversion from a Int32x4. + * @param value An Int32x4 SIMD type to convert from. + */ + fromInt32x4(value: Int32x4): Float32x4; + + /** + * Creates a new SIMD data type with a float conversion from a Uint32x4. + * @param value An Uint32x4 SIMD type to convert from. + */ + fromUint32x4(value: Uint32x4): Float32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int32x4. + * @param value A Int32x4 SIMD type to convert from (bitwise). + */ + fromInt32x4Bits(value: Int32x4): Float32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int16x8. + * @param value A Int16x8 SIMD type to convert from (bitwise). + */ + fromInt16x8Bits(value: Int16x8): Float32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int8x16. + * @param value A Int8x16 SIMD type to convert from (bitwise). + */ + fromInt8x16Bits(value: Int8x16): Float32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint32x4. + * @param value A Uint32x4 SIMD type to convert from (bitwise). + */ + fromUint32x4Bits(value: Uint32x4): Float32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint16x8. + * @param value A Uint16x8 SIMD type to convert from (bitwise). + */ + fromUint16x8Bits(value: Uint16x8): Float32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint8x16. + * @param value A Uint8x16 SIMD type to convert from (bitwise). + */ + fromUint8x16Bits(value: Uint8x16): Float32x4; + } + + /** + * 128-bits divided into 4 lanes storing 32-bit signed integer values. + */ + interface Int32x4 { + constructor: Int32x4Constructor; + valueOf(): Int32x4; + toLocaleString(): string; + toString(): string; + + /** + * The initial value of the @@toStringTag property is the String value "SIMD.Int32x4". + */ + [Symbol.toStringTag]: string; + [Symbol.toPrimitive](hint: "string"): string; + [Symbol.toPrimitive](hint: "number"): number; + [Symbol.toPrimitive](hint: "default"): Int32x4; + [Symbol.toPrimitive](hint: string): any; + } + + interface Int32x4Constructor { + /** + * SIMD.Int32x4 constructor + * @param s0 A 32bit int specifying the value of the lane. + * @param s1 A 32bit int specifying the value of the lane. + * @param s2 A 32bit int specifying the value of the lane. + * @param s3 A 32bit int specifying the value of the lane. + * @return SIMD.Int32x4 object + */ + (s0?: number, s1?: number, s2?: number, s3?: number): Int32x4; + + prototype: Int32x4; + + /** + * Returns the value of the given lane. + * @param simd An instance of a corresponding SIMD type. + * @param lane An index number for which lane to extract. + * @return The value of the extracted lane. + */ + extractLane(simd: Int32x4, lane: number): number; + + /** + * Returns a new instance with the lane values swizzled. + * @param a + * @param l1 + * @param l2 + * @param l3 + * @param l4 + */ + swizzle(a: Int32x4, l1: number, l2: number, l3: number, l4: number): Int32x4; + + /** + * Returns a new instance with the lane values shuffled. + * @param a + * @param b + * @param l1 + * @param l2 + * @param l3 + * @param l4 + */ + shuffle(a: Int32x4, b: Int32x4, l1: number, l2: number, l3: number, l4: number): Int32x4; + + /** + * Returns a new instance if the parameter is a valid SIMD data type and the same as Int32x4. Throws a TypeError otherwise. + * @param a + */ + check(a: Int32x4): Int32x4; + + /** + * Creates a new SIMD.Int32x4 data type with all lanes set to a given value. + * @param n + */ + splat(n: number): Int32x4; + + /** + * Returns a new instance with the given lane value replaced. + * @param simd An instance of a corresponding SIMD type. + * @param lane + * @param value A new value to be used for the lane. + * @return A new SIMD data type with the given lane value replaced. + */ + replaceLane(simd: Int32x4, lane: number, value: number): Int32x4; + + /** + * Returns a new instance with the lane values being a mix of the lanes depending on the selector mask. + * @param selector the selector mask. + * @param a If the selector mask lane is `true`, pick the corresponding lane value from here. + * @param b If the selector mask lane is `false`, pick the corresponding lane value from here. + */ + select(selector: Bool32x4, a: Int32x4, b: Int32x4): Int32x4; + + equal(a: Int32x4, b: Int32x4): Bool32x4; + + notEqual(a: Int32x4, b: Int32x4): Bool32x4; + + lessThan(a: Int32x4, b: Int32x4): Bool32x4; + + lessThanOrEqual(a: Int32x4, b: Int32x4): Bool32x4; + + greaterThan(a: Int32x4, b: Int32x4): Bool32x4; + + greaterThanOrEqual(a: Int32x4, b: Int32x4): Bool32x4; + + and(a: Int32x4, b: Int32x4): Int32x4; + + or(a: Int32x4, b: Int32x4): Int32x4; + + xor(a: Int32x4, b: Int32x4): Int32x4; + + not(a: Int32x4, b: Int32x4): Int32x4; + + add(a: Int32x4, b: Int32x4): Int32x4; + + sub(a: Int32x4, b: Int32x4): Int32x4; + + mul(a: Int32x4, b: Int32x4): Int32x4; + + /** + * + * @param a + */ + neg(a: Int32x4): Int32x4; + + /** + * Returns a new instance with the lane values shifted left by a given bit count (`a << bits`). + * @param a An instance of a SIMD type. + * @param bits Bit count to shift by. + * @return A new corresponding SIMD data type with the lane values shifted left by a given bit count (`a << bits`). + */ + shiftLeftByScalar(a: Int32x4, bits: number): Int32x4; + + /** + * Returns a new instance with the lane values shifted right by a given bit count (`a >> bits` or `a >>> bits`). + * @param a An instance of a SIMD type. + * @param bits Bit count to shift by. + * @return A new corresponding SIMD data type with the lane values shifted right by a given bit count (`a >> bits` or `a >>> bits`). + */ + shiftRightByScalar(a: Int32x4, bits: number): Int32x4; + + /** + * Returns a new instance with all lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load(tarray: TypedArray, index: number): Int32x4; + + /** + * Returns a new instance with 1 lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load1(tarray: TypedArray, index: number): Int32x4; + + /** + * Returns a new instance with 2 lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load2(tarray: TypedArray, index: number): Int32x4; + + /** + * Returns a new instance with 3 lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load3(tarray: TypedArray, index: number): Int32x4; + + /** + * Store all values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store(tarray: TypedArray, index: number, value: Int32x4): Int32x4; + + /** + * Store 1 values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store1(tarray: TypedArray, index: number, value: Int32x4): Int32x4; + + /** + * Store 2 values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store2(tarray: TypedArray, index: number, value: Int32x4): Int32x4; + + /** + * Store 3 values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store3(tarray: TypedArray, index: number, value: Int32x4): Int32x4; + + /** + * Creates a new SIMD data type with a float conversion from a Float32x4. + * @param value An Float32x4 SIMD type to convert from. + */ + fromFloat32x4(value: Float32x4): Int32x4; + + /** + * Creates a new SIMD data type with a float conversion from a Uint32x4. + * @param value An Uint32x4 SIMD type to convert from. + */ + fromUint32x4(value: Uint32x4): Int32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Float32x4. + * @param value A Float32x4 SIMD type to convert from (bitwise). + */ + fromFloat32x4Bits(value: Float32x4): Int32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int16x8. + * @param value A Int16x8 SIMD type to convert from (bitwise). + */ + fromInt16x8Bits(value: Int16x8): Int32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int8x16. + * @param value A Int8x16 SIMD type to convert from (bitwise). + */ + fromInt8x16Bits(value: Int8x16): Int32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint32x4. + * @param value A Uint32x4 SIMD type to convert from (bitwise). + */ + fromUint32x4Bits(value: Uint32x4): Int32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint16x8. + * @param value A Uint16x8 SIMD type to convert from (bitwise). + */ + fromUint16x8Bits(value: Uint16x8): Int32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint8x16. + * @param value A Uint8x16 SIMD type to convert from (bitwise). + */ + fromUint8x16Bits(value: Uint8x16): Int32x4; + } + + /** + * 128-bits divided into 8 lanes storing 16-bit signed integer values. + */ + interface Int16x8 { + constructor: Int16x8Constructor; + valueOf(): Int16x8; + toLocaleString(): string; + toString(): string; + + /** + * The initial value of the @@toStringTag property is the String value "SIMD.Int16x8". + */ + [Symbol.toStringTag]: string; + [Symbol.toPrimitive](hint: "string"): string; + [Symbol.toPrimitive](hint: "number"): number; + [Symbol.toPrimitive](hint: "default"): Int16x8; + [Symbol.toPrimitive](hint: string): any; + } + + interface Int16x8Constructor { + /** + * SIMD.Int16x8 constructor + * @param s0 A 16bit int specifying the value of the lane. + * @param s1 A 16bit int specifying the value of the lane. + * @param s2 A 16bit int specifying the value of the lane. + * @param s3 A 16bit int specifying the value of the lane. + * @param s4 A 16bit int specifying the value of the lane. + * @param s5 A 16bit int specifying the value of the lane. + * @param s6 A 16bit int specifying the value of the lane. + * @param s7 A 16bit int specifying the value of the lane. + * @return SIMD.Int16x8 object + */ + (s0?: number, s1?: number, s2?: number, s3?: number, s4?: number, s5?: number, s6?: number, s7?: number): Int16x8; + + prototype: Int16x8; + + /** + * Returns the value of the given lane. + * @param simd An instance of a corresponding SIMD type. + * @param lane An index number for which lane to extract. + * @return The value of the extracted lane. + */ + extractLane(simd: Int16x8, lane: number): number; + + /** + * Returns a new instance with the lane values swizzled. + * @param a + * @param l1 + * @param l2 + * @param l3 + * @param l4 + * @param l5 + * @param l6 + * @param l7 + * @param l8 + */ + swizzle(a: Int16x8, l1: number, l2: number, l3: number, l4: number, l5: number, l6: number, l7: number, l8: number): Int16x8; + + /** + * Returns a new instance with the lane values shuffled. + * @param a + * @param b + * @param l1 + * @param l2 + * @param l3 + * @param l4 + * @param l5 + * @param l6 + * @param l7 + * @param l8 + */ + shuffle(a: Int16x8, b: Int16x8, l1: number, l2: number, l3: number, l4: number, l5: number, l6: number, l7: number, l8: number): Int16x8; + + /** + * Returns a new instance if the parameter is a valid SIMD data type and the same as Int16x8. Throws a TypeError otherwise. + * @param a + */ + check(a: Int16x8): Int16x8; + + /** + * Creates a new SIMD.Int16x8 data type with all lanes set to a given value. + * @param n + */ + splat(n: number): Int16x8; + + /** + * Returns a new instance with the given lane value replaced. + * @param simd An instance of a corresponding SIMD type. + * @param lane + * @param value A new value to be used for the lane. + * @return A new SIMD data type with the given lane value replaced. + */ + replaceLane(simd: Int16x8, lane: number, value: number): Int16x8; + + /** + * Returns a new instance with the lane values being a mix of the lanes depending on the selector mask. + * @param selector the selector mask. + * @param a If the selector mask lane is `true`, pick the corresponding lane value from here. + * @param b If the selector mask lane is `false`, pick the corresponding lane value from here. + */ + select(selector: Bool16x8, a: Int16x8, b: Int16x8): Int16x8; + + equal(a: Int16x8, b: Int16x8): Bool16x8; + + notEqual(a: Int16x8, b: Int16x8): Bool16x8; + + lessThan(a: Int16x8, b: Int16x8): Bool16x8; + + lessThanOrEqual(a: Int16x8, b: Int16x8): Bool16x8; + + greaterThan(a: Int16x8, b: Int16x8): Bool16x8; + + greaterThanOrEqual(a: Int16x8, b: Int16x8): Bool16x8; + + and(a: Int16x8, b: Int16x8): Int16x8; + + or(a: Int16x8, b: Int16x8): Int16x8; + + xor(a: Int16x8, b: Int16x8): Int16x8; + + not(a: Int16x8, b: Int16x8): Int16x8; + + add(a: Int16x8, b: Int16x8): Int16x8; + + sub(a: Int16x8, b: Int16x8): Int16x8; + + mul(a: Int16x8, b: Int16x8): Int16x8; + + /** + * + * @param a + */ + neg(a: Int16x8): Int16x8; + + /** + * Returns a new instance with the lane values shifted left by a given bit count (`a << bits`). + * @param a An instance of a SIMD type. + * @param bits Bit count to shift by. + * @return A new corresponding SIMD data type with the lane values shifted left by a given bit count (`a << bits`). + */ + shiftLeftByScalar(a: Int16x8, bits: number): Int16x8; + + /** + * Returns a new instance with the lane values shifted right by a given bit count (`a >> bits` or `a >>> bits`). + * @param a An instance of a SIMD type. + * @param bits Bit count to shift by. + * @return A new corresponding SIMD data type with the lane values shifted right by a given bit count (`a >> bits` or `a >>> bits`). + */ + shiftRightByScalar(a: Int16x8, bits: number): Int16x8; + + addSaturate(a: Int16x8, b: Int16x8): Int16x8; + + subSaturate(a: Int16x8, b: Int16x8): Int16x8; + + /** + * Returns a new instance with all lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load(tarray: TypedArray, index: number): Int16x8; + + /** + * Store all values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store(tarray: TypedArray, index: number, value: Int16x8): Int16x8; + + /** + * Creates a new SIMD data type with a float conversion from a Uint16x8. + * @param value An Uint16x8 SIMD type to convert from. + */ + fromUint16x8(value: Uint16x8): Int16x8; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Float32x4. + * @param value A Float32x4 SIMD type to convert from (bitwise). + */ + fromFloat32x4Bits(value: Float32x4): Int16x8; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int32x4. + * @param value A Int32x4 SIMD type to convert from (bitwise). + */ + fromInt32x4Bits(value: Int32x4): Int16x8; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int8x16. + * @param value A Int8x16 SIMD type to convert from (bitwise). + */ + fromInt8x16Bits(value: Int8x16): Int16x8; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint32x4. + * @param value A Uint32x4 SIMD type to convert from (bitwise). + */ + fromUint32x4Bits(value: Uint32x4): Int16x8; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint16x8. + * @param value A Uint16x8 SIMD type to convert from (bitwise). + */ + fromUint16x8Bits(value: Uint16x8): Int16x8; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint8x16. + * @param value A Uint8x16 SIMD type to convert from (bitwise). + */ + fromUint8x16Bits(value: Uint8x16): Int16x8; + } + + /** + * 128-bits divided into 16 lanes storing 8-bit signed integer values. + */ + interface Int8x16 { + constructor: Int8x16Constructor; + valueOf(): Int8x16; + toLocaleString(): string; + toString(): string; + + /** + * The initial value of the @@toStringTag property is the String value "SIMD.Int8x16". + */ + [Symbol.toStringTag]: string; + [Symbol.toPrimitive](hint: "string"): string; + [Symbol.toPrimitive](hint: "number"): number; + [Symbol.toPrimitive](hint: "default"): Int8x16; + [Symbol.toPrimitive](hint: string): any; + } + + interface Int8x16Constructor { + /** + * SIMD.Int8x16 constructor + * @param s0 A 8bit int specifying the value of the lane. + * @param s1 A 8bit int specifying the value of the lane. + * @param s2 A 8bit int specifying the value of the lane. + * @param s3 A 8bit int specifying the value of the lane. + * @param s4 A 8bit int specifying the value of the lane. + * @param s5 A 8bit int specifying the value of the lane. + * @param s6 A 8bit int specifying the value of the lane. + * @param s7 A 8bit int specifying the value of the lane. + * @param s8 A 8bit int specifying the value of the lane. + * @param s9 A 8bit int specifying the value of the lane. + * @param s10 A 8bit int specifying the value of the lane. + * @param s11 A 8bit int specifying the value of the lane. + * @param s12 A 8bit int specifying the value of the lane. + * @param s13 A 8bit int specifying the value of the lane. + * @param s14 A 8bit int specifying the value of the lane. + * @param s15 A 8bit int specifying the value of the lane. + * @return SIMD.Int8x16 object + */ + ( + s0?: number, + s1?: number, + s2?: number, + s3?: number, + s4?: number, + s5?: number, + s6?: number, + s7?: number, + s8?: number, + s9?: number, + s10?: number, + s11?: number, + s12?: number, + s13?: number, + s14?: number, + s15?: number + ): Int8x16; + + prototype: Int8x16; + + /** + * Returns the value of the given lane. + * @param simd An instance of a corresponding SIMD type. + * @param lane An index number for which lane to extract. + * @return The value of the extracted lane. + */ + extractLane(simd: Int8x16, lane: number): number; + + /** + * Returns a new instance with the lane values swizzled. + * @param a + * @param l1 + * @param l2 + * @param l3 + * @param l4 + * @param l5 + * @param l6 + * @param l7 + * @param l8 + * @param l9 + * @param l10 + * @param l11 + * @param l12 + * @param l13 + * @param l14 + * @param l15 + * @param l16 + */ + swizzle( + a: Int8x16, + l1: number, + l2: number, + l3: number, + l4: number, + l5: number, + l6: number, + l7: number, + l8: number, + l9: number, + l10: number, + l11: number, + l12: number, + l13: number, + l14: number, + l15: number, + l16: number + ): Int8x16; + + /** + * Returns a new instance with the lane values shuffled. + * @param a + * @param b + * @param l1 + * @param l2 + * @param l3 + * @param l4 + * @param l5 + * @param l6 + * @param l7 + * @param l8 + * @param l9 + * @param l10 + * @param l11 + * @param l12 + * @param l13 + * @param l14 + * @param l15 + * @param l16 + */ + shuffle( + a: Int8x16, + b: Int8x16, + l1: number, + l2: number, + l3: number, + l4: number, + l5: number, + l6: number, + l7: number, + l8: number, + l9: number, + l10: number, + l11: number, + l12: number, + l13: number, + l14: number, + l15: number, + l16: number + ): Int8x16; + + /** + * Returns a new instance if the parameter is a valid SIMD data type and the same as Int8x16. Throws a TypeError otherwise. + * @param a + */ + check(a: Int8x16): Int8x16; + + /** + * Creates a new SIMD.Int8x16 data type with all lanes set to a given value. + * @param n + */ + splat(n: number): Int8x16; + + /** + * Returns a new instance with the given lane value replaced. + * @param simd An instance of a corresponding SIMD type. + * @param lane + * @param value A new value to be used for the lane. + * @return A new SIMD data type with the given lane value replaced. + */ + replaceLane(simd: Int8x16, lane: number, value: number): Int8x16; + + /** + * Returns a new instance with the lane values being a mix of the lanes depending on the selector mask. + * @param selector the selector mask. + * @param a If the selector mask lane is `true`, pick the corresponding lane value from here. + * @param b If the selector mask lane is `false`, pick the corresponding lane value from here. + */ + select(selector: Bool8x16, a: Int8x16, b: Int8x16): Int8x16; + + equal(a: Int8x16, b: Int8x16): Bool8x16; + + notEqual(a: Int8x16, b: Int8x16): Bool8x16; + + lessThan(a: Int8x16, b: Int8x16): Bool8x16; + + lessThanOrEqual(a: Int8x16, b: Int8x16): Bool8x16; + + greaterThan(a: Int8x16, b: Int8x16): Bool8x16; + + greaterThanOrEqual(a: Int8x16, b: Int8x16): Bool8x16; + + and(a: Int8x16, b: Int8x16): Int8x16; + + or(a: Int8x16, b: Int8x16): Int8x16; + + xor(a: Int8x16, b: Int8x16): Int8x16; + + not(a: Int8x16, b: Int8x16): Int8x16; + + add(a: Int8x16, b: Int8x16): Int8x16; + + sub(a: Int8x16, b: Int8x16): Int8x16; + + mul(a: Int8x16, b: Int8x16): Int8x16; + + /** + * + * @param a + */ + neg(a: Int8x16): Int8x16; + + /** + * Returns a new instance with the lane values shifted left by a given bit count (`a << bits`). + * @param a An instance of a SIMD type. + * @param bits Bit count to shift by. + * @return A new corresponding SIMD data type with the lane values shifted left by a given bit count (`a << bits`). + */ + shiftLeftByScalar(a: Int8x16, bits: number): Int8x16; + + /** + * Returns a new instance with the lane values shifted right by a given bit count (`a >> bits` or `a >>> bits`). + * @param a An instance of a SIMD type. + * @param bits Bit count to shift by. + * @return A new corresponding SIMD data type with the lane values shifted right by a given bit count (`a >> bits` or `a >>> bits`). + */ + shiftRightByScalar(a: Int8x16, bits: number): Int8x16; + + addSaturate(a: Int8x16, b: Int8x16): Int8x16; + + subSaturate(a: Int8x16, b: Int8x16): Int8x16; + + /** + * Returns a new instance with all lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load(tarray: TypedArray, index: number): Int8x16; + + /** + * Store all values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store(tarray: TypedArray, index: number, value: Int8x16): Int8x16; + + /** + * Creates a new SIMD data type with a float conversion from a Uint8x16. + * @param value An Uint8x16 SIMD type to convert from. + */ + fromUint8x16(value: Uint8x16): Int8x16; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Float32x4. + * @param value A Float32x4 SIMD type to convert from (bitwise). + */ + fromFloat32x4Bits(value: Float32x4): Int8x16; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int32x4. + * @param value A Int32x4 SIMD type to convert from (bitwise). + */ + fromInt32x4Bits(value: Int32x4): Int8x16; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int16x8. + * @param value A Int16x8 SIMD type to convert from (bitwise). + */ + fromInt16x8Bits(value: Int16x8): Int8x16; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint32x4. + * @param value A Uint32x4 SIMD type to convert from (bitwise). + */ + fromUint32x4Bits(value: Uint32x4): Int8x16; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint16x8. + * @param value A Uint16x8 SIMD type to convert from (bitwise). + */ + fromUint16x8Bits(value: Uint16x8): Int8x16; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint8x16. + * @param value A Uint8x16 SIMD type to convert from (bitwise). + */ + fromUint8x16Bits(value: Uint8x16): Int8x16; + } + + /** + * 128-bits divided into 4 lanes storing 32-bit unsigned integer values. + */ + interface Uint32x4 { + constructor: Uint32x4Constructor; + valueOf(): Uint32x4; + toLocaleString(): string; + toString(): string; + + /** + * The initial value of the @@toStringTag property is the String value "SIMD.Uint32x4". + */ + [Symbol.toStringTag]: string; + [Symbol.toPrimitive](hint: "string"): string; + [Symbol.toPrimitive](hint: "number"): number; + [Symbol.toPrimitive](hint: "default"): Uint32x4; + [Symbol.toPrimitive](hint: string): any; + } + + interface Uint32x4Constructor { + /** + * SIMD.Uint32x4 constructor + * @param s0 A 32bit uint specifying the value of the lane. + * @param s1 A 32bit uint specifying the value of the lane. + * @param s2 A 32bit uint specifying the value of the lane. + * @param s3 A 32bit uint specifying the value of the lane. + * @return SIMD.Uint32x4 object + */ + (s0?: number, s1?: number, s2?: number, s3?: number): Uint32x4; + + prototype: Uint32x4; + + /** + * Returns the value of the given lane. + * @param simd An instance of a corresponding SIMD type. + * @param lane An index number for which lane to extract. + * @return The value of the extracted lane. + */ + extractLane(simd: Uint32x4, lane: number): number; + + /** + * Returns a new instance with the lane values swizzled. + * @param a + * @param l1 + * @param l2 + * @param l3 + * @param l4 + */ + swizzle(a: Uint32x4, l1: number, l2: number, l3: number, l4: number): Uint32x4; + + /** + * Returns a new instance with the lane values shuffled. + * @param a + * @param b + * @param l1 + * @param l2 + * @param l3 + * @param l4 + */ + shuffle(a: Uint32x4, b: Uint32x4, l1: number, l2: number, l3: number, l4: number): Uint32x4; + + /** + * Returns a new instance if the parameter is a valid SIMD data type and the same as Uint32x4. Throws a TypeError otherwise. + * @param a + */ + check(a: Uint32x4): Uint32x4; + + /** + * Creates a new SIMD.Uint32x4 data type with all lanes set to a given value. + * @param n + */ + splat(n: number): Uint32x4; + + /** + * Returns a new instance with the given lane value replaced. + * @param simd An instance of a corresponding SIMD type. + * @param lane + * @param value A new value to be used for the lane. + * @return A new SIMD data type with the given lane value replaced. + */ + replaceLane(simd: Uint32x4, lane: number, value: number): Uint32x4; + + /** + * Returns a new instance with the lane values being a mix of the lanes depending on the selector mask. + * @param selector the selector mask. + * @param a If the selector mask lane is `true`, pick the corresponding lane value from here. + * @param b If the selector mask lane is `false`, pick the corresponding lane value from here. + */ + select(selector: Bool32x4, a: Uint32x4, b: Uint32x4): Uint32x4; + + equal(a: Uint32x4, b: Uint32x4): Bool32x4; + + notEqual(a: Uint32x4, b: Uint32x4): Bool32x4; + + lessThan(a: Uint32x4, b: Uint32x4): Bool32x4; + + lessThanOrEqual(a: Uint32x4, b: Uint32x4): Bool32x4; + + greaterThan(a: Uint32x4, b: Uint32x4): Bool32x4; + + greaterThanOrEqual(a: Uint32x4, b: Uint32x4): Bool32x4; + + and(a: Uint32x4, b: Uint32x4): Uint32x4; + + or(a: Uint32x4, b: Uint32x4): Uint32x4; + + xor(a: Uint32x4, b: Uint32x4): Uint32x4; + + not(a: Uint32x4, b: Uint32x4): Uint32x4; + + add(a: Uint32x4, b: Uint32x4): Uint32x4; + + sub(a: Uint32x4, b: Uint32x4): Uint32x4; + + mul(a: Uint32x4, b: Uint32x4): Uint32x4; + + /** + * Returns a new instance with the lane values shifted left by a given bit count (`a << bits`). + * @param a An instance of a SIMD type. + * @param bits Bit count to shift by. + * @return A new corresponding SIMD data type with the lane values shifted left by a given bit count (`a << bits`). + */ + shiftLeftByScalar(a: Uint32x4, bits: number): Uint32x4; + + /** + * Returns a new instance with the lane values shifted right by a given bit count (`a >> bits` or `a >>> bits`). + * @param a An instance of a SIMD type. + * @param bits Bit count to shift by. + * @return A new corresponding SIMD data type with the lane values shifted right by a given bit count (`a >> bits` or `a >>> bits`). + */ + shiftRightByScalar(a: Uint32x4, bits: number): Uint32x4; + + /** + * Returns a new instance with all lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load(tarray: TypedArray, index: number): Uint32x4; + + /** + * Returns a new instance with 1 lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load1(tarray: TypedArray, index: number): Uint32x4; + + /** + * Returns a new instance with 2 lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load2(tarray: TypedArray, index: number): Uint32x4; + + /** + * Returns a new instance with 3 lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load3(tarray: TypedArray, index: number): Uint32x4; + + /** + * Store all values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store(tarray: TypedArray, index: number, value: Uint32x4): Uint32x4; + + /** + * Store 1 values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store1(tarray: TypedArray, index: number, value: Uint32x4): Uint32x4; + + /** + * Store 2 values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store2(tarray: TypedArray, index: number, value: Uint32x4): Uint32x4; + + /** + * Store 3 values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store3(tarray: TypedArray, index: number, value: Uint32x4): Uint32x4; + + /** + * Creates a new SIMD data type with a float conversion from a Float32x4. + * @param value An Float32x4 SIMD type to convert from. + */ + fromFloat32x4(value: Float32x4): Uint32x4; + + /** + * Creates a new SIMD data type with a float conversion from a Int32x4. + * @param value An Int32x4 SIMD type to convert from. + */ + fromInt32x4(value: Int32x4): Uint32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Float32x4. + * @param value A Float32x4 SIMD type to convert from (bitwise). + */ + fromFloat32x4Bits(value: Float32x4): Uint32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int32x4. + * @param value A Int32x4 SIMD type to convert from (bitwise). + */ + fromInt32x4Bits(value: Int32x4): Uint32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int16x8. + * @param value A Int16x8 SIMD type to convert from (bitwise). + */ + fromInt16x8Bits(value: Int16x8): Uint32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int8x16. + * @param value A Int8x16 SIMD type to convert from (bitwise). + */ + fromInt8x16Bits(value: Int8x16): Uint32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint16x8. + * @param value A Uint16x8 SIMD type to convert from (bitwise). + */ + fromUint16x8Bits(value: Uint16x8): Uint32x4; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint8x16. + * @param value A Uint8x16 SIMD type to convert from (bitwise). + */ + fromUint8x16Bits(value: Uint8x16): Uint32x4; + } + + /** + * 128-bits divided into 8 lanes storing 16-bit unsigned integer values. + */ + interface Uint16x8 { + constructor: Uint16x8Constructor; + valueOf(): Uint16x8; + toLocaleString(): string; + toString(): string; + + /** + * The initial value of the @@toStringTag property is the String value "SIMD.Uint16x8". + */ + [Symbol.toStringTag]: string; + [Symbol.toPrimitive](hint: "string"): string; + [Symbol.toPrimitive](hint: "number"): number; + [Symbol.toPrimitive](hint: "default"): Uint16x8; + [Symbol.toPrimitive](hint: string): any; + } + + interface Uint16x8Constructor { + /** + * SIMD.Uint16x8 constructor + * @param s0 A 16bit uint specifying the value of the lane. + * @param s1 A 16bit uint specifying the value of the lane. + * @param s2 A 16bit uint specifying the value of the lane. + * @param s3 A 16bit uint specifying the value of the lane. + * @param s4 A 16bit uint specifying the value of the lane. + * @param s5 A 16bit uint specifying the value of the lane. + * @param s6 A 16bit uint specifying the value of the lane. + * @param s7 A 16bit uint specifying the value of the lane. + * @return SIMD.Uint16x8 object + */ + (s0?: number, s1?: number, s2?: number, s3?: number, s4?: number, s5?: number, s6?: number, s7?: number): Uint16x8; + + prototype: Uint16x8; + + /** + * Returns the value of the given lane. + * @param simd An instance of a corresponding SIMD type. + * @param lane An index number for which lane to extract. + * @return The value of the extracted lane. + */ + extractLane(simd: Uint16x8, lane: number): number; + + /** + * Returns a new instance with the lane values swizzled. + * @param a + * @param l1 + * @param l2 + * @param l3 + * @param l4 + * @param l5 + * @param l6 + * @param l7 + * @param l8 + */ + swizzle(a: Uint16x8, l1: number, l2: number, l3: number, l4: number, l5: number, l6: number, l7: number, l8: number): Uint16x8; + + /** + * Returns a new instance with the lane values shuffled. + * @param a + * @param b + * @param l1 + * @param l2 + * @param l3 + * @param l4 + * @param l5 + * @param l6 + * @param l7 + * @param l8 + */ + shuffle(a: Uint16x8, b: Uint16x8, l1: number, l2: number, l3: number, l4: number, l5: number, l6: number, l7: number, l8: number): Uint16x8; + + /** + * Returns a new instance if the parameter is a valid SIMD data type and the same as Uint16x8. Throws a TypeError otherwise. + * @param a + */ + check(a: Uint16x8): Uint16x8; + + /** + * Creates a new SIMD.Uint16x8 data type with all lanes set to a given value. + * @param n + */ + splat(n: number): Uint16x8; + + /** + * Returns a new instance with the given lane value replaced. + * @param simd An instance of a corresponding SIMD type. + * @param lane + * @param value A new value to be used for the lane. + * @return A new SIMD data type with the given lane value replaced. + */ + replaceLane(simd: Uint16x8, lane: number, value: number): Uint16x8; + + /** + * Returns a new instance with the lane values being a mix of the lanes depending on the selector mask. + * @param selector the selector mask. + * @param a If the selector mask lane is `true`, pick the corresponding lane value from here. + * @param b If the selector mask lane is `false`, pick the corresponding lane value from here. + */ + select(selector: Bool16x8, a: Uint16x8, b: Uint16x8): Uint16x8; + + equal(a: Uint16x8, b: Uint16x8): Bool16x8; + + notEqual(a: Uint16x8, b: Uint16x8): Bool16x8; + + lessThan(a: Uint16x8, b: Uint16x8): Bool16x8; + + lessThanOrEqual(a: Uint16x8, b: Uint16x8): Bool16x8; + + greaterThan(a: Uint16x8, b: Uint16x8): Bool16x8; + + greaterThanOrEqual(a: Uint16x8, b: Uint16x8): Bool16x8; + + and(a: Uint16x8, b: Uint16x8): Uint16x8; + + or(a: Uint16x8, b: Uint16x8): Uint16x8; + + xor(a: Uint16x8, b: Uint16x8): Uint16x8; + + not(a: Uint16x8, b: Uint16x8): Uint16x8; + + add(a: Uint16x8, b: Uint16x8): Uint16x8; + + sub(a: Uint16x8, b: Uint16x8): Uint16x8; + + mul(a: Uint16x8, b: Uint16x8): Uint16x8; + + /** + * Returns a new instance with the lane values shifted left by a given bit count (`a << bits`). + * @param a An instance of a SIMD type. + * @param bits Bit count to shift by. + * @return A new corresponding SIMD data type with the lane values shifted left by a given bit count (`a << bits`). + */ + shiftLeftByScalar(a: Uint16x8, bits: number): Uint16x8; + + /** + * Returns a new instance with the lane values shifted right by a given bit count (`a >> bits` or `a >>> bits`). + * @param a An instance of a SIMD type. + * @param bits Bit count to shift by. + * @return A new corresponding SIMD data type with the lane values shifted right by a given bit count (`a >> bits` or `a >>> bits`). + */ + shiftRightByScalar(a: Uint16x8, bits: number): Uint16x8; + + addSaturate(a: Uint16x8, b: Uint16x8): Uint16x8; + + subSaturate(a: Uint16x8, b: Uint16x8): Uint16x8; + + /** + * Returns a new instance with all lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load(tarray: TypedArray, index: number): Uint16x8; + + /** + * Store all values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store(tarray: TypedArray, index: number, value: Uint16x8): Uint16x8; + + /** + * Creates a new SIMD data type with a float conversion from a Int16x8. + * @param value An Int16x8 SIMD type to convert from. + */ + fromInt16x8(value: Int16x8): Uint16x8; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Float32x4. + * @param value A Float32x4 SIMD type to convert from (bitwise). + */ + fromFloat32x4Bits(value: Float32x4): Uint16x8; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int32x4. + * @param value A Int32x4 SIMD type to convert from (bitwise). + */ + fromInt32x4Bits(value: Int32x4): Uint16x8; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int16x8. + * @param value A Int16x8 SIMD type to convert from (bitwise). + */ + fromInt16x8Bits(value: Int16x8): Uint16x8; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int8x16. + * @param value A Int8x16 SIMD type to convert from (bitwise). + */ + fromInt8x16Bits(value: Int8x16): Uint16x8; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint32x4. + * @param value A Uint32x4 SIMD type to convert from (bitwise). + */ + fromUint32x4Bits(value: Uint32x4): Uint16x8; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint8x16. + * @param value A Uint8x16 SIMD type to convert from (bitwise). + */ + fromUint8x16Bits(value: Uint8x16): Uint16x8; + } + + /** + * 128-bits divided into 16 lanes storing 8-bit unsigned integer values. + */ + interface Uint8x16 { + constructor: Uint8x16Constructor; + valueOf(): Uint8x16; + toLocaleString(): string; + toString(): string; + + /** + * The initial value of the @@toStringTag property is the String value "SIMD.Uint8x16". + */ + [Symbol.toStringTag]: string; + [Symbol.toPrimitive](hint: "string"): string; + [Symbol.toPrimitive](hint: "number"): number; + [Symbol.toPrimitive](hint: "default"): Uint8x16; + [Symbol.toPrimitive](hint: string): any; + } + + interface Uint8x16Constructor { + /** + * SIMD.Uint8x16 constructor + * @param s0 A 8bit uint specifying the value of the lane. + * @param s1 A 8bit uint specifying the value of the lane. + * @param s2 A 8bit uint specifying the value of the lane. + * @param s3 A 8bit uint specifying the value of the lane. + * @param s4 A 8bit uint specifying the value of the lane. + * @param s5 A 8bit uint specifying the value of the lane. + * @param s6 A 8bit uint specifying the value of the lane. + * @param s7 A 8bit uint specifying the value of the lane. + * @param s8 A 8bit uint specifying the value of the lane. + * @param s9 A 8bit uint specifying the value of the lane. + * @param s10 A 8bit uint specifying the value of the lane. + * @param s11 A 8bit uint specifying the value of the lane. + * @param s12 A 8bit uint specifying the value of the lane. + * @param s13 A 8bit uint specifying the value of the lane. + * @param s14 A 8bit uint specifying the value of the lane. + * @param s15 A 8bit uint specifying the value of the lane. + * @return SIMD.Uint8x16 object + */ + ( + s0?: number, + s1?: number, + s2?: number, + s3?: number, + s4?: number, + s5?: number, + s6?: number, + s7?: number, + s8?: number, + s9?: number, + s10?: number, + s11?: number, + s12?: number, + s13?: number, + s14?: number, + s15?: number + ): Uint8x16; + + prototype: Uint8x16; + + /** + * Returns the value of the given lane. + * @param simd An instance of a corresponding SIMD type. + * @param lane An index number for which lane to extract. + * @return The value of the extracted lane. + */ + extractLane(simd: Uint8x16, lane: number): number; + + /** + * Returns a new instance with the lane values swizzled. + * @param a + * @param l1 + * @param l2 + * @param l3 + * @param l4 + * @param l5 + * @param l6 + * @param l7 + * @param l8 + * @param l9 + * @param l10 + * @param l11 + * @param l12 + * @param l13 + * @param l14 + * @param l15 + * @param l16 + */ + swizzle( + a: Uint8x16, + l1: number, + l2: number, + l3: number, + l4: number, + l5: number, + l6: number, + l7: number, + l8: number, + l9: number, + l10: number, + l11: number, + l12: number, + l13: number, + l14: number, + l15: number, + l16: number + ): Uint8x16; + + /** + * Returns a new instance with the lane values shuffled. + * @param a + * @param b + * @param l1 + * @param l2 + * @param l3 + * @param l4 + * @param l5 + * @param l6 + * @param l7 + * @param l8 + * @param l9 + * @param l10 + * @param l11 + * @param l12 + * @param l13 + * @param l14 + * @param l15 + * @param l16 + */ + shuffle( + a: Uint8x16, + b: Uint8x16, + l1: number, + l2: number, + l3: number, + l4: number, + l5: number, + l6: number, + l7: number, + l8: number, + l9: number, + l10: number, + l11: number, + l12: number, + l13: number, + l14: number, + l15: number, + l16: number + ): Uint8x16; + + /** + * Returns a new instance if the parameter is a valid SIMD data type and the same as Uint8x16. Throws a TypeError otherwise. + * @param a + */ + check(a: Uint8x16): Uint8x16; + + /** + * Creates a new SIMD.Uint8x16 data type with all lanes set to a given value. + * @param n + */ + splat(n: number): Uint8x16; + + /** + * Returns a new instance with the given lane value replaced. + * @param simd An instance of a corresponding SIMD type. + * @param lane + * @param value A new value to be used for the lane. + * @return A new SIMD data type with the given lane value replaced. + */ + replaceLane(simd: Uint8x16, lane: number, value: number): Uint8x16; + + /** + * Returns a new instance with the lane values being a mix of the lanes depending on the selector mask. + * @param selector the selector mask. + * @param a If the selector mask lane is `true`, pick the corresponding lane value from here. + * @param b If the selector mask lane is `false`, pick the corresponding lane value from here. + */ + select(selector: Bool8x16, a: Uint8x16, b: Uint8x16): Uint8x16; + + equal(a: Uint8x16, b: Uint8x16): Bool8x16; + + notEqual(a: Uint8x16, b: Uint8x16): Bool8x16; + + lessThan(a: Uint8x16, b: Uint8x16): Bool8x16; + + lessThanOrEqual(a: Uint8x16, b: Uint8x16): Bool8x16; + + greaterThan(a: Uint8x16, b: Uint8x16): Bool8x16; + + greaterThanOrEqual(a: Uint8x16, b: Uint8x16): Bool8x16; + + and(a: Uint8x16, b: Uint8x16): Uint8x16; + + or(a: Uint8x16, b: Uint8x16): Uint8x16; + + xor(a: Uint8x16, b: Uint8x16): Uint8x16; + + not(a: Uint8x16, b: Uint8x16): Uint8x16; + + add(a: Uint8x16, b: Uint8x16): Uint8x16; + + sub(a: Uint8x16, b: Uint8x16): Uint8x16; + + mul(a: Uint8x16, b: Uint8x16): Uint8x16; + + /** + * Returns a new instance with the lane values shifted left by a given bit count (`a << bits`). + * @param a An instance of a SIMD type. + * @param bits Bit count to shift by. + * @return A new corresponding SIMD data type with the lane values shifted left by a given bit count (`a << bits`). + */ + shiftLeftByScalar(a: Uint8x16, bits: number): Uint8x16; + + /** + * Returns a new instance with the lane values shifted right by a given bit count (`a >> bits` or `a >>> bits`). + * @param a An instance of a SIMD type. + * @param bits Bit count to shift by. + * @return A new corresponding SIMD data type with the lane values shifted right by a given bit count (`a >> bits` or `a >>> bits`). + */ + shiftRightByScalar(a: Uint8x16, bits: number): Uint8x16; + + addSaturate(a: Uint8x16, b: Uint8x16): Uint8x16; + + subSaturate(a: Uint8x16, b: Uint8x16): Uint8x16; + + /** + * Returns a new instance with all lane values loaded from a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start loading in the typed array. + */ + load(tarray: TypedArray, index: number): Uint8x16; + + /** + * Store all values of a SIMD data type into a typed array. + * @param tarray An instance of a typed array. + * @param index A number for the index from where to start storing in the typed array. + * @param value An instance of a SIMD data type to store into the typed array. + * @return The value that has been stored (a SIMD data type). + */ + store(tarray: TypedArray, index: number, value: Uint8x16): Uint8x16; + + /** + * Creates a new SIMD data type with a float conversion from a Int8x16. + * @param value An Int8x16 SIMD type to convert from. + */ + fromInt8x16(value: Int8x16): Uint8x16; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Float32x4. + * @param value A Float32x4 SIMD type to convert from (bitwise). + */ + fromFloat32x4Bits(value: Float32x4): Uint8x16; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int32x4. + * @param value A Int32x4 SIMD type to convert from (bitwise). + */ + fromInt32x4Bits(value: Int32x4): Uint8x16; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int16x8. + * @param value A Int16x8 SIMD type to convert from (bitwise). + */ + fromInt16x8Bits(value: Int16x8): Uint8x16; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Int8x16. + * @param value A Int8x16 SIMD type to convert from (bitwise). + */ + fromInt8x16Bits(value: Int8x16): Uint8x16; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint32x4. + * @param value A Uint32x4 SIMD type to convert from (bitwise). + */ + fromUint32x4Bits(value: Uint32x4): Uint8x16; + + /** + * Creates a new SIMD data type with a bit-wise copy from a Uint16x8. + * @param value A Uint16x8 SIMD type to convert from (bitwise). + */ + fromUint16x8Bits(value: Uint16x8): Uint8x16; + } + + /** + * A SIMD type representing 4 boolean values, as an intermediate value in manipulating 128-bit vectors. + */ + interface Bool32x4 { + constructor: Bool32x4Constructor; + valueOf(): Bool32x4; + toLocaleString(): string; + toString(): string; + + /** + * The initial value of the @@toStringTag property is the String value "SIMD.Bool32x4". + */ + [Symbol.toStringTag]: string; + [Symbol.toPrimitive](hint: "string"): string; + [Symbol.toPrimitive](hint: "number"): number; + [Symbol.toPrimitive](hint: "default"): Bool32x4; + [Symbol.toPrimitive](hint: string): any; + } + + interface Bool32x4Constructor { + /** + * SIMD.Bool32x4 constructor + * @param s0 A 32bit bool specifying the value of the lane. + * @param s1 A 32bit bool specifying the value of the lane. + * @param s2 A 32bit bool specifying the value of the lane. + * @param s3 A 32bit bool specifying the value of the lane. + * @return SIMD.Bool32x4 object + */ + (s0?: boolean, s1?: boolean, s2?: boolean, s3?: boolean): Bool32x4; + + prototype: Bool32x4; + + /** + * Returns the value of the given lane. + * @param simd An instance of a corresponding SIMD type. + * @param lane An index number for which lane to extract. + * @return The value of the extracted lane. + */ + extractLane(simd: Bool32x4, lane: number): boolean; + + /** + * Returns a new instance if the parameter is a valid SIMD data type and the same as Bool32x4. Throws a TypeError otherwise. + * @param a + */ + check(a: Bool32x4): Bool32x4; + + /** + * Creates a new SIMD.Bool32x4 data type with all lanes set to a given value. + * @param n + */ + splat(n: boolean): Bool32x4; + + /** + * Returns a new instance with the given lane value replaced. + * @param simd An instance of a corresponding SIMD type. + * @param lane + * @param value A new value to be used for the lane. + * @return A new SIMD data type with the given lane value replaced. + */ + replaceLane(simd: Bool32x4, lane: number, value: boolean): Bool32x4; + + /** + * If all lane values are `true`, return `true`. + * @param a + */ + allTrue(a: Bool32x4): boolean; + + /** + * If any lane values are `true`, return `true`. + * @param a + */ + anyTrue(a: Bool32x4): boolean; + + and(a: Bool32x4, b: Bool32x4): Bool32x4; + + or(a: Bool32x4, b: Bool32x4): Bool32x4; + + xor(a: Bool32x4, b: Bool32x4): Bool32x4; + + not(a: Bool32x4, b: Bool32x4): Bool32x4; + } + + /** + * A SIMD type representing 16 boolean values, as an intermediate value in manipulating 128-bit vectors + */ + interface Bool16x8 { + constructor: Bool16x8Constructor; + valueOf(): Bool16x8; + toLocaleString(): string; + toString(): string; + + /** + * The initial value of the @@toStringTag property is the String value "SIMD.Bool16x8". + */ + [Symbol.toStringTag]: string; + [Symbol.toPrimitive](hint: "string"): string; + [Symbol.toPrimitive](hint: "number"): number; + [Symbol.toPrimitive](hint: "default"): Bool16x8; + [Symbol.toPrimitive](hint: string): any; + } + + interface Bool16x8Constructor { + /** + * SIMD.Bool16x8 constructor + * @param s0 A 16bit bool specifying the value of the lane. + * @param s1 A 16bit bool specifying the value of the lane. + * @param s2 A 16bit bool specifying the value of the lane. + * @param s3 A 16bit bool specifying the value of the lane. + * @param s4 A 16bit bool specifying the value of the lane. + * @param s5 A 16bit bool specifying the value of the lane. + * @param s6 A 16bit bool specifying the value of the lane. + * @param s7 A 16bit bool specifying the value of the lane. + * @return SIMD.Bool16x8 object + */ + (s0?: boolean, s1?: boolean, s2?: boolean, s3?: boolean, s4?: boolean, s5?: boolean, s6?: boolean, s7?: boolean): Bool16x8; + + prototype: Bool16x8; + + /** + * Returns the value of the given lane. + * @param simd An instance of a corresponding SIMD type. + * @param lane An index number for which lane to extract. + * @return The value of the extracted lane. + */ + extractLane(simd: Bool16x8, lane: number): boolean; + + /** + * Returns a new instance if the parameter is a valid SIMD data type and the same as Bool16x8. Throws a TypeError otherwise. + * @param a + */ + check(a: Bool16x8): Bool16x8; + + /** + * Creates a new SIMD.Bool16x8 data type with all lanes set to a given value. + * @param n + */ + splat(n: boolean): Bool16x8; + + /** + * Returns a new instance with the given lane value replaced. + * @param simd An instance of a corresponding SIMD type. + * @param lane + * @param value A new value to be used for the lane. + * @return A new SIMD data type with the given lane value replaced. + */ + replaceLane(simd: Bool16x8, lane: number, value: boolean): Bool16x8; + + /** + * If all lane values are `true`, return `true`. + * @param a + */ + allTrue(a: Bool16x8): boolean; + + /** + * If any lane values are `true`, return `true`. + * @param a + */ + anyTrue(a: Bool16x8): boolean; + + and(a: Bool16x8, b: Bool16x8): Bool16x8; + + or(a: Bool16x8, b: Bool16x8): Bool16x8; + + xor(a: Bool16x8, b: Bool16x8): Bool16x8; + + not(a: Bool16x8, b: Bool16x8): Bool16x8; + } + + /** + * A SIMD type representing 8 boolean values, as an intermediate value in manipulating 128-bit vectors + */ + interface Bool8x16 { + constructor: Bool8x16Constructor; + valueOf(): Bool8x16; + toLocaleString(): string; + toString(): string; + + /** + * The initial value of the @@toStringTag property is the String value "SIMD.Bool8x16". + */ + [Symbol.toStringTag]: string; + [Symbol.toPrimitive](hint: "string"): string; + [Symbol.toPrimitive](hint: "number"): number; + [Symbol.toPrimitive](hint: "default"): Bool8x16; + [Symbol.toPrimitive](hint: string): any; + } + + interface Bool8x16Constructor { + /** + * SIMD.Bool8x16 constructor + * @param s0 A 8bit bool specifying the value of the lane. + * @param s1 A 8bit bool specifying the value of the lane. + * @param s2 A 8bit bool specifying the value of the lane. + * @param s3 A 8bit bool specifying the value of the lane. + * @param s4 A 8bit bool specifying the value of the lane. + * @param s5 A 8bit bool specifying the value of the lane. + * @param s6 A 8bit bool specifying the value of the lane. + * @param s7 A 8bit bool specifying the value of the lane. + * @param s8 A 8bit bool specifying the value of the lane. + * @param s9 A 8bit bool specifying the value of the lane. + * @param s10 A 8bit bool specifying the value of the lane. + * @param s11 A 8bit bool specifying the value of the lane. + * @param s12 A 8bit bool specifying the value of the lane. + * @param s13 A 8bit bool specifying the value of the lane. + * @param s14 A 8bit bool specifying the value of the lane. + * @param s15 A 8bit bool specifying the value of the lane. + * @return SIMD.Bool8x16 object + */ + ( + s0?: boolean, s1?: boolean, + s2?: boolean, + s3?: boolean, + s4?: boolean, + s5?: boolean, + s6?: boolean, + s7?: boolean, + s8?: boolean, + s9?: boolean, + s10?: boolean, + s11?: boolean, + s12?: boolean, + s13?: boolean, + s14?: boolean, + s15?: boolean + ): Bool8x16; + + prototype: Bool8x16; + + /** + * Returns the value of the given lane. + * @param simd An instance of a corresponding SIMD type. + * @param lane An index number for which lane to extract. + * @return The value of the extracted lane. + */ + extractLane(simd: Bool8x16, lane: number): boolean; + + /** + * Returns a new instance if the parameter is a valid SIMD data type and the same as Bool8x16. Throws a TypeError otherwise. + * @param a + */ + check(a: Bool8x16): Bool8x16; + + /** + * Creates a new SIMD.Bool8x16 data type with all lanes set to a given value. + * @param n + */ + splat(n: boolean): Bool8x16; + + /** + * Returns a new instance with the given lane value replaced. + * @param simd An instance of a corresponding SIMD type. + * @param lane + * @param value A new value to be used for the lane. + * @return A new SIMD data type with the given lane value replaced. + */ + replaceLane(simd: Bool8x16, lane: number, value: boolean): Bool8x16; + + /** + * If all lane values are `true`, return `true`. + * @param a + */ + allTrue(a: Bool8x16): boolean; + + /** + * If any lane values are `true`, return `true`. + * @param a + */ + anyTrue(a: Bool8x16): boolean; + + and(a: Bool8x16, b: Bool8x16): Bool8x16; + + or(a: Bool8x16, b: Bool8x16): Bool8x16; + + xor(a: Bool8x16, b: Bool8x16): Bool8x16; + + not(a: Bool8x16, b: Bool8x16): Bool8x16; + } + } + + const Float32x4: I.Float32x4Constructor; + const Int32x4: I.Int32x4Constructor; + const Int16x8: I.Int16x8Constructor; + const Int8x16: I.Int8x16Constructor; + const Uint32x4: I.Uint32x4Constructor; + const Uint16x8: I.Uint16x8Constructor; + const Uint8x16: I.Uint8x16Constructor; + const Bool32x4: I.Bool32x4Constructor; + const Bool16x8: I.Bool16x8Constructor; + const Bool8x16: I.Bool8x16Constructor; + } +} diff --git a/types/adone/glosses/promise.d.ts b/types/adone/glosses/promise.d.ts index a5267c69a3..d0f59b0340 100644 --- a/types/adone/glosses/promise.d.ts +++ b/types/adone/glosses/promise.d.ts @@ -1,114 +1,129 @@ -/** - * promise helpers - */ -export namespace promise { - namespace I { - interface Deferred { - /** - * Resolves the promise - */ - resolve(value?: T): void; +declare namespace adone { + /** + * promise helpers + */ + namespace promise { + namespace I { + interface Deferred { + /** + * Resolves the promise + */ + resolve(value?: T): void; - /** - * Rejects the promise - */ - reject(value?: any): void; + /** + * Rejects the promise + */ + reject(value?: any): void; - promise: Promise; + promise: Promise; + } } - } - /** - * Creates a promise and returns an interface to control the state - */ - export function defer(): I.Deferred; + /** + * Creates a promise and returns an interface to control the state + */ + export function defer(): I.Deferred; - /** - * Creates a promise that will be resolved after given milliseconds - * - * @param ms delay in milliseconds - * @param value resolving value - */ - export function delay(ms: number, value?: T): Promise; + /** + * Creates a promise that will be resolved after given milliseconds + * + * @param ms delay in milliseconds + * @param value resolving value + */ + export function delay(ms: number, value?: T): Promise; - /** - * Creates a promise that will be rejected after given milliseconds if the given promise is not fulfilled - * - * @param ms timeout in milliseconds - */ - export function timeout(promise: Promise, ms: number): Promise; + /** + * Creates a promise that will be rejected after given milliseconds if the given promise is not fulfilled + * + * @param ms timeout in milliseconds + */ + export function timeout(promise: Promise, ms: number): Promise; - /** - * Converts a promise to node.js style callback - */ - export function nodeify(promise: Promise, callback: (err?: any, value?: T) => void): Promise; + /** + * Converts a promise to node.js style callback + */ + export function nodeify(promise: Promise, callback: (err?: any, value?: T) => void): Promise; - namespace I { - interface PromisifyOptions { - /** - * Context to bind to new function - */ - context?: object; + /** + * Converts a function that returns promises to a node.js style callback function + * + * @param {Function} fn Function + * @returns {Promise} the original promise + */ + export function callbackify(fn: () => Promise): (callback: (err?: any, result?: R) => void) => Promise; + export function callbackify(fn: (a: T) => Promise): (a: T, callback: (err?: any, result?: R) => void) => Promise; + export function callbackify(fn: (a: T1, b: T2) => Promise): (a: T1, b: T2, callback: (err?: any, result?: R) => void) => Promise; + export function callbackify(fn: (a: T1, b: T2, c: T3) => Promise): (a: T1, b: T2, c: T3, callback: (err?: any, result?: R) => void) => Promise; + export function callbackify(fn: (a: T1, b: T2, c: T3, d: T4) => Promise): (a: T1, b: T2, c: T3, d: T4, callback: (err?: any, result?: R) => void) => Promise; + export function callbackify(fn: (...args: any[]) => Promise): (...args: any[]) => Promise; + + namespace I { + interface PromisifyOptions { + /** + * Context to bind to new function + */ + context?: object; + } } - } - /** - * Converts a callback function to a promise-based function - */ - export function promisify(fn: (callback: (err?: any, result?: R) => void) => void, options?: I.PromisifyOptions): () => Promise; - export function promisify(fn: (a: T, callback: (err?: any, result?: R) => void) => void, options?: I.PromisifyOptions): (a: T) => Promise; - export function promisify(fn: (a: T, callback: (err?: any) => void) => void, options?: I.PromisifyOptions): (a: T) => Promise; - export function promisify(fn: (a: T1, b: T2, callback: (err?: any, result?: R) => void) => void, options?: I.PromisifyOptions): (a: T1, b: T2) => Promise; - export function promisify(fn: (a: T1, b: T2, callback: (err?: any) => void) => void, options?: I.PromisifyOptions): (a: T1, b: T2) => Promise; - export function promisify(fn: (a: T1, b: T2, c: T3, callback: (err?: any, result?: R) => void) => void, options?: I.PromisifyOptions): (a: T1, b: T2, c: T3) => Promise; - export function promisify(fn: (a: T1, b: T2, c: T3, callback: (err?: any) => void) => void, options?: I.PromisifyOptions): (a: T1, b: T2, c: T3) => Promise; - export function promisify( - fn: (a: T1, b: T2, c: T3, d: T4, callback: (err?: any, result?: R) => void) => void, - options?: I.PromisifyOptions - ): (a: T1, b: T2, c: T3, d: T4) => Promise; - export function promisify( - fn: (a: T1, b: T2, c: T3, d: T4, callback: (err?: any) => void) => void, - options?: I.PromisifyOptions - ): (a: T1, b: T2, c: T3, d: T4) => Promise; - export function promisify( - fn: (a: T1, b: T2, c: T3, d: T4, e: T5, callback: (err?: any, result?: R) => void) => void, - options?: I.PromisifyOptions - ): (a: T1, b: T2, c: T3, d: T4, e: T5) => Promise; - export function promisify( - fn: (a: T1, b: T2, c: T3, d: T4, callback: (err?: any) => void) => void, - options?: I.PromisifyOptions - ): (a: T1, b: T2, c: T3, d: T4, e: T5) => Promise; - export function promisify(fn: (...args: any[]) => void, options?: I.PromisifyOptions): (...args: any[]) => Promise; + /** + * Converts a callback function to a promise-based function + */ + export function promisify(fn: (callback: (err?: any, result?: R) => void) => void, options?: I.PromisifyOptions): () => Promise; + export function promisify(fn: (a: T, callback: (err?: any, result?: R) => void) => void, options?: I.PromisifyOptions): (a: T) => Promise; + export function promisify(fn: (a: T, callback: (err?: any) => void) => void, options?: I.PromisifyOptions): (a: T) => Promise; + export function promisify(fn: (a: T1, b: T2, callback: (err?: any, result?: R) => void) => void, options?: I.PromisifyOptions): (a: T1, b: T2) => Promise; + export function promisify(fn: (a: T1, b: T2, callback: (err?: any) => void) => void, options?: I.PromisifyOptions): (a: T1, b: T2) => Promise; + export function promisify(fn: (a: T1, b: T2, c: T3, callback: (err?: any, result?: R) => void) => void, options?: I.PromisifyOptions): (a: T1, b: T2, c: T3) => Promise; + export function promisify(fn: (a: T1, b: T2, c: T3, callback: (err?: any) => void) => void, options?: I.PromisifyOptions): (a: T1, b: T2, c: T3) => Promise; + export function promisify( + fn: (a: T1, b: T2, c: T3, d: T4, callback: (err?: any, result?: R) => void) => void, + options?: I.PromisifyOptions + ): (a: T1, b: T2, c: T3, d: T4) => Promise; + export function promisify( + fn: (a: T1, b: T2, c: T3, d: T4, callback: (err?: any) => void) => void, + options?: I.PromisifyOptions + ): (a: T1, b: T2, c: T3, d: T4) => Promise; + export function promisify( + fn: (a: T1, b: T2, c: T3, d: T4, e: T5, callback: (err?: any, result?: R) => void) => void, + options?: I.PromisifyOptions + ): (a: T1, b: T2, c: T3, d: T4, e: T5) => Promise; + export function promisify( + fn: (a: T1, b: T2, c: T3, d: T4, e: T5, callback: (err?: any) => void) => void, + options?: I.PromisifyOptions + ): (a: T1, b: T2, c: T3, d: T4, e: T5) => Promise; + export function promisify(fn: (...args: any[]) => void, options?: I.PromisifyOptions): (...args: any[]) => Promise; - namespace I { - interface PromisifyAllOptions { - /** - * Suffix to use for keys - */ - suffix?: string; + namespace I { + interface PromisifyAllOptions { + /** + * Suffix to use for keys + */ + suffix?: string; - /** - * Function to filter keys - */ + /** + * Function to filter keys + */ - filter?(key: string): boolean; - /** - * Context to bind to new functions - */ - context?: object; + filter?(key: string): boolean; + /** + * Context to bind to new functions + */ + context?: object; + } } + + /** + * Promisifies entire object + */ + export function promisifyAll(source: object, options?: I.PromisifyAllOptions): object; + + /** + * Executes a function after promise fulfillment + * + * @returns the original promise + */ + function _finally(promise: Promise, onFinally?: (...args: any[]) => void): Promise; + export { _finally as finally }; } - - /** - * Promisifies entire object - */ - export function promisifyAll(source: object, options?: I.PromisifyAllOptions): object; - - /** - * Executes a function after promise fulfillment - * - * @returns the original promise - */ - function _finally(promise: Promise, onFinally?: (...args: any[]) => void): Promise; - export { _finally as finally }; } diff --git a/types/adone/glosses/shani.d.ts b/types/adone/glosses/shani.d.ts index 788267c693..0b79633f78 100644 --- a/types/adone/glosses/shani.d.ts +++ b/types/adone/glosses/shani.d.ts @@ -1,1655 +1,1683 @@ -/** - * testing framework - */ -export namespace shani { - namespace I { - interface EngineOptions { - /** - * Default timeout for tests and block - */ - defaultTimeout?: number; +declare namespace adone { + /** + * testing framework + */ + namespace shani { + namespace I { + interface EngineOptions { + /** + * Default timeout for tests and block + */ + defaultTimeout?: number; - /** - * Default timeout for hooks - */ - defaultHookTimeout?: number; + /** + * Default timeout for hooks + */ + defaultHookTimeout?: number; - /** - * Options that transplirer uses when loads tests from files - */ - transpilerOptions?: object; // TODO: possible options to adone.js.compiler + /** + * Options that transplirer uses when loads tests from files + */ + transpilerOptions?: object; // TODO: possible options to adone.js.compiler - /** - * Forca calling gc function after each processed file - */ - callGc?: boolean; + /** + * Forca calling gc function after each processed file + */ + callGc?: boolean; + } + + interface DescribeOptions { + /** + * Specify that this block must be skipped + */ + skip?: boolean | (() => void); + + /** + * Specify the timeout for this block + */ + timeout?: number | (() => void); + } + + interface DescribeRuntimeContext { + /** + * Skip this block + */ + skip(): void; + + /** + * Specify timeout for this block + */ + timeout(ms: number): void; + + [key: string]: any; + } + + type DescribeCallback = (this: DescribeRuntimeContext) => void; + + interface DescribeFunction { + (description: string, callback: DescribeCallback): void; + (description: string, options: DescribeOptions, callback: DescribeCallback): void; + (a: string, description: string, callback: DescribeCallback): void; + (a: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; + (a: string, b: string, description: string, callback: DescribeCallback): void; + (a: string, b: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; + (a: string, b: string, c: string, description: string, callback: DescribeCallback): void; + (a: string, b: string, c: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; + (a: string, b: string, c: string, d: string, description: string, callback: DescribeCallback): void; + (a: string, b: string, c: string, d: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; + (a: string, b: string, c: string, d: string, e: string, description: string, callback: DescribeCallback): void; + (a: string, b: string, c: string, d: string, e: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; + (a: string, b: string, c: string, d: string, e: string, f: string, description: string, callback: DescribeCallback): void; + (a: string, b: string, c: string, d: string, e: string, f: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; + (a: string, b: string, c: string, d: string, e: string, f: string, g: string, description: string, callback: DescribeCallback): void; + (a: string, b: string, c: string, d: string, e: string, f: string, g: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; + (a: string, b: string, c: string, d: string, e: string, f: string, g: string, h: string, description: string, callback: DescribeCallback): void; + (a: string, b: string, c: string, d: string, e: string, f: string, g: string, h: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; + (a: string, b: string, c: string, d: string, e: string, f: string, g: string, h: string, i: string, description: string, callback: DescribeCallback): void; + (a: string, b: string, c: string, d: string, e: string, f: string, g: string, h: string, i: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; + (a: string, b: string, c: string, d: string, e: string, f: string, g: string, h: string, i: string, j: string, description: string, callback: DescribeCallback): void; + ( + a: string, b: string, c: string, + d: string, e: string, f: string, + g: string, h: string, i: string, + j: string, description: string, options: DescribeOptions, + callback: DescribeCallback + ): void; + (a: string, ...args: Array): void; + + /** + * Mark this block as inclusive + */ + only: DescribeFunction; + + /** + * Mark this block as exclusive + */ + skip: DescribeFunction; + } + + interface TestOptions { + /** + * Specify that this test must be skipped + */ + skip?: boolean | (() => void); + + /** + * Specify timeout for this test + */ + timeout?: number | (() => void); + + /** + * Add before hook for this test + */ + before?: HookCallback | [string, HookCallback]; + + /** + * Add after hook for this test + */ + after?: HookCallback | [string, HookCallback]; + } + + interface TestRuntimeContext { + /** + * Skip this test + */ + skip(): void; + + /** + * Specify timeout for this test + */ + timeout(ms: number): void; + + [key: string]: any; + } + + type TestCallback = (this: TestRuntimeContext, done: (err?: any) => void) => void; + + interface TestFunction { + (description: string, callback: TestCallback): void; + (description: string, options: TestOptions, callback: TestCallback): void; + /** + * Mark this test as inclusive + */ + only: TestFunction; + + /** + * Mark this test as exclusive + */ + skip: TestFunction; + } + + interface HookRuntimeContext { + /** + * Specify timeout for this hook + */ + timeout(ms: number): void; + + [key: string]: any; + } + + type HookCallback = (this: HookRuntimeContext, done: (err?: any) => void) => void; + + interface HookFunction { + (callback: HookCallback): void; + (description: string, callback: HookCallback): void; + } + + type StartHookEvent = "start before hook" | "start after hook" + | "start before each hook" | "start after each hook" + | "start before test hook" | "start after test hook"; + + type EndHookEvent = "end before hook" | "end after hook" + | "end before each hook" | "end after each hook" + | "end before test hook" | "end after test hook"; + + interface Emitter extends event.EventEmitter { + on(event: "enter block", listener: (event: { block: Block }) => void): this; + on(event: "exit block", listener: (event: { block: Block }) => void): this; + on(event: "start test", listener: (event: { block: Block, test: Test }) => void): this; + on(event: "end test", listener: (event: { block: Block, test: Test, meta: ExecutionResult }) => void): this; + on(event: "skip test", listener: (event: { block: Block, test: Test, runtime: boolean }) => void): this; + on(event: StartHookEvent, listener: (event: { block: Block, test: Test, hook: Hook }) => void): this; + on(event: EndHookEvent, listener: (event: { block: Block, test: Test, hook: Hook, meta: ExecutionResult }) => void): this; + on(event: "error", listener: (err: any) => void): this; + on(event: "done", listener: () => void): this; + + /** + * Stops testing + */ + stop(): void; + } + + interface ExecutionResult { + /** + * Resulting error + */ + err: any; + + /** + * Elapsed time in milliseconds + */ + elapsed: number; + } + + class Hook { + desctiption: string; + + constructor(description: string, callback: HookCallback, runtimeContext: object); + + /** + * Check if this hook has been run + */ + fired(): boolean; + + /** + * Check if this hook failed + */ + failed(): boolean; + + /** + * The cause of the fail + */ + cause(): any; + + /** + * Returns the timeout of the hook + */ + timeout(): number; + + /** + * Seta a timeout for this hook + */ + timeout(ms: number): this; + + /** + * Executes the hook + */ + run(): Promise; + } + + class Test { + description: string; + + constructor(description: string, callback: TestCallback, block: Block, runtimeContext: object, options: TestOptions); + + /** + * Handles params from options + */ + prepare(): Promise; + + /** + * Checks if this test is exclusive (has skip flag) + */ + isExclusive(): boolean; + + /** + * Checks if this test is exclusive (has only flag) + */ + isInclusive(): boolean; + + /** + * Skips this test + */ + skip(): this; + + /** + * Marks this test as inclusive + */ + only(): this; + + /** + * Returns the timeout of the test + */ + timeout(): number | null; + + /** + * Sets a timeout for this test + */ + timeout(ms: number): this; + + /** + * Returns a string of names from the root to this test + */ + chain(): string; + + /** + * Executes the test + */ + run(): Promise; + } + + class Block { + name: string; + hooks: { + before: Hook[]; + beforeEach: Hook[]; + afterEach: Hook[]; + after: Hook[]; + }; + children: Array; + + constructor(name: string, parent: Block, options: DescribeOptions); + + /** + * Handles params from options + */ + prepare(): Promise; + + /** + * Adds a new child into this block + */ + addChild(child: Block | Test): void; + + /** + * Before hooks iterator + */ + beforeHooks(): IterableIterator; + + /** + * After hooks iterator + */ + afterHooks(): IterableIterator; + + /** + * Before each hooks iterator + */ + beforeEachHooks(): IterableIterator; + + /** + * After each hooks iterator + */ + afterEachHooks(): IterableIterator; + + /** + * Checks if this block is exclusive (has skip flag) + */ + isExclusive(): boolean; + + /** + * Checks if this block is inclusive (has only flag) + */ + isInclusive(): boolean; + + /** + * Checks if this block has an inclusive node + */ + hasInclusive(): boolean; + + /** + * Skips this block + */ + skip(): this; + + /** + * Marks this block as inclusive + */ + only(): this; + + /** + * Returns the timeout of the block + */ + timeout(): number | null; + + /** + * Sets a timeout for this block + */ + timeout(ms: number): this; + + /** + * Returns the block's level, the length of parent blocks chain + */ + level(): number; + + /** + * Sets the block's level + */ + level(level: number): this; + + /** + * Returns a string of names from the root to this block + */ + chain(): string; + + /** + * Returns a chain of blocks from the root to this block + */ + blockChain(): Block[]; + } + + interface Context { + /** + * Defines a tests block + */ + describe: DescribeFunction; + + /** + * Defines a tests block + */ + context: DescribeFunction; + + /** + * Defines a test + */ + it: TestFunction; + + /** + * Defines a test + */ + specify: TestFunction; + + /** + * Defines a hook that will be called only once before the block's tests + */ + before: HookFunction; + + /** + * Defines a hook that will be called only once after the block's tests + */ + after: HookFunction; + + /** + * Defines a hook that will be called before each test + */ + beforeEach: HookFunction; + + /** + * Defines a hook that will be called after each test + */ + afterEach: HookFunction; + + /** + * Root node + */ + root: Block; + + /** + * Starts testing + */ + start(): Emitter; + } } - interface DescribeOptions { - /** - * Specify that this block must be skipped - */ - skip?: boolean | (() => void); + /** + * Represents a testing engine + */ + export class Engine { + constructor(options?: I.EngineOptions); /** - * Specify the timeout for this block + * Includes given files as test files */ - timeout?: number | (() => void); - } - - interface DescribeRuntimeContext { - /** - * Skip this block - */ - skip(): void; + include(...paths: string[]): void; /** - * Specify timeout for this block + * Excludes given paths from testing */ - timeout(ms: number): void; - - [key: string]: any; - } - - type DescribeCallback = (this: DescribeRuntimeContext) => void; - - interface DescribeFunction { - (description: string, callback: DescribeCallback): void; - (description: string, options: DescribeOptions, callback: DescribeCallback): void; - (a: string, description: string, callback: DescribeCallback): void; - (a: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; - (a: string, b: string, description: string, callback: DescribeCallback): void; - (a: string, b: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; - (a: string, b: string, c: string, description: string, callback: DescribeCallback): void; - (a: string, b: string, c: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; - (a: string, b: string, c: string, d: string, description: string, callback: DescribeCallback): void; - (a: string, b: string, c: string, d: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; - (a: string, b: string, c: string, d: string, e: string, description: string, callback: DescribeCallback): void; - (a: string, b: string, c: string, d: string, e: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; - (a: string, b: string, c: string, d: string, e: string, f: string, description: string, callback: DescribeCallback): void; - (a: string, b: string, c: string, d: string, e: string, f: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; - (a: string, b: string, c: string, d: string, e: string, f: string, g: string, description: string, callback: DescribeCallback): void; - (a: string, b: string, c: string, d: string, e: string, f: string, g: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; - (a: string, b: string, c: string, d: string, e: string, f: string, g: string, h: string, description: string, callback: DescribeCallback): void; - (a: string, b: string, c: string, d: string, e: string, f: string, g: string, h: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; - (a: string, b: string, c: string, d: string, e: string, f: string, g: string, h: string, i: string, description: string, callback: DescribeCallback): void; - (a: string, b: string, c: string, d: string, e: string, f: string, g: string, h: string, i: string, description: string, options: DescribeOptions, callback: DescribeCallback): void; - (a: string, b: string, c: string, d: string, e: string, f: string, g: string, h: string, i: string, j: string, description: string, callback: DescribeCallback): void; - ( - a: string, b: string, c: string, - d: string, e: string, f: string, - g: string, h: string, i: string, - j: string, description: string, options: DescribeOptions, - callback: DescribeCallback - ): void; - (a: string, ...args: Array): void; + exclude(...paths: string[]): void; /** - * Mark this block as inclusive + * Returns a testing context */ - only: DescribeFunction; - - /** - * Mark this block as exclusive - */ - skip: DescribeFunction; - } - - interface TestOptions { - /** - * Specify that this test must be skipped - */ - skip?: boolean | (() => void); - - /** - * Specify timeout for this test - */ - timeout?: number | (() => void); - - /** - * Add before hook for this test - */ - before?: HookCallback | [string, HookCallback]; - - /** - * Add after hook for this test - */ - after?: HookCallback | [string, HookCallback]; - } - - interface TestRuntimeContext { - /** - * Skip this test - */ - skip(): void; - - /** - * Specify timeout for this test - */ - timeout(ms: number): void; - - [key: string]: any; - } - - type TestCallback = (this: TestRuntimeContext, done: (err?: any) => void) => void; - - interface TestFunction { - (description: string, callback: TestCallback): void; - (description: string, options: TestOptions, callback: TestCallback): void; - /** - * Mark this test as inclusive - */ - only: TestFunction; - - /** - * Mark this test as exclusive - */ - skip: TestFunction; - } - - interface HookRuntimeContext { - /** - * Specify timeout for this hook - */ - timeout(ms: number): void; - - [key: string]: any; - } - - type HookCallback = (this: HookRuntimeContext, done: (err?: any) => void) => void; - - interface HookFunction { - (callback: HookCallback): void; - (description: string, callback: HookCallback): void; - } - - type StartHookEvent = "start before hook" | "start after hook" - | "start before each hook" | "start after each hook" - | "start before test hook" | "start after test hook"; - - type EndHookEvent = "end before hook" | "end after hook" - | "end before each hook" | "end after each hook" - | "end before test hook" | "end after test hook"; - - interface Emitter extends adone.EventEmitter { - on(event: "enter block", listener: (event: { block: Block }) => void): this; - on(event: "exit block", listener: (event: { block: Block }) => void): this; - on(event: "start test", listener: (event: { block: Block, test: Test }) => void): this; - on(event: "end test", listener: (event: { block: Block, test: Test, meta: ExecutionResult }) => void): this; - on(event: "skip test", listener: (event: { block: Block, test: Test, runtime: boolean }) => void): this; - on(event: StartHookEvent, listener: (event: { block: Block, test: Test, hook: Hook }) => void): this; - on(event: EndHookEvent, listener: (event: { block: Block, test: Test, hook: Hook, meta: ExecutionResult }) => void): this; - on(event: "error", listener: (err: any) => void): this; - on(event: "done", listener: () => void): this; - - /** - * Stops testing - */ - stop(): void; - } - - interface ExecutionResult { - /** - * Resulting error - */ - err: any; - - /** - * Elapsed time in milliseconds - */ - elapsed: number; - } - - class Hook { - desctiption: string; - - constructor(description: string, callback: HookCallback, runtimeContext: object); - - /** - * Check if this hook has been run - */ - fired(): boolean; - - /** - * Check if this hook failed - */ - failed(): boolean; - - /** - * The cause of the fail - */ - cause(): any; - - /** - * Returns the timeout of the hook - */ - timeout(): number; - - /** - * Seta a timeout for this hook - */ - timeout(ms: number): this; - - /** - * Executes the hook - */ - run(): Promise; - } - - class Test { - description: string; - - constructor(description: string, callback: TestCallback, block: Block, runtimeContext: object, options: TestOptions); - - /** - * Handles params from options - */ - prepare(): Promise; - - /** - * Checks if this test is exclusive (has skip flag) - */ - isExclusive(): boolean; - - /** - * Checks if this test is exclusive (has only flag) - */ - isInclusive(): boolean; - - /** - * Skips this test - */ - skip(): this; - - /** - * Marks this test as inclusive - */ - only(): this; - - /** - * Returns the timeout of the test - */ - timeout(): number | null; - - /** - * Sets a timeout for this test - */ - timeout(ms: number): this; - - /** - * Returns a string of names from the root to this test - */ - chain(): string; - - /** - * Executes the test - */ - run(): Promise; - } - - class Block { - name: string; - hooks: { - before: Hook[]; - beforeEach: Hook[]; - afterEach: Hook[]; - after: Hook[]; - }; - children: Array; - - constructor(name: string, parent: Block, options: DescribeOptions); - - /** - * Handles params from options - */ - prepare(): Promise; - - /** - * Adds a new child into this block - */ - addChild(child: Block | Test): void; - - /** - * Before hooks iterator - */ - beforeHooks(): IterableIterator; - - /** - * After hooks iterator - */ - afterHooks(): IterableIterator; - - /** - * Before each hooks iterator - */ - beforeEachHooks(): IterableIterator; - - /** - * After each hooks iterator - */ - afterEachHooks(): IterableIterator; - - /** - * Checks if this block is exclusive (has skip flag) - */ - isExclusive(): boolean; - - /** - * Checks if this block is inclusive (has only flag) - */ - isInclusive(): boolean; - - /** - * Checks if this block has an inclusive node - */ - hasInclusive(): boolean; - - /** - * Skips this block - */ - skip(): this; - - /** - * Marks this block as inclusive - */ - only(): this; - - /** - * Returns the timeout of the block - */ - timeout(): number | null; - - /** - * Sets a timeout for this block - */ - timeout(ms: number): this; - - /** - * Returns the block's level, the length of parent blocks chain - */ - level(): number; - - /** - * Sets the block's level - */ - level(level: number): this; - - /** - * Returns a string of names from the root to this block - */ - chain(): string; - - /** - * Returns a chain of blocks from the root to this block - */ - blockChain(): Block[]; - } - - interface Context { - /** - * Defines a tests block - */ - describe: DescribeFunction; - - /** - * Defines a tests block - */ - context: DescribeFunction; - - /** - * Defines a test - */ - it: TestFunction; - - /** - * Defines a test - */ - specify: TestFunction; - - /** - * Defines a hook that will be called only once before the block's tests - */ - before: HookFunction; - - /** - * Defines a hook that will be called only once after the block's tests - */ - after: HookFunction; - - /** - * Defines a hook that will be called before each test - */ - beforeEach: HookFunction; - - /** - * Defines a hook that will be called after each test - */ - afterEach: HookFunction; - - /** - * Root node - */ - root: Block; + context(): I.Context; /** * Starts testing */ - start(): Emitter; - } - } - - /** - * Represents a testing engine - */ - export class Engine { - constructor(options?: I.EngineOptions); - - /** - * Includes given files as test files - */ - include(...paths: string[]): void; - - /** - * Excludes given paths from testing - */ - exclude(...paths: string[]): void; - - /** - * Returns a testing context - */ - context(): I.Context; - - /** - * Starts testing - */ - start(): I.Emitter; - } - - namespace util { - namespace I { - // based on https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sinon - - interface SpyCallApi { - /** - * The call's this value - */ - thisValue: any; - - /** - * The call's arguments - */ - args: any[]; - - /** - * Exception throws if any - */ - exception: any; - - /** - * Return value - */ - returnValue: any; - - /** - * Whether the spy was called on obj (this value) - */ - calledOn(obj: any): boolean; - - /** - * Whether the arguments were args (and possibly others) - */ - calledWith(...args: any[]): boolean; - - /** - * Whether the arguments were exactly args (no others) - */ - calledWithExactly(...args: any[]): boolean; - - /** - * Whether the call received matching args (and possibly others) - */ - calledWithMatch(...args: any[]): boolean; - - /** - * Whether the call did not receive args - */ - notCalledWith(...args: any[]): boolean; - - /** - * Whether the call did not receive matching args - */ - notCalledWithMatch(...args: any[]): boolean; - - /** - * Whether the call returned the given value - */ - returned(value: any): boolean; - - /** - * Whether the call threw an exception - */ - threw(): boolean; - - /** - * Whether the call threw an exception of provided type - */ - threw(type: string): boolean; - - /** - * Whether the call threw obj - */ - threw(obj: any): boolean; - - /** - * Calls the argument at the given index - */ - callArg(pos: number): void; - - /** - * Calls the argument at the given index on the given context - */ - callArgOn(pos: number, obj: any): void; - - /** - * Calls the argument at the given index with arguments - */ - callArgWith(pos: number, ...args: any[]): void; - - /** - * Calls the argument at the given index on the given context and with the given arguments - */ - callArgOnWith(pos: number, obj: any, ...args: any[]): void; - - /** - * Calls a callback from the arguments with the given arguments - */ - yield(...args: any[]): void; - - /** - * Calls a callback from the arguments with the given arguments on the given context - */ - yieldOn(obj: any, ...args: any[]): void; - - /** - * Calls with the given arguments a callback that is a property of the call's argument with the given name - */ - yieldTo(property: string, ...args: any[]): void; - - /** - * Calls on the given context with the given arguments a callback that - * is a property of the call's argument with the given name - */ - yieldToOn(property: string, obj: any, ...args: any[]): void; - } - - interface SpyCall extends SpyCallApi { - /** - * Whether the call was called before the given call - */ - calledBefore(call: SpyCall): boolean; - - /** - * Whether the call was called after the given call - */ - calledAfter(call: SpyCall): boolean; - - /** - * Whether the call was called using the new operator - */ - calledWithNew(call: SpyCall): boolean; - } - - interface Spy extends SpyCallApi { - /** - * The number of recorded calls - */ - callCount: number; - - /** - * Whether the spy was called - */ - called: boolean; - - /** - * Whether the spy was not called - */ - notCalled: boolean; - - /** - * Whether the spy was called once - */ - calledOnce: boolean; - - /** - * Whether the spy was called twice - */ - calledTwice: boolean; - - /** - * Whether the spy was called thrice - */ - calledThrice: boolean; - - /** - * The first call - */ - firstCall: SpyCall; - - /** - * The second call - */ - secondCall: SpyCall; - - /** - * The third call - */ - thirdCall: SpyCall; - - /** - * The last call - */ - lastCall: SpyCall; - - /** - * Array of the calls contexts - */ - thisValues: any[]; - - /** - * Array of the calls arguments - */ - args: any[][]; - - /** - * Array of the calls exceptions - */ - exceptions: any[]; - - /** - * Array of the calls return values - */ - returnValues: any[]; - - (...args: any[]): any; - /** - * Whether the spy was called before another spy - */ - calledBefore(anotherSpy: Spy): boolean; - - /** - * Whether the spy was called after another spy - */ - calledAfter(anotherSpy: Spy): boolean; - - /** - * Whether the spy was called before another spy and no spies occured between them - */ - calledImmediatelyBefore(anotherSpy: Spy): boolean; - - /** - * Whether the spy was called after another spy and no spies occured between them - */ - calledImmediatelyAfter(anotherSpy: Spy): boolean; - - /** - * Whether the spy was called using the new operator - */ - calledWithNew(): boolean; - - /** - * Creates a spy that record calls only with the given arguments - */ - withArgs(...args: any[]): Spy; - - /** - * Whether the spy was called on the given context (this value) - */ - alwaysCalledOn(obj: any): boolean; - - /** - * Whether the spy was called with the given arguments (and possibly others) - */ - alwaysCalledWith(...args: any[]): boolean; - - /** - * Whether the spy was called exactly with the given arguments (no others) - */ - alwaysCalledWithExactly(...args: any[]): boolean; - - /** - * Whether the spy was called with the matching arguments (and possibly others) - */ - alwaysCalledWithMatch(...args: any[]): boolean; - - /** - * Whether the spy was never called with the given arguments - */ - neverCalledWith(...args: any[]): boolean; - - /** - * Whether the spy was neven called with the matching arguments - */ - neverCalledWithMatch(...args: any[]): boolean; - - /** - * Whether the spy always threw exceptions - */ - alwaysThrew(): boolean; - - /** - * Whether the spy always threw exceptions of the given types - */ - alwaysThrew(type: string): boolean; - - /** - * Whether the spy always threw the given object - */ - alwaysThrew(obj: any): boolean; - - /** - * Whether the spy always returned the given object - */ - alwaysReturned(obj: any): boolean; - - /** - * Invokes the callbacks passed in the arguments with the given arguments - */ - invokeCallback(...args: any[]): void; - - /** - * Returns the call with the given index - */ - getCall(n: number): SpyCall; - - /** - * Returns all the calls - */ - getCalls(): SpyCall[]; - - /** - * Resets the state of the spy - */ - reset(): void; - - /** - * Returns the passed format string with the given replacements - */ - printf(format: string, ...args: any[]): string; - - /** - * Replaces the spy with the original method if the spy replaced an original method - */ - restore(): void; - } - - interface Stub extends Spy { - /** - * Resets the stub's behavior to the default behavior - */ - resetBehavior(): void; - - /** - * Resets the stub's history - */ - resetHistory(): void; - - /** - * Causes the stub to return promises using the given promise library - */ - usingPromise(promiseLibrary: any): Stub; - - /** - * Makes the stub return the given object - */ - returns(obj: any): Stub; - - /** - * Causes the stub to return the argument at the given index - */ - returnsArg(index: number): Stub; - - /** - * Causes the stub to return its this value - */ - returnsThis(): Stub; - - /** - * Causes the stub to return a promise that resolves to the given value - */ - resolves(value?: any): Stub; - - /* - * Causes the stub to throw an exception of the given type - */ - throws(type?: string): Stub; - - /** - * Causes the stub to throw the given object - */ - throws(obj: any): Stub; - - /** - * Causes the stub to throw the argument at the given index - */ - throwsArg(index: number): Stub; - - /* - * Causes the stub to throw an exception of the given type - */ - throwsException(type?: string): Stub; - - /** - * Causes the stub to throw the argument at the given index - */ - throwsException(obj: any): Stub; - - /** - * Causes the stub to reject - */ - rejects(): Stub; - - /** - * Causes the stub to reject with the given type - */ - rejects(errorType: string): Stub; - - /** - * Causes the stub to reject with the given value - */ - rejects(value: any): Stub; - - /** - * Causes the stub to call the argument at the provided index as a callback function - */ - callsArg(index: number): Stub; - - /** - * Causes the original method wrapped into the stub to be called when none of the conditional stubs are matched - */ - callThrough(): Stub; - - /** - * Causes the stub to call the argument at the provided index as a callback function on the given context - */ - callsArgOn(index: number, context: any): Stub; - - /** - * Causes the stub to call the argument at the provided index as a callback function with the given arguments - */ - callsArgWith(index: number, ...args: any[]): Stub; - - /** - * Causes the stub to call the argument at the provided index as a callback function on the given context with the given arguments - */ - callsArgOnWith(index: number, context: any, ...args: any[]): Stub; - - /** - * Causes the stub to asynchronously call the argument at the provided index as a callback function - */ - callsArgAsync(index: number): Stub; - - /** - * Causes the stub to asynchronously call the argument at the provided index as a callback function on the given context - */ - callsArgOnAsync(index: number, context: any): Stub; - - /** - * Causes the stub to asynchronously call the argument at the provided index as a callback function on the given context with the given arguments - */ - callsArgWithAsync(index: number, ...args: any[]): Stub; - - /** - * Causes the stub to asynchronously call the argument at the provided index as a callback function on the given context with the given arguments - */ - callsArgOnWithAsync(index: number, context: any, ...args: any[]): Stub; - - /** - * Makes the stub call the provided fake function - */ - callsFake(func: (...args: any[]) => void): Stub; - - /** - * Replaces a new getter with this stub - */ - get(func: () => any): Stub; - - /** - * Replaces a new getter with this stub - */ - set(func: (v: any) => void): Stub; - - /** - * Defines the behavior of the stub on the call with the given index - */ - onCall(n: number): Stub; - - /** - * Defines the behavior of the stub on the first call - */ - onFirstCall(): Stub; - - /** - * Defines the behavior of the stub on the second call - */ - onSecondCall(): Stub; - - /** - * Defines the behavior of the stub on the third call - */ - onThirdCall(): Stub; - - /** - * Defines a new value for this stub - */ - value(val: any): Stub; - - /** - * Causes the stub to call the first callback it receives with the provided arguments - */ - yields(...args: any[]): Stub; - - /** - * Causes the stub to call the first callback it receives with the provided arguments on the given context - */ - yieldsOn(context: any, ...args: any[]): Stub; - - /** - * Causes the stub to call the last callback it receives with the provided arguments - */ - yieldsRight(...args: any[]): Stub; - - /** - * Causes the stub to invoke a callback passed as a property of an object to the spy - */ - yieldsTo(property: string, ...args: any[]): Stub; - - /** - * Causes the stub to invoke a callback passed as a property of an object to the spy on the given context - */ - yieldsToOn(property: string, context: any, ...args: any[]): Stub; - - /** - * Causes the stub to asynchronously call the first callback it receives with the provided arguments - */ - yieldsAsync(...args: any[]): Stub; - - /** - * Causes the stub to asynchronously call the first callback it receives with the provided arguments on the given context - */ - yieldsOnAsync(context: any, ...args: any[]): Stub; - - /** - * Causes the stub to asynchronously invoke a callback passed as a property of an object to the spy - */ - yieldsToAsync(property: string, ...args: any[]): Stub; - - /** - * Causes the stub to asynchronously invoke a callback passed as a property of an object to the spy on the given context - */ - yieldsToOnAsync(property: string, context: any, ...args: any[]): Stub; - - /** - * Stubs the method only for the provided arguments - */ - withArgs(...args: any[]): Stub; - } - - interface Expectation extends Stub { - /** - * Specifies the minimum amount of calls expected - */ - atLeast(n: number): Expectation; - - /** - * Specifies the maximum amount of calls expected - */ - atMost(n: number): Expectation; - - /** - * Expects the method to never be called - */ - never(): Expectation; - - /** - * Expects the method to be called exactly once - */ - once(): Expectation; - - /** - * Expects the method to be called exactly twice - */ - twice(): Expectation; - - /** - * Expects the method to be called exactly thrice - */ - thrice(): Expectation; - - /** - * Expects the method to be called exactly n times - */ - exactly(n: number): Expectation; - - /** - * Expects the method to be called with the provided arguments and possibly others - */ - withArgs(...args: any[]): Expectation; - - /** - * Expects the method to be called with the provided arguments and no others - */ - withExactArgs(...args: any[]): Expectation; - - /** - * Expects the method to be called with obj as this - */ - on(obj: any): Expectation; - - /** - * Verifies the expectation and throws an exception if it’s not met - */ - verify(): Expectation; - - /** - * Restores all mocked methods - */ - restore(): void; - } - - interface ExpectationStatic { - /** - * Creates a new expectation - */ - create(methodName?: string): Expectation; - } - - interface Mock { - /** - * Overrides obj.method with a mock function and returns it - */ - expects(method: string): Expectation; - - /** - * Restores all mocked methods - */ - restore(): void; - - /** - * Verifies all expectations on the mock - */ - verify(): void; - } - - interface ExposeOptions { - /** - * prefix to give assertions - */ - prefix?: string; - - /** - * Whether to copy the fail and failException properties - */ - includeFail?: boolean; - } - - interface Assert { - /** - * Default error type thrown by .fail - */ - failException: string; - - /** - * Every assertion fails by calling this method - */ - fail(message?: string): void; - - /** - * Called every time assertion passes - */ - pass(assertion: any): void; - - /** - * Passes if spy was never called - */ - notCalled(spy: Spy): void; - - /** - * Passes if spy was called at least once - */ - called(spy: Spy): void; - - /** - * Passes if spy was called once and only once - */ - calledOnce(spy: Spy): void; - - /** - * Passes if spy was called exactly twice - */ - calledTwice(spy: Spy): void; - - /** - * Passes if spy was called exactly three times - */ - calledThrice(spy: Spy): void; - - /** - * Passes if spy was called exactly count times - */ - callCount(spy: Spy, count: number): void; - - /** - * Passes if provided spies were called in the specified order - */ - callOrder(...spies: Spy[]): void; - - /** - * Passes if spy was ever called with obj as its this value - */ - calledOn(spy: Spy, obj: any): void; - - /** - * Passes if spy was always called with obj as its this value - */ - alwaysCalledOn(spy: Spy, obj: any): void; - - /** - * Passes if spy was called with the provided arguments - */ - calledWith(spy: Spy, ...args: any[]): void; - - /** - * Passes if spy was always called with the provided arguments - */ - alwaysCalledWith(spy: Spy, ...args: any[]): void; - - /** - * Passes if spy was never called with the provided arguments - */ - neverCalledWith(spy: Spy, ...args: any[]): void; - - /** - * Passes if spy was called with the provided arguments and no others - */ - calledWithExactly(spy: Spy, ...args: any[]): void; - - /** - * Passes if spy was always called with the provided arguments and no others - */ - alwaysCalledWithExactly(spy: Spy, ...args: any[]): void; - - /** - * Passes if spy was called with matching arguments. - */ - calledWithMatch(spy: Spy, ...args: any[]): void; - - /** - * Passes if spy was always called with matching arguments - */ - alwaysCalledWithMatch(spy: Spy, ...args: any[]): void; - - /** - * Passes if spy was never called with matching arguments - */ - neverCalledWithMatch(spy: Spy, ...args: any[]): void; - - /** - * Passes if spy threw - */ - threw(spy: Spy): void; - - /** - * Passes if spy threw the given exception type - */ - threw(spy: Spy, exception: string): void; - - /** - * Passes if spy threw the given object - */ - threw(spy: Spy, exception: any): void; - - /** - * Passes if always spy threw - */ - alwaysThrew(spy: Spy): void; - - /** - * Passes if spy always threw the given exception type - */ - alwaysThrew(spy: Spy, exception: string): void; - - /** - * Passes if spy always threw the given object - */ - alwaysThrew(spy: Spy, exception: any): void; - - /** - * Exposes assertions into another object, to better integrate with the test framework - */ - expose(obj: any, options?: ExposeOptions): void; - } - - interface Matcher { - /** - * Logical and - */ - and(expr: Matcher): Matcher; - - /** - * Logical or - */ - or(expr: Matcher): Matcher; - } - - interface ArrayMatcher extends Matcher { - /** - * Requires an Array to be deep equal another one. - */ - deepEquals(expected: any[]): Matcher; - - /** - * Requires an Array to start with the same values as another one. - */ - startsWith(expected: any[]): Matcher; - - /** - * Requires an Array to end with the same values as another one. - */ - endsWith(expected: any[]): Matcher; - - /** - * Requires an Array to contain each one of the values the given array has. - */ - contains(expected: any[]): Matcher; - } - - interface MapMatcher extends Matcher { - /** - * Requires a Map to be deep equal another one. - */ - deepEquals(expected: Map): Matcher; - - /** - * Requires a Map to contain each one of the items the given map has. - */ - contains(expected: Map): Matcher; - } - - interface SetMatcher extends Matcher { - /** - * Requires a Set to be deep equal another one. - */ - deepEquals(expected: Set): Matcher; - - /** - * Requires a Set to contain each one of the items the given set has. - */ - contains(expected: Set): Matcher; - } - - interface Match { - /** - * Requires the value to be == to the given number - */ - (value: number): Matcher; - - /** - * Requires the value to be a string and have the expectation as a substring - */ - (value: string): Matcher; - - /** - * Requires the value to be a string and match the given regular expression - */ - (expr: RegExp): Matcher; - - /** - * Requires the value to be not null or undefined and have at least the same properties as expectation - */ - (obj: any): Matcher; - - /** - * Specify a custom matcher - */ - (callback: (value: any) => boolean, message?: string): Matcher; - - /** - * Matches anything - */ - any: Matcher; - - /** - * Requires the value to be defined - */ - defined: Matcher; - - /** - * Requires the value to be truthy - */ - truthy: Matcher; - - /** - * Requires the value to be falsy - */ - falsy: Matcher; - - /** - * Requires the value to be a boolean - */ - bool: Matcher; - - /** - * Requires the value to be a number - */ - number: Matcher; - - /** - * Requires the value to be a string - */ - string: Matcher; - - /** - * Requires the value to be an object - */ - object: Matcher; - - /** - * Requires the value to be a function - */ - func: Matcher; - - /** - * Requires the value to be a map. - */ - map: MapMatcher; - - /** - * Requires the value to be a set. - */ - set: SetMatcher; - - /** - * Requires the value to be an array. - */ - array: ArrayMatcher; - - /** - * Requires the value to be a regular expression - */ - regexp: Matcher; - - /** - * Requires the value to be a date object - */ - date: Matcher; - - /** - * Requires the value to be a symbol - */ - symbol: Matcher; - - /** - * Requires the value to strictly equal obj - */ - same(obj: any): Matcher; - - /** - * Requires the value to be of the given type - */ - typeOf(type: adone.util.I.PossibleTypes): Matcher; - typeOf(type: string): Matcher; - - /** - * Requires the value to be an instance of the given type - */ - instanceOf(type: any): Matcher; - - /** - * Requires the value to define the given property - */ - has(property: string, expect?: any): Matcher; - - /** - * Requires the value to define the given property by itself - */ - hasOwn(property: string, expect?: any): Matcher; - } - - interface SandboxConfig { - /** - * An object to add properties to - */ - injectInto?: any; - - /** - * What properties to inject - */ - properties?: string[]; - } - - interface Sandbox { - /** - * A convenience reference for assert - */ - assert: Assert; - - /** - * Works exactly like spy, only also adds the returned spy to the internal collection of fakes - */ - spy: typeof spy; - - /** - * Works exactly like stub, only also adds the returned spy to the internal collection of fakes - */ - stub: typeof stub; - - /** - * Works exactly like mock, only also adds the returned spy to the internal collection of fakes - */ - mock: typeof mock; - - /** - * Restores all fakes created through sandbox - */ - restore(): void; - - /** - * Resets the internal state of all fakes created through sandbox - */ - reset(): void; - - /** - * Resets the history of all stubs created through the sandbox - */ - resetHistory(): void; - - /** - * Resets the behaviour of all stubs created through the sandbox - */ - resetBehavior(): void; - - /** - * Causes all stubs created from the sandbox to return promises using a specific promise library - */ - usingPromise(promiseLibrary: any): Sandbox; - - /** - * Verifies all mocks created through the sandbox - */ - verify(): void; - - /** - * Verifies all mocks and restores all fakes created through the sandbox - */ - verifyAndRestore(): void; - } - - interface SandboxStatic { - /** - * Creates a sandbox object with spies, stubs, and mocks - */ - create(config?: SandboxConfig): Sandbox; - } + start(): I.Emitter; } - /** - * Return a function that records arguments, return value, the value of this and exception thrown (if any) for all its calls - */ - function spy(func?: (...args: any[]) => void): I.Spy; - function spy(object: T, method: keyof T): I.Spy; + namespace util { + namespace I { + // based on https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sinon - /** - * Creates a function (spy) with pre-programmed behavior - */ - function stub(obj?: any): I.Stub; - function stub(obj: T, method: keyof T): I.Stub; + interface SpyCallApi { + /** + * The call's this value + */ + thisValue: any; - const expectation: I.ExpectationStatic; + /** + * The call's arguments + */ + args: any[]; - /** - * Creates a fake method (like spy) with pre-programmed behavior (like stub) - */ - function mock(): I.Expectation; - function mock(obj: any): I.Mock; + /** + * Exception throws if any + */ + exception: any; - /** - * Assertions for spies/stubs - */ - export const assert: I.Assert; + /** + * Return value + */ + returnValue: any; - /** - * Creates a matcher function - */ - export const match: I.Match; + /** + * Whether the spy was called on obj (this value) + */ + calledOn(obj: any): boolean; - /** - * Removes the need to keep track of every fake created - */ - export const sandbox: I.SandboxStatic; + /** + * Whether the arguments were args (and possibly others) + */ + calledWith(...args: any[]): boolean; - namespace I { - interface Response extends adone.std.http.IncomingMessage { - body: Buffer; + /** + * Whether the arguments were exactly args (no others) + */ + calledWithExactly(...args: any[]): boolean; + + /** + * Whether the call received matching args (and possibly others) + */ + calledWithMatch(...args: any[]): boolean; + + /** + * Whether the call did not receive args + */ + notCalledWith(...args: any[]): boolean; + + /** + * Whether the call did not receive matching args + */ + notCalledWithMatch(...args: any[]): boolean; + + /** + * Whether the call returned the given value + */ + returned(value: any): boolean; + + /** + * Whether the call threw an exception + */ + threw(): boolean; + + /** + * Whether the call threw an exception of provided type + */ + threw(type: string): boolean; + + /** + * Whether the call threw obj + */ + threw(obj: any): boolean; + + /** + * Calls the argument at the given index + */ + callArg(pos: number): void; + + /** + * Calls the argument at the given index on the given context + */ + callArgOn(pos: number, obj: any): void; + + /** + * Calls the argument at the given index with arguments + */ + callArgWith(pos: number, ...args: any[]): void; + + /** + * Calls the argument at the given index on the given context and with the given arguments + */ + callArgOnWith(pos: number, obj: any, ...args: any[]): void; + + /** + * Calls a callback from the arguments with the given arguments + */ + yield(...args: any[]): void; + + /** + * Calls a callback from the arguments with the given arguments on the given context + */ + yieldOn(obj: any, ...args: any[]): void; + + /** + * Calls with the given arguments a callback that is a property of the call's argument with the given name + */ + yieldTo(property: string, ...args: any[]): void; + + /** + * Calls on the given context with the given arguments a callback that + * is a property of the call's argument with the given name + */ + yieldToOn(property: string, obj: any, ...args: any[]): void; + } + + interface SpyCall extends SpyCallApi { + /** + * Whether the call was called before the given call + */ + calledBefore(call: SpyCall): boolean; + + /** + * Whether the call was called after the given call + */ + calledAfter(call: SpyCall): boolean; + + /** + * Whether the call was called using the new operator + */ + calledWithNew(call: SpyCall): boolean; + } + + interface Spy extends SpyCallApi { + /** + * The number of recorded calls + */ + callCount: number; + + /** + * Whether the spy was called + */ + called: boolean; + + /** + * Whether the spy was not called + */ + notCalled: boolean; + + /** + * Whether the spy was called once + */ + calledOnce: boolean; + + /** + * Whether the spy was called twice + */ + calledTwice: boolean; + + /** + * Whether the spy was called thrice + */ + calledThrice: boolean; + + /** + * The first call + */ + firstCall: SpyCall; + + /** + * The second call + */ + secondCall: SpyCall; + + /** + * The third call + */ + thirdCall: SpyCall; + + /** + * The last call + */ + lastCall: SpyCall; + + /** + * Array of the calls contexts + */ + thisValues: any[]; + + /** + * Array of the calls arguments + */ + args: any[][]; + + /** + * Array of the calls exceptions + */ + exceptions: any[]; + + /** + * Array of the calls return values + */ + returnValues: any[]; + + (...args: any[]): any; + /** + * Whether the spy was called before another spy + */ + calledBefore(anotherSpy: Spy): boolean; + + /** + * Whether the spy was called after another spy + */ + calledAfter(anotherSpy: Spy): boolean; + + /** + * Whether the spy was called before another spy and no spies occured between them + */ + calledImmediatelyBefore(anotherSpy: Spy): boolean; + + /** + * Whether the spy was called after another spy and no spies occured between them + */ + calledImmediatelyAfter(anotherSpy: Spy): boolean; + + /** + * Whether the spy was called using the new operator + */ + calledWithNew(): boolean; + + /** + * Creates a spy that record calls only with the given arguments + */ + withArgs(...args: any[]): Spy; + + /** + * Whether the spy was called on the given context (this value) + */ + alwaysCalledOn(obj: any): boolean; + + /** + * Whether the spy was called with the given arguments (and possibly others) + */ + alwaysCalledWith(...args: any[]): boolean; + + /** + * Whether the spy was called exactly with the given arguments (no others) + */ + alwaysCalledWithExactly(...args: any[]): boolean; + + /** + * Whether the spy was called with the matching arguments (and possibly others) + */ + alwaysCalledWithMatch(...args: any[]): boolean; + + /** + * Whether the spy was never called with the given arguments + */ + neverCalledWith(...args: any[]): boolean; + + /** + * Whether the spy was neven called with the matching arguments + */ + neverCalledWithMatch(...args: any[]): boolean; + + /** + * Whether the spy always threw exceptions + */ + alwaysThrew(): boolean; + + /** + * Whether the spy always threw exceptions of the given types + */ + alwaysThrew(type: string): boolean; + + /** + * Whether the spy always threw the given object + */ + alwaysThrew(obj: any): boolean; + + /** + * Whether the spy always returned the given object + */ + alwaysReturned(obj: any): boolean; + + /** + * Invokes the callbacks passed in the arguments with the given arguments + */ + invokeCallback(...args: any[]): void; + + /** + * Returns the call with the given index + */ + getCall(n: number): SpyCall; + + /** + * Returns all the calls + */ + getCalls(): SpyCall[]; + + /** + * Resets the state of the spy + */ + reset(): void; + + /** + * Returns the passed format string with the given replacements + */ + printf(format: string, ...args: any[]): string; + + /** + * Replaces the spy with the original method if the spy replaced an original method + */ + restore(): void; + + /** + * Waits for the call where the given match function returns true + */ + waitFor(match: (call: SpyCall) => boolean): Promise; + waitFor(match: (call: SpyCall) => boolean, ret: (call: SpyCall) => T): Promise; + + /** + * Waits for a call + */ + waitForCall(): Promise; + + /** + * Waits for n calls + */ + waitForNCalls(n: number): Promise; + + /** + * Waits for the call with the given value at the given index (deep equal) + */ + waitForArg(index: number, value: any): Promise; + + /** + * Waits for the call where the first args are deeply equal to the given, it can have more args than given + */ + waitForArgs(...args: any[]): Promise; + } + + interface Stub extends Spy { + /** + * Resets the stub's behavior to the default behavior + */ + resetBehavior(): void; + + /** + * Resets the stub's history + */ + resetHistory(): void; + + /** + * Causes the stub to return promises using the given promise library + */ + usingPromise(promiseLibrary: any): Stub; + + /** + * Makes the stub return the given object + */ + returns(obj: any): Stub; + + /** + * Causes the stub to return the argument at the given index + */ + returnsArg(index: number): Stub; + + /** + * Causes the stub to return its this value + */ + returnsThis(): Stub; + + /** + * Causes the stub to return a promise that resolves to the given value + */ + resolves(value?: any): Stub; + + /* + * Causes the stub to throw an exception of the given type + */ + throws(type?: string): Stub; + + /** + * Causes the stub to throw the given object + */ + throws(obj: any): Stub; + + /** + * Causes the stub to throw the argument at the given index + */ + throwsArg(index: number): Stub; + + /* + * Causes the stub to throw an exception of the given type + */ + throwsException(type?: string): Stub; + + /** + * Causes the stub to throw the argument at the given index + */ + throwsException(obj: any): Stub; + + /** + * Causes the stub to reject + */ + rejects(): Stub; + + /** + * Causes the stub to reject with the given type + */ + rejects(errorType: string): Stub; + + /** + * Causes the stub to reject with the given value + */ + rejects(value: any): Stub; + + /** + * Causes the stub to call the argument at the provided index as a callback function + */ + callsArg(index: number): Stub; + + /** + * Causes the original method wrapped into the stub to be called when none of the conditional stubs are matched + */ + callThrough(): Stub; + + /** + * Causes the stub to call the argument at the provided index as a callback function on the given context + */ + callsArgOn(index: number, context: any): Stub; + + /** + * Causes the stub to call the argument at the provided index as a callback function with the given arguments + */ + callsArgWith(index: number, ...args: any[]): Stub; + + /** + * Causes the stub to call the argument at the provided index as a callback function on the given context with the given arguments + */ + callsArgOnWith(index: number, context: any, ...args: any[]): Stub; + + /** + * Causes the stub to asynchronously call the argument at the provided index as a callback function + */ + callsArgAsync(index: number): Stub; + + /** + * Causes the stub to asynchronously call the argument at the provided index as a callback function on the given context + */ + callsArgOnAsync(index: number, context: any): Stub; + + /** + * Causes the stub to asynchronously call the argument at the provided index as a callback function on the given context with the given arguments + */ + callsArgWithAsync(index: number, ...args: any[]): Stub; + + /** + * Causes the stub to asynchronously call the argument at the provided index as a callback function on the given context with the given arguments + */ + callsArgOnWithAsync(index: number, context: any, ...args: any[]): Stub; + + /** + * Makes the stub call the provided fake function + */ + callsFake(func: (...args: any[]) => void): Stub; + + /** + * Replaces a new getter with this stub + */ + get(func: () => any): Stub; + + /** + * Replaces a new getter with this stub + */ + set(func: (v: any) => void): Stub; + + /** + * Defines the behavior of the stub on the call with the given index + */ + onCall(n: number): Stub; + + /** + * Defines the behavior of the stub on the first call + */ + onFirstCall(): Stub; + + /** + * Defines the behavior of the stub on the second call + */ + onSecondCall(): Stub; + + /** + * Defines the behavior of the stub on the third call + */ + onThirdCall(): Stub; + + /** + * Defines a new value for this stub + */ + value(val: any): Stub; + + /** + * Causes the stub to call the first callback it receives with the provided arguments + */ + yields(...args: any[]): Stub; + + /** + * Causes the stub to call the first callback it receives with the provided arguments on the given context + */ + yieldsOn(context: any, ...args: any[]): Stub; + + /** + * Causes the stub to call the last callback it receives with the provided arguments + */ + yieldsRight(...args: any[]): Stub; + + /** + * Causes the stub to invoke a callback passed as a property of an object to the spy + */ + yieldsTo(property: string, ...args: any[]): Stub; + + /** + * Causes the stub to invoke a callback passed as a property of an object to the spy on the given context + */ + yieldsToOn(property: string, context: any, ...args: any[]): Stub; + + /** + * Causes the stub to asynchronously call the first callback it receives with the provided arguments + */ + yieldsAsync(...args: any[]): Stub; + + /** + * Causes the stub to asynchronously call the first callback it receives with the provided arguments on the given context + */ + yieldsOnAsync(context: any, ...args: any[]): Stub; + + /** + * Causes the stub to asynchronously invoke a callback passed as a property of an object to the spy + */ + yieldsToAsync(property: string, ...args: any[]): Stub; + + /** + * Causes the stub to asynchronously invoke a callback passed as a property of an object to the spy on the given context + */ + yieldsToOnAsync(property: string, context: any, ...args: any[]): Stub; + + /** + * Stubs the method only for the provided arguments + */ + withArgs(...args: any[]): Stub; + } + + interface Expectation extends Stub { + /** + * Specifies the minimum amount of calls expected + */ + atLeast(n: number): Expectation; + + /** + * Specifies the maximum amount of calls expected + */ + atMost(n: number): Expectation; + + /** + * Expects the method to never be called + */ + never(): Expectation; + + /** + * Expects the method to be called exactly once + */ + once(): Expectation; + + /** + * Expects the method to be called exactly twice + */ + twice(): Expectation; + + /** + * Expects the method to be called exactly thrice + */ + thrice(): Expectation; + + /** + * Expects the method to be called exactly n times + */ + exactly(n: number): Expectation; + + /** + * Expects the method to be called with the provided arguments and possibly others + */ + withArgs(...args: any[]): Expectation; + + /** + * Expects the method to be called with the provided arguments and no others + */ + withExactArgs(...args: any[]): Expectation; + + /** + * Expects the method to be called with obj as this + */ + on(obj: any): Expectation; + + /** + * Verifies the expectation and throws an exception if it’s not met + */ + verify(): Expectation; + + /** + * Restores all mocked methods + */ + restore(): void; + } + + interface ExpectationStatic { + /** + * Creates a new expectation + */ + create(methodName?: string): Expectation; + } + + interface Mock { + /** + * Overrides obj.method with a mock function and returns it + */ + expects(method: string): Expectation; + + /** + * Restores all mocked methods + */ + restore(): void; + + /** + * Verifies all expectations on the mock + */ + verify(): void; + } + + interface ExposeOptions { + /** + * prefix to give assertions + */ + prefix?: string; + + /** + * Whether to copy the fail and failException properties + */ + includeFail?: boolean; + } + + interface Assert { + /** + * Default error type thrown by .fail + */ + failException: string; + + /** + * Every assertion fails by calling this method + */ + fail(message?: string): void; + + /** + * Called every time assertion passes + */ + pass(assertion: any): void; + + /** + * Passes if spy was never called + */ + notCalled(spy: Spy): void; + + /** + * Passes if spy was called at least once + */ + called(spy: Spy): void; + + /** + * Passes if spy was called once and only once + */ + calledOnce(spy: Spy): void; + + /** + * Passes if spy was called exactly twice + */ + calledTwice(spy: Spy): void; + + /** + * Passes if spy was called exactly three times + */ + calledThrice(spy: Spy): void; + + /** + * Passes if spy was called exactly count times + */ + callCount(spy: Spy, count: number): void; + + /** + * Passes if provided spies were called in the specified order + */ + callOrder(...spies: Spy[]): void; + + /** + * Passes if spy was ever called with obj as its this value + */ + calledOn(spy: Spy, obj: any): void; + + /** + * Passes if spy was always called with obj as its this value + */ + alwaysCalledOn(spy: Spy, obj: any): void; + + /** + * Passes if spy was called with the provided arguments + */ + calledWith(spy: Spy, ...args: any[]): void; + + /** + * Passes if spy was always called with the provided arguments + */ + alwaysCalledWith(spy: Spy, ...args: any[]): void; + + /** + * Passes if spy was never called with the provided arguments + */ + neverCalledWith(spy: Spy, ...args: any[]): void; + + /** + * Passes if spy was called with the provided arguments and no others + */ + calledWithExactly(spy: Spy, ...args: any[]): void; + + /** + * Passes if spy was always called with the provided arguments and no others + */ + alwaysCalledWithExactly(spy: Spy, ...args: any[]): void; + + /** + * Passes if spy was called with matching arguments. + */ + calledWithMatch(spy: Spy, ...args: any[]): void; + + /** + * Passes if spy was always called with matching arguments + */ + alwaysCalledWithMatch(spy: Spy, ...args: any[]): void; + + /** + * Passes if spy was never called with matching arguments + */ + neverCalledWithMatch(spy: Spy, ...args: any[]): void; + + /** + * Passes if spy threw + */ + threw(spy: Spy): void; + + /** + * Passes if spy threw the given exception type + */ + threw(spy: Spy, exception: string): void; + + /** + * Passes if spy threw the given object + */ + threw(spy: Spy, exception: any): void; + + /** + * Passes if always spy threw + */ + alwaysThrew(spy: Spy): void; + + /** + * Passes if spy always threw the given exception type + */ + alwaysThrew(spy: Spy, exception: string): void; + + /** + * Passes if spy always threw the given object + */ + alwaysThrew(spy: Spy, exception: any): void; + + /** + * Exposes assertions into another object, to better integrate with the test framework + */ + expose(obj: any, options?: ExposeOptions): void; + } + + interface Matcher { + /** + * Logical and + */ + and(expr: Matcher): Matcher; + + /** + * Logical or + */ + or(expr: Matcher): Matcher; + } + + interface ArrayMatcher extends Matcher { + /** + * Requires an Array to be deep equal another one. + */ + deepEquals(expected: any[]): Matcher; + + /** + * Requires an Array to start with the same values as another one. + */ + startsWith(expected: any[]): Matcher; + + /** + * Requires an Array to end with the same values as another one. + */ + endsWith(expected: any[]): Matcher; + + /** + * Requires an Array to contain each one of the values the given array has. + */ + contains(expected: any[]): Matcher; + } + + interface MapMatcher extends Matcher { + /** + * Requires a Map to be deep equal another one. + */ + deepEquals(expected: Map): Matcher; + + /** + * Requires a Map to contain each one of the items the given map has. + */ + contains(expected: Map): Matcher; + } + + interface SetMatcher extends Matcher { + /** + * Requires a Set to be deep equal another one. + */ + deepEquals(expected: Set): Matcher; + + /** + * Requires a Set to contain each one of the items the given set has. + */ + contains(expected: Set): Matcher; + } + + interface Match { + /** + * Requires the value to be == to the given number + */ + (value: number): Matcher; + + /** + * Requires the value to be a string and have the expectation as a substring + */ + (value: string): Matcher; + + /** + * Requires the value to be a string and match the given regular expression + */ + (expr: RegExp): Matcher; + + /** + * Requires the value to be not null or undefined and have at least the same properties as expectation + */ + (obj: any): Matcher; + + /** + * Specify a custom matcher + */ + (callback: (value: any) => boolean, message?: string): Matcher; + + /** + * Matches anything + */ + any: Matcher; + + /** + * Requires the value to be defined + */ + defined: Matcher; + + /** + * Requires the value to be truthy + */ + truthy: Matcher; + + /** + * Requires the value to be falsy + */ + falsy: Matcher; + + /** + * Requires the value to be a boolean + */ + bool: Matcher; + + /** + * Requires the value to be a number + */ + number: Matcher; + + /** + * Requires the value to be a string + */ + string: Matcher; + + /** + * Requires the value to be an object + */ + object: Matcher; + + /** + * Requires the value to be a function + */ + func: Matcher; + + /** + * Requires the value to be a map. + */ + map: MapMatcher; + + /** + * Requires the value to be a set. + */ + set: SetMatcher; + + /** + * Requires the value to be an array. + */ + array: ArrayMatcher; + + /** + * Requires the value to be a regular expression + */ + regexp: Matcher; + + /** + * Requires the value to be a date object + */ + date: Matcher; + + /** + * Requires the value to be a symbol + */ + symbol: Matcher; + + /** + * Requires the value to strictly equal obj + */ + same(obj: any): Matcher; + + /** + * Requires the value to be of the given type + */ + typeOf(type: adone.util.I.PossibleTypes): Matcher; + typeOf(type: string): Matcher; + + /** + * Requires the value to be an instance of the given type + */ + instanceOf(type: any): Matcher; + + /** + * Requires the value to define the given property + */ + has(property: string, expect?: any): Matcher; + + /** + * Requires the value to define the given property by itself + */ + hasOwn(property: string, expect?: any): Matcher; + } + + interface SandboxConfig { + /** + * An object to add properties to + */ + injectInto?: any; + + /** + * What properties to inject + */ + properties?: string[]; + } + + interface Sandbox { + /** + * A convenience reference for assert + */ + assert: Assert; + + /** + * Works exactly like spy, only also adds the returned spy to the internal collection of fakes + */ + spy: typeof spy; + + /** + * Works exactly like stub, only also adds the returned spy to the internal collection of fakes + */ + stub: typeof stub; + + /** + * Works exactly like mock, only also adds the returned spy to the internal collection of fakes + */ + mock: typeof mock; + + /** + * Restores all fakes created through sandbox + */ + restore(): void; + + /** + * Resets the internal state of all fakes created through sandbox + */ + reset(): void; + + /** + * Resets the history of all stubs created through the sandbox + */ + resetHistory(): void; + + /** + * Resets the behaviour of all stubs created through the sandbox + */ + resetBehavior(): void; + + /** + * Causes all stubs created from the sandbox to return promises using a specific promise library + */ + usingPromise(promiseLibrary: any): Sandbox; + + /** + * Verifies all mocks created through the sandbox + */ + verify(): void; + + /** + * Verifies all mocks and restores all fakes created through the sandbox + */ + verifyAndRestore(): void; + } + + interface SandboxStatic { + /** + * Creates a sandbox object with spies, stubs, and mocks + */ + create(config?: SandboxConfig): Sandbox; + } } - interface ExpectBodyOptions { - decompress?: boolean; + /** + * Return a function that records arguments, return value, the value of this and exception thrown (if any) for all its calls + */ + function spy(func?: (...args: any[]) => void): I.Spy; + function spy(object: T, method: keyof T): I.Spy; + + /** + * Creates a function (spy) with pre-programmed behavior + */ + function stub(obj?: any): I.Stub; + function stub(obj: T, method: keyof T): I.Stub; + + const expectation: I.ExpectationStatic; + + /** + * Creates a fake method (like spy) with pre-programmed behavior (like stub) + */ + function mock(): I.Expectation; + function mock(obj: any): I.Mock; + + /** + * Assertions for spies/stubs + */ + export const assert: I.Assert; + + /** + * Creates a matcher function + */ + export const match: I.Match; + + /** + * Removes the need to keep track of every fake created + */ + export const sandbox: I.SandboxStatic; + + namespace I { + interface Response extends nodestd.http.IncomingMessage { + body: Buffer; + } + + interface ExpectBodyOptions { + decompress?: boolean; + } + + interface AttachOptions { + type?: string; + filename?: string; + } + + interface Request extends Promise { + /** + * Sets the request method to GET + */ + get(path: string): this; + + /** + * Sets the request method to HEAD + */ + head(path: string): this; + + /** + * Sets the request method to POST + */ + post(path: string): this; + + /** + * Attaches an attachment + */ + attach(name: string, contents: string | Buffer, options?: AttachOptions): this; + + /** + * Attaches an attachment like a field + */ + field(name: string, value: string): this; + + /** + * Sets the request body + */ + send(value: string): this; + + /** + * Sets the request method to OPTIONS + */ + options(path: string): this; + + /** + * Sets the request method to PUT + */ + put(path: string): this; + + /** + * Sets a header value + */ + setHeader(key: string, value: string): this; + + /** + * Sets the basic auth header + */ + auth(username: string, password: string): this; + + /** + * Executes a function with the response and asserts it returns true + */ + expect(fn: (response: Response) => boolean | Promise): this; + + /** + * Asserts the response status + */ + expectStatus(code: number, message?: string): this; + + /** + * Asserts the respose status message + */ + expectStatusMessage(value: string): this; + + /** + * Asserts the response body + */ + expectBody(body: RegExp | string | Buffer, options?: ExpectBodyOptions): this; + + /** + * Asserts the response json body + */ + expectBody(body: object, options?: ExpectBodyOptions): this; + + /** + * Asserts that the response body is empty + */ + expectEmptyBody(): this; + + /** + * Asserts that the response has a header with the given key and value + */ + expectHeader(key: string, value: string | RegExp): this; + + /** + * Asserts that the response has a header with the given name + */ + expectHeaderExists(key: string): this; + + /** + * Asserts that the response does not have a header with the given name + */ + expectNoHeader(key: string): this; + } } - interface AttachOptions { - type?: string; - filename?: string; + /** + * Assertion tool for http server responses + */ + function request(server: any): I.Request; // TODO: sever must be adone.net.http.server.Server or standard node.js server + + namespace FS { + // TODO: after fs } - interface Request extends Promise { - /** - * Sets the request method to GET - */ - get(path: string): this; - - /** - * Sets the request method to HEAD - */ - head(path: string): this; - - /** - * Sets the request method to POST - */ - post(path: string): this; - - /** - * Attaches an attachment - */ - attach(name: string, contents: string | Buffer, options?: AttachOptions): this; - - /** - * Attaches an attachment like a field - */ - field(name: string, value: string): this; - - /** - * Sets the request body - */ - send(value: string): this; - - /** - * Sets the request method to OPTIONS - */ - options(path: string): this; - - /** - * Sets the request method to PUT - */ - put(path: string): this; - - /** - * Sets a header value - */ - setHeader(key: string, value: string): this; - - /** - * Sets the basic auth header - */ - auth(username: string, password: string): this; - - /** - * Executes a function with the response and asserts it returns true - */ - expect(fn: (response: Response) => boolean | Promise): this; - - /** - * Asserts the response status - */ - expectStatus(code: number, message?: string): this; - - /** - * Asserts the respose status message - */ - expectStatusMessage(value: string): this; - - /** - * Asserts the response body - */ - expectBody(body: RegExp | string | Buffer, options?: ExpectBodyOptions): this; - - /** - * Asserts the response json body - */ - expectBody(body: object, options?: ExpectBodyOptions): this; - - /** - * Asserts that the response body is empty - */ - expectEmptyBody(): this; - - /** - * Asserts that the response has a header with the given key and value - */ - expectHeader(key: string, value: string | RegExp): this; - - /** - * Asserts that the response has a header with the given name - */ - expectHeaderExists(key: string): this; - - /** - * Asserts that the response does not have a header with the given name - */ - expectNoHeader(key: string): this; + namespace nock { + // TODO: after revision } } - - /** - * Assertion tool for http server responses - */ - function request(server: any): I.Request; // TODO: sever must be adone.net.http.server.Server or standard node.js server - - namespace FS { - // TODO: after fs - } - - namespace nock { - // TODO: after revision - } } } diff --git a/types/adone/glosses/std.d.ts b/types/adone/glosses/std.d.ts index 9c30b41f62..ec4bc4c37a 100644 --- a/types/adone/glosses/std.d.ts +++ b/types/adone/glosses/std.d.ts @@ -63,3 +63,5 @@ export { timers, dgram, }; + +export as namespace nodestd; diff --git a/types/adone/glosses/streams.d.ts b/types/adone/glosses/streams.d.ts new file mode 100644 index 0000000000..012a6aadc3 --- /dev/null +++ b/types/adone/glosses/streams.d.ts @@ -0,0 +1,223 @@ +declare namespace adone { + namespace stream { + namespace I.CoreStream { + interface ConstructorOptions { + /** + * Whether the initial stream is asynchronous + */ + async?: boolean; + + /** + * Whether the initial stream is synchronous + */ + sync?: boolean; + + /** + * The initial transform (passthrough is default) + */ + transform?: TransformFunction; + + /** + * The initial flush function + */ + flush?: FlushFunction; + } + + type Source = S[] | CoreStream; + + interface TransformContext { + /** + * Pushes the given value into the stream + */ + push(value: T): boolean; + } + + type TransformFunction = (this: TransformContext, value: S) => void; + type FlushFunction = (this: TransformContext) => void; + } + + /** + * Represents a chain of transform streams + */ + class CoreStream implements PromiseLike { + constructor(source?: I.CoreStream.Source, options?: I.CoreStream.ConstructorOptions); + + /** + * Writes the given value into the stream + */ + write(value: S): boolean; + + /** + * Pushes the given value into the stream + */ + push(value: T): boolean; + + /** + * Ends the stream + */ + end(): this; + + /** + * Destroys the stream + */ + destroy(): this; + + /** + * Pauses the stream + */ + pause(): this; + + /** + * Resumes the stream + */ + resume(): this; + + /** + * Whether the stream is paused + */ + isPaused(): boolean; + + /** + * Whether the stream is ended + */ + isEnded(): boolean; + + /** + * Pipes this stream to another + */ + pipe(stream: T, options?: { end?: boolean }): T; + + /** + * Adds a new synchronous transform stream into the chain + */ + throughSync(transform: I.CoreStream.TransformFunction, flush?: I.CoreStream.FlushFunction): CoreStream; + + /** + * Adds a new asynchronous transform stream into the chain + */ + throughAsync(transform: I.CoreStream.TransformFunction, flush?: I.CoreStream.FlushFunction): CoreStream; + + /** + * Adds a new transform stream into the chain + */ + through(transform: I.CoreStream.TransformFunction, flush?: I.CoreStream.FlushFunction): CoreStream; + + /** + * Adds a new map transform into the chain. + * + * Note: synchronous functions create a synchronous transform. + * If your function returns a promise use an asynchronous function if you don't want to pass a promise through the stream + */ + map(callback: (value: T) => R | Promise): CoreStream; + + /** + * Adds a new conditional map transform into the chain + */ + mapIf(condition: (value: T) => boolean | Promise, callback: (value: T) => R): CoreStream; + + /** + * Adds a new filter transform into the chain + */ + filter(callback: (value: T) => boolean | Promise): this; + + /** + * Adds a new transform that calls the given callback for each value from the stream. + * + * This method resumes the stream. + */ + forEach(callback: (value: T) => void, options?: { + /** + * Whethe to wait for asynchronous functions (await) + */ + wait?: boolean, + + /** + * Passthrough the read values, by default it eats everything + */ + passthrough?: boolean + }): this; + + /** + * Adds a new transform that calls the given callback when the underlying stream ends. + * + * This method resumes the stream. + */ + done(callback: () => void, options?: { + /** + * Passthrough the read values, by default it eats everything + */ + passthrough?: boolean + }): this; + + /** + * Adds a new transform that gather all the read values into an array and calls the given callback + * when the underlying stream ends. + * + * This method resumes the stream. + */ + toArray(callback: (result: T[]) => void, options?: { + /** + * Passthrough the read values, by default it eats everything + */ + passthrough?: boolean + }): this; + + /** + * Adds a new transform that filters the values by their uniqueness + * + * @param prop callback that calculates value's hash which is used in uniqueness checks + */ + unique(prop?: (value: T) => any): this; + + /** + * Adds a new transform that filters the values using the given given function with ability to restore the filtered values + */ + stash(name: string, filter: (value: T) => boolean): this; + stash(filter: (value: T) => boolean): this; + + /** + * Adds a new transform that restores the previous stashed values + */ + unstash(name?: string): CoreStream; // ?? + + /** + * Flattens all the read array values + */ + flatten(): CoreStream; // ?? + + /** + * Merges the given stream into a core stream + */ + static merge(streams: Array | nodestd.stream.Transform | nodestd.stream.Readable | nodestd.stream.Duplex>, options?: { + /** + * Whether to end the stream when all the given streams end + */ + end?: boolean, + + /** + * Options for the initial core stream + */ + sourceOptions?: I.CoreStream.ConstructorOptions + }): CoreStream; + + /** + * Creates a promise that will be fulfilled with an array of all the emitted values or the first occurred error. + * + * This method resumes the stream. + */ + then(onResolve?: (value: T[]) => T1 | PromiseLike, onReject?: (reason: any) => T2 | PromiseLike): Promise; + + /** + * Creates a promise that will be fulfilled with an array of all the emitted values or the first occurred error. + * + * This method resumes the stream. + */ + catch(onReject?: (reason: any) => T1 | PromiseLike): Promise; + } + + /** + * Creates a CoreStream instance + */ + function core(source?: I.CoreStream.Source, options?: I.CoreStream.ConstructorOptions): CoreStream; + } +} diff --git a/types/adone/glosses/utils.d.ts b/types/adone/glosses/utils.d.ts index 8f90ae180b..6a05273ffd 100644 --- a/types/adone/glosses/utils.d.ts +++ b/types/adone/glosses/utils.d.ts @@ -1,473 +1,576 @@ -/** - * various utility functions - */ -export namespace util { - function arrify(val: T[]): T[]; - function arrify(val: T): [T]; +declare namespace adone { + /** + * various utility functions + */ + namespace util { + function arrify(val: T[]): T[]; + function arrify(val: T): [T]; - function slice(args: T[], sliceStart?: number, sliceEnd?: number): T[]; + function slice(args: T[], sliceStart?: number, sliceEnd?: number): T[]; - function spliceOne(list: any[], index: number): void; + function spliceOne(list: any[], index: number): void; - function normalizePath(str: string, stripTrailing?: boolean): string; + function normalizePath(str: string, stripTrailing?: boolean): string; - function unixifyPath(filePath: string, unescape?: boolean): string; + function unixifyPath(filePath: string, unescape?: boolean): string; - function functionName(fn: (...args: any[]) => any): string; + function functionName(fn: (...args: any[]) => any): string; - function mapArguments(argmap: (...args: any[]) => any | any[]): (...args: any[]) => any; - function mapArguments(argmap: number): (...args: T[]) => T[]; - function mapArguments(...args: any[]): (x: T) => T; + function mapArguments(argmap: (...args: any[]) => any): (...args: any[]) => any; + function mapArguments(argmap: number): (...args: T[]) => T[]; + function mapArguments(...args: any[]): (x: T) => T; - namespace I { - interface ParseMsResult { - days: number; - hours: number; - minutes: number; - seconds: number; - milliseconds: number; - } - } - function parseMs(ms: number): I.ParseMsResult; - - function pluralizeWord(str: string, plural?: string, count?: number): string; - - function functionParams(func: (...args: any[]) => any): string[]; - - function randomChoice(arrayLike: ArrayLike, from?: number, to?: number): T; - - function shuffleArray(array: T[]): T[]; - - function enumerate(iterable: Iterable, start?: number): IterableIterator<[number, T]>; - - function zip(a: Iterable, b: Iterable): IterableIterator<[T1, T2]>; - function zip(a: Iterable, b: Iterable, c: Iterable): IterableIterator<[T1, T2, T3]>; - function zip(a: Iterable, b: Iterable, c: Iterable, d: Iterable): IterableIterator<[T1, T2, T3, T4]>; - function zip(...iterables: Array>): IterableIterator; - - namespace I { - interface KeysOptions { - onlyEnumerable?: boolean; - followProto?: boolean; - all?: boolean; - } - } - function keys(object: object, options?: I.KeysOptions): string[]; - - function values(object: object, options?: I.KeysOptions): any[]; - - function entries(object: object, options?: I.KeysOptions): Array; - - function toDotNotation(object: object): object; - - namespace I { - interface FlattenOptions { - depth?: number; - } - } - function flatten(array: any[], options?: I.FlattenOptions): any[]; - - function globParent(str: string): string; - - namespace I { - interface ByResult { - (a: S, b: S): R; - compare(a: T, b: T): R; - by(a: S): T; - } - } - function by(by: (a: S) => T, compare?: (a: T, b: T) => R): I.ByResult; - - function toFastProperties(object: object): object; - - function stripBom(x: string): string; - - namespace I { - interface SortKeysOptions { - deep?: boolean; - compare?(a: any, b: any): number; - } - } - function sortKeys(object: object, options?: I.SortKeysOptions): object; - - namespace I { - interface GlobizeOptions { - exts?: string; - recursively?: boolean; - } - } - function globize(path: string, options?: I.GlobizeOptions): string; - - function unique(array: T[], projection?: (a: T) => any): T[]; - - function invertObject(source: object, options?: I.KeysOptions): object; - - namespace I { - interface HumanizeTimeOptions { - msDecimalDigits?: number; - secDecimalDigits?: number; - verbose?: boolean; - compact?: boolean; - } - } - function humanizeTime(ms: number, options?: I.HumanizeTimeOptions): string; - function humanizeSize(num: number, space?: string): string; - - function parseSize(str: string | number): number | null; - - namespace I { - interface CloneOptions { - deep?: boolean; - } - } - function clone(object: object, options?: I.CloneOptions): object; - - function toUTF8Array(str: string): number[]; - - function asyncIter(array: T[], iter: (elem: T, index: number, cb: () => void) => any, cb: () => void): void; - - function asyncFor(obj: { [key: string]: T }, iter: (key: string, value: T, index: number, length: number, next: () => void) => void, cb: () => void): void; - - namespace I { - interface OnceOptions { - silent: boolean; - } - } - function once(fn: (...args: any[]) => T, options?: I.OnceOptions): (...args: any[]) => T; - - namespace I { - type WaterFallTask = (...args: any[]) => void; - } - function asyncWaterfall(tasks: I.WaterFallTask[], callback?: (err?: Error | null, ...args: any[]) => void): void; - - function xrange(start?: number, stop?: number, step?: number): IterableIterator; - - function range(start?: number, stop?: number, step?: number): number[]; - - function reFindAll(regexp: RegExp, str: string): RegExpExecArray[]; - - function assignDeep(target: T, ...sources: object[]): T; - - namespace I { - interface MatchOptions { - index?: boolean; - start?: number; - end?: number; - dot?: boolean; - } - } - function match(criteria: any | any[], options?: I.MatchOptions): (value: any | any[], options?: I.MatchOptions) => number | boolean; - function match(criteria: any | any[], value: any | any[], options?: I.MatchOptions): number | boolean; - - namespace I { - interface ToposortFunction { - (edges: Array<[T, T]>): T[]; - array(nodes: T[], edges: Array<[T, T]>): T[]; - } - } - const toposort: I.ToposortFunction; - - namespace I { - interface JSEscOptions { - escapeEverything?: boolean; - minimal?: boolean; - isScriptContext?: boolean; - quotes?: string; - wrap?: boolean; - es6?: boolean; - json?: boolean; - compact?: boolean; - lowercaseHex?: boolean; - numbers?: string; - indent?: string; - indentLevel?: number; - __inline1__?: boolean; - __inline2__?: boolean; - } - } - function jsesc(argument: any, options?: I.JSEscOptions): string; - - namespace I { - type PossibleTypes = "object" | "class" | "null" | "global" | "Array" | "RegExp" | "Date" - | "Promise" | "Set" | "Map" | "WeakSet" | "DataView" | "Map Iterator" | "Set Iterator" - | "Array Iterator" | "String Iterator" | "Object" | "function" | "boolean" | "number" - | "undefined" | "string" | "symbol"; - } - - function typeOf(obj: any): I.PossibleTypes; - function typeOf(obj: any): string; - - namespace memcpy { - function utou(target: Buffer, targetOffset: number, source: Buffer, sourceStart: number, sourceEnd: number): number; - function atoa(target: ArrayBuffer, targetOffset: number, source: ArrayBuffer, sourceStart: number, sourceEnd: number): number; - function atou(target: Buffer, targetOffset: number, source: ArrayBuffer, sourceStart: number, sourceEnd: number): number; - function utoa(target: ArrayBuffer, targetOffset: number, source: Buffer, sourceStart: number, sourceEnd: number): number; - function copy(target: Buffer | ArrayBuffer, targetOffset: number, source: Buffer | ArrayBuffer, sourceStart: number, sourceEnd: number): number; - } - - namespace uuid { namespace I { - interface V1Options { - clockseq?: number; - msecs?: number; - nsecs?: number; + interface ParseMsResult { + days: number; + hours: number; + minutes: number; + seconds: number; + milliseconds: number; } } - function v1(options?: I.V1Options): string; - function v1(options: I.V1Options, buf: any[], offset?: number): number[]; + function parseMs(ms: number): I.ParseMsResult; - function v4(options?: any): string; - function v4(options: any, buf: any[], offset?: number): number[]; + function pluralizeWord(str: string, plural?: string, count?: number): string; - function v5(name: string | number[], namespace: string | number[]): string; - function v5(name: string | number[], namespace: string | number[], buf: any[], offset?: number): number[]; - } + function functionParams(func: (...args: any[]) => any): string[]; - namespace I { - interface Delegator { - method(name: string): Delegator; - access(name: string): Delegator; - getter(name: string): Delegator; - setter(name: string): Delegator; - } - } - function delegate(object: object, property: string): I.Delegator; + function randomChoice(arrayLike: ArrayLike, from?: number, to?: number): T; - namespace I { - interface GlobExpOptions { - nocomment?: boolean; - nonegate?: boolean; - nobrace?: boolean; - noglobstar?: boolean; - nocase?: boolean; - dot?: boolean; - noext?: boolean; - matchBase?: boolean; - flipNegate?: boolean; - } - } + function shuffleArray(array: T[]): T[]; - class GlobExp { - constructor(pattern: string, options?: I.GlobExpOptions); + function enumerate(iterable: Iterable, start?: number): IterableIterator<[number, T]>; - hasMagic(): boolean; + function zip(a: Iterable, b: Iterable): IterableIterator<[T1, T2]>; + function zip(a: Iterable, b: Iterable, c: Iterable): IterableIterator<[T1, T2, T3]>; + function zip(a: Iterable, b: Iterable, c: Iterable, d: Iterable): IterableIterator<[T1, T2, T3, T4]>; + function zip(...iterables: Array>): IterableIterator; - static hasMagic(pattern: string, options?: I.GlobExpOptions): boolean; - - expandBraces(): string[]; - - static expandBraces(pattern: string, options?: I.GlobExpOptions): string[]; - - makeRe(): RegExp; - - static makeRe(pattern: string, options?: I.GlobExpOptions): RegExp; - - static test(p: string, pattern: string, options?: I.GlobExpOptions): boolean; - - test(p: string): boolean; - } - - namespace iconv { - // TODO: need to normalize source code - } - - namespace sqlstring { - function escapeId(val: string | string[], forbidQualified?: boolean): string; - function dateToString(date: any, timeZone?: string): string; - function arrayToList(array: any[]): string; - function bufferToString(buffer: Buffer): string; - function objectToValues(object: object, timeZone?: string): string; - function escape(value: any, stringifyObjects?: boolean, timeZone?: string): string; - function format(sql: string, values?: any | any[], stringifyObjects?: boolean, timeZone?: string): string; - } - - namespace I { - interface EditorOptions { - text?: string; - editor?: string; - path?: string; - ext?: string; - } - } - class Editor { - static DEFAULT: string; - - constructor(options?: I.EditorOptions); - - spawn(): Promise; - - run(): Promise; - - cleanup(): Promise; - - static edit(options?: I.EditorOptions): Promise; - } - - namespace I { - interface BinarySearchFunction { - (aHaystack: T[], aNeedle: number, aLow?: number, aHigh?: number, aCompare?: (a: T, b: T) => number, aBias?: number): T; - GREATEST_LOWER_BOUND: number; - LEAST_UPPER_BOUND: number; - } - } - const binarySearch: I.BinarySearchFunction; - - namespace buffer { - function concat(list: Buffer[], totalLength: number): Buffer; - function mask(buffer: Buffer, mask: Buffer, output: Buffer, offset: number, length: number): void; - function unmask(buffer: Buffer, mask: Buffer): void; - } - - function shebang(str: string): string | null; - - class ReInterval { - constructor(callback: (...args: any[]) => void, interval: number, args?: any[]); - - reschedule(interval: number): void; - - clear(): void; - - destroy(): void; - } - - class RateLimiter { - constructor(tokensPerInterval?: number, interval?: number, fireImmediately?: boolean); - - removeTokens(count: number): Promise; - - tryRemoveTokens(count: number): boolean; - - getTokensRemaining(): number; - } - - namespace I { - interface ThrottleOptions { - max?: number; - interval?: number; - ordered?: boolean; - waitForReturn?: boolean; - } - } - function throttle(fn: () => R, options?: I.ThrottleOptions): () => Promise; - function throttle(fn: (a: T1) => R, options?: I.ThrottleOptions): (a: T1) => Promise; - function throttle(fn: (a: T1, b: T2) => R, options?: I.ThrottleOptions): (a: T1, b: T2) => Promise; - function throttle(fn: (a: T1, b: T2, c: T3) => R, options?: I.ThrottleOptions): (a: T1, b: T2, c: T3) => Promise; - function throttle(fn: (a: T1, b: T2, c: T3, d: T4) => R, options?: I.ThrottleOptions): (a: T1, b: T2, c: T3, d: T4) => Promise; - function throttle(fn: (a: T1, b: T2, c: T3, d: T4, e: T5) => R, options?: I.ThrottleOptions): (a: T1, b: T2, c: T3, d: T4, e: T5) => Promise; - function throttle(fn: (...args: any[]) => R, options?: I.ThrottleOptions): (...args: any[]) => Promise; - - namespace I.fakeClock { - interface Timer { - id: number; - ref(): void; - unref(): void; - } - interface Clock { - setTimeout(func: (...args: any[]) => void, timeout: number, ...args: any[]): Timer; - clearTimeout(timer: Timer): void; - nextTick(func: (...args: any[]) => void, ...args: any[]): void; - setInterval(func: (...args: any[]) => void, ...args: any[]): Timer; - clearInterval(timer: Timer): void; - setImmediate(func: (...args: any[]) => void, ...args: any[]): Timer; - clearImmediate(timer: Timer): void; - updateHrTime(newNow: number): void; - tick(ms: number): number; - next(): number; - runAll(): number; - runToLast(): number; - setSystemTime(systemTime: number): void; - hrtime(prev?: [number, number]): [number, number]; - } - interface InstalledClock extends Clock { - uninstall(): void; - } - interface InstallOptions { - target?: object; - now?: number; - toFake?: string[]; - loopLimit?: number; - shouldAdvanceTime?: boolean; - advanceTimeDelta?: number; - } - - interface Timers { - setTimeout: typeof global.setTimeout; - clearTimeout: typeof global.clearTimeout; - setInterval: typeof global.setInterval; - clearInterval: typeof global.clearInterval; - setImmediate: typeof global.setImmediate; - clearImmediate: typeof global.clearImmediate; - Date: typeof global.Date; - hrtime: typeof global.process.hrtime; - nextTick: typeof global.process.nextTick; - } - - interface FakeClock { - timers: Timers; - createClock(now?: number, loopLimit?: number): Clock; - install(now?: number | Date | InstallOptions): InstalledClock; - } - } - - const fakeClock: I.fakeClock.FakeClock; - - namespace ltgt { namespace I { - interface Range { - lt?: T; - lte?: T; - gt?: T; - gte?: T; - min?: T; - max?: T; - start?: T; - end?: T; - reverse?: boolean; + interface KeysOptions { + onlyEnumerable?: boolean; + followProto?: boolean; + all?: boolean; } - type Comparator = (a: T, b: T) => number; } - function contains(range: I.Range, key: T, compare?: I.Comparator): boolean; + function keys(object: object, options?: I.KeysOptions): string[]; - function filter(range: I.Range, compare?: I.Comparator): (key: T) => boolean; + function values(object: object, options?: I.KeysOptions): any[]; - function toLtgt( - range: I.Range, - _range: object, - map?: (value: T, isUpperBound: boolean) => R, - lowerBound?: T, - upperBound?: T - ): I.Range; + function entries(object: object, options?: I.KeysOptions): Array<[string, any]>; - function endInclusive(range: I.Range): boolean; + function toDotNotation(object: object): object; - function startInclusive(range: I.Range): boolean; + namespace I { + interface FlattenOptions { + depth?: number; + } + } + function flatten(array: any[], options?: I.FlattenOptions): any[]; - function end(range: I.Range): T | undefined; + function globParent(str: string): string; - function end(range: I.Range, defaultValue: R): T | R; + namespace I { + interface ByResult { + (a: S, b: S): R; + compare(a: T, b: T): R; + by(a: S): T; + } + } + function by(by: (a: S) => T, compare?: (a: T, b: T) => R): I.ByResult; - function start(range: I.Range): T | undefined; + function toFastProperties(object: object): object; - function start(range: I.Range, defaultValue?: R): T | R; + function stripBom(x: string): string; - function upperBound(range: I.Range): T | undefined; + namespace I { + interface SortKeysOptions { + deep?: boolean; + compare?(a: any, b: any): number; + } + } + function sortKeys(object: object, options?: I.SortKeysOptions): object; - function upperBound(range: I.Range, defaultValue: R): T | R; + namespace I { + interface GlobizeOptions { + exts?: string; + recursively?: boolean; + } + } + function globize(path: string, options?: I.GlobizeOptions): string; - function upperBoundKey(range: I.Range): T | undefined; + function unique(array: T[], projection?: (a: T) => any): T[]; - function upperBoundExclusive(range: I.Range): boolean; + function invertObject(source: object, options?: I.KeysOptions): object; - function lowerBoundExclusive(range: I.Range): boolean; + namespace I { + interface HumanizeTimeOptions { + msDecimalDigits?: number; + secDecimalDigits?: number; + verbose?: boolean; + compact?: boolean; + } + } + function humanizeTime(ms: number, options?: I.HumanizeTimeOptions): string; + function humanizeSize(num: number, space?: string): string; - function upperBoundInclusive(range: I.Range): boolean; + function parseSize(str: string | number): number | null; - function lowerBoundInclusive(range: I.Range): boolean; + namespace I { + interface CloneOptions { + deep?: boolean; + } + } + function clone(object: object, options?: I.CloneOptions): object; - function lowerBound(range: I.Range): T | undefined; + function toUTF8Array(str: string): number[]; - function lowerBound(range: I.Range, defaultValue: R): T | R; + function asyncIter(array: T[], iter: (elem: T, index: number, cb: () => void) => any, cb: () => void): void; - function lowerBoundKey(range: I.Range): T | undefined; + function asyncFor(obj: { [key: string]: T }, iter: (key: string, value: T, index: number, length: number, next: () => void) => void, cb: () => void): void; + + namespace I { + interface OnceOptions { + silent: boolean; + } + } + function once(fn: (...args: any[]) => T, options?: I.OnceOptions): (...args: any[]) => T; + + namespace I { + type WaterFallTask = (...args: any[]) => void; + } + function asyncWaterfall(tasks: I.WaterFallTask[], callback?: (err?: Error | null, ...args: any[]) => void): void; + + function xrange(start?: number, stop?: number, step?: number): IterableIterator; + + function range(start?: number, stop?: number, step?: number): number[]; + + function reFindAll(regexp: RegExp, str: string): RegExpExecArray[]; + + function assignDeep(target: T, ...sources: object[]): T; + + namespace I { + interface MatchOptions { + index?: boolean; + start?: number; + end?: number; + dot?: boolean; + } + } + function match(criteria: any, options?: I.MatchOptions): (value: any, options?: I.MatchOptions) => number | boolean; + function match(criteria: any, value: any, options?: I.MatchOptions): number | boolean; + + namespace I { + interface ToposortFunction { + (edges: Array<[T, T]>): T[]; + array(nodes: T[], edges: Array<[T, T]>): T[]; + } + } + const toposort: I.ToposortFunction; + + namespace I { + interface JSEscOptions { + escapeEverything?: boolean; + minimal?: boolean; + isScriptContext?: boolean; + quotes?: string; + wrap?: boolean; + es6?: boolean; + json?: boolean; + compact?: boolean; + lowercaseHex?: boolean; + numbers?: string; + indent?: string; + indentLevel?: number; + __inline1__?: boolean; + __inline2__?: boolean; + } + } + function jsesc(argument: any, options?: I.JSEscOptions): string; + + namespace I { + type PossibleTypes = "object" | "class" | "null" | "global" | "Array" | "RegExp" | "Date" + | "Promise" | "Set" | "Map" | "WeakSet" | "DataView" | "Map Iterator" | "Set Iterator" + | "Array Iterator" | "String Iterator" | "Object" | "function" | "boolean" | "number" + | "undefined" | "string" | "symbol"; + } + + function typeOf(obj: any): I.PossibleTypes; + function typeOf(obj: any): string; + + namespace memcpy { + function utou(target: Buffer, targetOffset: number, source: Buffer, sourceStart: number, sourceEnd: number): number; + function atoa(target: ArrayBuffer, targetOffset: number, source: ArrayBuffer, sourceStart: number, sourceEnd: number): number; + function atou(target: Buffer, targetOffset: number, source: ArrayBuffer, sourceStart: number, sourceEnd: number): number; + function utoa(target: ArrayBuffer, targetOffset: number, source: Buffer, sourceStart: number, sourceEnd: number): number; + function copy(target: Buffer | ArrayBuffer, targetOffset: number, source: Buffer | ArrayBuffer, sourceStart: number, sourceEnd: number): number; + } + + namespace uuid { + namespace I { + interface V1Options { + clockseq?: number; + msecs?: number; + nsecs?: number; + } + } + function v1(options?: I.V1Options): string; + function v1(options: I.V1Options, buf: any[], offset?: number): number[]; + + function v4(options?: any): string; + function v4(options: any, buf: any[], offset?: number): number[]; + + function v3(name: string | number[], namespace: string | number[]): string; + function v3(name: string | number[], namespace: string | number[], buf: any[], offset?: number): number[]; + + function v5(name: string | number[], namespace: string | number[]): string; + function v5(name: string | number[], namespace: string | number[], buf: any[], offset?: number): number[]; + } + + namespace I { + interface Delegator { + method(name: string): Delegator; + access(name: string): Delegator; + getter(name: string): Delegator; + setter(name: string): Delegator; + } + } + function delegate(object: object, property: string): I.Delegator; + + namespace I { + interface GlobExpOptions { + nocomment?: boolean; + nonegate?: boolean; + nobrace?: boolean; + noglobstar?: boolean; + nocase?: boolean; + dot?: boolean; + noext?: boolean; + matchBase?: boolean; + flipNegate?: boolean; + } + } + + class GlobExp { + constructor(pattern: string, options?: I.GlobExpOptions); + + hasMagic(): boolean; + + static hasMagic(pattern: string, options?: I.GlobExpOptions): boolean; + + expandBraces(): string[]; + + static expandBraces(pattern: string, options?: I.GlobExpOptions): string[]; + + makeRe(): RegExp; + + static makeRe(pattern: string, options?: I.GlobExpOptions): RegExp; + + static test(p: string, pattern: string, options?: I.GlobExpOptions): boolean; + + test(p: string): boolean; + } + + namespace iconv { + // TODO: need to normalize source code + } + + namespace sqlstring { + function escapeId(val: string | string[], forbidQualified?: boolean): string; + function dateToString(date: any, timeZone?: string): string; + function arrayToList(array: any[]): string; + function bufferToString(buffer: Buffer): string; + function objectToValues(object: object, timeZone?: string): string; + function escape(value: any, stringifyObjects?: boolean, timeZone?: string): string; + function format(sql: string, values?: any, stringifyObjects?: boolean, timeZone?: string): string; + } + + namespace I { + interface EditorOptions { + text?: string; + editor?: string; + path?: string; + ext?: string; + } + } + class Editor { + static DEFAULT: string; + + constructor(options?: I.EditorOptions); + + spawn(): Promise; + + run(): Promise; + + cleanup(): Promise; + + static edit(options?: I.EditorOptions): Promise; + } + + namespace I { + interface BinarySearchFunction { + (aHaystack: T[], aNeedle: number, aLow?: number, aHigh?: number, aCompare?: (a: T, b: T) => number, aBias?: number): T; + GREATEST_LOWER_BOUND: number; + LEAST_UPPER_BOUND: number; + } + } + const binarySearch: I.BinarySearchFunction; + + namespace buffer { + function concat(list: Buffer[], totalLength: number): Buffer; + function mask(buffer: Buffer, mask: Buffer, output: Buffer, offset: number, length: number): void; + function unmask(buffer: Buffer, mask: Buffer): void; + } + + function shebang(str: string): string | null; + + class ReInterval { + constructor(callback: (...args: any[]) => void, interval: number, args?: any[]); + + reschedule(interval: number): void; + + clear(): void; + + destroy(): void; + } + + class RateLimiter { + constructor(tokensPerInterval?: number, interval?: number, fireImmediately?: boolean); + + removeTokens(count: number): Promise; + + tryRemoveTokens(count: number): boolean; + + getTokensRemaining(): number; + } + + namespace I { + interface ThrottleOptions { + max?: number; + interval?: number; + ordered?: boolean; + waitForReturn?: boolean; + } + } + function throttle(fn: () => R, options?: I.ThrottleOptions): () => Promise; + function throttle(fn: (a: T1) => R, options?: I.ThrottleOptions): (a: T1) => Promise; + function throttle(fn: (a: T1, b: T2) => R, options?: I.ThrottleOptions): (a: T1, b: T2) => Promise; + function throttle(fn: (a: T1, b: T2, c: T3) => R, options?: I.ThrottleOptions): (a: T1, b: T2, c: T3) => Promise; + function throttle(fn: (a: T1, b: T2, c: T3, d: T4) => R, options?: I.ThrottleOptions): (a: T1, b: T2, c: T3, d: T4) => Promise; + function throttle(fn: (a: T1, b: T2, c: T3, d: T4, e: T5) => R, options?: I.ThrottleOptions): (a: T1, b: T2, c: T3, d: T4, e: T5) => Promise; + function throttle(fn: (...args: any[]) => R, options?: I.ThrottleOptions): (...args: any[]) => Promise; + + namespace I.fakeClock { + interface Timer { + id: number; + ref(): void; + unref(): void; + } + interface Clock { + setTimeout(func: (...args: any[]) => void, timeout: number, ...args: any[]): Timer; + clearTimeout(timer: Timer): void; + nextTick(func: (...args: any[]) => void, ...args: any[]): void; + setInterval(func: (...args: any[]) => void, ...args: any[]): Timer; + clearInterval(timer: Timer): void; + setImmediate(func: (...args: any[]) => void, ...args: any[]): Timer; + clearImmediate(timer: Timer): void; + updateHrTime(newNow: number): void; + tick(ms: number): number; + next(): number; + runAll(): number; + runToLast(): number; + setSystemTime(systemTime: number): void; + hrtime(prev?: [number, number]): [number, number]; + } + interface InstalledClock extends Clock { + uninstall(): void; + } + interface InstallOptions { + target?: object; + now?: number; + toFake?: string[]; + loopLimit?: number; + shouldAdvanceTime?: boolean; + advanceTimeDelta?: number; + } + + interface Timers { + setTimeout: typeof global.setTimeout; + clearTimeout: typeof global.clearTimeout; + setInterval: typeof global.setInterval; + clearInterval: typeof global.clearInterval; + setImmediate: typeof global.setImmediate; + clearImmediate: typeof global.clearImmediate; + Date: typeof global.Date; + hrtime: typeof global.process.hrtime; + nextTick: typeof global.process.nextTick; + } + + interface FakeClock { + timers: Timers; + createClock(now?: number, loopLimit?: number): Clock; + install(now?: number | Date | InstallOptions): InstalledClock; + } + } + + const fakeClock: I.fakeClock.FakeClock; + + namespace ltgt { + namespace I { + interface Range { + lt?: T; + lte?: T; + gt?: T; + gte?: T; + min?: T; + max?: T; + start?: T; + end?: T; + reverse?: boolean; + } + type Comparator = (a: T, b: T) => number; + } + function contains(range: I.Range, key: T, compare?: I.Comparator): boolean; + + function filter(range: I.Range, compare?: I.Comparator): (key: T) => boolean; + + function toLtgt( + range: I.Range, + _range: object, + map?: (value: T, isUpperBound: boolean) => R, + lowerBound?: T, + upperBound?: T + ): I.Range; + + function endInclusive(range: I.Range): boolean; + + function startInclusive(range: I.Range): boolean; + + function end(range: I.Range): T | undefined; + + function end(range: I.Range, defaultValue: R): T | R; + + function start(range: I.Range): T | undefined; + + function start(range: I.Range, defaultValue?: R): T | R; + + function upperBound(range: I.Range): T | undefined; + + function upperBound(range: I.Range, defaultValue: R): T | R; + + function upperBoundKey(range: I.Range): T | undefined; + + function upperBoundExclusive(range: I.Range): boolean; + + function lowerBoundExclusive(range: I.Range): boolean; + + function upperBoundInclusive(range: I.Range): boolean; + + function lowerBoundInclusive(range: I.Range): boolean; + + function lowerBound(range: I.Range): T | undefined; + + function lowerBound(range: I.Range, defaultValue: R): T | R; + + function lowerBoundKey(range: I.Range): T | undefined; + } + + /** + * Utils for uid/gid + */ + namespace userid { + /** + * Returns uid by the given username + */ + function uid(username: string): { uid: number, gid: number }; + + /** + * Returns gid by the given groupname + */ + function gid(groupname: string): number; + + /** + * Returns username by the given uid + */ + function username(uid: number): string; + + /** + * Returns groupname by the given gid + */ + function groupname(gid: number): string; + + /** + * Returns gids the given user belongs + */ + function gids(username: string): number[]; + } + + /** + * Represents a log file rotator + */ + class LogRotator { + /** + * @param target filepath + */ + constructor(target: string, options?: { + /** + * rotator reads file's stats with this delay + */ + checkInterval?: number | string, + /** + * maximum size of the file that triggers rotation + */ + maxSize?: number | string, + /** + * number of files at time + */ + maxFiles?: number, + /** + * compress old log files with gz + */ + compress?: boolean + }); + + /** + * Completes a rotate iteration + */ + rotate(): Promise; + + /** + * Starts checking using the given interval, the first check is completed on the next tick + */ + start(): void; + + /** + * Stops checking + */ + stop(): void; + } + + namespace I { + interface DebounceOptions { + /** + * whether to invoke on the leading edge + */ + leading?: boolean; + + /** + * whether to invoke on the trailing edge, if both are true the trailing call is performed only if the function is invoked more that once during the interval + */ + trailing?: boolean; + } + } + + /** + * Creates a function that delays invoking of the given function until after "timeout" ms + * have elapsed since the last invoking + */ + function debounce(fn: () => R, timeout: number, options?: I.DebounceOptions): () => R; + function debounce(fn: (a: T1) => R, timeout: number, options?: I.DebounceOptions): (a: T1) => R; + function debounce(fn: (a: T1, b: T2) => R, timeout: number, options?: I.DebounceOptions): (a: T1, b: T2) => R; + function debounce(fn: (a: T1, b: T2, c: T3) => R, timeout: number, options?: I.DebounceOptions): (a: T1, b: T2, c: T3) => R; + function debounce(fn: (a: T1, b: T2, c: T3, d: T4) => R, timeout: number, options?: I.DebounceOptions): (a: T1, b: T2, c: T3, d: T4) => R; + function debounce(fn: (a: T1, b: T2, c: T3, d: T4, e: T5) => R, timeout: number, options?: I.DebounceOptions): (a: T1, b: T2, c: T3, d: T4, e: T5) => R; + function debounce(fn: (...args: any[]) => R, timeout: number, options?: I.DebounceOptions): (...args: any[]) => R; } } diff --git a/types/adone/index.d.ts b/types/adone/index.d.ts index 663e8c8407..74883c2185 100644 --- a/types/adone/index.d.ts +++ b/types/adone/index.d.ts @@ -4,6 +4,27 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 -import * as adone from "./adone"; +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// -export default adone; +declare const _adone: typeof adone; + +export { _adone as adone }; diff --git a/types/adone/test/glosses/archives.ts b/types/adone/test/glosses/archives.ts new file mode 100644 index 0000000000..2fc38fc8ba --- /dev/null +++ b/types/adone/test/glosses/archives.ts @@ -0,0 +1,292 @@ +namespace archivesTests { + const { archive } = adone; + + namespace tarTests { + const { tar } = archive; + + namespace rawPackStreamTests { + const { RawPackStream } = tar; + + new RawPackStream(); + new RawPackStream({}); + { + const a: nodestd.stream.Writable = new RawPackStream().entry({ + type: "file", + gid: 0, + mode: 10, + mtime: 10, + name: "path", + size: 10, + uid: 10 + }); + } + { + const a = new RawPackStream().entry({ + type: "symlink", + gid: 0, + mode: 10, + mtime: 10, + name: "path", + size: 10, + uid: 10 + }); + a.linkname; + } + { + const a: nodestd.stream.Writable = new RawPackStream().entry({ + type: "symlink", + gid: 0, + mode: 10, + mtime: 10, + name: "path", + size: 10, + uid: 10, + linkname: "/" + }); + } + { + const a: nodestd.stream.Writable = new RawPackStream().entry({ + type: "file", + gid: 0, + mode: 10, + mtime: 10, + name: "path", + size: 10, + uid: 10 + }, (err: any) => {}); + } + { + const a: nodestd.stream.Writable = new RawPackStream().entry({ + name: "path" + }, Buffer.from("hello")); + } + { + const a: nodestd.stream.Writable = new RawPackStream().entry({ + type: "file", + gid: 0, + mode: 10, + mtime: 10, + name: "path", + size: 10, + uid: 10 + }, Buffer.from("hello"), (err: any) => {}); + } + + new RawPackStream().finalize(); + + new RawPackStream().destroy(); + new RawPackStream().destroy(new Error()); + } + + namespace rawUnpackStreamTest { + const { RawUnpackStream } = tar; + + type Header = adone.archive.tar.I.Header; + type UnpackSourceStream = adone.archive.tar.I.UnpackSourceStream; + type RawUnpackStream = adone.archive.tar.RawUnpackStream; + + new RawUnpackStream(); + new RawUnpackStream().on("entry", (header: Header, stream: UnpackSourceStream, next) => { + { const a: string = header.type; } + { const a: string | undefined = header.linkname; } + { const a: number = header.mode; } + { const a: number = header.mtime; } + { const a: string = header.name; } + { const a: number = header.size; } + { const a: number = header.uid; } + { const a: number = header.gid; } + { const a: nodestd.stream.Readable = stream; } + { const a: RawUnpackStream = stream._parent; } + next(); + next(123); + }); + new RawUnpackStream().once("entry", (header: Header, stream: UnpackSourceStream, next) => { + { const a: string = header.type; } + { const a: string | undefined = header.linkname; } + { const a: number = header.mode; } + { const a: number = header.mtime; } + { const a: string = header.name; } + { const a: number = header.size; } + { const a: number = header.uid; } + { const a: number = header.gid; } + { const a: nodestd.stream.Readable = stream; } + { const a: RawUnpackStream = stream._parent; } + next(); + next(123); + }); + } + + namespace packStreamTests { + const { packStream } = tar; + type RawPackStream = adone.archive.tar.RawPackStream; + type Header = adone.archive.tar.I.Header; + + { const a: RawPackStream = packStream("."); } + { const a: RawPackStream = packStream(".", {}); } + { const a: RawPackStream = packStream(".", { dereference: true }); } + { const a: RawPackStream = packStream(".", { dmode: 0o777 }); } + { const a: RawPackStream = packStream(".", { entries: ["."] }); } + { const a: RawPackStream = packStream(".", { fmode: 0o777 }); } + { const a: RawPackStream = packStream(".", { ignore: (name: string) => true }); } + { const a: RawPackStream = packStream(".", { map: (header: Header) => header }); } + { const a: RawPackStream = packStream(".", { map: (header: Header) => undefined }); } + { const a: RawPackStream = packStream(".", { mapStream: (stream: nodestd.stream.Readable, header: Header) => stream }); } + { const a: RawPackStream = packStream(".", { mapStream: (stream: nodestd.stream.Readable, header: Header) => stream }); } + { const a: RawPackStream = packStream(".", { pack: new tar.RawPackStream() }); } + { const a: RawPackStream = packStream(".", { readable: false }); } + { const a: RawPackStream = packStream(".", { sort: true }); } + { const a: RawPackStream = packStream(".", { strict: false }); } + { const a: RawPackStream = packStream(".", { strip: 2 }); } + { const a: RawPackStream = packStream(".", { umask: 2 }); } + { const a: RawPackStream = packStream(".", { writable: false }); } + } + + namespace unpackStreamTests { + const { unpackStream } = tar; + type RawUnpackStream = adone.archive.tar.RawUnpackStream; + type UnpackSourceStream = adone.archive.tar.I.UnpackSourceStream; + type Header = adone.archive.tar.I.Header; + + { const a: RawUnpackStream = unpackStream("."); } + { const a: RawUnpackStream = unpackStream(".", {}); } + { const a: RawUnpackStream = unpackStream(".", { chown: false }); } + { const a: RawUnpackStream = unpackStream(".", { dmode: 0o777 }); } + { const a: RawUnpackStream = unpackStream(".", { unpack: new tar.RawUnpackStream() }); } + { const a: RawUnpackStream = unpackStream(".", { fmode: 0o755 }); } + { const a: RawUnpackStream = unpackStream(".", { hardlinkAsFilesFallback: false }); } + { const a: RawUnpackStream = unpackStream(".", { ignore: (name: string) => true }); } + { const a: RawUnpackStream = unpackStream(".", { map: (header: Header) => header }); } + { const a: RawUnpackStream = unpackStream(".", { map: (header: Header) => undefined }); } + { const a: RawUnpackStream = unpackStream(".", { mapStream: (stream: UnpackSourceStream, header) => stream }); } + { const a: RawUnpackStream = unpackStream(".", { readable: false }); } + { const a: RawUnpackStream = unpackStream(".", { strip: 2 }); } + { const a: RawUnpackStream = unpackStream(".", { umask: 2 }); } + { const a: RawUnpackStream = unpackStream(".", { utimes: false }); } + { const a: RawUnpackStream = unpackStream(".", { writable: false }); } + } + } + + namespace zipTests { + const { zip } = archive; + + namespace packTests { + const { fs } = adone; + const { pack } = zip; + type ZipFile = adone.archive.zip.pack.ZipFile; + + const file = new pack.ZipFile(); + { const a: ZipFile = file.addBuffer(Buffer.from("buffer"), "file"); } + { const a: ZipFile = file.addBuffer(Buffer.from("buffer"), "file", {}); } + { const a: ZipFile = file.addBuffer(Buffer.from("buffer"), "file", { compress: true }); } + { const a: ZipFile = file.addBuffer(Buffer.from("buffer"), "file", { forceZip64Format: true }); } + { const a: ZipFile = file.addBuffer(Buffer.from("buffer"), "file", { mode: 0 }); } + { const a: ZipFile = file.addBuffer(Buffer.from("buffer"), "file", { mtime: 0 }); } + + { const a: ZipFile = file.addEmptyDirectory("hello"); } + { const a: ZipFile = file.addEmptyDirectory("hello", {}); } + { const a: ZipFile = file.addEmptyDirectory("hello", { mode: 0 }); } + { const a: ZipFile = file.addEmptyDirectory("hello", { mtime: 0 }); } + + { const a: ZipFile = file.addFile("hello", "hello"); } + { const a: ZipFile = file.addFile("hello", "hello", {}); } + { const a: ZipFile = file.addFile("hello", "hello", { compress: true }); } + { const a: ZipFile = file.addFile("hello", "hello", { forceZip64Format: false }); } + { const a: ZipFile = file.addFile("hello", "hello", { mode: 0o111 }); } + { const a: ZipFile = file.addFile("hello", "hello", { mtime: 13 }); } + + { const a: ZipFile = file.addReadStream(fs.createReadStream("a"), "hello"); } + { const a: ZipFile = file.addReadStream(fs.createReadStream("a"), "hello", {}); } + { const a: ZipFile = file.addReadStream(fs.createReadStream("a"), "hello", { compress: true }); } + { const a: ZipFile = file.addReadStream(fs.createReadStream("a"), "hello", { forceZip64Format: false }); } + { const a: ZipFile = file.addReadStream(fs.createReadStream("a"), "hello", { mode: 0 }); } + { const a: ZipFile = file.addReadStream(fs.createReadStream("a"), "hello", { mtime: 0 }); } + { const a: ZipFile = file.addReadStream(fs.createReadStream("a"), "hello", { size: 0 }); } + + { const a: nodestd.stream.Readable = file.outputStream; } + file.end().then((x: number) => {}); + } + + namespace unpackTests { + const { unpack } = zip; + const { fs } = adone; + type ZipFile = adone.archive.zip.unpack.I.ZipFile; + type Entry = adone.archive.zip.unpack.I.Entry; + + { + const a: ZipFile = unpack.open("hello"); + { const b: boolean = a.isOpen; } + { const b: number = a.entryCount; } + { const b: string = a.comment; } + a.close(); + a.readEntry().then((x) => {}); + a.on("entry", async (entry: Entry) => { + { const a: number = entry.versionMadeBy; } + { const a: number = entry.versionNeededToExtract; } + { const a: number = entry.generalPurposeBitFlag; } + { const a: number = entry.compressionMethod; } + { const a: number = entry.lastModFileDate; } + { const a: number = entry.lastModFileTime; } + { const a: number = entry.crc32; } + { const a: number = entry.compressedSize; } + { const a: number = entry.uncompressedSize; } + { const a: number = entry.fileNameLength; } + { const a: number = entry.extraFieldLength; } + { const a: number = entry.fileCommentLength; } + { const a: number = entry.internalFileAttributes; } + { const a: number = entry.externalFileAttributes; } + { const a: number = entry.relativeOffsetOfLocalHeader; } + { const a: Array<{ id: number, data: Buffer }> = entry.extraFields; } + { const a: string = entry.fileComment; } + { const a: string = entry.fileName; } + { const a: adone.I.datetime.Datetime = entry.getLastModDate(); } + { const a: boolean = entry.isEncrypted(); } + { const a: boolean = entry.isCompressed(); } + { const stream: nodestd.stream.Readable = await a.openReadStream(entry); } + { const stream: nodestd.stream.Readable = await a.openReadStream(entry, {}); } + { const stream: nodestd.stream.Readable = await a.openReadStream(entry, { decompress: true }); } + { const stream: nodestd.stream.Readable = await a.openReadStream(entry, { decrypt: false }); } + { const stream: nodestd.stream.Readable = await a.openReadStream(entry, { end: 0 }); } + { const stream: nodestd.stream.Readable = await a.openReadStream(entry, { start: 0 }); } + }); + a.on("end", () => {}); + a.on("close", () => {}); + a.on("error", (e: any) => {}); + } + { + const a: ZipFile = unpack.open("hello", { decodeStrings: false }); + { const b: Buffer = a.comment; } + a.on("entry", (entry: Entry) => { + { const a: Buffer = entry.fileComment; } + { const a: Buffer = entry.fileName; } + }); + } + + { const a: ZipFile = unpack.open("hello", {}); } + { const a: ZipFile = unpack.open("hello", { autoClose: true }); } + { const a: ZipFile = unpack.open("hello", { lazyEntries: true }); } + { const a: ZipFile = unpack.open("hello", { validateEntrySizes: false }); } + + { const a: ZipFile = unpack.fromBuffer(Buffer.from("123")); } + { const a: ZipFile = unpack.fromBuffer(Buffer.from("123"), {}); } + { const a: ZipFile = unpack.fromBuffer(Buffer.from("123"), { decodeStrings: false }); } + { const a: ZipFile = unpack.fromBuffer(Buffer.from("123"), { lazyEntries: false }); } + { const a: ZipFile = unpack.fromBuffer(Buffer.from("123"), { validateEntrySizes: false }); } + + { const a: ZipFile = unpack.fromFd(0); } + { const a: ZipFile = unpack.fromFd(0, {}); } + { const a: ZipFile = unpack.fromFd(0, { autoClose: false }); } + { const a: ZipFile = unpack.fromFd(0, { decodeStrings: false }); } + { const a: ZipFile = unpack.fromFd(0, { lazyEntries: true }); } + { const a: ZipFile = unpack.fromFd(0, { validateEntrySizes: false }); } + + { const a: ZipFile = unpack.fromRandomAccessReader(new fs.RandomAccessBufferReader(Buffer.from("asd")), 1); } + { const a: ZipFile = unpack.fromRandomAccessReader(new fs.RandomAccessBufferReader(Buffer.from("asd")), 1, {}); } + { const a: ZipFile = unpack.fromRandomAccessReader(new fs.RandomAccessBufferReader(Buffer.from("asd")), 1, { autoClose: false }); } + { const a: ZipFile = unpack.fromRandomAccessReader(new fs.RandomAccessBufferReader(Buffer.from("asd")), 1, { decodeStrings: false }); } + { const a: ZipFile = unpack.fromRandomAccessReader(new fs.RandomAccessBufferReader(Buffer.from("asd")), 1, { lazyEntries: false }); } + { const a: ZipFile = unpack.fromRandomAccessReader(new fs.RandomAccessBufferReader(Buffer.from("asd")), 1, { validateEntrySizes: false }); } + + { const a: string | null = unpack.validateFileName("hello"); } + } + } +} diff --git a/types/adone/test/glosses/collections.ts b/types/adone/test/glosses/collections.ts new file mode 100644 index 0000000000..ec227d4440 --- /dev/null +++ b/types/adone/test/glosses/collections.ts @@ -0,0 +1,1003 @@ +namespace collectionTests { + const { collection } = adone; + + namespace linkedListTests { + const { LinkedList } = collection; + + namespace creation { + new LinkedList(); + new LinkedList(10); + } + + namespace properties { + { const a: boolean = new LinkedList().full; } + { const a: boolean = new LinkedList().empty; } + { const a: number = new LinkedList().maxLength; } + { const a: number = new LinkedList().length; } + { const a: boolean = new LinkedList().autoresize; } + } + + namespace resize { + { const a: boolean = new LinkedList().resize(100).full; } + } + + namespace push { + const a = new LinkedList().push(10); + a.next; + a.prev; + const b: number = a.value; + } + + namespace pop { + const a: number | undefined = new LinkedList().pop(); + } + + namespace shift { + const a: number | undefined = new LinkedList().shift(); + } + + namespace unshift { + const a = new LinkedList().unshift("hello"); + a.next; + a.prev; + const b: string = a.value; + } + + namespace pushNode { + const a = new LinkedList(); + const node = a.push("1230"); + a.pushNode(node); + } + + namespace unshiftNode { + const a = new LinkedList(); + const node = a.push(10); + a.unshiftNode(node); + } + + namespace removeNode { + const a = new LinkedList(); + const node = a.unshift("10"); + a.removeNode(node); + } + + namespace clear { + new LinkedList().clear(); + new LinkedList().clear(true); + } + + namespace toArray { + const a = new LinkedList(); + const b: number[] = a.toArray(); + } + + namespace front { + const a = new LinkedList(); + const b: number = a.front; + } + + namespace back { + const a = new LinkedList(); + const b: number = a.back; + } + + namespace iterating { + const a = new LinkedList(); + for (const b of a) { + const i: string = b; + } + const c = new LinkedList(); + for (const b of c) { + const i: number = b; + } + } + + namespace nextNode { + const a = new LinkedList(); + const n1 = a.push("h"); + const n2 = a.nextNode(n1); + n1.next; + n1.prev; + const t: string = n1.value; + } + + namespace map { + const a = new LinkedList(); + const f = (a: number, idx: number) => `${a}${idx}`; + const b = a.map(f); + const c: string = b.front; + } + + namespace forEach { + const a = new LinkedList(); + + a.forEach((a: number, b: number) => { + const c = a + b; + }); + } + + namespace static { + const a: number = LinkedList.DEFAULT_LENGTH; + } + } + + namespace ByteArrayTests { + const { ByteArray } = collection; + + new ByteArray(); + new ByteArray(10); + new ByteArray(10, true); + + const buffer = new ByteArray(); + + namespace readBitSet { + const a: boolean[] = buffer.readBitSet(); + const b: boolean[] = buffer.readBitSet(10); + } + + namespace read { + const a: adone.collection.ByteArray = buffer.read(1); + const b: adone.collection.ByteArray = buffer.read(1, 10); + } + + namespace readInt8 { + const a: number = buffer.readInt8(); + const b: number = buffer.readInt8(10); + } + + namespace readUInt8 { + const a: number = buffer.readUInt8(); + const b: number = buffer.readUInt8(10); + } + + namespace readInt16LE { + const a: number = buffer.readInt16LE(); + const b: number = buffer.readInt16LE(10); + } + + namespace readUInt16LE { + const a: number = buffer.readUInt16LE(); + const b: number = buffer.readUInt16LE(10); + } + + namespace readInt16BE { + const a: number = buffer.readInt16BE(); + const b: number = buffer.readInt16BE(10); + } + + namespace readUInt16BE { + const a: number = buffer.readUInt16BE(); + const b: number = buffer.readUInt16BE(10); + } + + namespace readInt32LE { + const a: number = buffer.readInt32LE(); + const b: number = buffer.readInt32LE(10); + } + + namespace readUInt32LE { + const a: number = buffer.readUInt32LE(); + const b: number = buffer.readUInt32LE(10); + } + + namespace readInt32BE { + const a: number = buffer.readInt32BE(); + const b: number = buffer.readInt32BE(10); + } + + namespace readUInt32BE { + const a: number = buffer.readUInt32BE(); + const b: number = buffer.readUInt32BE(10); + } + + namespace readInt64LE { + const a: adone.math.Long = buffer.readInt64LE(); + const b: adone.math.Long = buffer.readInt64LE(10); + } + + namespace readUInt64LE { + const a: adone.math.Long = buffer.readUInt64LE(); + const b: adone.math.Long = buffer.readUInt64LE(10); + } + + namespace readInt64BE { + const a: adone.math.Long = buffer.readInt64BE(); + const b: adone.math.Long = buffer.readInt64BE(10); + } + + namespace readUInt64BE { + const a: adone.math.Long = buffer.readUInt64BE(); + const b: adone.math.Long = buffer.readUInt64BE(10); + } + + namespace readFloatLE { + const a: number = buffer.readFloatLE(); + const b: number = buffer.readFloatLE(10); + } + + namespace readFloatBE { + const a: number = buffer.readFloatBE(); + const b: number = buffer.readFloatBE(10); + } + + namespace readDoubleLE { + const a: number = buffer.readDoubleLE(); + const b: number = buffer.readDoubleLE(10); + } + + namespace readDoubleBE { + const a: number = buffer.readDoubleBE(); + const b: number = buffer.readDoubleBE(10); + } + + namespace write { + const a: adone.collection.ByteArray = buffer.write("1"); + const b: adone.collection.ByteArray = buffer.write(new ByteArray()); + const c: adone.collection.ByteArray = buffer.write(Buffer.alloc(10)); + const d: adone.collection.ByteArray = buffer.write(new Uint8Array([1, 2, 3])); + const e: adone.collection.ByteArray = buffer.write(new ArrayBuffer(10)); + const f: adone.collection.ByteArray = buffer.write("1", 10); + const g: adone.collection.ByteArray = buffer.write("1", 10, 10); + const h: adone.collection.ByteArray = buffer.write("1", 10, 10, "utf8"); + } + + namespace writeBitSet { + const a: adone.collection.ByteArray = buffer.writeBitSet([1, 2, 3]); + const b: number = buffer.writeBitSet([1, 2, 3], 10); + } + + namespace writeInt8 { + const a: adone.collection.ByteArray = buffer.writeInt8(10); + const b: adone.collection.ByteArray = buffer.writeInt8(10, 10); + } + + namespace writeUInt8 { + const a: adone.collection.ByteArray = buffer.writeUInt8(10); + const b: adone.collection.ByteArray = buffer.writeUInt8(10, 10); + } + + namespace writeInt16LE { + const a: adone.collection.ByteArray = buffer.writeInt16LE(10); + const b: adone.collection.ByteArray = buffer.writeInt16LE(10, 10); + } + + namespace writeInt16BE { + const a: adone.collection.ByteArray = buffer.writeInt16BE(10); + const b: adone.collection.ByteArray = buffer.writeInt16BE(10, 10); + } + + namespace writeUInt16LE { + const a: adone.collection.ByteArray = buffer.writeUInt16LE(10); + const b: adone.collection.ByteArray = buffer.writeUInt16LE(10, 10); + } + + namespace writeUInt16BE { + const a: adone.collection.ByteArray = buffer.writeUInt16BE(10); + const b: adone.collection.ByteArray = buffer.writeUInt16BE(10, 10); + } + + namespace writeInt32LE { + const a: adone.collection.ByteArray = buffer.writeInt32LE(10); + const b: adone.collection.ByteArray = buffer.writeInt32LE(10, 10); + } + + namespace writeInt32BE { + const a: adone.collection.ByteArray = buffer.writeInt32BE(10); + const b: adone.collection.ByteArray = buffer.writeInt32BE(10, 10); + } + + namespace writeUInt32LE { + const a: adone.collection.ByteArray = buffer.writeUInt32LE(10); + const b: adone.collection.ByteArray = buffer.writeUInt32LE(10, 10); + } + + namespace writeUInt32BE { + const a: adone.collection.ByteArray = buffer.writeUInt32BE(10); + const b: adone.collection.ByteArray = buffer.writeUInt32BE(10, 10); + } + + namespace writeInt64LE { + const a: adone.collection.ByteArray = buffer.writeInt64LE(10); + const b: adone.collection.ByteArray = buffer.writeInt64LE(10, 10); + } + + namespace writeInt64BE { + const a: adone.collection.ByteArray = buffer.writeInt64BE(10); + const b: adone.collection.ByteArray = buffer.writeInt64BE(10, 10); + } + + namespace writeUInt64LE { + const a: adone.collection.ByteArray = buffer.writeUInt64LE(10); + const b: adone.collection.ByteArray = buffer.writeUInt64LE(10, 10); + } + + namespace writeUInt64BE { + const a: adone.collection.ByteArray = buffer.writeUInt64BE(10); + const b: adone.collection.ByteArray = buffer.writeUInt64BE(10, 10); + } + + namespace writeFloatLE { + const a: adone.collection.ByteArray = buffer.writeFloatLE(10); + const b: adone.collection.ByteArray = buffer.writeFloatLE(10, 10); + } + + namespace writeFloatBE { + const a: adone.collection.ByteArray = buffer.writeFloatBE(10); + const b: adone.collection.ByteArray = buffer.writeFloatBE(10, 10); + } + + namespace writeDoubleLE { + const a: adone.collection.ByteArray = buffer.writeDoubleLE(10); + const b: adone.collection.ByteArray = buffer.writeDoubleLE(10, 10); + } + + namespace writeDoubleBE { + const a: adone.collection.ByteArray = buffer.writeDoubleBE(10); + const b: adone.collection.ByteArray = buffer.writeDoubleBE(10, 10); + } + + namespace writeVarInt32 { + const a: adone.collection.ByteArray = buffer.writeVarint32(10); + const b: number = buffer.writeVarint32(10, 10); + } + + namespace writeVarInt32ZigZag { + const a: adone.collection.ByteArray = buffer.writeVarint32ZigZag(10); + const b: number = buffer.writeVarint32ZigZag(10, 10); + } + + namespace readVarint32 { + const a: number = buffer.readVarint32(); + const b: { value: number, length: number } = buffer.readVarint32(10); + } + + namespace readVarint32ZigZag { + const a: number = buffer.readVarint32ZigZag(); + const b: { value: number, length: number } = buffer.readVarint32ZigZag(10); + } + + namespace writeVarint64 { + const a: adone.collection.ByteArray = buffer.writeVarint64(10); + const b: number = buffer.writeVarint64(10, 10); + } + + namespace writeVarint64ZigZag { + const a: adone.collection.ByteArray = buffer.writeVarint64ZigZag(10); + const b: number = buffer.writeVarint64ZigZag(10, 10); + } + + namespace readVarint64 { + const a: adone.math.Long = buffer.readVarint64(); + const b: { value: adone.math.Long, length: number } = buffer.readVarint64(10); + } + + namespace readVarint64ZigZag { + const a: adone.math.Long = buffer.readVarint64ZigZag(); + const b: { value: adone.math.Long, length: number } = buffer.readVarint64ZigZag(10); + } + + namespace writeCString { + const a: adone.collection.ByteArray = buffer.writeCString("asd"); + const b: number = buffer.writeCString("123", 10); + } + + namespace readCString { + const a: string = buffer.readCString(); + const b: { string: string, length: number } = buffer.readCString(10); + } + + namespace writeString { + const a: adone.collection.ByteArray = buffer.writeString("abc"); + const b: number = buffer.writeString("abc", 10); + } + + namespace readString { + const a: string = buffer.readString(10); + const b: string = buffer.readString(10, "b"); + const c: string = buffer.readString(10, "c"); + const d: { string: string, length: number } = buffer.readString(10, "c", 10); + } + + namespace writeVString { + const a: adone.collection.ByteArray = buffer.writeVString("abc"); + const b: number = buffer.writeVString("abc", 10); + } + + namespace readVString { + const a: string = buffer.readVString(); + const b: { string: string, length: number } = buffer.readVString(10); + } + + namespace appendTo { + const a: adone.collection.ByteArray = buffer.appendTo(new ByteArray()); + const b: adone.collection.ByteArray = buffer.appendTo(new ByteArray(), 10); + } + + namespace assert { + const a: adone.collection.ByteArray = buffer.assert(); + const b: adone.collection.ByteArray = buffer.assert(true); + } + + namespace capacity { + const a: number = buffer.capacity(); + } + + namespace clear { + const a: adone.collection.ByteArray = buffer.clear(); + } + + namespace copy { + const a: adone.collection.ByteArray = buffer.clone(); + const c: adone.collection.ByteArray = buffer.clone(true); + } + + namespace compact { + const a: adone.collection.ByteArray = buffer.compact(); + const b: adone.collection.ByteArray = buffer.compact(1); + const c: adone.collection.ByteArray = buffer.compact(1, 10); + } + + namespace copyTo { + const a: adone.collection.ByteArray = buffer.copyTo(new ByteArray()); + const b: adone.collection.ByteArray = buffer.copyTo(new ByteArray(), 0); + const c: adone.collection.ByteArray = buffer.copyTo(new ByteArray(), 0, 0); + const d: adone.collection.ByteArray = buffer.copyTo(new ByteArray(), 0, 0, 10); + } + + namespace ensureCapacity { + const a: adone.collection.ByteArray = buffer.ensureCapacity(10); + } + + namespace fill { + const a: adone.collection.ByteArray = buffer.fill("0"); + const b: adone.collection.ByteArray = buffer.fill(0); + const c: adone.collection.ByteArray = buffer.fill(0, 0); + const d: adone.collection.ByteArray = buffer.fill(0, 0, 10); + } + + namespace flip { + const a: adone.collection.ByteArray = buffer.flip(); + } + + namespace mark { + const a: adone.collection.ByteArray = buffer.mark(); + const b: adone.collection.ByteArray = buffer.mark(10); + } + + namespace prepend { + const a: adone.collection.ByteArray = buffer.prepend(""); + const b: adone.collection.ByteArray = buffer.prepend(new ByteArray()); + const c: adone.collection.ByteArray = buffer.prepend(Buffer.alloc(10)); + const d: adone.collection.ByteArray = buffer.prepend(new Uint8Array([1, 2, 3])); + const e: adone.collection.ByteArray = buffer.prepend(new ArrayBuffer(10)); + const f: adone.collection.ByteArray = buffer.prepend("", "utf8"); + const g: adone.collection.ByteArray = buffer.prepend("", "utf8", 10); + const h: adone.collection.ByteArray = buffer.prepend("", 10); + } + + namespace prependTo { + const a: adone.collection.ByteArray = buffer.prependTo(new ByteArray()); + const b: adone.collection.ByteArray = buffer.prependTo(new ByteArray(), 10); + } + + namespace remaining { + const a: number = buffer.remaining(); + } + + namespace reset { + const a: adone.collection.ByteArray = buffer.reset(); + } + + namespace resize { + const a: adone.collection.ByteArray = buffer.resize(10); + } + + namespace reverse { + const a: adone.collection.ByteArray = buffer.reverse(); + const b: adone.collection.ByteArray = buffer.reverse(1); + const c: adone.collection.ByteArray = buffer.reverse(1, 10); + } + + namespace skip { + const a: adone.collection.ByteArray = buffer.skip(10); + } + + namespace slice { + const a: adone.collection.ByteArray = buffer.slice(); + const b: adone.collection.ByteArray = buffer.slice(1); + const c: adone.collection.ByteArray = buffer.slice(1, 10); + } + + namespace toBuffer { + const a: Buffer = buffer.toBuffer(); + const b: Buffer = buffer.toBuffer(true); + const c: Buffer = buffer.toBuffer(true, 0); + const d: Buffer = buffer.toBuffer(true, 0, 10); + } + + namespace toArrayBuffer { + const a: ArrayBuffer = buffer.toArrayBuffer(); + } + + namespace toString { + const a: string = buffer.toString(); + const b: string = buffer.toString("utf8"); + const c: string = buffer.toString("utf8", 0); + const d: string = buffer.toString("utf8", 0, 10); + } + + namespace toBase64 { + const a: string = buffer.toBase64(); + const b: string = buffer.toBase64(0); + const c: string = buffer.toBase64(0, 10); + } + + namespace toBinary { + const a: string = buffer.toBinary(); + const b: string = buffer.toBinary(0); + const c: string = buffer.toBinary(0, 10); + } + + namespace toDebug { + const a: string = buffer.toDebug(); + const b: string = buffer.toDebug(true); + } + + namespace toUTF8 { + const a: string = buffer.toUTF8(); + const b: string = buffer.toUTF8(0); + const c: string = buffer.toUTF8(0, 10); + } + + namespace static { + namespace accessor { + const a: typeof Buffer = ByteArray.accessor(); + } + + namespace allocate { + const a: adone.collection.ByteArray = ByteArray.allocate(); + const b: adone.collection.ByteArray = ByteArray.allocate(10); + const c: adone.collection.ByteArray = ByteArray.allocate(10, true); + } + + namespace concat { + const a: adone.collection.ByteArray = ByteArray.concat([ + new ByteArray(), + Buffer.alloc(10), + new Uint8Array([1, 2, 3]), + new ArrayBuffer(10) + ]); + const b: adone.collection.ByteArray = ByteArray.concat([ + new ByteArray(), + Buffer.alloc(10), + new Uint8Array([1, 2, 3]), + new ArrayBuffer(10) + ], "utf8"); + const c: adone.collection.ByteArray = ByteArray.concat([ + new ByteArray(), + Buffer.alloc(10), + new Uint8Array([1, 2, 3]), + new ArrayBuffer(10) + ], "utf8", true); + } + + namespace type { + const a: typeof Buffer = ByteArray.type(); + } + + namespace wrap { + const a: adone.collection.ByteArray = ByteArray.wrap(""); + const b: adone.collection.ByteArray = ByteArray.wrap(new ByteArray()); + const c: adone.collection.ByteArray = ByteArray.wrap(Buffer.alloc(10)); + const d: adone.collection.ByteArray = ByteArray.wrap(new Uint8Array([1, 2, 3])); + const e: adone.collection.ByteArray = ByteArray.wrap(new ArrayBuffer(10)); + const f: adone.collection.ByteArray = ByteArray.wrap("", "utf8"); + const g: adone.collection.ByteArray = ByteArray.wrap("", "utf8", true); + } + + namespace calculateVarint32 { + const a: number = ByteArray.calculateVarint32(10); + } + + namespace zigZagEncode32 { + const a: number = ByteArray.zigZagEncode32(10); + } + + namespace zigZagDecode32 { + const a: number = ByteArray.zigZagDecode32(10); + } + + namespace calculateVarint64 { + const a: number = ByteArray.calculateVarint64(10); + const b: number = ByteArray.calculateVarint64("10"); + } + + namespace zigZagEncode64 { + const a: adone.math.Long = ByteArray.zigZagEncode64(10); + const b: adone.math.Long = ByteArray.zigZagEncode64("10"); + const c: adone.math.Long = ByteArray.zigZagEncode64(adone.math.Long.fromValue(10)); + } + + namespace zigZagDecode64 { + const a: adone.math.Long = ByteArray.zigZagDecode64(10); + const b: adone.math.Long = ByteArray.zigZagDecode64("10"); + const c: adone.math.Long = ByteArray.zigZagDecode64(adone.math.Long.fromValue(10)); + } + + namespace calculateUTF8Chars { + const a: number = ByteArray.calculateUTF8Chars("123"); + } + + namespace calculateString { + const a: number = ByteArray.calculateString("123"); + } + + namespace fromBase64 { + const a: adone.collection.ByteArray = ByteArray.fromBase64("123"); + } + + namespace btoa { + const a: string = ByteArray.btoa("123"); + } + + namespace atob { + const a: string = ByteArray.atob("123"); + } + + namespace fromBinary { + const a: adone.collection.ByteArray = ByteArray.fromBinary("123"); + } + + namespace fromDebug { + const a: adone.collection.ByteArray = ByteArray.fromDebug("12"); + const b: adone.collection.ByteArray = ByteArray.fromDebug("12", true); + } + + namespace fromHex { + const a: adone.collection.ByteArray = ByteArray.fromHex("192"); + const b: adone.collection.ByteArray = ByteArray.fromHex("192", true); + } + + namespace fromUTF8 { + const a: adone.collection.ByteArray = ByteArray.fromUTF8("123"); + const b: adone.collection.ByteArray = ByteArray.fromUTF8("123", true); + } + + namespace constants { + const a: number = ByteArray.DEFAULT_CAPACITY; + const b: boolean = ByteArray.DEFAULT_NOASSERT; + const c: number = ByteArray.MAX_VARINT32_BYTES; + const d: number = ByteArray.MAX_VARINT64_BYTES; + const e: string = ByteArray.METRICS_CHARS; + const f: string = ByteArray.METRICS_BYTES; + } + } + } + + namespace queueTests { + const { Queue } = collection; + type Queue = adone.collection.Queue; + + new Queue(); + { const a: Queue = new Queue().push(123).push(123); } + { const a: number | undefined = new Queue().push(123).pop(); } + { const a: string | undefined = new Queue().push(123).pop(); } + { const a: boolean = new Queue().full; } + { const a: number = new Queue().length; } + { const a: boolean = new Queue().empty; } + } + + namespace asyncQueueTests { + const { AsyncQueue } = collection; + type AsyncQueue = adone.collection.AsyncQueue; + + { const a: AsyncQueue = new AsyncQueue().push(123); } + { const a: Promise = new AsyncQueue().push(123).pop(); } + } + + namespace priorityQueueTests { + const { PriorityQueue } = collection; + type PriorityQueue = adone.collection.PriorityQueue; + + { const a: boolean = new PriorityQueue().empty; } + { const a: number = new PriorityQueue().length; } + new PriorityQueue(); + new PriorityQueue({}); + new PriorityQueue({ + compare(a: number, b: number) { + return a - b; + } + }); + new PriorityQueue({ + priority(a: string, b: string) { + return a.length - b.length; + } + }); + { const a: PriorityQueue = new PriorityQueue().clone(); } + { const a: PriorityQueue = new PriorityQueue().push("123"); } + { const a: string | undefined = new PriorityQueue().pop(); } + { const a: PriorityQueue = new PriorityQueue().delete("123"); } + { const a: PriorityQueue = new PriorityQueue().delete("123"); } + { const a: string = new PriorityQueue().replace("123"); } + { const a: string = new PriorityQueue().pushpop("123"); } + { const a: string[] = new PriorityQueue().toArray(); } + { const a: PriorityQueue = PriorityQueue.from(["1"]); } + { const a: PriorityQueue = PriorityQueue.from(["1"], {}); } + { const a: PriorityQueue = PriorityQueue.from(["1"], { compare: (a: string, b: string) => a.length - b.length }); } + { const a: PriorityQueue = PriorityQueue.from(["1"], { priority: (a: string, b: string) => a.length - b.length }); } + } + + namespace fastlruTests { + const { FastLRU } = collection; + + new FastLRU(); + new FastLRU(100); + new FastLRU(100, { dispose: (key: string, value: number) => null }); + { const a: number = new FastLRU().size; } + { const a: number | undefined = new FastLRU().get("key"); } + new FastLRU().set("key", 123); + { const a: boolean = new FastLRU().delete("key"); } + { const a: boolean = new FastLRU().has("key"); } + { const a: string[] = [...new FastLRU().keys()]; } + { const a: number[] = [...new FastLRU().values()]; } + { const a: number[] = [...new FastLRU().values()]; } + { const a: Array<[string, number]> = [...new FastLRU().entries()]; } + new FastLRU().clear(); + } + + namespace stackTests { + const { Stack } = collection; + type Stack = adone.collection.Stack; + + { const a: boolean = new Stack().empty; } + { const a: number = new Stack().top; } + { const a: Stack = new Stack().push(123); } + { const a: number | undefined = new Stack().pop(); } + { const a: number[] = [...new Stack()]; } + { const a: Stack = Stack.from([1, 2, 3]); } + } + + namespace binarySearchTreeTests { + const { BinarySearchTree } = collection; + type BinarySearchTree = adone.collection.BinarySearchTree; + + new BinarySearchTree(); + new BinarySearchTree({}); + new BinarySearchTree({ checkValueEquality: (a: number, b: number) => a === b }); + new BinarySearchTree({ compareKeys: (a: string, b: string) => a.length - b.length }); + new BinarySearchTree({ parent: new BinarySearchTree() }); + new BinarySearchTree({ unique: true }); + new BinarySearchTree({ value: 123 }); + { const a: BinarySearchTree = new BinarySearchTree().getMaxKeyDescendant(); } + { const a: string = new BinarySearchTree().getMaxKey(); } + { const a: BinarySearchTree = new BinarySearchTree().getMinKeyDescendant(); } + { const a: string = new BinarySearchTree().getMinKey(); } + new BinarySearchTree().checkAllNodesFullfillCondition((key: string, value: number) => null); + new BinarySearchTree().checkIsBST(); + { const a: number = new BinarySearchTree().getNumberOfKeys(); } + new BinarySearchTree().insert("asd", 123); + { const a: number[] = new BinarySearchTree().search("asd"); } + { const a: number[] = new BinarySearchTree().betweenBounds({ $gt: "" }); } + { const a: number[] = new BinarySearchTree().betweenBounds({ $lt: "" }); } + { const a: number[] = new BinarySearchTree().betweenBounds({ $lte: "" }); } + { const a: number[] = new BinarySearchTree().betweenBounds({ $gte: "" }); } + new BinarySearchTree().delete("key"); + new BinarySearchTree().delete("key", 123); + new BinarySearchTree().executeOnEveryNode((tree: BinarySearchTree) => null); + new BinarySearchTree().prettyPrint(); + new BinarySearchTree().prettyPrint(true); + new BinarySearchTree().prettyPrint(true, " "); + } + + namespace avlTreeTests { + const { AVLTree } = collection; + type AVLTree = adone.collection.AVLTree; + + new AVLTree(); + new AVLTree({ checkValueEquality: (a: number, b: number) => a === b }); + new AVLTree({ compareKeys: (a: string, b: string) => a.length - b.length }); + new AVLTree({ parent: new AVLTree() }); + new AVLTree({ unique: false }); + new AVLTree({ value: 123 }); + new AVLTree().checkIsAVLT(); + new AVLTree().insert("123", 123); + new AVLTree().delete("123"); + new AVLTree().delete("123", 123); + { const a: number = new AVLTree().getNumberOFKeys(); } + { const a: number[] = new AVLTree().search("key"); } + { const a: number[] = new AVLTree().betweenBounds({}); } + { const a: number[] = new AVLTree().betweenBounds({ $gt: "ads" }); } + { const a: number[] = new AVLTree().betweenBounds({ $lt: "ads" }); } + { const a: number[] = new AVLTree().betweenBounds({ $gte: "ads" }); } + { const a: number[] = new AVLTree().betweenBounds({ $lte: "ads" }); } + new AVLTree().executeOnEveryNode((tree: AVLTree) => null); + } + + namespace redBlackTreeTests { + const { RedBlackTree } = collection; + type RedBlackTree = adone.collection.RedBlackTree; + type RedBlackTreeIterator = adone.collection.I.RedBlackTree.Iterator; + type RedBlackTreeNode = adone.collection.I.RedBlackTree.Node; + + new RedBlackTree(); + new RedBlackTree((a: string, b: string) => a.length - b.length); + new RedBlackTree(undefined, new RedBlackTree()); + { const a: string[] = new RedBlackTree().keys; } + { const a: number[] = new RedBlackTree().values; } + { const a: number = new RedBlackTree().length; } + { + const a: RedBlackTreeIterator = new RedBlackTree().begin; + { const b: boolean = a.valid; } + { const b: RedBlackTreeNode | null = a.node; } + { const b: string | undefined = a.key; } + { const b: number | undefined = a.value; } + { const b: number = a.index; } + { const b: boolean = a.hasNext; } + { const b: boolean = a.hasPrev; } + { const b: RedBlackTree = a.tree; } + { const b: RedBlackTreeIterator = a.clone(); } + { const b: RedBlackTree = a.remove(); } + a.next(); + { const b: RedBlackTree = a.update(333); } + a.prev(); + } + { const a: RedBlackTreeIterator = new RedBlackTree().end; } + { const a: RedBlackTree = new RedBlackTree().insert("123", 456); } + { const a: number = new RedBlackTree().forEach((key: string, value: number) => value); } + { const a: number = new RedBlackTree().forEach((key: string, value: number) => value, "1"); } + { const a: number = new RedBlackTree().forEach((key: string, value: number) => value, "1", "2"); } + { const a: RedBlackTreeIterator = new RedBlackTree().at(1); } + { const a: RedBlackTreeIterator = new RedBlackTree().ge("1"); } + { const a: RedBlackTreeIterator = new RedBlackTree().gt("1"); } + { const a: RedBlackTreeIterator = new RedBlackTree().lt("1"); } + { const a: RedBlackTreeIterator = new RedBlackTree().le("1"); } + { const a: RedBlackTreeIterator | null = new RedBlackTree().find("1"); } + { const a: RedBlackTree = new RedBlackTree().remove("1"); } + { const a: RedBlackTree = new RedBlackTree().remove("1"); } + { const a: number | undefined = new RedBlackTree().get("1"); } + } + + namespace arraySetTests { + const { ArraySet } = collection; + type ArraySet = adone.collection.ArraySet; + + new ArraySet(); + { const a: number = new ArraySet().length; } + { const a: ArraySet = new ArraySet().add("hello"); } + { const a: ArraySet = new ArraySet().add("hello", true); } + { const a: boolean = new ArraySet().has("string"); } + { const a: number = new ArraySet().indexOf("hello"); } + { const a: string[] = new ArraySet().toArray(); } + { const a: ArraySet = ArraySet.from([1]); } + { const a: ArraySet = ArraySet.from([1], true); } + } + + namespace bufferListTests { + const { BufferList } = collection; + type BufferList = adone.collection.BufferList; + + new BufferList(); + new BufferList(Buffer.from("123")); + new BufferList("123"); + new BufferList(123); + new BufferList([Buffer.from("123"), "123", 123]); + new BufferList((err: any, data: Buffer) => null); + new BufferList().append(Buffer.from("123")); + new BufferList().append("123"); + new BufferList().append(123); + new BufferList().append([Buffer.from("123"), "123", 123]); + new BufferList().end(Buffer.from("123")); + new BufferList().end(); + { const a: number = new BufferList().get(123); } + { const a: Buffer = new BufferList().slice(); } + { const a: Buffer = new BufferList().slice(1); } + { const a: Buffer = new BufferList().slice(1, 2); } + { const a: Buffer = new BufferList().copy(Buffer.alloc(100)); } + { const a: Buffer = new BufferList().copy(Buffer.alloc(100), 0); } + { const a: Buffer = new BufferList().copy(Buffer.alloc(100), 0, 1); } + { const a: Buffer = new BufferList().copy(Buffer.alloc(100), 0, 1, 2); } + { const a: BufferList = new BufferList().shallowSlice(); } + { const a: BufferList = new BufferList().shallowSlice(1); } + { const a: BufferList = new BufferList().shallowSlice(1, 2); } + { const a: string = new BufferList().toString(); } + { const a: string = new BufferList().toString("utf8"); } + { const a: string = new BufferList().toString("utf8", 1); } + { const a: string = new BufferList().toString("utf8", 1, 2); } + { const a: BufferList = new BufferList().consume(10); } + { const a: BufferList = new BufferList().duplicate(); } + new BufferList().destroy(); + new BufferList().then((x: Buffer) => null); + new BufferList().catch((err: any) => null); + } + + namespace defaultMapTests { + const { DefaultMap } = collection; + type DefaultMap = adone.collection.DefaultMap; + + new DefaultMap(); + { const a: DefaultMap = new DefaultMap(undefined, [["1", 2]]); } + { const a: DefaultMap = new DefaultMap((key: string) => 123); } + { const a: DefaultMap = new DefaultMap({ a: 123 }); } + } + + namespace lruTests { + const { LRU } = collection; + type LRU = adone.collection.LRU; + + new LRU(); + new LRU(100); + new LRU({}); + new LRU({ max: 100 }); + new LRU({ dispose: (key: string, value: number) => null }); + new LRU({ maxAge: 100 }); + new LRU({ noDisposeOnSet: false }); + new LRU({ stale: true }); + { const a: number = new LRU().max; } + { new LRU().max = 100; } + { const a: boolean = new LRU().allowStale; } + { new LRU().allowStale = false; } + { const a: number = new LRU().maxAge; } + { new LRU().maxAge = 100; } + { const a: (v: number, k: string) => number = new LRU().lengthCalculator; } + { new LRU().lengthCalculator = () => 123; } + { const a: number = new LRU().length; } + { const a: number = new LRU().itemCount; } + new LRU().rforEach((value: number, key: string) => null); + new LRU().rforEach(function (value: number, key: string) { + const b: number = this.a; + }, { a: 1 }); + new LRU().forEach((value: number, key: string) => null); + new LRU().forEach(function (value: number, key: string) { + const b: number = this.a; + }, { a: 1 }); + { const a: string[] = new LRU().keys(); } + { const a: number[] = new LRU().values(); } + new LRU().reset(); + { + const a: Array> = new LRU().dump(); + const [b] = a; + { const c: number = b.e; } + { const c: string = b.key; } + { const c: number = b.value; } + } + { + const a: adone.collection.LinkedList> = new LRU().dumpLru(); + const b = a.shift(); + if (b !== undefined) { + { const a: string = b.key; } + { const a: number = b.value; } + { const a: number = b.now; } + { const a: number = b.maxAge; } + } + } + { const a: string = new LRU().inspect(); } + { const a: string = new LRU().inspect({}); } + { const a: boolean = new LRU().set("asd", 13); } + { const a: boolean = new LRU().set("asd", 13, 100500); } + { const a: boolean = new LRU().has("asd"); } + { const a: number | undefined = new LRU().get("asd"); } + { const a: number | undefined = new LRU().peek("asd"); } + { const a: adone.collection.I.LRU.Entry = new LRU().pop(); } + new LRU().del("asd"); + new LRU().load(new LRU().dump()); + new LRU().prune(); + } + + namespace timedoutMapTests { + const { TimedoutMap } = collection; + type TimedoutMap = adone.collection.TimedoutMap; + + new TimedoutMap(); + new TimedoutMap(1000); + new TimedoutMap(1000, (key: string) => null); + { + const a: TimedoutMap = new TimedoutMap().forEach((value: number, key: string) => null); + } + { + const a: TimedoutMap = new TimedoutMap().forEach(function (value: number, key: string) { + const a: number = this.a; + }, { a: 1 }); + } + { const a: boolean = new TimedoutMap().delete("123"); } + } +} diff --git a/types/adone/test/glosses/common.ts b/types/adone/test/glosses/common.ts deleted file mode 100644 index c66f6a5410..0000000000 --- a/types/adone/test/glosses/common.ts +++ /dev/null @@ -1,808 +0,0 @@ -namespace commonTests { - namespace is { - { const a: boolean = adone.is.null({}); } - { const a: boolean = adone.is.undefined({}); } - { const a: boolean = adone.is.exist({}); } - { const a: boolean = adone.is.nil({}); } - { const a: boolean = adone.is.number({}); } - { const a: boolean = adone.is.numeral({}); } - { const a: boolean = adone.is.infinite({}); } - { const a: boolean = adone.is.odd({}); } - { const a: boolean = adone.is.even({}); } - { const a: boolean = adone.is.float({}); } - { const a: boolean = adone.is.negativeZero({}); } - { const a: boolean = adone.is.string({}); } - { const a: boolean = adone.is.emptyString({}); } - { const a: boolean = adone.is.substring("abc", "abcdef"); } - { const a: boolean = adone.is.substring("abc", "abcdef", 0); } - { const a: boolean = adone.is.prefix("abc", "abcdef"); } - { const a: boolean = adone.is.suffix("def", "abbdef"); } - { const a: boolean = adone.is.boolean({}); } - { const a: boolean = adone.is.json({}); } - { const a: boolean = adone.is.object({}); } - { const a: boolean = adone.is.plainObject({}); } - { const a: boolean = adone.is.class({}); } - { const a: boolean = adone.is.emptyObject({}); } - { const a: boolean = adone.is.propertyOwned({}, "a"); } - { const a: boolean = adone.is.propertyDefined({}, "a"); } - { const a: boolean = adone.is.conforms({}, {}); } - { const a: boolean = adone.is.conforms({}, {}, true); } - { const a: boolean = adone.is.arrayLikeObject({}); } - { const a: boolean = adone.is.inArray(1, [1, 2, 3]); } - { const a: boolean = adone.is.inArray(1, [1, 2, 3], 0); } - { const a: boolean = adone.is.inArray(1, [1, 2, 3], 0, (a, b) => a === b); } - { const a: boolean = adone.is.sameType({}, {}); } - { const a: boolean = adone.is.primitive({}); } - { const a: boolean = adone.is.equalArrays([], []); } - { const a: boolean = adone.is.deepEqual({}, {}); } - { const a: boolean = adone.is.shallowEqual({}, {}); } - { const a: boolean = adone.is.stream({}); } - { const a: boolean = adone.is.writableStream({}); } - { const a: boolean = adone.is.readableStream({}); } - { const a: boolean = adone.is.duplexStream({}); } - { const a: boolean = adone.is.transformStream({}); } - { const a: boolean = adone.is.utf8(Buffer.alloc(10)); } - { const a: boolean = adone.is.win32PathAbsolute("abc"); } - { const a: boolean = adone.is.posixPathAbsolute("abc"); } - { const a: boolean = adone.is.pathAbsolute("abc"); } - { const a: boolean = adone.is.glob("abc"); } - { const a: boolean = adone.is.dotfile("abc"); } - { const a: boolean = adone.is.function(() => { }); } - { const a: boolean = adone.is.asyncFunction(async () => { }); } - { const a: boolean = adone.is.promise({}); } - { const a: boolean = adone.is.validDate("07.08.2017"); } - { const a: boolean = adone.is.buffer({}); } - { const a: boolean = adone.is.callback({}); } - { const a: boolean = adone.is.generator({}); } - { const a: boolean = adone.is.nan({}); } - { const a: boolean = adone.is.finite({}); } - { const a: boolean = adone.is.integer({}); } - { const a: boolean = adone.is.safeInteger({}); } - { const a: boolean = adone.is.array({}); } - { const a: boolean = adone.is.uint8Array({}); } - { const a: boolean = adone.is.configuration({}); } - { const a: boolean = adone.is.long({}); } - { const a: boolean = adone.is.bigNumber({}); } - { const a: boolean = adone.is.exbuffer({}); } - { const a: boolean = adone.is.exdate({}); } - { const a: boolean = adone.is.transform({}); } - { const a: boolean = adone.is.subsystem({}); } - { const a: boolean = adone.is.application({}); } - { const a: boolean = adone.is.logger({}); } - { const a: boolean = adone.is.coreStream({}); } - { const a: boolean = adone.is.fastStream({}); } - { const a: boolean = adone.is.fastFSStream({}); } - { const a: boolean = adone.is.fastFSMapStream({}); } - { const a: boolean = adone.is.genesisNetron({}); } - { const a: boolean = adone.is.genesisPeer({}); } - { const a: boolean = adone.is.netronAdapter({}); } - { const a: boolean = adone.is.netron({}); } - { const a: boolean = adone.is.netronPeer({}); } - { const a: boolean = adone.is.netronDefinition({}); } - { const a: boolean = adone.is.netronDefinitions({}); } - { const a: boolean = adone.is.netronReference({}); } - { const a: boolean = adone.is.netronInterface({}); } - { const a: boolean = adone.is.netronContext({}); } - { const a: boolean = adone.is.netronIMethod({}, "hello"); } - { const a: boolean = adone.is.netronIProperty({}, "hello"); } - { const a: boolean = adone.is.netronStub({}); } - { const a: boolean = adone.is.netronRemoteStub({}); } - { const a: boolean = adone.is.netronStream({}); } - { const a: boolean = adone.is.iterable({}); } - { const a: boolean = adone.is.windows; } - { const a: boolean = adone.is.linux; } - { const a: boolean = adone.is.freebsd; } - { const a: boolean = adone.is.darwin; } - { const a: boolean = adone.is.sunos; } - { const a: boolean = adone.is.uppercase("abc"); } - { const a: boolean = adone.is.lowercase("abc"); } - { const a: boolean = adone.is.digits("012"); } - { const a: boolean = adone.is.identifier("someMethod"); } - { const a: boolean = adone.is.binaryExtension("mp3"); } - { const a: boolean = adone.is.binaryPath("a.mp3"); } - { const a: boolean = adone.is.ip4("192.168.1.1"); } - { const a: boolean = adone.is.ip6("::192.168.1.1"); } - { const a: boolean = adone.is.arrayBuffer({}); } - { const a: boolean = adone.is.arrayBufferView({}); } - { const a: boolean = adone.is.date({}); } - { const a: boolean = adone.is.error({}); } - { const a: boolean = adone.is.map({}); } - { const a: boolean = adone.is.regexp({}); } - { const a: boolean = adone.is.set({}); } - { const a: boolean = adone.is.symbol({}); } - { const a: boolean = adone.is.validUTF8({}); } - } - - namespace x { - { const a: Error = new adone.x.Exception(); } - { const a: Error = new adone.x.Exception("message"); } - { const a: Error = new adone.x.Exception(new Error()); } - { const a: Error = new adone.x.Exception(new Error(), true); } - { const a: adone.x.Exception = new adone.x.Runtime(); } - { const a: adone.x.Exception = new adone.x.IncompleteBufferError(); } - { const a: adone.x.Exception = new adone.x.NotImplemented(); } - { const a: adone.x.Exception = new adone.x.IllegalState(); } - { const a: adone.x.Exception = new adone.x.NotValid(); } - { const a: adone.x.Exception = new adone.x.Unknown(); } - { const a: adone.x.Exception = new adone.x.NotExists(); } - { const a: adone.x.Exception = new adone.x.Exists(); } - { const a: adone.x.Exception = new adone.x.Empty(); } - { const a: adone.x.Exception = new adone.x.InvalidAccess(); } - { const a: adone.x.Exception = new adone.x.NotSupported(); } - { const a: adone.x.Exception = new adone.x.InvalidArgument(); } - { const a: adone.x.Exception = new adone.x.InvalidNumberOfArguments(); } - { const a: adone.x.Exception = new adone.x.NotFound(); } - { const a: adone.x.Exception = new adone.x.Timeout(); } - { const a: adone.x.Exception = new adone.x.Incorrect(); } - { const a: adone.x.Exception = new adone.x.NotAllowed(); } - { const a: adone.x.Exception = new adone.x.LimitExceeded(); } - { const a: adone.x.Exception = new adone.x.Encoding(); } - { const a: adone.x.Exception = new adone.x.Network(); } - { const a: adone.x.Exception = new adone.x.Bind(); } - { const a: adone.x.Exception = new adone.x.Connect(); } - { const a: adone.x.Exception = new adone.x.Database(); } - { const a: adone.x.Exception = new adone.x.DatabaseInitialization(); } - { const a: adone.x.Exception = new adone.x.DatabaseOpen(); } - { const a: adone.x.Exception = new adone.x.DatabaseRead(); } - { const a: adone.x.Exception = new adone.x.DatabaseWrite(); } - { const a: adone.x.Exception = new adone.x.NetronIllegalState(); } - { const a: adone.x.Exception = new adone.x.NetronPeerDisconnected(); } - { const a: adone.x.Exception = new adone.x.NetronTimeout(); } - } - - namespace EventEmitter { - namespace static { - const a: number = adone.EventEmitter.listenerCount(new adone.EventEmitter(), "event"); - const b: number = adone.EventEmitter.defaultMaxListeners; - } - - namespace addListener { - const a: adone.EventEmitter = new adone.EventEmitter().addListener("event", () => { }); - const b: adone.EventEmitter = new adone.EventEmitter().addListener(Symbol("event"), () => { }); - } - - namespace on { - const a: adone.EventEmitter = new adone.EventEmitter().on("event", () => { }); - const b: adone.EventEmitter = new adone.EventEmitter().on(Symbol("event"), () => { }); - } - - namespace once { - const a: adone.EventEmitter = new adone.EventEmitter().once("event", () => { }); - const b: adone.EventEmitter = new adone.EventEmitter().once(Symbol("event"), () => { }); - } - - namespace prependListener { - const a: adone.EventEmitter = new adone.EventEmitter().prependListener("event", () => { }); - const b: adone.EventEmitter = new adone.EventEmitter().prependListener(Symbol("event"), () => { }); - } - - namespace prependOnceListener { - const a: adone.EventEmitter = new adone.EventEmitter().prependOnceListener("event", () => { }); - const b: adone.EventEmitter = new adone.EventEmitter().prependOnceListener(Symbol("event"), () => { }); - } - - namespace prependOnceListener { - const a: adone.EventEmitter = new adone.EventEmitter().prependOnceListener("event", () => { }); - const b: adone.EventEmitter = new adone.EventEmitter().prependOnceListener(Symbol("event"), () => { }); - } - - namespace removeListener { - const a: adone.EventEmitter = new adone.EventEmitter().removeListener("event", () => { }); - const b: adone.EventEmitter = new adone.EventEmitter().removeListener(Symbol("event"), () => { }); - } - - namespace removeAllListeners { - const a: adone.EventEmitter = new adone.EventEmitter().removeAllListeners("event"); - const b: adone.EventEmitter = new adone.EventEmitter().removeAllListeners(Symbol("event")); - } - - namespace setMaxListeners { - const a: adone.EventEmitter = new adone.EventEmitter().setMaxListeners(10); - } - - namespace getMaxListeners { - const a: number = new adone.EventEmitter().getMaxListeners(); - } - - namespace listeners { - const a: Array<(...args: any[]) => any> = new adone.EventEmitter().listeners("event"); - const b: Array<(...args: any[]) => any> = new adone.EventEmitter().listeners(Symbol("event")); - } - - namespace emit { - const a: boolean = new adone.EventEmitter().emit("event", 1, 2, 3); - const b: boolean = new adone.EventEmitter().emit(Symbol("event"), 1, 2, 3); - } - - namespace eventNames { - const a: Array = new adone.EventEmitter().eventNames(); - const b: Array = new adone.EventEmitter().eventNames(); - } - - namespace listenerCount { - const a: number = new adone.EventEmitter().listenerCount("event"); - const b: number = new adone.EventEmitter().listenerCount(Symbol("event")); - } - } - - namespace AsyncEmitter { - const a: adone.EventEmitter = new adone.AsyncEmitter(); - new adone.AsyncEmitter(10); - - namespace setConcurrency { - const a: adone.AsyncEmitter = new adone.AsyncEmitter().setConcurrency(); - const b: adone.AsyncEmitter = new adone.AsyncEmitter().setConcurrency(10); - } - - namespace emitParallel { - const a: Promise = new adone.AsyncEmitter().emitParallel("even"); - const b: Promise = new adone.AsyncEmitter().emitParallel("even", 1, 2, 3); - } - - namespace emitSerial { - const a: Promise = new adone.AsyncEmitter().emitSerial("even"); - const b: Promise = new adone.AsyncEmitter().emitSerial("even", 1, 2, 3); - } - - namespace emitReduce { - const a: Promise = new adone.AsyncEmitter().emitReduce("even"); - const b: Promise = new adone.AsyncEmitter().emitReduce("even", 1, 2, 3); - } - - namespace emitReduceRight { - const a: Promise = new adone.AsyncEmitter().emitReduceRight("even"); - const b: Promise = new adone.AsyncEmitter().emitReduceRight("even", 1, 2, 3); - } - - namespace subscribe { - const a: () => void = new adone.AsyncEmitter().subscribe("event", () => { }); - const b: () => void = new adone.AsyncEmitter().subscribe("event", () => { }, true); - } - } - - namespace ExBuffer { - new adone.ExBuffer(); - new adone.ExBuffer(10); - new adone.ExBuffer(10, true); - - const buffer = new adone.ExBuffer(); - - namespace readBitSet { - const a: number[] = buffer.readBitSet(); - const b: number[] = buffer.readBitSet(10); - } - - namespace read { - const a: adone.ExBuffer = buffer.read(1); - const b: adone.ExBuffer = buffer.read(1, 10); - } - - namespace readInt8 { - const a: number = buffer.readInt8(); - const b: number = buffer.readInt8(10); - } - - namespace readUInt8 { - const a: number = buffer.readUInt8(); - const b: number = buffer.readUInt8(10); - } - - namespace readInt16LE { - const a: number = buffer.readInt16LE(); - const b: number = buffer.readInt16LE(10); - } - - namespace readUInt16LE { - const a: number = buffer.readUInt16LE(); - const b: number = buffer.readUInt16LE(10); - } - - namespace readInt16BE { - const a: number = buffer.readInt16BE(); - const b: number = buffer.readInt16BE(10); - } - - namespace readUInt16BE { - const a: number = buffer.readUInt16BE(); - const b: number = buffer.readUInt16BE(10); - } - - namespace readInt32LE { - const a: number = buffer.readInt32LE(); - const b: number = buffer.readInt32LE(10); - } - - namespace readUInt32LE { - const a: number = buffer.readUInt32LE(); - const b: number = buffer.readUInt32LE(10); - } - - namespace readInt32BE { - const a: number = buffer.readInt32BE(); - const b: number = buffer.readInt32BE(10); - } - - namespace readUInt32BE { - const a: number = buffer.readUInt32BE(); - const b: number = buffer.readUInt32BE(10); - } - - namespace readInt64LE { - const a: adone.math.Long = buffer.readInt64LE(); - const b: adone.math.Long = buffer.readInt64LE(10); - } - - namespace readUInt64LE { - const a: adone.math.Long = buffer.readUInt64LE(); - const b: adone.math.Long = buffer.readUInt64LE(10); - } - - namespace readInt64BE { - const a: adone.math.Long = buffer.readInt64BE(); - const b: adone.math.Long = buffer.readInt64BE(10); - } - - namespace readUInt64BE { - const a: adone.math.Long = buffer.readUInt64BE(); - const b: adone.math.Long = buffer.readUInt64BE(10); - } - - namespace readFloatLE { - const a: number = buffer.readFloatLE(); - const b: number = buffer.readFloatLE(10); - } - - namespace readFloatBE { - const a: number = buffer.readFloatBE(); - const b: number = buffer.readFloatBE(10); - } - - namespace readDoubleLE { - const a: number = buffer.readDoubleLE(); - const b: number = buffer.readDoubleLE(10); - } - - namespace readDoubleBE { - const a: number = buffer.readDoubleBE(); - const b: number = buffer.readDoubleBE(10); - } - - namespace write { - const a: adone.ExBuffer = buffer.write("1"); - const b: adone.ExBuffer = buffer.write(new adone.ExBuffer()); - const c: adone.ExBuffer = buffer.write(Buffer.alloc(10)); - const d: adone.ExBuffer = buffer.write(new Uint8Array([1, 2, 3])); - const e: adone.ExBuffer = buffer.write(new ArrayBuffer(10)); - const f: adone.ExBuffer = buffer.write("1", 10); - const g: adone.ExBuffer = buffer.write("1", 10, 10); - const h: adone.ExBuffer = buffer.write("1", 10, 10, "utf8"); - } - - namespace writeBitSet { - const a: adone.ExBuffer = buffer.writeBitSet([1, 2, 3]); - const b: number = buffer.writeBitSet([1, 2, 3], 10); - } - - namespace writeInt8 { - const a: adone.ExBuffer = buffer.writeInt8(10); - const b: adone.ExBuffer = buffer.writeInt8(10, 10); - } - - namespace writeUInt8 { - const a: adone.ExBuffer = buffer.writeUInt8(10); - const b: adone.ExBuffer = buffer.writeUInt8(10, 10); - } - - namespace writeInt16LE { - const a: adone.ExBuffer = buffer.writeInt16LE(10); - const b: adone.ExBuffer = buffer.writeInt16LE(10, 10); - } - - namespace writeInt16BE { - const a: adone.ExBuffer = buffer.writeInt16BE(10); - const b: adone.ExBuffer = buffer.writeInt16BE(10, 10); - } - - namespace writeUInt16LE { - const a: adone.ExBuffer = buffer.writeUInt16LE(10); - const b: adone.ExBuffer = buffer.writeUInt16LE(10, 10); - } - - namespace writeUInt16BE { - const a: adone.ExBuffer = buffer.writeUInt16BE(10); - const b: adone.ExBuffer = buffer.writeUInt16BE(10, 10); - } - - namespace writeInt32LE { - const a: adone.ExBuffer = buffer.writeInt32LE(10); - const b: adone.ExBuffer = buffer.writeInt32LE(10, 10); - } - - namespace writeInt32BE { - const a: adone.ExBuffer = buffer.writeInt32BE(10); - const b: adone.ExBuffer = buffer.writeInt32BE(10, 10); - } - - namespace writeUInt32LE { - const a: adone.ExBuffer = buffer.writeUInt32LE(10); - const b: adone.ExBuffer = buffer.writeUInt32LE(10, 10); - } - - namespace writeUInt32BE { - const a: adone.ExBuffer = buffer.writeUInt32BE(10); - const b: adone.ExBuffer = buffer.writeUInt32BE(10, 10); - } - - namespace writeInt64LE { - const a: adone.ExBuffer = buffer.writeInt64LE(10); - const b: adone.ExBuffer = buffer.writeInt64LE(10, 10); - } - - namespace writeInt64BE { - const a: adone.ExBuffer = buffer.writeInt64BE(10); - const b: adone.ExBuffer = buffer.writeInt64BE(10, 10); - } - - namespace writeUInt64LE { - const a: adone.ExBuffer = buffer.writeUInt64LE(10); - const b: adone.ExBuffer = buffer.writeUInt64LE(10, 10); - } - - namespace writeUInt64BE { - const a: adone.ExBuffer = buffer.writeUInt64BE(10); - const b: adone.ExBuffer = buffer.writeUInt64BE(10, 10); - } - - namespace writeFloatLE { - const a: adone.ExBuffer = buffer.writeFloatLE(10); - const b: adone.ExBuffer = buffer.writeFloatLE(10, 10); - } - - namespace writeFloatBE { - const a: adone.ExBuffer = buffer.writeFloatBE(10); - const b: adone.ExBuffer = buffer.writeFloatBE(10, 10); - } - - namespace writeDoubleLE { - const a: adone.ExBuffer = buffer.writeDoubleLE(10); - const b: adone.ExBuffer = buffer.writeDoubleLE(10, 10); - } - - namespace writeDoubleBE { - const a: adone.ExBuffer = buffer.writeDoubleBE(10); - const b: adone.ExBuffer = buffer.writeDoubleBE(10, 10); - } - - namespace writeVarInt32 { - const a: adone.ExBuffer = buffer.writeVarint32(10); - const b: number = buffer.writeVarint32(10, 10); - } - - namespace writeVarInt32ZigZag { - const a: adone.ExBuffer = buffer.writeVarint32ZigZag(10); - const b: number = buffer.writeVarint32ZigZag(10, 10); - } - - namespace readVarint32 { - const a: number = buffer.readVarint32(); - const b: { value: number, length: number } = buffer.readVarint32(10); - } - - namespace readVarint32ZigZag { - const a: number = buffer.readVarint32ZigZag(); - const b: { value: number, length: number } = buffer.readVarint32ZigZag(10); - } - - namespace writeVarint64 { - const a: adone.ExBuffer = buffer.writeVarint64(10); - const b: number = buffer.writeVarint64(10, 10); - } - - namespace writeVarint64ZigZag { - const a: adone.ExBuffer = buffer.writeVarint64ZigZag(10); - const b: number = buffer.writeVarint64ZigZag(10, 10); - } - - namespace readVarint64 { - const a: adone.math.Long = buffer.readVarint64(); - const b: { value: adone.math.Long, length: number } = buffer.readVarint64(10); - } - - namespace readVarint64ZigZag { - const a: adone.math.Long = buffer.readVarint64ZigZag(); - const b: { value: adone.math.Long, length: number } = buffer.readVarint64ZigZag(10); - } - - namespace writeCString { - const a: adone.ExBuffer = buffer.writeCString("asd"); - const b: number = buffer.writeCString("123", 10); - } - - namespace readCString { - const a: string = buffer.readCString(); - const b: { string: string, length: number } = buffer.readCString(10); - } - - namespace writeString { - const a: adone.ExBuffer = buffer.writeString("abc"); - const b: number = buffer.writeString("abc", 10); - } - - namespace readString { - const a: string = buffer.readString(10); - const b: string = buffer.readString(10, "b"); - const c: string = buffer.readString(10, "c"); - const d: { string: string, length: number } = buffer.readString(10, "c", 10); - } - - namespace writeVString { - const a: adone.ExBuffer = buffer.writeVString("abc"); - const b: number = buffer.writeVString("abc", 10); - } - - namespace readVString { - const a: string = buffer.readVString(); - const b: { string: string, length: number } = buffer.readVString(10); - } - - namespace appendTo { - const a: adone.ExBuffer = buffer.appendTo(new adone.ExBuffer()); - const b: adone.ExBuffer = buffer.appendTo(new adone.ExBuffer(), 10); - } - - namespace assert { - const a: adone.ExBuffer = buffer.assert(); - const b: adone.ExBuffer = buffer.assert(true); - } - - namespace capacity { - const a: number = buffer.capacity(); - } - - namespace clear { - const a: adone.ExBuffer = buffer.clear(); - } - - namespace compact { - const a: adone.ExBuffer = buffer.compact(); - const b: adone.ExBuffer = buffer.compact(1); - const c: adone.ExBuffer = buffer.compact(1, 10); - } - - namespace copyTo { - const a: adone.ExBuffer = buffer.copyTo(new adone.ExBuffer()); - const b: adone.ExBuffer = buffer.copyTo(new adone.ExBuffer(), 0); - const c: adone.ExBuffer = buffer.copyTo(new adone.ExBuffer(), 0, 0); - const d: adone.ExBuffer = buffer.copyTo(new adone.ExBuffer(), 0, 0, 10); - } - - namespace ensureCapacity { - const a: adone.ExBuffer = buffer.ensureCapacity(10); - } - - namespace fill { - const a: adone.ExBuffer = buffer.fill("0"); - const b: adone.ExBuffer = buffer.fill(0); - const c: adone.ExBuffer = buffer.fill(0, 0); - const d: adone.ExBuffer = buffer.fill(0, 0, 10); - } - - namespace flip { - const a: adone.ExBuffer = buffer.flip(); - } - - namespace mark { - const a: adone.ExBuffer = buffer.mark(); - const b: adone.ExBuffer = buffer.mark(10); - } - - namespace prepend { - const a: adone.ExBuffer = buffer.prepend(""); - const b: adone.ExBuffer = buffer.prepend(new adone.ExBuffer()); - const c: adone.ExBuffer = buffer.prepend(Buffer.alloc(10)); - const d: adone.ExBuffer = buffer.prepend(new Uint8Array([1, 2, 3])); - const e: adone.ExBuffer = buffer.prepend(new ArrayBuffer(10)); - const f: adone.ExBuffer = buffer.prepend("", "utf8"); - const g: adone.ExBuffer = buffer.prepend("", "utf8", 10); - const h: adone.ExBuffer = buffer.prepend("", 10); - } - - namespace prependTo { - const a: adone.ExBuffer = buffer.prependTo(new adone.ExBuffer()); - const b: adone.ExBuffer = buffer.prependTo(new adone.ExBuffer(), 10); - } - - namespace remaining { - const a: number = buffer.remaining(); - } - - namespace reset { - const a: adone.ExBuffer = buffer.reset(); - } - - namespace resize { - const a: adone.ExBuffer = buffer.resize(10); - } - - namespace reverse { - const a: adone.ExBuffer = buffer.reverse(); - const b: adone.ExBuffer = buffer.reverse(1); - const c: adone.ExBuffer = buffer.reverse(1, 10); - } - - namespace skip { - const a: adone.ExBuffer = buffer.skip(10); - } - - namespace slice { - const a: adone.ExBuffer = buffer.slice(); - const b: adone.ExBuffer = buffer.slice(1); - const c: adone.ExBuffer = buffer.slice(1, 10); - } - - namespace toBuffer { - const a: Buffer = buffer.toBuffer(); - const b: Buffer = buffer.toBuffer(true); - const c: Buffer = buffer.toBuffer(true, 0); - const d: Buffer = buffer.toBuffer(true, 0, 10); - } - - namespace toArrayBuffer { - const a: ArrayBuffer = buffer.toArrayBuffer(); - } - - namespace toString { - const a: string = buffer.toString(); - const b: string = buffer.toString("utf8"); - const c: string = buffer.toString("utf8", 0); - const d: string = buffer.toString("utf8", 0, 10); - } - - namespace toBase64 { - const a: string = buffer.toBase64(); - const b: string = buffer.toBase64(0); - const c: string = buffer.toBase64(0, 10); - } - - namespace toBinary { - const a: string = buffer.toBinary(); - const b: string = buffer.toBinary(0); - const c: string = buffer.toBinary(0, 10); - } - - namespace toDebug { - const a: string = buffer.toDebug(); - const b: string = buffer.toDebug(true); - } - - namespace toUTF8 { - const a: string = buffer.toUTF8(); - const b: string = buffer.toUTF8(0); - const c: string = buffer.toUTF8(0, 10); - } - - namespace static { - namespace accessor { - const a: typeof Buffer = adone.ExBuffer.accessor(); - } - - namespace allocate { - const a: adone.ExBuffer = adone.ExBuffer.allocate(); - const b: adone.ExBuffer = adone.ExBuffer.allocate(10); - const c: adone.ExBuffer = adone.ExBuffer.allocate(10, true); - } - - namespace concat { - const a: adone.ExBuffer = adone.ExBuffer.concat([ - new adone.ExBuffer(), - Buffer.alloc(10), - new Uint8Array([1, 2, 3]), - new ArrayBuffer(10) - ]); - const b: adone.ExBuffer = adone.ExBuffer.concat([ - new adone.ExBuffer(), - Buffer.alloc(10), - new Uint8Array([1, 2, 3]), - new ArrayBuffer(10) - ], "utf8"); - const c: adone.ExBuffer = adone.ExBuffer.concat([ - new adone.ExBuffer(), - Buffer.alloc(10), - new Uint8Array([1, 2, 3]), - new ArrayBuffer(10) - ], "utf8", true); - } - - namespace type { - const a: typeof Buffer = adone.ExBuffer.type(); - } - - namespace wrap { - const a: adone.ExBuffer = adone.ExBuffer.wrap(""); - const b: adone.ExBuffer = adone.ExBuffer.wrap(new adone.ExBuffer()); - const c: adone.ExBuffer = adone.ExBuffer.wrap(Buffer.alloc(10)); - const d: adone.ExBuffer = adone.ExBuffer.wrap(new Uint8Array([1, 2, 3])); - const e: adone.ExBuffer = adone.ExBuffer.wrap(new ArrayBuffer(10)); - const f: adone.ExBuffer = adone.ExBuffer.wrap("", "utf8"); - const g: adone.ExBuffer = adone.ExBuffer.wrap("", "utf8", true); - } - - namespace calculateVarint32 { - const a: number = adone.ExBuffer.calculateVarint32(10); - } - - namespace zigZagEncode32 { - const a: number = adone.ExBuffer.zigZagEncode32(10); - } - - namespace zigZagDecode32 { - const a: number = adone.ExBuffer.zigZagDecode32(10); - } - - namespace calculateVarint64 { - const a: number = adone.ExBuffer.calculateVarint64(10); - const b: number = adone.ExBuffer.calculateVarint64("10"); - } - - namespace zigZagEncode64 { - const a: adone.math.Long = adone.ExBuffer.zigZagEncode64(10); - const b: adone.math.Long = adone.ExBuffer.zigZagEncode64("10"); - const c: adone.math.Long = adone.ExBuffer.zigZagEncode64(adone.math.Long.fromValue(10)); - } - - namespace zigZagDecode64 { - const a: adone.math.Long = adone.ExBuffer.zigZagDecode64(10); - const b: adone.math.Long = adone.ExBuffer.zigZagDecode64("10"); - const c: adone.math.Long = adone.ExBuffer.zigZagDecode64(adone.math.Long.fromValue(10)); - } - - namespace calculateUTF8Chars { - const a: number = adone.ExBuffer.calculateUTF8Chars("123"); - } - - namespace calculateString { - const a: number = adone.ExBuffer.calculateString("123"); - } - - namespace fromBase64 { - const a: adone.ExBuffer = adone.ExBuffer.fromBase64("123"); - } - - namespace btoa { - const a: string = adone.ExBuffer.btoa("123"); - } - - namespace atob { - const a: string = adone.ExBuffer.atob("123"); - } - - namespace fromBinary { - const a: adone.ExBuffer = adone.ExBuffer.fromBinary("123"); - } - - namespace fromDebug { - const a: adone.ExBuffer = adone.ExBuffer.fromDebug("12"); - const b: adone.ExBuffer = adone.ExBuffer.fromDebug("12", true); - } - - namespace fromHex { - const a: adone.ExBuffer = adone.ExBuffer.fromHex("192"); - const b: adone.ExBuffer = adone.ExBuffer.fromHex("192", true); - } - - namespace fromUTF8 { - const a: adone.ExBuffer = adone.ExBuffer.fromUTF8("123"); - const b: adone.ExBuffer = adone.ExBuffer.fromUTF8("123", true); - } - - namespace constants { - const a: number = adone.ExBuffer.DEFAULT_CAPACITY; - const b: boolean = adone.ExBuffer.DEFAULT_NOASSERT; - const c: number = adone.ExBuffer.MAX_VARINT32_BYTES; - const d: number = adone.ExBuffer.MAX_VARINT64_BYTES; - const e: string = adone.ExBuffer.METRICS_CHARS; - const f: string = adone.ExBuffer.METRICS_BYTES; - } - } - } -} diff --git a/types/adone/test/glosses/compressors.ts b/types/adone/test/glosses/compressors.ts new file mode 100644 index 0000000000..738dfe9e06 --- /dev/null +++ b/types/adone/test/glosses/compressors.ts @@ -0,0 +1,626 @@ +namespace compressorsTests { + const { compressor } = adone; + + namespace gzTests { + const { gz } = compressor; + + gz.compress("hello").then((x: Buffer) => {}); + gz.compress(Buffer.from("hello")).then((x: Buffer) => {}); + gz.compress(Buffer.from("hello"), {}).then((x: Buffer) => {}); + gz.compress(Buffer.from("hello"), { chunkSize: 4096 }).then((x: Buffer) => {}); + gz.compress(Buffer.from("hello"), { finishFlush: gz.Z_FINISH }).then((x: Buffer) => {}); + gz.compress(Buffer.from("hello"), { flush: gz.Z_NO_FLUSH }).then((x: Buffer) => {}); + gz.compress(Buffer.from("hello"), { info: true }).then((x: { buffer: Buffer, engine: nodestd.zlib.Gzip }) => {}); + gz.compress(Buffer.from("hello"), { level: gz.Z_BEST_COMPRESSION }).then((x: Buffer) => {}); + gz.compress(Buffer.from("hello"), { memLevel: gz.Z_BEST_COMPRESSION }).then((x: Buffer) => {}); + gz.compress(Buffer.from("hello"), { strategy: gz.Z_HUFFMAN_ONLY }).then((x: Buffer) => {}); + gz.compress(Buffer.from("hello"), { windowBits: 10 }).then((x: Buffer) => {}); + + { const a: Buffer = gz.compressSync("hello"); } + { const a: Buffer = gz.compressSync(Buffer.from("hello")); } + { const a: Buffer = gz.compressSync(Buffer.from("hello"), {}); } + { const a: Buffer = gz.compressSync(Buffer.from("hello"), { chunkSize: 4096 }); } + { const a: Buffer = gz.compressSync(Buffer.from("hello"), { finishFlush: gz.Z_FINISH }); } + { const a: Buffer = gz.compressSync(Buffer.from("hello"), { flush: gz.Z_NO_FLUSH }); } + { const a: { buffer: Buffer, engine: nodestd.zlib.Gzip } = gz.compressSync(Buffer.from("hello"), { info: true }); } + { const a: Buffer = gz.compressSync(Buffer.from("hello"), { level: gz.Z_BEST_COMPRESSION }); } + { const a: Buffer = gz.compressSync(Buffer.from("hello"), { memLevel: gz.Z_BEST_COMPRESSION }); } + { const a: Buffer = gz.compressSync(Buffer.from("hello"), { strategy: gz.Z_HUFFMAN_ONLY }); } + { const a: Buffer = gz.compressSync(Buffer.from("hello"), { windowBits: 10 }); } + + gz.decompress("hello").then((x: Buffer) => {}); + gz.decompress(Buffer.from("hello")).then((x: Buffer) => {}); + gz.decompress(Buffer.from("hello"), { chunkSize: 4096 }).then((x: Buffer) => {}); + gz.decompress(Buffer.from("hello"), { finishFlush: gz.Z_FINISH }).then((x: Buffer) => {}); + gz.decompress(Buffer.from("hello"), { flush: gz.Z_NO_FLUSH }).then((x: Buffer) => {}); + gz.decompress(Buffer.from("hello"), { info: true }).then((x: { buffer: Buffer, engine: nodestd.zlib.Gunzip }) => {}); + gz.decompress(Buffer.from("hello"), { windowBits: 9 }).then((x: Buffer) => {}); + + { const a: Buffer = gz.decompressSync("hello"); } + { const a: Buffer = gz.decompressSync(Buffer.from("hello")); } + { const a: Buffer = gz.decompressSync(Buffer.from("hello"), { chunkSize: 4096 }); } + { const a: Buffer = gz.decompressSync(Buffer.from("hello"), { finishFlush: gz.Z_FINISH }); } + { const a: Buffer = gz.decompressSync(Buffer.from("hello"), { flush: gz.Z_NO_FLUSH }); } + { const a: { buffer: Buffer, engine: nodestd.zlib.Gunzip } = gz.decompressSync(Buffer.from("hello"), { info: true }); } + { const a: Buffer = gz.decompressSync(Buffer.from("hello"), { windowBits: 9 }); } + + { const a: nodestd.zlib.Gzip = gz.compressStream(); } + { const a: nodestd.zlib.Gzip = gz.compressStream({}); } + { const a: nodestd.zlib.Gzip = gz.compressStream({ chunkSize: 10 }); } + { const a: nodestd.zlib.Gzip = gz.compressStream({ flush: 10 }); } + { const a: nodestd.zlib.Gzip = gz.compressStream({ level: 9 }); } + { const a: nodestd.zlib.Gzip = gz.compressStream({ memLevel: 9 }); } + { const a: nodestd.zlib.Gzip = gz.compressStream({ strategy: 9 }); } + { const a: nodestd.zlib.Gzip = gz.compressStream({ windowBits: 9 }); } + + { const a: nodestd.zlib.Gunzip = gz.decompressStream(); } + { const a: nodestd.zlib.Gunzip = gz.decompressStream({}); } + { const a: nodestd.zlib.Gunzip = gz.decompressStream({ chunkSize: 4096 }); } + { const a: nodestd.zlib.Gunzip = gz.decompressStream({ flush: 0 }); } + { const a: nodestd.zlib.Gunzip = gz.decompressStream({ windowBits: 0 }); } + + { const a: number = gz.Z_NO_FLUSH; } + { const a: number = gz.Z_PARTIAL_FLUSH; } + { const a: number = gz.Z_SYNC_FLUSH; } + { const a: number = gz.Z_FULL_FLUSH; } + { const a: number = gz.Z_FINISH; } + { const a: number = gz.Z_BLOCK; } + { const a: number = gz.Z_TREES; } + { const a: number = gz.Z_OK; } + { const a: number = gz.Z_STREAM_END; } + { const a: number = gz.Z_NEED_DICT; } + { const a: number = gz.Z_ERRNO; } + { const a: number = gz.Z_STREAM_ERROR; } + { const a: number = gz.Z_DATA_ERROR; } + { const a: number = gz.Z_MEM_ERROR; } + { const a: number = gz.Z_BUF_ERROR; } + { const a: number = gz.Z_VERSION_ERROR; } + { const a: number = gz.Z_NO_COMPRESSION; } + { const a: number = gz.Z_BEST_SPEED; } + { const a: number = gz.Z_BEST_COMPRESSION; } + { const a: number = gz.Z_DEFAULT_COMPRESSION; } + { const a: number = gz.Z_FILTERED; } + { const a: number = gz.Z_HUFFMAN_ONLY; } + { const a: number = gz.Z_RLE; } + { const a: number = gz.Z_FIXED; } + { const a: number = gz.Z_DEFAULT_STRATEGY; } + } + + namespace deflateTests { + const { deflate } = compressor; + + deflate.compress("hello").then((x: Buffer) => {}); + deflate.compress(Buffer.from("hello")).then((x: Buffer) => {}); + deflate.compress(Buffer.from("hello"), {}).then((x: Buffer) => {}); + deflate.compress(Buffer.from("hello"), { chunkSize: 4096 }).then((x: Buffer) => {}); + deflate.compress(Buffer.from("hello"), { dictionary: Buffer.from("123") }).then((x: Buffer) => {}); + deflate.compress(Buffer.from("hello"), { finishFlush: 0 }).then((x: Buffer) => {}); + deflate.compress(Buffer.from("hello"), { flush: 0 }).then((x: Buffer) => {}); + deflate.compress(Buffer.from("hello"), { info: true }).then((x: { buffer: Buffer, engine: nodestd.zlib.Deflate }) => {}); + deflate.compress(Buffer.from("hello"), { level: 0 }).then((x: Buffer) => {}); + deflate.compress(Buffer.from("hello"), { memLevel: 0 }).then((x: Buffer) => {}); + deflate.compress(Buffer.from("hello"), { strategy: 0 }).then((x: Buffer) => {}); + deflate.compress(Buffer.from("hello"), { windowBits: 0 }).then((x: Buffer) => {}); + + { const a: Buffer = deflate.compressSync("hello"); } + { const a: Buffer = deflate.compressSync(Buffer.from("hello")); } + { const a: Buffer = deflate.compressSync(Buffer.from("hello"), {}); } + { const a: Buffer = deflate.compressSync(Buffer.from("hello"), { chunkSize: 4096 }); } + { const a: Buffer = deflate.compressSync(Buffer.from("hello"), { dictionary: Buffer.from("123") }); } + { const a: Buffer = deflate.compressSync(Buffer.from("hello"), { finishFlush: 0 }); } + { const a: Buffer = deflate.compressSync(Buffer.from("hello"), { flush: 0 }); } + { const a: { buffer: Buffer, engine: nodestd.zlib.Deflate } = deflate.compressSync(Buffer.from("hello"), { info: true }); } + { const a: Buffer = deflate.compressSync(Buffer.from("hello"), { level: 0 }); } + { const a: Buffer = deflate.compressSync(Buffer.from("hello"), { memLevel: 0 }); } + { const a: Buffer = deflate.compressSync(Buffer.from("hello"), { strategy: 0 }); } + { const a: Buffer = deflate.compressSync(Buffer.from("hello"), { windowBits: 0 }); } + + deflate.rawCompress("hello").then((x: Buffer) => {}); + deflate.rawCompress(Buffer.from("hello")).then((x: Buffer) => {}); + deflate.rawCompress(Buffer.from("hello"), {}).then((x: Buffer) => {}); + deflate.rawCompress(Buffer.from("hello"), { chunkSize: 4096 }).then((x: Buffer) => {}); + deflate.rawCompress(Buffer.from("hello"), { dictionary: Buffer.from("123") }).then((x: Buffer) => {}); + deflate.rawCompress(Buffer.from("hello"), { finishFlush: 0 }).then((x: Buffer) => {}); + deflate.rawCompress(Buffer.from("hello"), { flush: 0 }).then((x: Buffer) => {}); + deflate.rawCompress(Buffer.from("hello"), { info: true }).then((x: { buffer: Buffer, engine: nodestd.zlib.DeflateRaw }) => {}); + deflate.rawCompress(Buffer.from("hello"), { level: 0 }).then((x: Buffer) => {}); + deflate.rawCompress(Buffer.from("hello"), { memLevel: 0 }).then((x: Buffer) => {}); + deflate.rawCompress(Buffer.from("hello"), { strategy: 0 }).then((x: Buffer) => {}); + deflate.rawCompress(Buffer.from("hello"), { windowBits: 0 }).then((x: Buffer) => {}); + + { const a: Buffer = deflate.rawCompressSync("hello"); } + { const a: Buffer = deflate.rawCompressSync(Buffer.from("hello")); } + { const a: Buffer = deflate.rawCompressSync(Buffer.from("hello"), {}); } + { const a: Buffer = deflate.rawCompressSync(Buffer.from("hello"), { chunkSize: 4096 }); } + { const a: Buffer = deflate.rawCompressSync(Buffer.from("hello"), { dictionary: Buffer.from("123") }); } + { const a: Buffer = deflate.rawCompressSync(Buffer.from("hello"), { finishFlush: 0 }); } + { const a: Buffer = deflate.rawCompressSync(Buffer.from("hello"), { flush: 0 }); } + { const a: { buffer: Buffer, engine: nodestd.zlib.DeflateRaw } = deflate.rawCompressSync(Buffer.from("hello"), { info: true }); } + { const a: Buffer = deflate.rawCompressSync(Buffer.from("hello"), { level: 0 }); } + { const a: Buffer = deflate.rawCompressSync(Buffer.from("hello"), { memLevel: 0 }); } + { const a: Buffer = deflate.rawCompressSync(Buffer.from("hello"), { strategy: 0 }); } + { const a: Buffer = deflate.rawCompressSync(Buffer.from("hello"), { windowBits: 0 }); } + + deflate.decompress("hello").then((x: Buffer) => {}); + deflate.decompress(Buffer.from("hello")).then((x: Buffer) => {}); + deflate.decompress(Buffer.from("hello"), {}).then((x: Buffer) => {}); + deflate.decompress(Buffer.from("hello"), { chunkSize: 4096 }).then((x: Buffer) => {}); + deflate.decompress(Buffer.from("hello"), { dictionary: Buffer.from("123") }).then((x: Buffer) => {}); + deflate.decompress(Buffer.from("hello"), { finishFlush: 0 }).then((x: Buffer) => {}); + deflate.decompress(Buffer.from("hello"), { flush: 0 }).then((x: Buffer) => {}); + deflate.decompress(Buffer.from("hello"), { info: true }).then((x: { buffer: Buffer, engine: nodestd.zlib.Inflate }) => {}); + deflate.decompress(Buffer.from("hello"), { windowBits: 0 }).then((x: Buffer) => {}); + + { const a: Buffer = deflate.decompressSync("hello"); } + { const a: Buffer = deflate.decompressSync(Buffer.from("hello")); } + { const a: Buffer = deflate.decompressSync(Buffer.from("hello"), {}); } + { const a: Buffer = deflate.decompressSync(Buffer.from("hello"), { chunkSize: 4096 }); } + { const a: Buffer = deflate.decompressSync(Buffer.from("hello"), { dictionary: Buffer.from("123") }); } + { const a: Buffer = deflate.decompressSync(Buffer.from("hello"), { finishFlush: 0 }); } + { const a: Buffer = deflate.decompressSync(Buffer.from("hello"), { flush: 0 }); } + { const a: { buffer: Buffer, engine: nodestd.zlib.Inflate } = deflate.decompressSync(Buffer.from("hello"), { info: true }); } + { const a: Buffer = deflate.decompressSync(Buffer.from("hello"), { windowBits: 0 }); } + + deflate.rawDecompress("hello").then((x: Buffer) => {}); + deflate.rawDecompress(Buffer.from("hello")).then((x: Buffer) => {}); + deflate.rawDecompress(Buffer.from("hello"), {}).then((x: Buffer) => {}); + deflate.rawDecompress(Buffer.from("hello"), { chunkSize: 4096 }).then((x: Buffer) => {}); + deflate.rawDecompress(Buffer.from("hello"), { dictionary: Buffer.from("123") }).then((x: Buffer) => {}); + deflate.rawDecompress(Buffer.from("hello"), { finishFlush: 0 }).then((x: Buffer) => {}); + deflate.rawDecompress(Buffer.from("hello"), { flush: 0 }).then((x: Buffer) => {}); + deflate.rawDecompress(Buffer.from("hello"), { info: true }).then((x: { buffer: Buffer, engine: nodestd.zlib.InflateRaw }) => {}); + deflate.rawDecompress(Buffer.from("hello"), { windowBits: 0 }).then((x: Buffer) => {}); + + { const a: Buffer = deflate.rawDecompressSync("hello"); } + { const a: Buffer = deflate.rawDecompressSync(Buffer.from("hello")); } + { const a: Buffer = deflate.rawDecompressSync(Buffer.from("hello"), {}); } + { const a: Buffer = deflate.rawDecompressSync(Buffer.from("hello"), { chunkSize: 4096 }); } + { const a: Buffer = deflate.rawDecompressSync(Buffer.from("hello"), { dictionary: Buffer.from("123") }); } + { const a: Buffer = deflate.rawDecompressSync(Buffer.from("hello"), { finishFlush: 0 }); } + { const a: Buffer = deflate.rawDecompressSync(Buffer.from("hello"), { flush: 0 }); } + { const a: { buffer: Buffer, engine: nodestd.zlib.Inflate } = deflate.rawDecompressSync(Buffer.from("hello"), { info: true }); } + { const a: Buffer = deflate.rawDecompressSync(Buffer.from("hello"), { windowBits: 0 }); } + + { const a: nodestd.zlib.Deflate = deflate.compressStream(); } + { const a: nodestd.zlib.Deflate = deflate.compressStream({}); } + { const a: nodestd.zlib.Deflate = deflate.compressStream({ chunkSize: 0 }); } + { const a: nodestd.zlib.Deflate = deflate.compressStream({ dictionary: Buffer.from("123") }); } + { const a: nodestd.zlib.Deflate = deflate.compressStream({ finishFlush: 0 }); } + { const a: nodestd.zlib.Deflate = deflate.compressStream({ flush: 0 }); } + { const a: nodestd.zlib.Deflate = deflate.compressStream({ level: 0 }); } + { const a: nodestd.zlib.Deflate = deflate.compressStream({ memLevel: 0 }); } + { const a: nodestd.zlib.Deflate = deflate.compressStream({ strategy: 0 }); } + { const a: nodestd.zlib.Deflate = deflate.compressStream({ windowBits: 0 }); } + + { const a: nodestd.zlib.DeflateRaw = deflate.rawCompressStream(); } + { const a: nodestd.zlib.DeflateRaw = deflate.rawCompressStream({}); } + { const a: nodestd.zlib.DeflateRaw = deflate.rawCompressStream({ chunkSize: 0 }); } + { const a: nodestd.zlib.DeflateRaw = deflate.rawCompressStream({ dictionary: Buffer.from("123") }); } + { const a: nodestd.zlib.DeflateRaw = deflate.rawCompressStream({ finishFlush: 0 }); } + { const a: nodestd.zlib.DeflateRaw = deflate.rawCompressStream({ flush: 0 }); } + { const a: nodestd.zlib.DeflateRaw = deflate.rawCompressStream({ level: 0 }); } + { const a: nodestd.zlib.DeflateRaw = deflate.rawCompressStream({ memLevel: 0 }); } + { const a: nodestd.zlib.DeflateRaw = deflate.rawCompressStream({ strategy: 0 }); } + { const a: nodestd.zlib.DeflateRaw = deflate.rawCompressStream({ windowBits: 0 }); } + + { const a: nodestd.zlib.Inflate = deflate.decompressStream(); } + { const a: nodestd.zlib.Inflate = deflate.decompressStream({}); } + { const a: nodestd.zlib.Inflate = deflate.decompressStream({ chunkSize: 0 }); } + { const a: nodestd.zlib.Inflate = deflate.decompressStream({ dictionary: Buffer.from("123") }); } + { const a: nodestd.zlib.Inflate = deflate.decompressStream({ finishFlush: 0 }); } + { const a: nodestd.zlib.Inflate = deflate.decompressStream({ flush: 0 }); } + { const a: nodestd.zlib.Inflate = deflate.decompressStream({ windowBits: 0 }); } + + { const a: nodestd.zlib.InflateRaw = deflate.rawDecompressStream(); } + { const a: nodestd.zlib.InflateRaw = deflate.rawDecompressStream({}); } + { const a: nodestd.zlib.InflateRaw = deflate.rawDecompressStream({ chunkSize: 0 }); } + { const a: nodestd.zlib.InflateRaw = deflate.rawDecompressStream({ dictionary: Buffer.from("123") }); } + { const a: nodestd.zlib.InflateRaw = deflate.rawDecompressStream({ finishFlush: 0 }); } + { const a: nodestd.zlib.InflateRaw = deflate.rawDecompressStream({ flush: 0 }); } + { const a: nodestd.zlib.InflateRaw = deflate.rawDecompressStream({ windowBits: 0 }); } + + { const a: number = deflate.Z_NO_FLUSH; } + { const a: number = deflate.Z_PARTIAL_FLUSH; } + { const a: number = deflate.Z_SYNC_FLUSH; } + { const a: number = deflate.Z_FULL_FLUSH; } + { const a: number = deflate.Z_FINISH; } + { const a: number = deflate.Z_BLOCK; } + { const a: number = deflate.Z_TREES; } + { const a: number = deflate.Z_OK; } + { const a: number = deflate.Z_STREAM_END; } + { const a: number = deflate.Z_NEED_DICT; } + { const a: number = deflate.Z_ERRNO; } + { const a: number = deflate.Z_STREAM_ERROR; } + { const a: number = deflate.Z_DATA_ERROR; } + { const a: number = deflate.Z_MEM_ERROR; } + { const a: number = deflate.Z_BUF_ERROR; } + { const a: number = deflate.Z_VERSION_ERROR; } + { const a: number = deflate.Z_NO_COMPRESSION; } + { const a: number = deflate.Z_BEST_SPEED; } + { const a: number = deflate.Z_BEST_COMPRESSION; } + { const a: number = deflate.Z_DEFAULT_COMPRESSION; } + { const a: number = deflate.Z_FILTERED; } + { const a: number = deflate.Z_HUFFMAN_ONLY; } + { const a: number = deflate.Z_RLE; } + { const a: number = deflate.Z_FIXED; } + { const a: number = deflate.Z_DEFAULT_STRATEGY; } + } + + namespace brotliTests { + const { brotli } = compressor; + + brotli.compress("hello").then((x: Buffer) => {}); + brotli.compress(Buffer.from("hello")).then((x: Buffer) => {}); + brotli.compress(Buffer.from("hello"), {}).then((x: Buffer) => {}); + brotli.compress(Buffer.from("hello"), { dictionary: Buffer.from("123") }).then((x: Buffer) => {}); + brotli.compress(Buffer.from("hello"), { disable_literal_context_modeling: true }).then((x: Buffer) => {}); + brotli.compress(Buffer.from("hello"), { lgblock: 0 }).then((x: Buffer) => {}); + brotli.compress(Buffer.from("hello"), { lgwin: 0 }).then((x: Buffer) => {}); + brotli.compress(Buffer.from("hello"), { mode: 0 }).then((x: Buffer) => {}); + brotli.compress(Buffer.from("hello"), { quality: 0 }).then((x: Buffer) => {}); + brotli.compress(Buffer.from("hello"), { size_hint: 0 }).then((x: Buffer) => {}); + + { const a: Buffer = brotli.compressSync("hello"); } + { const a: Buffer = brotli.compressSync(Buffer.from("hello")); } + { const a: Buffer = brotli.compressSync(Buffer.from("hello"), {}); } + { const a: Buffer = brotli.compressSync(Buffer.from("hello"), { dictionary: Buffer.from("123") }); } + { const a: Buffer = brotli.compressSync(Buffer.from("hello"), { disable_literal_context_modeling: true }); } + { const a: Buffer = brotli.compressSync(Buffer.from("hello"), { lgblock: 0 }); } + { const a: Buffer = brotli.compressSync(Buffer.from("hello"), { lgwin: 0 }); } + { const a: Buffer = brotli.compressSync(Buffer.from("hello"), { mode: 0 }); } + { const a: Buffer = brotli.compressSync(Buffer.from("hello"), { quality: 0 }); } + { const a: Buffer = brotli.compressSync(Buffer.from("hello"), { size_hint: 0 }); } + + brotli.decompress(Buffer.from("hello")).then((x: Buffer) => {}); + brotli.decompress(Buffer.from("hello"), {}).then((x: Buffer) => {}); + brotli.decompress(Buffer.from("hello"), { dictionary: Buffer.from("123") }).then((x: Buffer) => {}); + + { const a: Buffer = brotli.decompressSync(Buffer.from("hello")); } + { const a: Buffer = brotli.decompressSync(Buffer.from("hello"), {}); } + { const a: Buffer = brotli.decompressSync(Buffer.from("hello"), { dictionary: Buffer.from("123") }); } + + { const a: nodestd.stream.Transform = brotli.compressStream(); } + { const a: nodestd.stream.Transform = brotli.compressStream({}); } + { const a: nodestd.stream.Transform = brotli.compressStream({ dictionary: Buffer.from("123") }); } + { const a: nodestd.stream.Transform = brotli.compressStream({ disable_literal_context_modeling: true }); } + { const a: nodestd.stream.Transform = brotli.compressStream({ lgblock: 0 }); } + { const a: nodestd.stream.Transform = brotli.compressStream({ lgwin: 0 }); } + { const a: nodestd.stream.Transform = brotli.compressStream({ mode: 0 }); } + { const a: nodestd.stream.Transform = brotli.compressStream({ quality: 0 }); } + { const a: nodestd.stream.Transform = brotli.compressStream({ size_hint: 0 }); } + + { const a: nodestd.stream.Transform = brotli.decompressStream(); } + { const a: nodestd.stream.Transform = brotli.decompressStream({}); } + { const a: nodestd.stream.Transform = brotli.decompressStream({ dictionary: Buffer.from("123") }); } + } + + namespace snappyTests { + const { snappy } = compressor; + + snappy.compress("hello").then((x: Buffer) => {}); + snappy.compress(Buffer.from("hello")).then((x: Buffer) => {}); + + { const a: Buffer = snappy.compressSync("hello"); } + { const a: Buffer = snappy.compressSync(Buffer.from("hello")); } + + snappy.isValidCompressed(Buffer.from("123")).then((X: boolean) => {}); + { const a: boolean = snappy.isValidCompressedSync(Buffer.from("123")); } + + snappy.decompress(Buffer.from("123")).then((x: Buffer) => {}); + { const a: Buffer = snappy.decompressSync(Buffer.from("123")); } + } + + namespace lzmaTests { + const { lzma } = compressor; + type Stream = adone.compressor.I.lzma.Stream; + + { const a: boolean = lzma.asyncCodeAvailable; } + { const a: number = lzma.versionNumber(); } + { const a: string = lzma.versionString(); } + { const a: boolean = lzma.checkIsSupported(lzma.CHECK_CRC32); } + { const a: number = lzma.checkSize(lzma.CHECK_CRC32); } + { const a: boolean = lzma.filterDecoderIsSupported(lzma.FILTER_ARM); } + { const a: boolean = lzma.filterEncoderIsSupported(lzma.FILTER_ARM); } + { const a: boolean = lzma.mfIsSupported(lzma.MF_BT2); } + { const a: number = lzma.rawEncoderMemusage([{ id: "LZMA_FILTER_DELTA", dist: 1 }]); } + { const a: number = lzma.rawDecoderMemusage([{ id: "LZMA_FILTER_DELTA", dist: 1 }]); } + { const a: number = lzma.easyEncoderMemusage(lzma.PRESET_DEFAULT); } + { const a: number = lzma.easyDecoderMemusage(lzma.PRESET_EXTREME); } + + { + const a: Stream = lzma.createStream("easyEncoder"); + { const b: number = a.bufsize; } + { const b: number = a.totalIn(); } + { const b: number = a.totalOut(); } + a.cleanup(); + a.push("1"); + a.write("1"); + a.end(); + a.destroy(); + } + { const a: Stream = lzma.createStream("easyEncoder", lzma.PRESET_DEFAULT); } + { const a: Stream = lzma.createStream("easyEncoder", {}); } + { const a: Stream = lzma.createStream("easyEncoder", { check: lzma.CHECK_CRC32 }); } + { const a: Stream = lzma.createStream("easyEncoder", { preset: lzma.PRESET_EXTREME }); } + + { const a: Stream = lzma.createStream("autoDecoder"); } + { const a: Stream = lzma.createStream("autoDecoder", {}); } + { const a: Stream = lzma.createStream("autoDecoder", { flags: lzma.LZMA_TELL_NO_CHECK }); } + { const a: Stream = lzma.createStream("autoDecoder", { memlimit: 1000 }); } + + { const a: Stream = lzma.createStream("aloneEncoder"); } + { const a: Stream = lzma.createStream("aloneEncoder", lzma.PRESET_DEFAULT); } + { const a: Stream = lzma.createStream("aloneEncoder", {}); } + { const a: Stream = lzma.createStream("aloneEncoder", { blockSize: 4096 }); } + { const a: Stream = lzma.createStream("aloneEncoder", { bufsize: 100 }); } + { const a: Stream = lzma.createStream("aloneEncoder", { check: 0 }); } + { const a: Stream = lzma.createStream("aloneEncoder", { flags: 0 }); } + { const a: Stream = lzma.createStream("aloneEncoder", { memlimit: 0 }); } + { const a: Stream = lzma.createStream("aloneEncoder", { preset: 1 }); } + { const a: Stream = lzma.createStream("aloneEncoder", { synchronous: true }); } + { const a: Stream = lzma.createStream("aloneEncoder", { threads: 10 }); } + { const a: Stream = lzma.createStream("aloneEncoder", { timeout: 1 }); } + + { const a: Stream = lzma.createStream("aloneDecoder"); } + { const a: Stream = lzma.createStream("aloneDecoder", {}); } + { const a: Stream = lzma.createStream("aloneDecoder", { memlimit: 1000 }); } + + { const a: Stream = lzma.createStream("rawEncoder"); } + { const a: Stream = lzma.createStream("rawEncoder", {}); } + { const a: Stream = lzma.createStream("rawEncoder", { filters: [{ id: "LZMA_FILTER_DELTA" }] }); } + + { const a: Stream = lzma.createStream("rawDecoder"); } + { const a: Stream = lzma.createStream("rawDecoder", {}); } + { const a: Stream = lzma.createStream("rawDecoder", { filters: [{ id: "LZMA_FILTER_DELTA" }] }); } + + { const a: Stream = lzma.createStream("streamEncoder"); } + { const a: Stream = lzma.createStream("streamEncoder", {}); } + { const a: Stream = lzma.createStream("streamEncoder", { check: lzma.CHECK_CRC64 }); } + { const a: Stream = lzma.createStream("streamEncoder", { filters: [{ id: "LZMA_FILTER_DELTA" }] }); } + + { const a: Stream = lzma.createStream("streamDecoder"); } + { const a: Stream = lzma.createStream("streamDecoder", {}); } + { const a: Stream = lzma.createStream("streamDecoder", { flags: lzma.LZMA_CONCATENATED }); } + { const a: Stream = lzma.createStream("streamDecoder", { memlimit: 100 }); } + + lzma.singleStringCoding( + lzma.createStream("streamDecoder"), + "hello" + ).then((x: Buffer) => {}); + + lzma.singleStringCoding( + lzma.createStream("streamDecoder"), + Buffer.from("hello") + ).then((x: Buffer) => {}); + + lzma.singleStringCoding( + lzma.createStream("streamDecoder"), + "hello", + (err: any, data: Buffer) => {} + ).then((x: Buffer) => {}); + + lzma.singleStringCoding( + lzma.createStream("streamDecoder"), + "hello", + (err: any, data: Buffer) => {}, + (x: number) => {} + ).then((x: Buffer) => {}); + + { const a: number = lzma.CHECK_CRC32; } + { const a: number = lzma.CHECK_CRC64; } + { const a: number = lzma.CHECK_NONE; } + { const a: number = lzma.CHECK_SHA256; } + { const a: string = lzma.FILTERS_MAX; } + { const a: string = lzma.FILTER_ARM; } + { const a: string = lzma.FILTER_ARMTHUMB; } + { const a: string = lzma.FILTER_IA64; } + { const a: string = lzma.FILTER_POWERPC; } + { const a: string = lzma.FILTER_SPARC; } + { const a: string = lzma.FILTER_X86; } + { const a: string = lzma.FILTER_DELTA; } + { const a: string = lzma.FILTER_LZMA1; } + { const a: string = lzma.FILTER_LZMA2; } + { const a: number = lzma.PRESET_EXTREME; } + { const a: number = lzma.PRESET_DEFAULT; } + { const a: number = lzma.PRESET_LEVEL_MASK; } + { const a: number = lzma.MF_HC3; } + { const a: number = lzma.MF_HC4; } + { const a: number = lzma.MF_BT2; } + { const a: number = lzma.MF_BT3; } + { const a: number = lzma.MF_BT4; } + { const a: number = lzma.LZMA_TELL_NO_CHECK; } + { const a: number = lzma.LZMA_TELL_UNSUPPORTED_CHECK; } + { const a: number = lzma.LZMA_TELL_ANY_CHECK; } + { const a: number = lzma.LZMA_CONCATENATED; } + { const a: number = lzma.MODE_FAST; } + { const a: number = lzma.MODE_NORMAL; } + { const a: number = lzma.STREAM_HEADER_SIZE; } + + lzma.compress("hello").then((x: Buffer) => {}); + lzma.compress(Buffer.from("hello")).then((x: Buffer) => {}); + lzma.compress(Buffer.from("hello"), lzma.PRESET_DEFAULT).then((x: Buffer) => {}); + lzma.compress(Buffer.from("hello"), {}).then((x: Buffer) => {}); + lzma.compress(Buffer.from("hello"), { blockSize: 4096 }).then((x: Buffer) => {}); + lzma.compress(Buffer.from("hello"), { bufsize: 0 }).then((x: Buffer) => {}); + lzma.compress(Buffer.from("hello"), { check: 0 }).then((x: Buffer) => {}); + lzma.compress(Buffer.from("hello"), { filters: [{ id: "LZMA_FILTER_ARMTHUMB" }] }).then((x: Buffer) => {}); + lzma.compress(Buffer.from("hello"), { flags: 0 }).then((x: Buffer) => {}); + lzma.compress(Buffer.from("hello"), { memlimit: 0 }).then((x: Buffer) => {}); + lzma.compress(Buffer.from("hello"), { preset: 0 }).then((x: Buffer) => {}); + lzma.compress(Buffer.from("hello"), { synchronous: false }).then((x: Buffer) => {}); + lzma.compress(Buffer.from("hello"), { threads: 10 }).then((x: Buffer) => {}); + lzma.compress(Buffer.from("hello"), { timeout: 10 }).then((x: Buffer) => {}); + + { const a: Stream = lzma.compressStream(); } + { const a: Stream = lzma.compressStream(lzma.PRESET_DEFAULT); } + { const a: Stream = lzma.compressStream({}); } + { const a: Stream = lzma.compressStream({ blockSize: 4096 }); } + { const a: Stream = lzma.compressStream({ bufsize: 0 }); } + { const a: Stream = lzma.compressStream({ check: 0 }); } + { const a: Stream = lzma.compressStream({ filters: [{ id: "LZMA_FILTER_ARMTHUMB" }] }); } + { const a: Stream = lzma.compressStream({ flags: 0 }); } + { const a: Stream = lzma.compressStream({ memlimit: 0 }); } + { const a: Stream = lzma.compressStream({ preset: 0 }); } + { const a: Stream = lzma.compressStream({ synchronous: false }); } + { const a: Stream = lzma.compressStream({ threads: 10 }); } + { const a: Stream = lzma.compressStream({ timeout: 10 }); } + + lzma.decompress(Buffer.from("hello")).then((x: Buffer) => {}); + lzma.decompress(Buffer.from("hello"), {}).then((x: Buffer) => {}); + lzma.decompress(Buffer.from("hello"), { memlimit: 100 }).then((x: Buffer) => {}); + + { const a: Stream = lzma.decompressStream(); } + { const a: Stream = lzma.decompressStream({}); } + { const a: Stream = lzma.decompressStream({ memlimit: 100 }); } + } + + namespace xzTests { + const { xz } = compressor; + type Stream = adone.compressor.I.lzma.Stream; + + { const a: boolean = xz.asyncCodeAvailable; } + { const a: number = xz.versionNumber(); } + { const a: string = xz.versionString(); } + { const a: boolean = xz.checkIsSupported(xz.CHECK_CRC32); } + { const a: number = xz.checkSize(xz.CHECK_CRC32); } + { const a: boolean = xz.filterDecoderIsSupported(xz.FILTER_ARM); } + { const a: boolean = xz.filterEncoderIsSupported(xz.FILTER_ARM); } + { const a: boolean = xz.mfIsSupported(xz.MF_BT2); } + { const a: number = xz.rawEncoderMemusage([{ id: "LZMA_FILTER_DELTA", dist: 1 }]); } + { const a: number = xz.rawDecoderMemusage([{ id: "LZMA_FILTER_DELTA", dist: 1 }]); } + { const a: number = xz.easyEncoderMemusage(xz.PRESET_DEFAULT); } + { const a: number = xz.easyDecoderMemusage(xz.PRESET_EXTREME); } + + { + const a: Stream = xz.createStream("easyEncoder"); + { const b: number = a.bufsize; } + { const b: number = a.totalIn(); } + { const b: number = a.totalOut(); } + a.cleanup(); + a.push("1"); + a.write("1"); + a.end(); + a.destroy(); + } + { const a: Stream = xz.createStream("easyEncoder", xz.PRESET_DEFAULT); } + { const a: Stream = xz.createStream("easyEncoder", {}); } + { const a: Stream = xz.createStream("easyEncoder", { check: xz.CHECK_CRC32 }); } + { const a: Stream = xz.createStream("easyEncoder", { preset: xz.PRESET_EXTREME }); } + + { const a: Stream = xz.createStream("autoDecoder"); } + { const a: Stream = xz.createStream("autoDecoder", {}); } + { const a: Stream = xz.createStream("autoDecoder", { flags: xz.LZMA_TELL_NO_CHECK }); } + { const a: Stream = xz.createStream("autoDecoder", { memlimit: 1000 }); } + + { const a: Stream = xz.createStream("aloneEncoder"); } + { const a: Stream = xz.createStream("aloneEncoder", xz.PRESET_DEFAULT); } + { const a: Stream = xz.createStream("aloneEncoder", {}); } + { const a: Stream = xz.createStream("aloneEncoder", { blockSize: 4096 }); } + { const a: Stream = xz.createStream("aloneEncoder", { bufsize: 100 }); } + { const a: Stream = xz.createStream("aloneEncoder", { check: 0 }); } + { const a: Stream = xz.createStream("aloneEncoder", { flags: 0 }); } + { const a: Stream = xz.createStream("aloneEncoder", { memlimit: 0 }); } + { const a: Stream = xz.createStream("aloneEncoder", { preset: 1 }); } + { const a: Stream = xz.createStream("aloneEncoder", { synchronous: true }); } + { const a: Stream = xz.createStream("aloneEncoder", { threads: 10 }); } + { const a: Stream = xz.createStream("aloneEncoder", { timeout: 1 }); } + + { const a: Stream = xz.createStream("aloneDecoder"); } + { const a: Stream = xz.createStream("aloneDecoder", {}); } + { const a: Stream = xz.createStream("aloneDecoder", { memlimit: 1000 }); } + + { const a: Stream = xz.createStream("rawEncoder"); } + { const a: Stream = xz.createStream("rawEncoder", {}); } + { const a: Stream = xz.createStream("rawEncoder", { filters: [{ id: "LZMA_FILTER_DELTA" }] }); } + + { const a: Stream = xz.createStream("rawDecoder"); } + { const a: Stream = xz.createStream("rawDecoder", {}); } + { const a: Stream = xz.createStream("rawDecoder", { filters: [{ id: "LZMA_FILTER_DELTA" }] }); } + + { const a: Stream = xz.createStream("streamEncoder"); } + { const a: Stream = xz.createStream("streamEncoder", {}); } + { const a: Stream = xz.createStream("streamEncoder", { check: xz.CHECK_CRC64 }); } + { const a: Stream = xz.createStream("streamEncoder", { filters: [{ id: "LZMA_FILTER_DELTA" }] }); } + + { const a: Stream = xz.createStream("streamDecoder"); } + { const a: Stream = xz.createStream("streamDecoder", {}); } + { const a: Stream = xz.createStream("streamDecoder", { flags: xz.LZMA_CONCATENATED }); } + { const a: Stream = xz.createStream("streamDecoder", { memlimit: 100 }); } + + xz.singleStringCoding( + xz.createStream("streamDecoder"), + "hello" + ).then((x: Buffer) => {}); + + xz.singleStringCoding( + xz.createStream("streamDecoder"), + Buffer.from("hello") + ).then((x: Buffer) => {}); + + xz.singleStringCoding( + xz.createStream("streamDecoder"), + "hello", + (err: any, data: Buffer) => {} + ).then((x: Buffer) => {}); + + xz.singleStringCoding( + xz.createStream("streamDecoder"), + "hello", + (err: any, data: Buffer) => {}, + (x: number) => {} + ).then((x: Buffer) => {}); + + { const a: number = xz.CHECK_CRC32; } + { const a: number = xz.CHECK_CRC64; } + { const a: number = xz.CHECK_NONE; } + { const a: number = xz.CHECK_SHA256; } + { const a: string = xz.FILTERS_MAX; } + { const a: string = xz.FILTER_ARM; } + { const a: string = xz.FILTER_ARMTHUMB; } + { const a: string = xz.FILTER_IA64; } + { const a: string = xz.FILTER_POWERPC; } + { const a: string = xz.FILTER_SPARC; } + { const a: string = xz.FILTER_X86; } + { const a: string = xz.FILTER_DELTA; } + { const a: string = xz.FILTER_LZMA1; } + { const a: string = xz.FILTER_LZMA2; } + { const a: number = xz.PRESET_EXTREME; } + { const a: number = xz.PRESET_DEFAULT; } + { const a: number = xz.PRESET_LEVEL_MASK; } + { const a: number = xz.MF_HC3; } + { const a: number = xz.MF_HC4; } + { const a: number = xz.MF_BT2; } + { const a: number = xz.MF_BT3; } + { const a: number = xz.MF_BT4; } + { const a: number = xz.LZMA_TELL_NO_CHECK; } + { const a: number = xz.LZMA_TELL_UNSUPPORTED_CHECK; } + { const a: number = xz.LZMA_TELL_ANY_CHECK; } + { const a: number = xz.LZMA_CONCATENATED; } + { const a: number = xz.MODE_FAST; } + { const a: number = xz.MODE_NORMAL; } + { const a: number = xz.STREAM_HEADER_SIZE; } + + xz.compress("hello").then((x: Buffer) => {}); + xz.compress(Buffer.from("hello")).then((x: Buffer) => {}); + xz.compress(Buffer.from("hello"), xz.PRESET_DEFAULT).then((x: Buffer) => {}); + xz.compress(Buffer.from("hello"), {}).then((x: Buffer) => {}); + xz.compress(Buffer.from("hello"), { check: xz.CHECK_CRC32 }).then((x: Buffer) => {}); + xz.compress(Buffer.from("hello"), { preset: xz.PRESET_EXTREME }).then((x: Buffer) => {}); + + { const a: Stream = xz.compressStream(); } + { const a: Stream = xz.compressStream(xz.PRESET_DEFAULT); } + { const a: Stream = xz.compressStream({}); } + { const a: Stream = xz.compressStream({ check: xz.CHECK_CRC64 }); } + { const a: Stream = xz.compressStream({ preset: xz.PRESET_LEVEL_MASK }); } + + xz.decompress(Buffer.from("hello")).then((x: Buffer) => {}); + xz.decompress(Buffer.from("hello"), {}).then((x: Buffer) => {}); + xz.decompress(Buffer.from("hello"), { flags: xz.LZMA_CONCATENATED }).then((x: Buffer) => {}); + xz.decompress(Buffer.from("hello"), { memlimit: 100 }).then((x: Buffer) => {}); + + { const a: Stream = xz.decompressStream(); } + { const a: Stream = xz.decompressStream({}); } + { const a: Stream = xz.decompressStream({ flags: xz.LZMA_TELL_ANY_CHECK }); } + { const a: Stream = xz.decompressStream({ memlimit: 100 }); } + } +} diff --git a/types/adone/test/glosses/data.ts b/types/adone/test/glosses/data.ts new file mode 100644 index 0000000000..e8ccedddcc --- /dev/null +++ b/types/adone/test/glosses/data.ts @@ -0,0 +1,566 @@ +namespace dataTests { + const { data } = adone; + + namespace jsonTests { + const { json } = data; + + { const a: Buffer = json.encode(1); } + { const a: Buffer = json.encode({}); } + { const a: Buffer = json.encode([]); } + { const a: Buffer = json.encode(1, {}); } + { const a: Buffer = json.encode(1, { replacer: ["a", "b", "c"] }); } + { const a: Buffer = json.encode(1, { replacer: (k: string, v: any) => null }); } + { const a: Buffer = json.encode(1, { space: " " }); } + + json.decode("123"); + json.decode(Buffer.from("123")); + + { const a: string = json.encodeStable({ a: 1 }); } + { const a: string = json.encodeStable({ a: 1 }, {}); } + json.encodeStable({ a: 1 }, { + cmp: (a, b) => { + a.key + "1"; + a.value; + b.key + "1"; + a.value; + return 2; + } + }); + json.encodeStable({ a: 1 }, { + cycles: true + }); + json.encodeStable({ a: 1 }, { + replacer: ["a", "b"] + }); + json.encodeStable({ a: 1 }, { + replacer: (key: string, value: any) => null + }); + json.encodeStable({ a: 1 }, { + space: " " + }); + { const a: string = json.encodeSafe({ a: 1 }); } + json.decode("hello"); + } + + namespace mpakTests { + const { mpak } = data; + + { const a: Buffer = mpak.encode({ a: 1 }); } + mpak.decode("hello"); + mpak.decode(adone.collection.ByteArray.wrap("hello")); + mpak.decode(Buffer.from("123")); + mpak.decode(new Uint8Array(10)); + mpak.decode(new ArrayBuffer(10)); + + new mpak.Encoder([]); + new mpak.Encoder([{ + type: 10, + check: () => true, + encode: () => new adone.collection.ByteArray(10) + }]); + { const a: adone.collection.ByteArray = new mpak.Encoder([]).encode("hello"); } + { const a: adone.collection.ByteArray = new mpak.Encoder([]).encode("hello", new adone.collection.ByteArray(10)).flip(); } + + new mpak.Decoder([]); + new mpak.Decoder([{ + type: 10, + decode: (buf: adone.collection.ByteArray) => null + }]); + new mpak.Decoder([]).decode("hello"); + new mpak.Decoder([]).decode(adone.collection.ByteArray.wrap("hello")); + new mpak.Decoder([]).decode(Buffer.from("123")); + new mpak.Decoder([]).decode(new Uint8Array(10)); + new mpak.Decoder([]).decode(new ArrayBuffer(10)); + new mpak.Decoder([]).tryDecode(adone.collection.ByteArray.wrap("hello")); + + { const a: adone.data.mpak.Encoder = new mpak.Serializer().encoder; } + { const a: adone.data.mpak.Decoder = new mpak.Serializer().decoder; } + { const a: adone.data.mpak.Serializer = new mpak.Serializer().registerEncoder(10, (x) => true, (x) => new adone.collection.ByteArray(10)); } + { const a: adone.data.mpak.Serializer = new mpak.Serializer().registerDecoder(10, (buf: adone.collection.ByteArray) => null); } + { const a: adone.data.mpak.Serializer = new mpak.Serializer().register(10, Date, (x: Date) => x, (buf: adone.collection.ByteArray) => null); } + new mpak.Serializer().encode(123); + new mpak.Serializer().encode(123, new adone.collection.ByteArray(10)); + + class ExByteArray extends adone.collection.ByteArray { + fafa() { + return "I am useful!"; + } + } + + new mpak.Serializer().encode(123, new ExByteArray(10)).fafa(); + + new mpak.Serializer().decode("hello"); + new mpak.Serializer().decode(adone.collection.ByteArray.wrap("hello")); + new mpak.Serializer().decode(Buffer.from("123")); + new mpak.Serializer().decode(new Uint8Array(10)); + new mpak.Serializer().decode(new ArrayBuffer(10)); + + { const a: adone.data.mpak.Serializer = mpak.serializer; } + } + + namespace json5Tests { + const { json5 } = data; + + { const a: Buffer = json5.encode(123); } + { const a: Buffer = json5.encode(123, {}); } + { const a: Buffer = json5.encode(123, { replacer: (key: string, value: any) => null }); } + { const a: Buffer = json5.encode(123, { replacer: ["a", "b", "c"] }); } + { const a: Buffer = json5.encode(123, { space: " " }); } + json5.decode("hello"); + json5.decode(Buffer.from("hello")); + json5.decode(Buffer.from("hello"), (holder: object, key: string, value: any) => null); + } + + namespace base64Tests { + const { base64 } = data; + + { const a: Buffer = base64.encode("string"); } + { const a: Buffer = base64.encode(Buffer.from("string")); } + { const a: string = base64.encode("string", { buffer: false }); } + { const a: Buffer = base64.encode("string", { buffer: true }); } + { const a: Buffer = base64.encode("string", {}); } + + { const a: string = base64.decode("string"); } + { const a: string = base64.decode(Buffer.from("string")); } + { const a: string = base64.decode("string", {}); } + { const a: string = base64.decode("string", { buffer: false }); } + { const a: Buffer = base64.decode("string", { buffer: true }); } + + { const a: string = base64.encodeVLQ(123); } + { const a: number = base64.decodeVLQ("H"); } + { const a: number = base64.decodeVLQ("H", 1); } + { const a: number = base64.decodeVLQ("H", 1, false); } + { const a: { value: number, index: number } = base64.decodeVLQ("H", 1, true); } + + { const a: number = base64.decodeCharCode("C"); } + { const a: string = base64.decodeNumber(12); } + } + + namespace yamlTests { + const { yaml } = data; + + namespace loaderTests { + const { loader } = yaml; + + loader.loadAll("hello")[0]; + loader.loadAll(Buffer.from("hello"))[0]; + loader.loadAll("hello", (doc) => 123); + loader.loadAll("hello", undefined, {}); + loader.loadAll("hello", undefined, { filename: "hello" }); + loader.loadAll("hello", undefined, { json: true }); + loader.loadAll("hello", undefined, { onWarning: (warn) => null }); + loader.loadAll("hello", undefined, { schema: yaml.schema.CORE }); + + { const a: any = loader.load("hello"); } + { const a: any = loader.load(Buffer.from("hello")); } + loader.load("hello", {}); + loader.load("hello", { filename: "hello" }); + loader.load("hello", { json: true }); + loader.load("hello", { onWarning: (warn) => null }); + loader.load("hello", { schema: yaml.schema.DEFAULT_FULL }); + + loader.safeLoadAll("hello")[0]; + loader.safeLoadAll(Buffer.from("hello"))[0]; + loader.safeLoadAll(Buffer.from("hello"))[0]; + + loader.safeLoadAll("hello", (doc) => null); + loader.safeLoadAll("hello", undefined, {})[0]; + loader.safeLoadAll("hello", undefined, { filename: "hello" })[0]; + loader.safeLoadAll("hello", undefined, { json: true })[0]; + loader.safeLoadAll("hello", undefined, { onWarning: (warn) => null })[0]; + loader.safeLoadAll("hello", undefined, { schema: yaml.schema.JSON })[0]; + + loader.safeLoad("hello"); + loader.safeLoad(Buffer.from("hello")); + loader.safeLoad("hello", { filename: "hello" }); + loader.safeLoad("hello", { json: true }); + loader.safeLoad("hello", { onWarning: (warn) => null }); + loader.safeLoad("hello", { schema: yaml.schema.DEFAULT_SAFE }); + } + + namespace dumperTests { + const { dumper } = yaml; + { const a: string = dumper.dump("hello"); } + { const a: string = dumper.dump(Buffer.from("hello")); } + { const a: string = dumper.dump("hello", {}); } + { const a: string = dumper.dump("hello", { condenseFlow: true }); } + { const a: string = dumper.dump("hello", { flowLevel: 1 }); } + { const a: string = dumper.dump("hello", { indent: 4 }); } + { const a: string = dumper.dump("hello", { lineWidth: 80 }); } + { const a: string = dumper.dump("hello", { noCompatMode: true }); } + { const a: string = dumper.dump("hello", { noRefs: false }); } + { const a: string = dumper.dump("hello", { schema: yaml.schema.CORE }); } + { const a: string = dumper.dump("hello", { skipInvalid: true }); } + { const a: string = dumper.dump("hello", { sortKeys: true }); } + { const a: string = dumper.dump("hello", { styles: { a: "h" } }); } + { const a: string = dumper.safeDump("hello"); } + { const a: string = dumper.safeDump(Buffer.from("hello")); } + { const a: string = dumper.safeDump("hello", {}); } + { const a: string = dumper.safeDump("hello", { condenseFlow: true }); } + { const a: string = dumper.safeDump("hello", { flowLevel: 1 }); } + { const a: string = dumper.safeDump("hello", { indent: 4 }); } + { const a: string = dumper.safeDump("hello", { lineWidth: 80 }); } + { const a: string = dumper.safeDump("hello", { noCompatMode: true }); } + { const a: string = dumper.safeDump("hello", { noRefs: false }); } + { const a: string = dumper.safeDump("hello", { schema: yaml.schema.CORE }); } + { const a: string = dumper.safeDump("hello", { skipInvalid: true }); } + { const a: string = dumper.safeDump("hello", { sortKeys: true }); } + { const a: string = dumper.safeDump("hello", { styles: { a: "h" } }); } + } + + namespace typeTests { + const { type } = yaml; + + new type.Type("tag", { kind: "scalar" }); + new type.Type("tag", { kind: "sequence" }); + new type.Type("tag", { kind: "mapping" }); + new type.Type("tag", { kind: "scalar", resolve: (a: string) => true }); + new type.Type("tag", { kind: "scalar", construct: (a: string) => null }); + new type.Type("tag", { kind: "scalar", instanceOf: Date }); + new type.Type("tag", { kind: "scalar", predicate: (a) => true }); + new type.Type("tag", { kind: "scalar", represent: (a, s: string) => "asd" }); + new type.Type("tag", { kind: "scalar", represent: { check: (a, s: string) => "asd" } }); + new type.Type("tag", { kind: "scalar", defaultStyle: "asd" }); + new type.Type("tag", { kind: "scalar", styleAliases: {} }); + new type.Type("tag", { kind: "scalar" }).construct("hello") + 1; + !new type.Type("tag", { kind: "scalar" }).resolve("hello"); + new type.Type("tag", { kind: "scalar" }).instanceOf; + new type.Type("tag", { kind: "scalar" }).predicate; + new type.Type("tag", { kind: "scalar" }).represent; + new type.Type("tag", { kind: "scalar" }).defaultStyle; + new type.Type("tag", { kind: "scalar" }).styleAliases; + type.Binary.construct("hello").fill(0); + { const a: boolean = type.Bool.construct("hello"); } + type.Float.construct("hello") + 3.14; + type.Int.construct("hello") + 3; + type.Map.construct("hello"); + type.Merge.construct("hello"); + type.Null.construct("hello") === null; + type.Omap.construct("hello")[0]; + type.Pairs.construct("hello")[0][0].charCodeAt(0); + type.Seq.construct("hello")[0]; + type.Set.construct("hello"); + type.Str.construct("hello").charAt(0); + type.Timestamp.construct("hello").getFullYear(); + type.js.Function.construct("hello").apply(null, [1, 2, 3]); + type.js.RegExp.construct("hello").test("123"); + type.js.Undefined.construct("hello") === undefined; + } + + namespace schemaTests { + const { schema } = yaml; + + new schema.Schema({}); + new schema.Schema({ + include: [ + schema.CORE + ] + }); + new schema.Schema({ + implicit: [ + yaml.type.Int + ] + }); + new schema.Schema({ + explicit: [ + yaml.type.Int + ] + }); + { const a: adone.data.yaml.schema.Schema = new schema.Schema().include[0]; } + { const a: adone.data.yaml.type.Type = new schema.Schema().implicit[0]; } + { const a: adone.data.yaml.type.Type = new schema.Schema().explicit[0]; } + { const a: adone.data.yaml.type.Type = new schema.Schema().compiledImplicit[0]; } + { const a: adone.data.yaml.type.Type = new schema.Schema().compiledExplicit[0]; } + { const a: adone.data.yaml.type.Type = new schema.Schema().compiledTypeMap.scalar.hello; } + { const a: adone.data.yaml.type.Type = new schema.Schema().compiledTypeMap.sequence.hello; } + { const a: adone.data.yaml.type.Type = new schema.Schema().compiledTypeMap.mapping.hello; } + { const a: adone.data.yaml.type.Type = new schema.Schema().compiledTypeMap.fallback.hello; } + + { const a: adone.data.yaml.schema.Schema = schema.create(schema.CORE, yaml.type.Binary); } + { const a: adone.data.yaml.schema.Schema = schema.create([schema.CORE], [yaml.type.Binary]); } + + { const a: adone.data.yaml.schema.Schema = schema.CORE; } + { const a: adone.data.yaml.schema.Schema = schema.DEFAULT_FULL; } + { const a: adone.data.yaml.schema.Schema = schema.DEFAULT_SAFE; } + { const a: adone.data.yaml.schema.Schema = schema.FAILSAFE; } + { const a: adone.data.yaml.schema.Schema = schema.JSON; } + } + + const mark = new yaml.Mark("hello", "hello", 1, 2, 3); + { const a: string = mark.getSnippet(); } + { const a: string = mark.getSnippet(1); } + { const a: string = mark.getSnippet(1, 1); } + { const a: string = mark.toString(); } + { const a: string = mark.toString(true); } + { const a: string = new yaml.Exception("message", mark).reason; } + { const a: adone.data.yaml.Mark = new yaml.Exception("message", mark).mark; } + + { const a: Buffer = yaml.encode("hello"); } + { const a: Buffer = yaml.encode("hello", {}); } + { const a: Buffer = yaml.encode("hello", { condenseFlow: true }); } + { const a: Buffer = yaml.encode("hello", { flowLevel: -1 }); } + { const a: Buffer = yaml.encode("hello", { indent: 3 }); } + { const a: Buffer = yaml.encode("hello", { lineWidth: 80 }); } + { const a: Buffer = yaml.encode("hello", { noCompatMode: true }); } + { const a: Buffer = yaml.encode("hello", { noRefs: true }); } + { const a: Buffer = yaml.encode("hello", { schema: yaml.schema.CORE }); } + { const a: Buffer = yaml.encode("hello", { skipInvalid: true }); } + { const a: Buffer = yaml.encode("hello", { sortKeys: true }); } + { const a: Buffer = yaml.encode("hello", { styles: {} }); } + + yaml.decode("hello"); + yaml.decode(Buffer.from("hello")); + yaml.decode("hello", {}); + yaml.decode("hello", { filename: "hello" }); + yaml.decode("hello", { json: true }); + yaml.decode("hello", { onWarning: (warn) => null }); + yaml.decode("hello", { schema: yaml.schema.CORE }); + + yaml.loadAll("hello")[0]; + yaml.loadAll(Buffer.from("hello"))[0]; + yaml.loadAll("hello", (doc) => 123); + yaml.loadAll("hello", undefined, {}); + yaml.loadAll("hello", undefined, { filename: "hello" }); + yaml.loadAll("hello", undefined, { json: true }); + yaml.loadAll("hello", undefined, { onWarning: (warn) => null }); + yaml.loadAll("hello", undefined, { schema: yaml.schema.CORE }); + + { const a: any = yaml.load("hello"); } + { const a: any = yaml.load(Buffer.from("hello")); } + yaml.load("hello", {}); + yaml.load("hello", { filename: "hello" }); + yaml.load("hello", { json: true }); + yaml.load("hello", { onWarning: (warn) => null }); + yaml.load("hello", { schema: yaml.schema.DEFAULT_FULL }); + + yaml.safeLoadAll("hello")[0]; + yaml.safeLoadAll(Buffer.from("hello"))[0]; + yaml.safeLoadAll(Buffer.from("hello"))[0]; + + yaml.safeLoadAll("hello", (doc) => null); + yaml.safeLoadAll("hello", undefined, {})[0]; + yaml.safeLoadAll("hello", undefined, { filename: "hello" })[0]; + yaml.safeLoadAll("hello", undefined, { json: true })[0]; + yaml.safeLoadAll("hello", undefined, { onWarning: (warn) => null })[0]; + yaml.safeLoadAll("hello", undefined, { schema: yaml.schema.JSON })[0]; + + yaml.safeLoad("hello"); + yaml.safeLoad(Buffer.from("hello")); + yaml.safeLoad("hello", { filename: "hello" }); + yaml.safeLoad("hello", { json: true }); + yaml.safeLoad("hello", { onWarning: (warn) => null }); + yaml.safeLoad("hello", { schema: yaml.schema.DEFAULT_SAFE }); + + { const a: string = yaml.dump("hello"); } + { const a: string = yaml.dump(Buffer.from("hello")); } + { const a: string = yaml.dump("hello", {}); } + { const a: string = yaml.dump("hello", { condenseFlow: true }); } + { const a: string = yaml.dump("hello", { flowLevel: 1 }); } + { const a: string = yaml.dump("hello", { indent: 4 }); } + { const a: string = yaml.dump("hello", { lineWidth: 80 }); } + { const a: string = yaml.dump("hello", { noCompatMode: true }); } + { const a: string = yaml.dump("hello", { noRefs: false }); } + { const a: string = yaml.dump("hello", { schema: yaml.schema.CORE }); } + { const a: string = yaml.dump("hello", { skipInvalid: true }); } + { const a: string = yaml.dump("hello", { sortKeys: true }); } + { const a: string = yaml.dump("hello", { styles: { a: "h" } }); } + { const a: string = yaml.safeDump("hello"); } + { const a: string = yaml.safeDump(Buffer.from("hello")); } + { const a: string = yaml.safeDump("hello", {}); } + { const a: string = yaml.safeDump("hello", { condenseFlow: true }); } + { const a: string = yaml.safeDump("hello", { flowLevel: 1 }); } + { const a: string = yaml.safeDump("hello", { indent: 4 }); } + { const a: string = yaml.safeDump("hello", { lineWidth: 80 }); } + { const a: string = yaml.safeDump("hello", { noCompatMode: true }); } + { const a: string = yaml.safeDump("hello", { noRefs: false }); } + { const a: string = yaml.safeDump("hello", { schema: yaml.schema.CORE }); } + { const a: string = yaml.safeDump("hello", { skipInvalid: true }); } + { const a: string = yaml.safeDump("hello", { sortKeys: true }); } + { const a: string = yaml.safeDump("hello", { styles: { a: "h" } }); } + } + + namespace bsonTests { + const { bson } = data; + + new bson.Binary(10); + { const a: string = new bson.Binary(10)._bsontype; } + new bson.Binary(Buffer.from("hello")); + new bson.Binary(Buffer.from("hello"), 10); + new bson.Binary(10).put(0); + new bson.Binary(10).write("hello"); + new bson.Binary(10).write("hello", 0); + new bson.Binary(10).write(Buffer.from("hello")); + new bson.Binary(10).read(10); + new bson.Binary(10).read(10, 0); + { const a: Buffer = new bson.Binary(10).value(true); } + { const a: string = new bson.Binary(10).value(); } + { const a: number = new bson.Binary(10).length(); } + { const a: string = new bson.Binary(10).toJSON(); } + { const a: string = new bson.Binary(10).toString(); } + { const a: number = bson.Binary.BUFFER_SIZE; } + { const a: number = bson.Binary.SUBTYPE_DEFAULT; } + { const a: number = bson.Binary.SUBTYPE_FUNCTION; } + { const a: number = bson.Binary.SUBTYPE_BYTE_ARRAY; } + { const a: number = bson.Binary.SUBTYPE_UUID_OLD; } + { const a: number = bson.Binary.SUBTYPE_UUID; } + { const a: number = bson.Binary.SUBTYPE_MD5; } + { const a: number = bson.Binary.SUBTYPE_USER_DEFINED; } + + new bson.Code("hello"); + { const a: string = new bson.Code("hello")._bsontype; } + new bson.Code("hello", {}); + { const a: object = new bson.Code("hello").toJSON().scope; } + { const a: string = new bson.Code("hello").toJSON().code; } + + new bson.DBRef("aa", new bson.ObjectId()); + { const a: string = new bson.DBRef("aa", new bson.ObjectId())._bsontype; } + new bson.DBRef("aa", new bson.ObjectId(), "hh"); + { const a: string = new bson.DBRef("aa", new bson.ObjectId()).toJSON().$ref; } + { const a: adone.data.bson.ObjectId = new bson.DBRef("aa", new bson.ObjectId()).toJSON().$id; } + { const a: string = new bson.DBRef("aa", new bson.ObjectId()).toJSON().$db; } + + new bson.Decimal128(Buffer.from("0123456789abcdef")); + { const a: string = new bson.Decimal128(Buffer.from("0123456789abcdef"))._bsontype; } + { const a: string = new bson.Decimal128(Buffer.from("0123456789abcdef")).toString(); } + { const a: string = new bson.Decimal128(Buffer.from("0123456789abcdef")).toJSON().$numberDecimal; } + { const a: adone.data.bson.Decimal128 = bson.Decimal128.fromString("123"); } + + new bson.Double(3.14); + { const a: string = new bson.Double(3.14)._bsontype; } + { const a: number = new bson.Double(3.14).valueOf(); } + { const a: number = new bson.Double(3.14).toJSON(); } + + new bson.Int32(100500); + { const a: string = new bson.Int32(100500)._bsontype; } + { const a: number = new bson.Int32(100500).valueOf(); } + { const a: number = new bson.Int32(100500).toJSON(); } + + new bson.Long(); + { const a: string = new bson.Long()._bsontype; } + { const a: adone.data.bson.Long = bson.Long.MIN_VALUE; } + { const a: adone.data.bson.Long = bson.Long.MAX_UNSIGNED_VALUE; } + { const a: adone.data.bson.Long = bson.Long.ZERO; } + { const a: adone.data.bson.Long = bson.Long.UZERO; } + { const a: adone.data.bson.Long = bson.Long.ONCE; } + { const a: adone.data.bson.Long = bson.Long.UONE; } + { const a: adone.data.bson.Long = bson.Long.ONE; } + { const a: adone.data.bson.Long = bson.Long.NEG_ONE; } + + new bson.MaxKey(); + { const a: string = new bson.MaxKey()._bsontype; } + + new bson.MinKey(); + { const a: string = new bson.MinKey()._bsontype; } + + new bson.ObjectId(); + new bson.ObjectId("he"); + new bson.ObjectId(Buffer.from("asd")); + new bson.ObjectId(new bson.ObjectId()); + new bson.ObjectId({ toHexString: () => "2", id: "he" }); + new bson.ObjectId({ toHexString: () => "2", id: Buffer.from("he") }); + new bson.ObjectId({ toHexString: () => "2", id: new bson.ObjectId() }); + { const a: string = new bson.ObjectId().toHexString(); } + { const a: number = new bson.ObjectId().getInc(); } + { const a: Buffer = new bson.ObjectId().generate(); } + { const a: Buffer = new bson.ObjectId().generate(10050); } + { const a: string = new bson.ObjectId().toString(); } + { const a: string = new bson.ObjectId().toString("utf8"); } + { const a: string = new bson.ObjectId().toJSON(); } + new bson.ObjectId().equals("he"); + new bson.ObjectId().equals(Buffer.from("he")); + new bson.ObjectId().equals(new bson.ObjectId()); + new bson.ObjectId().equals({ toHexString: () => "2" }); + { const a: Date = new bson.ObjectId().getTimestamp(); } + { const a: adone.data.bson.ObjectId = bson.ObjectId.createPk(); } + { const a: adone.data.bson.ObjectId = bson.ObjectId.createFromTime(100500); } + { const a: adone.data.bson.ObjectId = bson.ObjectId.createFromHexString("deadbeef"); } + { const a: boolean = bson.ObjectId.isValid("deadbeef"); } + { const a: number = bson.ObjectId.index; } + + new bson.BSONRegExp("\\d"); + new bson.BSONRegExp("\\d", "mix"); + { const a: string = new bson.BSONRegExp("\\d")._bsontype; } + + new bson.Symbol("he"); + { const a: string = new bson.Symbol("he")._bsontype; } + { const a: string = new bson.Symbol("he").valueOf(); } + { const a: string = new bson.Symbol("he").toString(); } + { const a: string = new bson.Symbol("he").inspect(); } + { const a: string = new bson.Symbol("he").toJSON(); } + + new bson.Timestamp(); + new bson.Timestamp(100, 500); + { const a: string = new bson.Timestamp()._bsontype; } + { const a: adone.data.bson.Timestamp = bson.Timestamp.MIN_VALUE; } + { const a: adone.data.bson.Timestamp = bson.Timestamp.MAX_VALUE; } + { const a: adone.data.bson.Timestamp = bson.Timestamp.MAX_UNSIGNED_VALUE; } + { const a: adone.data.bson.Timestamp = bson.Timestamp.ZERO; } + { const a: adone.data.bson.Timestamp = bson.Timestamp.UZERO; } + { const a: adone.data.bson.Timestamp = bson.Timestamp.ONCE; } + { const a: adone.data.bson.Timestamp = bson.Timestamp.ONE; } + { const a: adone.data.bson.Timestamp = bson.Timestamp.UONE; } + { const a: adone.data.bson.Timestamp = bson.Timestamp.NEG_ONE; } + + new bson.BSON(); + new bson.BSON([bson.Timestamp, bson.Binary]); + { const a: Buffer = new bson.BSON().serialize({ a: 1 }); } + { const a: Buffer = new bson.BSON().serialize({ a: 1 }, {}); } + { const a: Buffer = new bson.BSON().serialize({ a: 1 }, { checkKeys: true }); } + { const a: Buffer = new bson.BSON().serialize({ a: 1 }, { ignoreUndefined: true }); } + { const a: Buffer = new bson.BSON().serialize({ a: 1 }, { serializeFunctions: false }); } + { const a: number = new bson.BSON().serializeWithBufferAndIndex({ a: 1 }, Buffer.alloc(10)); } + { const a: number = new bson.BSON().serializeWithBufferAndIndex({ a: 1 }, Buffer.alloc(10), {}); } + { const a: number = new bson.BSON().serializeWithBufferAndIndex({ a: 1 }, Buffer.alloc(10), { checkKeys: true }); } + { const a: number = new bson.BSON().serializeWithBufferAndIndex({ a: 1 }, Buffer.alloc(10), { ignoreUndefined: true }); } + { const a: number = new bson.BSON().serializeWithBufferAndIndex({ a: 1 }, Buffer.alloc(10), { index: 10 }); } + { const a: number = new bson.BSON().serializeWithBufferAndIndex({ a: 1 }, Buffer.alloc(10), { serializeFunctions: false }); } + { const a: number = new bson.BSON().calculateObjectSize({ a: 1 }); } + { const a: number = new bson.BSON().calculateObjectSize({ a: 1 }, {}); } + { const a: number = new bson.BSON().calculateObjectSize({ a: 1 }, { ignoreUndefined: false }); } + { const a: number = new bson.BSON().calculateObjectSize({ a: 1 }, { serializeFunctions: false }); } + new bson.BSON().deserialize(Buffer.from("aahaha")).a; + new bson.BSON().deserialize(Buffer.from("aahaha"), {}).a; + new bson.BSON().deserialize(Buffer.from("aahaha"), { bsonRegExp: false }).a; + new bson.BSON().deserialize(Buffer.from("aahaha"), { cacheFunctions: false }).a; + new bson.BSON().deserialize(Buffer.from("aahaha"), { cacheFunctonsCrc32: false }).a; + new bson.BSON().deserialize(Buffer.from("aahaha"), { evalFunctions: false }).a; + new bson.BSON().deserialize(Buffer.from("aahaha"), { fieldsAsRaw: ["a"] }).a; + new bson.BSON().deserialize(Buffer.from("aahaha"), { promoteBuffers: false }).a; + new bson.BSON().deserialize(Buffer.from("aahaha"), { promoteLongs: false }).a; + new bson.BSON().deserialize(Buffer.from("aahaha"), { promoteValues: true }).a; + { const a: number = new bson.BSON().deserializeStream(Buffer.from("ahaha"), 1, 2, [], 2); } + { const a: number = new bson.BSON().deserializeStream(Buffer.from("ahaha"), 1, 2, [], 2, {}); } + { const a: number = new bson.BSON().deserializeStream(Buffer.from("ahaha"), 1, 2, [], 2, { bsonRegExp: false }); } + { const a: number = new bson.BSON().deserializeStream(Buffer.from("ahaha"), 1, 2, [], 2, { cacheFunctions: false }); } + { const a: number = new bson.BSON().deserializeStream(Buffer.from("ahaha"), 1, 2, [], 2, { cacheFunctonsCrc32: false }); } + { const a: number = new bson.BSON().deserializeStream(Buffer.from("ahaha"), 1, 2, [], 2, { evalFunctions: false }); } + { const a: number = new bson.BSON().deserializeStream(Buffer.from("ahaha"), 1, 2, [], 2, { fieldsAsRaw: ["b"] }); } + { const a: number = new bson.BSON().deserializeStream(Buffer.from("ahaha"), 1, 2, [], 2, { promoteBuffers: false }); } + { const a: number = new bson.BSON().deserializeStream(Buffer.from("ahaha"), 1, 2, [], 2, { promoteLongs: false }); } + { const a: number = new bson.BSON().deserializeStream(Buffer.from("ahaha"), 1, 2, [], 2, { promoteValues: true }); } + { const a: number = bson.c.BSON_INT32_MAX; } + { const a: number = bson.c.BSON_INT32_MIN; } + { const a: number = bson.c.BSON_INT64_MAX; } + { const a: number = bson.c.BSON_INT64_MIN; } + { const a: number = bson.c.JS_INT_MAX; } + { const a: number = bson.c.JS_INT_MIN; } + { const a: adone.data.bson.BSON = bson.serializer; } + + { const a: Buffer = bson.encode({ a: 1 }); } + { const a: Buffer = bson.encode({ a: 1 }, {}); } + { const a: Buffer = bson.encode({ a: 1 }, { checkKeys: true }); } + { const a: Buffer = bson.encode({ a: 1 }, { ignoreUndefined: false }); } + { const a: Buffer = bson.encode({ a: 1 }, { serializeFunctions: false }); } + + bson.decode(bson.encode({ a: 1 })).a; + bson.decode(bson.encode({ a: 1 }), {}).a; + bson.decode(bson.encode({ a: 1 }), { bsonRegExp: false }).a; + bson.decode(bson.encode({ a: 1 }), { cacheFunctions: false }).a; + bson.decode(bson.encode({ a: 1 }), { cacheFunctonsCrc32: false }).a; + bson.decode(bson.encode({ a: 1 }), { evalFunctions: false }).a; + bson.decode(bson.encode({ a: 1 }), { fieldsAsRaw: ["b"] }).a; + bson.decode(bson.encode({ a: 1 }), { promoteBuffers: false }).a; + bson.decode(bson.encode({ a: 1 }), { promoteLongs: false }).a; + bson.decode(bson.encode({ a: 1 }), { promoteValues: true }).a; + } +} diff --git a/types/adone/test/glosses/datetime.ts b/types/adone/test/glosses/datetime.ts new file mode 100644 index 0000000000..e64737b430 --- /dev/null +++ b/types/adone/test/glosses/datetime.ts @@ -0,0 +1,699 @@ +namespace datetimeTests { + const { datetime } = adone; + + { const a: string = datetime.defaultFormat; } + { const a: string = datetime.defaultFormatUtc; } + { const a: adone.I.datetime.Datetime = datetime(); } + datetime(datetime()); + datetime(new Date()); + datetime("hello"); + datetime(123); + datetime([1, 2, 3]); + datetime(["a"]); + datetime(); + datetime({ + y: 1 + }); + datetime({ + year: 1 + }); + datetime({ + years: 1 + }); + datetime({ + month: 1 + }); + datetime({ + months: 1 + }); + datetime({ + M: 1 + }); + datetime({ + days: 1 + }); + datetime({ + day: 1 + }); + datetime({ + d: 1 + }); + datetime({ + y: 1000 + }); + datetime({ + months: 1 + }); + datetime({ + month: 1 + }); + datetime({ + M: 1 + }); + datetime({ + days: 1 + }); + datetime({ + day: 1 + }); + datetime({ + d: 1 + }); + datetime({ + dates: 1 + }); + datetime({ + date: 1 + }); + datetime({ + D: 1 + }); + datetime({ + hours: 1 + }); + datetime({ + hour: 1 + }); + datetime({ + h: 1 + }); + datetime({ + minutes: 1 + }); + datetime({ + minute: 1 + }); + datetime({ + m: 1 + }); + datetime({ + seconds: 1 + }); + datetime({ + second: 1 + }); + datetime({ + s: 1 + }); + datetime({ + milliseconds: 1 + }); + datetime({ + millisecond: 1 + }); + datetime({ + ms: 1 + }); + datetime(101, "DD MM"); + datetime(101, "DD MM", true); + datetime(101, undefined, true); + datetime(101, undefined, "ru", true); + datetime.utc(datetime()); + datetime.utc(new Date()); + datetime.utc("hello"); + datetime.utc(123); + datetime.utc([1, 2, 3]); + datetime.utc(["a"]); + datetime.utc(); + datetime.utc({ + y: 1 + }); + datetime.utc({ + year: 1 + }); + datetime.utc({ + years: 1 + }); + datetime.utc({ + month: 1 + }); + datetime.utc({ + months: 1 + }); + datetime.utc({ + M: 1 + }); + datetime.utc({ + days: 1 + }); + datetime({ + day: 1 + }); + datetime.utc({ + d: 1 + }); + datetime.utc({ + y: 1000 + }); + datetime.utc({ + months: 1 + }); + datetime({ + month: 1 + }); + datetime.utc({ + M: 1 + }); + datetime.utc({ + days: 1 + }); + datetime.utc({ + day: 1 + }); + datetime.utc({ + d: 1 + }); + datetime.utc({ + dates: 1 + }); + datetime.utc({ + date: 1 + }); + datetime({ + D: 1 + }); + datetime.utc({ + hours: 1 + }); + datetime.utc({ + hour: 1 + }); + datetime.utc({ + h: 1 + }); + datetime.utc({ + minutes: 1 + }); + datetime.utc({ + minute: 1 + }); + datetime.utc({ + m: 1 + }); + datetime.utc({ + seconds: 1 + }); + datetime.utc({ + second: 1 + }); + datetime.utc({ + s: 1 + }); + datetime.utc({ + milliseconds: 1 + }); + datetime.utc({ + millisecond: 1 + }); + datetime.utc({ + ms: 1 + }); + datetime.utc(101, "DD MM"); + datetime.utc(101, "DD MM", true); + datetime.utc(101, undefined, true); + datetime.utc(101, undefined, "ru", true); + datetime.unix(101010).clone(); + + datetime.dos({ time: 100, date: 100 }).clone(); + + datetime.invalid(); + datetime.invalid({ charsLeftOver: 100 }); + datetime.invalid({ empty: true }); + datetime.invalid({ invalidFormat: false }); + datetime.invalid({ invalidMonth: "jan" }); + datetime.invalid({ iso: false }); + datetime.invalid({ meridiem: "am" }); + datetime.invalid({ nullInput: false }); + datetime.invalid({ overflow: 1 }); + datetime.invalid({ parsedDateParts: [1] }); + datetime.invalid({ unusedInput: ["1"] }); + datetime.invalid({ unusedTokens: ["1"] }); + datetime.invalid({ userInvalidated: false }); + datetime.isDuration(12); + { const a: string = datetime.locale(); } + { const a: string = datetime.locale("he"); } + { const a: string = datetime.locale(["he"]); } + { const a: string = datetime.locale("he", {}); } + { const a: string = datetime.locale("he", { calendar: { lastDay: "ha" } }); } + { const a: string = datetime.locale("he", { calendar: { lastWeek: "ha" } }); } + { const a: string = datetime.locale("he", { calendar: { nextDay: "ha" } }); } + { const a: string = datetime.locale("he", { calendar: { nextWeek: "ha" } }); } + { const a: string = datetime.locale("he", { calendar: { sameDay: "ha" } }); } + { const a: string = datetime.locale("he", { calendar: { sameElse: "ha" } }); } + { const a: string = datetime.locale("he", { invalidDate: "ha" }); } + { const a: string = datetime.locale("he", { isPM: (x: string) => true }); } + { + const a: string = datetime.locale("he", { + longDateFormat: { + l: "", ll: "", lll: "", llll: "", + L: "", LL: "", LLL: "", LLLL: "", + LT: "", lt: "", LTS: "", lts: "" + } + }); + } + { const a: string = datetime.locale("he", { meridiem: (hour: number, minute: number, isLower: boolean) => "ba" }); } + { const a: string = datetime.locale("he", { meridiemParse: /ab/ }); } + + { const a: string = datetime.locale("he", { monthsShort: ["a"] }); } + { + const a: string = datetime.locale("he", { + monthsShort: { + format: ["1"], + standalone: ["1"], + isFormat: /a/ + } + }); + } + { + const a: string = datetime.locale("he", { + monthsShort: (d) => d.clone() && "123" + }); + const b: string = datetime.locale("he", { + monthsShort: (d, f?: string) => d.clone() && "123" + }); + } + + { const a: string = datetime.locale("he", { monthsShort: ["a"] }); } + { + const a: string = datetime.locale("he", { + monthsShort: { + format: ["1"], + standalone: ["1"], + isFormat: /a/ + } + }); + } + { + const a: string = datetime.locale("he", { + monthsShort: (d) => d.clone() && "123" + }); + const b: string = datetime.locale("he", { + monthsShort: (d, f?: string) => d.clone() && "123" + }); + } + + { const a: string = datetime.locale("he", { ordinal: (n: number) => "1" }); } + { const a: string = datetime.locale("he", { ordinalParse: /a/ }); } + { + const a: string = datetime.locale("he", { + relativeTime: { + future: "he", + past: "he", + s: "he", + m: "he", + mm: "he", + h: "he", + hh: "he", + d: "he", + dd: "he", + M: "he", + MM: "he", + y: "he", + yy: 'he"' + } + }); + const b: string = datetime.locale("he", { + relativeTime: { + future: (x: string) => "he", + past: (x: string) => "he", + s: (x: number, y: boolean, z: string, a: boolean) => "he", + m: (x: number, y: boolean, z: string, a: boolean) => "he", + mm: (x: number, y: boolean, z: string, a: boolean) => "he", + h: (x: number, y: boolean, z: string, a: boolean) => "he", + hh: (x: number, y: boolean, z: string, a: boolean) => "he", + d: (x: number, y: boolean, z: string, a: boolean) => "he", + dd: (x: number, y: boolean, z: string, a: boolean) => "he", + M: (x: number, y: boolean, z: string, a: boolean) => "he", + MM: (x: number, y: boolean, z: string, a: boolean) => "he", + y: (x: number, y: boolean, z: string, a: boolean) => "he", + yy: (x: number, y: boolean, z: string, a: boolean) => 'he"' + } + }); + } + + { const a: string = datetime.locale("he", { week: { dow: 1, doy: 2 } }); } + + { const a: string = datetime.locale("he", { weekDays: ["a"] }); } + { + const a: string = datetime.locale("he", { + weekDays: { + format: ["1"], + standalone: ["1"], + isFormat: /a/ + } + }); + } + { + const a: string = datetime.locale("he", { + weekDays: (d: adone.I.datetime.Datetime) => d.clone() && "123" + }); + const b: string = datetime.locale("he", { + weekDays: (d: adone.I.datetime.Datetime, f?: string) => d.clone() && "123" + }); + } + + { const a: string = datetime.locale("he", { weekdaysMin: ["a"] }); } + { + const a: string = datetime.locale("he", { + weekdaysMin: { + format: ["1"], + standalone: ["1"], + isFormat: /a/ + } + }); + } + { + const a: string = datetime.locale("he", { + weekdaysMin: (d: adone.I.datetime.Datetime) => d.clone() && "123" + }); + const b: string = datetime.locale("he", { + weekdaysMin: (d: adone.I.datetime.Datetime, f?: string) => d.clone() && "123" + }); + } + + { const a: string = datetime.locale("he", { weekdaysShort: ["a"] }); } + { + const a: string = datetime.locale("he", { + weekdaysShort: { + format: ["1"], + standalone: ["1"], + isFormat: /a/ + } + }); + } + { + const a: string = datetime.locale("he", { + weekdaysShort: (d: adone.I.datetime.Datetime) => d.clone() && "123" + }); + const b: string = datetime.locale("he", { + weekdaysShort: (d: adone.I.datetime.Datetime, f?: string) => d.clone() && "123" + }); + } + + datetime.localeData(); + datetime.localeData("en"); + datetime.localeData(["en"]); + { const a: string = datetime.localeData().calendar(); } + { const a: string = datetime.localeData().calendar("lastDay"); } + { const a: string = datetime.localeData().calendar("lastWeek"); } + { const a: string = datetime.localeData().calendar("nextDay"); } + { const a: string = datetime.localeData().calendar("nextWeek"); } + { const a: string = datetime.localeData().calendar("sameDay"); } + { const a: string = datetime.localeData().calendar("sameElse"); } + { const a: number = datetime.localeData().firstDayOfWeek(); } + { const a: string = datetime.localeData().invalidDate(); } + { const a: boolean = datetime.localeData().isPM("a"); } + { const a: string = datetime.localeData().longDateFormat("LL"); } + { const a: string = datetime.localeData().meridiem(10, 10, true); } + { const a: string[] = datetime.localeData().months(); } + { const a: string = datetime.localeData().months(adone.datetime()); } + { const a: number = datetime.localeData().monthsParse("he", "fa", false); } + { const a: RegExp = datetime.localeData().monthsRegex(false); } + { const a: string[] = datetime.localeData().monthsShort(); } + { const a: string = datetime.localeData().monthsShort(adone.datetime()); } + { const a: RegExp = datetime.localeData().monthsShortRegex(false); } + { const a: number = datetime.localeData().weekdaysParse("he", "fa", true); } + { const a: RegExp = datetime.localeData().weekdaysRegex(true); } + { const a: string[] = datetime.localeData().weekdaysShort(); } + { const a: string = datetime.localeData().weekdaysShort(adone.datetime()); } + { const a: RegExp = datetime.localeData().weekdaysShortRegex(false); } + { const a: adone.I.datetime.Duration = datetime.duration(); } + { const a: adone.I.datetime.Duration = datetime.duration(100, "days"); } + { + const a: adone.I.datetime.Duration = datetime.duration({ + years: 10, + year: 10, + y: 10, + months: 10, + month: 10, + M: 10, + days: 10, + day: 10, + d: 10, + dates: 0, + date: 10, + D: 10, + hours: 10, + hour: 10, + h: 10, + minutes: 10, + minute: 10, + m: 10, + seconds: 10, + second: 10, + s: 10, + milliseconds: 10, + millisecond: 10, + ms: 10, + quarters: 10, + quarter: 10, + Q: 10, + weeks: 10, + week: 10, + w: 10 + }); + { const b: adone.I.datetime.Duration = a.abs(); } + { const b: adone.I.datetime.Duration = a.add(1, "year"); } + { const b: adone.I.datetime.Duration = a.add(1); } + { const b: number = a.as("millisecond"); } + { const b: number = a.asDays(); } + { const b: number = a.asHours(); } + { const b: number = a.asMilliseconds(); } + { const b: number = a.asMinutes(); } + { const b: number = a.asMonths(); } + { const b: number = a.asSeconds(); } + { const b: number = a.asWeeks(); } + { const b: number = a.asYears(); } + { const b: number = a.days(); } + { const b: number = a.get("year"); } + { const b: number = a.hours(); } + { const b: string = a.humanize(); } + { const b: string = a.humanize(false); } + { const b: string = a.locale(); } + { const b: adone.I.datetime.Locale = a.localeData(); } + { const b: number = a.milliseconds(); } + { const b: number = a.minutes(); } + { const b: number = a.months(); } + { const b: number = a.seconds(); } + { const b: adone.I.datetime.Duration = a.subtract(1, "minute"); } + { const b: string = a.toISOString(); } + { const b: string = a.toJSON(); } + { const b: number = a.weeks(); } + { const b: number = a.years(); } + } + + { const a: adone.I.datetime.Datetime = datetime.parseZone(1230, "DD"); } + { const a: adone.I.datetime.Datetime = datetime.parseZone(1230, "DD", false); } + { const a: adone.I.datetime.Datetime = datetime.parseZone(1230, "DD", "en", false); } + + { const a: string[] = datetime.months(); } + { const a: string = datetime.months(1); } + { const a: string = datetime.months("format", 1); } + + { const a: string[] = datetime.monthsShort(); } + { const a: string = datetime.monthsShort(1); } + { const a: string = datetime.monthsShort("format", 1); } + + { const a: string[] = datetime.weekdays(); } + { const a: string = datetime.weekdays(1); } + { const a: string[] = datetime.weekdays("format"); } + { const a: string = datetime.weekdays("format", 1); } + { const a: string[] = datetime.weekdays(true); } + { const a: string = datetime.weekdays(true, 1); } + { const a: string = datetime.weekdays(true, "format", 1); } + + { const a: string[] = datetime.weekdaysShort(); } + { const a: string = datetime.weekdaysShort(1); } + { const a: string[] = datetime.weekdaysShort("format"); } + { const a: string = datetime.weekdaysShort("format", 1); } + { const a: string[] = datetime.weekdaysShort(true); } + { const a: string = datetime.weekdaysShort(true, 1); } + { const a: string = datetime.weekdaysShort(true, "format", 1); } + + { const a: string[] = datetime.weekdaysMin(); } + { const a: string = datetime.weekdaysMin(1); } + { const a: string[] = datetime.weekdaysMin("format"); } + { const a: string = datetime.weekdaysMin("format", 1); } + { const a: string[] = datetime.weekdaysMin(true); } + { const a: string = datetime.weekdaysMin(true, 1); } + { const a: string = datetime.weekdaysMin(true, "format", 1); } + + { const a: adone.I.datetime.Datetime = adone.datetime.min(adone.datetime(), adone.datetime()); } + { const a: adone.I.datetime.Datetime = adone.datetime.max(adone.datetime(), adone.datetime()); } + { const a: number = adone.datetime.now(); } + { + const a: adone.I.datetime.Locale = adone.datetime.defineLocale("he", {}); + const b: adone.I.datetime.Locale = adone.datetime.defineLocale("he", { + calendar: { + lastDay: "" + }, + invalidDate: "h", + isPM: (x: string) => true, + longDateFormat: { + l: "", L: "", LL: "", ll: "", LLL: "", lll: "", LLLL: "", llll: "", + LT: "", lt: "", LTS: "", lts: "" + }, + ordinalParse: /ab/ + }); + } + { + const a: adone.I.datetime.Locale = adone.datetime.updateLocale("he", { + ordinal: (k: number) => "hello" + }); + } + + { const a: string[] = adone.datetime.locales(); } + + { const a: string = adone.datetime.normalizeUnits("y"); } + + { const a: number = adone.datetime.relativeTimeThreshold("y"); } + { const a: boolean = adone.datetime.relativeTimeThreshold("y", 10); } + + { const a: (x: number) => number = adone.datetime.relativeTimeRounding(); } + { const a: boolean = adone.datetime.relativeTimeRounding((x: number) => 123); } + + { const a: string = adone.datetime.calendarFormat(adone.datetime(), adone.datetime()); } + + const d = adone.datetime(); + + { const a: adone.I.datetime.Datetime = d.add(1, "day"); } + { const a: adone.I.datetime.Datetime = d.add(1, "hour"); } + { const a: adone.I.datetime.Datetime = d.add(1); } + + { const a: string = d.calendar("h"); } + { const a: string = d.calendar(1); } + { const a: string = d.calendar(adone.datetime()); } + { const a: string = d.calendar(new Date()); } + { const a: string = d.calendar([1, 2, 3]); } + { const a: string = d.calendar(["1", "2", "3"]); } + + { const a: adone.I.datetime.Datetime = d.clone(); } + { + const a: adone.I.datetime.DatetimeCreationData = d.creationData(); + a.format; + a.input; + a.isUTC; + a.locale; + a.strict; + } + { const a: number = d.date(); } + { const a: number = d.dates(); } + { const a: number = d.day(); } + { const a: number = d.dayOfYear(); } + { const a: number = d.days(); } + { const a: number = d.daysInMonth(); } + { const a: number = d.diff(adone.datetime()); } + { const a: number = d.diff(1001); } + { const a: number = d.diff("asdasd"); } + { const a: number = d.diff(new Date()); } + { const a: number = d.diff(new Date(), "years"); } + { const a: adone.I.datetime.Datetime = d.endOf("year"); } + { const a: string = d.format("YYYY"); } + { const a: string = d.from(100); } + { const a: string = d.from(adone.datetime()); } + { const a: string = d.from(new Date()); } + { const a: string = d.from(100, true); } + { const a: string = d.fromNow(); } + { const a: string = d.fromNow(true); } + { const a: number = d.get("hours"); } + { const a: boolean = d.hasAlignedHourOffset(); } + { const a: boolean = d.hasAlignedHourOffset("123"); } + { const a: boolean = d.hasAlignedHourOffset(new Date()); } + { const a: boolean = d.hasAlignedHourOffset(123); } + { const a: boolean = d.hasAlignedHourOffset(adone.datetime()); } + { const a: number = d.hour(); } + { const a: number = d.hours(); } + { const a: string = d.inspect(); } + { const a: number = d.invalidAt(); } + { const a: boolean = d.isAfter(123123); } + { const a: boolean = d.isAfter(adone.datetime()); } + { const a: boolean = d.isBefore(123123); } + { const a: boolean = d.isBefore(adone.datetime()); } + { const a: boolean = d.isBetween(adone.datetime(), adone.datetime()); } + { const a: boolean = d.isBetween(adone.datetime(), 123); } + { const a: boolean = d.isDST(); } + { const a: boolean = d.isDSTShifted(); } + { const a: boolean = d.isLeapYear(); } + { const a: boolean = d.isLocal(); } + { const a: number = d.isoWeek(); } + { const a: number = d.isoWeekday(); } + { const a: number = d.isoWeeks(); } + { const a: number = d.isoWeeksInYear(); } + { const a: number = d.isoWeekYear(); } + { const a: boolean = d.isSame(13); } + { const a: boolean = d.isSame(adone.datetime()); } + { const a: boolean = d.isSame("23"); } + { const a: boolean = d.isSameOrAfter("123"); } + { const a: boolean = d.isSameOrAfter(123); } + { const a: boolean = d.isSameOrAfter(adone.datetime()); } + { const a: boolean = d.isSameOrBefore("123"); } + { const a: boolean = d.isSameOrBefore(123); } + { const a: boolean = d.isSameOrBefore(adone.datetime()); } + { const a: boolean = d.isUTC(); } + { const a: boolean = d.isUtc(); } + { const a: boolean = d.isUtcOffset(); } + { const a: boolean = d.isValid(); } + { const a: adone.I.datetime.Datetime = d.local(); } + { const a: string = d.locale(); } + { const a: adone.I.datetime.Locale = d.localeData(); } + { const a: number = d.millisecond(); } + { const a: number = d.milliseconds(); } + { const a: number = d.minute(); } + { const a: number = d.minutes(); } + { const a: number = d.months(); } + { const a: adone.I.datetime.Datetime = d.parseZone(); } + { + const a: adone.I.datetime.DatetimeParsingFlags = d.parsingFlags(); + a.charsLeftOver; + a.empty; + a.invalidFormat; + a.invalidMonth; + a.iso; + a.meridiem; + a.nullInput; + a.overflow; + a.parsedDateParts; + a.unusedInput; + a.unusedTokens; + a.userInvalidated; + } + { const a: number = d.quarter(); } + { const a: number = d.quarters(); } + { const a: number = d.second(); } + { const a: number = d.seconds(); } + { const a: adone.I.datetime.Datetime = d.set("year", 2); } + { const a: adone.I.datetime.Datetime = d.startOf("year"); } + { const a: adone.I.datetime.Datetime = d.subtract(1, "day"); } + { const a: adone.I.datetime.Datetime = d.subtract(1); } + { const a: string = d.to(100); } + { const a: string = d.to(adone.datetime()); } + { const a: string = d.to("asdjasd"); } + { const a: number[] = d.toArray(); } + { const a: Date = d.toDate(); } + { const a: string = d.toISOString(); } + { const a: string = d.toJSON(); } + { const b: { date: number, time: number } = d.toDOS(); } + { const a: string = d.toNow(); } + { + const a: adone.I.datetime.DatetimeObjectOutput = d.toObject(); + a.date; + a.hours; + a.milliseconds; + a.minutes; + a.months; + a.seconds; + a.years; + } + { const a: number = d.unix(); } + { const a: adone.I.datetime.Datetime = d.utc(); } + { const a: number = d.utcOffset(); } + { const a: number = d.week(); } + { const a: number = d.weekday(); } + { const a: number = d.weeks(); } + { const a: number = d.weeksInYear(); } + { const a: number = d.weekYear(); } + { const a: number = d.year(); } + { const a: number = d.years(); } + { const a: string = d.zoneAbbr(); } + { const a: string = d.zoneName(); } +} diff --git a/types/adone/test/glosses/events.ts b/types/adone/test/glosses/events.ts new file mode 100644 index 0000000000..7f31089b52 --- /dev/null +++ b/types/adone/test/glosses/events.ts @@ -0,0 +1,106 @@ +namespace eventsTests { + namespace EventEmitter { + namespace static { + const a: number = adone.event.EventEmitter.listenerCount(new adone.event.EventEmitter(), "event"); + const b: number = adone.event.EventEmitter.defaultMaxListeners; + } + + namespace addListener { + const a: adone.event.EventEmitter = new adone.event.EventEmitter().addListener("event", () => { }); + const b: adone.event.EventEmitter = new adone.event.EventEmitter().addListener(Symbol("event"), () => { }); + } + + namespace on { + const a: adone.event.EventEmitter = new adone.event.EventEmitter().on("event", () => { }); + const b: adone.event.EventEmitter = new adone.event.EventEmitter().on(Symbol("event"), () => { }); + } + + namespace once { + const a: adone.event.EventEmitter = new adone.event.EventEmitter().once("event", () => { }); + const b: adone.event.EventEmitter = new adone.event.EventEmitter().once(Symbol("event"), () => { }); + } + + namespace prependListener { + const a: adone.event.EventEmitter = new adone.event.EventEmitter().prependListener("event", () => { }); + const b: adone.event.EventEmitter = new adone.event.EventEmitter().prependListener(Symbol("event"), () => { }); + } + + namespace prependOnceListener { + const a: adone.event.EventEmitter = new adone.event.EventEmitter().prependOnceListener("event", () => { }); + const b: adone.event.EventEmitter = new adone.event.EventEmitter().prependOnceListener(Symbol("event"), () => { }); + } + + namespace removeListener { + const a: adone.event.EventEmitter = new adone.event.EventEmitter().removeListener("event", () => { }); + const b: adone.event.EventEmitter = new adone.event.EventEmitter().removeListener(Symbol("event"), () => { }); + } + + namespace removeAllListeners { + const a: adone.event.EventEmitter = new adone.event.EventEmitter().removeAllListeners("event"); + const b: adone.event.EventEmitter = new adone.event.EventEmitter().removeAllListeners(Symbol("event")); + } + + namespace setMaxListeners { + const a: adone.event.EventEmitter = new adone.event.EventEmitter().setMaxListeners(10); + } + + namespace getMaxListeners { + const a: number = new adone.event.EventEmitter().getMaxListeners(); + } + + namespace listeners { + const a: Array<(...args: any[]) => any> = new adone.event.EventEmitter().listeners("event"); + const b: Array<(...args: any[]) => any> = new adone.event.EventEmitter().listeners(Symbol("event")); + } + + namespace emit { + const a: boolean = new adone.event.EventEmitter().emit("event", 1, 2, 3); + const b: boolean = new adone.event.EventEmitter().emit(Symbol("event"), 1, 2, 3); + } + + namespace eventNames { + const a: Array = new adone.event.EventEmitter().eventNames(); + const b: Array = new adone.event.EventEmitter().eventNames(); + } + + namespace listenerCount { + const a: number = new adone.event.EventEmitter().listenerCount("event"); + const b: number = new adone.event.EventEmitter().listenerCount(Symbol("event")); + } + } + + namespace AsyncEmitter { + const a: adone.event.EventEmitter = new adone.event.AsyncEmitter(); + new adone.event.AsyncEmitter(10); + + namespace setConcurrency { + const a: adone.event.AsyncEmitter = new adone.event.AsyncEmitter().setConcurrency(); + const b: adone.event.AsyncEmitter = new adone.event.AsyncEmitter().setConcurrency(10); + } + + namespace emitParallel { + const a: Promise = new adone.event.AsyncEmitter().emitParallel("even"); + const b: Promise = new adone.event.AsyncEmitter().emitParallel("even", 1, 2, 3); + } + + namespace emitSerial { + const a: Promise = new adone.event.AsyncEmitter().emitSerial("even"); + const b: Promise = new adone.event.AsyncEmitter().emitSerial("even", 1, 2, 3); + } + + namespace emitReduce { + const a: Promise = new adone.event.AsyncEmitter().emitReduce("even"); + const b: Promise = new adone.event.AsyncEmitter().emitReduce("even", 1, 2, 3); + } + + namespace emitReduceRight { + const a: Promise = new adone.event.AsyncEmitter().emitReduceRight("even"); + const b: Promise = new adone.event.AsyncEmitter().emitReduceRight("even", 1, 2, 3); + } + + namespace subscribe { + const a: () => void = new adone.event.AsyncEmitter().subscribe("event", () => { }); + const b: () => void = new adone.event.AsyncEmitter().subscribe("event", () => { }, true); + } + } +} diff --git a/types/adone/test/glosses/exceptions.ts b/types/adone/test/glosses/exceptions.ts new file mode 100644 index 0000000000..e13dc3fff7 --- /dev/null +++ b/types/adone/test/glosses/exceptions.ts @@ -0,0 +1,36 @@ +namespace ExcetpionsTests { + { const a: Error = new adone.x.Exception(); } + { const a: Error = new adone.x.Exception("message"); } + { const a: Error = new adone.x.Exception(new Error()); } + { const a: Error = new adone.x.Exception(new Error(), true); } + { const a: adone.x.Exception = new adone.x.Runtime(); } + { const a: adone.x.Exception = new adone.x.IncompleteBufferError(); } + { const a: adone.x.Exception = new adone.x.NotImplemented(); } + { const a: adone.x.Exception = new adone.x.IllegalState(); } + { const a: adone.x.Exception = new adone.x.NotValid(); } + { const a: adone.x.Exception = new adone.x.Unknown(); } + { const a: adone.x.Exception = new adone.x.NotExists(); } + { const a: adone.x.Exception = new adone.x.Exists(); } + { const a: adone.x.Exception = new adone.x.Empty(); } + { const a: adone.x.Exception = new adone.x.InvalidAccess(); } + { const a: adone.x.Exception = new adone.x.NotSupported(); } + { const a: adone.x.Exception = new adone.x.InvalidArgument(); } + { const a: adone.x.Exception = new adone.x.InvalidNumberOfArguments(); } + { const a: adone.x.Exception = new adone.x.NotFound(); } + { const a: adone.x.Exception = new adone.x.Timeout(); } + { const a: adone.x.Exception = new adone.x.Incorrect(); } + { const a: adone.x.Exception = new adone.x.NotAllowed(); } + { const a: adone.x.Exception = new adone.x.LimitExceeded(); } + { const a: adone.x.Exception = new adone.x.Encoding(); } + { const a: adone.x.Exception = new adone.x.Network(); } + { const a: adone.x.Exception = new adone.x.Bind(); } + { const a: adone.x.Exception = new adone.x.Connect(); } + { const a: adone.x.Exception = new adone.x.Database(); } + { const a: adone.x.Exception = new adone.x.DatabaseInitialization(); } + { const a: adone.x.Exception = new adone.x.DatabaseOpen(); } + { const a: adone.x.Exception = new adone.x.DatabaseRead(); } + { const a: adone.x.Exception = new adone.x.DatabaseWrite(); } + { const a: adone.x.Exception = new adone.x.NetronIllegalState(); } + { const a: adone.x.Exception = new adone.x.NetronPeerDisconnected(); } + { const a: adone.x.Exception = new adone.x.NetronTimeout(); } +} diff --git a/types/adone/test/glosses/fast.ts b/types/adone/test/glosses/fast.ts new file mode 100644 index 0000000000..a0943ffece --- /dev/null +++ b/types/adone/test/glosses/fast.ts @@ -0,0 +1,737 @@ +namespace fastTests { + const { fast } = adone; + + namespace FileTests { + const { File } = fast; + + new File(); + new File({ base: "/" }); + new File({ contents: Buffer.from("hello") }); + new File({ contents: Buffer.from("hello") }).contents.fill(0); + new File({ contents: adone.fs.createReadStream("hello") }).contents.pipe(process.stdout); + new File({ contents: null }).contents === null; + new File({ cwd: "/" }); + new File({ history: ["a", "b"] }); + new File({ path: "/a/b/c" }); + new File({ stat: adone.fs.statSync("hello") }); + new File({ symlink: "/a/b/c" }); + + { + const f = new File(); + f.base === ""; + f.base = "1"; + f.basename === ""; + f.basename = "2"; + f.contents === null; + f.cwd === ""; + f.cwd = "1"; + f.dirname === ""; + f.dirname = "2"; + f.extname === ""; + f.extname = "3"; + f.history[0] === ""; + f.path === ""; + f.path = "2"; + f.relative === ""; + f.relative = "3"; + const s: adone.fs.I.Stats = f.stat; + f.stem = "3"; + f.symlink = "5"; + } + { + const n = new File({ contents: null }); + n.clone({ contents: true }).contents === null; + const b = new File({ contents: Buffer.from("1") }); + b.clone({ contents: true }).contents.fill(0); + // todo stream + } + { + const f = new File(); + const a: boolean = f.isBuffer(); + const b: boolean = f.isDirectory(); + const c: boolean = f.isNull(); + const d: boolean = f.isStream(); + const e: boolean = f.isSymbolic(); + } + } + + namespace srcTests { + const { src } = fast; + + src("hello"); + src(["hello"]); + src("hello").forEach((x) => { + x.isBuffer(); + x.contents.fill(0); + }); + src("hello", { buffer: true }).forEach((x) => { + x.isBuffer(); + x.contents.fill(0); + }); + src("hello", { read: true, buffer: true }).forEach((x) => { + x.isBuffer(); + x.contents.fill(0); + }); + src("hello", { stream: true }).forEach((x) => { + x.contents.pipe(process.stdout); + }); + src("hello", { read: true, stream: true }).forEach((x) => { + x.contents.pipe(process.stdout); + }); + src("hello", { read: true, stream: true, buffer: true }).forEach((x) => { + x.contents.pipe(process.stdout); + }); + src("hello", { read: false }).forEach((x) => { + const a: null = x.contents; + }); + src("hello", { read: false, stream: true }).forEach((x) => { + const a: null = x.contents; + }); + src("hello", { read: false, stream: true, buffer: true }).forEach((x) => { + const a: null = x.contents; + }); + src("hello", { cwd: "/" }).forEach((x) => { + x.contents.fill(0); + }); + + src("hello").dest("hello"); + src("hello").dest("hello", { cwd: "/" }); + src("hello").dest("hello", { flag: "w+" }); + src("hello").dest("hello", { mode: 0o555 }); + src("hello").dest("hello", { originMode: true }); + src("hello").dest("hello", { originOwner: true }); + src("hello").dest("hello", { originTimes: true }); + src("hello").dest("hello", { produceFiles: true }); + src("hello").dest((file) => { + file.contents.fill(0); + return "a"; + }); + src("hello", { stream: true }).dest((file) => { + file.contents.pipe(process.stdout); + return "a"; + }); + } + + namespace watchTests { + const { watch } = fast; + watch("hello").forEach((x) => { + x.contents.fill(0); + }); + watch(["hello"]).forEach((x) => { + x.contents.fill(0); + }); + watch("hello", { read: false }).forEach((x) => { + const a: null = x.contents; + }); + watch("hello", { read: false, stream: true }).forEach((x) => { + const a: null = x.contents; + }); + watch("hello", { read: false, buffer: true }).forEach((x) => { + const a: null = x.contents; + }); + watch("hello", { stream: true }).forEach((x) => { + x.contents.pipe(process.stdout); + }); + watch("hello", { read: true, stream: true }).forEach((x) => { + x.contents.pipe(process.stdout); + }); + watch("hello", { read: true, stream: true, buffer: true }).forEach((x) => { + x.contents.pipe(process.stdout); + }); + watch("hello", { alwaysStat: true }); + watch("hello", { followSymlinks: true }); + } + + namespace mapTests { + const { map } = fast; + + map({ + from: "a", + to: "b" + }).forEach((x) => { + x.contents.fill(0); + }); + map([{ + from: "a", + to: "b" + }]).forEach((x) => { + x.contents.fill(0); + }); + map([]).dest({ cwd: "/" }); + map([]).dest({ flag: "w+" }); + map([]).dest({ mode: 0o677 }); + map([]).dest({ originMode: true }); + map([]).dest({ originOwner: false }); + map([]).dest({ originTimes: true }); + map([]).dest({ produceFiles: true }); + map([], { read: false }).forEach((x) => { + const a: null = x.contents; + }); + map([], { read: false, stream: true }).forEach((x) => { + const a: null = x.contents; + }); + map([], { read: false, stream: true, buffer: true }).forEach((x) => { + const a: null = x.contents; + }); + map([], { stream: true }).forEach((x) => { + x.contents.pipe(process.stdout); + }); + map([], { stream: true, buffer: true }).forEach((x) => { + x.contents.pipe(process.stdout); + }); + map([], { read: true, stream: true, buffer: true }).forEach((x) => { + x.contents.pipe(process.stdout); + }); + map([], { buffer: true }).forEach((x) => { + x.contents.fill(0); + }); + } + + namespace watchMapTests { + const { watchMap } = fast; + + watchMap({ + from: "a", + to: "b" + }).forEach((x) => { + x.contents.fill(0); + }); + watchMap([{ + from: "a", + to: "b" + }]).forEach((x) => { + x.contents.fill(0); + }); + watchMap([], { read: false }).forEach((x) => { + const a: null = x.contents; + }); + watchMap([], { stream: true }).forEach((x) => { + x.contents.pipe(process.stdout); + }); + watchMap([], { read: true, stream: true }).forEach((x) => { + x.contents.pipe(process.stdout); + }); + watchMap([], { read: true, stream: true, buffer: true }).forEach((x) => { + x.contents.pipe(process.stdout); + }); + watchMap([], { buffer: true }).forEach((x) => { + x.contents.fill(0); + }); + watchMap([], { read: true, buffer: true }).forEach((x) => { + x.contents.fill(0); + }); + watchMap([], { read: false, stream: true }).forEach((x) => { + const a: null = x.contents; + }); + watchMap([], { read: false, stream: true, buffer: true }).forEach((x) => { + const a: null = x.contents; + }); + } + + namespace pluginsTests { + const { src } = fast; + namespace compressorTests { + src("hello").compress("gz"); + src("hello").compress("brotli"); + src("hello").compress("deflate"); + src("hello").compress("lzma"); + src("hello").compress("snappy"); + src("hello").compress("xz"); + src("hello").compress("gz", {}); + src("hello").compress("gz", { rename: true }); + src("hello").decompress("gz"); + src("hello").decompress("brotli"); + src("hello").decompress("deflate"); + src("hello").decompress("lzma"); + src("hello").decompress("snappy"); + src("hello").decompress("xz"); + src("hello").decompress("gz", {}); + } + + namespace archiveTests { + src("hello").pack("tar"); + src("hello").pack("zip"); + src("hello").pack("tar", {}); + src("hello").unpack("tar"); + src("hello").unpack("zip"); + src("hello").unpack("tar", {}); + } + + namespace transpileTests { + src("hello").transpile({}); // TODO + } + + namespace renameTests { + src("hello").rename("opa"); + src("hello").rename((obj) => { + const a: string = obj.basename; + const b: string = obj.dirname; + const c: string = obj.extname; + return "asd"; + }); + src("hello").rename({ + dirname: "1" + }); + src("hello").rename({ + basename: "1" + }); + src("hello").rename({ + extname: "1" + }); + src("hello").rename({ + prefix: "1" + }); + } + + namespace concatTests { + src("hello").concat("file"); + src("hello").concat({ + path: "file" + }); + src("hello").concat("file", {}); + src("hello").concat("file", { newLine: "\n" }); + } + + namespace sourcemapsTests { + src("hello").sourcemapsInit(); + src("hello").sourcemapsInit({}); + src("hello").sourcemapsInit({ loadMaps: true }); + src("hello").sourcemapsInit({ identityMap: true }); + src("hello").sourcemapsInit({ largeFile: true }); + src("hello").sourcemapsWrite({}); + src("hello").sourcemapsWrite({ addComment: true }); + src("hello").sourcemapsWrite({ charset: "utf8" }); + src("hello").sourcemapsWrite({ clone: { deep: true } }); + src("hello").sourcemapsWrite({ clone: { contents: true } }); + src("hello").sourcemapsWrite({ destPath: "../" }); + src("hello").sourcemapsWrite({ includeContent: true }); + src("hello").sourcemapsWrite({ mapFile: (f) => f.contents.fill(0) && f.path }); + src("hello").sourcemapsWrite({ mapSources: (path: string, file) => file.contents.fill(0) && path }); + src("hello").sourcemapsWrite({ mapSourcesAbsolute: true }); + src("hello").sourcemapsWrite({ sourceMappingURL: (file) => file.contents.fill(0) && file.path }); + src("hello").sourcemapsWrite({ sourceMappingURLPrefix: "haha" }); + src("hello").sourcemapsWrite({ sourceMappingURLPrefix: (file) => file.contents.fill(0) && file.path }); + src("hello").sourcemapsWrite({ sourceRoot: "../" }); + src("hello").sourcemapsWrite("../", {}); + src("hello").sourcemapsWrite("../", { addComment: true }); + src("hello").sourcemapsWrite("../", { charset: "utf8" }); + src("hello").sourcemapsWrite("../", { clone: { deep: true } }); + src("hello").sourcemapsWrite("../", { clone: { contents: true } }); + src("hello").sourcemapsWrite("../", { destPath: "../" }); + src("hello").sourcemapsWrite("../", { includeContent: true }); + src("hello").sourcemapsWrite("../", { mapFile: (f) => f.contents.fill(0) && f.path }); + src("hello").sourcemapsWrite("../", { mapSources: (path: string, file) => file.contents.fill(0) && path }); + src("hello").sourcemapsWrite("../", { mapSourcesAbsolute: true }); + src("hello").sourcemapsWrite("../", { sourceMappingURL: (file) => file.contents.fill(0) && file.path }); + src("hello").sourcemapsWrite("../", { sourceMappingURLPrefix: "haha" }); + src("hello").sourcemapsWrite("../", { sourceMappingURLPrefix: (file) => file.contents.fill(0) && file.path }); + src("hello").sourcemapsWrite("../", { sourceRoot: "../" }); + } + + namespace wrapTests { + src("hello").wrap("template"); + src("hello").wrap({ src: "template path" }); + src("hello").wrap((data) => "123"); + src("hello").wrap("template", (file) => file.contents.fill(0) && { a: 1 }); + src("hello").wrap("template", { a: 1 }); + src("hello").wrap("template", undefined, { escape: /aasd/ }); + src("hello").wrap("template", undefined, { evaluate: /aa/ }); + src("hello").wrap("template", undefined, { imports: {} }); + src("hello").wrap("template", undefined, { interpolate: /a/ }); + src("hello").wrap("template", undefined, { parse: true }); + src("hello").wrap("template", undefined, { sourceURL: ".a" }); + src("hello").wrap("template", undefined, { variable: "a" }); + src("hello").wrap("template", undefined, (file) => (file.contents.fill(0) && { parse: true })); + } + + namespace replaceTests { + src("hello").replace("a", "b"); + src("hello").replace("a", (x: string) => "b"); + src("hello").replace(/a/, "b"); + src("hello").replace([/a/], ["b"]); + src("hello").replace([/a/], ["b"]); + src("hello").replace(["a", /a/], ["b", "e"]); + src("hello").replace(["a", /a/], [(x: string) => "b", "e"]); + } + + namespace revisionHashTests { + src("hello").revisionHash(); + src("hello").revisionHash({ + manifest: {} + }); + src("hello").revisionHash({ + manifest: { + merge: true + } + }); + src("hello").revisionHash({ + manifest: { + path: "a" + } + }); + src("hello").revisionHash({ + manifest: { + transformer: JSON + } + }); + src("hello").revisionHash({ + manifest: { + transformer: { + parse: () => ({}), + stringify: () => "" + } + } + }); + } + + namespace revisionHashReplaceTests { + src("hello").revisionHashReplace({ + canonicalUris: true + }); + src("hello").revisionHashReplace({ + prefix: "hello" + }); + src("hello").revisionHashReplace({ + replaceExtensions: [".js"] + }); + src("hello").revisionHashReplace({ + manifest: src("hello") + }); + (async () => { + src("hello").revisionHashReplace({ + manifest: await src("hello") + }); + })(); + src("hello").revisionHashReplace({ + modifyReved: (p: string) => p + }); + src("hello").revisionHashReplace({ + modifyUnreved: (p: string) => p + }); + } + + namespace chmodTests { + src("hello").chmod(0o777); + src("hello").chmod({ + group: { + read: true + } + }); + src("hello").chmod({ + group: { + write: true + } + }); + src("hello").chmod({ + group: { + execute: true + } + }); + src("hello").chmod({ + owner: { + read: true + } + }); + src("hello").chmod({ + owner: { + write: true + } + }); + src("hello").chmod({ + owner: { + execute: true + } + }); + src("hello").chmod({ + others: { + read: true + } + }); + src("hello").chmod({ + others: { + write: true + } + }); + src("hello").chmod({ + others: { + execute: true + } + }); + src("hello").chmod(undefined, 0o777); + src("hello").chmod(undefined, { + group: { + read: true + } + }); + src("hello").chmod(undefined, { + group: { + write: true + } + }); + src("hello").chmod(undefined, { + group: { + execute: true + } + }); + src("hello").chmod(undefined, { + owner: { + read: true + } + }); + src("hello").chmod(undefined, { + owner: { + write: true + } + }); + src("hello").chmod(undefined, { + owner: { + execute: true + } + }); + src("hello").chmod(undefined, { + others: { + read: true + } + }); + src("hello").chmod(undefined, { + others: { + write: true + } + }); + src("hello").chmod(undefined, { + others: { + execute: true + } + }); + } + + namespace notifyTests { + src("hello").notify("hello"); + src("hello").notify({ + appName: "a" + }); + src("hello").notify({ + console: true + }); + src("hello").notify({ + debounce: { + timeout: 100 + } + }); + src("hello").notify({ + debounce: 100 + }); + src("hello").notify({ + debounce: { + timeout: 100, + leading: true + } + }); + src("hello").notify({ + debounce: { + timeout: 100, + trailing: true + } + }); + src("hello").notify({ + emitError: true + }); + src("hello").notify({ + filter: (file) => file.contents.fill(0) && true + }); + src("hello").notify({ + gui: true + }); + src("hello").notify({ + host: "192.168.1.1" + }); + src("hello").notify({ + message: "hello" + }); + src("hello").notify({ + message: (file) => file.contents.fill(0) && file.path + }); + src("hello").notify({ + notifier: {} // TODO + }); + src("hello").notify({ + onLast: true + }); + src("hello").notify({ + open: (file) => file.contents.fill(0) && file.path + }); + src("hello").notify({ + open: "hello" + }); + src("hello").notify({ + port: 31337 + }); + src("hello").notify({ + subtitle: (file) => file.contents.fill(0) && file.path + }); + src("hello").notify({ + subtitle: "hello" + }); + src("hello").notify({ + templateOptions: {} + }); + src("hello").notify({ + title: "hello" + }); + src("hello").notify({ + title: (file) => file.contents.fill(0) && file.path + }); + src("hello").notifyError("hello"); + src("hello").notifyError({ + appName: "a" + }); + src("hello").notifyError({ + console: true + }); + src("hello").notifyError({ + debounce: { + timeout: 100 + } + }); + src("hello").notifyError({ + debounce: 100 + }); + src("hello").notifyError({ + debounce: { + timeout: 100, + leading: true + } + }); + src("hello").notifyError({ + debounce: { + timeout: 100, + trailing: true + } + }); + src("hello").notifyError({ + emitError: true + }); + src("hello").notifyError({ + filter: (file) => file.contents.fill(0) && true + }); + src("hello").notifyError({ + gui: true + }); + src("hello").notifyError({ + host: "192.168.1.1" + }); + src("hello").notifyError({ + message: "hello" + }); + src("hello").notifyError({ + message: (file) => file.contents.fill(0) && file.path + }); + src("hello").notifyError({ + notifier: {} // TODO + }); + src("hello").notifyError({ + onLast: true + }); + src("hello").notifyError({ + open: (file) => file.contents.fill(0) && file.path + }); + src("hello").notifyError({ + open: "hello" + }); + src("hello").notifyError({ + port: 31337 + }); + src("hello").notifyError({ + subtitle: (file) => file.contents.fill(0) && file.path + }); + src("hello").notifyError({ + subtitle: "hello" + }); + src("hello").notifyError({ + templateOptions: {} + }); + src("hello").notifyError({ + title: "hello" + }); + src("hello").notifyError({ + title: (file) => file.contents.fill(0) && file.path + }); + + fast.plugin.notify.onError("hello"); + fast.plugin.notify.onError({ + appName: "a" + }); + fast.plugin.notify.onError({ + console: true + }); + fast.plugin.notify.onError({ + debounce: { + timeout: 100 + } + }); + fast.plugin.notify.onError({ + debounce: 100 + }); + fast.plugin.notify.onError({ + debounce: { + timeout: 100, + leading: true + } + }); + fast.plugin.notify.onError({ + debounce: { + timeout: 100, + trailing: true + } + }); + fast.plugin.notify.onError({ + emitError: true + }); + fast.plugin.notify.onError({ + filter: (file) => true + }); + fast.plugin.notify.onError({ + gui: true + }); + fast.plugin.notify.onError({ + host: "192.168.1.1" + }); + fast.plugin.notify.onError({ + message: "hello" + }); + fast.plugin.notify.onError({ + message: (file) => file.path + }); + fast.plugin.notify.onError({ + notifier: {} // TODO + }); + fast.plugin.notify.onError({ + onLast: true + }); + fast.plugin.notify.onError({ + open: (file) => file.path + }); + fast.plugin.notify.onError({ + open: "hello" + }); + fast.plugin.notify.onError({ + port: 31337 + }); + fast.plugin.notify.onError({ + subtitle: (file) => file.path + }); + fast.plugin.notify.onError({ + subtitle: "hello" + }); + fast.plugin.notify.onError({ + templateOptions: {} + }); + fast.plugin.notify.onError({ + title: "hello" + }); + fast.plugin.notify.onError({ + title: (file) => file.path + }); + } + } +} diff --git a/types/adone/test/glosses/fs.ts b/types/adone/test/glosses/fs.ts new file mode 100644 index 0000000000..8b7e765c9f --- /dev/null +++ b/types/adone/test/glosses/fs.ts @@ -0,0 +1,793 @@ +namespace fsTests { + const { fs, std: { url: { URL } } } = adone; + + namespace readlinkTests { + fs.readlink("file"); + fs.readlink(Buffer.from("file")); + fs.readlink(new URL("file://file")); + fs.readlink("file", {}).then((x: string) => x); + fs.readlink("file", { encoding: "utf8" }).then((x: string) => x); + fs.readlink("file", { encoding: null }).then((x: Buffer) => x); + fs.readlink("file", null).then((x: Buffer) => x); + fs.readlink("file", "hex").then((x: string) => x); + fs.readlink("file").then((x: string) => x); + } + + namespace unlinkTests { + fs.unlink("file").then(() => {}); + fs.unlink(Buffer.from("file")).then(() => {}); + fs.unlink(new URL("file://file")).then(() => {}); + fs.unlinkSync("file"); + fs.unlinkSync(Buffer.from("file")); + fs.unlinkSync(new URL("file://file")); + } + + namespace chmodTests { + fs.chmod("file", 0o333).then(() => {}); + fs.chmod(Buffer.from("file"), 0o333).then(() => {}); + fs.chmod(new URL("file://file"), 0o333).then(() => {}); + } + + namespace chownTests { + fs.chown("file", 0, 0).then(() => {}); + fs.chown(Buffer.from("file"), 0, 0).then(() => {}); + fs.chown(new URL("file://file"), 0, 0).then(() => {}); + } + + namespace rmdirTests { + fs.rmdir("file").then(() => {}); + fs.rmdir(Buffer.from("file")).then(() => {}); + fs.rmdir(new URL("file://file")).then(() => {}); + } + + namespace readdirTests { + fs.readdir("file"); + fs.readdir(Buffer.from("file")); + fs.readdir(new URL("file://file")); + fs.readdir("file").then((x: string[]) => {}); + fs.readdir("file", null).then((x: Buffer[]) => {}); + fs.readdir("file", {}).then((x: string[]) => {}); + fs.readdir("file", { encoding: "hex" }).then((x: string[]) => {}); + fs.readdir("file", { encoding: null }).then((x: Buffer[]) => {}); + + fs.readdirSync("file"); + fs.readdirSync(Buffer.from("file")); + fs.readdirSync(new URL("file://file")); + const a: string[] = fs.readdirSync("file"); + const b: Buffer[] = fs.readdirSync("file", null); + const c: string[] = fs.readdirSync("file", {}); + const d: string[] = fs.readdirSync("file", { encoding: "hex" }); + const e: Buffer[] = fs.readdirSync("file", { encoding: null }); + } + + namespace lstatTests { + fs.lstat("file").then((x: nodestd.fs.Stats) => {}); + fs.lstat(Buffer.from("file")).then((x: nodestd.fs.Stats) => {}); + fs.lstat(new URL("file://file")).then((x: nodestd.fs.Stats) => {}); + + const a: nodestd.fs.Stats = fs.lstatSync("file"); + const b: nodestd.fs.Stats = fs.lstatSync(Buffer.from("file")); + const c: nodestd.fs.Stats = fs.lstatSync(new URL("file://file")); + } + + namespace statTests { + fs.stat("file").then((x: nodestd.fs.Stats) => {}); + fs.stat(Buffer.from("file")).then((x: nodestd.fs.Stats) => {}); + fs.stat(new URL("file://file")).then((x: nodestd.fs.Stats) => {}); + + const a: nodestd.fs.Stats = fs.statSync("file"); + const b: nodestd.fs.Stats = fs.statSync(Buffer.from("file")); + const c: nodestd.fs.Stats = fs.statSync(new URL("file://file")); + } + + namespace truncateTests { + fs.truncate("file").then(() => {}); + fs.truncate(Buffer.from("file")).then(() => {}); + fs.truncate("file", 100).then(() => {}); + } + + namespace writeFileTests { + fs.writeFile("file", "hello").then(() => {}); + fs.writeFile(Buffer.from("file"), "hello").then(() => {}); + fs.writeFile(10, "hello").then(() => {}); + fs.writeFile("file", Buffer.from("hello")).then(() => {}); + fs.writeFile("file", new Uint8Array(10)).then(() => {}); + fs.writeFile("file", "hello", {}).then(() => {}); + fs.writeFile("file", "hello", { encoding: "utf8" }).then(() => {}); + fs.writeFile("file", "hello", { mode: 0o755 }).then(() => {}); + fs.writeFile("file", "hello", { flag: "w" }).then(() => {}); + } + + namespace writeFileSyncTests { + fs.writeFileSync("file", "hello"); + fs.writeFileSync(Buffer.from("file"), "hello"); + fs.writeFileSync(10, "hello"); + fs.writeFileSync("file", Buffer.from("hello")); + fs.writeFileSync("file", new Uint8Array(10)); + fs.writeFileSync("file", "hello", {}); + fs.writeFileSync("file", "hello", { encoding: "utf8" }); + fs.writeFileSync("file", "hello", { mode: 0o755 }); + fs.writeFileSync("file", "hello", { flag: "w" }); + } + + namespace appendFileTests { + fs.appendFile("file", "hello").then(() => {}); + fs.appendFile(Buffer.from("file"), "hello").then(() => {}); + fs.appendFile(10, "hello").then(() => {}); + fs.appendFile("file", Buffer.from("hello")).then(() => {}); + fs.appendFile("file", "hello", {}).then(() => {}); + fs.appendFile("file", "hello", { encoding: "utf8" }).then(() => {}); + fs.appendFile("file", "hello", { mode: 0o755 }).then(() => {}); + fs.appendFile("file", "hello", { flag: "w" }).then(() => {}); + } + + namespace accessTests { + fs.access("file", fs.constants.F_OK).then(() => {}); + fs.access(Buffer.from("file"), fs.constants.F_OK).then(() => {}); + fs.access(new URL("file://file"), fs.constants.F_OK).then(() => {}); + } + + namespace accessSyncTests { + fs.accessSync("file", fs.constants.F_OK); + fs.accessSync(Buffer.from("file"), fs.constants.F_OK); + fs.accessSync(new URL("file://file"), fs.constants.F_OK); + } + + namespace symlinkTests { + fs.symlink("file", "another_file").then(() => {}); + fs.symlink(Buffer.from("file"), "another_file").then(() => {}); + fs.symlink(new URL("file"), "another_file").then(() => {}); + fs.symlink("file", Buffer.from("another_file")).then(() => {}); + fs.symlink("file", new URL("another_file")).then(() => {}); + fs.symlink("file", "another_file", "dir").then(() => {}); + fs.symlink("file", "another_file", "file").then(() => {}); + fs.symlink("file", "another_file", "junction").then(() => {}); + } + + namespace rmTests { + fs.rm("file").then((x) => {}); + fs.rm("file", {}).then((x) => {}); + fs.rm("file", { glob: true }).then((x) => {}); + fs.rm("file", { maxBusyTries: 3 }).then((x) => {}); + fs.rm("file", { emfileWait: 100 }).then((x) => {}); + fs.rm("file", { cwd: __dirname }).then((x) => {}); + } + + namespace ModeTests { + const stat = fs.statSync("file"); + const mode = new fs.Mode(stat); + { const a: number = mode.valueOf(); } + { const a: boolean = mode.owner.read; } + { const a: boolean = mode.owner.write; } + { const a: boolean = mode.owner.execute; } + { const a: boolean = mode.group.read; } + { const a: boolean = mode.group.write; } + { const a: boolean = mode.group.execute; } + { const a: boolean = mode.others.read; } + { const a: boolean = mode.others.write; } + { const a: boolean = mode.others.execute; } + } + + namespace FileTests { + const { File } = fs; + const f = new File("some", "file"); + f.encoding("utf8").encoding("buffer"); + f.stat().then((x: adone.fs.I.Stats) => {}); + { const a: adone.fs.I.Stats = f.statSync(); } + f.lstat().then((x: adone.fs.I.Stats) => {}); + { const a: adone.fs.I.Stats = f.lstatSync(); } + { const a: adone.fs.Mode = f.mode(); } + { const a: string = f.path(); } + { const a: string = f.normalizedPath(); } + { const a: string = f.dirname(); } + { const a: string = f.filename(); } + { const a: string = f.extname(); } + { const a: string = f.stem(); } + { const a: string = f.relativePath("/tmp"); } + { const a: string = f.relativePath(new fs.Directory("/tmp")); } + f.exists().then((x: boolean) => {}); + f.create().then(() => {}); + f.create({}).then(() => {}); + f.create({ mode: 0o666 }).then(() => {}); + f.write("hello").then(() => {}); + f.write(Buffer.from("hello")).then(() => {}); + f.write("hello", {}).then(() => {}); + f.write("hello", { encoding: "utf8" }).then(() => {}); + f.write("hello", { mode: 0o666 }).then(() => {}); + f.write("hello", { flag: "w" }).then(() => {}); + f.append("hello").then(() => {}); + f.append(Buffer.from("hello")).then(() => {}); + f.append("hello", {}).then(() => {}); + f.append("hello", { encoding: "utf8" }).then(() => {}); + f.append("hello", { mode: 0o666 }).then(() => {}); + f.append("hello", { flag: "w" }).then(() => {}); + f.unlink().then(() => {}); + f.contents("utf16le").then((a: string) => {}); + f.contents("buffer").then((a: Buffer) => {}); + { const a: string = f.contentsSync("utf16le"); } + { const a: Buffer = f.contentsSync("buffer"); } + f.contentsStream("utf8").on("data", (chunk) => {}); + f.chmod(0o755).then(() => {}); + f.chmod(new fs.Mode(f.statSync())).then(() => {}); + { const a: adone.fs.SymbolicLinkFile = f.symbolicLink("another_file"); } + { const a: adone.fs.SymbolicLinkFile = f.symbolicLink(new File("another_file")); } + f.size().then((x: number) => {}); + } + + namespace DirectoryTests { + const { Directory } = fs; + + const d = new Directory("some", "directory"); + { const a: string = d.dirname(); } + { const a: string = d.filename(); } + { const a: string = d.path(); } + { const a: string = d.normalizedPath(); } + { const a: string = d.relativePath("another_dir"); } + { const a: string = d.relativePath(new Directory("another_dir")); } + d.stat().then((x: adone.fs.I.Stats) => {}); + d.lstat().then((x: adone.fs.I.Stats) => {}); + d.exists().then((x: boolean) => {}); + d.create().then(() => {}); + d.create({}).then(() => {}); + d.create({ mode: 0o666 }).then(() => {}); + { const a: string = d.resolve("file", "path"); } + { const a: adone.fs.Directory = d.getDirectory("nested", "directory"); } + { const a: adone.fs.File = d.getFile("nested", "file"); } + { const a: adone.fs.SymbolicLinkFile = d.getSymbolicLinkFile("nested", "filelink"); } + { const a: adone.fs.SymbolicLinkDirectory = d.getSymbolicLinkDirectory("nester", "dirlink"); } + d.addFile("a", "b", "c").then((x: adone.fs.File) => {}); + d.addFile("a", "b", "c", {}).then((x: adone.fs.File) => {}); + d.addFile("a", "b", "c", { contents: "hello" }).then((x: adone.fs.File) => {}); + d.addFile("a", "b", "c", { contents: Buffer.from("hello") }).then((x: adone.fs.File) => {}); + d.addFile("a", "b", "c", { encoding: "utf8" }).then((x: adone.fs.File) => {}); + d.addFile("a", "b", "c", { mode: 0o666 }).then((x: adone.fs.File) => {}); + d.addDirectory("a", "b", "c").then((x: adone.fs.Directory) => {}); + d.files().then((x: Array) => {}); + { const a: Array = d.filesSync(); } + d.clean().then(() => {}); + d.unlink().then(() => {}); + d.unlink({ delay: 100 }).then(() => {}); + d.unlink({ retries: 100 }).then(() => {}); + d.find().then((x: Array) => {}); + d.find({}).then((x: Array) => {}); + d.find({ dirs: true }).then((x: Array) => {}); + d.find({ files: false }).then((x: Array) => {}); + { const a: Array = d.findSync(); } + { const a: Array = d.findSync({}); } + { const a: Array = d.findSync({ dirs: true }); } + { const a: Array = d.findSync({ files: false }); } + d.rename("name").then(() => {}); + d.rename(new Directory("name")).then(() => {}); + d.symbolicLink("another").then((x: adone.fs.SymbolicLinkDirectory) => {}); + d.copyTo("another").then(() => {}); + d.copyTo("another", {}).then(() => {}); + d.copyTo("another", { cwd: "/tmp" }).then(() => {}); + d.copyTo("another", { ignoreExisting: true }).then(() => {}); + d.copyFrom("another", { cwd: "/tmp" }).then(() => {}); + d.copyFrom("another", { ignoreExisting: true }).then(() => {}); + + Directory.create("hello", "world").then((x: adone.fs.Directory) => {}); + Directory.createTmp().then((x: adone.fs.Directory) => {}); + Directory.createTmp({ dir: "/" }).then((x: adone.fs.Directory) => {}); + Directory.createTmp({ ext: ".exe" }).then((x: adone.fs.Directory) => {}); + Directory.createTmp({ name: "hello" }).then((x: adone.fs.Directory) => {}); + Directory.createTmp({ prefix: "/tmp/t-" }).then((x: adone.fs.Directory) => {}); + Directory.createTmp({ template: /XASDX/ }).then((x: adone.fs.Directory) => {}); + Directory.createTmp({ tries: 100500 }).then((x: adone.fs.Directory) => {}); + } + + namespace SymbolicLinkFileTests { + const s = new fs.SymbolicLinkFile("path", "to", "link"); + s.realpath().then((x: string) => {}); + s.contents("utf8").then((x: string) => {}); + s.contents("buffer").then((x: Buffer) => {}); + { const a: string = s.contentsSync("utf8"); } + { const a: Buffer = s.contentsSync("buffer"); } + s.contentsStream("utf8").on("data", (chunk) => {}); + } + + namespace SymbolicLinkDirectoryTests { + const s = new fs.SymbolicLinkDirectory("path", "to", "link"); + s.realpath().then((x: string) => {}); + s.unlink().then(() => {}); + } + + namespace RandomAccessFileTests { + new fs.RandomAccessFile("hello", {}); + new fs.RandomAccessFile("hello", { appendable: true }); + new fs.RandomAccessFile("hello", { readable: true }); + new fs.RandomAccessFile("hello", { writable: true }); + new fs.RandomAccessFile("hello", { cwd: "/tmp" }); + new fs.RandomAccessFile("hello", { mtime: 100500 }); + new fs.RandomAccessFile("hello", { atime: 100500 }); + const raf = new fs.RandomAccessFile("hello"); + raf.read(100).then((x: Buffer) => {}); + raf.read(100, 100).then((x: Buffer) => {}); + raf.write("hello").then((x: number) => {}); + raf.write(Buffer.from("hello")).then((x: number) => {}); + raf.write("hello", 100).then((x: number) => {}); + raf.close().then(() => {}); + raf.end().then(() => {}); + raf.end({}).then(() => {}); + raf.end({ atime: 100500 }).then(() => {}); + raf.end({ mtime: 100500 }).then(() => {}); + raf.truncate(0).then(() => {}); + raf.unlink().then(() => {}); + fs.RandomAccessFile.open("hello").then((x: adone.fs.RandomAccessFile) => {}); + fs.RandomAccessFile.open("hello", {}).then((x: adone.fs.RandomAccessFile) => {}); + fs.RandomAccessFile.open("hello", { appendable: true }).then((x: adone.fs.RandomAccessFile) => {}); + fs.RandomAccessFile.open("hello", { readable: true }).then((x: adone.fs.RandomAccessFile) => {}); + fs.RandomAccessFile.open("hello", { writable: true }).then((x: adone.fs.RandomAccessFile) => {}); + fs.RandomAccessFile.open("hello", { cwd: "/tmp" }).then((x: adone.fs.RandomAccessFile) => {}); + fs.RandomAccessFile.open("hello", { mtime: 100500 }).then((x: adone.fs.RandomAccessFile) => {}); + fs.RandomAccessFile.open("hello", { atime: 100500 }).then((x: adone.fs.RandomAccessFile) => {}); + } + + namespace globTests { + fs.glob("hello").forEach((x: string) => {}); + fs.glob(["hello"]).forEach((x: string) => {}); + fs.glob(["hello"]).forEach((x: string) => {}); + fs.glob(["hello"], { absolute: true }).forEach((x: string) => {}); + fs.glob(["hello"], { cache: new Map() }).forEach((x: string) => {}); + fs.glob(["hello"], { cwd: "/" }).forEach((x: string) => {}); + fs.glob(["hello"], { dot: true }).forEach((x: string) => {}); + fs.glob(["hello"], { follow: true }).forEach((x: string) => {}); + fs.glob(["hello"], { ignore: "a" }).forEach((x: string) => {}); + fs.glob(["hello"], { ignore: ["a"] }).forEach((x: string) => {}); + fs.glob(["hello"], { mark: true }).forEach((x: string) => {}); + fs.glob(["hello"], { matchBase: false }).forEach((x: string) => {}); + fs.glob(["hello"], { nobrace: true }).forEach((x: string) => {}); + fs.glob(["hello"], { nocase: true }).forEach((x: string) => {}); + fs.glob(["hello"], { nodir: true }).forEach((x: string) => {}); + fs.glob(["hello"], { noext: true }).forEach((x: string) => {}); + fs.glob(["hello"], { noglobstar: true }).forEach((x: string) => {}); + fs.glob(["hello"], { nomount: true }).forEach((x: string) => {}); + fs.glob(["hello"], { nonull: true }).forEach((x: string) => {}); + fs.glob(["hello"], { nosort: true }).forEach((x: string) => {}); + fs.glob(["hello"], { nounique: true }).forEach((x: string) => {}); + fs.glob(["hello"], { patternIndex: true }).forEach((x: { patternIndex: number, path: string }) => {}); + fs.glob(["hello"], { realpath: true }).forEach((x: string) => {}); + fs.glob(["hello"], { realpathCache: new Map() }).forEach((x: string) => {}); + fs.glob(["hello"], { root: "/" }).forEach((x: string) => {}); + fs.glob(["hello"], { silent: true }).forEach((x: string) => {}); + fs.glob(["hello"], { stat: true }).forEach((x: { stat: adone.fs.I.Stats, path: string }) => {}); + fs.glob(["hello"], { statCache: new Map() }).forEach((x: string) => {}); + fs.glob(["hello"], { strict: true }).forEach((x: string) => {}); + fs.glob(["hello"], { symlinks: new Map() }).forEach((x: string) => {}); + fs.glob(["hello"], { stat: true, patternIndex: true }).forEach((x: { path: string, patternIndex: number, stat: adone.fs.I.Stats }) => {}); + new fs.glob.Core("hello").forEach((x: string) => {}); + new fs.glob.Core(["hello"]).forEach((x: string) => {}); + new fs.glob.Core(["hello"]).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { absolute: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { cache: new Map() }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { cwd: "/" }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { dot: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { follow: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { ignore: "a" }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { ignore: ["a"] }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { mark: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { matchBase: false }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { nobrace: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { nocase: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { nodir: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { noext: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { noglobstar: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { nomount: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { nonull: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { nosort: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { nounique: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { patternIndex: true }).forEach((x: { patternIndex: number, path: string }) => {}); + new fs.glob.Core(["hello"], { realpath: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { realpathCache: new Map() }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { root: "/" }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { silent: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { stat: true }).forEach((x: { stat: adone.fs.I.Stats, path: string }) => {}); + new fs.glob.Core(["hello"], { statCache: new Map() }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { strict: true }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { symlinks: new Map() }).forEach((x: string) => {}); + new fs.glob.Core(["hello"], { stat: true, patternIndex: true }).forEach((x: { path: string, patternIndex: number, stat: adone.fs.I.Stats }) => {}); + new fs.glob.Glob("hello").on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello").on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { absolute: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { cache: new Map() }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { cwd: "/" }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { dot: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { follow: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { ignore: "a" }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { ignore: ["a"] }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { mark: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { matchBase: false }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { nobrace: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { nocase: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { nodir: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { noext: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { noglobstar: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { nomount: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { nonull: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { nosort: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { nounique: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { realpath: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { realpathCache: new Map() }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { root: "/" }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { silent: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { stat: true }).on("match", (path: string, stat: adone.fs.I.Stats) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { statCache: new Map() }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { strict: true }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", { symlinks: new Map() }).on("match", (path: string) => {}).on("end", (cb: string[]) => {}); + new fs.glob.Glob("hello", {}, (err: any, matches: string[]) => {}).on("end", () => {}); + new fs.glob.Glob("hello", (err: any, matches: string[]) => {}).on("end", () => {}); + new fs.glob.Glob("hello").pause(); + new fs.glob.Glob("hello").resume(); + new fs.glob.Glob("hello").abort(); + } + + namespace WatcherTests { + new fs.Watcher(); + new fs.Watcher({}); + new fs.Watcher({ alwaysStat: true }); + new fs.Watcher({ atomic: true }); + new fs.Watcher({ awaitWriteFinish: true }); + new fs.Watcher({ awaitWriteFinish: { pollInterval: 100 } }); + new fs.Watcher({ awaitWriteFinish: { stabilityThreshold: 100 } }); + new fs.Watcher({ binaryInterval: 100 }); + new fs.Watcher({ cwd: "/tmp" }); + new fs.Watcher({ depth: 10 }); + new fs.Watcher({ disableGlobbing: true }); + new fs.Watcher({ followSymlinks: false }); + new fs.Watcher({ ignored: ["hello"] }); + new fs.Watcher({ ignoreInitial: true }); + new fs.Watcher({ ignorePermissionErrors: false }); + new fs.Watcher({ interval: 100 }); + new fs.Watcher({ persistent: false }); + new fs.Watcher({ useFsEvents: false }); + new fs.Watcher({ usePolling: false }); + const w = new fs.Watcher(); + { const a: adone.fs.Watcher = w.add("hello"); } + { const a: adone.fs.Watcher = w.add(["hello"]); } + { + const watched = w.getWatched(); + const a: string[] = watched["/tmp"]; + } + w.on("add", (path: string, stat: adone.fs.I.Stats) => {}); + w.on("addDir", (path: string, stat: adone.fs.I.Stats) => {}); + w.on("all", (event: adone.fs.I.Watcher.Event, path: string, stat: adone.fs.I.Stats) => {}); + w.on("raw", (event: string, path: string, details: object) => {}); + } + + namespace watchTests { + { const a: adone.fs.Watcher = fs.watch("path"); } + { const a: adone.fs.Watcher = fs.watch(["path"]); } + { const a: adone.fs.Watcher = fs.watch("path", {}); } + { const a: adone.fs.Watcher = fs.watch("path", { alwaysStat: true }); } + { const a: adone.fs.Watcher = fs.watch("path", { atomic: true }); } + { const a: adone.fs.Watcher = fs.watch("path", { awaitWriteFinish: true }); } + { const a: adone.fs.Watcher = fs.watch("path", { awaitWriteFinish: {} }); } + { const a: adone.fs.Watcher = fs.watch("path", { awaitWriteFinish: { pollInterval: 100 } }); } + { const a: adone.fs.Watcher = fs.watch("path", { awaitWriteFinish: { stabilityThreshold: 100 } }); } + { const a: adone.fs.Watcher = fs.watch("path", { binaryInterval: 100 }); } + { const a: adone.fs.Watcher = fs.watch("path", { cwd: "/tmp" }); } + { const a: adone.fs.Watcher = fs.watch("path", { depth: 10 }); } + { const a: adone.fs.Watcher = fs.watch("path", { disableGlobbing: true }); } + { const a: adone.fs.Watcher = fs.watch("path", { followSymlinks: false }); } + { const a: adone.fs.Watcher = fs.watch("path", { ignored: ["hello"] }); } + { const a: adone.fs.Watcher = fs.watch("path", { ignoreInitial: false }); } + { const a: adone.fs.Watcher = fs.watch("path", { ignorePermissionErrors: false }); } + { const a: adone.fs.Watcher = fs.watch("path", { interval: 100 }); } + { const a: adone.fs.Watcher = fs.watch("path", { persistent: false }); } + { const a: adone.fs.Watcher = fs.watch("path", { useFsEvents: false }); } + { const a: adone.fs.Watcher = fs.watch("path", { usePolling: false }); } + } + + namespace isTests { + const { is } = fs; + is.file("hello").then((x: boolean) => {}); + { const a: boolean = is.fileSync("hello"); } + is.directory("hello").then((x: boolean) => {}); + { const a: boolean = is.directorySync("hello"); } + is.executable("hello").then((x: boolean) => {}); + { const a: boolean = is.executableSync("hello"); } + } + + namespace whichTests { + const { which } = fs; + + which("hello").then((x: string) => {}); + which("hello", { nothrow: true }).then((x: string | null) => {}); + which("hello", { all: true }).then((x: string[]) => {}); + which("hello", { all: true, nothrow: true }).then((x: string[] | null) => {}); + which("hello", { colon: ":" }).then((x: string) => {}); + which("hello", { path: "/" }).then((x: string) => {}); + which("hello", { pathExt: "asd" }).then((x: string) => {}); + } + + namespace whichSyncTests { + const { whichSync } = fs; + + { const a: string = whichSync("hello"); } + { const a: string | null = whichSync("hello", { nothrow: true }); } + { const a: string[] = whichSync("hello", { all: true }); } + { const a: string[] | null = whichSync("hello", { all: true, nothrow: true }); } + { const a: string = whichSync("hello", { colon: ":" }); } + { const a: string = whichSync("hello", { path: "/" }); } + { const a: string = whichSync("hello", { pathExt: "asd" }); } + } + + namespace fdTests { + const { fd } = fs; + fd.open("hello", "r+").then((x: number) => {}); + fd.open(Buffer.from("hello"), "r+").then((x: number) => {}); + fd.open(new URL("file://hello"), "r+").then((x: number) => {}); + { const a: number = fd.openSync("hello", "r+"); } + { const a: number = fd.openSync(Buffer.from("hello"), "r+"); } + { const a: number = fd.openSync(new URL("file://hello"), "r+"); } + fd.close(10).then(() => {}); + fd.closeSync(10); + fd.utimes(10, 100500, 100500).then(() => {}); + fd.utimesSync(10, 100500, 100500); + fd.stat(10).then((x: adone.fs.I.Stats) => {}); + { const a: adone.fs.I.Stats = fd.statSync(10); } + fd.truncate(10).then(() => {}); + fd.truncate(10, 10).then(() => {}); + fd.truncateSync(10); + fd.truncateSync(10, 10); + fd.read(10, Buffer.alloc(10), 0, 10, 10).then((x: number) => {}); + { const a: number = fd.readSync(10, Buffer.alloc(10), 0, 10, 10); } + fd.write(10, Buffer.alloc(10), 0, 10, 10).then((x: number) => {}); + { const a: number = fd.writeSync(10, Buffer.alloc(10), 0, 10, 10); } + fd.write(10, "hello", 10, "utf8").then((x: number) => {}); + { const a: number = fd.writeSync(10, "hello", 10, "utf8"); } + fd.sync(10).then(() => {}); + fd.syncSync(10); + fd.chown(10, 0, 0).then(() => {}); + fd.chownSync(10, 0, 0); + fd.chmod(10, 0o755).then(() => {}); + fd.chmodSync(10, 0o755); + fd.seek(10, 100, 0).then((x: number) => {}); + fd.lock(10, "sh").then(() => {}); + } + + namespace constantsTests { + // ? + const a: number = fs.constants.F_OK; + } + + namespace realpathTests { + fs.realpath("hello").then((x: string) => {}); + fs.realpath("hello", "utf8").then((x: string) => {}); + fs.realpath("hello", "buffer").then((x: Buffer) => {}); + fs.realpath("hello", { encoding: "buffer" }).then((x: Buffer) => {}); + fs.realpath("hello", { encoding: "utf8" }).then((x: string) => {}); + fs.realpath("hello", {}).then((x: string) => {}); + fs.realpath(Buffer.from("hello")).then((x: string) => {}); + fs.realpath(new URL("file://hello")).then((x: string) => {}); + } + + namespace realpathSyncTests { + { const a: string = fs.realpathSync("hello"); } + { const a: string = fs.realpathSync("hello", "utf8"); } + { const a: Buffer = fs.realpathSync("hello", "buffer"); } + { const a: Buffer = fs.realpathSync("hello", { encoding: "buffer" }); } + { const a: string = fs.realpathSync("hello", { encoding: "utf8" }); } + { const a: string = fs.realpathSync("hello", {}); } + { const a: string = fs.realpathSync(Buffer.from("hello")); } + { const a: string = fs.realpathSync(new URL("file://hello")); } + } + + namespace readFileTests { + fs.readFile("hello").then((x: Buffer) => {}); + fs.readFile(Buffer.from("hello")).then((x: Buffer) => {}); + fs.readFile(new URL("file://hello")).then((x: Buffer) => {}); + fs.readFile("hello", "utf8").then((x: string) => {}); + fs.readFile("hello", null).then((x: Buffer) => {}); + fs.readFile("hello", {}).then((x: Buffer) => {}); + fs.readFile("hello", { check: true }).then((x: null | Buffer) => {}); + fs.readFile("hello", { check: true, encoding: "utf8" }).then((x: null | string) => {}); + fs.readFile("hello", { encoding: "utf8" }).then((x: string) => {}); + fs.readFile("hello", { encoding: null }).then((x: Buffer) => {}); + fs.readFile("hello", { flags: "r+" }).then((x: Buffer) => {}); + } + + namespace readFileSyncTests { + { const a: Buffer = fs.readFileSync("hello"); } + { const a: Buffer = fs.readFileSync(Buffer.from("hello")); } + { const a: Buffer = fs.readFileSync(new URL("file://hello")); } + { const a: string = fs.readFileSync("hello", "utf8"); } + { const a: Buffer = fs.readFileSync("hello", null); } + { const a: Buffer = fs.readFileSync("hello", {}); } + { const a: null | Buffer = fs.readFileSync("hello", { check: true }); } + { const a: null | string = fs.readFileSync("hello", { check: true, encoding: "utf8" }); } + { const a: string = fs.readFileSync("hello", { encoding: "utf8" }); } + { const a: Buffer = fs.readFileSync("hello", { encoding: null }); } + { const a: Buffer = fs.readFileSync("hello", { flags: "r+" }); } + } + + namespace readLinesTests { + fs.readLines("hello").then((x: string[]) => {}); + fs.readLines(Buffer.from("hello")).then((x: string[]) => {}); + fs.readLines(new URL("file://hello")).then((x: string[]) => {}); + fs.readLines("hello", "utf8").then((x: string[]) => {}); + fs.readLines("hello", null).then((x: string[]) => {}); + fs.readLines("hello", {}).then((x: string[]) => {}); + fs.readLines("hello", { check: true }).then((x: null | string[]) => {}); + fs.readLines("hello", { encoding: "utf8" }).then((x: null | string[]) => {}); + fs.readLines("hello", { encoding: null }).then((x: null | string[]) => {}); + fs.readLines("hello", { flags: "r+" }).then((x: null | string[]) => {}); + } + + namespace readLinesSyncTests { + { const a: string[] = fs.readLinesSync("hello"); } + { const a: string[] = fs.readLinesSync(Buffer.from("hello")); } + { const a: string[] = fs.readLinesSync(new URL("file://hello")); } + { const a: string[] = fs.readLinesSync("hello", "utf8"); } + { const a: string[] = fs.readLinesSync("hello", null); } + { const a: string[] = fs.readLinesSync("hello", {}); } + { const a: null | string[] = fs.readLinesSync("hello", { check: true }); } + { const a: string[] = fs.readLinesSync("hello", { encoding: "utf8" }); } + { const a: string[] = fs.readLinesSync("hello", { encoding: null }); } + { const a: string[] = fs.readLinesSync("hello", { flags: "r+" }); } + } + + namespace readWordsTests { + fs.readWords("hello").then((x: string[]) => {}); + fs.readWords(Buffer.from("hello")).then((x: string[]) => {}); + fs.readWords(new URL("file://hello")).then((x: string[]) => {}); + fs.readWords("hello", "utf8").then((x: string[]) => {}); + fs.readWords("hello", null).then((x: string[]) => {}); + fs.readWords("hello", {}).then((x: string[]) => {}); + fs.readWords("hello", { check: true }).then((x: null | string[]) => {}); + fs.readWords("hello", { encoding: "utf8" }).then((x: null | string[]) => {}); + fs.readWords("hello", { encoding: null }).then((x: null | string[]) => {}); + fs.readWords("hello", { flags: "r+" }).then((x: null | string[]) => {}); + } + + namespace readWordsSyncTests { + { const a: string[] = fs.readWordsSync("hello"); } + { const a: string[] = fs.readWordsSync(Buffer.from("hello")); } + { const a: string[] = fs.readWordsSync(new URL("file://hello")); } + { const a: string[] = fs.readWordsSync("hello", "utf8"); } + { const a: string[] = fs.readWordsSync("hello", null); } + { const a: string[] = fs.readWordsSync("hello", {}); } + { const a: null | string[] = fs.readWordsSync("hello", { check: true }); } + { const a: string[] = fs.readWordsSync("hello", { encoding: "utf8" }); } + { const a: string[] = fs.readWordsSync("hello", { encoding: null }); } + { const a: string[] = fs.readWordsSync("hello", { flags: "r+" }); } + } + + namespace existsTests { + fs.exists("hello").then((x: boolean) => {}); + fs.exists(Buffer.from("hello")).then((x: boolean) => {}); + fs.exists(new URL("file://hello")).then((x: boolean) => {}); + } + + namespace existsSyncTests { + { const a: boolean = fs.existsSync("hello"); } + { const a: boolean = fs.existsSync(Buffer.from("hello")); } + { const a: boolean = fs.existsSync(new URL("file://hello")); } + } + + namespace mkdirTests { + fs.mkdir("/path/to/some/dir").then(() => {}); + fs.mkdir("/path/to/some/dir", 0o755).then(() => {}); + } + + namespace copyTests { + fs.copy("a", "b").then(() => {}); + fs.copy("a", "b", {}).then(() => {}); + fs.copy("a", "b", { cwd: "/tmp" }).then(() => {}); + fs.copy("a", "b", { ignoreExisting: true }).then(() => {}); + } + + namespace renameTests { + fs.rename("a", "b").then(() => {}); + fs.rename("a", "b", {}).then(() => {}); + fs.rename("a", "b", { delay: 100 }).then(() => {}); + fs.rename("a", "b", { retries: 100 }).then(() => {}); + } + + namespace tailTests { + fs.tail("file", 10).then((x: Buffer[]) => {}); + fs.tail("file", 10, {}).then((x: Buffer[]) => {}); + fs.tail("file", 10, { separator: "\n" }).then((x: Buffer[]) => {}); + fs.tail("file", 10, { chunkLength: 4096 }).then((x: Buffer[]) => {}); + } + + namespace statVFSTests { + fs.statVFS("/tmp").then((x) => { + { const a: number = x.f_namemax; } + { const a: number = x.f_bsize; } + { const a: number = x.f_frsize; } + { const a: number = x.f_blocks; } + { const a: number = x.f_bavail; } + { const a: number = x.f_bfree; } + { const a: number = x.f_files; } + { const a: number = x.f_favail; } + { const a: number = x.f_ffree; } + }); + } + + namespace createReadStreamTests { + fs.createReadStream("file").on("data", (chunk) => {}); + fs.createReadStream(Buffer.from("file")).on("data", (chunk) => {}); + fs.createReadStream(new URL("file://file")).on("data", (chunk) => {}); + fs.createReadStream("file", null).on("data", (chunk) => {}); + fs.createReadStream("file", "utf8").on("data", (chunk) => {}); + fs.createReadStream("file", { encoding: "usc2" }).on("data", (chunk) => {}); + fs.createReadStream("file", { encoding: null }).on("data", (chunk) => {}); + fs.createReadStream("file", { flags: "r+" }).on("data", (chunk) => {}); + fs.createReadStream(null, { fd: 10, autoClose: false }).on("data", (chunk) => {}); + fs.createReadStream(undefined, { fd: 10 }).on("data", (chunk) => {}); + fs.createReadStream(null, { fd: 10 }).on("data", (chunk) => {}); + fs.createReadStream("file", { mode: 0o666 }).on("data", (chunk) => {}); + fs.createReadStream("file", { start: 100 }).on("data", (chunk) => {}); + fs.createReadStream("file", { end: 110 }).on("data", (chunk) => {}); + } + + namespace createWriteStreamTests { + fs.createWriteStream("file").on("data", (chunk) => {}); + fs.createWriteStream(Buffer.from("file")).on("data", (chunk) => {}); + fs.createWriteStream(new URL("file://file")).on("data", (chunk) => {}); + fs.createWriteStream("file", null).on("data", (chunk) => {}); + fs.createWriteStream("file", "utf8").on("data", (chunk) => {}); + fs.createWriteStream("file", { defaultEncoding: "usc2" }).on("data", (chunk) => {}); + fs.createWriteStream("file", { defaultEncoding: null }).on("data", (chunk) => {}); + fs.createWriteStream("file", { flags: "r+" }).on("data", (chunk) => {}); + fs.createWriteStream(null, { fd: 10, autoClose: false }).on("data", (chunk) => {}); + fs.createWriteStream(undefined, { fd: 10 }).on("data", (chunk) => {}); + fs.createWriteStream(null, { fd: 10 }).on("data", (chunk) => {}); + fs.createWriteStream("file", { mode: 0o666 }).on("data", (chunk) => {}); + fs.createWriteStream("file", { start: 100 }).on("data", (chunk) => {}); + } + + namespace tmpNameTests { + fs.tmpName().then((x: string) => {}); + fs.tmpName({}).then((x: string) => {}); + fs.tmpName({ dir: "/" }).then((x: string) => {}); + fs.tmpName({ ext: ".exe" }).then((x: string) => {}); + fs.tmpName({ name: "ad" }).then((x: string) => {}); + fs.tmpName({ prefix: "/tmp/tmp-" }).then((x: string) => {}); + fs.tmpName({ template: /XXX/ }).then((x: string) => {}); + fs.tmpName({ tries: 100 }).then((x: string) => {}); + } + + namespace homeDirTests { + const a: string = fs.homeDir(); + } + + namespace lookupTests { + // TODO + } + + namespace chownrTests { + fs.chownr("hello", 1000, 1000).then(() => {}); + } + + namespace TailWatcherTests { + new fs.TailWatcher("file"); + new fs.TailWatcher("file", {}); + new fs.TailWatcher("file", { encoding: "utf8" }); + new fs.TailWatcher("file", { follow: true }); + new fs.TailWatcher("file", { fromBeginning: true }); + new fs.TailWatcher("file", { fsWatchOptions: {} }); + new fs.TailWatcher("file", { pos: 100 }); + new fs.TailWatcher("file", { separator: "\n" }); + new fs.TailWatcher("file", { separator: /\n/ }); + new fs.TailWatcher("file", { useWatchFile: true }); + const tw = new fs.TailWatcher("file"); + tw.unwatch(); + tw.on("line", (line: string) => { + }); + } + + namespace watchTailTests { + const tw: adone.fs.TailWatcher = fs.watchTail("file"); + fs.watchTail("file", {}); + fs.watchTail("file", { encoding: "utf8" }); + fs.watchTail("file", { follow: true }); + fs.watchTail("file", { fromBeginning: true }); + fs.watchTail("file", { fsWatchOptions: {} }); + fs.watchTail("file", { pos: 100 }); + fs.watchTail("file", { separator: "\n" }); + fs.watchTail("file", { separator: /\n/ }); + fs.watchTail("file", { useWatchFile: true }); + } +} diff --git a/types/adone/test/glosses/is.ts b/types/adone/test/glosses/is.ts new file mode 100644 index 0000000000..2734824822 --- /dev/null +++ b/types/adone/test/glosses/is.ts @@ -0,0 +1,115 @@ +namespace isTests { + { const a: boolean = adone.is.null({}); } + { const a: boolean = adone.is.undefined({}); } + { const a: boolean = adone.is.exist({}); } + { const a: boolean = adone.is.nil({}); } + { const a: boolean = adone.is.number({}); } + { const a: boolean = adone.is.numeral({}); } + { const a: boolean = adone.is.infinite({}); } + { const a: boolean = adone.is.odd({}); } + { const a: boolean = adone.is.even({}); } + { const a: boolean = adone.is.float({}); } + { const a: boolean = adone.is.negativeZero({}); } + { const a: boolean = adone.is.string({}); } + { const a: boolean = adone.is.emptyString({}); } + { const a: boolean = adone.is.substring("abc", "abcdef"); } + { const a: boolean = adone.is.substring("abc", "abcdef", 0); } + { const a: boolean = adone.is.prefix("abc", "abcdef"); } + { const a: boolean = adone.is.suffix("def", "abbdef"); } + { const a: boolean = adone.is.boolean({}); } + { const a: boolean = adone.is.json({}); } + { const a: boolean = adone.is.object({}); } + { const a: boolean = adone.is.plainObject({}); } + { const a: boolean = adone.is.class({}); } + { const a: boolean = adone.is.emptyObject({}); } + { const a: boolean = adone.is.propertyOwned({}, "a"); } + { const a: boolean = adone.is.propertyDefined({}, "a"); } + { const a: boolean = adone.is.conforms({}, {}); } + { const a: boolean = adone.is.conforms({}, {}, true); } + { const a: boolean = adone.is.arrayLikeObject({}); } + { const a: boolean = adone.is.inArray(1, [1, 2, 3]); } + { const a: boolean = adone.is.inArray(1, [1, 2, 3], 0); } + { const a: boolean = adone.is.inArray(1, [1, 2, 3], 0, (a, b) => a === b); } + { const a: boolean = adone.is.sameType({}, {}); } + { const a: boolean = adone.is.primitive({}); } + { const a: boolean = adone.is.equalArrays([], []); } + { const a: boolean = adone.is.deepEqual({}, {}); } + { const a: boolean = adone.is.shallowEqual({}, {}); } + { const a: boolean = adone.is.stream({}); } + { const a: boolean = adone.is.writableStream({}); } + { const a: boolean = adone.is.readableStream({}); } + { const a: boolean = adone.is.duplexStream({}); } + { const a: boolean = adone.is.transformStream({}); } + { const a: boolean = adone.is.utf8(Buffer.alloc(10)); } + { const a: boolean = adone.is.win32PathAbsolute("abc"); } + { const a: boolean = adone.is.posixPathAbsolute("abc"); } + { const a: boolean = adone.is.pathAbsolute("abc"); } + { const a: boolean = adone.is.glob("abc"); } + { const a: boolean = adone.is.dotfile("abc"); } + { const a: boolean = adone.is.function(() => { }); } + { const a: boolean = adone.is.asyncFunction(async () => { }); } + { const a: boolean = adone.is.promise({}); } + { const a: boolean = adone.is.validDate("07.08.2017"); } + { const a: boolean = adone.is.buffer({}); } + { const a: boolean = adone.is.callback({}); } + { const a: boolean = adone.is.generator({}); } + { const a: boolean = adone.is.nan({}); } + { const a: boolean = adone.is.finite({}); } + { const a: boolean = adone.is.integer({}); } + { const a: boolean = adone.is.safeInteger({}); } + { const a: boolean = adone.is.array({}); } + { const a: boolean = adone.is.uint8Array({}); } + { const a: boolean = adone.is.configuration({}); } + { const a: boolean = adone.is.long({}); } + { const a: boolean = adone.is.bigNumber({}); } + { const a: boolean = adone.is.byteArray({}); } + { const a: boolean = adone.is.datetime({}); } + { const a: boolean = adone.is.transform({}); } + { const a: boolean = adone.is.subsystem({}); } + { const a: boolean = adone.is.application({}); } + { const a: boolean = adone.is.logger({}); } + { const a: boolean = adone.is.coreStream({}); } + { const a: boolean = adone.is.fastStream({}); } + { const a: boolean = adone.is.fastLocalStream({}); } + { const a: boolean = adone.is.fastLocalMapStream({}); } + { const a: boolean = adone.is.genesisNetron({}); } + { const a: boolean = adone.is.genesisPeer({}); } + { const a: boolean = adone.is.netronAdapter({}); } + { const a: boolean = adone.is.netron({}); } + { const a: boolean = adone.is.netronPeer({}); } + { const a: boolean = adone.is.netronDefinition({}); } + { const a: boolean = adone.is.netronDefinitions({}); } + { const a: boolean = adone.is.netronReference({}); } + { const a: boolean = adone.is.netronInterface({}); } + { const a: boolean = adone.is.netronContext({}); } + { const a: boolean = adone.is.netronIMethod({}, "hello"); } + { const a: boolean = adone.is.netronIProperty({}, "hello"); } + { const a: boolean = adone.is.netronStub({}); } + { const a: boolean = adone.is.netronRemoteStub({}); } + { const a: boolean = adone.is.netronStream({}); } + { const a: boolean = adone.is.iterable({}); } + { const a: boolean = adone.is.windows; } + { const a: boolean = adone.is.linux; } + { const a: boolean = adone.is.freebsd; } + { const a: boolean = adone.is.darwin; } + { const a: boolean = adone.is.sunos; } + { const a: boolean = adone.is.uppercase("abc"); } + { const a: boolean = adone.is.lowercase("abc"); } + { const a: boolean = adone.is.digits("012"); } + { const a: boolean = adone.is.identifier("someMethod"); } + { const a: boolean = adone.is.binaryExtension("mp3"); } + { const a: boolean = adone.is.binaryPath("a.mp3"); } + { const a: boolean = adone.is.ip4("192.168.1.1"); } + { const a: boolean = adone.is.ip6("::192.168.1.1"); } + { const a: boolean = adone.is.arrayBuffer({}); } + { const a: boolean = adone.is.arrayBufferView({}); } + { const a: boolean = adone.is.date({}); } + { const a: boolean = adone.is.error({}); } + { const a: boolean = adone.is.map({}); } + { const a: boolean = adone.is.regexp({}); } + { const a: boolean = adone.is.set({}); } + { const a: boolean = adone.is.symbol({}); } + { const a: boolean = adone.is.validUTF8(Buffer.from("hello")); } + { const a: boolean = adone.is.vaultValuable({}); } + { const a: boolean = adone.is.task({}); } +} diff --git a/types/adone/test/glosses/math.ts b/types/adone/test/glosses/math.ts deleted file mode 100644 index 8a9e9bc1cf..0000000000 --- a/types/adone/test/glosses/math.ts +++ /dev/null @@ -1,259 +0,0 @@ -const { math } = adone; - -namespace mathTests { - namespace Long { - new math.Long(); - new math.Long(0); - new math.Long(0, 0); - new math.Long(0, 0, true); - - namespace toInt { - const a: number = new math.Long().toInt(); - } - - namespace toNumber { - const a: number = new math.Long().toNumber(); - } - - namespace toString { - const a: string = new math.Long().toString(); - const b: string = new math.Long().toString(16); - } - - namespace getHighBits { - const a: number = new math.Long().getHighBits(); - } - - namespace getLowBits { - const a: number = new math.Long().getLowBits(); - } - - namespace getLowBitsUnsigned { - const a: number = new math.Long().getLowBitsUnsigned(); - } - - namespace getHighBitsUnsigned { - const a: number = new math.Long().getHighBitsUnsigned(); - } - - namespace getNumBitsAbs { - const a: number = new math.Long().getNumBitsAbs(); - } - - namespace isZero { - const a: boolean = new math.Long().isZero(); - } - - namespace isNegative { - const a: boolean = new math.Long().isNegative(); - } - - namespace isPositive { - const a: boolean = new math.Long().isPositive(); - } - - namespace isOdd { - const a: boolean = new math.Long().isOdd(); - } - - namespace isEven { - const a: boolean = new math.Long().isEven(); - } - - namespace equals { - const a = new math.Long(); - const b: boolean = a.equals(new math.Long()); - const c: boolean = a.equals(1); - const d: boolean = a.equals("1"); - const e: boolean = a.equals({ low: 0, high: 0 }); - } - - namespace lessThan { - const a = new math.Long(); - const b: boolean = a.lessThan(new math.Long()); - const c: boolean = a.lessThan(1); - const d: boolean = a.lessThan("1"); - const e: boolean = a.lessThan({ low: 0, high: 0 }); - } - - namespace lessThanOrEqual { - const a = new math.Long(); - const b: boolean = a.lessThanOrEqual(new math.Long()); - const c: boolean = a.lessThanOrEqual(1); - const d: boolean = a.lessThanOrEqual("1"); - const e: boolean = a.lessThanOrEqual({ low: 0, high: 0 }); - } - - namespace greaterThan { - const a = new math.Long(); - const b: boolean = a.greaterThan(new math.Long()); - const c: boolean = a.greaterThan(1); - const d: boolean = a.greaterThan("1"); - const e: boolean = a.greaterThan({ low: 0, high: 0 }); - } - - namespace greaterThanOrEqual { - const a = new math.Long(); - const b: boolean = a.greaterThanOrEqual(new math.Long()); - const c: boolean = a.greaterThanOrEqual(1); - const d: boolean = a.greaterThanOrEqual("1"); - const e: boolean = a.greaterThanOrEqual({ low: 0, high: 0 }); - } - - namespace greaterThanOrEqual { - const a = new math.Long(); - const b: number = a.compare(new math.Long()); - const c: number = a.compare(1); - const d: number = a.compare("1"); - const e: number = a.compare({ low: 0, high: 0 }); - } - - namespace negate { - const a: adone.math.Long = new math.Long().negate(); - } - - namespace add { - const a = new math.Long(); - const b: adone.math.Long = a.add(new math.Long()); - const c: adone.math.Long = a.add(1); - const d: adone.math.Long = a.add("1"); - const e: adone.math.Long = a.add({ low: 0, high: 0 }); - } - - namespace sub { - const a = new math.Long(); - const b: adone.math.Long = a.sub(new math.Long()); - const c: adone.math.Long = a.sub(1); - const d: adone.math.Long = a.sub("1"); - const e: adone.math.Long = a.sub({ low: 0, high: 0 }); - } - - namespace mul { - const a = new math.Long(); - const b: adone.math.Long = a.mul(new math.Long()); - const c: adone.math.Long = a.mul(1); - const d: adone.math.Long = a.mul("1"); - const e: adone.math.Long = a.mul({ low: 0, high: 0 }); - } - - namespace div { - const a = new math.Long(); - const b: adone.math.Long = a.div(new math.Long()); - const c: adone.math.Long = a.div(1); - const d: adone.math.Long = a.div("1"); - const e: adone.math.Long = a.div({ low: 0, high: 0 }); - } - - namespace mod { - const a = new math.Long(); - const b: adone.math.Long = a.mod(new math.Long()); - const c: adone.math.Long = a.mod(1); - const d: adone.math.Long = a.mod("1"); - const e: adone.math.Long = a.mod({ low: 0, high: 0 }); - } - - namespace not { - const a: adone.math.Long = new math.Long().not(); - } - - namespace and { - const a = new math.Long(); - const b: adone.math.Long = a.and(new math.Long()); - const c: adone.math.Long = a.and(1); - const d: adone.math.Long = a.and("1"); - const e: adone.math.Long = a.and({ low: 0, high: 0 }); - } - - namespace or { - const a = new math.Long(); - const b: adone.math.Long = a.or(new math.Long()); - const c: adone.math.Long = a.or(1); - const d: adone.math.Long = a.or("1"); - const e: adone.math.Long = a.or({ low: 0, high: 0 }); - } - - namespace xor { - const a = new math.Long(); - const b: adone.math.Long = a.xor(new math.Long()); - const c: adone.math.Long = a.xor(1); - const d: adone.math.Long = a.xor("1"); - const e: adone.math.Long = a.xor({ low: 0, high: 0 }); - } - - namespace shl { - const a = new math.Long(); - const b: adone.math.Long = a.shl(new math.Long()); - const c: adone.math.Long = a.shl(1); - } - - namespace shr { - const a = new math.Long(); - const b: adone.math.Long = a.shr(new math.Long()); - const c: adone.math.Long = a.shr(1); - } - - namespace shru { - const a = new math.Long(); - const b: adone.math.Long = a.shr(new math.Long()); - const c: adone.math.Long = a.shr(1); - } - - namespace toSigned { - const a: adone.math.Long = new math.Long().toSigned(); - } - - namespace toUnsigned { - const a: adone.math.Long = new math.Long().toUnsigned(); - } - - namespace toBytes { - const a: number[] = new math.Long().toBytes(); - } - - namespace toBytesLE { - const a: number[] = new math.Long().toBytesLE(); - } - - namespace static { - namespace fromInt { - const a: adone.math.Long = math.Long.fromInt(123); - const b: adone.math.Long = math.Long.fromInt(123, true); - } - - namespace fromNumber { - const a: adone.math.Long = math.Long.fromNumber(123); - const b: adone.math.Long = math.Long.fromNumber(123, true); - } - - namespace fromBits { - const a: adone.math.Long = math.Long.fromBits(0, 0); - const b: adone.math.Long = math.Long.fromBits(123, 0, true); - } - - namespace fromString { - const a: adone.math.Long = math.Long.fromString("123"); - const b: adone.math.Long = math.Long.fromString("123", true); - const c: adone.math.Long = math.Long.fromString("123", 16); - const d: adone.math.Long = math.Long.fromString("123", true, 16); - } - - namespace fromValue { - const a: adone.math.Long = math.Long.fromValue(new math.Long()); - const b: adone.math.Long = math.Long.fromValue(1); - const c: adone.math.Long = math.Long.fromValue("1"); - const e: adone.math.Long = math.Long.fromValue({ low: 0, high: 0 }); - } - - namespace constants { - const a: adone.math.Long = math.Long.MIN_VALUE; - const b: adone.math.Long = math.Long.MAX_VALUE; - const c: adone.math.Long = math.Long.MAX_UNSIGNED_VALUE; - const d: adone.math.Long = math.Long.ZERO; - const e: adone.math.Long = math.Long.UZERO; - const f: adone.math.Long = math.Long.ONE; - const g: adone.math.Long = math.Long.UONE; - const h: adone.math.Long = math.Long.NEG_ONE; - } - } - } -} diff --git a/types/adone/test/glosses/math/index.ts b/types/adone/test/glosses/math/index.ts new file mode 100644 index 0000000000..928977fad9 --- /dev/null +++ b/types/adone/test/glosses/math/index.ts @@ -0,0 +1,474 @@ +namespace mathTests { + const { math } = adone; + + namespace LongTests { + new math.Long(); + new math.Long(0); + new math.Long(0, 0); + new math.Long(0, 0, true); + + namespace toInt { + const a: number = new math.Long().toInt(); + } + + namespace toNumber { + const a: number = new math.Long().toNumber(); + } + + namespace toString { + const a: string = new math.Long().toString(); + const b: string = new math.Long().toString(16); + } + + namespace getHighBits { + const a: number = new math.Long().getHighBits(); + } + + namespace getLowBits { + const a: number = new math.Long().getLowBits(); + } + + namespace getLowBitsUnsigned { + const a: number = new math.Long().getLowBitsUnsigned(); + } + + namespace getHighBitsUnsigned { + const a: number = new math.Long().getHighBitsUnsigned(); + } + + namespace getNumBitsAbs { + const a: number = new math.Long().getNumBitsAbs(); + } + + namespace isZero { + const a: boolean = new math.Long().isZero(); + } + + namespace isNegative { + const a: boolean = new math.Long().isNegative(); + } + + namespace isPositive { + const a: boolean = new math.Long().isPositive(); + } + + namespace isOdd { + const a: boolean = new math.Long().isOdd(); + } + + namespace isEven { + const a: boolean = new math.Long().isEven(); + } + + namespace equals { + const a = new math.Long(); + const b: boolean = a.equals(new math.Long()); + const c: boolean = a.equals(1); + const d: boolean = a.equals("1"); + const e: boolean = a.equals({ low: 0, high: 0 }); + } + + namespace lessThan { + const a = new math.Long(); + const b: boolean = a.lessThan(new math.Long()); + const c: boolean = a.lessThan(1); + const d: boolean = a.lessThan("1"); + const e: boolean = a.lessThan({ low: 0, high: 0 }); + } + + namespace lessThanOrEqual { + const a = new math.Long(); + const b: boolean = a.lessThanOrEqual(new math.Long()); + const c: boolean = a.lessThanOrEqual(1); + const d: boolean = a.lessThanOrEqual("1"); + const e: boolean = a.lessThanOrEqual({ low: 0, high: 0 }); + } + + namespace greaterThan { + const a = new math.Long(); + const b: boolean = a.greaterThan(new math.Long()); + const c: boolean = a.greaterThan(1); + const d: boolean = a.greaterThan("1"); + const e: boolean = a.greaterThan({ low: 0, high: 0 }); + } + + namespace greaterThanOrEqual { + const a = new math.Long(); + const b: boolean = a.greaterThanOrEqual(new math.Long()); + const c: boolean = a.greaterThanOrEqual(1); + const d: boolean = a.greaterThanOrEqual("1"); + const e: boolean = a.greaterThanOrEqual({ low: 0, high: 0 }); + } + + namespace compareTests { + const a = new math.Long(); + const b: number = a.compare(new math.Long()); + const c: number = a.compare(1); + const d: number = a.compare("1"); + const e: number = a.compare({ low: 0, high: 0 }); + } + + namespace negate { + const a: adone.math.Long = new math.Long().negate(); + } + + namespace add { + const a = new math.Long(); + const b: adone.math.Long = a.add(new math.Long()); + const c: adone.math.Long = a.add(1); + const d: adone.math.Long = a.add("1"); + const e: adone.math.Long = a.add({ low: 0, high: 0 }); + } + + namespace sub { + const a = new math.Long(); + const b: adone.math.Long = a.sub(new math.Long()); + const c: adone.math.Long = a.sub(1); + const d: adone.math.Long = a.sub("1"); + const e: adone.math.Long = a.sub({ low: 0, high: 0 }); + } + + namespace mul { + const a = new math.Long(); + const b: adone.math.Long = a.mul(new math.Long()); + const c: adone.math.Long = a.mul(1); + const d: adone.math.Long = a.mul("1"); + const e: adone.math.Long = a.mul({ low: 0, high: 0 }); + } + + namespace div { + const a = new math.Long(); + const b: adone.math.Long = a.div(new math.Long()); + const c: adone.math.Long = a.div(1); + const d: adone.math.Long = a.div("1"); + const e: adone.math.Long = a.div({ low: 0, high: 0 }); + } + + namespace mod { + const a = new math.Long(); + const b: adone.math.Long = a.mod(new math.Long()); + const c: adone.math.Long = a.mod(1); + const d: adone.math.Long = a.mod("1"); + const e: adone.math.Long = a.mod({ low: 0, high: 0 }); + } + + namespace not { + const a: adone.math.Long = new math.Long().not(); + } + + namespace and { + const a = new math.Long(); + const b: adone.math.Long = a.and(new math.Long()); + const c: adone.math.Long = a.and(1); + const d: adone.math.Long = a.and("1"); + const e: adone.math.Long = a.and({ low: 0, high: 0 }); + } + + namespace or { + const a = new math.Long(); + const b: adone.math.Long = a.or(new math.Long()); + const c: adone.math.Long = a.or(1); + const d: adone.math.Long = a.or("1"); + const e: adone.math.Long = a.or({ low: 0, high: 0 }); + } + + namespace xor { + const a = new math.Long(); + const b: adone.math.Long = a.xor(new math.Long()); + const c: adone.math.Long = a.xor(1); + const d: adone.math.Long = a.xor("1"); + const e: adone.math.Long = a.xor({ low: 0, high: 0 }); + } + + namespace shl { + const a = new math.Long(); + const b: adone.math.Long = a.shl(new math.Long()); + const c: adone.math.Long = a.shl(1); + } + + namespace shr { + const a = new math.Long(); + const b: adone.math.Long = a.shr(new math.Long()); + const c: adone.math.Long = a.shr(1); + } + + namespace shru { + const a = new math.Long(); + const b: adone.math.Long = a.shr(new math.Long()); + const c: adone.math.Long = a.shr(1); + } + + namespace toSigned { + const a: adone.math.Long = new math.Long().toSigned(); + } + + namespace toUnsigned { + const a: adone.math.Long = new math.Long().toUnsigned(); + } + + namespace toBytes { + const a: number[] = new math.Long().toBytes(); + } + + namespace toBytesLE { + const a: number[] = new math.Long().toBytesLE(); + } + + namespace static { + namespace fromInt { + const a: adone.math.Long = math.Long.fromInt(123); + const b: adone.math.Long = math.Long.fromInt(123, true); + } + + namespace fromNumber { + const a: adone.math.Long = math.Long.fromNumber(123); + const b: adone.math.Long = math.Long.fromNumber(123, true); + } + + namespace fromBits { + const a: adone.math.Long = math.Long.fromBits(0, 0); + const b: adone.math.Long = math.Long.fromBits(123, 0, true); + } + + namespace fromString { + const a: adone.math.Long = math.Long.fromString("123"); + const b: adone.math.Long = math.Long.fromString("123", true); + const c: adone.math.Long = math.Long.fromString("123", 16); + const d: adone.math.Long = math.Long.fromString("123", true, 16); + } + + namespace fromValue { + const a: adone.math.Long = math.Long.fromValue(new math.Long()); + const b: adone.math.Long = math.Long.fromValue(1); + const c: adone.math.Long = math.Long.fromValue("1"); + const e: adone.math.Long = math.Long.fromValue({ low: 0, high: 0 }); + } + + namespace constants { + const a: adone.math.Long = math.Long.MIN_VALUE; + const b: adone.math.Long = math.Long.MAX_VALUE; + const c: adone.math.Long = math.Long.MAX_UNSIGNED_VALUE; + const d: adone.math.Long = math.Long.ZERO; + const e: adone.math.Long = math.Long.UZERO; + const f: adone.math.Long = math.Long.ONE; + const g: adone.math.Long = math.Long.UONE; + const h: adone.math.Long = math.Long.NEG_ONE; + } + } + } + + namespace BigNumberTests { + const { BigNumber } = math; + type BigNumber = adone.math.BigNumber; + + new BigNumber(10); + new BigNumber("10"); + new BigNumber(new BigNumber(10)); + new BigNumber("10", 2); + + { const a: string = new BigNumber(1).toString(); } + { const a: string = new BigNumber(1).toString(2); } + + { const a: number = new BigNumber(1).toNumber(); } + + { const a: Buffer = new BigNumber(1).toBuffer(); } + { const a: Buffer = new BigNumber(1).toBuffer({}); } + { const a: Buffer = new BigNumber(1).toBuffer({ endian: 1 }); } + { const a: Buffer = new BigNumber(1).toBuffer({ endian: -1 }); } + { const a: Buffer = new BigNumber(1).toBuffer({ endian: "big" }); } + { const a: Buffer = new BigNumber(1).toBuffer({ endian: "little" }); } + { const a: Buffer = new BigNumber(1).toBuffer({ size: 1 }); } + { const a: Buffer = new BigNumber(1).toBuffer({ size: "auto" }); } + + { const a: BigNumber = new BigNumber(10).add(1); } + { const a: BigNumber = new BigNumber(10).add("1"); } + { const a: BigNumber = new BigNumber(10).add(new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).sub(1); } + { const a: BigNumber = new BigNumber(10).sub("1"); } + { const a: BigNumber = new BigNumber(10).sub(new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).mul(1); } + { const a: BigNumber = new BigNumber(10).mul("1"); } + { const a: BigNumber = new BigNumber(10).mul(new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).div(1); } + { const a: BigNumber = new BigNumber(10).div("1"); } + { const a: BigNumber = new BigNumber(10).div(new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).abs(); } + + { const a: BigNumber = new BigNumber(10).neg(); } + + { const a: number = new BigNumber(10).cmp(1); } + { const a: number = new BigNumber(10).cmp("1"); } + { const a: number = new BigNumber(10).cmp(new BigNumber(1)); } + + { const a: boolean = new BigNumber(10).gt(1); } + { const a: boolean = new BigNumber(10).gt("1"); } + { const a: boolean = new BigNumber(10).gt(new BigNumber(10)); } + + { const a: boolean = new BigNumber(10).ge(1); } + { const a: boolean = new BigNumber(10).ge("1"); } + { const a: boolean = new BigNumber(10).ge(new BigNumber(10)); } + + { const a: boolean = new BigNumber(10).eq(1); } + { const a: boolean = new BigNumber(10).eq("1"); } + { const a: boolean = new BigNumber(10).eq(new BigNumber(10)); } + + { const a: boolean = new BigNumber(10).lt(1); } + { const a: boolean = new BigNumber(10).lt("1"); } + { const a: boolean = new BigNumber(10).lt(new BigNumber(10)); } + + { const a: boolean = new BigNumber(10).le(1); } + { const a: boolean = new BigNumber(10).le("1"); } + { const a: boolean = new BigNumber(10).le(new BigNumber(10)); } + + { const a: BigNumber = new BigNumber(10).and(1); } + { const a: BigNumber = new BigNumber(10).and("1"); } + { const a: BigNumber = new BigNumber(10).and(new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).or(1); } + { const a: BigNumber = new BigNumber(10).or("1"); } + { const a: BigNumber = new BigNumber(10).or(new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).xor(1); } + { const a: BigNumber = new BigNumber(10).xor("1"); } + { const a: BigNumber = new BigNumber(10).xor(new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).mod(1); } + { const a: BigNumber = new BigNumber(10).mod("1"); } + { const a: BigNumber = new BigNumber(10).mod(new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).pow(1); } + { const a: BigNumber = new BigNumber(10).pow("1"); } + { const a: BigNumber = new BigNumber(10).pow(new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).powm(1, 1); } + { const a: BigNumber = new BigNumber(10).powm("1", 1); } + { const a: BigNumber = new BigNumber(10).powm(new BigNumber(1), 1); } + { const a: BigNumber = new BigNumber(10).powm(1, "1"); } + { const a: BigNumber = new BigNumber(10).powm("1", "1"); } + { const a: BigNumber = new BigNumber(10).powm(new BigNumber(1), "1"); } + { const a: BigNumber = new BigNumber(10).powm(1, new BigNumber(1)); } + { const a: BigNumber = new BigNumber(10).powm("1", new BigNumber(1)); } + { const a: BigNumber = new BigNumber(10).powm(new BigNumber(1), new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).invertm(1); } + { const a: BigNumber = new BigNumber(10).invertm("1"); } + { const a: BigNumber = new BigNumber(10).invertm(new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).rand(); } + { const a: BigNumber = new BigNumber(10).rand(1); } + { const a: BigNumber = new BigNumber(10).rand("1"); } + { const a: BigNumber = new BigNumber(10).rand(new BigNumber(1)); } + + { const a: boolean | "maybe" = new BigNumber(10).probPrime(); } + + { const a: BigNumber = new BigNumber(10).nextPrime(); } + + { const a: BigNumber = new BigNumber(10).sqrt(); } + + { const a: BigNumber = new BigNumber(10).root(1); } + { const a: BigNumber = new BigNumber(10).root("1"); } + { const a: BigNumber = new BigNumber(10).root(new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).shiftLeft(1); } + { const a: BigNumber = new BigNumber(10).shiftLeft("1"); } + { const a: BigNumber = new BigNumber(10).shiftLeft(new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).shiftRight(1); } + { const a: BigNumber = new BigNumber(10).shiftRight("1"); } + { const a: BigNumber = new BigNumber(10).shiftRight(new BigNumber(1)); } + + { const a: BigNumber = new BigNumber(10).gcd(1); } + { const a: BigNumber = new BigNumber(10).gcd("1"); } + { const a: BigNumber = new BigNumber(10).gcd(new BigNumber(1)); } + + { const a: number = new BigNumber(10).jacobi(1); } + { const a: number = new BigNumber(10).jacobi("1"); } + { const a: number = new BigNumber(10).jacobi(new BigNumber(1)); } + + { const a: number = new BigNumber(10).bitLength(); } + + { const a: boolean = new BigNumber(10).isBitSet(10); } + + { const a: BigNumber = BigNumber.prime(10); } + { const a: BigNumber = BigNumber.prime(10, true); } + + { const a: BigNumber = BigNumber.fromBuffer(Buffer.alloc(10)); } + { const a: BigNumber = BigNumber.fromBuffer(Buffer.alloc(10), { endian: "little" }); } + { const a: BigNumber = BigNumber.fromBuffer(Buffer.alloc(10), { endian: -1 }); } + { const a: BigNumber = BigNumber.fromBuffer(Buffer.alloc(10), { endian: 1 }); } + { const a: BigNumber = BigNumber.fromBuffer(Buffer.alloc(10), { endian: "big" }); } + { const a: BigNumber = BigNumber.fromBuffer(Buffer.alloc(10), { size: "auto" }); } + + { const a: BigNumber = BigNumber.ONE; } + { const a: BigNumber = BigNumber.ZERO; } + } + + namespace bitSetTests { + const { BitSet } = math; + type BitSet = adone.math.BitSet; + + new BitSet(10); + new BitSet(new BitSet(10).dehydrate()); + + { const a: boolean = new BitSet(10).get(0); } + { const a: boolean = new BitSet(10).set(0); } + { const a: boolean = new BitSet(10).setRange(0, 10); } + { const a: boolean = new BitSet(10).unset(0); } + { const a: boolean = new BitSet(10).unsetRange(0, 10); } + { const a: boolean = new BitSet(10).toggle(0); } + { const a: boolean = new BitSet(10).toggleRange(0, 10); } + { const a: boolean = new BitSet(10).clear(); } + { const a: BitSet = new BitSet(10).clone(); } + { const a: string = new BitSet(10).dehydrate(); } + + { const a: BitSet = new BitSet(10).and(1); } + { const a: BitSet = new BitSet(10).and(new BitSet(10)); } + + { const a: BitSet = new BitSet(10).or(1); } + { const a: BitSet = new BitSet(10).or(new BitSet(10)); } + + { const a: BitSet = new BitSet(10).xor(1); } + { const a: BitSet = new BitSet(10).xor(new BitSet(10)); } + + new BitSet(10).forEach((x: number) => {}); + new BitSet(10).forEach((x: number) => false); + + { const a: BitSet = new BitSet(10).circularShift(10); } + { const a: number = new BitSet(10).getCardinality(); } + { const a: number[] = new BitSet(10).getIndices(); } + { const a: boolean = new BitSet(10).isSubsetOf(new BitSet(10)); } + { const a: boolean = new BitSet(10).isEmpty(); } + { const a: boolean = new BitSet(10).isEqual(new BitSet(10)); } + { const a: string = new BitSet(10).toString(); } + { const a: number = new BitSet(10).ffs(); } + { const a: number = new BitSet(10).ffs(1); } + { const a: number = new BitSet(10).ffz(); } + { const a: number = new BitSet(10).ffz(1); } + { const a: number = new BitSet(10).fls(); } + { const a: number = new BitSet(10).fls(1); } + { const a: number = new BitSet(10).flz(); } + { const a: number = new BitSet(10).flz(1); } + { const a: number = new BitSet(10).nextSetBit(1); } + { const a: number = new BitSet(10).nextUnsetBit(1); } + { const a: number = new BitSet(10).previousSetBit(1); } + { const a: number = new BitSet(10).previousUnsetBit(1); } + { const a: number = new BitSet(10).readUInt(); } + { const a: number = new BitSet(10).readUInt(1); } + { const a: number = new BitSet(10).readUInt(1, 2); } + { new BitSet(10).writeUInt(1); } + { new BitSet(10).writeUInt(1, 2); } + { new BitSet(10).writeUInt(1, 2, 3); } + { const a: BitSet = BitSet.fromLong(new adone.math.Long(10, 20)); } + } + + namespace randomTests { + const { random } = math; + random(); + random(100); + random(0, 10); + } +} diff --git a/types/adone/test/glosses/math/matrix.ts b/types/adone/test/glosses/math/matrix.ts new file mode 100644 index 0000000000..81d2f28da9 --- /dev/null +++ b/types/adone/test/glosses/math/matrix.ts @@ -0,0 +1,368 @@ +namespace mathTests.matrixTests { + const { + vec2, vec3, vec4, + mat2, mat2d, mat3, mat4, + quat + } = adone.math.matrix; + type mat2 = adone.math.matrix.I.mat2; + type mat2d = adone.math.matrix.I.mat2d; + type mat3 = adone.math.matrix.I.mat3; + type mat4 = adone.math.matrix.I.mat4; + + let outVal: number; + let outBool: boolean; + let outStr: string; + + let vecArray = new Float32Array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]); + + const vec2A = vec2.fromValues(1, 2); + const vec2B = vec2.fromValues(3, 4); + const vec3A = vec3.fromValues(1, 2, 3); + const vec3B = vec3.fromValues(3, 4, 5); + const vec4A = vec4.fromValues(1, 2, 3, 4); + const vec4B = vec4.fromValues(3, 4, 5, 6); + const mat2A = mat2.fromValues(1, 2, 3, 4); + const mat2B = mat2.fromValues(1, 2, 3, 4); + const mat2dA = mat2d.fromValues(1, 2, 3, 4, 5, 6); + const mat2dB = mat2d.fromValues(1, 2, 3, 4, 5, 6); + const mat3A = mat3.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9); + const mat3B = mat3.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9); + const mat4A = mat4.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16); + const mat4B = mat4.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16); + const quatA = quat.fromValues(1, 2, 3, 4); + const quatB = quat.fromValues(5, 6, 7, 8); + + let outVec2 = vec2.create(); + let outVec3 = vec3.create(); + let outVec4 = vec4.create(); + let outMat2 = mat2.create(); + let outMat2d = mat2d.create(); + let outMat3 = mat3.create(); + let outMat4 = mat4.create(); + let outQuat = quat.create(); + + let outMat2Null: mat2 | null; + let outMat2dNull: mat2d | null; + let outMat3Null: mat3 | null; + let outMat4Null: mat4 | null; + + { + outVec2 = vec2.create(); + outVec2 = vec2.clone(vec2A); + outVec2 = vec2.fromValues(1, 2); + outVec2 = vec2.copy(outVec2, vec2A); + outVec2 = vec2.set(outVec2, 1, 2); + outVec2 = vec2.add(outVec2, vec2A, vec2B); + outVec2 = vec2.subtract(outVec2, vec2A, vec2B); + outVec2 = vec2.sub(outVec2, vec2A, vec2B); + outVec2 = vec2.multiply(outVec2, vec2A, vec2B); + outVec2 = vec2.mul(outVec2, vec2A, vec2B); + outVec2 = vec2.divide(outVec2, vec2A, vec2B); + outVec2 = vec2.div(outVec2, vec2A, vec2B); + outVec2 = vec2.ceil(outVec2, vec2A); + outVec2 = vec2.floor(outVec2, vec2A); + outVec2 = vec2.min(outVec2, vec2A, vec2B); + outVec2 = vec2.max(outVec2, vec2A, vec2B); + outVec2 = vec2.round(outVec2, vec2A); + outVec2 = vec2.scale(outVec2, vec2A, 2); + outVec2 = vec2.scaleAndAdd(outVec2, vec2A, vec2B, 0.5); + outVal = vec2.distance(vec2A, vec2B); + outVal = vec2.dist(vec2A, vec2B); + outVal = vec2.squaredDistance(vec2A, vec2B); + outVal = vec2.sqrDist(vec2A, vec2B); + outVal = vec2.length(vec2A); + outVal = vec2.len(vec2A); + outVal = vec2.squaredLength(vec2A); + outVal = vec2.sqrLen(vec2A); + outVec2 = vec2.negate(outVec2, vec2A); + outVec2 = vec2.inverse(outVec2, vec2A); + outVec2 = vec2.normalize(outVec2, vec2A); + outVal = vec2.dot(vec2A, vec2B); + outVec2 = vec2.cross(outVec2, vec2A, vec2B); + outVec2 = vec2.lerp(outVec2, vec2A, vec2B, 0.5); + outVec2 = vec2.random(outVec2); + outVec2 = vec2.random(outVec2, 5.0); + outVec2 = vec2.transformMat2(outVec2, vec2A, mat2A); + outVec2 = vec2.transformMat2d(outVec2, vec2A, mat2dA); + outVec2 = vec2.transformMat3(outVec2, vec2A, mat3A); + outVec2 = vec2.transformMat4(outVec2, vec2A, mat4A); + vecArray = vec2.forEach(vecArray, 0, 0, 0, vec2.normalize); + outStr = vec2.str(vec2A); + outBool = vec2.exactEquals(vec2A, vec2B); + outBool = vec2.equals(vec2A, vec2B); + outVec2 = vec2.add(outVec2, [0, 1], [2, 3]); // test one method with number array input + } + + { + outVec3 = vec3.create(); + outVec3 = vec3.clone(vec3A); + outVec3 = vec3.fromValues(1, 2, 3); + outVec3 = vec3.copy(outVec3, vec3A); + outVec3 = vec3.set(outVec3, 1, 2, 3); + outVec3 = vec3.add(outVec3, vec3A, vec3B); + outVec3 = vec3.subtract(outVec3, vec3A, vec3B); + outVec3 = vec3.sub(outVec3, vec3A, vec3B); + outVec3 = vec3.multiply(outVec3, vec3A, vec3B); + outVec3 = vec3.mul(outVec3, vec3A, vec3B); + outVec3 = vec3.divide(outVec3, vec3A, vec3B); + outVec3 = vec3.div(outVec3, vec3A, vec3B); + outVec3 = vec3.ceil(outVec3, vec3A); + outVec3 = vec3.floor(outVec3, vec3A); + outVec3 = vec3.min(outVec3, vec3A, vec3B); + outVec3 = vec3.max(outVec3, vec3A, vec3B); + outVec3 = vec3.round(outVec3, vec3A); + outVec3 = vec3.scale(outVec3, vec3A, 2); + outVec3 = vec3.scaleAndAdd(outVec3, vec3A, vec3B, 0.5); + outVal = vec3.distance(vec3A, vec3B); + outVal = vec3.dist(vec3A, vec3B); + outVal = vec3.squaredDistance(vec3A, vec3B); + outVal = vec3.sqrDist(vec3A, vec3B); + outVal = vec3.length(vec3A); + outVal = vec3.len(vec3A); + outVal = vec3.squaredLength(vec3A); + outVal = vec3.sqrLen(vec3A); + outVec3 = vec3.negate(outVec3, vec3A); + outVec3 = vec3.inverse(outVec3, vec3A); + outVec3 = vec3.normalize(outVec3, vec3A); + outVal = vec3.dot(vec3A, vec3B); + outVec3 = vec3.cross(outVec3, vec3A, vec3B); + outVec3 = vec3.lerp(outVec3, vec3A, vec3B, 0.5); + outVec3 = vec3.hermite(outVec3, vec3A, vec3B, vec3A, vec3B, 0.5); + outVec3 = vec3.bezier(outVec3, vec3A, vec3B, vec3A, vec3B, 0.5); + outVec3 = vec3.random(outVec3); + outVec3 = vec3.random(outVec3, 5.0); + outVec3 = vec3.transformMat3(outVec3, vec3A, mat3A); + outVec3 = vec3.transformMat4(outVec3, vec3A, mat4A); + outVec3 = vec3.transformQuat(outVec3, vec3A, quatA); + outVec3 = vec3.rotateX(outVec3, vec3A, vec3B, Math.PI); + outVec3 = vec3.rotateY(outVec3, vec3A, vec3B, Math.PI); + outVec3 = vec3.rotateZ(outVec3, vec3A, vec3B, Math.PI); + vecArray = vec3.forEach(vecArray, 0, 0, 0, vec3.normalize); + outVal = vec3.angle(vec3A, vec3B); + outStr = vec3.str(vec3A); + outBool = vec3.exactEquals(vec3A, vec3B); + outBool = vec3.equals(vec3A, vec3B); + outVec3 = vec3.add(outVec3, [0, 1, 2], [3, 4, 5]); // test one method with number array input + } + + { + outVec4 = vec4.create(); + outVec4 = vec4.clone(vec4A); + outVec4 = vec4.fromValues(1, 2, 3, 4); + outVec4 = vec4.copy(outVec4, vec4A); + outVec4 = vec4.set(outVec4, 1, 2, 3, 4); + outVec4 = vec4.add(outVec4, vec4A, vec4B); + outVec4 = vec4.subtract(outVec4, vec4A, vec4B); + outVec4 = vec4.sub(outVec4, vec4A, vec4B); + outVec4 = vec4.multiply(outVec4, vec4A, vec4B); + outVec4 = vec4.mul(outVec4, vec4A, vec4B); + outVec4 = vec4.divide(outVec4, vec4A, vec4B); + outVec4 = vec4.div(outVec4, vec4A, vec4B); + outVec4 = vec4.ceil(outVec4, vec4A); + outVec4 = vec4.floor(outVec4, vec4A); + outVec4 = vec4.min(outVec4, vec4A, vec4B); + outVec4 = vec4.max(outVec4, vec4A, vec4B); + outVec4 = vec4.scale(outVec4, vec4A, 2); + outVec4 = vec4.scaleAndAdd(outVec4, vec4A, vec4B, 0.5); + outVal = vec4.distance(vec4A, vec4B); + outVal = vec4.dist(vec4A, vec4B); + outVal = vec4.squaredDistance(vec4A, vec4B); + outVal = vec4.sqrDist(vec4A, vec4B); + outVal = vec4.length(vec4A); + outVal = vec4.len(vec4A); + outVal = vec4.squaredLength(vec4A); + outVal = vec4.sqrLen(vec4A); + outVec4 = vec4.negate(outVec4, vec4A); + outVec4 = vec4.inverse(outVec4, vec4A); + outVec4 = vec4.normalize(outVec4, vec4A); + outVal = vec4.dot(vec4A, vec4B); + outVec4 = vec4.lerp(outVec4, vec4A, vec4B, 0.5); + outVec4 = vec4.random(outVec4); + outVec4 = vec4.random(outVec4, 5.0); + outVec4 = vec4.transformMat4(outVec4, vec4A, mat4A); + outVec4 = vec4.transformQuat(outVec4, vec4A, quatA); + vecArray = vec4.forEach(vecArray, 0, 0, 0, vec4.normalize); + outStr = vec4.str(vec4A); + outBool = vec4.exactEquals(vec4A, vec4B); + outBool = vec4.equals(vec4A, vec4B); + outVec4 = vec4.add(outVec4, [0, 1, 2, 3], [4, 5, 6, 7]); // test one method with number array input + } + + { + outMat2 = mat2.create(); + outMat2 = mat2.clone(mat2A); + outMat2 = mat2.copy(outMat2, mat2A); + outMat2 = mat2.identity(outMat2); + outMat2 = mat2.fromValues(1, 2, 3, 4); + outMat2 = mat2.set(outMat2, 1, 2, 3, 4); + outMat2 = mat2.transpose(outMat2, mat2A); + outMat2Null = mat2.invert(outMat2, mat2A); + outMat2 = mat2.adjoint(outMat2, mat2A); + outVal = mat2.determinant(mat2A); + outMat2 = mat2.multiply(outMat2, mat2A, mat2B); + outMat2 = mat2.mul(outMat2, mat2A, mat2B); + outMat2 = mat2.rotate(outMat2, mat2A, Math.PI * 0.5); + outMat2 = mat2.scale(outMat2, mat2A, vec2A); + outMat2 = mat2.fromRotation(outMat2, 0.5); + outMat2 = mat2.fromScaling(outMat2, vec2A); + outStr = mat2.str(mat2A); + outVal = mat2.frob(mat2A); + const L = mat2.create(); + const D = mat2.create(); + const U = mat2.create(); + outMat2 = mat2.LDU(L, D, U, mat2A); + outMat2 = mat2.add(outMat2, mat2A, mat2B); + outMat2 = mat2.subtract(outMat2, mat2A, mat2B); + outMat2 = mat2.sub(outMat2, mat2A, mat2B); + outBool = mat2.exactEquals(mat2A, mat2B); + outBool = mat2.equals(mat2A, mat2B); + outMat2 = mat2.multiplyScalar(outMat2, mat2A, 2); + outMat2 = mat2.multiplyScalarAndAdd(outMat2, mat2A, mat2B, 2); + } + + { + outMat2d = mat2d.create(); + outMat2d = mat2d.clone(mat2dA); + outMat2d = mat2d.copy(outMat2d, mat2dA); + outMat2d = mat2d.identity(outMat2d); + outMat2d = mat2d.fromValues(1, 2, 3, 4, 5, 6); + outMat2d = mat2d.set(outMat2d, 1, 2, 3, 4, 5, 6); + outMat2dNull = mat2d.invert(outMat2d, mat2dA); + outVal = mat2d.determinant(mat2dA); + outMat2d = mat2d.multiply(outMat2d, mat2dA, mat2dB); + outMat2d = mat2d.mul(outMat2d, mat2dA, mat2dB); + outMat2d = mat2d.rotate(outMat2d, mat2dA, Math.PI * 0.5); + outMat2d = mat2d.scale(outMat2d, mat2dA, vec2A); + outMat2d = mat2d.translate(outMat2d, mat2dA, vec2A); + outMat2d = mat2d.fromRotation(outMat2d, 0.5); + outMat2d = mat2d.fromScaling(outMat2d, vec2A); + outMat2d = mat2d.fromTranslation(outMat2d, vec2A); + outStr = mat2d.str(mat2dA); + outVal = mat2d.frob(mat2dA); + outMat2d = mat2d.add(outMat2d, mat2dA, mat2dB); + outMat2d = mat2d.subtract(outMat2d, mat2dA, mat2dB); + outMat2d = mat2d.sub(outMat2d, mat2dA, mat2dB); + outMat2d = mat2d.multiplyScalar(outMat2d, mat2dA, 2); + outMat2d = mat2d.multiplyScalarAndAdd(outMat2d, mat2dA, mat2dB, 2); + outBool = mat2d.exactEquals(mat2dA, mat2dB); + outBool = mat2d.equals(mat2dA, mat2dB); + } + + { + outMat3 = mat3.create(); + outMat3 = mat3.fromMat4(outMat3, mat4A); + outMat3 = mat3.clone(mat3A); + outMat3 = mat3.copy(outMat3, mat3A); + outMat3 = mat3.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9); + outMat3 = mat3.set(outMat3, 1, 2, 3, 4, 5, 6, 7, 8, 9); + outMat3 = mat3.identity(outMat3); + outMat3 = mat3.transpose(outMat3, mat3A); + outMat3Null = mat3.invert(outMat3, mat3A); + outMat3 = mat3.adjoint(outMat3, mat3A); + outVal = mat3.determinant(mat3A); + outMat3 = mat3.multiply(outMat3, mat3A, mat3B); + outMat3 = mat3.mul(outMat3, mat3A, mat3B); + outMat3 = mat3.translate(outMat3, mat3A, vec3A); + outMat3 = mat3.rotate(outMat3, mat3A, Math.PI / 2); + outMat3 = mat3.scale(outMat3, mat3A, vec2A); + outMat3 = mat3.fromTranslation(outMat3, vec2A); + outMat3 = mat3.fromRotation(outMat3, Math.PI); + outMat3 = mat3.fromScaling(outMat3, vec2A); + outMat3 = mat3.fromMat2d(outMat3, mat2dA); + outMat3 = mat3.fromQuat(outMat3, quatA); + outMat3Null = mat3.normalFromMat4(outMat3, mat4A); + outStr = mat3.str(mat3A); + outVal = mat3.frob(mat3A); + outMat3 = mat3.add(outMat3, mat3A, mat3B); + outMat3 = mat3.subtract(outMat3, mat3A, mat3B); + outMat3 = mat3.sub(outMat3, mat3A, mat3B); + outMat3 = mat3.multiplyScalar(outMat3, mat3A, 2); + outMat3 = mat3.multiplyScalarAndAdd(outMat3, mat3A, mat3B, 2); + outBool = mat3.exactEquals(mat3A, mat3B); + outBool = mat3.equals(mat3A, mat3B); + } + + { + outMat4 = mat4.create(); + outMat4 = mat4.clone(mat4A); + outMat4 = mat4.copy(outMat4, mat4A); + outMat4 = mat4.fromValues(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16); + outMat4 = mat4.set(outMat4, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16); + outMat4 = mat4.identity(outMat4); + outMat4 = mat4.transpose(outMat4, mat4A); + outMat4Null = mat4.invert(outMat4, mat4A); + outMat4 = mat4.adjoint(outMat4, mat4A); + outVal = mat4.determinant(mat4A); + outMat4 = mat4.multiply(outMat4, mat4A, mat4B); + outMat4 = mat4.mul(outMat4, mat4A, mat4B); + outMat4 = mat4.translate(outMat4, mat4A, vec3A); + outMat4 = mat4.scale(outMat4, mat4A, vec3A); + outMat4Null = mat4.rotate(outMat4, mat4A, Math.PI, vec3A); + outMat4 = mat4.rotateX(outMat4, mat4A, Math.PI); + outMat4 = mat4.rotateY(outMat4, mat4A, Math.PI); + outMat4 = mat4.rotateZ(outMat4, mat4A, Math.PI); + outMat4 = mat4.fromTranslation(outMat4, vec3A); + outMat4Null = mat4.fromRotation(outMat4, Math.PI, vec3A); + outMat4 = mat4.fromScaling(outMat4, vec3A); + outMat4 = mat4.fromXRotation(outMat4, Math.PI); + outMat4 = mat4.fromYRotation(outMat4, Math.PI); + outMat4 = mat4.fromZRotation(outMat4, Math.PI); + outMat4 = mat4.fromRotationTranslation(outMat4, quatA, vec3A); + outVec3 = mat4.getTranslation(outVec3, mat4A); + outVec3 = mat4.getScaling(outVec3, mat4A); + outQuat = mat4.getRotation(outQuat, mat4A); + outMat4 = mat4.fromRotationTranslationScale(outMat4, quatA, vec3A, vec3B); + outMat4 = mat4.fromRotationTranslationScaleOrigin(outMat4, quatA, vec3A, vec3B, vec3A); + outMat4 = mat4.fromQuat(outMat4, quatB); + outMat4 = mat4.frustum(outMat4, -1, 1, -1, 1, -1, 1); + outMat4 = mat4.perspective(outMat4, Math.PI, 1, 0, 1); + outMat4 = mat4.perspectiveFromFieldOfView(outMat4, { upDegrees: Math.PI, downDegrees: -Math.PI, leftDegrees: -Math.PI, rightDegrees: Math.PI }, 1, 0); + outMat4 = mat4.ortho(outMat4, -1, 1, -1, 1, -1, 1); + outMat4 = mat4.lookAt(outMat4, vec3A, vec3B, vec3A); + outStr = mat4.str(mat4A); + outVal = mat4.frob(mat4A); + outMat4 = mat4.add(outMat4, mat4A, mat4B); + outMat4 = mat4.subtract(outMat4, mat4A, mat4B); + outMat4 = mat4.sub(outMat4, mat4A, mat4B); + outMat4 = mat4.multiplyScalar(outMat4, mat4A, 2); + outMat4 = mat4.multiplyScalarAndAdd(outMat4, mat4A, mat4B, 2); + outBool = mat4.exactEquals(mat4A, mat4B); + outBool = mat4.equals(mat4A, mat4B); + } + + { + const deg90 = Math.PI / 2; + outQuat = quat.create(); + outQuat = quat.clone(quatA); + outQuat = quat.fromValues(1, 2, 3, 4); + outQuat = quat.copy(outQuat, quatA); + outQuat = quat.set(outQuat, 1, 2, 3, 4); + outQuat = quat.identity(outQuat); + outQuat = quat.rotationTo(outQuat, vec3A, vec3B); + outQuat = quat.setAxes(outQuat, vec3A, vec3B, vec3A); + outQuat = quat.setAxisAngle(outQuat, vec3A, Math.PI * 0.5); + outVal = quat.getAxisAngle(outVec3, quatA); + outQuat = quat.add(outQuat, quatA, quatB); + outQuat = quat.multiply(outQuat, quatA, quatB); + outQuat = quat.mul(outQuat, quatA, quatB); + outQuat = quat.scale(outQuat, quatA, 2); + outVal = quat.length(quatA); + outVal = quat.len(quatA); + outVal = quat.squaredLength(quatA); + outVal = quat.sqrLen(quatA); + outQuat = quat.normalize(outQuat, quatA); + outVal = quat.dot(quatA, quatB); + outQuat = quat.lerp(outQuat, quatA, quatB, 0.5); + outQuat = quat.slerp(outQuat, quatA, quatB, 0.5); + outQuat = quat.invert(outQuat, quatA); + outQuat = quat.conjugate(outQuat, quatA); + outStr = quat.str(quatA); + outQuat = quat.rotateX(outQuat, quatA, deg90); + outQuat = quat.rotateY(outQuat, quatA, deg90); + outQuat = quat.rotateZ(outQuat, quatA, deg90); + outQuat = quat.fromMat3(outQuat, mat3A); + outQuat = quat.calculateW(outQuat, quatA); + outBool = quat.exactEquals(quatA, quatB); + outBool = quat.equals(quatA, quatB); + } +} diff --git a/types/adone/test/glosses/math/simd.ts b/types/adone/test/glosses/math/simd.ts new file mode 100644 index 0000000000..59a6cf03ac --- /dev/null +++ b/types/adone/test/glosses/math/simd.ts @@ -0,0 +1,359 @@ +namespace mathTests.simdTests { + const { + Float32x4, + Int32x4, + Int16x8, + Int8x16, + Uint32x4, + Uint16x8, + Uint8x16, + Bool32x4, + Bool16x8, + Bool8x16 + } = adone.math.simd; + + const a0 = Float32x4(0, 1, 2, 3); + const a1 = Int32x4(0, 1, 2, 3); + const a2 = Int16x8(0, 1, 2, 3, 4, 5, 6, 7); + const a3 = Int8x16(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15); + const a4 = Uint32x4(0, 1, 2, 3); + const a5 = Uint16x8(0, 1, 2, 3, 4, 5, 6, 7); + const a6 = Uint8x16(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15); + const a7 = Bool32x4(true, true, true, true); + const a8 = Bool16x8(true, true, true, true, true, true, true, true); + const a9 = Bool8x16(true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true); + + Float32x4.length; + Float32x4.name; + Float32x4.arguments; + Float32x4.caller; + Float32x4.prototype; + Float32x4.extractLane(a0, 3); + Float32x4.swizzle(a0, 0, 1, 2, 3); + Float32x4.shuffle(a0, a0, 0, 1, 2, 3); + Float32x4.check(a0); + Float32x4.splat(1); + Float32x4.replaceLane(a0, 3, 1); + Float32x4.select(Bool32x4.splat(true), a0, a0); + Float32x4.equal(a0, a0); + Float32x4.notEqual(a0, a0); + Float32x4.lessThan(a0, a0); + Float32x4.lessThanOrEqual(a0, a0); + Float32x4.greaterThan(a0, a0); + Float32x4.greaterThanOrEqual(a0, a0); + Float32x4.add(a0, a0); + Float32x4.sub(a0, a0); + Float32x4.mul(a0, a0); + Float32x4.div(a0, a0); + Float32x4.neg(a0); + Float32x4.abs(a0); + Float32x4.min(a0, a0); + Float32x4.max(a0, a0); + Float32x4.minNum(a0, a0); + Float32x4.maxNum(a0, a0); + Float32x4.reciprocalApproximation(a0, a0); + Float32x4.reciprocalSqrtApproximation(a0); + Float32x4.sqrt(a0); + Float32x4.load(new Float32Array(16), 0); + Float32x4.load1(new Float32Array(16), 0); + Float32x4.load2(new Float32Array(16), 0); + Float32x4.load3(new Float32Array(16), 0); + Float32x4.store(new Float32Array(16), 1, a0); + Float32x4.store1(new Float32Array(16), 1, a0); + Float32x4.store2(new Float32Array(16), 1, a0); + Float32x4.store3(new Float32Array(16), 1, a0); + Float32x4.fromInt32x4(Int32x4.splat(0)); + Float32x4.fromUint32x4(Uint32x4.splat(0)); + Float32x4.fromInt32x4Bits(Int32x4.splat(0)); + Float32x4.fromInt16x8Bits(Int16x8.splat(0)); + Float32x4.fromInt8x16Bits(Int8x16.splat(0)); + Float32x4.fromUint32x4Bits(Uint32x4.splat(0)); + Float32x4.fromUint16x8Bits(Uint16x8.splat(0)); + Float32x4.fromUint8x16Bits(Uint8x16.splat(0)); + Int32x4.length; + Int32x4.name; + Int32x4.arguments; + Int32x4.caller; + Int32x4.prototype; + Int32x4.extractLane(a1, 3); + Int32x4.swizzle(a1, 0, 1, 2, 3); + Int32x4.shuffle(a1, a1, 0, 1, 2, 3); + Int32x4.check(a1); + Int32x4.splat(1); + Int32x4.replaceLane(a1, 3, 1); + Int32x4.select(Bool32x4.splat(true), a1, a1); + Int32x4.equal(a1, a1); + Int32x4.notEqual(a1, a1); + Int32x4.lessThan(a1, a1); + Int32x4.lessThanOrEqual(a1, a1); + Int32x4.greaterThan(a1, a1); + Int32x4.greaterThanOrEqual(a1, a1); + Int32x4.and(a1, a1); + Int32x4.or(a1, a1); + Int32x4.xor(a1, a1); + Int32x4.not(a1, a1); + Int32x4.add(a1, a1); + Int32x4.sub(a1, a1); + Int32x4.mul(a1, a1); + Int32x4.neg(a1); + Int32x4.shiftLeftByScalar(a1, 1); + Int32x4.shiftRightByScalar(a1, 1); + Int32x4.load(new Int32Array(16), 0); + Int32x4.load1(new Int32Array(16), 0); + Int32x4.load2(new Int32Array(16), 0); + Int32x4.load3(new Int32Array(16), 0); + Int32x4.store(new Int32Array(16), 1, a1); + Int32x4.store1(new Int32Array(16), 1, a1); + Int32x4.store2(new Int32Array(16), 1, a1); + Int32x4.store3(new Int32Array(16), 1, a1); + Int32x4.fromFloat32x4(Float32x4.splat(0)); + Int32x4.fromUint32x4(Uint32x4.splat(0)); + Int32x4.fromFloat32x4Bits(Float32x4.splat(0)); + Int32x4.fromInt16x8Bits(Int16x8.splat(0)); + Int32x4.fromInt8x16Bits(Int8x16.splat(0)); + Int32x4.fromUint32x4Bits(Uint32x4.splat(0)); + Int32x4.fromUint16x8Bits(Uint16x8.splat(0)); + Int32x4.fromUint8x16Bits(Uint8x16.splat(0)); + Int16x8.length; + Int16x8.name; + Int16x8.arguments; + Int16x8.caller; + Int16x8.prototype; + Int16x8.extractLane(a2, 7); + Int16x8.swizzle(a2, 0, 1, 2, 3, 4, 5, 6, 7); + Int16x8.shuffle(a2, a2, 0, 1, 2, 3, 4, 5, 6, 7); + Int16x8.check(a2); + Int16x8.splat(1); + Int16x8.replaceLane(a2, 7, 1); + Int16x8.select(Bool16x8.splat(true), a2, a2); + Int16x8.equal(a2, a2); + Int16x8.notEqual(a2, a2); + Int16x8.lessThan(a2, a2); + Int16x8.lessThanOrEqual(a2, a2); + Int16x8.greaterThan(a2, a2); + Int16x8.greaterThanOrEqual(a2, a2); + Int16x8.and(a2, a2); + Int16x8.or(a2, a2); + Int16x8.xor(a2, a2); + Int16x8.not(a2, a2); + Int16x8.add(a2, a2); + Int16x8.sub(a2, a2); + Int16x8.mul(a2, a2); + Int16x8.neg(a2); + Int16x8.shiftLeftByScalar(a2, 1); + Int16x8.shiftRightByScalar(a2, 1); + Int16x8.addSaturate(a2, a2); + Int16x8.subSaturate(a2, a2); + Int16x8.load(new Int16Array(16), 0); + Int16x8.store(new Int16Array(16), 1, a2); + Int16x8.fromUint16x8(Uint16x8.splat(0)); + Int16x8.fromFloat32x4Bits(Float32x4.splat(0)); + Int16x8.fromInt32x4Bits(Int32x4.splat(0)); + Int16x8.fromInt8x16Bits(Int8x16.splat(0)); + Int16x8.fromUint32x4Bits(Uint32x4.splat(0)); + Int16x8.fromUint16x8Bits(Uint16x8.splat(0)); + Int16x8.fromUint8x16Bits(Uint8x16.splat(0)); + Int8x16.length; + Int8x16.name; + Int8x16.arguments; + Int8x16.caller; + Int8x16.prototype; + Int8x16.extractLane(a3, 15); + Int8x16.swizzle(a3, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15); + Int8x16.shuffle(a3, a3, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15); + Int8x16.check(a3); + Int8x16.splat(1); + Int8x16.replaceLane(a3, 15, 1); + Int8x16.select(Bool8x16.splat(true), a3, a3); + Int8x16.equal(a3, a3); + Int8x16.notEqual(a3, a3); + Int8x16.lessThan(a3, a3); + Int8x16.lessThanOrEqual(a3, a3); + Int8x16.greaterThan(a3, a3); + Int8x16.greaterThanOrEqual(a3, a3); + Int8x16.and(a3, a3); + Int8x16.or(a3, a3); + Int8x16.xor(a3, a3); + Int8x16.not(a3, a3); + Int8x16.add(a3, a3); + Int8x16.sub(a3, a3); + Int8x16.mul(a3, a3); + Int8x16.neg(a3); + Int8x16.shiftLeftByScalar(a3, 1); + Int8x16.shiftRightByScalar(a3, 1); + Int8x16.addSaturate(a3, a3); + Int8x16.subSaturate(a3, a3); + Int8x16.load(new Int8Array(16), 0); + Int8x16.store(new Int8Array(16), 1, a3); + Int8x16.fromUint8x16(Uint8x16.splat(0)); + Int8x16.fromFloat32x4Bits(Float32x4.splat(0)); + Int8x16.fromInt32x4Bits(Int32x4.splat(0)); + Int8x16.fromInt16x8Bits(Int16x8.splat(0)); + Int8x16.fromUint32x4Bits(Uint32x4.splat(0)); + Int8x16.fromUint16x8Bits(Uint16x8.splat(0)); + Int8x16.fromUint8x16Bits(Uint8x16.splat(0)); + Uint32x4.length; + Uint32x4.name; + Uint32x4.arguments; + Uint32x4.caller; + Uint32x4.prototype; + Uint32x4.extractLane(a4, 3); + Uint32x4.swizzle(a4, 0, 1, 2, 3); + Uint32x4.shuffle(a4, a4, 0, 1, 2, 3); + Uint32x4.check(a4); + Uint32x4.splat(1); + Uint32x4.replaceLane(a4, 3, 1); + Uint32x4.select(Bool32x4.splat(true), a4, a4); + Uint32x4.equal(a4, a4); + Uint32x4.notEqual(a4, a4); + Uint32x4.lessThan(a4, a4); + Uint32x4.lessThanOrEqual(a4, a4); + Uint32x4.greaterThan(a4, a4); + Uint32x4.greaterThanOrEqual(a4, a4); + Uint32x4.and(a4, a4); + Uint32x4.or(a4, a4); + Uint32x4.xor(a4, a4); + Uint32x4.not(a4, a4); + Uint32x4.add(a4, a4); + Uint32x4.sub(a4, a4); + Uint32x4.mul(a4, a4); + Uint32x4.shiftLeftByScalar(a4, 1); + Uint32x4.shiftRightByScalar(a4, 1); + Uint32x4.load(new Uint32Array(16), 0); + Uint32x4.load1(new Uint32Array(16), 0); + Uint32x4.load2(new Uint32Array(16), 0); + Uint32x4.load3(new Uint32Array(16), 0); + Uint32x4.store(new Uint32Array(16), 1, a4); + Uint32x4.store1(new Uint32Array(16), 1, a4); + Uint32x4.store2(new Uint32Array(16), 1, a4); + Uint32x4.store3(new Uint32Array(16), 1, a4); + Uint32x4.fromFloat32x4(Float32x4.splat(0)); + Uint32x4.fromInt32x4(Int32x4.splat(0)); + Uint32x4.fromFloat32x4Bits(Float32x4.splat(0)); + Uint32x4.fromInt32x4Bits(Int32x4.splat(0)); + Uint32x4.fromInt16x8Bits(Int16x8.splat(0)); + Uint32x4.fromInt8x16Bits(Int8x16.splat(0)); + Uint32x4.fromUint16x8Bits(Uint16x8.splat(0)); + Uint32x4.fromUint8x16Bits(Uint8x16.splat(0)); + Uint16x8.length; + Uint16x8.name; + Uint16x8.arguments; + Uint16x8.caller; + Uint16x8.prototype; + Uint16x8.extractLane(a5, 7); + Uint16x8.swizzle(a5, 0, 1, 2, 3, 4, 5, 6, 7); + Uint16x8.shuffle(a5, a5, 0, 1, 2, 3, 4, 5, 6, 7); + Uint16x8.check(a5); + Uint16x8.splat(1); + Uint16x8.replaceLane(a5, 7, 1); + Uint16x8.select(Bool16x8.splat(true), a5, a5); + Uint16x8.equal(a5, a5); + Uint16x8.notEqual(a5, a5); + Uint16x8.lessThan(a5, a5); + Uint16x8.lessThanOrEqual(a5, a5); + Uint16x8.greaterThan(a5, a5); + Uint16x8.greaterThanOrEqual(a5, a5); + Uint16x8.and(a5, a5); + Uint16x8.or(a5, a5); + Uint16x8.xor(a5, a5); + Uint16x8.not(a5, a5); + Uint16x8.add(a5, a5); + Uint16x8.sub(a5, a5); + Uint16x8.mul(a5, a5); + Uint16x8.shiftLeftByScalar(a5, 1); + Uint16x8.shiftRightByScalar(a5, 1); + Uint16x8.addSaturate(a5, a5); + Uint16x8.subSaturate(a5, a5); + Uint16x8.load(new Uint16Array(16), 0); + Uint16x8.store(new Uint16Array(16), 1, a5); + Uint16x8.fromInt16x8(Int16x8.splat(0)); + Uint16x8.fromFloat32x4Bits(Float32x4.splat(0)); + Uint16x8.fromInt32x4Bits(Int32x4.splat(0)); + Uint16x8.fromInt16x8Bits(Int16x8.splat(0)); + Uint16x8.fromInt8x16Bits(Int8x16.splat(0)); + Uint16x8.fromUint32x4Bits(Uint32x4.splat(0)); + Uint16x8.fromUint8x16Bits(Uint8x16.splat(0)); + Uint8x16.length; + Uint8x16.name; + Uint8x16.arguments; + Uint8x16.caller; + Uint8x16.prototype; + Uint8x16.extractLane(a6, 15); + Uint8x16.swizzle(a6, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15); + Uint8x16.shuffle(a6, a6, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15); + Uint8x16.check(a6); + Uint8x16.splat(1); + Uint8x16.replaceLane(a6, 15, 1); + Uint8x16.select(Bool8x16.splat(true), a6, a6); + Uint8x16.equal(a6, a6); + Uint8x16.notEqual(a6, a6); + Uint8x16.lessThan(a6, a6); + Uint8x16.lessThanOrEqual(a6, a6); + Uint8x16.greaterThan(a6, a6); + Uint8x16.greaterThanOrEqual(a6, a6); + Uint8x16.and(a6, a6); + Uint8x16.or(a6, a6); + Uint8x16.xor(a6, a6); + Uint8x16.not(a6, a6); + Uint8x16.add(a6, a6); + Uint8x16.sub(a6, a6); + Uint8x16.mul(a6, a6); + Uint8x16.shiftLeftByScalar(a6, 1); + Uint8x16.shiftRightByScalar(a6, 1); + Uint8x16.addSaturate(a6, a6); + Uint8x16.subSaturate(a6, a6); + Uint8x16.load(new Uint8Array(16), 0); + Uint8x16.store(new Uint8Array(16), 1, a6); + Uint8x16.fromInt8x16(Int8x16.splat(0)); + Uint8x16.fromFloat32x4Bits(Float32x4.splat(0)); + Uint8x16.fromInt32x4Bits(Int32x4.splat(0)); + Uint8x16.fromInt16x8Bits(Int16x8.splat(0)); + Uint8x16.fromInt8x16Bits(Int8x16.splat(0)); + Uint8x16.fromUint32x4Bits(Uint32x4.splat(0)); + Uint8x16.fromUint16x8Bits(Uint16x8.splat(0)); + Bool32x4.length; + Bool32x4.name; + Bool32x4.arguments; + Bool32x4.caller; + Bool32x4.prototype; + Bool32x4.extractLane(a7, 3); + Bool32x4.check(a7); + Bool32x4.splat(true); + Bool32x4.replaceLane(a7, 3, true); + Bool32x4.allTrue(a7); + Bool32x4.anyTrue(a7); + Bool32x4.and(a7, a7); + Bool32x4.or(a7, a7); + Bool32x4.xor(a7, a7); + Bool32x4.not(a7, a7); + Bool16x8.length; + Bool16x8.name; + Bool16x8.arguments; + Bool16x8.caller; + Bool16x8.prototype; + Bool16x8.extractLane(a8, 7); + Bool16x8.check(a8); + Bool16x8.splat(true); + Bool16x8.replaceLane(a8, 7, true); + Bool16x8.allTrue(a8); + Bool16x8.anyTrue(a8); + Bool16x8.and(a8, a8); + Bool16x8.or(a8, a8); + Bool16x8.xor(a8, a8); + Bool16x8.not(a8, a8); + Bool8x16.length; + Bool8x16.name; + Bool8x16.arguments; + Bool8x16.caller; + Bool8x16.prototype; + Bool8x16.extractLane(a9, 15); + Bool8x16.check(a9); + Bool8x16.splat(true); + Bool8x16.replaceLane(a9, 15, true); + Bool8x16.allTrue(a9); + Bool8x16.anyTrue(a9); + Bool8x16.and(a9, a9); + Bool8x16.or(a9, a9); + Bool8x16.xor(a9, a9); + Bool8x16.not(a9, a9); +} diff --git a/types/adone/test/glosses/promise.ts b/types/adone/test/glosses/promise.ts index c16d1a4852..a8866d95a1 100644 --- a/types/adone/test/glosses/promise.ts +++ b/types/adone/test/glosses/promise.ts @@ -6,7 +6,7 @@ namespace promiseTests { a.promise.then((x) => 2); a.resolve(2); a.reject(3); - const b = promise.defer(); + const b = promise.defer(); b.resolve("3"); b.reject(2); b.promise.then((x: string) => x); @@ -27,6 +27,18 @@ namespace promiseTests { promise.nodeify(Promise.resolve(2), () => 42).then((x: number) => x); } + namespace callbackifyTests { + const { callbackify } = promise; + + callbackify(async () => {})((err: any, a: undefined) => {}).then((x: undefined) => {}); + callbackify(async () => 42)((err: any, a: number) => {}).then((x: number) => {}); + callbackify(async (a: number) => a)(123, (err: any, a: number) => {}).then((x: number) => {}); + callbackify(async (a: number, b: string) => b)(123, "456", (err: any, a: string) => {}).then((x: string) => {}); + callbackify(async (a: number, b: string, c: number) => c)(123, "456", 123, (err: any, a: number) => {}).then((x: number) => {}); + callbackify(async (a: number, b: string, c: number, d: string) => d)(123, "456", 123, "456", (err: any, a: string) => {}).then((x: string) => {}); + callbackify(async (a: number, b: string, c: number, d: string, e: number) => e)(123, "456", 123, "456", 123, (err: any, a: number) => {}).then((x: number) => {}); + } + namespace promisify { type Callback = (err?: any, result?: T) => void; namespace noargs { diff --git a/types/adone/test/glosses/shani.ts b/types/adone/test/glosses/shani.ts index 1c09ef3837..3bbe861633 100644 --- a/types/adone/test/glosses/shani.ts +++ b/types/adone/test/glosses/shani.ts @@ -177,7 +177,7 @@ namespace shaniTests { const check = (hook: adone.shani.I.Hook) => { hook.run().then((x) => x); hook.cause(); - hook.failed() === true; + { const a: boolean = hook.failed(); } hook.timeout() + 2; hook.timeout(10).timeout(10).timeout() + 2; }; @@ -193,9 +193,9 @@ namespace shaniTests { for (const hook of root.afterEachHooks()) { check(hook); } - root.isInclusive() === true; - root.isExclusive() === false; - root.hasInclusive() === true; + { const a: boolean = root.isInclusive(); } + { const a: boolean = root.isExclusive(); } + { const a: boolean = root.hasInclusive(); } root.skip().only().skip(); const a: number | null = root.timeout(); root.timeout(100).timeout(100); @@ -276,23 +276,23 @@ namespace shaniTests { namespace spyCallTests { const call = util.spy().firstCall; - call.calledBefore(call) === true; - call.calledAfter(call) === true; - call.calledWithNew(call) === true; + { const a: boolean = call.calledBefore(call); } + { const a: boolean = call.calledAfter(call); } + { const a: boolean = call.calledWithNew(call); } call.thisValue; call.args[0]; call.exception; call.returnValue; - call.calledOn({}) === true; - call.calledWith(1, 2, 3) === true; - call.calledWithExactly(1, 2, 3) === true; - call.calledWithMatch(1, 2, 3) === true; - call.notCalledWith(1, 2, 3) === true; - call.notCalledWithMatch(1, 2, 3) === true; - call.returned(1) === true; - call.threw() === true; - call.threw("12") === true; - call.threw({}) === true; + { const a: boolean = call.calledOn({}); } + { const a: boolean = call.calledWith(1, 2, 3); } + { const a: boolean = call.calledWithExactly(1, 2, 3); } + { const a: boolean = call.calledWithMatch(1, 2, 3); } + { const a: boolean = call.notCalledWith(1, 2, 3); } + { const a: boolean = call.notCalledWithMatch(1, 2, 3); } + { const a: boolean = call.returned(1); } + { const a: boolean = call.threw(); } + { const a: boolean = call.threw("12"); } + { const a: boolean = call.threw({}); } call.callArg(1); call.callArgOn(1, {}); call.callArgWith(1, 1, 2, 3); @@ -307,11 +307,11 @@ namespace shaniTests { util.spy(() => { }).alwaysCalledOn({}); const a: number = util.spy().callCount; const s = util.spy(); - s.called === true; - s.notCalled === true; - s.calledOnce === true; - s.calledTwice === true; - s.calledThrice === true; + { const a: boolean = s.called; } + { const a: boolean = s.notCalled; } + { const a: boolean = s.calledOnce; } + { const a: boolean = s.calledTwice; } + { const a: boolean = s.calledThrice; } s.firstCall.args; s.secondCall.args; s.thirdCall.args; @@ -325,24 +325,30 @@ namespace shaniTests { s.calledAfter(s); s.calledImmediatelyAfter(s); s.calledImmediatelyBefore(s); - s.calledWithNew() === true; + { const a: boolean = s.calledWithNew(); } s.withArgs(1, 2, 3).firstCall.args; - s.alwaysCalledOn({}) === true; - s.alwaysCalledWith(1, 2, 3) === true; - s.alwaysCalledWithExactly(1, 2, 3) === true; - s.alwaysCalledWithMatch(1, 2, 3) === true; - s.neverCalledWith(1, 2, 3) === true; - s.neverCalledWithMatch(1, 2, 3) === true; - s.alwaysThrew() === true; - s.alwaysThrew("a") === true; - s.alwaysThrew({}) === true; - s.alwaysReturned({}) === true; + { const a: boolean = s.alwaysCalledOn({}); } + { const a: boolean = s.alwaysCalledWith(1, 2, 3); } + { const a: boolean = s.alwaysCalledWithExactly(1, 2, 3); } + { const a: boolean = s.alwaysCalledWithMatch(1, 2, 3); } + { const a: boolean = s.neverCalledWith(1, 2, 3); } + { const a: boolean = s.neverCalledWithMatch(1, 2, 3); } + { const a: boolean = s.alwaysThrew(); } + { const a: boolean = s.alwaysThrew("a"); } + { const a: boolean = s.alwaysThrew({}); } + { const a: boolean = s.alwaysReturned({}); } s.invokeCallback(1, 2, 3); s.getCall(0).args; s.getCalls()[0].args; s.reset(); s.printf("%s", "1").toLowerCase(); s.restore(); + s.waitFor(() => true).then((x: adone.shani.util.I.SpyCall) => {}); + s.waitFor(() => true, () => 2).then((x: number) => {}); + s.waitForCall().then((x: adone.shani.util.I.SpyCall) => {}); + s.waitForNCalls(10).then((x: adone.shani.util.I.SpyCall[]) => {}); + s.waitForArg(1, "hello").then((x: adone.shani.util.I.SpyCall) => {}); + s.waitForArgs(1, 2, 3).then((x: adone.shani.util.I.SpyCall) => {}); } namespace stubTests { diff --git a/types/adone/test/glosses/std.ts b/types/adone/test/glosses/std.ts index 611f9401e9..9bcb6687d4 100644 --- a/types/adone/test/glosses/std.ts +++ b/types/adone/test/glosses/std.ts @@ -1,36 +1,4 @@ -import adone from "adone"; - -import * as assert from "assert"; -import * as fs from "fs"; -import * as path from "path"; -import * as util from "util"; -import * as events from "events"; -import * as stream from "stream"; -import * as url from "url"; -import * as net from "net"; -import * as http from "http"; -import * as https from "https"; -import * as child_process from "child_process"; -import * as os from "os"; -import * as cluster from "cluster"; -import * as repl from "repl"; -import * as punycode from "punycode"; -import * as readline from "readline"; -import * as string_decoder from "string_decoder"; -import * as querystring from "querystring"; -import * as crypto from "crypto"; -import * as vm from "vm"; -import * as v8 from "v8"; -import * as domain from "domain"; -import * as tty from "tty"; -import * as buffer from "buffer"; -import * as constants from "constants"; -import * as zlib from "zlib"; -import * as tls from "tls"; -import * as console from "console"; -import * as dns from "dns"; -import * as timers from "timers"; -import * as dgram from "dgram"; +import { adone } from "adone"; const { std } = adone; @@ -124,7 +92,7 @@ namespace stdTests { } namespace tty { - std.tty.isatty(1) === true; + const a: boolean = std.tty.isatty(1); } namespace buffer { diff --git a/types/adone/test/glosses/streams.ts b/types/adone/test/glosses/streams.ts new file mode 100644 index 0000000000..bd090dc467 --- /dev/null +++ b/types/adone/test/glosses/streams.ts @@ -0,0 +1,103 @@ +namespace streamsTests { + const { stream } = adone; + + namespace CoreStreamTests { + const { CoreStream } = stream; + + new CoreStream(); + new CoreStream(undefined); + new CoreStream(undefined, {}); + new CoreStream(undefined, { async: true }); + new CoreStream(undefined, { sync: true }); + new CoreStream(undefined, { + transform(x) { + this.push(x); + } + }); + new CoreStream(undefined, { + flush() { + this.push(1); + } + }); + + new CoreStream([]); + new CoreStream(new CoreStream([])); + + { const a: boolean = new CoreStream().write(1); } + { const a: boolean = new CoreStream().push(1); } + { const a: adone.stream.CoreStream = new CoreStream().end(); } + { const a: adone.stream.CoreStream = new CoreStream().destroy(); } + { const a: adone.stream.CoreStream = new CoreStream().pause(); } + { const a: adone.stream.CoreStream = new CoreStream().resume(); } + { const a: boolean = new CoreStream().isPaused(); } + { const a: boolean = new CoreStream().isEnded(); } + { const a: nodestd.stream.Transform = new CoreStream().pipe(new adone.std.stream.Transform()); } + { const a: adone.stream.CoreStream = new CoreStream().throughSync(function () { this.push(1); }); } + { const a: adone.stream.CoreStream = new CoreStream().throughSync(function () { this.push(1); }, function () { this.push(1); }); } + { const a: adone.stream.CoreStream = new CoreStream().throughAsync(function () { this.push(1); }); } + { const a: adone.stream.CoreStream = new CoreStream().throughAsync(function () { this.push(1); }, function () { this.push(1); }); } + { const a: adone.stream.CoreStream = new CoreStream().through(function () { this.push(1); }, function () { this.push(1); }); } + { const a: adone.stream.CoreStream = new CoreStream([1, 2, 3]).map((x) => `${x}`); } + { const a: adone.stream.CoreStream = new CoreStream().mapIf((x) => x === "1", () => 1); } + { const a: adone.stream.CoreStream = new CoreStream().mapIf(async (x) => x === "1", () => 1); } + { const a: adone.stream.CoreStream = new CoreStream().filter((x) => x === 1); } + { const a: adone.stream.CoreStream = new CoreStream().filter(async (x) => x === 1); } + { const a: adone.stream.CoreStream = new CoreStream().forEach(async (x) => x === 1); } + { const a: adone.stream.CoreStream = new CoreStream().forEach(async (x) => x === 1, {}); } + { const a: adone.stream.CoreStream = new CoreStream().forEach(async (x) => x === 1, { passthrough: true }); } + { const a: adone.stream.CoreStream = new CoreStream().forEach(async (x) => x === 1, { wait: true }); } + { const a: adone.stream.CoreStream = new CoreStream().done(() => {}); } + { const a: adone.stream.CoreStream = new CoreStream().done(() => {}, {}); } + { const a: adone.stream.CoreStream = new CoreStream().done(() => {}, { passthrough: true }); } + { const a: adone.stream.CoreStream = new CoreStream().toArray((x: any[]) => {}); } + { const a: adone.stream.CoreStream = new CoreStream().toArray((x: any[]) => {}, {}); } + { const a: adone.stream.CoreStream = new CoreStream().toArray((x: any[]) => {}, { passthrough: true }); } + { const a: adone.stream.CoreStream = new CoreStream().unique(); } + { const a: adone.stream.CoreStream = new CoreStream().unique((x) => x + 1); } + { const a: adone.stream.CoreStream = new CoreStream().stash((x) => x === 1); } + { const a: adone.stream.CoreStream = new CoreStream().stash("hello", (x) => x === 1); } + { const a: adone.stream.CoreStream = new CoreStream().unstash("hello"); } + { const a: adone.stream.CoreStream = new CoreStream().unstash(); } + { const a: adone.stream.CoreStream = new CoreStream().flatten(); } + { const a: Promise = new CoreStream().then(); } + { const a: Promise = new CoreStream().then(() => "1"); } + { const a: Promise = new CoreStream().then(() => 1, () => 2); } + { const a: Promise = new CoreStream().catch(); } + { const a: Promise = new CoreStream().catch(() => 1); } + { const a: adone.stream.CoreStream = CoreStream.merge([new CoreStream()]); } + { const a: adone.stream.CoreStream = CoreStream.merge([new adone.std.stream.Readable()]); } + { const a: adone.stream.CoreStream = CoreStream.merge([new adone.std.stream.Transform()]); } + { const a: adone.stream.CoreStream = CoreStream.merge([new adone.std.stream.Transform()]); } + { const a: adone.stream.CoreStream = CoreStream.merge([new adone.std.stream.Duplex()]); } + { const a: adone.stream.CoreStream = CoreStream.merge([], {}); } + { const a: adone.stream.CoreStream = CoreStream.merge([], { end: true }); } + { const a: adone.stream.CoreStream = CoreStream.merge([], { sourceOptions: {} }); } + { const a: adone.stream.CoreStream = CoreStream.merge([], { sourceOptions: { async: true } }); } + { const a: adone.stream.CoreStream = CoreStream.merge([], { sourceOptions: { sync: false } }); } + { const a: adone.stream.CoreStream = CoreStream.merge([], { sourceOptions: { transform(x) { this.push(x); } } }); } + { const a: adone.stream.CoreStream = CoreStream.merge([], { sourceOptions: { flush() { this.push(1); } } }); } + (async () => { + const res = await new CoreStream([1, 2, 3, 4, 5]) + .map((x: number) => `${x}`) + .mapIf((x: string) => x[0] === "1", (x) => x.slice(1)) + .map((x) => [x, x, x]) + .filter((x: [string, string, string]) => x[1] === "hello"); + for (const [a, b, c] of res) { + const d: string = a; + const e: string = b; + const f: string = c; + } + }); + } + + namespace coreTests { + { const a: adone.stream.CoreStream = stream.core(); } + { const a: adone.stream.CoreStream = stream.core([1, 2, 3]); } + { const a: adone.stream.CoreStream = stream.core(stream.core([])); } + { const a: adone.stream.CoreStream = stream.core(undefined, {}); } + { const a: adone.stream.CoreStream = stream.core(undefined, { async: true }); } + { const a: adone.stream.CoreStream = stream.core(undefined, { sync: false }); } + { const a: adone.stream.CoreStream = stream.core(undefined, { transform(x) { this.push(Number(x)); } }); } + { const a: adone.stream.CoreStream = stream.core(undefined, { flush() { this.push(1); } }); } + } +} diff --git a/types/adone/test/glosses/utils.ts b/types/adone/test/glosses/utils.ts index 9372fb4b30..33698bfb29 100644 --- a/types/adone/test/glosses/utils.ts +++ b/types/adone/test/glosses/utils.ts @@ -376,6 +376,12 @@ namespace utilTests { const g: string = util.uuid.v4({ nsecs: 1 }); } + namespace v3 { + const a: string = util.uuid.v3([], []); + const b: number[] = util.uuid.v3([], [], []); + const c: number[] = util.uuid.v3([], [], [], 1); + } + namespace v5 { const a: string = util.uuid.v5([], []); const b: number[] = util.uuid.v5([], [], []); @@ -509,7 +515,7 @@ namespace utilTests { } const a: string = util.Editor.DEFAULT; - new util.Editor().spawn().then((x: adone.std.child_process.ChildProcess) => { }); + new util.Editor().spawn().then((x: nodestd.child_process.ChildProcess) => { }); new util.Editor().run().then((x: string) => { }); new util.Editor().cleanup().then((x: undefined) => { }); util.Editor.edit().then((x: string) => { }); @@ -658,80 +664,106 @@ namespace utilTests { const e: [number, number] = clock.hrtime(); const f: [number, number] = clock.hrtime(e); } + } - namespace ltgt { - namespace contains { - const a: boolean = util.ltgt.contains({ lt: 2 }, 2); - const b: boolean = util.ltgt.contains({ lt: 2 }, 2, (a, b) => b - a); - const c: boolean = util.ltgt.contains({ lt: "2" }, "2"); - const d: boolean = util.ltgt.contains({ lt: "2" }, "2", (a, b) => b.charCodeAt(0) - a.charCodeAt(0)); - } + namespace ltgt { + namespace contains { + const a: boolean = util.ltgt.contains({ lt: 2 }, 2); + const b: boolean = util.ltgt.contains({ lt: 2 }, 2, (a, b) => b - a); + const c: boolean = util.ltgt.contains({ lt: "2" }, "2"); + const d: boolean = util.ltgt.contains({ lt: "2" }, "2", (a, b) => b.charCodeAt(0) - a.charCodeAt(0)); + } - namespace filter { - const a: (a: number) => boolean = util.ltgt.filter({ lt: 2 }); - const b: (a: number) => boolean = util.ltgt.filter({ lt: 2 }, (a, b) => b - a); - const c: (a: string) => boolean = util.ltgt.filter({ lt: "2" }); - const d: (a: string) => boolean = util.ltgt.filter({ lt: "2" }, (a, b) => b.charCodeAt(0) - a.charCodeAt(0)); - } + namespace filter { + const a: (a: number) => boolean = util.ltgt.filter({ lt: 2 }); + const b: (a: number) => boolean = util.ltgt.filter({ lt: 2 }, (a, b) => b - a); + const c: (a: string) => boolean = util.ltgt.filter({ lt: "2" }); + const d: (a: string) => boolean = util.ltgt.filter({ lt: "2" }, (a, b) => b.charCodeAt(0) - a.charCodeAt(0)); + } - namespace toLtgt { - const a: adone.util.ltgt.I.Range = util.ltgt.toLtgt({ lt: 2 }, {}); - const b: adone.util.ltgt.I.Range = util.ltgt.toLtgt({ lt: 2 }, {}, (a) => `${a}`); - const c: adone.util.ltgt.I.Range = util.ltgt.toLtgt({ lt: 2 }, {}, (a) => a, 2); - const d: adone.util.ltgt.I.Range = util.ltgt.toLtgt({ lt: 2 }, {}, (a) => a, 2, 5); - } + namespace toLtgt { + const a: adone.util.ltgt.I.Range = util.ltgt.toLtgt({ lt: 2 }, {}); + const b: adone.util.ltgt.I.Range = util.ltgt.toLtgt({ lt: 2 }, {}, (a) => `${a}`); + const c: adone.util.ltgt.I.Range = util.ltgt.toLtgt({ lt: 2 }, {}, (a) => a, 2); + const d: adone.util.ltgt.I.Range = util.ltgt.toLtgt({ lt: 2 }, {}, (a) => a, 2, 5); + } - namespace endEnclusive { - const a: boolean = util.ltgt.endInclusive({ lt: 2 }); - } + namespace endEnclusive { + const a: boolean = util.ltgt.endInclusive({ lt: 2 }); + } - namespace startInclusive { - const a: boolean = util.ltgt.startInclusive({ lt: 2 }); - } + namespace startInclusive { + const a: boolean = util.ltgt.startInclusive({ lt: 2 }); + } - namespace end { - const a: number | undefined = util.ltgt.end({ lt: 2 }); - const b: number | string = util.ltgt.end({ lt: 2 }, "2"); - const c: number = util.ltgt.end({ lt: 2 }, 2); - } + namespace end { + const a: number | undefined = util.ltgt.end({ lt: 2 }); + const b: number | string = util.ltgt.end({ lt: 2 }, "2"); + const c: number = util.ltgt.end({ lt: 2 }, 2); + } - namespace start { - const a: number | undefined = util.ltgt.start({ lt: 2 }); - const b: number | string = util.ltgt.start({ lt: 2 }, "2"); - const c: number = util.ltgt.start({ lt: 2 }, 2); - } + namespace start { + const a: number | undefined = util.ltgt.start({ lt: 2 }); + const b: number | string = util.ltgt.start({ lt: 2 }, "2"); + const c: number = util.ltgt.start({ lt: 2 }, 2); + } - namespace upperBound { - const a: number | undefined = util.ltgt.upperBound({ lt: 2 }); - const b: number | string = util.ltgt.upperBound({ lt: 2 }, "2"); - const c: number = util.ltgt.upperBound({ lt: 2 }, 2); - } + namespace upperBound { + const a: number | undefined = util.ltgt.upperBound({ lt: 2 }); + const b: number | string = util.ltgt.upperBound({ lt: 2 }, "2"); + const c: number = util.ltgt.upperBound({ lt: 2 }, 2); + } - namespace upperBoundKey { - const a: number | undefined = util.ltgt.upperBoundKey({ lt: 2 }); - } + namespace upperBoundKey { + const a: number | undefined = util.ltgt.upperBoundKey({ lt: 2 }); + } - namespace upperBoundExclusive { - const a: boolean = util.ltgt.upperBoundInclusive({ lt: 2 }); - } + namespace upperBoundExclusive { + const a: boolean = util.ltgt.upperBoundInclusive({ lt: 2 }); + } - namespace lowerBoundExclusive { - const a: boolean = util.ltgt.lowerBoundInclusive({ lt: 2 }); - } + namespace lowerBoundExclusive { + const a: boolean = util.ltgt.lowerBoundInclusive({ lt: 2 }); + } - namespace upperBoundInclusive { - const a: boolean = util.ltgt.upperBoundInclusive({ lt: 2 }); - } + namespace upperBoundInclusive { + const a: boolean = util.ltgt.upperBoundInclusive({ lt: 2 }); + } - namespace lowerBoundInclusive { - const a: boolean = util.ltgt.lowerBoundInclusive({ lt: 2 }); - } + namespace lowerBoundInclusive { + const a: boolean = util.ltgt.lowerBoundInclusive({ lt: 2 }); + } - namespace lowerBound { - const a: number | undefined = util.ltgt.lowerBound({ lt: 2 }); - const b: number | string = util.ltgt.lowerBound({ lt: 2 }, "2"); - const c: number = util.ltgt.lowerBound({ lt: 2 }, 2); - } + namespace lowerBound { + const a: number | undefined = util.ltgt.lowerBound({ lt: 2 }); + const b: number | string = util.ltgt.lowerBound({ lt: 2 }, "2"); + const c: number = util.ltgt.lowerBound({ lt: 2 }, 2); } } + + namespace userid { + const { userid } = util; + + { const a: number = userid.uid("someone").gid; } + { const a: number = userid.uid("someone").uid; } + { const a: number = userid.gid("someone"); } + { const a: string = userid.username(1000); } + { const a: string = userid.groupname(1000); } + { const gids: number[] = userid.gids("someone"); } + } + + namespace LogRotator { + const { LogRotator } = util; + new LogRotator("file.log"); + new LogRotator("file.log", {}); + new LogRotator("file.log", { checkInterval: 1000 }); + new LogRotator("file.log", { checkInterval: "10 minutes" }); + new LogRotator("file.log", { maxSize: 1000 }); + new LogRotator("file.log", { maxSize: "100kb" }); + new LogRotator("file.log", { maxFiles: 10 }); + new LogRotator("file.log", { compress: true }); + new LogRotator("file.log").rotate().then(() => {}); + new LogRotator("file.log").start(); + new LogRotator("file.log").stop(); + } } diff --git a/types/adone/test/index-import.ts b/types/adone/test/index-import.ts index 906e57938c..7c546aa03f 100644 --- a/types/adone/test/index-import.ts +++ b/types/adone/test/index-import.ts @@ -1,4 +1,4 @@ -import adone from "adone"; +import { adone } from "adone"; namespace AdoneRootImportTests { adone.falsely() === false; diff --git a/types/adone/test/index.ts b/types/adone/test/index.ts index 2ba475ee89..a9de1ab34b 100644 --- a/types/adone/test/index.ts +++ b/types/adone/test/index.ts @@ -29,9 +29,12 @@ namespace AdoneRootTests { adone.lazify({}); adone.lazify({}, {}); adone.lazify({}, {}, () => { }); + adone.lazify({}, {}, () => { }, {}); adone.lazify({}, {}, () => { }, { configurable: true }); + adone.lazify({}, {}, () => { }, { writable: false }); + adone.lazify({}, {}, () => { }, { mapper: (key: string, obj: any) => null }); adone.tag.set({}, "123"); - adone.tag.has({}, "123") === true; + { const a: boolean = adone.tag.has({}, "123"); } adone.tag.define("12"); adone.tag.define("123", "456"); { const a: symbol = adone.tag.SUBSYSTEM; } @@ -59,8 +62,6 @@ namespace AdoneRootTests { { const a: symbol = adone.tag.FAST_STREAM; } { const a: symbol = adone.tag.FAST_FS_STREAM; } { const a: symbol = adone.tag.FAST_FS_MAP_STREAM; } - { const a: Promise = adone.run({}); } - { const a: Promise = adone.run({}, false); } { const a: object = adone.bind("library"); } // hmm { const a: string = adone.getAssetAbsolutePath("asset"); } { const a: Buffer | string = adone.loadAsset("asset"); } diff --git a/types/adone/tsconfig.json b/types/adone/tsconfig.json index ad90d2b5d7..d472e48dba 100644 --- a/types/adone/tsconfig.json +++ b/types/adone/tsconfig.json @@ -19,24 +19,48 @@ "files": [ "index.d.ts", "adone.d.ts", - "glosses/common.d.ts", - "glosses/math.d.ts", + "glosses/math/index.d.ts", + "glosses/math/matrix.d.ts", + "glosses/math/simd.d.ts", "glosses/std.d.ts", "glosses/utils.d.ts", "glosses/assertion.d.ts", "glosses/promise.d.ts", "glosses/shani.d.ts", "glosses/shani-global.d.ts", + "glosses/collections.d.ts", + "glosses/events.d.ts", + "glosses/fs.d.ts", + "glosses/is.d.ts", + "glosses/exceptions.d.ts", + "glosses/streams.d.ts", + "glosses/fast.d.ts", + "glosses/data.d.ts", + "glosses/datetime.d.ts", + "glosses/compressors.d.ts", + "glosses/archives.d.ts", "adone-tests.ts", "test/index.ts", "test/index-import.ts", - "test/glosses/common.ts", - "test/glosses/math.ts", + "test/glosses/math/index.ts", + "test/glosses/math/matrix.ts", + "test/glosses/math/simd.ts", "test/glosses/std.ts", "test/glosses/utils.ts", "test/glosses/assertion.ts", "test/glosses/promise.ts", "test/glosses/shani.ts", - "test/glosses/shani-global.ts" + "test/glosses/shani-global.ts", + "test/glosses/collections.ts", + "test/glosses/events.ts", + "test/glosses/fs.ts", + "test/glosses/is.ts", + "test/glosses/exceptions.ts", + "test/glosses/streams.ts", + "test/glosses/fast.ts", + "test/glosses/data.ts", + "test/glosses/datetime.ts", + "test/glosses/compressors.ts", + "test/glosses/archives.ts" ] } diff --git a/types/adone/tslint.json b/types/adone/tslint.json index ef323bd7a5..8c265eebb4 100644 --- a/types/adone/tslint.json +++ b/types/adone/tslint.json @@ -12,6 +12,7 @@ "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, "unified-signatures": false, - "space-before-function-paren": false + "space-before-function-paren": false, + "await-promise": false } } \ No newline at end of file diff --git a/types/amqp/amqp-tests.ts b/types/amqp/amqp-tests.ts index 7940f44ed4..dfe38f2676 100644 --- a/types/amqp/amqp-tests.ts +++ b/types/amqp/amqp-tests.ts @@ -3,6 +3,7 @@ import * as amqp from 'amqp'; async function connect() { const promise = new Promise((resolve, reject) => { const client = amqp.createConnection({ + clientProperties: { applicationName: 'typing' }, url: 'amqp://admin:password@localhost:5672' }); diff --git a/types/amqp/index.d.ts b/types/amqp/index.d.ts index ea7d6bcc65..ca39ce4404 100644 --- a/types/amqp/index.d.ts +++ b/types/amqp/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for amqp 0.2 // Project: https://github.com/postwait/node-amqp // Definitions by: Carl Winkler +// Mark Line // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -90,7 +91,7 @@ export interface ConnectionOptions { url?: string; port?: number; login?: string; - passowrd?: string; + password?: string; connectionTimeout?: number; authMechanism?: string; vhost?: string; @@ -125,6 +126,19 @@ export interface ConnectionOptions { /** Default: 1000 */ reconnectBackoffTime?: number; + + clientProperties?: { + applicationName?: string; + capabilities?: { + consumer_cancel_notify?: boolean + } + /** Default: 'node-' + process.version */ + platform?: string; + /** Default: node-amqp */ + product?: string; + /** Default: 'nodeAMQPVersion' */ + version?: string; + }; } export interface QueueOptions { diff --git a/types/angular-file-upload/angular-file-upload-tests.ts b/types/angular-file-upload/angular-file-upload-tests.ts new file mode 100644 index 0000000000..3d9ba861c6 --- /dev/null +++ b/types/angular-file-upload/angular-file-upload-tests.ts @@ -0,0 +1,76 @@ +import { FileUploaderFactory, FileUploader, FileItem } from 'angular-file-upload'; +import * as angular from 'angular'; + +angular.module('app', ['angularFileUpload']) + + .controller('AppController', ['FileUploader', ( + FileUploader: FileUploaderFactory + ) => { + const uploader: FileUploader = new FileUploader({ + url: 'upload.php' + }); + + uploader.onAfterAddingFile = (fileItem: FileItem) => { + console.log(fileItem); + }; + + // FILTERS + + // a sync filter + const syncFilter = (item: File, options: {}) => { + console.log('syncFilter'); + return true; + }; + uploader.filters.push({ + name: 'syncFilter', + fn: syncFilter + }); + + // an async filter + const asyncFilter = (item: File, options: {}, deferred: angular.IDeferred) => { + console.log('asyncFilter'); + setTimeout(deferred.resolve, 1e3); + }; + uploader.filters.push({ + name: 'asyncFilter', + fn: asyncFilter + }); + + // CALLBACKS + + uploader.onWhenAddingFileFailed = (item /*{File|FileLikeObject}*/, filter, options) => { + console.info('onWhenAddingFileFailed', item, filter, options); + }; + uploader.onAfterAddingFile = (fileItem) => { + console.info('onAfterAddingFile', fileItem); + }; + uploader.onAfterAddingAll = (addedFileItems) => { + console.info('onAfterAddingAll', addedFileItems); + }; + uploader.onBeforeUploadItem = (item) => { + console.info('onBeforeUploadItem', item); + }; + uploader.onProgressItem = (fileItem, progress) => { + console.info('onProgressItem', fileItem, progress); + }; + uploader.onProgressAll = (progress) => { + console.info('onProgressAll', progress); + }; + uploader.onSuccessItem = (fileItem, response, status, headers) => { + console.info('onSuccessItem', fileItem, response, status, headers); + }; + uploader.onErrorItem = (fileItem, response, status, headers) => { + console.info('onErrorItem', fileItem, response, status, headers); + }; + uploader.onCancelItem = (fileItem, response, status, headers) => { + console.info('onCancelItem', fileItem, response, status, headers); + }; + uploader.onCompleteItem = (fileItem, response, status, headers) => { + console.info('onCompleteItem', fileItem, response, status, headers); + }; + uploader.onCompleteAll = () => { + console.info('onCompleteAll'); + }; + + console.info('uploader', uploader); + }]); diff --git a/types/angular-file-upload/index.d.ts b/types/angular-file-upload/index.d.ts new file mode 100644 index 0000000000..ee1982123a --- /dev/null +++ b/types/angular-file-upload/index.d.ts @@ -0,0 +1,327 @@ +// Type definitions for angular-file-upload 2.5 +// Project: https://github.com/nervgh/angular-file-upload +// Definitions by: Cyril Gandon +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +import * as angular from 'angular'; + +export interface FileUploaderFactory { + new(options?: Partial): FileUploader; +} + +export interface FileUploaderOptions { + /** + * Path on the server to upload files + * @default / + */ + url: string; + /** + * Name of the field which will contain the file, default is file + * @default file + */ + alias: string; + /** + * Headers to be sent along with the files. HTML5 browsers only. + * @default {} + */ + headers: Headers; + /** + * Items to be uploaded + * @default [] + */ + queue: FileItem[]; + /** + * Automatically upload files after adding them to the queue + * @default false + */ + autoUpload: boolean; + /** + * Remove files from the queue after uploading + * @default false + */ + removeAfterUpload: boolean; + /** + * It's a request method. HTML5 browsers only. + * @default POST + */ + method: string; + /** + * Filters to be applied to the files before adding them to the queue. If the filter returns true the file will be added to the queue + * @default [folderFilter, queueLimitFilter] + */ + filters: Filter[]; + /** + * Data to be sent along with the files + * @default [] + */ + formData: FormData[]; + /** + * Maximum count of files. + * @default Number.MAX_VALUE + */ + queueLimit: number; + /** + * enable CORS. HTML5 browsers only. + * @default false + */ + withCredentials: boolean; + /** + * Disable multipart. + * @default false + */ + disableMultipart: boolean; +} + +export interface FileUploader extends FileUploaderOptions { + /** + * Upload queue progress percentage. Read only. + */ + progress: number; + /** + * true if uploader is html5-uploader. Read only. + */ + isHTML5: boolean; + /** + * true if an upload is in progress. Read only. + */ + isUploading: boolean; + + // **Methods** + + /** + * Add items to the queue + */ + addToQueue(files: File | HTMLInputElement | object | FileList | object[], options: object, filters: Filter[] | string): void; + /** + * Remove an item from the queue, where value is {FileItem} or index of item. + */ + removeFromQueue(value: FileItem | number): void; + /** + * Removes all elements from the queue. + */ + clearQueue(): void; + /** + * Uploads an item, where value is {FileItem} or index of item. + */ + uploadItem(value: FileItem | number): void; + /** + * Cancels uploading of item, where value is {FileItem} or index of item. + */ + cancelItem(value: FileItem | number): void; + /** + * Upload all pending items on the queue. + */ + uploadAll(): void; + /** + * Cancels all current uploads. + */ + cancelAll(): void; + /** + * Destroys a uploader. + */ + destroy(): void; + /** + * Returns true if value is {File}. + */ + isFile(value: any): boolean; + /** + * Returns true if value is {FileLikeObject}. + */ + isFileLikeObject(value: any): boolean; + /** + * Returns the index of the {FileItem} queue element. + */ + getIndexOfItem(fileItem: FileItem): number; + /** + * Return items are ready to upload. + */ + getReadyItems(): FileItem[]; + /** + * Return an array of all pending items on the queue + */ + getNotUploadedItems(): FileItem[]; + + // **Callbacks** + + /** + * Fires after adding all the dragged or selected files to the queue. + */ + onAfterAddingAll(addedItems: FileItem[]): void; + /** + * When adding a file failed + */ + onWhenAddingFileFailed(item: FileItem, filter: Filter, options: object): void; + /** + * Fires after adding a single file to the queue. + */ + onAfterAddingFile(item: FileItem): void; + /** + * Fires before uploading an item. + */ + onBeforeUploadItem(item: FileItem): void; + /** + * On file upload progress. + */ + onProgressItem(item: FileItem, progress: number): void; + /** + * On file successfully uploaded + */ + onSuccessItem(item: FileItem, response: Response, status: number, headers: Headers): void; + /** + * On upload error + */ + onErrorItem(item: FileItem, response: Response, status: number, headers: Headers): void; + /** + * On cancel uploading + */ + onCancelItem(item: FileItem, response: Response, status: number, headers: Headers): void; + /** + * On file upload complete (independently of the sucess of the operation) + */ + onCompleteItem(item: FileItem, response: Response, status: number, headers: Headers): void; + /** + * On upload queue progress + */ + onProgressAll(progress: number): void; + /** + * On all loaded when uploading an entire queue, or on file loaded when uploading a single independent file + */ + onCompleteAll(): void; +} +export interface FileLikeObject { + /** + * Equals File.lastModifiedDate + */ + lastModifiedDate: any; + /** + * Equals File.name + */ + name: string; + /** + * Equals Blob.size, in octet + */ + size: number; + /** + * Equals Blob.type, in octet + */ + type: string; +} +export interface FileItem { + // **Properties** + file: FileLikeObject; + /** + * Path on the server in which this file will be uploaded + */ + url: string; + /** + * Name of the field which will contain the file, default is file + */ + alias: string; + /** + * Headers to be sent along with this file. HTML5 browsers only. + */ + headers: Headers; + /** + * Data to be sent along with this file + */ + formData: FormData[]; + /** + * It's a request method. By default POST. HTML5 browsers only. + */ + method: string; + /** + * enable CORS. HTML5 browsers only. + */ + withCredentials: boolean; + /** + * Remove this file from the queue after uploading + */ + removeAfterUpload: boolean; + /** + * A sequence number upload. Read only. + */ + index: number; + /** + * File upload progress percentage. Read only. + */ + progress: number; + /** + * File is ready to upload. Read only. + */ + isReady: boolean; + /** + * true if the file is being uploaded. Read only. + */ + isUploading: boolean; + /** + * true if the file was uploaded. Read only. + */ + isUploaded: boolean; + /** + * true if the file was uploaded successfully. Read only. + */ + isSuccess: boolean; + /** + * true if uploading was canceled. Read only. + */ + isCancel: boolean; + /** + * true if occurred error while file uploading. Read only. + */ + isError: boolean; + /** + * Reference to the parent Uploader object for this file. Read only. + */ + uploader: FileUploader; + + // **Methods** + + /** + * Cancels uploading of this file + */ + cancel(): void; + + /** + * Remove this file from the queue + */ + remove(): void; + + /** + * Upload this file + */ + upload(): void; + + // **Callbacks** + + /** + * Fires before uploading an item. + */ + onBeforeUpload(): void; + /** + * On file upload progress. + */ + onProgress(progress: number): void; + /** + * On file successfully uploaded + */ + onSuccess(response: Response, status: number, headers: Headers): void; + /** + * On upload error + */ + onError(response: Response, status: number, headers: Headers): void; + /** + * On cancel uploading + */ + onCancel(response: Response, status: number, headers: Headers): void; + /** + * On file upload complete (independently of the sucess of the operation) + */ + onComplete(response: Response, status: number, headers: Headers): void; +} +export type SyncFilter = (item: File | FileLikeObject, options?: object) => boolean; +export type AsyncFilter = (item: File | FileLikeObject, options: object | undefined, deferred: angular.IDeferred) => void; +export interface Filter { + name: string; + fn: SyncFilter | AsyncFilter; +} diff --git a/types/angular-file-upload/tsconfig.json b/types/angular-file-upload/tsconfig.json new file mode 100644 index 0000000000..310d96da7c --- /dev/null +++ b/types/angular-file-upload/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "angular-file-upload-tests.ts" + ] +} diff --git a/types/angular-file-upload/tslint.json b/types/angular-file-upload/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/angular-file-upload/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/angular-gridster/index.d.ts b/types/angular-gridster/index.d.ts index 22c02b4050..27e664f1e8 100644 --- a/types/angular-gridster/index.d.ts +++ b/types/angular-gridster/index.d.ts @@ -6,7 +6,8 @@ import * as angular from "angular"; -export default "gridster"; +declare const exportedString: "gridster"; +export default exportedString; declare module "angular" { namespace gridster { diff --git a/types/angular-loading-bar/angular-loading-bar-tests.ts b/types/angular-loading-bar/angular-loading-bar-tests.ts index 15435381f9..55fbdde2a0 100644 --- a/types/angular-loading-bar/angular-loading-bar-tests.ts +++ b/types/angular-loading-bar/angular-loading-bar-tests.ts @@ -1,5 +1,4 @@ - var app = angular.module('testModule', ['angular-loading-bar']); class TestController { @@ -14,10 +13,12 @@ class TestController { app.controller('TestController', TestController); -var barConfig: angular.loadingBar.ILoadingBarProvider[] = []; -barConfig.push({ - includeSpinner: true, - includeBar: true, - spinnerTemplate: 'template', - latencyThreshold: 100 -}); +var barConfig: angular.loadingBar.ILoadingBarProvider; + +barConfig.includeSpinner = false; +barConfig.includeBar = false; +barConfig.spinnerTemplate = 'someOtherTemplateString'; +barConfig.latencyThreshold = 70; +barConfig.startSize = 0.05; +barConfig.loadingBarTemplate = 'anotherTemplateString'; +barConfig.autoIncrement = false; diff --git a/types/angular-loading-bar/index.d.ts b/types/angular-loading-bar/index.d.ts index 1639ab115b..61717152de 100644 --- a/types/angular-loading-bar/index.d.ts +++ b/types/angular-loading-bar/index.d.ts @@ -1,48 +1,94 @@ // Type definitions for angular-loading-bar // Project: https://github.com/chieffancypants/angular-loading-bar -// Definitions by: Stephen Lautier +// Definitions by: Stephen Lautier +// Tyrone Dougherty // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 /// +declare var _: string; +export = _; + import * as angular from 'angular'; declare module 'angular' { - export namespace loadingBar { + export namespace loadingBar { - interface ILoadingBarProvider { - /** - * Turn the spinner on or off - */ - includeSpinner?: boolean; + interface ILoadingBarProvider { + /** + * Turn the spinner on or off + */ + includeSpinner?: boolean; - /** - * Turn the loading bar on or off - */ - includeBar?: boolean; + /** + * Turn the loading bar on or off + */ + includeBar?: boolean; - /** - * HTML template - */ - spinnerTemplate?: string; + /** + * HTML template + */ + spinnerTemplate?: string; - /** - * Latency Threshold - */ - latencyThreshold?: number; - /** - * HTML element selector of parent - */ - parentSelector?: string; - } - } + /** + * Loading bar template + */ + loadingBarTemplate?: string; - interface IRequestShortcutConfig { - /** - * Indicates that the loading bar should be hidden. - */ - ignoreLoadingBar?: boolean; - } + /** + * Latency Threshold + */ + latencyThreshold?: number; + /** + * HTML element selector of parent + */ + parentSelector?: string; + + /** + * Starting size + */ + startSize?: number; + + /** + * Give illusion that there's always progress + */ + autoIncrement?: boolean; + + /** + * Broadcast the start event + */ + start(): void; + + /** + * Set the percentage completed + * @param {number} n - number between 0 and 1 + */ + set(n: number): void; + + /** + * Get the percentage completed + * @returns {number} + */ + status(): number; + + /** + * Increment the loading bar + */ + inc(): void; + + /** + * Complete the loading bar + */ + complete(): void; + } + } + + interface IRequestShortcutConfig { + /** + * Indicates that the loading bar should be hidden. + */ + ignoreLoadingBar?: boolean; + } } diff --git a/types/angular-strap/angular-strap-tests.ts b/types/angular-strap/angular-strap-tests.ts index 64e51a238b..29432ee069 100644 --- a/types/angular-strap/angular-strap-tests.ts +++ b/types/angular-strap/angular-strap-tests.ts @@ -1,5 +1,4 @@ namespace angularStrapTests { - import ngStrap = mgcrea.ngStrap; /////////////////////////////////////////////////////////////////////////// @@ -7,9 +6,8 @@ namespace angularStrapTests { /////////////////////////////////////////////////////////////////////////// namespace modalTests { - interface IDemoCtrlScope extends ngStrap.modal.IModalScope { - showModal: () => void; + showModal(): void; } angular.module('demoApp') @@ -17,23 +15,22 @@ namespace angularStrapTests { .controller('demoCtrl', demoCtrl); function demoCtrl($scope: IDemoCtrlScope, - $modal: ngStrap.modal.IModalService): void { - - var myModalOptions: ngStrap.modal.IModalOptions = {}; + $modal: ngStrap.modal.IModalService): void { + const myModalOptions: ngStrap.modal.IModalOptions = {}; myModalOptions.title = 'My Title'; myModalOptions.content = 'Hello Modal
This is a multiline message!'; myModalOptions.show = true; - var myModal = $modal(myModalOptions); + const myModal = $modal(myModalOptions); - var myOtherModalOptions: ngStrap.modal.IModalOptions = {}; + const myOtherModalOptions: ngStrap.modal.IModalOptions = {}; myOtherModalOptions.scope = $scope; myOtherModalOptions.template = 'modal/docs/modal.demo.tpl.html'; myOtherModalOptions.show = false; - myOtherModalOptions.controller = demoCtrl; + myOtherModalOptions.controller = demoCtrl; myOtherModalOptions.controllerAs = "ctrl"; - var myOtherModal = $modal(myOtherModalOptions); + const myOtherModal = $modal(myOtherModalOptions); $scope.showModal = (): void => { myOtherModal.$promise.then(myOtherModal.show); @@ -41,39 +38,36 @@ namespace angularStrapTests { } function $modalConfig($modalProvider: ngStrap.modal.IModalProvider): void { - var defaults: ngStrap.modal.IModalOptions = { + const defaults: ngStrap.modal.IModalOptions = { animation: 'am-flip-x' - } + }; angular.extend($modalProvider.defaults, defaults); } } - /////////////////////////////////////////////////////////////////////////// // Aside /////////////////////////////////////////////////////////////////////////// namespace asideTests { - angular.module('demoApp') .config($asideConfig) .controller('demoCtrl', demoCtrl); function demoCtrl($scope: ngStrap.aside.IAsideScope, - $aside: ngStrap.aside.IAsideService): void { - - var myAsideOptions: ngStrap.aside.IAsideOptions = {}; + $aside: ngStrap.aside.IAsideService): void { + const myAsideOptions: ngStrap.aside.IAsideOptions = {}; myAsideOptions.title = 'My Title'; myAsideOptions.content = 'My content'; myAsideOptions.show = true; - var myAside = $aside(myAsideOptions); + const myAside = $aside(myAsideOptions); - var myOtherAsideOptions: ngStrap.aside.IAsideOptions = {}; + const myOtherAsideOptions: ngStrap.aside.IAsideOptions = {}; myOtherAsideOptions.scope = $scope; myOtherAsideOptions.template = 'aside/docs/aside.demo.tpl.html'; - var myOtherAside = $aside(); + const myOtherAside = $aside(); myOtherAside.$promise.then(() => { myOtherAside.show(); @@ -81,7 +75,7 @@ namespace angularStrapTests { } function $asideConfig($asideProvider: ngStrap.aside.IAsideProvider): void { - var defaults: ngStrap.aside.IAsideOptions = {}; + const defaults: ngStrap.aside.IAsideOptions = {}; defaults.animation = 'am-fadeAndSlideLeft'; defaults.placement = 'left'; @@ -89,91 +83,84 @@ namespace angularStrapTests { } } - /////////////////////////////////////////////////////////////////////////// // Alert /////////////////////////////////////////////////////////////////////////// namespace alertTests { - angular.module('demoApp') .config($alertConfig) .controller('demoCtrl', demoCtrl); function demoCtrl($scope: ngStrap.alert.IAlertScope, - $alert: ngStrap.alert.IAlertService): void { - - var options: ngStrap.alert.IAlertOptions = {}; + $alert: ngStrap.alert.IAlertService): void { + const options: ngStrap.alert.IAlertOptions = {}; options.title = 'Holy guacamole!'; options.content = 'Best check yo self, you\'re not looking too good.'; options.placement = 'top'; options.type = 'info'; options.show = true; - var myAlert = $alert(); + const myAlert = $alert(); } function $alertConfig($alertProvider: ngStrap.alert.IAlertProvider): void { - var defaults: ngStrap.alert.IAlertOptions = {}; + const defaults: ngStrap.alert.IAlertOptions = {}; defaults.animation = 'am-fade-and-slide-top'; defaults.placement = 'top'; angular.extend($alertProvider.defaults, defaults); - }; + } } - /////////////////////////////////////////////////////////////////////////// // Tooltip /////////////////////////////////////////////////////////////////////////// namespace tooltipTests { - angular.module('demoApp') .config($tooltipConfig) .controller('demoDrct', demoDrct); function demoDrct($tooltip: ngStrap.tooltip.ITooltipService): ng.IDirective { - var drct: ng.IDirective = {}; + const drct: ng.IDirective = {}; drct.restrict = 'EA'; drct.link = link; return drct; function link(scope: ng.IScope, elem: ng.IAugmentedJQuery, attrs: ng.IAttributes): void { - var options: ngStrap.tooltip.ITooltipOptions = {}; + const options: ngStrap.tooltip.ITooltipOptions = {}; options.title = 'My Title'; $tooltip(elem, options); } } function $tooltipConfig($tooltipProvider: ngStrap.tooltip.ITooltipProvider): void { - var defaults: ngStrap.tooltip.ITooltipOptions = {}; + const defaults: ngStrap.tooltip.ITooltipOptions = {}; defaults.animation = 'am-flip-x'; defaults.trigger = 'hover'; angular.extend($tooltipProvider.defaults, defaults); - }; + } } - /////////////////////////////////////////////////////////////////////////// // Popover /////////////////////////////////////////////////////////////////////////// namespace popoverTests { - angular.module('demoApp') .config($popoverConfig) .controller('demoDrct', demoDrct); function demoDrct($popover: ngStrap.popover.IPopoverService): ng.IDirective { - var drct: ng.IDirective = {}; + const drct: ng.IDirective = {}; drct.restrict = 'EA'; drct.link = link; return drct; function link(scope: ng.IScope, elem: ng.IAugmentedJQuery, attrs: ng.IAttributes): void { - var options: ngStrap.tooltip.ITooltipOptions = {}; + const options: ngStrap.tooltip.ITooltipOptions = {}; options.title = 'My Title'; $popover(elem, options); @@ -181,84 +168,76 @@ namespace angularStrapTests { } function $popoverConfig($popoverProvider: ngStrap.popover.IPopoverProvider): void { - var defaults: ngStrap.tooltip.ITooltipOptions = {} + const defaults: ngStrap.tooltip.ITooltipOptions = {}; defaults.animation = 'am-flip-x'; defaults.trigger = 'hover'; angular.extend($popoverProvider.defaults, defaults); - }; + } } - /////////////////////////////////////////////////////////////////////////// // Typeahead /////////////////////////////////////////////////////////////////////////// namespace typeaheadTests { - angular.module('myApp') .config($typeaheadConfig); function $typeaheadConfig($typeaheadProvider: ngStrap.typeahead.ITypeaheadProvider) { - var defaults: ngStrap.typeahead.ITypeaheadOptions = {} - defaults.animation = 'am-flip-x'; - defaults.minLength = 2; - defaults.limit = 8; + const defaults: ngStrap.typeahead.ITypeaheadOptions = {}; + defaults.animation = 'am-flip-x'; + defaults.minLength = 2; + defaults.limit = 8; - angular.extend($typeaheadProvider.defaults, defaults); + angular.extend($typeaheadProvider.defaults, defaults); } } - /////////////////////////////////////////////////////////////////////////// // Datepicker /////////////////////////////////////////////////////////////////////////// namespace datepickerTests { - angular.module('myApp') .config($datepickerConfig); function $datepickerConfig($datepickerProvider: ngStrap.datepicker.IDatepickerProvider): void { - var defaults: ngStrap.datepicker.IDatepickerOptions = {}; + const defaults: ngStrap.datepicker.IDatepickerOptions = {}; defaults.dateFormat = 'dd/MM/yyyy'; defaults.startWeek = 1; angular.extend($datepickerProvider.defaults, defaults); - }; + } } - /////////////////////////////////////////////////////////////////////////// // Timepicker /////////////////////////////////////////////////////////////////////////// namespace timepickerTests { - angular.module('myApp') .config($timepickerConfig); function $timepickerConfig($timepickerProvider: ngStrap.timepicker.ITimepickerProvider): void { - var defaults: ngStrap.timepicker.ITimepickerOptions = {}; + const defaults: ngStrap.timepicker.ITimepickerOptions = {}; defaults.timeFormat = 'HH:mm'; defaults.length = 7; angular.extend($timepickerProvider.defaults, defaults); - }; + } } - /////////////////////////////////////////////////////////////////////////// // Select /////////////////////////////////////////////////////////////////////////// namespace selectTests { - angular.module('myApp') .config($selectConfig); function $selectConfig($selectProvider: ngStrap.select.ISelectProvider): void { - var defaults: ngStrap.select.ISelectOptions = {}; + const defaults: ngStrap.select.ISelectOptions = {}; defaults.animation = 'am-flip-x'; defaults.sort = false; @@ -266,21 +245,19 @@ namespace angularStrapTests { } } - /////////////////////////////////////////////////////////////////////////// // Tabs /////////////////////////////////////////////////////////////////////////// namespace tabTests { - angular.module('myApp') .config($tabConfig); function $tabConfig($tabProvider: ngStrap.tab.ITabProvider) { - var defaults: ngStrap.tab.ITabOptions = {}; - defaults.animation = 'am-flip-x'; + const defaults: ngStrap.tab.ITabOptions = {}; + defaults.animation = 'am-flip-x'; - angular.extend($tabProvider.defaults, defaults); + angular.extend($tabProvider.defaults, defaults); } } @@ -289,89 +266,80 @@ namespace angularStrapTests { /////////////////////////////////////////////////////////////////////////// namespace collapseTests { - angular.module('myApp') .config($collapseConfig); - function $collapseConfig($collapseProvider: ngStrap.collapse.ICollapseProvider):void { - var defaults: ngStrap.collapse.ICollapseOptions = {}; - defaults.animation = 'am-flip-x'; + function $collapseConfig($collapseProvider: ngStrap.collapse.ICollapseProvider): void { + const defaults: ngStrap.collapse.ICollapseOptions = {}; + defaults.animation = 'am-flip-x'; - angular.extend($collapseProvider.defaults, defaults); - } + angular.extend($collapseProvider.defaults, defaults); + } } - /////////////////////////////////////////////////////////////////////////// // Dropdown /////////////////////////////////////////////////////////////////////////// namespace dropdownTests { - angular.module('myApp') .config($dropdownConfig); - function $dropdownConfig($dropdownProvider: ngStrap.dropdown.IDropdownProvider):void { - var defaults: ngStrap.dropdown.IDropdownOptions = {}; - defaults.animation = 'am-flip-x'; - defaults.trigger = 'hover'; + function $dropdownConfig($dropdownProvider: ngStrap.dropdown.IDropdownProvider): void { + const defaults: ngStrap.dropdown.IDropdownOptions = {}; + defaults.animation = 'am-flip-x'; + defaults.trigger = 'hover'; - angular.extend($dropdownProvider.defaults, defaults); + angular.extend($dropdownProvider.defaults, defaults); } } - /////////////////////////////////////////////////////////////////////////// // Navbar /////////////////////////////////////////////////////////////////////////// namespace navbarTests { - angular.module('myApp') .config($navbarConfig); - function $navbarConfig($navbarProvider: ngStrap.navbar.INavbarProvider):void { - var defaults: ngStrap.navbar.INavbarOptions = {}; - defaults.activeClass = 'in'; + function $navbarConfig($navbarProvider: ngStrap.navbar.INavbarProvider): void { + const defaults: ngStrap.navbar.INavbarOptions = {}; + defaults.activeClass = 'in'; - angular.extend($navbarProvider.defaults, defaults); + angular.extend($navbarProvider.defaults, defaults); } } - /////////////////////////////////////////////////////////////////////////// // Scrollspy /////////////////////////////////////////////////////////////////////////// namespace scrollspyTests { - angular.module('myApp') .config($scrollspyConfig); - function $scrollspyConfig($scrollspyProvider: ngStrap.scrollspy.IScrollspyProvider):void { - var defaults: ngStrap.scrollspy.IScrollspyOptions = {}; - defaults.offset = 0; - defaults.target = 'my-selector'; + function $scrollspyConfig($scrollspyProvider: ngStrap.scrollspy.IScrollspyProvider): void { + const defaults: ngStrap.scrollspy.IScrollspyOptions = {}; + defaults.offset = 0; + defaults.target = 'my-selector'; - angular.extend($scrollspyProvider.defaults, defaults); + angular.extend($scrollspyProvider.defaults, defaults); } } - /////////////////////////////////////////////////////////////////////////// // Affix /////////////////////////////////////////////////////////////////////////// namespace affixTests { - angular.module('myApp') .config($affixConfig); - function $affixConfig($affixProvider: ngStrap.affix.IAffixProvider):void { - var defaults: ngStrap.affix.IAffixOptions = {}; - defaults.offsetTop = 100; + function $affixConfig($affixProvider: ngStrap.affix.IAffixProvider): void { + const defaults: ngStrap.affix.IAffixOptions = {}; + defaults.offsetTop = 100; - angular.extend($affixProvider.defaults, defaults); + angular.extend($affixProvider.defaults, defaults); } } } diff --git a/types/angular-strap/index.d.ts b/types/angular-strap/index.d.ts index 9aebcdf480..70ed41a443 100644 --- a/types/angular-strap/index.d.ts +++ b/types/angular-strap/index.d.ts @@ -1,24 +1,20 @@ -// Type definitions for angular-strap v2.3.x +// Type definitions for angular-strap 2.3 // Project: http://mgcrea.github.io/angular-strap/ // Definitions by: Sam Herrmann +// Matthias Kannwischer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 - /// declare namespace mgcrea.ngStrap { - /////////////////////////////////////////////////////////////////////////// // Modal // see http://mgcrea.github.io/angular-strap/#/modals /////////////////////////////////////////////////////////////////////////// namespace modal { - - interface IModalService { - (config?: IModalOptions): IModal; - } + type IModalService = (config?: IModalOptions) => IModal; interface IModalProvider { defaults: IModalOptions; @@ -26,9 +22,9 @@ declare namespace mgcrea.ngStrap { interface IModal { $promise: ng.IPromise; - show: () => void; - hide: () => void; - toggle: () => void; + show(): void; + hide(): void; + toggle(): void; } interface IModalOptions { @@ -44,37 +40,34 @@ declare namespace mgcrea.ngStrap { container?: string | boolean; controller?: any; controllerAs?: string; + resolve?: any; + locals?: any; template?: string; templateUrl?: string; contentTemplate?: string; - prefixClass?: string; prefixEvent?: string; id?: string; scope?: ng.IScope; - onBeforeHide?: (modal: IModal) => void; - onHide?: (modal: IModal) => void; - onBeforeShow?: (modal: IModal) => void; - onShow?: (modal: IModal) => void; + onShow?(modal: IModal): void; + onBeforeShow?(modal: IModal): void; + onHide?(modal: IModal): void; + onBeforeHide?(modal: IModal): void; } interface IModalScope extends ng.IScope { - $show: () => void; - $hide: () => void; - $toggle: () => void; + $show(): void; + $hide(): void; + $toggle(): void; } } - /////////////////////////////////////////////////////////////////////////// // Aside // see http://mgcrea.github.io/angular-strap/#/asides /////////////////////////////////////////////////////////////////////////// namespace aside { - - interface IAsideService { - (config?: IAsideOptions): IAside; - } + type IAsideService = (config?: IAsideOptions) => IAside; interface IAsideProvider { defaults: IAsideOptions; @@ -82,9 +75,9 @@ declare namespace mgcrea.ngStrap { interface IAside { $promise: ng.IPromise; - show: () => void; - hide: () => void; - toggle: () => void; + show(): void; + hide(): void; + toggle(): void; } interface IAsideOptions { @@ -97,30 +90,32 @@ declare namespace mgcrea.ngStrap { keyboard?: boolean; show?: boolean; container?: string | boolean; + controller?: any; + controllerAs?: string; template?: string; + templateUrl?: string; contentTemplate?: string; scope?: ng.IScope; + onShow?(aside: IAside): void; + onBeforeShow?(aside: IAside): void; + onHide?(aside: IAside): void; + onBeforeHide?(aside: IAside): void; } interface IAsideScope extends ng.IScope { - $show: () => void; - $hide: () => void; - $toggle: () => void; + $show(): void; + $hide(): void; + $toggle(): void; } } - - /////////////////////////////////////////////////////////////////////////// // Alert // see http://mgcrea.github.io/angular-strap/#/alerts /////////////////////////////////////////////////////////////////////////// namespace alert { - - interface IAlertService { - (config?: IAlertOptions): IAlert; - } + type IAlertService = (config?: IAlertOptions) => IAlert; interface IAlertProvider { defaults: IAlertOptions; @@ -128,9 +123,9 @@ declare namespace mgcrea.ngStrap { interface IAlert { $promise: ng.IPromise; - show: () => void; - hide: () => void; - toggle: () => void; + show(): void; + hide(): void; + toggle(): void; } interface IAlertOptions { @@ -139,32 +134,34 @@ declare namespace mgcrea.ngStrap { title?: string; content?: string; type?: string; - keyboard?: boolean; show?: boolean; container?: string | boolean; + controller?: any; + controllerAs?: string; template?: string; + templateUrl?: string; duration?: number | boolean; dismissable?: boolean; + onShow?(alert: IAlert): void; + onBeforeShow?(alert: IAlert): void; + onHide?(alert: IAlert): void; + onBeforeHide?(alert: IAlert): void; } interface IAlertScope extends ng.IScope { - $show: () => void; - $hide: () => void; - $toggle: () => void; + $show(): void; + $hide(): void; + $toggle(): void; } } - /////////////////////////////////////////////////////////////////////////// // Tooltip // see http://mgcrea.github.io/angular-strap/#/tooltips /////////////////////////////////////////////////////////////////////////// namespace tooltip { - - interface ITooltipService { - (element: ng.IAugmentedJQuery, config?: ITooltipOptions): ITooltip; - } + type ITooltipService = (element: ng.IAugmentedJQuery, config?: ITooltipOptions) => ITooltip; interface ITooltipProvider { defaults: ITooltipOptions; @@ -172,9 +169,9 @@ declare namespace mgcrea.ngStrap { interface ITooltip { $promise: ng.IPromise; - show: () => void; - hide: () => void; - toggle: () => void; + show(): void; + hide(): void; + toggle(): void; } interface ITooltipOptions { @@ -187,31 +184,32 @@ declare namespace mgcrea.ngStrap { container?: string | boolean; target?: string | ng.IAugmentedJQuery | boolean; template?: string; - contentTemplate?: string; + templateUrl?: string; + titleTemplate?: string; prefixEvent?: string; id?: string; + onShow?(tooltip: ITooltip): void; + onBeforeShow?(tooltip: ITooltip): void; + onHide?(tooltip: ITooltip): void; + onBeforeHide?(tooltip: ITooltip): void; viewport?: string | { selector: string; padding: string | number }; } interface ITooltipScope extends ng.IScope { - $show: () => void; - $hide: () => void; - $toggle: () => void; - $setEnabled: (isEnabled: boolean) => void; + $show(): void; + $hide(): void; + $toggle(): void; + $setEnabled(isEnabled: boolean): void; } } - /////////////////////////////////////////////////////////////////////////// // Popover // see http://mgcrea.github.io/angular-strap/#/popovers /////////////////////////////////////////////////////////////////////////// namespace popover { - - interface IPopoverService { - (element: ng.IAugmentedJQuery, config?: IPopoverOptions): IPopover; - } + type IPopoverService = (element: ng.IAugmentedJQuery, config?: IPopoverOptions) => IPopover; interface IPopoverProvider { defaults: IPopoverOptions; @@ -219,9 +217,9 @@ declare namespace mgcrea.ngStrap { interface IPopover { $promise: ng.IPromise; - show: () => void; - hide: () => void; - toggle: () => void; + show(): void; + hide(): void; + toggle(): void; } interface IPopoverOptions { @@ -235,31 +233,31 @@ declare namespace mgcrea.ngStrap { container?: string | boolean; target?: string | ng.IAugmentedJQuery | boolean; template?: string; + templateUrl?: string; contentTemplate?: string; autoClose?: boolean; id?: string; + onShow?(popover: IPopover): void; + onBeforeShow?(popover: IPopover): void; + onHide?(popover: IPopover): void; + onBeforeHide?(popover: IPopover): void; viewport?: string | { selector: string; padding: string | number }; } interface IPopoverScope extends ng.IScope { - $show: () => void; - $hide: () => void; - $toggle: () => void; + $show(): void; + $hide(): void; + $toggle(): void; } } - - /////////////////////////////////////////////////////////////////////////// // Typeahead // see http://mgcrea.github.io/angular-strap/#/typeaheads /////////////////////////////////////////////////////////////////////////// namespace typeahead { - - interface ITypeaheadService { - (element: ng.IAugmentedJQuery, controller: any, config?: ITypeaheadOptions): ITypeahead; - } + type ITypeaheadService = (element: ng.IAugmentedJQuery, controller: any, config?: ITypeaheadOptions) => ITypeahead; interface ITypeaheadProvider { defaults: ITypeaheadOptions; @@ -267,9 +265,9 @@ declare namespace mgcrea.ngStrap { interface ITypeahead { $promise: ng.IPromise; - show: () => void; - hide: () => void; - toggle: () => void; + show(): void; + hide(): void; + toggle(): void; } interface ITypeaheadOptions { @@ -286,34 +284,36 @@ declare namespace mgcrea.ngStrap { comparator?: string; id?: string; watchOptions?: boolean; + trimValue?: boolean; + onShow?(typeahead: ITypeahead): void; + onBeforeShow?(typeahead: ITypeahead): void; + onHide?(typeahead: ITypeahead): void; + onBeforeHide?(typeahead: ITypeahead): void; + onSelect?(typeahead: ITypeahead): void; } } - /////////////////////////////////////////////////////////////////////////// // Datepicker // see http://mgcrea.github.io/angular-strap/#/datepickers /////////////////////////////////////////////////////////////////////////// namespace datepicker { - - interface IDatepickerService { - (element: ng.IAugmentedJQuery, controller: any, config?: IDatepickerOptions): IDatepicker; - } + type IDatepickerService = (element: ng.IAugmentedJQuery, controller: any, config?: IDatepickerOptions) => IDatepicker; interface IDatepickerProvider { defaults: IDatepickerOptions; } interface IDatepicker { - update: (date: Date) => void; - updateDisabledDates: (dateRanges: IDatepickerDateRange[]) => void; - select: (dateConstructorArg: string | number | number[], keep: boolean) => void; - setMode: (mode: any) => void; - int: () => void; - destroy: () => void; - show: () => void; - hide: () => void; + update(date: Date): void; + updateDisabledDates(dateRanges: IDatepickerDateRange[]): void; + select(dateConstructorArg: string | number | number[], keep: boolean): void; + setMode(mode: any): void; + int(): void; + destroy(): void; + show(): void; + hide(): void; } interface IDatepickerDateRange { @@ -329,6 +329,10 @@ declare namespace mgcrea.ngStrap { delay?: number | { show: number; hide: number }; container?: string | boolean; template?: string; + onShow?(datepicker: IDatepicker): void; + onBeforeShow?(datepicker: IDatepicker): void; + onHide?(datepicker: IDatepicker): void; + onBeforeHide?(datepicker: IDatepicker): void; dateFormat?: string; modelDateFormat?: string; dateType?: string; @@ -348,24 +352,19 @@ declare namespace mgcrea.ngStrap { } } - /////////////////////////////////////////////////////////////////////////// // Timepicker // see http://mgcrea.github.io/angular-strap/#/timepickers /////////////////////////////////////////////////////////////////////////// namespace timepicker { - - interface ITimepickerService { - (element: ng.IAugmentedJQuery, controller: any, config?: ITimepickerOptions): ITimepicker; - } + type ITimepickerService = (element: ng.IAugmentedJQuery, controller: any, config?: ITimepickerOptions) => ITimepicker; interface ITimepickerProvider { defaults: ITimepickerOptions; } interface ITimepicker { - } interface ITimepickerOptions { @@ -376,6 +375,10 @@ declare namespace mgcrea.ngStrap { delay?: number | { show: number; hide: number; }; container?: string | boolean; template?: string; + onShow?(timepicker: ITimepicker): void; + onBeforeShow?(timepicker: ITimepicker): void; + onHide?(timepicker: ITimepicker): void; + onBeforeHide?(timepicker: ITimepicker): void; timeFormat?: string; modelTimeFormat?: string; timeType?: string; @@ -394,7 +397,6 @@ declare namespace mgcrea.ngStrap { } } - /////////////////////////////////////////////////////////////////////////// // Button // see http://mgcrea.github.io/angular-strap/#/buttons @@ -402,28 +404,24 @@ declare namespace mgcrea.ngStrap { // No definitions for this module - /////////////////////////////////////////////////////////////////////////// // Select // see http://mgcrea.github.io/angular-strap/#/selects /////////////////////////////////////////////////////////////////////////// namespace select { - - interface ISelectService { - (element: ng.IAugmentedJQuery, controller: any, config: ISelectOptions): ISelect; - } + type ISelectService = (element: ng.IAugmentedJQuery, controller: any, config: ISelectOptions) => ISelect; interface ISelectProvider { defaults: ISelectOptions; } interface ISelect { - update: (matches: any) => void; - active: (index: number) => number; - select: (index: number) => void; - show: () => void; - hide: () => void; + update(matches: any): void; + active(index: number): number; + select(index: number): void; + show(): void; + hide(): void; } interface ISelectOptions { @@ -434,6 +432,11 @@ declare namespace mgcrea.ngStrap { delay?: number | { show: number; hide: number; }; container?: string | boolean; template?: string; + toggle?: boolean; + onShow?(select: ISelect): void; + onBeforeShow?(select: ISelect): void; + onHide?(select: ISelect): void; + onBeforeHide?(select: ISelect): void; multiple?: boolean; allNoneButtons?: boolean; allText?: string; @@ -453,7 +456,6 @@ declare namespace mgcrea.ngStrap { /////////////////////////////////////////////////////////////////////////// namespace tab { - interface ITabProvider { defaults: ITabOptions; } @@ -471,14 +473,12 @@ declare namespace mgcrea.ngStrap { } } - /////////////////////////////////////////////////////////////////////////// // Collapses // see http://mgcrea.github.io/angular-strap/#/collapses /////////////////////////////////////////////////////////////////////////// namespace collapse { - interface ICollapseProvider { defaults: ICollapseOptions; } @@ -492,26 +492,22 @@ declare namespace mgcrea.ngStrap { } } - /////////////////////////////////////////////////////////////////////////// // Dropdowsn // see http://mgcrea.github.io/angular-strap/#/dropdowns /////////////////////////////////////////////////////////////////////////// namespace dropdown { - interface IDropdownProvider { defaults: IDropdownOptions; } - interface IDropdownService { - (element: ng.IAugmentedJQuery, config: IDropdownOptions): IDropdown; - } + type IDropdownService = (element: ng.IAugmentedJQuery, config: IDropdownOptions) => IDropdown; interface IDropdown { - show: () => void; - hide: () => void; - destroy: () => void; + show(): void; + hide(): void; + destroy(): void; } interface IDropdownOptions { @@ -522,17 +518,20 @@ declare namespace mgcrea.ngStrap { delay?: number | { show: number; hide: number; }; container?: string | boolean; template?: string; + templateUrl?: string; + onShow?(dropdown: IDropdown): void; + onBeforeShow?(dropdown: IDropdown): void; + onHide?(dropdown: IDropdown): void; + onBeforeHide?(dropdown: IDropdown): void; } } - /////////////////////////////////////////////////////////////////////////// // Navbar // see http://mgcrea.github.io/angular-strap/#/navbars /////////////////////////////////////////////////////////////////////////// namespace navbar { - interface INavbarProvider { defaults: INavbarOptions; } @@ -547,27 +546,23 @@ declare namespace mgcrea.ngStrap { } } - /////////////////////////////////////////////////////////////////////////// // Scrollspy // see http://mgcrea.github.io/angular-strap/#/scrollspy /////////////////////////////////////////////////////////////////////////// namespace scrollspy { - interface IScrollspyProvider { defaults: IScrollspyOptions; } - interface IScrollspyService { - (element: ng.IAugmentedJQuery, options: IScrollspyOptions): IScrollspy; - } + type IScrollspyService = (element: ng.IAugmentedJQuery, options: IScrollspyOptions) => IScrollspy; interface IScrollspy { - checkOffsets: () => void; - trackElement: (target: any, source: any) => void; - untrackElement: (target: any, source: any) => void; - activate: (index: number) => void; + checkOffsets(): void; + trackElement(target: any, source: any): void; + untrackElement(target: any, source: any): void; + activate(index: number): void; } interface IScrollspyOptions { @@ -576,27 +571,23 @@ declare namespace mgcrea.ngStrap { } } - /////////////////////////////////////////////////////////////////////////// // Affix // see http://mgcrea.github.io/angular-strap/#/affix /////////////////////////////////////////////////////////////////////////// namespace affix { - interface IAffixProvider { defaults: IAffixOptions; } - interface IAffixService { - (element: ng.IAugmentedJQuery, options: IAffixOptions): IAffix; - } + type IAffixService = (element: ng.IAugmentedJQuery, options: IAffixOptions) => IAffix; interface IAffix { - init: () => void; - destroy: () => void; - checkPositionWithEventLoop: () => void; - checkPosition: () => void; + init(): void; + destroy(): void; + checkPositionWithEventLoop(): void; + checkPosition(): void; } interface IAffixOptions { diff --git a/types/angular-strap/tslint.json b/types/angular-strap/tslint.json new file mode 100644 index 0000000000..fc261a36d6 --- /dev/null +++ b/types/angular-strap/tslint.json @@ -0,0 +1,8 @@ +{ + "extends": "dtslint/dt.json" , + "rules": { //TODO + "interface-name": [true, "always-prefix"], + "no-empty-interface" : false, + "no-namespace" : false + } +} \ No newline at end of file diff --git a/types/angular-toastr/index.d.ts b/types/angular-toastr/index.d.ts index eddccb4021..21cf13cce2 100644 --- a/types/angular-toastr/index.d.ts +++ b/types/angular-toastr/index.d.ts @@ -8,6 +8,15 @@ import * as angular from 'angular'; +export type IToastBaseConfig = angular.toastr.IToastBaseConfig; +export type IToastContainerConfig = angular.toastr.IToastContainerConfig; +export type IToastConfig = angular.toastr.IToastConfig; +export type IToastrConfig = angular.toastr.IToastrConfig; +export type IToastScope = angular.toastr.IToastScope; +export type IToast = angular.toastr.IToast; +export type IToastOptions = angular.toastr.IToastOptions; +export type IToastrService = angular.toastr.IToastrService; + declare module 'angular' { export namespace toastr { interface IToastBaseConfig { diff --git a/types/angular-ui-bootstrap/index.d.ts b/types/angular-ui-bootstrap/index.d.ts index 844bd4d188..0c41fcc15c 100644 --- a/types/angular-ui-bootstrap/index.d.ts +++ b/types/angular-ui-bootstrap/index.d.ts @@ -62,6 +62,15 @@ declare module 'angular' { timezone?: string; } + type DatepickerCallback = (args: IDatepickerCellArgs) => T; + + type DatepickerMode = "day" | "month" | "year"; + + interface IDatepickerCellArgs { + date: Date; + mode: DatepickerMode; + } + interface IDatepickerConfig { /** * Format of day in month. @@ -110,7 +119,7 @@ declare module 'angular' { * * @default 'day' */ - datepickerMode?: string; + datepickerMode?: DatepickerMode; /** * Set a lower limit for mode. @@ -201,7 +210,21 @@ declare module 'angular' { * * @default {} */ - ngModelOptions?: IDropdownConfigNgOptions + ngModelOptions?: IDropdownConfigNgOptions; + + /** + * Defines an optional expression to disable visible options based on passing an object with date and current mode properties. + * + * @default null + */ + dateDisabled?: DatepickerCallback; + + /** + * Defines an optional expression to add classes based on passing an object with date and current mode properties. + * + * @default null + */ + customClass?: DatepickerCallback; } interface IDatepickerPopupConfig { diff --git a/types/angular-ui-router/index.d.ts b/types/angular-ui-router/index.d.ts index 4a1e147bf9..d1f2c43b48 100644 --- a/types/angular-ui-router/index.d.ts +++ b/types/angular-ui-router/index.d.ts @@ -8,7 +8,8 @@ import * as angular from 'angular'; -export default "ui.router"; +declare const exportedString: "ui.router"; +export default exportedString; export type IState = angular.ui.IState; export type IStateProvider = angular.ui.IStateProvider; diff --git a/types/angular/test/jquery3-merging-tests.ts b/types/angular/test/jquery3-merging-tests.ts index 510519466b..507c58b67e 100644 --- a/types/angular/test/jquery3-merging-tests.ts +++ b/types/angular/test/jquery3-merging-tests.ts @@ -1,9 +1,11 @@ import $ = require('jquery'); import * as angular from 'angular'; +// Fix TODOs once https://github.com/Microsoft/TypeScript/issues/18910 is fixed + function JQuery() { function indexSignature() { - $('p')[0]; // $ExpectType HTMLElement + $('p')[0]; // TODO: $ExpectType HTMLElement } function addClass() { @@ -12,7 +14,7 @@ function JQuery() { // $ExpectType JQuery $('p').addClass(function(index, currentClassName) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; // $ExpectType number index; @@ -35,7 +37,7 @@ function JQuery() { // $ExpectType JQuery $('#greatphoto').attr('alt', function(index, attr) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; // $ExpectType number index; @@ -47,7 +49,7 @@ function JQuery() { // $ExpectType JQuery $('#greatphoto').attr('width', function(index, attr) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; // $ExpectType number index; @@ -59,7 +61,7 @@ function JQuery() { // $ExpectType JQuery $('#greatphoto').attr('title', function(index, attr) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; // $ExpectType number index; @@ -69,7 +71,7 @@ function JQuery() { // $ExpectType JQuery $('#greatphoto').attr('title', function(index, attr) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; // $ExpectType number index; @@ -96,9 +98,9 @@ function JQuery() { // $ExpectType JQuery $('p').bind('myEvent', 'myData', function(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -106,15 +108,15 @@ function JQuery() { $('p').bind('myEvent', 'myData', function(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); // $ExpectType JQuery $('p').bind('myEvent', function(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -122,7 +124,7 @@ function JQuery() { $('p').bind('myEvent', function(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -133,15 +135,15 @@ function JQuery() { $('p').bind({ myEvent1: false, myEvent2(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }, myEvent3(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; } }); @@ -162,13 +164,13 @@ function JQuery() { } function off() { - function defaultContext_defaultData(this: HTMLElement, event: JQuery.Event) { } + function defaultContext_defaultData(this: HTMLElement, event: JQueryEventObject) { } - function defaultContext_customData(this: HTMLElement, event: JQuery.Event) { } + function defaultContext_customData(this: HTMLElement, event: JQueryEventObject) { } - function customContext_defaultData(this: I1, event: JQuery.Event) { } + function customContext_defaultData(this: I1, event: JQueryEventObject) { } - function customContext_customData(this: I1, event: JQuery.Event) { } + function customContext_customData(this: I1, event: JQueryEventObject) { } interface I1 { kind: 'I1'; } @@ -238,9 +240,9 @@ function JQuery() { // $ExpectType JQuery $('table').on('myEvent', 'td', 'myData', function(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -248,15 +250,15 @@ function JQuery() { $('table').on('myEvent', 'td', 'myData', function(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); // $ExpectType JQuery $('table').on('myEvent', null, 'myData', function(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -264,15 +266,15 @@ function JQuery() { $('table').on('myEvent', null, 'myData', function(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); // $ExpectType JQuery $('table').on('myEvent', 'td', function(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -280,7 +282,7 @@ function JQuery() { $('table').on('myEvent', 'td', function(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -289,9 +291,9 @@ function JQuery() { // $ExpectType JQuery $('table').on('myEvent', 3, function(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -299,15 +301,15 @@ function JQuery() { $('table').on('myEvent', 3, function(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); // $ExpectType JQuery $('table').on('myEvent', function(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -315,7 +317,7 @@ function JQuery() { $('table').on('myEvent', function(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -326,15 +328,15 @@ function JQuery() { $('table').on({ myEvent1: false, myEvent2(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }, myEvent3(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; } }, 'td', 'myData'); @@ -343,15 +345,15 @@ function JQuery() { $('table').on({ myEvent1: false, myEvent2(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }, myEvent3(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; } }, null, 'myData'); @@ -360,15 +362,15 @@ function JQuery() { $('table').on({ myEvent1: false, myEvent2(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }, myEvent3(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; } }, 'td'); @@ -377,15 +379,15 @@ function JQuery() { $('table').on({ myEvent1: false, myEvent2(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }, myEvent3(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; } }, 3); @@ -394,15 +396,15 @@ function JQuery() { $('table').on({ myEvent1: false, myEvent2(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }, myEvent3(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; } }); @@ -413,9 +415,9 @@ function JQuery() { // $ExpectType JQuery $('table').one('myEvent', 'td', 'myData', function(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -423,15 +425,15 @@ function JQuery() { $('table').one('myEvent', 'td', 'myData', function(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); // $ExpectType JQuery $('table').one('myEvent', null, 'myData', function(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -439,15 +441,15 @@ function JQuery() { $('table').one('myEvent', null, 'myData', function(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); // $ExpectType JQuery $('table').one('myEvent', 'td', function(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -455,7 +457,7 @@ function JQuery() { $('table').one('myEvent', 'td', function(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -464,9 +466,9 @@ function JQuery() { // $ExpectType JQuery $('table').one('myEvent', 3, function(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -474,15 +476,15 @@ function JQuery() { $('table').one('myEvent', 3, function(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); // $ExpectType JQuery $('table').one('myEvent', function(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -490,7 +492,7 @@ function JQuery() { $('table').one('myEvent', function(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; }); @@ -501,15 +503,15 @@ function JQuery() { $('table').one({ myEvent1: false, myEvent2(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }, myEvent3(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; } }, 'td', 'myData'); @@ -518,15 +520,15 @@ function JQuery() { $('table').one({ myEvent1: false, myEvent2(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }, myEvent3(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; } }, null, 'myData'); @@ -535,15 +537,15 @@ function JQuery() { $('table').one({ myEvent1: false, myEvent2(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }, myEvent3(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; } }, 'td'); @@ -552,15 +554,15 @@ function JQuery() { $('table').one({ myEvent1: false, myEvent2(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }, myEvent3(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; } }, 3); @@ -569,15 +571,15 @@ function JQuery() { $('table').one({ myEvent1: false, myEvent2(event) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; - // $ExpectType Event + // TODO: $ExpectType Event event; }, myEvent3(this: I1, event) { // $ExpectType I1 this; - // $ExpectType Event + // TODO: $ExpectType Event event; } }); @@ -589,7 +591,7 @@ function JQuery() { // $ExpectType JQuery $('p').removeClass(function(index, currentClassName) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; // $ExpectType number index; @@ -609,7 +611,7 @@ function JQuery() { // $ExpectType JQuery $('p').toggleClass(function(index, className, state) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; // $ExpectType number index; @@ -626,7 +628,7 @@ function JQuery() { // $ExpectType JQuery $('p').toggleClass(function(index, className, state) { - // $ExpectType HTMLElement + // TODO: $ExpectType HTMLElement this; // $ExpectType number index; diff --git a/types/angular/tslint.json b/types/angular/tslint.json index 77b236700e..b0c1e9007a 100644 --- a/types/angular/tslint.json +++ b/types/angular/tslint.json @@ -14,6 +14,7 @@ "max-line-length": false, "no-empty-interface": false, "no-namespace": false, + "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, "no-void-expression": false, "unified-signatures": false, diff --git a/types/apollo-codegen/apollo-codegen-tests.ts b/types/apollo-codegen/apollo-codegen-tests.ts new file mode 100644 index 0000000000..38d9733faf --- /dev/null +++ b/types/apollo-codegen/apollo-codegen-tests.ts @@ -0,0 +1,30 @@ +import { + downloadSchema, + generate, + introspectSchema, + printSchema +} from "apollo-codegen"; + +async function main() { + await downloadSchema( + "http://example.com/graphql", + "schema.json", + {}, + false, + "POST" + ); + + generate(["input.ts"], "schema.json", "types.ts", "typescript", "gql", { + passthroughCustomScalars: false, + customScalarsPrefix: "S", + addTypename: false, + namespace: "", + operationIdsPath: null, + generateOperationIds: false, + mergeInFieldsFromFragmentSpreads: false + }); + + await introspectSchema("schema.json", "schema.gql"); + + await printSchema("schema.in", "schema.out"); +} diff --git a/types/apollo-codegen/index.d.ts b/types/apollo-codegen/index.d.ts new file mode 100644 index 0000000000..a506f7475e --- /dev/null +++ b/types/apollo-codegen/index.d.ts @@ -0,0 +1,40 @@ +// Type definitions for apollo-codegen 0.16 +// Project: https://github.com/apollographql/apollo-codegen +// Definitions by: Bradley Ayers +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +export function downloadSchema( + url: string, + outputPath: string, + additionalHeaders: { [name: string]: string }, + insecure: boolean, + method: string +): Promise; + +export function introspectSchema( + schemaPath: string, + outputPath: string +): Promise; + +export function printSchema( + schemaPath: string, + outputPath: string +): Promise; + +export function generate( + inputPaths: string[], + schemaPath: string, + outputPath: string, + target: "json" | "swift" | "ts" | "typescript" | "flow" | "scala", + tagName: string, + options: { + passthroughCustomScalars: boolean; + customScalarsPrefix: string; + addTypename: boolean; + namespace: string; + operationIdsPath: string | null; + generateOperationIds: boolean; + mergeInFieldsFromFragmentSpreads: boolean; + } +): void; diff --git a/types/lambda-phi/tsconfig.json b/types/apollo-codegen/tsconfig.json similarity index 79% rename from types/lambda-phi/tsconfig.json rename to types/apollo-codegen/tsconfig.json index 9e7c941b7d..cc7c69d4f6 100644 --- a/types/lambda-phi/tsconfig.json +++ b/types/apollo-codegen/tsconfig.json @@ -4,7 +4,7 @@ "lib": [ "es6" ], - "noImplicitAny": false, + "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, "baseUrl": "../", @@ -13,11 +13,10 @@ ], "types": [], "noEmit": true, - "experimentalDecorators": true, "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", - "lambda-phi-tests.ts" + "apollo-codegen-tests.ts" ] } diff --git a/types/apollo-codegen/tslint.json b/types/apollo-codegen/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/apollo-codegen/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/applicationinsights-js/tslint.json b/types/applicationinsights-js/tslint.json index 4b24c7ab0a..e4be61c456 100644 --- a/types/applicationinsights-js/tslint.json +++ b/types/applicationinsights-js/tslint.json @@ -1,8 +1,9 @@ -{ +{ "extends": "dtslint/dt.json", "rules": { // All are TODOs "interface-name": false, + "no-declare-current-package": false, "no-internal-module": false, "no-mergeable-namespace": false, "no-single-declare-module": false, diff --git a/types/arcgis-js-api/index.d.ts b/types/arcgis-js-api/index.d.ts index 115d270add..5098cf63ad 100644 --- a/types/arcgis-js-api/index.d.ts +++ b/types/arcgis-js-api/index.d.ts @@ -1,13 +1,14 @@ -// Type definitions for ArcGIS API for JavaScript 4.4 +// Type definitions for ArcGIS API for JavaScript 4.5 // Project: http://js.arcgis.com // Definitions by: Esri // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 -interface HashMap { +interface HashMap { [index: string]: T; } -interface IPromise { +interface IPromise { always(callback?: (valueOrError: T) => IPromise | U | void): IPromise; cancel?(reason?: U, strict?: boolean): U; isCanceled?(): boolean; @@ -51,43 +52,951 @@ declare namespace __esri { protected _set(propertyName: string, value: T): this; } + + export type ItemCallback = (item: T, index: number) => void; + + export type ItemCompareCallback = (firstItem: T, secondItem: T) => number; + + export type ItemMapCallback = (item: T, index: number) => R; + + export type ItemReduceCallback = (previousValue: R, currentValue: T, index: number) => R; + + export type ItemTestCallback = (item: T, index: number) => boolean; + + interface Collection extends Evented {} + + type Constructor = new (...params: any[]) => T; + + interface Types { + key: string | ((obj: any) => string); + base: Constructor | Function; + typeMap: HashMap>; + } + + export class Collection extends Accessor { + constructor(values?: any[] | Collection); + + readonly length: number; + + add(item: T, index?: number): void; + addMany(items: T[] | Collection, index?: number): void; + clone(): Collection; + concat(value: T[] | Collection): Collection; + every(callback: ItemTestCallback): boolean; + filter(callback: ItemTestCallback): Collection; + find(callback: ItemTestCallback): T; + findIndex(callback: ItemTestCallback): number; + flatten(callback: ItemCallback): Collection; + forEach(callback: ItemCallback): void; + getItemAt(index: number): T; + includes(searchElement: T): boolean; + indexOf(searchElement: T, fromIndex?: number): number; + join(separator?: string): string; + lastIndexOf(searchElement: T, fromIndex?: number): number; + map(callback: ItemMapCallback): Collection; + pop(): T; + push(item: T): number; + reduce(callback: ItemReduceCallback, initialValue?: R): R; + reduceRight(callback: ItemReduceCallback, initialValue?: R): R; + remove(item: T): void; + removeAll(): void; + removeAt(index: number): any; + removeMany(items: T[] | Collection): T[]; + reorder(item: T, index: number): T; + reverse(): Collection; + shift(): T; + slice(begin?: number, end?: number): Collection; + some(callback: ItemCallback): boolean; + sort(compareFunction?: ItemCompareCallback): void; + splice(start: number, deleteCount: number, items: T[] | Collection): T[]; + toArray(): T[]; + unshift(...items: T[]): number; + + static isCollection(value: any | Collection): value is Collection; + + static ofType(type: Constructor | Types): new (items?: (T[] | Collection) | { items?: T[] | Collection }) => Collection; + } + + type CollectionProperties = T[] | Collection; + + + + type DateProperties = number | string | Date; + + + export type BaseDynamicLayerLayerviewCreateEventHandler = (event: BaseDynamicLayerLayerviewCreateEvent) => void; + + export type BaseDynamicLayerLayerviewDestroyEventHandler = (event: BaseDynamicLayerLayerviewDestroyEvent) => void; + + export type BaseElevationLayerLayerviewCreateEventHandler = (event: BaseElevationLayerLayerviewCreateEvent) => void; + + export type BaseElevationLayerLayerviewDestroyEventHandler = (event: BaseElevationLayerLayerviewDestroyEvent) => void; + + export type BaseTileLayerLayerviewCreateEventHandler = (event: BaseTileLayerLayerviewCreateEvent) => void; + + export type BaseTileLayerLayerviewDestroyEventHandler = (event: BaseTileLayerLayerviewDestroyEvent) => void; + + export type CSVLayerLayerviewCreateEventHandler = (event: CSVLayerLayerviewCreateEvent) => void; + + export type CSVLayerLayerviewDestroyEventHandler = (event: CSVLayerLayerviewDestroyEvent) => void; + + export type ElevationLayerLayerviewCreateEventHandler = (event: ElevationLayerLayerviewCreateEvent) => void; + + export type ElevationLayerLayerviewDestroyEventHandler = (event: ElevationLayerLayerviewDestroyEvent) => void; + + export type FeatureLayerLayerviewCreateEventHandler = (event: FeatureLayerLayerviewCreateEvent) => void; + + export type FeatureLayerLayerviewDestroyEventHandler = (event: FeatureLayerLayerviewDestroyEvent) => void; + + export type GeoRSSLayerLayerviewCreateEventHandler = (event: GeoRSSLayerLayerviewCreateEvent) => void; + + export type GeoRSSLayerLayerviewDestroyEventHandler = (event: GeoRSSLayerLayerviewDestroyEvent) => void; + + export type GraphicsLayerLayerviewCreateEventHandler = (event: GraphicsLayerLayerviewCreateEvent) => void; + + export type GraphicsLayerLayerviewDestroyEventHandler = (event: GraphicsLayerLayerviewDestroyEvent) => void; + + export type GroupLayerLayerviewCreateEventHandler = (event: GroupLayerLayerviewCreateEvent) => void; + + export type GroupLayerLayerviewDestroyEventHandler = (event: GroupLayerLayerviewDestroyEvent) => void; + + export type IdentityManagerCredentialCreateEventHandler = (event: IdentityManagerCredentialCreateEvent) => void; + + export type IdentityManagerCredentialsDestroyEventHandler = (event: IdentityManagerCredentialsDestroyEvent) => void; + + export type ImageryLayerLayerviewCreateEventHandler = (event: ImageryLayerLayerviewCreateEvent) => void; + + export type ImageryLayerLayerviewDestroyEventHandler = (event: ImageryLayerLayerviewDestroyEvent) => void; + + export type IntegratedMeshLayerLayerviewCreateEventHandler = (event: IntegratedMeshLayerLayerviewCreateEvent) => void; + + export type IntegratedMeshLayerLayerviewDestroyEventHandler = (event: IntegratedMeshLayerLayerviewDestroyEvent) => void; + + export type KMLLayerLayerviewCreateEventHandler = (event: KMLLayerLayerviewCreateEvent) => void; + + export type KMLLayerLayerviewDestroyEventHandler = (event: KMLLayerLayerviewDestroyEvent) => void; + + export type MapImageLayerLayerviewCreateEventHandler = (event: MapImageLayerLayerviewCreateEvent) => void; + + export type MapImageLayerLayerviewDestroyEventHandler = (event: MapImageLayerLayerviewDestroyEvent) => void; + + export type MapNotesLayerLayerviewCreateEventHandler = (event: MapNotesLayerLayerviewCreateEvent) => void; + + export type MapNotesLayerLayerviewDestroyEventHandler = (event: MapNotesLayerLayerviewDestroyEvent) => void; + + export type MapViewClickEventHandler = (event: MapViewClickEvent) => void; + + export type MapViewDoubleClickEventHandler = (event: MapViewDoubleClickEvent) => void; + + export type MapViewDragEventHandler = (event: MapViewDragEvent) => void; + + export type MapViewHoldEventHandler = (event: MapViewHoldEvent) => void; + + export type MapViewKeyDownEventHandler = (event: MapViewKeyDownEvent) => void; + + export type MapViewKeyUpEventHandler = (event: MapViewKeyUpEvent) => void; + + export type MapViewLayerviewCreateEventHandler = (event: MapViewLayerviewCreateEvent) => void; + + export type MapViewLayerviewDestroyEventHandler = (event: MapViewLayerviewDestroyEvent) => void; + + export type MapViewMouseWheelEventHandler = (event: MapViewMouseWheelEvent) => void; + + export type MapViewPointerDownEventHandler = (event: MapViewPointerDownEvent) => void; + + export type MapViewPointerMoveEventHandler = (event: MapViewPointerMoveEvent) => void; + + export type MapViewPointerUpEventHandler = (event: MapViewPointerUpEvent) => void; + + export type MapViewResizeEventHandler = (event: MapViewResizeEvent) => void; + + interface Basemap extends Accessor, Loadable, JSONSupport { + baseLayers: Collection; + id: string; + loaded: boolean; + portalItem: PortalItem; + referenceLayers: Collection; + thumbnailUrl: string; + title: string; + + clone(): Basemap; + } + + interface BasemapConstructor { + new(properties?: BasemapProperties): Basemap; + + + fromId(id: string): Basemap; + + fromJSON(json: any): Basemap; + } + + export const Basemap: BasemapConstructor; + + interface BasemapProperties extends LoadableProperties { + baseLayers?: CollectionProperties; + id?: string; + loaded?: boolean; + portalItem?: PortalItemProperties; + referenceLayers?: CollectionProperties; + thumbnailUrl?: string; + title?: string; + } + + interface Camera extends Accessor, JSONSupport { + fov: number; + heading: number; + position: Point; + tilt: number; + + clone(): Camera; + } + + interface CameraConstructor { + new(properties?: CameraProperties): Camera; + + fromJSON(json: any): Camera; + } + + export const Camera: CameraConstructor; + + interface CameraProperties { + fov?: number; + heading?: number; + position?: PointProperties; + tilt?: number; + } + + interface Color { + a: number; + b: number; + g: number; + r: number; + + clone(): Color; + setColor(color: string | number[] | any): Color; + toCss(includeAlpha?: boolean): string; + toHex(): string; + toJSON(): any; + toRgb(): number[]; + toRgba(): number[]; + } + + interface ColorConstructor { + + blendColors(start: Color, end: Color, weight: number, obj?: Color): Color; + new(color: string | number[] | any): Color; + fromArray(a: number[], obj?: Color): Color; + fromHex(color: string, obj?: Color): Color; + fromJSON(json: any): Color; + fromRgb(color: string, obj?: Color): Color; + fromString(str: string, obj?: Color): Color; + } + + export const Color: ColorConstructor; + + interface config { + geometryServiceUrl: string; + geoRSSServiceUrl: string; + kmlServiceUrl: string; + portalUrl: string; + request: configRequest; + workers: configWorkers; + } + + export const config: config; + + export interface configRequest { + corsDetection?: boolean; + corsDetectionTimeout?: number; + corsEnabledServers?: (string | configRequestCorsEnabledServers)[]; + forceProxy?: boolean; + httpsDomains?: string[]; + maxUrlLength?: number; + proxyUrl?: string; + timeout?: number; + useCors?: string | boolean; + useIdentity?: boolean; + proxyRules?: configRequestProxyRules[]; + } + + export interface configRequestCorsEnabledServers { + host?: string; + withCredentials?: boolean; + } + + export interface configRequestProxyRules { + proxyUrl?: string; + urlPrefix?: string; + } + + export interface configWorkers { + loaderConfig?: configWorkersLoaderConfig; + } + + export interface configWorkersLoaderConfig { + has?: any; + paths?: any; + map?: any; + packages?: any[]; + } + + + + export type WatchCallback = (newValue: any, oldValue: any, propertyName: string, target: Accessor) => void; + + export interface WatchHandle { + remove(): void; + } + + interface decorators { + aliasOf(propertyName: string): Function; + cast(propertyName: string): Function; + cast(classFunction: Function): Function; + declared(baseClass: T, ...mixinClasses: any[]): T; + property(propertyMetadata?: decoratorsPropertyPropertyMetadata): Function; + subclass(declaredClass?: string): Function; + } + + export const decorators: decorators; + + export interface decoratorsPropertyPropertyMetadata { + dependsOn?: string[]; + type?: Function; + cast?: Function; + readOnly?: boolean; + constructOnly?: boolean; + aliasOf?: string; + value?: any; + } + + + + + + + + + + + + + + interface Error { + details: any; + message: string; + name: string; + } + + export const Error: Error; + + export class Evented { + protected emit(type: string, event: any): void; + hasEventListener(type: string): boolean; + on(type: string, listener: EventHandler): IHandle; + } + + export type EventHandler = (event: any) => void; + + interface JSONSupport { + toJSON(): any; + } + + interface JSONSupportConstructor { + new(): JSONSupport; + + + fromJSON(json: any): any; + } + + export const JSONSupport: JSONSupportConstructor; + + interface lang { + clone(elem: any): any; + } + + export const lang: lang; + + interface Loadable { + loadError: Error; + loadStatus: string; + loadWarnings: any[]; + + always(callbackOrErrback?: Function): IPromise; + cancelLoad(): void; + isFulfilled(): boolean; + isRejected(): boolean; + isResolved(): boolean; + load(): IPromise; + otherwise(errback?: Function): IPromise; + then(callback?: Function, errback?: Function, progback?: Function): IPromise; + } + + interface LoadableConstructor { + new(): Loadable; + } + + export const Loadable: LoadableConstructor; + + interface LoadableProperties { + loadError?: Error; + loadStatus?: string; + loadWarnings?: any[]; + } + + interface corePromise { + always(callbackOrErrback?: Function): IPromise; + isFulfilled(): boolean; + isRejected(): boolean; + isResolved(): boolean; + otherwise(errback?: Function): IPromise; + then(callback?: Function, errback?: Function, progback?: Function): IPromise; + } + + interface corePromiseConstructor { + new(): corePromise; + } + + export const corePromise: corePromiseConstructor; + + interface promiseUtils { + eachAlways(promises: IPromise[] | any): IPromise | any; + filter(input: T[], predicate: FilterPredicateCallback): IPromise; + reject(error?: any): IPromise; + resolve(value?: T): IPromise; + } + + export const promiseUtils: promiseUtils; + + export interface EachAlwaysResult { + promise: IPromise; + value: any; + error: any; + } + + export type FilterPredicateCallback = (value: any, index: number) => IPromise; + + interface requireUtils { + when(moduleRequire: any, moduleNames: string[] | string): IPromise; + } + + export const requireUtils: requireUtils; + + interface urlUtils { + addProxyRule(rule: urlUtilsAddProxyRuleRule): number; + getProxyRule(url: string): any; + urlToObject(url: string): any; + } + + export const urlUtils: urlUtils; + + export interface urlUtilsAddProxyRuleRule { + proxyUrl: string; + urlPrefix: string; + } + + interface watchUtils { + init(obj: Accessor, propertyName: string | string[], callback: WatchCallback): WatchHandle; + on(obj: Accessor, propertyName: string, eventName: string, eventHandler: Function, attachedHandler?: EventAttachedCallback, detachedHandler?: EventAttachedCallback): WatchHandle; + once(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; + pausable(obj: Accessor, propertyName: string, callback?: WatchCallback): PausableWatchHandle; + watch(obj: Accessor, propertyName: string | string[], callback: WatchCallback): WatchHandle; + when(obj: Accessor, propertyName: string, callback: WatchCallback): WatchHandle; + whenDefined(obj: Accessor, propertyName: string, callback: WatchCallback): WatchHandle; + whenDefinedOnce(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; + whenFalse(obj: Accessor, propertyName: string, callback: WatchCallback): WatchHandle; + whenFalseOnce(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; + whenNot(obj: Accessor, propertyName: string, callback: WatchCallback): WatchHandle; + whenNotOnce(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; + whenOnce(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; + whenTrue(obj: Accessor, propertyName: string, callback: WatchCallback): WatchHandle; + whenTrueOnce(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; + whenUndefined(obj: Accessor, propertyName: string, callback: WatchCallback): WatchHandle; + whenUndefinedOnce(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; + } + + export const watchUtils: watchUtils; + + export type EventAttachedCallback = (target: any, propName: string, obj: Accessor, eventName: string) => void; + + export interface PausableWatchHandle { + remove(): void; + pause(): void; + resume(): void; + } + export interface PromisedWatchHandle extends IPromise { remove(): void; } - export type ItemCallback = (item: any, index: number) => void; - export type ItemCompareCallback = (firstItem: any, secondItem: any) => number; - - export type ItemMapCallback = (item: any, index: number) => any; - - export type ItemReduceCallback = (previousValue: any, currentValue: any, index: number) => any; - - export type ItemTestCallback = (item: any, index: number) => boolean; - - export interface PortalItemFetchRelatedItemsParams { - relationshipType: string; - direction?: string; + interface workers { + open(client: any, modulePath: string): IPromise; } - export interface PortalItemUpdateParams { - data: string | any; + export const workers: workers; + + interface Connection { + broadcast(methodName: string, data?: any, buffers?: ArrayBuffer[]): IPromise; + close(): void; + invoke(methodName: string, data?: any, buffers?: ArrayBuffer[]): IPromise; } - export interface PortalUserAddItemParams { - item: PortalItem; - data?: string | any; - folder?: PortalFolder; + interface ConnectionConstructor { + new(client: any, id: number): Connection; } - export interface PortalUserFetchItemsParams { - folder: PortalFolder; - num: number; - start: number; + export const Connection: ConnectionConstructor; + + interface Circle extends Polygon { + center: Point | number[]; + geodesic: boolean; + numberOfPoints: number; + radius: number; + radiusUnit: string; + + clone(): Circle; } - export interface PortalFeaturedGroups { - owner: string; - title: string; + interface CircleConstructor { + new(properties?: CircleProperties): Circle; + + fromJSON(json: any): Circle; + } + + export const Circle: CircleConstructor; + + interface CircleProperties extends PolygonProperties { + center?: PointProperties | number[]; + geodesic?: boolean; + numberOfPoints?: number; + radius?: number; + radiusUnit?: string; + } + + interface Extent extends Geometry { + center: Point; + height: number; + mmax: number; + mmin: number; + width: number; + xmax: number; + xmin: number; + ymax: number; + ymin: number; + zmax: number; + zmin: number; + + centerAt(point: Point): Extent; + clone(): Extent; + contains(geometry: Point | Extent): boolean; + equals(extent: Extent): boolean; + expand(factor: number): Extent; + intersection(extent: Extent): Extent; + intersects(geometry: Geometry): boolean; + normalize(): Extent[]; + offset(dx: number, dy: number, dz: number): Extent; + union(extent: Extent): Extent; + } + + interface ExtentConstructor { + new(properties?: ExtentProperties): Extent; + + fromJSON(json: any): Extent; + } + + export const Extent: ExtentConstructor; + + interface ExtentProperties extends GeometryProperties { + center?: PointProperties; + height?: number; + mmax?: number; + mmin?: number; + width?: number; + xmax?: number; + xmin?: number; + ymax?: number; + ymin?: number; + zmax?: number; + zmin?: number; + } + + interface Geometry extends Accessor, JSONSupport { + cache: any; + extent: Extent; + hasM: boolean; + hasZ: boolean; + spatialReference: SpatialReference; + type: string; + + clone(): Geometry; + } + + interface GeometryConstructor { + new(properties?: GeometryProperties): Geometry; + + fromJSON(json: any): Geometry; + } + + export const Geometry: GeometryConstructor; + + interface GeometryProperties { + cache?: any; + extent?: ExtentProperties; + hasM?: boolean; + hasZ?: boolean; + spatialReference?: SpatialReferenceProperties; + type?: string; + } + + interface geometryEngine { + buffer(geometry: Geometry | Geometry[], distance: number | number[], unit: string | number, unionResults?: boolean): Polygon | Polygon[]; + clip(geometry: Geometry, envelope: Extent): Geometry; + contains(containerGeometry: Geometry, insideGeometry: Geometry): boolean; + convexHull(geometry: Geometry, merge?: boolean): Geometry | Geometry[]; + crosses(geometry1: Geometry, geometry2: Geometry): boolean; + cut(geometry: Geometry, cutter: Polyline): Geometry[]; + densify(geometry: Geometry, maxSegmentLength: number, maxSegmentLengthUnit: string | number): Geometry; + difference(inputGeometry: Geometry | Geometry[], subtractor: Geometry): Geometry | Geometry[]; + disjoint(geometry1: Geometry, geometry2: Geometry): boolean; + distance(geometry1: Geometry, geometry2: Geometry, distanceUnit: string | number): number; + equals(geometry1: Geometry, geometry2: Geometry): boolean; + extendedSpatialReferenceInfo(spatialReference: SpatialReference): any; + flipHorizontal(geometry: Geometry, flipOrigin?: Point): Geometry; + flipVertical(geometry: Geometry, flipOrigin?: Point): Geometry; + generalize(geometry: Geometry, maxDeviation: number, removeDegenerateParts?: boolean, maxDeviationUnit?: string | number): Geometry; + geodesicArea(geometry: Polygon, unit: string | number): number; + geodesicBuffer(geometry: Geometry | Geometry[], distance: number | number[], unit: string | number, unionResults?: boolean): Polygon | Polygon[]; + geodesicDensify(geometry: Polyline | Polygon, maxSegmentLength: number, maxSegmentLengthUnit: string | number): Geometry; + geodesicLength(geometry: Geometry, unit: string | number): number; + intersect(geometry: Geometry | Geometry[], intersector: Geometry): Geometry | Geometry[]; + intersects(geometry1: Geometry, geometry2: Geometry): boolean; + isSimple(geometry: Geometry): boolean; + nearestCoordinate(geometry: Geometry, inputPoint: Point): NearestPointResult; + nearestVertex(geometry: Geometry, inputPoint: Point): NearestPointResult; + nearestVertices(geometry: Geometry, inputPoint: Point, searchRadius: number, maxVertexCountToReturn: number): NearestPointResult[]; + offset(geometry: Geometry | Geometry[], offsetDistance: number, offsetUnit: string | number, joinType: string, bevelRatio?: number, flattenError?: number): Geometry | Geometry[]; + overlaps(geometry1: Geometry, geometry2: Geometry): boolean; + planarArea(geometry: Polygon, unit: string | number): number; + planarLength(geometry: Geometry, unit: string | number): number; + relate(geometry1: Geometry, geometry2: Geometry, relation: string): boolean; + rotate(geometry: Geometry, angle: number, rotationOrigin?: Point): Geometry; + simplify(geometry: Geometry): Geometry; + symmetricDifference(leftGeometry: Geometry | Geometry[], rightGeometry: Geometry): Geometry | Geometry[]; + touches(geometry1: Geometry, geometry2: Geometry): boolean; + union(geometries: Geometry[]): Geometry; + within(innerGeometry: Geometry, outerGeometry: Geometry): boolean; + } + + export const geometryEngine: geometryEngine; + + export interface NearestPointResult { + coordinate: Point; + distance: number; + isRightSide: boolean; + vertexIndex: number; + isEmpty: boolean; + } + + interface geometryEngineAsync { + buffer(geometry: Geometry | Geometry[], distance: number | number[], unit: string | number, unionResults?: boolean): IPromise; + clip(geometry: Geometry, envelope: Extent): IPromise; + contains(containerGeometry: Geometry, insideGeometry: Geometry): IPromise; + convexHull(geometry: Geometry, merge?: boolean): IPromise; + crosses(geometry1: Geometry, geometry2: Geometry): IPromise; + cut(geometry: Geometry, cutter: Polyline): IPromise; + densify(geometry: Geometry, maxSegmentLength: number, maxSegmentLengthUnit: string | number): IPromise; + difference(inputGeometry: Geometry | Geometry[], subtractor: Geometry): IPromise; + disjoint(geometry1: Geometry, geometry2: Geometry): IPromise; + distance(geometry1: Geometry, geometry2: Geometry, distanceUnit: string | number): IPromise; + equals(geometry1: Geometry, geometry2: Geometry): IPromise; + extendedSpatialReferenceInfo(spatialReference: SpatialReference): IPromise; + flipHorizontal(geometry: Geometry, flipOrigin?: Point): IPromise; + flipVertical(geometry: Geometry, flipOrigin?: Point): IPromise; + generalize(geometry: Geometry, maxDeviation: number, removeDegenerateParts?: boolean, maxDeviationUnit?: string | number): IPromise; + geodesicArea(geometry: Polygon, unit: string | number): IPromise; + geodesicBuffer(geometry: Geometry | Geometry[], distance: number | number[], unit: string | number, unionResults?: boolean): IPromise; + geodesicDensify(geometry: Polyline | Polygon, maxSegmentLength: number, maxSegmentLengthUnit: string | number): IPromise; + geodesicLength(geometry: Geometry, unit: string | number): IPromise; + intersect(geometry: Geometry | Geometry[], intersector: Geometry): IPromise; + intersects(geometry1: Geometry, geometry2: Geometry): IPromise; + isSimple(geometry: Geometry): IPromise; + nearestCoordinate(geometry: Geometry, inputPoint: Point): IPromise; + nearestVertex(geometry: Geometry, inputPoint: Point): IPromise; + nearestVertices(geometry: Geometry, inputPoint: Point, searchRadius: number, maxVertexCountToReturn: number): IPromise; + offset(geometry: Geometry | Geometry[], offsetDistance: number, offsetUnit: string | number, joinType: string, bevelRatio?: number, flattenError?: number): IPromise; + overlaps(geometry1: Geometry, geometry2: Geometry): IPromise; + planarArea(geometry: Polygon, unit: string | number): IPromise; + planarLength(geometry: Geometry, unit: string | number): IPromise; + relate(geometry1: Geometry, geometry2: Geometry, relation: string): IPromise; + rotate(geometry: Geometry, angle: number, rotationOrigin?: Point): IPromise; + simplify(geometry: Geometry): IPromise; + symmetricDifference(leftGeometry: Geometry | Geometry[], rightGeometry: Geometry): IPromise; + touches(geometry1: Geometry, geometry2: Geometry): IPromise; + union(geometries: Geometry[]): IPromise; + within(innerGeometry: Geometry, outerGeometry: Geometry): IPromise; + } + + export const geometryEngineAsync: geometryEngineAsync; + + interface HeightModelInfo extends Accessor, JSONSupport { + heightModel: string; + heightUnit: string; + vertCRS: string; + } + + interface HeightModelInfoConstructor { + new(properties?: HeightModelInfoProperties): HeightModelInfo; + + fromJSON(json: any): HeightModelInfo; + } + + export const HeightModelInfo: HeightModelInfoConstructor; + + interface HeightModelInfoProperties { + heightModel?: string; + heightUnit?: string; + vertCRS?: string; + } + + interface Multipoint extends Geometry { + points: number[][]; + + addPoint(point: Point | number[]): Multipoint; + clone(): Multipoint; + getPoint(index: number): Point; + removePoint(index: number): Point; + setPoint(index: number, point: Point): Multipoint; + } + + interface MultipointConstructor { + new(properties?: MultipointProperties): Multipoint; + + fromJSON(json: any): Multipoint; + } + + export const Multipoint: MultipointConstructor; + + interface MultipointProperties extends GeometryProperties { + points?: number[][]; + } + + interface Point extends Geometry { + latitude: number; + longitude: number; + m: number; + x: number; + y: number; + z: number; + + clone(): Point; + copy(other: Point): void; + distance(other: Point): number; + equals(point: Point): boolean; + normalize(): Point; + } + + interface PointConstructor { + new(properties?: PointProperties): Point; + + fromJSON(json: any): Point; + } + + export const Point: PointConstructor; + + interface PointProperties extends GeometryProperties { + latitude?: number; + longitude?: number; + m?: number; + x?: number; + y?: number; + z?: number; + } + + interface Polygon extends Geometry { + centroid: Point; + isSelfIntersecting: boolean; + rings: number[][][]; + + addRing(ring: Point[] | number[][]): Polygon; + clone(): Polygon; + contains(point: Point): boolean; + getPoint(ringIndex: number, pointIndex: number): Point; + insertPoint(ringIndex: number, pointIndex: number, point: Point): Polygon; + isClockwise(ring: Point[] | number[][]): boolean; + removePoint(ringIndex: number, pointIndex: number): Point[]; + removeRing(index: number): Point[]; + setPoint(ringIndex: number, pointIndex: number, point: Point): Polygon; + } + + interface PolygonConstructor { + new(properties?: PolygonProperties): Polygon; + + + fromExtent(extent: Extent): Polygon; + + fromJSON(json: any): Polygon; + } + + export const Polygon: PolygonConstructor; + + interface PolygonProperties extends GeometryProperties { + centroid?: PointProperties; + isSelfIntersecting?: boolean; + rings?: number[][][]; + } + + interface Polyline extends Geometry { + paths: number[][][]; + + addPath(points: number[][]): Polyline; + clone(): Polyline; + getPoint(pathIndex: number, pointIndex: number): Point; + insertPoint(pathIndex: number, pointIndex: number, point: Point): Polyline; + removePath(index: number): Point[]; + removePoint(pathIndex: number, pointIndex: number): Point; + setPoint(pathIndex: number, pointIndex: number, point: Point): Polyline; + } + + interface PolylineConstructor { + new(properties?: PolylineProperties): Polyline; + + fromJSON(json: any): Polyline; + } + + export const Polyline: PolylineConstructor; + + interface PolylineProperties extends GeometryProperties { + paths?: number[][][]; + } + + interface ScreenPoint extends Accessor { + x: number; + y: number; + } + + interface ScreenPointConstructor { + new(properties?: ScreenPointProperties): ScreenPoint; + } + + export const ScreenPoint: ScreenPointConstructor; + + interface ScreenPointProperties { + x?: number; + y?: number; + } + + interface SpatialReference extends Accessor, JSONSupport { + isGeographic: boolean; + isWebMercator: boolean; + isWGS84: boolean; + isWrappable: boolean; + WebMercator: SpatialReference; + WGS84: SpatialReference; + wkid: number; + wkt: string; + + clone(): SpatialReference; + equals(spatialReference: SpatialReference): boolean; + } + + interface SpatialReferenceConstructor { + new(properties?: SpatialReferenceProperties): SpatialReference; + + fromJSON(json: any): SpatialReference; + } + + export const SpatialReference: SpatialReferenceConstructor; + + interface SpatialReferenceProperties { + isGeographic?: boolean; + isWebMercator?: boolean; + isWGS84?: boolean; + isWrappable?: boolean; + WebMercator?: SpatialReferenceProperties; + WGS84?: SpatialReferenceProperties; + wkid?: number; + wkt?: string; + } + + interface jsonUtils { + fromJSON(json: any): Geometry; + getJsonType(geometry: Geometry): string; + } + + export const jsonUtils: jsonUtils; + + interface normalizeUtils { + normalizeCentralMeridian(geometries: Geometry[], geometryService?: GeometryService): IPromise; + } + + export const normalizeUtils: normalizeUtils; + + interface webMercatorUtils { + canProject(source: SpatialReference | any, target: SpatialReference | any): boolean; + geographicToWebMercator(geometry: Geometry): Geometry; + lngLatToXY(long: number, lat: number): number[]; + project(geometry: Geometry, spatialReference: SpatialReference | any): Geometry; + webMercatorToGeographic(geometry: Geometry): Geometry; + xyToLngLat(x: number, y: number): number[]; + } + + export const webMercatorUtils: webMercatorUtils; + + interface Graphic extends Accessor, JSONSupport { + attributes: any; + geometry: Geometry; + layer: FeatureLayer | GraphicsLayer; + popupTemplate: PopupTemplate; + symbol: Symbol; + visible: boolean; + + clone(): Graphic; + getAttribute(name: string): any; + setAttribute(name: string, newValue: any): void; + } + + interface GraphicConstructor { + new(properties?: GraphicProperties): Graphic; + + fromJSON(json: any): Graphic; + } + + export const Graphic: GraphicConstructor; + + interface GraphicProperties { + attributes?: any; + geometry?: GeometryProperties; + layer?: FeatureLayerProperties | GraphicsLayerProperties; + popupTemplate?: PopupTemplateProperties; + symbol?: SymbolProperties; + visible?: boolean; + } + + interface Ground extends Accessor, Loadable, JSONSupport { + layers: Collection; + loaded: boolean; + + clone(): Ground; + queryElevation(geometry: Point | Multipoint | Polyline, options?: GroundQueryElevationOptions): IPromise; + } + + interface GroundConstructor { + new(properties?: GroundProperties): Ground; + + fromJSON(json: any): Ground; + } + + export const Ground: GroundConstructor; + + interface GroundProperties extends LoadableProperties { + layers?: CollectionProperties; + loaded?: boolean; + } + + export interface ElevationQueryResult { + geometry: Point | Multipoint | Polyline; + sampleInfo: ElevationQueryResultSampleInfo[]; + noDataValue: number; } export interface GroundQueryElevationOptions { @@ -95,27 +1004,576 @@ declare namespace __esri { noDataValue?: number; } - export interface PopupTemplateExpressionInfos { - name: string; - title?: string; - expression: string; - returnType?: string; + export interface ElevationQueryResultSampleInfo { + demResolution: number; + source: ElevationLayer; } - export interface PopupTemplateFieldInfos { - fieldName: string; - format?: PopupTemplateFieldInfosFormat; - isEditable?: boolean; - label?: string; - stringFieldOption?: string; - tooltip?: string; - visible?: boolean; + interface Credential extends Accessor { + expires: number; + isAdmin: boolean; + oAuthState: any; + server: string; + ssl: boolean; + token: string; + userId: string; + + destroy(): void; + refreshToken(): void; } - export interface PopupTemplateFieldInfosFormat { - dateFormat?: string; - digitSeparator?: boolean; - places?: number; + interface CredentialConstructor { + new(properties?: CredentialProperties): Credential; + } + + export const Credential: CredentialConstructor; + + interface CredentialProperties { + expires?: number; + isAdmin?: boolean; + oAuthState?: any; + server?: string; + ssl?: boolean; + token?: string; + userId?: string; + } + + interface IdentityManager extends IdentityManagerBase { + dialog: any; + + setOAuthRedirectionHandler(handlerFunction: HandlerCallback): void; + setOAuthResponseHash(hash: string): void; + + on(name: "credential-create", eventHandler: IdentityManagerCredentialCreateEventHandler): IHandle; + on(name: "credential-create", modifiers: string[], eventHandler: IdentityManagerCredentialCreateEventHandler): IHandle; + on(name: "credentials-destroy", eventHandler: IdentityManagerCredentialsDestroyEventHandler): IHandle; + on(name: "credentials-destroy", modifiers: string[], eventHandler: IdentityManagerCredentialsDestroyEventHandler): IHandle; + } + + interface IdentityManagerConstructor { + new(): IdentityManager; + } + + export const IdentityManager: IdentityManagerConstructor; + + export interface IdentityManagerCredentialCreateEvent { + credential: Credential; + } + + export interface IdentityManagerCredentialsDestroyEvent { + } + + export type HandlerCallback = (authorizeParams: any, authorizeUrl: string, oAuthInfo: OAuthInfo, resourceUrl: string, serverInfo: ServerInfo) => void; + + interface IdentityManagerBase extends Evented { + tokenValidity: number; + + checkSignInStatus(resUrl: string): IPromise; + destroyCredentials(): void; + findCredential(url: string, userId?: string): Credential; + findOAuthInfo(url: string): OAuthInfo; + findServerInfo(url: string): ServerInfo; + generateToken(serverInfo: ServerInfo, userInfo: any, options?: IdentityManagerBaseGenerateTokenOptions): IPromise; + getCredential(url: string, options?: IdentityManagerBaseGetCredentialOptions): IPromise; + initialize(json: any): void; + isBusy(): boolean; + oAuthSignIn(resUrl: string, serverInfo: ServerInfo, oAuthInfo: OAuthInfo, options?: IdentityManagerBaseOAuthSignInOptions): IPromise; + registerOAuthInfos(oAuthInfos: OAuthInfo[]): void; + registerServers(serverInfos: ServerInfo[]): void; + registerToken(properties: IdentityManagerBaseRegisterTokenProperties): void; + setProtocolErrorHandler(handlerFunction: IdentityManagerBaseSetProtocolErrorHandlerHandlerFunction): void; + setRedirectionHandler(handlerFunction: IdentityManagerBaseSetRedirectionHandlerHandlerFunction): void; + signIn(url: string, serverInfo: ServerInfo, options?: IdentityManagerBaseSignInOptions): IPromise; + toJSON(): any; + } + + interface IdentityManagerBaseConstructor { + new(): IdentityManagerBase; + } + + export const IdentityManagerBase: IdentityManagerBaseConstructor; + + export interface IdentityManagerBaseGenerateTokenOptions { + serverUrl: string; + token: string; + ssl: boolean; + } + + export interface IdentityManagerBaseGetCredentialOptions { + error?: Error; + oAuthPopupConfirmation?: boolean; + retry?: boolean; + token?: string; + } + + export interface IdentityManagerBaseOAuthSignInOptions { + error: Error; + oAuthPopupConfirmation: boolean; + token: string; + } + + export interface IdentityManagerBaseRegisterTokenProperties { + expires?: number; + server: string; + ssl?: boolean; + token: string; + userId?: string; + } + + export interface IdentityManagerBaseSetProtocolErrorHandlerHandlerFunction { + resourceUrl: string; + serverInfo: ServerInfo; + } + + export interface IdentityManagerBaseSetRedirectionHandlerHandlerFunction { + resourceUrl: string; + returnUrlParamName: string; + serverInfo: ServerInfo; + signInPage: string; + } + + export interface IdentityManagerBaseSignInOptions { + error: Error; + } + + interface OAuthInfo extends Accessor, JSONSupport { + appId: string; + authNamespace: string; + expiration: number; + locale: string; + minTimeUntilExpiration: number; + popup: boolean; + popupCallbackUrl: string; + popupWindowFeatures: string; + portalUrl: string; + + clone(): OAuthInfo; + } + + interface OAuthInfoConstructor { + new(properties?: OAuthInfoProperties): OAuthInfo; + + fromJSON(json: any): OAuthInfo; + } + + export const OAuthInfo: OAuthInfoConstructor; + + interface OAuthInfoProperties { + appId?: string; + authNamespace?: string; + expiration?: number; + locale?: string; + minTimeUntilExpiration?: number; + popup?: boolean; + popupCallbackUrl?: string; + popupWindowFeatures?: string; + portalUrl?: string; + } + + interface ServerInfo extends Accessor, JSONSupport { + adminTokenServiceUrl: string; + currentVersion: number; + server: string; + shortLivedTokenValidity: number; + tokenServiceUrl: string; + } + + interface ServerInfoConstructor { + new(properties?: ServerInfoProperties): ServerInfo; + + fromJSON(json: any): ServerInfo; + } + + export const ServerInfo: ServerInfoConstructor; + + interface ServerInfoProperties { + adminTokenServiceUrl?: string; + currentVersion?: number; + server?: string; + shortLivedTokenValidity?: number; + tokenServiceUrl?: string; + } + + interface kernel { + version: string; + } + + export const kernel: kernel; + + interface BaseDynamicLayer extends Layer, ScaleRangeLayer { + addResolvingPromise(promiseToLoad: IPromise): IPromise; + fetchImage(extent: Extent, width: number, height: number, options?: BaseDynamicLayerFetchImageOptions): IPromise; + getImageUrl(extent: Extent, width: number, height: number): IPromise | string; + + on(name: "layerview-create", eventHandler: BaseDynamicLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: BaseDynamicLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: BaseDynamicLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: BaseDynamicLayerLayerviewDestroyEventHandler): IHandle; + } + + interface BaseDynamicLayerConstructor { + new(properties?: BaseDynamicLayerProperties): BaseDynamicLayer; + } + + export const BaseDynamicLayer: BaseDynamicLayerConstructor; + + interface BaseDynamicLayerProperties extends LayerProperties, ScaleRangeLayerProperties { + + } + + export interface BaseDynamicLayerFetchImageOptions { + allowImageDataAccess?: boolean; + } + + export interface BaseDynamicLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface BaseDynamicLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + interface BaseElevationLayer extends Layer { + spatialReference: SpatialReference; + tileInfo: TileInfo; + + addResolvingPromise(promiseToLoad: IPromise): IPromise; + fetchTile(level: number, row: number, column: number, options?: BaseElevationLayerFetchTileOptions): IPromise; + getTileBounds(level: number, row: number, column: number, out?: number[]): number[]; + + on(name: "layerview-create", eventHandler: BaseElevationLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: BaseElevationLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: BaseElevationLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: BaseElevationLayerLayerviewDestroyEventHandler): IHandle; + } + + interface BaseElevationLayerConstructor { + new(properties?: BaseElevationLayerProperties): BaseElevationLayer; + } + + export const BaseElevationLayer: BaseElevationLayerConstructor; + + interface BaseElevationLayerProperties extends LayerProperties { + spatialReference?: SpatialReferenceProperties; + tileInfo?: TileInfoProperties; + } + + export interface BaseElevationLayerFetchTileOptions { + noDataValue?: number; + } + + export interface ElevationTileData { + values: number[]; + width: number; + height: number; + maxZError: number; + noDataValue: number; + } + + export interface BaseElevationLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface BaseElevationLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + interface BaseTileLayer extends Layer, ScaleRangeLayer { + spatialReference: SpatialReference; + tileInfo: TileInfo; + + addResolvingPromise(promiseToLoad: IPromise): IPromise; + fetchTile(level: number, row: number, column: number, options?: BaseTileLayerFetchTileOptions): IPromise; + getTileBounds(level: number, row: number, column: number, out?: number[]): number[]; + getTileUrl(level: number, row: number, column: number): string | IPromise; + + on(name: "layerview-create", eventHandler: BaseTileLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: BaseTileLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: BaseTileLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: BaseTileLayerLayerviewDestroyEventHandler): IHandle; + } + + interface BaseTileLayerConstructor { + new(properties?: BaseTileLayerProperties): BaseTileLayer; + } + + export const BaseTileLayer: BaseTileLayerConstructor; + + interface BaseTileLayerProperties extends LayerProperties, ScaleRangeLayerProperties { + spatialReference?: SpatialReferenceProperties; + tileInfo?: TileInfoProperties; + } + + export interface BaseTileLayerFetchTileOptions { + allowImageDataAccess?: boolean; + } + + export interface BaseTileLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface BaseTileLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + interface CSVLayer extends Layer { + copyright: string; + delimiter: string; + elevationInfo: CSVLayerElevationInfo; + featureReduction: CSVLayerFeatureReduction; + fields: Field[]; + labelingInfo: LabelClass[]; + labelsVisible: boolean; + latitudeField: string; + legendEnabled: boolean; + longitudeField: string; + maxScale: number; + minScale: number; + outFields: string[]; + popupEnabled: boolean; + popupTemplate: PopupTemplate; + renderer: Renderer; + screenSizePerspectiveEnabled: boolean; + url: string; + + on(name: "layerview-create", eventHandler: CSVLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: CSVLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: CSVLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: CSVLayerLayerviewDestroyEventHandler): IHandle; + } + + interface CSVLayerConstructor { + new(properties?: CSVLayerProperties): CSVLayer; + } + + export const CSVLayer: CSVLayerConstructor; + + interface CSVLayerProperties extends LayerProperties { + copyright?: string; + delimiter?: string; + elevationInfo?: CSVLayerElevationInfo; + featureReduction?: CSVLayerFeatureReduction; + fields?: FieldProperties[]; + labelingInfo?: LabelClassProperties[]; + labelsVisible?: boolean; + latitudeField?: string; + legendEnabled?: boolean; + longitudeField?: string; + maxScale?: number; + minScale?: number; + outFields?: string[]; + popupEnabled?: boolean; + popupTemplate?: PopupTemplateProperties; + renderer?: RendererProperties; + screenSizePerspectiveEnabled?: boolean; + url?: string; + } + + export interface CSVLayerElevationInfo { + mode: string; + offset?: number; + featureExpressionInfo?: CSVLayerElevationInfoFeatureExpressionInfo; + unit?: string; + } + + export interface CSVLayerElevationInfoFeatureExpressionInfo { + expression?: string; + } + + export interface CSVLayerFeatureReduction { + type: string; + } + + export interface CSVLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface CSVLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + interface DynamicLayer { + portalItem: PortalItem; + url: string; + + fetchImage(extent: Extent, width: number, height: number, options?: DynamicLayerFetchImageOptions): IPromise; + getImageUrl(extent: Extent, width: number, height: number, options?: DynamicLayerGetImageUrlOptions): IPromise | string; + } + + interface DynamicLayerConstructor { + new(): DynamicLayer; + } + + export const DynamicLayer: DynamicLayerConstructor; + + interface DynamicLayerProperties { + portalItem?: PortalItemProperties; + url?: string; + } + + export interface DynamicLayerFetchImageOptions { + allowImageDataAccess?: boolean; + rotation?: number; + pixelRatio?: number; + } + + export interface DynamicLayerGetImageUrlOptions { + pixelRatio?: number; + rotation?: number; + } + + interface ElevationLayer extends Layer, ArcGISMapService, ArcGISCachedService, PortalLayer, TiledLayer { + url: string; + + fetchTile(level: number, row: number, column: number, noDataValue?: number): IPromise; + queryElevation(geometry: Point | Multipoint | Polyline, options?: ElevationLayerQueryElevationOptions): IPromise; + + on(name: "layerview-create", eventHandler: ElevationLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: ElevationLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: ElevationLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: ElevationLayerLayerviewDestroyEventHandler): IHandle; + } + + interface ElevationLayerConstructor { + new(properties?: ElevationLayerProperties): ElevationLayer; + + fromJSON(json: any): ElevationLayer; + } + + export const ElevationLayer: ElevationLayerConstructor; + + interface ElevationLayerProperties extends LayerProperties, ArcGISMapServiceProperties, ArcGISCachedServiceProperties, PortalLayerProperties, TiledLayerProperties { + url?: string; + } + + export interface ElevationLayerQueryElevationOptions { + demResolution?: number | string; + returnSampleInfo?: boolean; + noDataValue?: number; + } + + export interface ElevationLayerElevationQueryResult { + geometry: Point | Multipoint | Polyline; + sampleInfo: ElevationLayerElevationQueryResultSampleInfo[]; + noDataValue: number; + } + + export interface ElevationLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface ElevationLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + export interface ElevationLayerElevationQueryResultSampleInfo { + demResolution: number; + } + + interface FeatureLayer extends Layer, PortalLayer, ScaleRangeLayer { + capabilities: FeatureLayerCapabilities; + copyright: string; + definitionExpression: string; + displayField: string; + elevationInfo: FeatureLayerElevationInfo; + featureReduction: FeatureLayerFeatureReduction; + fields: Field[]; + gdbVersion: string; + geometryType: string; + hasAttachments: boolean; + hasM: boolean; + hasZ: boolean; + labelingInfo: LabelClass[]; + labelsVisible: boolean; + layerId: number; + legendEnabled: boolean; + objectIdField: string; + outFields: string[]; + popupEnabled: boolean; + popupTemplate: PopupTemplate; + renderer: Renderer; + returnM: boolean; + returnZ: boolean; + screenSizePerspectiveEnabled: boolean; + source: Collection; + spatialReference: SpatialReference; + templates: FeatureTemplate[]; + token: string; + typeIdField: string; + types: FeatureType[]; + url: string; + version: number; + + applyEdits(edits: FeatureLayerApplyEditsEdits): IPromise; + createQuery(): Query; + getFieldDomain(fieldName: string, options?: FeatureLayerGetFieldDomainOptions): Domain; + queryExtent(params?: Query): IPromise; + queryFeatureCount(params?: Query): IPromise; + queryFeatures(params?: Query): IPromise; + queryObjectIds(params?: Query): IPromise; + + on(name: "layerview-create", eventHandler: FeatureLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: FeatureLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: FeatureLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: FeatureLayerLayerviewDestroyEventHandler): IHandle; + } + + interface FeatureLayerConstructor { + new(properties?: FeatureLayerProperties): FeatureLayer; + + fromJSON(json: any): FeatureLayer; + } + + export const FeatureLayer: FeatureLayerConstructor; + + interface FeatureLayerProperties extends LayerProperties, PortalLayerProperties, ScaleRangeLayerProperties { + capabilities?: FeatureLayerCapabilities; + copyright?: string; + definitionExpression?: string; + displayField?: string; + elevationInfo?: FeatureLayerElevationInfo; + featureReduction?: FeatureLayerFeatureReduction; + fields?: FieldProperties[]; + gdbVersion?: string; + geometryType?: string; + hasAttachments?: boolean; + hasM?: boolean; + hasZ?: boolean; + labelingInfo?: LabelClassProperties[]; + labelsVisible?: boolean; + layerId?: number; + legendEnabled?: boolean; + objectIdField?: string; + outFields?: string[]; + popupEnabled?: boolean; + popupTemplate?: PopupTemplateProperties; + renderer?: RendererProperties; + returnM?: boolean; + returnZ?: boolean; + screenSizePerspectiveEnabled?: boolean; + source?: CollectionProperties; + spatialReference?: SpatialReferenceProperties; + templates?: FeatureTemplateProperties[]; + token?: string; + typeIdField?: string; + types?: FeatureTypeProperties[]; + url?: string; + version?: number; + } + + export interface FeatureEditResult { + objectId: number; + error: FeatureEditResultError; } export interface FeatureLayerApplyEditsEdits { @@ -184,6 +1642,12 @@ declare namespace __esri { export interface FeatureLayerElevationInfo { mode: string; offset?: number; + featureExpressionInfo?: FeatureLayerElevationInfoFeatureExpressionInfo; + unit?: string; + } + + export interface FeatureLayerElevationInfoFeatureExpressionInfo { + expression?: string; } export interface FeatureLayerFeatureReduction { @@ -195,3220 +1659,21 @@ declare namespace __esri { } export interface FeatureLayerLayerviewCreateEvent { - view: View; layerView: LayerView; + view: View; } - export type FeatureLayerLayerviewCreateEventHandler = (event: FeatureLayerLayerviewCreateEvent) => void; - export interface FeatureLayerLayerviewDestroyEvent { + layerView: LayerView; view: View; - layerView: LayerView; } - export type FeatureLayerLayerviewDestroyEventHandler = (event: FeatureLayerLayerviewDestroyEvent) => void; - - export interface GraphicsLayerElevationInfo { - mode: string; - offset?: number; - } - - export interface GraphicsLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type GraphicsLayerLayerviewCreateEventHandler = (event: GraphicsLayerLayerviewCreateEvent) => void; - - export interface GraphicsLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type GraphicsLayerLayerviewDestroyEventHandler = (event: GraphicsLayerLayerviewDestroyEvent) => void; - - export interface LayerFromArcGISServerUrlParams { - url: string; - properties?: any; - } - - export interface LayerFromPortalItemParams { - portalItem: PortalItem; - } - - export interface FeatureTemplateThumbnail { - contentType: any; - imageData: string; - height: number; - width: number; - } - - export interface LabelClassLabelExpressionInfo { - value?: string; - } - - export interface LabelSymbol3DVerticalOffsetProperties { - screenLength?: number; - minWorldLength?: number; - maxWorldLength?: number; - } - export interface LabelSymbol3DVerticalOffset extends Accessor { - screenLength: number; - minWorldLength?: number; - maxWorldLength?: number; - } - - export interface QueryQuantizationParameters { - extent?: Extent; - mode?: string; - originPosition?: string; - tolerance?: number; - } - - export interface ViewPadding { - left?: number; - top?: number; - right?: number; - bottom?: number; - } - - export interface WebMapSourceVersion { - major: number; - minor: number; - } - - export interface WebSceneSaveAsOptions { - folder?: PortalFolder; - ignoreUnsupported?: boolean; - } - - export interface WebSceneSaveOptions { - ignoreUnsupported?: boolean; - } - - export interface WebSceneSourceVersion { - major: number; - minor: number; - } - - export interface WebSceneUpdateFromOptions { - environmentExcluded?: boolean; - viewpointExcluded?: boolean; - } - - export type EventHandler = (event: any) => void; - - export interface SceneViewDragEventOrigin { - x: number; - y: number; - } - - export interface SceneViewClickEvent { - mapPoint: Point; - x: number; - y: number; - button: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type SceneViewClickEventHandler = (event: SceneViewClickEvent) => void; - - export interface SceneViewDoubleClickEvent { - mapPoint: Point; - x: number; - y: number; - button: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type SceneViewDoubleClickEventHandler = (event: SceneViewDoubleClickEvent) => void; - - export interface SceneViewDragEvent { - action: string; - x: number; - y: number; - origin: SceneViewDragEventOrigin; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type SceneViewDragEventHandler = (event: SceneViewDragEvent) => void; - - export type EasingFunction = (t: number, duration: number) => number; - - export interface SceneViewHoldEvent { - mapPoint: Point; - x: number; - y: number; - button: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type SceneViewHoldEventHandler = (event: SceneViewHoldEvent) => void; - - export interface SceneViewKeyDownEvent { - repeat: boolean; - key: string; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type SceneViewKeyDownEventHandler = (event: SceneViewKeyDownEvent) => void; - - export interface SceneViewKeyUpEvent { - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type SceneViewKeyUpEventHandler = (event: SceneViewKeyUpEvent) => void; - - export interface SceneViewLayerviewCreateEvent { - layer: Layer; - layerView: LayerView; - } - - export type SceneViewLayerviewCreateEventHandler = (event: SceneViewLayerviewCreateEvent) => void; - - export interface SceneViewLayerviewDestroyEvent { - layer: Layer; - layerView: LayerView; - } - - export type SceneViewLayerviewDestroyEventHandler = (event: SceneViewLayerviewDestroyEvent) => void; - - export interface SceneViewMouseWheelEvent { - x: number; - y: number; - deltaY: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type SceneViewMouseWheelEventHandler = (event: SceneViewMouseWheelEvent) => void; - - export interface SceneViewPointerDownEvent { - pointerId: number; - pointerType: string; - x: number; - y: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type SceneViewPointerDownEventHandler = (event: SceneViewPointerDownEvent) => void; - - export interface SceneViewPointerMoveEvent { - pointerId: number; - pointerType: string; - x: number; - y: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type SceneViewPointerMoveEventHandler = (event: SceneViewPointerMoveEvent) => void; - - export interface SceneViewPointerUpEvent { - pointerId: number; - pointerType: string; - x: number; - y: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type SceneViewPointerUpEventHandler = (event: SceneViewPointerUpEvent) => void; - - export interface SceneViewResizeEvent { - oldWidth: number; - oldHeight: number; - width: number; - height: number; - } - - export type SceneViewResizeEventHandler = (event: SceneViewResizeEvent) => void; - - export interface SceneViewConstraintsProperties { - altitude?: SceneViewConstraintsAltitudeProperties; - clipDistance?: SceneViewConstraintsClipDistanceProperties; - collision?: SceneViewConstraintsCollision; - tilt?: SceneViewConstraintsTiltProperties; - } - export interface SceneViewConstraints extends Accessor { - altitude?: SceneViewConstraintsAltitude; - clipDistance?: SceneViewConstraintsClipDistance; - collision?: SceneViewConstraintsCollision; - tilt?: SceneViewConstraintsTilt; - } - - export interface SceneViewConstraintsAltitudeProperties { - min?: number; - max?: number; - } - export interface SceneViewConstraintsAltitude extends Accessor { - min?: number; - max?: number; - } - - export interface SceneViewConstraintsClipDistanceProperties { - near?: number; - far?: number; - mode?: string; - } - export interface SceneViewConstraintsClipDistance extends Accessor { - near?: number; - far?: number; - mode?: string; - } - - export interface SceneViewConstraintsCollision { - enabled?: boolean; - } - - export interface SceneViewConstraintsTiltProperties { - max?: number; - mode?: string; - } - export interface SceneViewConstraintsTilt extends Accessor { - max?: number; - mode?: string; - } - - export interface SceneViewEnvironmentProperties { - lighting?: SceneViewEnvironmentLightingProperties; - atmosphereEnabled?: boolean; - atmosphere?: SceneViewEnvironmentAtmosphereProperties; - starsEnabled?: boolean; - } - export interface SceneViewEnvironment extends Accessor { - lighting?: SceneViewEnvironmentLighting; - atmosphereEnabled?: boolean; - atmosphere?: SceneViewEnvironmentAtmosphere; - starsEnabled?: boolean; - } - - export interface SceneViewEnvironmentAtmosphereProperties { - quality?: string; - } - export interface SceneViewEnvironmentAtmosphere extends Accessor { - quality?: string; - } - - export interface SceneViewEnvironmentLightingProperties { - date?: Date; - directShadowsEnabled?: boolean; - ambientOcclusionEnabled?: boolean; - cameraTrackingEnabled?: boolean; - } - export interface SceneViewEnvironmentLighting extends Accessor { - date?: Date; - directShadowsEnabled?: boolean; - ambientOcclusionEnabled?: boolean; - cameraTrackingEnabled?: boolean; - } - - export interface SceneViewGoToOptions { - animate?: boolean; - speedFactor?: number; - duration?: number; - maxDuration?: number; - easing?: string | EasingFunction; - } - - export interface SceneViewHighlightOptions { - color?: Color; - haloOpacity?: number; - fillOpacity?: number; - } - - export interface SceneViewHitTestScreenPoint { - x: number; - y: number; - } - - export interface SceneViewToMapScreenPoint { - x: number; - y: number; - } - - export interface WatchHandle { - remove(): void; - } - - export type WatchCallback = (newValue: any, oldValue: any, propertyName: string, target: Accessor) => void; - - export interface IdentityManagerBaseGenerateTokenOptions { - serverUrl: string; - token: string; - ssl: boolean; - } - - export interface IdentityManagerBaseGetCredentialOptions { - error?: Error; - oAuthPopupConfirmation?: boolean; - retry?: boolean; - token?: string; - } - - export interface IdentityManagerBaseOAuthSignInOptions { - error: Error; - oAuthPopupConfirmation: boolean; - token: string; - } - - export interface IdentityManagerBaseRegisterTokenProperties { - expires?: number; - server: string; - ssl?: boolean; - token: string; - userId?: string; - } - - export interface IdentityManagerBaseSetProtocolErrorHandlerHandlerFunction { - resourceUrl: string; - serverInfo: ServerInfo; - } - - export interface IdentityManagerBaseSetRedirectionHandlerHandlerFunction { - resourceUrl: string; - returnUrlParamName: string; - serverInfo: ServerInfo; - signInPage: string; - } - - export interface IdentityManagerBaseSignInOptions { - error: Error; - } - - export interface IdentityManagerCredentialCreateEvent { - credential: Credential; - } - - export type IdentityManagerCredentialCreateEventHandler = (event: IdentityManagerCredentialCreateEvent) => void; - - export interface IdentityManagerCredentialsDestroyEvent { - } - - export type IdentityManagerCredentialsDestroyEventHandler = (event: IdentityManagerCredentialsDestroyEvent) => void; - - export type HandlerCallback = (authorizeParams: any, authorizeUrl: string, oAuthInfo: OAuthInfo, resourceUrl: string, serverInfo: ServerInfo) => void; - - export interface BaseElevationLayerFetchTileOptions { - noDataValue?: number; - } - - export interface BaseElevationLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type BaseElevationLayerLayerviewCreateEventHandler = (event: BaseElevationLayerLayerviewCreateEvent) => void; - - export interface BaseElevationLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type BaseElevationLayerLayerviewDestroyEventHandler = (event: BaseElevationLayerLayerviewDestroyEvent) => void; - - export interface CSVLayerElevationInfo { - mode: string; - offset?: number; - } - - export interface CSVLayerFeatureReduction { - type: string; - } - - export interface CSVLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type CSVLayerLayerviewCreateEventHandler = (event: CSVLayerLayerviewCreateEvent) => void; - - export interface CSVLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type CSVLayerLayerviewDestroyEventHandler = (event: CSVLayerLayerviewDestroyEvent) => void; - - export interface ElevationLayerQueryElevationOptions { - demResolution?: number | string; - returnSampleInfo?: boolean; - noDataValue?: number; - } - - export interface ElevationLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type ElevationLayerLayerviewCreateEventHandler = (event: ElevationLayerLayerviewCreateEvent) => void; - - export interface ElevationLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type ElevationLayerLayerviewDestroyEventHandler = (event: ElevationLayerLayerviewDestroyEvent) => void; - - export interface GeoRSSLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type GeoRSSLayerLayerviewCreateEventHandler = (event: GeoRSSLayerLayerviewCreateEvent) => void; - - export interface GeoRSSLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type GeoRSSLayerLayerviewDestroyEventHandler = (event: GeoRSSLayerLayerviewDestroyEvent) => void; - - export interface GroupLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type GroupLayerLayerviewCreateEventHandler = (event: GroupLayerLayerviewCreateEvent) => void; - - export interface GroupLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type GroupLayerLayerviewDestroyEventHandler = (event: GroupLayerLayerviewDestroyEvent) => void; - - export interface ImageryLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type ImageryLayerLayerviewCreateEventHandler = (event: ImageryLayerLayerviewCreateEvent) => void; - - export interface ImageryLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type ImageryLayerLayerviewDestroyEventHandler = (event: ImageryLayerLayerviewDestroyEvent) => void; - - export interface IntegratedMeshLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type IntegratedMeshLayerLayerviewCreateEventHandler = (event: IntegratedMeshLayerLayerviewCreateEvent) => void; - - export interface IntegratedMeshLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type IntegratedMeshLayerLayerviewDestroyEventHandler = (event: IntegratedMeshLayerLayerviewDestroyEvent) => void; - - export interface MapImageLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type MapImageLayerLayerviewCreateEventHandler = (event: MapImageLayerLayerviewCreateEvent) => void; - - export interface MapImageLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type MapImageLayerLayerviewDestroyEventHandler = (event: MapImageLayerLayerviewDestroyEvent) => void; - - export interface MapNotesLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type MapNotesLayerLayerviewCreateEventHandler = (event: MapNotesLayerLayerviewCreateEvent) => void; - - export interface MapNotesLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type MapNotesLayerLayerviewDestroyEventHandler = (event: MapNotesLayerLayerviewDestroyEvent) => void; - - export interface OpenStreetMapLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type OpenStreetMapLayerLayerviewCreateEventHandler = (event: OpenStreetMapLayerLayerviewCreateEvent) => void; - - export interface OpenStreetMapLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type OpenStreetMapLayerLayerviewDestroyEventHandler = (event: OpenStreetMapLayerLayerviewDestroyEvent) => void; - - export interface PointCloudLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type PointCloudLayerLayerviewCreateEventHandler = (event: PointCloudLayerLayerviewCreateEvent) => void; - - export interface PointCloudLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type PointCloudLayerLayerviewDestroyEventHandler = (event: PointCloudLayerLayerviewDestroyEvent) => void; - - export interface PointCloudLayerElevationInfo { - mode: string; - offset?: number; - } - - export interface PointCloudRendererColorModulation { - field: string; - minValue: number; - maxValue: number; - } - - export interface PointCloudRendererPointSizeAlgorithm { - type?: string; - useRealWorldSymbolSizes?: boolean; - size?: number; - scaleFactor?: number; - minSize?: number; - } - - export interface SceneLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type SceneLayerLayerviewCreateEventHandler = (event: SceneLayerLayerviewCreateEvent) => void; - - export interface SceneLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type SceneLayerLayerviewDestroyEventHandler = (event: SceneLayerLayerviewDestroyEvent) => void; - - export interface SceneLayerElevationInfo { - mode: string; - offset?: number; - } - - export interface SceneLayerFeatureReduction { - type: string; - } - - export interface StreamLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type StreamLayerLayerviewCreateEventHandler = (event: StreamLayerLayerviewCreateEvent) => void; - - export interface StreamLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type StreamLayerLayerviewDestroyEventHandler = (event: StreamLayerLayerviewDestroyEvent) => void; - - export interface StreamLayerFilter { - geometry?: Extent; - where?: string; - } - - export interface StreamLayerPurgeOptions { - displayCount: number; - age: number; - } - - export interface StreamLayerUpdateFilterFilterChanges { - geometry: Extent; - where: string; - } - - export interface TileLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type TileLayerLayerviewCreateEventHandler = (event: TileLayerLayerviewCreateEvent) => void; - - export interface TileLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type TileLayerLayerviewDestroyEventHandler = (event: TileLayerLayerviewDestroyEvent) => void; - - export interface TileLayerFetchTileOptions { - allowImageDataAccess?: boolean; - } - - export interface UnknownLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type UnknownLayerLayerviewCreateEventHandler = (event: UnknownLayerLayerviewCreateEvent) => void; - - export interface UnknownLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type UnknownLayerLayerviewDestroyEventHandler = (event: UnknownLayerLayerviewDestroyEvent) => void; - - export interface UnsupportedLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type UnsupportedLayerLayerviewCreateEventHandler = (event: UnsupportedLayerLayerviewCreateEvent) => void; - - export interface UnsupportedLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type UnsupportedLayerLayerviewDestroyEventHandler = (event: UnsupportedLayerLayerviewDestroyEvent) => void; - - export interface VectorTileLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type VectorTileLayerLayerviewCreateEventHandler = (event: VectorTileLayerLayerviewCreateEvent) => void; - - export interface VectorTileLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type VectorTileLayerLayerviewDestroyEventHandler = (event: VectorTileLayerLayerviewDestroyEvent) => void; - - export interface VectorTileLayerCurrentStyleInfo { - serviceUrl: string; - styleUrl: string; - spriteUrl: string; - glyphsUrl: string; - style: any; - layerDefinition: any; - } - - export interface WebTileLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type WebTileLayerLayerviewCreateEventHandler = (event: WebTileLayerLayerviewCreateEvent) => void; - - export interface WebTileLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type WebTileLayerLayerviewDestroyEventHandler = (event: WebTileLayerLayerviewDestroyEvent) => void; - - export interface WMSLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type WMSLayerLayerviewCreateEventHandler = (event: WMSLayerLayerviewCreateEvent) => void; - - export interface WMSLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type WMSLayerLayerviewDestroyEventHandler = (event: WMSLayerLayerviewDestroyEvent) => void; - - export interface WMSLayerFetchImageOptions { - allowImageDataAccess?: boolean; - pixelRatio?: number; - rotation?: number; - } - - export interface WMTSLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type WMTSLayerLayerviewCreateEventHandler = (event: WMTSLayerLayerviewCreateEvent) => void; - - export interface WMTSLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type WMTSLayerLayerviewDestroyEventHandler = (event: WMTSLayerLayerviewDestroyEvent) => void; - - export interface BaseDynamicLayerFetchImageOptions { - allowImageDataAccess?: boolean; - } - - export interface BaseDynamicLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type BaseDynamicLayerLayerviewCreateEventHandler = (event: BaseDynamicLayerLayerviewCreateEvent) => void; - - export interface BaseDynamicLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type BaseDynamicLayerLayerviewDestroyEventHandler = (event: BaseDynamicLayerLayerviewDestroyEvent) => void; - - export interface BaseTileLayerFetchTileOptions { - allowImageDataAccess?: boolean; - } - - export interface BaseTileLayerLayerviewCreateEvent { - view: View; - layerView: LayerView; - } - - export type BaseTileLayerLayerviewCreateEventHandler = (event: BaseTileLayerLayerviewCreateEvent) => void; - - export interface BaseTileLayerLayerviewDestroyEvent { - view: View; - layerView: LayerView; - } - - export type BaseTileLayerLayerviewDestroyEventHandler = (event: BaseTileLayerLayerviewDestroyEvent) => void; - - export interface CodedValueDomainCodedValues { + export interface FeatureEditResultError { name: string; - code: string | number; - } - - export interface PixelBlockAddDataPlaneData { - pixels: number[][]; - statistics: any[]; - } - - export interface PixelBlockStatistics { - maxValue?: number; - minValue?: number; - noDataValue?: number; - } - - export interface ClassBreaksRendererClassBreakInfos { - minValue: number; - maxValue: number; - symbol: Symbol; - label?: string; - } - - export interface ClassBreaksRendererLegendOptions { - title: string; - } - - export interface UniqueValueRendererLegendOptions { - title?: string; - } - - export interface UniqueValueRendererUniqueValueInfos { - value: string | number; - symbol: Symbol; - label?: string; - } - - export interface PointCloudClassBreaksRendererColorClassBreakInfos { - minValue: number; - maxValue: number; - color: Color; - label?: string; - } - - export interface PointCloudStretchRendererStops { - value: number; - label?: string; - color: Color; - } - - export interface PointCloudUniqueValueRendererColorUniqueValueInfos { - values: number[]; - color: Color; - label?: string; - } - - export interface FillSymbol3DLayerOutline { - color: Color; - size: number; - } - - export interface IconSymbol3DLayerOutline { - color?: Color; - size?: number; - } - - export interface IconSymbol3DLayerResource { - primitive?: string; - href?: string; - } - - export interface ObjectSymbol3DLayerResource { - primitive?: string; - href?: string; - } - - export interface PointSymbol3DVerticalOffsetProperties { - screenLength?: number; - minWorldLength?: number; - maxWorldLength?: number; - } - export interface PointSymbol3DVerticalOffset extends Accessor { - screenLength: number; - minWorldLength?: number; - maxWorldLength?: number; - } - - export interface Symbol3DStyleOrigin { - styleName?: string; - styleUrl?: string; - name: string; - } - - export interface TextSymbol3DLayerFont { - family?: string; - weight?: string; - style?: string; - } - - export interface TextSymbol3DLayerHalo { - color?: Color; - size?: number; - } - - export interface LineCallout3DBorderProperties { - color?: Color; - } - export interface LineCallout3DBorder extends Accessor { - color?: Color; - } - - export interface ClosestFacilityParametersAttributeParameterValues { - attributeName: string; - parameterName: string; - value: string; - } - - export interface GeometryServiceFromGeoCoordinateStringParams { - strings: string[]; - sr: SpatialReference | string; - conversionType: string; - conversionMode?: string; - } - - export interface GeometryServiceToGeoCoordinateStringParams { - sr: SpatialReference | string; - coordinates: number[][]; - conversionType: string; - conversionMode?: string; - numOfDigits?: number; - rounding?: boolean; - addSpaces?: boolean; - } - - export interface ProjectParametersTransformation { - wkid?: number; - wkt?: string; - } - - export interface LocatorAddressToLocationsParams { - address: any; - categories: string[]; - countryCode: string; - distance: number; - forStorage: boolean; - location: Point; - magicKey: string; - maxLocations: number; - outFields: string[]; - searchExtent: Extent; - } - - export interface LocatorAddressesToLocationsParams { - addresses: any[]; - countryCode: string; - categories: string[]; - } - - export interface LocatorSuggestLocationsParams { - categories: string[]; - distance: number; - location: Point; - text: string; - } - - export interface PrintTemplateExportOptions { - width?: number; - height?: number; - dpi?: number; - } - - export interface PrintTemplateLayoutOptions { - titleText: string; - authorText: string; - copyrightText: string; - scalebarUnit: string; - legendLayers: LegendLayer[]; - customTextElements: any[]; - } - - export interface MapViewDragEventOrigin { - x: number; - y: number; - } - - export interface MapViewClickEvent { - mapPoint: Point; - x: number; - y: number; - button: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type MapViewClickEventHandler = (event: MapViewClickEvent) => void; - - export interface MapViewDoubleClickEvent { - mapPoint: Point; - x: number; - y: number; - button: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type MapViewDoubleClickEventHandler = (event: MapViewDoubleClickEvent) => void; - - export interface MapViewDragEvent { - action: string; - x: number; - y: number; - origin: MapViewDragEventOrigin; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type MapViewDragEventHandler = (event: MapViewDragEvent) => void; - - export interface MapViewHoldEvent { - mapPoint: Point; - x: number; - y: number; - button: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type MapViewHoldEventHandler = (event: MapViewHoldEvent) => void; - - export interface MapViewKeyDownEvent { - repeat: boolean; - key: string; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type MapViewKeyDownEventHandler = (event: MapViewKeyDownEvent) => void; - - export interface MapViewKeyUpEvent { - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type MapViewKeyUpEventHandler = (event: MapViewKeyUpEvent) => void; - - export interface MapViewLayerviewCreateEvent { - layer: Layer; - layerView: LayerView; - } - - export type MapViewLayerviewCreateEventHandler = (event: MapViewLayerviewCreateEvent) => void; - - export interface MapViewLayerviewDestroyEvent { - layer: Layer; - layerView: LayerView; - } - - export type MapViewLayerviewDestroyEventHandler = (event: MapViewLayerviewDestroyEvent) => void; - - export interface MapViewConstraints { - lods?: LOD[]; - minScale?: number; - maxScale?: number; - minZoom?: number; - maxZoom?: number; - snapToZoom?: boolean; - rotationEnabled?: boolean; - effectiveLODs?: LOD[]; - effectiveMinZoom?: number; - effectiveMaxZoom?: number; - effectiveMinScale?: number; - effectiveMaxScale?: number; - } - - export interface MapViewGoToOptions { - animate?: boolean; - duration?: number; - easing?: string | Function; - } - - export interface MapViewHitTestScreenPoint { - x: number; - y: number; - } - - export interface MapViewToMapScreenPoint { - x: number; - y: number; - } - - export interface MapViewMouseWheelEvent { - x: number; - y: number; - deltaY: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type MapViewMouseWheelEventHandler = (event: MapViewMouseWheelEvent) => void; - - export interface MapViewPointerDownEvent { - pointerId: number; - pointerType: string; - x: number; - y: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type MapViewPointerDownEventHandler = (event: MapViewPointerDownEvent) => void; - - export interface MapViewPointerMoveEvent { - pointerId: number; - pointerType: string; - x: number; - y: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type MapViewPointerMoveEventHandler = (event: MapViewPointerMoveEvent) => void; - - export interface MapViewPointerUpEvent { - pointerId: number; - pointerType: string; - x: number; - y: number; - type: string; - stopPropagation: Function; - timestamp: number; - native: any; - } - - export type MapViewPointerUpEventHandler = (event: MapViewPointerUpEvent) => void; - - export interface MapViewResizeEvent { - oldWidth: number; - oldHeight: number; - width: number; - height: number; - } - - export type MapViewResizeEventHandler = (event: MapViewResizeEvent) => void; - - export interface AttributeParamValue { - attributeName: string; - parameterName: string; - value: string; - } - - export interface ConfigurationTaskGetDataWorkspaceDetailsParams { - dataWorkspaceId: string; - user: string; - } - - export interface ConfigurationTaskGetUserJobQueryDetailsParams { - queryId: number; - user: string; - } - - export interface AuxRecordDescription { - properties: any; - recordId: number; - tableName: string; - } - - export interface JobCreationParameters { - loi: Geometry; - assignedTo: string; - autoCommitWorkflow: boolean; - autoExecute: boolean; - dataWorkspaceId: string; - description: string; - dueDate: Date; - jobTypeId: number; - assignedType: string; - name: string; - numJobs: string; - ownedBy: string; - parentJobId: number; - parentVersion: string; - priority: number; - startDate: Date; - user: string; - } - - export interface JobQueryParameters { - aliases: string; - fields: string; - orderBy: string; - tables: string; - where: string; - user: string; - } - - export interface JobTaskAddEmbeddedAttachmentParams { - jobId: number; - form: any; - user: string; - } - - export interface JobTaskAddLinkedAttachmentParams { - jobId: number; - attachmentType: number; - path: string; - user: string; - } - - export interface JobTaskAddLinkedRecordParams { - jobId: number; - tableName: string; - user: string; - } - - export interface JobTaskAssignJobsParams { - jobIds: number[]; - assignedType: string; - assignedTo: string; - user: string; - } - - export interface JobTaskCloseJobsParams { - jobIds: number[]; - user: string; - } - - export interface JobTaskCreateDependencyParams { - jobId: number; - heldOnType: string; - heldOnValue: number; - depJobId: number; - depOnType: string; - depOnValue: number; - user: string; - } - - export interface JobTaskCreateHoldParams { - jobId: number; - holdTypeId: number; - comments: string; - user: string; - } - - export interface JobTaskCreateJobVersionParams { - jobId: number; - name: string; - parent: string; - user: string; - } - - export interface JobTaskDeleteAttachmentParams { - jobId: number; - attachmentId: number; - user: string; - } - - export interface JobTaskDeleteDependencyParams { - jobId: number; - dependencyId: number; - user: string; - } - - export interface JobTaskDeleteJobsParams { - jobIds: number[]; - deleteHistory?: boolean; - user: string; - } - - export interface JobTaskDeleteLinkedRecordParams { - jobId: number; - tableName: string; - recordId: number; - user: string; - } - - export interface JobTaskGetAttachmentContentUrlParams { - jobId: number; - attachmentId: number; - } - - export interface JobTaskListFieldValuesParams { - jobId: number; - tableName: string; - field: string; - user: string; - } - - export interface JobTaskListMultiLevelFieldValuesParams { - field: string; - previousSelectedValues: string[]; - user: string; - } - - export interface JobTaskLogActionParams { - jobId: number; - activityTypeId: number; - comments: string; - user: string; - } - - export interface JobTaskQueryJobsParams { - queryId: number; - user: string; - } - - export interface JobTaskQueryMultiLevelSelectedValuesParams { - field: string; - user: string; - } - - export interface JobTaskReleaseHoldParams { - jobId: number; - holdId: number; - } - - export interface JobTaskReopenClosedJobsParams { - jobIds: number[]; - user: string; - } - - export interface JobTaskSearchJobsParams { - text: string; - user: string; - } - - export interface JobTaskUnassignJobsParams { - jobIds: number[]; - user: string; - } - - export interface JobTaskUpdateNotesParams { - jobId: number; - notes: string; - user: string; - } - - export interface JobTaskUpdateRecordParams { - jobId: number; - record: AuxRecordDescription; - user: string; - } - - export interface JobUpdateParameters { - ownedBy: string; - assignedTo: string; - dataWorkspaceId: string; - description: string; - dueDate: Date; - loi: Geometry; - jobId: number; - name: string; - assignedType: string; - parentJobId: number; - parentVersion: string; - percent: number; - priority: number; - startDate: Date; - status: number; - versionName: string; - user: string; - } - - export interface ChangeRule { - description: string; - evaluators: any[]; - id: number; - name: string; - notifier: any; - summarize: boolean; - } - - export interface NotificationTaskAddChangeRuleParams { - rule: ChangeRule; - user: string; - } - - export interface NotificationTaskDeleteChangeRuleParams { - ruleId: string; - user: string; - } - - export interface NotificationTaskNotifySessionParams { - sessionid: string; - deleteAfter: boolean; - user: string; - } - - export interface NotificationTaskQueryChangeRulesParams { - name: string; - description: string; - searchType: string; - user: string; - } - - export interface NotificationTaskRunSpatialNotificationOnHistoryParams { - dataWorkspaceId: string; - from: Date; - to: Date; - logMatches: boolean; - send: boolean; - user: string; - } - - export interface NotificationTaskSendNotificationParams { - jobId: number; - notificationType: string; - user: string; - } - - export interface NotificationTaskSubscribeToNotificationParams { - notificationTypeId: number; - email: string; - user: string; - } - - export interface NotificationTaskUnsubscribeFromNotificationParams { - notificationTypeId: number; - email: string; - user: string; - } - - export interface ReportTaskGenerateReportParams { - reportId: number; - user: string; - } - - export interface ReportTaskGetReportContentUrlParams { - reportId: number; - user: number; - } - - export interface ReportTaskGetReportDataParams { - reportId: number; - user: string; - } - - export interface TokenTaskParseTokensParams { - jobId: any; - stringToParse: string; - user: string; - } - - export interface WorkflowTaskCanRunStepParams { - jobId: number; - stepId: number; - user: string; - } - - export interface WorkflowTaskExecuteStepsParams { - jobId: number; - stepIds: number[]; - auto: boolean; - user: string; - } - - export interface WorkflowTaskGetStepDescriptionParams { - jobId: number; - stepId: number; - } - - export interface WorkflowTaskGetStepFileUrlParams { - jobId: number; - stepId: number; - } - - export interface WorkflowTaskGetStepParams { - jobId: number; - stepId: number; - } - - export interface WorkflowTaskMarkStepsAsDoneParams { - jobId: number; - stepIds: number[]; - user: string; - } - - export interface WorkflowTaskMoveToNextStepParams { - jobId: number; - stepId: number; - returnCode: number; - user: string; - } - - export interface WorkflowTaskRecreateWorkflowParams { - jobId: number; - user: string; - } - - export interface WorkflowTaskResolveConflictParams { - jobId: number; - stepId: number; - optionReturnCode: number; - optionStepIds: number[]; - user: string; - } - - export interface WorkflowTaskSetCurrentStepParams { - jobId: number; - stepId: number; - user: string; - } - - export interface ImageryLayerViewPixelData { - extent?: Extent; - pixelBlock: PixelBlock; - } - - export interface StreamLayerViewDataReceivedEvent { - } - - export type StreamLayerViewDataReceivedEventHandler = (event: StreamLayerViewDataReceivedEvent) => void; - - export interface StreamLayerViewFilter { - geometry?: Extent; - where?: string; - } - - export interface StreamLayerViewUpdateFilterFilter { - geometry?: Extent; - where?: string; - } - - export interface SlideApplyToOptions { - animate: boolean; - speedFactor?: number; - duration?: number; - maxDuration?: number; - easing?: string | EasingFunction; - } - - export interface SlideCreateFromOptions { - screenshot: SlideCreateFromOptionsScreenshot; - } - - export interface SlideCreateFromOptionsScreenshot { - format: string; - quality: number; - width: number; - height: number; - } - - export interface SlideDescriptionProperties { - text?: string; - } - export interface SlideDescription extends Accessor { - text?: string; - } - - export interface SlideThumbnailProperties { - url?: string; - } - export interface SlideThumbnail extends Accessor { - url?: string; - } - - export interface SlideTitleProperties { - text?: string; - } - export interface SlideTitle extends Accessor { - text?: string; - } - - export interface SlideUpdateFromOptions { - screenshot: SlideUpdateFromOptionsScreenshot; - } - - export interface SlideUpdateFromOptionsScreenshot { - format: string; - quality: number; - width: number; - height: number; - } - - export interface SlideVisibleLayers extends Collection { - id: string; - } - - export interface ColorSliderValues { - color: Color; - value: number; - label: string; - } - - export interface LegendLayerInfos { - title?: string; - layer: Layer; - } - - export interface PopupDockOptions { - breakpoint?: any | boolean; - buttonEnabled?: boolean; - position?: string | Function; - } - - export interface PopupOpenOptions { - title?: string; - content?: string; - location?: Geometry; - features?: Graphic[]; - promises?: IPromise[]; - updateLocationEnabled?: boolean; - } - - export interface SearchViewModelSearchCompleteEventResults { - results: SearchViewModelSearchCompleteEventResultsResults[]; - sourceIndex: number; - source: any[]; - } - - export interface SearchViewModelSearchCompleteEventResultsResults { - extent: Extent; - feature: Graphic; - name: string; - } - - export interface SearchViewModelSelectResultEventResult { - extent: Extent; - feature: Graphic; - name: string; - } - - export interface SearchViewModelSuggestCompleteEventResults { - results: SearchViewModelSuggestCompleteEventResultsResults[]; - sourceIndex: number; - source: any; - } - - export interface SearchViewModelSuggestCompleteEventResultsResults { - extent: Extent; - feature: Graphic; - name: string; - isCollection: boolean; - magicKey: string; - text: string; - } - - export interface SearchViewModelLoadEvent { - } - - export type SearchViewModelLoadEventHandler = (event: SearchViewModelLoadEvent) => void; - - export interface SearchViewModelSearchClearEvent { - } - - export type SearchViewModelSearchClearEventHandler = (event: SearchViewModelSearchClearEvent) => void; - - export interface SearchViewModelSearchCompleteEvent { - activeSourceIndex: number; - errors: Error[]; - numResults: number; - searchTerm: string; - results: SearchViewModelSearchCompleteEventResults[]; - } - - export type SearchViewModelSearchCompleteEventHandler = (event: SearchViewModelSearchCompleteEvent) => void; - - export interface SearchViewModelSearchStartEvent { - } - - export type SearchViewModelSearchStartEventHandler = (event: SearchViewModelSearchStartEvent) => void; - - export interface SearchViewModelSelectResultEvent { - result: SearchViewModelSelectResultEventResult; - source: any; - sourceIndex: number; - } - - export type SearchViewModelSelectResultEventHandler = (event: SearchViewModelSelectResultEvent) => void; - - export interface SearchViewModelSuggestCompleteEvent { - activeSourceIndex: number; - errors: Error[]; - numResults: number; - searchTerm: string; - results: SearchViewModelSuggestCompleteEventResults[]; - } - - export type SearchViewModelSuggestCompleteEventHandler = (event: SearchViewModelSuggestCompleteEvent) => void; - - export interface SearchViewModelSuggestStartEvent { - } - - export type SearchViewModelSuggestStartEventHandler = (event: SearchViewModelSuggestStartEvent) => void; - - export interface DynamicLayerFetchImageOptions { - allowImageDataAccess?: boolean; - rotation?: number; - pixelRatio?: number; - } - - export interface DynamicLayerGetImageUrlOptions { - pixelRatio?: number; - rotation?: number; - } - - export interface ArcGISDynamicMapServiceGetExportImageParametersOptions { - rotation?: number; - } - - export interface SceneServiceVersion { - major: number; - minor: number; - versionString: string; - } - - export interface BreakpointsOwnerBreakpoints { - xsmall: number; - small: number; - medium: number; - large: number; - } - - export interface configRequest { - corsDetection?: boolean; - corsDetectionTimeout?: number; - corsEnabledServers?: Array; - forceProxy?: boolean; - httpsDomains?: string[]; - maxUrlLength?: number; - proxyUrl?: string; - timeout?: number; - useCors?: string | boolean; - proxyRules?: configRequestProxyRules[]; - } - - export interface configRequestCorsEnabledServers { - host?: string; - withCredentials?: boolean; - } - - export interface configRequestProxyRules { - proxyUrl?: string; - urlPrefix?: string; - } - - export interface configWorkers { - loaderConfig?: configWorkersLoaderConfig; - } - - export interface configWorkersLoaderConfig { - has?: any; - paths?: any; - map?: any; - packages?: any[]; - } - - export interface requestEsriRequestOptions { - callbackParamName?: string; - query?: any; - responseType?: string; - headers?: any; - timeout?: number; - method?: string; - body?: any | any | string; - useProxy?: boolean; - cacheBust?: boolean; - allowImageDataAccess?: boolean; - } - - export interface EachAlwaysResult { - promise: IPromise; - value: any; - error: any; - } - - export interface urlUtilsAddProxyRuleRule { - proxyUrl: string; - urlPrefix: string; - } - - export type EventAttachedCallback = (target: any, propName: string, obj: Accessor, eventName: string) => void; - - export interface PausableWatchHandle { - remove(): void; - pause(): void; - resume(): void; - } - - export interface decoratorsPropertyPropertyMetadata { - dependsOn?: string[]; - type?: Function; - cast?: Function; - readOnly?: boolean; - aliasOf?: string; - value?: any; - } - - export interface colorCreateContinuousRendererParams { - layer: FeatureLayer | SceneLayer; - field: string; - normalizationField?: string; - basemap?: string | Basemap; - theme?: string; - colorScheme?: any; - legendOptions?: colorCreateContinuousRendererParamsLegendOptions; - statistics?: any; - minValue?: number; - maxValue?: number; - defaultSymbolEnabled?: boolean; - view?: SceneView; - symbolType?: string; - colorMixMode?: string; - } - - export interface colorCreateContinuousRendererParamsLegendOptions { - title: string; - } - - export interface colorCreateVisualVariableParams { - layer: FeatureLayer | SceneLayer; - field: string; - normalizationField?: string; - basemap?: string | Basemap; - theme?: string; - colorScheme?: any; - legendOptions?: colorCreateVisualVariableParamsLegendOptions; - statistics?: any; - minValue?: number; - maxValue?: number; - view?: SceneView; - worldScale?: boolean; - } - - export interface colorCreateVisualVariableParamsLegendOptions { - title: string; - } - - export interface locationCreateRendererParams { - layer: FeatureLayer | SceneLayer; - basemap?: string | Basemap; - locationScheme?: any | any | any; - view?: SceneView; - symbolType?: string; - colorMixMode?: string; - } - - export interface sizeCreateContinuousRendererParams { - layer: FeatureLayer | SceneLayer; - field: string; - normalizationField?: string; - basemap?: string | Basemap; - sizeScheme?: any | any | any; - legendOptions?: sizeCreateContinuousRendererParamsLegendOptions; - statistics?: any; - minValue?: number; - maxValue?: number; - defaultSymbolEnabled?: boolean; - view?: SceneView; - symbolType?: string; - } - - export interface sizeCreateContinuousRendererParamsLegendOptions { - title: string; - } - - export interface sizeCreateVisualVariablesParams { - layer: FeatureLayer | SceneLayer; - field: string; - normalizationField?: string; - basemap?: string | Basemap; - sizeScheme?: any | any | any; - legendOptions?: sizeCreateVisualVariablesParamsLegendOptions; - statistics?: any; - minValue?: number; - maxValue?: number; - view?: SceneView; - worldScale?: boolean; - axis?: boolean; - } - - export interface sizeCreateVisualVariablesParamsLegendOptions { - title: string; - } - - export interface typeCreateRendererParams { - layer: FeatureLayer | SceneLayer; - field: string; - basemap?: string | Basemap; - numTypes?: number; - sortBy?: string; - typeScheme?: any | any | any; - legendOptions?: typeCreateRendererParamsLegendOptions; - defaultSymbolEnabled?: boolean; - view?: SceneView; - symbolType?: string; - statistics?: any; - colorMixMode?: string; - } - - export interface typeCreateRendererParamsLegendOptions { - title: string; - } - - export interface univariateColorSizeCreateContinuousRendererParams { - layer: FeatureLayer | SceneLayer; - basemap?: string | Basemap; - field: string; - normalizationField?: string; - statistics?: any; - minValue?: number; - maxValue?: number; - defaultSymbolEnabled?: boolean; - colorOptions?: univariateColorSizeCreateContinuousRendererParamsColorOptions; - sizeOptions?: univariateColorSizeCreateContinuousRendererParamsSizeOptions; - view?: SceneView; - symbolType?: string; - } - - export interface univariateColorSizeCreateContinuousRendererParamsColorOptions { - theme?: string; - colorScheme?: any; - legendOptions?: univariateColorSizeCreateContinuousRendererParamsColorOptionsLegendOptions; - } - - export interface univariateColorSizeCreateContinuousRendererParamsColorOptionsLegendOptions { - title: string; - } - - export interface univariateColorSizeCreateContinuousRendererParamsSizeOptions { - sizeScheme?: any | any | any; - legendOptions?: univariateColorSizeCreateContinuousRendererParamsSizeOptionsLegendOptions; - } - - export interface univariateColorSizeCreateContinuousRendererParamsSizeOptionsLegendOptions { - title: string; - } - - export interface univariateColorSizeCreateVisualVariablesParams { - layer: FeatureLayer | SceneLayer; - basemap?: string | Basemap; - field: string; - normalizationField?: string; - statistics?: any; - minValue?: number; - maxValue?: number; - colorOptions?: univariateColorSizeCreateVisualVariablesParamsColorOptions; - sizeOptions?: univariateColorSizeCreateVisualVariablesParamsSizeOptions; - view?: SceneView; - worldScale?: boolean; - } - - export interface univariateColorSizeCreateVisualVariablesParamsColorOptions { - theme?: string; - colorScheme?: any; - legendOptions?: univariateColorSizeCreateVisualVariablesParamsColorOptionsLegendOptions; - } - - export interface univariateColorSizeCreateVisualVariablesParamsColorOptionsLegendOptions { - title: string; - } - - export interface univariateColorSizeCreateVisualVariablesParamsSizeOptions { - axis?: boolean; - sizeScheme?: any | any | any; - legendOptions?: univariateColorSizeCreateVisualVariablesParamsSizeOptionsLegendOptions; - } - - export interface univariateColorSizeCreateVisualVariablesParamsSizeOptionsLegendOptions { - title: string; - } - - export interface classBreaksClassBreaksParams { - layer: FeatureLayer | SceneLayer; - field?: string; - normalizationField?: string; - classificationMethod?: string; - standardDeviationInterval?: number; - minValue?: number; - maxValue?: number; - numClasses?: number; - } - - export interface histogramHistogramParams { - layer: FeatureLayer | SceneLayer; - field?: string; - normalizationField?: string; - classificationMethod?: string; - standardDeviationInterval?: number; - minValue?: number; - maxValue?: number; - numBins?: number; - } - - export interface summaryStatisticsSummaryStatisticsParams { - layer: FeatureLayer | SceneLayer; - field?: string; - normalizationField?: string; - features?: Graphic[]; - minValue?: number; - maxValue?: number; - } - - export interface uniqueValuesUniqueValuesParams { - layer: FeatureLayer | SceneLayer; - field: string; - features?: Graphic[]; - returnAllCodedValues?: boolean; - } - - export interface colorGetSchemesParams { - basemap: string | Basemap; - geometryType: string; - theme: string; - view?: SceneView; - worldScale?: boolean; - } - - export interface locationGetSchemesParams { - basemap: string | Basemap; - geometryType: string; - view?: SceneView; - worldScale?: boolean; - } - - export interface sizeGetSchemesParams { - basemap: string | Basemap; - geometryType: string; - view?: SceneView; - worldScale?: boolean; - } - - export interface typeGetSchemesParams { - basemap: string | Basemap; - geometryType: string; - worldScale?: boolean; - view?: SceneView; - } - - export interface JobQuery { - id: number; - name: string; - } - - export interface GroupMembership { - id: number; - name: string; - } - - export interface JobQueryContainer { - containers: JobQueryContainer[]; - id: number; - name: string; - queries: JobQuery[]; - } - - export interface Privilege { - description: string; - id: number; - name: string; - } - - export interface DataWorkspace { - id: string; - name: string; - } - - export interface HoldType { - description: string; - id: number; - name: string; - } - - export interface JobPriority { - description: string; - name: string; - value: number; - } - - export interface JobStatus { - caption: string; - description: string; - id: number; - name: string; - } - - export interface JobType { - category: string; - description: string; - id: string; - name: string; - state: string; - } - - export interface ActivityType { - desription: string; - id: number; message: string; - name: string; } - export interface NotificationType { - attachJobAttachments: boolean; - id: number; - message: string; - senderEmail: string; - senderName: string; - subject: string; - subscribers: string[]; - type: string; - } - - export interface AuxRecord { - displayProperty: any; - id: number; - recordvalues: AuxRecordValue; - } - - export interface AuxRecordValue { - filter: string; - alias: string; - data: any; - dataType: string; - displayOrder: number; - displayType: string; - domain: string; - canUpdate: boolean; - length: number; - name: string; - required: boolean; - tableListClass: string; - tableListDisplayField: string; - tableListStoreField: string; - userVisible: boolean; - } - - export interface JobVersionInfo { - dataWorkspaceId: string; - name: string; - parent: string; - created: boolean; - owner: string; - } - - export interface QueryFieldInfo { - alias: string; - length: string; - name: string; - type: string; - } - - export interface DatasetConfiguration { - changeCondition: number; - changeFields: string; - dataset: string; - dataWorkspaceId: string; - name: string; - whereConditions: WhereCondition[]; - } - - export interface WhereCondition { - compareValue: any; - field: string; - operator: string; - } - - export interface ReportDataGroup { - aggregateLabel: string; - aggregateValue: string; - row: string[]; - value: string; - } - - export interface WorkflowConflicts { - jobID: number; - options: WorkflowOption[]; - spawnsConcurrency: boolean; - stepId: number; - } - - export interface WorkflowOption { - returnCode: number; - steps: WorkflowStepInfo[]; - } - - export interface WorkflowStepInfo { - id: number; - name: string; - } - - export interface StepType { - program: string; - arguments: string; - executionType: string; - id: number; - name: string; - description: string; - stepDescriptionLink: string; - stepDescriptionType: string; - stepIndicatorType: string; - supportedPlatform: string; - visible: boolean; - } - - export interface WorkflowAnnotationDisplayDetails { - centerX: number; - centerY: number; - fillColor: any; - height: number; - label: string; - labelColor: any; - OutlineColor: any; - width: number; - } - - export interface WorkflowPathDisplayDetails { - destStepId: number; - sourceStepID: number; - label: string; - labelColor: any; - labelX: number; - labelY: number; - lineColor: any; - pathObject: any; - } - - export interface WorkflowStepDisplayDetails { - labelColor: any; - centerX: number; - fillColor: any; - height: number; - label: string; - centerY: number; - OutlineColor: any; - shape: string; - stepId: number; - stepType: string; - width: number; - } - - export interface ColorAndIntensity { - color: any; - intensity: number; - } - - export interface RenderCamera { - viewMatrix: any; - viewInverseTransposeMatrix: any; - projectionMatrix: any; - eye: any; - center: any; - up: any; - near: number; - far: number; - fovX: number; - fovY: number; - } - - export interface SunLight { - direction: any; - diffuse: ColorAndIntensity; - ambient: ColorAndIntensity; - } - - interface Basemap extends Accessor, Loadable, JSONSupport { - baseLayers: Collection; - id: string; - loaded: boolean; - portalItem: PortalItem; - referenceLayers: Collection; - thumbnailUrl: string; - title: string; - - clone(): this; - } - - interface BasemapConstructor { - new(properties?: BasemapProperties): Basemap; - - - fromId(id: string): Basemap; - - fromJSON(json: any): Basemap; - } - - export const Basemap: BasemapConstructor; - - interface BasemapProperties extends LoadableProperties { - baseLayers?: Collection | any[]; - id?: string; - loaded?: boolean; - portalItem?: PortalItemProperties; - referenceLayers?: Collection | any[]; - thumbnailUrl?: string; - title?: string; - } - - interface Camera extends Accessor, JSONSupport { - fov: number; - heading: number; - position: Point; - tilt: number; - - clone(): this; - } - - interface CameraConstructor { - new(properties?: CameraProperties): Camera; - - fromJSON(json: any): Camera; - } - - export const Camera: CameraConstructor; - - interface CameraProperties { - fov?: number; - heading?: number; - position?: PointProperties; - tilt?: number; - } - - interface Color { - a: number; - b: number; - g: number; - r: number; - - clone(): this; - setColor(color: string | number[] | any): Color; - toCss(includeAlpha?: boolean): string; - toHex(): string; - toJSON(): any; - toRgb(): number[]; - toRgba(): number[]; - } - - interface ColorConstructor { - - blendColors(start: Color, end: Color, weight: number, obj?: Color): Color; - new(color: string | number[] | any): Color; - fromArray(a: number[], obj?: Color): Color; - fromHex(color: string, obj?: Color): Color; - fromJSON(json: any): Color; - fromRgb(color: string, obj?: Color): Color; - fromString(str: string, obj?: Color): Color; - } - - export const Color: ColorConstructor; - - interface Graphic extends Accessor, JSONSupport { - attributes: any; - geometry: Geometry; - layer: FeatureLayer | GraphicsLayer; - popupTemplate: PopupTemplate; - symbol: Symbol; - visible: boolean; - - clone(): this; - getAttribute(name: string): any; - getEffectivePopupTemplate(): PopupTemplate; - setAttribute(name: string, newValue: any): void; - } - - interface GraphicConstructor { - new(properties?: GraphicProperties): Graphic; - - fromJSON(json: any): Graphic; - } - - export const Graphic: GraphicConstructor; - - interface GraphicProperties { - attributes?: any; - geometry?: GeometryProperties; - layer?: FeatureLayer | GraphicsLayer; - popupTemplate?: PopupTemplateProperties; - symbol?: SymbolProperties; - visible?: boolean; - } - - interface Ground extends Accessor { - layers: Collection; - - clone(): this; - queryElevation(geometry: Point | Multipoint | Polyline, options?: GroundQueryElevationOptions): IPromise; - } - - interface GroundConstructor { - new(properties?: GroundProperties): Ground; - } - - export const Ground: GroundConstructor; - - interface GroundProperties { - layers?: Collection | any[]; - } - - interface Map extends Accessor, LayersMixin { - allLayers: Collection; - basemap: Basemap; - ground: Ground; - } - - interface MapConstructor { - new(properties?: MapProperties): Map; - } - - export const Map: MapConstructor; - - interface MapProperties extends LayersMixinProperties { - allLayers?: Collection | any[]; - basemap?: BasemapProperties; - ground?: GroundProperties; - } - - interface PopupTemplate extends Accessor, JSONSupport { - actions: Collection; - content: string; - expressionInfos: PopupTemplateExpressionInfos[]; - fieldInfos: PopupTemplateFieldInfos[]; - overwriteActions: boolean; - title: string; - - clone(): this; - } - - interface PopupTemplateConstructor { - new(properties?: PopupTemplateProperties): PopupTemplate; - - fromJSON(json: any): PopupTemplate; - } - - export const PopupTemplate: PopupTemplateConstructor; - - interface PopupTemplateProperties { - actions?: Collection | any[]; - content?: string | any[] | Function | IPromise; - expressionInfos?: PopupTemplateExpressionInfos[]; - fieldInfos?: PopupTemplateFieldInfos[]; - overwriteActions?: boolean; - title?: string | Function; - } - - interface Viewpoint extends Accessor, JSONSupport { - camera: Camera; - rotation: number; - scale: number; - targetGeometry: Geometry; - - clone(): this; - } - - interface ViewpointConstructor { - new(properties?: ViewpointProperties): Viewpoint; - - fromJSON(json: any): Viewpoint; - } - - export const Viewpoint: ViewpointConstructor; - - interface ViewpointProperties { - camera?: CameraProperties; - rotation?: number; - scale?: number; - targetGeometry?: GeometryProperties; - } - - interface WebMap extends Map, corePromise { - applicationProperties: any; - bookmarks: any[]; - initialViewProperties: InitialViewProperties; - loaded: boolean; - loadError: Error; - loadStatus: string; - portalItem: PortalItem; - presentation: any; - sourceVersion: WebMapSourceVersion; - tables: any[]; - widgets: any; - - load(): IPromise; - } - - interface WebMapConstructor { - new(properties?: WebMapProperties): WebMap; - } - - export const WebMap: WebMapConstructor; - - interface WebMapProperties extends MapProperties { - applicationProperties?: any; - bookmarks?: any[]; - initialViewProperties?: InitialViewPropertiesProperties; - loaded?: boolean; - loadError?: Error; - loadStatus?: string; - portalItem?: PortalItemProperties; - presentation?: any; - sourceVersion?: WebMapSourceVersion; - tables?: any[]; - widgets?: any; - } - - interface WebScene extends Map, corePromise { - clippingArea: Extent; - clippingEnabled: boolean; - initialViewProperties: websceneInitialViewProperties; - loaded: boolean; - loadError: Error; - loadStatus: string; - portalItem: PortalItem; - presentation: Presentation; - sourceVersion: WebSceneSourceVersion; - - load(): IPromise; - save(options?: WebSceneSaveOptions): IPromise; - saveAs(portalItem: PortalItem, options?: WebSceneSaveAsOptions): IPromise; - toJSON(): any; - updateFrom(view: SceneView, options?: WebSceneUpdateFromOptions): void; - } - - interface WebSceneConstructor { - new(properties?: WebSceneProperties): WebScene; - - - fromJSON(json: any): any; - } - - export const WebScene: WebSceneConstructor; - - interface WebSceneProperties extends MapProperties { - clippingArea?: ExtentProperties; - clippingEnabled?: boolean; - initialViewProperties?: websceneInitialViewPropertiesProperties; - loaded?: boolean; - loadError?: Error; - loadStatus?: string; - portalItem?: PortalItemProperties; - presentation?: PresentationProperties; - sourceVersion?: WebSceneSourceVersion; - } - - - - interface Collection extends Accessor, Evented { - length: number; - - add(item: any, index?: number): void; - addMany(items: any[] | Collection, index?: number): void; - clone(): this; - concat(value: any[] | Collection): Collection; - every(callback: ItemTestCallback): boolean; - filter(callback: ItemTestCallback): Collection; - find(callback: ItemTestCallback): any; - findIndex(callback: ItemTestCallback): number; - flatten(callback: ItemCallback): Collection; - forEach(callback: ItemCallback): void; - getItemAt(index: number): any; - includes(searchElement: any): boolean; - indexOf(searchElement: any, fromIndex?: number): number; - join(separator?: string): string; - lastIndexOf(searchElement: any, fromIndex?: number): number; - map(callback: ItemMapCallback): Collection; - pop(): any; - push(item: any): number; - reduce(callback: ItemReduceCallback): any; - reduceRight(callback: ItemReduceCallback, initialValue?: any): any; - remove(item: any): void; - removeAll(): void; - removeAt(index: number): any; - removeMany(items: any[] | Collection): any; - reorder(item: any, index: number): any; - reverse(): Collection; - shift(): any; - slice(begin?: number, end?: number): Collection; - some(callback: ItemCallback): boolean; - sort(compareFunction?: ItemCompareCallback): void; - splice(start: number, deleteCount: number, items: any): any[]; - toArray(): any[]; - unshift(items: any): number; - } - - interface CollectionConstructor { - new(properties?: CollectionProperties): Collection; - - - isCollection(value: any): boolean; - ofType(type: any): any; - } - - export const Collection: CollectionConstructor; - - interface CollectionProperties { - length?: number; - } - - interface Connection { - broadcast(methodName: string, data?: any, buffers?: any[]): IPromise[]; - close(): void; - invoke(methodName: string, data?: any, buffers?: any[]): IPromise; - } - - interface ConnectionConstructor { - new(client: any, id: number): Connection; - } - - export const Connection: ConnectionConstructor; - - interface Circle extends Polygon { - center: Point | number[]; - geodesic: boolean; - numberOfPoints: number; - radius: number; - radiusUnit: string; - } - - interface CircleConstructor { - new(properties?: CircleProperties): Circle; - - fromJSON(json: any): Circle; - } - - export const Circle: CircleConstructor; - - interface CircleProperties extends PolygonProperties { - center?: Point | number[]; - geodesic?: boolean; - numberOfPoints?: number; - radius?: number; - radiusUnit?: string; - } - - interface Extent extends Geometry { - center: Point; - height: number; - mmax: number; - mmin: number; - width: number; - xmax: number; - xmin: number; - ymax: number; - ymin: number; - zmax: number; - zmin: number; - - centerAt(point: Point): Extent; - contains(geometry: Point | Extent): boolean; - equals(extent: Extent): boolean; - expand(factor: number): Extent; - intersection(extent: Extent): Extent; - intersects(geometry: Geometry): boolean; - normalize(): Extent[]; - offset(dx: number, dy: number, dz: number): Extent; - union(extent: Extent): Extent; - } - - interface ExtentConstructor { - new(properties?: ExtentProperties): Extent; - - fromJSON(json: any): Extent; - } - - export const Extent: ExtentConstructor; - - interface ExtentProperties extends GeometryProperties { - center?: PointProperties; - height?: number; - mmax?: number; - mmin?: number; - width?: number; - xmax?: number; - xmin?: number; - ymax?: number; - ymin?: number; - zmax?: number; - zmin?: number; - } - - interface Geometry extends Accessor, JSONSupport { - cache: any; - extent: Extent; - hasM: boolean; - hasZ: boolean; - spatialReference: SpatialReference; - type: string; - - clone(): this; - } - - interface GeometryConstructor { - new(properties?: GeometryProperties): Geometry; - - fromJSON(json: any): Geometry; - } - - export const Geometry: GeometryConstructor; - - interface GeometryProperties { - cache?: any; - extent?: ExtentProperties; - hasM?: boolean; - hasZ?: boolean; - spatialReference?: SpatialReferenceProperties; - type?: string; - } - - interface Multipoint extends Geometry { - points: number[][]; - - addPoint(point: Point | number[]): Multipoint; - getPoint(index: number): Point; - removePoint(index: number): Point; - setPoint(index: number, point: Point): Multipoint; - } - - interface MultipointConstructor { - new(properties?: MultipointProperties): Multipoint; - - fromJSON(json: any): Multipoint; - } - - export const Multipoint: MultipointConstructor; - - interface MultipointProperties extends GeometryProperties { - points?: number[][]; - } - - interface Point extends Geometry { - latitude: number; - longitude: number; - m: number; - x: number; - y: number; - z: number; - - copy(other: Point): void; - distance(other: Point): number; - equals(point: Point): boolean; - normalize(): Point; - } - - interface PointConstructor { - new(properties?: PointProperties): Point; - - fromJSON(json: any): Point; - } - - export const Point: PointConstructor; - - interface PointProperties extends GeometryProperties { - latitude?: number; - longitude?: number; - m?: number; - x?: number; - y?: number; - z?: number; - } - - interface Polygon extends Geometry { - centroid: Point; - isSelfIntersecting: boolean; - rings: number[][][]; - - addRing(ring: Point[] | number[][]): Polygon; - contains(point: Point): boolean; - getPoint(ringIndex: number, pointIndex: number): Point; - insertPoint(ringIndex: number, pointIndex: number, point: Point): Polygon; - isClockwise(ring: Point[] | number[][]): boolean; - removePoint(ringIndex: number, pointIndex: number): Point[]; - removeRing(index: number): Point[]; - setPoint(ringIndex: number, pointIndex: number, point: Point): Polygon; - } - - interface PolygonConstructor { - new(properties?: PolygonProperties): Polygon; - - - fromExtent(extent: Extent): Polygon; - - fromJSON(json: any): Polygon; - } - - export const Polygon: PolygonConstructor; - - interface PolygonProperties extends GeometryProperties { - centroid?: PointProperties; - isSelfIntersecting?: boolean; - rings?: number[][][]; - } - - interface Polyline extends Geometry { - paths: number[][][]; - - addPath(points: number[][]): Polyline; - getPoint(pathIndex: number, pointIndex: number): Point; - insertPoint(pathIndex: number, pointIndex: number, point: Point): Polyline; - removePath(index: number): Point[]; - removePoint(pathIndex: number, pointIndex: number): Point; - setPoint(pathIndex: number, pointIndex: number, point: Point): Polyline; - } - - interface PolylineConstructor { - new(properties?: PolylineProperties): Polyline; - - fromJSON(json: any): Polyline; - } - - export const Polyline: PolylineConstructor; - - interface PolylineProperties extends GeometryProperties { - paths?: number[][][]; - } - - interface ScreenPoint extends Accessor { - x: number; - y: number; - } - - interface ScreenPointConstructor { - new(properties?: ScreenPointProperties): ScreenPoint; - } - - export const ScreenPoint: ScreenPointConstructor; - - interface ScreenPointProperties { - x?: number; - y?: number; - } - - interface SpatialReference extends Accessor, JSONSupport { - isGeographic: boolean; - isWebMercator: boolean; - isWGS84: boolean; - isWrappable: boolean; - WebMercator: SpatialReference; - WGS84: SpatialReference; - wkid: number; - wkt: string; - - clone(): this; - equals(spatialReference: SpatialReference): boolean; - } - - interface SpatialReferenceConstructor { - new(properties?: SpatialReferenceProperties): SpatialReference; - - fromJSON(json: any): SpatialReference; - } - - export const SpatialReference: SpatialReferenceConstructor; - - interface SpatialReferenceProperties { - isGeographic?: boolean; - isWebMercator?: boolean; - isWGS84?: boolean; - isWrappable?: boolean; - WebMercator?: SpatialReferenceProperties; - WGS84?: SpatialReferenceProperties; - wkid?: number; - wkt?: string; - } - - interface Credential extends Accessor { - expires: number; - isAdmin: boolean; - oAuthState: any; - server: string; - ssl: boolean; - token: string; - userId: string; - - destroy(): void; - refreshToken(): void; - } - - interface CredentialConstructor { - new(properties?: CredentialProperties): Credential; - } - - export const Credential: CredentialConstructor; - - interface CredentialProperties { - expires?: number; - isAdmin?: boolean; - oAuthState?: any; - server?: string; - ssl?: boolean; - token?: string; - userId?: string; - } - - interface IdentityManagerBase extends Evented { - tokenValidity: number; - - checkSignInStatus(resUrl: string): IPromise; - destroyCredentials(): void; - findCredential(url: string, userId?: string): Credential; - findOAuthInfo(url: string): OAuthInfo; - findServerInfo(url: string): ServerInfo; - generateToken(serverInfo: ServerInfo, userInfo: any, options?: IdentityManagerBaseGenerateTokenOptions): IPromise; - getCredential(url: string, options?: IdentityManagerBaseGetCredentialOptions): IPromise; - initialize(json: any): void; - isBusy(): boolean; - oAuthSignIn(resUrl: string, serverInfo: ServerInfo, oAuthInfo: OAuthInfo, options?: IdentityManagerBaseOAuthSignInOptions): IPromise; - registerOAuthInfos(oAuthInfos: OAuthInfo[]): void; - registerServers(serverInfos: ServerInfo[]): void; - registerToken(properties: IdentityManagerBaseRegisterTokenProperties): void; - setProtocolErrorHandler(handlerFunction: IdentityManagerBaseSetProtocolErrorHandlerHandlerFunction): void; - setRedirectionHandler(handlerFunction: IdentityManagerBaseSetRedirectionHandlerHandlerFunction): void; - signIn(url: string, serverInfo: ServerInfo, options?: IdentityManagerBaseSignInOptions): IPromise; - toJSON(): any; - } - - interface IdentityManagerBaseConstructor { - new(): IdentityManagerBase; - } - - export const IdentityManagerBase: IdentityManagerBaseConstructor; - - interface IdentityManager extends IdentityManagerBase { - dialog: any; - - setOAuthRedirectionHandler(handlerFunction: HandlerCallback): void; - setOAuthResponseHash(hash: string): void; - - on(name: "credential-create", eventHandler: IdentityManagerCredentialCreateEventHandler): IHandle; - on(name: "credential-create", modifiers: string[], eventHandler: IdentityManagerCredentialCreateEventHandler): IHandle; - on(name: "credentials-destroy", eventHandler: IdentityManagerCredentialsDestroyEventHandler): IHandle; - on(name: "credentials-destroy", modifiers: string[], eventHandler: IdentityManagerCredentialsDestroyEventHandler): IHandle; - } - - interface IdentityManagerConstructor { - new(): IdentityManager; - } - - export const IdentityManager: IdentityManagerConstructor; - - interface OAuthInfo extends Accessor, JSONSupport { - appId: string; - authNamespace: string; - expiration: number; - locale: string; - minTimeUntilExpiration: number; - popup: boolean; - popupCallbackUrl: string; - popupWindowFeatures: string; - portalUrl: string; - - clone(): this; - } - - interface OAuthInfoConstructor { - new(properties?: OAuthInfoProperties): OAuthInfo; - - fromJSON(json: any): OAuthInfo; - } - - export const OAuthInfo: OAuthInfoConstructor; - - interface OAuthInfoProperties { - appId?: string; - authNamespace?: string; - expiration?: number; - locale?: string; - minTimeUntilExpiration?: number; - popup?: boolean; - popupCallbackUrl?: string; - popupWindowFeatures?: string; - portalUrl?: string; - } - - interface ServerInfo extends Accessor, JSONSupport { - adminTokenServiceUrl: string; - currentVersion: number; - server: string; - shortLivedTokenValidity: number; - tokenServiceUrl: string; - } - - interface ServerInfoConstructor { - new(properties?: ServerInfoProperties): ServerInfo; - - fromJSON(json: any): ServerInfo; - } - - export const ServerInfo: ServerInfoConstructor; - - interface ServerInfoProperties { - adminTokenServiceUrl?: string; - currentVersion?: number; - server?: string; - shortLivedTokenValidity?: number; - tokenServiceUrl?: string; - } - - interface BaseElevationLayer extends Layer { - spatialReference: SpatialReference; - tileInfo: TileInfo; - - addResolvingPromise(promiseToLoad: IPromise): IPromise; - fetchTile(level: number, row: number, column: number, options?: BaseElevationLayerFetchTileOptions): IPromise; - getTileBounds(level: number, row: number, column: number, out?: number[]): number[]; - - on(name: "layerview-create", eventHandler: BaseElevationLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-create", modifiers: string[], eventHandler: BaseElevationLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-destroy", eventHandler: BaseElevationLayerLayerviewDestroyEventHandler): IHandle; - on(name: "layerview-destroy", modifiers: string[], eventHandler: BaseElevationLayerLayerviewDestroyEventHandler): IHandle; - } - - interface BaseElevationLayerConstructor { - new(properties?: BaseElevationLayerProperties): BaseElevationLayer; - } - - export const BaseElevationLayer: BaseElevationLayerConstructor; - - interface BaseElevationLayerProperties extends LayerProperties { - spatialReference?: SpatialReferenceProperties; - tileInfo?: TileInfoProperties; - } - - interface CSVLayer extends Layer { - copyright: string; - delimiter: string; - elevationInfo: CSVLayerElevationInfo; - featureReduction: CSVLayerFeatureReduction; - fields: Field[]; - labelingInfo: LabelClass[]; - labelsVisible: boolean; - latitudeField: string; - legendEnabled: boolean; - longitudeField: string; - maxScale: number; - minScale: number; - outFields: string[]; - popupEnabled: boolean; - popupTemplate: PopupTemplate; - renderer: Renderer; - screenSizePerspectiveEnabled: boolean; - url: string; - - on(name: "layerview-create", eventHandler: CSVLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-create", modifiers: string[], eventHandler: CSVLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-destroy", eventHandler: CSVLayerLayerviewDestroyEventHandler): IHandle; - on(name: "layerview-destroy", modifiers: string[], eventHandler: CSVLayerLayerviewDestroyEventHandler): IHandle; - } - - interface CSVLayerConstructor { - new(properties?: CSVLayerProperties): CSVLayer; - } - - export const CSVLayer: CSVLayerConstructor; - - interface CSVLayerProperties extends LayerProperties { - copyright?: string; - delimiter?: string; - elevationInfo?: CSVLayerElevationInfo; - featureReduction?: CSVLayerFeatureReduction; - fields?: FieldProperties[]; - labelingInfo?: LabelClassProperties[]; - labelsVisible?: boolean; - latitudeField?: string; - legendEnabled?: boolean; - longitudeField?: string; - maxScale?: number; - minScale?: number; - outFields?: string[]; - popupEnabled?: boolean; - popupTemplate?: PopupTemplateProperties; - renderer?: RendererProperties; - screenSizePerspectiveEnabled?: boolean; - url?: string; - } - - interface ElevationLayer extends Layer, ArcGISMapService, ArcGISCachedService, PortalLayer, TiledLayer { - url: string; - - fetchTile(level: number, row: number, column: number, noDataValue?: number): IPromise; - queryElevation(geometry: Point | Multipoint | Polyline, options?: ElevationLayerQueryElevationOptions): IPromise; - - on(name: "layerview-create", eventHandler: ElevationLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-create", modifiers: string[], eventHandler: ElevationLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-destroy", eventHandler: ElevationLayerLayerviewDestroyEventHandler): IHandle; - on(name: "layerview-destroy", modifiers: string[], eventHandler: ElevationLayerLayerviewDestroyEventHandler): IHandle; - } - - interface ElevationLayerConstructor { - new(properties?: ElevationLayerProperties): ElevationLayer; - - fromJSON(json: any): ElevationLayer; - } - - export const ElevationLayer: ElevationLayerConstructor; - - interface ElevationLayerProperties extends LayerProperties, ArcGISMapServiceProperties, ArcGISCachedServiceProperties, PortalLayerProperties, TiledLayerProperties { - url?: string; - } - - interface FeatureLayer extends Layer, PortalLayer, ScaleRangeLayer { - capabilities: FeatureLayerCapabilities; - copyright: string; - definitionExpression: string; - displayField: string; - elevationInfo: FeatureLayerElevationInfo; - featureReduction: FeatureLayerFeatureReduction; - fields: Field[]; - gdbVersion: string; - geometryType: string; - hasAttachments: boolean; - hasM: boolean; - hasZ: boolean; - labelingInfo: LabelClass[]; - labelsVisible: boolean; - layerId: number; - legendEnabled: boolean; - objectIdField: string; - outFields: string[]; - popupEnabled: boolean; - popupTemplate: PopupTemplate; - renderer: Renderer; - returnM: boolean; - returnZ: boolean; - screenSizePerspectiveEnabled: boolean; - source: Collection; - spatialReference: SpatialReference; - templates: FeatureTemplate[]; - token: string; - typeIdField: string; - types: FeatureType[]; - url: string; - version: number; - - applyEdits(edits: FeatureLayerApplyEditsEdits): IPromise; - createQuery(): Query; - getFieldDomain(fieldName: string, options?: FeatureLayerGetFieldDomainOptions): Domain; - queryExtent(params?: Query): IPromise; - queryFeatureCount(params?: Query): IPromise; - queryFeatures(params?: Query): IPromise; - queryObjectIds(params?: Query): IPromise; - - on(name: "layerview-create", eventHandler: FeatureLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-create", modifiers: string[], eventHandler: FeatureLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-destroy", eventHandler: FeatureLayerLayerviewDestroyEventHandler): IHandle; - on(name: "layerview-destroy", modifiers: string[], eventHandler: FeatureLayerLayerviewDestroyEventHandler): IHandle; - } - - interface FeatureLayerConstructor { - new(properties?: FeatureLayerProperties): FeatureLayer; - - fromJSON(json: any): FeatureLayer; - } - - export const FeatureLayer: FeatureLayerConstructor; - - interface FeatureLayerProperties extends LayerProperties, PortalLayerProperties, ScaleRangeLayerProperties { - capabilities?: FeatureLayerCapabilities; - copyright?: string; - definitionExpression?: string; - displayField?: string; - elevationInfo?: FeatureLayerElevationInfo; - featureReduction?: FeatureLayerFeatureReduction; - fields?: FieldProperties[]; - gdbVersion?: string; - geometryType?: string; - hasAttachments?: boolean; - hasM?: boolean; - hasZ?: boolean; - labelingInfo?: LabelClassProperties[]; - labelsVisible?: boolean; - layerId?: number; - legendEnabled?: boolean; - objectIdField?: string; - outFields?: string[]; - popupEnabled?: boolean; - popupTemplate?: PopupTemplateProperties; - renderer?: RendererProperties; - returnM?: boolean; - returnZ?: boolean; - screenSizePerspectiveEnabled?: boolean; - source?: Collection | any[]; - spatialReference?: SpatialReferenceProperties; - templates?: FeatureTemplateProperties[]; - token?: string; - typeIdField?: string; - types?: FeatureTypeProperties[]; - url?: string; - version?: number; - } - - interface GeoRSSLayer extends Layer { + interface GeoRSSLayer extends Layer, ScaleRangeLayer { lineSymbol: SimpleLineSymbol; pointSymbol: PictureMarkerSymbol; polygonSymbol: SimpleFillSymbol; @@ -3426,16 +1691,26 @@ declare namespace __esri { export const GeoRSSLayer: GeoRSSLayerConstructor; - interface GeoRSSLayerProperties extends LayerProperties { + interface GeoRSSLayerProperties extends LayerProperties, ScaleRangeLayerProperties { lineSymbol?: SimpleLineSymbolProperties; pointSymbol?: PictureMarkerSymbolProperties; polygonSymbol?: SimpleFillSymbolProperties; url?: string; } + export interface GeoRSSLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface GeoRSSLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + interface GraphicsLayer extends Layer, ScaleRangeLayer { elevationInfo: GraphicsLayerElevationInfo; - graphics: Collection; + graphics: Collection; screenSizePerspectiveEnabled: boolean; add(graphic: Graphic): void; @@ -3458,10 +1733,31 @@ declare namespace __esri { interface GraphicsLayerProperties extends LayerProperties, ScaleRangeLayerProperties { elevationInfo?: GraphicsLayerElevationInfo; - graphics?: Collection | any[]; + graphics?: CollectionProperties; screenSizePerspectiveEnabled?: boolean; } + export interface GraphicsLayerElevationInfo { + mode: string; + offset?: number; + featureExpressionInfo?: GraphicsLayerElevationInfoFeatureExpressionInfo; + unit?: string; + } + + export interface GraphicsLayerElevationInfoFeatureExpressionInfo { + expression?: string; + } + + export interface GraphicsLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface GraphicsLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + interface GroupLayer extends Layer, LayersMixin, PortalLayer { visibilityMode: string; @@ -3483,6 +1779,16 @@ declare namespace __esri { visibilityMode?: string; } + export interface GroupLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface GroupLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + interface ImageryLayer extends Layer, ArcGISImageService, ScaleRangeLayer { pixelFilter: Function; popupEnabled: boolean; @@ -3512,7 +1818,19 @@ declare namespace __esri { token?: string; } + export interface ImageryLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface ImageryLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + interface IntegratedMeshLayer extends Layer, SceneService, PortalLayer { + elevationInfo: IntegratedMeshLayerElevationInfo; + on(name: "layerview-create", eventHandler: IntegratedMeshLayerLayerviewCreateEventHandler): IHandle; on(name: "layerview-create", modifiers: string[], eventHandler: IntegratedMeshLayerLayerviewCreateEventHandler): IHandle; on(name: "layerview-destroy", eventHandler: IntegratedMeshLayerLayerviewDestroyEventHandler): IHandle; @@ -3528,7 +1846,63 @@ declare namespace __esri { export const IntegratedMeshLayer: IntegratedMeshLayerConstructor; interface IntegratedMeshLayerProperties extends LayerProperties, SceneServiceProperties, PortalLayerProperties { + elevationInfo?: IntegratedMeshLayerElevationInfo; + } + export interface IntegratedMeshLayerElevationInfo { + mode: string; + offset?: number; + } + + export interface IntegratedMeshLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface IntegratedMeshLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + interface KMLLayer extends Layer, PortalLayer, ScaleRangeLayer { + allVisibleMapImages: Collection; + allVisiblePoints: Collection; + allVisiblePolygons: Collection; + allVisiblePolylines: Collection; + sublayers: Collection; + url: string; + + on(name: "layerview-create", eventHandler: KMLLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: KMLLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: KMLLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: KMLLayerLayerviewDestroyEventHandler): IHandle; + } + + interface KMLLayerConstructor { + new(properties?: KMLLayerProperties): KMLLayer; + + fromJSON(json: any): KMLLayer; + } + + export const KMLLayer: KMLLayerConstructor; + + interface KMLLayerProperties extends LayerProperties, PortalLayerProperties, ScaleRangeLayerProperties { + allVisibleMapImages?: CollectionProperties; + allVisiblePoints?: CollectionProperties; + allVisiblePolygons?: CollectionProperties; + allVisiblePolylines?: CollectionProperties; + sublayers?: CollectionProperties; + url?: string; + } + + export interface KMLLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface KMLLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; } interface Layer extends Accessor, Loadable, Evented { @@ -3548,8 +1922,8 @@ declare namespace __esri { new(properties?: LayerProperties): Layer; - fromArcGISServerUrl(params: LayerFromArcGISServerUrlParams): IPromise; - fromPortalItem(params: LayerFromPortalItemParams): IPromise; + fromArcGISServerUrl(params: LayerFromArcGISServerUrlParams): IPromise; + fromPortalItem(params: LayerFromPortalItemParams): IPromise; } export const Layer: LayerConstructor; @@ -3565,7 +1939,16 @@ declare namespace __esri { visible?: boolean; } - interface MapImageLayer extends Layer, ArcGISMapService, ArcGISDynamicMapService, DynamicLayer { + export interface LayerFromArcGISServerUrlParams { + url: string; + properties?: any; + } + + export interface LayerFromPortalItemParams { + portalItem: PortalItem; + } + + interface MapImageLayer extends Layer, ArcGISMapService, ArcGISDynamicMapService, DynamicLayer, ScaleRangeLayer { on(name: "layerview-create", eventHandler: MapImageLayerLayerviewCreateEventHandler): IHandle; on(name: "layerview-create", modifiers: string[], eventHandler: MapImageLayerLayerviewCreateEventHandler): IHandle; on(name: "layerview-destroy", eventHandler: MapImageLayerLayerviewDestroyEventHandler): IHandle; @@ -3580,11 +1963,21 @@ declare namespace __esri { export const MapImageLayer: MapImageLayerConstructor; - interface MapImageLayerProperties extends LayerProperties, ArcGISMapServiceProperties, ArcGISDynamicMapServiceProperties, DynamicLayerProperties { + interface MapImageLayerProperties extends LayerProperties, ArcGISMapServiceProperties, ArcGISDynamicMapServiceProperties, DynamicLayerProperties, ScaleRangeLayerProperties { } - interface MapNotesLayer extends Layer, PortalLayer { + export interface MapImageLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface MapImageLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + interface MapNotesLayer extends Layer, PortalLayer, ScaleRangeLayer { on(name: "layerview-create", eventHandler: MapNotesLayerLayerviewCreateEventHandler): IHandle; on(name: "layerview-create", modifiers: string[], eventHandler: MapNotesLayerLayerviewCreateEventHandler): IHandle; on(name: "layerview-destroy", eventHandler: MapNotesLayerLayerviewDestroyEventHandler): IHandle; @@ -3599,10 +1992,225 @@ declare namespace __esri { export const MapNotesLayer: MapNotesLayerConstructor; - interface MapNotesLayerProperties extends LayerProperties, PortalLayerProperties { + interface MapNotesLayerProperties extends LayerProperties, PortalLayerProperties, ScaleRangeLayerProperties { } + export interface MapNotesLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface MapNotesLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + interface ArcGISCachedService { + tileInfo: TileInfo; + + fromJSON(json: any): any; + toJSON(): any; + } + + interface ArcGISCachedServiceConstructor { + new(properties?: ArcGISCachedServiceProperties): ArcGISCachedService; + + fromJSON(json: any): ArcGISCachedService; + } + + export const ArcGISCachedService: ArcGISCachedServiceConstructor; + + interface ArcGISCachedServiceProperties { + tileInfo?: TileInfoProperties; + } + + interface ArcGISDynamicMapService { + allSublayers: Collection; + dpi: number; + gdbVersion: string; + imageFormat: string; + imageMaxHeight: number; + imageMaxWidth: number; + imageTransparency: boolean; + sublayers: Collection; + + createServiceSublayers(): Collection; + findSublayerById(id: number): Sublayer; + getExportImageParameters(extent: Extent, width: number, height: number, options?: ArcGISDynamicMapServiceGetExportImageParametersOptions): any; + } + + interface ArcGISDynamicMapServiceConstructor { + new(): ArcGISDynamicMapService; + } + + export const ArcGISDynamicMapService: ArcGISDynamicMapServiceConstructor; + + interface ArcGISDynamicMapServiceProperties { + allSublayers?: CollectionProperties; + dpi?: number; + gdbVersion?: string; + imageFormat?: string; + imageMaxHeight?: number; + imageMaxWidth?: number; + imageTransparency?: boolean; + sublayers?: CollectionProperties; + } + + export interface ArcGISDynamicMapServiceGetExportImageParametersOptions { + rotation?: number; + } + + interface ArcGISImageService { + compressionQuality: number; + compressionTolerance: number; + copyright: string; + definitionExpression: string; + domainFields: Field[]; + fields: Field[]; + format: string; + fullExtent: Extent; + hasMultidimensions: boolean; + hasRasterAttributeTable: boolean; + imageMaxHeight: number; + imageMaxWidth: number; + mosaicRule: MosaicRule; + multidimensionalInfo: any; + pixelType: string; + popupTemplate: PopupTemplate; + rasterAttributeTable: any; + rasterAttributeTableFieldPrefix: string; + rasterFields: Field[]; + renderingRule: RasterFunction; + spatialReference: SpatialReference; + url: string; + version: number; + + fetchImage(extent: Extent, width: number, height: number): IPromise; + fromJSON(json: any): any; + toJSON(): any; + } + + interface ArcGISImageServiceConstructor { + new(properties?: ArcGISImageServiceProperties): ArcGISImageService; + + fromJSON(json: any): ArcGISImageService; + } + + export const ArcGISImageService: ArcGISImageServiceConstructor; + + interface ArcGISImageServiceProperties { + compressionQuality?: number; + compressionTolerance?: number; + copyright?: string; + definitionExpression?: string; + domainFields?: FieldProperties[]; + fields?: FieldProperties[]; + format?: string; + fullExtent?: ExtentProperties; + hasMultidimensions?: boolean; + hasRasterAttributeTable?: boolean; + imageMaxHeight?: number; + imageMaxWidth?: number; + mosaicRule?: MosaicRuleProperties; + multidimensionalInfo?: any; + pixelType?: string; + popupTemplate?: PopupTemplateProperties; + rasterAttributeTable?: any; + rasterAttributeTableFieldPrefix?: string; + rasterFields?: FieldProperties[]; + renderingRule?: RasterFunctionProperties; + spatialReference?: SpatialReferenceProperties; + url?: string; + version?: number; + } + + interface ArcGISMapService { + copyright: string; + fullExtent: Extent; + spatialReference: SpatialReference; + token: string; + } + + interface ArcGISMapServiceConstructor { + new(properties?: ArcGISMapServiceProperties): ArcGISMapService; + + fromJSON(json: any): ArcGISMapService; + } + + export const ArcGISMapService: ArcGISMapServiceConstructor; + + interface ArcGISMapServiceProperties { + copyright?: string; + fullExtent?: ExtentProperties; + spatialReference?: SpatialReferenceProperties; + token?: string; + } + + interface PortalLayer { + portalItem: PortalItem; + } + + interface PortalLayerConstructor { + new(properties?: PortalLayerProperties): PortalLayer; + + fromJSON(json: any): PortalLayer; + } + + export const PortalLayer: PortalLayerConstructor; + + interface PortalLayerProperties { + portalItem?: PortalItemProperties; + } + + interface ScaleRangeLayer { + maxScale: number; + minScale: number; + } + + interface ScaleRangeLayerConstructor { + new(): ScaleRangeLayer; + } + + export const ScaleRangeLayer: ScaleRangeLayerConstructor; + + interface ScaleRangeLayerProperties { + maxScale?: number; + minScale?: number; + } + + interface SceneService { + copyright: string; + layerId: number; + spatialReference: SpatialReference; + token: string; + url: string; + version: SceneServiceVersion; + } + + interface SceneServiceConstructor { + new(properties?: SceneServiceProperties): SceneService; + + fromJSON(json: any): SceneService; + } + + export const SceneService: SceneServiceConstructor; + + interface SceneServiceProperties { + copyright?: string; + layerId?: number; + spatialReference?: SpatialReferenceProperties; + token?: string; + url?: string; + version?: SceneServiceVersion; + } + + export interface SceneServiceVersion { + major: number; + minor: number; + versionString: string; + } + interface OpenStreetMapLayer extends WebTileLayer { on(name: "layerview-create", eventHandler: OpenStreetMapLayerLayerviewCreateEventHandler): IHandle; on(name: "layerview-create", modifiers: string[], eventHandler: OpenStreetMapLayerLayerviewCreateEventHandler): IHandle; @@ -3622,9 +2230,20 @@ declare namespace __esri { } + export interface OpenStreetMapLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface OpenStreetMapLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + interface PointCloudLayer extends Layer, SceneService, PortalLayer { elevationInfo: PointCloudLayerElevationInfo; fields: Field[]; + legendEnabled: boolean; renderer: PointCloudRenderer; on(name: "layerview-create", eventHandler: PointCloudLayerLayerviewCreateEventHandler): IHandle; @@ -3644,9 +2263,25 @@ declare namespace __esri { interface PointCloudLayerProperties extends LayerProperties, SceneServiceProperties, PortalLayerProperties { elevationInfo?: PointCloudLayerElevationInfo; fields?: FieldProperties[]; + legendEnabled?: boolean; renderer?: PointCloudRendererProperties; } + export interface PointCloudLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface PointCloudLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + export interface PointCloudLayerElevationInfo { + mode: string; + offset?: number; + } + interface SceneLayer extends Layer, SceneService, PortalLayer { definitionExpression: string; elevationInfo: SceneLayerElevationInfo; @@ -3665,9 +2300,9 @@ declare namespace __esri { createQuery(): Query; getFieldUsageInfo(fieldName: string): any; queryExtent(params?: Query): IPromise; - queryFeatureCount(params?: Query): IPromise; - queryFeatures(params?: Query): IPromise; - queryObjectIds(params?: Query): IPromise; + queryFeatureCount(params?: Query): IPromise; + queryFeatures(params?: Query): IPromise; + queryObjectIds(params?: Query): IPromise; on(name: "layerview-create", eventHandler: SceneLayerLayerviewCreateEventHandler): IHandle; on(name: "layerview-create", modifiers: string[], eventHandler: SceneLayerLayerviewCreateEventHandler): IHandle; @@ -3699,6 +2334,25 @@ declare namespace __esri { screenSizePerspectiveEnabled?: boolean; } + export interface SceneLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface SceneLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + export interface SceneLayerElevationInfo { + mode: string; + offset?: number; + } + + export interface SceneLayerFeatureReduction { + type: string; + } + interface StreamLayer extends FeatureLayer { filter: StreamLayerFilter; geometryDefinition: Extent; @@ -3728,266 +2382,29 @@ declare namespace __esri { purgeOptions?: StreamLayerPurgeOptions; } - interface TileLayer extends Layer, ArcGISMapService, ArcGISCachedService, PortalLayer, TiledLayer { - attributionDataUrl: string; - hasAttributionData: boolean; - legendEnabled: boolean; - tileServers: string[]; - url: string; - - fetchTile(level: number, row: number, column: number, options?: TileLayerFetchTileOptions): IPromise; - getTileUrl(level: number, row: number, col: number): string; - - on(name: "layerview-create", eventHandler: TileLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-create", modifiers: string[], eventHandler: TileLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-destroy", eventHandler: TileLayerLayerviewDestroyEventHandler): IHandle; - on(name: "layerview-destroy", modifiers: string[], eventHandler: TileLayerLayerviewDestroyEventHandler): IHandle; + export interface StreamLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; } - interface TileLayerConstructor { - new(properties?: TileLayerProperties): TileLayer; - - fromJSON(json: any): TileLayer; + export interface StreamLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; } - export const TileLayer: TileLayerConstructor; - - interface TileLayerProperties extends LayerProperties, ArcGISMapServiceProperties, ArcGISCachedServiceProperties, PortalLayerProperties, TiledLayerProperties { - attributionDataUrl?: string; - hasAttributionData?: boolean; - legendEnabled?: boolean; - tileServers?: string[]; - url?: string; + export interface StreamLayerFilter { + geometry?: Extent; + where?: string; } - interface UnknownLayer extends Layer { - on(name: "layerview-create", eventHandler: UnknownLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-create", modifiers: string[], eventHandler: UnknownLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-destroy", eventHandler: UnknownLayerLayerviewDestroyEventHandler): IHandle; - on(name: "layerview-destroy", modifiers: string[], eventHandler: UnknownLayerLayerviewDestroyEventHandler): IHandle; + export interface StreamLayerPurgeOptions { + displayCount: number; + age: number; } - interface UnknownLayerConstructor { - new(properties?: UnknownLayerProperties): UnknownLayer; - } - - export const UnknownLayer: UnknownLayerConstructor; - - interface UnknownLayerProperties extends LayerProperties { - - } - - interface UnsupportedLayer extends Layer { - on(name: "layerview-create", eventHandler: UnsupportedLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-create", modifiers: string[], eventHandler: UnsupportedLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-destroy", eventHandler: UnsupportedLayerLayerviewDestroyEventHandler): IHandle; - on(name: "layerview-destroy", modifiers: string[], eventHandler: UnsupportedLayerLayerviewDestroyEventHandler): IHandle; - } - - interface UnsupportedLayerConstructor { - new(properties?: UnsupportedLayerProperties): UnsupportedLayer; - } - - export const UnsupportedLayer: UnsupportedLayerConstructor; - - interface UnsupportedLayerProperties extends LayerProperties { - - } - - interface VectorTileLayer extends Layer, PortalLayer, ScaleRangeLayer, TiledLayer { - attributionDataUrl: string; - currentStyleInfo: VectorTileLayerCurrentStyleInfo; - spatialReference: SpatialReference; - token: string; - url: string; - - loadStyle(style: string | any): IPromise; - - on(name: "layerview-create", eventHandler: VectorTileLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-create", modifiers: string[], eventHandler: VectorTileLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-destroy", eventHandler: VectorTileLayerLayerviewDestroyEventHandler): IHandle; - on(name: "layerview-destroy", modifiers: string[], eventHandler: VectorTileLayerLayerviewDestroyEventHandler): IHandle; - } - - interface VectorTileLayerConstructor { - new(properties?: VectorTileLayerProperties): VectorTileLayer; - - fromJSON(json: any): VectorTileLayer; - } - - export const VectorTileLayer: VectorTileLayerConstructor; - - interface VectorTileLayerProperties extends LayerProperties, PortalLayerProperties, ScaleRangeLayerProperties, TiledLayerProperties { - attributionDataUrl?: string; - currentStyleInfo?: VectorTileLayerCurrentStyleInfo; - spatialReference?: SpatialReferenceProperties; - token?: string; - url?: string | any; - } - - interface WebTileLayer extends Layer, TiledLayer, ScaleRangeLayer { - copyright: string; - spatialReference: SpatialReference; - subDomains: string[]; - tileServers: string[]; - urlTemplate: string; - - on(name: "layerview-create", eventHandler: WebTileLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-create", modifiers: string[], eventHandler: WebTileLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-destroy", eventHandler: WebTileLayerLayerviewDestroyEventHandler): IHandle; - on(name: "layerview-destroy", modifiers: string[], eventHandler: WebTileLayerLayerviewDestroyEventHandler): IHandle; - } - - interface WebTileLayerConstructor { - new(properties?: WebTileLayerProperties): WebTileLayer; - - fromJSON(json: any): WebTileLayer; - } - - export const WebTileLayer: WebTileLayerConstructor; - - interface WebTileLayerProperties extends LayerProperties, TiledLayerProperties, ScaleRangeLayerProperties { - copyright?: string; - spatialReference?: SpatialReferenceProperties; - subDomains?: string[]; - tileServers?: string[]; - urlTemplate?: string; - } - - interface WMSLayer extends Layer, PortalLayer { - copyright: string; - customLayerParameters: any; - customParameters: any; - description: string; - featureInfoFormat: string; - featureInfoUrl: string; - fullExtents: Extent[]; - imageFormat: string; - imageMaxHeight: number; - imageMaxWidth: number; - imageTransparency: boolean; - spatialReference: SpatialReference; - spatialReferences: number[]; - sublayers: Collection; - version: string; - - fetchImage(extent: Extent, width: number, height: number, options?: WMSLayerFetchImageOptions): IPromise; - findSublayerById(id: number): WMSSublayer; - - on(name: "layerview-create", eventHandler: WMSLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-create", modifiers: string[], eventHandler: WMSLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-destroy", eventHandler: WMSLayerLayerviewDestroyEventHandler): IHandle; - on(name: "layerview-destroy", modifiers: string[], eventHandler: WMSLayerLayerviewDestroyEventHandler): IHandle; - } - - interface WMSLayerConstructor { - new(properties?: WMSLayerProperties): WMSLayer; - - fromJSON(json: any): WMSLayer; - } - - export const WMSLayer: WMSLayerConstructor; - - interface WMSLayerProperties extends LayerProperties, PortalLayerProperties { - copyright?: string; - customLayerParameters?: any; - customParameters?: any; - description?: string; - featureInfoFormat?: string; - featureInfoUrl?: string; - fullExtents?: ExtentProperties[]; - imageFormat?: string; - imageMaxHeight?: number; - imageMaxWidth?: number; - imageTransparency?: boolean; - spatialReference?: SpatialReferenceProperties; - spatialReferences?: number[]; - sublayers?: Collection | any[]; - version?: string; - } - - interface WMTSLayer extends Layer, PortalLayer { - activeLayer: WMTSSublayer; - copyright: string; - customLayerParameters: any; - customParameters: any; - serviceMode: string; - sublayers: Collection; - url: string; - version: string; - - findSublayerById(id: string): WMTSSublayer; - - on(name: "layerview-create", eventHandler: WMTSLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-create", modifiers: string[], eventHandler: WMTSLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-destroy", eventHandler: WMTSLayerLayerviewDestroyEventHandler): IHandle; - on(name: "layerview-destroy", modifiers: string[], eventHandler: WMTSLayerLayerviewDestroyEventHandler): IHandle; - } - - interface WMTSLayerConstructor { - new(properties?: WMTSLayerProperties): WMTSLayer; - - fromJSON(json: any): WMTSLayer; - } - - export const WMTSLayer: WMTSLayerConstructor; - - interface WMTSLayerProperties extends LayerProperties, PortalLayerProperties { - activeLayer?: WMTSSublayerProperties; - copyright?: string; - customLayerParameters?: any; - customParameters?: any; - serviceMode?: string; - sublayers?: Collection | any[]; - url?: string; - version?: string; - } - - interface BaseDynamicLayer extends Layer { - addResolvingPromise(promiseToLoad: IPromise): IPromise; - fetchImage(extent: Extent, width: number, height: number, options?: BaseDynamicLayerFetchImageOptions): IPromise; - getImageUrl(extent: Extent, width: number, height: number): IPromise | string; - - on(name: "layerview-create", eventHandler: BaseDynamicLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-create", modifiers: string[], eventHandler: BaseDynamicLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-destroy", eventHandler: BaseDynamicLayerLayerviewDestroyEventHandler): IHandle; - on(name: "layerview-destroy", modifiers: string[], eventHandler: BaseDynamicLayerLayerviewDestroyEventHandler): IHandle; - } - - interface BaseDynamicLayerConstructor { - new(properties?: BaseDynamicLayerProperties): BaseDynamicLayer; - } - - export const BaseDynamicLayer: BaseDynamicLayerConstructor; - - interface BaseDynamicLayerProperties extends LayerProperties { - - } - - interface BaseTileLayer extends Layer { - spatialReference: SpatialReference; - tileInfo: TileInfo; - - addResolvingPromise(promiseToLoad: IPromise): IPromise; - fetchTile(level: number, row: number, column: number, options?: BaseTileLayerFetchTileOptions): IPromise; - getTileBounds(level: number, row: number, column: number, out?: number[]): number[]; - getTileUrl(level: number, row: number, column: number): string | IPromise; - - on(name: "layerview-create", eventHandler: BaseTileLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-create", modifiers: string[], eventHandler: BaseTileLayerLayerviewCreateEventHandler): IHandle; - on(name: "layerview-destroy", eventHandler: BaseTileLayerLayerviewDestroyEventHandler): IHandle; - on(name: "layerview-destroy", modifiers: string[], eventHandler: BaseTileLayerLayerviewDestroyEventHandler): IHandle; - } - - interface BaseTileLayerConstructor { - new(properties?: BaseTileLayerProperties): BaseTileLayer; - } - - export const BaseTileLayer: BaseTileLayerConstructor; - - interface BaseTileLayerProperties extends LayerProperties { - spatialReference?: SpatialReferenceProperties; - tileInfo?: TileInfoProperties; + export interface StreamLayerUpdateFilterFilterChanges { + geometry: Extent; + where: string; } interface CodedValueDomain extends Domain { @@ -4008,6 +2425,11 @@ declare namespace __esri { codedValues?: CodedValueDomainCodedValues[]; } + export interface CodedValueDomainCodedValues { + name: string; + code: string | number; + } + interface DimensionalDefinition { dimensionName: string; isSlice: boolean; @@ -4041,6 +2463,59 @@ declare namespace __esri { type?: string; } + interface FeatureTemplate extends Accessor, JSONSupport { + description: string; + drawingTool: string; + name: string; + prototype: any; + thumbnail: FeatureTemplateThumbnail; + } + + interface FeatureTemplateConstructor { + new(properties?: FeatureTemplateProperties): FeatureTemplate; + + fromJSON(json: any): FeatureTemplate; + } + + export const FeatureTemplate: FeatureTemplateConstructor; + + interface FeatureTemplateProperties { + description?: string; + drawingTool?: string; + name?: string; + prototype?: any; + thumbnail?: FeatureTemplateThumbnail; + } + + export interface FeatureTemplateThumbnail { + contentType: any; + imageData: string; + height: number; + width: number; + } + + interface FeatureType extends Accessor, JSONSupport { + domains: any; + id: number | string; + name: string; + templates: FeatureTemplate[]; + } + + interface FeatureTypeConstructor { + new(properties?: FeatureTypeProperties): FeatureType; + + fromJSON(json: any): FeatureType; + } + + export const FeatureType: FeatureTypeConstructor; + + interface FeatureTypeProperties { + domains?: any; + id?: number | string; + name?: string; + templates?: FeatureTemplateProperties[]; + } + interface Field extends Accessor, JSONSupport { alias: string; domain: Domain; @@ -4069,52 +2544,6 @@ declare namespace __esri { type?: string; } - interface FeatureTemplate extends Accessor, JSONSupport { - description: string; - drawingTool: string; - name: string; - prototype: any; - thumbnail: FeatureTemplateThumbnail; - } - - interface FeatureTemplateConstructor { - new(properties?: FeatureTemplateProperties): FeatureTemplate; - - fromJSON(json: any): FeatureTemplate; - } - - export const FeatureTemplate: FeatureTemplateConstructor; - - interface FeatureTemplateProperties { - description?: string; - drawingTool?: string; - name?: string; - prototype?: any; - thumbnail?: FeatureTemplateThumbnail; - } - - interface FeatureType extends Accessor, JSONSupport { - domains: any; - id: number | string; - name: string; - templates: FeatureTemplate[]; - } - - interface FeatureTypeConstructor { - new(properties?: FeatureTypeProperties): FeatureType; - - fromJSON(json: any): FeatureType; - } - - export const FeatureType: FeatureTypeConstructor; - - interface FeatureTypeProperties { - domains?: any; - id?: number | string; - name?: string; - templates?: FeatureTemplateProperties[]; - } - interface ImageParameters extends Accessor { dpi: number; extent: Extent; @@ -4164,6 +2593,56 @@ declare namespace __esri { } + interface KMLSublayer extends Accessor, JSONSupport { + description: string; + id: number; + layer: KMLLayer; + mapImages: Collection; + networkLink: KMLSublayerNetworkLink; + points: Collection; + polygons: Collection; + polylines: Collection; + sublayers: Collection; + title: string; + visible: boolean; + } + + interface KMLSublayerConstructor { + new(properties?: KMLSublayerProperties): KMLSublayer; + + fromJSON(json: any): KMLSublayer; + } + + export const KMLSublayer: KMLSublayerConstructor; + + interface KMLSublayerProperties { + description?: string; + id?: number; + layer?: KMLLayerProperties; + mapImages?: CollectionProperties; + networkLink?: KMLSublayerNetworkLink; + points?: CollectionProperties; + polygons?: CollectionProperties; + polylines?: CollectionProperties; + sublayers?: CollectionProperties; + title?: string; + visible?: boolean; + } + + export interface KMLSublayerNetworkLink { + id: number; + name: string; + description: string; + visibility: number; + refreshMode: string; + refreshInterval: number; + viewRefreshMode: string; + viewRefreshTime: number; + viewBoundScale: number; + viewFormat: string; + httpQuery: string; + } + interface LabelClass extends Accessor, JSONSupport { labelExpression: string; labelExpressionInfo: LabelClassLabelExpressionInfo; @@ -4174,7 +2653,7 @@ declare namespace __esri { useCodedValues: boolean; where: string; - clone(): this; + clone(): LabelClass; } interface LabelClassConstructor { @@ -4191,11 +2670,16 @@ declare namespace __esri { labelPlacement?: string; maxScale?: number; minScale?: number; - symbol?: TextSymbol | LabelSymbol3D; + symbol?: TextSymbolProperties | LabelSymbol3DProperties; useCodedValues?: boolean; where?: string; } + export interface LabelClassLabelExpressionInfo { + value?: string; + expression: string; + } + interface LOD extends Accessor, JSONSupport { level: number; levelValue: string; @@ -4221,7 +2705,7 @@ declare namespace __esri { interface MapImage extends Accessor, JSONSupport { extent: Extent; height: number; - href: number; + href: string; opacity: number; scale: number; visible: boolean; @@ -4239,7 +2723,7 @@ declare namespace __esri { interface MapImageProperties { extent?: ExtentProperties; height?: number; - href?: number; + href?: string; opacity?: number; scale?: number; visible?: boolean; @@ -4309,6 +2793,17 @@ declare namespace __esri { width?: number; } + export interface PixelBlockAddDataPlaneData { + pixels: number[][]; + statistics: any[]; + } + + export interface PixelBlockStatistics { + maxValue?: number; + minValue?: number; + noDataValue?: number; + } + interface RangeDomain extends Domain { maxValue: number; minValue: number; @@ -4361,15 +2856,15 @@ declare namespace __esri { opacity: number; popupTemplate: PopupTemplate; renderer: Renderer; - source: any | any; - sublayers: Collection; + source: DynamicMapLayer | DynamicDataLayer; + sublayers: Collection; title: string; url: string; visible: boolean; - clone(): this; + clone(): Sublayer; createQuery(): Query; - queryFeatures(params?: Query): IPromise; + queryFeatures(params?: Query): IPromise; } interface SublayerConstructor { @@ -4390,16 +2885,65 @@ declare namespace __esri { opacity?: number; popupTemplate?: PopupTemplateProperties; renderer?: RendererProperties; - source?: any | any; - sublayers?: Collection | any[]; + source?: DynamicMapLayer | DynamicDataLayer; + sublayers?: CollectionProperties; title?: string; url?: string; visible?: boolean; } + export interface DynamicDataLayer { + type: string; + dataSource: TableDataSource | QueryTableDataSource | RasterDataSource | JoinTableDataSource; + fields: DynamicDataLayerFields[]; + } + + export interface DynamicMapLayer { + type: string; + mapLayerId: number; + gdbVersion: string; + } + + export interface JoinTableDataSource { + type: string; + leftTableKey: string; + rightTableKey: string; + leftTableSource: DynamicMapLayer | DynamicDataLayer; + rightTableSource: DynamicMapLayer | DynamicDataLayer; + joinType: string; + } + + export interface QueryTableDataSource { + type: string; + workspaceId: string; + query: string; + oidFields: string; + spatialReference: SpatialReference; + geometryType: string; + } + + export interface RasterDataSource { + type: string; + workspaceId: string; + dataSourceName: string; + } + + export interface TableDataSource { + type: string; + workspaceId: string; + dataSourceName: string; + gdbVersion: string; + } + + export interface DynamicDataLayerFields { + name: string; + alias: string; + } + interface TileInfo extends Accessor, JSONSupport { dpi: number; format: string; + isWrappable: boolean; lods: LOD[]; origin: Point; size: number[]; @@ -4417,6 +2961,7 @@ declare namespace __esri { interface TileInfoProperties { dpi?: number; format?: string; + isWrappable?: boolean; lods?: LODProperties[]; origin?: PointProperties; size?: number[]; @@ -4428,7 +2973,7 @@ declare namespace __esri { id: string; tileInfo: TileInfo; - clone(): this; + clone(): TileMatrixSet; } interface TileMatrixSetConstructor { @@ -4450,14 +2995,17 @@ declare namespace __esri { fullExtent: Extent; id: number; layer: WMSLayer; + legendEnabled: boolean; + legendUrl: string; name: string; popupEnabled: boolean; + queryable: boolean; spatialReferences: number[]; - sublayers: Collection; + sublayers: Collection; title: string; visible: boolean; - clone(): this; + clone(): WMSSublayer; } interface WMSSublayerConstructor { @@ -4472,7 +3020,7 @@ declare namespace __esri { legendUrl: string; title: string; - clone(): this; + clone(): WMTSStyle; } interface WMTSStyleConstructor { @@ -4498,12 +3046,13 @@ declare namespace __esri { imageFormats: string[]; layer: WMTSLayer; styleId: string; - styles: Collection; + styles: Collection; + tileMatrixSet: TileMatrixSet; tileMatrixSetId: string; - tileMatrixSets: Collection; + tileMatrixSets: Collection; title: string; - clone(): this; + clone(): WMTSSublayer; } interface WMTSSublayerConstructor { @@ -4522,12 +3071,446 @@ declare namespace __esri { imageFormats?: string[]; layer?: WMTSLayerProperties; styleId?: string; - styles?: Collection | any[]; + styles?: CollectionProperties; + tileMatrixSet?: TileMatrixSetProperties; tileMatrixSetId?: string; - tileMatrixSets?: Collection | any[]; + tileMatrixSets?: CollectionProperties; title?: string; } + interface TiledLayer { + tileInfo: TileInfo; + } + + interface TiledLayerConstructor { + new(properties?: TiledLayerProperties): TiledLayer; + + fromJSON(json: any): TiledLayer; + } + + export const TiledLayer: TiledLayerConstructor; + + interface TiledLayerProperties { + tileInfo?: TileInfoProperties; + } + + interface TileLayer extends Layer, ArcGISMapService, ArcGISCachedService, ScaleRangeLayer, PortalLayer, TiledLayer { + attributionDataUrl: string; + hasAttributionData: boolean; + legendEnabled: boolean; + tileServers: string[]; + url: string; + + fetchTile(level: number, row: number, column: number, options?: TileLayerFetchTileOptions): IPromise; + getTileUrl(level: number, row: number, col: number): string; + + on(name: "layerview-create", eventHandler: TileLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: TileLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: TileLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: TileLayerLayerviewDestroyEventHandler): IHandle; + } + + interface TileLayerConstructor { + new(properties?: TileLayerProperties): TileLayer; + + fromJSON(json: any): TileLayer; + } + + export const TileLayer: TileLayerConstructor; + + interface TileLayerProperties extends LayerProperties, ArcGISMapServiceProperties, ArcGISCachedServiceProperties, ScaleRangeLayerProperties, PortalLayerProperties, TiledLayerProperties { + attributionDataUrl?: string; + hasAttributionData?: boolean; + legendEnabled?: boolean; + tileServers?: string[]; + url?: string; + } + + export interface TileLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface TileLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + export interface TileLayerFetchTileOptions { + allowImageDataAccess?: boolean; + } + + interface UnknownLayer extends Layer { + on(name: "layerview-create", eventHandler: UnknownLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: UnknownLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: UnknownLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: UnknownLayerLayerviewDestroyEventHandler): IHandle; + } + + interface UnknownLayerConstructor { + new(properties?: UnknownLayerProperties): UnknownLayer; + } + + export const UnknownLayer: UnknownLayerConstructor; + + interface UnknownLayerProperties extends LayerProperties { + + } + + export interface UnknownLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface UnknownLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + interface UnsupportedLayer extends Layer { + on(name: "layerview-create", eventHandler: UnsupportedLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: UnsupportedLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: UnsupportedLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: UnsupportedLayerLayerviewDestroyEventHandler): IHandle; + } + + interface UnsupportedLayerConstructor { + new(properties?: UnsupportedLayerProperties): UnsupportedLayer; + } + + export const UnsupportedLayer: UnsupportedLayerConstructor; + + interface UnsupportedLayerProperties extends LayerProperties { + + } + + export interface UnsupportedLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface UnsupportedLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + interface VectorTileLayer extends Layer, PortalLayer, ScaleRangeLayer, TiledLayer { + attributionDataUrl: string; + currentStyleInfo: VectorTileLayerCurrentStyleInfo; + spatialReference: SpatialReference; + token: string; + url: string | any; + + loadStyle(style: string | any): IPromise; + + on(name: "layerview-create", eventHandler: VectorTileLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: VectorTileLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: VectorTileLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: VectorTileLayerLayerviewDestroyEventHandler): IHandle; + } + + interface VectorTileLayerConstructor { + new(properties?: VectorTileLayerProperties): VectorTileLayer; + + fromJSON(json: any): VectorTileLayer; + } + + export const VectorTileLayer: VectorTileLayerConstructor; + + interface VectorTileLayerProperties extends LayerProperties, PortalLayerProperties, ScaleRangeLayerProperties, TiledLayerProperties { + attributionDataUrl?: string; + currentStyleInfo?: VectorTileLayerCurrentStyleInfo; + spatialReference?: SpatialReferenceProperties; + token?: string; + url?: string | any; + } + + export interface VectorTileLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface VectorTileLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + export interface VectorTileLayerCurrentStyleInfo { + serviceUrl: string; + styleUrl: string; + spriteUrl: string; + glyphsUrl: string; + style: any; + layerDefinition: any; + } + + interface WebTileLayer extends Layer, TiledLayer, ScaleRangeLayer { + copyright: string; + spatialReference: SpatialReference; + subDomains: string[]; + tileServers: string[]; + urlTemplate: string; + + on(name: "layerview-create", eventHandler: WebTileLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: WebTileLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: WebTileLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: WebTileLayerLayerviewDestroyEventHandler): IHandle; + } + + interface WebTileLayerConstructor { + new(properties?: WebTileLayerProperties): WebTileLayer; + + fromJSON(json: any): WebTileLayer; + } + + export const WebTileLayer: WebTileLayerConstructor; + + interface WebTileLayerProperties extends LayerProperties, TiledLayerProperties, ScaleRangeLayerProperties { + copyright?: string; + spatialReference?: SpatialReferenceProperties; + subDomains?: string[]; + tileServers?: string[]; + urlTemplate?: string; + } + + export interface WebTileLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface WebTileLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + interface WMSLayer extends Layer, PortalLayer, ScaleRangeLayer { + copyright: string; + customLayerParameters: any; + customParameters: any; + description: string; + featureInfoFormat: string; + featureInfoUrl: string; + fullExtents: Extent[]; + imageFormat: string; + imageMaxHeight: number; + imageMaxWidth: number; + imageTransparency: boolean; + legendEnabled: boolean; + spatialReference: SpatialReference; + spatialReferences: number[]; + sublayers: Collection; + url: string; + version: string; + + fetchImage(extent: Extent, width: number, height: number, options?: WMSLayerFetchImageOptions): IPromise; + findSublayerById(id: number): WMSSublayer; + + on(name: "layerview-create", eventHandler: WMSLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: WMSLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: WMSLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: WMSLayerLayerviewDestroyEventHandler): IHandle; + } + + interface WMSLayerConstructor { + new(properties?: WMSLayerProperties): WMSLayer; + + fromJSON(json: any): WMSLayer; + } + + export const WMSLayer: WMSLayerConstructor; + + interface WMSLayerProperties extends LayerProperties, PortalLayerProperties, ScaleRangeLayerProperties { + copyright?: string; + customLayerParameters?: any; + customParameters?: any; + description?: string; + featureInfoFormat?: string; + featureInfoUrl?: string; + fullExtents?: ExtentProperties[]; + imageFormat?: string; + imageMaxHeight?: number; + imageMaxWidth?: number; + imageTransparency?: boolean; + legendEnabled?: boolean; + spatialReference?: SpatialReferenceProperties; + spatialReferences?: number[]; + sublayers?: CollectionProperties; + url?: string; + version?: string; + } + + export interface WMSLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface WMSLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + export interface WMSLayerFetchImageOptions { + allowImageDataAccess?: boolean; + pixelRatio?: number; + rotation?: number; + } + + interface WMTSLayer extends Layer, PortalLayer, ScaleRangeLayer { + activeLayer: WMTSSublayer; + copyright: string; + customLayerParameters: any; + customParameters: any; + serviceMode: string; + sublayers: Collection; + url: string; + version: string; + + findSublayerById(id: string): WMTSSublayer; + + on(name: "layerview-create", eventHandler: WMTSLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-create", modifiers: string[], eventHandler: WMTSLayerLayerviewCreateEventHandler): IHandle; + on(name: "layerview-destroy", eventHandler: WMTSLayerLayerviewDestroyEventHandler): IHandle; + on(name: "layerview-destroy", modifiers: string[], eventHandler: WMTSLayerLayerviewDestroyEventHandler): IHandle; + } + + interface WMTSLayerConstructor { + new(properties?: WMTSLayerProperties): WMTSLayer; + + fromJSON(json: any): WMTSLayer; + } + + export const WMTSLayer: WMTSLayerConstructor; + + interface WMTSLayerProperties extends LayerProperties, PortalLayerProperties, ScaleRangeLayerProperties { + activeLayer?: WMTSSublayerProperties; + copyright?: string; + customLayerParameters?: any; + customParameters?: any; + serviceMode?: string; + sublayers?: CollectionProperties; + url?: string; + version?: string; + } + + export interface WMTSLayerLayerviewCreateEvent { + layerView: LayerView; + view: View; + } + + export interface WMTSLayerLayerviewDestroyEvent { + layerView: LayerView; + view: View; + } + + interface Map extends Accessor, LayersMixin { + allLayers: Collection; + basemap: Basemap; + ground: Ground; + } + + interface MapConstructor { + new(properties?: MapProperties): Map; + } + + export const Map: MapConstructor; + + interface MapProperties extends LayersMixinProperties { + allLayers?: CollectionProperties; + basemap?: BasemapProperties; + ground?: GroundProperties; + } + + interface PopupTemplate extends Accessor, JSONSupport { + actions: Collection>; + content: string | any[] | Function | IPromise; + expressionInfos: PopupTemplateExpressionInfos[]; + fieldInfos: PopupTemplateFieldInfos[]; + layerOptions: PopupTemplateLayerOptions; + overwriteActions: boolean; + title: string | Function; + + clone(): PopupTemplate; + } + + interface PopupTemplateConstructor { + new(properties?: PopupTemplateProperties): PopupTemplate; + + fromJSON(json: any): PopupTemplate; + } + + export const PopupTemplate: PopupTemplateConstructor; + + interface PopupTemplateProperties { + actions?: CollectionProperties>; + content?: string | any[] | Function | IPromise; + expressionInfos?: PopupTemplateExpressionInfos[]; + fieldInfos?: PopupTemplateFieldInfos[]; + layerOptions?: PopupTemplateLayerOptions; + overwriteActions?: boolean; + title?: string | Function; + } + + export interface Attachments { + type: string; + } + + export interface Fields { + type: string; + fieldInfos: any[]; + } + + export interface Media { + type: string; + mediaInfos: MediaMediaInfos[]; + } + + export interface PopupTemplateExpressionInfos { + name: string; + title?: string; + expression: string; + returnType?: string; + } + + export interface PopupTemplateFieldInfos { + fieldName: string; + format?: PopupTemplateFieldInfosFormat; + label?: string; + stringFieldOption?: string; + tooltip?: string; + visible?: boolean; + } + + export interface PopupTemplateFieldInfosFormat { + dateFormat?: string; + digitSeparator?: boolean; + places?: number; + } + + export interface PopupTemplateLayerOptions { + showNoDataRecords: boolean; + } + + export interface Text { + type: string; + text: string; + } + + export interface MediaMediaInfos { + title: string; + caption: string; + refreshInterval: number; + type: string; + value: MediaMediaInfosValue; + } + + export interface MediaMediaInfosValue { + sourceURL: string; + fields: string[]; + normalizationField: string; + theme: string; + tooltipField: string; + } + interface Portal extends Accessor, Loadable { access: string; allSSL: boolean; @@ -4589,11 +3572,11 @@ declare namespace __esri { useVectorBasemaps: boolean; vectorBasemapGalleryGroupQuery: string; - fetchBasemaps(): IPromise; - fetchFeaturedGroups(): IPromise; - queryGroups(queryParams: PortalQueryParams): IPromise; - queryItems(queryParams: PortalQueryParams): IPromise; - queryUsers(queryParams: PortalQueryParams): IPromise; + fetchBasemaps(basemapGalleryGroupQuery?: string): IPromise; + fetchFeaturedGroups(): IPromise; + queryGroups(queryParams: PortalQueryParams): IPromise; + queryItems(queryParams: PortalQueryParams): IPromise; + queryUsers(queryParams: PortalQueryParams): IPromise; } interface PortalConstructor { @@ -4623,7 +3606,7 @@ declare namespace __esri { canSignInIDP?: boolean; colorSetsGroupQuery?: string; commentsEnabled?: boolean; - created?: Date; + created?: DateProperties; culture?: string; customBaseUrl?: string; defaultBasemap?: BasemapProperties; @@ -4645,7 +3628,7 @@ declare namespace __esri { layerTemplatesGroupQuery?: string; loaded?: boolean; maxTokenExpirationMinutes?: number; - modified?: Date; + modified?: DateProperties; name?: string; portalHostname?: string; portalMode?: string; @@ -4667,6 +3650,11 @@ declare namespace __esri { vectorBasemapGalleryGroupQuery?: string; } + export interface PortalFeaturedGroups { + owner: string; + title: string; + } + interface PortalFolder extends Accessor { created: Date; id: string; @@ -4682,7 +3670,7 @@ declare namespace __esri { export const PortalFolder: PortalFolderConstructor; interface PortalFolderProperties { - created?: Date; + created?: DateProperties; id?: string; portal?: PortalProperties; title?: string; @@ -4706,7 +3694,7 @@ declare namespace __esri { fetchMembers(): IPromise; getThumbnailUrl(width?: number): string; - queryItems(queryParams?: PortalQueryParams): IPromise; + queryItems(queryParams?: PortalQueryParams): IPromise; } interface PortalGroupConstructor { @@ -4717,11 +3705,11 @@ declare namespace __esri { interface PortalGroupProperties { access?: string; - created?: Date; + created?: DateProperties; description?: string; id?: string; isInvitationOnly?: boolean; - modified?: Date; + modified?: DateProperties; owner?: string; portal?: PortalProperties; snippet?: string; @@ -4761,13 +3749,14 @@ declare namespace __esri { typeKeywords: string[]; url: string; - addRating(rating: number | PortalRating): IPromise; + addRating(rating: number | PortalRating): IPromise; deleteRating(): IPromise; fetchData(responseType?: string): IPromise; - fetchRating(): IPromise; - fetchRelatedItems(params: PortalItemFetchRelatedItemsParams): IPromise; + fetchRating(): IPromise; + fetchRelatedItems(params: PortalItemFetchRelatedItemsParams): IPromise; getThumbnailUrl(width?: number): string; - update(params?: PortalItemUpdateParams): IPromise; + update(params?: PortalItemUpdateParams): IPromise; + updateThumbnail(params: PortalItemUpdateThumbnailParams): IPromise; } interface PortalItemConstructor { @@ -4782,7 +3771,7 @@ declare namespace __esri { access?: string; accessInformation?: string; avgRating?: number; - created?: Date; + created?: DateProperties; culture?: string; description?: string; extent?: ExtentProperties; @@ -4792,7 +3781,7 @@ declare namespace __esri { itemUrl?: string; licenseInfo?: string; loaded?: boolean; - modified?: Date; + modified?: DateProperties; name?: string; numComments?: number; numRatings?: number; @@ -4809,20 +3798,17 @@ declare namespace __esri { url?: string; } - interface PortalRating extends Accessor { - created: Date; - rating: number; + export interface PortalItemFetchRelatedItemsParams { + relationshipType: string; + direction?: string; } - interface PortalRatingConstructor { - new(properties?: PortalRatingProperties): PortalRating; + export interface PortalItemUpdateParams { + data: string | any; } - export const PortalRating: PortalRatingConstructor; - - interface PortalRatingProperties { - created?: Date; - rating?: number; + export interface PortalItemUpdateThumbnailParams { + thumbnail: Blob | string; } interface PortalQueryParams extends Accessor { @@ -4833,7 +3819,7 @@ declare namespace __esri { sortOrder: string; start: number; - clone(): this; + clone(): PortalQueryParams; } interface PortalQueryParamsConstructor { @@ -4871,6 +3857,22 @@ declare namespace __esri { total?: number; } + interface PortalRating extends Accessor { + created: Date; + rating: number; + } + + interface PortalRatingConstructor { + new(properties?: PortalRatingProperties): PortalRating; + } + + export const PortalRating: PortalRatingConstructor; + + interface PortalRatingProperties { + created?: DateProperties; + rating?: number; + } + interface PortalUser extends Accessor { access: string; created: Date; @@ -4890,13 +3892,13 @@ declare namespace __esri { userContentUrl: string; username: string; - addItem(params: PortalUserAddItemParams): IPromise; + addItem(params: PortalUserAddItemParams): IPromise; deleteItem(item: PortalItem): IPromise; - fetchFolders(): IPromise; - fetchGroups(): IPromise; + fetchFolders(): IPromise; + fetchGroups(): IPromise; fetchItems(params: PortalUserFetchItemsParams): IPromise; getThumbnailUrl(width?: number): string; - queryFavorites(queryParams?: PortalQueryParams): IPromise; + queryFavorites(queryParams?: PortalQueryParams): IPromise; } interface PortalUserConstructor { @@ -4907,12 +3909,12 @@ declare namespace __esri { interface PortalUserProperties { access?: string; - created?: Date; + created?: DateProperties; culture?: string; description?: string; email?: string; fullName?: string; - modified?: Date; + modified?: DateProperties; orgId?: string; portal?: PortalProperties; preferredView?: string; @@ -4925,11 +3927,23 @@ declare namespace __esri { username?: string; } + export interface PortalUserAddItemParams { + item: PortalItem; + data?: string | any; + folder?: PortalFolder; + } + + export interface PortalUserFetchItemsParams { + folder: PortalFolder; + num: number; + start: number; + } + interface ClassBreaksRenderer extends Renderer, VisualVariablesMixin { backgroundFillSymbol: FillSymbol; classBreakInfos: ClassBreaksRendererClassBreakInfos[]; defaultSymbol: Symbol; - field: string; + field: string | Function; isMaxInclusive: boolean; legendOptions: ClassBreaksRendererLegendOptions; normalizationField: string; @@ -4940,7 +3954,7 @@ declare namespace __esri { valueExpressionTitle: string; addClassBreakInfo(min: number | any, max: number, symbol: Symbol): void; - clone(): this; + clone(): ClassBreaksRenderer; getClassBreakInfo(graphic: Graphic): any; removeClassBreakInfo(min: number, max: number): void; } @@ -4968,8 +3982,166 @@ declare namespace __esri { valueExpressionTitle?: string; } + export interface ClassBreaksRendererClassBreakInfos { + minValue: number; + maxValue: number; + symbol: Symbol; + label?: string; + } + + export interface ClassBreaksRendererLegendOptions { + title: string; + } + + interface PointCloudClassBreaksRenderer extends PointCloudRenderer { + colorClassBreakInfos: PointCloudClassBreaksRendererColorClassBreakInfos[]; + field: string; + fieldTransformType: string; + type: string; + + clone(): PointCloudClassBreaksRenderer; + } + + interface PointCloudClassBreaksRendererConstructor { + new(properties?: PointCloudClassBreaksRendererProperties): PointCloudClassBreaksRenderer; + + fromJSON(json: any): PointCloudClassBreaksRenderer; + } + + export const PointCloudClassBreaksRenderer: PointCloudClassBreaksRendererConstructor; + + interface PointCloudClassBreaksRendererProperties extends PointCloudRendererProperties { + colorClassBreakInfos?: PointCloudClassBreaksRendererColorClassBreakInfos[]; + field?: string; + fieldTransformType?: string; + type?: string; + } + + export interface PointCloudClassBreaksRendererColorClassBreakInfos { + minValue: number; + maxValue: number; + color: Color; + label?: string; + } + + interface PointCloudRenderer extends Accessor, JSONSupport { + colorModulation: PointCloudRendererColorModulation; + pointSizeAlgorithm: PointCloudRendererPointSizeAlgorithm; + pointsPerInch: number; + + clone(): PointCloudRenderer; + } + + interface PointCloudRendererConstructor { + new(properties?: PointCloudRendererProperties): PointCloudRenderer; + + fromJSON(json: any): PointCloudRenderer; + } + + export const PointCloudRenderer: PointCloudRendererConstructor; + + interface PointCloudRendererProperties { + colorModulation?: PointCloudRendererColorModulation; + pointSizeAlgorithm?: PointCloudRendererPointSizeAlgorithm; + pointsPerInch?: number; + } + + export interface PointCloudRendererColorModulation { + field: string; + minValue?: number; + maxValue?: number; + } + + export interface PointCloudRendererPointSizeAlgorithm { + type: string; + useRealWorldSymbolSizes?: boolean; + size?: number; + scaleFactor?: number; + minSize?: number; + } + + interface PointCloudRGBRenderer extends PointCloudRenderer { + field: string; + type: string; + + clone(): PointCloudRGBRenderer; + } + + interface PointCloudRGBRendererConstructor { + new(properties?: PointCloudRGBRendererProperties): PointCloudRGBRenderer; + + fromJSON(json: any): PointCloudRGBRenderer; + } + + export const PointCloudRGBRenderer: PointCloudRGBRendererConstructor; + + interface PointCloudRGBRendererProperties extends PointCloudRendererProperties { + field?: string; + type?: string; + } + + interface PointCloudStretchRenderer extends PointCloudRenderer { + field: string; + fieldTransformType: string; + stops: PointCloudStretchRendererStops[]; + type: string; + + clone(): PointCloudStretchRenderer; + } + + interface PointCloudStretchRendererConstructor { + new(properties?: PointCloudStretchRendererProperties): PointCloudStretchRenderer; + + fromJSON(json: any): PointCloudStretchRenderer; + } + + export const PointCloudStretchRenderer: PointCloudStretchRendererConstructor; + + interface PointCloudStretchRendererProperties extends PointCloudRendererProperties { + field?: string; + fieldTransformType?: string; + stops?: PointCloudStretchRendererStops[]; + type?: string; + } + + export interface PointCloudStretchRendererStops { + value: number; + label?: string; + color: Color; + } + + interface PointCloudUniqueValueRenderer extends PointCloudRenderer { + colorUniqueValueInfos: PointCloudUniqueValueRendererColorUniqueValueInfos[]; + field: string; + fieldTransformType: string; + type: string; + + clone(): PointCloudUniqueValueRenderer; + } + + interface PointCloudUniqueValueRendererConstructor { + new(properties?: PointCloudUniqueValueRendererProperties): PointCloudUniqueValueRenderer; + + fromJSON(json: any): PointCloudUniqueValueRenderer; + } + + export const PointCloudUniqueValueRenderer: PointCloudUniqueValueRendererConstructor; + + interface PointCloudUniqueValueRendererProperties extends PointCloudRendererProperties { + colorUniqueValueInfos?: PointCloudUniqueValueRendererColorUniqueValueInfos[]; + field?: string; + fieldTransformType?: string; + type?: string; + } + + export interface PointCloudUniqueValueRendererColorUniqueValueInfos { + values: number[]; + color: Color; + label?: string; + } + interface Renderer extends Accessor, JSONSupport { - authoringInfo: any; + authoringInfo: AuthoringInfo; } interface RendererConstructor { @@ -4981,7 +4153,107 @@ declare namespace __esri { export const Renderer: RendererConstructor; interface RendererProperties { - authoringInfo?: any; + authoringInfo?: AuthoringInfo; + } + + export interface AuthoringInfo { + type: string; + fields: string[]; + classificationMethod: string; + standardDeviationInterval: number; + visualVariables: AuthoringInfoVisualVariables[]; + } + + export interface ColorVisualVariable { + type: string; + field: string | Function; + normalizationField: string; + valueExpression: string; + valueExpressionTitle: string; + legendOptions: ColorVisualVariableLegendOptions; + stops: ColorVisualVariableStops[]; + } + + export interface OpacityVisualVariable { + type: string; + field: string | Function; + normalizationField: string; + valueExpression: string; + valueExpressionTitle: string; + legendOptions: OpacityVisualVariableLegendOptions; + stops: OpacityVisualVariableStops[]; + } + + export interface RotationVisualVariable { + type: string; + field: string | Function; + valueExpression: string; + axis: string; + rotationType: string; + } + + export interface SizeVisualVariable { + maxDataValue: number; + type: string; + normalizationField: string; + valueExpression: string; + valueExpressionTitle: string; + legendOptions: SizeVisualVariableLegendOptions; + axis: string; + expression: string; + field: string | Function; + minDataValue: number; + maxSize: string | number | SizeVisualVariable; + minSize: string | number | SizeVisualVariable; + stops: SizeVisualVariableStops[]; + valueUnit: string; + valueRepresentation: string; + useSymbolValue: boolean; + } + + export interface AuthoringInfoVisualVariables { + type: string; + field: string; + minSliderValue: number; + maxSliderValue: number; + theme: string; + style: string; + units: string; + startTime: string | number; + endTime: string | number; + } + + export interface ColorVisualVariableLegendOptions { + title: string; + showLegend: boolean; + } + + export interface ColorVisualVariableStops { + value: number; + color: Color; + label: string; + } + + export interface OpacityVisualVariableLegendOptions { + title: string; + showLegend: boolean; + } + + export interface OpacityVisualVariableStops { + value: number; + opacity: number; + label: string; + } + + export interface SizeVisualVariableLegendOptions { + title: string; + showLegend: boolean; + } + + export interface SizeVisualVariableStops { + value: number; + size: string | number | any; + label: string; } interface SimpleRenderer extends Renderer, VisualVariablesMixin { @@ -4989,7 +4261,7 @@ declare namespace __esri { symbol: Symbol; type: string; - clone(): this; + clone(): SimpleRenderer; } interface SimpleRendererConstructor { @@ -5006,10 +4278,666 @@ declare namespace __esri { type?: string; } + interface color { + createContinuousRenderer(params: colorCreateContinuousRendererParams): IPromise; + createPCContinuousRenderer(params: colorCreatePCContinuousRendererParams): IPromise; + createPCTrueColorRenderer(params: colorCreatePCTrueColorRendererParams): IPromise; + createVisualVariable(params: colorCreateVisualVariableParams): IPromise; + } + + export const color: color; + + export interface colorCreateContinuousRendererParams { + layer: FeatureLayer | SceneLayer; + field: string; + normalizationField?: string; + basemap?: string | Basemap; + theme?: string; + colorScheme?: ColorScheme; + legendOptions?: colorCreateContinuousRendererParamsLegendOptions; + statistics?: SummaryStatisticsResult; + minValue?: number; + maxValue?: number; + defaultSymbolEnabled?: boolean; + view?: SceneView; + symbolType?: string; + colorMixMode?: string; + } + + export interface colorCreateContinuousRendererParamsLegendOptions { + title: string; + } + + export interface colorCreatePCContinuousRendererParams { + layer: PointCloudLayer; + field: string; + basemap?: string | Basemap; + size?: string; + density?: number; + colorScheme?: ColorScheme; + statistics?: SummaryStatisticsResult; + } + + export interface colorCreatePCTrueColorRendererParams { + layer: PointCloudLayer; + size?: string; + density?: number; + } + + export interface colorCreateVisualVariableParams { + layer: FeatureLayer | SceneLayer; + field: string; + normalizationField?: string; + basemap?: string | Basemap; + theme?: string; + colorScheme?: ColorScheme; + legendOptions?: colorCreateVisualVariableParamsLegendOptions; + statistics?: SummaryStatisticsResult; + minValue?: number; + maxValue?: number; + view?: SceneView; + worldScale?: boolean; + } + + export interface colorCreateVisualVariableParamsLegendOptions { + title: string; + } + + export interface ContinuousRendererResult { + renderer: ClassBreaksRenderer; + visualVariable: ColorVisualVariable; + colorScheme: ColorScheme; + defaultValuesUsed: boolean; + statistics: SummaryStatisticsResult; + basemapId: string; + } + + export interface PCContinuousRendererResult { + renderer: PointCloudStretchRenderer; + colorScheme: ColorScheme; + defaultValuesUsed: boolean; + statistics: SummaryStatisticsResult; + basemapId: string; + } + + export interface PCTrueColorRendererResult { + renderer: PointCloudRGBRenderer; + } + + export interface VisualVariableResult { + visualVariable: ColorVisualVariable; + colorScheme: ColorScheme; + statistics: SummaryStatisticsResult; + defaultValuesUsed: boolean; + basemapId: string; + authoringInfo: AuthoringInfo; + } + + interface location { + createRenderer(params: locationCreateRendererParams): IPromise; + } + + export const location: location; + + export interface locationCreateRendererParams { + layer: FeatureLayer | SceneLayer; + basemap?: string | Basemap; + locationScheme?: PointLocationScheme | PolylineLocationScheme | PolygonLocationScheme; + view?: SceneView; + symbolType?: string; + colorMixMode?: string; + } + + export interface RendererResult { + renderer: SimpleRenderer; + locationScheme: PointLocationScheme | PolylineLocationScheme | PolygonLocationScheme; + basemapId: string; + } + + interface size { + createContinuousRenderer(params: sizeCreateContinuousRendererParams): IPromise; + createVisualVariables(params: sizeCreateVisualVariablesParams): IPromise; + } + + export const size: size; + + export interface sizeContinuousRendererResult { + renderer: ClassBreaksRenderer; + visualVariables: SizeVisualVariable[]; + sizeScheme: PointSizeScheme | PolylineSizeScheme | PolygonSizeScheme; + defaultValuesUsed: boolean; + statistics: SummaryStatisticsResult; + basemapId: string; + } + + export interface sizeCreateContinuousRendererParams { + layer: FeatureLayer | SceneLayer; + field: string; + normalizationField?: string; + basemap?: string | Basemap; + sizeScheme?: PointSizeScheme | PolylineSizeScheme | PolygonSizeScheme; + legendOptions?: sizeCreateContinuousRendererParamsLegendOptions; + statistics?: SummaryStatisticsResult; + minValue?: number; + maxValue?: number; + defaultSymbolEnabled?: boolean; + view?: SceneView; + symbolType?: string; + } + + export interface sizeCreateContinuousRendererParamsLegendOptions { + title: string; + } + + export interface sizeCreateVisualVariablesParams { + layer: FeatureLayer | SceneLayer; + field: string; + normalizationField?: string; + basemap?: string | Basemap; + sizeScheme?: PointSizeScheme | PolylineSizeScheme | PolygonSizeScheme; + legendOptions?: sizeCreateVisualVariablesParamsLegendOptions; + statistics?: SummaryStatisticsResult; + minValue?: number; + maxValue?: number; + view?: SceneView; + worldScale?: boolean; + axis?: boolean; + } + + export interface sizeCreateVisualVariablesParamsLegendOptions { + title: string; + } + + export interface sizeVisualVariableResult { + visualVariables: SizeVisualVariable[]; + sizeScheme: PointSizeScheme | PolylineSizeScheme | PolygonSizeScheme; + defaultValuesUsed: boolean; + statistics: SummaryStatisticsResult; + basemapId: string; + authoringInfo: AuthoringInfo; + } + + interface type { + createPCClassRenderer(params: typeCreatePCClassRendererParams): IPromise; + createRenderer(params: typeCreateRendererParams): IPromise; + } + + export const type: type; + + export interface PCClassRendererResult { + renderer: PointCloudUniqueValueRenderer; + } + + export interface typeRendererResult { + renderer: UniqueValueRenderer; + uniqueValueInfos: RendererResultUniqueValueInfos[]; + excludedUniqueValueInfos: any[]; + typeScheme: PointTypeScheme | PolylineTypeScheme | PolygonTypeScheme | MeshTypeScheme; + basemapId: string; + } + + export interface typeCreatePCClassRendererParams { + layer: PointCloudLayer; + field: string; + size?: string; + density?: number; + typeScheme?: PointTypeScheme; + statistics?: UniqueValuesResult; + } + + export interface typeCreateRendererParams { + layer: FeatureLayer | SceneLayer; + field: string; + basemap?: string | Basemap; + numTypes?: number; + sortBy?: string; + typeScheme?: PointTypeScheme | PolylineTypeScheme | PolygonTypeScheme | MeshTypeScheme; + legendOptions?: typeCreateRendererParamsLegendOptions; + defaultSymbolEnabled?: boolean; + view?: SceneView; + symbolType?: string; + statistics?: UniqueValuesResult; + colorMixMode?: string; + } + + export interface typeCreateRendererParamsLegendOptions { + title: string; + } + + export interface RendererResultUniqueValueInfos { + value: string | number; + count: number; + label: string; + symbol: Symbol; + } + + interface univariateColorSize { + createContinuousRenderer(params: univariateColorSizeCreateContinuousRendererParams): IPromise; + createVisualVariables(params: univariateColorSizeCreateVisualVariablesParams): IPromise; + } + + export const univariateColorSize: univariateColorSize; + + export interface univariateColorSizeContinuousRendererResult { + renderer: ClassBreaksRenderer; + color: ContinuousRendererResultColor; + size: ContinuousRendererResultSize; + defaultValuesUsed: boolean; + statistics: SummaryStatisticsResult; + basemapId: string; + } + + export interface univariateColorSizeCreateContinuousRendererParams { + layer: FeatureLayer | SceneLayer; + basemap?: string | Basemap; + field: string; + normalizationField?: string; + statistics?: SummaryStatisticsResult; + minValue?: number; + maxValue?: number; + defaultSymbolEnabled?: boolean; + colorOptions?: univariateColorSizeCreateContinuousRendererParamsColorOptions; + sizeOptions?: univariateColorSizeCreateContinuousRendererParamsSizeOptions; + view?: SceneView; + symbolType?: string; + } + + export interface univariateColorSizeCreateContinuousRendererParamsColorOptions { + theme?: string; + colorScheme?: ColorScheme; + legendOptions?: univariateColorSizeCreateContinuousRendererParamsColorOptionsLegendOptions; + } + + export interface univariateColorSizeCreateContinuousRendererParamsColorOptionsLegendOptions { + title: string; + } + + export interface univariateColorSizeCreateContinuousRendererParamsSizeOptions { + sizeScheme?: PointSizeScheme | PolylineSizeScheme | PolygonSizeScheme; + legendOptions?: univariateColorSizeCreateContinuousRendererParamsSizeOptionsLegendOptions; + } + + export interface univariateColorSizeCreateContinuousRendererParamsSizeOptionsLegendOptions { + title: string; + } + + export interface univariateColorSizeCreateVisualVariablesParams { + layer: FeatureLayer | SceneLayer; + basemap?: string | Basemap; + field: string; + normalizationField?: string; + statistics?: SummaryStatisticsResult; + minValue?: number; + maxValue?: number; + colorOptions?: univariateColorSizeCreateVisualVariablesParamsColorOptions; + sizeOptions?: univariateColorSizeCreateVisualVariablesParamsSizeOptions; + view?: SceneView; + worldScale?: boolean; + } + + export interface univariateColorSizeCreateVisualVariablesParamsColorOptions { + theme?: string; + colorScheme?: ColorScheme; + legendOptions?: univariateColorSizeCreateVisualVariablesParamsColorOptionsLegendOptions; + } + + export interface univariateColorSizeCreateVisualVariablesParamsColorOptionsLegendOptions { + title: string; + } + + export interface univariateColorSizeCreateVisualVariablesParamsSizeOptions { + axis?: boolean; + sizeScheme?: PointSizeScheme | PolylineSizeScheme | PolygonSizeScheme; + legendOptions?: univariateColorSizeCreateVisualVariablesParamsSizeOptionsLegendOptions; + } + + export interface univariateColorSizeCreateVisualVariablesParamsSizeOptionsLegendOptions { + title: string; + } + + export interface VisualVariablesResult { + color: VisualVariablesResultColor; + size: VisualVariablesResultSize; + defaultValuesUsed: boolean; + statistics: SummaryStatisticsResult; + basemapId: string; + authoringInfo: AuthoringInfo; + } + + export interface ContinuousRendererResultColor { + visualVariable: ColorVisualVariable; + colorScheme: ColorScheme; + } + + export interface ContinuousRendererResultSize { + visualVariables: SizeVisualVariable[]; + sizeScheme: PointSizeScheme | PolylineSizeScheme | PolygonSizeScheme; + } + + export interface VisualVariablesResultColor { + visualVariable: ColorVisualVariable; + colorScheme: ColorScheme; + } + + export interface VisualVariablesResultSize { + visualVariables: SizeVisualVariable[]; + sizeScheme: PointSizeScheme | PolylineSizeScheme | PolygonSizeScheme; + } + + interface classBreaks { + classBreaks(params: classBreaksClassBreaksParams): IPromise; + } + + const __classBreaksMapped: classBreaks; + export const classBreaks: typeof __classBreaksMapped.classBreaks; + + + export interface classBreaksClassBreaksParams { + layer: FeatureLayer | SceneLayer; + field?: string; + normalizationField?: string; + classificationMethod?: string; + standardDeviationInterval?: number; + minValue?: number; + maxValue?: number; + numClasses?: number; + } + + export interface ClassBreaksResult { + classBreaksInfos: ClassBreaksResultClassBreaksInfos[]; + minValue: number; + maxValue: number; + } + + export interface ClassBreaksResultClassBreaksInfos { + label: string; + minValue: number; + maxValue: number; + } + + interface histogram { + histogram(params: histogramHistogramParams): IPromise; + } + + const __histogramMapped: histogram; + export const histogram: typeof __histogramMapped.histogram; + + + export interface histogramHistogramParams { + layer: FeatureLayer | SceneLayer | PointCloudLayer; + field?: string; + normalizationField?: string; + classificationMethod?: string; + standardDeviationInterval?: number; + minValue?: number; + maxValue?: number; + numBins?: number; + } + + export interface HistogramResult { + bins: HistogramResultBins[]; + minValue: number; + maxValue: number; + } + + export interface HistogramResultBins { + count: number; + minValue: number; + maxValue: number; + } + + interface summaryStatistics { + summaryStatistics(params: summaryStatisticsSummaryStatisticsParams): IPromise; + } + + const __summaryStatisticsMapped: summaryStatistics; + export const summaryStatistics: typeof __summaryStatisticsMapped.summaryStatistics; + + + export interface SummaryStatisticsResult { + avg: number; + count: number; + max: number; + min: number; + stddev: number; + sum: number; + variance: number; + } + + export interface summaryStatisticsSummaryStatisticsParams { + layer: FeatureLayer | SceneLayer | PointCloudLayer; + field?: string; + normalizationField?: string; + features?: Graphic[]; + minValue?: number; + maxValue?: number; + } + + interface uniqueValues { + uniqueValues(params: uniqueValuesUniqueValuesParams): IPromise; + } + + const __uniqueValuesMapped: uniqueValues; + export const uniqueValues: typeof __uniqueValuesMapped.uniqueValues; + + + export interface UniqueValuesResult { + uniqueValueInfos: UniqueValuesResultUniqueValueInfos[]; + } + + export interface uniqueValuesUniqueValuesParams { + layer: FeatureLayer | SceneLayer | PointCloudLayer; + field: string; + features?: Graphic[]; + returnAllCodedValues?: boolean; + } + + export interface UniqueValuesResultUniqueValueInfos { + value: string | number; + count: number; + } + + interface symbologyColor { + cloneScheme(scheme: ColorScheme): ColorScheme; + flipColors(scheme: ColorScheme): ColorScheme; + getSchemes(params: colorGetSchemesParams): any; + getThemes(basemap?: string | Basemap): any[]; + } + + export const symbologyColor: symbologyColor; + + export interface colorGetSchemesParams { + basemap: string | Basemap; + geometryType: string; + theme: string; + view?: SceneView; + worldScale?: boolean; + } + + export interface ColorScheme { + id: string; + theme: string; + colors: Color[]; + noDataColor: Color; + colorsForClassBreaks: ColorSchemeColorsForClassBreaks[]; + outline: ColorSchemeOutline; + size: number; + width: number; + opacity: number; + } + + export interface ColorSchemeColorsForClassBreaks { + colors: Color[]; + numClasses: number; + } + + export interface ColorSchemeOutline { + color: Color; + width: number; + } + + interface symbologyLocation { + cloneScheme(scheme: PointLocationScheme | PolylineLocationScheme | PolygonLocationScheme): PointLocationScheme | PolylineLocationScheme | PolygonLocationScheme; + getSchemes(params: locationGetSchemesParams): any; + } + + export const symbologyLocation: symbologyLocation; + + export interface locationGetSchemesParams { + basemap: string | Basemap; + geometryType: string; + view?: SceneView; + worldScale?: boolean; + } + + export interface PointLocationScheme { + color: Color; + outline: PointLocationSchemeOutline; + size: number; + opacity: number; + } + + export interface PolygonLocationScheme { + color: Color; + outline: PolygonLocationSchemeOutline; + opacity: number; + } + + export interface PolylineLocationScheme { + color: Color; + width: number; + opacity: number; + } + + export interface PointLocationSchemeOutline { + color: Color; + width: number; + } + + export interface PolygonLocationSchemeOutline { + color: Color; + width: number; + } + + interface symbologySize { + cloneScheme(scheme: PointSizeScheme | PolylineSizeScheme | PolygonSizeScheme): any; + getSchemes(params: sizeGetSchemesParams): any; + } + + export const symbologySize: symbologySize; + + export interface PointSizeScheme { + color: Color; + noDataColor: Color; + outline: PointSizeSchemeOutline; + size: number; + noDataSize: number; + minSize: number; + maxSize: number; + opacity: number; + } + + export interface PolygonSizeScheme { + marker: PointSizeScheme; + background: PolygonSizeSchemeBackground; + opacity: number; + } + + export interface PolylineSizeScheme { + color: Color; + noDataColor: Color; + width: number; + noDataWidth: number; + minWidth: number; + maxWidth: number; + opacity: number; + } + + export interface sizeGetSchemesParams { + basemap: string | Basemap; + geometryType: string; + view?: SceneView; + worldScale?: boolean; + } + + export interface PointSizeSchemeOutline { + color: Color; + width: number; + } + + export interface PolygonSizeSchemeBackground { + color: Color; + outline: PolygonSizeSchemeBackgroundOutline; + } + + export interface PolygonSizeSchemeBackgroundOutline { + color: Color; + width: number; + } + + interface symbologyType { + cloneScheme(scheme: PointTypeScheme | PolylineTypeScheme | PolygonTypeScheme | MeshTypeScheme): any; + getSchemes(params: typeGetSchemesParams): any; + } + + export const symbologyType: symbologyType; + + export interface MeshTypeScheme { + colors: Color[]; + noDataColor: Color; + opacity: number; + } + + export interface PointTypeScheme { + colors: Color[]; + noDataColor: Color; + outline: PointTypeSchemeOutline; + size: number; + opacity: number; + } + + export interface PolygonTypeScheme { + colors: Color[]; + noDataColor: Color; + outline: PolygonTypeSchemeOutline; + opacity: number; + } + + export interface PolylineTypeScheme { + colors: Color[]; + noDataColor: Color; + width: number; + opacity: number; + } + + export interface typeGetSchemesParams { + basemap: string | Basemap; + geometryType: string; + theme?: string; + worldScale?: boolean; + view?: SceneView; + } + + export interface PointTypeSchemeOutline { + color: Color; + width: number; + } + + export interface PolygonTypeSchemeOutline { + color: Color; + width: number; + } + + interface supportJsonUtils { + fromJSON(json: any): Renderer; + } + + export const supportJsonUtils: supportJsonUtils; + interface UniqueValueRenderer extends Renderer, VisualVariablesMixin { defaultLabel: string; defaultSymbol: Symbol; - field: string; + field: string | Function; field2: string; field3: string; fieldDelimiter: string; @@ -5020,7 +4948,7 @@ declare namespace __esri { valueExpressionTitle: string; addUniqueValueInfo(valueOrInfo: string | number | any, symbol?: Symbol): void; - clone(): this; + clone(): UniqueValueRenderer; getUniqueValueInfo(graphic: Graphic): any; removeUniqueValueInfo(value: string): void; } @@ -5047,110 +4975,63 @@ declare namespace __esri { valueExpressionTitle?: string; } - interface PointCloudRenderer extends Accessor, JSONSupport { - colorModulation: PointCloudRendererColorModulation; - pointSizeAlgorithm: PointCloudRendererPointSizeAlgorithm; - pointsPerInch: number; - - clone(): this; + export interface UniqueValueRendererLegendOptions { + title?: string; } - interface PointCloudRendererConstructor { - new(properties?: PointCloudRendererProperties): PointCloudRenderer; - - fromJSON(json: any): PointCloudRenderer; + export interface UniqueValueRendererUniqueValueInfos { + value: string | number; + symbol: Symbol; + label?: string; } - export const PointCloudRenderer: PointCloudRendererConstructor; - - interface PointCloudRendererProperties { - colorModulation?: PointCloudRendererColorModulation; - pointSizeAlgorithm?: PointCloudRendererPointSizeAlgorithm; - pointsPerInch?: number; + interface VisualVariablesMixin { + visualVariables: any[]; } - interface PointCloudClassBreaksRenderer extends PointCloudRenderer { - colorClassBreakInfos: PointCloudClassBreaksRendererColorClassBreakInfos[]; - field: string; - fieldTransformType: string; - type: string; + interface VisualVariablesMixinConstructor { + new(): VisualVariablesMixin; } - interface PointCloudClassBreaksRendererConstructor { - new(properties?: PointCloudClassBreaksRendererProperties): PointCloudClassBreaksRenderer; + export const VisualVariablesMixin: VisualVariablesMixinConstructor; - fromJSON(json: any): PointCloudClassBreaksRenderer; + interface VisualVariablesMixinProperties { + visualVariables?: any[]; } - export const PointCloudClassBreaksRenderer: PointCloudClassBreaksRendererConstructor; - - interface PointCloudClassBreaksRendererProperties extends PointCloudRendererProperties { - colorClassBreakInfos?: PointCloudClassBreaksRendererColorClassBreakInfos[]; - field?: string; - fieldTransformType?: string; - type?: string; + interface request { + esriRequest(url: string, options?: requestEsriRequestOptions): IPromise; } - interface PointCloudRGBRenderer extends PointCloudRenderer { - field: string; - type: string; + const __requestMapped: request; + export const request: typeof __requestMapped.esriRequest; + + + export interface EsriErrorDetails { + getHeader: GetHeader; + httpStatus: number; + messageCode: string; + messages: string[]; + requestOptions: any; + ssl: boolean; + subCode: number; + url: string; } - interface PointCloudRGBRendererConstructor { - new(properties?: PointCloudRGBRendererProperties): PointCloudRGBRenderer; + export type GetHeader = (headerName: string) => string; - fromJSON(json: any): PointCloudRGBRenderer; - } - - export const PointCloudRGBRenderer: PointCloudRGBRendererConstructor; - - interface PointCloudRGBRendererProperties extends PointCloudRendererProperties { - field?: string; - type?: string; - } - - interface PointCloudStretchRenderer extends PointCloudRenderer { - field: string; - fieldTransformType: string; - stops: PointCloudStretchRendererStops[]; - type: string; - } - - interface PointCloudStretchRendererConstructor { - new(properties?: PointCloudStretchRendererProperties): PointCloudStretchRenderer; - - fromJSON(json: any): PointCloudStretchRenderer; - } - - export const PointCloudStretchRenderer: PointCloudStretchRendererConstructor; - - interface PointCloudStretchRendererProperties extends PointCloudRendererProperties { - field?: string; - fieldTransformType?: string; - stops?: PointCloudStretchRendererStops[]; - type?: string; - } - - interface PointCloudUniqueValueRenderer extends PointCloudRenderer { - colorUniqueValueInfos: PointCloudUniqueValueRendererColorUniqueValueInfos[]; - field: string; - fieldTransformType: string; - type: string; - } - - interface PointCloudUniqueValueRendererConstructor { - new(properties?: PointCloudUniqueValueRendererProperties): PointCloudUniqueValueRenderer; - - fromJSON(json: any): PointCloudUniqueValueRenderer; - } - - export const PointCloudUniqueValueRenderer: PointCloudUniqueValueRendererConstructor; - - interface PointCloudUniqueValueRendererProperties extends PointCloudRendererProperties { - colorUniqueValueInfos?: PointCloudUniqueValueRendererColorUniqueValueInfos[]; - field?: string; - fieldTransformType?: string; - type?: string; + export interface requestEsriRequestOptions { + callbackParamName?: string; + query?: any; + responseType?: string; + headers?: any; + timeout?: number; + method?: string; + body?: FormData | HTMLFormElement | string; + useProxy?: boolean; + cacheBust?: boolean; + allowImageDataAccess?: boolean; + authMode?: string; } interface Action extends Accessor { @@ -5160,7 +5041,7 @@ declare namespace __esri { title: string; visible: boolean; - clone(): this; + clone(): Action; } interface ActionConstructor { @@ -5177,10 +5058,79 @@ declare namespace __esri { visible?: boolean; } + interface LayersMixin { + layers: Collection; + + add(layers: Layer, index?: number): void; + addMany(layers: Layer[], index?: number): void; + findLayerById(layerId: string): Layer; + remove(layer: Layer): Layer; + removeAll(): Layer[]; + removeMany(layers: Layer[]): Layer[]; + reorder(layer: Layer, index: number): Layer; + } + + interface LayersMixinConstructor { + new(): LayersMixin; + } + + export const LayersMixin: LayersMixinConstructor; + + interface LayersMixinProperties { + layers?: CollectionProperties; + } + + interface Callout3D extends Accessor, JSONSupport { + clone(): Callout3D; + } + + interface Callout3DConstructor { + new(properties?: Callout3DProperties): Callout3D; + + fromJSON(json: any): Callout3D; + } + + export const Callout3D: Callout3DConstructor; + + interface Callout3DProperties { + + } + + interface LineCallout3D extends Callout3D { + border: LineCallout3DBorder; + color: Color; + size: number; + type: string; + + clone(): LineCallout3D; + } + + interface LineCallout3DConstructor { + new(properties?: LineCallout3DProperties): LineCallout3D; + + fromJSON(json: any): LineCallout3D; + } + + export const LineCallout3D: LineCallout3DConstructor; + + interface LineCallout3DProperties extends Callout3DProperties { + border?: LineCallout3DBorderProperties; + color?: Color; + size?: number; + type?: string; + } + + export interface LineCallout3DBorderProperties { + color?: Color; + } + export interface LineCallout3DBorder extends Accessor { + color?: Color; + } + interface ExtrudeSymbol3DLayer extends Symbol3DLayer { size: number; - clone(): this; + clone(): ExtrudeSymbol3DLayer; } interface ExtrudeSymbol3DLayerConstructor { @@ -5214,7 +5164,7 @@ declare namespace __esri { interface FillSymbol3DLayer extends Symbol3DLayer { outline: FillSymbol3DLayerOutline; - clone(): this; + clone(): FillSymbol3DLayer; } interface FillSymbol3DLayerConstructor { @@ -5229,8 +5179,13 @@ declare namespace __esri { outline?: FillSymbol3DLayerOutline; } + export interface FillSymbol3DLayerOutline { + color: Color; + size: number; + } + interface Font extends Accessor, JSONSupport { - clone(): this; + clone(): Font; } interface FontConstructor { @@ -5251,7 +5206,7 @@ declare namespace __esri { resource: IconSymbol3DLayerResource; size: number; - clone(): this; + clone(): IconSymbol3DLayer; } interface IconSymbol3DLayerConstructor { @@ -5269,11 +5224,21 @@ declare namespace __esri { size?: number; } + export interface IconSymbol3DLayerOutline { + color?: Color; + size?: number; + } + + export interface IconSymbol3DLayerResource { + primitive?: string; + href?: string; + } + interface LabelSymbol3D extends Symbol3D { callout: Callout3D; verticalOffset: LabelSymbol3DVerticalOffset; - clone(): this; + clone(): LabelSymbol3D; } interface LabelSymbol3DConstructor { @@ -5289,6 +5254,17 @@ declare namespace __esri { verticalOffset?: LabelSymbol3DVerticalOffsetProperties; } + export interface LabelSymbol3DVerticalOffsetProperties { + screenLength?: number; + minWorldLength?: number; + maxWorldLength?: number; + } + export interface LabelSymbol3DVerticalOffset extends Accessor { + screenLength: number; + minWorldLength?: number; + maxWorldLength?: number; + } + interface LineSymbol extends Symbol { color: Color; width: number; @@ -5308,7 +5284,7 @@ declare namespace __esri { } interface LineSymbol3D extends Symbol3D { - clone(): this; + clone(): LineSymbol3D; } interface LineSymbol3DConstructor { @@ -5326,7 +5302,7 @@ declare namespace __esri { interface LineSymbol3DLayer extends Symbol3DLayer { size: number; - clone(): this; + clone(): LineSymbol3DLayer; } interface LineSymbol3DLayerConstructor { @@ -5362,7 +5338,7 @@ declare namespace __esri { } interface MeshSymbol3D extends Symbol3D { - clone(): this; + clone(): MeshSymbol3D; } interface MeshSymbol3DConstructor { @@ -5387,7 +5363,7 @@ declare namespace __esri { tilt: number; width: number; - clone(): this; + clone(): ObjectSymbol3DLayer; } interface ObjectSymbol3DLayerConstructor { @@ -5409,6 +5385,29 @@ declare namespace __esri { width?: number; } + export interface ObjectSymbol3DLayerResource { + primitive?: string; + href?: string; + } + + interface PathSymbol3DLayer extends Symbol3DLayer { + size: number; + + clone(): PathSymbol3DLayer; + } + + interface PathSymbol3DLayerConstructor { + new(properties?: PathSymbol3DLayerProperties): PathSymbol3DLayer; + + fromJSON(json: any): PathSymbol3DLayer; + } + + export const PathSymbol3DLayer: PathSymbol3DLayerConstructor; + + interface PathSymbol3DLayerProperties extends Symbol3DLayerProperties { + size?: number; + } + interface PictureFillSymbol extends FillSymbol { height: number; url: string; @@ -5418,7 +5417,7 @@ declare namespace __esri { yoffset: number; yscale: number; - clone(): this; + clone(): PictureFillSymbol; } interface PictureFillSymbolConstructor { @@ -5444,7 +5443,7 @@ declare namespace __esri { url: string; width: number; - clone(): this; + clone(): PictureMarkerSymbol; } interface PictureMarkerSymbolConstructor { @@ -5461,29 +5460,11 @@ declare namespace __esri { width?: number; } - interface PathSymbol3DLayer extends Symbol3DLayer { - size: number; - - clone(): this; - } - - interface PathSymbol3DLayerConstructor { - new(properties?: PathSymbol3DLayerProperties): PathSymbol3DLayer; - - fromJSON(json: any): PathSymbol3DLayer; - } - - export const PathSymbol3DLayer: PathSymbol3DLayerConstructor; - - interface PathSymbol3DLayerProperties extends Symbol3DLayerProperties { - size?: number; - } - interface PointSymbol3D extends Symbol3D { callout: Callout3D; verticalOffset: PointSymbol3DVerticalOffset; - clone(): this; + clone(): PointSymbol3D; } interface PointSymbol3DConstructor { @@ -5499,8 +5480,19 @@ declare namespace __esri { verticalOffset?: PointSymbol3DVerticalOffsetProperties; } + export interface PointSymbol3DVerticalOffsetProperties { + screenLength?: number; + minWorldLength?: number; + maxWorldLength?: number; + } + export interface PointSymbol3DVerticalOffset extends Accessor { + screenLength: number; + minWorldLength?: number; + maxWorldLength?: number; + } + interface PolygonSymbol3D extends Symbol3D { - clone(): this; + clone(): PolygonSymbol3D; } interface PolygonSymbol3DConstructor { @@ -5519,7 +5511,7 @@ declare namespace __esri { color: Color; style: string; - clone(): this; + clone(): SimpleFillSymbol; } interface SimpleFillSymbolConstructor { @@ -5541,7 +5533,7 @@ declare namespace __esri { miterLimit: number; style: string; - clone(): this; + clone(): SimpleLineSymbol; } interface SimpleLineSymbolConstructor { @@ -5566,7 +5558,7 @@ declare namespace __esri { size: number; style: string; - clone(): this; + clone(): SimpleMarkerSymbol; } interface SimpleMarkerSymbolConstructor { @@ -5585,6 +5577,12 @@ declare namespace __esri { style?: string; } + interface symbolsSupportJsonUtils { + fromJSON(json: any): Symbol; + } + + export const symbolsSupportJsonUtils: symbolsSupportJsonUtils; + interface Symbol extends Accessor, JSONSupport { type: string; } @@ -5603,7 +5601,7 @@ declare namespace __esri { interface Symbol3D extends Symbol { styleOrigin: Symbol3DStyleOrigin; - symbolLayers: Collection; + symbolLayers: Collection; } interface Symbol3DConstructor { @@ -5616,7 +5614,13 @@ declare namespace __esri { interface Symbol3DProperties extends SymbolProperties { styleOrigin?: Symbol3DStyleOrigin; - symbolLayers?: Collection | any[]; + symbolLayers?: CollectionProperties; + } + + export interface Symbol3DStyleOrigin { + styleName?: string; + styleUrl?: string; + name: string; } interface Symbol3DLayer extends Accessor, JSONSupport { @@ -5654,7 +5658,7 @@ declare namespace __esri { xoffset: number; yoffset: number; - clone(): this; + clone(): TextSymbol; } interface TextSymbolConstructor { @@ -5689,7 +5693,7 @@ declare namespace __esri { size: number; text: string; - clone(): this; + clone(): TextSymbol3DLayer; } interface TextSymbol3DLayerConstructor { @@ -5707,14 +5711,25 @@ declare namespace __esri { text?: string; } + export interface TextSymbol3DLayerFont { + family?: string; + weight?: string; + style?: string; + } + + export interface TextSymbol3DLayerHalo { + color?: Color; + size?: number; + } + interface WebStyleSymbol extends Symbol { name: string; portal: Portal; styleName: string; styleUrl: string; - clone(): this; - fetchSymbol(): IPromise; + clone(): WebStyleSymbol; + fetchSymbol(): IPromise; } interface WebStyleSymbolConstructor { @@ -5732,46 +5747,8 @@ declare namespace __esri { styleUrl?: string; } - interface Callout3D extends Accessor, JSONSupport { - clone(): this; - } - - interface Callout3DConstructor { - new(properties?: Callout3DProperties): Callout3D; - - fromJSON(json: any): Callout3D; - } - - export const Callout3D: Callout3DConstructor; - - interface Callout3DProperties { - - } - - interface LineCallout3D extends Callout3D { - border: LineCallout3DBorder; - color: Color; - size: number; - type: string; - } - - interface LineCallout3DConstructor { - new(properties?: LineCallout3DProperties): LineCallout3D; - - fromJSON(json: any): LineCallout3D; - } - - export const LineCallout3D: LineCallout3DConstructor; - - interface LineCallout3DProperties extends Callout3DProperties { - border?: LineCallout3DBorderProperties; - color?: Color; - size?: number; - type?: string; - } - interface ClosestFacilityTask extends Task { - solve(params: ClosestFacilityParameters, requestOptions?: any): IPromise; + solve(params: ClosestFacilityParameters, requestOptions?: any): IPromise; } interface ClosestFacilityTaskConstructor { @@ -5802,26 +5779,26 @@ declare namespace __esri { interface GeometryService extends Task { areasAndLengths(areasAndLengthsParameters: AreasAndLengthsParameters, requestOptions?: any): IPromise; - autoComplete(polygons: Polygon[], polylines: Polyline[], requestOptions?: any): IPromise; - buffer(bufferParameters: BufferParameters, requestOptions?: any): IPromise; - convexHull(geometries: Geometry[], requestOptions?: any): IPromise; + autoComplete(polygons: Polygon[], polylines: Polyline[], requestOptions?: any): IPromise; + buffer(bufferParameters: BufferParameters, requestOptions?: any): IPromise; + convexHull(geometries: Geometry[], requestOptions?: any): IPromise; cut(geometries: Geometry[], cutter: Polyline, requestOptions?: any): IPromise; - densify(densifyParameters: DensifyParameters, requestOptions?: any): IPromise; - difference(geometries: Geometry[], geometry: Geometry, requestOptions?: any): IPromise; - distance(params: DistanceParameters, requestOptions?: any): IPromise; + densify(densifyParameters: DensifyParameters, requestOptions?: any): IPromise; + difference(geometries: Geometry[], geometry: Geometry, requestOptions?: any): IPromise; + distance(params: DistanceParameters, requestOptions?: any): IPromise; fromGeoCoordinateString(params: GeometryServiceFromGeoCoordinateStringParams, requestOptions?: any): IPromise; - generalize(params: GeneralizeParameters, requestOptions?: any): IPromise; - intersect(geometries: Geometry[], intersector: Geometry, requestOptions?: any): IPromise; - labelPoints(polygons: Polygon[], requestOptions?: any): IPromise; + generalize(params: GeneralizeParameters, requestOptions?: any): IPromise; + intersect(geometries: Geometry[], intersector: Geometry, requestOptions?: any): IPromise; + labelPoints(polygons: Polygon[], requestOptions?: any): IPromise; lengths(params: LengthsParameters, requestOptions?: any): IPromise; - offset(params: OffsetParameters, requestOptions?: any): IPromise; - project(params: ProjectParameters, requestOptions?: any): IPromise; - relation(params: RelationParameters, requestOptions?: any): IPromise; - reshape(targetGeometry: Geometry, reshaper: Geometry, requestOptions?: any): IPromise; - simplify(geometries: Geometry[], requestOptions?: any): IPromise; - toGeoCoordinateString(params: GeometryServiceToGeoCoordinateStringParams, requestOptions?: any): IPromise; - trimExtend(params: TrimExtendParameters, requestOptions?: any): IPromise; - union(geometries: Geometry[], requestOptions?: any): IPromise; + offset(params: OffsetParameters, requestOptions?: any): IPromise; + project(params: ProjectParameters, requestOptions?: any): IPromise; + relation(params: RelationParameters, requestOptions?: any): IPromise; + reshape(targetGeometry: Geometry, reshaper: Geometry, requestOptions?: any): IPromise; + simplify(geometries: Geometry[], requestOptions?: any): IPromise; + toGeoCoordinateString(params: GeometryServiceToGeoCoordinateStringParams, requestOptions?: any): IPromise; + trimExtend(params: TrimExtendParameters, requestOptions?: any): IPromise; + union(geometries: Geometry[], requestOptions?: any): IPromise; } interface GeometryServiceConstructor { @@ -5834,6 +5811,23 @@ declare namespace __esri { } + export interface GeometryServiceFromGeoCoordinateStringParams { + strings: string[]; + sr: SpatialReference | string; + conversionType: string; + conversionMode?: string; + } + + export interface GeometryServiceToGeoCoordinateStringParams { + sr: SpatialReference | string; + coordinates: number[][]; + conversionType: string; + conversionMode?: string; + numOfDigits?: number; + rounding?: boolean; + addSpaces?: boolean; + } + interface Geoprocessor extends Task { outSpatialReference: SpatialReference; processSpatialReference: SpatialReference; @@ -5878,7 +5872,7 @@ declare namespace __esri { } interface ImageServiceIdentifyTask extends Task { - execute(params: ImageServiceIdentifyParameters, requestOptions?: any): IPromise; + execute(params: ImageServiceIdentifyParameters, requestOptions?: any): IPromise; } interface ImageServiceIdentifyTaskConstructor { @@ -5896,10 +5890,10 @@ declare namespace __esri { countryCode: string; outSpatialReference: SpatialReference; - addressesToLocations(params: LocatorAddressesToLocationsParams, requestOptions?: any): IPromise; - addressToLocations(params: LocatorAddressToLocationsParams, requestOptions?: any): IPromise; - locationToAddress(location: Point, distance?: number, requestOptions?: any): IPromise; - suggestLocations(params: LocatorSuggestLocationsParams, requestOptions?: any): IPromise; + addressesToLocations(params: LocatorAddressesToLocationsParams, requestOptions?: any): IPromise; + addressToLocations(params: LocatorAddressToLocationsParams, requestOptions?: any): IPromise; + locationToAddress(location: Point, distance?: number, requestOptions?: any): IPromise; + suggestLocations(params: LocatorSuggestLocationsParams, requestOptions?: any): IPromise; } interface LocatorConstructor { @@ -5914,24 +5908,36 @@ declare namespace __esri { outSpatialReference?: SpatialReferenceProperties; } - interface QueryTask extends Task { - gdbVersion: string; - - execute(params: Query, requestOptions?: any): IPromise; - executeForCount(params: Query, requestOptions?: any): IPromise; - executeForExtent(params: Query, requestOptions?: any): IPromise; - executeForIds(params: Query, requestOptions?: any): IPromise; - executeRelationshipQuery(params: RelationshipQuery, requestOptions?: any): IPromise; + export interface LocatorAddressesToLocationsParams { + addresses: any[]; + countryCode: string; + categories: string[]; } - interface QueryTaskConstructor { - new(properties?: QueryTaskProperties): QueryTask; + export interface LocatorAddressToLocationsParams { + address: any; + categories: string[]; + countryCode: string; + distance: number; + forStorage: boolean; + location: Point; + magicKey: string; + maxLocations: number; + outFields: string[]; + searchExtent: Extent; } - export const QueryTask: QueryTaskConstructor; + export interface LocatorSuggestLocationsParams { + categories: string[]; + distance: number; + location: Point; + text: string; + } - interface QueryTaskProperties extends TaskProperties { - gdbVersion?: string; + export interface SuggestionResult { + isCollection: boolean; + magicKey: string; + text: string; } interface PrintTask extends Task { @@ -5952,8 +5958,28 @@ declare namespace __esri { updateDelay?: number; } + interface QueryTask extends Task { + gdbVersion: string; + + execute(params: Query, requestOptions?: any): IPromise; + executeForCount(params: Query, requestOptions?: any): IPromise; + executeForExtent(params: Query, requestOptions?: any): IPromise; + executeForIds(params: Query, requestOptions?: any): IPromise; + executeRelationshipQuery(params: RelationshipQuery, requestOptions?: any): IPromise; + } + + interface QueryTaskConstructor { + new(properties?: QueryTaskProperties): QueryTask; + } + + export const QueryTask: QueryTaskConstructor; + + interface QueryTaskProperties extends TaskProperties { + gdbVersion?: string; + } + interface RouteTask extends Task { - solve(params: RouteParameters, requestOptions?: any): IPromise; + solve(params: RouteParameters, requestOptions?: any): IPromise; } interface RouteTaskConstructor { @@ -5967,7 +5993,7 @@ declare namespace __esri { } interface ServiceAreaTask extends Task { - solve(params: ServiceAreaParameters, requestOptions?: any): IPromise; + solve(params: ServiceAreaParameters, requestOptions?: any): IPromise; } interface ServiceAreaTaskConstructor { @@ -5980,22 +6006,6 @@ declare namespace __esri { } - interface Task extends Accessor { - requestOptions: any; - url: string; - } - - interface TaskConstructor { - new(properties?: TaskProperties): Task; - } - - export const Task: TaskConstructor; - - interface TaskProperties { - requestOptions?: any; - url?: string; - } - interface AddressCandidate extends Accessor, JSONSupport { address: string; attributes: any; @@ -6087,7 +6097,7 @@ declare namespace __esri { outputGeometryPrecision: number; outputGeometryPrecisionUnits: string; outputLines: string; - outSpatialReference: SpatialReference; + outSpatialReference: SpatialReference | string; pointBarriers: DataLayer | FeatureSet; polygonBarriers: DataLayer | FeatureSet; polylineBarriers: DataLayer | FeatureSet; @@ -6125,16 +6135,16 @@ declare namespace __esri { directionsStyleName?: string; directionsTimeAttribute?: string; doNotLocateOnRestrictedElements?: boolean; - facilities?: DataLayer | FeatureSet; + facilities?: DataLayerProperties | FeatureSetProperties; impedanceAttribute?: string; - incidents?: DataLayer | FeatureSet; + incidents?: DataLayerProperties | FeatureSetProperties; outputGeometryPrecision?: number; outputGeometryPrecisionUnits?: string; outputLines?: string; - outSpatialReference?: SpatialReference | string; - pointBarriers?: DataLayer | FeatureSet; - polygonBarriers?: DataLayer | FeatureSet; - polylineBarriers?: DataLayer | FeatureSet; + outSpatialReference?: SpatialReferenceProperties | string; + pointBarriers?: DataLayerProperties | FeatureSetProperties; + polygonBarriers?: DataLayerProperties | FeatureSetProperties; + polylineBarriers?: DataLayerProperties | FeatureSetProperties; restrictionAttributes?: string[]; restrictUTurns?: string; returnDirections?: boolean; @@ -6144,12 +6154,18 @@ declare namespace __esri { returnPolygonBarriers?: boolean; returnPolylineBarriers?: boolean; returnRoutes?: boolean; - timeOfDay?: Date; + timeOfDay?: DateProperties; timeOfDayUsage?: string; travelDirection?: string; useHierarchy?: boolean; } + export interface ClosestFacilityParametersAttributeParameterValues { + attributeName: string; + parameterName: string; + value: string; + } + interface ClosestFacilitySolveResult extends Accessor, JSONSupport { directions: DirectionsFeatureSet; facilities: Point[]; @@ -6234,7 +6250,7 @@ declare namespace __esri { export const supportDate: supportDateConstructor; interface supportDateProperties { - date?: Date; + date?: DateProperties; format?: string; } @@ -6513,7 +6529,7 @@ declare namespace __esri { export const ImageServiceIdentifyParameters: ImageServiceIdentifyParametersConstructor; interface ImageServiceIdentifyParametersProperties { - geometry?: Point | Polygon; + geometry?: PointProperties | PolygonProperties; mosaicRule?: MosaicRuleProperties; noData?: string | number; pixelSize?: SymbolProperties; @@ -6738,6 +6754,21 @@ declare namespace __esri { showLabels?: boolean; } + export interface PrintTemplateExportOptions { + width?: number; + height?: number; + dpi?: number; + } + + export interface PrintTemplateLayoutOptions { + titleText: string; + authorText: string; + copyrightText: string; + scalebarUnit: string; + legendLayers: LegendLayer[]; + customTextElements: any[]; + } + interface ProjectParameters extends Accessor { geometries: Geometry[]; outSpatialReference: SpatialReference; @@ -6762,6 +6793,11 @@ declare namespace __esri { transformForward?: boolean; } + export interface ProjectParametersTransformation { + wkid?: number; + wkt?: string; + } + interface Query extends Accessor { distance: number; geometry: Geometry; @@ -6822,6 +6858,13 @@ declare namespace __esri { where?: string; } + export interface QueryQuantizationParameters { + extent?: Extent; + mode?: string; + originPosition?: string; + tolerance?: number; + } + interface RasterData extends Accessor, JSONSupport { format: string; itemId: string; @@ -6942,7 +6985,7 @@ declare namespace __esri { interface RouteParametersProperties { accumulateAttributes?: string[]; attributeParameterValues?: AttributeParamValue; - barriers?: DataLayer | FeatureSet; + barriers?: DataLayerProperties | FeatureSetProperties; directionsLanguage?: string; directionsLengthUnits?: string; directionsOutputType?: string; @@ -6956,8 +6999,8 @@ declare namespace __esri { outputGeometryPrecisionUnits?: string; outputLines?: string; outSpatialReference?: SpatialReferenceProperties; - polygonBarriers?: DataLayer | FeatureSet; - polylineBarriers?: DataLayer | FeatureSet; + polygonBarriers?: DataLayerProperties | FeatureSetProperties; + polylineBarriers?: DataLayerProperties | FeatureSetProperties; preserveFirstStop?: boolean; preserveLastStop?: boolean; restrictionAttributes?: string[]; @@ -6969,13 +7012,19 @@ declare namespace __esri { returnRoutes?: boolean; returnStops?: boolean; returnZ?: boolean; - startTime?: Date; + startTime?: DateProperties; startTimeIsUTC?: boolean; - stops?: DataLayer | FeatureSet; + stops?: DataLayerProperties | FeatureSetProperties; useHierarchy?: boolean; useTimeWindows?: boolean; } + export interface AttributeParamValue { + attributeName: string; + parameterName: string; + value: string; + } + interface RouteResult extends Accessor, JSONSupport { directions: DirectionsFeatureSet; route: Graphic; @@ -7047,7 +7096,7 @@ declare namespace __esri { defaultBreaks?: number[]; doNotLocateOnRestrictedElements?: boolean; excludeSourcesFromPolygons?: string[]; - facilities?: DataLayer | FeatureSet; + facilities?: DataLayerProperties | FeatureSetProperties; impedanceAttribute?: string; mergeSimilarPolygonRanges?: boolean; outputGeometryPrecision?: number; @@ -7057,9 +7106,9 @@ declare namespace __esri { outSpatialReference?: SpatialReferenceProperties; overlapLines?: boolean; overlapPolygons?: boolean; - pointBarriers?: DataLayer | FeatureSet; - polygonBarriers?: DataLayer | FeatureSet; - polylineBarriers?: DataLayer | FeatureSet; + pointBarriers?: DataLayerProperties | FeatureSetProperties; + polygonBarriers?: DataLayerProperties | FeatureSetProperties; + polylineBarriers?: DataLayerProperties | FeatureSetProperties; restrictionAttributes?: string[]; restrictUTurns?: string; returnFacilities?: boolean; @@ -7068,7 +7117,7 @@ declare namespace __esri { returnPolylineBarriers?: boolean; splitLinesAtBreaks?: boolean; splitPolygonsAtBreaks?: boolean; - timeOfDay?: Date; + timeOfDay?: DateProperties; travelDirection?: string; trimOuterPolygon?: boolean; trimPolygonDistance?: number; @@ -7144,20 +7193,36 @@ declare namespace __esri { trimExtendTo?: PolylineProperties; } + interface Task extends Accessor { + requestOptions: any; + url: string; + } + + interface TaskConstructor { + new(properties?: TaskProperties): Task; + } + + export const Task: TaskConstructor; + + interface TaskProperties { + requestOptions?: any; + url?: string; + } + interface ConfigurationTask extends Task { url: string; - getAllGroups(requestOptions?: any): IPromise; - getAllUsers(requestOptions?: any): IPromise; - getDataWorkspaceDetails(params: ConfigurationTaskGetDataWorkspaceDetailsParams, requestOptions?: any): IPromise; - getGroup(groupId: number, requestOptions?: any): IPromise; - getJobTypeDetails(jobTypeId: number, requestOptions?: any): IPromise; - getPublicJobQueryDetails(queryId: number, requestOptions?: any): IPromise; - getServiceInfo(requestOptions?: any): IPromise; - getTableRelationshipsDetails(requestOptions?: any): IPromise; - getUser(user: string, requestOptions?: any): IPromise; - getUserJobQueryDetails(params: ConfigurationTaskGetUserJobQueryDetailsParams, requestOptions?: any): IPromise; - getVisibleJobTypes(user: string, requestOptions?: any): IPromise; + getAllGroups(requestOptions?: any): IPromise; + getAllUsers(requestOptions?: any): IPromise; + getDataWorkspaceDetails(params: ConfigurationTaskGetDataWorkspaceDetailsParams, requestOptions?: any): IPromise; + getGroup(groupId: number, requestOptions?: any): IPromise; + getJobTypeDetails(jobTypeId: number, requestOptions?: any): IPromise; + getPublicJobQueryDetails(queryId: number, requestOptions?: any): IPromise; + getServiceInfo(requestOptions?: any): IPromise; + getTableRelationshipsDetails(requestOptions?: any): IPromise; + getUser(user: string, requestOptions?: any): IPromise; + getUserJobQueryDetails(params: ConfigurationTaskGetUserJobQueryDetailsParams, requestOptions?: any): IPromise; + getVisibleJobTypes(user: string, requestOptions?: any): IPromise; } interface ConfigurationTaskConstructor { @@ -7170,44 +7235,218 @@ declare namespace __esri { url?: string; } + export interface ConfigurationTaskGetDataWorkspaceDetailsParams { + dataWorkspaceId: string; + user: string; + } + + export interface ConfigurationTaskGetUserJobQueryDetailsParams { + queryId: number; + user: string; + } + + export interface DataWorkspace { + id: string; + name: string; + } + + export interface GroupMembership { + id: number; + name: string; + } + + export interface HoldType { + description: string; + id: number; + name: string; + } + + export interface JobPriority { + description: string; + name: string; + value: number; + } + + export interface JobQuery { + id: number; + name: string; + } + + export interface JobQueryContainer { + containers: JobQueryContainer[]; + id: number; + name: string; + queries: JobQuery[]; + } + + export interface JobQueryDetails { + aliases: string[]; + fields: string[]; + id: number; + name: string; + orderBy: string; + tables: string[]; + where: string; + } + + export interface JobStatus { + caption: string; + description: string; + id: number; + name: string; + } + + export interface JobType { + category: string; + description: string; + id: string; + name: string; + state: string; + } + + export interface JobTypeDetails { + defaultParentVersionName: string; + autoExecuteCreatedJobs: boolean; + category: string; + defaultAssignedTo: string; + defaultAssignedType: string; + defaultDataWorkspaceId: string; + defaultDescription: string; + defaultDueDate: string; + defaultJobDuration: number; + canDataWorkspaceChange: boolean; + defaultPriority: string; + defaultStartDate: Date; + description: string; + id: string; + jobNamingScheme: string; + jobVersionNamingScheme: string; + mxdNamingScheme: string; + name: string; + state: string; + } + + export interface Privilege { + description: string; + id: number; + name: string; + } + + export interface TableRelationship { + cardinality: string; + linkField: string; + tableAlias: string; + tableName: string; + } + + export interface UserDetails { + lastName: string; + address: string; + faxNumber: string; + firstName: string; + fullName: string; + groups: GroupMembership[]; + email: string; + phoneNumber: string; + privileges: Privilege[]; + roomNumber: string; + userName: string; + userQueries: JobQueryContainer[]; + zipCode: string; + } + + export interface VersionInfo { + access: string; + name: string; + parent: string; + } + + export interface WorkflowManagerServiceInfo { + jobPriorities: JobPriority[]; + activityTypes: ActivityType[]; + currentVersion: number; + dataWorkspaces: DataWorkspace[]; + holdTypes: HoldType[]; + configProperties: WorkflowManagerServiceInfoConfigProperties; + jobStatuses: JobStatus[]; + jobTypes: JobType[]; + notificationTypes: NotificationType[]; + privileges: Privilege[]; + publicQueries: JobQueryContainer[]; + } + + export interface WorkflowManagerServiceInfoConfigProperties { + AOIOVERLAP: string; + AOISELECTIONCOLOR: number; + AUTOASSIGNJOB: boolean; + AUTOCLOSEJOB: boolean; + AUTOCOMMITWORKFLOW: boolean; + AUTOSTATUSASSIGN: boolean; + CONFIRMPROCEDURALCHECK: boolean; + DEFAULT_SENDER_EMAIL: string; + DEFAULT_SENDER_NAME: string; + HTML_SUPPORT: string; + JOB_ID_START_VALUE: string; + PENDING_DAYS_USE_HOLDS: boolean; + PROMPTSDEPWD: boolean; + REQUIREPROCEDURALCHECKSTART: number; + RESTRICT_AOI_OPTION: string; + SEND_SN_CUSTOM_POST: boolean; + SHOW_STEP_IDS: boolean; + SHOW_STEP_PERCENT_COMPLETE: boolean; + SMTP_PASSWORD: string; + SHOW_PENDING_DAYS: boolean; + SMTP_PORT: string; + SMTP_PROTOCOL: string; + SMTP_SERVER: string; + SMTP_USERNAME: string; + USE_STEP_STATUS: boolean; + USER_STORE: string; + USEUSERDOMAIN: boolean; + WF_SEL_STEP_FILL_COLOR: number; + WF_SEL_STEP_OUTLINE_COLOR: number; + WF_SEL_STEP_OUTLINE_WIDTH: number; + ZOOMTOAOI: boolean; + } + interface JobTask extends Task { url: string; - addEmbeddedAttachment(params: JobTaskAddEmbeddedAttachmentParams, requestOptions?: any): IPromise; - addLinkedAttachment(params: JobTaskAddLinkedAttachmentParams, requestOptions?: any): IPromise; - addLinkedRecord(params: JobTaskAddLinkedRecordParams, requestOptions?: any): IPromise; - assignJobs(params: JobTaskAssignJobsParams, requestOptions?: any): IPromise; - closeJobs(params: JobTaskCloseJobsParams, requestOptions?: any): IPromise; - createDependency(params: JobTaskCreateDependencyParams, requestOptions?: any): IPromise; - createHold(params: JobTaskCreateHoldParams, requestOptions?: any): IPromise; - createJobs(params: JobCreationParameters, requestOptions?: any): IPromise; - createJobVersion(params: JobTaskCreateJobVersionParams, requestOptions?: any): IPromise; - deleteAttachment(params: JobTaskDeleteAttachmentParams, requestOptions?: any): IPromise; - deleteDependency(params: JobTaskDeleteDependencyParams, requestOptions?: any): IPromise; - deleteJobs(params: JobTaskDeleteJobsParams, requestOptions?: any): IPromise; - deleteLinkedRecord(params: JobTaskDeleteLinkedRecordParams, requestOptions?: any): IPromise; - getActivityLog(jobId: number, requestOptions?: any): IPromise; + addEmbeddedAttachment(params: JobTaskAddEmbeddedAttachmentParams, requestOptions?: any): IPromise; + addLinkedAttachment(params: JobTaskAddLinkedAttachmentParams, requestOptions?: any): IPromise; + addLinkedRecord(params: JobTaskAddLinkedRecordParams, requestOptions?: any): IPromise; + assignJobs(params: JobTaskAssignJobsParams, requestOptions?: any): IPromise; + closeJobs(params: JobTaskCloseJobsParams, requestOptions?: any): IPromise; + createDependency(params: JobTaskCreateDependencyParams, requestOptions?: any): IPromise; + createHold(params: JobTaskCreateHoldParams, requestOptions?: any): IPromise; + createJobs(params: JobCreationParameters, requestOptions?: any): IPromise; + createJobVersion(params: JobTaskCreateJobVersionParams, requestOptions?: any): IPromise; + deleteAttachment(params: JobTaskDeleteAttachmentParams, requestOptions?: any): IPromise; + deleteDependency(params: JobTaskDeleteDependencyParams, requestOptions?: any): IPromise; + deleteJobs(params: JobTaskDeleteJobsParams, requestOptions?: any): IPromise; + deleteLinkedRecord(params: JobTaskDeleteLinkedRecordParams, requestOptions?: any): IPromise; + getActivityLog(jobId: number, requestOptions?: any): IPromise; getAttachmentContentUrl(params: JobTaskGetAttachmentContentUrlParams): string; - getAttachments(jobId: number, requestOptions?: any): IPromise; - getDependencies(jobId: number, requestOptions?: any): IPromise; - getExtendedProperties(jobId: number, requestOptions?: any): IPromise; - getHolds(jobId: number, requestOptions?: any): IPromise; - getJob(jobId: number, requestOptions?: any): IPromise; - getJobIds(requestOptions?: any): IPromise; - getNotes(jobId: number, requestOptions?: any): IPromise; - listFieldValues(params: JobTaskListFieldValuesParams, requestOptions?: any): IPromise; - listMultiLevelFieldValues(params: JobTaskListMultiLevelFieldValuesParams, requestOptions?: any): IPromise; - logAction(params: JobTaskLogActionParams, requestOptions?: any): IPromise; - queryJobs(params: JobTaskQueryJobsParams, requestOptions?: any): IPromise; - queryJobsAdHoc(params: JobQueryParameters, requestOptions?: any): IPromise; - queryMultiLevelSelectedValues(params: JobTaskQueryMultiLevelSelectedValuesParams, requestOptions?: any): IPromise; - releaseHold(params: JobTaskReleaseHoldParams, requestOptions?: any): IPromise; - reopenClosedJobs(params: JobTaskReopenClosedJobsParams, requestOptions?: any): IPromise; - searchJobs(params: JobTaskSearchJobsParams, requestOptions?: any): IPromise; - unassignJobs(params: JobTaskUnassignJobsParams, requestOptions?: any): IPromise; - updateJob(params: JobUpdateParameters, requestOptions?: any): IPromise; - updateNotes(params: JobTaskUpdateNotesParams, requestOptions?: any): IPromise; - updateRecord(params: JobTaskUpdateRecordParams, requestOptions?: any): IPromise; + getAttachments(jobId: number, requestOptions?: any): IPromise; + getDependencies(jobId: number, requestOptions?: any): IPromise; + getExtendedProperties(jobId: number, requestOptions?: any): IPromise; + getHolds(jobId: number, requestOptions?: any): IPromise; + getJob(jobId: number, requestOptions?: any): IPromise; + getJobIds(requestOptions?: any): IPromise; + getNotes(jobId: number, requestOptions?: any): IPromise; + listFieldValues(params: JobTaskListFieldValuesParams, requestOptions?: any): IPromise; + listMultiLevelFieldValues(params: JobTaskListMultiLevelFieldValuesParams, requestOptions?: any): IPromise; + logAction(params: JobTaskLogActionParams, requestOptions?: any): IPromise; + queryJobs(params: JobTaskQueryJobsParams, requestOptions?: any): IPromise; + queryJobsAdHoc(params: JobQueryParameters, requestOptions?: any): IPromise; + queryMultiLevelSelectedValues(params: JobTaskQueryMultiLevelSelectedValuesParams, requestOptions?: any): IPromise; + releaseHold(params: JobTaskReleaseHoldParams, requestOptions?: any): IPromise; + reopenClosedJobs(params: JobTaskReopenClosedJobsParams, requestOptions?: any): IPromise; + searchJobs(params: JobTaskSearchJobsParams, requestOptions?: any): IPromise; + unassignJobs(params: JobTaskUnassignJobsParams, requestOptions?: any): IPromise; + updateJob(params: JobUpdateParameters, requestOptions?: any): IPromise; + updateNotes(params: JobTaskUpdateNotesParams, requestOptions?: any): IPromise; + updateRecord(params: JobTaskUpdateRecordParams, requestOptions?: any): IPromise; } interface JobTaskConstructor { @@ -7220,22 +7459,332 @@ declare namespace __esri { url?: string; } + export interface ActivityType { + desription: string; + id: number; + message: string; + name: string; + } + + export interface AuxRecord { + displayProperty: any; + id: number; + recordvalues: AuxRecordValue; + } + + export interface AuxRecordContainer { + records: AuxRecord; + relationshipType: string; + tableAlias: string; + tableName: string; + } + + export interface AuxRecordDescription { + properties: any; + recordId: number; + tableName: string; + } + + export interface AuxRecordValue { + filter: string; + alias: string; + data: any; + dataType: string; + displayOrder: number; + displayType: string; + domain: string; + canUpdate: boolean; + length: number; + name: string; + required: boolean; + tableListClass: string; + tableListDisplayField: string; + tableListStoreField: string; + userVisible: boolean; + } + + export interface FieldValue { + description: string; + value: any; + } + + export interface JobAttachment { + filename: string; + folder: string; + id: number; + storageType: string; + } + + export interface JobCreationParameters { + loi: Geometry; + assignedTo: string; + autoCommitWorkflow: boolean; + autoExecute: boolean; + dataWorkspaceId: string; + description: string; + dueDate: Date; + jobTypeId: number; + assignedType: string; + name: string; + numJobs: string; + ownedBy: string; + parentJobId: number; + parentVersion: string; + priority: number; + startDate: Date; + user: string; + } + + export interface JobDependency { + depJobId: number; + depOnType: string; + depOnValue: string; + heldOnValue: number; + holdOnType: string; + id: number; + jobID: string; + } + + export interface JobTaskJobInfo { + name: string; + assignedTo: string; + childJobIds: number[]; + createdBy: string; + createdDate: Date; + dataWorkspaceId: string; + description: string; + dueDate: Date; + endDate: Date; + id: number; + jobTypeId: number; + loi: Geometry; + assignedType: string; + ownedBy: string; + parentJobId: number; + parentVersion: string; + pendingDays: number; + percentageComplete: number; + priority: number; + stage: string; + startDate: Date; + status: number; + versionExists: boolean; + versionInfo: JobVersionInfo; + versionName: string; + } + + export interface JobQueryParameters { + aliases: string; + fields: string; + orderBy: string; + tables: string; + where: string; + user: string; + } + + export interface JobTaskAddEmbeddedAttachmentParams { + jobId: number; + form: any; + user: string; + } + + export interface JobTaskAddLinkedAttachmentParams { + jobId: number; + attachmentType: number; + path: string; + user: string; + } + + export interface JobTaskAddLinkedRecordParams { + jobId: number; + tableName: string; + user: string; + } + + export interface JobTaskAssignJobsParams { + jobIds: number[]; + assignedType: string; + assignedTo: string; + user: string; + } + + export interface JobTaskCloseJobsParams { + jobIds: number[]; + user: string; + } + + export interface JobTaskCreateDependencyParams { + jobId: number; + heldOnType: string; + heldOnValue: number; + depJobId: number; + depOnType: string; + depOnValue: number; + user: string; + } + + export interface JobTaskCreateHoldParams { + jobId: number; + holdTypeId: number; + comments: string; + user: string; + } + + export interface JobTaskCreateJobVersionParams { + jobId: number; + name: string; + parent: string; + user: string; + } + + export interface JobTaskDeleteAttachmentParams { + jobId: number; + attachmentId: number; + user: string; + } + + export interface JobTaskDeleteDependencyParams { + jobId: number; + dependencyId: number; + user: string; + } + + export interface JobTaskDeleteJobsParams { + jobIds: number[]; + deleteHistory?: boolean; + user: string; + } + + export interface JobTaskDeleteLinkedRecordParams { + jobId: number; + tableName: string; + recordId: number; + user: string; + } + + export interface JobTaskGetAttachmentContentUrlParams { + jobId: number; + attachmentId: number; + } + + export interface JobTaskListFieldValuesParams { + jobId: number; + tableName: string; + field: string; + user: string; + } + + export interface JobTaskListMultiLevelFieldValuesParams { + field: string; + previousSelectedValues: string[]; + user: string; + } + + export interface JobTaskLogActionParams { + jobId: number; + activityTypeId: number; + comments: string; + user: string; + } + + export interface JobTaskQueryJobsParams { + queryId: number; + user: string; + } + + export interface JobTaskQueryMultiLevelSelectedValuesParams { + field: string; + user: string; + } + + export interface JobTaskReleaseHoldParams { + jobId: number; + holdId: number; + } + + export interface JobTaskReopenClosedJobsParams { + jobIds: number[]; + user: string; + } + + export interface JobTaskSearchJobsParams { + text: string; + user: string; + } + + export interface JobTaskUnassignJobsParams { + jobIds: number[]; + user: string; + } + + export interface JobTaskUpdateNotesParams { + jobId: number; + notes: string; + user: string; + } + + export interface JobTaskUpdateRecordParams { + jobId: number; + record: AuxRecordDescription; + user: string; + } + + export interface JobUpdateParameters { + ownedBy: string; + assignedTo: string; + dataWorkspaceId: string; + description: string; + dueDate: Date; + loi: Geometry; + jobId: number; + name: string; + assignedType: string; + parentJobId: number; + parentVersion: string; + percent: number; + priority: number; + startDate: Date; + status: number; + versionName: string; + user: string; + } + + export interface JobVersionInfo { + dataWorkspaceId: string; + name: string; + parent: string; + created: boolean; + owner: string; + } + + export interface QueryFieldInfo { + alias: string; + length: string; + name: string; + type: string; + } + + export interface QueryResult { + fields: QueryFieldInfo[]; + rows: string[]; + } + interface NotificationTask extends Task { url: string; - addChangeRule(params: NotificationTaskAddChangeRuleParams, requestOptions?: any): IPromise; - deleteChangeRule(params: NotificationTaskDeleteChangeRuleParams, requestOptions?: any): IPromise; - getAllChangeRules(requestOptions?: any): IPromise; - getChangeRule(ruleId: string, requestOptions?: any): IPromise; - getChangeRuleMatch(matchId: string, requestOptions?: any): IPromise; - getDatabaseTime(dataWorkspaceId: string, requestOptions?: any): IPromise; - getSessionMatches(sessionId: string, requestOptions?: any): IPromise; - notifySession(params: NotificationTaskNotifySessionParams, requestOptions?: any): IPromise; - queryChangeRules(params: NotificationTaskQueryChangeRulesParams, requestOptions?: any): IPromise; - runSpatialNotificationOnHistory(params: NotificationTaskRunSpatialNotificationOnHistoryParams, requestOptions?: any): IPromise; - sendNotification(params: NotificationTaskSendNotificationParams, requestOptions?: any): IPromise; - subscribeToNotification(params: NotificationTaskSubscribeToNotificationParams, requestOptions?: any): IPromise; - unsubscribeFromNotification(params: NotificationTaskUnsubscribeFromNotificationParams, requestOptions?: any): IPromise; + addChangeRule(params: NotificationTaskAddChangeRuleParams, requestOptions?: any): IPromise; + deleteChangeRule(params: NotificationTaskDeleteChangeRuleParams, requestOptions?: any): IPromise; + getAllChangeRules(requestOptions?: any): IPromise; + getChangeRule(ruleId: string, requestOptions?: any): IPromise; + getChangeRuleMatch(matchId: string, requestOptions?: any): IPromise; + getDatabaseTime(dataWorkspaceId: string, requestOptions?: any): IPromise; + getSessionMatches(sessionId: string, requestOptions?: any): IPromise; + notifySession(params: NotificationTaskNotifySessionParams, requestOptions?: any): IPromise; + queryChangeRules(params: NotificationTaskQueryChangeRulesParams, requestOptions?: any): IPromise; + runSpatialNotificationOnHistory(params: NotificationTaskRunSpatialNotificationOnHistoryParams, requestOptions?: any): IPromise; + sendNotification(params: NotificationTaskSendNotificationParams, requestOptions?: any): IPromise; + subscribeToNotification(params: NotificationTaskSubscribeToNotificationParams, requestOptions?: any): IPromise; + unsubscribeFromNotification(params: NotificationTaskUnsubscribeFromNotificationParams, requestOptions?: any): IPromise; } interface NotificationTaskConstructor { @@ -7248,14 +7797,135 @@ declare namespace __esri { url?: string; } + export interface AOIEvaluator { + aoi: Polygon; + inverse: boolean; + name: string; + relation: string; + type: string; + useJobAOI: boolean; + } + + export interface ChangeRule { + description: string; + evaluators: any[]; + id: number; + name: string; + notifier: any; + summarize: boolean; + } + + export interface ChangeRuleMatch { + changeTime: Date; + changeType: string; + dataset: string; + dataWorkspaceId: string; + id: string; + jobID: string; + ruleID: string; + } + + export interface DatasetConfiguration { + changeCondition: number; + changeFields: string; + dataset: string; + dataWorkspaceId: string; + name: string; + whereConditions: WhereCondition[]; + } + + export interface DataSetEvaluator { + dataSetConfigurations: DatasetConfiguration[]; + name: string; + type: string; + } + + export interface EmailNotifier { + attachJobAttachments: boolean; + message: string; + name: string; + senderEmail: string; + senderName: string; + subject: string; + subscribers: string[]; + type: string; + } + + export interface NotificationTaskAddChangeRuleParams { + rule: ChangeRule; + user: string; + } + + export interface NotificationTaskDeleteChangeRuleParams { + ruleId: string; + user: string; + } + + export interface NotificationTaskNotifySessionParams { + sessionid: string; + deleteAfter: boolean; + user: string; + } + + export interface NotificationTaskQueryChangeRulesParams { + name: string; + description: string; + searchType: string; + user: string; + } + + export interface NotificationTaskRunSpatialNotificationOnHistoryParams { + dataWorkspaceId: string; + from: Date; + to: Date; + logMatches: boolean; + send: boolean; + user: string; + } + + export interface NotificationTaskSendNotificationParams { + jobId: number; + notificationType: string; + user: string; + } + + export interface NotificationTaskSubscribeToNotificationParams { + notificationTypeId: number; + email: string; + user: string; + } + + export interface NotificationTaskUnsubscribeFromNotificationParams { + notificationTypeId: number; + email: string; + user: string; + } + + export interface NotificationType { + attachJobAttachments: boolean; + id: number; + message: string; + senderEmail: string; + senderName: string; + subject: string; + subscribers: string[]; + type: string; + } + + export interface WhereCondition { + compareValue: any; + field: string; + operator: string; + } + interface ReportTask extends Task { url: string; - generateReport(params: ReportTaskGenerateReportParams, requestOptions?: any): IPromise; - getAllReports(requestOptions?: any): IPromise; + generateReport(params: ReportTaskGenerateReportParams, requestOptions?: any): IPromise; + getAllReports(requestOptions?: any): IPromise; getReportContentUrl(params: ReportTaskGetReportContentUrlParams): string; - getReportData(params: ReportTaskGetReportDataParams, requestOptions?: any): IPromise; - getReportStylesheet(reportId: number, requestOptions?: any): IPromise; + getReportData(params: ReportTaskGetReportDataParams, requestOptions?: any): IPromise; + getReportStylesheet(reportId: number, requestOptions?: any): IPromise; } interface ReportTaskConstructor { @@ -7268,8 +7938,45 @@ declare namespace __esri { url?: string; } + export interface Report { + description: string; + hierarchy: string; + id: number; + name: string; + title: string; + } + + export interface ReportData { + columns: string[]; + description: string; + groups: ReportDataGroup[]; + title: string; + } + + export interface ReportDataGroup { + aggregateLabel: string; + aggregateValue: string; + row: string[]; + value: string; + } + + export interface ReportTaskGenerateReportParams { + reportId: number; + user: string; + } + + export interface ReportTaskGetReportContentUrlParams { + reportId: number; + user: number; + } + + export interface ReportTaskGetReportDataParams { + reportId: number; + user: string; + } + interface TokenTask extends Task { - parseTokens(params: TokenTaskParseTokensParams, requestOptions?: any): IPromise; + parseTokens(params: TokenTaskParseTokensParams, requestOptions?: any): IPromise; } interface TokenTaskConstructor { @@ -7282,23 +7989,29 @@ declare namespace __esri { } + export interface TokenTaskParseTokensParams { + jobId: any; + stringToParse: string; + user: string; + } + interface WorkflowTask extends Task { url: string; - canRunStep(params: WorkflowTaskCanRunStepParams, requestOptions?: any): IPromise; - executeSteps(params: WorkflowTaskExecuteStepsParams, requestOptions?: any): IPromise; - getAllSteps(jobId: number, requestOptions?: any): IPromise; - getCurrentSteps(jobId: number, requestOptions?: any): IPromise; - getStep(params: WorkflowTaskGetStepParams, requestOptions?: any): IPromise; - getStepDescription(params: WorkflowTaskGetStepDescriptionParams, requestOptions?: any): IPromise; + canRunStep(params: WorkflowTaskCanRunStepParams, requestOptions?: any): IPromise; + executeSteps(params: WorkflowTaskExecuteStepsParams, requestOptions?: any): IPromise; + getAllSteps(jobId: number, requestOptions?: any): IPromise; + getCurrentSteps(jobId: number, requestOptions?: any): IPromise; + getStep(params: WorkflowTaskGetStepParams, requestOptions?: any): IPromise; + getStepDescription(params: WorkflowTaskGetStepDescriptionParams, requestOptions?: any): IPromise; getStepFileUrl(params: WorkflowTaskGetStepFileUrlParams): string; - getWorkflowDisplayDetails(jobId: number, requestOptions?: any): IPromise; + getWorkflowDisplayDetails(jobId: number, requestOptions?: any): IPromise; getWorkflowImageUrl(jobId: number): string; - markStepsAsDone(params: WorkflowTaskMarkStepsAsDoneParams, requestOptions?: any): IPromise; - moveToNextStep(params: WorkflowTaskMoveToNextStepParams, requestOptions?: any): IPromise; - recreateWorkflow(params: WorkflowTaskRecreateWorkflowParams, requestOptions?: any): IPromise; - resolveConflict(params: WorkflowTaskResolveConflictParams, requestOptions?: any): IPromise; - setCurrentStep(params: WorkflowTaskSetCurrentStepParams, requestOptions?: any): IPromise; + markStepsAsDone(params: WorkflowTaskMarkStepsAsDoneParams, requestOptions?: any): IPromise; + moveToNextStep(params: WorkflowTaskMoveToNextStepParams, requestOptions?: any): IPromise; + recreateWorkflow(params: WorkflowTaskRecreateWorkflowParams, requestOptions?: any): IPromise; + resolveConflict(params: WorkflowTaskResolveConflictParams, requestOptions?: any): IPromise; + setCurrentStep(params: WorkflowTaskSetCurrentStepParams, requestOptions?: any): IPromise; } interface WorkflowTaskConstructor { @@ -7311,19 +8024,622 @@ declare namespace __esri { url?: string; } - interface MapView extends View { + export interface ExecuteInfo { + conflicts: WorkflowConflicts; + errorCode: number; + errorDescription: string; + executionResult: string; + hasConflicts: boolean; + hasReturnCode: boolean; + jobID: number; + returnCode: number; + stepID: number; + threwError: boolean; + } + + export interface Step { + hasBeenExecuted: boolean; + assignedTo: string; + async: boolean; + autoRun: boolean; + canSkip: boolean; + canSpawnConcurrency: boolean; + commonId: number; + defaultPercentComplete: number; + assignedType: string; + hasBeenStarted: boolean; + id: number; + name: string; + selfCheck: boolean; + statusId: number; + stepPercentComplete: number; + notificationType: string; + stepType: StepType; + } + + export interface StepType { + program: string; + arguments: string; + executionType: string; + id: number; + name: string; + description: string; + stepDescriptionLink: string; + stepDescriptionType: string; + stepIndicatorType: string; + supportedPlatform: string; + visible: boolean; + } + + export interface WorkflowAnnotationDisplayDetails { + centerX: number; + centerY: number; + fillColor: Color; + height: number; + label: string; + labelColor: Color; + OutlineColor: Color; + width: number; + } + + export interface WorkflowConflicts { + jobID: number; + options: WorkflowOption[]; + spawnsConcurrency: boolean; + stepId: number; + } + + export interface WorkflowDisplayDetails { + annotations: WorkflowAnnotationDisplayDetails[]; + paths: WorkflowPathDisplayDetails[]; + steps: WorkflowStepDisplayDetails[]; + } + + export interface WorkflowOption { + returnCode: number; + steps: WorkflowStepInfo[]; + } + + export interface WorkflowPathDisplayDetails { + destStepId: number; + sourceStepID: number; + label: string; + labelColor: Color; + labelX: number; + labelY: number; + lineColor: Color; + pathObject: any; + } + + export interface WorkflowStepDisplayDetails { + labelColor: Color; + centerX: number; + fillColor: Color; + height: number; + label: string; + centerY: number; + OutlineColor: Color; + shape: string; + stepId: number; + stepType: string; + width: number; + } + + export interface WorkflowStepInfo { + id: number; + name: string; + } + + export interface WorkflowTaskCanRunStepParams { + jobId: number; + stepId: number; + user: string; + } + + export interface WorkflowTaskExecuteStepsParams { + jobId: number; + stepIds: number[]; + auto: boolean; + user: string; + } + + export interface WorkflowTaskGetStepDescriptionParams { + jobId: number; + stepId: number; + } + + export interface WorkflowTaskGetStepFileUrlParams { + jobId: number; + stepId: number; + } + + export interface WorkflowTaskGetStepParams { + jobId: number; + stepId: number; + } + + export interface WorkflowTaskMarkStepsAsDoneParams { + jobId: number; + stepIds: number[]; + user: string; + } + + export interface WorkflowTaskMoveToNextStepParams { + jobId: number; + stepId: number; + returnCode: number; + user: string; + } + + export interface WorkflowTaskRecreateWorkflowParams { + jobId: number; + user: string; + } + + export interface WorkflowTaskResolveConflictParams { + jobId: number; + stepId: number; + optionReturnCode: number; + optionStepIds: number[]; + user: string; + } + + export interface WorkflowTaskSetCurrentStepParams { + jobId: number; + stepId: number; + user: string; + } + + interface Viewpoint extends Accessor, JSONSupport { + camera: Camera; + rotation: number; + scale: number; + targetGeometry: Geometry; + + clone(): Viewpoint; + } + + interface ViewpointConstructor { + new(properties?: ViewpointProperties): Viewpoint; + + fromJSON(json: any): Viewpoint; + } + + export const Viewpoint: ViewpointConstructor; + + interface ViewpointProperties { + camera?: CameraProperties; + rotation?: number; + scale?: number; + targetGeometry?: GeometryProperties; + } + + interface Draw extends Accessor { + activeAction: PointDrawAction | PolygonDrawAction | PolylineDrawAction; + view: MapView; + + create(drawAction: string): PointDrawAction | PolygonDrawAction | PolylineDrawAction; + } + + interface DrawConstructor { + new(properties?: DrawProperties): Draw; + } + + export const Draw: DrawConstructor; + + interface DrawProperties { + activeAction?: PointDrawActionProperties | PolygonDrawActionProperties | PolylineDrawActionProperties; + view?: MapViewProperties; + } + + interface PointDrawAction extends Accessor, Evented { + view: MapView; + + complete(): void; + } + + interface PointDrawActionConstructor { + new(properties?: PointDrawActionProperties): PointDrawAction; + } + + export const PointDrawAction: PointDrawActionConstructor; + + interface PointDrawActionProperties { + view?: MapViewProperties; + } + + interface PolygonDrawAction extends Accessor, Evented { + vertices: number[][]; + view: MapView; + + canRedo(): boolean; + canUndo(): boolean; + complete(): void; + redo(): void; + undo(): void; + + on(name: "cursor-update", eventHandler: PolygonDrawActionCursorUpdateEventHandler): IHandle; + on(name: "cursor-update", modifiers: string[], eventHandler: PolygonDrawActionCursorUpdateEventHandler): IHandle; + on(name: "vertex-add", eventHandler: PolygonDrawActionVertexAddEventHandler): IHandle; + on(name: "vertex-add", modifiers: string[], eventHandler: PolygonDrawActionVertexAddEventHandler): IHandle; + on(name: "vertex-remove", eventHandler: PolygonDrawActionVertexRemoveEventHandler): IHandle; + on(name: "vertex-remove", modifiers: string[], eventHandler: PolygonDrawActionVertexRemoveEventHandler): IHandle; + on(name: "draw-complete", eventHandler: PolygonDrawActionDrawCompleteEventHandler): IHandle; + on(name: "draw-complete", modifiers: string[], eventHandler: PolygonDrawActionDrawCompleteEventHandler): IHandle; + } + + interface PolygonDrawActionConstructor { + new(properties?: PolygonDrawActionProperties): PolygonDrawAction; + } + + export const PolygonDrawAction: PolygonDrawActionConstructor; + + interface PolygonDrawActionProperties { + vertices?: number[][]; + view?: MapViewProperties; + } + + export interface PolygonDrawActionCursorUpdateEvent { + defaultPrevented: boolean; + preventDefault: Function; + type: string; + vertexIndex: number; + vertices: number[][]; + } + + export interface PolygonDrawActionDrawCompleteEvent { + defaultPrevented: boolean; + preventDefault: Function; + type: string; + vertices: number[][]; + } + + export interface PolygonDrawActionVertexAddEvent { + defaultPrevented: boolean; + preventDefault: Function; + type: string; + vertexIndex: number; + vertices: number[][]; + } + + export interface PolygonDrawActionVertexRemoveEvent { + defaultPrevented: boolean; + preventDefault: Function; + type: string; + vertexIndex: number; + vertices: number[][]; + } + + interface PolylineDrawAction extends Accessor, Evented { + vertices: number[][]; + view: MapView; + + canRedo(): boolean; + canUndo(): boolean; + complete(): void; + redo(): void; + undo(): void; + + on(name: "cursor-update", eventHandler: PolylineDrawActionCursorUpdateEventHandler): IHandle; + on(name: "cursor-update", modifiers: string[], eventHandler: PolylineDrawActionCursorUpdateEventHandler): IHandle; + on(name: "vertex-add", eventHandler: PolylineDrawActionVertexAddEventHandler): IHandle; + on(name: "vertex-add", modifiers: string[], eventHandler: PolylineDrawActionVertexAddEventHandler): IHandle; + on(name: "vertex-remove", eventHandler: PolylineDrawActionVertexRemoveEventHandler): IHandle; + on(name: "vertex-remove", modifiers: string[], eventHandler: PolylineDrawActionVertexRemoveEventHandler): IHandle; + on(name: "draw-complete", eventHandler: PolylineDrawActionDrawCompleteEventHandler): IHandle; + on(name: "draw-complete", modifiers: string[], eventHandler: PolylineDrawActionDrawCompleteEventHandler): IHandle; + } + + interface PolylineDrawActionConstructor { + new(properties?: PolylineDrawActionProperties): PolylineDrawAction; + } + + export const PolylineDrawAction: PolylineDrawActionConstructor; + + interface PolylineDrawActionProperties { + vertices?: number[][]; + view?: MapViewProperties; + } + + export interface PolylineDrawActionCursorUpdateEvent { + defaultPrevented: boolean; + preventDefault: Function; + type: string; + vertexIndex: number; + vertices: number[][]; + } + + export interface PolylineDrawActionDrawCompleteEvent { + defaultPrevented: boolean; + preventDefault: Function; + type: string; + vertices: number[][]; + } + + export interface PolylineDrawActionVertexAddEvent { + defaultPrevented: boolean; + preventDefault: Function; + type: string; + vertexIndex: number; + vertices: number[][]; + } + + export interface PolylineDrawActionVertexRemoveEvent { + defaultPrevented: boolean; + preventDefault: Function; + type: string; + vertexIndex: number; + vertices: number[][]; + } + + interface externalRenderers { + add(view: SceneView, renderer: ExternalRenderer): void; + fromRenderCoordinates(view: SceneView, srcCoordinates: number[] | any, srcStart: number, destCoordinates: number[] | any, destStart: number, destSpatialReference: SpatialReference, count: number): number[] | any; + remove(view: SceneView, renderer: ExternalRenderer): void; + renderCoordinateTransformAt(view: SceneView, origin: number[] | any, srcSpatialReference?: SpatialReference, dest?: number[] | any): number[] | any; + requestRender(view: SceneView): void; + toRenderCoordinates(view: SceneView, srcCoordinates: number[] | any, srcStart: number, srcSpatialReference: SpatialReference, destCoordinates: number[] | any, destStart: number, count: number): number[] | any; + } + + export const externalRenderers: externalRenderers; + + export interface ColorAndIntensity { + color: any; + intensity: number; + } + + export interface ExternalRenderer { + setup(): void; + render(): void; + dispose(): void; + } + + export interface RenderCamera { + viewMatrix: any; + viewInverseTransposeMatrix: any; + projectionMatrix: any; + eye: any; + center: any; + up: any; + near: number; + far: number; + fovX: number; + fovY: number; + } + + export interface RenderContext { + gl: any; + camera: RenderCamera; + sunLight: SunLight; + + resetWebGLState(): void; + bindRenderTarget(): void; + } + + export interface SunLight { + direction: any; + diffuse: ColorAndIntensity; + ambient: ColorAndIntensity; + } + + interface BreakpointsOwner { + breakpoints: BreakpointsOwnerBreakpoints; + heightBreakpoint: string; + orientation: string; + widthBreakpoint: string; + } + + interface BreakpointsOwnerConstructor { + new(): BreakpointsOwner; + } + + export const BreakpointsOwner: BreakpointsOwnerConstructor; + + interface BreakpointsOwnerProperties { + breakpoints?: BreakpointsOwnerBreakpoints; + heightBreakpoint?: string; + orientation?: string; + widthBreakpoint?: string; + } + + export interface BreakpointsOwnerBreakpoints { + xsmall: number; + small: number; + medium: number; + large: number; + } + + interface DOMContainer { + container: HTMLDivElement | string; + height: number; + popup: Popup; + resizing: boolean; + size: number[]; + suspended: boolean; + ui: DefaultUI; + width: number; + } + + interface DOMContainerConstructor { + new(): DOMContainer; + } + + export const DOMContainer: DOMContainerConstructor; + + interface DOMContainerProperties { + container?: HTMLDivElement | string; + height?: number; + popup?: PopupProperties; + resizing?: boolean; + size?: number[]; + suspended?: boolean; + ui?: DefaultUIProperties; + width?: number; + } + + interface CSVLayerView extends LayerView { + highlight(target?: Graphic | Graphic[]): any; + queryExtent(params?: Query): IPromise; + queryFeatureCount(params?: Query): IPromise; + queryFeatures(params?: Query): IPromise; + queryObjectIds(params?: Query): IPromise; + } + + interface CSVLayerViewConstructor { + new(properties?: CSVLayerViewProperties): CSVLayerView; + } + + export const CSVLayerView: CSVLayerViewConstructor; + + interface CSVLayerViewProperties extends LayerViewProperties { + + } + + interface FeatureLayerView extends LayerView { + highlight(target?: Graphic | Graphic[] | number | number[]): any; + queryExtent(params?: Query): IPromise; + queryFeatureCount(params?: Query): IPromise; + queryFeatures(params?: Query): IPromise; + queryObjectIds(params?: Query): IPromise; + } + + interface FeatureLayerViewConstructor { + new(properties?: FeatureLayerViewProperties): FeatureLayerView; + } + + export const FeatureLayerView: FeatureLayerViewConstructor; + + interface FeatureLayerViewProperties extends LayerViewProperties { + + } + + interface GraphicsLayerView extends LayerView { + highlight(target?: Graphic | Graphic[] | number | number[]): any; + queryGraphics(): IPromise; + } + + interface GraphicsLayerViewConstructor { + new(properties?: GraphicsLayerViewProperties): GraphicsLayerView; + } + + export const GraphicsLayerView: GraphicsLayerViewConstructor; + + interface GraphicsLayerViewProperties extends LayerViewProperties { + + } + + interface ImageryLayerView extends LayerView { + pixelData: ImageryLayerViewPixelData; + } + + interface ImageryLayerViewConstructor { + new(properties?: ImageryLayerViewProperties): ImageryLayerView; + } + + export const ImageryLayerView: ImageryLayerViewConstructor; + + interface ImageryLayerViewProperties extends LayerViewProperties { + pixelData?: ImageryLayerViewPixelData; + } + + export interface ImageryLayerViewPixelData { + extent?: Extent; + pixelBlock: PixelBlock; + } + + interface LayerView extends Accessor, corePromise { + layer: Layer; + suspended: boolean; + updating: boolean; + visible: boolean; + } + + interface LayerViewConstructor { + new(properties?: LayerViewProperties): LayerView; + } + + export const LayerView: LayerViewConstructor; + + interface LayerViewProperties { + layer?: LayerProperties; + suspended?: boolean; + updating?: boolean; + visible?: boolean; + } + + interface SceneLayerView extends LayerView { + highlight(target?: Graphic | Graphic[] | number | number[]): any; + queryExtent(params?: Query): IPromise; + queryFeatureCount(params?: Query): IPromise; + queryFeatures(params?: Query): IPromise; + queryObjectIds(params?: Query): IPromise; + } + + interface SceneLayerViewConstructor { + new(properties?: SceneLayerViewProperties): SceneLayerView; + } + + export const SceneLayerView: SceneLayerViewConstructor; + + interface SceneLayerViewProperties extends LayerViewProperties { + + } + + interface StreamLayerView extends LayerView, Evented { + connectionError: Error; + connectionStatus: string; + filter: StreamLayerViewFilter; + graphics: Collection; + + connect(): IPromise; + disconnect(): void; + updateFilter(filter: StreamLayerViewUpdateFilterFilter): IPromise; + + on(name: "data-received", eventHandler: StreamLayerViewDataReceivedEventHandler): IHandle; + on(name: "data-received", modifiers: string[], eventHandler: StreamLayerViewDataReceivedEventHandler): IHandle; + } + + interface StreamLayerViewConstructor { + new(properties?: StreamLayerViewProperties): StreamLayerView; + } + + export const StreamLayerView: StreamLayerViewConstructor; + + interface StreamLayerViewProperties extends LayerViewProperties { + connectionError?: Error; + connectionStatus?: string; + filter?: StreamLayerViewFilter; + graphics?: CollectionProperties; + } + + export interface StreamLayerViewDataReceivedEvent { + } + + export interface StreamLayerViewFilter { + geometry?: Extent; + where?: string; + } + + export interface StreamLayerViewUpdateFilterFilter { + geometry?: Extent; + where?: string; + } + + interface MapView extends View, BreakpointsOwner { center: Point; constraints: MapViewConstraints; extent: Extent; + highlightOptions: MapViewHighlightOptions; resizeAlign: string; rotation: number; scale: number; viewpoint: Viewpoint; zoom: number; - goTo(target: number[] | Geometry | Geometry[] | Graphic | Graphic[] | Viewpoint | any, options?: MapViewGoToOptions): IPromise; + focus(): void; + goTo(target: number[] | Geometry | Geometry[] | Graphic | Graphic[] | Viewpoint | MapViewGoToTarget, options?: MapViewGoToOptions): IPromise; hasEventListener(type: string): boolean; - hitTest(screenPoint: MapViewHitTestScreenPoint): IPromise; + hitTest(screenPoint: MapViewHitTestScreenPoint): IPromise; on(type: string | string[], modifiersOrHandler: string[] | EventHandler, handler?: EventHandler): IHandle; toMap(screenPoint: MapViewToMapScreenPoint): Point; toScreen(point: Point, screenPoint?: ScreenPoint): ScreenPoint; @@ -7362,10 +8678,11 @@ declare namespace __esri { export const MapView: MapViewConstructor; - interface MapViewProperties extends ViewProperties { + interface MapViewProperties extends ViewProperties, BreakpointsOwnerProperties { center?: PointProperties; constraints?: MapViewConstraints; extent?: ExtentProperties; + highlightOptions?: MapViewHighlightOptions; resizeAlign?: string; rotation?: number; scale?: number; @@ -7373,7 +8690,185 @@ declare namespace __esri { zoom?: number; } - interface SceneView extends View { + export interface MapViewClickEvent { + button: number; + mapPoint: Point; + native: any; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface MapViewDoubleClickEvent { + button: number; + mapPoint: Point; + native: any; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface MapViewDragEvent { + action: string; + native: any; + origin: MapViewDragEventOrigin; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface HitTestResult { + results: HitTestResultResults[]; + } + + export interface MapViewHoldEvent { + button: number; + mapPoint: Point; + native: any; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface MapViewKeyDownEvent { + key: string; + native: any; + repeat: boolean; + stopPropagation: Function; + timestamp: number; + type: string; + } + + export interface MapViewKeyUpEvent { + native: any; + stopPropagation: Function; + timestamp: number; + type: string; + } + + export interface MapViewLayerviewCreateEvent { + layer: Layer; + layerView: LayerView; + } + + export interface MapViewLayerviewDestroyEvent { + layer: Layer; + layerView: LayerView; + } + + export interface MapViewConstraints { + lods?: LOD[]; + minScale?: number; + maxScale?: number; + minZoom?: number; + maxZoom?: number; + snapToZoom?: boolean; + rotationEnabled?: boolean; + effectiveLODs?: LOD[]; + effectiveMinZoom?: number; + effectiveMaxZoom?: number; + effectiveMinScale?: number; + effectiveMaxScale?: number; + } + + export interface MapViewGoToOptions { + animate?: boolean; + duration?: number; + easing?: string | Function; + } + + export interface MapViewGoToTarget { + target?: number[] | Geometry | Geometry[] | Graphic | Graphic[] | Viewpoint; + center?: number[]; + scale?: number; + zoom?: number; + } + + export interface MapViewHighlightOptions { + color?: Color; + haloOpacity?: number; + fillOpacity?: number; + } + + export interface MapViewHitTestScreenPoint { + x: number; + y: number; + } + + export interface MapViewToMapScreenPoint { + x: number; + y: number; + } + + export interface MapViewMouseWheelEvent { + deltaY: number; + native: any; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface MapViewPointerDownEvent { + native: any; + pointerId: number; + pointerType: string; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface MapViewPointerMoveEvent { + native: any; + pointerId: number; + pointerType: string; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface MapViewPointerUpEvent { + native: any; + pointerId: number; + pointerType: string; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface MapViewResizeEvent { + height: number; + oldHeight: number; + oldWidth: number; + width: number; + } + + export interface MapViewDragEventOrigin { + x: number; + y: number; + } + + export interface HitTestResultResults { + graphic: Graphic; + mapPoint: Point; + } + + interface SceneView extends View, BreakpointsOwner { camera: Camera; center: Point; clippingArea: Extent; @@ -7387,9 +8882,10 @@ declare namespace __esri { viewpoint: Viewpoint; zoom: number; - goTo(target: number[] | Geometry | Geometry[] | Graphic | Graphic[] | Viewpoint | Camera | any, options?: SceneViewGoToOptions): IPromise; + focus(): void; + goTo(target: number[] | Geometry | Geometry[] | Graphic | Graphic[] | Viewpoint | Camera | SceneViewGoToTarget, options?: SceneViewGoToOptions): IPromise; hasEventListener(type: string): boolean; - hitTest(screenPoint: SceneViewHitTestScreenPoint): IPromise; + hitTest(screenPoint: SceneViewHitTestScreenPoint): IPromise; on(type: string | string[], modifiersOrHandler: string[] | EventHandler, handler?: EventHandler): IHandle; toMap(screenPoint: SceneViewToMapScreenPoint, mapPoint?: Point): Point; toScreen(point: Point, screenPoint?: ScreenPoint): ScreenPoint; @@ -7428,7 +8924,7 @@ declare namespace __esri { export const SceneView: SceneViewConstructor; - interface SceneViewProperties extends ViewProperties { + interface SceneViewProperties extends ViewProperties, BreakpointsOwnerProperties { camera?: CameraProperties; center?: PointProperties; clippingArea?: ExtentProperties; @@ -7443,12 +8939,318 @@ declare namespace __esri { zoom?: number; } - interface View extends Accessor, corePromise, BreakpointsOwner, DOMContainer { - allLayerViews: Collection; + export interface SceneViewClickEvent { + button: number; + mapPoint: Point; + native: any; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface SceneViewDoubleClickEvent { + button: number; + mapPoint: Point; + native: any; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface SceneViewDragEvent { + action: string; + native: any; + origin: SceneViewDragEventOrigin; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export type EasingFunction = (t: number, duration: number) => number; + + export interface SceneViewHitTestResult { + results: SceneViewHitTestResultResults[]; + } + + export interface SceneViewHoldEvent { + button: number; + mapPoint: Point; + native: any; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface SceneViewKeyDownEvent { + key: string; + native: any; + repeat: boolean; + stopPropagation: Function; + timestamp: number; + type: string; + } + + export interface SceneViewKeyUpEvent { + native: any; + stopPropagation: Function; + timestamp: number; + type: string; + } + + export interface SceneViewLayerviewCreateEvent { + layer: Layer; + layerView: LayerView; + } + + export interface SceneViewLayerviewDestroyEvent { + layer: Layer; + layerView: LayerView; + } + + export interface SceneViewMouseWheelEvent { + deltaY: number; + native: any; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface SceneViewPointerDownEvent { + native: any; + pointerId: number; + pointerType: string; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface SceneViewPointerMoveEvent { + native: any; + pointerId: number; + pointerType: string; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface SceneViewPointerUpEvent { + native: any; + pointerId: number; + pointerType: string; + stopPropagation: Function; + timestamp: number; + type: string; + x: number; + y: number; + } + + export interface SceneViewResizeEvent { + height: number; + oldHeight: number; + oldWidth: number; + width: number; + } + + export interface SceneViewConstraintsProperties { + altitude?: SceneViewConstraintsAltitudeProperties; + clipDistance?: SceneViewConstraintsClipDistanceProperties; + collision?: SceneViewConstraintsCollision; + tilt?: SceneViewConstraintsTiltProperties; + } + export interface SceneViewConstraints extends Accessor { + altitude?: SceneViewConstraintsAltitude; + clipDistance?: SceneViewConstraintsClipDistance; + collision?: SceneViewConstraintsCollision; + tilt?: SceneViewConstraintsTilt; + } + + export interface SceneViewConstraintsAltitudeProperties { + min?: number; + max?: number; + } + export interface SceneViewConstraintsAltitude extends Accessor { + min?: number; + max?: number; + } + + export interface SceneViewConstraintsClipDistanceProperties { + near?: number; + far?: number; + mode?: string; + } + export interface SceneViewConstraintsClipDistance extends Accessor { + near?: number; + far?: number; + mode?: string; + } + + export interface SceneViewConstraintsCollision { + enabled?: boolean; + } + + export interface SceneViewConstraintsTiltProperties { + max?: number; + mode?: string; + } + export interface SceneViewConstraintsTilt extends Accessor { + max?: number; + mode?: string; + } + + export interface SceneViewEnvironmentProperties { + lighting?: SceneViewEnvironmentLightingProperties; + atmosphereEnabled?: boolean; + atmosphere?: SceneViewEnvironmentAtmosphereProperties; + starsEnabled?: boolean; + } + export interface SceneViewEnvironment extends Accessor { + lighting?: SceneViewEnvironmentLighting; + atmosphereEnabled?: boolean; + atmosphere?: SceneViewEnvironmentAtmosphere; + starsEnabled?: boolean; + } + + export interface SceneViewEnvironmentAtmosphereProperties { + quality?: string; + } + export interface SceneViewEnvironmentAtmosphere extends Accessor { + quality?: string; + } + + export interface SceneViewEnvironmentLightingProperties { + date?: DateProperties; + directShadowsEnabled?: boolean; + ambientOcclusionEnabled?: boolean; + cameraTrackingEnabled?: boolean; + } + export interface SceneViewEnvironmentLighting extends Accessor { + date?: Date; + directShadowsEnabled?: boolean; + ambientOcclusionEnabled?: boolean; + cameraTrackingEnabled?: boolean; + } + + export interface SceneViewGoToOptions { + animate?: boolean; + speedFactor?: number; + duration?: number; + maxDuration?: number; + easing?: string | EasingFunction; + } + + export interface SceneViewGoToTarget { + target?: number[] | Geometry | Geometry[] | Graphic | Graphic[] | Viewpoint | Camera; + center?: number[]; + scale?: number; + zoom?: number; + heading?: number; + tilt?: number; + position?: number; + } + + export interface SceneViewHighlightOptions { + color?: Color; + haloOpacity?: number; + fillOpacity?: number; + } + + export interface SceneViewHitTestScreenPoint { + x: number; + y: number; + } + + export interface SceneViewToMapScreenPoint { + x: number; + y: number; + } + + export interface SceneViewDragEventOrigin { + x: number; + y: number; + } + + export interface SceneViewHitTestResultResults { + graphic: Graphic; + mapPoint: Point; + } + + interface DefaultUI extends UI { + components: string[]; + } + + interface DefaultUIConstructor { + new(properties?: DefaultUIProperties): DefaultUI; + } + + export const DefaultUI: DefaultUIConstructor; + + interface DefaultUIProperties extends UIProperties { + components?: string[]; + } + + interface UI extends Accessor { + container: HTMLElement; + height: number; + padding: any | number; + view: MapView | SceneView; + width: number; + + add(component: Widget | HTMLElement | string | any[] | UIAddComponent, position?: string | UIAddPosition): void; + empty(position?: string): void; + move(component: Widget | HTMLElement | string | any[] | UIMoveComponent, position?: string): void; + remove(component: Widget | HTMLElement | string | any[]): void; + } + + interface UIConstructor { + new(properties?: UIProperties): UI; + } + + export const UI: UIConstructor; + + interface UIProperties { + container?: HTMLElement; + height?: number; + padding?: any | number; + view?: MapViewProperties | SceneViewProperties; + width?: number; + } + + export interface UIAddComponent { + component: Widget | HTMLElement | string; + position?: string; + index?: number; + } + + export interface UIAddPosition { + position?: string; + index: number; + } + + export interface UIMoveComponent { + component: Widget | HTMLElement | string; + position?: string; + } + + interface View extends Accessor, corePromise, DOMContainer { + allLayerViews: Collection; animation: ViewAnimation; - graphics: Collection; + graphics: Collection; interacting: boolean; - layerViews: Collection; + layerViews: Collection; map: Map; padding: ViewPadding; ready: boolean; @@ -7457,7 +9259,7 @@ declare namespace __esri { type: string; updating: boolean; - whenLayerView(layer: Layer): IPromise; + whenLayerView(layer: Layer): IPromise; } interface ViewConstructor { @@ -7466,12 +9268,12 @@ declare namespace __esri { export const View: ViewConstructor; - interface ViewProperties extends BreakpointsOwnerProperties, DOMContainerProperties { - allLayerViews?: Collection | any[]; + interface ViewProperties extends DOMContainerProperties { + allLayerViews?: CollectionProperties; animation?: ViewAnimationProperties; - graphics?: Collection | any[]; + graphics?: CollectionProperties; interacting?: boolean; - layerViews?: Collection | any[]; + layerViews?: CollectionProperties; map?: MapProperties; padding?: ViewPadding; ready?: boolean; @@ -7481,6 +9283,13 @@ declare namespace __esri { updating?: boolean; } + export interface ViewPadding { + left?: number; + top?: number; + right?: number; + bottom?: number; + } + interface ViewAnimation extends Accessor, corePromise { state: string; target: Viewpoint; @@ -7500,182 +9309,47 @@ declare namespace __esri { target?: ViewpointProperties; } - interface LayerView extends Accessor, corePromise { - layer: Layer; - suspended: boolean; - updating: boolean; - visible: boolean; + interface WebMap extends Map, corePromise { + applicationProperties: any; + bookmarks: any[]; + initialViewProperties: InitialViewProperties; + loaded: boolean; + loadError: Error; + loadStatus: string; + portalItem: PortalItem; + presentation: any; + sourceVersion: WebMapSourceVersion; + tables: any[]; + widgets: any; + + load(): IPromise; } - interface LayerViewConstructor { - new(properties?: LayerViewProperties): LayerView; + interface WebMapConstructor { + new(properties?: WebMapProperties): WebMap; } - export const LayerView: LayerViewConstructor; + export const WebMap: WebMapConstructor; - interface LayerViewProperties { - layer?: LayerProperties; - suspended?: boolean; - updating?: boolean; - visible?: boolean; - } - - interface CSVLayerView extends LayerView { - highlight(target?: Graphic | Graphic[]): any; - queryExtent(params?: Query): IPromise; - queryFeatureCount(params?: Query): IPromise; - queryFeatures(params?: Query): IPromise; - queryObjectIds(params?: Query): IPromise; - } - - interface CSVLayerViewConstructor { - new(properties?: CSVLayerViewProperties): CSVLayerView; - } - - export const CSVLayerView: CSVLayerViewConstructor; - - interface CSVLayerViewProperties extends LayerViewProperties { - - } - - interface FeatureLayerView extends LayerView { - highlight(target?: Graphic | Graphic[] | number | number[]): any; - queryExtent(params?: Query): IPromise; - queryFeatureCount(params?: Query): IPromise; - queryFeatures(params?: Query): IPromise; - queryObjectIds(params?: Query): IPromise; - } - - interface FeatureLayerViewConstructor { - new(properties?: FeatureLayerViewProperties): FeatureLayerView; - } - - export const FeatureLayerView: FeatureLayerViewConstructor; - - interface FeatureLayerViewProperties extends LayerViewProperties { - - } - - interface GraphicsLayerView extends LayerView { - highlight(target?: Graphic | Graphic[] | number | number[]): any; - queryGraphics(): IPromise; - } - - interface GraphicsLayerViewConstructor { - new(properties?: GraphicsLayerViewProperties): GraphicsLayerView; - } - - export const GraphicsLayerView: GraphicsLayerViewConstructor; - - interface GraphicsLayerViewProperties extends LayerViewProperties { - - } - - interface ImageryLayerView extends LayerView { - pixelData: ImageryLayerViewPixelData; - } - - interface ImageryLayerViewConstructor { - new(properties?: ImageryLayerViewProperties): ImageryLayerView; - } - - export const ImageryLayerView: ImageryLayerViewConstructor; - - interface ImageryLayerViewProperties extends LayerViewProperties { - pixelData?: ImageryLayerViewPixelData; - } - - interface SceneLayerView extends LayerView { - highlight(target?: Graphic | Graphic[] | number | number[]): any; - queryExtent(params?: Query): IPromise; - queryFeatureCount(params?: Query): IPromise; - queryFeatures(params?: Query): IPromise; - queryObjectIds(params?: Query): IPromise; - } - - interface SceneLayerViewConstructor { - new(properties?: SceneLayerViewProperties): SceneLayerView; - } - - export const SceneLayerView: SceneLayerViewConstructor; - - interface SceneLayerViewProperties extends LayerViewProperties { - - } - - interface StreamLayerView extends Accessor, Evented { - connectionError: Error; - connectionStatus: string; - filter: StreamLayerViewFilter; - graphics: Collection; - - connect(): IPromise; - disconnect(): void; - updateFilter(filter: StreamLayerViewUpdateFilterFilter): IPromise; - - on(name: "data-received", eventHandler: StreamLayerViewDataReceivedEventHandler): IHandle; - on(name: "data-received", modifiers: string[], eventHandler: StreamLayerViewDataReceivedEventHandler): IHandle; - } - - interface StreamLayerViewConstructor { - new(properties?: StreamLayerViewProperties): StreamLayerView; - } - - export const StreamLayerView: StreamLayerViewConstructor; - - interface StreamLayerViewProperties { - connectionError?: Error; - connectionStatus?: string; - filter?: StreamLayerViewFilter; - graphics?: Collection | any[]; - } - - interface UI extends Accessor { - container: any; - height: number; - padding: any; - view: MapView | SceneView; - width: number; - - add(component: Widget | any | string | any | any, position?: string | any): void; - empty(position?: string): void; - move(component: Widget | any | string | any | any, position?: string): void; - remove(component: any | any[]): void; - } - - interface UIConstructor { - new(properties?: UIProperties): UI; - } - - export const UI: UIConstructor; - - interface UIProperties { - container?: any; - height?: number; - padding?: any | number; - view?: MapView | SceneView; - width?: number; - } - - interface DefaultUI extends UI { - components: string[]; - } - - interface DefaultUIConstructor { - new(properties?: DefaultUIProperties): DefaultUI; - } - - export const DefaultUI: DefaultUIConstructor; - - interface DefaultUIProperties extends UIProperties { - components?: string[]; + interface WebMapProperties extends MapProperties { + applicationProperties?: any; + bookmarks?: any[]; + initialViewProperties?: InitialViewPropertiesProperties; + loaded?: boolean; + loadError?: Error; + loadStatus?: string; + portalItem?: PortalItemProperties; + presentation?: any; + sourceVersion?: WebMapSourceVersion; + tables?: any[]; + widgets?: any; } interface InitialViewProperties extends Accessor, corePromise { spatialReference: SpatialReference; viewpoint: Viewpoint; - clone(): this; + clone(): InitialViewProperties; } interface InitialViewPropertiesConstructor { @@ -7689,10 +9363,56 @@ declare namespace __esri { viewpoint?: ViewpointProperties; } + export interface WebMapSourceVersion { + major: number; + minor: number; + } + + interface WebScene extends Map, corePromise { + clippingArea: Extent; + clippingEnabled: boolean; + heightModelInfo: HeightModelInfo; + initialViewProperties: websceneInitialViewProperties; + loaded: boolean; + loadError: Error; + loadStatus: string; + portalItem: PortalItem; + presentation: Presentation; + sourceVersion: WebSceneSourceVersion; + + load(): IPromise; + save(options?: WebSceneSaveOptions): IPromise; + saveAs(portalItem: PortalItem, options?: WebSceneSaveAsOptions): IPromise; + toJSON(): any; + updateFrom(view: SceneView, options?: WebSceneUpdateFromOptions): void; + } + + interface WebSceneConstructor { + new(properties?: WebSceneProperties): WebScene; + + + fromJSON(json: any): any; + } + + export const WebScene: WebSceneConstructor; + + interface WebSceneProperties extends MapProperties { + clippingArea?: ExtentProperties; + clippingEnabled?: boolean; + heightModelInfo?: HeightModelInfoProperties; + initialViewProperties?: websceneInitialViewPropertiesProperties; + loaded?: boolean; + loadError?: Error; + loadStatus?: string; + portalItem?: PortalItemProperties; + presentation?: PresentationProperties; + sourceVersion?: WebSceneSourceVersion; + } + interface Environment extends Accessor { lighting: Lighting; - clone(): this; + clone(): Environment; } interface EnvironmentConstructor { @@ -7711,7 +9431,7 @@ declare namespace __esri { viewingMode: string; viewpoint: Viewpoint; - clone(): this; + clone(): websceneInitialViewProperties; } interface websceneInitialViewPropertiesConstructor { @@ -7732,7 +9452,7 @@ declare namespace __esri { directShadowsEnabled: boolean; displayUTCOffset: number; - clone(): this; + clone(): Lighting; } interface LightingConstructor { @@ -7742,15 +9462,15 @@ declare namespace __esri { export const Lighting: LightingConstructor; interface LightingProperties { - date?: Date; + date?: DateProperties; directShadowsEnabled?: boolean; displayUTCOffset?: number; } interface Presentation extends Accessor { - slides: Collection; + slides: Collection; - clone(): this; + clone(): Presentation; } interface PresentationConstructor { @@ -7760,42 +9480,119 @@ declare namespace __esri { export const Presentation: PresentationConstructor; interface PresentationProperties { - slides?: Collection | any[]; + slides?: CollectionProperties; } interface Slide extends Accessor { - basemap: Basemap; + basemap: Basemap | string; description: SlideDescription; environment: Environment; id: string; thumbnail: SlideThumbnail; title: SlideTitle; viewpoint: Viewpoint; - visibleLayers: SlideVisibleLayers; + visibleLayers: Collection; - applyTo(view: SceneView, options?: SlideApplyToOptions): IPromise; - clone(): this; - updateFrom(view: SceneView, options?: SlideUpdateFromOptions): IPromise; + applyTo(view: SceneView, options?: SlideApplyToOptions): IPromise; + clone(): Slide; + updateFrom(view: SceneView, options?: SlideUpdateFromOptions): IPromise; } interface SlideConstructor { new(properties?: SlideProperties): Slide; - createFrom(view: SceneView, options?: SlideCreateFromOptions): IPromise; + createFrom(view: SceneView, options?: SlideCreateFromOptions): IPromise; } export const Slide: SlideConstructor; interface SlideProperties { - basemap?: Basemap | string; + basemap?: BasemapProperties | string; description?: SlideDescriptionProperties; environment?: EnvironmentProperties; id?: string; thumbnail?: SlideThumbnailProperties; title?: SlideTitleProperties; viewpoint?: ViewpointProperties; - visibleLayers?: SlideVisibleLayers; + visibleLayers?: CollectionProperties; + } + + export interface SlideApplyToOptions { + animate: boolean; + speedFactor?: number; + duration?: number; + maxDuration?: number; + easing?: string | EasingFunction; + } + + export interface SlideCreateFromOptions { + screenshot: SlideCreateFromOptionsScreenshot; + } + + export interface SlideCreateFromOptionsScreenshot { + format: string; + quality: number; + width: number; + height: number; + } + + export interface SlideDescriptionProperties { + text?: string; + } + export interface SlideDescription extends Accessor { + text?: string; + } + + export interface SlideThumbnailProperties { + url?: string; + } + export interface SlideThumbnail extends Accessor { + url?: string; + } + + export interface SlideTitleProperties { + text?: string; + } + export interface SlideTitle extends Accessor { + text?: string; + } + + export interface SlideUpdateFromOptions { + screenshot: SlideUpdateFromOptionsScreenshot; + } + + export interface SlideUpdateFromOptionsScreenshot { + format: string; + quality: number; + width: number; + height: number; + } + + export interface SlideVisibleLayersProperties { + id?: string; + } + export interface SlideVisibleLayers extends Accessor { + id: string; + } + + export interface WebSceneSaveAsOptions { + folder?: PortalFolder; + ignoreUnsupported?: boolean; + } + + export interface WebSceneSaveOptions { + ignoreUnsupported?: boolean; + } + + export interface WebSceneSourceVersion { + major: number; + minor: number; + } + + export interface WebSceneUpdateFromOptions { + environmentExcluded?: boolean; + viewpointExcluded?: boolean; } interface Attribution extends Widget { @@ -7812,10 +9609,23 @@ declare namespace __esri { export const Attribution: AttributionConstructor; interface AttributionProperties extends WidgetProperties { - view?: MapView | SceneView; + view?: MapViewProperties | SceneViewProperties; viewModel?: AttributionViewModel; } + interface AttributionViewModel { + attributionText: string; + itemDelimiter: string; + state: string; + view: MapView | SceneView; + } + + interface AttributionViewModelConstructor { + new(properties?: any): AttributionViewModel; + } + + export const AttributionViewModel: AttributionViewModelConstructor; + interface BasemapGallery extends Widget { activeBasemap: Basemap; source: LocalBasemapsSource | PortalBasemapsSource; @@ -7834,13 +9644,63 @@ declare namespace __esri { interface BasemapGalleryProperties extends WidgetProperties { activeBasemap?: BasemapProperties; source?: LocalBasemapsSource | PortalBasemapsSource; - view?: MapView | SceneView; + view?: MapViewProperties | SceneViewProperties; viewModel?: BasemapGalleryViewModelProperties; } + interface BasemapGalleryItem { + basemap: Basemap; + error: Error; + state: string; + view: MapView | SceneView; + } + + export const BasemapGalleryItem: BasemapGalleryItem; + + interface BasemapGalleryViewModel extends Accessor { + activeBasemap: Basemap; + items: Collection; + source: LocalBasemapsSource | PortalBasemapsSource; + state: string; + view: MapView | SceneView; + + basemapEquals(basemap1: Basemap, basemap2: Basemap): boolean; + } + + interface BasemapGalleryViewModelConstructor { + new(properties?: BasemapGalleryViewModelProperties): BasemapGalleryViewModel; + } + + export const BasemapGalleryViewModel: BasemapGalleryViewModelConstructor; + + interface BasemapGalleryViewModelProperties { + activeBasemap?: BasemapProperties; + items?: CollectionProperties; + source?: LocalBasemapsSource | PortalBasemapsSource; + state?: string; + view?: MapViewProperties | SceneViewProperties; + } + + interface LocalBasemapsSource { + basemaps: Collection; + state: string; + } + + export const LocalBasemapsSource: LocalBasemapsSource; + + interface PortalBasemapsSource { + basemaps: Collection; + filterFunction: Function; + portal: Portal; + query: any | string; + state: string; + } + + export const PortalBasemapsSource: PortalBasemapsSource; + interface BasemapToggle extends Widget { activeBasemap: Basemap; - nextBasemap: Basemap; + nextBasemap: Basemap | string; titleVisible: boolean; view: MapView | SceneView; viewModel: BasemapToggleViewModel; @@ -7857,27 +9717,52 @@ declare namespace __esri { interface BasemapToggleProperties extends WidgetProperties { activeBasemap?: BasemapProperties; - nextBasemap?: Basemap | string; + nextBasemap?: BasemapProperties | string; titleVisible?: boolean; - view?: MapView | SceneView; + view?: MapViewProperties | SceneViewProperties; viewModel?: BasemapToggleViewModelProperties; } + interface BasemapToggleViewModel extends Accessor, Evented { + activeBasemap: Basemap; + nextBasemap: Basemap | string; + state: string; + view: MapView | SceneView; + + toggle(): void; + } + + interface BasemapToggleViewModelConstructor { + new(properties?: BasemapToggleViewModelProperties): BasemapToggleViewModel; + + + getThumbnailUrl(basemap: Basemap): string; + } + + export const BasemapToggleViewModel: BasemapToggleViewModelConstructor; + + interface BasemapToggleViewModelProperties { + activeBasemap?: BasemapProperties; + nextBasemap?: BasemapProperties | string; + state?: string; + view?: MapViewProperties | SceneViewProperties; + } + interface ColorSlider extends Accessor, Widgette { handlesVisible: boolean; - histogram: any; + histogram: HistogramResult; histogramVisible: boolean; histogramWidth: number; labelsVisible: boolean; maxValue: number; minValue: number; numHandles: number; - statistics: any; + statistics: ColorSliderStatistics; statisticsVisible: boolean; syncedHandles: boolean; ticksVisible: boolean; values: ColorSliderValues[]; - visualVariable: any; + visualVariable: ColorVisualVariable; } interface ColorSliderConstructor { @@ -7888,19 +9773,32 @@ declare namespace __esri { interface ColorSliderProperties extends WidgetteProperties { handlesVisible?: boolean; - histogram?: any; + histogram?: HistogramResult; histogramVisible?: boolean; histogramWidth?: number; labelsVisible?: boolean; maxValue?: number; minValue?: number; numHandles?: number; - statistics?: any; + statistics?: ColorSliderStatistics; statisticsVisible?: boolean; syncedHandles?: boolean; ticksVisible?: boolean; values?: ColorSliderValues[]; - visualVariable?: any; + visualVariable?: ColorVisualVariable; + } + + export interface ColorSliderStatistics { + avg: number; + max: number; + min: number; + stddev: number; + } + + export interface ColorSliderValues { + color: Color; + value: number; + label: string; } interface Compass extends Widget { @@ -7918,15 +9816,35 @@ declare namespace __esri { export const Compass: CompassConstructor; interface CompassProperties extends WidgetProperties { - view?: MapView | SceneView; + view?: MapViewProperties | SceneViewProperties; viewModel?: CompassViewModelProperties; } + interface CompassViewModel extends Accessor { + orientation: any; + state: string; + view: MapView | SceneView; + + reset(): void; + } + + interface CompassViewModelConstructor { + new(properties?: CompassViewModelProperties): CompassViewModel; + } + + export const CompassViewModel: CompassViewModelConstructor; + + interface CompassViewModelProperties { + orientation?: any; + state?: string; + view?: MapViewProperties | SceneViewProperties; + } + interface Expand extends Widget { autoCollapse: boolean; collapseIconClass: string; collapseTooltip: string; - content: any; + content: Node | string | Widget; expanded: boolean; expandIconClass: string; expandTooltip: string; @@ -7950,15 +9868,35 @@ declare namespace __esri { autoCollapse?: boolean; collapseIconClass?: string; collapseTooltip?: string; - content?: any | string | Widget; + content?: Node | string | WidgetProperties; expanded?: boolean; expandIconClass?: string; expandTooltip?: string; iconNumber?: string; - view?: MapView | SceneView; + view?: MapViewProperties | SceneViewProperties; viewModel?: ExpandViewModelProperties; } + interface ExpandViewModel extends Accessor { + autoCollapse: boolean; + expanded: boolean; + state: string; + view: MapView | SceneView; + } + + interface ExpandViewModelConstructor { + new(properties?: ExpandViewModelProperties): ExpandViewModel; + } + + export const ExpandViewModel: ExpandViewModelConstructor; + + interface ExpandViewModelProperties { + autoCollapse?: boolean; + expanded?: boolean; + state?: string; + view?: MapViewProperties | SceneViewProperties; + } + interface Home extends Widget { view: MapView | SceneView; viewModel: HomeViewModel; @@ -7975,15 +9913,36 @@ declare namespace __esri { export const Home: HomeConstructor; interface HomeProperties extends WidgetProperties { - view?: MapView | SceneView; + view?: MapViewProperties | SceneViewProperties; viewModel?: HomeViewModelProperties; viewpoint?: ViewpointProperties; } + interface HomeViewModel extends Accessor, Evented { + state: string; + view: MapView | SceneView; + viewpoint: Viewpoint; + + go(): void; + } + + interface HomeViewModelConstructor { + new(properties?: HomeViewModelProperties): HomeViewModel; + } + + export const HomeViewModel: HomeViewModelConstructor; + + interface HomeViewModelProperties { + state?: string; + view?: MapViewProperties | SceneViewProperties; + viewpoint?: ViewpointProperties; + } + interface LayerList extends Widget { createActionsFunction: Function; listItemCreatedFunction: Function; - operationalItems: Collection; + operationalItems: Collection; + statusIndicatorsVisible: boolean; view: MapView | SceneView; viewModel: LayerListViewModel; @@ -8000,11 +9959,61 @@ declare namespace __esri { interface LayerListProperties extends WidgetProperties { createActionsFunction?: Function; listItemCreatedFunction?: Function; - operationalItems?: Collection | any[]; - view?: MapView | SceneView; + operationalItems?: CollectionProperties; + statusIndicatorsVisible?: boolean; + view?: MapViewProperties | SceneViewProperties; viewModel?: LayerListViewModelProperties; } + interface LayerListViewModel extends Accessor { + createActionsFunction: Function; + listItemCreatedFunction: Function; + operationalItems: Collection; + state: string; + view: MapView | SceneView; + + triggerAction(action: Action, item: ListItem): void; + } + + interface LayerListViewModelConstructor { + new(properties?: LayerListViewModelProperties): LayerListViewModel; + } + + export const LayerListViewModel: LayerListViewModelConstructor; + + interface LayerListViewModelProperties { + createActionsFunction?: Function; + listItemCreatedFunction?: Function; + operationalItems?: CollectionProperties; + state?: string; + view?: MapViewProperties | SceneViewProperties; + } + + interface ListItem { + actionsOpen: boolean; + actionsSections: Collection>; + children: Collection; + error: Error; + layer: Layer; + layerView: LayerView; + open: boolean; + parent: ListItem; + title: string; + updating: boolean; + view: MapView | SceneView; + visibilityMode: string; + visible: boolean; + visibleAtCurrentScale: boolean; + + clone(): ListItem; + } + + interface ListItemConstructor { + new(): ListItem; + } + + export const ListItem: ListItemConstructor; + interface Legend extends Widget { layerInfos: LegendLayerInfos[]; view: MapView | SceneView; @@ -8020,7 +10029,12 @@ declare namespace __esri { interface LegendProperties extends WidgetProperties { layerInfos?: LegendLayerInfos[]; - view?: MapView | SceneView; + view?: MapViewProperties | SceneViewProperties; + } + + export interface LegendLayerInfos { + title?: string; + layer: Layer; } interface Locate extends Widget { @@ -8044,10 +10058,26 @@ declare namespace __esri { geolocationOptions?: any; goToLocationEnabled?: boolean; graphic?: GraphicProperties; - view?: MapView | SceneView; + view?: MapViewProperties | SceneViewProperties; viewModel?: LocateViewModelProperties; } + interface LocateViewModel extends Accessor, Evented, GeolocationPositioning { + state: string; + + locate(): IPromise; + } + + interface LocateViewModelConstructor { + new(properties?: LocateViewModelProperties): LocateViewModel; + } + + export const LocateViewModel: LocateViewModelConstructor; + + interface LocateViewModelProperties extends GeolocationPositioningProperties { + state?: string; + } + interface NavigationToggle extends Widget { layout: string; view: SceneView; @@ -8069,9 +10099,31 @@ declare namespace __esri { viewModel?: NavigationToggleViewModelProperties; } - interface Popup extends Accessor, Widgette, Evented { - actions: Collection; - content: string; + interface NavigationToggleViewModel extends Accessor { + navigationMode: string; + state: string; + view: SceneView; + + toggle(): void; + } + + interface NavigationToggleViewModelConstructor { + new(properties?: NavigationToggleViewModelProperties): NavigationToggleViewModel; + } + + export const NavigationToggleViewModel: NavigationToggleViewModelConstructor; + + interface NavigationToggleViewModelProperties { + navigationMode?: string; + state?: string; + view?: SceneViewProperties; + } + + interface Popup extends Widget, Evented { + actions: Collection; + autoCloseEnabled: boolean; + collapsed: boolean; + content: string | Node; currentDockPosition: string; dockEnabled: boolean; dockOptions: PopupDockOptions; @@ -8085,12 +10137,14 @@ declare namespace __esri { title: string; view: MapView | SceneView; viewModel: PopupViewModel; + visible: boolean; clear(): void; close(): void; next(): PopupViewModel; open(options?: PopupOpenOptions): void; previous(): PopupViewModel; + render(): any; reposition(): void; triggerAction(actionIndex: number): void; } @@ -8101,9 +10155,11 @@ declare namespace __esri { export const Popup: PopupConstructor; - interface PopupProperties extends WidgetteProperties { - actions?: Collection | any[]; - content?: string | any; + interface PopupProperties extends WidgetProperties { + actions?: CollectionProperties; + autoCloseEnabled?: boolean; + collapsed?: boolean; + content?: string | Node; currentDockPosition?: string; dockEnabled?: boolean; dockOptions?: PopupDockOptions; @@ -8115,8 +10171,80 @@ declare namespace __esri { selectedFeature?: GraphicProperties; selectedFeatureIndex?: number; title?: string; - view?: MapView | SceneView; + view?: MapViewProperties | SceneViewProperties; viewModel?: PopupViewModelProperties; + visible?: boolean; + } + + interface PopupViewModel extends Accessor, Evented { + actions: Collection>; + autoCloseEnabled: boolean; + content: string | Node; + featureCount: number; + features: Graphic[]; + highlightEnabled: boolean; + location: Point; + pendingPromisesCount: number; + promiseCount: number; + promises: IPromise[]; + selectedFeature: Graphic; + selectedFeatureIndex: number; + state: string; + title: string; + view: MapView | SceneView; + visible: boolean; + + clear(): void; + next(): PopupViewModel; + previous(): PopupViewModel; + triggerAction(actionIndex: number): void; + } + + interface PopupViewModelConstructor { + new(properties?: PopupViewModelProperties): PopupViewModel; + } + + export const PopupViewModel: PopupViewModelConstructor; + + interface PopupViewModelProperties { + actions?: CollectionProperties>; + autoCloseEnabled?: boolean; + content?: string | Node; + featureCount?: number; + features?: GraphicProperties[]; + highlightEnabled?: boolean; + location?: PointProperties; + pendingPromisesCount?: number; + promiseCount?: number; + promises?: IPromise[]; + selectedFeature?: GraphicProperties; + selectedFeatureIndex?: number; + state?: string; + title?: string; + view?: MapViewProperties | SceneViewProperties; + visible?: boolean; + } + + export interface PopupDockOptions { + breakpoint?: boolean | PopupDockOptionsBreakpoint; + buttonEnabled?: boolean; + position?: string | Function; + } + + export interface PopupDockOptionsBreakpoint { + width?: number; + height?: number; + } + + export interface PopupOpenOptions { + title?: string; + content?: string; + location?: Geometry; + features?: Graphic[]; + promises?: IPromise[]; + featureMenuOpen?: boolean; + updateLocationEnabled?: boolean; + collapsed?: boolean; } interface Print extends Widget { @@ -8139,6 +10267,26 @@ declare namespace __esri { viewModel?: PrintViewModelProperties; } + interface PrintViewModel extends Accessor { + printServiceUrl: string; + updateDelay: number; + view: MapView; + + print(printTemplate: PrintTemplate): IPromise; + } + + interface PrintViewModelConstructor { + new(properties?: PrintViewModelProperties): PrintViewModel; + } + + export const PrintViewModel: PrintViewModelConstructor; + + interface PrintViewModelProperties { + printServiceUrl?: string; + updateDelay?: number; + view?: MapViewProperties; + } + interface ScaleBar extends Widget { style: string; unit: string; @@ -8161,12 +10309,26 @@ declare namespace __esri { viewModel?: ScaleBarViewModelProperties; } + interface ScaleBarViewModel extends Accessor { + view: MapView; + } + + interface ScaleBarViewModelConstructor { + new(properties?: ScaleBarViewModelProperties): ScaleBarViewModel; + } + + export const ScaleBarViewModel: ScaleBarViewModelConstructor; + + interface ScaleBarViewModelProperties { + view?: MapViewProperties; + } + interface Search extends Widget { activeSource: FeatureLayer | Locator; activeSourceIndex: number; allPlaceholder: string; autoSelect: boolean; - defaultSource: any | any; + defaultSource: LocatorSource | FeatureLayerSource; maxResults: number; maxSuggestions: number; minSuggestCharacters: number; @@ -8179,9 +10341,9 @@ declare namespace __esri { searchAllEnabled: boolean; searching: boolean; searchTerm: string; - selectedResult: any; - sources: Collection; - suggestions: any[]; + selectedResult: SearchResult; + sources: Collection; + suggestions: SuggestResult[]; suggestionsEnabled: boolean; view: MapView | SceneView; viewModel: SearchViewModel; @@ -8190,8 +10352,8 @@ declare namespace __esri { clear(): void; focus(): void; render(): any; - search(searchTerm?: string | Geometry | any | number[][]): IPromise; - suggest(value?: string): IPromise; + search(searchTerm?: string | Geometry | SuggestResult | number[][]): IPromise; + suggest(value?: string): IPromise; } interface SearchConstructor { @@ -8201,11 +10363,11 @@ declare namespace __esri { export const Search: SearchConstructor; interface SearchProperties extends WidgetProperties { - activeSource?: FeatureLayer | Locator; + activeSource?: FeatureLayerProperties | LocatorProperties; activeSourceIndex?: number; allPlaceholder?: string; autoSelect?: boolean; - defaultSource?: any | any; + defaultSource?: LocatorSource | FeatureLayerSource; maxResults?: number; maxSuggestions?: number; minSuggestCharacters?: number; @@ -8218,17 +10380,366 @@ declare namespace __esri { searchAllEnabled?: boolean; searching?: boolean; searchTerm?: string; - selectedResult?: any; - sources?: Collection | any[]; - suggestions?: any[]; + selectedResult?: SearchResult; + sources?: CollectionProperties; + suggestions?: SuggestResult[]; suggestionsEnabled?: boolean; - view?: MapView | SceneView; + view?: MapViewProperties | SceneViewProperties; viewModel?: SearchViewModelProperties; } + interface SearchViewModel extends Accessor, Evented { + activeSource: FeatureLayer | Locator; + activeSourceIndex: number; + allPlaceholder: string; + autoSelect: boolean; + defaultSource: SearchViewModelFeatureLayerSource | SearchViewModelLocatorSource; + maxInputLength: number; + maxResults: number; + maxSuggestions: number; + minSuggestCharacters: number; + placeholder: string; + popupEnabled: boolean; + popupOpenOnSelect: boolean; + popupTemplate: PopupTemplate; + resultGraphic: Graphic; + resultGraphicEnabled: boolean; + results: any[]; + searchAllEnabled: boolean; + searchTerm: string; + selectedResult: any; + sources: Collection; + suggestionDelay: number; + suggestions: SearchViewModelSuggestResult[]; + suggestionsEnabled: boolean; + view: MapView | SceneView; + + clear(): void; + search(searchTerm?: string | Geometry | SearchViewModelSuggestResult | number[][]): IPromise; + suggest(value?: string): IPromise; + + on(name: "search-clear", eventHandler: SearchViewModelSearchClearEventHandler): IHandle; + on(name: "search-clear", modifiers: string[], eventHandler: SearchViewModelSearchClearEventHandler): IHandle; + on(name: "search-start", eventHandler: SearchViewModelSearchStartEventHandler): IHandle; + on(name: "search-start", modifiers: string[], eventHandler: SearchViewModelSearchStartEventHandler): IHandle; + on(name: "suggest-start", eventHandler: SearchViewModelSuggestStartEventHandler): IHandle; + on(name: "suggest-start", modifiers: string[], eventHandler: SearchViewModelSuggestStartEventHandler): IHandle; + on(name: "load", eventHandler: SearchViewModelLoadEventHandler): IHandle; + on(name: "load", modifiers: string[], eventHandler: SearchViewModelLoadEventHandler): IHandle; + on(name: "search-complete", eventHandler: SearchViewModelSearchCompleteEventHandler): IHandle; + on(name: "search-complete", modifiers: string[], eventHandler: SearchViewModelSearchCompleteEventHandler): IHandle; + on(name: "select-result", eventHandler: SearchViewModelSelectResultEventHandler): IHandle; + on(name: "select-result", modifiers: string[], eventHandler: SearchViewModelSelectResultEventHandler): IHandle; + on(name: "suggest-complete", eventHandler: SearchViewModelSuggestCompleteEventHandler): IHandle; + on(name: "suggest-complete", modifiers: string[], eventHandler: SearchViewModelSuggestCompleteEventHandler): IHandle; + } + + interface SearchViewModelConstructor { + new(properties?: SearchViewModelProperties): SearchViewModel; + } + + export const SearchViewModel: SearchViewModelConstructor; + + interface SearchViewModelProperties { + activeSource?: FeatureLayerProperties | LocatorProperties; + activeSourceIndex?: number; + allPlaceholder?: string; + autoSelect?: boolean; + defaultSource?: SearchViewModelFeatureLayerSource | SearchViewModelLocatorSource; + maxInputLength?: number; + maxResults?: number; + maxSuggestions?: number; + minSuggestCharacters?: number; + placeholder?: string; + popupEnabled?: boolean; + popupOpenOnSelect?: boolean; + popupTemplate?: PopupTemplateProperties; + resultGraphic?: GraphicProperties; + resultGraphicEnabled?: boolean; + results?: any[]; + searchAllEnabled?: boolean; + searchTerm?: string; + selectedResult?: any; + sources?: CollectionProperties; + suggestionDelay?: number; + suggestions?: SearchViewModelSuggestResult[]; + suggestionsEnabled?: boolean; + view?: MapViewProperties | SceneViewProperties; + } + + export interface SearchViewModelFeatureLayerSource { + popup: Popup; + autoNavigate: boolean; + exactMatch: boolean; + featureLayer: FeatureLayer; + filter: SearchViewModelFeatureLayerSourceFilter; + maxResults: number; + maxSuggestions: number; + minSuggestCharacters: number; + name: string; + outFields: string[]; + placeholder: string; + displayField: string; + popupEnabled: boolean; + popupOpenOnSelect: boolean; + prefix: string; + resultGraphicEnabled: boolean; + resultSymbol: Symbol; + searchFields: string[]; + suffix: string; + suggestionsEnabled: boolean; + suggestionTemplate: string; + withinViewEnabled: boolean; + zoomScale: number; + } + + export interface SearchViewModelLoadEvent { + } + + export interface SearchViewModelLocatorSource { + placeholder: string; + autoNavigate: boolean; + countryCode: string; + filter: SearchViewModelLocatorSourceFilter; + localSearchOptions: SearchViewModelLocatorSourceLocalSearchOptions; + locationToAddressDistance: number; + locator: Locator; + maxResults: number; + maxSuggestions: number; + minSuggestCharacters: number; + name: string; + outFields: string[]; + categories: string[]; + popup: Popup; + popupEnabled: boolean; + popupOpenOnSelect: boolean; + prefix: string; + resultGraphicEnabled: boolean; + resultSymbol: Symbol; + searchTemplate: string; + singleLineFieldName: string; + suggestionsEnabled: boolean; + suffix: string; + withinViewEnabled: boolean; + zoomScale: number; + } + + export interface SearchViewModelSearchClearEvent { + } + + export interface SearchViewModelSearchCompleteEvent { + activeSourceIndex: number; + errors: Error[]; + numResults: number; + results: SearchViewModelSearchCompleteEventResults[]; + searchTerm: string; + } + + export interface SearchViewModelSearchResponse { + activeSourceIndex: number; + errors: Error[]; + numResults: number; + searchTerm: string; + results: SearchViewModelSearchResponseResults[]; + } + + export interface SearchViewModelSearchResult { + extent: Extent; + feature: Graphic; + name: string; + } + + export interface SearchViewModelSearchStartEvent { + } + + export interface SearchViewModelSelectResultEvent { + result: SearchViewModelSelectResultEventResult; + source: any; + sourceIndex: number; + } + + export interface SearchViewModelSuggestCompleteEvent { + activeSourceIndex: number; + errors: Error[]; + numResults: number; + results: SearchViewModelSuggestCompleteEventResults[]; + searchTerm: string; + } + + export interface SearchViewModelSuggestResponse { + activeSourceIndex: number; + errors: Error[]; + numResults: number; + searchTerm: string; + results: SearchViewModelSuggestResponseResults[]; + } + + export interface SearchViewModelSuggestResult { + key: string; + text: string; + sourceIndex: number; + } + + export interface SearchViewModelSuggestStartEvent { + } + + export interface SearchViewModelFeatureLayerSourceFilter { + where: string; + geometry: Geometry; + } + + export interface SearchViewModelLocatorSourceFilter { + where: string; + geometry: Geometry; + } + + export interface SearchViewModelLocatorSourceLocalSearchOptions { + distance: number; + minScale: number; + } + + export interface SearchViewModelSearchCompleteEventResults { + results: SearchResult[]; + sourceIndex: number; + source: any[]; + } + + export interface SearchViewModelSearchResponseResults { + results: SearchViewModelSearchResult[]; + sourceIndex: number; + source: any; + } + + export interface SearchViewModelSelectResultEventResult { + extent: Extent; + feature: Graphic; + name: string; + } + + export interface SearchViewModelSuggestCompleteEventResults { + results: SearchViewModelSuggestResult[]; + sourceIndex: number; + source: any; + } + + export interface SearchViewModelSuggestResponseResults { + results: SearchViewModelSuggestResult[]; + sourceIndex: number; + source: any; + } + + export interface FeatureLayerSource { + popup: Popup; + autoNavigate: boolean; + exactMatch: boolean; + featureLayer: FeatureLayer; + filter: FeatureLayerSourceFilter; + maxResults: number; + maxSuggestions: number; + minSuggestCharacters: number; + name: string; + outFields: string[]; + placeholder: string; + displayField: string; + popupEnabled: boolean; + popupOpenOnSelect: boolean; + prefix: string; + resultGraphicEnabled: boolean; + resultSymbol: Symbol; + searchFields: string[]; + suffix: string; + suggestionsEnabled: boolean; + suggestionTemplate: string; + withinViewEnabled: boolean; + zoomScale: number; + } + + export interface LocatorSource { + placeholder: string; + autoNavigate: boolean; + countryCode: string; + filter: LocatorSourceFilter; + localSearchOptions: LocatorSourceLocalSearchOptions; + locationToAddressDistance: number; + locator: Locator; + maxResults: number; + maxSuggestions: number; + minSuggestCharacters: number; + name: string; + outFields: string[]; + categories: string[]; + popup: Popup; + popupEnabled: boolean; + popupOpenOnSelect: boolean; + prefix: string; + resultGraphicEnabled: boolean; + resultSymbol: Symbol; + searchTemplate: string; + singleLineFieldName: string; + suggestionsEnabled: boolean; + suffix: string; + withinViewEnabled: boolean; + zoomScale: number; + } + + export interface SearchResponse { + activeSourceIndex: number; + errors: Error[]; + numResults: number; + searchTerm: string; + results: SearchResponseResults[]; + } + + export interface SearchResult { + extent: Extent; + feature: Graphic; + name: string; + } + + export interface SuggestResponse { + activeSourceIndex: number; + errors: Error[]; + numResults: number; + searchTerm: string; + results: SuggestResponseResults[]; + } + + export interface SuggestResult { + key: string; + text: string; + sourceIndex: number; + } + + export interface FeatureLayerSourceFilter { + where: string; + geometry: Geometry; + } + + export interface LocatorSourceFilter { + where: string; + geometry: Geometry; + } + + export interface LocatorSourceLocalSearchOptions { + distance: number; + minScale: number; + } + + export interface SearchResponseResults { + results: SearchResult[]; + sourceIndex: number; + source: any; + } + + export interface SuggestResponseResults { + results: SuggestResult[]; + sourceIndex: number; + source: any; + } + interface SizeSlider extends Accessor, Widgette { handlesVisible: boolean; - histogram: any; + histogram: HistogramResult; histogramVisible: boolean; histogramWidth: number; labelsVisible: boolean; @@ -8236,11 +10747,12 @@ declare namespace __esri { maxValue: number; minSize: number; minValue: number; - statistics: any; + statistics: SizeSliderStatistics; statisticsVisible: boolean; + symbol: SimpleMarkerSymbol | SimpleLineSymbol; ticksVisible: boolean; values: number[]; - visualVariable: any; + visualVariable: SizeVisualVariable; } interface SizeSliderConstructor { @@ -8251,7 +10763,7 @@ declare namespace __esri { interface SizeSliderProperties extends WidgetteProperties { handlesVisible?: boolean; - histogram?: any; + histogram?: HistogramResult; histogramVisible?: boolean; histogramWidth?: number; labelsVisible?: boolean; @@ -8259,13 +10771,77 @@ declare namespace __esri { maxValue?: number; minSize?: number; minValue?: number; - statistics?: any; + statistics?: SizeSliderStatistics; statisticsVisible?: boolean; + symbol?: SimpleMarkerSymbolProperties | SimpleLineSymbolProperties; ticksVisible?: boolean; values?: number[]; - visualVariable?: any; + visualVariable?: SizeVisualVariable; } + export interface SizeSliderStatistics { + avg?: number; + max: number; + min: number; + } + + interface SketchViewModel extends Accessor, Evented { + graphic: Graphic; + pointSymbol: SimpleMarkerSymbol; + polygonSymbol: SimpleFillSymbol; + polylineSymbol: SimpleLineSymbol; + state: string; + view: MapView; + + create(drawAction: string): void; + reset(): void; + } + + interface SketchViewModelConstructor { + new(properties?: SketchViewModelProperties): SketchViewModel; + } + + export const SketchViewModel: SketchViewModelConstructor; + + interface SketchViewModelProperties { + graphic?: GraphicProperties; + pointSymbol?: SimpleMarkerSymbolProperties; + polygonSymbol?: SimpleFillSymbolProperties; + polylineSymbol?: SimpleLineSymbolProperties; + state?: string; + view?: MapViewProperties; + } + + interface GeolocationPositioning { + geolocationOptions: any; + goToLocationEnabled: boolean; + graphic: Graphic; + view: MapView | SceneView; + } + + interface GeolocationPositioningConstructor { + new(): GeolocationPositioning; + } + + export const GeolocationPositioning: GeolocationPositioningConstructor; + + interface GeolocationPositioningProperties { + geolocationOptions?: any; + goToLocationEnabled?: boolean; + graphic?: GraphicProperties; + view?: MapViewProperties | SceneViewProperties; + } + + interface widget { + accessibleHandler(): Function; + join(...classNames: string[]): string; + renderable(propertyName?: string | string[]): Function; + tsx(selector: string, properties?: any, children?: any): any; + vmEvent(eventNames: string | string[]): Function; + } + + export const widget: widget; + interface Track extends Widget { geolocationOptions: any; goToLocationEnabled: boolean; @@ -8290,458 +10866,10 @@ declare namespace __esri { goToLocationEnabled?: boolean; graphic?: GraphicProperties; tracking?: boolean; - view?: MapView | SceneView; + view?: MapViewProperties | SceneViewProperties; viewModel?: TrackViewModelProperties; } - interface UnivariateColorSizeSlider extends Accessor, Widgette { - handlesVisible: boolean; - histogram: any; - histogramVisible: boolean; - histogramWidth: number; - labelsVisible: boolean; - maxSize: number; - maxValue: number; - minSize: number; - minValue: number; - statistics: any; - statisticsVisible: boolean; - ticksVisible: boolean; - values: number[]; - visualVariables: any[]; - } - - interface UnivariateColorSizeSliderConstructor { - new(properties?: UnivariateColorSizeSliderProperties): UnivariateColorSizeSlider; - } - - export const UnivariateColorSizeSlider: UnivariateColorSizeSliderConstructor; - - interface UnivariateColorSizeSliderProperties extends WidgetteProperties { - handlesVisible?: boolean; - histogram?: any; - histogramVisible?: boolean; - histogramWidth?: number; - labelsVisible?: boolean; - maxSize?: number; - maxValue?: number; - minSize?: number; - minValue?: number; - statistics?: any; - statisticsVisible?: boolean; - ticksVisible?: boolean; - values?: number[]; - visualVariables?: any[]; - } - - interface Widget extends Accessor, Evented { - container: string; - destroyed: boolean; - id: string; - - destroy(): void; - own(handles: any[]): void; - postInitialize(): void; - renderNow(): void; - scheduleRender(): void; - startup(): void; - } - - interface WidgetConstructor { - new(properties?: WidgetProperties): Widget; - } - - export const Widget: WidgetConstructor; - - interface WidgetProperties { - container?: string | any; - destroyed?: boolean; - id?: string; - } - - interface Zoom extends Widget { - view: MapView | SceneView; - viewModel: ZoomViewModel; - - render(): any; - zoomIn(): void; - zoomOut(): void; - } - - interface ZoomConstructor { - new(properties?: ZoomProperties): Zoom; - } - - export const Zoom: ZoomConstructor; - - interface ZoomProperties extends WidgetProperties { - view?: MapView | SceneView; - viewModel?: ZoomViewModelProperties; - } - - interface AttributionViewModel { - attributionText: string; - itemDelimiter: string; - state: string; - view: MapView | SceneView; - } - - interface AttributionViewModelConstructor { - new(properties?: any): AttributionViewModel; - } - - export const AttributionViewModel: AttributionViewModelConstructor; - - interface BasemapGalleryViewModel extends Accessor { - activeBasemap: Basemap; - items: Collection; - source: LocalBasemapsSource | PortalBasemapsSource; - state: string; - view: MapView | SceneView; - - basemapEquals(basemap1: Basemap, basemap2: Basemap): boolean; - } - - interface BasemapGalleryViewModelConstructor { - new(properties?: BasemapGalleryViewModelProperties): BasemapGalleryViewModel; - } - - export const BasemapGalleryViewModel: BasemapGalleryViewModelConstructor; - - interface BasemapGalleryViewModelProperties { - activeBasemap?: BasemapProperties; - items?: Collection | any[]; - source?: LocalBasemapsSource | PortalBasemapsSource; - state?: string; - view?: MapView | SceneView; - } - - interface BasemapToggleViewModel extends Accessor, Evented { - activeBasemap: Basemap; - nextBasemap: Basemap; - state: string; - view: MapView | SceneView; - - toggle(): void; - } - - interface BasemapToggleViewModelConstructor { - new(properties?: BasemapToggleViewModelProperties): BasemapToggleViewModel; - - - getThumbnailUrl(basemap: Basemap): string; - } - - export const BasemapToggleViewModel: BasemapToggleViewModelConstructor; - - interface BasemapToggleViewModelProperties { - activeBasemap?: BasemapProperties; - nextBasemap?: Basemap | string; - state?: string; - view?: MapView | SceneView; - } - - interface CompassViewModel extends Accessor { - orientation: any; - state: string; - view: MapView | SceneView; - - reset(): void; - } - - interface CompassViewModelConstructor { - new(properties?: CompassViewModelProperties): CompassViewModel; - } - - export const CompassViewModel: CompassViewModelConstructor; - - interface CompassViewModelProperties { - orientation?: any; - state?: string; - view?: MapView | SceneView; - } - - interface ExpandViewModel extends Accessor { - autoCollapse: boolean; - expanded: boolean; - state: string; - view: MapView | SceneView; - } - - interface ExpandViewModelConstructor { - new(properties?: ExpandViewModelProperties): ExpandViewModel; - } - - export const ExpandViewModel: ExpandViewModelConstructor; - - interface ExpandViewModelProperties { - autoCollapse?: boolean; - expanded?: boolean; - state?: string; - view?: MapView | SceneView; - } - - interface HomeViewModel extends Accessor, Evented { - state: string; - view: MapView | SceneView; - viewpoint: Viewpoint; - - go(): void; - } - - interface HomeViewModelConstructor { - new(properties?: HomeViewModelProperties): HomeViewModel; - } - - export const HomeViewModel: HomeViewModelConstructor; - - interface HomeViewModelProperties { - state?: string; - view?: MapView | SceneView; - viewpoint?: ViewpointProperties; - } - - interface LayerListViewModel extends Accessor { - createActionsFunction: Function; - listItemCreatedFunction: Function; - operationalItems: Collection; - state: string; - view: MapView | SceneView; - - triggerAction(action: Action, item: ListItem): void; - } - - interface LayerListViewModelConstructor { - new(properties?: LayerListViewModelProperties): LayerListViewModel; - } - - export const LayerListViewModel: LayerListViewModelConstructor; - - interface LayerListViewModelProperties { - createActionsFunction?: Function; - listItemCreatedFunction?: Function; - operationalItems?: Collection | any[]; - state?: string; - view?: MapView | SceneView; - } - - interface ListItem { - actionsOpen: boolean; - actionsSections: Collection; - children: Collection; - error: Error; - layer: Layer; - layerView: LayerView; - open: boolean; - title: string; - updating: boolean; - view: MapView | SceneView; - visibilityMode: string; - visible: boolean; - visibleAtCurrentScale: boolean; - - clone(): this; - } - - interface ListItemConstructor { - new(): ListItem; - } - - export const ListItem: ListItemConstructor; - - interface LocateViewModel extends Accessor, Evented, GeolocationPositioning { - state: string; - - locate(): IPromise; - } - - interface LocateViewModelConstructor { - new(properties?: LocateViewModelProperties): LocateViewModel; - } - - export const LocateViewModel: LocateViewModelConstructor; - - interface LocateViewModelProperties extends GeolocationPositioningProperties { - state?: string; - } - - interface NavigationToggleViewModel extends Accessor { - navigationMode: string; - state: string; - view: SceneView; - - toggle(): void; - } - - interface NavigationToggleViewModelConstructor { - new(properties?: NavigationToggleViewModelProperties): NavigationToggleViewModel; - } - - export const NavigationToggleViewModel: NavigationToggleViewModelConstructor; - - interface NavigationToggleViewModelProperties { - navigationMode?: string; - state?: string; - view?: SceneViewProperties; - } - - interface PrintViewModel extends Accessor { - printServiceUrl: string; - updateDelay: number; - view: MapView; - - print(printTemplate: PrintTemplate): IPromise; - } - - interface PrintViewModelConstructor { - new(properties?: PrintViewModelProperties): PrintViewModel; - } - - export const PrintViewModel: PrintViewModelConstructor; - - interface PrintViewModelProperties { - printServiceUrl?: string; - updateDelay?: number; - view?: MapViewProperties; - } - - interface PopupViewModel extends Accessor, Evented { - actions: Collection; - content: string; - featureCount: number; - features: Graphic[]; - highlightEnabled: boolean; - location: Point; - pendingPromisesCount: number; - promises: IPromise[]; - selectedFeature: Graphic; - selectedFeatureIndex: number; - state: string; - title: string; - view: MapView | SceneView; - - clear(): void; - next(): PopupViewModel; - previous(): PopupViewModel; - triggerAction(actionIndex: number): void; - } - - interface PopupViewModelConstructor { - new(properties?: PopupViewModelProperties): PopupViewModel; - } - - export const PopupViewModel: PopupViewModelConstructor; - - interface PopupViewModelProperties { - actions?: Collection | any[]; - content?: string | any; - featureCount?: number; - features?: GraphicProperties[]; - highlightEnabled?: boolean; - location?: PointProperties; - pendingPromisesCount?: number; - promises?: IPromise[]; - selectedFeature?: GraphicProperties; - selectedFeatureIndex?: number; - state?: string; - title?: string; - view?: MapView | SceneView; - } - - interface ScaleBarViewModel extends Accessor { - view: MapView; - } - - interface ScaleBarViewModelConstructor { - new(properties?: ScaleBarViewModelProperties): ScaleBarViewModel; - } - - export const ScaleBarViewModel: ScaleBarViewModelConstructor; - - interface ScaleBarViewModelProperties { - view?: MapViewProperties; - } - - interface SearchViewModel extends Accessor, Evented { - activeSource: FeatureLayer | Locator; - activeSourceIndex: number; - allPlaceholder: string; - autoSelect: boolean; - defaultSource: any | any; - maxInputLength: number; - maxResults: number; - maxSuggestions: number; - minSuggestCharacters: number; - placeholder: string; - popupEnabled: boolean; - popupOpenOnSelect: boolean; - popupTemplate: PopupTemplate; - resultGraphic: Graphic; - resultGraphicEnabled: boolean; - results: any[]; - searchAllEnabled: boolean; - searchTerm: string; - selectedResult: any; - sources: Collection; - suggestionDelay: number; - suggestions: any[]; - suggestionsEnabled: boolean; - view: MapView | SceneView; - - cancelSuggest(): void; - clear(): void; - search(searchTerm?: string | Geometry | any | number[][]): IPromise; - suggest(value?: string): IPromise; - - on(name: "suggest-complete", eventHandler: SearchViewModelSuggestCompleteEventHandler): IHandle; - on(name: "suggest-complete", modifiers: string[], eventHandler: SearchViewModelSuggestCompleteEventHandler): IHandle; - on(name: "search-clear", eventHandler: SearchViewModelSearchClearEventHandler): IHandle; - on(name: "search-clear", modifiers: string[], eventHandler: SearchViewModelSearchClearEventHandler): IHandle; - on(name: "search-start", eventHandler: SearchViewModelSearchStartEventHandler): IHandle; - on(name: "search-start", modifiers: string[], eventHandler: SearchViewModelSearchStartEventHandler): IHandle; - on(name: "suggest-start", eventHandler: SearchViewModelSuggestStartEventHandler): IHandle; - on(name: "suggest-start", modifiers: string[], eventHandler: SearchViewModelSuggestStartEventHandler): IHandle; - on(name: "load", eventHandler: SearchViewModelLoadEventHandler): IHandle; - on(name: "load", modifiers: string[], eventHandler: SearchViewModelLoadEventHandler): IHandle; - on(name: "search-complete", eventHandler: SearchViewModelSearchCompleteEventHandler): IHandle; - on(name: "search-complete", modifiers: string[], eventHandler: SearchViewModelSearchCompleteEventHandler): IHandle; - on(name: "select-result", eventHandler: SearchViewModelSelectResultEventHandler): IHandle; - on(name: "select-result", modifiers: string[], eventHandler: SearchViewModelSelectResultEventHandler): IHandle; - } - - interface SearchViewModelConstructor { - new(properties?: SearchViewModelProperties): SearchViewModel; - } - - export const SearchViewModel: SearchViewModelConstructor; - - interface SearchViewModelProperties { - activeSource?: FeatureLayer | Locator; - activeSourceIndex?: number; - allPlaceholder?: string; - autoSelect?: boolean; - defaultSource?: any | any; - maxInputLength?: number; - maxResults?: number; - maxSuggestions?: number; - minSuggestCharacters?: number; - placeholder?: string; - popupEnabled?: boolean; - popupOpenOnSelect?: boolean; - popupTemplate?: PopupTemplateProperties; - resultGraphic?: GraphicProperties; - resultGraphicEnabled?: boolean; - results?: any[]; - searchAllEnabled?: boolean; - searchTerm?: string; - selectedResult?: any; - sources?: Collection | any[]; - suggestionDelay?: number; - suggestions?: any[]; - suggestionsEnabled?: boolean; - view?: MapView | SceneView; - } - interface TrackViewModel extends Accessor, Evented, GeolocationPositioning { state: string; tracking: boolean; @@ -8761,6 +10889,119 @@ declare namespace __esri { tracking?: boolean; } + interface UnivariateColorSizeSlider extends Accessor, Widgette { + handlesVisible: boolean; + histogram: HistogramResult; + histogramVisible: boolean; + histogramWidth: number; + labelsVisible: boolean; + maxSize: number; + maxValue: number; + minSize: number; + minValue: number; + statistics: UnivariateColorSizeSliderStatistics; + statisticsVisible: boolean; + ticksVisible: boolean; + values: number[]; + visualVariables: any[]; + } + + interface UnivariateColorSizeSliderConstructor { + new(properties?: UnivariateColorSizeSliderProperties): UnivariateColorSizeSlider; + } + + export const UnivariateColorSizeSlider: UnivariateColorSizeSliderConstructor; + + interface UnivariateColorSizeSliderProperties extends WidgetteProperties { + handlesVisible?: boolean; + histogram?: HistogramResult; + histogramVisible?: boolean; + histogramWidth?: number; + labelsVisible?: boolean; + maxSize?: number; + maxValue?: number; + minSize?: number; + minValue?: number; + statistics?: UnivariateColorSizeSliderStatistics; + statisticsVisible?: boolean; + ticksVisible?: boolean; + values?: number[]; + visualVariables?: any[]; + } + + export interface UnivariateColorSizeSliderStatistics { + avg: number; + max: number; + min: number; + stddev: number; + } + + interface Widget extends Accessor, Evented { + container: string | HTMLElement; + destroyed: boolean; + id: string; + + destroy(): void; + own(handles: WatchHandle | WatchHandle[]): void; + postInitialize(): void; + renderNow(): void; + scheduleRender(): void; + startup(): void; + } + + interface WidgetConstructor { + new(properties?: WidgetProperties): Widget; + } + + export const Widget: WidgetConstructor; + + interface WidgetProperties { + container?: string | HTMLElement; + destroyed?: boolean; + id?: string; + } + + interface Widgette { + container: string | HTMLElement; + visible: boolean; + + destroy(): void; + on(type: string, listener: Function): any; + } + + interface WidgetteConstructor { + new(): Widgette; + } + + export const Widgette: WidgetteConstructor; + + interface WidgetteProperties { + container?: string | HTMLElement; + visible?: boolean; + } + + interface Zoom extends Widget { + layout: string; + view: MapView | SceneView; + viewModel: ZoomViewModel; + + render(): any; + zoomIn(): void; + zoomOut(): void; + } + + interface ZoomConstructor { + new(properties?: ZoomProperties): Zoom; + } + + export const Zoom: ZoomConstructor; + + interface ZoomProperties extends WidgetProperties { + layout?: string; + view?: MapViewProperties | SceneViewProperties; + viewModel?: ZoomViewModelProperties; + } + interface ZoomViewModel extends Accessor { canZoomIn: boolean; canZoomOut: boolean; @@ -8781,1652 +11022,110 @@ declare namespace __esri { canZoomIn?: boolean; canZoomOut?: boolean; state?: string; - view?: MapView | SceneView; + view?: MapViewProperties | SceneViewProperties; } - interface Evented { - hasEventListener(type: string): boolean; - on(type: string, listener: EventHandler): IHandle; - } - - interface EventedConstructor { - new(): Evented; - } - - export const Evented: EventedConstructor; - - interface JSONSupport { - toJSON(): any; - } - - interface JSONSupportConstructor { - new(): JSONSupport; - - - fromJSON(json: any): any; - } - - export const JSONSupport: JSONSupportConstructor; - - interface Loadable { - loadError: Error; - loadStatus: string; - loadWarnings: any[]; - - always(callbackOrErrback?: Function): IPromise; - cancelLoad(): void; - isFulfilled(): boolean; - isRejected(): boolean; - isResolved(): boolean; - load(): IPromise; - otherwise(errback?: Function): IPromise; - then(callback?: Function, errback?: Function, progback?: Function): IPromise; - } - - interface LoadableConstructor { - new(): Loadable; - } - - export const Loadable: LoadableConstructor; - - interface LoadableProperties { - loadError?: Error; - loadStatus?: string; - loadWarnings?: any[]; - } - - interface corePromise { - always(callbackOrErrback?: Function): IPromise; - isFulfilled(): boolean; - isRejected(): boolean; - isResolved(): boolean; - otherwise(errback?: Function): IPromise; - then(callback?: Function, errback?: Function, progback?: Function): IPromise; - } - - interface corePromiseConstructor { - new(): corePromise; - } - - export const corePromise: corePromiseConstructor; - - interface DynamicLayer { - portalItem: PortalItem; - url: string; - - fetchImage(extent: Extent, width: number, height: number, options?: DynamicLayerFetchImageOptions): IPromise; - getImageUrl(extent: Extent, width: number, height: number, options?: DynamicLayerGetImageUrlOptions): IPromise | string; - } - - interface DynamicLayerConstructor { - new(): DynamicLayer; - } - - export const DynamicLayer: DynamicLayerConstructor; - - interface DynamicLayerProperties { - portalItem?: PortalItemProperties; - url?: string; - } - - interface TiledLayer { - tileInfo: TileInfo; - } - - interface TiledLayerConstructor { - new(properties?: TiledLayerProperties): TiledLayer; - - fromJSON(json: any): TiledLayer; - } - - export const TiledLayer: TiledLayerConstructor; - - interface TiledLayerProperties { - tileInfo?: TileInfoProperties; - } - - interface ArcGISCachedService { - maxScale: number; - minScale: number; - tileInfo: TileInfo; - - fromJSON(json: any): any; - toJSON(): any; - } - - interface ArcGISCachedServiceConstructor { - new(properties?: ArcGISCachedServiceProperties): ArcGISCachedService; - - fromJSON(json: any): ArcGISCachedService; - } - - export const ArcGISCachedService: ArcGISCachedServiceConstructor; - - interface ArcGISCachedServiceProperties { - maxScale?: number; - minScale?: number; - tileInfo?: TileInfoProperties; - } - - interface ArcGISDynamicMapService { - allSublayers: Collection; - dpi: number; - gdbVersion: string; - imageFormat: string; - imageMaxHeight: number; - imageMaxWidth: number; - imageTransparency: boolean; - sublayers: Collection; - - createServiceSublayers(): Collection; - findSublayerById(id: number): Sublayer; - getExportImageParameters(extent: Extent, width: number, height: number, options?: ArcGISDynamicMapServiceGetExportImageParametersOptions): any; - } - - interface ArcGISDynamicMapServiceConstructor { - new(): ArcGISDynamicMapService; - } - - export const ArcGISDynamicMapService: ArcGISDynamicMapServiceConstructor; - - interface ArcGISDynamicMapServiceProperties { - allSublayers?: Collection | any[]; - dpi?: number; - gdbVersion?: string; - imageFormat?: string; - imageMaxHeight?: number; - imageMaxWidth?: number; - imageTransparency?: boolean; - sublayers?: Collection | any[]; - } - - interface ArcGISImageService { - compressionQuality: number; - compressionTolerance: number; - copyright: string; - definitionExpression: string; - domainFields: Field[]; - fields: Field[]; - format: string; - fullExtent: Extent; - hasMultidimensions: boolean; - hasRasterAttributeTable: boolean; - imageMaxHeight: number; - imageMaxWidth: number; - mosaicRule: MosaicRule; - multidimensionalInfo: any; - pixelType: string; - popupTemplate: PopupTemplate; - rasterAttributeTable: any; - rasterAttributeTableFieldPrefix: string; - rasterFields: Field[]; - renderingRule: RasterFunction; - spatialReference: SpatialReference; - url: string; - version: number; - - fetchImage(extent: Extent, width: number, height: number): IPromise; - fromJSON(json: any): any; - toJSON(): any; - } - - interface ArcGISImageServiceConstructor { - new(properties?: ArcGISImageServiceProperties): ArcGISImageService; - - fromJSON(json: any): ArcGISImageService; - } - - export const ArcGISImageService: ArcGISImageServiceConstructor; - - interface ArcGISImageServiceProperties { - compressionQuality?: number; - compressionTolerance?: number; - copyright?: string; - definitionExpression?: string; - domainFields?: FieldProperties[]; - fields?: FieldProperties[]; - format?: string; - fullExtent?: ExtentProperties; - hasMultidimensions?: boolean; - hasRasterAttributeTable?: boolean; - imageMaxHeight?: number; - imageMaxWidth?: number; - mosaicRule?: MosaicRuleProperties; - multidimensionalInfo?: any; - pixelType?: string; - popupTemplate?: PopupTemplateProperties; - rasterAttributeTable?: any; - rasterAttributeTableFieldPrefix?: string; - rasterFields?: FieldProperties[]; - renderingRule?: RasterFunctionProperties; - spatialReference?: SpatialReferenceProperties; - url?: string; - version?: number; - } - - interface ArcGISMapService { - copyright: string; - fullExtent: Extent; - spatialReference: SpatialReference; - token: string; - } - - interface ArcGISMapServiceConstructor { - new(properties?: ArcGISMapServiceProperties): ArcGISMapService; - - fromJSON(json: any): ArcGISMapService; - } - - export const ArcGISMapService: ArcGISMapServiceConstructor; - - interface ArcGISMapServiceProperties { - copyright?: string; - fullExtent?: ExtentProperties; - spatialReference?: SpatialReferenceProperties; - token?: string; - } - - interface PortalLayer { - portalItem: PortalItem; - } - - interface PortalLayerConstructor { - new(properties?: PortalLayerProperties): PortalLayer; - - fromJSON(json: any): PortalLayer; - } - - export const PortalLayer: PortalLayerConstructor; - - interface PortalLayerProperties { - portalItem?: PortalItemProperties; - } - - interface ScaleRangeLayer { - maxScale: number; - minScale: number; - } - - interface ScaleRangeLayerConstructor { - new(): ScaleRangeLayer; - } - - export const ScaleRangeLayer: ScaleRangeLayerConstructor; - - interface ScaleRangeLayerProperties { - maxScale?: number; - minScale?: number; - } - - interface SceneService { - copyright: string; - layerId: number; - spatialReference: SpatialReference; - token: string; - url: string; - version: SceneServiceVersion; - } - - interface SceneServiceConstructor { - new(properties?: SceneServiceProperties): SceneService; - - fromJSON(json: any): SceneService; - } - - export const SceneService: SceneServiceConstructor; - - interface SceneServiceProperties { - copyright?: string; - layerId?: number; - spatialReference?: SpatialReferenceProperties; - token?: string; - url?: string; - version?: SceneServiceVersion; - } - - interface VisualVariablesMixin { - visualVariables: any[]; - } - - interface VisualVariablesMixinConstructor { - new(): VisualVariablesMixin; - } - - export const VisualVariablesMixin: VisualVariablesMixinConstructor; - - interface VisualVariablesMixinProperties { - visualVariables?: any[]; - } - - interface LayersMixin { - layers: Collection; - - add(layers: Layer, index?: number): void; - addMany(layers: Layer[], index?: number): void; - findLayerById(layerId: string): Layer; - remove(layer: Layer): Layer; - removeAll(): Layer[]; - removeMany(layers: Layer[]): Layer[]; - reorder(layer: Layer, index: number): Layer; - } - - interface LayersMixinConstructor { - new(): LayersMixin; - } - - export const LayersMixin: LayersMixinConstructor; - - interface LayersMixinProperties { - layers?: Collection | any[]; - } - - interface BreakpointsOwner { - breakpoints: BreakpointsOwnerBreakpoints; - heightBreakpoint: string; - orientation: string; - widthBreakpoint: string; - } - - interface BreakpointsOwnerConstructor { - new(): BreakpointsOwner; - } - - export const BreakpointsOwner: BreakpointsOwnerConstructor; - - interface BreakpointsOwnerProperties { - breakpoints?: BreakpointsOwnerBreakpoints; - heightBreakpoint?: string; - orientation?: string; - widthBreakpoint?: string; - } - - interface DOMContainer { - container: HTMLDivElement | string; - height: number; - popup: Popup; - resizing: boolean; - size: number[]; - suspended: boolean; - ui: DefaultUI; - width: number; - } - - interface DOMContainerConstructor { - new(): DOMContainer; - } - - export const DOMContainer: DOMContainerConstructor; - - interface DOMContainerProperties { - container?: HTMLDivElement | string; - height?: number; - popup?: PopupProperties; - resizing?: boolean; - size?: number[]; - suspended?: boolean; - ui?: DefaultUIProperties; - width?: number; - } - - interface Widgette { - container: string | any; - visible: boolean; - - destroy(): void; - } - - interface WidgetteConstructor { - new(): Widgette; - } - - export const Widgette: WidgetteConstructor; - - interface WidgetteProperties { - container?: string | any; - visible?: boolean; - } - - interface GeolocationPositioning { - geolocationOptions: any; - goToLocationEnabled: boolean; - graphic: Graphic; - view: MapView | SceneView; - } - - interface GeolocationPositioningConstructor { - new(): GeolocationPositioning; - } - - export const GeolocationPositioning: GeolocationPositioningConstructor; - - interface GeolocationPositioningProperties { - geolocationOptions?: any; - goToLocationEnabled?: boolean; - graphic?: GraphicProperties; - view?: MapView | SceneView; - } - - interface config { - geometryServiceUrl: string; - geoRSSServiceUrl: string; - portalUrl: string; - request: configRequest; - workers: configWorkers; - } - - export const config: config; - - interface kernel { - version: string; - } - - export const kernel: kernel; - - interface request { - esriRequest(url: string, options?: requestEsriRequestOptions): IPromise; - } - - const __requestMapped: request; - export const request: typeof __requestMapped.esriRequest; - - - interface lang { - clone(elem: any): any; - } - - export const lang: lang; - - interface promiseUtils { - eachAlways(promises: IPromise[] | any): IPromise | any; - reject(error?: any): IPromise; - resolve(value?: T): IPromise; - } - - export const promiseUtils: promiseUtils; - - interface requireUtils { - when(moduleRequire: any, moduleNames: string[] | string): IPromise; - } - - export const requireUtils: requireUtils; - - interface urlUtils { - addProxyRule(rule: urlUtilsAddProxyRuleRule): number; - getProxyRule(url: string): any; - urlToObject(url: string): any; - } - - export const urlUtils: urlUtils; - - interface watchUtils { - init(obj: Accessor, propertyName: string | string[], callback: WatchCallback): WatchHandle; - on(obj: Accessor, propertyName: string, eventName: string, eventHandler: Function, attachedHandler?: EventAttachedCallback, detachedHandler?: EventAttachedCallback): WatchHandle; - once(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; - pausable(obj: Accessor, propertyName: string, callback?: WatchCallback): PausableWatchHandle; - watch(obj: Accessor, propertyName: string, callback: WatchCallback): WatchHandle; - when(obj: Accessor, propertyName: string, callback: WatchCallback): WatchHandle; - whenDefined(obj: Accessor, propertyName: string, callback: WatchCallback): WatchHandle; - whenDefinedOnce(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; - whenFalse(obj: Accessor, propertyName: string, callback: WatchCallback): WatchHandle; - whenFalseOnce(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; - whenNot(obj: Accessor, propertyName: string, callback: WatchCallback): WatchHandle; - whenNotOnce(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; - whenOnce(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; - whenTrue(obj: Accessor, propertyName: string, callback: WatchCallback): WatchHandle; - whenTrueOnce(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; - whenUndefined(obj: Accessor, propertyName: string, callback: WatchCallback): WatchHandle; - whenUndefinedOnce(obj: Accessor, propertyName: string, callback?: WatchCallback): PromisedWatchHandle; - } - - export const watchUtils: watchUtils; - - interface decorators { - aliasOf(propertyName: string): Function; - cast(propertyName: string): Function; - cast(classFunction: Function): Function; - declared(baseClass: T, ...mixinClasses: any[]): T; - property(propertyMetadata?: decoratorsPropertyPropertyMetadata): Function; - subclass(declaredClass?: string): Function; - } - - export const decorators: decorators; - - interface workers { - open(client: any, modulePath: string): IPromise; - } - - export const workers: workers; - - interface geometryEngine { - buffer(geometry: Geometry | Geometry[], distance: number | number[], unit: string | number, unionResults?: boolean): Polygon | Polygon[]; - clip(geometry: Geometry, envelope: Extent): Geometry; - contains(geometry1: Geometry, geometry2: Geometry): boolean; - convexHull(geometry: Geometry, merge?: boolean): Geometry | Geometry[]; - crosses(geometry1: Geometry, geometry2: Geometry): boolean; - cut(geometry: Geometry, cutter: Polyline): Geometry[]; - densify(geometry: Geometry, maxSegmentLength: number, maxSegmentLengthUnit: string | number): Geometry; - difference(inputGeometry: Geometry | Geometry[], subtractor: Geometry): Geometry | Geometry[]; - disjoint(geometry1: Geometry, geometry2: Geometry): boolean; - distance(geometry1: Geometry, geometry2: Geometry, distanceUnit: string | number): number; - equals(geometry1: Geometry, geometry2: Geometry): boolean; - extendedSpatialReferenceInfo(spatialReference: SpatialReference): any; - flipHorizontal(geometry: Geometry, flipOrigin?: Point): Geometry; - flipVertical(geometry: Geometry, flipOrigin?: Point): Geometry; - generalize(geometry: Geometry, maxDeviation: number, removeDegenerateParts?: boolean, maxDeviationUnit?: string | number): Geometry; - geodesicArea(geometry: Polygon, unit: string | number): number; - geodesicBuffer(geometry: Geometry | Geometry[], distance: number | number[], unit: string | number, unionResults?: boolean): Polygon | Polygon[]; - geodesicDensify(geometry: Polyline | Polygon, maxSegmentLength: number, maxSegmentLengthUnit: string | number): Geometry; - geodesicLength(geometry: Geometry, unit: string | number): number; - intersect(geometry: Geometry | Geometry[], intersector: Geometry): Geometry | Geometry[]; - intersects(geometry1: Geometry, geometry2: Geometry): boolean; - isSimple(geometry: Geometry): boolean; - nearestCoordinate(geometry: Geometry, inputPoint: Point): any; - nearestVertex(geometry: Geometry, inputPoint: Point): any; - nearestVertices(geometry: Geometry, inputPoint: Point, searchRadius: number, maxVertexCountToReturn: number): any[]; - offset(geometry: Geometry | Geometry[], offsetDistance: number, offsetUnit: string | number, joinType: string, bevelRatio?: number, flattenError?: number): Geometry | Geometry[]; - overlaps(geometry1: Geometry, geometry2: Geometry): boolean; - planarArea(geometry: Polygon, unit: string | number): number; - planarLength(geometry: Geometry, unit: string | number): number; - relate(geometry1: Geometry, geometry2: Geometry, relation: string): boolean; - rotate(geometry: Geometry, angle: number, rotationOrigin?: Point): Geometry; - simplify(geometry: Geometry): Geometry; - symmetricDifference(leftGeometry: Geometry | Geometry[], rightGeometry: Geometry): Geometry | Geometry[]; - touches(geometry1: Geometry, geometry2: Geometry): boolean; - union(geometries: Geometry[]): Geometry; - within(geometry1: Geometry, geometry2: Geometry): boolean; - } - - export const geometryEngine: geometryEngine; - - interface geometryEngineAsync { - buffer(geometry: Geometry | Geometry[], distance: number | number[], unit: string | number, unionResults?: boolean): IPromise; - clip(geometry: Geometry, envelope: Extent): IPromise; - contains(geometry1: Geometry, geometry2: Geometry): IPromise; - convexHull(geometry: Geometry, merge?: boolean): IPromise; - crosses(geometry1: Geometry, geometry2: Geometry): IPromise; - cut(geometry: Geometry, cutter: Polyline): IPromise; - densify(geometry: Geometry, maxSegmentLength: number, maxSegmentLengthUnit: string | number): IPromise; - difference(inputGeometry: Geometry | Geometry[], subtractor: Geometry): IPromise; - disjoint(geometry1: Geometry, geometry2: Geometry): IPromise; - distance(geometry1: Geometry, geometry2: Geometry, distanceUnit: string | number): IPromise; - equals(geometry1: Geometry, geometry2: Geometry): IPromise; - extendedSpatialReferenceInfo(spatialReference: SpatialReference): IPromise; - flipHorizontal(geometry: Geometry, flipOrigin?: Point): IPromise; - flipVertical(geometry: Geometry, flipOrigin?: Point): IPromise; - generalize(geometry: Geometry, maxDeviation: number, removeDegenerateParts?: boolean, maxDeviationUnit?: string | number): IPromise; - geodesicArea(geometry: Polygon, unit: string | number): IPromise; - geodesicBuffer(geometry: Geometry | Geometry[], distance: number | number[], unit: string | number, unionResults?: boolean): IPromise; - geodesicDensify(geometry: Polyline | Polygon, maxSegmentLength: number, maxSegmentLengthUnit: string | number): IPromise; - geodesicLength(geometry: Geometry, unit: string | number): IPromise; - intersect(geometry: Geometry | Geometry[], intersector: Geometry): IPromise; - intersects(geometry1: Geometry, geometry2: Geometry): IPromise; - isSimple(geometry: Geometry): IPromise; - nearestCoordinate(geometry: Geometry, inputPoint: Point): IPromise; - nearestVertex(geometry: Geometry, inputPoint: Point): IPromise; - nearestVertices(geometry: Geometry, inputPoint: Point, searchRadius: number, maxVertexCountToReturn: number): IPromise; - offset(geometry: Geometry | Geometry[], offsetDistance: number, offsetUnit: string | number, joinType: string, bevelRatio?: number, flattenError?: number): IPromise; - overlaps(geometry1: Geometry, geometry2: Geometry): IPromise; - planarArea(geometry: Polygon, unit: string | number): IPromise; - planarLength(geometry: Geometry, unit: string | number): IPromise; - relate(geometry1: Geometry, geometry2: Geometry, relation: string): IPromise; - rotate(geometry: Geometry, angle: number, rotationOrigin?: Point): IPromise; - simplify(geometry: Geometry): IPromise; - symmetricDifference(leftGeometry: Geometry | Geometry[], rightGeometry: Geometry): IPromise; - touches(geometry1: Geometry, geometry2: Geometry): IPromise; - union(geometries: Geometry[]): IPromise; - within(geometry1: Geometry, geometry2: Geometry): IPromise; - } - - export const geometryEngineAsync: geometryEngineAsync; - - interface jsonUtils { - fromJSON(json: any): Geometry; - getJsonType(geometry: Geometry): string; - } - - export const jsonUtils: jsonUtils; - - interface normalizeUtils { - normalizeCentralMeridian(geometries: Geometry[], geometryService?: GeometryService): IPromise; - } - - export const normalizeUtils: normalizeUtils; - - interface webMercatorUtils { - canProject(source: SpatialReference | any, target: SpatialReference | any): boolean; - geographicToWebMercator(geometry: Geometry): Geometry; - lngLatToXY(long: number, lat: number): number[]; - project(geometry: Geometry, spatialReference: SpatialReference | any): Geometry; - webMercatorToGeographic(geometry: Geometry): Geometry; - xyToLngLat(x: number, y: number): number[]; - } - - export const webMercatorUtils: webMercatorUtils; - - interface color { - createContinuousRenderer(params: colorCreateContinuousRendererParams): IPromise; - createVisualVariable(params: colorCreateVisualVariableParams): IPromise; - } - - export const color: color; - - interface location { - createRenderer(params: locationCreateRendererParams): IPromise; - } - - export const location: location; - - interface size { - createContinuousRenderer(params: sizeCreateContinuousRendererParams): IPromise; - createVisualVariables(params: sizeCreateVisualVariablesParams): IPromise; - } - - export const size: size; - - interface type { - createRenderer(params: typeCreateRendererParams): IPromise; - } - - export const type: type; - - interface univariateColorSize { - createContinuousRenderer(params: univariateColorSizeCreateContinuousRendererParams): IPromise; - createVisualVariables(params: univariateColorSizeCreateVisualVariablesParams): IPromise; - } - - export const univariateColorSize: univariateColorSize; - - interface classBreaks { - classBreaks(params: classBreaksClassBreaksParams): IPromise; - } - - const __classBreaksMapped: classBreaks; - export const classBreaks: typeof __classBreaksMapped.classBreaks; - - - interface histogram { - histogram(params: histogramHistogramParams): IPromise; - } - - const __histogramMapped: histogram; - export const histogram: typeof __histogramMapped.histogram; - - - interface summaryStatistics { - summaryStatistics(params: summaryStatisticsSummaryStatisticsParams): IPromise; - } - - const __summaryStatisticsMapped: summaryStatistics; - export const summaryStatistics: typeof __summaryStatisticsMapped.summaryStatistics; - - - interface uniqueValues { - uniqueValues(params: uniqueValuesUniqueValuesParams): IPromise; - } - - const __uniqueValuesMapped: uniqueValues; - export const uniqueValues: typeof __uniqueValuesMapped.uniqueValues; - - - interface symbologyColor { - cloneScheme(scheme: any): any; - flipColors(scheme: any): any; - getSchemes(params: colorGetSchemesParams): any; - getThemes(basemap?: string | Basemap): any[]; - } - - export const symbologyColor: symbologyColor; - - interface symbologyLocation { - cloneScheme(scheme: any | any | any): any | any | any; - getSchemes(params: locationGetSchemesParams): any; - } - - export const symbologyLocation: symbologyLocation; - - interface symbologySize { - cloneScheme(scheme: any | any | any): any; - getSchemes(params: sizeGetSchemesParams): any; - } - - export const symbologySize: symbologySize; - - interface symbologyType { - cloneScheme(scheme: any | any | any): any; - getSchemes(params: typeGetSchemesParams): any; - } - - export const symbologyType: symbologyType; - - interface supportJsonUtils { - fromJSON(json: any): Renderer; - } - - export const supportJsonUtils: supportJsonUtils; - - interface symbolsSupportJsonUtils { - fromJSON(json: any): Symbol; - } - - export const symbolsSupportJsonUtils: symbolsSupportJsonUtils; - - interface externalRenderers { - add(view: SceneView, renderer: any): void; - fromRenderCoordinates(view: SceneView, srcCoordinates: number[], srcStart: number, destCoordinates: number[], destStart: number, destSpatialReference: SpatialReference, count: number): number[]; - remove(view: SceneView, renderer: any): void; - renderCoordinateTransformAt(view: SceneView, origin: number[], srcSpatialReference: SpatialReference, dest: number[]): number[]; - requestRender(view: SceneView): void; - toRenderCoordinates(view: SceneView, srcCoordinates: number[], srcStart: number, srcSpatialReference: SpatialReference, destCoordinates: number[], destStart: number, count: number): number[]; - } - - export const externalRenderers: externalRenderers; - - interface widget { - accessibleHandler(): Function; - join(...classNames: string[]): string; - renderable(propertyName?: string | string[]): Function; - tsx(selector: string, properties?: any, children?: any): any; - vmEvent(eventNames: string | string[]): Function; - } - - export const widget: widget; - - interface BasemapGalleryItem { - basemap: Basemap; - error: Error; - state: string; - view: MapView | SceneView; - } - - export const BasemapGalleryItem: BasemapGalleryItem; - - interface LocalBasemapsSource { - basemaps: Collection; - state: string; - } - - export const LocalBasemapsSource: LocalBasemapsSource; - - interface PortalBasemapsSource { - basemaps: Collection; - filterFunction: Function; - portal: Portal; - state: string; - } - - export const PortalBasemapsSource: PortalBasemapsSource; -} - -declare module "esri" { - export import PromisedWatchHandle = __esri.PromisedWatchHandle; - export import ItemCallback = __esri.ItemCallback; - - export import ItemCompareCallback = __esri.ItemCompareCallback; - - export import ItemMapCallback = __esri.ItemMapCallback; - - export import ItemReduceCallback = __esri.ItemReduceCallback; - - export import ItemTestCallback = __esri.ItemTestCallback; - - export import PortalItemFetchRelatedItemsParams = __esri.PortalItemFetchRelatedItemsParams; - - export import PortalItemUpdateParams = __esri.PortalItemUpdateParams; - - export import PortalUserAddItemParams = __esri.PortalUserAddItemParams; - - export import PortalUserFetchItemsParams = __esri.PortalUserFetchItemsParams; - - export import PortalFeaturedGroups = __esri.PortalFeaturedGroups; - - export import GroundQueryElevationOptions = __esri.GroundQueryElevationOptions; - - export import PopupTemplateExpressionInfos = __esri.PopupTemplateExpressionInfos; - - export import PopupTemplateFieldInfos = __esri.PopupTemplateFieldInfos; - - export import PopupTemplateFieldInfosFormat = __esri.PopupTemplateFieldInfosFormat; - - export import FeatureLayerApplyEditsEdits = __esri.FeatureLayerApplyEditsEdits; - - export import FeatureLayerCapabilities = __esri.FeatureLayerCapabilities; - - export import FeatureLayerCapabilitiesData = __esri.FeatureLayerCapabilitiesData; - - export import FeatureLayerCapabilitiesEditing = __esri.FeatureLayerCapabilitiesEditing; - - export import FeatureLayerCapabilitiesOperations = __esri.FeatureLayerCapabilitiesOperations; - - export import FeatureLayerCapabilitiesQuery = __esri.FeatureLayerCapabilitiesQuery; - - export import FeatureLayerCapabilitiesQueryRelated = __esri.FeatureLayerCapabilitiesQueryRelated; - - export import FeatureLayerElevationInfo = __esri.FeatureLayerElevationInfo; - - export import FeatureLayerFeatureReduction = __esri.FeatureLayerFeatureReduction; - - export import FeatureLayerGetFieldDomainOptions = __esri.FeatureLayerGetFieldDomainOptions; - - export import FeatureLayerLayerviewCreateEvent = __esri.FeatureLayerLayerviewCreateEvent; - - export import FeatureLayerLayerviewCreateEventHandler = __esri.FeatureLayerLayerviewCreateEventHandler; - - export import FeatureLayerLayerviewDestroyEvent = __esri.FeatureLayerLayerviewDestroyEvent; - - export import FeatureLayerLayerviewDestroyEventHandler = __esri.FeatureLayerLayerviewDestroyEventHandler; - - export import GraphicsLayerElevationInfo = __esri.GraphicsLayerElevationInfo; - - export import GraphicsLayerLayerviewCreateEvent = __esri.GraphicsLayerLayerviewCreateEvent; - - export import GraphicsLayerLayerviewCreateEventHandler = __esri.GraphicsLayerLayerviewCreateEventHandler; - - export import GraphicsLayerLayerviewDestroyEvent = __esri.GraphicsLayerLayerviewDestroyEvent; - - export import GraphicsLayerLayerviewDestroyEventHandler = __esri.GraphicsLayerLayerviewDestroyEventHandler; - - export import LayerFromArcGISServerUrlParams = __esri.LayerFromArcGISServerUrlParams; - - export import LayerFromPortalItemParams = __esri.LayerFromPortalItemParams; - - export import FeatureTemplateThumbnail = __esri.FeatureTemplateThumbnail; - - export import LabelClassLabelExpressionInfo = __esri.LabelClassLabelExpressionInfo; - - export import LabelSymbol3DVerticalOffsetProperties = __esri.LabelSymbol3DVerticalOffsetProperties; - export import LabelSymbol3DVerticalOffset = __esri.LabelSymbol3DVerticalOffset; - - export import QueryQuantizationParameters = __esri.QueryQuantizationParameters; - - export import ViewPadding = __esri.ViewPadding; - - export import WebMapSourceVersion = __esri.WebMapSourceVersion; - - export import WebSceneSaveAsOptions = __esri.WebSceneSaveAsOptions; - - export import WebSceneSaveOptions = __esri.WebSceneSaveOptions; - - export import WebSceneSourceVersion = __esri.WebSceneSourceVersion; - - export import WebSceneUpdateFromOptions = __esri.WebSceneUpdateFromOptions; - - export import EventHandler = __esri.EventHandler; - - export import SceneViewDragEventOrigin = __esri.SceneViewDragEventOrigin; - - export import SceneViewClickEvent = __esri.SceneViewClickEvent; - - export import SceneViewClickEventHandler = __esri.SceneViewClickEventHandler; - - export import SceneViewDoubleClickEvent = __esri.SceneViewDoubleClickEvent; - - export import SceneViewDoubleClickEventHandler = __esri.SceneViewDoubleClickEventHandler; - - export import SceneViewDragEvent = __esri.SceneViewDragEvent; - - export import SceneViewDragEventHandler = __esri.SceneViewDragEventHandler; - - export import EasingFunction = __esri.EasingFunction; - - export import SceneViewHoldEvent = __esri.SceneViewHoldEvent; - - export import SceneViewHoldEventHandler = __esri.SceneViewHoldEventHandler; - - export import SceneViewKeyDownEvent = __esri.SceneViewKeyDownEvent; - - export import SceneViewKeyDownEventHandler = __esri.SceneViewKeyDownEventHandler; - - export import SceneViewKeyUpEvent = __esri.SceneViewKeyUpEvent; - - export import SceneViewKeyUpEventHandler = __esri.SceneViewKeyUpEventHandler; - - export import SceneViewLayerviewCreateEvent = __esri.SceneViewLayerviewCreateEvent; - - export import SceneViewLayerviewCreateEventHandler = __esri.SceneViewLayerviewCreateEventHandler; - - export import SceneViewLayerviewDestroyEvent = __esri.SceneViewLayerviewDestroyEvent; - - export import SceneViewLayerviewDestroyEventHandler = __esri.SceneViewLayerviewDestroyEventHandler; - - export import SceneViewMouseWheelEvent = __esri.SceneViewMouseWheelEvent; - - export import SceneViewMouseWheelEventHandler = __esri.SceneViewMouseWheelEventHandler; - - export import SceneViewPointerDownEvent = __esri.SceneViewPointerDownEvent; - - export import SceneViewPointerDownEventHandler = __esri.SceneViewPointerDownEventHandler; - - export import SceneViewPointerMoveEvent = __esri.SceneViewPointerMoveEvent; - - export import SceneViewPointerMoveEventHandler = __esri.SceneViewPointerMoveEventHandler; - - export import SceneViewPointerUpEvent = __esri.SceneViewPointerUpEvent; - - export import SceneViewPointerUpEventHandler = __esri.SceneViewPointerUpEventHandler; - - export import SceneViewResizeEvent = __esri.SceneViewResizeEvent; - - export import SceneViewResizeEventHandler = __esri.SceneViewResizeEventHandler; - - export import SceneViewConstraintsProperties = __esri.SceneViewConstraintsProperties; - export import SceneViewConstraints = __esri.SceneViewConstraints; - - export import SceneViewConstraintsAltitudeProperties = __esri.SceneViewConstraintsAltitudeProperties; - export import SceneViewConstraintsAltitude = __esri.SceneViewConstraintsAltitude; - - export import SceneViewConstraintsClipDistanceProperties = __esri.SceneViewConstraintsClipDistanceProperties; - export import SceneViewConstraintsClipDistance = __esri.SceneViewConstraintsClipDistance; - - export import SceneViewConstraintsCollision = __esri.SceneViewConstraintsCollision; - - export import SceneViewConstraintsTiltProperties = __esri.SceneViewConstraintsTiltProperties; - export import SceneViewConstraintsTilt = __esri.SceneViewConstraintsTilt; - - export import SceneViewEnvironmentProperties = __esri.SceneViewEnvironmentProperties; - export import SceneViewEnvironment = __esri.SceneViewEnvironment; - - export import SceneViewEnvironmentAtmosphereProperties = __esri.SceneViewEnvironmentAtmosphereProperties; - export import SceneViewEnvironmentAtmosphere = __esri.SceneViewEnvironmentAtmosphere; - - export import SceneViewEnvironmentLightingProperties = __esri.SceneViewEnvironmentLightingProperties; - export import SceneViewEnvironmentLighting = __esri.SceneViewEnvironmentLighting; - - export import SceneViewGoToOptions = __esri.SceneViewGoToOptions; - - export import SceneViewHighlightOptions = __esri.SceneViewHighlightOptions; - - export import SceneViewHitTestScreenPoint = __esri.SceneViewHitTestScreenPoint; - - export import SceneViewToMapScreenPoint = __esri.SceneViewToMapScreenPoint; - - export import WatchHandle = __esri.WatchHandle; - - export import WatchCallback = __esri.WatchCallback; - - export import IdentityManagerBaseGenerateTokenOptions = __esri.IdentityManagerBaseGenerateTokenOptions; - - export import IdentityManagerBaseGetCredentialOptions = __esri.IdentityManagerBaseGetCredentialOptions; - - export import IdentityManagerBaseOAuthSignInOptions = __esri.IdentityManagerBaseOAuthSignInOptions; - - export import IdentityManagerBaseRegisterTokenProperties = __esri.IdentityManagerBaseRegisterTokenProperties; - - export import IdentityManagerBaseSetProtocolErrorHandlerHandlerFunction = __esri.IdentityManagerBaseSetProtocolErrorHandlerHandlerFunction; - - export import IdentityManagerBaseSetRedirectionHandlerHandlerFunction = __esri.IdentityManagerBaseSetRedirectionHandlerHandlerFunction; - - export import IdentityManagerBaseSignInOptions = __esri.IdentityManagerBaseSignInOptions; - - export import IdentityManagerCredentialCreateEvent = __esri.IdentityManagerCredentialCreateEvent; - - export import IdentityManagerCredentialCreateEventHandler = __esri.IdentityManagerCredentialCreateEventHandler; - - export import IdentityManagerCredentialsDestroyEvent = __esri.IdentityManagerCredentialsDestroyEvent; - - export import IdentityManagerCredentialsDestroyEventHandler = __esri.IdentityManagerCredentialsDestroyEventHandler; - - export import HandlerCallback = __esri.HandlerCallback; - - export import BaseElevationLayerFetchTileOptions = __esri.BaseElevationLayerFetchTileOptions; - - export import BaseElevationLayerLayerviewCreateEvent = __esri.BaseElevationLayerLayerviewCreateEvent; - - export import BaseElevationLayerLayerviewCreateEventHandler = __esri.BaseElevationLayerLayerviewCreateEventHandler; - - export import BaseElevationLayerLayerviewDestroyEvent = __esri.BaseElevationLayerLayerviewDestroyEvent; - - export import BaseElevationLayerLayerviewDestroyEventHandler = __esri.BaseElevationLayerLayerviewDestroyEventHandler; - - export import CSVLayerElevationInfo = __esri.CSVLayerElevationInfo; - - export import CSVLayerFeatureReduction = __esri.CSVLayerFeatureReduction; - - export import CSVLayerLayerviewCreateEvent = __esri.CSVLayerLayerviewCreateEvent; - - export import CSVLayerLayerviewCreateEventHandler = __esri.CSVLayerLayerviewCreateEventHandler; - - export import CSVLayerLayerviewDestroyEvent = __esri.CSVLayerLayerviewDestroyEvent; - - export import CSVLayerLayerviewDestroyEventHandler = __esri.CSVLayerLayerviewDestroyEventHandler; - - export import ElevationLayerQueryElevationOptions = __esri.ElevationLayerQueryElevationOptions; - - export import ElevationLayerLayerviewCreateEvent = __esri.ElevationLayerLayerviewCreateEvent; - - export import ElevationLayerLayerviewCreateEventHandler = __esri.ElevationLayerLayerviewCreateEventHandler; - - export import ElevationLayerLayerviewDestroyEvent = __esri.ElevationLayerLayerviewDestroyEvent; - - export import ElevationLayerLayerviewDestroyEventHandler = __esri.ElevationLayerLayerviewDestroyEventHandler; - - export import GeoRSSLayerLayerviewCreateEvent = __esri.GeoRSSLayerLayerviewCreateEvent; - - export import GeoRSSLayerLayerviewCreateEventHandler = __esri.GeoRSSLayerLayerviewCreateEventHandler; - - export import GeoRSSLayerLayerviewDestroyEvent = __esri.GeoRSSLayerLayerviewDestroyEvent; - - export import GeoRSSLayerLayerviewDestroyEventHandler = __esri.GeoRSSLayerLayerviewDestroyEventHandler; - - export import GroupLayerLayerviewCreateEvent = __esri.GroupLayerLayerviewCreateEvent; - - export import GroupLayerLayerviewCreateEventHandler = __esri.GroupLayerLayerviewCreateEventHandler; - - export import GroupLayerLayerviewDestroyEvent = __esri.GroupLayerLayerviewDestroyEvent; - - export import GroupLayerLayerviewDestroyEventHandler = __esri.GroupLayerLayerviewDestroyEventHandler; - - export import ImageryLayerLayerviewCreateEvent = __esri.ImageryLayerLayerviewCreateEvent; - - export import ImageryLayerLayerviewCreateEventHandler = __esri.ImageryLayerLayerviewCreateEventHandler; - - export import ImageryLayerLayerviewDestroyEvent = __esri.ImageryLayerLayerviewDestroyEvent; - - export import ImageryLayerLayerviewDestroyEventHandler = __esri.ImageryLayerLayerviewDestroyEventHandler; - - export import IntegratedMeshLayerLayerviewCreateEvent = __esri.IntegratedMeshLayerLayerviewCreateEvent; - - export import IntegratedMeshLayerLayerviewCreateEventHandler = __esri.IntegratedMeshLayerLayerviewCreateEventHandler; - - export import IntegratedMeshLayerLayerviewDestroyEvent = __esri.IntegratedMeshLayerLayerviewDestroyEvent; - - export import IntegratedMeshLayerLayerviewDestroyEventHandler = __esri.IntegratedMeshLayerLayerviewDestroyEventHandler; - - export import MapImageLayerLayerviewCreateEvent = __esri.MapImageLayerLayerviewCreateEvent; - - export import MapImageLayerLayerviewCreateEventHandler = __esri.MapImageLayerLayerviewCreateEventHandler; - - export import MapImageLayerLayerviewDestroyEvent = __esri.MapImageLayerLayerviewDestroyEvent; - - export import MapImageLayerLayerviewDestroyEventHandler = __esri.MapImageLayerLayerviewDestroyEventHandler; - - export import MapNotesLayerLayerviewCreateEvent = __esri.MapNotesLayerLayerviewCreateEvent; - - export import MapNotesLayerLayerviewCreateEventHandler = __esri.MapNotesLayerLayerviewCreateEventHandler; - - export import MapNotesLayerLayerviewDestroyEvent = __esri.MapNotesLayerLayerviewDestroyEvent; - - export import MapNotesLayerLayerviewDestroyEventHandler = __esri.MapNotesLayerLayerviewDestroyEventHandler; - - export import OpenStreetMapLayerLayerviewCreateEvent = __esri.OpenStreetMapLayerLayerviewCreateEvent; - - export import OpenStreetMapLayerLayerviewCreateEventHandler = __esri.OpenStreetMapLayerLayerviewCreateEventHandler; - - export import OpenStreetMapLayerLayerviewDestroyEvent = __esri.OpenStreetMapLayerLayerviewDestroyEvent; - - export import OpenStreetMapLayerLayerviewDestroyEventHandler = __esri.OpenStreetMapLayerLayerviewDestroyEventHandler; - - export import PointCloudLayerLayerviewCreateEvent = __esri.PointCloudLayerLayerviewCreateEvent; - - export import PointCloudLayerLayerviewCreateEventHandler = __esri.PointCloudLayerLayerviewCreateEventHandler; - - export import PointCloudLayerLayerviewDestroyEvent = __esri.PointCloudLayerLayerviewDestroyEvent; - - export import PointCloudLayerLayerviewDestroyEventHandler = __esri.PointCloudLayerLayerviewDestroyEventHandler; - - export import PointCloudLayerElevationInfo = __esri.PointCloudLayerElevationInfo; - - export import PointCloudRendererColorModulation = __esri.PointCloudRendererColorModulation; - - export import PointCloudRendererPointSizeAlgorithm = __esri.PointCloudRendererPointSizeAlgorithm; - - export import SceneLayerLayerviewCreateEvent = __esri.SceneLayerLayerviewCreateEvent; - - export import SceneLayerLayerviewCreateEventHandler = __esri.SceneLayerLayerviewCreateEventHandler; - - export import SceneLayerLayerviewDestroyEvent = __esri.SceneLayerLayerviewDestroyEvent; - - export import SceneLayerLayerviewDestroyEventHandler = __esri.SceneLayerLayerviewDestroyEventHandler; - - export import SceneLayerElevationInfo = __esri.SceneLayerElevationInfo; - - export import SceneLayerFeatureReduction = __esri.SceneLayerFeatureReduction; - - export import StreamLayerLayerviewCreateEvent = __esri.StreamLayerLayerviewCreateEvent; - - export import StreamLayerLayerviewCreateEventHandler = __esri.StreamLayerLayerviewCreateEventHandler; - - export import StreamLayerLayerviewDestroyEvent = __esri.StreamLayerLayerviewDestroyEvent; - - export import StreamLayerLayerviewDestroyEventHandler = __esri.StreamLayerLayerviewDestroyEventHandler; - - export import StreamLayerFilter = __esri.StreamLayerFilter; - - export import StreamLayerPurgeOptions = __esri.StreamLayerPurgeOptions; - - export import StreamLayerUpdateFilterFilterChanges = __esri.StreamLayerUpdateFilterFilterChanges; - - export import TileLayerLayerviewCreateEvent = __esri.TileLayerLayerviewCreateEvent; - - export import TileLayerLayerviewCreateEventHandler = __esri.TileLayerLayerviewCreateEventHandler; - - export import TileLayerLayerviewDestroyEvent = __esri.TileLayerLayerviewDestroyEvent; - - export import TileLayerLayerviewDestroyEventHandler = __esri.TileLayerLayerviewDestroyEventHandler; - - export import TileLayerFetchTileOptions = __esri.TileLayerFetchTileOptions; - - export import UnknownLayerLayerviewCreateEvent = __esri.UnknownLayerLayerviewCreateEvent; - - export import UnknownLayerLayerviewCreateEventHandler = __esri.UnknownLayerLayerviewCreateEventHandler; - - export import UnknownLayerLayerviewDestroyEvent = __esri.UnknownLayerLayerviewDestroyEvent; - - export import UnknownLayerLayerviewDestroyEventHandler = __esri.UnknownLayerLayerviewDestroyEventHandler; - - export import UnsupportedLayerLayerviewCreateEvent = __esri.UnsupportedLayerLayerviewCreateEvent; - - export import UnsupportedLayerLayerviewCreateEventHandler = __esri.UnsupportedLayerLayerviewCreateEventHandler; - - export import UnsupportedLayerLayerviewDestroyEvent = __esri.UnsupportedLayerLayerviewDestroyEvent; - - export import UnsupportedLayerLayerviewDestroyEventHandler = __esri.UnsupportedLayerLayerviewDestroyEventHandler; - - export import VectorTileLayerLayerviewCreateEvent = __esri.VectorTileLayerLayerviewCreateEvent; - - export import VectorTileLayerLayerviewCreateEventHandler = __esri.VectorTileLayerLayerviewCreateEventHandler; - - export import VectorTileLayerLayerviewDestroyEvent = __esri.VectorTileLayerLayerviewDestroyEvent; - - export import VectorTileLayerLayerviewDestroyEventHandler = __esri.VectorTileLayerLayerviewDestroyEventHandler; - - export import VectorTileLayerCurrentStyleInfo = __esri.VectorTileLayerCurrentStyleInfo; - - export import WebTileLayerLayerviewCreateEvent = __esri.WebTileLayerLayerviewCreateEvent; - - export import WebTileLayerLayerviewCreateEventHandler = __esri.WebTileLayerLayerviewCreateEventHandler; - - export import WebTileLayerLayerviewDestroyEvent = __esri.WebTileLayerLayerviewDestroyEvent; - - export import WebTileLayerLayerviewDestroyEventHandler = __esri.WebTileLayerLayerviewDestroyEventHandler; - - export import WMSLayerLayerviewCreateEvent = __esri.WMSLayerLayerviewCreateEvent; - - export import WMSLayerLayerviewCreateEventHandler = __esri.WMSLayerLayerviewCreateEventHandler; - - export import WMSLayerLayerviewDestroyEvent = __esri.WMSLayerLayerviewDestroyEvent; - - export import WMSLayerLayerviewDestroyEventHandler = __esri.WMSLayerLayerviewDestroyEventHandler; - - export import WMSLayerFetchImageOptions = __esri.WMSLayerFetchImageOptions; - - export import WMTSLayerLayerviewCreateEvent = __esri.WMTSLayerLayerviewCreateEvent; - - export import WMTSLayerLayerviewCreateEventHandler = __esri.WMTSLayerLayerviewCreateEventHandler; - - export import WMTSLayerLayerviewDestroyEvent = __esri.WMTSLayerLayerviewDestroyEvent; - - export import WMTSLayerLayerviewDestroyEventHandler = __esri.WMTSLayerLayerviewDestroyEventHandler; - - export import BaseDynamicLayerFetchImageOptions = __esri.BaseDynamicLayerFetchImageOptions; - - export import BaseDynamicLayerLayerviewCreateEvent = __esri.BaseDynamicLayerLayerviewCreateEvent; - - export import BaseDynamicLayerLayerviewCreateEventHandler = __esri.BaseDynamicLayerLayerviewCreateEventHandler; - - export import BaseDynamicLayerLayerviewDestroyEvent = __esri.BaseDynamicLayerLayerviewDestroyEvent; - - export import BaseDynamicLayerLayerviewDestroyEventHandler = __esri.BaseDynamicLayerLayerviewDestroyEventHandler; - - export import BaseTileLayerFetchTileOptions = __esri.BaseTileLayerFetchTileOptions; - - export import BaseTileLayerLayerviewCreateEvent = __esri.BaseTileLayerLayerviewCreateEvent; - - export import BaseTileLayerLayerviewCreateEventHandler = __esri.BaseTileLayerLayerviewCreateEventHandler; - - export import BaseTileLayerLayerviewDestroyEvent = __esri.BaseTileLayerLayerviewDestroyEvent; - - export import BaseTileLayerLayerviewDestroyEventHandler = __esri.BaseTileLayerLayerviewDestroyEventHandler; - - export import CodedValueDomainCodedValues = __esri.CodedValueDomainCodedValues; - - export import PixelBlockAddDataPlaneData = __esri.PixelBlockAddDataPlaneData; - - export import PixelBlockStatistics = __esri.PixelBlockStatistics; - - export import ClassBreaksRendererClassBreakInfos = __esri.ClassBreaksRendererClassBreakInfos; - - export import ClassBreaksRendererLegendOptions = __esri.ClassBreaksRendererLegendOptions; - - export import UniqueValueRendererLegendOptions = __esri.UniqueValueRendererLegendOptions; - - export import UniqueValueRendererUniqueValueInfos = __esri.UniqueValueRendererUniqueValueInfos; - - export import PointCloudClassBreaksRendererColorClassBreakInfos = __esri.PointCloudClassBreaksRendererColorClassBreakInfos; - - export import PointCloudStretchRendererStops = __esri.PointCloudStretchRendererStops; - - export import PointCloudUniqueValueRendererColorUniqueValueInfos = __esri.PointCloudUniqueValueRendererColorUniqueValueInfos; - - export import FillSymbol3DLayerOutline = __esri.FillSymbol3DLayerOutline; - - export import IconSymbol3DLayerOutline = __esri.IconSymbol3DLayerOutline; - - export import IconSymbol3DLayerResource = __esri.IconSymbol3DLayerResource; - - export import ObjectSymbol3DLayerResource = __esri.ObjectSymbol3DLayerResource; - - export import PointSymbol3DVerticalOffsetProperties = __esri.PointSymbol3DVerticalOffsetProperties; - export import PointSymbol3DVerticalOffset = __esri.PointSymbol3DVerticalOffset; - - export import Symbol3DStyleOrigin = __esri.Symbol3DStyleOrigin; - - export import TextSymbol3DLayerFont = __esri.TextSymbol3DLayerFont; - - export import TextSymbol3DLayerHalo = __esri.TextSymbol3DLayerHalo; - - export import LineCallout3DBorderProperties = __esri.LineCallout3DBorderProperties; - export import LineCallout3DBorder = __esri.LineCallout3DBorder; - - export import ClosestFacilityParametersAttributeParameterValues = __esri.ClosestFacilityParametersAttributeParameterValues; - - export import GeometryServiceFromGeoCoordinateStringParams = __esri.GeometryServiceFromGeoCoordinateStringParams; - - export import GeometryServiceToGeoCoordinateStringParams = __esri.GeometryServiceToGeoCoordinateStringParams; - - export import ProjectParametersTransformation = __esri.ProjectParametersTransformation; - - export import LocatorAddressToLocationsParams = __esri.LocatorAddressToLocationsParams; - - export import LocatorAddressesToLocationsParams = __esri.LocatorAddressesToLocationsParams; - - export import LocatorSuggestLocationsParams = __esri.LocatorSuggestLocationsParams; - - export import PrintTemplateExportOptions = __esri.PrintTemplateExportOptions; - - export import PrintTemplateLayoutOptions = __esri.PrintTemplateLayoutOptions; - - export import MapViewDragEventOrigin = __esri.MapViewDragEventOrigin; - - export import MapViewClickEvent = __esri.MapViewClickEvent; - - export import MapViewClickEventHandler = __esri.MapViewClickEventHandler; - - export import MapViewDoubleClickEvent = __esri.MapViewDoubleClickEvent; - - export import MapViewDoubleClickEventHandler = __esri.MapViewDoubleClickEventHandler; - - export import MapViewDragEvent = __esri.MapViewDragEvent; - - export import MapViewDragEventHandler = __esri.MapViewDragEventHandler; - - export import MapViewHoldEvent = __esri.MapViewHoldEvent; - - export import MapViewHoldEventHandler = __esri.MapViewHoldEventHandler; - - export import MapViewKeyDownEvent = __esri.MapViewKeyDownEvent; - - export import MapViewKeyDownEventHandler = __esri.MapViewKeyDownEventHandler; - - export import MapViewKeyUpEvent = __esri.MapViewKeyUpEvent; - - export import MapViewKeyUpEventHandler = __esri.MapViewKeyUpEventHandler; - - export import MapViewLayerviewCreateEvent = __esri.MapViewLayerviewCreateEvent; - - export import MapViewLayerviewCreateEventHandler = __esri.MapViewLayerviewCreateEventHandler; - - export import MapViewLayerviewDestroyEvent = __esri.MapViewLayerviewDestroyEvent; - - export import MapViewLayerviewDestroyEventHandler = __esri.MapViewLayerviewDestroyEventHandler; - - export import MapViewConstraints = __esri.MapViewConstraints; - - export import MapViewGoToOptions = __esri.MapViewGoToOptions; - - export import MapViewHitTestScreenPoint = __esri.MapViewHitTestScreenPoint; - - export import MapViewToMapScreenPoint = __esri.MapViewToMapScreenPoint; - - export import MapViewMouseWheelEvent = __esri.MapViewMouseWheelEvent; - - export import MapViewMouseWheelEventHandler = __esri.MapViewMouseWheelEventHandler; - - export import MapViewPointerDownEvent = __esri.MapViewPointerDownEvent; - - export import MapViewPointerDownEventHandler = __esri.MapViewPointerDownEventHandler; - - export import MapViewPointerMoveEvent = __esri.MapViewPointerMoveEvent; - - export import MapViewPointerMoveEventHandler = __esri.MapViewPointerMoveEventHandler; - - export import MapViewPointerUpEvent = __esri.MapViewPointerUpEvent; - - export import MapViewPointerUpEventHandler = __esri.MapViewPointerUpEventHandler; - - export import MapViewResizeEvent = __esri.MapViewResizeEvent; - - export import MapViewResizeEventHandler = __esri.MapViewResizeEventHandler; - - export import AttributeParamValue = __esri.AttributeParamValue; - - export import ConfigurationTaskGetDataWorkspaceDetailsParams = __esri.ConfigurationTaskGetDataWorkspaceDetailsParams; - - export import ConfigurationTaskGetUserJobQueryDetailsParams = __esri.ConfigurationTaskGetUserJobQueryDetailsParams; - - export import AuxRecordDescription = __esri.AuxRecordDescription; - - export import JobCreationParameters = __esri.JobCreationParameters; - - export import JobQueryParameters = __esri.JobQueryParameters; - - export import JobTaskAddEmbeddedAttachmentParams = __esri.JobTaskAddEmbeddedAttachmentParams; - - export import JobTaskAddLinkedAttachmentParams = __esri.JobTaskAddLinkedAttachmentParams; - - export import JobTaskAddLinkedRecordParams = __esri.JobTaskAddLinkedRecordParams; - - export import JobTaskAssignJobsParams = __esri.JobTaskAssignJobsParams; - - export import JobTaskCloseJobsParams = __esri.JobTaskCloseJobsParams; - - export import JobTaskCreateDependencyParams = __esri.JobTaskCreateDependencyParams; - - export import JobTaskCreateHoldParams = __esri.JobTaskCreateHoldParams; - - export import JobTaskCreateJobVersionParams = __esri.JobTaskCreateJobVersionParams; - - export import JobTaskDeleteAttachmentParams = __esri.JobTaskDeleteAttachmentParams; - - export import JobTaskDeleteDependencyParams = __esri.JobTaskDeleteDependencyParams; - - export import JobTaskDeleteJobsParams = __esri.JobTaskDeleteJobsParams; - - export import JobTaskDeleteLinkedRecordParams = __esri.JobTaskDeleteLinkedRecordParams; - - export import JobTaskGetAttachmentContentUrlParams = __esri.JobTaskGetAttachmentContentUrlParams; - - export import JobTaskListFieldValuesParams = __esri.JobTaskListFieldValuesParams; - - export import JobTaskListMultiLevelFieldValuesParams = __esri.JobTaskListMultiLevelFieldValuesParams; - - export import JobTaskLogActionParams = __esri.JobTaskLogActionParams; - - export import JobTaskQueryJobsParams = __esri.JobTaskQueryJobsParams; - - export import JobTaskQueryMultiLevelSelectedValuesParams = __esri.JobTaskQueryMultiLevelSelectedValuesParams; - - export import JobTaskReleaseHoldParams = __esri.JobTaskReleaseHoldParams; - - export import JobTaskReopenClosedJobsParams = __esri.JobTaskReopenClosedJobsParams; - - export import JobTaskSearchJobsParams = __esri.JobTaskSearchJobsParams; - - export import JobTaskUnassignJobsParams = __esri.JobTaskUnassignJobsParams; - - export import JobTaskUpdateNotesParams = __esri.JobTaskUpdateNotesParams; - - export import JobTaskUpdateRecordParams = __esri.JobTaskUpdateRecordParams; - - export import JobUpdateParameters = __esri.JobUpdateParameters; - - export import ChangeRule = __esri.ChangeRule; - - export import NotificationTaskAddChangeRuleParams = __esri.NotificationTaskAddChangeRuleParams; - - export import NotificationTaskDeleteChangeRuleParams = __esri.NotificationTaskDeleteChangeRuleParams; - - export import NotificationTaskNotifySessionParams = __esri.NotificationTaskNotifySessionParams; - - export import NotificationTaskQueryChangeRulesParams = __esri.NotificationTaskQueryChangeRulesParams; - - export import NotificationTaskRunSpatialNotificationOnHistoryParams = __esri.NotificationTaskRunSpatialNotificationOnHistoryParams; - - export import NotificationTaskSendNotificationParams = __esri.NotificationTaskSendNotificationParams; - - export import NotificationTaskSubscribeToNotificationParams = __esri.NotificationTaskSubscribeToNotificationParams; - - export import NotificationTaskUnsubscribeFromNotificationParams = __esri.NotificationTaskUnsubscribeFromNotificationParams; - - export import ReportTaskGenerateReportParams = __esri.ReportTaskGenerateReportParams; - - export import ReportTaskGetReportContentUrlParams = __esri.ReportTaskGetReportContentUrlParams; - - export import ReportTaskGetReportDataParams = __esri.ReportTaskGetReportDataParams; - - export import TokenTaskParseTokensParams = __esri.TokenTaskParseTokensParams; - - export import WorkflowTaskCanRunStepParams = __esri.WorkflowTaskCanRunStepParams; - - export import WorkflowTaskExecuteStepsParams = __esri.WorkflowTaskExecuteStepsParams; - - export import WorkflowTaskGetStepDescriptionParams = __esri.WorkflowTaskGetStepDescriptionParams; - - export import WorkflowTaskGetStepFileUrlParams = __esri.WorkflowTaskGetStepFileUrlParams; - - export import WorkflowTaskGetStepParams = __esri.WorkflowTaskGetStepParams; - - export import WorkflowTaskMarkStepsAsDoneParams = __esri.WorkflowTaskMarkStepsAsDoneParams; - - export import WorkflowTaskMoveToNextStepParams = __esri.WorkflowTaskMoveToNextStepParams; - - export import WorkflowTaskRecreateWorkflowParams = __esri.WorkflowTaskRecreateWorkflowParams; - - export import WorkflowTaskResolveConflictParams = __esri.WorkflowTaskResolveConflictParams; - - export import WorkflowTaskSetCurrentStepParams = __esri.WorkflowTaskSetCurrentStepParams; - - export import ImageryLayerViewPixelData = __esri.ImageryLayerViewPixelData; - - export import StreamLayerViewDataReceivedEvent = __esri.StreamLayerViewDataReceivedEvent; - - export import StreamLayerViewDataReceivedEventHandler = __esri.StreamLayerViewDataReceivedEventHandler; - - export import StreamLayerViewFilter = __esri.StreamLayerViewFilter; - - export import StreamLayerViewUpdateFilterFilter = __esri.StreamLayerViewUpdateFilterFilter; - - export import SlideApplyToOptions = __esri.SlideApplyToOptions; - - export import SlideCreateFromOptions = __esri.SlideCreateFromOptions; - - export import SlideCreateFromOptionsScreenshot = __esri.SlideCreateFromOptionsScreenshot; - - export import SlideDescriptionProperties = __esri.SlideDescriptionProperties; - export import SlideDescription = __esri.SlideDescription; - - export import SlideThumbnailProperties = __esri.SlideThumbnailProperties; - export import SlideThumbnail = __esri.SlideThumbnail; - - export import SlideTitleProperties = __esri.SlideTitleProperties; - export import SlideTitle = __esri.SlideTitle; - - export import SlideUpdateFromOptions = __esri.SlideUpdateFromOptions; - - export import SlideUpdateFromOptionsScreenshot = __esri.SlideUpdateFromOptionsScreenshot; - - export import SlideVisibleLayers = __esri.SlideVisibleLayers; - - export import ColorSliderValues = __esri.ColorSliderValues; - - export import LegendLayerInfos = __esri.LegendLayerInfos; - - export import PopupDockOptions = __esri.PopupDockOptions; - - export import PopupOpenOptions = __esri.PopupOpenOptions; - - export import SearchViewModelSearchCompleteEventResults = __esri.SearchViewModelSearchCompleteEventResults; - - export import SearchViewModelSearchCompleteEventResultsResults = __esri.SearchViewModelSearchCompleteEventResultsResults; - - export import SearchViewModelSelectResultEventResult = __esri.SearchViewModelSelectResultEventResult; - - export import SearchViewModelSuggestCompleteEventResults = __esri.SearchViewModelSuggestCompleteEventResults; - - export import SearchViewModelSuggestCompleteEventResultsResults = __esri.SearchViewModelSuggestCompleteEventResultsResults; - - export import SearchViewModelLoadEvent = __esri.SearchViewModelLoadEvent; - - export import SearchViewModelLoadEventHandler = __esri.SearchViewModelLoadEventHandler; - - export import SearchViewModelSearchClearEvent = __esri.SearchViewModelSearchClearEvent; - - export import SearchViewModelSearchClearEventHandler = __esri.SearchViewModelSearchClearEventHandler; - - export import SearchViewModelSearchCompleteEvent = __esri.SearchViewModelSearchCompleteEvent; - - export import SearchViewModelSearchCompleteEventHandler = __esri.SearchViewModelSearchCompleteEventHandler; - - export import SearchViewModelSearchStartEvent = __esri.SearchViewModelSearchStartEvent; - - export import SearchViewModelSearchStartEventHandler = __esri.SearchViewModelSearchStartEventHandler; - - export import SearchViewModelSelectResultEvent = __esri.SearchViewModelSelectResultEvent; - - export import SearchViewModelSelectResultEventHandler = __esri.SearchViewModelSelectResultEventHandler; - - export import SearchViewModelSuggestCompleteEvent = __esri.SearchViewModelSuggestCompleteEvent; - - export import SearchViewModelSuggestCompleteEventHandler = __esri.SearchViewModelSuggestCompleteEventHandler; - - export import SearchViewModelSuggestStartEvent = __esri.SearchViewModelSuggestStartEvent; - - export import SearchViewModelSuggestStartEventHandler = __esri.SearchViewModelSuggestStartEventHandler; - - export import DynamicLayerFetchImageOptions = __esri.DynamicLayerFetchImageOptions; - - export import DynamicLayerGetImageUrlOptions = __esri.DynamicLayerGetImageUrlOptions; - - export import ArcGISDynamicMapServiceGetExportImageParametersOptions = __esri.ArcGISDynamicMapServiceGetExportImageParametersOptions; - - export import SceneServiceVersion = __esri.SceneServiceVersion; - - export import BreakpointsOwnerBreakpoints = __esri.BreakpointsOwnerBreakpoints; - - export import configRequest = __esri.configRequest; - - export import configRequestCorsEnabledServers = __esri.configRequestCorsEnabledServers; - - export import configRequestProxyRules = __esri.configRequestProxyRules; - - export import configWorkers = __esri.configWorkers; - - export import configWorkersLoaderConfig = __esri.configWorkersLoaderConfig; - - export import requestEsriRequestOptions = __esri.requestEsriRequestOptions; - - export import EachAlwaysResult = __esri.EachAlwaysResult; - - export import urlUtilsAddProxyRuleRule = __esri.urlUtilsAddProxyRuleRule; - - export import EventAttachedCallback = __esri.EventAttachedCallback; - - export import PausableWatchHandle = __esri.PausableWatchHandle; - - export import decoratorsPropertyPropertyMetadata = __esri.decoratorsPropertyPropertyMetadata; - - export import colorCreateContinuousRendererParams = __esri.colorCreateContinuousRendererParams; - - export import colorCreateContinuousRendererParamsLegendOptions = __esri.colorCreateContinuousRendererParamsLegendOptions; - - export import colorCreateVisualVariableParams = __esri.colorCreateVisualVariableParams; - - export import colorCreateVisualVariableParamsLegendOptions = __esri.colorCreateVisualVariableParamsLegendOptions; - - export import locationCreateRendererParams = __esri.locationCreateRendererParams; - - export import sizeCreateContinuousRendererParams = __esri.sizeCreateContinuousRendererParams; - - export import sizeCreateContinuousRendererParamsLegendOptions = __esri.sizeCreateContinuousRendererParamsLegendOptions; + export type OpenStreetMapLayerLayerviewCreateEventHandler = (event: OpenStreetMapLayerLayerviewCreateEvent) => void; - export import sizeCreateVisualVariablesParams = __esri.sizeCreateVisualVariablesParams; + export type OpenStreetMapLayerLayerviewDestroyEventHandler = (event: OpenStreetMapLayerLayerviewDestroyEvent) => void; - export import sizeCreateVisualVariablesParamsLegendOptions = __esri.sizeCreateVisualVariablesParamsLegendOptions; + export type PointCloudLayerLayerviewCreateEventHandler = (event: PointCloudLayerLayerviewCreateEvent) => void; - export import typeCreateRendererParams = __esri.typeCreateRendererParams; + export type PointCloudLayerLayerviewDestroyEventHandler = (event: PointCloudLayerLayerviewDestroyEvent) => void; - export import typeCreateRendererParamsLegendOptions = __esri.typeCreateRendererParamsLegendOptions; + export type PolygonDrawActionCursorUpdateEventHandler = (event: PolygonDrawActionCursorUpdateEvent) => void; - export import univariateColorSizeCreateContinuousRendererParams = __esri.univariateColorSizeCreateContinuousRendererParams; + export type PolygonDrawActionDrawCompleteEventHandler = (event: PolygonDrawActionDrawCompleteEvent) => void; - export import univariateColorSizeCreateContinuousRendererParamsColorOptions = __esri.univariateColorSizeCreateContinuousRendererParamsColorOptions; + export type PolygonDrawActionVertexAddEventHandler = (event: PolygonDrawActionVertexAddEvent) => void; - export import univariateColorSizeCreateContinuousRendererParamsColorOptionsLegendOptions = __esri.univariateColorSizeCreateContinuousRendererParamsColorOptionsLegendOptions; + export type PolygonDrawActionVertexRemoveEventHandler = (event: PolygonDrawActionVertexRemoveEvent) => void; - export import univariateColorSizeCreateContinuousRendererParamsSizeOptions = __esri.univariateColorSizeCreateContinuousRendererParamsSizeOptions; + export type PolylineDrawActionCursorUpdateEventHandler = (event: PolylineDrawActionCursorUpdateEvent) => void; - export import univariateColorSizeCreateContinuousRendererParamsSizeOptionsLegendOptions = __esri.univariateColorSizeCreateContinuousRendererParamsSizeOptionsLegendOptions; + export type PolylineDrawActionDrawCompleteEventHandler = (event: PolylineDrawActionDrawCompleteEvent) => void; - export import univariateColorSizeCreateVisualVariablesParams = __esri.univariateColorSizeCreateVisualVariablesParams; + export type PolylineDrawActionVertexAddEventHandler = (event: PolylineDrawActionVertexAddEvent) => void; - export import univariateColorSizeCreateVisualVariablesParamsColorOptions = __esri.univariateColorSizeCreateVisualVariablesParamsColorOptions; + export type PolylineDrawActionVertexRemoveEventHandler = (event: PolylineDrawActionVertexRemoveEvent) => void; - export import univariateColorSizeCreateVisualVariablesParamsColorOptionsLegendOptions = __esri.univariateColorSizeCreateVisualVariablesParamsColorOptionsLegendOptions; + export type SceneLayerLayerviewCreateEventHandler = (event: SceneLayerLayerviewCreateEvent) => void; - export import univariateColorSizeCreateVisualVariablesParamsSizeOptions = __esri.univariateColorSizeCreateVisualVariablesParamsSizeOptions; + export type SceneLayerLayerviewDestroyEventHandler = (event: SceneLayerLayerviewDestroyEvent) => void; - export import univariateColorSizeCreateVisualVariablesParamsSizeOptionsLegendOptions = __esri.univariateColorSizeCreateVisualVariablesParamsSizeOptionsLegendOptions; + export type SceneViewClickEventHandler = (event: SceneViewClickEvent) => void; - export import classBreaksClassBreaksParams = __esri.classBreaksClassBreaksParams; + export type SceneViewDoubleClickEventHandler = (event: SceneViewDoubleClickEvent) => void; - export import histogramHistogramParams = __esri.histogramHistogramParams; + export type SceneViewDragEventHandler = (event: SceneViewDragEvent) => void; - export import summaryStatisticsSummaryStatisticsParams = __esri.summaryStatisticsSummaryStatisticsParams; + export type SceneViewHoldEventHandler = (event: SceneViewHoldEvent) => void; - export import uniqueValuesUniqueValuesParams = __esri.uniqueValuesUniqueValuesParams; + export type SceneViewKeyDownEventHandler = (event: SceneViewKeyDownEvent) => void; - export import colorGetSchemesParams = __esri.colorGetSchemesParams; + export type SceneViewKeyUpEventHandler = (event: SceneViewKeyUpEvent) => void; - export import locationGetSchemesParams = __esri.locationGetSchemesParams; + export type SceneViewLayerviewCreateEventHandler = (event: SceneViewLayerviewCreateEvent) => void; - export import sizeGetSchemesParams = __esri.sizeGetSchemesParams; + export type SceneViewLayerviewDestroyEventHandler = (event: SceneViewLayerviewDestroyEvent) => void; - export import typeGetSchemesParams = __esri.typeGetSchemesParams; + export type SceneViewMouseWheelEventHandler = (event: SceneViewMouseWheelEvent) => void; - export import JobQuery = __esri.JobQuery; + export type SceneViewPointerDownEventHandler = (event: SceneViewPointerDownEvent) => void; - export import GroupMembership = __esri.GroupMembership; + export type SceneViewPointerMoveEventHandler = (event: SceneViewPointerMoveEvent) => void; - export import JobQueryContainer = __esri.JobQueryContainer; + export type SceneViewPointerUpEventHandler = (event: SceneViewPointerUpEvent) => void; - export import Privilege = __esri.Privilege; + export type SceneViewResizeEventHandler = (event: SceneViewResizeEvent) => void; - export import DataWorkspace = __esri.DataWorkspace; + export type SearchViewModelLoadEventHandler = (event: SearchViewModelLoadEvent) => void; - export import HoldType = __esri.HoldType; + export type SearchViewModelSearchClearEventHandler = (event: SearchViewModelSearchClearEvent) => void; - export import JobPriority = __esri.JobPriority; + export type SearchViewModelSearchCompleteEventHandler = (event: SearchViewModelSearchCompleteEvent) => void; - export import JobStatus = __esri.JobStatus; + export type SearchViewModelSearchStartEventHandler = (event: SearchViewModelSearchStartEvent) => void; - export import JobType = __esri.JobType; + export type SearchViewModelSelectResultEventHandler = (event: SearchViewModelSelectResultEvent) => void; - export import ActivityType = __esri.ActivityType; + export type SearchViewModelSuggestCompleteEventHandler = (event: SearchViewModelSuggestCompleteEvent) => void; - export import NotificationType = __esri.NotificationType; + export type SearchViewModelSuggestStartEventHandler = (event: SearchViewModelSuggestStartEvent) => void; - export import AuxRecord = __esri.AuxRecord; + export type StreamLayerLayerviewCreateEventHandler = (event: StreamLayerLayerviewCreateEvent) => void; - export import AuxRecordValue = __esri.AuxRecordValue; + export type StreamLayerLayerviewDestroyEventHandler = (event: StreamLayerLayerviewDestroyEvent) => void; - export import JobVersionInfo = __esri.JobVersionInfo; + export type StreamLayerViewDataReceivedEventHandler = (event: StreamLayerViewDataReceivedEvent) => void; - export import QueryFieldInfo = __esri.QueryFieldInfo; + export type TileLayerLayerviewCreateEventHandler = (event: TileLayerLayerviewCreateEvent) => void; - export import DatasetConfiguration = __esri.DatasetConfiguration; + export type TileLayerLayerviewDestroyEventHandler = (event: TileLayerLayerviewDestroyEvent) => void; - export import WhereCondition = __esri.WhereCondition; + export type UnknownLayerLayerviewCreateEventHandler = (event: UnknownLayerLayerviewCreateEvent) => void; - export import ReportDataGroup = __esri.ReportDataGroup; + export type UnknownLayerLayerviewDestroyEventHandler = (event: UnknownLayerLayerviewDestroyEvent) => void; - export import WorkflowConflicts = __esri.WorkflowConflicts; + export type UnsupportedLayerLayerviewCreateEventHandler = (event: UnsupportedLayerLayerviewCreateEvent) => void; - export import WorkflowOption = __esri.WorkflowOption; + export type UnsupportedLayerLayerviewDestroyEventHandler = (event: UnsupportedLayerLayerviewDestroyEvent) => void; - export import WorkflowStepInfo = __esri.WorkflowStepInfo; + export type VectorTileLayerLayerviewCreateEventHandler = (event: VectorTileLayerLayerviewCreateEvent) => void; - export import StepType = __esri.StepType; + export type VectorTileLayerLayerviewDestroyEventHandler = (event: VectorTileLayerLayerviewDestroyEvent) => void; - export import WorkflowAnnotationDisplayDetails = __esri.WorkflowAnnotationDisplayDetails; + export type WebTileLayerLayerviewCreateEventHandler = (event: WebTileLayerLayerviewCreateEvent) => void; - export import WorkflowPathDisplayDetails = __esri.WorkflowPathDisplayDetails; + export type WebTileLayerLayerviewDestroyEventHandler = (event: WebTileLayerLayerviewDestroyEvent) => void; - export import WorkflowStepDisplayDetails = __esri.WorkflowStepDisplayDetails; + export type WMSLayerLayerviewCreateEventHandler = (event: WMSLayerLayerviewCreateEvent) => void; - export import ColorAndIntensity = __esri.ColorAndIntensity; + export type WMSLayerLayerviewDestroyEventHandler = (event: WMSLayerLayerviewDestroyEvent) => void; - export import RenderCamera = __esri.RenderCamera; + export type WMTSLayerLayerviewCreateEventHandler = (event: WMTSLayerLayerviewCreateEvent) => void; - export import SunLight = __esri.SunLight; + export type WMTSLayerLayerviewDestroyEventHandler = (event: WMTSLayerLayerviewDestroyEvent) => void; } declare module "esri/Basemap" { @@ -10509,6 +11208,11 @@ declare module "esri/geometry/Geometry" { export = Geometry; } +declare module "esri/geometry/HeightModelInfo" { + import HeightModelInfo = __esri.HeightModelInfo; + export = HeightModelInfo; +} + declare module "esri/geometry/Multipoint" { import Multipoint = __esri.Multipoint; export = Multipoint; @@ -10609,6 +11313,11 @@ declare module "esri/layers/IntegratedMeshLayer" { export = IntegratedMeshLayer; } +declare module "esri/layers/KMLLayer" { + import KMLLayer = __esri.KMLLayer; + export = KMLLayer; +} + declare module "esri/layers/Layer" { import Layer = __esri.Layer; export = Layer; @@ -10729,6 +11438,11 @@ declare module "esri/layers/support/InheritedDomain" { export = InheritedDomain; } +declare module "esri/layers/support/KMLSublayer" { + import KMLSublayer = __esri.KMLSublayer; + export = KMLSublayer; +} + declare module "esri/layers/support/LabelClass" { import LabelClass = __esri.LabelClass; export = LabelClass; @@ -11379,6 +12093,26 @@ declare module "esri/views/ui/DefaultUI" { export = DefaultUI; } +declare module "esri/views/2d/draw/Draw" { + import Draw = __esri.Draw; + export = Draw; +} + +declare module "esri/views/2d/draw/PointDrawAction" { + import PointDrawAction = __esri.PointDrawAction; + export = PointDrawAction; +} + +declare module "esri/views/2d/draw/PolylineDrawAction" { + import PolylineDrawAction = __esri.PolylineDrawAction; + export = PolylineDrawAction; +} + +declare module "esri/views/2d/draw/PolygonDrawAction" { + import PolygonDrawAction = __esri.PolygonDrawAction; + export = PolygonDrawAction; +} + declare module "esri/webmap/InitialViewProperties" { import InitialViewProperties = __esri.InitialViewProperties; export = InitialViewProperties; @@ -11589,6 +12323,11 @@ declare module "esri/widgets/Zoom/ZoomViewModel" { export = ZoomViewModel; } +declare module "esri/widgets/Sketch/SketchViewModel" { + import SketchViewModel = __esri.SketchViewModel; + export = SketchViewModel; +} + declare module "esri/core/Evented" { import Evented = __esri.Evented; export = Evented; @@ -11699,6 +12438,11 @@ declare module "esri/request" { export = request; } +declare module "esri/core/Error" { + import Error = __esri.Error; + export = Error; +} + declare module "esri/core/lang" { import lang = __esri.lang; export = lang; diff --git a/types/arcgis-js-api/v3/index.d.ts b/types/arcgis-js-api/v3/index.d.ts index 0c30ae898d..de4328a957 100644 --- a/types/arcgis-js-api/v3/index.d.ts +++ b/types/arcgis-js-api/v3/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for ArcGIS API for JavaScript 3.21 +// Type definitions for ArcGIS API for JavaScript 3.22 // Project: https://developers.arcgis.com/javascript/3/ // Definitions by: Esri // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -284,6 +284,8 @@ declare module "esri" { columnDelimiter?: string; /** Copyright information for the layer. */ copyright?: string; + /** Enables feature reduction (for example clustering) on point layers. */ + featureReduction?: any; /** The fields property contains objects with "name", "alias" and "type" String properties. */ fields?: any[]; /** The latitude field name. */ @@ -608,13 +610,13 @@ declare module "esri" { locationProvider: LocationProviderBase; } export interface DataBrowserOptions { - /** Whether or not to display the hierarchy dropdown for countries with multiple hierarchies (e.g. */ + /** Whether or not to display the hierarchy dropdown for countries with multiple hierarchies (for example USA has both Census and Landscape, Germany has both Census and Nexiga). */ allowHierarchies?: boolean; /** Show/hide country drop down. */ countryBox?: boolean; /** Two-digit country code selected in the country drop down. */ countryID?: string; - /** The hierarchy to load for a country (e.g. */ + /** The hierarchy to load for a country (for example 'Census' or 'Landscape' for USA). */ hierarchyID?: string; /** Text string to display on the back button on the second and third pages of the Data Browser. */ pageBackButton?: string; @@ -896,6 +898,8 @@ declare module "esri" { displayOnPan?: boolean; /** Set a callback function that will be invoked by FeatureLayer.getEditSummary. */ editSummaryCallback?: Function; + /** Enables feature reduction (for example clustering) on point layers. */ + featureReduction?: any; /** Specify the geodatabase version to display. */ gdbVersion?: string; /** Unique ID to assign to the layer. */ @@ -1172,7 +1176,7 @@ declare module "esri" { remove(): void; } export interface HeatmapRendererOptions { - /** The radius (in pixels) of the circle over which the majority of each points value is spread out over. */ + /** The radius (in pixels) of the circle over which the majority of each point's value is spread out. */ blurRadius?: number; /** An array of CSS color strings (#RGB, #RRGGBB, rgb(r,g,b), rgba(r,g,b,a)). */ colors: string[]; @@ -1718,7 +1722,7 @@ declare module "esri" { pixels: number[][]; /** Pixel type. */ pixelType?: string; - /** Array of objects containing numeric statistical properties (e.g. */ + /** Array of objects containing numeric statistical properties (for example minValue, maxValue, noDataValue, etc.). */ statistics?: any[]; /** Number of columns. */ width: number; @@ -1856,7 +1860,7 @@ declare module "esri" { primaryHandle?: number; /** Toggle for showing the black handle bars. */ showHandles?: boolean; - /** Flexible toggle for showing labels (e.g. */ + /** Flexible toggle for showing labels (for example ["data", "handle"]). */ showLabels?: boolean | string[]; /** Toggle for showing the horizontal line indicators from the center of the handle. */ showTicks?: boolean; @@ -2153,7 +2157,7 @@ declare module "esri" { } export interface TemplatePickerOptions { /** Number of visible columns. */ - columns?: number; + columns?: number | string; /** Defines the text to be displayed when the template picker does not have any templates to display. */ emptyMessage?: string; /** Array of input feature layers. */ @@ -2165,7 +2169,7 @@ declare module "esri" { /** Length of label description. */ maxLabelLength?: number; /** Number of visible rows. */ - rows?: number; + rows?: number | string; /** Tooltip content contains the template name and description. */ showTooltip?: boolean; /** HTML style attributes for the widget. */ @@ -3488,7 +3492,7 @@ declare module "esri/dijit/BasemapGallery" { basemaps: Basemap[]; /** This value is true after the BasemapGallery retrieves the ArcGIS.com basemaps. */ loaded: boolean; - /** Optional parameter to pass in a portal URL, including the instance name, used to access the group containing the basemap gallery items. */ + /** Optional parameter to pass in a portal URL, including the instance name, used to access the group containing the basemap gallery items, for example www.myportal.com/myInstance or http://www.myportal.com/myInstance. */ portalUrl: string; /** * Creates a new BasemapGallery dijit. @@ -4567,8 +4571,8 @@ declare module "esri/dijit/InfoWindow" { /** Determines whether the InfoWindow is currently shown on the map. */ isShowing: boolean; /** - * Create a new Info Window. - * @param params Optional parameters. + * Create a new InfoWindow. + * @param params Specify optional parameters used to create the InfoWindow. * @param srcNodeRef Reference or id of the HTML element where the widget should be rendered. */ constructor(params: any, srcNodeRef: Node | string); @@ -4633,6 +4637,12 @@ declare module "esri/dijit/InfoWindowLite" { fixedAnchor: string; /** Determines whether the InfoWindowLite is currently shown on the map. */ isShowing: boolean; + /** + * Create a new InfoWindowLite. + * @param params Specify optional parameters used to create the InfoWindowLite. + * @param srcNodeRef Reference or id of the HTML element where the widget should be rendered. + */ + constructor(params: any, srcNodeRef: Node | string); /** Hides the InfoWindow. */ hide(): void; /** @@ -5117,8 +5127,8 @@ declare module "esri/dijit/OverviewMap" { declare module "esri/dijit/Popup" { import esri = require("esri"); import InfoWindowBase = require("esri/InfoWindowBase"); - import Graphic = require("esri/graphic"); import FillSymbol = require("esri/symbols/FillSymbol"); + import Graphic = require("esri/graphic"); import LineSymbol = require("esri/symbols/LineSymbol"); import Point = require("esri/geometry/Point"); import MarkerSymbol = require("esri/symbols/MarkerSymbol"); @@ -5127,6 +5137,8 @@ declare module "esri/dijit/Popup" { class Popup extends InfoWindowBase { /** Controls the placement of the popup window with respect to the geographic location. */ anchor: string; + /** Visualizes the extent of the points summarized by the cluster graphic when the user selects the "Browse Features" action in the cluster popup. */ + clusterFillSymbol: FillSymbol; /** The number of features associated with the info window. */ count: number; /** An array of pending deferreds, null if there are not any pending deferreds. */ @@ -5179,16 +5191,28 @@ declare module "esri/dijit/Popup" { * @param srcNodeRef Reference or id of the HTML element where the widget should be rendered. */ constructor(options: esri.PopupOptions, srcNodeRef: Node | string); + /** + * Creates links for the specified actions at the bottom of the popup window. + * @param actions An array of action objects that define the behavior for actions included in the popup. + */ + addActions(actions: any[]): any[]; /** Removes all features and destroys any pending deferreds. */ clearFeatures(): void; /** Destroy the popup. */ destroy(): void; + /** Returns the current placement of the popup window. */ + getCurrentAnchor(): string; /** Get the currently selected feature. */ getSelectedFeature(): Graphic; /** Hide the info window. */ hide(): void; /** Maximize the info window. */ maximize(): void; + /** + * Removes the specified actions from the popup window. + * @param actionInfos An array of objects that describe actions created with addActions(). + */ + removeActions(actionInfos: any[]): void; /** Re-calculates the popup's position with respect to the map location it is pointing to. */ reposition(): void; /** @@ -5222,8 +5246,9 @@ declare module "esri/dijit/Popup" { /** * Associate an array of features or an array of deferreds that return features with the info window. * @param features An array of features or deferreds. + * @param options Additional options for setting features in the popup. */ - setFeatures(features: Graphic[] | any[]): void; + setFeatures(features: Graphic[] | any[], options?: any): void; /** * Sets the info window title. * @param title The text for the title. @@ -5332,8 +5357,6 @@ declare module "esri/dijit/PopupTemplate" { /** The PopupTemplate class extends esri/InfoTemplate and provides support for defining a layout. */ class PopupTemplate extends InfoTemplate { - /** An array of objects that reference Arcade expressions. */ - expressionInfos: any[]; /** The popup definition defined as a JavaScript object. */ info: any; /** @@ -5399,7 +5422,7 @@ declare module "esri/dijit/RendererSlider" { precision: number; /** Toggle for showing the black handle bars. */ showHandles: boolean; - /** Flexible toggle for showing labels e.g. */ + /** Flexible toggle for showing labels, for example ["data","handle"]. */ showLabels: boolean | string[]; /** Toggle for showing the horizontal line indicators from the center of the handle. */ showTicks: boolean; @@ -7991,10 +8014,10 @@ declare module "esri/geometry/geometryEngine" { clip(geometry: Geometry, envelope: Extent): Geometry; /** * Indicates if one geometry contains another geometry. - * @param geometry1 The geometry that is tested for the contains relationship to the other geometry. - * @param geometry2 The geometry that is tested for within relationship to the other geometry. + * @param containerGeometry The geometry that is tested for the "contains" relationship to the other geometry. + * @param insideGeometry The geometry that is tested for the "within" relationship to the containerGeometry. */ - contains(geometry1: Geometry, geometry2: Geometry): boolean; + contains(containerGeometry: Geometry, insideGeometry: Geometry): boolean; /** * Calculates the convex hull of the input geometry. * @param geometry The input geometry. @@ -8200,10 +8223,10 @@ declare module "esri/geometry/geometryEngine" { union(geometries: Geometry[]): Geometry; /** * Indicates if one geometry is within another geometry. - * @param geometry1 The base geometry that is tested for within relationship to the other geometry. - * @param geometry2 The comparison geometry that is tested for the contains relationship to the other geometry. + * @param innerGeometry The base geometry that is tested for within relationship to the other geometry. + * @param outerGeometry The comparison geometry that is tested for the contains relationship to the other geometry. */ - within(geometry1: Geometry, geometry2: Geometry): boolean; + within(innerGeometry: Geometry, outerGeometry: Geometry): boolean; }; export = geometryEngine; } @@ -8234,10 +8257,10 @@ declare module "esri/geometry/geometryEngineAsync" { clip(geometry: Geometry, envelope: Extent): any; /** * Indicates if one geometry contains another geometry. - * @param geometry1 The geometry that is tested for the contains relationship to the other geometry. - * @param geometry2 The geometry that is tested for within relationship to the other geometry. + * @param containerGeometry The geometry that is tested for the "contains" relationship to the other geometry. + * @param insideGeometry The geometry that is tested for the "within" relationship to the containerGeometry. */ - contains(geometry1: Geometry, geometry2: Geometry): any; + contains(containerGeometry: Geometry, insideGeometry: Geometry): any; /** * Calculates the convex hull of the input geometry. * @param geometry The input geometry. @@ -8443,10 +8466,10 @@ declare module "esri/geometry/geometryEngineAsync" { union(geometries: Geometry[]): any; /** * Indicates if one geometry is within another geometry. - * @param geometry1 The base geometry that is tested for within relationship to the other geometry. - * @param geometry2 The comparison geometry that is tested for the contains relationship to the other geometry. + * @param innerGeometry The base geometry that is tested for within relationship to the other geometry. + * @param outerGeometry The comparison geometry that is tested for the contains relationship to the other geometry. */ - within(geometry1: Geometry, geometry2: Geometry): any; + within(innerGeometry: Geometry, outerGeometry: Geometry): any; }; export = geometryEngineAsync; } @@ -8664,8 +8687,15 @@ declare module "esri/graphic" { * @param value The value of the attribute. */ attr(name: string, value: string): Graphic; + /** Creates a deep clone of the graphic object. */ + clone(): Graphic; /** Draws the graphic. */ draw(): Graphic; + /** + * Returns the graphics summarized by the given aggregate graphic in a clustering or feature reduction visualization. + * @param aggregateGraphic A graphic representing the aggregation (or reduction) of several individual graphics in a layer. + */ + getChildGraphics(aggregateGraphic: Graphic): Graphic[]; /** Returns the content string based on attributes and infoTemplate values. */ getContent(): string; /** Returns the dojo/gfx/shape.Shape of the Esri graphic. */ @@ -8688,6 +8718,8 @@ declare module "esri/graphic" { getTitle(): string; /** Hides the graphic. */ hide(): void; + /** Indicates if the graphic represents a cluster of features. */ + isAggregate(): boolean; /** * Defines the attributes of the graphic. * @param attributes The name value pairs of fields and field values associated with the graphic. @@ -9055,7 +9087,7 @@ declare module "esri/layers/ArcGISImageServiceLayer" { timeInfo: TimeInfo; /** By default, images are exported in MIME format, and the image is streamed to the client. */ useMapImage: boolean; - /** The version of ArcGIS Server the image service is published to, e.g. */ + /** The version of ArcGIS Server the image service is published to, such as 9.3, 9.31, 10, 10.41. */ version: number; /** * Creates a new ArcGISImageServiceLayer object. @@ -9073,7 +9105,7 @@ declare module "esri/layers/ArcGISImageServiceLayer" { getDefinitionExpression(): string; /** Get key properties of an ImageService including information such as the band names associated with the imagery. */ getKeyProperties(): any; - /** Asynchronously returns the raster attribute table of an ImageService which returns categorical mapping of pixel values (e.g. */ + /** Asynchronously returns the raster attribute table of an ImageService which returns categorical mapping of pixel values (for example a class, group, category, or membership). */ getRasterAttributeTable(): any; /** Gets the currently visible rasters. */ getVisibleRasters(): Graphic[]; @@ -9651,6 +9683,12 @@ declare module "esri/layers/FeatureLayer" { * @param errback An error object is returned if an error occurs. */ deleteAttachments(objectId: number, attachmentIds: number[], callback?: Function, errback?: Function): any; + /** Disables feature reduction (for example clustering) on the layer. */ + disableFeatureReduction(): void; + /** Enables feature reduction (for example clustering) on the layer using the options set in setFeatureReduction(). */ + enableFeatureReduction(): void; + /** Returns graphics representing the aggregation of several point features clustered together. */ + getAggregateGraphics(): Graphic[]; /** Asynchrously returns custom data for the layer when available. */ getAttributionData(): any; /** Returns the current definition expression. */ @@ -9678,6 +9716,8 @@ declare module "esri/layers/FeatureLayer" { * @param options See the object specifications table below for the structure of the options object. */ getEditSummary(feature: Graphic, options?: any): string; + /** Returns the options used to reduce the number of features visualized by the layer (for example clustering). */ + getFeatureReduction(): any; /** * Returns the Field given the specified field name. * @param fieldName Name of the attribute field. @@ -9691,6 +9731,8 @@ declare module "esri/layers/FeatureLayer" { getSelectedFeatures(): Graphic[]; /** Gets the current selection symbol. */ getSelectionSymbol(): Symbol; + /** Returns graphics from the layer that are not represented by aggregate graphics when feature reduction (such as clustering) is enabled. */ + getSingleGraphics(): Graphic[]; /** Get the current time definition applied to the feature layer. */ getTimeDefinition(): TimeExtent; /** @@ -9702,6 +9744,10 @@ declare module "esri/layers/FeatureLayer" { hasXYFootprint(): boolean; /** Returns true if the FeatureLayer is editable. */ isEditable(): boolean; + /** Indicates if feature reduction (for example clustering) is active in the view. */ + isFeatureReductionActive(): boolean; + /** Indicates if feature reduction (for example clustering) is enabled. */ + isFeatureReductionEnabled(): boolean; /** * Returns true if the layer is visible at the given scale. * @param scale The scale at which to check if the layer is visible. @@ -9778,6 +9824,11 @@ declare module "esri/layers/FeatureLayer" { * @param editable When true, the layer will be set as editable. */ setEditable(editable: boolean): FeatureLayer; + /** + * Sets feature reduction options on the layer (for example clustering options). + * @param options Options for reducing (or aggregating) the features in the map. + */ + setFeatureReduction(options: any): void; /** * Set the layer's data source to the specified geodatabase version. * @param versionName The name of the geodatabase version to use as the layer's data source. @@ -10340,6 +10391,8 @@ declare module "esri/layers/KMLLayer" { * @param isVisible The visibility of the folder and all kml features within the folder. */ setFolderVisibility(folder: KMLFolder, isVisible: boolean): void; + /** Fires when one or more of the layer's network link children fail to load. */ + on(type: "network-link-error", listener: (event: { error: Error; target: KMLLayer }) => void): esri.Handle; /** Fired after the layer is refreshed. */ on(type: "refresh", listener: (event: { target: KMLLayer }) => void): esri.Handle; on(type: string, listener: (event: any) => void): esri.Handle; @@ -10692,11 +10745,11 @@ declare module "esri/layers/PixelBlock" { height: number; /** An array of nodata mask. */ mask: any[]; - /** A two dimensional array. */ + /** A two dimensional array representing the pixels from the Image Service displayed on the client. */ pixels: number[][]; /** Pixel type. */ pixelType: string; - /** Array of objects containing numeric statistical properties (e.g. */ + /** Array of objects containing numeric statistical properties (for example minValue, maxValue, noDataValue, etc.). */ statistics: any[]; /** Number of columns. */ width: number; @@ -10710,7 +10763,7 @@ declare module "esri/layers/PixelBlock" { * @param planeData Must have two properties set: pixels and statistics. */ addData(planeData: any): void; - /** Returns pixels and masks using a single array in bip format (e.g. */ + /** Returns pixels and masks using a single array in bip format (for example [p_00_r, p_00_g, p_00_b, p_00_a, p_10_r, p_10_g, p_10_b, p_10_a, .....]). */ getAsRGBA(): any[]; /** Similar to getAsRGBA, but returns floating point data. */ getAsRGBAFloat(): any[]; @@ -12026,7 +12079,7 @@ declare module "esri/map" { resize(immediate?: boolean): void; /** * Change the background color of the map. - * @param color Color specified using either a named string (e.g. + * @param color Color specified using either a named string (for example red), hex string (for example #FF0000), array of rgba values with "a" in the 0-1 range (for example [255,0,0,0.75]), or an instance of esri/Color. */ setBackgroundColor(color: Color | string): void; /** @@ -13023,7 +13076,7 @@ declare module "esri/renderers/HeatmapRenderer" { /** The HeatmapRenderer renders feature layer point data into a raster visualization that emphasizes areas of higher density or weighted values. */ class HeatmapRenderer extends Renderer { - /** The radius (in pixels) of the circle over which the majority of each points value is spread out over. */ + /** The radius (in pixels) of the circle over which the majority of each point's value is spread out. */ blurRadius: number; /** An array of CSS color strings (#RGB, #RRGGBB, rgb(r,g,b), rgba(r,g,b,a)). */ colors: string[]; @@ -13336,6 +13389,7 @@ declare module "esri/renderers/TimeRampAger" { declare module "esri/renderers/UniqueValueRenderer" { import Renderer = require("esri/renderers/Renderer"); + import FillSymbol = require("esri/symbols/FillSymbol"); import Symbol = require("esri/symbols/Symbol"); import Graphic = require("esri/graphic"); @@ -13347,6 +13401,8 @@ declare module "esri/renderers/UniqueValueRenderer" { attributeField2: string; /** If needed, specify an additional attribute field the renderer uses to match values. */ attributeField3: string; + /** A symbol used for polygon features as a background if the renderer uses point symbols, for example for bivariate types & size rendering. */ + backgroundFillSymbol: FillSymbol; /** Label for the default symbol used to draw unspecified values. */ defaultLabel: string; /** Default symbol used when a value or break cannot be matched. */ @@ -13506,7 +13562,7 @@ declare module "esri/renderers/smartMapping" { */ createTypeRenderer(params: any): any; /** - * Searches the fields of an input layer or array of field objects for field names commonly used in rendering based on usage (e.g. + * Searches the fields of an input layer or array of field objects for field names commonly used in rendering based on usage (e.g., RANK, TOTAL, AVERAGE, NAME, etc). * @param params See the object specifications table below for details about the params object. */ getSuggestedField(params: any): any; @@ -15247,8 +15303,12 @@ declare module "esri/tasks/IdentifyParameters" { mapExtent: Extent; /** The maximum allowable offset used for generalizing geometries returned by the identify operation. */ maxAllowableOffset: number; + /** If true, field names will be returned instead of field aliases. */ + returnFieldName: boolean; /** If "true", the result set includes the geometry associated with each result. */ returnGeometry: boolean; + /** If true, the values in the result will not be formatted i.e. */ + returnUnformattedValues: boolean; /** The spatial reference of the input and output geometries as well as of the mapExtent. */ spatialReference: SpatialReference; /** Specify the time extent used by the identify task. */ diff --git a/types/argparse/index.d.ts b/types/argparse/index.d.ts index f19aadbe96..d8907a2ecd 100644 --- a/types/argparse/index.d.ts +++ b/types/argparse/index.d.ts @@ -22,8 +22,8 @@ export class ArgumentParser extends ArgumentGroup { export class Namespace { constructor(options: object); get(key: K, defaultValue?: D): this[K] | D; - isset(key: K): boolean; - set(key: K, value: V): this; + isset(key: keyof this): boolean; + set(key: K, value: this[K]): this; set(key: K, value: V): this & Record; set(obj: K): this & K; unset(key: K, defaultValue?: D): this[K] | D; diff --git a/types/async/index.d.ts b/types/async/index.d.ts index 139689ea2f..f443ebf627 100644 --- a/types/async/index.d.ts +++ b/types/async/index.d.ts @@ -3,25 +3,27 @@ // Definitions by: Boris Yankov , Arseniy Maximov , Joe Herman , Angus Fenying , Pascal Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -interface Dictionary { [key: string]: T; } +export as namespace async; -interface ErrorCallback { (err?: T): void; } -interface AsyncBooleanResultCallback { (err?: E, truthValue?: boolean): void; } -interface AsyncResultCallback { (err?: E, result?: T): void; } -interface AsyncResultArrayCallback { (err?: E, results?: (T | undefined)[]): void; } -interface AsyncResultObjectCallback { (err: E | undefined, results: Dictionary): void; } +export interface Dictionary { [key: string]: T; } -interface AsyncFunction { (callback: (err?: E, result?: T) => void): void; } -interface AsyncIterator { (item: T, callback: ErrorCallback): void; } -interface AsyncForEachOfIterator { (item: T, key: number|string, callback: ErrorCallback): void; } -interface AsyncResultIterator { (item: T, callback: AsyncResultCallback): void; } -interface AsyncMemoIterator { (memo: R | undefined, item: T, callback: AsyncResultCallback): void; } -interface AsyncBooleanIterator { (item: T, callback: AsyncBooleanResultCallback): void; } +export interface ErrorCallback { (err?: T): void; } +export interface AsyncBooleanResultCallback { (err?: E, truthValue?: boolean): void; } +export interface AsyncResultCallback { (err?: E, result?: T): void; } +export interface AsyncResultArrayCallback { (err?: E, results?: (T | undefined)[]): void; } +export interface AsyncResultObjectCallback { (err: E | undefined, results: Dictionary): void; } -interface AsyncWorker { (task: T, callback: ErrorCallback): void; } -interface AsyncVoidFunction { (callback: ErrorCallback): void; } +export interface AsyncFunction { (callback: (err?: E, result?: T) => void): void; } +export interface AsyncIterator { (item: T, callback: ErrorCallback): void; } +export interface AsyncForEachOfIterator { (item: T, key: number|string, callback: ErrorCallback): void; } +export interface AsyncResultIterator { (item: T, callback: AsyncResultCallback): void; } +export interface AsyncMemoIterator { (memo: R | undefined, item: T, callback: AsyncResultCallback): void; } +export interface AsyncBooleanIterator { (item: T, callback: AsyncBooleanResultCallback): void; } -interface AsyncQueue { +export interface AsyncWorker { (task: T, callback: ErrorCallback): void; } +export interface AsyncVoidFunction { (callback: ErrorCallback): void; } + +export interface AsyncQueue { length(): number; started: boolean; running(): number; @@ -48,7 +50,7 @@ interface AsyncQueue { buffer: number; } -interface AsyncPriorityQueue { +export interface AsyncPriorityQueue { length(): number; concurrency: number; started: boolean; @@ -73,7 +75,7 @@ interface AsyncPriorityQueue { buffer: number; } -interface AsyncCargo { +export interface AsyncCargo { length(): number; payload?: number; push(task: any, callback? : Function): void; @@ -87,142 +89,133 @@ interface AsyncCargo { kill(): void; } -interface Async { +// Collections +export function each(arr: T[] | IterableIterator, iterator: AsyncIterator, callback?: ErrorCallback): void; +export function each(arr: Dictionary, iterator: AsyncIterator, callback?: ErrorCallback): void; +export const eachSeries: typeof each; +export function eachLimit(arr: T[] | IterableIterator, limit: number, iterator: AsyncIterator, callback?: ErrorCallback): void; +export function eachLimit(arr: Dictionary, limit: number, iterator: AsyncIterator, callback?: ErrorCallback): void; +export const forEach: typeof each; +export const forEachSeries: typeof each; +export const forEachLimit: typeof eachLimit; +export function forEachOf(obj: T[] | IterableIterator, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void; +export function forEachOf(obj: Dictionary, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void; +export const forEachOfSeries: typeof forEachOf; +export function forEachOfLimit(obj: T[] | IterableIterator, limit: number, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void; +export function forEachOfLimit(obj: Dictionary, limit: number, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void; +export const eachOf: typeof forEachOf; +export const eachOfSeries: typeof forEachOf; +export const eachOfLimit: typeof forEachOfLimit; +export function map(arr: T[] | IterableIterator, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; +export function map(arr: Dictionary, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; +export const mapSeries: typeof map; +export function mapLimit(arr: T[] | IterableIterator, limit: number, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; +export function mapLimit(arr: Dictionary, limit: number, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; +export function mapValuesLimit(obj: Dictionary, limit: number, iteratee: (value: T, key: string, callback: AsyncResultCallback) => void, callback: AsyncResultObjectCallback): void; +export function mapValues(obj: Dictionary, iteratee: (value: T, key: string, callback: AsyncResultCallback) => void, callback: AsyncResultObjectCallback): void; +export const mapValuesSeries: typeof mapValues; +export function filter(arr: T[] | IterableIterator, iterator: AsyncBooleanIterator, callback?: AsyncResultArrayCallback): void; +export function filter(arr: Dictionary, iterator: AsyncBooleanIterator, callback?: AsyncResultArrayCallback): void; +export const filterSeries: typeof filter; +export function filterLimit(arr: T[] | IterableIterator, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncResultArrayCallback): void; +export function filterLimit(arr: Dictionary, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncResultArrayCallback): void; +export const select: typeof filter; +export const selectSeries: typeof filter; +export const selectLimit: typeof filterLimit; +export const reject: typeof filter; +export const rejectSeries: typeof filter; +export const rejectLimit: typeof filterLimit; +export function reduce(arr: T[] | IterableIterator, memo: R, iterator: AsyncMemoIterator, callback?: AsyncResultCallback): void; +export const inject: typeof reduce; +export const foldl: typeof reduce; +export const reduceRight: typeof reduce; +export const foldr: typeof reduce; +export function detect(arr: T[] | IterableIterator, iterator: AsyncBooleanIterator, callback?: AsyncResultCallback): void; +export function detect(arr: Dictionary, iterator: AsyncBooleanIterator, callback?: AsyncResultCallback): void; +export const detectSeries: typeof detect; +export function detectLimit(arr: T[] | IterableIterator, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncResultCallback): void; +export function detectLimit(arr: Dictionary, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncResultCallback): void; +export const find: typeof detect; +export const findSeries: typeof detect; +export const findLimit: typeof detectLimit; +export function sortBy(arr: T[] | IterableIterator, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; +export function some(arr: T[] | IterableIterator, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; +export function some(arr: Dictionary, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; +export const someSeries: typeof some; +export function someLimit(arr: T[] | IterableIterator, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; +export function someLimit(arr: Dictionary, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; +export const any: typeof some; +export const anySeries: typeof someSeries; +export const anyLimit: typeof someLimit; +export function every(arr: T[] | IterableIterator, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; +export function every(arr: Dictionary, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; +export const everySeries: typeof every; +export function everyLimit(arr: T[] | IterableIterator, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; +export function everyLimit(arr: Dictionary, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; +export const all: typeof every; +export const allSeries: typeof every; +export const allLimit: typeof everyLimit; - // Collections - each(arr: T[] | IterableIterator, iterator: AsyncIterator, callback?: ErrorCallback): void; - each(arr: Dictionary, iterator: AsyncIterator, callback?: ErrorCallback): void; - eachSeries: typeof async.each; - eachLimit(arr: T[] | IterableIterator, limit: number, iterator: AsyncIterator, callback?: ErrorCallback): void; - eachLimit(arr: Dictionary, limit: number, iterator: AsyncIterator, callback?: ErrorCallback): void; - forEach: typeof async.each; - forEachSeries: typeof async.each; - forEachLimit: typeof async.eachLimit; - forEachOf(obj: T[] | IterableIterator, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void; - forEachOf(obj: Dictionary, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void; - forEachOfSeries: typeof async.forEachOf; - forEachOfLimit(obj: T[] | IterableIterator, limit: number, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void; - forEachOfLimit(obj: Dictionary, limit: number, iterator: AsyncForEachOfIterator, callback?: ErrorCallback): void; - eachOf: typeof async.forEachOf; - eachOfSeries: typeof async.forEachOf; - eachOfLimit: typeof async.forEachOfLimit; - map(arr: T[] | IterableIterator, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; - map(arr: Dictionary, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; - mapSeries: typeof async.map; - mapLimit(arr: T[] | IterableIterator, limit: number, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; - mapLimit(arr: Dictionary, limit: number, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; - mapValuesLimit(obj: Dictionary, limit: number, iteratee: (value: T, key: string, callback: AsyncResultCallback) => void, callback: AsyncResultObjectCallback): void; - mapValues(obj: Dictionary, iteratee: (value: T, key: string, callback: AsyncResultCallback) => void, callback: AsyncResultObjectCallback): void; - mapValuesSeries: typeof async.mapValues; - filter(arr: T[] | IterableIterator, iterator: AsyncBooleanIterator, callback?: AsyncResultArrayCallback): void; - filter(arr: Dictionary, iterator: AsyncBooleanIterator, callback?: AsyncResultArrayCallback): void; - filterSeries: typeof async.filter; - filterLimit(arr: T[] | IterableIterator, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncResultArrayCallback): void; - filterLimit(arr: Dictionary, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncResultArrayCallback): void; - select: typeof async.filter; - selectSeries: typeof async.filter; - selectLimit: typeof async.filterLimit; - reject: typeof async.filter; - rejectSeries: typeof async.filter; - rejectLimit: typeof async.filterLimit; - reduce(arr: T[] | IterableIterator, memo: R, iterator: AsyncMemoIterator, callback?: AsyncResultCallback): void; - inject: typeof async.reduce; - foldl: typeof async.reduce; - reduceRight: typeof async.reduce; - foldr: typeof async.reduce; - detect(arr: T[] | IterableIterator, iterator: AsyncBooleanIterator, callback?: AsyncResultCallback): void; - detect(arr: Dictionary, iterator: AsyncBooleanIterator, callback?: AsyncResultCallback): void; - detectSeries: typeof async.detect; - detectLimit(arr: T[] | IterableIterator, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncResultCallback): void; - detectLimit(arr: Dictionary, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncResultCallback): void; - find: typeof async.detect; - findSeries: typeof async.detect; - findLimit: typeof async.detectLimit; - sortBy(arr: T[] | IterableIterator, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; - some(arr: T[] | IterableIterator, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; - some(arr: Dictionary, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; - someSeries: typeof async.some; - someLimit(arr: T[] | IterableIterator, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; - someLimit(arr: Dictionary, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; - any: typeof async.some; - anySeries: typeof async.someSeries; - anyLimit: typeof async.someLimit; - every(arr: T[] | IterableIterator, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; - every(arr: Dictionary, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; - everySeries: typeof async.every; - everyLimit(arr: T[] | IterableIterator, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; - everyLimit(arr: Dictionary, limit: number, iterator: AsyncBooleanIterator, callback?: AsyncBooleanResultCallback): void; - all: typeof async.every; - allSeries: typeof async.every; - allLimit: typeof async.everyLimit; +export function concat(arr: T[] | IterableIterator, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; +export function concat(arr: Dictionary, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; +export const concatSeries: typeof concat; - concat(arr: T[] | IterableIterator, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; - concat(arr: Dictionary, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; - concatSeries: typeof async.concat; +// Control Flow +export function series(tasks: AsyncFunction[], callback?: AsyncResultArrayCallback): void; +export function series(tasks: Dictionary>, callback?: AsyncResultObjectCallback): void; +export function parallel(tasks: Array>, callback?: AsyncResultArrayCallback): void; +export function parallel(tasks: Dictionary>, callback?: AsyncResultObjectCallback): void; +export function parallelLimit(tasks: Array>, limit: number, callback?: AsyncResultArrayCallback): void; +export function parallelLimit(tasks: Dictionary>, limit: number, callback?: AsyncResultObjectCallback): void; +export function whilst(test: () => boolean, fn: AsyncVoidFunction, callback: ErrorCallback): void; +export function doWhilst(fn: AsyncVoidFunction, test: () => boolean, callback: ErrorCallback): void; +export function until(test: () => boolean, fn: AsyncVoidFunction, callback: ErrorCallback): void; +export function doUntil(fn: AsyncVoidFunction, test: () => boolean, callback: ErrorCallback): void; +export function during(test: (testCallback : AsyncBooleanResultCallback) => void, fn: AsyncVoidFunction, callback: ErrorCallback): void; +export function doDuring(fn: AsyncVoidFunction, test: (testCallback: AsyncBooleanResultCallback) => void, callback: ErrorCallback): void; +export function forever(next: (next : ErrorCallback) => void, errBack: ErrorCallback) : void; +export function waterfall(tasks: Function[], callback?: AsyncResultCallback): void; +export function compose(...fns: Function[]): Function; +export function seq(...fns: Function[]): Function; +export function applyEach(fns: Function[], argsAndCallback: any[]): void; // applyEach(fns, args..., callback). TS does not support ... for a middle argument. Callback is optional. +export function applyEachSeries(fns: Function[], argsAndCallback: any[]): void; // applyEachSeries(fns, args..., callback). TS does not support ... for a middle argument. Callback is optional. +export function queue(worker: AsyncWorker, concurrency?: number): AsyncQueue; +export function queue(worker: AsyncResultIterator, concurrency?: number): AsyncQueue; +export function priorityQueue(worker: AsyncWorker, concurrency: number): AsyncPriorityQueue; +export function cargo(worker : (tasks: any[], callback : ErrorCallback) => void, payload? : number) : AsyncCargo; +export function auto(tasks: any, concurrency?: number, callback?: AsyncResultCallback): void; +export function autoInject(tasks: any, callback?: AsyncResultCallback): void; +export function retry(opts: number, task: (callback : AsyncResultCallback, results: any) => void, callback: AsyncResultCallback): void; +export function retry(opts: { times: number, interval: number|((retryCount: number) => number) }, task: (callback: AsyncResultCallback, results : any) => void, callback: AsyncResultCallback): void; +export function retryable(opts: number | {times: number, interval: number}, task: AsyncFunction): AsyncFunction; +export function apply(fn: Function, ...args: any[]): AsyncFunction; +export function nextTick(callback: Function, ...args: any[]): void; +export const setImmediate: typeof nextTick; - // Control Flow - series(tasks: AsyncFunction[], callback?: AsyncResultArrayCallback): void; - series(tasks: Dictionary>, callback?: AsyncResultObjectCallback): void; - parallel(tasks: Array>, callback?: AsyncResultArrayCallback): void; - parallel(tasks: Dictionary>, callback?: AsyncResultObjectCallback): void; - parallelLimit(tasks: Array>, limit: number, callback?: AsyncResultArrayCallback): void; - parallelLimit(tasks: Dictionary>, limit: number, callback?: AsyncResultObjectCallback): void; - whilst(test: () => boolean, fn: AsyncVoidFunction, callback: ErrorCallback): void; - doWhilst(fn: AsyncVoidFunction, test: () => boolean, callback: ErrorCallback): void; - until(test: () => boolean, fn: AsyncVoidFunction, callback: ErrorCallback): void; - doUntil(fn: AsyncVoidFunction, test: () => boolean, callback: ErrorCallback): void; - during(test: (testCallback : AsyncBooleanResultCallback) => void, fn: AsyncVoidFunction, callback: ErrorCallback): void; - doDuring(fn: AsyncVoidFunction, test: (testCallback: AsyncBooleanResultCallback) => void, callback: ErrorCallback): void; - forever(next: (next : ErrorCallback) => void, errBack: ErrorCallback) : void; - waterfall(tasks: Function[], callback?: AsyncResultCallback): void; - compose(...fns: Function[]): Function; - seq(...fns: Function[]): Function; - applyEach(fns: Function[], argsAndCallback: any[]): void; // applyEach(fns, args..., callback). TS does not support ... for a middle argument. Callback is optional. - applyEachSeries(fns: Function[], argsAndCallback: any[]): void; // applyEachSeries(fns, args..., callback). TS does not support ... for a middle argument. Callback is optional. - queue(worker: AsyncWorker, concurrency?: number): AsyncQueue; - queue(worker: AsyncResultIterator, concurrency?: number): AsyncQueue; - priorityQueue(worker: AsyncWorker, concurrency: number): AsyncPriorityQueue; - cargo(worker : (tasks: any[], callback : ErrorCallback) => void, payload? : number) : AsyncCargo; - auto(tasks: any, concurrency?: number, callback?: AsyncResultCallback): void; - autoInject(tasks: any, callback?: AsyncResultCallback): void; - retry(opts: number, task: (callback : AsyncResultCallback, results: any) => void, callback: AsyncResultCallback): void; - retry(opts: { times: number, interval: number|((retryCount: number) => number) }, task: (callback: AsyncResultCallback, results : any) => void, callback: AsyncResultCallback): void; - retryable(opts: number | {times: number, interval: number}, task: AsyncFunction): AsyncFunction; - apply(fn: Function, ...arguments: any[]): AsyncFunction; - nextTick(callback: Function, ...args: any[]): void; - setImmediate: typeof async.nextTick; +export function reflect(fn: AsyncFunction) : (callback: (err: null, result: {error?: E, value?: T}) => void) => void; +export function reflectAll(tasks: AsyncFunction[]): ((callback: (err: null, result: {error?: E, value?: T}) => void) => void)[]; - reflect(fn: AsyncFunction) : (callback: (err: null, result: {error?: E, value?: T}) => void) => void; - reflectAll(tasks: AsyncFunction[]): ((callback: (err: null, result: {error?: E, value?: T}) => void) => void)[]; +export function timeout(fn: AsyncFunction, milliseconds: number, info?: any): AsyncFunction; +export function timeout(fn: AsyncResultIterator, milliseconds: number, info?: any): AsyncResultIterator; - timeout(fn: AsyncFunction, milliseconds: number, info?: any): AsyncFunction; - timeout(fn: AsyncResultIterator, milliseconds: number, info?: any): AsyncResultIterator; +export function times (n: number, iterator: AsyncResultIterator, callback: AsyncResultArrayCallback): void; +export function timesSeries(n: number, iterator: AsyncResultIterator, callback: AsyncResultArrayCallback): void; +export function timesLimit(n: number, limit: number, iterator: AsyncResultIterator, callback: AsyncResultArrayCallback): void; - times (n: number, iterator: AsyncResultIterator, callback: AsyncResultArrayCallback): void; - timesSeries(n: number, iterator: AsyncResultIterator, callback: AsyncResultArrayCallback): void; - timesLimit(n: number, limit: number, iterator: AsyncResultIterator, callback: AsyncResultArrayCallback): void; +export function transform(arr: T[], iteratee: (acc: R[], item: T, key: number, callback: (error?: E) => void) => void, callback?: AsyncResultArrayCallback): void; +export function transform(arr: T[], acc: R[], iteratee: (acc: R[], item: T, key: number, callback: (error?: E) => void) => void, callback?: AsyncResultArrayCallback): void; - transform(arr: T[], iteratee: (acc: R[], item: T, key: number, callback: (error?: E) => void) => void, callback?: AsyncResultArrayCallback): void; - transform(arr: T[], acc: R[], iteratee: (acc: R[], item: T, key: number, callback: (error?: E) => void) => void, callback?: AsyncResultArrayCallback): void; +export function transform(arr: {[key: string] : T}, iteratee: (acc: {[key: string] : R}, item: T, key: string, callback: (error?: E) => void) => void, callback?: AsyncResultObjectCallback): void; +export function transform(arr: {[key: string] : T}, acc: {[key: string] : R}, iteratee: (acc: {[key: string] : R}, item: T, key: string, callback: (error?: E) => void) => void, callback?: AsyncResultObjectCallback): void; - transform(arr: {[key: string] : T}, iteratee: (acc: {[key: string] : R}, item: T, key: string, callback: (error?: E) => void) => void, callback?: AsyncResultObjectCallback): void; - transform(arr: {[key: string] : T}, acc: {[key: string] : R}, iteratee: (acc: {[key: string] : R}, item: T, key: string, callback: (error?: E) => void) => void, callback?: AsyncResultObjectCallback): void; +export function race(tasks: (AsyncFunction)[], callback: AsyncResultCallback) : void; - race(tasks: (AsyncFunction)[], callback: AsyncResultCallback) : void; - - // Utils - memoize(fn: Function, hasher?: Function): Function; - unmemoize(fn: Function): Function; - ensureAsync(fn: (... argsAndCallback: any[]) => void): Function; - constant(...values: any[]): Function; - asyncify(fn: Function): Function; - wrapSync(fn: Function): Function; - log(fn: Function, ...arguments: any[]): void; - dir(fn: Function, ...arguments: any[]): void; -} - -declare var async: Async; - -declare module "async" { - export = async; -} +// Utils +export function memoize(fn: Function, hasher?: Function): Function; +export function unmemoize(fn: Function): Function; +export function ensureAsync(fn: (... argsAndCallback: any[]) => void): Function; +export function constant(...values: any[]): Function; +export function asyncify(fn: Function): Function; +export function wrapSync(fn: Function): Function; +export function log(fn: Function, ...args: any[]): void; +export function dir(fn: Function, ...args: any[]): void; diff --git a/types/async/test/es6-generators.ts b/types/async/test/es6-generators.ts index 2a7328a09a..b67e7daad7 100644 --- a/types/async/test/es6-generators.ts +++ b/types/async/test/es6-generators.ts @@ -1,6 +1,6 @@ function* collectionGenerator(): IterableIterator { } -function funcMapIterator(value: T, callback: AsyncResultCallback) { } +function funcMapIterator(value: T, callback: async.AsyncResultCallback) { } function funcMapComplete(error: E, results: T[]) { } function booleanIterator(v: T, cb: (err: Error, res: boolean) => void) { } diff --git a/types/async/test/index.ts b/types/async/test/index.ts index 60234a0ca4..821ccd0650 100644 --- a/types/async/test/index.ts +++ b/types/async/test/index.ts @@ -1,5 +1,7 @@ /// +import async = require("async"); +import { ErrorCallback, AsyncResultCallback, AsyncBooleanResultCallback, Dictionary } from "async"; import fs = require("fs"); import process = require("process"); diff --git a/types/async/tslint.json b/types/async/tslint.json new file mode 100644 index 0000000000..b1ab4a96cc --- /dev/null +++ b/types/async/tslint.json @@ -0,0 +1,33 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "arrow-return-shorthand": false, + "array-type": false, + "ban-types": false, + "callable-types": false, + "comment-format": false, + "dt-header": false, + "max-line-length": false, + "no-consecutive-blank-lines": false, + "no-padding": false, + "no-unnecessary-generics": false, + "no-var-keyword": false, + "no-void-expression": false, + "object-literal-key-quotes": false, + "object-literal-shorthand": false, + "one-variable-per-declaration": false, + "only-arrow-functions": false, + "prefer-const": false, + "prefer-for-of": false, + "prefer-method-signature": false, + "prefer-template": false, + "semicolon": false, + "space-before-function-paren": false, + "space-within-parens": false, + "trim-file": false, + "typedef-whitespace": false, + "unified-signatures": false, + "whitespace": false + } +} diff --git a/types/atmosphere.js/atmosphere.js-tests.ts b/types/atmosphere.js/atmosphere.js-tests.ts new file mode 100644 index 0000000000..b353c2c947 --- /dev/null +++ b/types/atmosphere.js/atmosphere.js-tests.ts @@ -0,0 +1,46 @@ + + +var socket = atmosphere; + +var request1:Atmosphere.Request = new atmosphere.AtmosphereRequest(); + +request1.url = document.location.toString() + 'chat'; +request1.contentType = "application/json"; +request1.transport = 'websocket'; +request1.fallbackTransport = 'long-polling'; + +var request2:Atmosphere.Request = { + url: 'http://localhost:8080/chat', + contentType: "application/json", + logLevel: 'debug', + transport: 'websocket', + fallbackTransport: 'long-polling' +}; + +request1.onError = function (response?:Atmosphere.Response) {}; +request1.onClose = function (response?:Atmosphere.Response) {}; +request1.onOpen = function (response?:Atmosphere.Response) {}; +request1.onMessage = function (response:Atmosphere.Response) {}; +request1.onReopen = function (request?:Atmosphere.Request, response?:Atmosphere.Response) {}; +request1.onReconnect = function (request?:Atmosphere.Request, response?:Atmosphere.Response) {}; +request1.onMessagePublished = function (response?:Atmosphere.Response) {}; +request1.onTransportFailure = function (reason?:string, response?:Atmosphere.Response) {}; +request1.onLocalMessage = function (request?:Atmosphere.Request) {}; +request1.onFailureToReconnect = function (request?:Atmosphere.Request, response?:Atmosphere.Response) {}; +request1.onClientTimeout = function (request?:Atmosphere.Request) {}; + +request1.subscribe = function (options:Atmosphere.Request) {}; +request1.execute = function () {}; +request1.close = function () {}; +request1.disconnect = function () {}; +request1.getUrl = function ():string { return "http://www.toedter.com" }; +request1.push = function (message:string, dispatchUrl?:string) {}; +request1.getUUID = function () {}; +request1.pushLocal = function (message:string) {}; + +var subSocket:Atmosphere.Request = socket.subscribe(request1); +var subSocket2:Atmosphere.Request = socket.subscribe('http://chat.com', function() {}, request2); +subSocket2.close(); + +subSocket.push("test"); +socket.unsubscribe(); \ No newline at end of file diff --git a/types/atmosphere.js/index.d.ts b/types/atmosphere.js/index.d.ts new file mode 100644 index 0000000000..0c0bfa3c3a --- /dev/null +++ b/types/atmosphere.js/index.d.ts @@ -0,0 +1,110 @@ +// Type definitions for Atmosphere v2.1.5 +// Project: https://github.com/Atmosphere/atmosphere-javascript +// Definitions by: Kai Toedter +// Fedor Kirpichev +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +// Use this typings in future instead of deprecated 'atmosphere'. + +declare namespace Atmosphere { + interface Atmosphere { + /** + * The atmosphere API is a little bit special here: the first parameter can either be + * a URL string or a Request object. If it is a URL string, then the additional parameters are expected. + */ + subscribe?: (requestOrUrl:any, callback?:Function, request?:Request) => Request; + unsubscribe?: () => void; + + AtmosphereRequest?: AtmosphereRequest; + } + + // needed to fit JavaScript "new atmosphere.AtmosphereRequest()" + // and compile with --noImplicitAny + interface AtmosphereRequest { + new(): Request; + } + + interface Request { + timeout?: number; + method?: string; + headers?: any; + contentType?: string; + callback?: Function; + url?: string; + data?: string; + suspend?: boolean; + maxRequest?: number; + reconnect?: boolean; + maxStreamingLength?: number; + lastIndex?: number; + logLevel?: string; + requestCount?: number; + fallbackMethod?: string; + fallbackTransport?: string; + transport?: string; + webSocketImpl?: any; + webSocketBinaryType?: any; + dispatchUrl?: string; + webSocketPathDelimiter?: string; + enableXDR?: boolean; + rewriteURL?: boolean; + attachHeadersAsQueryString?: boolean; + executeCallbackBeforeReconnect?: boolean; + readyState?: number; + lastTimestamp?: number; + withCredentials?: boolean; + trackMessageLength?: boolean; + messageDelimiter?: string; + connectTimeout?: number; + reconnectInterval?: number; + dropHeaders?: boolean; + uuid?: string; + async?: boolean; + shared?: boolean; + readResponsesHeaders?: boolean; + maxReconnectOnClose?: number; + enableProtocol?: boolean; + pollingInterval?: number; + + onError?: (response?:Response) => void; + onClose?: (response?:Response) => void; + onOpen?: (response?:Response) => void; + onMessage?: (response:Response) => void; + onReopen?: (request?:Request, response?:Response) => void; + onReconnect?: (request?:Request, response?:Response) => void; + onMessagePublished?: (response?:Response) => void; + onTransportFailure?: (reason?:string, response?:Response) => void; + onLocalMessage?: (request?:Request) => void; + onFailureToReconnect?: (request?:Request, response?:Response) => void; + onClientTimeout?: (request?:Request) => void; + + subscribe?: (options:Request) => void; + execute?: () => void; + close?: () => void; + disconnect?: () => void; + getUrl?: () => string; + push?: (message:string, dispatchUrl?:string) => void; + getUUID?: () => void; + pushLocal?: (message:string) => void; + } + + interface Response { + status?: number; + reasonPhrase?: string; + responseBody?: string; + messages?: string[]; + headers?: string[]; + state?: string; + transport?: string; + error?: string; + request?: Request; + partialMessage?: string; + errorHandled?: boolean; + closedByClientTimeout?: boolean; + } +} + +declare var atmosphere:Atmosphere.Atmosphere; +declare module 'atmosphere.js' { + export = atmosphere; +} diff --git a/types/xlsx/tsconfig.json b/types/atmosphere.js/tsconfig.json similarity index 93% rename from types/xlsx/tsconfig.json rename to types/atmosphere.js/tsconfig.json index c202db1ea3..8c2e633212 100644 --- a/types/xlsx/tsconfig.json +++ b/types/atmosphere.js/tsconfig.json @@ -18,6 +18,6 @@ }, "files": [ "index.d.ts", - "xlsx-tests.ts" + "atmosphere.js-tests.ts" ] } \ No newline at end of file diff --git a/types/atmosphere/index.d.ts b/types/atmosphere/index.d.ts index 5e88c2c8fb..7b5565cb1d 100644 --- a/types/atmosphere/index.d.ts +++ b/types/atmosphere/index.d.ts @@ -1,8 +1,11 @@ // Type definitions for Atmosphere v2.1.5 // Project: https://github.com/Atmosphere/atmosphere-javascript -// Definitions by: Kai Toedter +// Definitions by: Kai Toedter +// Fedor Kirpichev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// This is deprecated due to module name change. Please use 'atmosphere.js' for future development.. + declare namespace Atmosphere { interface Atmosphere { /** diff --git a/types/atom-keymap/.editorconfig b/types/atom-keymap/.editorconfig index 570211f898..2b997514d2 100644 --- a/types/atom-keymap/.editorconfig +++ b/types/atom-keymap/.editorconfig @@ -1,3 +1,3 @@ [*.ts] indent_style = tab -indent_size = 4 +indent_size = 2 diff --git a/types/atom-keymap/README.md b/types/atom-keymap/README.md new file mode 100644 index 0000000000..f900dc1a4c --- /dev/null +++ b/types/atom-keymap/README.md @@ -0,0 +1,21 @@ +## Atom Keymap Type Definitions + +TypeScript type definitions for [Atom Keymap](https://github.com/atom/atom-keymap), which is published as "[atom-keymap](https://www.npmjs.com/package/atom-keymap)" on NPM. + +### Usage Notes + +#### Exports + +This module has a single entity as its export: the [KeymapManager](https://github.com/atom/atom-keymap/blob/master/src/keymap-manager.coffee) class. The require syntax is typically used to import modules like this. + +```ts +import KeymapManager = require("atom-keymap"); +``` + +#### The AtomKeymap Namespace + +Many of the types used by Atom Keymap can be referenced from the AtomKeymap namespace. + +```ts +function example(keybind: AtomKeymap.KeyBinding) {} +``` diff --git a/types/atom-keymap/atom-keymap-tests.ts b/types/atom-keymap/atom-keymap-tests.ts index 1c92bff5c9..6c8871c737 100644 --- a/types/atom-keymap/atom-keymap-tests.ts +++ b/types/atom-keymap/atom-keymap-tests.ts @@ -1,20 +1,91 @@ +import KeymapManager = require("atom-keymap"); +import * as ImportTest from "atom-keymap"; +declare const element: HTMLElement; +declare let sub: EventKit.Disposable; +declare const event: KeyboardEvent; -import { KeymapManager, ICompleteMatchEvent } from "atom-keymap"; +// NPM Examples =============================================================== +const keymaps = new KeymapManager(); +keymaps.defaultTarget = document.body; -var manager = new KeymapManager(); -manager.add('some/unique/path', { - '.workspace': { - 'ctrl-x': 'package:do-something', - 'ctrl-y': 'package:do-something-else' - }, - '.mini.editor': { - 'enter': 'core:confirm' - } +// Pass all the window's keydown events to the KeymapManager +document.addEventListener("keydown", (event): void => { + keymaps.handleKeyboardEvent(event); }); -manager.onDidMatchBinding((event: ICompleteMatchEvent): void => { - console.log(event.binding.command); -}) +// Add some keymaps. It can also be a directory of json / cson files. +keymaps.loadKeymap("/path/to/keymap-file.json"); +// OR +keymaps.add("/key/for/these/keymaps", { + body: { + up: "core:move-up", + down: "core:move-down", + }, +}); + +// When a keybinding is triggered, it will dispatch it on the node that was focused +window.addEventListener("core:move-up", (event) => console.log("up", event)); +window.addEventListener("core:move-down", (event) => console.log("down", event)); + +// General Usage ============================================================== +const manager = new KeymapManager(); +manager.add("some/unique/path", { + ".workspace": { + "ctrl-x": "package:do-something", + "ctrl-y": "package:do-something-else", + }, + ".test": { + enter: "core:confirm", + }, +}); + +manager.onDidMatchBinding((event): void => { + console.log(event.binding.command); +}); manager.destroy(); + +// Atom API Testing =========================================================== +// Class Methods +KeymapManager.buildKeydownEvent("a"); +KeymapManager.buildKeydownEvent("a", { alt: true }); + +// Construction and Destruction +new KeymapManager({ defaultTarget: element }); +manager.clear(); +manager.destroy(); + +// Event Subscription +sub = manager.onDidMatchBinding((event): void => { event.keystrokes; }); +sub = manager.onDidPartiallyMatchBindings((event): void => { event.partiallyMatchedBindings; }); +sub = manager.onDidFailToMatchBinding((event): void => { event.keystrokes; }); +sub = manager.onDidFailToReadFile((event): void => { event.stack; }); + +// Adding and Removing Bindings +sub = manager.add("a", {}, 0); + +// Accessing Bindings +let bindings: AtomKeymap.KeyBinding[] = manager.getKeyBindings(); +bindings = manager.findKeyBindings(); +bindings = manager.findKeyBindings({ command: "a" }); +bindings = manager.findKeyBindings({ keystrokes: "a" }); +bindings = manager.findKeyBindings({ target: element }); +bindings = manager.findKeyBindings({ command: "a", keystrokes: "b"}); +bindings = manager.findKeyBindings({ command: "a", keystrokes: "b", target: element }); + +// Managing Keymap Files +manager.loadKeymap("Test.file"); +manager.loadKeymap("Test.file", { watch: true }); +manager.loadKeymap("Test.file", { watch: true, priority: 0}); + +// Managing Keyboard Events +manager.handleKeyboardEvent(event); +manager.keystrokeForKeyboardEvent(event); + +sub = manager.addKeystrokeResolver((event): string => { + event.layoutName; + return "Test"; +}); + +const num: number = manager.getPartialMatchTimeout(); diff --git a/types/atom-keymap/index.d.ts b/types/atom-keymap/index.d.ts index 58d75ec709..9472e75215 100644 --- a/types/atom-keymap/index.d.ts +++ b/types/atom-keymap/index.d.ts @@ -1,135 +1,236 @@ -// Type definitions for atom-keymap v5.1.5 -// Project: https://github.com/atom/atom-keymap/ -// Definitions by: Vadim Macagon +// Type definitions for atom-keymap 8.x +// Project: https://github.com/atom/atom-keymap +// Definitions by: GlenCFL // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 /// -import * as AtomEventKit from 'event-kit'; +declare global { + namespace AtomKeymap { + /** Objects that appear as parameters to callbacks. */ + namespace Events { + interface FullKeybindingMatch { + /** The string of keystrokes that matched the binding. */ + keystrokes: string; -export = AtomKeymap; + /** The KeyBinding that the keystrokes matched. */ + binding: KeyBinding; -declare namespace AtomKeymap { - type Disposable = AtomEventKit.Disposable; + /** The DOM element that was the target of the most recent keyboard event. */ + keyboardEventTarget: Element; + } - /** Instance side of KeyBinding class. */ - interface KeyBinding { - enabled: boolean; - source: string; - command: string; - keystrokes: string; - keystrokeCount: number; - selector: string; - specificity: number; + interface PartialKeybindingMatch { + /** The string of keystrokes that matched the binding. */ + keystrokes: string; - matches(keystroke: string): boolean; - compare(keyBinding: KeyBinding): number; - } + /** The KeyBindings that the keystrokes partially matched. */ + partiallyMatchedBindings: KeyBinding[]; - interface ICompleteMatchEvent { - /** Keystrokes that matched the binding. */ - keystrokes: string; - /** Binding that was matched to the keystrokes. */ - binding: KeyBinding; - /** DOM element that was the target of the most recent `KeyboardEvent`. */ - keyboardEventTarget: Element; - } + /** DOM element that was the target of the most recent keyboard event. */ + keyboardEventTarget: Element; + } - interface IPartialMatchEvent { - /** Keystrokes that matched the binding. */ - keystrokes: string; - /** Bindings that were partially matched to the keystrokes. */ - partiallyMatchedBindings: KeyBinding[]; - /** DOM element that was the target of the most recent `KeyboardEvent`. */ - keyboardEventTarget: Element; - } + interface FailedKeybindingMatch { + /** The string of keystrokes that failed to match the binding. */ + keystrokes: string; - interface IFailedMatchEvent { - /** Keystrokes that failed to match a binding. */ - keystrokes: string; - /** DOM element that was the target of the most recent `KeyboardEvent`. */ - keyboardEventTarget: Element; - } + /** The DOM element that was the target of the most recent keyboard event. */ + keyboardEventTarget: Element; + } - interface IKeymapLoadEvent { - /** Path to a keymap file. */ - path: string; - } + interface FailedKeymapFileRead { + /** The error message. */ + message: string; - /** Static side of KeymapManager class. */ - interface KeymapManagerStatic { - prototype: KeymapManager; - new (options?: { defaultTarget?: Element }): KeymapManager; - } + /** The error stack trace. */ + stack: string; + } - /** Instance side of KeymapManager class. */ - interface KeymapManager { - constructor: KeymapManagerStatic; - /** Unwatches all watched paths. */ - destroy(): void; + interface KeymapLoaded { + /** The path of the keymap file. */ + path: string; + } - // Event Subscription + interface AddedKeystrokeResolver { + /** The currently resolved keystroke string. If your function returns a falsy + * value, this is how Atom will resolve your keystroke. + */ + keystroke: string; - /** Sets callback to invoke when one or more keystrokes completely match a key binding. */ - onDidMatchBinding(callback: (event: ICompleteMatchEvent) => void): Disposable; - /** Sets callback to invoke when one or more keystrokes partially match a binding. */ - onDidPartiallyMatchBindings(callback: (event: IPartialMatchEvent) => void): Disposable; - /** Sets callback to invoke when one or more keystrokes fail to match any bindings. */ - onDidFailToMatchBinding(callback: (event: IFailedMatchEvent) => void): Disposable; - /** Sets callback to invoke when a keymap file is reloaded. */ - onDidReloadKeymap(callback: (event: IKeymapLoadEvent) => void): Disposable; - /** Sets callback to invoke when a keymap file is unloaded. */ - onDidUnloadKeymap(callback: (event: IKeymapLoadEvent) => void): Disposable; - /** Sets callback to invoke when a keymap file could not to be loaded. */ - onDidFailToReadFile(callback: (error: Error) => void): Disposable; + /** The raw DOM 3 `KeyboardEvent` being resolved. See the DOM API documentation + * for more details. + */ + event: KeyboardEvent; - // Adding and Removing Bindings + /** The OS-specific name of the current keyboard layout. */ + layoutName: string; - /** Adds sets of key bindings grouped by CSS selector. */ - add(source: string, keyBindingsBySelector: any): Disposable; + /** An object mapping DOM 3 `KeyboardEvent.code` values to objects with the + * typed character for that key in each modifier state, based on the current + * operating system layout. + */ + keymap: object; + } + } - // Accessing Bindings + /** Objects that appear as parameters to functions. */ + namespace Options { + interface BuildKeyEvent { + ctrl?: boolean; + alt?: boolean; + shift?: boolean; + cmd?: boolean; + which?: number; + target?: Element; + } + } - getKeyBindings(): KeyBinding[]; - findKeyBindings(params?: { - keystrokes: string; // e.g. 'ctrl-x ctrl-s' - command: string; // e.g. 'editor:backspace' - target?: Element; - }): KeyBinding[]; + /** The static side to each exported class. Should generally only be used internally. */ + namespace Statics { + /* tslint:disable:no-unnecessary-qualifier */ + /** The static side to the KeymapManager class. */ + interface KeymapManager { + /** Create a keydown DOM event. */ + buildKeydownEvent(key: string, options?: AtomKeymap.Options.BuildKeyEvent): void; - // Managing Keymap Files + /** Create a keyup DOM event. */ + buildKeyupEvent(key: string, options?: AtomKeymap.Options.BuildKeyEvent): void; - /** - * Loads the key bindings from the given path. - * - * @param bindingsPath A path to a file or a directory. If the path is a directory all files - * inside it will be loaded. + /** Create a new KeymapManager. */ + new (options?: { defaultTarget?: HTMLElement }): AtomKeymap.KeymapManager; + } + /* tslint:enable:no-unnecessary-qualifier */ + } + + /** This custom subclass of CustomEvent exists to provide the ::abortKeyBinding + * method, as well as versions of the ::stopPropagation methods that record the + * intent to stop propagation so event bubbling can be properly simulated for + * detached elements. */ - loadKeymap(bindingsPath: string, options?: { watch: boolean }): void; - /** - * Starts watching the given file/directory for changes, reloading any keymaps at that location - * when changes are detected. - * - * @param filePath A path to a file or a directory. - */ - watchKeymap(filePath: string): void; + interface CommandEvent extends CustomEvent { + keyBindingAborted: boolean; + propagationStopped: boolean; - // Managing Keyboard Events + abortKeyBinding(): void; + stopPropagation(): CustomEvent; + stopImmediatePropagation(): CustomEvent; + } - /** - * Dispatches a custom event associated with the matching key binding for the given - * `KeyboardEvent` if one can be found. + interface KeyBinding { + // Properties + enabled: boolean; + source: string; + command: string; + keystrokes: string; + keystrokeArray: string[]; + keystrokeCount: number; + selector: string; + specificity: number; + + // Comparison + /** Determines whether the given keystroke matches any contained within this binding. */ + matches(keystroke: string): boolean; + + /** Compare another KeyBinding to this instance. + * Returns <= -1 if the argument is considered lesser or of lower priority. + * Returns 0 if this binding is equivalent to the argument. + * Returns >= 1 if the argument is considered greater or of higher priority. + */ + compare(other: KeyBinding): number; + } + + /** Allows commands to be associated with keystrokes in a context-sensitive way. + * In Atom, you can access a global instance of this object via `atom.keymaps`. */ - handleKeyboardEvent(event: KeyboardEvent): void; - /** Translates a keydown event to a keystroke string. */ - keystrokeForKeyboardEvent(event: KeyboardEvent): string; - /** - * @return The number of milliseconds allowed before pending states caused by partial matches of - * multi-keystroke bindings are terminated. - */ - getPartialMatchTimeout(): number; + /** Instance side of KeymapManager class. */ + interface KeymapManager { + defaultTarget: HTMLElement; + + partialMatchTimeout: number; + + /** Clear all registered key bindings and enqueued keystrokes. For use in tests. */ + clear(): void; + + /** Unwatch all watched paths. */ + destroy(): void; + + // Event Subscription + /** Invoke the given callback when one or more keystrokes completely match a key binding. */ + onDidMatchBinding(callback: (event: Events.FullKeybindingMatch) => void): + EventKit.Disposable; + + /** Invoke the given callback when one or more keystrokes partially match a binding. */ + onDidPartiallyMatchBindings(callback: (event: Events.PartialKeybindingMatch) => + void): EventKit.Disposable; + + /** Invoke the given callback when one or more keystrokes fail to match any bindings. */ + onDidFailToMatchBinding(callback: (event: Events.FailedKeybindingMatch) => + void): EventKit.Disposable; + + /** Invoke the given callback when a keymap file is reloaded. */ + onDidReloadKeymap(callback: (event: Events.KeymapLoaded) => void): + EventKit.Disposable; + + /** Invoke the given callback when a keymap file is unloaded. */ + onDidUnloadKeymap(callback: (event: Events.KeymapLoaded) => void): + EventKit.Disposable; + + /** Invoke the given callback when a keymap file not able to be loaded. */ + onDidFailToReadFile(callback: (error: Events.FailedKeymapFileRead) => void): + EventKit.Disposable; + + // Adding and Removing Bindings + /** Construct KeyBindings from an object grouping them by CSS selector. */ + build(source: string, bindings: { [key: string]: { [key: string]: string }}, + priority?: number): KeyBinding[]; + + /** Add sets of key bindings grouped by CSS selector. */ + add(source: string, bindings: { [key: string]: { [key: string]: string }}, + priority?: number): EventKit.Disposable; + + // Accessing Bindings + /** Get all current key bindings. */ + getKeyBindings(): KeyBinding[]; + + /** Get the key bindings for a given command and optional target. */ + findKeyBindings(params?: { + keystrokes?: string, // e.g. 'ctrl-x ctrl-s' + command?: string, // e.g. 'editor:backspace' + target?: Element, + }): KeyBinding[]; + + // Managing Keymap Files + /** Load the key bindings from the given path. */ + loadKeymap(bindingsPath: string, options?: { watch?: boolean, priority?: number }): + void; + + /** Cause the keymap to reload the key bindings file at the given path whenever + * it changes. + */ + watchKeymap(filePath: string, options?: { priority: number }): void; + + // Managing Keyboard Events + /** Dispatch a custom event associated with the matching key binding for the + * given `KeyboardEvent` if one can be found. + */ + handleKeyboardEvent(event: KeyboardEvent): void; + + /** Translates a keydown event to a keystroke string. */ + keystrokeForKeyboardEvent(event: KeyboardEvent): string; + + /** Customize translation of raw keyboard events to keystroke strings. */ + addKeystrokeResolver(resolver: (event: Events.AddedKeystrokeResolver) => string): + EventKit.Disposable; + + /** Get the number of milliseconds allowed before pending states caused by + * partial matches of multi-keystroke bindings are terminated. + */ + getPartialMatchTimeout(): number; + } } - - /** Allows commands to be associated with keystrokes in a context-sensitive way.*/ - var KeymapManager: KeymapManagerStatic; } + +declare const KeymapManager: AtomKeymap.Statics.KeymapManager; +export = KeymapManager; diff --git a/types/atom-keymap/tsconfig.json b/types/atom-keymap/tsconfig.json index 84ac8aff2e..ef3f191a31 100644 --- a/types/atom-keymap/tsconfig.json +++ b/types/atom-keymap/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -20,4 +20,4 @@ "index.d.ts", "atom-keymap-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/atom-keymap/tslint.json b/types/atom-keymap/tslint.json new file mode 100644 index 0000000000..cd8f17056a --- /dev/null +++ b/types/atom-keymap/tslint.json @@ -0,0 +1,38 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // Custom rules. + "class-name": true, + "indent": [true, "tabs"], + "jsdoc-format": true, + "linebreak-style": [true, "LF"], + "max-line-length": [true, 100], + "quotemark": [true, "double", "avoid-escape"], + "trailing-comma": [true, { + "multiline": { "objects": "always", "arrays": "always", "functions": "never" }, + "singleline": { "objects": "never", "arrays": "never", "functions": "never" } + }], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-module", + "check-separator", + "check-type", + "check-typecast", + "check-rest-spread", + "check-preblock" + ], + // Soon to be defaults. + "arrow-return-shorthand": [true, "multiline"], + "no-any": true, + "no-floating-promises": true, + "no-unbound-method": true, + "no-unsafe-any": true, + "number-literal-format": true, + "restrict-plus-operands": true, + "return-undefined": true, + "switch-final-break": true + } +} diff --git a/types/atom-keymap/v5/.editorconfig b/types/atom-keymap/v5/.editorconfig new file mode 100644 index 0000000000..570211f898 --- /dev/null +++ b/types/atom-keymap/v5/.editorconfig @@ -0,0 +1,3 @@ +[*.ts] +indent_style = tab +indent_size = 4 diff --git a/types/atom-keymap/v5/atom-keymap-tests.ts b/types/atom-keymap/v5/atom-keymap-tests.ts new file mode 100644 index 0000000000..1c92bff5c9 --- /dev/null +++ b/types/atom-keymap/v5/atom-keymap-tests.ts @@ -0,0 +1,20 @@ + + +import { KeymapManager, ICompleteMatchEvent } from "atom-keymap"; + +var manager = new KeymapManager(); +manager.add('some/unique/path', { + '.workspace': { + 'ctrl-x': 'package:do-something', + 'ctrl-y': 'package:do-something-else' + }, + '.mini.editor': { + 'enter': 'core:confirm' + } +}); + +manager.onDidMatchBinding((event: ICompleteMatchEvent): void => { + console.log(event.binding.command); +}) + +manager.destroy(); diff --git a/types/atom-keymap/v5/index.d.ts b/types/atom-keymap/v5/index.d.ts new file mode 100644 index 0000000000..9ffa0a41d3 --- /dev/null +++ b/types/atom-keymap/v5/index.d.ts @@ -0,0 +1,133 @@ +// Type definitions for atom-keymap v5.1.5 +// Project: https://github.com/atom/atom-keymap/ +// Definitions by: Vadim Macagon +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as AtomEventKit from 'event-kit'; + +export = AtomKeymap; + +declare namespace AtomKeymap { + type Disposable = AtomEventKit.Disposable; + + /** Instance side of KeyBinding class. */ + interface KeyBinding { + enabled: boolean; + source: string; + command: string; + keystrokes: string; + keystrokeCount: number; + selector: string; + specificity: number; + + matches(keystroke: string): boolean; + compare(keyBinding: KeyBinding): number; + } + + interface ICompleteMatchEvent { + /** Keystrokes that matched the binding. */ + keystrokes: string; + /** Binding that was matched to the keystrokes. */ + binding: KeyBinding; + /** DOM element that was the target of the most recent `KeyboardEvent`. */ + keyboardEventTarget: Element; + } + + interface IPartialMatchEvent { + /** Keystrokes that matched the binding. */ + keystrokes: string; + /** Bindings that were partially matched to the keystrokes. */ + partiallyMatchedBindings: KeyBinding[]; + /** DOM element that was the target of the most recent `KeyboardEvent`. */ + keyboardEventTarget: Element; + } + + interface IFailedMatchEvent { + /** Keystrokes that failed to match a binding. */ + keystrokes: string; + /** DOM element that was the target of the most recent `KeyboardEvent`. */ + keyboardEventTarget: Element; + } + + interface IKeymapLoadEvent { + /** Path to a keymap file. */ + path: string; + } + + /** Static side of KeymapManager class. */ + interface KeymapManagerStatic { + prototype: KeymapManager; + new (options?: { defaultTarget?: Element }): KeymapManager; + } + + /** Instance side of KeymapManager class. */ + interface KeymapManager { + constructor: KeymapManagerStatic; + /** Unwatches all watched paths. */ + destroy(): void; + + // Event Subscription + + /** Sets callback to invoke when one or more keystrokes completely match a key binding. */ + onDidMatchBinding(callback: (event: ICompleteMatchEvent) => void): Disposable; + /** Sets callback to invoke when one or more keystrokes partially match a binding. */ + onDidPartiallyMatchBindings(callback: (event: IPartialMatchEvent) => void): Disposable; + /** Sets callback to invoke when one or more keystrokes fail to match any bindings. */ + onDidFailToMatchBinding(callback: (event: IFailedMatchEvent) => void): Disposable; + /** Sets callback to invoke when a keymap file is reloaded. */ + onDidReloadKeymap(callback: (event: IKeymapLoadEvent) => void): Disposable; + /** Sets callback to invoke when a keymap file is unloaded. */ + onDidUnloadKeymap(callback: (event: IKeymapLoadEvent) => void): Disposable; + /** Sets callback to invoke when a keymap file could not to be loaded. */ + onDidFailToReadFile(callback: (error: Error) => void): Disposable; + + // Adding and Removing Bindings + + /** Adds sets of key bindings grouped by CSS selector. */ + add(source: string, keyBindingsBySelector: any): Disposable; + + // Accessing Bindings + + getKeyBindings(): KeyBinding[]; + findKeyBindings(params?: { + keystrokes: string; // e.g. 'ctrl-x ctrl-s' + command: string; // e.g. 'editor:backspace' + target?: Element; + }): KeyBinding[]; + + // Managing Keymap Files + + /** + * Loads the key bindings from the given path. + * + * @param bindingsPath A path to a file or a directory. If the path is a directory all files + * inside it will be loaded. + */ + loadKeymap(bindingsPath: string, options?: { watch: boolean }): void; + /** + * Starts watching the given file/directory for changes, reloading any keymaps at that location + * when changes are detected. + * + * @param filePath A path to a file or a directory. + */ + watchKeymap(filePath: string): void; + + // Managing Keyboard Events + + /** + * Dispatches a custom event associated with the matching key binding for the given + * `KeyboardEvent` if one can be found. + */ + handleKeyboardEvent(event: KeyboardEvent): void; + /** Translates a keydown event to a keystroke string. */ + keystrokeForKeyboardEvent(event: KeyboardEvent): string; + /** + * @return The number of milliseconds allowed before pending states caused by partial matches of + * multi-keystroke bindings are terminated. + */ + getPartialMatchTimeout(): number; + } + + /** Allows commands to be associated with keystrokes in a context-sensitive way.*/ + var KeymapManager: KeymapManagerStatic; +} diff --git a/types/atom-keymap/v5/tsconfig.json b/types/atom-keymap/v5/tsconfig.json new file mode 100644 index 0000000000..001df42114 --- /dev/null +++ b/types/atom-keymap/v5/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "atom-keymap": [ "atom-keymap/v5" ], + "event-kit": [ "event-kit/v1" ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "atom-keymap-tests.ts" + ] +} diff --git a/types/atom/.editorconfig b/types/atom/.editorconfig new file mode 100644 index 0000000000..2b997514d2 --- /dev/null +++ b/types/atom/.editorconfig @@ -0,0 +1,3 @@ +[*.ts] +indent_style = tab +indent_size = 2 diff --git a/types/atom/README.md b/types/atom/README.md new file mode 100644 index 0000000000..ba2d52a6f4 --- /dev/null +++ b/types/atom/README.md @@ -0,0 +1,42 @@ +## Atom API Type Definitions + +TypeScript type definitions for the [Atom Text Editor](https://atom.io/) public API, which is used to develop packages for the editor. Documentation for the public API can be found [here](https://atom.io/docs/api/v1.21.0/). + +### Exports + +#### The "atom" Variable + +These definitions declare a global static variable named "atom" as ambient. Once these definitions have been referenced within your project, you will be able to access properties and member functions from the [AtomEnvironment](https://atom.io/docs/api/v1.21.0/AtomEnvironment) class off of this variable, as it is an instance of that class. + +```ts +if (atom.inDevMode()) {} +``` + +#### The Atom Namespace + +All of the types used by or referenced by the Atom public API have been pulled into the Atom namespace, providing a consistent and easy way to access each of them, without having to care about where that type actually lives within the Atom codebase. + +```ts +function example(buffer: Atom.TextBuffer) {} +``` + +#### The AtomCore Namespace + +All classes which are core to Atom itself have been provided under the AtomCore namespace. + +```ts +function example(cursor: AtomCore.Cursor) {} +``` + +### Service Type Definitions + +There are many services provided by other Atom packages that you may want to use within your own Atom package. We bundle type definitions for several of these services with these type definitions. + +```ts +/// +let completionProvider: Atom.Services.Autocomplete.Provider; +``` + +The currently supported services are: +- [Autocomplete](https://github.com/atom/autocomplete-plus) +- [Status Bar](https://github.com/atom/status-bar) diff --git a/types/atom/atom-tests.ts b/types/atom/atom-tests.ts index 5987f4901d..0f9def0a68 100644 --- a/types/atom/atom-tests.ts +++ b/types/atom/atom-tests.ts @@ -1,70 +1,2137 @@ -import path = require("path"); -import _atom = require("atom"); +declare let str: string; +declare let num: number; +declare let bool: boolean; +declare let strs: string[]; +declare let obj: object; +declare let objs: object[]; +declare let regExp: RegExp; -import PathWatcher = require("pathwatcher"); -var File = PathWatcher.File; +declare let element: HTMLElement; +declare let elements: HTMLElement[]; +declare const div: HTMLDivElement; -const jq: JQuery = $("selector"); +declare let grammar: Atom.Grammar; +declare let pos: Atom.Point; +declare let posArr: Atom.Point[]; +declare let range: Atom.Range; +declare let ranges: Atom.Range[]; +declare let marker: Atom.Marker; +declare let displayMarker: Atom.DisplayMarker; +declare let displayMarkers: Atom.DisplayMarker[]; +declare let displayMarkerLayer: Atom.DisplayMarkerLayer; +declare let sub: Atom.Disposable; +declare let dir: Atom.Directory; +declare let dirs: Atom.Directory[]; -class SampleView extends _atom.ScrollView { +declare let buffer: Atom.TextBuffer; +declare let cursor: Atom.Cursor; +declare let cursors: Atom.Cursor[]; +declare let editor: Atom.TextEditor; +declare let editors: Atom.TextEditor[]; +declare let decoration: Atom.Decoration; +declare let decorations: Atom.Decoration[]; +declare let notification: Atom.Notification; +declare let notifications: Atom.Notification[]; +declare let scopeDescriptor: Atom.ScopeDescriptor; +declare let pack: Atom.Package; +declare let packs: Atom.Package[]; +declare let pane: Atom.Pane; +declare let panes: Atom.Pane[]; +declare let panel: Atom.Panel; +declare let panels: Atom.Panel[]; +declare let project: Atom.Project; +declare let repository: Atom.GitRepository; +declare let repositories: Atom.GitRepository[]; +declare let gutter: Atom.Gutter; +declare let gutters: Atom.Gutter[]; +declare let historyPaths: Atom.HistoryProject[]; +declare let layerDecoration: Atom.LayerDecoration; +declare let selection: Atom.Selection; +declare let selections: Atom.Selection[]; +declare let styleManager: Atom.StyleManager; +declare let tooltips: Atom.Tooltip[]; +declare let dock: Atom.Dock; +declare let workspaceCenter: Atom.WorkspaceCenter; +declare let paneContainer: Atom.Dock|Atom.WorkspaceCenter; - editorId:string; - file:PathWatcher.IFile; - editor:AtomCore.IEditor; +// Exports Testing ============================================================ +import { BufferedNodeProcess, BufferedProcess, GitRepository, Notification, + TextBuffer, TextEditor, Point, Range, File, Directory, Emitter, Disposable, + CompositeDisposable, Task, watchPath } from "atom"; - static deserialize(state:any):SampleView { - return new SampleView(state); +const pathWatcher = watchPath("/var/test", {}, (events) => { + for (const event of events) { + str = event.path; + str = event.action; + if (event.oldPath) str = event.oldPath; } +}); - static content():any { - return this.div({class: 'sample native-key-bindings', tabindex: -1}); - } +// global "atom" +atom.commands; +atom.config; +atom.clipboard; +atom.contextMenu; +atom.menu; +atom.keymaps; +atom.tooltips; +atom.notifications; +atom.project; +atom.grammars; +atom.history; +atom.packages; +atom.themes; +atom.styles; +atom.deserializers; +atom.views; +atom.workspace; +atom.textEditors; +atom.onDidBeep((): void => {}); +atom.onWillThrowError((): void => {}); +atom.onDidThrowError((): void => {}); +atom.whenShellEnvironmentLoaded((): void => {}); +atom.inDevMode(); +atom.inSafeMode(); +atom.inSpecMode(); +atom.getVersion(); +str = atom.getReleaseChannel(); +atom.isReleasedVersion(); +atom.getWindowLoadTime(); - constructor(params:{editorId?:string; filePath?:string;} = {}) { - super(); +const loadSettings = atom.getLoadSettings(); +const testValue = loadSettings.env["test"]; +if (testValue) str = testValue; - this.editorId = params.editorId; +atom.open({ devMode: false, newWindow: true, pathsToOpen: ["Test.file"], + safeMode: false }); +atom.close(); +atom.getSize(); +atom.setSize(42, 42); +atom.getPosition(); +atom.setPosition(42, 42); +atom.pickFolder((): void => {}); - if (this.editorId) { - this.resolveEditor(this.editorId); - } else { - this.file = new File(params.filePath); +obj = atom.getCurrentWindow(); + +atom.center(); +atom.focus(); +atom.show(); +atom.hide(); +atom.reload(); +atom.restartApplication(); +atom.isMaximized(); +atom.isFullScreen(); +atom.setFullScreen(true); +atom.toggleFullScreen(); +atom.beep(); +atom.confirm({ buttons: ["Test"], detailedMessage: "Test", message: "Test" }); + +async function toggleDevTools() { + await atom.openDevTools(); + await atom.toggleDevTools(); +} + +atom.executeJavaScriptInDevTools("Test"); + +// Usage Testing ============================================================== +// Some examples taken from the Atom documentation. +// .commands +sub = atom.commands.add("test", { "execute-command": () => {}}); + +// .clipboard +str = atom.clipboard.read(); + +// .contextMenu +sub = atom.contextMenu.add({ + "atom-workspace": [{label: "Help", command: "application:open-documentation"}], + "atom-text-editor": [{ + label: "History", + submenu: [ + { label: "Undo", command: "core:undo" }, + { label: "Redo", command: "core:redo" }, + ], + }], +}); + +// .menu +sub = atom.menu.add([{ + label: "Hello", + submenu : [{ label: "World!", command: "hello:world" }], +}]); + +// .keymaps +atom.keymaps.add("Test.Path", { + selector: { + a: "execute-something", + }, +}); + +// .tooltips +sub = atom.tooltips.add(div, { title: "Tooltip Test" }); + +// .notifications +notification = atom.notifications.addError("Error"); + +// .project +atom.project.addPath("/var/test"); + +// .grammars +grammar = atom.grammars.loadGrammarSync("Test.file"); + +// .history +historyPaths = atom.history.getProjects(); + +// .packages +sub = atom.packages.onDidActivatePackage((atomPackage) => { + atomPackage.isCompatible(); +}); + +// .themes +sub = atom.themes.onDidChangeActiveThemes(() => {}); + +// .styles +sub = atom.styles.onDidAddStyleElement((styleElement) => {}); + +// .deserializers +const serializer = { + name: "Test", + deserialize: () => ({}), +}; +atom.deserializers.add(serializer); + +// .views +sub = atom.views.addViewProvider(Range, (range): HTMLElement => { + range.start; + return div; +}); + +// .workspace +sub = atom.workspace.observeTextEditors((editor) => { + sub = editor.onDidStopChanging((event) => { + for (const change of event.changes) { + change.newExtent; } + }); + + const text: string[] = editor.getBuffer().getLines(); +}); + +// .textEditors +atom.textEditors.add(editor); + +// Atom API Testing =========================================================== +//// AtomEnvironment ========================================================== +// Event Subscription +sub = atom.onDidBeep(() => {}); +sub = atom.onWillThrowError(event => event.message); +sub = atom.onDidThrowError(event => event.line); +sub = atom.whenShellEnvironmentLoaded(() => {}); + +// Atom Details +bool = atom.inDevMode(); +bool = atom.inSafeMode(); +bool = atom.inSpecMode(); +str = atom.getVersion(); +bool = atom.isReleasedVersion(); +num = atom.getWindowLoadTime(); +obj = atom.getLoadSettings(); + +// Managing The Atom Window +declare let dim: { width: number, height: number }; +declare let v2: { x: number, y: number }; + +// atom.open(params); +atom.close(); +dim = atom.getSize(); +atom.setSize(42, 42); +v2 = atom.getPosition(); +atom.setPosition(42, 42); + +atom.pickFolder((paths) => { + if (paths) { + paths.length; } +}); - serialize() { - return { - deserializer: 'SampleView', - editorId: this.editorId - }; - } +atom.getCurrentWindow(); +atom.center(); +atom.focus(); +atom.show(); +atom.hide(); +atom.reload(); +atom.restartApplication(); +bool = atom.isMaximized(); +bool = atom.isFullScreen(); +atom.setFullScreen(true); +atom.toggleFullScreen(); - destroy() { - this.unsubscribe(); - } +// Messaging the User +atom.beep(); - resolveEditor(editorId:string) { - var resolve = ()=> { - if (this.editor) { - jq.trigger("title-changed"); - } else { - var view = jq.parents('.pane').view(); - if (view) { - view.destroyItem(this); - } - } - }; +atom.confirm({ message: "Test" }); +atom.confirm({ message: "Test", buttons: [ "a", "b" ], detailedMessage: "Test" }); +num = atom.confirm({ message: "Test", detailedMessage: "Test", buttons: { + Test: () => { atom.beep(); }, +}}); - if (atom.workspace) { - resolve(); - } else { - atom.packages.once("activated", ()=> { - resolve(); - }); - } +// Managing the Dev Tools +async function manageDevTools() { + await atom.openDevTools(); + await atom.toggleDevTools(); +} + +atom.executeJavaScriptInDevTools("Test"); + +//// BufferedNodeProcess ====================================================== +const nodeProcess = new BufferedNodeProcess({ + command: "File.path", +}); + +new BufferedNodeProcess({ + command: "File.path", + args: [], + options: { + cwd: "/var/test", + detached: true, + }, + exit: (): void => {}, + stderr: (): void => {}, + stdout: (): void => {}, +}); + +//// BufferedProcess ========================================================== +const process = new BufferedProcess({ + command: "File.path", +}); + +new BufferedProcess({ + command: "File.path", + args: [], + options: {}, + exit: (): void => {}, + stderr: (): void => {}, + stdout: (): void => {}, +}); + +sub = process.onWillThrowError((error) => { + error.error; + error.handle(); +}); + +process.kill(); + +//// Clipboard ================================================================ +atom.clipboard.read(); +atom.clipboard.write("Test"); +const clip = atom.clipboard.readWithMetadata(); +str = clip.text; +obj = clip.metadata; + +//// Color ==================================================================== +declare const color: Atom.Color; +str = color.toHexString(); +str = color.toRGBAString(); + +//// CommandRegistry ========================================================== +atom.commands.add("test", "test:function", (event) => {}); +atom.commands.add("test", { + "test-function": (event) => {}, + "test-function2": (event) => {}, +}); +atom.commands.add("test", "test:function", { + didDispatch: (event) => event.stopImmediatePropagation(), + description: "A Command Test", + displayName: "Command: Test", +}); + +const commands = atom.commands.findCommands({ target: element }); +atom.commands.dispatch(element, "test:function"); +sub = atom.commands.onWillDispatch((event) => { event.stopPropagation(); }); +sub = atom.commands.onDidDispatch((event) => { event.cancelable; }); + +//// CompositeDisposable -- See 'event-kit' testing. +//// Config =================================================================== +atom.config.observe("test", (event) => {}); +atom.config.observe("test", { scope: scopeDescriptor }, (value) => {}); + +atom.config.onDidChange((event) => { event.newValue; }); +atom.config.onDidChange("test", (event) => { event.oldValue; }); + +// Managing Settings +atom.config.get("test"); +atom.config.get("test", { scope: scopeDescriptor }); +atom.config.get("test", { excludeSources: ["test.source"] }); +atom.config.get("test", { sources: ["test.source"] }); +atom.config.get("test", { scope: scopeDescriptor, excludeSources: ["a"], + sources: ["b"] }); + +atom.config.set("test", 42); +atom.config.set("test", 42, { scopeSelector: "test-selector" }); +atom.config.set("test", 42, { source: "test" }); +atom.config.set("test", 42, {scopeSelector: "test-selector", source: "test" }); + +atom.config.unset("test"); +atom.config.unset("test", { scopeSelector: "test-selector" }); +atom.config.unset("test", { source: "test" }); +atom.config.unset("test", { scopeSelector: "test-selector", source: "test" }); + +const allConfigValues = atom.config.getAll("test"); +for (const { scopeDescriptor, value } of allConfigValues) { + scopeDescriptor.scopes; +} +atom.config.getAll("test", { scope: scopeDescriptor }); +atom.config.getAll("test", { excludeSources: ["test"] }); +atom.config.getAll("test", { sources: ["test"] }); +atom.config.getAll("test", { scope: scopeDescriptor, excludeSources: ["a"], + sources: ["b"] }); + +strs = atom.config.getSources(); + +atom.config.getSchema("test"); + +str = atom.config.getUserConfigPath(); + +atom.config.transact(() => {}); + +//// ContextMenuManager -- See above. +//// Cursor =================================================================== +// Event Subscription +sub = cursor.onDidChangePosition((event) => { event.newBufferPosition; }); +sub = cursor.onDidDestroy(() => {}); + +// Managing Cursor Position +cursor.setScreenPosition(pos); +cursor.setScreenPosition(pos, {}); +cursor.setScreenPosition(pos, { autoscroll: true }); + +pos = cursor.getScreenPosition(); + +cursor.setBufferPosition(pos); +cursor.setBufferPosition(pos, {}); +cursor.setBufferPosition(pos, { autoscroll: true }); + +pos = cursor.getBufferPosition(); +num = cursor.getScreenRow(); +num = cursor.getScreenColumn(); +num = cursor.getBufferRow(); +num = cursor.getBufferColumn(); +str = cursor.getCurrentBufferLine(); +bool = cursor.isAtBeginningOfLine(); +bool = cursor.isAtEndOfLine(); + +// Cursor Position Details +displayMarker = cursor.getMarker(); +bool = cursor.isSurroundedByWhitespace(); +bool = cursor.isBetweenWordAndNonWord(); + +bool = cursor.isInsideWord(); +bool = cursor.isInsideWord({}); +bool = cursor.isInsideWord({ wordRegex: regExp }); + +num = cursor.getIndentLevel(); +scopeDescriptor = cursor.getScopeDescriptor(); +bool = cursor.hasPrecedingCharactersOnLine(); +bool = cursor.isLastCursor(); + +// Moving the Cursor +cursor.moveUp(); +cursor.moveUp(42); +cursor.moveUp(42, {}); +cursor.moveUp(42, { moveToEndOfSelection: true }); + +cursor.moveDown(); +cursor.moveDown(42); +cursor.moveDown(42, {}); +cursor.moveDown(42, { moveToEndOfSelection: true }); + +cursor.moveLeft(); +cursor.moveLeft(42); +cursor.moveLeft(42, {}); +cursor.moveLeft(42, { moveToEndOfSelection: true }); + +cursor.moveRight(); +cursor.moveRight(42); +cursor.moveRight(42, {}); +cursor.moveRight(42, { moveToEndOfSelection: true }); + +cursor.moveToTop(); +cursor.moveToBottom(); +cursor.moveToBeginningOfScreenLine(); +cursor.moveToBeginningOfLine(); +cursor.moveToFirstCharacterOfLine(); +cursor.moveToEndOfScreenLine(); +cursor.moveToEndOfLine(); +cursor.moveToBeginningOfWord(); +cursor.moveToEndOfWord(); +cursor.moveToBeginningOfNextWord(); +cursor.moveToPreviousWordBoundary(); +cursor.moveToNextWordBoundary(); +cursor.moveToPreviousSubwordBoundary(); +cursor.moveToNextSubwordBoundary(); +cursor.skipLeadingWhitespace(); +cursor.moveToBeginningOfNextParagraph(); +cursor.moveToBeginningOfPreviousParagraph(); + +// Local Positions and Ranges +pos = cursor.getPreviousWordBoundaryBufferPosition(); +pos = cursor.getPreviousWordBoundaryBufferPosition({}); +pos = cursor.getPreviousWordBoundaryBufferPosition({ wordRegex: regExp }); + +cursor.getNextWordBoundaryBufferPosition(); +cursor.getNextWordBoundaryBufferPosition({ wordRegex: regExp }); + +cursor.getBeginningOfCurrentWordBufferPosition(); +cursor.getBeginningOfCurrentWordBufferPosition({}); +cursor.getBeginningOfCurrentWordBufferPosition({ wordRegex: regExp }); +cursor.getBeginningOfCurrentWordBufferPosition({ allowPrevious: true }); +cursor.getBeginningOfCurrentWordBufferPosition({ includeNonWordCharacters: true }); +cursor.getBeginningOfCurrentWordBufferPosition({ wordRegex: regExp, + allowPrevious: true, includeNonWordCharacters: true }); + +cursor.getEndOfCurrentWordBufferPosition(); +cursor.getEndOfCurrentWordBufferPosition({}); +cursor.getEndOfCurrentWordBufferPosition({ wordRegex: regExp }); +cursor.getEndOfCurrentWordBufferPosition({ includeNonWordCharacters: true }); +cursor.getEndOfCurrentWordBufferPosition({ wordRegex: regExp, includeNonWordCharacters: + true }); + +cursor.getBeginningOfNextWordBufferPosition(); +cursor.getBeginningOfNextWordBufferPosition({}); +cursor.getBeginningOfNextWordBufferPosition({ wordRegex: regExp }); + +cursor.getCurrentWordBufferRange(); +cursor.getCurrentWordBufferRange({}); +cursor.getCurrentWordBufferRange({ wordRegex: regExp }); + +cursor.getCurrentLineBufferRange(); +cursor.getCurrentLineBufferRange({}); +cursor.getCurrentLineBufferRange({ includeNewline: true }); + +range = cursor.getCurrentParagraphBufferRange(); +str = cursor.getCurrentWordPrefix(); + +// Comparing to another cursor +num = cursor.compare(cursor); + +// Utilities +cursor.clearSelection(); + +regExp = cursor.wordRegExp(); +regExp = cursor.wordRegExp({}); +regExp = cursor.wordRegExp({ includeNonWordCharacters: true }); + +regExp = cursor.subwordRegExp(); +regExp = cursor.subwordRegExp({}); +regExp = cursor.subwordRegExp({ backwards: true }); + +//// Decoration =============================================================== +// Construction and Destruction +decoration.destroy(); + +// Event Subscription +sub = decoration.onDidChangeProperties(event => { event.oldProperties.gutterName; }); +sub = decoration.onDidDestroy(() => {}); + +// Decoration Details +num = decoration.getId(); +displayMarker = decoration.getMarker(); + +// Properties +const decorationProps = decoration.getProperties(); + +decoration.setProperties(decorationProps); + +//// DeserializerManager ====================================================== +class StorableClass { + name: string; + + constructor() {} + deserialize() { return {}; } +} + +function isStorableClass(o: object): o is StorableClass { + if (typeof o === "object" && ( o).name && + ( o).name === "test") { + return true; + } else { + return false; } } -atom.deserializers.add(SampleView); +let serializable = new StorableClass(); +atom.deserializers.add(serializable); +const blob = atom.deserializers.deserialize({ name: "test" }); +if (blob && isStorableClass(blob)) serializable = blob; -export = SampleView; +//// Directory -- See 'pathwatcher' testing. +//// DisplayMarker -- See 'text-buffer' testing. +//// DisplayMarkerLayer -- See 'text-buffer' testing. +//// Disposable -- See 'event-kit' testing. +//// Dock ===================================================================== +// Methods +dock.activate(); +dock.show(); +dock.hide(); +dock.toggle(); +bool = dock.isVisible(); + +// Event Subscription +sub = dock.observePaneItems(() => {}); +sub = dock.onDidChangeActivePaneItem(() => {}); +sub = dock.onDidStopChangingActivePaneItem(() => {}); +sub = dock.observeActivePaneItem(() => {}); +sub = dock.onDidAddPane(event => event.pane.activate()); +sub = dock.onWillDestroyPane(event => event.pane); +sub = dock.onDidDestroyPane(event => event.pane); +sub = dock.observePanes(pane => pane.activate()); +sub = dock.onDidChangeActivePane(pane => pane.activate()); +sub = dock.observeActivePane(pane => pane.activate()); +sub = dock.onDidAddPaneItem(event => event.index && event.item && event.pane); +sub = dock.onWillDestroyPaneItem(event => event.index && event.item && event.pane); +sub = dock.onDidDestroyPaneItem(event => event.index && event.item && event.pane); + +// Pane Items +objs = dock.getPaneItems(); +obj = dock.getActivePaneItem(); + +// Panes +panes = dock.getPanes(); +pane = dock.getActivePane(); +bool = dock.activateNextPane(); +bool = dock.activatePreviousPane(); + +//// Emitter -- See 'event-kit' testing. +//// File -- See 'pathwatcher' testing. +//// GitRepository ============================================================ +// Construction and Destruction +repository = new GitRepository("Test"); +repository = new GitRepository("Test", {}); +repository = new GitRepository("Test", { refreshOnWindowFocus: true }); +repository = new GitRepository("Test", { config: atom.config }); +repository = new GitRepository("Test", { project: atom.project }); +repository = new GitRepository("Test", { refreshOnWindowFocus: false, config: atom.config, + project: atom.project }); +repository.destroy(); +bool = repository.isDestroyed(); + +// Event Subscription +sub = repository.onDidDestroy(() => {}); +sub = repository.onDidChangeStatus(event => event.path && event.pathStatus); +sub = repository.onDidChangeStatuses(() => {}); + +// Repository Details +repository.getType(); +str = repository.getPath(); +str = repository.getWorkingDirectory(); +bool = repository.isProjectAtRoot(); +str = repository.relativize(); +bool = repository.hasBranch("master"); + +str = repository.getShortHead(); +str = repository.getShortHead("test.path"); + +bool = repository.isSubmodule("test.path"); + +declare var aheadBehindCount: { ahead: number, behind: number }; +aheadBehindCount = repository.getAheadBehindCount("ref"); +aheadBehindCount = repository.getAheadBehindCount("ref", "test.path"); + +aheadBehindCount = repository.getCachedUpstreamAheadBehindCount(); +aheadBehindCount = repository.getCachedUpstreamAheadBehindCount("test.path"); + +str = repository.getConfigValue("username"); +str = repository.getConfigValue("username", "test.path"); + +str = repository.getOriginURL(); +str = repository.getOriginURL("test.path"); + +let upstreamBranch = repository.getUpstreamBranch(); +if (upstreamBranch) { + str = upstreamBranch; +} + +upstreamBranch = repository.getUpstreamBranch("test.path"); +if (upstreamBranch) { + str = upstreamBranch; +} + +declare var gitReferences: { heads: string[], remotes: string[], tags: string[] }; +gitReferences = repository.getReferences(); +gitReferences = repository.getReferences("test.path"); + +str = repository.getReferenceTarget("ref"); +str = repository.getReferenceTarget("ref", "test.path"); + +// Reading Status +bool = repository.isPathModified("file.path"); +bool = repository.isPathNew("file.path"); +bool = repository.isPathIgnored("file.path"); +num = repository.getDirectoryStatus("file.path"); +num = repository.getPathStatus("file.path"); + +const cachedPathStatus = repository.getCachedPathStatus("file.path"); +if (cachedPathStatus) { + num = cachedPathStatus; +} + +bool = repository.isStatusModified(42); +bool = repository.isStatusNew(42); + +// Retrieving Diffs +declare var diffStats: { added: number, deleted: number }; +diffStats = repository.getDiffStats("file.path"); + +declare var lineDiffs: Array<{ oldStart: number, newStart: number, oldLines: number, + newLines: number }>; +lineDiffs = repository.getLineDiffs("file.path", "contents"); + +// Checking Out +bool = repository.checkoutHead("file.path"); +bool = repository.checkoutReference("ref", true); + +//// Grammar -- See 'first-mate' testing. +//// GrammarRegistry -- See 'first-mate' testing. +//// Gutter =================================================================== +// Gutter Destruction +gutter.destroy(); + +// Event Subscription +sub = gutter.onDidChangeVisible(gutter => gutter.isVisible()); +sub = gutter.onDidDestroy(() => {}); + +// Visibility +gutter.hide(); +gutter.show(); +bool = gutter.isVisible(); +decoration = gutter.decorateMarker(displayMarker, { type: "line-number" }); + +//// HistoryManager =========================================================== +historyPaths = atom.history.getProjects(); +atom.history.clearProjects(); +sub = atom.history.onDidChangeProjects(() => {}); + +//// KeymapManager -- See 'atom-keymap' testing. +//// LayerDecoration ========================================================== +layerDecoration.destroy(); +bool = layerDecoration.isDestroyed(); +layerDecoration.getProperties(); +declare let decorationLayerProps: Atom.Structures.DecorationLayerProps; +layerDecoration.setProperties(decorationLayerProps); +layerDecoration.setPropertiesForMarker(marker, { type: "line", class: "test-class" }); + +//// MarkerLayer -- See 'text-buffer' testing. +//// MenuManager ============================================================== +sub = atom.menu.add([ + { + label: "Hello", + submenu : [{ label: "World!", command: "hello:world" }], + }, +]); +atom.menu.update(); + +//// Notification ============================================================= +notification = new Notification("fatal", "Test"); +notification = new Notification("success", "Test", {}); +notification = new Notification("info", "Test", { + buttons: [ + { className: "Test", text: "Test", onDidClick: () => {}}, + ], + description: "Test", + detail: "Test", + dismissable: false, + icon: "Test", +}); + +// Event Subscription +sub = notification.onDidDismiss(notification => notification.dismissed); +sub = notification.onDidDisplay(notification => notification.timestamp); + +// Methods +str = notification.getType(); +str = notification.getMessage(); + +// Extended Methods +notification.dismiss(); + +//// NotificationManager ====================================================== +// Events +atom.notifications.onDidAddNotification(notification => notification.dismiss()); + +// Adding Notifications +atom.notifications.addSuccess("Test"); +atom.notifications.addSuccess("Test", {}); +atom.notifications.addSuccess("Test", { + description: "Desc", + detail: "Details", + dismissable: true, + icon: "Icon", + buttons: [{ + text: "Button", + onDidClick: () => {}, + className: "test-class", + }], +}); + +atom.notifications.addInfo("Test"); +atom.notifications.addInfo("Test", {}); +atom.notifications.addInfo("Test", { description: "Desc" }); + +atom.notifications.addWarning("Test"); +atom.notifications.addWarning("Test", {}); +atom.notifications.addWarning("Test", { description: "Desc" }); + +atom.notifications.addError("Test"); +atom.notifications.addError("Test", {}); +atom.notifications.addError("Test", { stack: "Stack" }); + +atom.notifications.addFatalError("Test"); +atom.notifications.addFatalError("Test", {}); +atom.notifications.addFatalError("Test", { stack: "Stack" }); + +// Getting Notifications +notifications = atom.notifications.getNotifications(); + +//// Package ================================================================== +// Event Subscription +pack.onDidDeactivate(() => {}); + +// Native Module Compatibility +bool = pack.isCompatible(); +declare let exitInfo: Promise<{ code: number, stderr: string, stdout: string }>; +exitInfo = pack.rebuild(); + +const buildFailureOutput = pack.getBuildFailureOutput(); +if (buildFailureOutput) { + str = buildFailureOutput; +} + +//// PackageManager ===========================================================\ +// Event Subscription +sub = atom.packages.onDidLoadInitialPackages(() => {}); +sub = atom.packages.onDidActivateInitialPackages(() => {}); +sub = atom.packages.onDidActivatePackage(pack => pack.name); +sub = atom.packages.onDidDeactivatePackage(pack => pack.path); +sub = atom.packages.onDidLoadPackage(pack => pack.isCompatible()); +sub = atom.packages.onDidUnloadPackage(pack => pack.bundledPackage); + +// Package system data +str = atom.packages.getApmPath(); +strs = atom.packages.getPackageDirPaths(); + +// General package data +const packagePath = atom.packages.resolvePackagePath("Test"); +if (packagePath) { + str = packagePath; +} + +bool = atom.packages.isBundledPackage("Test"); + +// Enabling and disabling packages +let potentialPack = atom.packages.enablePackage("Test"); +if (potentialPack) { + pack = potentialPack; +} + +potentialPack = atom.packages.disablePackage("Test"); +if (potentialPack) { + pack = potentialPack; +} + +bool = atom.packages.isPackageDisabled("Test"); + +// Accessing active packages +packs = atom.packages.getActivePackages(); + +potentialPack = atom.packages.getActivePackage("Test"); +if (potentialPack) { + pack = potentialPack; +} + +bool = atom.packages.isPackageActive("Test"); +bool = atom.packages.hasActivatedInitialPackages(); + +// Accessing loaded packages +packs = atom.packages.getLoadedPackages(); + +potentialPack = atom.packages.getLoadedPackage("Test"); +if (potentialPack) { + pack = potentialPack; +} + +bool = atom.packages.isPackageLoaded("Test"); +bool = atom.packages.hasLoadedInitialPackages(); + +// Accessing available packages +strs = atom.packages.getAvailablePackagePaths(); +strs = atom.packages.getAvailablePackageNames(); +strs = atom.packages.getAvailablePackageMetadata(); + +//// Pane ===================================================================== +// Event Subscription +sub = pane.onDidChangeFlexScale(scale => num = scale); +sub = pane.observeFlexScale(scale => num = scale); +sub = pane.onDidActivate(() => {}); +sub = pane.onWillDestroy(() => {}); +sub = pane.onDidDestroy(() => {}); +sub = pane.onDidChangeActive(active => bool = active); +sub = pane.observeActive(active => bool = active); +sub = pane.onDidAddItem(event => event.index && event.item); +sub = pane.onDidRemoveItem(event => event.index && event.item); +sub = pane.onWillRemoveItem(event => event.index && event.item); +sub = pane.onDidMoveItem(event => event.item && event.oldIndex && event.newIndex); +sub = pane.observeItems((item) => {}); +sub = pane.onDidChangeActiveItem((item) => {}); +sub = pane.onChooseNextMRUItem((item) => {}); +sub = pane.onChooseLastMRUItem((item) => {}); +sub = pane.onDoneChoosingMRUItem(() => {}); +sub = pane.observeActiveItem((item) => {}); +sub = pane.onWillDestroyItem(event => event.index && event.item); + +// Items +objs = pane.getItems(); +obj = pane.getActiveItem(); + +let potentialItem = pane.itemAtIndex(42); +if (potentialItem) { + obj = potentialItem; +} + +pane.activateNextItem(); +pane.activatePreviousItem(); +pane.moveItemRight(); +pane.moveItemLeft(); +num = pane.getActiveItemIndex(); +pane.activateItemAtIndex(42); + +pane.activateItem(element); +pane.activateItem(element, { pending: true }); + +obj = pane.addItem(element); +obj = pane.addItem(element, {}); +obj = pane.addItem(element, { pending: true }); +obj = pane.addItem(element, { index: 42 }); +obj = pane.addItem(element, { pending: true, index: 42 }); + +objs = pane.addItems(objs); +objs = pane.addItems(objs, 42); + +pane.moveItem(element, 42); +pane.moveItemToPane(element, pane, 42); +pane.destroyActiveItem(); + +async function destroyAndWait() { + bool = await pane.destroyItem(element); + bool = await pane.destroyItem(element, true); +} + +pane.destroyItems(); +pane.destroyInactiveItems(); + +async function savePaneItem() { + await pane.saveActiveItem(); + let actionReturn = await pane.saveActiveItem(() => true); + if (actionReturn) bool = actionReturn; + + await pane.saveActiveItemAs(() => {}); + actionReturn = await pane.saveActiveItemAs(() => false); + + await pane.saveItem(element, () => {}); + let altActionReturn = await pane.saveItem(element, () => 42); + if (altActionReturn) num = altActionReturn; + + await pane.saveItemAs(element, () => {}); + altActionReturn = await pane.saveItemAs(element, () => 42); +} + +pane.saveItems(); + +potentialItem = pane.itemForURI("https://test"); +if (potentialItem) { + obj = potentialItem; +} + +bool = pane.activateItemForURI("https://test"); + +// Lifecycle +bool = pane.isActive(); +pane.activate(); +pane.destroy(); +bool = pane.isDestroyed(); + +// Splitting +pane = pane.splitLeft(); +pane = pane.splitLeft({}); +pane = pane.splitLeft({ copyActiveItem: true }); +pane = pane.splitLeft({ items: elements }); +pane = pane.splitLeft({ copyActiveItem: true, items: elements }); + +pane = pane.splitRight(); +pane = pane.splitRight({}); +pane = pane.splitRight({ copyActiveItem: true }); +pane = pane.splitRight({ items: elements }); +pane = pane.splitRight({ copyActiveItem: true, items: elements }); + +pane = pane.splitUp(); +pane = pane.splitUp({}); +pane = pane.splitUp({ copyActiveItem: true }); +pane = pane.splitUp({ items: elements }); +pane = pane.splitUp({ copyActiveItem: true, items: elements }); + +pane = pane.splitDown(); +pane = pane.splitDown({}); +pane = pane.splitDown({ copyActiveItem: true }); +pane = pane.splitDown({ items: elements }); +pane = pane.splitDown({ copyActiveItem: true, items: elements }); + +//// Panel ==================================================================== +// Methods +panel.destroy(); + +// Event Subscription +sub = panel.onDidChangeVisible(visible => bool = visible); +sub = panel.onDidDestroy(panel => bool = panel.isVisible()); + +// Panel Details +obj = panel.getItem(); +num = panel.getPriority(); +bool = panel.isVisible(); +panel.hide(); +panel.show(); + +//// PathWatcher ============================================================== +pathWatcher.dispose(); +sub = pathWatcher.onDidError((error) => str = error.name); + +async function waitForPathWatcher() { + await pathWatcher.getStartPromise(); +} + +//// Point -- See 'text-buffer' testing. +//// Project ================================================================== +// Event Subscription +sub = project.onDidChangePaths(paths => paths.length); + +sub = project.onDidChangeFiles(events => { + for (const event of events) { + str = event.action; + } +}); + +sub = project.onDidAddBuffer(buffer => buffer.id); +sub = project.observeBuffers(buffer => buffer.file); + +// Accessing the git repository +repositories = project.getRepositories(); + +async function getDirectoryRepo() { + const potentialRepo = await project.repositoryForDirectory(dir); + if (potentialRepo) repository = potentialRepo; +} + +// Managing Paths +strs = project.getPaths(); +project.setPaths(["a", "b"]); +project.addPath("Test"); + +async function initWatcher() { + await project.getWatcherPromise("/var/test"); +} + +project.removePath("Test"); +dirs = project.getDirectories(); + +const [projectPath, relativePath] = project.relativizePath("Test"); +if (projectPath) { + str = projectPath; +} +str = relativePath; + +bool = project.contains("Test"); + +//// Range -- See 'text-buffer' testing. +//// ScopeDescriptor ========================================================== +strs = scopeDescriptor.getScopesArray(); + +//// Selection ================================================================ +// Event Subscription +sub = selection.onDidChangeRange(event => event.newBufferRange && event.oldBufferRange && + event.newScreenRange && event.oldScreenRange && event.selection); +sub = selection.onDidDestroy(() => {}); + +// Managing the selection range +range = selection.getScreenRange(); + +selection.setScreenRange(range); +selection.setScreenRange([pos, pos]); +selection.setScreenRange([pos, [0, 0]]); +selection.setScreenRange([[0, 0], pos]); +selection.setScreenRange([[0, 0], [0, 0]]); +selection.setScreenRange([[0, 0], [0, 0]], {}); +selection.setScreenRange(range, { autoscroll: true, preserveFolds: false }); +selection.setScreenRange([pos, pos], { autoscroll: true }); + +range = selection.getBufferRange(); + +selection.setBufferRange(range); +selection.setBufferRange([pos, pos]); +selection.setBufferRange([pos, [0, 0]]); +selection.setBufferRange([[0, 0], pos]); +selection.setBufferRange([[0, 0], [0, 0]]); +selection.setBufferRange([[0, 0], [0, 0]], {}); +selection.setBufferRange(range, { autoscroll: true, preserveFolds: false }); +selection.setBufferRange([pos, pos], { autoscroll: true }); + +const [startingRow, endingRow ]: [number, number] = selection.getBufferRowRange(); + +// Info about the selection +bool = selection.isEmpty(); +bool = selection.isReversed(); +bool = selection.isSingleScreenLine(); +str = selection.getText(); +bool = selection.intersectsBufferRange(range); // Not range-compatible. +bool = selection.intersectsWith(selection); + +// Modifying the selected range +selection.clear(); +selection.clear({}); +selection.clear({ autoscroll: false }); + +selection.selectToScreenPosition(pos); +selection.selectToScreenPosition([0, 0]); + +selection.selectToBufferPosition(pos); +selection.selectToBufferPosition([0, 0]); + +selection.selectRight(); +selection.selectRight(42); + +selection.selectLeft(); +selection.selectLeft(42); + +selection.selectUp(); +selection.selectUp(42); + +selection.selectDown(); +selection.selectDown(42); + +selection.selectToTop(); +selection.selectToBottom(); +selection.selectAll(); +selection.selectToBeginningOfLine(); +selection.selectToFirstCharacterOfLine(); +selection.selectToEndOfLine(); +selection.selectToEndOfBufferLine(); +selection.selectToBeginningOfWord(); +selection.selectToEndOfWord(); +selection.selectToBeginningOfNextWord(); +selection.selectToPreviousWordBoundary(); +selection.selectToNextWordBoundary(); +selection.selectToPreviousSubwordBoundary(); +selection.selectToNextSubwordBoundary(); +selection.selectToBeginningOfNextParagraph(); +selection.selectToBeginningOfPreviousParagraph(); +selection.selectWord(); +selection.expandOverWord(); +selection.selectLine(42); +selection.expandOverLine(); + +// Modifying the selected text +selection.insertText("Replacement"); +selection.insertText("Replacement", {}); +selection.insertText("Replacement", { select: true }); +selection.insertText("Replacement", { autoIndent: true }); +selection.insertText("Replacement", { autoIndentNewline: true }); +selection.insertText("Replacement", { autoDecreaseIndent: true }); +selection.insertText("Replacement", { normalizeLineEndings: true }); +selection.insertText("Replacement", { undo: "skip" }); +selection.insertText("Replacement", { select: true, autoIndent: true, + autoIndentNewline: true, autoDecreaseIndent: true, normalizeLineEndings: true, + undo: "skip" }); + +selection.backspace(); +selection.deleteToPreviousWordBoundary(); +selection.deleteToNextWordBoundary(); +selection.deleteToBeginningOfWord(); +selection.deleteToBeginningOfLine(); +selection.delete(); +selection.deleteToEndOfLine(); +selection.deleteToEndOfWord(); +selection.deleteToBeginningOfSubword(); +selection.deleteToEndOfSubword(); +selection.deleteSelectedText(); +selection.deleteLine(); +selection.joinLines(); +selection.outdentSelectedRows(); +selection.autoIndentSelectedRows(); +selection.toggleLineComments(); +selection.cutToEndOfLine(); +selection.cutToEndOfBufferLine(); + +selection.cut(); +selection.cut(true); +selection.cut(true, true); + +selection.copy(); +selection.copy(true); +selection.copy(true, true); + +selection.fold(); +selection.indentSelectedRows(); + +// Managing multiple selections +selection.addSelectionBelow(); +selection.addSelectionAbove(); + +selection.merge(selection); +selection.merge(selection, {}); +selection.merge(selection, { preserveFolds: true }); +selection.merge(selection, { autoscroll: true }); +selection.merge(selection, { preserveFolds: true, autoscroll: true }); + +// Comparing to other selections +num = selection.compare(selection); + +//// StyleManager ============================================================= +// Event Subscription +sub = styleManager.observeStyleElements(styleElement => styleElement.context); +sub = styleManager.onDidAddStyleElement(styleElement => styleElement.sourcePath); +sub = styleManager.onDidRemoveStyleElement(styleElement => styleElement.onkeydown); +sub = styleManager.onDidUpdateStyleElement(styleElement => styleElement.sourcePath); + +// Reading Style Elements +const styleElements: HTMLStyleElement[] = styleManager.getStyleElements(); + +// Paths +str = styleManager.getUserStyleSheetPath(); + +//// Task ===================================================================== +let task: Atom.Task = Task.once("File.path", {}, () => {}); +task = new Task("File.path"); + +task.start({}, () => {}); +task.send("test-message"); +sub = task.on("test-message", () => {}); +task.terminate(); +task.cancel(); + +//// TextBuffer -- See 'text-buffer' testing. +//// TextEditor =============================================================== +// Event Subscription +sub = editor.onDidChangeTitle(title => str = title.charAt(0)); +sub = editor.onDidChangePath(path => str = path.charAt(0)); + +sub = editor.onDidChange(changes => { + for (const change of changes) { + change.newExtent; + change.oldExtent; + change.start; + } +}); + +sub = editor.onDidStopChanging(event => { + for (const change of event.changes) { + change.newExtent && change.oldExtent && change.newRange && change.oldRange && + change.newText && change.oldText && change.start; + } +}); + +sub = editor.onDidChangeCursorPosition(event => event.newBufferPosition); +sub = editor.onDidChangeSelectionRange(event => event.selection); +sub = editor.onDidSave(event => event.path); +sub = editor.onDidDestroy(() => {}); +sub = editor.observeGutters(gutter => gutter.show()); +sub = editor.onDidAddGutter(gutter => gutter.hide()); +sub = editor.onDidRemoveGutter(name => name.length); +sub = editor.onDidChangeSoftWrapped(softWrapped => {}); +sub = editor.onDidChangeEncoding(encoding => {}); +sub = editor.observeGrammar(grammar => grammar.name); +sub = editor.onDidChangeGrammar(grammar => grammar.scopeName); +sub = editor.onDidChangeModified(modified => {}); +sub = editor.onDidConflict(() => {}); +sub = editor.onWillInsertText(event => event.cancel && event.text); +sub = editor.onDidInsertText(event => event.text); +sub = editor.observeCursors(cursor => cursor.moveToBottom()); +sub = editor.onDidAddCursor(cursor => cursor.getMarker()); +sub = editor.onDidRemoveCursor(cursor => cursor.compare(cursor)); +sub = editor.observeSelections(selection => selection.cutToEndOfBufferLine()); +sub = editor.onDidAddSelection(selection => selection.selectWord()); +sub = editor.onDidRemoveSelection(selection => selection.toggleLineComments()); +sub = editor.observeDecorations(decoration => decoration.getId()); +sub = editor.onDidAddDecoration(decoration => decoration.id); +sub = editor.onDidRemoveDecoration(decoration => decoration.getId()); +sub = editor.onDidChangePlaceholderText(placeholderText => + placeholderText.toLowerCase()); +buffer = editor.getBuffer(); + +// File Details +str = editor.getTitle(); +str = editor.getLongTitle(); + +const filePath = editor.getPath(); +if (filePath) { + str = filePath; +} + +bool = editor.isModified(); +bool = editor.isEmpty(); +str = editor.getEncoding(); +editor.setEncoding("utf8"); + +// File Operations +async function saveEditor() { + await editor.save(); + await editor.saveAs("test.file"); +} + +// Reading Text +str = editor.getText(); +str = editor.getTextInBufferRange(range); +num = editor.getLineCount(); +num = editor.getScreenLineCount(); +num = editor.getLastBufferRow(); +num = editor.getLastScreenRow(); +str = editor.lineTextForBufferRow(42); +str = editor.lineTextForScreenRow(42); +range = editor.getCurrentParagraphBufferRange(); + +// Mutating Text +editor.setText("Test"); + +editor.setTextInBufferRange(range, "Test"); +editor.setTextInBufferRange([pos, pos], "Test"); +editor.setTextInBufferRange([pos, [0, 0]], "Test"); +editor.setTextInBufferRange([[0, 0], pos], "Test"); +editor.setTextInBufferRange([[0, 0], [0, 0]], "Test"); +editor.setTextInBufferRange(range, "Test", {}); +editor.setTextInBufferRange([pos, pos], "Test", { normalizeLineEndings: true }); +editor.setTextInBufferRange(range, "Test", { normalizeLineEndings: true, + undo: "skip" }); + +editor.insertText("Test"); +editor.insertText("Test", {}); +editor.insertText("Test", { autoDecreaseIndent: true }); +editor.insertText("Test", { autoIndent: true }); +editor.insertText("Test", { autoIndentNewline: true }); +editor.insertText("Test", { normalizeLineEndings: true }); +editor.insertText("Test", { select: true }); +editor.insertText("Test", { undo: "skip" }); +editor.insertText("Text", { autoDecreaseIndent: false, autoIndent: false, + autoIndentNewline: false, normalizeLineEndings: false, select: false, undo: "skip" }); + +editor.insertNewline(); +editor.delete(); +editor.backspace(); +editor.mutateSelectedText((selection, index) => { selection.clear(); }); +editor.transpose(); +editor.upperCase(); +editor.lowerCase(); +editor.toggleLineCommentsInSelection(); +editor.insertNewlineBelow(); +editor.insertNewlineAbove(); +editor.deleteToBeginningOfWord(); +editor.deleteToPreviousWordBoundary(); +editor.deleteToNextWordBoundary(); +editor.deleteToBeginningOfSubword(); +editor.deleteToEndOfSubword(); +editor.deleteToBeginningOfLine(); +editor.deleteToEndOfLine(); +editor.deleteToEndOfWord(); +editor.deleteLine(); + +// History +editor.undo(); +editor.redo(); + +editor.transact(() => {}); +editor.transact(42, () => {}); + +editor.abortTransaction(); +num = editor.createCheckpoint(); +bool = editor.revertToCheckpoint(42); +bool = editor.groupChangesSinceCheckpoint(42); + +// TextEditor Coordinates +pos = editor.screenPositionForBufferPosition(pos); +pos = editor.screenPositionForBufferPosition([0, 0]); +pos = editor.screenPositionForBufferPosition(pos, {}); +pos = editor.screenPositionForBufferPosition(pos, { clipDirection: "backward" }); +pos = editor.screenPositionForBufferPosition([0, 0], { clipDirection: "forward" }); + +pos = editor.bufferPositionForScreenPosition(pos); +pos = editor.bufferPositionForScreenPosition([0, 0]); +pos = editor.bufferPositionForScreenPosition(pos, {}); +pos = editor.bufferPositionForScreenPosition(pos, { clipDirection: "backward" }); +pos = editor.bufferPositionForScreenPosition([0, 0], { clipDirection: "forward" }); + +range = editor.screenRangeForBufferRange(range); +range = editor.screenRangeForBufferRange([pos, pos]); +range = editor.screenRangeForBufferRange([pos, [0, 0]]); +range = editor.screenRangeForBufferRange([[0, 0], pos]); +range = editor.screenRangeForBufferRange([[0, 0], [0, 0]]); + +range = editor.bufferRangeForScreenRange(range); +range = editor.bufferRangeForScreenRange([pos, pos]); +range = editor.bufferRangeForScreenRange([pos, [0, 0]]); +range = editor.bufferRangeForScreenRange([[0, 0], pos]); +range = editor.bufferRangeForScreenRange([[0, 0], [0, 0]]); + +pos = editor.clipBufferPosition(pos); +pos = editor.clipBufferPosition([0, 0]); + +range = editor.clipBufferRange(range); +range = editor.clipBufferRange([pos, pos]); +range = editor.clipBufferRange([pos, [0, 0]]); +range = editor.clipBufferRange([[0, 0], pos]); +range = editor.clipBufferRange([[0, 0], [0, 0]]); + +pos = editor.clipScreenPosition(pos); +pos = editor.clipScreenPosition([0, 0]); +pos = editor.clipScreenPosition(pos, {}); +pos = editor.clipScreenPosition(pos, { clipDirection: "closest" }); +pos = editor.clipScreenPosition([0, 0], { clipDirection: "closest" }); + +range = editor.clipScreenRange(range); +range = editor.clipScreenRange([pos, pos]); +range = editor.clipScreenRange([pos, [0, 0]]); +range = editor.clipScreenRange([[0, 0], pos]); +range = editor.clipScreenRange([[0, 0], [0, 0]]); +range = editor.clipScreenRange(range, {}); +range = editor.clipScreenRange(range, { clipDirection: "closest" }); +range = editor.clipScreenRange([pos, pos], { clipDirection: "closest" }); + +// Decorations +decoration = editor.decorateMarker(displayMarker, { type: "line" }); +decoration = editor.decorateMarker(displayMarker, { type: "line", avoidOverflow: true, + class: "test-class", gutterName: "gutterName", item: element, onlyEmpty: true, + onlyHead: true, onlyNonEmpty: true, position: "before" }); + +layerDecoration = editor.decorateMarkerLayer(displayMarkerLayer, { type: "line-number" }); +layerDecoration = editor.decorateMarkerLayer(displayMarkerLayer, { type: "line-number", + avoidOverflow: false, class: "test-class", item: element, onlyEmpty: false, onlyHead: false, + onlyNonEmpty: false, position: "after" }); + +decorations = editor.getDecorations(); +decorations = editor.getDecorations({}); +decorations = editor.getDecorations({ type: "line-number" }); +decorations = editor.getDecorations({ type: "line", avoidOverflow: true, + class: "test-class", gutterName: "gutterName", item: element, onlyEmpty: true, + onlyHead: true, onlyNonEmpty: true, position: "before" }); + +decorations = editor.getLineDecorations(); +decorations = editor.getLineDecorations({}); +decorations = editor.getLineDecorations({ avoidOverflow: true }); +decorations = editor.getLineDecorations({ avoidOverflow: true, class: "test-class", + item: element, onlyEmpty: true, onlyHead: true, onlyNonEmpty: true, + position: "before" }); + +decorations = editor.getLineNumberDecorations(); +decorations = editor.getLineNumberDecorations({}); +decorations = editor.getLineNumberDecorations({ onlyHead: true }); +decorations = editor.getLineNumberDecorations({ avoidOverflow: true, + class: "test-class", gutterName: "gutterName", item: element, onlyEmpty: true, + onlyHead: true, onlyNonEmpty: true, position: "before" }); + +decorations = editor.getHighlightDecorations(); +decorations = editor.getHighlightDecorations({}); +decorations = editor.getHighlightDecorations({ onlyHead: true }); +decorations = editor.getHighlightDecorations({ avoidOverflow: true, + class: "test-class", item: element, onlyEmpty: true, onlyHead: true, onlyNonEmpty: true, + position: "before" }); + +decorations = editor.getOverlayDecorations(); +decorations = editor.getOverlayDecorations({}); +decorations = editor.getOverlayDecorations({ onlyHead: true }); +decorations = editor.getOverlayDecorations({ avoidOverflow: true, + class: "test-class", item: element, onlyEmpty: true, onlyHead: true, onlyNonEmpty: true, + position: "before" }); + +// Markers +displayMarker = editor.markBufferRange(range); +displayMarker = editor.markBufferRange([pos, pos]); +displayMarker = editor.markBufferRange([pos, [0, 0]]); +displayMarker = editor.markBufferRange([[0, 0], pos]); +displayMarker = editor.markBufferRange([[0, 0], [0, 0]]); +displayMarker = editor.markBufferRange(range, {}); +displayMarker = editor.markBufferRange(range, { invalidate: "surround" }); +displayMarker = editor.markBufferRange(range, { maintainHistory: true }); +displayMarker = editor.markBufferRange(range, { reversed: true }); +displayMarker = editor.markBufferRange([[0, 0], [0, 0]], { invalidate: "overlap" }); +displayMarker = editor.markBufferRange(range, { invalidate: "surround", + maintainHistory: false, reversed: false }); + +displayMarker = editor.markBufferPosition(pos); +displayMarker = editor.markBufferPosition([0, 0]); +displayMarker = editor.markBufferPosition(pos, {}); +displayMarker = editor.markBufferPosition(pos, { invalidate: "never" }); +displayMarker = editor.markBufferPosition([0, 0], { invalidate: "surround" }); + +displayMarker = editor.markScreenPosition(pos); +displayMarker = editor.markScreenPosition([0, 0]); +displayMarker = editor.markScreenPosition(pos, {}); +displayMarker = editor.markScreenPosition(pos, { invalidate: "never" }); +displayMarker = editor.markScreenPosition(pos, { clipDirection: "forward" }); +displayMarker = editor.markScreenPosition([0, 0], { invalidate: "surround", + clipDirection: "backward" }); + +displayMarkers = editor.findMarkers({ startBufferRow: 42 }); +displayMarkers = editor.findMarkers({ endBufferRow: 42 }); +displayMarkers = editor.findMarkers({ containsBufferRange: range }); +displayMarkers = editor.findMarkers({ containsBufferRange: [pos, pos] }); +displayMarkers = editor.findMarkers({ containsBufferRange: [pos, [0, 0]] }); +displayMarkers = editor.findMarkers({ containsBufferRange: [[0, 0], pos] }); +displayMarkers = editor.findMarkers({ containsBufferRange: [[0, 0], [0, 0]] }); +displayMarkers = editor.findMarkers({ containsBufferPosition: pos }); +displayMarkers = editor.findMarkers({ containsBufferPosition: [42, 42] }); +displayMarkers = editor.findMarkers({ + startBufferPosition: pos, + endBufferPosition: pos, + startScreenPosition: pos, + endScreenPosition: pos, + startsInBufferRange: range, + endsInBufferRange: range, + startsInScreenRange: range, + endsInScreenRange: range, + startBufferRow: 42, + endBufferRow: 42, + startScreenRow: 42, + endScreenRow: 42, + intersectsBufferRowRange: [42, 42], + intersectsScreenRowRange: [42, 42], + containsBufferRange: range, + containsBufferPosition: pos, + containedInBufferRange: range, + containedInScreenRange: range, + intersectsBufferRange: range, + intersectsScreenRange: range, +}); + +displayMarkerLayer = editor.addMarkerLayer(); +displayMarkerLayer = editor.addMarkerLayer({}); +displayMarkerLayer = editor.addMarkerLayer({ maintainHistory: true }); +displayMarkerLayer = editor.addMarkerLayer({ persistent: true }); +displayMarkerLayer = editor.addMarkerLayer({ maintainHistory: true, persistent: true }); + +const potentialMarkerLayer = editor.getMarkerLayer(42); +if (potentialMarkerLayer) { + displayMarkerLayer = potentialMarkerLayer; +} + +displayMarkerLayer = editor.getDefaultMarkerLayer(); +displayMarker = editor.getMarker(42); +displayMarkers = editor.getMarkers(); +num = editor.getMarkerCount(); + +// Cursors +pos = editor.getCursorBufferPosition(); +posArr = editor.getCursorBufferPositions(); + +editor.setCursorBufferPosition(pos); +editor.setCursorBufferPosition(pos, {}); +editor.setCursorBufferPosition(pos, { autoscroll: true }); +editor.setCursorBufferPosition([0, 0], { autoscroll: true }); + +let potentialCursor = editor.getCursorAtScreenPosition(pos); +if (potentialCursor) { + cursor = potentialCursor; +} + +potentialCursor = editor.getCursorAtScreenPosition([0, 0]); +if (potentialCursor) { + cursor = potentialCursor; +} + +pos = editor.getCursorScreenPosition(); +posArr = editor.getCursorScreenPositions(); + +editor.setCursorScreenPosition(pos); +editor.setCursorScreenPosition([0, 0]); +editor.setCursorScreenPosition(pos, {}); +editor.setCursorBufferPosition(pos, { autoscroll: true }); + +cursor = editor.addCursorAtBufferPosition(pos); +cursor = editor.addCursorAtBufferPosition([0, 0]); + +cursor = editor.addCursorAtScreenPosition(pos); +cursor = editor.addCursorAtScreenPosition([0, 0]); + +bool = editor.hasMultipleCursors(); + +editor.moveUp(); +editor.moveUp(42); + +editor.moveDown(); +editor.moveDown(42); + +editor.moveLeft(); +editor.moveLeft(42); + +editor.moveRight(); +editor.moveRight(42); + +editor.moveToBeginningOfLine(); +editor.moveToBeginningOfScreenLine(); +editor.moveToFirstCharacterOfLine(); +editor.moveToEndOfLine(); +editor.moveToEndOfScreenLine(); +editor.moveToBeginningOfWord(); +editor.moveToEndOfWord(); +editor.moveToTop(); +editor.moveToBottom(); +editor.moveToBeginningOfNextWord(); +editor.moveToPreviousWordBoundary(); +editor.moveToNextWordBoundary(); +editor.moveToPreviousSubwordBoundary(); +editor.moveToNextSubwordBoundary(); +editor.moveToBeginningOfNextParagraph(); +editor.moveToBeginningOfPreviousParagraph(); +cursor = editor.getLastCursor(); + +str = editor.getWordUnderCursor(); +str = editor.getWordUnderCursor({}); +str = editor.getWordUnderCursor({ allowPrevious: true }); +str = editor.getWordUnderCursor({ includeNonWordCharacters: true }); +str = editor.getWordUnderCursor({ wordRegex: /r/ }); +str = editor.getWordUnderCursor({ allowPrevious: true, includeNonWordCharacters: true, + wordRegex: /r/ }); + +cursors = editor.getCursors(); +cursors = editor.getCursorsOrderedByBufferPosition(); + +// Selections +str = editor.getSelectedText(); +range = editor.getSelectedBufferRange(); +ranges = editor.getSelectedBufferRanges(); + +editor.setSelectedBufferRange(range); +editor.setSelectedBufferRange(range, {}); +editor.setSelectedBufferRange(range, { preserveFolds: true }); +editor.setSelectedBufferRange(range, { reversed: true }); +editor.setSelectedBufferRange(range, { preserveFolds: true, reversed: true }); +editor.setSelectedBufferRange([pos, pos]); +editor.setSelectedBufferRange([pos, [0, 0]]); +editor.setSelectedBufferRange([[0, 0], pos]); +editor.setSelectedBufferRange([[0, 0], [0, 0]]); + +editor.setSelectedBufferRanges(ranges); +editor.setSelectedBufferRanges([[pos, pos]]); +editor.setSelectedBufferRanges([[pos, [0, 0]]]); +editor.setSelectedBufferRanges([[[0, 0], pos]]); +editor.setSelectedBufferRanges([[[0, 0], [0, 0]]]); +editor.setSelectedBufferRanges(ranges, {}); +editor.setSelectedBufferRanges([[pos, pos]], {}); +editor.setSelectedBufferRanges(ranges, { reversed: true }); +editor.setSelectedBufferRanges([[pos, pos]], { preserveFolds: true }); +editor.setSelectedBufferRanges([[pos, pos]], { reversed: true, preserveFolds: true }); + +range = editor.getSelectedScreenRange(); +ranges = editor.getSelectedScreenRanges(); + +editor.setSelectedScreenRange(range); +editor.setSelectedScreenRange([pos, pos]); +editor.setSelectedScreenRange([pos, [0, 0]]); +editor.setSelectedScreenRange([[0, 0], pos]); +editor.setSelectedScreenRange([[0, 0], [0, 0]]); +editor.setSelectedScreenRange(range, {}); +editor.setSelectedScreenRange([pos, pos], {}); +editor.setSelectedScreenRange(range, { reversed: true }); +editor.setSelectedScreenRange([pos, pos], { reversed: true }); + +editor.setSelectedScreenRanges(ranges); +editor.setSelectedScreenRanges([[pos, pos]]); +editor.setSelectedScreenRanges([[pos, [0, 0]]]); +editor.setSelectedScreenRanges([[[0, 0], pos]]); +editor.setSelectedScreenRanges([[[0, 0], [0, 0]]]); +editor.setSelectedScreenRanges(ranges, {}); +editor.setSelectedScreenRanges([[pos, pos]], {}); +editor.setSelectedScreenRanges(ranges, { reversed: true }); +editor.setSelectedScreenRanges([[pos, pos]], { reversed: true }); + +selection = editor.addSelectionForBufferRange(range); +selection = editor.addSelectionForBufferRange([pos, pos]); +selection = editor.addSelectionForBufferRange([pos, [0, 0]]); +selection = editor.addSelectionForBufferRange([[0, 0], pos]); +selection = editor.addSelectionForBufferRange([[0, 0], [0, 0]]); +selection = editor.addSelectionForBufferRange(range, {}); +selection = editor.addSelectionForBufferRange(range, { preserveFolds: true }); +selection = editor.addSelectionForBufferRange(range, { reversed: true }); +selection = editor.addSelectionForBufferRange(range, { preserveFolds: false, + reversed: false }); +selection = editor.addSelectionForBufferRange([pos, pos], { preserveFolds: false }); + +selection = editor.addSelectionForScreenRange(range); +selection = editor.addSelectionForScreenRange([pos, pos]); +selection = editor.addSelectionForScreenRange([pos, [0, 0]]); +selection = editor.addSelectionForScreenRange([[0, 0], pos]); +selection = editor.addSelectionForScreenRange([[0, 0], [0, 0]]); +selection = editor.addSelectionForScreenRange(range, {}); +selection = editor.addSelectionForScreenRange(range, { preserveFolds: true }); +selection = editor.addSelectionForScreenRange(range, { reversed: true }); +selection = editor.addSelectionForScreenRange(range, { preserveFolds: false, + reversed: false }); +selection = editor.addSelectionForScreenRange([pos, pos], { preserveFolds: false }); + +editor.selectToBufferPosition(pos); +editor.selectToScreenPosition(pos); + +editor.selectUp(); +editor.selectUp(42); + +editor.selectDown(); +editor.selectDown(42); + +editor.selectLeft(); +editor.selectLeft(42); + +editor.selectRight(); +editor.selectRight(42); + +editor.selectToTop(); +editor.selectToBottom(); +editor.selectAll(); +editor.selectToBeginningOfLine(); +editor.selectToFirstCharacterOfLine(); +editor.selectToEndOfLine(); +editor.selectToBeginningOfWord(); +editor.selectToEndOfWord(); +editor.selectLinesContainingCursors(); +editor.selectWordsContainingCursors(); +editor.selectToPreviousSubwordBoundary(); +editor.selectToNextSubwordBoundary(); +editor.selectToPreviousWordBoundary(); +editor.selectToNextWordBoundary(); +editor.selectToBeginningOfNextWord(); +editor.selectToBeginningOfNextParagraph(); +editor.selectToBeginningOfPreviousParagraph(); + +const potentialRange = editor.selectMarker(displayMarker); +if (potentialRange) { + range = potentialRange; +} + +selection = editor.getLastSelection(); +selections = editor.getSelections(); +selections = editor.getSelectionsOrderedByBufferPosition(); +bool = editor.selectionIntersectsBufferRange(range); // not range-compatible + +// Searching and Replacing +editor.scan(/r/, params => { + num = params.match.index; + str = params.matchText; + range = params.range; + params.replace("Test"); + params.stop(); +}); + +editor.scan(/r/, {}, () => {}); +editor.scan(/r/, { leadingContextLineCount: 42 }, () => {}); +editor.scan(/r/, { trailingContextLineCount: 42 }, () => {}); +editor.scan(/r/, { leadingContextLineCount: 42, trailingContextLineCount: 42 }, + () => {}); + +editor.scanInBufferRange(/r/, range, () => {}); +editor.scanInBufferRange(/r/, [pos, pos], () => {}); +editor.scanInBufferRange(/r/, [pos, [0, 0]], () => {}); +editor.scanInBufferRange(/r/, [[0, 0], pos], () => {}); +editor.scanInBufferRange(/r/, [[0, 0], [0, 0]], () => {}); +editor.scanInBufferRange(/r/, range, params => { + num = params.match.index; + str = params.matchText; + range = params.range; + params.replace("Test"); + params.stop(); +}); + +editor.backwardsScanInBufferRange(/r/, range, () => {}); +editor.backwardsScanInBufferRange(/r/, [pos, pos], () => {}); +editor.backwardsScanInBufferRange(/r/, [pos, [0, 0]], () => {}); +editor.backwardsScanInBufferRange(/r/, [[0, 0], pos], () => {}); +editor.backwardsScanInBufferRange(/r/, [[0, 0], [0, 0]], () => {}); +editor.backwardsScanInBufferRange(/r/, range, params => { + num = params.match.index; + str = params.matchText; + range = params.range; + params.replace("Test"); + params.stop(); +}); + +// Tab Behavior +bool = editor.getSoftTabs(); +editor.setSoftTabs(true); +bool = editor.toggleSoftTabs(); +num = editor.getTabLength(); +editor.setTabLength(42); + +const potentialBool = editor.usesSoftTabs(); +if (potentialBool) { + bool = potentialBool; +} + +str = editor.getTabText(); + +// Soft Wrap Behavior +bool = editor.isSoftWrapped(); +editor.setSoftWrapped(true); +bool = editor.toggleSoftWrapped(); +num = editor.getSoftWrapColumn(); + +// Indentation +num = editor.indentationForBufferRow(42); + +editor.setIndentationForBufferRow(42, 42); +editor.setIndentationForBufferRow(42, 42, {}); +editor.setIndentationForBufferRow(42, 42, { preserveLeadingWhitespace: true }); + +editor.indentSelectedRows(); +editor.outdentSelectedRows(); +num = editor.indentLevelForLine("Test"); +editor.autoIndentSelectedRows(); + +// Grammars +grammar = editor.getGrammar(); +editor.setGrammar(grammar); + +// Managing Syntax Scopes +scopeDescriptor = editor.getRootScopeDescriptor(); + +scopeDescriptor = editor.scopeDescriptorForBufferPosition(pos); +scopeDescriptor = editor.scopeDescriptorForBufferPosition([0, 0]); + +range = editor.bufferRangeForScopeAtCursor("selector"); +bool = editor.isBufferRowCommented(42); + +// Clipboard Operations +editor.copySelectedText(); +editor.cutSelectedText(); + +editor.pasteText(); +editor.pasteText({}); +editor.pasteText({ autoIndentNewline: true }); +editor.pasteText({ autoIndent: true }); +editor.pasteText({ autoDecreaseIndent: true }); +editor.pasteText({ normalizeLineEndings: true }); +editor.pasteText({ select: true }); +editor.pasteText({ undo: "skip" }); +editor.pasteText({ autoIndentNewline: true, autoIndent: true, autoDecreaseIndent: true, + normalizeLineEndings: true, select: true, undo: "skip" }); + +editor.cutToEndOfLine(); +editor.cutToEndOfBufferLine(); + +// Folds +editor.foldCurrentRow(); +editor.unfoldCurrentRow(); +editor.foldBufferRow(42); +editor.unfoldBufferRow(42); +editor.foldSelectedLines(); +editor.foldAll(); +editor.unfoldAll(); +editor.foldAllAtIndentLevel(42); +editor.isFoldableAtBufferRow(42); +editor.isFoldableAtScreenRow(42); +editor.toggleFoldAtBufferRow(42); +editor.isFoldedAtCursorRow(); +editor.isFoldedAtBufferRow(42); +editor.isFoldedAtScreenRow(42); + +// Gutters +editor.addGutter({ name: "Test" }); +editor.addGutter({ name: "Test", priority: 42 }); +editor.addGutter({ name: "Test", visible: true }); +editor.addGutter({ name: "Test", priority: 42, visible: true }); + +gutters = editor.getGutters(); + +const potentialGutter = editor.gutterWithName("test-gutter"); +if (potentialGutter) { + gutter = potentialGutter; +} + +editor.scrollToCursorPosition(); +editor.scrollToCursorPosition({}); +editor.scrollToCursorPosition({ center: true }); + +editor.scrollToBufferPosition(pos); +editor.scrollToBufferPosition([0, 0]); +editor.scrollToBufferPosition(pos, {}); +editor.scrollToBufferPosition([0, 0], {}); +editor.scrollToBufferPosition(pos, { center: true }); +editor.scrollToBufferPosition([0, 0], { center: true }); + +editor.scrollToScreenPosition(pos); +editor.scrollToScreenPosition([0, 0]); +editor.scrollToScreenPosition(pos, {}); +editor.scrollToScreenPosition([0, 0], {}); +editor.scrollToScreenPosition(pos, { center: true }); +editor.scrollToScreenPosition([0, 0], { center: true }); + +// TextEditor Rendering +str = editor.getPlaceholderText(); +editor.setPlaceholderText("Test"); + +//// ThemeManager ============================================================= +// Event Subscription +sub = atom.themes.onDidChangeActiveThemes(() => {}); + +// Accessing Loaded Themes +let potentialStrs = atom.themes.getLoadedThemeNames(); +if (potentialStrs) { + strs = potentialStrs; +} + +let potentialPacks = atom.themes.getLoadedThemes(); +if (potentialPacks) { + packs = potentialPacks; +} + +// Accessing Active Themes +potentialStrs = atom.themes.getActiveThemeNames(); +if (potentialStrs) { + strs = potentialStrs; +} + +potentialPacks = atom.themes.getActiveThemes(); +if (potentialPacks) { + packs = potentialPacks; +} + +// Managing Enabled Themes +strs = atom.themes.getEnabledThemeNames(); + +//// TooltipManager =========================================================== +sub = atom.tooltips.add(element, { title: "Test"}); +sub = atom.tooltips.add(element, { title: "

Test

", html: true }); +sub = atom.tooltips.add(element, { item: element}); +sub = atom.tooltips.add(element, { class: "test-class" }); +sub = atom.tooltips.add(element, { placement: "top" }); + +sub = atom.tooltips.add(element, { placement: () => "left" }); + +sub = atom.tooltips.add(element, { trigger: "click" }); +sub = atom.tooltips.add(element, { delay: { hide: 42, show: 42 }}); +sub = atom.tooltips.add(element, { keyBindingCommand: "test-command", + keyBindingTarget: element }); + +tooltips = atom.tooltips.findTooltips(element); + +//// ViewRegistry ============================================================= +atom.views.addViewProvider(Point, (point) => { + point.column; + return element; +}); + +element = atom.views.getView(element); + +//// Workspace ================================================================ +// Event Subscription +sub = atom.workspace.observeTextEditors(editor => editor.id); +sub = atom.workspace.observePaneItems((item) => {}); +sub = atom.workspace.onDidChangeActivePaneItem((item) => {}); +sub = atom.workspace.onDidStopChangingActivePaneItem((item) => {}); + +sub = atom.workspace.onDidChangeActiveTextEditor(editor => { + if (editor) { + editor.alive; + } +}); + +sub = atom.workspace.observeActivePaneItem((item) => {}); + +sub = atom.workspace.observeActiveTextEditor(editor => { + if (editor) { + editor.id; + } +}); + +sub = atom.workspace.onDidOpen(event => event.index && event.item && event.pane && + event.uri); +sub = atom.workspace.onDidAddPane(event => event.pane); +sub = atom.workspace.onWillDestroyPane(event => event.pane); +sub = atom.workspace.onDidDestroyPane(event => event.pane); +sub = atom.workspace.observePanes(pane => pane.activate()); +sub = atom.workspace.onDidChangeActivePane(pane => pane.activate()); +sub = atom.workspace.observeActivePane(pane => pane.activate()); +sub = atom.workspace.onDidAddPaneItem(event => event.index && event.item && event.pane); +sub = atom.workspace.onWillDestroyPaneItem(event => event.index && event.item && event.pane); +sub = atom.workspace.onDidDestroyPaneItem(event => event.index && event.item && event.pane); +sub = atom.workspace.onDidAddTextEditor(event => event.index && event.pane && + event.textEditor); + +// Opening +async function workspaceOpen() { + obj = await atom.workspace.open(); + obj = await atom.workspace.open("https://test"); + obj = await atom.workspace.open("https://test", { activateItem: true }); + obj = await atom.workspace.open("https://test", { activatePane: true }); + obj = await atom.workspace.open("https://test", { initialColumn: 42 }); + obj = await atom.workspace.open("https://test", { initialLine: 42 }); + obj = await atom.workspace.open("https://test", { location: "right" }); + obj = await atom.workspace.open("https://test", { split: "up" }); + obj = await atom.workspace.open("https://test", { pending: true }); + obj = await atom.workspace.open("https://test", { searchAllPanes: true }); + obj = await atom.workspace.open("https://test", { + activateItem: true, + activatePane: true, + initialColumn: 42, + initialLine: 42, + location: "left", + split: "left", + pending: true, + searchAllPanes: true, + }); +} + +bool = atom.workspace.hide("https://test"); +bool = atom.workspace.hide(element); + +async function workspaceToggle() { + await atom.workspace.toggle("https://test"); + await atom.workspace.toggle(element); +} + +obj = atom.workspace.createItemForURI("https://test"); + +bool = atom.workspace.isTextEditor(obj); + +async function workspaceReopen() { + const result = await atom.workspace.reopenItem(); + if (result) obj = result; +} + +atom.workspace.addOpener(() => element); + +atom.workspace.buildTextEditor(obj); + +// Pane Items +objs = atom.workspace.getPaneItems(); +obj = atom.workspace.getActivePaneItem(); +editors = atom.workspace.getTextEditors(); + +let potentialEditor = atom.workspace.getActiveTextEditor(); +if (potentialEditor) { + editor = potentialEditor; +} + +// Panes +paneContainer = atom.workspace.getActivePaneContainer(); +panes = atom.workspace.getPanes(); +pane = atom.workspace.getActivePane(); +bool = atom.workspace.activateNextPane(); +bool = atom.workspace.activatePreviousPane(); + +let potentialPaneContainer = atom.workspace.paneContainerForURI("https://test"); +if (potentialPaneContainer) { + paneContainer = potentialPaneContainer; +} + +potentialPaneContainer = atom.workspace.paneContainerForItem(element); +if (potentialPaneContainer) { + paneContainer = potentialPaneContainer; +} + +let potentialPane = atom.workspace.paneForURI("https://test"); +if (potentialPane) { + pane = potentialPane; +} + +potentialPane = atom.workspace.paneForItem(element); +if (potentialPane) { + pane = potentialPane; +} + +// Pane Locations +workspaceCenter = atom.workspace.getCenter(); +dock = atom.workspace.getLeftDock(); +dock = atom.workspace.getRightDock(); +dock = atom.workspace.getBottomDock(); + +// Panels +panels = atom.workspace.getBottomPanels(); + +panel = atom.workspace.addBottomPanel({ item: element }); +panel = atom.workspace.addBottomPanel({ item: element, priority: 100, visible: true }); + +panels = atom.workspace.getLeftPanels(); + +panel = atom.workspace.addLeftPanel({ item: element }); +panel = atom.workspace.addLeftPanel({ item: element, priority: 100, visible: true }); + +panels = atom.workspace.getRightPanels(); + +panel = atom.workspace.addRightPanel({ item: element }); +panel = atom.workspace.addRightPanel({ item: element, priority: 100, visible: true }); + +panels = atom.workspace.getTopPanels(); + +panel = atom.workspace.addTopPanel({ item: element }); +panel = atom.workspace.addTopPanel({ item: element, priority: 100, visible: true }); + +panels = atom.workspace.getHeaderPanels(); + +panel = atom.workspace.addHeaderPanel({ item: element }); +panel = atom.workspace.addHeaderPanel({ item: element, priority: 100, visible: true }); + +panels = atom.workspace.getFooterPanels(); + +panel = atom.workspace.addFooterPanel({ item: element }); +panel = atom.workspace.addFooterPanel({ item: element, priority: 100, visible: true }); + +panels = atom.workspace.getModalPanels(); + +panel = atom.workspace.addModalPanel({ item: element }); +panel = atom.workspace.addModalPanel({ item: element, priority: 100, visible: true }); + +const potentialPanel = atom.workspace.panelForItem(element); +if (potentialPanel) { + panel = potentialPanel; +} + +const scanResults = atom.workspace.scan(/r/, () => {}); +scanResults.cancel(); + +// Searching and Replacing +async function workspaceScan() { + await scanResults; + + const scanOptions = { + onPathsSearched: (pathsSearched: number) => {}, + leadingContextLineCount: 5, + trailingContextLineCount: 5, + paths: ["a"], + }; + await atom.workspace.scan(/r/, scanOptions, (results) => { + str = results.filePath; + for (const match of results.matches) { + range = Range.fromObject(match.range); + strs = match.leadingContextLines; + strs = match.trailingContextLines; + } + }); +} + +async function workspaceReplace() { + await atom.workspace.replace(/r/, "Test", ["a"], (options) => {}); +} + +//// WorkspaceCenter ========================================================== +// Event Subscription +sub = workspaceCenter.observeTextEditors(editor => editor.id); +sub = workspaceCenter.observePaneItems(item => {}); +sub = workspaceCenter.onDidChangeActivePaneItem(item => {}); +sub = workspaceCenter.onDidStopChangingActivePaneItem(item => {}); +sub = workspaceCenter.observeActivePaneItem(item => {}); + +// Pane Items +objs = workspaceCenter.getPaneItems(); +workspaceCenter.getActivePaneItem(); +editors = workspaceCenter.getTextEditors(); + +potentialEditor = workspaceCenter.getActiveTextEditor(); +if (potentialEditor) { + editor = potentialEditor; +} + +// Panes +panes = workspaceCenter.getPanes(); +pane = workspaceCenter.getActivePane(); +workspaceCenter.activateNextPane(); +workspaceCenter.activatePreviousPane(); diff --git a/types/atom/index.d.ts b/types/atom/index.d.ts index 718cc2747a..1cd564c19c 100644 --- a/types/atom/index.d.ts +++ b/types/atom/index.d.ts @@ -1,1923 +1,4211 @@ -// Type definitions for Atom -// Project: https://atom.io/ -// Definitions by: vvakame +// Type definitions for Atom 1.21 +// Project: https://github.com/atom/atom +// Definitions by: GlenCFL // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 +/// /// -/// -/// -/// +/// +/// +/// /// -/// -// Policy: this definition file only declare element related to `atom`. -// if js file include to another npm package (e.g. "space-pen", "mixto" and "emissary"). -// you should create a separate file. +declare global { + /** The core classes for the Atom Text Editor. */ + namespace AtomCore { + /** Objects that appear as parameters to callbacks. */ + namespace Events { + interface ExceptionThrown { + originalError: Error; + message: string; + url: string; + line: number; + column: number; + } -// API documentation : https://atom.io/docs/api/v0.106.0/api/docs/README.md.html + interface PreventableExceptionThrown extends ExceptionThrown { + preventDefault(): void; + } -interface Window { - atom: AtomCore.IAtom; - measure(description:string, fn:Function):any; // return fn result - profile(description:string, fn:Function):any; // return fn result -} + interface SelectionChanged { + oldBufferRange: TextBuffer.Range; + oldScreenRange: TextBuffer.Range; + newBufferRange: TextBuffer.Range; + newScreenRange: TextBuffer.Range; + selection: Selection; + } -declare namespace AtomCore { + interface PaneItemObserved { + item: object; + pane: Pane; + index: number; + } - // https://atom.io/docs/v0.84.0/advanced/view-system - interface IWorkspaceViewStatic { - new ():IWorkspaceView; - version: number; - configDefaults:any; - content():any; - } + interface PaneItemOpened extends PaneItemObserved { + uri: string; + } - interface Decoration { - destroy(): void; - } + interface EditorChanged { + /** A Point representing where the change started. */ + start: TextBuffer.Point; - /** - * Represents a buffer annotation that remains logically stationary even as the buffer changes. This is used - * to represent cursors, folds, snippet targets, misspelled words, any anything else that needs to track a - * logical location in the buffer over time. - */ - interface Marker { - /** - * Destroys the marker, causing it to emit the 'destroyed' event. Once destroyed, a marker cannot be - * restored by undo/redo operations. + /** A Point representing the replaced extent. */ + oldExtent: TextBuffer.Point; + + /** A Point representing the replacement extent. */ + newExtent: TextBuffer.Point; + } + + interface StyleElementObserved extends HTMLStyleElement { + sourcePath: string; + context: string; + } + + interface TextEditorObserved { + textEditor: TextEditor; + pane: Pane; + index: number; + } + + interface RepoStatusChanged { + path: string; + + /** This value can be passed to ::isStatusModified or ::isStatusNew to get more + * information. + */ + pathStatus: number; + } + + interface PaneListItemShifted { + /** The pane item that was added or removed. */ + item: object; + + /** A number indicating where the item is located. */ + index: number; + } + + interface PaneItemMoved { + /** The removed pane item. */ + item: object; + + /** A number indicating where the item was located. */ + oldIndex: number; + + /** A number indicating where the item is now located. */ + newIndex: number; + } + + interface CursorPositionChanged { + oldBufferPosition: TextBuffer.Point; + oldScreenPosition: TextBuffer.Point; + newBufferPosition: TextBuffer.Point; + newScreenPosition: TextBuffer.Point; + textChanged: boolean; + Cursor: Cursor; + } + + interface DecorationPropsChanged { + /** Object the old parameters the decoration used to have. */ + oldProperties: Structures.DecorationProps; + + /** Object the new parameters the decoration now has */ + newProperties: Structures.DecorationProps; + } + + type FilesystemChange = Array<{ + /** A string describing the filesystem action that occurred. */ + action: "created"|"modified"|"deleted"|"renamed"; + + /** The absolute path to the filesystem entry that was acted upon. */ + path: string; + + /** For rename events, a string containing the filesystem entry's former + * absolute path. + */ + oldPath?: string; + }>; + } + + /** Objects that appear as parameters to functions. */ + namespace Options { + interface TextInsertion { + select?: boolean; + autoIndent?: boolean; + autoIndentNewline?: boolean; + autoDecreaseIndent?: boolean; + normalizeLineEndings?: boolean; + undo?: "skip"; + } + + interface Menu { + /** The menu itme's label. */ + label: string; + + /** An array of sub menus. */ + submenu?: ReadonlyArray; + + /** The command to trigger when the item is clicked. */ + command?: string; + } + + interface ContextMenu { + /** The menu item's label. */ + label?: string; + + /** The command to invoke on the target of the right click that invoked the + * context menu. + */ + command?: string; + + /** Whether the menu item should be clickable. Disabled menu items typically + * appear grayed out. Defaults to true. + */ + enabled?: boolean; + + /** An array of additional items. */ + submenu?: ReadonlyArray; + + /** If you want to create a separator, provide an item with type: 'separator' + * and no other keys. + */ + type?: "separator"; + + /** Whether the menu item should appear in the menu. Defaults to true. */ + visible?: boolean; + + /** A function that is called on the item each time a context menu is created + * via a right click. + */ + created?(event: Event): void; + + /** A function that is called to determine whether to display this item on a + * given context menu deployment. + */ + shouldDisplay?(event: Event): void; + } + + interface SpawnProcess { + /** Current working directory of the child process. */ + cwd?: string; + + /** Environment key-value pairs. */ + env?: { [key: string]: string }; + + /** The child's stdio configuration. */ + stdio?: string|Array; + + /** Prepare child to run independently of its parent process. */ + detached?: boolean; + + /** Sets the user identity of the process. */ + uid?: number; + + /** Sets the group identity of the process. */ + gid?: number; + + /** If true, runs command inside of a shell. Uses "/bin/sh" on UNIX, and process.env.ComSpec + * on Windows. A different shell can be specified as a string. + */ + shell?: boolean | string; + } + + interface NodeProcess { + /** The command to execute. */ + command: string; + + /** The array of arguments to pass to the command. */ + args?: ReadonlyArray; + + /** The options object to pass to Node's ChildProcess.spawn method. */ + options?: SpawnProcess; + + /** The callback that receives a single argument which contains the standard + * output from the command. + */ + stdout?(data: string): void; + + /** The callback that receives a single argument which contains the standard + * error output from the command. + */ + stderr?(data: string): void; + + /** The callback which receives a single argument containing the exit status. */ + exit?(code: number): void; + } + + interface Process extends NodeProcess { + /** Whether the command will automatically start when this BufferedProcess is + * created. + */ + autoStart?: boolean; + } + + interface Notification { + buttons?: Array<{ + className?: string; + onDidClick?(event: MouseEvent): void; + text?: string; + }>; + description?: string; + detail?: string; + dismissable?: boolean; + icon?: string; + } + + interface ErrorNotification extends Notification { + stack?: string; + } + + /** The options for a Bootstrap 3 Tooltip class, which Atom uses a variant of. */ + interface Tooltip { + /** Apply a CSS fade transition to the tooltip. */ + animation?: boolean; + + /** Appends the tooltip to a specific element. */ + container?: string|HTMLElement|false; + + /** Delay showing and hiding the tooltip (ms) - does not apply to manual + * trigger type. + */ + delay?: number|{ show: number, hide: number }; + + /** Allow HTML in the tooltip. */ + html?: boolean; + + /** How to position the tooltip. */ + placement?: "top"|"bottom"|"left"|"right"|"auto"; + + /** If a selector is provided, tooltip objects will be delegated to the + * specified targets. + */ + selector?: string; + + /** Base HTML to use when creating the tooltip. */ + template?: string; + + /** Default title value if title attribute isn't present. + * If a function is given, it will be called with its this reference set to + * the element that the tooltip is attached to. + */ + title?: string|HTMLElement|(() => string); + + /** How tooltip is triggered - click | hover | focus | manual. + * You may pass multiple triggers; separate them with a space. + */ + trigger?: string; + } + + interface WorkspaceScan { + /** An array of glob patterns to search within. */ + paths?: ReadonlyArray; + + /** A function to be periodically called with the number of paths searched. */ + onPathsSearched?(pathsSearched: number): void; + + /** The number of lines before the matched line to include in the results object. */ + leadingContextLineCount?: number; + + /** The number of lines after the matched line to include in the results object. */ + trailingContextLineCount?: number; + } + } + + /** The static side to each exported class. Should generally only be used internally. */ + namespace Statics { + /* tslint:disable:no-unnecessary-qualifier */ + /** The static side to the BufferedProcess class. */ + interface BufferedProcess { + new (options: AtomCore.Options.Process): AtomCore.BufferedProcess; + } + + /** The static side to the BufferedNodeProcess class. */ + interface BufferedNodeProcess { + /** Runs the given Node script by spawning a new child process. */ + new (options: AtomCore.Options.NodeProcess): AtomCore.BufferedNodeProcess; + } + + /** The static side to the GitRepository class. */ + interface GitRepository { + /** Creates a new GitRepository instance. */ + open(path: string, options?: { refreshOnWindowFocus?: boolean }): AtomCore.GitRepository; + + new (path: string, options?: { refreshOnWindowFocus?: boolean, config?: AtomCore.Config, + project?: AtomCore.Project }): AtomCore.GitRepository; + } + + /** The static side to the Notification class. */ + interface Notification { + new (type: "warning"|"info"|"success", message: string, options?: + AtomCore.Options.Notification): AtomCore.Notification; + new (type: "fatal"|"error", message: string, options?: + AtomCore.Options.ErrorNotification): AtomCore.Notification; + } + + /** The static side to the Task class. */ + interface Task { + // NOTE: this is actually the best we can do here with the REST parameter for + // this appearing in the middle of the parameter list, which isn't aligned with + // the ES6 spec. Maybe when they rewrite it in JavaScript this will change. + /** A helper method to easily launch and run a task once. */ + once(taskPath: string, ...args: any[]): AtomCore.Task; + + /** Creates a task. You should probably use .once */ + new (taskPath: string): AtomCore.Task; + } + + /** The static side to the TextEditor class. */ + type TextEditor = object; + /* tslint:enable:no-unnecessary-qualifier */ + } + + /** Data structures that are used within classes. */ + namespace Structures { + interface SharedDecorationProps { + /** This CSS class will be applied to the decorated line number, line, highlight, + * or overlay. + */ + class?: string; + + /** An HTMLElement or a model Object with a corresponding view registered. Only + * applicable to the gutter, overlay and block types. + */ + item?: HTMLElement; + + /** If true, the decoration will only be applied to the head of the DisplayMarker. + * Only applicable to the line and line-number types. + */ + onlyHead?: boolean; + + /** If true, the decoration will only be applied if the associated DisplayMarker + * is empty. Only applicable to the gutter, line, and line-number types. + */ + onlyEmpty?: boolean; + + /** If true, the decoration will only be applied if the associated DisplayMarker + * is non-empty. Only applicable to the gutter, line, and line-number types. + */ + onlyNonEmpty?: boolean; + + /** Only applicable to decorations of type overlay and block. Controls where the + * view is positioned relative to the TextEditorMarker. Values can be + * 'head' (the default) or 'tail' for overlay decorations, and 'before' (the default) + * or 'after' for block decorations. + */ + position?: "head"|"tail"|"before"|"after"; + + /** Only applicable to decorations of type overlay. Determines whether the decoration + * adjusts its horizontal or vertical position to remain fully visible when it would + * otherwise overflow the editor. Defaults to true. + */ + avoidOverflow?: boolean; + } + + interface DecorationProps extends SharedDecorationProps { + /** One of several supported decoration types. */ + type?: "line"|"line-number"|"highlight"|"overlay"|"gutter"|"block"; + + /** The name of the gutter we're decorating, if type is "gutter". */ + gutterName?: string; + } + + interface DecorationLayerProps extends SharedDecorationProps { + /** One of several supported decoration types. */ + type?: "line"|"line-number"|"highlight"|"block"; + } + + interface Invisibles { + tab?: string|false; + cr?: string|false; + eol?: string|false; + space?: string|false; + } + + interface CancellablePromise extends Promise { + cancel(): void; + } + + interface ScandalResult { + filePath: string; + matches: Array<{ + matchText: string; + lineText: string; + lineTextOffset: number; + range: [[number, number], [number, number]]; + leadingContextLines: string[]; + trailingContextLines: string[]; + }>; + } + + interface WindowLoadSettings { + appVersion: string; + atomHome: string; + devMode: boolean; + env: { [key: string]: string|undefined }; + profileStartup: boolean; + resourcePath: string; + safeMode: boolean; + } + } + + /** Atom global for dealing with packages, themes, menus, and the window. + * An instance of this class is always available as the atom global. */ - destroy(): void; + interface AtomEnvironment { + // Properties + /** A CommandRegistry instance. */ + commands: CommandRegistry; - /** - * Gets the screen range of the display marker. + /** A Config instance. */ + config: Config; + + /** A Clipboard instance. */ + clipboard: Clipboard; + + /** A ContextMenuManager instance. */ + contextMenu: ContextMenuManager; + + /** A MenuManager instance. */ + menu: MenuManager; + + /** A KeymapManager instance. */ + keymaps: AtomKeymap.KeymapManager; + + /** A TooltipManager instance. */ + tooltips: TooltipManager; + + /** A NotificationManager instance. */ + notifications: NotificationManager; + + /** A Project instance. */ + project: Project; + + /** A GrammarRegistry instance. */ + grammars: FirstMate.GrammarRegistry; + + /** A HistoryManager instance. */ + history: HistoryManager; + + /** A PackageManager instance. */ + packages: PackageManager; + + /** A ThemeManager instance. */ + themes: ThemeManager; + + /** A StyleManager instance. */ + styles: StyleManager; + + /** A DeserializerManager instance. */ + deserializers: DeserializerManager; + + /** A ViewRegistry instance. */ + views: ViewRegistry; + + /** A Workspace instance. */ + workspace: Workspace; + + /** A TextEditorRegistry instance. */ + textEditors: TextEditorRegistry; + + // Event Subscription + /** Invoke the given callback whenever ::beep is called. */ + onDidBeep(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback when there is an unhandled error, but before + * the devtools pop open. + */ + onWillThrowError(callback: (event: Events.PreventableExceptionThrown) => + void): EventKit.Disposable; + + /** Invoke the given callback whenever there is an unhandled error. */ + onDidThrowError(callback: (event: Events.ExceptionThrown) => void): + EventKit.Disposable; + + /** Invoke the given callback as soon as the shell environment is loaded (or + * immediately if it was already loaded). + */ + whenShellEnvironmentLoaded(callback: () => void): EventKit.Disposable; + + // Atom Details + /** Returns a boolean that is true if the current window is in development mode. */ + inDevMode(): boolean; + + /** Returns a boolean that is true if the current window is in safe mode. */ + inSafeMode(): boolean; + + /** Returns a boolean that is true if the current window is running specs. */ + inSpecMode(): boolean; + + /** Get the version of the Atom application. */ + getVersion(): string; + + /** Gets the release channel of the Atom application. + * Returns the release channel, which can be 'dev', 'beta', or 'stable'. + */ + getReleaseChannel(): "dev"|"beta"|"stable"; + + /** Returns a boolean that is true if the current version is an official release. */ + isReleasedVersion(): boolean; + + /** Get the time taken to completely load the current window. */ + getWindowLoadTime(): number; + + /** Get the load settings for the current window. */ + getLoadSettings(): Structures.WindowLoadSettings; + + // Managing the Atom Window + /** Open a new Atom window using the given options. */ + open(params: { + pathsToOpen: ReadonlyArray, + newWindow: boolean, + devMode: boolean, + safeMode: boolean, + }): void; + + /** Close the current window. */ + close(): void; + + /** Get the size of current window. */ + getSize(): { width: number, height: number }; + + /** Set the size of current window. */ + setSize(width: number, height: number): void; + + /** Get the position of current window. */ + getPosition(): { x: number, y: number }; + + /** Set the position of current window. */ + setPosition(x: number, y: number): void; + + /** Prompt the user to select one or more folders. */ + pickFolder(callback: (paths: string[]|null) => void): void; + + /** Get the current window. */ + getCurrentWindow(): object; // Electron's BrowserWindow class. + + /** Move current window to the center of the screen. */ + center(): void; + + /** Focus the current window. */ + focus(): void; + + /** Show the current window. */ + show(): void; + + /** Hide the current window. */ + hide(): void; + + /** Reload the current window. */ + reload(): void; + + /** Relaunch the entire application. */ + restartApplication(): void; + + /** Returns a boolean that is true if the current window is maximized. */ + isMaximized(): boolean; + + /** Returns a boolean that is true if the current window is in full screen mode. */ + isFullScreen(): boolean; + + /** Set the full screen state of the current window. */ + setFullScreen(fullScreen: boolean): void; + + /** Toggle the full screen state of the current window. */ + toggleFullScreen(): void; + + // Messaging the User + /** Visually and audibly trigger a beep. */ + beep(): void; + + /** A flexible way to open a dialog akin to an alert dialog. + * Returns the chosen button index number if the buttons option was an array. + */ + confirm(options: { + message: string, + detailedMessage?: string, + buttons?: ReadonlyArray, + }): void; + + /** A flexible way to open a dialog akin to an alert dialog. + * Returns the chosen button index number if the buttons option was an array. + */ + confirm(options: { + message: string, + detailedMessage?: string, + buttons?: { + [key: string]: () => void + }, + }): number; + + // Managing the Dev Tools + /** Open the dev tools for the current window. */ + openDevTools(): Promise; + + /** Toggle the visibility of the dev tools for the current window. */ + toggleDevTools(): Promise; + + /** Execute code in dev tools. */ + executeJavaScriptInDevTools(code: string): void; + } + + /** A wrapper which provides standard error/output line buffering for + * Node's ChildProcess. */ - getScreenRange(): Range; - } + interface BufferedProcess { + // Properties + process: NodeJS.EventEmitter; + + // Event Subscription + /** Will call your callback when an error will be raised by the process. Usually + * this is due to the command not being available or not on the PATH. You can + * call handle() on the object passed to your callback to indicate that you + * have handled this error. + */ + onWillThrowError(callback: (errorObject: { error: Error, handle(): void }) => + void): EventKit.Disposable; + + // Helper Methods + /** Terminate the process. */ + kill(): void; + + /** Runs the process. */ + start(): void; + } + + /** Like BufferedProcess, but accepts a Node script as the command to run. + * This is necessary on Windows since it doesn't support shebang #! lines. + */ + type BufferedNodeProcess = BufferedProcess; + + /** Represents the clipboard used for copying and pasting in Atom. */ + interface Clipboard { + /** Write the given text to the clipboard. */ + write(text: string, metadata?: object): void; + + /** Read the text from the clipboard. */ + read(): string; + + /** Read the text from the clipboard and return both the text and the associated + * metadata. + */ + readWithMetadata(): { text: string, metadata: object }; + } + + /** A simple color class returned from Config::get when the value at the key path is + * of type 'color'. + */ + interface Color { + /** Returns a string in the form '#abcdef'. */ + toHexString(): string; + + /** Returns a string in the form 'rgba(25, 50, 75, .9)'. */ + toRGBAString(): string; + } + + /** Used to access all of Atom's configuration details. */ + interface Config { + // Config Subscription + /** Add a listener for changes to a given key path. This is different than ::onDidChange in + * that it will immediately call your callback with the current value of the config entry. + */ + observe(keyPath: string, callback: (value: any) => void): + EventKit.Disposable; + /** Add a listener for changes to a given key path. This is different than ::onDidChange in + * that it will immediately call your callback with the current value of the config entry. + */ + observe(keyPath: string, options: { scope: string[]|ScopeDescriptor }, + callback: (value: any) => void): EventKit.Disposable; + + /** Add a listener for changes to a given key path. If keyPath is not specified, your + * callback will be called on changes to any key. + */ + onDidChange(callback: (values: { newValue: T, oldValue: T }) => void): + EventKit.Disposable; + /** Add a listener for changes to a given key path. If keyPath is not specified, your + * callback will be called on changes to any key. + */ + onDidChange(keyPath: string, callback: (values: { newValue: T, + oldValue: T }) => void): EventKit.Disposable; + /** Add a listener for changes to a given key path. If keyPath is not specified, your + * callback will be called on changes to any key. + */ + onDidChange(keyPath: string, options: { scope: string[]|ScopeDescriptor }, + callback: (values: { newValue: T, oldValue: T }) => void): EventKit.Disposable; + + // Managing Settings + /** Retrieves the setting for the given key. */ + get(keyPath: string, options?: { sources?: string[], excludeSources?: string[], + scope?: string[]|ScopeDescriptor }): any; + + /** Sets the value for a configuration setting. + * This value is stored in Atom's internal configuration file. + */ + set(keyPath: string, value: any, options?: { scopeSelector?: string, source?: + string }): void; + + /** Restore the setting at keyPath to its default value. */ + unset(keyPath: string, options?: { scopeSelector?: string, source?: string }): void; + + /** Get all of the values for the given key-path, along with their associated + * scope selector. + */ + getAll(keyPath: string, options?: { sources?: string[], excludeSources?: string[], + scope?: ScopeDescriptor }): Array<{ scopeDescriptor: ScopeDescriptor, value: any}>; + + /** Get an Array of all of the source Strings with which settings have been added + * via ::set. + */ + getSources(): string[]; + + /** Retrieve the schema for a specific key path. The schema will tell you what type + * the keyPath expects, and other metadata about the config option. + */ + getSchema(keyPath: string): object|null; + + /** Get the string path to the config file being used. */ + getUserConfigPath(): string; + + /** Suppress calls to handler functions registered with ::onDidChange and ::observe + * for the duration of callback. After callback executes, handlers will be called + * once if the value for their key-path has changed. + */ + transact(callback: () => void): void; + } + + /** Provides a registry for commands that you'd like to appear in the context menu. */ + interface ContextMenuManager { + /** Add context menu items scoped by CSS selectors. */ + add(itemsBySelector: { + [key: string]: ReadonlyArray + }): EventKit.Disposable; + } + + /** Associates listener functions with commands in a context-sensitive way + * using CSS selectors. + */ + interface CommandRegistry { + /** Register a single command. */ + add(target: string|Node, commandName: string, listener: { + didDispatch(event: AtomKeymap.CommandEvent): void, + displayName?: string, + description?: string, + } | ((event: AtomKeymap.CommandEvent) => void)): EventKit.Disposable; + + /** Register multiple commands. */ + add(target: string|Node, commands: { [key: string]: (event: + AtomKeymap.CommandEvent) => void }): EventKit.CompositeDisposable; + + /** Find all registered commands matching a query. */ + findCommands(params: { target: Node }): Array<{ + name: string, + displayName: string, + description?: string, + tags?: string[], + }>; + + /** Simulate the dispatch of a command on a DOM node. */ + dispatch(target: Node, commandName: string): void; + + /** Invoke the given callback before dispatching a command event. */ + onWillDispatch(callback: (event: AtomKeymap.CommandEvent) => void): EventKit.Disposable; + + /** Invoke the given callback after dispatching a command event. */ + onDidDispatch(callback: (event: AtomKeymap.CommandEvent) => void): EventKit.Disposable; + } + + /** The Cursor class represents the little blinking line identifying where text + * can be inserted. + */ + interface Cursor { + // Event Subscription + /** Calls your callback when the cursor has been moved. */ + onDidChangePosition(callback: (event: Events.CursorPositionChanged) => void): + EventKit.Disposable; + + /** Calls your callback when the cursor is destroyed. */ + onDidDestroy(callback: () => void): EventKit.Disposable; + + /** Calls your callback when the cursor's visibility has changed. */ + onDidChangeVisibility(callback: (visibility: boolean) => void): + EventKit.Disposable; + + // Managing Cursor Position + /** Moves a cursor to a given screen position. */ + setScreenPosition(screenPosition: TextBuffer.PointLike|[number, number], + options?: { autoscroll?: boolean }): void; + + /** Returns the screen position of the cursor as a Point. */ + getScreenPosition(): TextBuffer.Point; + + /** Moves a cursor to a given buffer position. */ + setBufferPosition(bufferPosition: TextBuffer.PointLike|[number, number], + options?: { autoscroll?: boolean }): void; + + /** Returns the current buffer position as an Array. */ + getBufferPosition(): TextBuffer.Point; + + /** Returns the cursor's current screen row. */ + getScreenRow(): number; + + /** Returns the cursor's current screen column. */ + getScreenColumn(): number; - interface IWorkspaceView extends View { - // Delegator.includeInto(WorkspaceView); - - // delegate to model property's property - fullScreen:boolean; - - // delegate to model property's method - open(uri:string, options:any):Q.Promise; - openSync(uri:string, options?:any):any; - saveActivePaneItem():any; - saveActivePaneItemAs():any; - saveAll():void; - destroyActivePaneItem():any; - destroyActivePane():any; - increaseFontSize():void; - decreaseFontSize():void; - - // own property & methods - initialize(model:IWorkspace):any; - initialize(view:View, args:any):void; // do not use - model:IWorkspace; - panes: IPaneContainerView; - getModel():IWorkspace; - installShellCommands():any; - handleFocus():any; - afterAttach(onDom?:any):any; - confirmClose():boolean; - updateTitle():any; - setTitle(title:string):any; - getEditorViews():any[]; // atom.EditorView - prependToTop(element:any):any; - appendToTop(element:any):any; - prependToBottom(element:any):any; - appendToBottom(element:any):any; - prependToLeft(element:any):any; - appendToLeft(element:any):any; - prependToRight(element:any):any; - appendToRight(element:any):any; - getActivePaneView():IPaneView; - getActiveView():View; - focusPreviousPaneView():any; - focusNextPaneView():any; - focusPaneViewAbove():any; - focusPaneViewBelow():any; - focusPaneViewOnLeft():any; - focusPaneViewOnRight():any; - eachPaneView(callback:(paneView:IPaneView)=>any):{ off():any; }; - getPaneViews():IPaneView[]; - eachEditorView(callback:(editorView:any /* EditorView */)=>any):{ off():any; }; - beforeRemove():any; - - command(eventName:string, handler:Function):any; - command(eventName:string, selector:Function, handler:Function):any; - command(eventName:string, options:any, handler:Function):any; - command(eventName:string, selector:Function, options:any, handler:Function):any; - - statusBar:StatusBar.IStatusBarView; - } + /** Retrieves the cursor's current buffer row. */ + getBufferRow(): number; - interface IPanes { - // TBD - } + /** Returns the cursor's current buffer column. */ + getBufferColumn(): number; - interface IPaneView { - // TBD - } + /** Returns the cursor's current buffer row of text excluding its line ending. */ + getCurrentBufferLine(): string; - interface IPaneContainerView { - // TBD - } + /** Returns whether the cursor is at the start of a line. */ + isAtBeginningOfLine(): boolean; - interface ITreeView { - // TBD - } + /** Returns whether the cursor is on the line return character. */ + isAtEndOfLine(): boolean; - interface IGutterViewStatic { - new(): IGutterView; - content():any; - } + // Cursor Position Details + /** Returns the underlying DisplayMarker for the cursor. Useful with overlay + * Decorations. + */ + getMarker(): TextBuffer.DisplayMarker; - interface IGutterView extends View { - firstScreenRow:any; - lastScreenRow:any; - initialize():void; - initialize(view:View, args:any):void; // do not use - afterAttach(onDom?:any):any; - beforeRemove():any; - handleMouseEvents(e:JQueryMouseEventObject):any; - getEditorView():any; /* EditorView */ - getEditor():IEditor; - getLineNumberElements():HTMLCollection; - getLineNumberElementsForClass(klass:string):NodeList; - getLineNumberElement(bufferRow:number):NodeList; - addClassToAllLines(klass:string):boolean; - removeClassFromAllLines(klass:string):boolean; - addClassToLine(bufferRow:number, klass:string):boolean; - removeClassFromLine(bufferRow:number, klass:string):boolean; - updateLineNumbers(changes:any[], startScreenRow?:number, endScreenRow?:number):any; - prependLineElements(lineElements:any):void; - appendLineElements(lineElements:any):void; - removeLineElements(numberOfElements:number):void; - buildLineElements(startScreenRow:any, endScreenRow:any):any; - buildLineElementsHtml(startScreenRow:any, endScreenRow:any):any; - updateFoldableClasses(changes:any[]):any; - removeLineHighlights():void; - addLineHighlight(row:number, emptySelection?:boolean):any; - highlightLines():boolean; - } + /** Identifies if the cursor is surrounded by whitespace. + * "Surrounded" here means that the character directly before and after the cursor + * are both whitespace. + */ + isSurroundedByWhitespace(): boolean; - interface ICommandRegistry { - add(target: string, commandName: Object, callback?: (event: any) => void): any; // selector:'atom-editor'|'atom-workspace' - findCommands(params: Object): Object[]; - dispatch(selector: any, name:string): void; - } + /** This method returns false if the character before or after the cursor is whitespace. */ + isBetweenWordAndNonWord(): boolean; - interface ICommandPanel { - // TBD - } + /** Returns whether this cursor is between a word's start and end. */ + isInsideWord(options?: { wordRegex?: RegExp }): boolean; - interface IDisplayBufferStatic { - new(_arg?:any):IDisplayBuffer; - } + /** Returns the indentation level of the current line. */ + getIndentLevel(): number; - interface IDisplayBuffer /* extends Theorist.Model */ { - // Serializable.includeInto(Editor); - - constructor:IDisplayBufferStatic; - - verticalScrollMargin:number; - horizontalScrollMargin:number; - - declaredPropertyValues:any; - tokenizedBuffer: ITokenizedBuffer; - buffer: TextBuffer.ITextBuffer; - charWidthsByScope:any; - markers:{ [index:number]:IDisplayBufferMarker; }; - foldsByMarkerId:any; - maxLineLength:number; - screenLines:ITokenizedLine[]; - rowMap:any; // return type are RowMap - longestScreenRow:number; - subscriptions:Emissary.ISubscription[]; - subscriptionsByObject:any; // return type are WeakMap - behaviors:any; - subscriptionCounts:any; - eventHandlersByEventName:any; - pendingChangeEvent:any; - - softWrap:boolean; - - serializeParams():{id:number; softWrap:boolean; editorWidthInChars: number; scrollTop: number; scrollLeft: number; tokenizedBuffer: any; }; - deserializeParams(params:any):any; - copy():IDisplayBuffer; - updateAllScreenLines():any; - emitChanged(eventProperties:any, refreshMarkers?:boolean):any; - updateWrappedScreenLines():any; - setVisible(visible:any):any; - getVerticalScrollMargin():number; - setVerticalScrollMargin(verticalScrollMargin:number):number; - getHorizontalScrollMargin():number; - setHorizontalScrollMargin(horizontalScrollMargin:number):number; - getHeight():any; - setHeight(height:any):any; - getWidth():any; - setWidth(newWidth:any):any; - getScrollTop():number; - setScrollTop(scrollTop:number):number; - getScrollBottom():number; - setScrollBottom(scrollBottom:number):number; - getScrollLeft():number; - setScrollLeft(scrollLeft:number):number; - getScrollRight():number; - setScrollRight(scrollRight:number):number; - getLineHeight():any; - setLineHeight(lineHeight:any):any; - getDefaultCharWidth():any; - setDefaultCharWidth(defaultCharWidth:any):any; - getScopedCharWidth(scopeNames:any, char:any):any; - getScopedCharWidths(scopeNames:any):any; - setScopedCharWidth(scopeNames:any, char:any, width:any):any; - setScopedCharWidths(scopeNames:any, charWidths:any):any; - clearScopedCharWidths():any; - getScrollHeight():number; - getScrollWidth():number; - getVisibleRowRange():number[]; - intersectsVisibleRowRange(startRow:any, endRow:any):any; - selectionIntersectsVisibleRowRange(selection:any):any; - scrollToScreenRange(screenRange:any):any; - scrollToScreenPosition(screenPosition:any):any; - scrollToBufferPosition(bufferPosition:any):any; - pixelRectForScreenRange(screenRange:TextBuffer.IRange):any; - getTabLength():number; - setTabLength(tabLength:number):any; - setSoftWrap(softWrap:boolean):boolean; - getSoftWrap():boolean; - setEditorWidthInChars(editorWidthInChars:number):any; - getEditorWidthInChars():number; - getSoftWrapColumn():number; - lineForRow(row:number):any; - linesForRows(startRow:number, endRow:number):any; - getLines():any[]; - indentLevelForLine(line:any):any; - bufferRowsForScreenRows(startScreenRow:any, endScreenRow:any):any; - createFold(startRow:number, endRow:number):IFold; - isFoldedAtBufferRow(bufferRow:number):boolean; - isFoldedAtScreenRow(screenRow:number):boolean; - destroyFoldWithId(id:number):any; - unfoldBufferRow(bufferRow:number):any[]; - largestFoldStartingAtBufferRow(bufferRow:number):any; - foldsStartingAtBufferRow(bufferRow:number):any; - largestFoldStartingAtScreenRow(screenRow:any):any; - largestFoldContainingBufferRow(bufferRow:any):any; - outermostFoldsInBufferRowRange(startRow:any, endRow:any):any[]; - foldsContainingBufferRow(bufferRow:any):any[]; - screenRowForBufferRow(bufferRow:number):number; - lastScreenRowForBufferRow(bufferRow:number):number; - bufferRowForScreenRow(screenRow:number):number; - - screenRangeForBufferRange(bufferRange:TextBuffer.IPoint[]):TextBuffer.IRange; - - screenRangeForBufferRange(bufferRange:TextBuffer.IRange):TextBuffer.IRange; - - screenRangeForBufferRange(bufferRange:{start: TextBuffer.IPoint; end: TextBuffer.IPoint}):TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: number[]; end: TextBuffer.IPoint}):TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: {row:number; col:number;}; end: TextBuffer.IPoint}):TextBuffer.IRange; - - screenRangeForBufferRange(bufferRange:{start: TextBuffer.IPoint; end: number[]}):TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: number[]; end: number[]}):TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: {row:number; col:number;}; end: number[]}):TextBuffer.IRange; - - screenRangeForBufferRange(bufferRange:{start: TextBuffer.IPoint; end: {row:number; col:number;}}):TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: number[]; end: {row:number; col:number;}}):TextBuffer.IRange; - screenRangeForBufferRange(bufferRange:{start: {row:number; col:number;}; end: {row:number; col:number;}}):TextBuffer.IRange; - - bufferRangeForScreenRange(screenRange:TextBuffer.IPoint[]):TextBuffer.IRange; - - bufferRangeForScreenRange(screenRange:TextBuffer.IRange):TextBuffer.IRange; - - bufferRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: TextBuffer.IPoint}):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: number[]; end: TextBuffer.IPoint}):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: TextBuffer.IPoint}):TextBuffer.IRange; - - bufferRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: number[]}):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: number[]; end: number[]}):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: number[]}):TextBuffer.IRange; - - bufferRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: {row:number; col:number;}}):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: number[]; end: {row:number; col:number;}}):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: {row:number; col:number;}}):TextBuffer.IRange; - - pixelRangeForScreenRange(screenRange:TextBuffer.IPoint[], clip?:boolean):TextBuffer.IRange; - - pixelRangeForScreenRange(screenRange:TextBuffer.IRange, clip?:boolean):TextBuffer.IRange; - - pixelRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: TextBuffer.IPoint}, clip?:boolean):TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: number[]; end: TextBuffer.IPoint}, clip?:boolean):TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: TextBuffer.IPoint}, clip?:boolean):TextBuffer.IRange; - - pixelRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: number[]}, clip?:boolean):TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: number[]; end: number[]}, clip?:boolean):TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: number[]}, clip?:boolean):TextBuffer.IRange; - - pixelRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: {row:number; col:number;}}, clip?:boolean):TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: number[]; end: {row:number; col:number;}}, clip?:boolean):TextBuffer.IRange; - pixelRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: {row:number; col:number;}}, clip?:boolean):TextBuffer.IRange; - - pixelPositionForScreenPosition(screenPosition:TextBuffer.IPoint, clip?:boolean):TextBuffer.IPoint; - pixelPositionForScreenPosition(screenPosition:number[], clip?:boolean):TextBuffer.IPoint; - pixelPositionForScreenPosition(screenPosition:{row:number; col:number;}, clip?:boolean):TextBuffer.IPoint; - - screenPositionForPixelPosition(pixelPosition:any):TextBuffer.IPoint; - - pixelPositionForBufferPosition(bufferPosition:any):any; - getLineCount():number; - getLastRow():number; - getMaxLineLength():number; - screenPositionForBufferPosition(bufferPosition:any, options:any):any; - bufferPositionForScreenPosition(bufferPosition:any, options:any):any; - scopesForBufferPosition(bufferPosition:any):any; - bufferRangeForScopeAtPosition(selector:any, position:any):any; - tokenForBufferPosition(bufferPosition:any):any; - getGrammar():IGrammar; - setGrammar(grammar:IGrammar):any; - reloadGrammar():any; - clipScreenPosition(screenPosition:any, options:any):any; - findWrapColumn(line:any, softWrapColumn:any):any; - rangeForAllLines():TextBuffer.IRange; - getMarker(id:number):IDisplayBufferMarker; - getMarkers():IDisplayBufferMarker[]; - getMarkerCount():number; - markScreenRange(range:TextBuffer.IRange, ...args:any[]):IDisplayBufferMarker; - markBufferRange(range:TextBuffer.IRange, options?:any):IDisplayBufferMarker; - markScreenPosition(screenPosition:TextBuffer.IPoint, options?:any):IDisplayBufferMarker; - markBufferPosition(bufferPosition:TextBuffer.IPoint, options?:any):IDisplayBufferMarker; - destroyMarker(id:number):any; - findMarker(params?:any):IDisplayBufferMarker; - findMarkers(params?:any):IDisplayBufferMarker[]; - translateToBufferMarkerParams(params?:any):any; - findFoldMarker(attributes:any):IMarker; - findFoldMarkers(attributes:any):IMarker[]; - getFoldMarkerAttributes(attributes?:any):any; - pauseMarkerObservers():any; - resumeMarkerObservers():any; - refreshMarkerScreenPositions():any; - destroy():any; - logLines(start:number, end:number):any[]; - handleTokenizedBufferChange(tokenizedBufferChange:any):any; - updateScreenLines(startBufferRow:any, endBufferRow:any, bufferDelta?:number, options?:any):any; - buildScreenLines(startBufferRow:any, endBufferRow:any):any; - findMaxLineLength(startScreenRow:any, endScreenRow:any, newScreenLines:any):any; - handleBufferMarkersUpdated():any; - handleBufferMarkerCreated(marker:any):any; - createFoldForMarker(maker:any):IFold; - foldForMarker(marker:any):any; - } + /** Retrieves the scope descriptor for the cursor's current position. */ + getScopeDescriptor(): ScopeDescriptor; - interface IViewRegistry { - getView(selector:any):any; - } + /** Returns true if this cursor has no non-whitespace characters before its + * current position. + */ + hasPrecedingCharactersOnLine(): boolean; - interface ICursorStatic { - new (arg:{editor:IEditor; marker:IDisplayBufferMarker; id: number;}):ICursor; - } + /** Identifies if this cursor is the last in the TextEditor. + * "Last" is defined as the most recently added cursor. + */ + isLastCursor(): boolean; - interface ScopeDescriptor { - scopes: string[]; - } + // Moving the Cursor + /** Moves the cursor up one screen row. */ + moveUp(rowCount?: number, options?: { moveToEndOfSelection?: boolean }): void; - interface ICursor /* extends Theorist.Model */ { - getScopeDescriptor(): ScopeDescriptor; - screenPosition:any; - bufferPosition:any; - goalColumn:any; - visible:boolean; - needsAutoscroll:boolean; - - editor:IEditor; - marker:IDisplayBufferMarker; - id: number; - - destroy():any; - changePosition(options:any, fn:Function):any; - getPixelRect():any; - setScreenPosition(screenPosition:any, options?:any):any; - getScreenPosition():TextBuffer.IPoint; - getScreenRange():TextBuffer.IRange; - setBufferPosition(bufferPosition:any, options?:any):any; - getBufferPosition():TextBuffer.IPoint; - autoscroll():any; - updateVisibility():any; - setVisible(visible:boolean):any; - isVisible():boolean; - wordRegExp(arg?:any):any; - isLastCursor():boolean; - isSurroundedByWhitespace():boolean; - isBetweenWordAndNonWord():boolean; - isInsideWord():boolean; - clearAutoscroll():void; - clearSelection():void; - getScreenRow():number; - getScreenColumn():number; - getBufferRow():number; - getBufferColumn():number; - getCurrentBufferLine():string; - moveUp(rowCount:number, arg?:any):any; - moveDown(rowCount:number, arg?:any):any; - moveLeft(arg?:any):any; - moveRight(arg?:any):any; - moveToTop():any; - moveToBottom():void; - moveToBeginningOfScreenLine():void; - moveToBeginningOfLine():void; - moveToFirstCharacterOfLine():void; - moveToEndOfScreenLine():void; - moveToEndOfLine():void; - moveToBeginningOfWord():void; - moveToEndOfWord():void; - moveToBeginningOfNextWord():void; - moveToPreviousWordBoundary():void; - moveToNextWordBoundary():void; - getBeginningOfCurrentWordBufferPosition(options?:any):TextBuffer.IPoint; - getPreviousWordBoundaryBufferPosition(options?:any):TextBuffer.IPoint; - getMoveNextWordBoundaryBufferPosition(options?:any):TextBuffer.IPoint; - getEndOfCurrentWordBufferPosition(options?:any):TextBuffer.IPoint; - getBeginningOfNextWordBufferPosition(options?:any):TextBuffer.IPoint; - getCurrentWordBufferRange(options?:any):TextBuffer.IPoint; - getCurrentLineBufferRange(options?:any):TextBuffer.IPoint; - getCurrentParagraphBufferRange():any; - getCurrentWordPrefix():string; - isAtBeginningOfLine():boolean; - getIndentLevel():number; - isAtEndOfLine():boolean; - getScopes():string[]; - hasPrecedingCharactersOnLine():boolean; - getMarker(): Marker; - } + /** Moves the cursor down one screen row. */ + moveDown(rowCount?: number, options?: { moveToEndOfSelection?: boolean }): void; - interface ILanguageMode { - // TBD - } + /** Moves the cursor left one screen column. */ + moveLeft(columnCount?: number, options?: { moveToEndOfSelection?: boolean }): void; - interface ISelection { - // https://atom.io/docs/api/v1.7.3/Selection - - // Event Subscription - onDidChangeRange(callback: (event: { - oldBufferRange: TextBuffer.IRange; - oldScreenRange: TextBuffer.IRange; - newBufferRange: TextBuffer.IRange; - newScreenRange: TextBuffer.IRange; - selection: ISelection; - }) => {}): Disposable; - onDidDestroy(callback: () => {}): Disposable; - - // Managing the selection range - getScreenRange(): TextBuffer.IRange; - setScreenRange(screenRange: TextBuffer.IRange, options?: { - preserveFolds?: boolean; - autoscroll?: boolean; - }): void; - getBufferRange(): TextBuffer.IRange; - setBufferRange(bufferRange: TextBuffer.IRange, options?: { - preserveFolds?: boolean; - autoscroll?: boolean; - }): void; - getBufferRowRange(): [number]; - - // Info about the selection - isEmpty(): boolean; - isReversed(): boolean; - isSingleScreenLine(): boolean; - getText(): string; - intersectsBufferRange(bufferRange: TextBuffer.IRange): boolean; - intersectsWith(otherSelection: ISelection): boolean; - - // Modifying the selected range - clear(options?: {autoscroll?: boolean}): void; - selectToScreenPosition(position: any): void; - selectToBufferPosition(position: any): void; - selectRight(columnCount?: number): void; - selectLeft(columnCount?: number): void; - selectUp(rowCount: number): void; - selectDown(rowCount: number): void; - selectToTop(): void; - selectToBottom(): void; - selectAll(): void; - selectToBeginningOfLine(): void; - selectToFirstCharacterOfLine(): void; - selectToEndOfLine(): void; - selectToEndOfBufferLine(): void; - selectToBeginningOfWord(): void; - selectToEndOfWord(): void; - selectToBeginningOfNextWord(): void; - selectToPreviousWordBoundary(): void; - selectToNextWordBoundary(): void; - selectToPreviousSubwordBoundary(): void; - selectToNextSubwordBoundary(): void; - selectToBeginningOfNextParagraph(): void; - selectToBeginningOfPreviousParagraph(): void; - selectWord(): TextBuffer.IRange; - expandOverWord(): void; - selectLine(row?: number): void; - expandOverLine(): void; - - // Modifying the selected text - insertText(text: string, options?: { - select: boolean; - autoIndent: boolean; - autoIndentNewline: boolean; - autoDecreaseIndent: boolean; - normalizeLineEndings?: boolean; - undo?: 'skip'; - }): void; - backspace(): void; - deleteToPreviousWordBoundary(): void; - deleteToNextWordBoundary(): void; - deleteToBeginningOfWord(): void; - deleteToBeginningOfLine(): void; - delete(): void; - deleteToEndOfLine(): void; - deleteToEndOfWord(): void; - deleteToBeginningOfSubword(): void; - deleteToEndOfSubword(): void; - deleteSelectedText(): void; - deleteLine(): void; - joinLines(): void; - outdentSelectedRows(): void; - autoIndentSelectedRows(): void; - toggleLineComments(): void; - cutToEndOfLine(): void; - cutToEndOfBufferLine(): void; - cut(maintainClipboard?: boolean, fullLine?: boolean): void; - copy(maintainClipboard?: boolean, fullLine?: boolean): void; - fold(): void; - indentSelectedRows(): void; - - // Managing multiple selections - addSelectionBelow(): void; - addSelectionAbove(): void; - merge(otherSelection: ISelection, options?: { - preserveFolds?: boolean; - autoscroll?: boolean; - }): void; - - // Comparing to other selections - compare(otherSelection: ISelection): any; - } + /** Moves the cursor right one screen column. */ + moveRight(columnCount?: number, options?: { moveToEndOfSelection?: boolean }): void; - interface IDecorationParams { - id?: number; - class: string; - type: any /* string or string[] */; - } + /** Moves the cursor to the top of the buffer. */ + moveToTop(): void; - interface IDecorationStatic { - isType(decorationParams:IDecorationParams, type:any /* string or string[] */):boolean; - new (marker:IDisplayBufferMarker, displayBuffer:IDisplayBuffer, params: IDecorationParams): IDecoration; - } + /** Moves the cursor to the bottom of the buffer. */ + moveToBottom(): void; - interface IDecoration extends Emissary.IEmitter { - marker: IDisplayBufferMarker; - displayBuffer: IDisplayBuffer; - params: IDecorationParams - id: number; - flashQueue: any[]; - isDestroyed: boolean; - - destroy():void; - update(newParams:IDecorationParams):void; - getMarker():IDisplayBufferMarker; - getParams():IDecorationParams; - isType(type:string):boolean; - matchesPattern(decorationPattern:{[key:string]:IDecorationParams;}):boolean; - flash(klass:string, duration?:number):void; - consumeNextFlash():any; - } + /** Moves the cursor to the beginning of the line. */ + moveToBeginningOfScreenLine(): void; - interface IEditor { - // Serializable.includeInto(Editor); - // Delegator.includeInto(Editor); - - deserializing:boolean; - callDisplayBufferCreatedHook:boolean; - registerEditor:boolean; - buffer:TextBuffer.ITextBuffer; - languageMode: ILanguageMode; - cursors:ICursor[]; - selections: ISelection[]; - suppressSelectionMerging:boolean; - updateBatchDepth: number; - selectionFlashDuration: number; - softTabs: boolean; - displayBuffer: IDisplayBuffer; - - id:number; - behaviors:any; - declaredPropertyValues: any; - eventHandlersByEventName: any; - eventHandlersByNamespace: any; - lastOpened: number; - subscriptionCounts: any; - subscriptionsByObject: any; /* WeakMap */ - subscriptions: Emissary.ISubscription[]; - destroy():void; - - mini: any; - - serializeParams():{id:number; softTabs:boolean; scrollTop:number; scrollLeft:number; displayBuffer:any;}; - deserializeParams(params:any):any; - subscribeToBuffer():void; - subscribeToDisplayBuffer():void; - getViewClass():any; // return type are EditorView - destroyed():void; - isDestroyed():boolean; - copy():IEditor; - getTitle():string; - getLongTitle():string; - setVisible(visible:boolean):void; - setMini(mini:any):void; - setScrollTop(scrollTop:any):void; - getScrollTop():number; - setScrollLeft(scrollLeft:any):void; - getScrollLeft():number; - setEditorWidthInChars(editorWidthInChars:any):void; - getSoftWrapColumn():number; - getSoftTabs():boolean; - setSoftTabs(softTabs:boolean):void; - getSoftWrap():boolean; - setSoftWrap(softWrap:any):void; - getTabText():string; - getTabLength():number; - setTabLength(tabLength:any):void; - usesSoftTabs():boolean; - clipBufferPosition(bufferPosition:any):void; - clipBufferRange(range:any):void; - indentationForBufferRow(bufferRow:any):void; - setIndentationForBufferRow(bufferRow:any, newLevel:any, _arg:any):void; - indentLevelForLine(line:any):number; - buildIndentString(number:any):string; - save():void; - saveAs(filePath:any):void; - copyPathToClipboard():void; - getPath():string; - getText():string; - setText(text:any):void; - getTextInRange(range:any):any; - getLineCount():number; - getBuffer():TextBuffer.ITextBuffer; - getURI():string; - isBufferRowBlank(bufferRow:any):boolean; - isBufferRowCommented(bufferRow:any):void; - nextNonBlankBufferRow(bufferRow:any):void; - getEofBufferPosition():TextBuffer.IPoint; - getLastBufferRow():number; - bufferRangeForBufferRow(row:any, options:any):TextBuffer.IRange; - lineForBufferRow(row:number):string; - lineLengthForBufferRow(row:number):number; - scan():any; - scanInBufferRange():any; - backwardsScanInBufferRange():any; - isModified():boolean; - isEmpty():boolean; - shouldPromptToSave():boolean; - screenPositionForBufferPosition(bufferPosition:any, options?:any):TextBuffer.IPoint; - bufferPositionForScreenPosition(screenPosition:any, options?:any):TextBuffer.IPoint; - screenRangeForBufferRange(bufferRange:any):TextBuffer.IRange; - bufferRangeForScreenRange(screenRange:any):TextBuffer.IRange; - clipScreenPosition(screenPosition:any, options:any):TextBuffer.IRange; - lineForScreenRow(row:any):ITokenizedLine; - linesForScreenRows(start?:any, end?:any):ITokenizedLine[]; - getScreenLineCount():number; - getMaxScreenLineLength():number; - getLastScreenRow():number; - bufferRowsForScreenRows(startRow:any, endRow:any):any[]; - bufferRowForScreenRow(row:any):number; - scopesForBufferPosition(bufferPosition:any):string[]; - bufferRangeForScopeAtCursor(selector:string):any; - tokenForBufferPosition(bufferPosition:any):IToken; - getCursorScopes():string[]; - logCursorScope():void; - insertText(text:string, options?:any):TextBuffer.IRange[]; - insertNewline():TextBuffer.IRange[]; - insertNewlineBelow():TextBuffer.IRange[]; - insertNewlineAbove():any; - indent(options?:any):any; - backspace():any[]; - // deprecated backspaceToBeginningOfWord():any[]; - // deprecated backspaceToBeginningOfLine():any[]; - deleteToBeginningOfWord():any[]; - deleteToBeginningOfLine():any[]; - delete():any[]; - deleteToEndOfLine():any[]; - deleteToEndOfWord():any[]; - deleteLine():TextBuffer.IRange[]; - indentSelectedRows():TextBuffer.IRange[][]; - outdentSelectedRows():TextBuffer.IRange[][]; - toggleLineCommentsInSelection():TextBuffer.IRange[]; - autoIndentSelectedRows():TextBuffer.IRange[][]; - normalizeTabsInBufferRange(bufferRange:any):any; - cutToEndOfLine():boolean[]; - cutSelectedText():boolean[]; - copySelectedText():boolean[]; - pasteText(options?:any):TextBuffer.IRange[]; - undo():any[]; - redo():any[]; - foldCurrentRow():any; - unfoldCurrentRow():any[]; - foldSelectedLines():any[]; - foldAll():any[]; - unfoldAll():any[]; - foldAllAtIndentLevel(level:any):any; - foldBufferRow(bufferRow:any):any; - unfoldBufferRow(bufferRow:any):any; - isFoldableAtBufferRow(bufferRow:any):boolean; - isFoldableAtScreenRow(screenRow:any):boolean; - createFold(startRow:any, endRow:any):IFold; - destroyFoldWithId(id:any):any; - destroyFoldsIntersectingBufferRange(bufferRange:any):any; - toggleFoldAtBufferRow(bufferRow:any):any; - isFoldedAtCursorRow():boolean; - isFoldedAtBufferRow(bufferRow:any):boolean; - isFoldedAtScreenRow(screenRow:any):boolean; - largestFoldContainingBufferRow(bufferRow:any):boolean; - largestFoldStartingAtScreenRow(screenRow:any):any; - outermostFoldsInBufferRowRange(startRow:any, endRow:any):any[]; - moveLineUp():ISelection[]; - moveLineDown():ISelection[]; - duplicateLines():any[][]; - // duprecated duplicateLine():any[][]; - mutateSelectedText(fn:(selection:ISelection)=>any):any; - replaceSelectedText(options:any, fn:(selection:string)=>any):any; - decorationsForScreenRowRange(startScreenRow:any, endScreenRow:any):{[id:number]: IDecoration[]}; - decorateMarker(marker:IDisplayBufferMarker, decorationParams: {type:string; class: string;}):IDecoration; - decorationForId(id:number):IDecoration; - getMarker(id:number):IDisplayBufferMarker; - getMarkers():IDisplayBufferMarker[]; - findMarkers(...args:any[]):IDisplayBufferMarker[]; - markScreenRange(...args:any[]):IDisplayBufferMarker; - markBufferRange(...args:any[]):IDisplayBufferMarker; - markScreenPosition(...args:any[]):IDisplayBufferMarker; - markBufferPosition(...args:any[]):IDisplayBufferMarker; - destroyMarker(...args:any[]):boolean; - getMarkerCount():number; - hasMultipleCursors():boolean; - getCursors():ICursor[]; - getCursor():ICursor; - addCursorAtScreenPosition(screenPosition:any):ICursor; - addCursorAtBufferPosition(bufferPosition:any):ICursor; - addCursor(marker:any):ICursor; - removeCursor(cursor:any):ICursor[]; - addSelection(marker:any, options:any):ISelection; - addSelectionForBufferRange(bufferRange:any, options:any):ISelection; - setSelectedBufferRange(bufferRange:any, options:any):any; - setSelectedBufferRanges(bufferRanges:any, options:any):any; - removeSelection(selection:ISelection):any; - clearSelections():boolean; - consolidateSelections():boolean; - selectionScreenRangeChanged(selection:any):void; - getSelections():ISelection[]; - getSelection(index?:number):ISelection; - getLastSelection():ISelection; - getSelectionsOrderedByBufferPosition():ISelection[]; - getLastSelectionInBuffer():ISelection; - selectionIntersectsBufferRange(bufferRange:any):any; - setCursorScreenPosition(position:TextBuffer.IPoint, options?:any):any; - getCursorScreenPosition():TextBuffer.IPoint; - getCursorScreenRow():number; - setCursorBufferPosition(position:any, options?:any):any; - getCursorBufferPosition():TextBuffer.IPoint; - getSelectedScreenRange():TextBuffer.IRange; - getSelectedBufferRange():TextBuffer.IRange; - getSelectedBufferRanges():TextBuffer.IRange[]; - getSelectedText():string; - getTextInBufferRange(range:TextBuffer.IRange):string; - setTextInBufferRange(range:TextBuffer.IRange | any[], text:string):any; - getCurrentParagraphBufferRange():TextBuffer.IRange; - getWordUnderCursor(options?:any):string; - moveCursorUp(lineCount?:number):void; - moveCursorDown(lineCount?:number):void; - moveCursorLeft():void; - moveCursorRight():void; - moveCursorToTop():void; - moveCursorToBottom():void; - moveCursorToBeginningOfScreenLine():void; - moveCursorToBeginningOfLine():void; - moveCursorToFirstCharacterOfLine():void; - moveCursorToEndOfScreenLine():void; - moveCursorToEndOfLine():void; - moveCursorToBeginningOfWord():void; - moveCursorToEndOfWord():void; - moveCursorToBeginningOfNextWord():void; - moveCursorToPreviousWordBoundary():void; - moveCursorToNextWordBoundary():void; - moveCursorToBeginningOfNextParagraph():void; - moveCursorToBeginningOfPreviousParagraph():void; - moveToBottom():void; - scrollToCursorPosition(options:any):any; - pageUp():void; - pageDown():void; - selectPageUp():void; - selectPageDown():void; - getRowsPerPage():number; - moveCursors(fn:(cursor:ICursor)=>any):any; - cursorMoved(event:any):void; - selectToScreenPosition(position:TextBuffer.IPoint):any; - selectRight():ISelection[]; - selectLeft():ISelection[]; - selectUp(rowCount?:number):ISelection[]; - selectDown(rowCount?:number):ISelection[]; - selectToTop():ISelection[]; - selectAll():ISelection[]; - selectToBottom():ISelection[]; - selectToBeginningOfLine():ISelection[]; - selectToFirstCharacterOfLine():ISelection[]; - selectToEndOfLine():ISelection[]; - selectToPreviousWordBoundary():ISelection[]; - selectToNextWordBoundary():ISelection[]; - selectLine():ISelection[]; - selectLinesContainingCursors():ISelection[]; - addSelectionBelow():ISelection[]; - addSelectionAbove():ISelection[]; - splitSelectionsIntoLines():any[]; - transpose():TextBuffer.IRange[]; - upperCase():boolean[]; - lowerCase():boolean[]; - joinLines():any[]; - selectToBeginningOfWord():ISelection[]; - selectToEndOfWord():ISelection[]; - selectToBeginningOfNextWord():ISelection[]; - selectWord():ISelection[]; - selectToBeginningOfNextParagraph():ISelection[]; - selectToBeginningOfPreviousParagraph():ISelection[]; - selectMarker(marker:any):any; - mergeCursors():number[]; - expandSelectionsForward():any; - expandSelectionsBackward(fn:(selection:ISelection)=>any):ISelection[]; - finalizeSelections():boolean[]; - mergeIntersectingSelections():any; - preserveCursorPositionOnBufferReload():Emissary.ISubscription; - getGrammar(): IGrammar; - setGrammar(grammer:IGrammar):void; - reloadGrammar():any; - shouldAutoIndent():boolean; - shouldShowInvisibles():boolean; - updateInvisibles():void; - transact(fn:Function):any; - beginTransaction():ITransaction; - commitTransaction():any; - abortTransaction():any[]; - inspect():string; - logScreenLines(start:number, end:number):any[]; - handleTokenization():void; - handleGrammarChange():void; - handleMarkerCreated(marker:any):any; - getSelectionMarkerAttributes():{type: string; editorId: number; invalidate: string; }; - getVerticalScrollMargin():number; - setVerticalScrollMargin(verticalScrollMargin:number):void; - getHorizontalScrollMargin():number; - setHorizontalScrollMargin(horizontalScrollMargin:number):void; - getLineHeightInPixels():number; - setLineHeightInPixels(lineHeightInPixels:number):void; - batchCharacterMeasurement(fn:Function):void; - getScopedCharWidth(scopeNames:any, char:any):any; - setScopedCharWidth(scopeNames:any, char:any, width:any):any; - getScopedCharWidths(scopeNames:any):any; - clearScopedCharWidths():any; - getDefaultCharWidth():number; - setDefaultCharWidth(defaultCharWidth:number):void; - setHeight(height:number):void; - getHeight():number; - getClientHeight():number; - setWidth(width:number):void; - getWidth():number; - getScrollTop():number; - setScrollTop(scrollTop:number):void; - getScrollBottom():number; - setScrollBottom(scrollBottom:number):void; - getScrollLeft():number; - setScrollLeft(scrollLeft:number):void; - getScrollRight():number; - setScrollRight(scrollRight:number):void; - getScrollHeight():number; - getScrollWidth():number; - getVisibleRowRange():number; - intersectsVisibleRowRange(startRow:any, endRow:any):any; - selectionIntersectsVisibleRowRange(selection:any):any; - pixelPositionForScreenPosition(screenPosition:any):any; - pixelPositionForBufferPosition(bufferPosition:any):any; - screenPositionForPixelPosition(pixelPosition:any):any; - pixelRectForScreenRange(screenRange:any):any; - scrollToScreenRange(screenRange:any, options:any):any; - scrollToScreenPosition(screenPosition:any, options:any):any; - scrollToBufferPosition(bufferPosition:any, options:any):any; - horizontallyScrollable():any; - verticallyScrollable():any; - getHorizontalScrollbarHeight():any; - setHorizontalScrollbarHeight(height:any):any; - getVerticalScrollbarWidth():any; - setVerticalScrollbarWidth(width:any):any; - // deprecated joinLine():any; - - onDidChange(callback: Function): Disposable; - onDidDestroy(callback: Function): Disposable; - onDidStopChanging(callback: Function): Disposable; - onDidChangeCursorPosition(callback: Function): Disposable; - onDidSave(callback: (event: { path: string }) => void): Disposable; - - decorateMarker(marker: Marker, options: any): Decoration; - getLastCursor(): ICursor; - } + /** Moves the cursor to the beginning of the buffer line. */ + moveToBeginningOfLine(): void; - interface IGrammar { - bundledPackage: boolean; - emitter: any; - fileTypes: [string]; - firstLineRegex: any; - foldingStopMarker: any; - includedGrammarScopes: [any]; - initialRule: any; - injectionSelector: any; - injections: any; - maxTokensPerLine: Number; - name: string; - packageName: string; - path: string; - rawPatterns: [any]; - rawRepository: any; - registration: Disposable; - registry: any; - repository: Object; - scopeName: string; - tokenizeLines: (text: string) => any; - // TBD + /** Moves the cursor to the beginning of the first character in the line. */ + moveToFirstCharacterOfLine(): void; - } + /** Moves the cursor to the end of the line. */ + moveToEndOfScreenLine(): void; - interface IGrammars { - grammarForScopeName(scope: string): IGrammar; - } - - interface IPane /* extends Theorist.Model */ { - itemForURI: (uri:string)=>IEditor; - items:any[]; - activeItem:any; - - serializeParams():any; - deserializeParams(params:any):any; - getViewClass():any; // return type are PaneView - isActive():boolean; - isDestroyed():boolean; - focus():void; - blur():void; - activate():void; - getPanes():IPane[]; - getItems():any[]; - getActiveItem():any; - getActiveEditor():any; - itemAtIndex(index:number):any; - activateNextItem():any; - activatePreviousItem():any; - getActiveItemIndex():number; - activateItemAtIndex(index:number):any; - activateItem(item:any):any; - addItem(item:any, index:number):any; - addItems(items:any[], index:number):any[]; - removeItem(item:any, destroying:any):void; - moveItem(item:any, newIndex:number):void; - moveItemToPane(item:any, pane:IPane, index:number):void; - destroyActiveItem():boolean; // always return false - destroyItem(item:any):boolean; - destroyItems():any[]; - destroyInactiveItems():any[]; - destroy():void; - destroyed():any[]; - promptToSaveItem(item:any):boolean; - saveActiveItem():void; - saveActiveItemAs():void; - saveItem(item:any, nextAction:Function):void; - saveItemAs(item:any, nextAction:Function):void; - saveItems():any[]; - activateItemForURI(uri:any):any; - copyActiveItem():void; - splitLeft(params:any):IPane; - splitRight(params:any):IPane; - splitUp(params:any):IPane; - splitDown(params:any):IPane; - split(orientation:string, side:string, params:any):IPane; - findLeftmostSibling():IPane; - findOrCreateRightmostSibling():IPane; - } + /** Moves the cursor to the end of the buffer line. */ + moveToEndOfLine(): void; - // https://atom.io/docs/v0.84.0/advanced/serialization - interface ISerializationStatic { - deserialize(data:ISerializationInfo):T; - new (data:T): ISerialization; - } + /** Moves the cursor to the beginning of the word. */ + moveToBeginningOfWord(): void; - interface ISerialization { - serialize():ISerializationInfo; - } + /** Moves the cursor to the end of the word. */ + moveToEndOfWord(): void; - interface ISerializationInfo { - deserializer: string; - } + /** Moves the cursor to the beginning of the next word. */ + moveToBeginningOfNextWord(): void; - interface IBrowserWindow { - getPosition():number[]; - getSize():number[]; - } + /** Moves the cursor to the previous word boundary. */ + moveToPreviousWordBoundary(): void; - interface IAtomWindowDimentions { - x:number; - y:number; - width:number; - height:number; - } + /** Moves the cursor to the next word boundary. */ + moveToNextWordBoundary(): void; - interface IProjectStatic { - pathForRepositoryUrl(repoUrl:string):string; + /** Moves the cursor to the previous subword boundary. */ + moveToPreviousSubwordBoundary(): void; - new (arg?:{path:any; buffers:any[];}):IProject; - } + /** Moves the cursor to the next subword boundary. */ + moveToNextSubwordBoundary(): void; - interface IProject /* extends Theorist.Model */ { - // Serializable.includeInto(Project); - - path:string; - /** deprecated */ - rootDirectory?:PathWatcher.IDirectory; - rootDirectories:PathWatcher.IDirectory[]; - - serializeParams():any; - deserializeParams(params:any):any; - destroyed():any; - destroyRepo():any; - destroyUnretainedBuffers():any; - getRepo():IGit; - getPath():string; - setPath(projectPath:string):any; - getRootDirectory():PathWatcher.IDirectory; - resolve(uri:string):string; - relativize(fullPath:string):string; - contains(pathToCheck:string):boolean; - open(filePath:string, options?:any):Q.Promise; - openSync(filePath:string, options?:any):IEditor; - getBuffers():TextBuffer.ITextBuffer; - isPathModified(filePath:string):boolean; - findBufferForPath(filePath:string):TextBuffer.ITextBuffer; - bufferForPathSync(filePath:string):TextBuffer.ITextBuffer; - bufferForPath(filePath:string):Q.Promise; - bufferForId(id:any):TextBuffer.ITextBuffer; - buildBufferSync(absoluteFilePath:string):TextBuffer.ITextBuffer; - buildBuffer(absoluteFilePath:string):Q.Promise; - addBuffer(buffer:TextBuffer.ITextBuffer, options?:any):any; - addBufferAtIndex(buffer:TextBuffer.ITextBuffer, index:number, options?:any):any; - scan(regex:any, options:any, iterator:any):Q.Promise; - replace(regex:any, replacementText:any, filePaths:any, iterator:any):Q.Promise; - buildEditorForBuffer(buffer:any, editorOptions:any):IEditor; - eachBuffer(...args:any[]):any; - - onDidChangePaths(callback: Function): Disposable; - } + /** Moves the cursor to the beginning of the buffer line, skipping all whitespace. */ + skipLeadingWhitespace(): void; - interface IWorkspaceStatic { - new():IWorkspace; - } + /** Moves the cursor to the beginning of the next paragraph. */ + moveToBeginningOfNextParagraph(): void; - interface IWorkspacePanelOptions{ - item:any; - visible?:boolean; - priority?:number; - } + /** Moves the cursor to the beginning of the previous paragraph. */ + moveToBeginningOfPreviousParagraph(): void; - interface Panel{ - getItem():any; - getPriority():any; - isVisible():boolean; - show():void; - hide():void; - } + // Local Positions and Ranges + /** Returns buffer position of previous word boundary. It might be on the current + * word, or the previous word. + */ + getPreviousWordBoundaryBufferPosition(options?: { wordRegex?: RegExp }): + TextBuffer.Point; - interface IWorkspace { - addBottomPanel(options:IWorkspacePanelOptions):Panel; - addLeftPanel(options:IWorkspacePanelOptions):Panel; - addRightPanel(options:IWorkspacePanelOptions):Panel; - addTopPanel(options:IWorkspacePanelOptions):Panel; - addModalPanel(options:IWorkspacePanelOptions):Panel; - addOpener(opener: Function): any; - - deserializeParams(params:any):any; - serializeParams():{paneContainer:any;fullScreen:boolean;}; - eachEditor(callback: Function): void; - getTextEditors():IEditor[]; - open(uri:string, options:any):Q.Promise; - openLicense():void; - openSync(uri:string, options:any):any; - openUriInPane(uri: string, pane: any, options: any): Q.Promise; - observeTextEditors(callback: Function): Disposable; - reopenItemSync():any; - registerOpener(opener:(urlToOpen:string)=>any):void; - unregisterOpener(opener:Function):void; - getOpeners():any; - getActivePane(): IPane; - getActivePaneItem(): IPane; - getActiveTextEditor(): IEditor; - getPanes():any; - saveAll():void; - activateNextPane():any; - activatePreviousPane():any; - paneForURI: (uri:string) => IPane; - saveActivePaneItem():any; - saveActivePaneItemAs():any; - destroyActivePaneItem():any; - destroyActivePane():any; - getActiveEditor():IEditor; - increaseFontSize():void; - decreaseFontSize():void; - resetFontSize():void; - itemOpened(item:any):void; - onPaneItemDestroyed(item:any):void; - destroyed():void; - isTextEditor(object: any): boolean; - - onDidChangeActivePaneItem(item:any):Disposable; - } + /** Returns buffer position of the next word boundary. It might be on the current + * word, or the previous word. + */ + getNextWordBoundaryBufferPosition(options?: { wordRegex?: RegExp }): + TextBuffer.Point; - interface IAtomSettings { - appVersion: string; - bootstrapScript: string; - devMode: boolean; - initialPath: string; - pathToOpen: string; - resourcePath: string; - shellLoadTime: number; - windowState:string; - } + /** Retrieves the buffer position of where the current word starts. */ + getBeginningOfCurrentWordBufferPosition(options?: { + wordRegex?: RegExp, + includeNonWordCharacters?: boolean, + allowPrevious?: boolean + }): TextBuffer.Point; - interface IAtomState { - mode:string; - packageStates:any; - project:any; - syntax:any; - version:number; - windowDimensions:any; - workspace:any; - } + /** Retrieves the buffer position of where the current word ends. */ + getEndOfCurrentWordBufferPosition(options?: { + wordRegex?: RegExp, + includeNonWordCharacters?: boolean + }): TextBuffer.Point; - interface IDeserializerManager { - deserializers:Function; - add:Function; - remove:Function; - deserialize:Function; - get:Function; - } + /** Retrieves the buffer position of where the next word starts. */ + getBeginningOfNextWordBufferPosition(options?: { wordRegex?: RegExp }): TextBuffer.Point; - interface IConfig { - get(keyPath:string):any; - // TBD - } + /** Returns the buffer Range occupied by the word located under the cursor. */ + getCurrentWordBufferRange(options?: { wordRegex?: RegExp }): TextBuffer.Range; - interface IKeymapManager { - defaultTarget:HTMLElement; - // TBD - } + /** Returns the buffer Range for the current line. */ + getCurrentLineBufferRange(options?: { includeNewline?: boolean }): TextBuffer.Range; - interface IPackage { - mainModulePath: string; - mainModule: any; - enable(): void; - disable(): void; - isTheme(): boolean; - getType(): string; - getStylesheetType(): string; - load(): IPackage; - reset(): void; - activate(): Q.Promise; - activateNow(): void; - // TBD - } + /** Retrieves the range for the current paragraph. + * A paragraph is defined as a block of text surrounded by empty lines or comments. + */ + getCurrentParagraphBufferRange(): TextBuffer.Range; - interface IPackageManager extends Emissary.IEmitter { - packageDirPaths:string[]; - loadedPackages:any; - activePackages:any; - packageStates:any; - packageActivators:any[]; - - getApmPath():string; - getPackageDirPaths():string; - getPackageState(name:string):any; - setPackageState(name:string, state:any):void; - enablePackage(name:string):any; - disablePackage(name:string):any; - activate():void; - registerPackageActivator(activator:any, types:any):void; - activatePackages(packages:any):void; - activatePackage(name:string):Q.Promise; - deactivatePackages():void; - deactivatePackage(name:string):void; - getActivePackages():any; - getActivePackage(name:string):any; - isPackageActive(name:string):boolean; - unobserveDisabledPackages():void; - observeDisabledPackages():void; - loadPackages():void; - loadPackage(nameOrPath:string):void; - unloadPackages():void; - unloadPackage(name:string):void; - getLoadedPackage(name:string):any; - isPackageLoaded(name:string):boolean; - getLoadedPackages():any; - getLoadedPackagesForTypes(types:any):any[]; - resolvePackagePath(name:string):string; - isPackageDisabled(name:string):boolean; - hasAtomEngine(packagePath:string):boolean; - isBundledPackage(name:string):boolean; - getPackageDependencies():any; - getAvailablePackagePaths():any[]; - getAvailablePackageNames():any[]; - getAvailablePackageMetadata():any[]; - } + /** Returns the characters preceding the cursor in the current word. */ + getCurrentWordPrefix(): string; - interface INotifications { - addInfo: Function; - addError: Function; - addSuccess: Function; - addWarning: Function; - } + // Visibility + /** Sets whether the cursor is visible. */ + setVisible(visible: boolean): void; - interface IThemeManager { - // TBD - } + /** Returns the visibility of the cursor. */ + isVisible(): boolean; - interface IContextMenuManager { - // TBD - } + // Comparing to another cursor + /** Compare this cursor's buffer position to another cursor's buffer position. + * See Point::compare for more details. + */ + compare(otherCursor: Cursor): number; - interface IMenuManager { - // TBD - } + // Utilities + /** Prevents this cursor from causing scrolling. */ + clearAutoscroll(): void; - interface IClipboard { - write(text:string, metadata?:any):any; - read():string; - } + /** Deselects the current selection. */ + clearSelection(): void; - interface ISyntax { - // TBD - } + /** Get the RegExp used by the cursor to determine what a "word" is. */ + wordRegExp(options?: { includeNonWordCharacters?: boolean }): RegExp; + + /** Get the RegExp used by the cursor to determine what a "subword" is. */ + subwordRegExp(options?: { backwards?: boolean }): RegExp; + } - interface IWindowEventHandler { - // TBD - } + /** Represents a decoration that follows a DisplayMarker. A decoration is basically + * a visual representation of a marker. It allows you to add CSS classes to line + * numbers in the gutter, lines, and add selection-line regions around marked ranges + * of text. + */ + interface Decoration { + id: number; + + // Construction and Destruction + /** Destroy this marker decoration. + * You can also destroy the marker if you own it, which will destroy this decoration. + */ + destroy(): void; + + // Event Subscription + /** When the Decoration is updated via Decoration::setProperties. */ + onDidChangeProperties(callback: (event: Events.DecorationPropsChanged) => void): + EventKit.Disposable; + + /** Invoke the given callback when the Decoration is destroyed. */ + onDidDestroy(callback: () => void): EventKit.Disposable; + + // Decoration Details + /** An id unique across all Decoration objects. */ + getId(): number; + + /** Returns the marker associated with this Decoration. */ + getMarker(): TextBuffer.DisplayMarker; + + // Properties + /** Returns the Decoration's properties. */ + getProperties(): Structures.DecorationProps; + + /** Update the marker with new Properties. Allows you to change the decoration's + * class. + */ + setProperties(newProperties: Structures.DecorationProps): void; + } + + interface Deserializer { + name: string; + deserialize(state: object): object; + } + + /** Manages the deserializers used for serialized state. */ + interface DeserializerManager { + /** Register the given class(es) as deserializers. */ + add(...deserializers: Deserializer[]): EventKit.Disposable; - interface IAtomStatic extends ISerializationStatic { - version: number; - loadSettings: IAtomSettings; - - /* Load or create the Atom environment in the given mode */ - loadOrCreate(mode:'editor'):IAtom; - /* Load or create the Atom environment in the given mode */ - loadOrCreate(mode:'spec'):IAtom; - /* Load or create the Atom environment in the given mode */ - loadOrCreate(mode:string):IAtom; - - loadState(mode:any):void; - getStatePath(mode:any):string; - getConfigDirPath():string; - getStorageDirPath():string; - getLoadSettings():IAtomSettings; - getCurrentWindow():IBrowserWindow; - getVersion():string; - isReleasedVersion():boolean; - - new(state:IAtomState):IAtom; - } + /** Deserialize the state and params. */ + deserialize(state: object): object|undefined; + } - class Disposable { - constructor(disposalAction:any) - dispose():void - } + /** A container at the edges of the editor window capable of holding items. */ + interface Dock { + // Methods + /** Show the dock and focus its active Pane. */ + activate(): void; - // https://atom.io/docs/api/v0.106.0/api/classes/Atom.html - /* Global Atom class : instance members */ - interface IAtom { - constructor:IAtomStatic; - - state:IAtomState; - mode:string; - deserializers:IDeserializerManager; - config: IConfig; - commands: ICommandRegistry; - grammars: IGrammars; - keymaps: IKeymapManager; - keymap: IKeymapManager; - packages: IPackageManager; - themes: IThemeManager; - contextManu: IContextMenuManager; - menu: IMenuManager; - notifications: INotifications; // https://github.com/atom/notifications - clipboard:IClipboard; - syntax:ISyntax; - views: IViewRegistry; - windowEventHandler: IWindowEventHandler; - - // really exists? start - subscribe:Function; - unsubscribe:Function; - loadTime:number; - workspaceViewParentSelector:string; - - project: IProject; - workspaceView: IWorkspaceView; - workspace: IWorkspace; - // really exists? end - - initialize:Function; - // registerRepresentationClass:Function; - // registerRepresentationClasses:Function; - setBodyPlatformClass:Function; - getCurrentWindow():IBrowserWindow; - getWindowDimensions:Function; - setWindowDimensions:Function; - restoreWindowDimensions:Function; - storeWindowDimensions:Function; - getLoadSettings:Function; - deserializeProject: Function; - deserializeWorkspaceView:Function; - deserializePackageStates:Function; - deserializeEditorWindow:Function; - startEditorWindow:Function; - unloadEditorWindow:Function; - loadThemes:Function; - watchThemes:Function; - open:Function; - confirm:Function; - showSaveDialog:Function; - showSaveDialogSync:Function; - openDevTools:Function; - toggleDevTools:Function; - executeJavaScriptInDevTools:Function; - reload:Function; - focus:Function; - show:Function; - hide:Function; - setSize:Function; - setPosition:Function; - center:Function; - displayWindow:Function; - close:Function; - exit:Function; - inDevMode:Function; - inSpecMode:Function; - toggleFullScreen:Function; - setFullScreen:Function; - isFullScreen:Function; - getVersion:Function; - isReleasedVersion:Function; - getGitHubAuthTokenName:Function; - setGitHubAuthToken:Function; - getGitHubAuthToken:Function; - getConfigDirPath:Function; - saveSync:Function; - getWindowLoadTime():number; - crashMainProcess:Function; - crashRenderProcess:Function; - beep:Function; - getUserInitScriptPath:Function; - requireUserInitScript:Function; - requireWithGlobals:Function; - - services: any; // TODO: New services api - } + /** Show the dock without focusing it. */ + show(): void; - interface IBufferedNodeProcessStatic { - new (arg:any):IBufferedNodeProcess; - } + /** Hide the dock and activate the WorkspaceCenter if the dock was was previously focused. */ + hide(): void; - interface IBufferedNodeProcess extends IBufferedProcess { - } + /** Toggle the dock's visibility without changing the Workspace's active pane container. */ + toggle(): void; + + /** Check if the dock is visible. */ + isVisible(): boolean; + + // Event Subscription + /** Invoke the given callback when the visibility of the dock changes. */ + onDidChangeVisible(callback: (visible: boolean) => void): EventKit.Disposable; + + /** Invoke the given callback with the current and all future visibilities of the dock. */ + observeVisible(callback: (visible: boolean) => void): EventKit.Disposable; + + /** Invoke the given callback with all current and future panes items in the dock. */ + observePaneItems(callback: (item: object) => void): EventKit.Disposable; + + /** Invoke the given callback when the active pane item changes. + * + * Because observers are invoked synchronously, it's important not to perform any expensive + * operations via this method. Consider ::onDidStopChangingActivePaneItem to delay operations + * until after changes stop occurring. + */ + onDidChangeActivePaneItem(callback: (item: object) => void): EventKit.Disposable; - interface IBufferedProcessStatic { - new (arg:any):IBufferedProcess; - } + /** Invoke the given callback when the active pane item stops changing. */ + onDidStopChangingActivePaneItem(callback: (item: object) => void): EventKit.Disposable; - interface IBufferedProcess { - process:Function; - killed:boolean; + /** Invoke the given callback with the current active pane item and with all future + * active pane items in the dock. + */ + observeActivePaneItem(callback: (item: object) => void): EventKit.Disposable; - bufferStream:Function; - kill:Function; - } + /** Invoke the given callback when a pane is added to the dock. */ + onDidAddPane(callback: (event: { pane: Pane }) => void): EventKit.Disposable; - interface IGitStatic { - new(path:any, options:any):IGit; - } + /** Invoke the given callback before a pane is destroyed in the dock. */ + onWillDestroyPane(callback: (event: { pane: Pane }) => void): EventKit.Disposable; - interface IGit { - } + /** Invoke the given callback when a pane is destroyed in the dock. */ + onDidDestroyPane(callback: (event: { pane: Pane }) => void): EventKit.Disposable; - interface ITokenizedBuffer { - // TBD - } + /** Invoke the given callback with all current and future panes in the dock. */ + observePanes(callback: (pane: Pane) => void): EventKit.Disposable; - interface ITokenizedLine { - // TBD - } + /** Invoke the given callback when the active pane changes. */ + onDidChangeActivePane(callback: (pane: Pane) => void): EventKit.Disposable; - interface IToken { - // TBD - } + /** Invoke the given callback with the current active pane and when the active pane changes. */ + observeActivePane(callback: (pane: Pane) => void): EventKit.Disposable; - interface IFoldStatic { - new (displayBuffer:IDisplayBuffer, marker:IMarker):IFold; - // TBD - } + /** Invoke the given callback when a pane item is added to the dock. */ + onDidAddPaneItem(callback: (event: Events.PaneItemObserved) => void): + EventKit.Disposable; - interface IFold { - id:number; - displayBuffer:IDisplayBuffer; - marker:IMarker; + /** Invoke the given callback when a pane item is about to be destroyed, before the user is + * prompted to save it. + */ + onWillDestroyPaneItem(callback: (event: Events.PaneItemObserved) => void): + EventKit.Disposable; - // TBD - } + /** Invoke the given callback when a pane item is destroyed. */ + onDidDestroyPaneItem(callback: (event: Events.PaneItemObserved) => void): + EventKit.Disposable; - interface IDisplayBufferMarkerStatic { - new (_arg:{bufferMarker:IMarker; displayBuffer: IDisplayBuffer}):IDisplayBufferMarker; - } + // Pane Items + /** Get all pane items in the dock. */ + getPaneItems(): object[]; - interface IDisplayBufferMarker extends Emissary.IEmitter, Emissary.ISubscriber { - constructor:IDisplayBufferMarkerStatic; - - id: number; - - bufferMarkerSubscription:any; - oldHeadBufferPosition:TextBuffer.IPoint; - oldHeadScreenPosition:TextBuffer.IPoint; - oldTailBufferPosition:TextBuffer.IPoint; - oldTailScreenPosition:TextBuffer.IPoint; - wasValid:boolean; - - bufferMarker: IMarker; - displayBuffer: IDisplayBuffer; - globalPauseCount:number; - globalQueuedEvents:any; - - subscriptions:Emissary.ISubscription[]; - subscriptionsByObject:any; // WeakMap - - copy(attributes?:any /* maybe IMarker */):IDisplayBufferMarker; - getScreenRange():TextBuffer.IRange; - setScreenRange(screenRange:any, options:any):any; - getBufferRange():TextBuffer.IRange; - setBufferRange(bufferRange:any, options:any):any; - getPixelRange():any; - getHeadScreenPosition():TextBuffer.IPoint; - setHeadScreenPosition(screenPosition:any, options:any):any; - getHeadBufferPosition():TextBuffer.IPoint; - setHeadBufferPosition(bufferPosition:any):any; - getTailScreenPosition():TextBuffer.IPoint; - setTailScreenPosition(screenPosition:any, options:any):any; - getTailBufferPosition():TextBuffer.IPoint; - setTailBufferPosition(bufferPosition:any):any; - plantTail():boolean; - clearTail():boolean; - hasTail():boolean; - isReversed():boolean; - isValid():boolean; - isDestroyed():boolean; - getAttributes():any; - setAttributes(attributes:any):any; - matchesAttributes(attributes:any):any; - destroy():any; - isEqual(other:IDisplayBufferMarker):boolean; - compare(other:IDisplayBufferMarker):boolean; - inspect():string; - destroyed():any; - notifyObservers(_arg:any):any; - } + /** Get the active Pane's active item. */ + getActivePaneItem(): object; - interface ITransaction { - // TBD - } + // Panes + /** Returns an Array of Panes. */ + getPanes(): Pane[]; - interface IMarker extends Emissary.IEmitter { - // Serializable.includeInto(Editor); - // Delegator.includeInto(Editor); + /** Get the active Pane. */ + getActivePane(): Pane; - // TBD - } + /** Make the next pane active. */ + activateNextPane(): boolean; - interface ITaskStatic { - new(taskPath:any):ITask; - } + /** Make the previous pane active. */ + activatePreviousPane(): boolean; + } + + /** Represents the underlying git operations performed by Atom. */ + interface GitRepository { + // Lifecycle + /** Destroy this GitRepository object. */ + destroy(): void; + + /** Returns a boolean indicating if this repository has been destroyed. */ + isDestroyed(): boolean; + + // Event Subscription + /** Invoke the given callback when this GitRepository's destroy() method is + * invoked. + */ + onDidDestroy(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback when a specific file's status has changed. When + * a file is updated, reloaded, etc, and the status changes, this will be fired. + */ + onDidChangeStatus(callback: (event: Events.RepoStatusChanged) => void): + EventKit.Disposable; + + /** Invoke the given callback when a multiple files' statuses have changed. */ + onDidChangeStatuses(callback: () => void): EventKit.Disposable; + + // Repository Details + /** A string indicating the type of version control system used by this repository. */ + getType(): "git"; + + /** Returns the string path of the repository. */ + getPath(): string; + + /** Returns the string working directory path of the repository. */ + getWorkingDirectory(): string; + + /** Returns true if at the root, false if in a subfolder of the repository. */ + isProjectAtRoot(): boolean; + + /** Makes a path relative to the repository's working directory. */ + relativize(): string; + + /** Returns true if the given branch exists. */ + hasBranch(branch: string): boolean; + + /** Retrieves a shortened version of the HEAD reference value. */ + getShortHead(path?: string): string; + + /** Is the given path a submodule in the repository? */ + isSubmodule(path: string): boolean; + + /** Returns the number of commits behind the current branch is from the its + * upstream remote branch. The default reference is the HEAD. + * @param reference The branch reference name. + * @param path The path in the repository to get this ifnromation for, only + * needed if the repository contains submodules. + * @return Returns the number of commits behind the current branch is from its + * upstream remote branch. + */ + getAheadBehindCount(reference: string, path?: string): { ahead: number, behind: number }; + + /** Get the cached ahead/behind commit counts for the current branch's + * upstream branch. + */ + getCachedUpstreamAheadBehindCount(path?: string): { ahead: number, behind: number }; + + /** Returns the git configuration value specified by the key. */ + getConfigValue(key: string, path?: string): string; + + /** Returns the origin url of the repository. */ + getOriginURL(path?: string): string; + + /** Returns the upstream branch for the current HEAD, or null if there is no + * upstream branch for the current HEAD. + */ + getUpstreamBranch(path?: string): string|null; + + /** Gets all the local and remote references. */ + getReferences(path?: string): { heads: string[], remotes: string[], tags: string[] }; + + /** Returns the current string SHA for the given reference. */ + getReferenceTarget(reference: string, path?: string): string; + + // Reading Status + /** Returns true if the given path is modified. */ + isPathModified(path: string): boolean; + + /** Returns true if the given path is new. */ + isPathNew(path: string): boolean; + + /** Is the given path ignored? */ + isPathIgnored(path: string): boolean; + + /** Get the status of a directory in the repository's working directory. */ + getDirectoryStatus(path: string): number; + + /** Get the status of a single path in the repository. */ + getPathStatus(path: string): number; + + /** Get the cached status for the given path. */ + getCachedPathStatus(path: string): number|null; + + /** Returns true if the given status indicates modification. */ + isStatusModified(status: number): boolean; + + /** Returns true if the given status indicates a new path. */ + isStatusNew(status: number): boolean; + + // Retrieving Diffs + /** Retrieves the number of lines added and removed to a path. + * This compares the working directory contents of the path to the HEAD version. + */ + getDiffStats(path: string): { added: number, deleted: number }; + + /** Retrieves the line diffs comparing the HEAD version of the given path + * and the given text. + */ + getLineDiffs(path: string, text: string): Array<{ oldStart: number, + newStart: number, oldLines: number, newLines: number }>; + + // Checking Out + /** Restore the contents of a path in the working directory and index to the + * version at HEAD. + */ + checkoutHead(path: string): boolean; + + /** Checks out a branch in your repository. */ + checkoutReference(reference: string, create: boolean): boolean; + } + + /** Represents a gutter within a TextEditor. */ + interface Gutter { + // Gutter Destruction + /** Destroys the gutter. */ + destroy(): void; + + // Event Subscription + /** Calls your callback when the gutter's visibility changes. */ + onDidChangeVisible(callback: (gutter: Gutter) => void): EventKit.Disposable; + + /** Calls your callback when the gutter is destroyed. */ + onDidDestroy(callback: () => void): EventKit.Disposable; + + // Visibility + /** Hide the gutter. */ + hide(): void; + + /** Show the gutter. */ + show(): void; + + /** Determine whether the gutter is visible. */ + isVisible(): boolean; + + /** Add a decoration that tracks a DisplayMarker. When the marker moves, is + * invalidated, or is destroyed, the decoration will be updated to reflect + * the marker's state. + */ + decorateMarker(marker: TextBuffer.DisplayMarker, decorationParams: + Structures.DecorationProps): Decoration; + } + + /** History manager for remembering which projects have been opened. + * An instance of this class is always available as the atom.history global. + * The project history is used to enable the 'Reopen Project' menu. + */ + interface HistoryManager { + /** Obtain a list of previously opened projects. */ + getProjects(): HistoryProject[]; + + /** Clear all projects from the history. + * Note: This is not a privacy function - other traces will still exist, e.g. + * window state. + */ + clearProjects(): void; + + /** Invoke the given callback when the list of projects changes. */ + onDidChangeProjects(callback: (args: { reloaded: boolean }) => void): EventKit.Disposable; + } + + interface HistoryProject { + paths: string[]; + lastOpened: Date; + } + + /** Represents a decoration that applies to every marker on a given layer. Created via + * TextEditor::decorateMarkerLayer. + */ + interface LayerDecoration { + /** Destroys the decoration. */ + destroy(): void; + + /** Determine whether this decoration is destroyed. */ + isDestroyed(): boolean; + + /** Get this decoration's properties. */ + getProperties(): Structures.DecorationLayerProps; + + /** Set this decoration's properties. */ + setProperties(newProperties: Structures.DecorationLayerProps): void; + + /** Override the decoration properties for a specific marker. */ + setPropertiesForMarker(marker: TextBuffer.DisplayMarker|TextBuffer.Marker, + properties: Structures.DecorationLayerProps): void; + } + + /** Provides a registry for menu items that you'd like to appear in the application menu. */ + interface MenuManager { + /** Adds the given items to the application menu. */ + add(items: ReadonlyArray): EventKit.Disposable; + + /** Refreshes the currently visible menu. */ + update(): void; + } + + interface Model { + // Properties + alive: boolean; + + // Lifecycle + /** Destroys this Model. */ + destroy(): void; + + /** Returns whether or not this Model is alive. */ + isAlive(): boolean; + + /** Returns whether or not this Model has been destroyed. */ + isDestroyed(): boolean; + } + + /** A notification to the user containing a message and type. */ + interface Notification { + // Properties + dismissed: boolean; + displayed: boolean; + timestamp: Date; + + // Event Subscription + /** Invoke the given callback when the notification is dismissed. */ + onDidDismiss(callback: (notification: Notification) => void): EventKit.Disposable; + + /** Invoke the given callback when the notification is displayed. */ + onDidDisplay(callback: (notification: Notification) => void): EventKit.Disposable; + + // Methods + /** Returns the Notification's type. */ + getType(): string; + + /** Returns the Notification's message. */ + getMessage(): string; + + /** Dismisses the notification, removing it from the UI. Calling this + * programmatically will call all callbacks added via onDidDismiss. + */ + dismiss(): void; + } + + /** A notification manager used to create Notifications to be shown to the user. */ + interface NotificationManager { + // Properties + notifications: Notification[]; + + // Events + /** Invoke the given callback after a notification has been added. */ + onDidAddNotification(callback: (notification: Notification) => void): + EventKit.Disposable; + + // Adding Notifications + /** Add a success notification. */ + addSuccess(message: string, options?: Options.Notification): Notification; + + /** Add an informational notification. */ + addInfo(message: string, options?: Options.Notification): Notification; + + /** Add a warning notification. */ + addWarning(message: string, options?: Options.Notification): Notification; + + /** Add an error notification. */ + addError(message: string, options?: Options.ErrorNotification): Notification; + + /** Add a fatal error notification. */ + addFatalError(message: string, options?: Options.ErrorNotification): Notification; + + // Getting Notifications + /** Get all the notifications. */ + getNotifications(): Notification[]; + } + + /** Loads and activates a package's main module and resources such as stylesheets, + * keymaps, grammar, editor properties, and menus. + */ + interface Package { + // Properties + name: string; + bundledPackage: boolean; + path: string; + + // Event Subscription + /** Invoke the given callback when all packages have been activated. */ + onDidDeactivate(callback: () => void): EventKit.Disposable; + + // Native Module Compatibility + /** Are all native modules depended on by this package correctly compiled + * against the current version of Atom? + */ + isCompatible(): boolean; + + /** Rebuild native modules in this package's dependencies for the current + * version of Atom. + */ + rebuild(): Promise<{ code: number, stdout: string, stderr: string }>; + + /** If a previous rebuild failed, get the contents of stderr. */ + getBuildFailureOutput(): string|null; + } + + /** Package manager for coordinating the lifecycle of Atom packages. */ + interface PackageManager { + // Event Subscription + /** Invoke the given callback when all packages have been loaded. */ + onDidLoadInitialPackages(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback when all packages have been activated. */ + onDidActivateInitialPackages(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback when a package is activated. */ + onDidActivatePackage(callback: (package: Package) => void): EventKit.Disposable; + + /** Invoke the given callback when a package is deactivated. */ + onDidDeactivatePackage(callback: (package: Package) => void): EventKit.Disposable; + + /** Invoke the given callback when a package is loaded. */ + onDidLoadPackage(callback: (package: Package) => void): EventKit.Disposable; + + /** Invoke the given callback when a package is unloaded. */ + onDidUnloadPackage(callback: (package: Package) => void): EventKit.Disposable; + + // Package System Data + /** Get the path to the apm command. */ + getApmPath(): string; + + /** Get the paths being used to look for packages. */ + getPackageDirPaths(): string[]; + + // General Package Data + /** Resolve the given package name to a path on disk. */ + resolvePackagePath(name: string): string|undefined; + + /** Is the package with the given name bundled with Atom? */ + isBundledPackage(name: string): boolean; + + // Enabling and Disabling Packages + /** Enable the package with the given name. */ + enablePackage(name: string): Package|undefined; + + /** Disable the package with the given name. */ + disablePackage(name: string): Package|undefined; + + /** Is the package with the given name disabled? */ + isPackageDisabled(name: string): boolean; + + // Accessing Active Packages + /** Get an Array of all the active Packages. */ + getActivePackages(): Package[]; + + /** Get the active Package with the given name. */ + getActivePackage(name: string): Package|undefined; + + /** Is the Package with the given name active? */ + isPackageActive(name: string): boolean; + + /** Returns a boolean indicating whether package activation has occurred. */ + hasActivatedInitialPackages(): boolean; + + // Accessing Loaded Packages + /** Get an Array of all the loaded Packages. */ + getLoadedPackages(): Package[]; + + /** Get the loaded Package with the given name. */ + getLoadedPackage(name: string): Package|undefined; + + /** Is the package with the given name loaded? */ + isPackageLoaded(name: string): boolean; + + /** Returns a boolean indicating whether package loading has occurred. */ + hasLoadedInitialPackages(): boolean; + + // Accessing Available Packages + /** Returns an Array of strings of all the available package paths. */ + getAvailablePackagePaths(): string[]; + + /** Returns an Array of strings of all the available package names. */ + getAvailablePackageNames(): string[]; + + /** Returns an Array of strings of all the available package metadata. */ + getAvailablePackageMetadata(): string[]; + } + + /** A container for presenting content in the center of the workspace. */ + interface Pane { + // Event Subscription + /** Invoke the given callback when the pane resizes. */ + onDidChangeFlexScale(callback: (flexScale: number) => void): EventKit.Disposable; - interface ITask { - // TBD + /** Invoke the given callback with the current and future values of ::getFlexScale. */ + observeFlexScale(callback: (flexScale: number) => void): EventKit.Disposable; + + /** Invoke the given callback when the pane is activated. */ + onDidActivate(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback before the pane is destroyed. */ + onWillDestroy(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback when the pane is destroyed. */ + onDidDestroy(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback when the value of the ::isActive property changes. */ + onDidChangeActive(callback: (active: boolean) => void): EventKit.Disposable; + + /** Invoke the given callback with the current and future values of the ::isActive + * property. + */ + observeActive(callback: (active: boolean) => void): EventKit.Disposable; + + /** Invoke the given callback when an item is added to the pane. */ + onDidAddItem(callback: (event: Events.PaneListItemShifted) => void): + EventKit.Disposable; + + /** Invoke the given callback when an item is removed from the pane. */ + onDidRemoveItem(callback: (event: Events.PaneListItemShifted) => void): + EventKit.Disposable; + + /** Invoke the given callback before an item is removed from the pane. */ + onWillRemoveItem(callback: (event: Events.PaneListItemShifted) => void): + EventKit.Disposable; + + /** Invoke the given callback when an item is moved within the pane. */ + onDidMoveItem(callback: (event: Events.PaneItemMoved) => void): + EventKit.Disposable; + + /** Invoke the given callback with all current and future items. */ + observeItems(callback: (item: object) => void): EventKit.Disposable; + + /** Invoke the given callback when the value of ::getActiveItem changes. */ + onDidChangeActiveItem(callback: (activeItem: object) => void): EventKit.Disposable; + + /** Invoke the given callback when ::activateNextRecentlyUsedItem has been called, + * either initiating or continuing a forward MRU traversal of pane items. + */ + onChooseNextMRUItem(callback: (nextRecentlyUsedItem: object) => void): EventKit.Disposable; + + /** Invoke the given callback when ::activatePreviousRecentlyUsedItem has been called, + * either initiating or continuing a reverse MRU traversal of pane items. + */ + onChooseLastMRUItem(callback: (previousRecentlyUsedItem: object) => void): + EventKit.Disposable; + + /** Invoke the given callback when ::moveActiveItemToTopOfStack has been called, + * terminating an MRU traversal of pane items and moving the current active item + * to the top of the stack. Typically bound to a modifier (e.g. CTRL) key up event. + */ + onDoneChoosingMRUItem(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback with the current and future values of ::getActiveItem. */ + observeActiveItem(callback: (activeItem: object) => void): EventKit.Disposable; + + /** Invoke the given callback before items are destroyed. */ + onWillDestroyItem(callback: (event: Events.PaneListItemShifted) => void): + EventKit.Disposable; + + // Items + /** Get the items in this pane. */ + getItems(): object[]; + + /** Get the active pane item in this pane. */ + getActiveItem(): object; + + /** Return the item at the given index. */ + itemAtIndex(index: number): object|undefined; + + /** Makes the next item active. */ + activateNextItem(): void; + + /** Makes the previous item active. */ + activatePreviousItem(): void; + + /** Move the active tab to the right. */ + moveItemRight(): void; + + /** Move the active tab to the left. */ + moveItemLeft(): void; + + /** Get the index of the active item. */ + getActiveItemIndex(): number; + + /** Activate the item at the given index. */ + activateItemAtIndex(index: number): void; + + /** Make the given item active, causing it to be displayed by the pane's view. */ + activateItem(item: object, options?: { pending: boolean }): void; + + /** Add the given item to the pane. */ + addItem(item: object, options?: { index?: number, pending?: boolean }): object; + + /** Add the given items to the pane. */ + addItems(items: object[], index?: number): object[]; + + /** Move the given item to the given index. */ + moveItem(item: object, index: number): void; + + /** Move the given item to the given index on another pane. */ + moveItemToPane(item: object, pane: Pane, index: number): void; + + /** Destroy the active item and activate the next item. */ + destroyActiveItem(): void; + + /** Destroy the given item. */ + destroyItem(item: object, force?: boolean): Promise; + + /** Destroy all items. */ + destroyItems(): void; + + /** Destroy all items except for the active item. */ + destroyInactiveItems(): void; + + /** Save the active item. */ + saveActiveItem(nextAction?: (error?: Error) => T): + Promise|undefined; + + /** Prompt the user for a location and save the active item with the path + * they select. + */ + saveActiveItemAs(nextAction?: (error?: Error) => T): + Promise|undefined; + + /** Save the given item. */ + saveItem(item: object, nextAction?: (error?: Error) => T): + Promise|undefined; + + /** Prompt the user for a location and save the active item with the path + * they select. + */ + saveItemAs(item: object, nextAction?: (error?: Error) => T): + Promise|undefined; + + /** Save all items. */ + saveItems(): void; + + /** Return the first item that matches the given URI or undefined if none exists. */ + itemForURI(uri: string): object|undefined; + + /** Activate the first item that matches the given URI. */ + activateItemForURI(uri: string): boolean; + + // Lifecycle + /** Determine whether the pane is active. */ + isActive(): boolean; + + /** Makes this pane the active pane, causing it to gain focus. */ + activate(): void; + + /** Close the pane and destroy all its items. */ + destroy(): void; + + /** Determine whether this pane has been destroyed. */ + isDestroyed(): boolean; + + // Splitting + /** Create a new pane to the left of this pane. */ + splitLeft(params?: { + items?: object[], + copyActiveItem?: boolean, + }): Pane; + + /** Create a new pane to the right of this pane. */ + splitRight(params?: { + items?: object[], + copyActiveItem?: boolean, + }): Pane; + + /** Creates a new pane above the receiver. */ + splitUp(params?: { + items?: object[], + copyActiveItem?: boolean, + }): Pane; + + /** Creates a new pane below the receiver. */ + splitDown(params?: { + items?: object[], + copyActiveItem?: boolean, + }): Pane; + } + + /** A container representing a panel on the edges of the editor window. You + * should not create a Panel directly, instead use Workspace::addTopPanel and + * friends to add panels. + */ + interface Panel { + visible: boolean; + + // Construction and Destruction + /** Destroy and remove this panel from the UI. */ + destroy(): void; + + // Event Subscription + /** Invoke the given callback when the pane hidden or shown. */ + onDidChangeVisible(callback: (visible: boolean) => void): EventKit.Disposable; + + /** Invoke the given callback when the pane is destroyed. */ + onDidDestroy(callback: (panel: Panel) => void): EventKit.Disposable; + + // Panel Details + /** Returns the panel's item. */ + getItem(): object; + + /** Returns a number indicating this panel's priority. */ + getPriority(): number; + + /** Returns a boolean true when the panel is visible. */ + isVisible(): boolean; + + /** Hide this panel. */ + hide(): void; + + /** Show this panel. */ + show(): void; + } + + /** Manage a subscription to filesystem events that occur beneath a root directory. */ + interface PathWatcher extends EventKit.DisposableLike { + /** Return a Promise that will resolve when the underlying native watcher is + * ready to begin sending events. + */ + getStartPromise(): Promise; + + /** Invokes a function when any errors related to this watcher are reported. */ + onDidError(callback: (error: Error) => void): EventKit.Disposable; + + /** Unsubscribe all subscribers from filesystem events. Native resources will be + * release asynchronously, but this watcher will stop broadcasting events + * immediately. + */ + dispose(): void; + } + + /** Represents a project that's opened in Atom. */ + interface Project { + // Event Subscription + /** Invoke the given callback when the project paths change. */ + onDidChangePaths(callback: (projectPaths: string[]) => void): EventKit.Disposable; + + /** Invoke the given callback when a text buffer is added to the project. */ + onDidAddBuffer(callback: (buffer: TextBuffer.TextBuffer) => void): EventKit.Disposable; + + /** Invoke the given callback with all current and future text buffers in + * the project. + */ + observeBuffers(callback: (buffer: TextBuffer.TextBuffer) => void): EventKit.Disposable; + + /** Invoke a callback when a filesystem change occurs within any open project path. */ + onDidChangeFiles(callback: (events: Events.FilesystemChange) => void): EventKit.Disposable; + + // Accessing the Git Repository + /** Get an Array of GitRepositorys associated with the project's directories. */ + getRepositories(): GitRepository[]; + + /** Get the repository for a given directory asynchronously. */ + repositoryForDirectory(directory: PathWatcher.Directory): Promise; + + // Managing Paths + /** Get an Array of strings containing the paths of the project's directories. */ + getPaths(): string[]; + + /** Set the paths of the project's directories. */ + setPaths(projectPaths: string[]): void; + + /** Add a path to the project's list of root paths. */ + addPath(projectPath: string): void; + + /** Access a promise that resolves when the filesystem watcher associated with a + * project root directory is ready to begin receiving events. + */ + getWatcherPromise(projectPath: string): Promise; + + /** Remove a path from the project's list of root paths. */ + removePath(projectPath: string): void; + + /** Get an Array of Directorys associated with this project. */ + getDirectories(): PathWatcher.Directory[]; + + /** Get the relative path from the project directory to the given path. */ + relativize(fullPath: string): string; + + /** Get the path to the project directory that contains the given path, and + * the relative path from that project directory to the given path. + */ + relativizePath(fullPath: string): [string|null, string]; + + /** Determines whether the given path (real or symbolic) is inside the + * project's directory. + */ + contains(pathToCheck: string): boolean; + } + + /** Wraps an Array of Strings. The Array describes a path from the root of the + * syntax tree to a token including all scope names for the entire path. + */ + interface ScopeDescriptor { + scopes: string[]; + + /** Returns all scopes for this descriptor. */ + getScopesArray(): string[]; + } + + /** Represents a selection in the TextEditor. */ + interface Selection { + // Event Subscription + /** Calls your callback when the selection was moved. */ + onDidChangeRange(callback: (event: Events.SelectionChanged) => void): + EventKit.Disposable; + + /** Calls your callback when the selection was destroyed. */ + onDidDestroy(callback: () => void): EventKit.Disposable; + + // Managing the selection range + /** Returns the screen Range for the selection. */ + getScreenRange(): TextBuffer.Range; + + /** Modifies the screen range for the selection. */ + setScreenRange(screenRange: TextBuffer.RangeLike|[TextBuffer.PointLike, + TextBuffer.PointLike]|[TextBuffer.PointLike, [number, number]]|[[number, number], + TextBuffer.PointLike]|[[number, number], [number, number]], options?: + { preserveFolds?: boolean, autoscroll?: boolean }): void; + + /** Returns the buffer Range for the selection. */ + getBufferRange(): TextBuffer.Range; + + /** Modifies the buffer Range for the selection. */ + setBufferRange(bufferRange: TextBuffer.RangeLike|[TextBuffer.PointLike, + TextBuffer.PointLike]|[TextBuffer.PointLike, [number, number]]|[[number, number], + TextBuffer.PointLike]|[[number, number], [number, number]], options?: + { preserveFolds?: boolean, autoscroll?: boolean }): void; + + /** Returns the starting and ending buffer rows the selection is highlighting. */ + getBufferRowRange(): [number, number]; + + // Info about the selection + /** Determines if the selection contains anything. */ + isEmpty(): boolean; + + /** Determines if the ending position of a marker is greater than the starting position. + * This can happen when, for example, you highlight text "up" in a TextBuffer. + */ + isReversed(): boolean; + + /** Returns whether the selection is a single line or not. */ + isSingleScreenLine(): boolean; + + /** Returns the text in the selection. */ + getText(): string; + + // NOTE: this calls into Range.intersectsWith(), which is one of the few functions + // that doesn't take a range-compatible range, despite what the API says. + /** Identifies if a selection intersects with a given buffer range. */ + intersectsBufferRange(bufferRange: TextBuffer.RangeLike): boolean; + + /** Identifies if a selection intersects with another selection. */ + intersectsWith(otherSelection: Selection): boolean; + + // Modifying the selected range + /** Clears the selection, moving the marker to the head. */ + clear(options?: { autoscroll?: boolean }): void; + + /** Selects the text from the current cursor position to a given screen position. */ + selectToScreenPosition(position: TextBuffer.PointLike|[number, number]): void; + + /** Selects the text from the current cursor position to a given buffer position. */ + selectToBufferPosition(position: TextBuffer.PointLike|[number, number]): void; + + /** Selects the text one position right of the cursor. */ + selectRight(columnCount?: number): void; + + /** Selects the text one position left of the cursor. */ + selectLeft(columnCount?: number): void; + + /** Selects all the text one position above the cursor. */ + selectUp(rowCount?: number): void; + + /** Selects all the text one position below the cursor. */ + selectDown(rowCount?: number): void; + + /** Selects all the text from the current cursor position to the top of the + * buffer. + */ + selectToTop(): void; + + /** Selects all the text from the current cursor position to the bottom of + * the buffer. + */ + selectToBottom(): void; + + /** Selects all the text in the buffer. */ + selectAll(): void; + + /** Selects all the text from the current cursor position to the beginning of + * the line. + */ + selectToBeginningOfLine(): void; + + /** Selects all the text from the current cursor position to the first character + * of the line. + */ + selectToFirstCharacterOfLine(): void; + + /** Selects all the text from the current cursor position to the end of the + * screen line. + */ + selectToEndOfLine(): void; + + /** Selects all the text from the current cursor position to the end of the + * buffer line. + */ + selectToEndOfBufferLine(): void; + + /** Selects all the text from the current cursor position to the beginning + * of the word. + */ + selectToBeginningOfWord(): void; + + /** Selects all the text from the current cursor position to the end of the word. */ + selectToEndOfWord(): void; + + /** Selects all the text from the current cursor position to the beginning of + * the next word. + */ + selectToBeginningOfNextWord(): void; + + /** Selects text to the previous word boundary. */ + selectToPreviousWordBoundary(): void; + + /** Selects text to the next word boundary. */ + selectToNextWordBoundary(): void; + + /** Selects text to the previous subword boundary. */ + selectToPreviousSubwordBoundary(): void; + + /** Selects text to the next subword boundary. */ + selectToNextSubwordBoundary(): void; + + /** Selects all the text from the current cursor position to the beginning of + * the next paragraph. + */ + selectToBeginningOfNextParagraph(): void; + + /** Selects all the text from the current cursor position to the beginning of + * the previous paragraph. + */ + selectToBeginningOfPreviousParagraph(): void; + + /** Modifies the selection to encompass the current word. */ + selectWord(): void; + + /** Expands the newest selection to include the entire word on which the + * cursors rests. + */ + expandOverWord(): void; + + /** Selects an entire line in the buffer. */ + selectLine(row: number): void; + + /** Expands the newest selection to include the entire line on which the cursor + * currently rests. + * It also includes the newline character. + */ + expandOverLine(): void; + + // Modifying the selected text + /** Replaces text at the current selection. */ + insertText(text: string, options?: Options.TextInsertion): void; + + /** Removes the first character before the selection if the selection is empty + * otherwise it deletes the selection. + */ + backspace(): void; + + /** Removes the selection or, if nothing is selected, then all characters from + * the start of the selection back to the previous word boundary. + */ + deleteToPreviousWordBoundary(): void; + + /** Removes the selection or, if nothing is selected, then all characters from + * the start of the selection up to the next word boundary. + */ + deleteToNextWordBoundary(): void; + + /** Removes from the start of the selection to the beginning of the current + * word if the selection is empty otherwise it deletes the selection. + */ + deleteToBeginningOfWord(): void; + + /** Removes from the beginning of the line which the selection begins on all + * the way through to the end of the selection. + */ + deleteToBeginningOfLine(): void; + + /** Removes the selection or the next character after the start of the selection + * if the selection is empty. + */ + delete(): void; + + /** If the selection is empty, removes all text from the cursor to the end of + * the line. If the cursor is already at the end of the line, it removes the following + * newline. If the selection isn't empty, only deletes the contents of the selection. + */ + deleteToEndOfLine(): void; + + /** Removes the selection or all characters from the start of the selection to + * the end of the current word if nothing is selected. + */ + deleteToEndOfWord(): void; + + /** Removes the selection or all characters from the start of the selection to + * the end of the current word if nothing is selected. + */ + deleteToBeginningOfSubword(): void; + + /** Removes the selection or all characters from the start of the selection to + * the end of the current word if nothing is selected. + */ + deleteToEndOfSubword(): void; + + /** Removes only the selected text. */ + deleteSelectedText(): void; + + /** Removes the line at the beginning of the selection if the selection is empty + * unless the selection spans multiple lines in which case all lines are removed. + */ + deleteLine(): void; + + /** Joins the current line with the one below it. Lines will be separated by a single space. + * If there selection spans more than one line, all the lines are joined together. + */ + joinLines(): void; + + /** Removes one level of indent from the currently selected rows. */ + outdentSelectedRows(): void; + + /** Sets the indentation level of all selected rows to values suggested by the + * relevant grammars. + */ + autoIndentSelectedRows(): void; + + /** Wraps the selected lines in comments if they aren't currently part of a comment. + * Removes the comment if they are currently wrapped in a comment. + */ + toggleLineComments(): void; + + /** Cuts the selection until the end of the screen line. */ + cutToEndOfLine(): void; + + /** Cuts the selection until the end of the buffer line. */ + cutToEndOfBufferLine(): void; + + /** Copies the selection to the clipboard and then deletes it. */ + cut(maintainClipboard?: boolean, fullLine?: boolean): void; + + /** Copies the current selection to the clipboard. */ + copy(maintainClipboard?: boolean, fullLine?: boolean): void; + + /** Creates a fold containing the current selection. */ + fold(): void; + + /** If the selection spans multiple rows, indent all of them. */ + indentSelectedRows(): void; + + // Managing multiple selections + /** Moves the selection down one row. */ + addSelectionBelow(): void; + + /** Moves the selection up one row. */ + addSelectionAbove(): void; + + /** Combines the given selection into this selection and then destroys the + * given selection. + */ + merge(otherSelection: Selection, options?: { preserveFolds?: boolean, + autoscroll?: boolean }): void; + + // Comparing to other selections + /** Compare this selection's buffer range to another selection's buffer range. + * See Range::compare for more details. + */ + compare(otherSelection: Selection): number; + } + + /** A singleton instance of this class available via atom.styles, which you can + * use to globally query and observe the set of active style sheets. + */ + interface StyleManager { + // Event Subscription + /** Invoke callback for all current and future style elements. */ + observeStyleElements(callback: (styleElement: Events.StyleElementObserved) => + void): EventKit.Disposable; + + /** Invoke callback when a style element is added. */ + onDidAddStyleElement(callback: (styleElement: Events.StyleElementObserved) => + void): EventKit.Disposable; + + /** Invoke callback when a style element is removed. */ + onDidRemoveStyleElement(callback: (styleElement: HTMLStyleElement) => void): + EventKit.Disposable; + + /** Invoke callback when an existing style element is updated. */ + onDidUpdateStyleElement(callback: (styleElement: Events.StyleElementObserved) => + void): EventKit.Disposable; + + // Reading Style Elements + /** Get all loaded style elements. */ + getStyleElements(): HTMLStyleElement[]; + + // Paths + /** Get the path of the user style sheet in ~/.atom. */ + getUserStyleSheetPath(): string; + } + + /** Run a node script in a separate process. */ + interface Task { + // NOTE: this is actually the best we can do here with the REST parameter + // for this appearing in the beginning of the parameter list, which isn't + // aligned with the ES6 spec. + /** Starts the task. + * Throws an error if this task has already been terminated or if sending a + * message to the child process fails. + */ + start(...args: any[]): void; + + /** Send message to the task. + * Throws an error if this task has already been terminated or if sending a + * message to the child process fails. + */ + send(message: string): void; + + /** Call a function when an event is emitted by the child process. */ + on(eventName: string, callback: (param: any) => void): EventKit.Disposable; + + /** Forcefully stop the running task. + * No more events are emitted once this method is called. + */ + terminate(): void; + + /** Cancel the running task and emit an event if it was canceled. */ + cancel(): boolean; + } + + /** This class represents all essential editing state for a single TextBuffer, + * including cursor and selection positions, folds, and soft wraps. + */ + interface TextEditor extends Model { + // Properties + id: number; + buffer: TextBuffer.TextBuffer; + element: HTMLElement; + + // Event Subscription + /** Calls your callback when the buffer's title has changed. */ + onDidChangeTitle(callback: (title: string) => void): EventKit.Disposable; + + /** Calls your callback when the buffer's path, and therefore title, has changed. */ + onDidChangePath(callback: (path: string) => void): EventKit.Disposable; + + /** Invoke the given callback synchronously when the content of the buffer + * changes. + */ + onDidChange(callback: (event: Events.EditorChanged[]) => void): + EventKit.Disposable; + + /** Invoke callback when the buffer's contents change. It is emit + * asynchronously 300ms after the last buffer change. This is a good place + * to handle changes to the buffer without compromising typing performance. + */ + onDidStopChanging(callback: (event: TextBuffer.Events.BufferStoppedChanging) => void): + EventKit.Disposable; + + /** Calls your callback when a Cursor is moved. If there are multiple cursors, + * your callback will be called for each cursor. + */ + onDidChangeCursorPosition(callback: (event: Events.CursorPositionChanged) => void): + EventKit.Disposable; + + /** Calls your callback when a selection's screen range changes. */ + onDidChangeSelectionRange(callback: (event: Events.SelectionChanged) => void): + EventKit.Disposable; + + /** Invoke the given callback after the buffer is saved to disk. */ + onDidSave(callback: (event: { path: string }) => void): EventKit.Disposable; + + /** Invoke the given callback when the editor is destroyed. */ + onDidDestroy(callback: () => void): EventKit.Disposable; + + /** Retrieves the current TextBuffer. */ + getBuffer(): TextBuffer.TextBuffer; + + /** Calls your callback when a Gutter is added to the editor. Immediately calls + * your callback for each existing gutter. + */ + observeGutters(callback: (gutter: Gutter) => void): EventKit.Disposable; + + /** Calls your callback when a Gutter is added to the editor. */ + onDidAddGutter(callback: (gutter: Gutter) => void): EventKit.Disposable; + + /** Calls your callback when a Gutter is removed from the editor. */ + onDidRemoveGutter(callback: (name: string) => void): EventKit.Disposable; + + /** Calls your callback when soft wrap was enabled or disabled. */ + onDidChangeSoftWrapped(callback: (softWrapped: boolean) => void): EventKit.Disposable; + + /** Calls your callback when the buffer's encoding has changed. */ + onDidChangeEncoding(callback: (encoding: string) => void): EventKit.Disposable; + + /** Calls your callback when the grammar that interprets and colorizes the text + * has been changed. Immediately calls your callback with the current grammar. + */ + observeGrammar(callback: (grammar: FirstMate.Grammar) => void): EventKit.Disposable; + + /** Calls your callback when the grammar that interprets and colorizes the text + * has been changed. + */ + onDidChangeGrammar(callback: (grammar: FirstMate.Grammar) => void): EventKit.Disposable; + + /** Calls your callback when the result of ::isModified changes. */ + onDidChangeModified(callback: (modified: boolean) => void): EventKit.Disposable; + + /** Calls your callback when the buffer's underlying file changes on disk at a + * moment when the result of ::isModified is true. + */ + onDidConflict(callback: () => void): EventKit.Disposable; + + /** Calls your callback before text has been inserted. */ + onWillInsertText(callback: (event: { text: string, cancel(): void }) => void): + EventKit.Disposable; + + /** Calls your callback after text has been inserted. */ + onDidInsertText(callback: (event: { text: string }) => void): EventKit.Disposable; + + /** Calls your callback when a Cursor is added to the editor. Immediately calls + * your callback for each existing cursor. + */ + observeCursors(callback: (cursor: Cursor) => void): EventKit.Disposable; + + /** Calls your callback when a Cursor is added to the editor. */ + onDidAddCursor(callback: (cursor: Cursor) => void): EventKit.Disposable; + + /** Calls your callback when a Cursor is removed from the editor. */ + onDidRemoveCursor(callback: (cursor: Cursor) => void): EventKit.Disposable; + + /** Calls your callback when a Selection is added to the editor. Immediately + * calls your callback for each existing selection. + */ + observeSelections(callback: (selection: Selection) => void): EventKit.Disposable; + + /** Calls your callback when a Selection is added to the editor. */ + onDidAddSelection(callback: (selection: Selection) => void): EventKit.Disposable; + + /** Calls your callback when a Selection is removed from the editor. */ + onDidRemoveSelection(callback: (selection: Selection) => void): EventKit.Disposable; + + /** Calls your callback with each Decoration added to the editor. Calls your + * callback immediately for any existing decorations. + */ + observeDecorations(callback: (decoration: Decoration) => void): EventKit.Disposable; + + /** Calls your callback when a Decoration is added to the editor. */ + onDidAddDecoration(callback: (decoration: Decoration) => void): EventKit.Disposable; + + /** Calls your callback when a Decoration is removed from the editor. */ + onDidRemoveDecoration(callback: (decoration: Decoration) => void): EventKit.Disposable; + + /** Calls your callback when the placeholder text is changed. */ + onDidChangePlaceholderText(callback: (placeholderText: string) => void): EventKit.Disposable; + + // File Details + /** Get the editor's title for display in other parts of the UI such as the tabs. + * If the editor's buffer is saved, its title is the file name. If it is unsaved, + * its title is "untitled". + */ + getTitle(): string; + + /** Get unique title for display in other parts of the UI, such as the window title. + * If the editor's buffer is unsaved, its title is "untitled" If the editor's + * buffer is saved, its unique title is formatted as one of the following, + * + * "" when it is the only editing buffer with this file name. + * " — " when other buffers have this file name. + */ + getLongTitle(): string; + + /** Returns the string path of this editor's text buffer. */ + getPath(): string|undefined; + + /** Returns boolean true if this editor has been modified. */ + isModified(): boolean; + + /** Returns boolean true if this editor has no content. */ + isEmpty(): boolean; + + /** Returns the string character set encoding of this editor's text buffer. */ + getEncoding(): string; + + /** Set the character set encoding to use in this editor's text buffer. */ + setEncoding(encoding: string): void; + + // File Operations + /** Saves the editor's text buffer. + * See TextBuffer::save for more details. + */ + save(): Promise; + + /** Saves the editor's text buffer as the given path. + * See TextBuffer::saveAs for more details. + */ + saveAs(filePath: string): Promise; + + // Reading Text + /** Returns a string representing the entire contents of the editor. */ + getText(): string; + + /** Get the text in the given range in buffer coordinates. */ + getTextInBufferRange(range: TextBuffer.RangeLike|[TextBuffer.PointLike, + TextBuffer.PointLike]|[TextBuffer.PointLike, [number, number]]|[[number, number], + TextBuffer.PointLike]|[[number, number], [number, number]]): string; + + /** Returns a number representing the number of lines in the buffer. */ + getLineCount(): number; + + /** Returns a number representing the number of screen lines in the editor. + * This accounts for folds. + */ + getScreenLineCount(): number; + + /** Returns a number representing the last zero-indexed buffer row number of + * the editor. + */ + getLastBufferRow(): number; + + /** Returns a number representing the last zero-indexed screen row number of + * the editor. + */ + getLastScreenRow(): number; + + /** Returns a string representing the contents of the line at the given + * buffer row. + */ + lineTextForBufferRow(bufferRow: number): string; + + /** Returns a string representing the contents of the line at the given + * screen row. + */ + lineTextForScreenRow(screenRow: number): string; + + /** Get the range of the paragraph surrounding the most recently added cursor. */ + getCurrentParagraphBufferRange(): TextBuffer.Range; + + // Mutating Text + /** Replaces the entire contents of the buffer with the given string. */ + setText(text: string): void; + + /** Set the text in the given Range in buffer coordinates. */ + setTextInBufferRange(range: TextBuffer.RangeLike|[TextBuffer.PointLike, + TextBuffer.PointLike]|[TextBuffer.PointLike, [number, number]]|[[number, number], + TextBuffer.PointLike]|[[number, number], [number, number]], text: string, + options?: { normalizeLineEndings?: boolean, undo?: "skip" }): void; + + /* For each selection, replace the selected text with the given text. */ + insertText(text: string, options?: { select?: boolean, autoIndent?: boolean, + autoIndentNewline?: boolean, autoDecreaseIndent?: boolean, + normalizeLineEndings?: boolean, undo?: "skip" }): TextBuffer.Range|boolean; + + /** For each selection, replace the selected text with a newline. */ + insertNewline(): void; + + /** For each selection, if the selection is empty, delete the character following + * the cursor. Otherwise delete the selected text. + */ + delete(): void; + + /** For each selection, if the selection is empty, delete the character preceding + * the cursor. Otherwise delete the selected text. + */ + backspace(): void; + + /** Mutate the text of all the selections in a single transaction. + * All the changes made inside the given function can be reverted with a single + * call to ::undo. + */ + mutateSelectedText(fn: (selection: Selection, index: number) => void): void; + + /** For each selection, transpose the selected text. + * If the selection is empty, the characters preceding and following the cursor + * are swapped. Otherwise, the selected characters are reversed. + */ + transpose(): void; + + /** Convert the selected text to upper case. + * For each selection, if the selection is empty, converts the containing word + * to upper case. Otherwise convert the selected text to upper case. + */ + upperCase(): void; + + /** Convert the selected text to lower case. + * For each selection, if the selection is empty, converts the containing word + * to upper case. Otherwise convert the selected text to upper case. + */ + lowerCase(): void; + + /** Toggle line comments for rows intersecting selections. + * If the current grammar doesn't support comments, does nothing. + */ + toggleLineCommentsInSelection(): void; + + /** For each cursor, insert a newline at beginning the following line. */ + insertNewlineBelow(): void; + + /** For each cursor, insert a newline at the end of the preceding line. */ + insertNewlineAbove(): void; + + /** For each selection, if the selection is empty, delete all characters of the + * containing word that precede the cursor. Otherwise delete the selected text. + */ + deleteToBeginningOfWord(): void; + + /** Similar to ::deleteToBeginningOfWord, but deletes only back to the previous + * word boundary. + */ + deleteToPreviousWordBoundary(): void; + + /** Similar to ::deleteToEndOfWord, but deletes only up to the next word boundary. */ + deleteToNextWordBoundary(): void; + + /** For each selection, if the selection is empty, delete all characters of the + * containing subword following the cursor. Otherwise delete the selected text. + */ + deleteToBeginningOfSubword(): void; + + /** For each selection, if the selection is empty, delete all characters of the + * containing subword following the cursor. Otherwise delete the selected text. + */ + deleteToEndOfSubword(): void; + + /** For each selection, if the selection is empty, delete all characters of the + * containing line that precede the cursor. Otherwise delete the selected text. + */ + deleteToBeginningOfLine(): void; + + /** For each selection, if the selection is not empty, deletes the selection + * otherwise, deletes all characters of the containing line following the cursor. + * If the cursor is already at the end of the line, deletes the following newline. + */ + deleteToEndOfLine(): void; + + /** For each selection, if the selection is empty, delete all characters of the + * containing word following the cursor. Otherwise delete the selected text. + */ + deleteToEndOfWord(): void; + + /** Delete all lines intersecting selections. */ + deleteLine(): void; + + // History + /** Undo the last change. */ + undo(): void; + + /** Redo the last change. */ + redo(): void; + + /** Batch multiple operations as a single undo/redo step. + * Any group of operations that are logically grouped from the perspective of undoing + * and redoing should be performed in a transaction. If you want to abort the transaction, + * call ::abortTransaction to terminate the function's execution and revert any changes + * performed up to the abortion. + */ + transact(fn: () => void): void; + /** Batch multiple operations as a single undo/redo step. + * Any group of operations that are logically grouped from the perspective of undoing + * and redoing should be performed in a transaction. If you want to abort the transaction, + * call ::abortTransaction to terminate the function's execution and revert any changes + * performed up to the abortion. + */ + transact(groupingInterval: number, fn: () => void): void; + + /** Abort an open transaction, undoing any operations performed so far within the transaction. */ + abortTransaction(): void; + + /** Create a pointer to the current state of the buffer for use with ::revertToCheckpoint + * and ::groupChangesSinceCheckpoint. + */ + createCheckpoint(): number; + + /** Revert the buffer to the state it was in when the given checkpoint was created. + * The redo stack will be empty following this operation, so changes since the checkpoint + * will be lost. If the given checkpoint is no longer present in the undo history, no + * changes will be made to the buffer and this method will return false. + */ + revertToCheckpoint(checkpoint: number): boolean; + + /** Group all changes since the given checkpoint into a single transaction for purposes + * of undo/redo. + * If the given checkpoint is no longer present in the undo history, no grouping will be + * performed and this method will return false. + */ + groupChangesSinceCheckpoint(checkpoint: number): boolean; + + // TextEditor Coordinates + /** Convert a position in buffer-coordinates to screen-coordinates. */ + screenPositionForBufferPosition(bufferPosition: TextBuffer.PointLike|[number, number], + options?: { clipDirection?: "backward"|"forward"|"closest"}): TextBuffer.Point; + + /** Convert a position in screen-coordinates to buffer-coordinates. */ + bufferPositionForScreenPosition(bufferPosition: TextBuffer.PointLike|[number, number], + options?: { clipDirection?: "backward"|"forward"|"closest"}): TextBuffer.Point; + + /** Convert a range in buffer-coordinates to screen-coordinates. */ + screenRangeForBufferRange(bufferRange: TextBuffer.RangeLike|[TextBuffer.PointLike, + TextBuffer.PointLike]|[TextBuffer.PointLike, [number, number]]|[[number, number], + TextBuffer.PointLike]|[[number, number], [number, number]]): TextBuffer.Range; + + /** Convert a range in screen-coordinates to buffer-coordinates. */ + bufferRangeForScreenRange(screenRange: TextBuffer.RangeLike|[TextBuffer.PointLike, + TextBuffer.PointLike]|[TextBuffer.PointLike, [number, number]]|[[number, number], + TextBuffer.PointLike]|[[number, number], [number, number]]): TextBuffer.Range; + + /** Clip the given Point to a valid position in the buffer. */ + clipBufferPosition(bufferPosition: TextBuffer.PointLike|[number, number]): + TextBuffer.Point; + + /** Clip the start and end of the given range to valid positions in the buffer. + * See ::clipBufferPosition for more information. + */ + clipBufferRange(range: TextBuffer.RangeLike|[TextBuffer.PointLike, TextBuffer.PointLike]| + [TextBuffer.PointLike, [number, number]]|[[number, number], TextBuffer.PointLike]| + [[number, number], [number, number]]): TextBuffer.Range; + + /** Clip the given Point to a valid position on screen. */ + clipScreenPosition(screenPosition: TextBuffer.PointLike|[number, number], + options?: { clipDirection?: "backward"|"forward"|"closest"}): TextBuffer.Point; + + /** Clip the start and end of the given range to valid positions on screen. + * See ::clipScreenPosition for more information. + */ + clipScreenRange(range: TextBuffer.RangeLike|[TextBuffer.PointLike, TextBuffer.PointLike]| + [TextBuffer.PointLike, [number, number]]|[[number, number], TextBuffer.PointLike]| + [[number, number], [number, number]], options?: { clipDirection?: + "backward"|"forward"|"closest"}): TextBuffer.Range; + + // Decorations + /** Add a decoration that tracks a DisplayMarker. When the marker moves, is + * invalidated, or is destroyed, the decoration will be updated to reflect + * the marker's state. + */ + decorateMarker(marker: TextBuffer.DisplayMarker, decorationParams: + Structures.DecorationProps): Decoration; + + /** Add a decoration to every marker in the given marker layer. Can be used to + * decorate a large number of markers without having to create and manage many + * individual decorations. + */ + decorateMarkerLayer(markerLayer: TextBuffer.MarkerLayer|TextBuffer.DisplayMarkerLayer, + decorationParams: Structures.DecorationLayerProps): LayerDecoration; + + /** Get all decorations. */ + getDecorations(propertyFilter?: Structures.DecorationProps): Decoration[]; + + /** Get all decorations of type 'line'. */ + getLineDecorations(propertyFilter?: Structures.DecorationProps): Decoration[]; + + /** Get all decorations of type 'line-number'. */ + getLineNumberDecorations(propertyFilter?: Structures.DecorationProps): Decoration[]; + + /** Get all decorations of type 'highlight'. */ + getHighlightDecorations(propertyFilter?: Structures.DecorationProps): Decoration[]; + + /** Get all decorations of type 'overlay'. */ + getOverlayDecorations(propertyFilter?: Structures.DecorationProps): Decoration[]; + + // Markers + /** Create a marker on the default marker layer with the given range in buffer coordinates. + * This marker will maintain its logical location as the buffer is changed, so if you mark + * a particular word, the marker will remain over that word even if the word's location + * in the buffer changes. + */ + markBufferRange(range: TextBuffer.RangeLike|[TextBuffer.PointLike, TextBuffer.PointLike]| + [TextBuffer.PointLike, [number, number]]|[[number, number], TextBuffer.PointLike]| + [[number, number], [number, number]], properties?: { maintainHistory?: boolean, + reversed?: boolean, invalidate?: "never"|"surround"|"overlap"|"inside"|"touch" }): + TextBuffer.DisplayMarker; + + /** Create a marker on the default marker layer with the given range in screen coordinates. + * This marker will maintain its logical location as the buffer is changed, so if you mark + * a particular word, the marker will remain over that word even if the word's location in + * the buffer changes. + */ + markScreenRange(range: TextBuffer.RangeLike|[TextBuffer.PointLike, TextBuffer.PointLike]| + [TextBuffer.PointLike, [number, number]]|[[number, number], TextBuffer.PointLike]| + [[number, number], [number, number]], properties?: { maintainHistory?: boolean, + reversed?: boolean, invalidate?: "never"|"surround"|"overlap"|"inside"|"touch" }): + TextBuffer.DisplayMarker; + + /** Create a marker on the default marker layer with the given buffer position and no tail. + * To group multiple markers together in their own private layer, see ::addMarkerLayer. + */ + markBufferPosition(bufferPosition: TextBuffer.PointLike|[number, number], options?: + { invalidate?: "never"|"surround"|"overlap"|"inside"|"touch" }): + TextBuffer.DisplayMarker; + + /** Create a marker on the default marker layer with the given screen position and no tail. + * To group multiple markers together in their own private layer, see ::addMarkerLayer. + */ + markScreenPosition(screenPosition: TextBuffer.PointLike|[number, number], options?: + { invalidate?: "never"|"surround"|"overlap"|"inside"|"touch", clipDirection?: + "backward"|"forward"|"closest" }): TextBuffer.DisplayMarker; + + /** Find all DisplayMarkers on the default marker layer that match the given properties. + * + * This method finds markers based on the given properties. Markers can be associated + * with custom properties that will be compared with basic equality. In addition, there + * are several special properties that will be compared with the range of the markers + * rather than their properties. + */ + findMarkers(properties: TextBuffer.Options.FindDisplayMarker): TextBuffer.DisplayMarker[]; + + /** Create a marker layer to group related markers. */ + addMarkerLayer(options?: { + maintainHistory?: boolean, + persistent?: boolean, + }): TextBuffer.DisplayMarkerLayer; + + /** Get a DisplayMarkerLayer by id. */ + getMarkerLayer(id: number): TextBuffer.DisplayMarkerLayer|undefined; + + /** Get the default DisplayMarkerLayer. + * All marker APIs not tied to an explicit layer interact with this default layer. + */ + getDefaultMarkerLayer(): TextBuffer.DisplayMarkerLayer; + + /** Get the DisplayMarker on the default layer for the given marker id. */ + getMarker(id: number): TextBuffer.DisplayMarker; + + /** Get all DisplayMarkers on the default marker layer. Consider using ::findMarkers. */ + getMarkers(): TextBuffer.DisplayMarker[]; + + /** Get the number of markers in the default marker layer. */ + getMarkerCount(): number; + + // Cursors + /** Get the position of the most recently added cursor in buffer coordinates. */ + getCursorBufferPosition(): TextBuffer.Point; + + /** Get the position of all the cursor positions in buffer coordinates. */ + getCursorBufferPositions(): TextBuffer.Point[]; + + /** Move the cursor to the given position in buffer coordinates. + * If there are multiple cursors, they will be consolidated to a single cursor. + */ + setCursorBufferPosition(position: TextBuffer.PointLike|[number, number], options?: + { autoscroll?: boolean }): void; + + /** Get a Cursor at given screen coordinates Point. */ + getCursorAtScreenPosition(position: TextBuffer.PointLike|[number, number]): + Cursor|undefined; + + /** Get the position of the most recently added cursor in screen coordinates. */ + getCursorScreenPosition(): TextBuffer.Point; + + /** Get the position of all the cursor positions in screen coordinates. */ + getCursorScreenPositions(): TextBuffer.Point[]; + + /** Move the cursor to the given position in screen coordinates. + * If there are multiple cursors, they will be consolidated to a single cursor. + */ + setCursorScreenPosition(position: TextBuffer.PointLike|[number, number], + options?: { autoscroll?: boolean }): void; + + /** Add a cursor at the given position in buffer coordinates. */ + addCursorAtBufferPosition(bufferPosition: TextBuffer.PointLike|[number, number]): Cursor; + + /** Add a cursor at the position in screen coordinates. */ + addCursorAtScreenPosition(screenPosition: TextBuffer.PointLike|[number, number]): Cursor; + + /** Returns a boolean indicating whether or not there are multiple cursors. */ + hasMultipleCursors(): boolean; + + /** Move every cursor up one row in screen coordinates. */ + moveUp(lineCount?: number): void; + + /** Move every cursor down one row in screen coordinates. */ + moveDown(lineCount?: number): void; + + /** Move every cursor left one column. */ + moveLeft(columnCount?: number): void; + + /** Move every cursor right one column. */ + moveRight(columnCount?: number): void; + + /** Move every cursor to the beginning of its line in buffer coordinates. */ + moveToBeginningOfLine(): void; + + /** Move every cursor to the beginning of its line in screen coordinates. */ + moveToBeginningOfScreenLine(): void; + + /** Move every cursor to the first non-whitespace character of its line. */ + moveToFirstCharacterOfLine(): void; + + /** Move every cursor to the end of its line in buffer coordinates. */ + moveToEndOfLine(): void; + + /** Move every cursor to the end of its line in screen coordinates. */ + moveToEndOfScreenLine(): void; + + /** Move every cursor to the beginning of its surrounding word. */ + moveToBeginningOfWord(): void; + + /** Move every cursor to the end of its surrounding word. */ + moveToEndOfWord(): void; + + /** Move every cursor to the top of the buffer. + * If there are multiple cursors, they will be merged into a single cursor. + */ + moveToTop(): void; + + /** Move every cursor to the bottom of the buffer. + * If there are multiple cursors, they will be merged into a single cursor. + */ + moveToBottom(): void; + + /** Move every cursor to the beginning of the next word. */ + moveToBeginningOfNextWord(): void; + + /** Move every cursor to the previous word boundary. */ + moveToPreviousWordBoundary(): void; + + /** Move every cursor to the next word boundary. */ + moveToNextWordBoundary(): void; + + /** Move every cursor to the previous subword boundary. */ + moveToPreviousSubwordBoundary(): void; + + /** Move every cursor to the next subword boundary. */ + moveToNextSubwordBoundary(): void; + + /** Move every cursor to the beginning of the next paragraph. */ + moveToBeginningOfNextParagraph(): void; + + /** Move every cursor to the beginning of the previous paragraph. */ + moveToBeginningOfPreviousParagraph(): void; + + /** Returns the most recently added Cursor. */ + getLastCursor(): Cursor; + + /** Returns the word surrounding the most recently added cursor. */ + getWordUnderCursor(options?: { + wordRegex?: RegExp, + includeNonWordCharacters?: boolean, + allowPrevious?: boolean, + }): string; + + /** Get an Array of all Cursors. */ + getCursors(): Cursor[]; + + /** Get all Cursorss, ordered by their position in the buffer instead of the + * order in which they were added. + */ + getCursorsOrderedByBufferPosition(): Cursor[]; + + // Selections + /** Get the selected text of the most recently added selection. */ + getSelectedText(): string; + + /** Get the Range of the most recently added selection in buffer coordinates. */ + getSelectedBufferRange(): TextBuffer.Range; + + /** Get the Ranges of all selections in buffer coordinates. + * The ranges are sorted by when the selections were added. Most recent at the end. + */ + getSelectedBufferRanges(): TextBuffer.Range[]; + + /** Set the selected range in buffer coordinates. If there are multiple selections, + * they are reduced to a single selection with the given range. + */ + setSelectedBufferRange(bufferRange: TextBuffer.RangeLike|[TextBuffer.PointLike, + TextBuffer.PointLike]|[TextBuffer.PointLike, [number, number]]|[[number, number], + TextBuffer.PointLike]|[[number, number], [number, number]], options?: + { reversed?: boolean, preserveFolds?: boolean}): void; + + /** Set the selected ranges in buffer coordinates. If there are multiple selections, + * they are replaced by new selections with the given ranges. + */ + setSelectedBufferRanges(bufferRanges: ReadonlyArray, + options?: { reversed?: boolean, preserveFolds?: boolean}): void; + + /** Get the Range of the most recently added selection in screen coordinates. */ + getSelectedScreenRange(): TextBuffer.Range; + + /** Get the Ranges of all selections in screen coordinates. + * The ranges are sorted by when the selections were added. Most recent at the end. + */ + getSelectedScreenRanges(): TextBuffer.Range[]; + + /** Set the selected range in screen coordinates. If there are multiple selections, + * they are reduced to a single selection with the given range. + */ + setSelectedScreenRange(screenRange: TextBuffer.RangeLike|[TextBuffer.PointLike, + TextBuffer.PointLike]|[TextBuffer.PointLike, [number, number]]|[[number, number], + TextBuffer.PointLike]|[[number, number], [number, number]], options?: + { reversed?: boolean }): void; + + /** Set the selected ranges in screen coordinates. If there are multiple selections, + * they are replaced by new selections with the given ranges. + */ + setSelectedScreenRanges(screenRanges: ReadonlyArray, options?: { reversed?: boolean }): void; + + /** Add a selection for the given range in buffer coordinates. */ + addSelectionForBufferRange(bufferRange: TextBuffer.RangeLike|[TextBuffer.PointLike, + TextBuffer.PointLike]|[TextBuffer.PointLike, [number, number]]|[[number, number], + TextBuffer.PointLike]|[[number, number], [number, number]], options?: + { reversed?: boolean, preserveFolds?: boolean }): Selection; + + /** Add a selection for the given range in screen coordinates. */ + addSelectionForScreenRange(screenRange: TextBuffer.RangeLike|[TextBuffer.PointLike, + TextBuffer.PointLike]|[TextBuffer.PointLike, [number, number]]|[[number, number], + TextBuffer.PointLike]|[[number, number], [number, number]], options?: + { reversed?: boolean, preserveFolds?: boolean }): Selection; + + /** Select from the current cursor position to the given position in buffer coordinates. + * This method may merge selections that end up intersecting. + */ + selectToBufferPosition(position: TextBuffer.PointLike|[number, number]): void; + + /** Select from the current cursor position to the given position in screen coordinates. + * This method may merge selections that end up intersecting. + */ + selectToScreenPosition(position: TextBuffer.PointLike|[number, number]): void; + + /** Move the cursor of each selection one character upward while preserving the + * selection's tail position. + * This method may merge selections that end up intersecting. + */ + selectUp(rowCount?: number): void; + + /** Move the cursor of each selection one character downward while preserving + * the selection's tail position. + * This method may merge selections that end up intersecting. + */ + selectDown(rowCount?: number): void; + + /** Move the cursor of each selection one character leftward while preserving + * the selection's tail position. + * This method may merge selections that end up intersecting. + */ + selectLeft(columnCount?: number): void; + + /** Move the cursor of each selection one character rightward while preserving + * the selection's tail position. + * This method may merge selections that end up intersecting. + */ + selectRight(columnCount?: number): void; + + /** Select from the top of the buffer to the end of the last selection in the buffer. + * This method merges multiple selections into a single selection. + */ + selectToTop(): void; + + /** Selects from the top of the first selection in the buffer to the end of the buffer. + * This method merges multiple selections into a single selection. + */ + selectToBottom(): void; + + /** Select all text in the buffer. + * This method merges multiple selections into a single selection. + */ + selectAll(): void; + + /** Move the cursor of each selection to the beginning of its line while preserving + * the selection's tail position. + * This method may merge selections that end up intersecting. + */ + selectToBeginningOfLine(): void; + + /** Move the cursor of each selection to the first non-whitespace character of its + * line while preserving the selection's tail position. If the cursor is already + * on the first character of the line, move it to the beginning of the line. + * This method may merge selections that end up intersecting. + */ + selectToFirstCharacterOfLine(): void; + + /** Move the cursor of each selection to the end of its line while preserving the + * selection's tail position. + * This method may merge selections that end up intersecting. + */ + selectToEndOfLine(): void; + + /** Expand selections to the beginning of their containing word. + * Operates on all selections. Moves the cursor to the beginning of the containing + * word while preserving the selection's tail position. + */ + selectToBeginningOfWord(): void; + + /** Expand selections to the end of their containing word. + * Operates on all selections. Moves the cursor to the end of the containing word + * while preserving the selection's tail position. + */ + selectToEndOfWord(): void; + + /** For each cursor, select the containing line. + * This method merges selections on successive lines. + */ + selectLinesContainingCursors(): void; + + /** Select the word surrounding each cursor. */ + selectWordsContainingCursors(): void; + + /** For each selection, move its cursor to the preceding subword boundary while + * maintaining the selection's tail position. + * This method may merge selections that end up intersecting. + */ + selectToPreviousSubwordBoundary(): void; + + /** For each selection, move its cursor to the next subword boundary while maintaining + * the selection's tail position. + * This method may merge selections that end up intersecting. + */ + selectToNextSubwordBoundary(): void; + + /** For each selection, move its cursor to the preceding word boundary while + * maintaining the selection's tail position. + * This method may merge selections that end up intersecting. + */ + selectToPreviousWordBoundary(): void; + + /** For each selection, move its cursor to the next word boundary while maintaining + * the selection's tail position. + * This method may merge selections that end up intersecting. + */ + selectToNextWordBoundary(): void; + + /** Expand selections to the beginning of the next word. + * Operates on all selections. Moves the cursor to the beginning of the next word + * while preserving the selection's tail position. + */ + selectToBeginningOfNextWord(): void; + + /** Expand selections to the beginning of the next paragraph. + * Operates on all selections. Moves the cursor to the beginning of the next + * paragraph while preserving the selection's tail position. + */ + selectToBeginningOfNextParagraph(): void; + + /** Expand selections to the beginning of the next paragraph. + * Operates on all selections. Moves the cursor to the beginning of the next + * paragraph while preserving the selection's tail position. + */ + selectToBeginningOfPreviousParagraph(): void; + + /** Select the range of the given marker if it is valid. */ + selectMarker(marker: TextBuffer.DisplayMarker): TextBuffer.Range|undefined; + + /** Get the most recently added Selection. */ + getLastSelection(): Selection; + + /** Get current Selections. */ + getSelections(): Selection[]; + + /** Get all Selections, ordered by their position in the buffer instead of the + * order in which they were added. + */ + getSelectionsOrderedByBufferPosition(): Selection[]; + + // NOTE: this calls into Selection::intersectsBufferRange, which itself calls + // into Range::intersectsWith. Range::intersectsWith is one of the few functions + // which does NOT take a range-compatible array. + /** Determine if a given range in buffer coordinates intersects a selection. */ + selectionIntersectsBufferRange(bufferRange: TextBuffer.RangeLike): boolean; + + // Searching and Replacing + /** Scan regular expression matches in the entire buffer, calling the given + * iterator function on each match. + * + * ::scan functions as the replace method as well via the replace. + */ + scan(regex: RegExp, options: TextBuffer.Options.ScanContext, iterator: (params: + TextBuffer.Structures.ContextualBufferScanResult) => void): void; + /** Scan regular expression matches in the entire buffer, calling the given + * iterator function on each match. + * + * ::scan functions as the replace method as well via the replace. + */ + scan(regex: RegExp, iterator: (params: TextBuffer.Structures.BufferScanResult) => void): + void; + + /** Scan regular expression matches in a given range, calling the given iterator. + * function on each match. + */ + scanInBufferRange(regex: RegExp, range: TextBuffer.RangeLike|[TextBuffer.PointLike, + TextBuffer.PointLike]|[TextBuffer.PointLike, [number, number]]|[[number, number], + TextBuffer.PointLike]|[[number, number], [number, number]], iterator: (params: + TextBuffer.Structures.BufferScanResult) => void): void; + + /** Scan regular expression matches in a given range in reverse order, calling the + * given iterator function on each match. + */ + backwardsScanInBufferRange(regex: RegExp, range: TextBuffer.RangeLike|[TextBuffer.PointLike, + TextBuffer.PointLike]|[TextBuffer.PointLike, [number, number]]|[[number, number], + TextBuffer.PointLike]|[[number, number], [number, number]], iterator: (params: + TextBuffer.Structures.BufferScanResult) => void): void; + + // Tab Behavior + /** Returns a boolean indicating whether softTabs are enabled for this editor. */ + getSoftTabs(): boolean; + + /** Enable or disable soft tabs for this editor. */ + setSoftTabs(softTabs: boolean): void; + + /** Toggle soft tabs for this editor. */ + toggleSoftTabs(): boolean; + + /** Get the on-screen length of tab characters. */ + getTabLength(): number; + + /** Set the on-screen length of tab characters. Setting this to a number will + * override the editor.tabLength setting. + */ + setTabLength(tabLength: number): void; + + /** Determine if the buffer uses hard or soft tabs. */ + usesSoftTabs(): boolean|undefined; + + /** Get the text representing a single level of indent. + * If soft tabs are enabled, the text is composed of N spaces, where N is the + * tab length. Otherwise the text is a tab character (\t). + */ + getTabText(): string; + + // Soft Wrap Behavior + /** Determine whether lines in this editor are soft-wrapped. */ + isSoftWrapped(): boolean; + + /** Enable or disable soft wrapping for this editor. */ + setSoftWrapped(softWrapped: boolean): boolean; + + /** Toggle soft wrapping for this editor. */ + toggleSoftWrapped(): boolean; + + /** Gets the column at which column will soft wrap. */ + getSoftWrapColumn(): number; + + // Indentation + /** Get the indentation level of the given buffer row. + * Determines how deeply the given row is indented based on the soft tabs and tab + * length settings of this editor. Note that if soft tabs are enabled and the tab + * length is 2, a row with 4 leading spaces would have an indentation level of 2. + */ + indentationForBufferRow(bufferRow: number): number; + + /** Set the indentation level for the given buffer row. + * Inserts or removes hard tabs or spaces based on the soft tabs and tab length settings + * of this editor in order to bring it to the given indentation level. Note that if soft + * tabs are enabled and the tab length is 2, a row with 4 leading spaces would have an + * indentation level of 2. + */ + setIndentationForBufferRow(bufferRow: number, newLevel: number, options?: + { preserveLeadingWhitespace?: boolean }): void; + + /** Indent rows intersecting selections by one level. */ + indentSelectedRows(): void; + + /** Outdent rows intersecting selections by one level. */ + outdentSelectedRows(): void; + + /** Get the indentation level of the given line of text. + * Determines how deeply the given line is indented based on the soft tabs and tab length + * settings of this editor. Note that if soft tabs are enabled and the tab length is 2, + * a row with 4 leading spaces would have an indentation level of 2. + */ + indentLevelForLine(line: string): number; + + /** Indent rows intersecting selections based on the grammar's suggested indent level. */ + autoIndentSelectedRows(): void; + + // Grammars + /** Get the current Grammar of this editor. */ + getGrammar(): FirstMate.Grammar; + + /** Set the current Grammar of this editor. + * Assigning a grammar will cause the editor to re-tokenize based on the new grammar. + */ + setGrammar(grammar: FirstMate.Grammar): void; + + // Managing Syntax Scopes + /** Returns a ScopeDescriptor that includes this editor's language. + * e.g. [".source.ruby"], or [".source.coffee"]. + */ + getRootScopeDescriptor(): ScopeDescriptor; + + /** Get the syntactic scopeDescriptor for the given position in buffer coordinates. */ + scopeDescriptorForBufferPosition(bufferPosition: TextBuffer.PointLike|[number, number]): + ScopeDescriptor; + + /** Get the range in buffer coordinates of all tokens surrounding the cursor + * that match the given scope selector. + */ + bufferRangeForScopeAtCursor(scopeSelector: string): TextBuffer.Range; + + /** Determine if the given row is entirely a comment. */ + isBufferRowCommented(bufferRow: number): boolean; + + // Clipboard Operations + /** For each selection, copy the selected text. */ + copySelectedText(): void; + + /** For each selection, cut the selected text. */ + cutSelectedText(): void; + + /** For each selection, replace the selected text with the contents of the clipboard. + * If the clipboard contains the same number of selections as the current editor, + * each selection will be replaced with the content of the corresponding clipboard + * selection text. + */ + pasteText(options?: Options.TextInsertion): void; + + /** For each selection, if the selection is empty, cut all characters of the + * containing screen line following the cursor. Otherwise cut the selected text. + */ + cutToEndOfLine(): void; + + /** For each selection, if the selection is empty, cut all characters of the + * containing buffer line following the cursor. Otherwise cut the selected text. + */ + cutToEndOfBufferLine(): void; + + // Folds + /** Fold the most recent cursor's row based on its indentation level. + * The fold will extend from the nearest preceding line with a lower indentation + * level up to the nearest following row with a lower indentation level. + */ + foldCurrentRow(): void; + + /** Unfold the most recent cursor's row by one level. */ + unfoldCurrentRow(): void; + + /** Fold the given row in buffer coordinates based on its indentation level. + * If the given row is foldable, the fold will begin there. Otherwise, it will + * begin at the first foldable row preceding the given row. + */ + foldBufferRow(bufferRow: number): void; + + /** Unfold all folds containing the given row in buffer coordinates. */ + unfoldBufferRow(bufferRow: number): void; + + /** For each selection, fold the rows it intersects. */ + foldSelectedLines(): void; + + /** Fold all foldable lines. */ + foldAll(): void; + + /** Unfold all existing folds. */ + unfoldAll(): void; + + /** Fold all foldable lines at the given indent level. */ + foldAllAtIndentLevel(level: number): void; + + /** Determine whether the given row in buffer coordinates is foldable. + * A foldable row is a row that starts a row range that can be folded. + */ + isFoldableAtBufferRow(bufferRow: number): boolean; + + /** Determine whether the given row in screen coordinates is foldable. + * A foldable row is a row that starts a row range that can be folded. + */ + isFoldableAtScreenRow(bufferRow: number): boolean; + + /** Fold the given buffer row if it isn't currently folded, and unfold it otherwise. */ + toggleFoldAtBufferRow(bufferRow: number): void; + + /** Determine whether the most recently added cursor's row is folded. */ + isFoldedAtCursorRow(): boolean; + + /** Determine whether the given row in buffer coordinates is folded. */ + isFoldedAtBufferRow(bufferRow: number): boolean; + + /** Determine whether the given row in screen coordinates is folded. */ + isFoldedAtScreenRow(screenRow: number): boolean; + + // Gutters + /** Add a custom Gutter. */ + addGutter(options: { + name: string, + priority?: number, + visible?: boolean, + }): Gutter; + + /** Get this editor's gutters. */ + getGutters(): Gutter[]; + + /** Get the gutter with the given name. */ + gutterWithName(name: string): Gutter|null; + + // Scrolling the TextEditor + /** Scroll the editor to reveal the most recently added cursor if it is off-screen. */ + scrollToCursorPosition(options?: { center?: boolean }): void; + + /** Scrolls the editor to the given buffer position. */ + scrollToBufferPosition(bufferPosition: TextBuffer.PointLike|[number, number], + options?: { center?: boolean }): void; + + /** Scrolls the editor to the given screen position. */ + scrollToScreenPosition(screenPosition: TextBuffer.PointLike|[number, number], + options?: { center?: boolean }): void; + + // TextEditor Rendering + /** Retrieves the rendered line height in pixels. */ + getLineHeightInPixels(): number; + + /** Retrieves the greyed out placeholder of a mini editor. */ + getPlaceholderText(): string; + + /** Set the greyed out placeholder of a mini editor. Placeholder text will be + * displayed when the editor has no content. + */ + setPlaceholderText(placeholderText: string): void; + } + + /** Experimental: This global registry tracks registered TextEditors. */ + interface TextEditorRegistry { + // Managing Text Editors + /** Remove all editors from the registry. */ + clear(): void; + + /** Register a TextEditor. */ + add(editor: TextEditor): EventKit.Disposable; + + /** Remove the given TextEditor from the registry. */ + remove(editor: TextEditor): boolean; + + /** Keep a TextEditor's configuration in sync with Atom's settings. */ + maintainConfig(editor: TextEditor): EventKit.Disposable; + + /** Set a TextEditor's grammar based on its path and content, and continue + * to update its grammar as gramamrs are added or updated, or the editor's + * file path changes. + */ + maintainGrammar(editor: TextEditor): EventKit.Disposable; + + /** Force a TextEditor to use a different grammar than the one that would + * otherwise be selected for it. + */ + setGrammarOverride(editor: TextEditor, scopeName: string): void; + + /** Retrieve the grammar scope name that has been set as a grammar override + * for the given TextEditor. + */ + getGrammarOverride(editor: TextEditor): string|null; + + /** Remove any grammar override that has been set for the given {TextEditor}. */ + clearGrammarOverride(editor: TextEditor): void; + + // Event Subscription + /** Invoke the given callback with all the current and future registered TextEditors. */ + observe(callback: (editor: TextEditor) => void): EventKit.Disposable; + } + + /** Handles loading and activating available themes. */ + interface ThemeManager { + // Event Subscription + /** Invoke callback when style sheet changes associated with updating the + * list of active themes have completed. + */ + onDidChangeActiveThemes(callback: () => void): EventKit.Disposable; + + // Accessing Loaded Themes + /** Returns an Array of strings of all the loaded theme names. */ + getLoadedThemeNames(): string[]|undefined; + + /** Returns an Array of all the loaded themes. */ + getLoadedThemes(): Package[]|undefined; + + // Accessing Active Themes + /** Returns an Array of strings all the active theme names. */ + getActiveThemeNames(): string[]|undefined; + + /** Returns an Array of all the active themes. */ + getActiveThemes(): Package[]|undefined; + + // Managing Enabled Themes + /** Get the enabled theme names from the config. */ + getEnabledThemeNames(): string[]; + } + + /** This tooltip class is derived from Bootstrap 3, but modified to not require + * jQuery, which is an expensive dependency we want to eliminate. + */ + interface Tooltip { + options: Options.Tooltip; + enabled: boolean; + timeout: number; + hoverState: "in"|"out"|null; + element: JQuery|HTMLElement; + + getTitle(): string; + getTooltipElement(): HTMLElement; + getArrowElement(): HTMLElement; + enable(): void; + disable(): void; + toggleEnabled(): void; + toggle(): void; + recalculatePosition(): void; + } + + /** Associates tooltips with HTML elements or selectors. */ + interface TooltipManager { + /** Add a tooltip to the given element. */ + add(target: JQuery|HTMLElement, options: { + title?: string, + html?: boolean, + item?: HTMLElement|{ element: HTMLElement }, + class?: string, + placement?: "top"|"bottom"|"left"|"right"|"auto"|(() => string), + trigger?: "click"|"hover"|"focus"|"manual", + delay?: { show: number, hide: number }, + keyBindingCommand?: string, + keyBindingTarget?: HTMLElement + } | { + title?: string|(() => string), + html?: boolean, + item?: HTMLElement|{ element: HTMLElement }, + class?: string, + placement?: "top"|"bottom"|"left"|"right"|"auto"|(() => string), + trigger?: "click"|"hover"|"focus"|"manual", + delay?: { show: number, hide: number }, + }): EventKit.Disposable; + + /** Find the tooltips that have been applied to the given element. */ + findTooltips(target: HTMLElement): Tooltip[]; + } + + /** ViewRegistry handles the association between model and view types in Atom. + * We call this association a View Provider. As in, for a given model, this class + * can provide a view via ::getView, as long as the model/view association was + * registered via ::addViewProvider. + */ + interface ViewRegistry { + /** Add a provider that will be used to construct views in the workspace's view + * layer based on model objects in its model layer. + */ + addViewProvider(createView: (model: object) => HTMLElement|undefined): EventKit.Disposable; + /** Add a provider that will be used to construct views in the workspace's view + * layer based on model objects in its model layer. + */ + addViewProvider(modelConstructor: { new (...args: any[]): T }, createView: + (instance: T) => HTMLElement|undefined): EventKit.Disposable; + + /** Get the view associated with an object in the workspace. */ + getView(obj: object): HTMLElement; + } + + /** Represents the state of the user interface for the entire window. */ + interface Workspace { + // Event Subscription + /** Invoke the given callback with all current and future text editors in + * the workspace. + */ + observeTextEditors(callback: (editor: TextEditor) => void): EventKit.Disposable; + + /** Invoke the given callback with all current and future panes items in the + * workspace. + */ + observePaneItems(callback: (item: object) => void): EventKit.Disposable; + + /** Invoke the given callback when the active pane item changes. */ + onDidChangeActivePaneItem(callback: (item: object) => void): EventKit.Disposable; + + /** Invoke the given callback when the active pane item stops changing. */ + onDidStopChangingActivePaneItem(callback: (item: object) => void): EventKit.Disposable; + + /** Invoke the given callback when a text editor becomes the active text editor and + * when there is no longer an active text editor. + */ + onDidChangeActiveTextEditor(callback: (editor?: TextEditor) => void): EventKit.Disposable; + + /** Invoke the given callback with the current active pane item and with all + * future active pane items in the workspace. + */ + observeActivePaneItem(callback: (item: object) => void): EventKit.Disposable; + + /** Invoke the given callback with the current active text editor (if any), with all + * future active text editors, and when there is no longer an active text editor. + */ + observeActiveTextEditor(callback: (editor?: TextEditor) => void): EventKit.Disposable; + + /** Invoke the given callback whenever an item is opened. Unlike ::onDidAddPaneItem, + * observers will be notified for items that are already present in the workspace + * when they are reopened. + */ + onDidOpen(callback: (event: Events.PaneItemOpened) => void): EventKit.Disposable; + + /** Invoke the given callback when a pane is added to the workspace. */ + onDidAddPane(callback: (event: { pane: Pane }) => void): EventKit.Disposable; + + /** Invoke the given callback before a pane is destroyed in the workspace. */ + onWillDestroyPane(callback: (event: { pane: Pane }) => void): EventKit.Disposable; + + /** Invoke the given callback when a pane is destroyed in the workspace. */ + onDidDestroyPane(callback: (event: { pane: Pane }) => void): EventKit.Disposable; + + /** Invoke the given callback with all current and future panes in the workspace. */ + observePanes(callback: (pane: Pane) => void): EventKit.Disposable; + + /** Invoke the given callback when the active pane changes. */ + onDidChangeActivePane(callback: (pane: Pane) => void): EventKit.Disposable; + + /** Invoke the given callback with the current active pane and when the + * active pane changes. + */ + observeActivePane(callback: (pane: Pane) => void): EventKit.Disposable; + + /** Invoke the given callback when a pane item is added to the workspace. */ + onDidAddPaneItem(callback: (event: Events.PaneItemObserved) => void): + EventKit.Disposable; + + /** Invoke the given callback when a pane item is about to be destroyed, + * before the user is prompted to save it. + */ + onWillDestroyPaneItem(callback: (event: Events.PaneItemObserved) => void): + EventKit.Disposable; + + /** Invoke the given callback when a pane item is destroyed. */ + onDidDestroyPaneItem(callback: (event: Events.PaneItemObserved) => void): + EventKit.Disposable; + + /** Invoke the given callback when a text editor is added to the workspace. */ + onDidAddTextEditor(callback: (event: Events.TextEditorObserved) => void): + EventKit.Disposable; + + // Opening + /** Opens the given URI in Atom asynchronously. If the URI is already open, + * the existing item for that URI will be activated. If no URI is given, or + * no registered opener can open the URI, a new empty TextEditor will be created. + */ + open(uri: string, options?: { + initialLine?: number, + initialColumn?: number, + split?: "left"|"right"|"up"|"down", + activatePane?: boolean, + activateItem?: boolean, + pending?: boolean, + searchAllPanes?: boolean, + location?: "left"|"right"|"bottom"|"center", + }): Promise; + /** Opens the given URI in Atom asynchronously. If the URI is already open, + * the existing item for that URI will be activated. If no URI is given, or + * no registered opener can open the URI, a new empty TextEditor will be created. + */ + open(): Promise; + + /** Search the workspace for items matching the given URI and hide them. + * Returns a boolean indicating whether any items were found (and hidden). + */ + hide(itemOrURI: object|string): boolean; + + /** Search the workspace for items matching the given URI. If any are found, + * hide them. Otherwise, open the URL. + * Returns a Promise that resolves when the item is shown or hidden. + */ + toggle(itemOrURI: object|string): Promise; + + /** Creates a new item that corresponds to the provided URI. + * If no URI is given, or no registered opener can open the URI, a new empty TextEditor + * will be created. + */ + createItemForURI(uri: string): Promise; + + /** Returns a boolean that is true if object is a TextEditor. */ + isTextEditor(object: object): boolean; + + /** Asynchronously reopens the last-closed item's URI if it hasn't already + * been reopened. + */ + reopenItem(): Promise; + + /** Register an opener for a URI. */ + addOpener(opener: (uri: string) => HTMLElement|{ getTitle(): string }|undefined): + EventKit.Disposable; + + /** Create a new text editor. */ + buildTextEditor(params: object): TextEditor; + + // Pane Items + /** Get all pane items in the workspace. */ + getPaneItems(): object[]; + + /** Get the active Pane's active item. */ + getActivePaneItem(): object; + + /** Get all text editors in the workspace. */ + getTextEditors(): TextEditor[]; + + /** Get the workspace center's active item if it is a TextEditor. */ + getActiveTextEditor(): TextEditor|undefined; + + // Panes + /** Get the most recently focused pane container. */ + getActivePaneContainer(): Dock|WorkspaceCenter; + + /** Get all panes in the workspace. */ + getPanes(): Pane[]; + + /** Get the active Pane. */ + getActivePane(): Pane; + + /** Make the next pane active. */ + activateNextPane(): boolean; + + /** Make the previous pane active. */ + activatePreviousPane(): boolean; + + /** Get the first pane container that contains an item with the given URI. */ + paneContainerForURI(uri: string): Dock|WorkspaceCenter|undefined; + + /** Get the first pane container that contains the given item. */ + paneContainerForItem(item: object): Dock|WorkspaceCenter|undefined; + + /** Get the first Pane with an item for the given URI. */ + paneForURI(uri: string): Pane|undefined; + + /** Get the Pane containing the given item. */ + paneForItem(item: object): Pane|undefined; + + // Pane Locations + /** Get the WorkspaceCenter at the center of the editor window. */ + getCenter(): WorkspaceCenter; + + /** Get the Dock to the left of the editor window. */ + getLeftDock(): Dock; + + /** Get the Dock to the right of the editor window. */ + getRightDock(): Dock; + + /** Get the Dock below the editor window. */ + getBottomDock(): Dock; + + /** Returns all Pane containers. */ + getPaneContainers(): [WorkspaceCenter, Dock, Dock, Dock]; + + // Panels + /** Get an Array of all the panel items at the bottom of the editor window. */ + getBottomPanels(): Panel[]; + + /** Adds a panel item to the bottom of the editor window. */ + addBottomPanel(options: { + item: object, + visible?: boolean, + priority?: number, + }): Panel; + + /** Get an Array of all the panel items to the left of the editor window. */ + getLeftPanels(): Panel[]; + + /** Adds a panel item to the left of the editor window. */ + addLeftPanel(options: { + item: object, + visible?: boolean, + priority?: number, + }): Panel; + + /** Get an Array of all the panel items to the right of the editor window. */ + getRightPanels(): Panel[]; + + /** Adds a panel item to the right of the editor window. */ + addRightPanel(options: { + item: object, + visible?: boolean, + priority?: number, + }): Panel; + + /** Get an Array of all the panel items at the top of the editor window. */ + getTopPanels(): Panel[]; + + /** Adds a panel item to the top of the editor window above the tabs. */ + addTopPanel(options: { + item: object, + visible?: boolean, + priority?: number + }): Panel; + + /** Get an Array of all the panel items in the header. */ + getHeaderPanels(): Panel[]; + + /** Adds a panel item to the header. */ + addHeaderPanel(options: { + item: object, + visible?: boolean, + priority?: number, + }): Panel; + + /** Get an Array of all the panel items in the footer. */ + getFooterPanels(): Panel[]; + + /** Adds a panel item to the footer. */ + addFooterPanel(options: { + item: object, + visible?: boolean, + priority?: number, + }): Panel; + + /** Get an Array of all the modal panel items. */ + getModalPanels(): Panel[]; + + /** Adds a panel item as a modal dialog. */ + addModalPanel(options: { + item: object, + visible?: boolean, + priority?: number, + autoFocus?: boolean, + }): Panel; + + /** Returns the Panel associated with the given item or null when the item + * has no panel. + */ + panelForItem(item: object): Panel|null; + + // Searching and Replacing + /** Performs a search across all files in the workspace. */ + scan(regex: RegExp, iterator: (result: Structures.ScandalResult) => void): + Structures.CancellablePromise; + /** Performs a search across all files in the workspace. */ + scan(regex: RegExp, options: Options.WorkspaceScan, iterator: + (result: Structures.ScandalResult) => void): Structures.CancellablePromise; + + /** Performs a replace across all the specified files in the project. */ + replace(regex: RegExp, replacementText: string, filePaths: ReadonlyArray, + iterator: (result: { filePath: string|undefined, replacements: number }) => void): + Promise; + } + + // https://github.com/atom/atom/blob/master/src/workspace-center.js + /** The central container for the editor window capable of holding items. */ + interface WorkspaceCenter { + // Event Subscription + /** Invoke the given callback with all current and future text editors in the + * workspace center. + */ + observeTextEditors(callback: (editor: TextEditor) => void): EventKit.Disposable; + + /** Invoke the given callback with all current and future panes items in the + * workspace center. + */ + observePaneItems(callback: (item: object) => void): EventKit.Disposable; + + /** Invoke the given callback when the active pane item changes. */ + onDidChangeActivePaneItem(callback: (item: object) => void): EventKit.Disposable; + + /** Invoke the given callback when the active pane item stops changing. */ + onDidStopChangingActivePaneItem(callback: (item: object) => void): EventKit.Disposable; + + /** Invoke the given callback with the current active pane item and with all future + * active pane items in the workspace center. + */ + observeActivePaneItem(callback: (item: object) => void): EventKit.Disposable; + + /** Invoke the given callback when a pane is added to the workspace center. */ + onDidAddPane(callback: (event: { pane: Pane }) => void): EventKit.Disposable; + + /** Invoke the given callback before a pane is destroyed in the workspace center. */ + onWillDestroyPane(callback: (event: { pane: Pane }) => void): EventKit.Disposable; + + /** Invoke the given callback when a pane is destroyed in the workspace center. */ + onDidDestroyPane(callback: (event: { pane: Pane }) => void): EventKit.Disposable; + + /** Invoke the given callback with all current and future panes in the workspace center. */ + observePanes(callback: (pane: Pane) => void): EventKit.Disposable; + + /** Invoke the given callback when the active pane changes. */ + onDidChangeActivePane(callback: (pane: Pane) => void): EventKit.Disposable; + + /** Invoke the given callback with the current active pane and when the active pane changes. */ + observeActivePane(callback: (pane: Pane) => void): EventKit.Disposable; + + /** Invoke the given callback when a pane item is added to the workspace center. */ + onDidAddPaneItem(callback: (event: Events.PaneItemObserved) => void): + EventKit.Disposable; + + /** Invoke the given callback when a pane item is about to be destroyed, before the user + * is prompted to save it. + */ + onWillDestroyPaneItem(callback: (event: Events.PaneItemObserved) => void): + EventKit.Disposable; + + /** Invoke the given callback when a pane item is destroyed. */ + onDidDestroyPaneItem(callback: (event: Events.PaneItemObserved) => void): + EventKit.Disposable; + + /** Invoke the given callback when a text editor is added to the workspace center. */ + onDidAddTextEditor(callback: (event: Events.TextEditorObserved) => void): + EventKit.Disposable; + + // Pane Items + /** Get all pane items in the workspace center. */ + getPaneItems(): object[]; + + /** Get the active Pane's active item. */ + getActivePaneItem(): object|undefined; + + /** Get all text editors in the workspace center. */ + getTextEditors(): TextEditor[]; + + /** Get the active item if it is an TextEditor. */ + getActiveTextEditor(): TextEditor|undefined; + + /** Save all pane items. */ + saveAll(): void; + + // Panes + /** Get all panes in the workspace center. */ + getPanes(): Pane[]; + + /** Get the active Pane. */ + getActivePane(): Pane; + + /** Make the next pane active. */ + activateNextPane(): void; + + /** Make the previous pane active. */ + activatePreviousPane(): void; + + /** Retrieve the Pane associated with the given URI. */ + paneForURI(uri: string): Pane|undefined; + + /** Retrieve the Pane associated with the given item. */ + paneForItem(item: object): Pane|undefined; + + /** Destroy (close) the active pane. */ + destroyActivePane(): void; + } + } + + /** An amalgamation of all types used within the public Atom API. */ + namespace Atom { + /** Objects that appear as parameters to callbacks. */ + namespace Events { + // Atom Keymap ========================================================== + type FullKeybindingMatch = AtomKeymap.Events.FullKeybindingMatch; + type PartialKeybindingMatch = AtomKeymap.Events.PartialKeybindingMatch; + type FailedKeybindingMatch = AtomKeymap.Events.FailedKeybindingMatch; + type FailedKeymapFileRead = AtomKeymap.Events.FailedKeymapFileRead; + type KeymapLoaded = AtomKeymap.Events.KeymapLoaded; + type AddedKeystrokeResolver = AtomKeymap.Events.AddedKeystrokeResolver; + + // Path Watcher ========================================================= + type PathWatchErrorThrown = PathWatcher.Events.PathWatchErrorThrown; + type WatchedFilePathChanged = PathWatcher.Events.WatchedFilePathChanged; + + // Text Buffer ========================================================== + type BufferWatchError = TextBuffer.Events.BufferWatchError; + type FileSaved = TextBuffer.Events.FileSaved; + type MarkerChanged = TextBuffer.Events.MarkerChanged; + type BufferChanging = TextBuffer.Events.BufferChanging; + type BufferChanged = TextBuffer.Events.BufferChanged; + type BufferStoppedChanging = TextBuffer.Events.BufferStoppedChanging; + type DisplayMarkerChanged = TextBuffer.Events.DisplayMarkerChanged; + + // Core ================================================================= + type ExceptionThrown = AtomCore.Events.ExceptionThrown; + type PreventableExceptionThrown = AtomCore.Events.PreventableExceptionThrown; + type SelectionChanged = AtomCore.Events.SelectionChanged; + type PaneItemObserved = AtomCore.Events.PaneItemObserved; + type PaneItemOpened = AtomCore.Events.PaneItemOpened; + type EditorChanged = AtomCore.Events.EditorChanged; + type StyleElementObserved = AtomCore.Events.StyleElementObserved; + type TextEditorObserved = AtomCore.Events.TextEditorObserved; + type RepoStatusChanged = AtomCore.Events.RepoStatusChanged; + type PaneListItemShifted = AtomCore.Events.PaneListItemShifted; + type PaneItemMoved = AtomCore.Events.PaneItemMoved; + type CursorPositionChanged = AtomCore.Events.CursorPositionChanged; + type DecorationPropsChanged = AtomCore.Events.DecorationPropsChanged; + type FilesystemChange = AtomCore.Events.FilesystemChange; + } + + /** Objects that appear as parameters to functions. */ + namespace Options { + // Atom Keymap ========================================================== + type BuildKeyEvent = AtomKeymap.Options.BuildKeyEvent; + + // First Mate =========================================================== + type Grammar = FirstMate.Options.Grammar; + + // Text Buffer ========================================================== + type BufferLoad = TextBuffer.Options.BufferLoad; + type CopyMarker = TextBuffer.Options.CopyMarker; + type FindMarker = TextBuffer.Options.FindMarker; + type FindDisplayMarker = TextBuffer.Options.FindDisplayMarker; + type ScanContext = TextBuffer.Options.ScanContext; + + // Core ================================================================= + type TextInsertion = AtomCore.Options.TextInsertion; + type Menu = AtomCore.Options.Menu; + type ContextMenu = AtomCore.Options.ContextMenu; + type SpawnProcess = AtomCore.Options.SpawnProcess; + type Process = AtomCore.Options.Process; + type NodeProcess = AtomCore.Options.NodeProcess; + type Notification = AtomCore.Options.Notification; + type ErrorNotification = AtomCore.Options.ErrorNotification; + type Tooltip = AtomCore.Options.Tooltip; + type WorkspaceScan = AtomCore.Options.WorkspaceScan; + } + + /** Data structures that are used within classes. */ + namespace Structures { + // First Mate =========================================================== + type GrammarToken = FirstMate.Structures.GrammarToken; + type TokenizeLineResult = FirstMate.Structures.TokenizeLineResult; + type GrammarRule = FirstMate.Structures.GrammarRule; + + // Text Buffer ========================================================== + type TextChange = TextBuffer.Structures.TextChange; + type BufferScanResult = TextBuffer.Structures.BufferScanResult; + type ContextualBufferScanResult = TextBuffer.Structures.ContextualBufferScanResult; + + // Core ================================================================= + type SharedDecorationProps = AtomCore.Structures.SharedDecorationProps; + type DecorationProps = AtomCore.Structures.DecorationProps; + type DecorationLayerProps = AtomCore.Structures.DecorationLayerProps; + type Invisibles = AtomCore.Structures.Invisibles; + type CancellablePromise = AtomCore.Structures.CancellablePromise; + type ScandalResult = AtomCore.Structures.ScandalResult; + type WindowLoadSettings = AtomCore.Structures.WindowLoadSettings; + } + + // Atom Keymap ============================================================ + /** This custom subclass of CustomEvent exists to provide the ::abortKeyBinding + * method, as well as versions of the ::stopPropagation methods that record the + * intent to stop propagation so event bubbling can be properly simulated for + * detached elements. + */ + type CommandEvent = AtomKeymap.CommandEvent; + + type KeyBinding = AtomKeymap.KeyBinding; + + /** Allows commands to be associated with keystrokes in a context-sensitive way. + * In Atom, you can access a global instance of this object via `atom.keymaps`. + */ + type KeymapManager = AtomKeymap.KeymapManager; + + // Event Kit ============================================================== + /** An object that aggregates multiple Disposable instances together into a + * single disposable, so they can all be disposed as a group. + */ + type CompositeDisposable = EventKit.CompositeDisposable; + + type DisposableLike = EventKit.DisposableLike; + + /** A handle to a resource that can be disposed. */ + type Disposable = EventKit.Disposable; + + /** Utility class to be used when implementing event-based APIs that allows + * for handlers registered via ::on to be invoked with calls to ::emit. + */ + type Emitter = EventKit.Emitter; + + // First Mate ============================================================= + /** Grammar that tokenizes lines of text. */ + type Grammar = FirstMate.Grammar; + + /** Instance side of GrammarRegistry class. */ + type GrammarRegistry = FirstMate.GrammarRegistry; + + type ScopeSelector = FirstMate.ScopeSelector; + + // Path Watcher =========================================================== + /** Represents a directory on disk that can be watched for changes. */ + type Directory = PathWatcher.Directory; + + /** Represents an individual file that can be watched, read from, and written to. */ + type File = PathWatcher.File; + + // Text Buffer ============================================================ + /** The interface that should be implemented for all "point-compatible" objects. */ + /** Represents a buffer annotation that remains logically stationary even as the + * buffer changes. This is used to represent cursors, folds, snippet targets, + * misspelled words, and anything else that needs to track a logical location + * in the buffer over time. + */ + type DisplayMarker = TextBuffer.DisplayMarker; + + /** Experimental: A container for a related set of markers at the DisplayLayer level. + * Wraps an underlying MarkerLayer on the TextBuffer. + * + * This API is experimental and subject to change on any release. + */ + type DisplayMarkerLayer = TextBuffer.DisplayMarkerLayer; + + /** Represents a buffer annotation that remains logically stationary even as + * the buffer changes. + */ + type Marker = TextBuffer.Marker; + + /** Experimental: A container for a related set of markers. */ + type MarkerLayer = TextBuffer.MarkerLayer; + + /** The interface that should be implemented for all "point-compatible" objects. */ + type PointLike = TextBuffer.PointLike; + + /** Represents a point in a buffer in row/column coordinates. */ + type Point = TextBuffer.Point; + + /** The interface that should be implemented for all "range-compatible" objects. */ + type RangeLike = TextBuffer.RangeLike; + + /** Represents a region in a buffer in row/column coordinates. */ + type Range = TextBuffer.Range; + + /** A mutable text container with undo/redo support and the ability to + * annotate logical regions in the text. + */ + type TextBuffer = TextBuffer.TextBuffer; + + // Atom =================================================================== + /** Atom global for dealing with packages, themes, menus, and the window. + * An instance of this class is always available as the atom global. + */ + type AtomEnvironment = AtomCore.AtomEnvironment; + + /** A wrapper which provides standard error/output line buffering for + * Node's ChildProcess. + */ + type BufferedProcess = AtomCore.BufferedProcess; + + /** Like BufferedProcess, but accepts a Node script as the command to run. + * This is necessary on Windows since it doesn't support shebang #! lines. + */ + type BufferedNodeProcess = AtomCore.BufferedNodeProcess; + + /** Represents the clipboard used for copying and pasting in Atom. */ + type Clipboard = AtomCore.Clipboard; + + /** A simple color class returned from Config::get when the value at the key path is + * of type 'color'. + */ + type Color = AtomCore.Color; + + /** Used to access all of Atom's configuration details. */ + type Config = AtomCore.Config; + + /** Provides a registry for commands that you'd like to appear in the context menu. */ + type ContextMenuManager = AtomCore.ContextMenuManager; + + /** Associates listener functions with commands in a context-sensitive way + * using CSS selectors. + */ + type CommandRegistry = AtomCore.CommandRegistry; + + /** The Cursor class represents the little blinking line identifying where text + * can be inserted. + */ + type Cursor = AtomCore.Cursor; + + /** Represents a decoration that follows a DisplayMarker. A decoration is basically + * a visual representation of a marker. It allows you to add CSS classes to line + * numbers in the gutter, lines, and add selection-line regions around marked ranges + * of text. + */ + type Decoration = AtomCore.Decoration; + + type Deserializer = AtomCore.Deserializer; + + /** Manages the deserializers used for serialized state. */ + type DeserializerManager = AtomCore.DeserializerManager; + + /** A container at the edges of the editor window capable of holding items. */ + type Dock = AtomCore.Dock; + + /** Represents the underlying git operations performed by Atom. */ + type GitRepository = AtomCore.GitRepository; + + /** Represents a gutter within a TextEditor. */ + type Gutter = AtomCore.Gutter; + + /** History manager for remembering which projects have been opened. + * An instance of this class is always available as the atom.history global. + * The project history is used to enable the 'Reopen Project' menu. + */ + type HistoryManager = AtomCore.HistoryManager; + + type HistoryProject = AtomCore.HistoryProject; + + /** Represents a decoration that applies to every marker on a given layer. Created via + * TextEditor::decorateMarkerLayer. + */ + type LayerDecoration = AtomCore.LayerDecoration; + + /** Provides a registry for menu items that you'd like to appear in the application menu. */ + type MenuManager = AtomCore.MenuManager; + + type Model = AtomCore.Model; + + /** A notification to the user containing a message and type. */ + type Notification = AtomCore.Notification; + + /** A notification manager used to create Notifications to be shown to the user. */ + type NotificationManager = AtomCore.NotificationManager; + + /** Loads and activates a package's main module and resources such as stylesheets, + * keymaps, grammar, editor properties, and menus. + */ + type Package = AtomCore.Package; + + /** Package manager for coordinating the lifecycle of Atom packages. */ + type PackageManager = AtomCore.PackageManager; + + /** A container for presenting content in the center of the workspace. */ + type Pane = AtomCore.Pane; + + /** A container representing a panel on the edges of the editor window. You + * should not create a Panel directly, instead use Workspace::addTopPanel and + * friends to add panels. + */ + type Panel = AtomCore.Panel; + + /** Manage a subscription to filesystem events that occur beneath a root directory. */ + type PathWatcher = AtomCore.PathWatcher; + + /** Represents a project that's opened in Atom. */ + type Project = AtomCore.Project; + + /** Wraps an Array of Strings. The Array describes a path from the root of the + * syntax tree to a token including all scope names for the entire path. + */ + type ScopeDescriptor = AtomCore.ScopeDescriptor; + + /** Represents a selection in the TextEditor. */ + type Selection = AtomCore.Selection; + + /** A singleton instance of this class available via atom.styles, which you can + * use to globally query and observe the set of active style sheets. + */ + type StyleManager = AtomCore.StyleManager; + + /** Run a node script in a separate process. */ + type Task = AtomCore.Task; + + /** This class represents all essential editing state for a single TextBuffer, + * including cursor and selection positions, folds, and soft wraps. + */ + type TextEditor = AtomCore.TextEditor; + + /** Experimental: This global registry tracks registered TextEditors. */ + type TextEditorRegistry = AtomCore.TextEditorRegistry; + + /** Handles loading and activating available themes. */ + type ThemeManager = AtomCore.ThemeManager; + + type Tooltip = AtomCore.Tooltip; + + /** Associates tooltips with HTML elements or selectors. */ + type TooltipManager = AtomCore.TooltipManager; + + /** ViewRegistry handles the association between model and view types in Atom. + * We call this association a View Provider. As in, for a given model, this class + * can provide a view via ::getView, as long as the model/view association was + * registered via ::addViewProvider. + */ + type ViewRegistry = AtomCore.ViewRegistry; + + /** Represents the state of the user interface for the entire window. */ + type Workspace = AtomCore.Workspace; + + // https://github.com/atom/atom/blob/master/src/workspace-center.js + /** The central container for the editor window capable of holding items. */ + type WorkspaceCenter = AtomCore.WorkspaceCenter; } + + var atom: AtomCore.AtomEnvironment; } -declare var atom:AtomCore.IAtom; - -declare module "atom" { - import spacePen = require("space-pen"); - import Q = require("q"); - - var $:typeof spacePen.$; - var $$:typeof spacePen.$$; - var $$$:typeof spacePen.$$$; - - var BufferedNodeProcess:AtomCore.IBufferedNodeProcessStatic; - var BufferedProcess:AtomCore.IBufferedProcessStatic; - var Git:AtomCore.IGitStatic; - var Point:TextBuffer.IPointStatic; - var Range:TextBuffer.IRangeStatic; - - class View extends spacePen.View implements Emissary.ISubscriber { - // Subscriber.includeInto(spacePen.View); - - // inherit from Subscriber - subscribeWith(eventEmitter:any, methodName:string, args:any):any; - - addSubscription(subscription:any):any; - - subscribe(eventEmitterOrSubscription:any, ...args:any[]):any; - - subscribeToCommand(eventEmitter:any, ...args:any[]):any; - - unsubscribe(object?:any):any; - } - - class EditorView extends View { - static characterWidthCache:any; - static configDefaults:any; - static nextEditorId:number; - - static content(params:any):void; - - static classes(_arg?:{mini?:any}):string; - - vScrollMargin:number; - hScrollMargin:number; - lineHeight:any; - charWidth:any; - charHeight:any; - cursorViews:any[]; - selectionViews:any[]; - lineCache:any[]; - isFocused:any; - editor:AtomCore.IEditor; - attached:any; - lineOverdraw:number; - pendingChanges:any[]; - newCursors:any[]; - newSelections:any[]; - redrawOnReattach:any; - bottomPaddingInLines:number; - active:boolean; - - id:number; - - gutter:AtomCore.IGutterView; - overlayer:JQuery; - scrollView:JQuery; - renderedLines:JQuery; - underlayer:JQuery; - hiddenInput:JQuery; - verticalScrollbar:JQuery; - verticalScrollbarContent:JQuery; - - constructor(editor:AtomCore.IEditor); - - initialize(editorOrOptions:AtomCore.IEditor):void; // return type are same as editor method. - initialize(editorOrOptions?:{editor: AtomCore.IEditor; mini:any; placeholderText:any}):void; - - initialize(editorOrOptions:{}):void; // compatible for spacePen.View - - bindKeys():void; - - getEditor():AtomCore.IEditor; - - getText():string; - - setText(text:string):void; - - insertText(text:string, options?:any):TextBuffer.IRange[]; - - setHeightInLines(heightInLines:number):number; - - setWidthInChars(widthInChars:number):number; - - pageDown():void; - - pageUp():void; - - getPageRows():number; - - setShowInvisibles(showInvisibles:boolean):void; - - setInvisibles(invisibles:{ eol:string; space: string; tab: string; cr: string; }):void; - - setShowIndentGuide(showIndentGuide:boolean):void; - - setPlaceholderText(placeholderText:string):void; - - getPlaceholderText():string; - - checkoutHead():boolean; - - configure():Emissary.ISubscription; - - handleEvents():void; - - handleInputEvents():void; - - bringHiddenInputIntoView():JQuery; - - selectOnMousemoveUntilMouseup():any; - - afterAttach(onDom:any):any; - - edit(editor:AtomCore.IEditor):any; - - getModel():AtomCore.IEditor; - - setModel(editor:AtomCore.IEditor):any; - - showBufferConflictAlert(editor:AtomCore.IEditor):any; - - scrollTop(scrollTop:number, options?:any):any; - - scrollBottom(scrollBottom?:number):any; - - scrollLeft(scrollLeft?:number):number; - - scrollRight(scrollRight?:number):any; - - scrollToBottom():any; - - scrollToCursorPosition():any; - - scrollToBufferPosition(bufferPosition:any, options:any):any; - - scrollToScreenPosition(screenPosition:any, options:any):any; - - scrollToPixelPosition(pixelPosition:any, options:any):any; - - highlightFoldsContainingBufferRange(bufferRange:any):any; - - saveScrollPositionForEditor():any; - - toggleSoftTabs():any; - - toggleSoftWrap():any; - - calculateWidthInChars():number; - - calculateHeightInLines():number; - - getScrollbarWidth():number; - - setSoftWrap(softWrap:boolean):any; - - setFontSize(fontSize:number):any; - - getFontSize():number; - - setFontFamily(fontFamily?:string):any; - - getFontFamily():string; - - setLineHeight(lineHeight:number):any; - - redraw():any; - - splitLeft():any; - - splitRight():any; - - splitUp():any; - - splitDown():any; - - getPane():any; // return type are PaneView - - remove(selector:any, keepData:any):any; - - beforeRemove():any; - - getCursorView(index?:number):any; // return type are CursorView - - getCursorViews():any[]; // return type are CursorView[] - - addCursorView(cursor:any, options:any):any; // return type are CursorView - - removeCursorView(cursorView:any):any; - - getSelectionView(index?:number):any; // return type are SelectionView - - getSelectionViews():any[]; // return type are SelectionView[] - - addSelectionView(selection:any):any; - - removeSelectionView(selectionView:any):any; - - removeAllCursorAndSelectionViews():any[]; - - appendToLinesView(view:any):any; - - scrollVertically(pixelPosition:any, _arg:any):any; - - scrollHorizontally(pixelPosition:any):any; - - calculateDimensions():number; - - recalculateDimensions():any; - - updateLayerDimensions():any; - - isHidden():boolean; - - clearRenderedLines():void; - - resetDisplay():any; - - requestDisplayUpdate():any; - - updateDisplay(options?:any):any; - - updateCursorViews():any; - - shouldUpdateCursor(cursorView:any):any; - - updateSelectionViews():any[]; - - shouldUpdateSelection(selectionView:any):any; - - syncCursorAnimations():any[]; - - autoscroll(suppressAutoscroll?:any):any[]; - - updatePlaceholderText():any; - - updateRenderedLines(scrollViewWidth:any):any; - - computeSurroundingEmptyLineChanges(change:any):any; - - computeIntactRanges(renderFrom:any, renderTo:any):any; - - truncateIntactRanges(intactRanges:any, renderFrom:any, renderTo:any):any; - - clearDirtyRanges(intactRanges:any):any; - - clearLine(lineElement:any):any; - - fillDirtyRanges(intactRanges:any, renderFrom:any, renderTo:any):any; - - updatePaddingOfRenderedLines():any; - - getFirstVisibleScreenRow():number; - - getLastVisibleScreenRow():number; - - isScreenRowVisible():boolean; - - handleScreenLinesChange(change:any):any; - - buildLineElementForScreenRow(screenRow:any):any; - - buildLineElementsForScreenRows(startRow:any, endRow:any):any; - - htmlForScreenRows(startRow:any, endRow:any):any; - - htmlForScreenLine(screenLine:any, screenRow:any):any; - - buildIndentation(screenRow:any, editor:any):any; - - buildHtmlEndOfLineInvisibles(screenLine:any):any; - - getEndOfLineInvisibles(screenLine:any):any; - - lineElementForScreenRow(screenRow:any):any; - - toggleLineCommentsInSelection():any; - - pixelPositionForBufferPosition(position:any):any; - - pixelPositionForScreenPosition(position:any):any; - - positionLeftForLineAndColumn(lineElement:any, screenRow:any, screenColumn:any):any; - - measureToColumn(lineElement:any, tokenizedLine:any, screenColumn:any):any; - - getCharacterWidthCache(scopes:any, char:any):any; - - setCharacterWidthCache(scopes:any, char:any, val:any):any; - - clearCharacterWidthCache():any; - - pixelOffsetForScreenPosition(position:any):any; - - screenPositionFromMouseEvent(e:any):any; - - highlightCursorLine():any; - - copyPathToClipboard():any; - - buildLineHtml(_arg:any):any; - - updateScopeStack(line:any, scopeStack:any, desiredScopes:any):any; - - pushScope(line:any, scopeStack:any, scope:any):any; - - popScope(line:any, scopeStack:any):any; - - buildEmptyLineHtml(showIndentGuide:any, eolInvisibles:any, htmlEolInvisibles:any, indentation:any, editor:any, mini:any):any; - - replaceSelectedText(replaceFn:(str:string)=>string):any; - - consolidateSelections(e:any):any; - - logCursorScope():any; - - logScreenLines(start:any, end:any):any; - - logRenderedLines():any; - } - - class ScrollView extends View { - // TBD - } - - interface ISelectListItem { - /** e.g. application:about */ - eventName:string; - /** e.g. Application: About */ - eventDescription:string; - } - - class SelectListView extends View { - static content():any; - - maxItems:number; - scheduleTimeout:any; - inputThrottle:number; - cancelling:boolean; - items:any[]; - list:JQuery; - filterEditorView: JQuery; - - previouslyFocusedElement:JQuery; - - initialize():any; - - schedulePopulateList():number; - - setItems(items:any[]):any; - - setError(message?:string):any; - - setLoading(message?:string):any; - - getFilterQuery():string; - - populateList():any; - - getEmptyMessage(itemCount?:any, filteredItemCount?:any):string; - - setMaxItems(maxItems:number):void; - - selectPreviousItemView():any; - - selectNextItemView():any; - - selectItemView(view:any):any; - - scrollToItemView(view:any):any; - - getSelectedItemView():any; - - getSelectedItem():any; - - confirmSelection():any; - - viewForItem(item:any):JQuery|string|HTMLElement|View; // You must override this method! - confirmed(item:any):any; // You must override this method! - getFilterKey():any; - - focusFilterEditor():any; - - storeFocusedElement():any; - - restoreFocus():any; - - cancelled():any; - - cancel():any; - } - - - - var WorkspaceView:AtomCore.IWorkspaceViewStatic; - - var Task:AtomCore.ITaskStatic; - var Workspace:AtomCore.IWorkspaceStatic; -} +export { CompositeDisposable, Disposable, Emitter } from "event-kit"; +export { File, Directory } from "pathwatcher"; + +/** A wrapper which provides standard error/output line buffering for + * Node's ChildProcess. + */ +export const BufferedProcess: AtomCore.Statics.BufferedProcess; + +/** Like BufferedProcess, but accepts a Node script as the command to run. + * This is necessary on Windows since it doesn't support shebang #! lines. + */ +export const BufferedNodeProcess: AtomCore.Statics.BufferedNodeProcess; + +/** Represents the underlying git operations performed by Atom. */ +export const GitRepository: AtomCore.Statics.GitRepository; + +/** A notification to the user containing a message and type. */ +export const Notification: AtomCore.Statics.Notification; + +/** Represents a point in a buffer in row/column coordinates. */ +export const Point: TextBuffer.Statics.Point; + +/** Represents a region in a buffer in row/column coordinates. */ +export const Range: TextBuffer.Statics.Range; + +/** Run a node script in a separate process. */ +export const Task: AtomCore.Statics.Task; + +/** A mutable text container with undo/redo support and the ability to annotate + * logical regions in the text. + */ +export const TextBuffer: TextBuffer.Statics.TextBuffer; + +/** This class represents all essential editing state for a single TextBuffer, + * including cursor and selection positions, folds, and soft wraps. + */ +export const TextEditor: AtomCore.Statics.TextEditor; + +/** Invoke a callback with each filesystem event that occurs beneath a specified path. + * If you only need to watch events within the project's root paths, use + * Project::onDidChangeFiles instead. + */ +export function watchPath(rootPath: string, options: {}, eventCallback: (events: + AtomCore.Events.FilesystemChange) => void): AtomCore.PathWatcher; diff --git a/types/atom/services/index.d.ts b/types/atom/services/index.d.ts new file mode 100644 index 0000000000..33b85ff511 --- /dev/null +++ b/types/atom/services/index.d.ts @@ -0,0 +1,190 @@ +/* tslint:disable:no-unnecessary-qualifier */ +declare namespace Atom { + namespace Services { + /** Type definitions for autocomplete+ 2 */ + namespace Autocomplete { + /** Objects that appear as parameters to callbacks. */ + namespace Events { + /** The parameters passed into getSuggestions by Autocomplete+. */ + interface SuggestionsRequested { + /** The current TextEditor. */ + editor: Atom.TextEditor; + + /** The position of the cursor. */ + bufferPosition: Atom.Point; + + /** The scope descriptor for the current cursor position. */ + scopeDescriptor: Atom.ScopeDescriptor; + + /** The prefix for the word immediately preceding the current cursor position. */ + prefix: string; + + /** Whether the autocomplete request was initiated by the user. */ + activatedManually: boolean; + } + + /** The parameters passed into onDidInsertSuggestion by Autocomplete+. */ + interface SuggestionInserted { + editor: Atom.TextEditor; + triggerPosition: Atom.Point; + suggestion: TextSuggestion|SnippetSuggestion; + } + } + + /** An autocompletion suggestion for the user. + * Primary data type for the Atom Autocomplete+ service. + */ + interface Suggestion { + /** A string that will show in the UI for this suggestion. + * When not set, snippet || text is displayed. + */ + displayText?: string; + + /** The text immediately preceding the cursor, which will be replaced by the text. + * If not provided, the prefix passed into getSuggestions will be used. + */ + replacementPrefix?: string; + + /** The suggestion type. It will be converted into an icon shown against the suggestion. */ + type?: string; + + /** This is shown before the suggestion. Useful for return values. */ + leftLabel?: string; + + /** Use this instead of leftLabel if you want to use html for the left label. */ + leftLabelHTML?: string; + + /** An indicator (e.g. function, variable) denoting the "kind" of suggestion this represents. */ + rightLabel?: string; + + /** Use this instead of rightLabel if you want to use html for the right label. */ + rightLabelHTML?: string; + + /** Class name for the suggestion in the suggestion list. Allows you to style your suggestion + * via CSS, if desired. + */ + className?: string; + + /** If you want complete control over the icon shown against the suggestion. e.g. iconHTML: + * + */ + iconHTML?: string; + + /** A doc-string summary or short description of the suggestion. When specified, it will be + * displayed at the bottom of the suggestions list. + */ + description?: string; + + /** A url to the documentation or more information about this suggestion. When specified, + * a More.. link will be displayed in the description area. + */ + descriptionMoreURL?: string; + } + + interface TextSuggestion extends Suggestion { + /** The text which will be inserted into the editor, in place of the prefix. */ + text: string; + } + + interface SnippetSuggestion extends Suggestion { + /** A snippet string. This will allow users to tab through function arguments or other + * options. + */ + snippet: string; + } + + type Suggestions = Array; + + interface Provider { + /** Defines the scope selector(s) (can be comma-separated) for which your provider + * should receive suggestion requests. + */ + selector: string; + + /** Is called when a suggestion request has been dispatched by autocomplete+ to your + * provider. Return an array of suggestions (if any) in the order you would like them + * displayed to the user. Returning a Promise of an array of suggestions is also + * supported. + */ + getSuggestions(params: Events.SuggestionsRequested): Suggestions|Promise; + + /** Defines the scope selector(s) (can be comma-separated) for which your provider + * should not be used. + */ + disableForSelector?: string; + + /** A number to indicate its priority to be included in a suggestions request. + * The default provider has an inclusion priority of 0. Higher priority providers + * can suppress lower priority providers with excludeLowerPriority. + */ + inclusionPriority?: number; + + /** Will not use lower priority providers when this provider is used. */ + excludeLowerPriority?: boolean; + + /** A number to determine the sort order of suggestions. The default provider has + * an suggestion priority of 1. + */ + suggestionPriority?: number; + + /** Function that is called when a suggestion from your provider was inserted + * into the buffer. + */ + onDidInsertSuggestion?(params: Events.SuggestionInserted): void; + + /** Will be called if your provider is being destroyed by autocomplete+ */ + dispose?(): void; + } + } + + /** Type definitions for status-bar 1.8 */ + namespace StatusBar { + /** Objects that appear as parameters to functions. */ + namespace Options { + interface AddTile { + /** A DOM element, a jQuery object, or a model object for which a view provider + * has been registered in the the view registry. + */ + item: object; + + /** Determines the placement of the tile within the status bar. Lower priority + * will result in closer placement to the anchor. + */ + priority: number; + } + } + + interface Tile { + /** Retrieve the priority that was assigned to the Tile when it was created. */ + getPriority(): number; + + /** Retrieve the Tile's item. */ + getItem(): object; + + /** Remove the Tile from the status bar. */ + destroy(): void; + } + + interface StatusBar { + /** Add a tile to the left side of the status bar. Lower priority tiles are placed + * further to the left. + */ + addLeftTile(options: Options.AddTile): Tile; + + /** Add a tile to the right side of the status bar. Lower priority tiles are placed + * further to the right. + */ + addRightTile(options: Options.AddTile): Tile; + + /** Retrieve all of the tiles on the left side of the status bar. */ + getLeftTiles(): Tile[]; + + /** Retrieve all of the tiles on the right side of the status bar. */ + getRightTiles(): Tile[]; + } + + type Consumer = (statusBar: StatusBar) => void; + } + } +} +/* tslint:enable:no-unnecessary-qualifier */ diff --git a/types/atom/tsconfig.json b/types/atom/tsconfig.json index 6c1bb13aef..febacd8656 100644 --- a/types/atom/tsconfig.json +++ b/types/atom/tsconfig.json @@ -7,21 +7,18 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" ], - "paths": { - "q": [ "q/v0" ] - }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", - "api-docs.d.ts", - "atom-tests.ts" + "atom-tests.ts", + "services/index.d.ts" ] -} \ No newline at end of file +} diff --git a/types/atom/tslint.json b/types/atom/tslint.json new file mode 100644 index 0000000000..a36bbd3600 --- /dev/null +++ b/types/atom/tslint.json @@ -0,0 +1,39 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // Custom rules. + "await-promise": [true, "CancellablePromise"], + "class-name": true, + "indent": [true, "tabs"], + "jsdoc-format": true, + "linebreak-style": [true, "LF"], + "max-line-length": [true, 100], + "no-any": false, + "quotemark": [true, "double", "avoid-escape"], + "trailing-comma": [true, { + "multiline": { "objects": "always", "arrays": "always", "functions": "never" }, + "singleline": { "objects": "never", "arrays": "never", "functions": "never" } + }], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-module", + "check-separator", + "check-type", + "check-typecast", + "check-rest-spread", + "check-preblock" + ], + // Soon to be defaults. + "arrow-return-shorthand": [true, "multiline"], + "no-floating-promises": true, + "no-unbound-method": true, + "no-unsafe-any": true, + "number-literal-format": true, + "restrict-plus-operands": true, + "return-undefined": true, + "switch-final-break": true + } +} diff --git a/types/atom/api-docs.d.ts b/types/atom/v0/api-docs.d.ts similarity index 100% rename from types/atom/api-docs.d.ts rename to types/atom/v0/api-docs.d.ts diff --git a/types/atom/v0/atom-tests.ts b/types/atom/v0/atom-tests.ts new file mode 100644 index 0000000000..5987f4901d --- /dev/null +++ b/types/atom/v0/atom-tests.ts @@ -0,0 +1,70 @@ +import path = require("path"); +import _atom = require("atom"); + +import PathWatcher = require("pathwatcher"); +var File = PathWatcher.File; + +const jq: JQuery = $("selector"); + +class SampleView extends _atom.ScrollView { + + editorId:string; + file:PathWatcher.IFile; + editor:AtomCore.IEditor; + + static deserialize(state:any):SampleView { + return new SampleView(state); + } + + static content():any { + return this.div({class: 'sample native-key-bindings', tabindex: -1}); + } + + constructor(params:{editorId?:string; filePath?:string;} = {}) { + super(); + + this.editorId = params.editorId; + + if (this.editorId) { + this.resolveEditor(this.editorId); + } else { + this.file = new File(params.filePath); + } + } + + serialize() { + return { + deserializer: 'SampleView', + editorId: this.editorId + }; + } + + destroy() { + this.unsubscribe(); + } + + resolveEditor(editorId:string) { + var resolve = ()=> { + if (this.editor) { + jq.trigger("title-changed"); + } else { + var view = jq.parents('.pane').view(); + if (view) { + view.destroyItem(this); + } + } + }; + + if (atom.workspace) { + resolve(); + } else { + atom.packages.once("activated", ()=> { + resolve(); + }); + } + } +} + +atom.deserializers.add(SampleView); + +export = SampleView; diff --git a/types/atom/v0/index.d.ts b/types/atom/v0/index.d.ts new file mode 100644 index 0000000000..7dba05663c --- /dev/null +++ b/types/atom/v0/index.d.ts @@ -0,0 +1,1977 @@ +// Type definitions for Atom +// Project: https://atom.io/ +// Definitions by: vvakame , smhxx +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// +/// +/// +/// +/// +/// + +// Policy: this definition file only declare element related to `atom`. +// if js file include to another npm package (e.g. "space-pen", "mixto" and "emissary"). +// you should create a separate file. + +// API documentation : https://atom.io/docs/api/v1.20.1 + +interface Window { + atom: AtomCore.IAtom; + measure(description:string, fn:Function):any; // return fn result + profile(description:string, fn:Function):any; // return fn result +} + +declare namespace AtomCore { + + // https://atom.io/docs/v0.84.0/advanced/view-system + interface IWorkspaceViewStatic { + new ():IWorkspaceView; + version: number; + configDefaults:any; + content():any; + } + + interface Decoration { + destroy(): void; + } + + /** + * Represents a buffer annotation that remains logically stationary even as the buffer changes. This is used + * to represent cursors, folds, snippet targets, misspelled words, any anything else that needs to track a + * logical location in the buffer over time. + */ + interface Marker { + /** + * Destroys the marker, causing it to emit the 'destroyed' event. Once destroyed, a marker cannot be + * restored by undo/redo operations. + */ + destroy(): void; + + /** + * Gets the screen range of the display marker. + */ + getScreenRange(): Range; + } + + interface IWorkspaceView extends View { + // Delegator.includeInto(WorkspaceView); + + // delegate to model property's property + fullScreen:boolean; + + // delegate to model property's method + open(uri:string, options:any):Q.Promise; + openSync(uri:string, options?:any):any; + saveActivePaneItem():any; + saveActivePaneItemAs():any; + saveAll():void; + destroyActivePaneItem():any; + destroyActivePane():any; + increaseFontSize():void; + decreaseFontSize():void; + + // own property & methods + initialize(model:IWorkspace):any; + initialize(view:View, args:any):void; // do not use + model:IWorkspace; + panes: IPaneContainerView; + getModel():IWorkspace; + installShellCommands():any; + handleFocus():any; + afterAttach(onDom?:any):any; + confirmClose():boolean; + updateTitle():any; + setTitle(title:string):any; + getEditorViews():any[]; // atom.EditorView + prependToTop(element:any):any; + appendToTop(element:any):any; + prependToBottom(element:any):any; + appendToBottom(element:any):any; + prependToLeft(element:any):any; + appendToLeft(element:any):any; + prependToRight(element:any):any; + appendToRight(element:any):any; + getActivePaneView():IPaneView; + getActiveView():View; + focusPreviousPaneView():any; + focusNextPaneView():any; + focusPaneViewAbove():any; + focusPaneViewBelow():any; + focusPaneViewOnLeft():any; + focusPaneViewOnRight():any; + eachPaneView(callback:(paneView:IPaneView)=>any):{ off():any; }; + getPaneViews():IPaneView[]; + eachEditorView(callback:(editorView:any /* EditorView */)=>any):{ off():any; }; + beforeRemove():any; + + command(eventName:string, handler:Function):any; + command(eventName:string, selector:Function, handler:Function):any; + command(eventName:string, options:any, handler:Function):any; + command(eventName:string, selector:Function, options:any, handler:Function):any; + + statusBar:StatusBar.IStatusBarView; + } + + interface IPanes { + // TBD + } + + interface IPaneView { + // TBD + } + + interface IPaneContainerView { + // TBD + } + + interface ITreeView { + // TBD + } + + interface IGutterViewStatic { + new(): IGutterView; + content():any; + } + + interface IGutterView extends View { + firstScreenRow:any; + lastScreenRow:any; + initialize():void; + initialize(view:View, args:any):void; // do not use + afterAttach(onDom?:any):any; + beforeRemove():any; + handleMouseEvents(e:JQueryMouseEventObject):any; + getEditorView():any; /* EditorView */ + getEditor():IEditor; + getLineNumberElements():HTMLCollection; + getLineNumberElementsForClass(klass:string):NodeList; + getLineNumberElement(bufferRow:number):NodeList; + addClassToAllLines(klass:string):boolean; + removeClassFromAllLines(klass:string):boolean; + addClassToLine(bufferRow:number, klass:string):boolean; + removeClassFromLine(bufferRow:number, klass:string):boolean; + updateLineNumbers(changes:any[], startScreenRow?:number, endScreenRow?:number):any; + prependLineElements(lineElements:any):void; + appendLineElements(lineElements:any):void; + removeLineElements(numberOfElements:number):void; + buildLineElements(startScreenRow:any, endScreenRow:any):any; + buildLineElementsHtml(startScreenRow:any, endScreenRow:any):any; + updateFoldableClasses(changes:any[]):any; + removeLineHighlights():void; + addLineHighlight(row:number, emptySelection?:boolean):any; + highlightLines():boolean; + } + + interface ICommandRegistry { + add(target: string, commandName: Object, callback?: (event: any) => void): any; // selector:'atom-editor'|'atom-workspace' + findCommands(params: Object): Object[]; + dispatch(selector: any, name:string): void; + } + + interface ICommandPanel { + // TBD + } + + interface IDisplayBufferStatic { + new(_arg?:any):IDisplayBuffer; + } + + interface IDisplayBuffer /* extends Theorist.Model */ { + // Serializable.includeInto(Editor); + + constructor:IDisplayBufferStatic; + + verticalScrollMargin:number; + horizontalScrollMargin:number; + + declaredPropertyValues:any; + tokenizedBuffer: ITokenizedBuffer; + buffer: TextBuffer.ITextBuffer; + charWidthsByScope:any; + markers:{ [index:number]:IDisplayBufferMarker; }; + foldsByMarkerId:any; + maxLineLength:number; + screenLines:ITokenizedLine[]; + rowMap:any; // return type are RowMap + longestScreenRow:number; + subscriptions:Emissary.ISubscription[]; + subscriptionsByObject:any; // return type are WeakMap + behaviors:any; + subscriptionCounts:any; + eventHandlersByEventName:any; + pendingChangeEvent:any; + + softWrap:boolean; + + serializeParams():{id:number; softWrap:boolean; editorWidthInChars: number; scrollTop: number; scrollLeft: number; tokenizedBuffer: any; }; + deserializeParams(params:any):any; + copy():IDisplayBuffer; + updateAllScreenLines():any; + emitChanged(eventProperties:any, refreshMarkers?:boolean):any; + updateWrappedScreenLines():any; + setVisible(visible:any):any; + getVerticalScrollMargin():number; + setVerticalScrollMargin(verticalScrollMargin:number):number; + getHorizontalScrollMargin():number; + setHorizontalScrollMargin(horizontalScrollMargin:number):number; + getHeight():any; + setHeight(height:any):any; + getWidth():any; + setWidth(newWidth:any):any; + getScrollTop():number; + setScrollTop(scrollTop:number):number; + getScrollBottom():number; + setScrollBottom(scrollBottom:number):number; + getScrollLeft():number; + setScrollLeft(scrollLeft:number):number; + getScrollRight():number; + setScrollRight(scrollRight:number):number; + getLineHeight():any; + setLineHeight(lineHeight:any):any; + getDefaultCharWidth():any; + setDefaultCharWidth(defaultCharWidth:any):any; + getScopedCharWidth(scopeNames:any, char:any):any; + getScopedCharWidths(scopeNames:any):any; + setScopedCharWidth(scopeNames:any, char:any, width:any):any; + setScopedCharWidths(scopeNames:any, charWidths:any):any; + clearScopedCharWidths():any; + getScrollHeight():number; + getScrollWidth():number; + getVisibleRowRange():number[]; + intersectsVisibleRowRange(startRow:any, endRow:any):any; + selectionIntersectsVisibleRowRange(selection:any):any; + scrollToScreenRange(screenRange:any):any; + scrollToScreenPosition(screenPosition:any):any; + scrollToBufferPosition(bufferPosition:any):any; + pixelRectForScreenRange(screenRange:TextBuffer.IRange):any; + getTabLength():number; + setTabLength(tabLength:number):any; + setSoftWrap(softWrap:boolean):boolean; + getSoftWrap():boolean; + setEditorWidthInChars(editorWidthInChars:number):any; + getEditorWidthInChars():number; + getSoftWrapColumn():number; + lineForRow(row:number):any; + linesForRows(startRow:number, endRow:number):any; + getLines():any[]; + indentLevelForLine(line:any):any; + bufferRowsForScreenRows(startScreenRow:any, endScreenRow:any):any; + createFold(startRow:number, endRow:number):IFold; + isFoldedAtBufferRow(bufferRow:number):boolean; + isFoldedAtScreenRow(screenRow:number):boolean; + destroyFoldWithId(id:number):any; + unfoldBufferRow(bufferRow:number):any[]; + largestFoldStartingAtBufferRow(bufferRow:number):any; + foldsStartingAtBufferRow(bufferRow:number):any; + largestFoldStartingAtScreenRow(screenRow:any):any; + largestFoldContainingBufferRow(bufferRow:any):any; + outermostFoldsInBufferRowRange(startRow:any, endRow:any):any[]; + foldsContainingBufferRow(bufferRow:any):any[]; + screenRowForBufferRow(bufferRow:number):number; + lastScreenRowForBufferRow(bufferRow:number):number; + bufferRowForScreenRow(screenRow:number):number; + + screenRangeForBufferRange(bufferRange:TextBuffer.IPoint[]):TextBuffer.IRange; + + screenRangeForBufferRange(bufferRange:TextBuffer.IRange):TextBuffer.IRange; + + screenRangeForBufferRange(bufferRange:{start: TextBuffer.IPoint; end: TextBuffer.IPoint}):TextBuffer.IRange; + screenRangeForBufferRange(bufferRange:{start: number[]; end: TextBuffer.IPoint}):TextBuffer.IRange; + screenRangeForBufferRange(bufferRange:{start: {row:number; col:number;}; end: TextBuffer.IPoint}):TextBuffer.IRange; + + screenRangeForBufferRange(bufferRange:{start: TextBuffer.IPoint; end: number[]}):TextBuffer.IRange; + screenRangeForBufferRange(bufferRange:{start: number[]; end: number[]}):TextBuffer.IRange; + screenRangeForBufferRange(bufferRange:{start: {row:number; col:number;}; end: number[]}):TextBuffer.IRange; + + screenRangeForBufferRange(bufferRange:{start: TextBuffer.IPoint; end: {row:number; col:number;}}):TextBuffer.IRange; + screenRangeForBufferRange(bufferRange:{start: number[]; end: {row:number; col:number;}}):TextBuffer.IRange; + screenRangeForBufferRange(bufferRange:{start: {row:number; col:number;}; end: {row:number; col:number;}}):TextBuffer.IRange; + + bufferRangeForScreenRange(screenRange:TextBuffer.IPoint[]):TextBuffer.IRange; + + bufferRangeForScreenRange(screenRange:TextBuffer.IRange):TextBuffer.IRange; + + bufferRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: TextBuffer.IPoint}):TextBuffer.IRange; + bufferRangeForScreenRange(screenRange:{start: number[]; end: TextBuffer.IPoint}):TextBuffer.IRange; + bufferRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: TextBuffer.IPoint}):TextBuffer.IRange; + + bufferRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: number[]}):TextBuffer.IRange; + bufferRangeForScreenRange(screenRange:{start: number[]; end: number[]}):TextBuffer.IRange; + bufferRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: number[]}):TextBuffer.IRange; + + bufferRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: {row:number; col:number;}}):TextBuffer.IRange; + bufferRangeForScreenRange(screenRange:{start: number[]; end: {row:number; col:number;}}):TextBuffer.IRange; + bufferRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: {row:number; col:number;}}):TextBuffer.IRange; + + pixelRangeForScreenRange(screenRange:TextBuffer.IPoint[], clip?:boolean):TextBuffer.IRange; + + pixelRangeForScreenRange(screenRange:TextBuffer.IRange, clip?:boolean):TextBuffer.IRange; + + pixelRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: TextBuffer.IPoint}, clip?:boolean):TextBuffer.IRange; + pixelRangeForScreenRange(screenRange:{start: number[]; end: TextBuffer.IPoint}, clip?:boolean):TextBuffer.IRange; + pixelRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: TextBuffer.IPoint}, clip?:boolean):TextBuffer.IRange; + + pixelRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: number[]}, clip?:boolean):TextBuffer.IRange; + pixelRangeForScreenRange(screenRange:{start: number[]; end: number[]}, clip?:boolean):TextBuffer.IRange; + pixelRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: number[]}, clip?:boolean):TextBuffer.IRange; + + pixelRangeForScreenRange(screenRange:{start: TextBuffer.IPoint; end: {row:number; col:number;}}, clip?:boolean):TextBuffer.IRange; + pixelRangeForScreenRange(screenRange:{start: number[]; end: {row:number; col:number;}}, clip?:boolean):TextBuffer.IRange; + pixelRangeForScreenRange(screenRange:{start: {row:number; col:number;}; end: {row:number; col:number;}}, clip?:boolean):TextBuffer.IRange; + + pixelPositionForScreenPosition(screenPosition:TextBuffer.IPoint, clip?:boolean):TextBuffer.IPoint; + pixelPositionForScreenPosition(screenPosition:number[], clip?:boolean):TextBuffer.IPoint; + pixelPositionForScreenPosition(screenPosition:{row:number; col:number;}, clip?:boolean):TextBuffer.IPoint; + + screenPositionForPixelPosition(pixelPosition:any):TextBuffer.IPoint; + + pixelPositionForBufferPosition(bufferPosition:any):any; + getLineCount():number; + getLastRow():number; + getMaxLineLength():number; + screenPositionForBufferPosition(bufferPosition:any, options:any):any; + bufferPositionForScreenPosition(bufferPosition:any, options:any):any; + scopesForBufferPosition(bufferPosition:any):any; + bufferRangeForScopeAtPosition(selector:any, position:any):any; + tokenForBufferPosition(bufferPosition:any):any; + getGrammar():IGrammar; + setGrammar(grammar:IGrammar):any; + reloadGrammar():any; + clipScreenPosition(screenPosition:any, options:any):any; + findWrapColumn(line:any, softWrapColumn:any):any; + rangeForAllLines():TextBuffer.IRange; + getMarker(id:number):IDisplayBufferMarker; + getMarkers():IDisplayBufferMarker[]; + getMarkerCount():number; + markScreenRange(range:TextBuffer.IRange, ...args:any[]):IDisplayBufferMarker; + markBufferRange(range:TextBuffer.IRange, options?:any):IDisplayBufferMarker; + markScreenPosition(screenPosition:TextBuffer.IPoint, options?:any):IDisplayBufferMarker; + markBufferPosition(bufferPosition:TextBuffer.IPoint, options?:any):IDisplayBufferMarker; + destroyMarker(id:number):any; + findMarker(params?:any):IDisplayBufferMarker; + findMarkers(params?:any):IDisplayBufferMarker[]; + translateToBufferMarkerParams(params?:any):any; + findFoldMarker(attributes:any):IMarker; + findFoldMarkers(attributes:any):IMarker[]; + getFoldMarkerAttributes(attributes?:any):any; + pauseMarkerObservers():any; + resumeMarkerObservers():any; + refreshMarkerScreenPositions():any; + destroy():any; + logLines(start:number, end:number):any[]; + handleTokenizedBufferChange(tokenizedBufferChange:any):any; + updateScreenLines(startBufferRow:any, endBufferRow:any, bufferDelta?:number, options?:any):any; + buildScreenLines(startBufferRow:any, endBufferRow:any):any; + findMaxLineLength(startScreenRow:any, endScreenRow:any, newScreenLines:any):any; + handleBufferMarkersUpdated():any; + handleBufferMarkerCreated(marker:any):any; + createFoldForMarker(maker:any):IFold; + foldForMarker(marker:any):any; + } + + interface IViewRegistry { + getView(selector:any):any; + } + + interface ICursorStatic { + new (arg:{editor:IEditor; marker:IDisplayBufferMarker; id: number;}):ICursor; + } + + interface ScopeDescriptor { + scopes: string[]; + } + + interface ICursor /* extends Theorist.Model */ { + getScopeDescriptor(): ScopeDescriptor; + screenPosition:any; + bufferPosition:any; + goalColumn:any; + visible:boolean; + needsAutoscroll:boolean; + + editor:IEditor; + marker:IDisplayBufferMarker; + id: number; + + destroy():any; + changePosition(options:any, fn:Function):any; + getPixelRect():any; + setScreenPosition(screenPosition:any, options?:any):any; + getScreenPosition():TextBuffer.IPoint; + getScreenRange():TextBuffer.IRange; + setBufferPosition(bufferPosition:any, options?:any):any; + getBufferPosition():TextBuffer.IPoint; + autoscroll():any; + updateVisibility():any; + setVisible(visible:boolean):any; + isVisible():boolean; + wordRegExp(arg?:any):any; + isLastCursor():boolean; + isSurroundedByWhitespace():boolean; + isBetweenWordAndNonWord():boolean; + isInsideWord():boolean; + clearAutoscroll():void; + clearSelection():void; + getScreenRow():number; + getScreenColumn():number; + getBufferRow():number; + getBufferColumn():number; + getCurrentBufferLine():string; + moveUp(rowCount:number, arg?:any):any; + moveDown(rowCount:number, arg?:any):any; + moveLeft(arg?:any):any; + moveRight(arg?:any):any; + moveToTop():any; + moveToBottom():void; + moveToBeginningOfScreenLine():void; + moveToBeginningOfLine():void; + moveToFirstCharacterOfLine():void; + moveToEndOfScreenLine():void; + moveToEndOfLine():void; + moveToBeginningOfWord():void; + moveToEndOfWord():void; + moveToBeginningOfNextWord():void; + moveToPreviousWordBoundary():void; + moveToNextWordBoundary():void; + getBeginningOfCurrentWordBufferPosition(options?:any):TextBuffer.IPoint; + getPreviousWordBoundaryBufferPosition(options?:any):TextBuffer.IPoint; + getMoveNextWordBoundaryBufferPosition(options?:any):TextBuffer.IPoint; + getEndOfCurrentWordBufferPosition(options?:any):TextBuffer.IPoint; + getBeginningOfNextWordBufferPosition(options?:any):TextBuffer.IPoint; + getCurrentWordBufferRange(options?:any):TextBuffer.IPoint; + getCurrentLineBufferRange(options?:any):TextBuffer.IPoint; + getCurrentParagraphBufferRange():any; + getCurrentWordPrefix():string; + isAtBeginningOfLine():boolean; + getIndentLevel():number; + isAtEndOfLine():boolean; + getScopes():string[]; + hasPrecedingCharactersOnLine():boolean; + getMarker(): Marker; + } + + interface ILanguageMode { + // TBD + } + + interface ISelection { + // https://atom.io/docs/api/v1.7.3/Selection + + // Event Subscription + onDidChangeRange(callback: (event: { + oldBufferRange: TextBuffer.IRange; + oldScreenRange: TextBuffer.IRange; + newBufferRange: TextBuffer.IRange; + newScreenRange: TextBuffer.IRange; + selection: ISelection; + }) => {}): Disposable; + onDidDestroy(callback: () => {}): Disposable; + + // Managing the selection range + getScreenRange(): TextBuffer.IRange; + setScreenRange(screenRange: TextBuffer.IRange, options?: { + preserveFolds?: boolean; + autoscroll?: boolean; + }): void; + getBufferRange(): TextBuffer.IRange; + setBufferRange(bufferRange: TextBuffer.IRange, options?: { + preserveFolds?: boolean; + autoscroll?: boolean; + }): void; + getBufferRowRange(): [number]; + + // Info about the selection + isEmpty(): boolean; + isReversed(): boolean; + isSingleScreenLine(): boolean; + getText(): string; + intersectsBufferRange(bufferRange: TextBuffer.IRange): boolean; + intersectsWith(otherSelection: ISelection): boolean; + + // Modifying the selected range + clear(options?: {autoscroll?: boolean}): void; + selectToScreenPosition(position: any): void; + selectToBufferPosition(position: any): void; + selectRight(columnCount?: number): void; + selectLeft(columnCount?: number): void; + selectUp(rowCount: number): void; + selectDown(rowCount: number): void; + selectToTop(): void; + selectToBottom(): void; + selectAll(): void; + selectToBeginningOfLine(): void; + selectToFirstCharacterOfLine(): void; + selectToEndOfLine(): void; + selectToEndOfBufferLine(): void; + selectToBeginningOfWord(): void; + selectToEndOfWord(): void; + selectToBeginningOfNextWord(): void; + selectToPreviousWordBoundary(): void; + selectToNextWordBoundary(): void; + selectToPreviousSubwordBoundary(): void; + selectToNextSubwordBoundary(): void; + selectToBeginningOfNextParagraph(): void; + selectToBeginningOfPreviousParagraph(): void; + selectWord(): TextBuffer.IRange; + expandOverWord(): void; + selectLine(row?: number): void; + expandOverLine(): void; + + // Modifying the selected text + insertText(text: string, options?: { + select: boolean; + autoIndent: boolean; + autoIndentNewline: boolean; + autoDecreaseIndent: boolean; + normalizeLineEndings?: boolean; + undo?: 'skip'; + }): void; + backspace(): void; + deleteToPreviousWordBoundary(): void; + deleteToNextWordBoundary(): void; + deleteToBeginningOfWord(): void; + deleteToBeginningOfLine(): void; + delete(): void; + deleteToEndOfLine(): void; + deleteToEndOfWord(): void; + deleteToBeginningOfSubword(): void; + deleteToEndOfSubword(): void; + deleteSelectedText(): void; + deleteLine(): void; + joinLines(): void; + outdentSelectedRows(): void; + autoIndentSelectedRows(): void; + toggleLineComments(): void; + cutToEndOfLine(): void; + cutToEndOfBufferLine(): void; + cut(maintainClipboard?: boolean, fullLine?: boolean): void; + copy(maintainClipboard?: boolean, fullLine?: boolean): void; + fold(): void; + indentSelectedRows(): void; + + // Managing multiple selections + addSelectionBelow(): void; + addSelectionAbove(): void; + merge(otherSelection: ISelection, options?: { + preserveFolds?: boolean; + autoscroll?: boolean; + }): void; + + // Comparing to other selections + compare(otherSelection: ISelection): any; + } + + interface IDecorationParams { + id?: number; + class: string; + type: any /* string or string[] */; + } + + interface IDecorationStatic { + isType(decorationParams:IDecorationParams, type:any /* string or string[] */):boolean; + new (marker:IDisplayBufferMarker, displayBuffer:IDisplayBuffer, params: IDecorationParams): IDecoration; + } + + interface IDecoration extends Emissary.IEmitter { + marker: IDisplayBufferMarker; + displayBuffer: IDisplayBuffer; + params: IDecorationParams + id: number; + flashQueue: any[]; + isDestroyed: boolean; + + destroy():void; + update(newParams:IDecorationParams):void; + getMarker():IDisplayBufferMarker; + getParams():IDecorationParams; + isType(type:string):boolean; + matchesPattern(decorationPattern:{[key:string]:IDecorationParams;}):boolean; + flash(klass:string, duration?:number):void; + consumeNextFlash():any; + } + + interface IEditor { + // Serializable.includeInto(Editor); + // Delegator.includeInto(Editor); + + deserializing:boolean; + callDisplayBufferCreatedHook:boolean; + registerEditor:boolean; + buffer:TextBuffer.ITextBuffer; + languageMode: ILanguageMode; + cursors:ICursor[]; + selections: ISelection[]; + suppressSelectionMerging:boolean; + updateBatchDepth: number; + selectionFlashDuration: number; + softTabs: boolean; + displayBuffer: IDisplayBuffer; + + id:number; + behaviors:any; + declaredPropertyValues: any; + eventHandlersByEventName: any; + eventHandlersByNamespace: any; + lastOpened: number; + subscriptionCounts: any; + subscriptionsByObject: any; /* WeakMap */ + subscriptions: Emissary.ISubscription[]; + destroy():void; + + mini: any; + + serializeParams():{id:number; softTabs:boolean; scrollTop:number; scrollLeft:number; displayBuffer:any;}; + deserializeParams(params:any):any; + subscribeToBuffer():void; + subscribeToDisplayBuffer():void; + getViewClass():any; // return type are EditorView + destroyed():void; + isDestroyed():boolean; + copy():IEditor; + getTitle():string; + getLongTitle():string; + setVisible(visible:boolean):void; + setMini(mini:any):void; + setScrollTop(scrollTop:any):void; + getScrollTop():number; + setScrollLeft(scrollLeft:any):void; + getScrollLeft():number; + setEditorWidthInChars(editorWidthInChars:any):void; + getSoftWrapColumn():number; + getSoftTabs():boolean; + setSoftTabs(softTabs:boolean):void; + getSoftWrap():boolean; + setSoftWrap(softWrap:any):void; + getTabText():string; + getTabLength():number; + setTabLength(tabLength:any):void; + usesSoftTabs():boolean; + clipBufferPosition(bufferPosition:any):void; + clipBufferRange(range:any):void; + indentationForBufferRow(bufferRow:any):void; + setIndentationForBufferRow(bufferRow:any, newLevel:any, _arg:any):void; + indentLevelForLine(line:any):number; + buildIndentString(number:any):string; + save():void; + saveAs(filePath:any):void; + copyPathToClipboard():void; + getPath():string; + getText():string; + setText(text:any):void; + getTextInRange(range:any):any; + getLineCount():number; + getBuffer():TextBuffer.ITextBuffer; + getURI():string; + isBufferRowBlank(bufferRow:any):boolean; + isBufferRowCommented(bufferRow:any):void; + nextNonBlankBufferRow(bufferRow:any):void; + getEofBufferPosition():TextBuffer.IPoint; + getLastBufferRow():number; + bufferRangeForBufferRow(row:any, options:any):TextBuffer.IRange; + lineForBufferRow(row:number):string; + lineLengthForBufferRow(row:number):number; + scan():any; + scanInBufferRange():any; + backwardsScanInBufferRange():any; + isModified():boolean; + isEmpty():boolean; + shouldPromptToSave():boolean; + screenPositionForBufferPosition(bufferPosition:any, options?:any):TextBuffer.IPoint; + bufferPositionForScreenPosition(screenPosition:any, options?:any):TextBuffer.IPoint; + screenRangeForBufferRange(bufferRange:any):TextBuffer.IRange; + bufferRangeForScreenRange(screenRange:any):TextBuffer.IRange; + clipScreenPosition(screenPosition:any, options:any):TextBuffer.IRange; + lineForScreenRow(row:any):ITokenizedLine; + linesForScreenRows(start?:any, end?:any):ITokenizedLine[]; + getScreenLineCount():number; + getMaxScreenLineLength():number; + getLastScreenRow():number; + bufferRowsForScreenRows(startRow:any, endRow:any):any[]; + bufferRowForScreenRow(row:any):number; + scopesForBufferPosition(bufferPosition:any):string[]; + bufferRangeForScopeAtCursor(selector:string):any; + tokenForBufferPosition(bufferPosition:any):IToken; + getCursorScopes():string[]; + logCursorScope():void; + insertText(text:string, options?:any):TextBuffer.IRange[]; + insertNewline():TextBuffer.IRange[]; + insertNewlineBelow():TextBuffer.IRange[]; + insertNewlineAbove():any; + indent(options?:any):any; + backspace():any[]; + // deprecated backspaceToBeginningOfWord():any[]; + // deprecated backspaceToBeginningOfLine():any[]; + deleteToBeginningOfWord():any[]; + deleteToBeginningOfLine():any[]; + delete():any[]; + deleteToEndOfLine():any[]; + deleteToEndOfWord():any[]; + deleteLine():TextBuffer.IRange[]; + indentSelectedRows():TextBuffer.IRange[][]; + outdentSelectedRows():TextBuffer.IRange[][]; + toggleLineCommentsInSelection():TextBuffer.IRange[]; + autoIndentSelectedRows():TextBuffer.IRange[][]; + normalizeTabsInBufferRange(bufferRange:any):any; + cutToEndOfLine():boolean[]; + cutSelectedText():boolean[]; + copySelectedText():boolean[]; + pasteText(options?:any):TextBuffer.IRange[]; + undo():any[]; + redo():any[]; + foldCurrentRow():any; + unfoldCurrentRow():any[]; + foldSelectedLines():any[]; + foldAll():any[]; + unfoldAll():any[]; + foldAllAtIndentLevel(level:any):any; + foldBufferRow(bufferRow:any):any; + unfoldBufferRow(bufferRow:any):any; + isFoldableAtBufferRow(bufferRow:any):boolean; + isFoldableAtScreenRow(screenRow:any):boolean; + createFold(startRow:any, endRow:any):IFold; + destroyFoldWithId(id:any):any; + destroyFoldsIntersectingBufferRange(bufferRange:any):any; + toggleFoldAtBufferRow(bufferRow:any):any; + isFoldedAtCursorRow():boolean; + isFoldedAtBufferRow(bufferRow:any):boolean; + isFoldedAtScreenRow(screenRow:any):boolean; + largestFoldContainingBufferRow(bufferRow:any):boolean; + largestFoldStartingAtScreenRow(screenRow:any):any; + outermostFoldsInBufferRowRange(startRow:any, endRow:any):any[]; + moveLineUp():ISelection[]; + moveLineDown():ISelection[]; + duplicateLines():any[][]; + // duprecated duplicateLine():any[][]; + mutateSelectedText(fn:(selection:ISelection)=>any):any; + replaceSelectedText(options:any, fn:(selection:string)=>any):any; + decorationsForScreenRowRange(startScreenRow:any, endScreenRow:any):{[id:number]: IDecoration[]}; + decorateMarker(marker:IDisplayBufferMarker, decorationParams: {type:string; class: string;}):IDecoration; + decorationForId(id:number):IDecoration; + getMarker(id:number):IDisplayBufferMarker; + getMarkers():IDisplayBufferMarker[]; + findMarkers(...args:any[]):IDisplayBufferMarker[]; + markScreenRange(...args:any[]):IDisplayBufferMarker; + markBufferRange(...args:any[]):IDisplayBufferMarker; + markScreenPosition(...args:any[]):IDisplayBufferMarker; + markBufferPosition(...args:any[]):IDisplayBufferMarker; + destroyMarker(...args:any[]):boolean; + getMarkerCount():number; + hasMultipleCursors():boolean; + getCursors():ICursor[]; + getCursor():ICursor; + addCursorAtScreenPosition(screenPosition:any):ICursor; + addCursorAtBufferPosition(bufferPosition:any):ICursor; + addCursor(marker:any):ICursor; + removeCursor(cursor:any):ICursor[]; + addSelection(marker:any, options:any):ISelection; + addSelectionForBufferRange(bufferRange:any, options:any):ISelection; + setSelectedBufferRange(bufferRange:any, options:any):any; + setSelectedBufferRanges(bufferRanges:any, options:any):any; + removeSelection(selection:ISelection):any; + clearSelections():boolean; + consolidateSelections():boolean; + selectionScreenRangeChanged(selection:any):void; + getSelections():ISelection[]; + getSelection(index?:number):ISelection; + getLastSelection():ISelection; + getSelectionsOrderedByBufferPosition():ISelection[]; + getLastSelectionInBuffer():ISelection; + selectionIntersectsBufferRange(bufferRange:any):any; + setCursorScreenPosition(position:TextBuffer.IPoint, options?:any):any; + getCursorScreenPosition():TextBuffer.IPoint; + getCursorScreenRow():number; + setCursorBufferPosition(position:any, options?:any):any; + getCursorBufferPosition():TextBuffer.IPoint; + getSelectedScreenRange():TextBuffer.IRange; + getSelectedBufferRange():TextBuffer.IRange; + getSelectedBufferRanges():TextBuffer.IRange[]; + getSelectedText():string; + getTextInBufferRange(range:TextBuffer.IRange):string; + setTextInBufferRange(range:TextBuffer.IRange | any[], text:string):any; + getCurrentParagraphBufferRange():TextBuffer.IRange; + getWordUnderCursor(options?:any):string; + moveCursorUp(lineCount?:number):void; + moveCursorDown(lineCount?:number):void; + moveCursorLeft():void; + moveCursorRight():void; + moveCursorToTop():void; + moveCursorToBottom():void; + moveCursorToBeginningOfScreenLine():void; + moveCursorToBeginningOfLine():void; + moveCursorToFirstCharacterOfLine():void; + moveCursorToEndOfScreenLine():void; + moveCursorToEndOfLine():void; + moveCursorToBeginningOfWord():void; + moveCursorToEndOfWord():void; + moveCursorToBeginningOfNextWord():void; + moveCursorToPreviousWordBoundary():void; + moveCursorToNextWordBoundary():void; + moveCursorToBeginningOfNextParagraph():void; + moveCursorToBeginningOfPreviousParagraph():void; + moveToBottom():void; + scrollToCursorPosition(options:any):any; + pageUp():void; + pageDown():void; + selectPageUp():void; + selectPageDown():void; + getRowsPerPage():number; + moveCursors(fn:(cursor:ICursor)=>any):any; + cursorMoved(event:any):void; + selectToScreenPosition(position:TextBuffer.IPoint):any; + selectRight():ISelection[]; + selectLeft():ISelection[]; + selectUp(rowCount?:number):ISelection[]; + selectDown(rowCount?:number):ISelection[]; + selectToTop():ISelection[]; + selectAll():ISelection[]; + selectToBottom():ISelection[]; + selectToBeginningOfLine():ISelection[]; + selectToFirstCharacterOfLine():ISelection[]; + selectToEndOfLine():ISelection[]; + selectToPreviousWordBoundary():ISelection[]; + selectToNextWordBoundary():ISelection[]; + selectLine():ISelection[]; + selectLinesContainingCursors():ISelection[]; + addSelectionBelow():ISelection[]; + addSelectionAbove():ISelection[]; + splitSelectionsIntoLines():any[]; + transpose():TextBuffer.IRange[]; + upperCase():boolean[]; + lowerCase():boolean[]; + joinLines():any[]; + selectToBeginningOfWord():ISelection[]; + selectToEndOfWord():ISelection[]; + selectToBeginningOfNextWord():ISelection[]; + selectWord():ISelection[]; + selectToBeginningOfNextParagraph():ISelection[]; + selectToBeginningOfPreviousParagraph():ISelection[]; + selectMarker(marker:any):any; + mergeCursors():number[]; + expandSelectionsForward():any; + expandSelectionsBackward(fn:(selection:ISelection)=>any):ISelection[]; + finalizeSelections():boolean[]; + mergeIntersectingSelections():any; + preserveCursorPositionOnBufferReload():Emissary.ISubscription; + getGrammar(): IGrammar; + setGrammar(grammer:IGrammar):void; + reloadGrammar():any; + shouldAutoIndent():boolean; + shouldShowInvisibles():boolean; + updateInvisibles():void; + transact(fn:Function):any; + beginTransaction():ITransaction; + commitTransaction():any; + abortTransaction():any[]; + inspect():string; + logScreenLines(start:number, end:number):any[]; + handleTokenization():void; + handleGrammarChange():void; + handleMarkerCreated(marker:any):any; + getSelectionMarkerAttributes():{type: string; editorId: number; invalidate: string; }; + getVerticalScrollMargin():number; + setVerticalScrollMargin(verticalScrollMargin:number):void; + getHorizontalScrollMargin():number; + setHorizontalScrollMargin(horizontalScrollMargin:number):void; + getLineHeightInPixels():number; + setLineHeightInPixels(lineHeightInPixels:number):void; + batchCharacterMeasurement(fn:Function):void; + getScopedCharWidth(scopeNames:any, char:any):any; + setScopedCharWidth(scopeNames:any, char:any, width:any):any; + getScopedCharWidths(scopeNames:any):any; + clearScopedCharWidths():any; + getDefaultCharWidth():number; + setDefaultCharWidth(defaultCharWidth:number):void; + setHeight(height:number):void; + getHeight():number; + getClientHeight():number; + setWidth(width:number):void; + getWidth():number; + getScrollTop():number; + setScrollTop(scrollTop:number):void; + getScrollBottom():number; + setScrollBottom(scrollBottom:number):void; + getScrollLeft():number; + setScrollLeft(scrollLeft:number):void; + getScrollRight():number; + setScrollRight(scrollRight:number):void; + getScrollHeight():number; + getScrollWidth():number; + getVisibleRowRange():number; + intersectsVisibleRowRange(startRow:any, endRow:any):any; + selectionIntersectsVisibleRowRange(selection:any):any; + pixelPositionForScreenPosition(screenPosition:any):any; + pixelPositionForBufferPosition(bufferPosition:any):any; + screenPositionForPixelPosition(pixelPosition:any):any; + pixelRectForScreenRange(screenRange:any):any; + scrollToScreenRange(screenRange:any, options:any):any; + scrollToScreenPosition(screenPosition:any, options:any):any; + scrollToBufferPosition(bufferPosition:any, options:any):any; + horizontallyScrollable():any; + verticallyScrollable():any; + getHorizontalScrollbarHeight():any; + setHorizontalScrollbarHeight(height:any):any; + getVerticalScrollbarWidth():any; + setVerticalScrollbarWidth(width:any):any; + // deprecated joinLine():any; + + onDidChange(callback: Function): Disposable; + onDidDestroy(callback: Function): Disposable; + onDidStopChanging(callback: Function): Disposable; + onDidChangeCursorPosition(callback: Function): Disposable; + onDidSave(callback: (event: { path: string }) => void): Disposable; + + decorateMarker(marker: Marker, options: any): Decoration; + getLastCursor(): ICursor; + } + + interface IGrammar { + bundledPackage: boolean; + emitter: any; + fileTypes: [string]; + firstLineRegex: any; + foldingStopMarker: any; + includedGrammarScopes: [any]; + initialRule: any; + injectionSelector: any; + injections: any; + maxTokensPerLine: Number; + name: string; + packageName: string; + path: string; + rawPatterns: [any]; + rawRepository: any; + registration: Disposable; + registry: any; + repository: Object; + scopeName: string; + tokenizeLines: (text: string) => any; + // TBD + + } + + interface IGrammars { + grammarForScopeName(scope: string): IGrammar; + } + + interface IPane /* extends Theorist.Model */ { + itemForURI: (uri:string)=>IEditor; + items:any[]; + activeItem:any; + + serializeParams():any; + deserializeParams(params:any):any; + getViewClass():any; // return type are PaneView + isActive():boolean; + isDestroyed():boolean; + focus():void; + blur():void; + activate():void; + getPanes():IPane[]; + getItems():any[]; + getActiveItem():any; + getActiveEditor():any; + itemAtIndex(index:number):any; + activateNextItem():any; + activatePreviousItem():any; + getActiveItemIndex():number; + activateItemAtIndex(index:number):any; + activateItem(item:any):any; + addItem(item:any, index:number):any; + addItems(items:any[], index:number):any[]; + removeItem(item:any, destroying:any):void; + moveItem(item:any, newIndex:number):void; + moveItemToPane(item:any, pane:IPane, index:number):void; + destroyActiveItem():boolean; // always return false + destroyItem(item:any):boolean; + destroyItems():any[]; + destroyInactiveItems():any[]; + destroy():void; + destroyed():any[]; + promptToSaveItem(item:any):boolean; + saveActiveItem():void; + saveActiveItemAs():void; + saveItem(item:any, nextAction:Function):void; + saveItemAs(item:any, nextAction:Function):void; + saveItems():any[]; + activateItemForURI(uri:any):any; + copyActiveItem():void; + splitLeft(params:any):IPane; + splitRight(params:any):IPane; + splitUp(params:any):IPane; + splitDown(params:any):IPane; + split(orientation:string, side:string, params:any):IPane; + findLeftmostSibling():IPane; + findOrCreateRightmostSibling():IPane; + } + + // https://atom.io/docs/v0.84.0/advanced/serialization + interface ISerializationStatic { + deserialize(data:ISerializationInfo):T; + new (data:T): ISerialization; + } + + interface ISerialization { + serialize():ISerializationInfo; + } + + interface ISerializationInfo { + deserializer: string; + } + + interface IBrowserWindow { + getPosition():number[]; + getSize():number[]; + } + + interface IAtomWindowDimentions { + x:number; + y:number; + width:number; + height:number; + } + + interface IProjectStatic { + pathForRepositoryUrl(repoUrl:string):string; + + new (arg?:{path:any; buffers:any[];}):IProject; + } + + interface IProject /* extends Theorist.Model */ { + // Serializable.includeInto(Project); + + path:string; + /** deprecated */ + rootDirectory?:PathWatcher.IDirectory; + rootDirectories:PathWatcher.IDirectory[]; + + serializeParams():any; + deserializeParams(params:any):any; + destroyed():any; + destroyRepo():any; + destroyUnretainedBuffers():any; + getRepo():IGit; + getPath():string; + setPath(projectPath:string):any; + getRootDirectory():PathWatcher.IDirectory; + resolve(uri:string):string; + relativize(fullPath:string):string; + contains(pathToCheck:string):boolean; + open(filePath:string, options?:any):Q.Promise; + openSync(filePath:string, options?:any):IEditor; + getBuffers():TextBuffer.ITextBuffer; + isPathModified(filePath:string):boolean; + findBufferForPath(filePath:string):TextBuffer.ITextBuffer; + bufferForPathSync(filePath:string):TextBuffer.ITextBuffer; + bufferForPath(filePath:string):Q.Promise; + bufferForId(id:any):TextBuffer.ITextBuffer; + buildBufferSync(absoluteFilePath:string):TextBuffer.ITextBuffer; + buildBuffer(absoluteFilePath:string):Q.Promise; + addBuffer(buffer:TextBuffer.ITextBuffer, options?:any):any; + addBufferAtIndex(buffer:TextBuffer.ITextBuffer, index:number, options?:any):any; + scan(regex:any, options:any, iterator:any):Q.Promise; + replace(regex:any, replacementText:any, filePaths:any, iterator:any):Q.Promise; + buildEditorForBuffer(buffer:any, editorOptions:any):IEditor; + eachBuffer(...args:any[]):any; + + onDidChangePaths(callback: Function): Disposable; + } + + interface IWorkspaceStatic { + new():IWorkspace; + } + + interface IWorkspacePanelOptions{ + item:any; + visible?:boolean; + priority?:number; + } + + interface Panel{ + getItem():any; + getPriority():any; + isVisible():boolean; + show():void; + hide():void; + } + + interface IWorkspace { + addBottomPanel(options:IWorkspacePanelOptions):Panel; + addLeftPanel(options:IWorkspacePanelOptions):Panel; + addRightPanel(options:IWorkspacePanelOptions):Panel; + addTopPanel(options:IWorkspacePanelOptions):Panel; + addModalPanel(options:IWorkspacePanelOptions):Panel; + addOpener(opener: Function): any; + + deserializeParams(params:any):any; + serializeParams():{paneContainer:any;fullScreen:boolean;}; + eachEditor(callback: Function): void; + getTextEditors():IEditor[]; + open(uri:string, options:any):Q.Promise; + openLicense():void; + openSync(uri:string, options:any):any; + openUriInPane(uri: string, pane: any, options: any): Q.Promise; + observeTextEditors(callback: Function): Disposable; + reopenItemSync():any; + registerOpener(opener:(urlToOpen:string)=>any):void; + unregisterOpener(opener:Function):void; + getOpeners():any; + getActivePane(): IPane; + getActivePaneItem(): IPane; + getActiveTextEditor(): IEditor; + getPanes():any; + saveAll():void; + activateNextPane():any; + activatePreviousPane():any; + paneForURI: (uri:string) => IPane; + saveActivePaneItem():any; + saveActivePaneItemAs():any; + destroyActivePaneItem():any; + destroyActivePane():any; + getActiveEditor():IEditor; + increaseFontSize():void; + decreaseFontSize():void; + resetFontSize():void; + itemOpened(item:any):void; + onPaneItemDestroyed(item:any):void; + destroyed():void; + isTextEditor(object: any): boolean; + + onDidChangeActivePaneItem(item:any):Disposable; + } + + interface IAtomSettings { + appVersion: string; + bootstrapScript: string; + devMode: boolean; + initialPath: string; + pathToOpen: string; + resourcePath: string; + shellLoadTime: number; + windowState:string; + } + + interface IAtomState { + mode:string; + packageStates:any; + project:any; + syntax:any; + version:number; + windowDimensions:any; + workspace:any; + } + + interface IDeserializerManager { + deserializers:Function; + add:Function; + remove:Function; + deserialize:Function; + get:Function; + } + + interface IColorlike { + red: number; + green: number; + blue: number; + alpha: number; + } + + class Color { + public static parse(value:string): Color + public static parse(value:IColorlike): Color + public toHexString(): string + public toRGBAString(): string + } + + interface IConfigGetOptions { + sources?:Array; + excludeSources?:Array; + scope?:ScopeDescriptor; + } + + interface IConfigSetOptions { + scopeSelector?:string; + source?:string; + } + + interface IConfigObserveOptions { + scope?:ScopeDescriptor; + } + + interface IConfigChangeEvent { + newValue:T; + oldValue:T; + } + + type ConfigSetting = string | number | boolean | Color | IConfigArray | IConfigObject + + interface IConfigArray extends Array { } + + interface IConfigObject { [key: string]: ConfigSetting } + + interface IConfig { + get(keyPath:string, options?:IConfigGetOptions):ConfigSetting; + set(keyPath:string, value:ConfigSetting, options?:IConfigSetOptions):boolean; + unset(keyPath:string, options?:IConfigSetOptions):void; + observe(keyPath:string, options?:IConfigObserveOptions, callback?:(value:ConfigSetting) => void):Disposable; + onDidChange(keyPath?:string, options?:IConfigObserveOptions, callback?:(event:IConfigChangeEvent) => void):Disposable; + } + + interface IKeymapManager { + defaultTarget:HTMLElement; + // TBD + } + + interface IPackage { + mainModulePath: string; + mainModule: any; + enable(): void; + disable(): void; + isTheme(): boolean; + getType(): string; + getStylesheetType(): string; + load(): IPackage; + reset(): void; + activate(): Q.Promise; + activateNow(): void; + // TBD + } + + interface IPackageManager extends Emissary.IEmitter { + packageDirPaths:string[]; + loadedPackages:any; + activePackages:any; + packageStates:any; + packageActivators:any[]; + + getApmPath():string; + getPackageDirPaths():string; + getPackageState(name:string):any; + setPackageState(name:string, state:any):void; + enablePackage(name:string):any; + disablePackage(name:string):any; + activate():void; + registerPackageActivator(activator:any, types:any):void; + activatePackages(packages:any):void; + activatePackage(name:string):Q.Promise; + deactivatePackages():void; + deactivatePackage(name:string):void; + getActivePackages():any; + getActivePackage(name:string):any; + isPackageActive(name:string):boolean; + unobserveDisabledPackages():void; + observeDisabledPackages():void; + loadPackages():void; + loadPackage(nameOrPath:string):void; + unloadPackages():void; + unloadPackage(name:string):void; + getLoadedPackage(name:string):any; + isPackageLoaded(name:string):boolean; + getLoadedPackages():any; + getLoadedPackagesForTypes(types:any):any[]; + resolvePackagePath(name:string):string; + isPackageDisabled(name:string):boolean; + hasAtomEngine(packagePath:string):boolean; + isBundledPackage(name:string):boolean; + getPackageDependencies():any; + getAvailablePackagePaths():any[]; + getAvailablePackageNames():any[]; + getAvailablePackageMetadata():any[]; + } + + interface INotifications { + addInfo: Function; + addError: Function; + addSuccess: Function; + addWarning: Function; + } + + interface IThemeManager { + // TBD + } + + interface IContextMenuManager { + // TBD + } + + interface IMenuManager { + // TBD + } + + interface IClipboard { + write(text:string, metadata?:any):any; + read():string; + } + + interface ISyntax { + // TBD + } + + interface IWindowEventHandler { + // TBD + } + + interface IAtomStatic extends ISerializationStatic { + version: number; + loadSettings: IAtomSettings; + + /* Load or create the Atom environment in the given mode */ + loadOrCreate(mode:'editor'):IAtom; + /* Load or create the Atom environment in the given mode */ + loadOrCreate(mode:'spec'):IAtom; + /* Load or create the Atom environment in the given mode */ + loadOrCreate(mode:string):IAtom; + + loadState(mode:any):void; + getStatePath(mode:any):string; + getConfigDirPath():string; + getStorageDirPath():string; + getLoadSettings():IAtomSettings; + getCurrentWindow():IBrowserWindow; + getVersion():string; + isReleasedVersion():boolean; + + new(state:IAtomState):IAtom; + } + + class Disposable { + constructor(disposalAction:any) + static isDisposable(object: any): boolean + dispose():void + } + + class CompositeDisposable { + constructor(... disposables: Array) + clear():void + dispose():void + add(... disposables: Array): void + remove(disposable: Disposable): void + delete(disposable: Disposable): void + } + + // https://atom.io/docs/api/v0.106.0/api/classes/Atom.html + /* Global Atom class : instance members */ + interface IAtom { + constructor:IAtomStatic; + + state:IAtomState; + mode:string; + deserializers:IDeserializerManager; + config: IConfig; + commands: ICommandRegistry; + grammars: IGrammars; + keymaps: IKeymapManager; + keymap: IKeymapManager; + packages: IPackageManager; + themes: IThemeManager; + contextManu: IContextMenuManager; + menu: IMenuManager; + notifications: INotifications; // https://github.com/atom/notifications + clipboard:IClipboard; + syntax:ISyntax; + views: IViewRegistry; + windowEventHandler: IWindowEventHandler; + + // really exists? start + subscribe:Function; + unsubscribe:Function; + loadTime:number; + workspaceViewParentSelector:string; + + project: IProject; + workspaceView: IWorkspaceView; + workspace: IWorkspace; + // really exists? end + + initialize:Function; + // registerRepresentationClass:Function; + // registerRepresentationClasses:Function; + setBodyPlatformClass:Function; + getCurrentWindow():IBrowserWindow; + getWindowDimensions:Function; + setWindowDimensions:Function; + restoreWindowDimensions:Function; + storeWindowDimensions:Function; + getLoadSettings:Function; + deserializeProject: Function; + deserializeWorkspaceView:Function; + deserializePackageStates:Function; + deserializeEditorWindow:Function; + startEditorWindow:Function; + unloadEditorWindow:Function; + loadThemes:Function; + watchThemes:Function; + open:Function; + confirm:Function; + showSaveDialog:Function; + showSaveDialogSync:Function; + openDevTools:Function; + toggleDevTools:Function; + executeJavaScriptInDevTools:Function; + reload:Function; + focus:Function; + show:Function; + hide:Function; + setSize:Function; + setPosition:Function; + center:Function; + displayWindow:Function; + close:Function; + exit:Function; + inDevMode:Function; + inSpecMode:Function; + toggleFullScreen:Function; + setFullScreen:Function; + isFullScreen:Function; + getVersion:Function; + isReleasedVersion:Function; + getGitHubAuthTokenName:Function; + setGitHubAuthToken:Function; + getGitHubAuthToken:Function; + getConfigDirPath:Function; + saveSync:Function; + getWindowLoadTime():number; + crashMainProcess:Function; + crashRenderProcess:Function; + beep:Function; + getUserInitScriptPath:Function; + requireUserInitScript:Function; + requireWithGlobals:Function; + + services: any; // TODO: New services api + } + + interface IBufferedNodeProcessStatic { + new (arg:any):IBufferedNodeProcess; + } + + interface IBufferedNodeProcess extends IBufferedProcess { + } + + interface IBufferedProcessStatic { + new (arg:any):IBufferedProcess; + } + + interface IBufferedProcess { + process:Function; + killed:boolean; + + bufferStream:Function; + kill:Function; + } + + interface IGitStatic { + new(path:any, options:any):IGit; + } + + interface IGit { + } + + interface ITokenizedBuffer { + // TBD + } + + interface ITokenizedLine { + // TBD + } + + interface IToken { + // TBD + } + + interface IFoldStatic { + new (displayBuffer:IDisplayBuffer, marker:IMarker):IFold; + // TBD + } + + interface IFold { + id:number; + displayBuffer:IDisplayBuffer; + marker:IMarker; + + // TBD + } + + interface IDisplayBufferMarkerStatic { + new (_arg:{bufferMarker:IMarker; displayBuffer: IDisplayBuffer}):IDisplayBufferMarker; + } + + interface IDisplayBufferMarker extends Emissary.IEmitter, Emissary.ISubscriber { + constructor:IDisplayBufferMarkerStatic; + + id: number; + + bufferMarkerSubscription:any; + oldHeadBufferPosition:TextBuffer.IPoint; + oldHeadScreenPosition:TextBuffer.IPoint; + oldTailBufferPosition:TextBuffer.IPoint; + oldTailScreenPosition:TextBuffer.IPoint; + wasValid:boolean; + + bufferMarker: IMarker; + displayBuffer: IDisplayBuffer; + globalPauseCount:number; + globalQueuedEvents:any; + + subscriptions:Emissary.ISubscription[]; + subscriptionsByObject:any; // WeakMap + + copy(attributes?:any /* maybe IMarker */):IDisplayBufferMarker; + getScreenRange():TextBuffer.IRange; + setScreenRange(screenRange:any, options:any):any; + getBufferRange():TextBuffer.IRange; + setBufferRange(bufferRange:any, options:any):any; + getPixelRange():any; + getHeadScreenPosition():TextBuffer.IPoint; + setHeadScreenPosition(screenPosition:any, options:any):any; + getHeadBufferPosition():TextBuffer.IPoint; + setHeadBufferPosition(bufferPosition:any):any; + getTailScreenPosition():TextBuffer.IPoint; + setTailScreenPosition(screenPosition:any, options:any):any; + getTailBufferPosition():TextBuffer.IPoint; + setTailBufferPosition(bufferPosition:any):any; + plantTail():boolean; + clearTail():boolean; + hasTail():boolean; + isReversed():boolean; + isValid():boolean; + isDestroyed():boolean; + getAttributes():any; + setAttributes(attributes:any):any; + matchesAttributes(attributes:any):any; + destroy():any; + isEqual(other:IDisplayBufferMarker):boolean; + compare(other:IDisplayBufferMarker):boolean; + inspect():string; + destroyed():any; + notifyObservers(_arg:any):any; + } + + interface ITransaction { + // TBD + } + + interface IMarker extends Emissary.IEmitter { + // Serializable.includeInto(Editor); + // Delegator.includeInto(Editor); + + // TBD + } + + interface ITaskStatic { + new(taskPath:any):ITask; + } + + interface ITask { + // TBD + } +} + +declare var atom:AtomCore.IAtom; + +declare module "atom" { + import spacePen = require("space-pen"); + import Q = require("q"); + + var $:typeof spacePen.$; + var $$:typeof spacePen.$$; + var $$$:typeof spacePen.$$$; + + var BufferedNodeProcess:AtomCore.IBufferedNodeProcessStatic; + var BufferedProcess:AtomCore.IBufferedProcessStatic; + var Git:AtomCore.IGitStatic; + var Point:TextBuffer.IPointStatic; + var Range:TextBuffer.IRangeStatic; + + class View extends spacePen.View implements Emissary.ISubscriber { + // Subscriber.includeInto(spacePen.View); + + // inherit from Subscriber + subscribeWith(eventEmitter:any, methodName:string, args:any):any; + + addSubscription(subscription:any):any; + + subscribe(eventEmitterOrSubscription:any, ...args:any[]):any; + + subscribeToCommand(eventEmitter:any, ...args:any[]):any; + + unsubscribe(object?:any):any; + } + + class EditorView extends View { + static characterWidthCache:any; + static configDefaults:any; + static nextEditorId:number; + + static content(params:any):void; + + static classes(_arg?:{mini?:any}):string; + + vScrollMargin:number; + hScrollMargin:number; + lineHeight:any; + charWidth:any; + charHeight:any; + cursorViews:any[]; + selectionViews:any[]; + lineCache:any[]; + isFocused:any; + editor:AtomCore.IEditor; + attached:any; + lineOverdraw:number; + pendingChanges:any[]; + newCursors:any[]; + newSelections:any[]; + redrawOnReattach:any; + bottomPaddingInLines:number; + active:boolean; + + id:number; + + gutter:AtomCore.IGutterView; + overlayer:JQuery; + scrollView:JQuery; + renderedLines:JQuery; + underlayer:JQuery; + hiddenInput:JQuery; + verticalScrollbar:JQuery; + verticalScrollbarContent:JQuery; + + constructor(editor:AtomCore.IEditor); + + initialize(editorOrOptions:AtomCore.IEditor):void; // return type are same as editor method. + initialize(editorOrOptions?:{editor: AtomCore.IEditor; mini:any; placeholderText:any}):void; + + initialize(editorOrOptions:{}):void; // compatible for spacePen.View + + bindKeys():void; + + getEditor():AtomCore.IEditor; + + getText():string; + + setText(text:string):void; + + insertText(text:string, options?:any):TextBuffer.IRange[]; + + setHeightInLines(heightInLines:number):number; + + setWidthInChars(widthInChars:number):number; + + pageDown():void; + + pageUp():void; + + getPageRows():number; + + setShowInvisibles(showInvisibles:boolean):void; + + setInvisibles(invisibles:{ eol:string; space: string; tab: string; cr: string; }):void; + + setShowIndentGuide(showIndentGuide:boolean):void; + + setPlaceholderText(placeholderText:string):void; + + getPlaceholderText():string; + + checkoutHead():boolean; + + configure():Emissary.ISubscription; + + handleEvents():void; + + handleInputEvents():void; + + bringHiddenInputIntoView():JQuery; + + selectOnMousemoveUntilMouseup():any; + + afterAttach(onDom:any):any; + + edit(editor:AtomCore.IEditor):any; + + getModel():AtomCore.IEditor; + + setModel(editor:AtomCore.IEditor):any; + + showBufferConflictAlert(editor:AtomCore.IEditor):any; + + scrollTop(scrollTop:number, options?:any):any; + + scrollBottom(scrollBottom?:number):any; + + scrollLeft(scrollLeft?:number):number; + + scrollRight(scrollRight?:number):any; + + scrollToBottom():any; + + scrollToCursorPosition():any; + + scrollToBufferPosition(bufferPosition:any, options:any):any; + + scrollToScreenPosition(screenPosition:any, options:any):any; + + scrollToPixelPosition(pixelPosition:any, options:any):any; + + highlightFoldsContainingBufferRange(bufferRange:any):any; + + saveScrollPositionForEditor():any; + + toggleSoftTabs():any; + + toggleSoftWrap():any; + + calculateWidthInChars():number; + + calculateHeightInLines():number; + + getScrollbarWidth():number; + + setSoftWrap(softWrap:boolean):any; + + setFontSize(fontSize:number):any; + + getFontSize():number; + + setFontFamily(fontFamily?:string):any; + + getFontFamily():string; + + setLineHeight(lineHeight:number):any; + + redraw():any; + + splitLeft():any; + + splitRight():any; + + splitUp():any; + + splitDown():any; + + getPane():any; // return type are PaneView + + remove(selector:any, keepData:any):any; + + beforeRemove():any; + + getCursorView(index?:number):any; // return type are CursorView + + getCursorViews():any[]; // return type are CursorView[] + + addCursorView(cursor:any, options:any):any; // return type are CursorView + + removeCursorView(cursorView:any):any; + + getSelectionView(index?:number):any; // return type are SelectionView + + getSelectionViews():any[]; // return type are SelectionView[] + + addSelectionView(selection:any):any; + + removeSelectionView(selectionView:any):any; + + removeAllCursorAndSelectionViews():any[]; + + appendToLinesView(view:any):any; + + scrollVertically(pixelPosition:any, _arg:any):any; + + scrollHorizontally(pixelPosition:any):any; + + calculateDimensions():number; + + recalculateDimensions():any; + + updateLayerDimensions():any; + + isHidden():boolean; + + clearRenderedLines():void; + + resetDisplay():any; + + requestDisplayUpdate():any; + + updateDisplay(options?:any):any; + + updateCursorViews():any; + + shouldUpdateCursor(cursorView:any):any; + + updateSelectionViews():any[]; + + shouldUpdateSelection(selectionView:any):any; + + syncCursorAnimations():any[]; + + autoscroll(suppressAutoscroll?:any):any[]; + + updatePlaceholderText():any; + + updateRenderedLines(scrollViewWidth:any):any; + + computeSurroundingEmptyLineChanges(change:any):any; + + computeIntactRanges(renderFrom:any, renderTo:any):any; + + truncateIntactRanges(intactRanges:any, renderFrom:any, renderTo:any):any; + + clearDirtyRanges(intactRanges:any):any; + + clearLine(lineElement:any):any; + + fillDirtyRanges(intactRanges:any, renderFrom:any, renderTo:any):any; + + updatePaddingOfRenderedLines():any; + + getFirstVisibleScreenRow():number; + + getLastVisibleScreenRow():number; + + isScreenRowVisible():boolean; + + handleScreenLinesChange(change:any):any; + + buildLineElementForScreenRow(screenRow:any):any; + + buildLineElementsForScreenRows(startRow:any, endRow:any):any; + + htmlForScreenRows(startRow:any, endRow:any):any; + + htmlForScreenLine(screenLine:any, screenRow:any):any; + + buildIndentation(screenRow:any, editor:any):any; + + buildHtmlEndOfLineInvisibles(screenLine:any):any; + + getEndOfLineInvisibles(screenLine:any):any; + + lineElementForScreenRow(screenRow:any):any; + + toggleLineCommentsInSelection():any; + + pixelPositionForBufferPosition(position:any):any; + + pixelPositionForScreenPosition(position:any):any; + + positionLeftForLineAndColumn(lineElement:any, screenRow:any, screenColumn:any):any; + + measureToColumn(lineElement:any, tokenizedLine:any, screenColumn:any):any; + + getCharacterWidthCache(scopes:any, char:any):any; + + setCharacterWidthCache(scopes:any, char:any, val:any):any; + + clearCharacterWidthCache():any; + + pixelOffsetForScreenPosition(position:any):any; + + screenPositionFromMouseEvent(e:any):any; + + highlightCursorLine():any; + + copyPathToClipboard():any; + + buildLineHtml(_arg:any):any; + + updateScopeStack(line:any, scopeStack:any, desiredScopes:any):any; + + pushScope(line:any, scopeStack:any, scope:any):any; + + popScope(line:any, scopeStack:any):any; + + buildEmptyLineHtml(showIndentGuide:any, eolInvisibles:any, htmlEolInvisibles:any, indentation:any, editor:any, mini:any):any; + + replaceSelectedText(replaceFn:(str:string)=>string):any; + + consolidateSelections(e:any):any; + + logCursorScope():any; + + logScreenLines(start:any, end:any):any; + + logRenderedLines():any; + } + + class ScrollView extends View { + // TBD + } + + interface ISelectListItem { + /** e.g. application:about */ + eventName:string; + /** e.g. Application: About */ + eventDescription:string; + } + + class SelectListView extends View { + static content():any; + + maxItems:number; + scheduleTimeout:any; + inputThrottle:number; + cancelling:boolean; + items:any[]; + list:JQuery; + filterEditorView: JQuery; + + previouslyFocusedElement:JQuery; + + initialize():any; + + schedulePopulateList():number; + + setItems(items:any[]):any; + + setError(message?:string):any; + + setLoading(message?:string):any; + + getFilterQuery():string; + + populateList():any; + + getEmptyMessage(itemCount?:any, filteredItemCount?:any):string; + + setMaxItems(maxItems:number):void; + + selectPreviousItemView():any; + + selectNextItemView():any; + + selectItemView(view:any):any; + + scrollToItemView(view:any):any; + + getSelectedItemView():any; + + getSelectedItem():any; + + confirmSelection():any; + + viewForItem(item:any):JQuery|string|HTMLElement|View; // You must override this method! + confirmed(item:any):any; // You must override this method! + getFilterKey():any; + + focusFilterEditor():any; + + storeFocusedElement():any; + + restoreFocus():any; + + cancelled():any; + + cancel():any; + } + + class Disposable extends AtomCore.Disposable { } + class CompositeDisposable extends AtomCore.CompositeDisposable { } + + var WorkspaceView:AtomCore.IWorkspaceViewStatic; + + var Task:AtomCore.ITaskStatic; + var Workspace:AtomCore.IWorkspaceStatic; +} diff --git a/types/atom/v0/tsconfig.json b/types/atom/v0/tsconfig.json new file mode 100644 index 0000000000..11d6a6ea93 --- /dev/null +++ b/types/atom/v0/tsconfig.json @@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "atom": [ "atom/v0" ], + "pathwatcher": [ "pathwatcher/v0" ], + "q": [ "q/v0" ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "api-docs.d.ts", + "atom-tests.ts" + ] +} diff --git a/types/auth0-js/index.d.ts b/types/auth0-js/index.d.ts index 37914e887f..fa6d6d85bf 100644 --- a/types/auth0-js/index.d.ts +++ b/types/auth0-js/index.d.ts @@ -187,7 +187,7 @@ export class WebAuth { * * @param {AuthorizeOptions} options: https://auth0.com/docs/api/authentication#!#get--authorize_db */ - authorize(options: AuthorizeOptions): void; + authorize(options?: AuthorizeOptions): void; /** * Parse the url hash and extract the returned tokens depending on the transaction. diff --git a/types/auth0-lock/tslint.json b/types/auth0-lock/tslint.json index 51b68d9fc6..a4c0aed57a 100644 --- a/types/auth0-lock/tslint.json +++ b/types/auth0-lock/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { "only-arrow-functions": false, + "no-declare-current-package": false, "no-misused-new": false, "no-single-declare-module": false, "prefer-method-signature": false, diff --git a/types/aws-iot-device-sdk/aws-iot-device-sdk-tests.ts b/types/aws-iot-device-sdk/aws-iot-device-sdk-tests.ts index 10eeed099d..bcb407c352 100644 --- a/types/aws-iot-device-sdk/aws-iot-device-sdk-tests.ts +++ b/types/aws-iot-device-sdk/aws-iot-device-sdk-tests.ts @@ -68,6 +68,8 @@ const thingShadows = new awsIot.thingShadow({ (err: Error, failedTopics: mqtt.Granted[]) => { } ); + thingShadows.subscribe("topic", {}, (error: any, granted: mqtt.Granted) => {}); + thingShadows.on("connect", function() { console.log("connected to AWS IoT"); }); diff --git a/types/aws-iot-device-sdk/index.d.ts b/types/aws-iot-device-sdk/index.d.ts index b165089f82..4844ae9012 100644 --- a/types/aws-iot-device-sdk/index.d.ts +++ b/types/aws-iot-device-sdk/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for aws-iot-device-sdk 1.0.13 // Project: https://github.com/aws/aws-iot-device-sdk-js // Definitions by: Markus Olsson +// Margus Lamp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -100,7 +101,7 @@ export interface DeviceOptions extends mqtt.ClientOptions { * additional options to the underlying WebSocket object; * these options are documented here. */ - websocketOptions?: WebSocket.IClientOptions; + websocketOptions?: WebSocket.ClientOptions; /** * used to specify the Access Key ID when protocol is set to "wss". @@ -333,8 +334,7 @@ export class thingShadow extends NodeJS.EventEmitter { * @param options * @param callback */ - publish(topic: string, message: Buffer, options?: mqtt.ClientPublishOptions, callback?: Function): mqtt.Client; - publish(topic: string, message: string, options?: mqtt.ClientPublishOptions, callback?: Function): mqtt.Client; + publish(topic: string, message: Buffer | string, options?: mqtt.ClientPublishOptions, callback?: Function): mqtt.Client; /** * Subscribe to a topic or topics @@ -342,9 +342,7 @@ export class thingShadow extends NodeJS.EventEmitter { * @param the options to subscribe with * @param callback fired on suback */ - subscribe(topic: string, options?: mqtt.ClientSubscribeOptions, callback?: mqtt.ClientSubscribeCallback): mqtt.Client; - subscribe(topic: string[], options?: mqtt.ClientSubscribeOptions, callback?: mqtt.ClientSubscribeCallback): mqtt.Client; - subscribe(topic: mqtt.Topic, options?: mqtt.ClientSubscribeOptions, callback?: mqtt.ClientSubscribeCallback): mqtt.Client; + subscribe(topic: string | string[] | mqtt.Topic, options?: mqtt.ClientSubscribeOptions, callback?: mqtt.ClientSubscribeCallback): mqtt.Client; /** * Unsubscribe from a topic or topics @@ -353,8 +351,7 @@ export class thingShadow extends NodeJS.EventEmitter { * @param options * @param callback fired on unsuback */ - unsubscribe(topic: string, options?: mqtt.ClientSubscribeOptions, callback?: mqtt.ClientSubscribeCallback): mqtt.Client; - unsubscribe(topic: string[], options?: mqtt.ClientSubscribeOptions, callback?: mqtt.ClientSubscribeCallback): mqtt.Client; + unsubscribe(topic: string | string[], options?: mqtt.ClientSubscribeOptions, callback?: mqtt.ClientSubscribeCallback): mqtt.Client; /** * end - close connection diff --git a/types/axios-mock-adapter/axios-mock-adapter-tests.ts b/types/axios-mock-adapter/axios-mock-adapter-tests.ts new file mode 100644 index 0000000000..83fb345cd0 --- /dev/null +++ b/types/axios-mock-adapter/axios-mock-adapter-tests.ts @@ -0,0 +1,113 @@ +import axios from "axios"; +import MockAdapter = require("axios-mock-adapter"); + +const instance = axios.create(); +const mock = new MockAdapter(instance); + +namespace AllowsConstructing { + new MockAdapter(instance); +} + +namespace AllowsConstructingWithOptions { + new MockAdapter(instance, { + delayResponse: 2000, + }); +} + +namespace ExposesAdapter { + mock.adapter(); +} + +namespace SupportsReset { + mock.reset(); +} + +namespace SupportsRestore { + mock.restore(); +} + +namespace SupportsAllHttpVerbs { + mock.onGet; + mock.onPost; + mock.onPut; + mock.onHead; + mock.onDelete; + mock.onPatch; +} + +namespace SupportsAnyVerb { + mock.onAny; +} + +namespace AllowsVerbOnlyMatcher { + mock.onGet(); +} + +namespace AllowsUrlMatcher { + mock.onGet("/foo"); +} + +namespace AllowsUrlRegExpMatcher { + mock.onGet(/\/fo+/); +} + +namespace AllowsStringBodyMatcher { + mock.onPatch("/foo", "bar"); +} + +namespace AllowsBodyMatcher { + mock.onGet("/foo", { + id: 4, + name: "foo", + }); +} + +namespace AllowsParameterMatcher { + mock.onGet("/foo", { + params: { + searchText: "John", + }, + }); +} + +namespace AllowsReplyWithStatus { + mock.onGet().reply(200); +} + +namespace SupportsReplyOnce { + mock.onGet().replyOnce(200); +} + +namespace SupportsPassThrough { + mock.onGet().passThrough(); +} + +namespace SupportsTimeout { + mock.onGet().timeout(); +} + +namespace AllowsFunctionReply { + mock.onGet().reply((config) => { + return [ + 200, + { data: "foo" }, + { RequestedURL: config.url }, + ]; + }); +} + +namespace AllowsPromiseReply { + mock.onGet().reply((config) => { + return Promise.resolve([ + 200, + { data: "bar" }, + { RequestedURL: config.url }, + ]); + }); +} + +namespace SupportsChanining { + mock + .onGet("/users").reply(200, [/* users */]) + .onGet("/posts").reply(200, [/* posts */]); +} diff --git a/types/axios-mock-adapter/index.d.ts b/types/axios-mock-adapter/index.d.ts new file mode 100644 index 0000000000..dbc37f1b80 --- /dev/null +++ b/types/axios-mock-adapter/index.d.ts @@ -0,0 +1,51 @@ +// Type definitions for axios-mock-adapter 1.9 +// Project: https://github.com/ctimmerm/axios-mock-adapter +// Definitions by: Tomasz Kryskiewicz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version 2.1 + +import { AxiosAdapter, AxiosInstance, AxiosRequestConfig } from "axios"; + +type CallbackResponseSpecFunc = (config: AxiosRequestConfig) => any[] | Promise; + +type ResponseSpecFunc = (statusOrCallback: number | CallbackResponseSpecFunc, data?: any, headers?: any) => MockAdapter; + +interface RequestHandler { + reply: ResponseSpecFunc; + replyOnce: ResponseSpecFunc; + + passThrough(): void; + networkError(): void; + timeout(): void; +} + +interface MockAdapterOptions { + delayResponse?: number; +} + +interface RequestDataMatcher { + [index: string]: any; + params?: { + [index: string]: any, + }; +} + +type RequestMatcherFunc = (matcher?: string | RegExp, body?: string | RequestDataMatcher) => RequestHandler; + +declare class MockAdapter { + constructor(axiosInstance: AxiosInstance, options?: MockAdapterOptions); + + adapter(): AxiosAdapter; + reset(): void; + restore(): void; + + onGet: RequestMatcherFunc; + onPost: RequestMatcherFunc; + onPut: RequestMatcherFunc; + onHead: RequestMatcherFunc; + onDelete: RequestMatcherFunc; + onPatch: RequestMatcherFunc; + onAny: RequestMatcherFunc; +} + +export = MockAdapter; diff --git a/types/axios-mock-adapter/package.json b/types/axios-mock-adapter/package.json new file mode 100644 index 0000000000..bd5a40b16d --- /dev/null +++ b/types/axios-mock-adapter/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "axios": "^0.16.2" + } +} diff --git a/types/axios-mock-adapter/tsconfig.json b/types/axios-mock-adapter/tsconfig.json new file mode 100644 index 0000000000..d03b805201 --- /dev/null +++ b/types/axios-mock-adapter/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "baseUrl": "../", + "types": [], + "typeRoots": [ + "../" + ], + "module": "commonjs", + "lib": [ + "es6" + ], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true + }, + "files": [ + "index.d.ts", + "axios-mock-adapter-tests.ts" + ] +} diff --git a/types/axios-mock-adapter/tslint.json b/types/axios-mock-adapter/tslint.json new file mode 100644 index 0000000000..1f85ae1a3b --- /dev/null +++ b/types/axios-mock-adapter/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "no-namespace": false + } +} diff --git a/types/b_/b_-tests.ts b/types/b_/b_-tests.ts index c0a92a4c7d..3679b34bb7 100644 --- a/types/b_/b_-tests.ts +++ b/types/b_/b_-tests.ts @@ -27,7 +27,8 @@ const parameterizedB_ = b_.B({ modSeparator: "_", modValueSeparator: "-", classSeparator: " ", - isFullModifier: true + isFullModifier: true, + isFullBoolValue: true }); const parameterizedBlockClass: string = parameterizedB_("block"); diff --git a/types/b_/index.d.ts b/types/b_/index.d.ts index fe59f2d72e..664af391a1 100644 --- a/types/b_/index.d.ts +++ b/types/b_/index.d.ts @@ -10,6 +10,7 @@ interface Options { modValueSeparator?: string; classSeparator?: string; isFullModifier?: boolean; + isFullBoolValue?: boolean; } interface Mods { diff --git a/types/backbone.marionette/backbone.marionette-tests.ts b/types/backbone.marionette/backbone.marionette-tests.ts index 23a037d49c..f57e9e2edc 100644 --- a/types/backbone.marionette/backbone.marionette-tests.ts +++ b/types/backbone.marionette/backbone.marionette-tests.ts @@ -59,12 +59,11 @@ class MyApplication extends Marionette.Application { this.layoutView.addRegion('main', this.mainRegion); this.layoutView.render(); this.layoutView.showChildView('main', new MyView(new MyModel())); - let view: Backbone.View = this.layoutView.getChildView('main'); - let regions: {[key: string]: Marionette.Region} = this.layoutView.getRegions(); - let region: Marionette.Region = this.layoutView.removeRegion('main'); - let layout: Marionette.View = this.layoutView.destroy(); + const view: Backbone.View = this.layoutView.getChildView('main'); + const regions: {[key: string]: Marionette.Region} = this.layoutView.getRegions(); + const region: Marionette.Region = this.layoutView.removeRegion('main'); + const layout: Marionette.View = this.layoutView.destroy(); - let prefix: string; if (typeof this.layoutView.childViewEventPrefix === 'string') { this.layoutView.childViewEventPrefix; } @@ -127,7 +126,7 @@ class MyView extends Marionette.View { } template() { - return '

' + this.model.getName() + '

'; + return `

${this.model.getName()}

`; } } @@ -216,12 +215,12 @@ function ApplicationTests() { app.start(); - let view = new MyView(new MyModel()); + const view = new MyView(new MyModel()); app.mainRegion.show(view); } function ObjectTests() { - let obj = new MyObject(); + const obj = new MyObject(); console.log(obj.getOption('name')); obj.destroy('goodbye'); } @@ -238,7 +237,7 @@ function RegionTests() { myView = new MyView(new MyModel()); app.mainRegion.show(myView, { preventDestroy: true }); - let hasView: boolean = app.mainRegion.hasView(); + const hasView: boolean = app.mainRegion.hasView(); app.mainRegion.reset(); @@ -268,11 +267,11 @@ function ViewTests() { } function CollectionViewTests() { - let cv = new MyCollectionView(); + const cv = new MyCollectionView(); cv.collection.add(new MyModel()); app.mainRegion.show(cv); cv.emptyView = MyView; - let view: Marionette.CollectionView = cv.destroy(); + const view: Marionette.CollectionView = cv.destroy(); } class MyController { @@ -282,8 +281,8 @@ class MyController { } function AppRouterTests() { - let myController = new MyController(); - let router = new MyRouter(); + const myController = new MyController(); + const router = new MyRouter(); router.appRoute('/foo', 'fooThat'); diff --git a/types/backbone.marionette/index.d.ts b/types/backbone.marionette/index.d.ts index 5292a4bfe7..be3dfd8582 100644 --- a/types/backbone.marionette/index.d.ts +++ b/types/backbone.marionette/index.d.ts @@ -9,11 +9,10 @@ import * as JQuery from 'jquery'; import * as Radio from 'backbone.radio'; export as namespace Marionette; -export = Marionette; // These mixins mirror Marionette source and ensure that Marionette classes that // extend these mixins have the correct methods attached. -interface CommonMixin { +export interface CommonMixin { normalizeMethods: any; mergeOptions: any; getOption: any; @@ -21,7 +20,7 @@ interface CommonMixin { unbindEvents: any; } -interface RadioMixinOptions { +export interface RadioMixinOptions { /** * Defines the Radio channel that will be used for the requests and/or * events. @@ -41,7 +40,7 @@ interface RadioMixinOptions { radioRequests?: any; } -interface RadioMixin { +export interface RadioMixin { getChannel: any; bindEvents: any; unbindEvents: any; @@ -49,7 +48,7 @@ interface RadioMixin { unbindRequests: any; } -interface DomMixin { +export interface DomMixin { createBuffer: any; appendChildren: any; beforeEl: any; @@ -61,7 +60,7 @@ interface DomMixin { findEls: any; } -interface ViewMixinOptions { +export interface ViewMixinOptions { /** * Behavior objects to assign to this View. */ @@ -109,7 +108,7 @@ interface ViewMixinOptions { ui?: any; } -interface ViewMixin extends DomMixin, CommonMixin { +export interface ViewMixin extends DomMixin, CommonMixin { supportsRenderLifecycle: any; supportsDestroyLifecycle: any; isDestroyed: any; @@ -126,7 +125,7 @@ interface ViewMixin extends DomMixin, CommonMixin { triggerMethod: any; } -interface RegionsMixin { +export interface RegionsMixin { regionClass: any; addRegion: any; addRegions: any; @@ -141,7 +140,7 @@ interface RegionsMixin { getChildView: any; } -declare class Container { +export class Container { /** * Find a view by it's cid. */ @@ -150,7 +149,7 @@ declare class Container { /** * Find a view by model. */ - findByModel(model: TModel): TView; + findByModel(model: Backbone.Model): TView; /** * Find a view by model cid. @@ -178,1456 +177,1454 @@ declare class Container { remove(view: TView): void; } -declare namespace Marionette { +/** + * Alias of Backbones extend function. + */ +export function extend(properties: any, classProperties?: any): any; + +/** + * Determines whether the passed-in node is a child of the document or not. + */ +export function isNodeAttached(el: HTMLElement): boolean; + +/** + * A handy function to pluck certain options and attach them directly to an + * instance. + */ +export function mergeOptions(target: any, options: any, keys: any): void; + +/** + * Retrieve an object's attribute either directly from the object, or + * from the object's this.options, with this.options taking precedence. + */ +export function getOption(target: any, optionName: string): any; + +/** + * Trigger an event and a corresponding method on the target object. + * All arguments that are passed to the triggerMethod call are passed along + * to both the event and the method, with the exception of the event name not + * being passed to the corresponding method. + */ +export function triggerMethod(target: any, name: string, ...args: any[]): any; + +/** + * Invoke triggerMethod on a specific context. + * This is useful when it's not clear that the object has triggerMethod defined. + */ +export function triggerMethodOn(ctx: any, name: string, ...args: any[]): any; + +/** + * This method is used to bind a backbone "entity" (collection/model) to methods on a target object. + * @param target An object that must have a listenTo method from the EventBinder object. + * @param entity The entity (Backbone.Model or Backbone.Collection) to bind the events from. + * @param bindings a hash of { "event:name": "eventHandler" } configuration. Multiple handlers can be separated by a space. A function can be supplied instead of a string handler name. + */ +export function bindEvents(target: any, entity: any, bindings: any): void; + +/** + * This method can be used to unbind callbacks from entities' (collection/model) events. It's the opposite of bindEvents + * @param target An object that must have a listenTo method from the EventBinder object. + * @param entity The entity (Backbone.Model or Backbone.Collection) to bind the events from. + * @param bindings a hash of { "event:name": "eventHandler" } configuration. Multiple handlers can be separated by a space. A function can be supplied instead of a string handler name. + */ +export function unbindEvents(target: any, entity: any, bindings: any): void; + +/** + * This method is used to bind a radio requests to methods on a target + * object. + */ +export function bindRequests(target: any, channel: Radio.Channel, bindings: any): void; + +/** + * This method is used to unbind a radio requests to methods on a target + * object. + */ +export function unbindRequests(target: any, channel: Radio.Channel, bindings: any): void; + +/** + * Receives a hash of event names and functions and/or function names, and + * returns the same hash with the function names replaced with the function + * references themselves. + */ +export function normalizeMethods(target: any, hash: any): T; + +/** + * Allows you to run multiple instances of Marionette in the same + * application. + */ +export function noConflict(): void; + +/** + * Overrides Backbone.EventsHash as JQueryEventObject is deprecated and + * doesn't allow you to set the event target + */ +export interface EventsHash extends Backbone.EventsHash { + [selector: string]: string | ((eventObject: JQuery.Event) => void); +} + +export interface ObjectOptions extends RadioMixinOptions { /** - * Alias of Backbones extend function. + * Initialize is called immediately after the Object has been instantiated, + * and is invoked with the same arguments that the constructor received. */ - function extend(properties: any, classProperties?: any): any; + initialize?(options?: ObjectOptions): void; + + [index: string]: any; +} + +/** + * A base class which other classes can extend from. Object incorporates many + * backbone conventions and utilities like initialize and Backbone.Events. + */ +export class Object extends Backbone.Events implements CommonMixin, RadioMixin { + constructor(options?: ObjectOptions); /** - * Determines whether the passed-in node is a child of the document or not. + * Receives a hash of event names and functions and/or function names, + * and returns the same hash with the function names replaced with the + * function references themselves. */ - function isNodeAttached(el: HTMLElement): boolean; + normalizeMethods(hash: any): T; /** - * A handy function to pluck certain options and attach them directly to an - * instance. + * A handy function to pluck certain options and attach them directly + * to an instance. */ - function mergeOptions(target: any, options: any, keys: any): void; + mergeOptions(options: any, keys: any): void; /** - * Retrieve an object's attribute either directly from the object, or - * from the object's this.options, with this.options taking precedence. + * Retrieve an object's attribute either directly from the object, or from + * the object's this.options, with this.options taking precedence. + * @param optionName the name of the option to retrieve. */ - function getOption(target: any, optionName: string): any; + getOption(optionName: string): any; /** - * Trigger an event and a corresponding method on the target object. - * All arguments that are passed to the triggerMethod call are passed along - * to both the event and the method, with the exception of the event name not - * being passed to the corresponding method. + * This method is used to bind a backbone "entity" (collection/model) to + * methods on a target object. */ - function triggerMethod(target: any, name: string, ...args: any[]): any; + bindEvents(entity: any, bindings: any): void; /** - * Invoke triggerMethod on a specific context. - * This is useful when it's not clear that the object has triggerMethod defined. + * This method can be used to unbind callbacks from entities' + * (collection/model) events. */ - function triggerMethodOn(ctx: any, name: string, ...args: any[]): any; + unbindEvents(entity: any, bindings: any): void; /** - * This method is used to bind a backbone "entity" (collection/model) to methods on a target object. - * @param target An object that must have a listenTo method from the EventBinder object. - * @param entity The entity (Backbone.Model or Backbone.Collection) to bind the events from. - * @param bindings a hash of { "event:name": "eventHandler" } configuration. Multiple handlers can be separated by a space. A function can be supplied instead of a string handler name. + * Returns a Radio.Channel instance using 'channelName' */ - function bindEvents(target: any, entity: any, bindings: any): void; - - /** - * This method can be used to unbind callbacks from entities' (collection/model) events. It's the opposite of bindEvents - * @param target An object that must have a listenTo method from the EventBinder object. - * @param entity The entity (Backbone.Model or Backbone.Collection) to bind the events from. - * @param bindings a hash of { "event:name": "eventHandler" } configuration. Multiple handlers can be separated by a space. A function can be supplied instead of a string handler name. - */ - function unbindEvents(target: any, entity: any, bindings: any): void; + getChannel(): Backbone.Radio.Channel; /** * This method is used to bind a radio requests to methods on a target * object. */ - function bindRequests(target: any, channel: Radio.Channel, bindings: any): void; + bindRequests(channel: Radio.Channel, bindings: any): void; /** * This method is used to unbind a radio requests to methods on a target * object. */ - function unbindRequests(target: any, channel: Radio.Channel, bindings: any): void; + unbindRequests(channel: Radio.Channel, bindings: any): void; /** - * Receives a hash of event names and functions and/or function names, and - * returns the same hash with the function names replaced with the function - * references themselves. + * Defines the Radio channel that will be used for the requests and/or events */ - function normalizeMethods(target: any, hash: any): T; + channelName: string; /** - * Allows you to run multiple instances of Marionette in the same - * application. + * Defines an events hash with the events to be listened and its respective handlers */ - function noConflict(): void; + radioEvents: any; /** - * Overrides Backbone.EventsHash as JQueryEventObject is deprecated and - * doesn't allow you to set the event target + * Defines an events hash with the requests to be replied and its respective handlers */ - interface EventsHash extends Backbone.EventsHash { - [selector: string]: string | ((eventObject: JQuery.Event) => void); - } - - interface ObjectOptions extends RadioMixinOptions { - /** - * Initialize is called immediately after the Object has been instantiated, - * and is invoked with the same arguments that the constructor received. - */ - initialize?(options?: ObjectOptions): void; - - [index: string]: any; - } + radioRequests: any; /** - * A base class which other classes can extend from. Object incorporates many - * backbone conventions and utilities like initialize and Backbone.Events. + * Check if this Oject has been destroyed. */ - class Object extends Backbone.Events implements CommonMixin, RadioMixin { - constructor(options?: ObjectOptions); - - /** - * Receives a hash of event names and functions and/or function names, - * and returns the same hash with the function names replaced with the - * function references themselves. - */ - normalizeMethods(hash: any): T; - - /** - * A handy function to pluck certain options and attach them directly - * to an instance. - */ - mergeOptions(options: any, keys: any): void; - - /** - * Retrieve an object's attribute either directly from the object, or from - * the object's this.options, with this.options taking precedence. - * @param optionName the name of the option to retrieve. - */ - getOption(optionName: string): any; - - /** - * This method is used to bind a backbone "entity" (collection/model) to - * methods on a target object. - */ - bindEvents(entity: any, bindings: any): void; - - /** - * This method can be used to unbind callbacks from entities' - * (collection/model) events. - */ - unbindEvents(entity: any, bindings: any): void; - - /** - * Returns a Radio.Channel instance using 'channelName' - */ - getChannel(): Backbone.Radio.Channel; - - /** - * This method is used to bind a radio requests to methods on a target - * object. - */ - bindRequests(channel: Radio.Channel, bindings: any): void; - - /** - * This method is used to unbind a radio requests to methods on a target - * object. - */ - unbindRequests(channel: Radio.Channel, bindings: any): void; - - /** - * Defines the Radio channel that will be used for the requests and/or events - */ - channelName: string; - - /** - * Defines an events hash with the events to be listened and its respective handlers - */ - radioEvents: any; - - /** - * Defines an events hash with the requests to be replied and its respective handlers - */ - radioRequests: any; - - /** - * Check if this Oject has been destroyed. - */ - isDestroyed(): boolean; - - /** - * Initialize is called immediately after the Object has been instantiated, - * and is invoked with the same arguments that the constructor received. - */ - initialize(options?: ObjectOptions): void; - - /** - * Objects have a destroy method that unbind the events that are directly - * attached to the instance. Invoking the destroy method will trigger a - * "before:destroy" event and corresponding onBeforeDestroy method call. - * These calls will be passed any arguments destroy was invoked with. - * @param args any arguments to pass to the "before:destory" event and call to - * onBeforeDestroy. - */ - destroy(...args: any[]): void; - - /** - * Trigger an event and a corresponding method on the target object. - * All arguments that are passed to the triggerMethod call are passed - * along to both the event and the method, with the exception of the - * event name not being passed to the corresponding method. - */ - triggerMethod(name: string, ...args: any[]): any; - } + isDestroyed(): boolean; /** - * The TemplateCache provides a cache for retrieving templates from script blocks - * in your HTML. This will improve the speed of subsequent calls to get a template. + * Initialize is called immediately after the Object has been instantiated, + * and is invoked with the same arguments that the constructor received. */ - class TemplateCache implements DomMixin { - /** - * Returns a new HTML DOM node instance. The resulting node can be - * passed into the other DOM functions. - */ - createBuffer(): DocumentFragment; - - /** - * Takes the DOM node el and appends the rendered children to the end of - * the element's contents. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - * @param children is jQuery.append argument: http://api.jquery.com/append/ - */ - appendChildren(el: any, children: any): void; - - /** - * Add sibling to the DOM immediately before the DOM node el. The - * sibling will be at the same level as el. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - * @param sibling is jQuery.before argument: http://api.jquery.com/before/ - */ - beforeEl(el: any, sibling: any): void; - - /** - * Remove oldEl from the DOM and put newEl in its place. - */ - replaceEl(newEl: HTMLElement, oldEL: HTMLElement): void; - - /** - * Remove the inner contents of el from the DOM while leaving el itself - * in the DOM. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - */ - detachContents(el: any): void; - - /** - * Replace the contents of el with the HTML string of html. Unlike other - * DOM functions, this takes a literal string for its second argument. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - * @param html is a jQuery.html argument: https://api.jquery.com/html/ - */ - setInnerContent(el: any, html: string): void; - - /** - * Detach el from the DOM. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - */ - detachEl(el: any): void; - - /** - * Remove el from the DOM. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - */ - removeEl(el: any): void; - - /** - * Lookup the selector string within the DOM node for context. The - * optional context argument will come in as a DOM Node reference to run - * the selector search. If context hasn't been set, then findEls should - * search the entire document for the selector. - * @param selector is a jQuery argument: https://api.jquery.com/jQuery/ - * @param context is a jQuery argument: https://api.jquery.com/jQuery/ - */ - findEls(selector: any, context: any): void; - - /** - * To use the TemplateCache, call the get method on TemplateCache - * directly. Internally, instances of the TemplateCache class will be - * created and stored but you do not have to manually create these - * instances yourself. get will return a compiled template function. - */ - static get(templateId: string, options?: any): any; - - /** - * You can clear one or more, or all items from the cache using the clear - * method. Clearing a template from the cache will force it to re-load - * from the DOM the next time it is retrieved. - * @param the templateId used for loading / caching of the templates to clear. If none specified, all templates will be cleared from the cache. - */ - static clear(...templateId: string[]): void; - - /** - * Initial method to load the template. (undocumented) - */ - load(options?: any): any; - - /** - * The default template retrieval is to select the template contents from the - * DOM using jQuery. If you wish to change the way this works, you can - * override this method on the TemplateCache object. - * Note that the options argument seems to be unused in the source. - */ - loadTemplate(templateId: string, options?: any): any; - - /** - * The default template compilation passes the results from loadTemplate to - * the compileTemplate function, which returns an underscore.js compiled - * template function. When overriding compileTemplate remember that it - * must return a function which takes an object of parameters and values - * and returns a formatted HTML string. - */ - compileTemplate(rawTemplate: any, options?: any): any; - } - - interface RegionConstructionOptions { - /** - * Specifies the element for the region to manage. This may be - * a selector string, a raw DOM node reference or a jQuery wrapped - * DOM node. - */ - el?: any; - - /** - * Prevents error on missing element. (undocumented) - */ - allowMissingEl?: boolean; - - /** - * Element to use as context when finding el via jQuery. Defaults to the - * the document. (undocumented) - */ - parentEl?: string; - - /** - * Overwrite the parent el of the region with the rendered contents of - * the inner View. - */ - replaceElement?: string; - } - - interface RegionViewOptions { - /** - * DEPRECATED: If you replace the current view with a new view by calling show, by - * default it will automatically destroy the previous view. You can - * prevent this behavior by setting this option to true. - */ - preventDestroy?: boolean; - } + initialize(options?: ObjectOptions): void; /** - * Regions provide consistent methods to manage, show and destroy views in - * your applications and layouts. They use a jQuery selector to show your - * views in the correct place. + * Objects have a destroy method that unbind the events that are directly + * attached to the instance. Invoking the destroy method will trigger a + * "before:destroy" event and corresponding onBeforeDestroy method call. + * These calls will be passed any arguments destroy was invoked with. + * @param args any arguments to pass to the "before:destory" event and call to + * onBeforeDestroy. */ - class Region extends Object implements DomMixin { - /** - * Returns a new HTML DOM node instance. The resulting node can be - * passed into the other DOM functions. - */ - createBuffer(): DocumentFragment; - - /** - * Takes the DOM node el and appends the rendered children to the end of - * the element's contents. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - * @param children is jQuery.append argument: http://api.jquery.com/append/ - */ - appendChildren(el: any, children: any): void; - - /** - * Add sibling to the DOM immediately before the DOM node el. The - * sibling will be at the same level as el. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - * @param sibling is jQuery.before argument: http://api.jquery.com/before/ - */ - beforeEl(el: any, sibling: any): void; - - /** - * Remove oldEl from the DOM and put newEl in its place. - */ - replaceEl(newEl: HTMLElement, oldEL: HTMLElement): void; - - /** - * Remove the inner contents of el from the DOM while leaving el itself - * in the DOM. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - */ - detachContents(el: any): void; - - /** - * Replace the contents of el with the HTML string of html. Unlike other - * DOM functions, this takes a literal string for its second argument. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - * @param html is a jQuery.html argument: https://api.jquery.com/html/ - */ - setInnerContent(el: any, html: string): void; - - /** - * Detach el from the DOM. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - */ - detachEl(el: any): void; - - /** - * Remove el from the DOM. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - */ - removeEl(el: any): void; - - /** - * Lookup the selector string within the DOM node for context. The - * optional context argument will come in as a DOM Node reference to run - * the selector search. If context hasn't been set, then findEls should - * search the entire document for the selector. - * @param selector is a jQuery argument: https://api.jquery.com/jQuery/ - * @param context is a jQuery argument: https://api.jquery.com/jQuery/ - */ - findEls(selector: any, context: any): void; - - /** - * You can specify an el for the region to manage at the time the region - * is instantiated. - */ - constructor(options?: RegionConstructionOptions); - - /** - * Defaults to 'mnr' (undocumented) - */ - cidPrefix: string; - - /** - * Overwrite the parent el of the region with the rendered contents of - * the inner View. - */ - replaceElement: boolean; - - /** - * Contains the element that this region should manage. - */ - el: any; - - /** - * Renders and displays the specified view in this region. - * @param view the view to display. - */ - show(view: Backbone.View, options?: RegionViewOptions): void; - - /** - * Override this method to change how the region finds the DOM element - * that it manages. Return a jQuery selector object scoped to a provided - * parent el or the document if none exists. (undocumented) - */ - getEl(): any; - - /** - * Check to see if the region’s el was replaced. (undocumented) - */ - isReplaced(): boolean; - - /** - * Check to see if a view is being swapped by another. - */ - isSwappingView(): boolean; - - /** - * Override this method to change how the new view is appended to the - * `$el` that the region is managing - */ - attachHtml(view: Backbone.View): void; - - /** - * Destroy the current view, clean up any event handlers and remove it - * from the DOM. When a region is emptied empty events are triggered. - */ - empty(options?: RegionViewOptions): any; - - /** - * Destroys the view taking into consideration if is a View descendant - * or vanilla Backbone view. - */ - destroyView(view: Backbone.View): Backbone.View; - - /** - * Override the region's removeView method to change how and when the - * view is destroyed / removed from the DOM. - */ - removeView(view: Backbone.View): void; - - /** - * Empties the Region without destroying the view, returns the detached - * view. - */ - detachView(): Backbone.View; - - /** - * Override this method to change how the region detaches current - * content. - */ - detachHtml(): void; - - /** - * If you wish to check whether a region has a view, you can use the - * hasView function. This will return a boolean value depending whether - * or not the region is showing a view. - */ - hasView(): boolean; - - /** - * A region can be reset at any time. This destroys any existing view - * being displayed, and deletes the cached el. The next time the region - * shows a view, the region's el is queried from the DOM. - */ - reset(): any; - - /** - * @returns view that this region has. - */ - currentView: Backbone.View; - } + destroy(...args: any[]): void; /** - * Render a template with data by passing in the template selector and the - * data to render. This is the default renderer that is used by Marionette. + * Trigger an event and a corresponding method on the target object. + * All arguments that are passed to the triggerMethod call are passed + * along to both the event and the method, with the exception of the + * event name not being passed to the corresponding method. */ - class Renderer { - /** - * This method returns a string containing the result of applying the - * template using the data object as the context. - * @param template The template to render. If this is a function this is - * treated as a pre-compiled template and does not try to compile it again. This - * allows any view that supports a template parameter to specify a pre-compiled - * template function as the template setting. The template function does not - * have to be any specific template engine. It only needs to be a function - * that returns valid HTML as a string from the data parameter passed to - * the function. - */ - static render(template: any, data: any): string; - } - - interface ViewOptions extends Backbone.ViewOptions, ViewMixinOptions { - /** - * The events attribute binds DOM events to actions to perform on the - * view. It takes DOM event key and a mapping to the handler. - */ - events?: EventsHash; - - /** - * If you've created a custom region class, you can use it to define - * your region. - */ - regionClass?: any; - - /** - * Add regions to this View. - */ - regions?: any; - - /** - * Set the template of this View. - */ - template?: any; - - /** - * The templateContext attribute can be used to add extra information to - * your templates - */ - templateContext?: any; - } - - /** - * A View is a view that represents an item to be displayed with a template. - * This is typically a Backbone.Model, Backbone.Collection, or nothing at - * all. Views are also used to build up your application hierarchy - you can - * easily nest multiple views through the regions attribute. - */ - class View extends Backbone.View implements ViewMixin, RegionsMixin { - constructor(options?: ViewOptions); - - events(): EventsHash; - - /** - * Returns a new HTML DOM node instance. The resulting node can be - * passed into the other DOM functions. - */ - createBuffer(): DocumentFragment; - - /** - * Takes the DOM node el and appends the rendered children to the end of - * the element's contents. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - * @param children is jQuery.append argument: http://api.jquery.com/append/ - */ - appendChildren(el: any, children: any): void; - - /** - * Add sibling to the DOM immediately before the DOM node el. The - * sibling will be at the same level as el. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - * @param sibling is jQuery.before argument: http://api.jquery.com/before/ - */ - beforeEl(el: any, sibling: any): void; - - /** - * Remove oldEl from the DOM and put newEl in its place. - */ - replaceEl(newEl: HTMLElement, oldEL: HTMLElement): void; - - /** - * Remove the inner contents of el from the DOM while leaving el itself - * in the DOM. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - */ - detachContents(el: any): void; - - /** - * Replace the contents of el with the HTML string of html. Unlike other - * DOM functions, this takes a literal string for its second argument. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - * @param html is a jQuery.html argument: https://api.jquery.com/html/ - */ - setInnerContent(el: any, html: string): void; - - /** - * Detach el from the DOM. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - */ - detachEl(el: any): void; - - /** - * Remove el from the DOM. - * @param el is a jQuery argument: https://api.jquery.com/jQuery/ - */ - removeEl(el: any): void; - - /** - * Lookup the selector string within the DOM node for context. The - * optional context argument will come in as a DOM Node reference to run - * the selector search. If context hasn't been set, then findEls should - * search the entire document for the selector. - * @param selector is a jQuery argument: https://api.jquery.com/jQuery/ - * @param context is a jQuery argument: https://api.jquery.com/jQuery/ - */ - findEls(selector: any, context: any): void; - - /** - * Receives a hash of event names and functions and/or function names, - * and returns the same hash with the function names replaced with the - * function references themselves. - */ - normalizeMethods(hash: any): T; - - /** - * A handy function to pluck certain options and attach them directly - * to an instance. - */ - mergeOptions(options: any, keys: any): void; - - /** - * Retrieve an object's attribute either directly from the object, or from - * the object's this.options, with this.options taking precedence. - * @param optionName the name of the option to retrieve. - */ - getOption(optionName: string): any; - - /** - * This method is used to bind a backbone "entity" (collection/model) to - * methods on a target object. - */ - bindEvents(entity: any, bindings: any): void; - - /** - * This method can be used to unbind callbacks from entities' - * (collection/model) events. - */ - unbindEvents(entity: any, bindings: any): void; - - /** - * Internal property. (undocumented) - */ - supportsRenderLifecycle: boolean; - - /** - * Internal property. (undocumented) - */ - supportsDestroyLifecycle: boolean; - - /** - * Check if this View has been destroyed. - */ - isDestroyed(): boolean; - - /** - * Check if this View has been rendered. - */ - isRendered(): boolean; - - /** - * Check if this View is attached to the DOM. - */ - isAttached(): boolean; - - /** - * Overrides Backbone.View.delegateEvents. By default Marionette uses - * this to add handlers for events and triggers. (undocumented) - */ - delegateEvents(eventsArg: any): View; - - /** - * Get the triggers that are currently attached to this view. - * (undocumented) - */ - getTriggers(): EventsHash; - - /** - * Delegate entity events. (undocumented) - */ - delegateEntityEvents(): View; - - /** - * Undelegate entity events. (undocumented) - */ - undelegateEntityEvents(): View; - - /** - * Manually destroy a view by calling the destroy method. The method - * unbinds the UI elements, removes the view and its children from the - * DOM and unbinds the listeners. It also triggers lifecycle events. - */ - destroy(...args: any[]): View; - - /** - * Bind UI elements to this view. By default this is called in the - * render method. (undocumented) - */ - bindUIElements(): any; - - /** - * Bind UI elements from this view. (undocumented) - */ - unbindUIElements(): any; - - /** - * Customize the event prefix for events that are forwarded through the - * collection view. - */ - childViewEventPrefix: string | false; - - /** - * Trigger an event and a corresponding method on the target object. - * All arguments that are passed to the triggerMethod call are passed - * along to both the event and the method, with the exception of the - * event name not being passed to the corresponding method. - */ - triggerMethod(name: string, ...args: any[]): any; - - /** - * Define the region class used for this View. - */ - regionClass: any; - - /** - * Add a region to this View. - */ - addRegion(regionName: string, element: any): any; - - /** - * Add multiple regions to this View. - */ - addRegions(regions: any): any; - - /** - * Remove a region from this View. - */ - removeRegion(regionName: string): any; - - /** - * Remove all regions from this View. - */ - removeRegions(): any; - - /** - * Empty all regions from this View. - */ - emptyRegions(): any; - - /** - * Check if this View has a particular region. - */ - hasRegion(regionName: string): any; - - /** - * Return a region from this View. - */ - getRegion(regionName: string): Region; - - /** - * Returns all regions from this View. - */ - getRegions(): any; - - /** - * Show a view inside a region. - */ - showChildView(regionName: string, view: any, options?: RegionViewOptions): void; - - /** - * Detach a view from a region. - */ - detachChildView(regionName: string): Backbone.View; - - /** - * Get the view from a region. - */ - getChildView(regionName: string): Backbone.View; - - /** - * The results of this method ared passed to this View's template. By - * default Marionette will attempt to pass either an attached model or - * collection which has been converted to JSON. - */ - serializeData(): any; - - /** - * Method used by this.serializeData to serialize this View's model - * data. - */ - serializeModel(): any; - - /** - * Method used by this.serializeData to serialize this View's collection - * data. - */ - serializeCollection(): any; - - /** - * Rebind this View to a new element. Overriding Backbone.View’s - * setElement to handle if an element was previously defined. - * (undocumented) - */ - setElement(element: any): View; - - /** - * Renders the view. Given a template this method will build your HTML - * from that template, mixing in model information and any extra - * template context. - */ - render(): View; - - /** - * Used to determine which template to use. Override this method to add - * logic for using multiple templates. - */ - getTemplate(): any; - - /** - * Mix in template context methods. Looks for a templateContext - * attribute, which can either be an object literal, or a function that - * returns an object literal. All methods and attributes from this - * object are copies to the object passed in. (undocumented) - */ - mixinTemplateContext(...args: any[]): any; - - /** - * Used to attached the rendered template to this View's element. - */ - attachElContent(html: string): View; - - /** - * Used to set the renderer for this View. The rendere function is - * passed the template and the data and is expected to return an html - * string. By default this is set to use Renderer. - */ - setRenderer(renderer: (template: any, data: any) => string): void; - - /** - * Event that is triggered before this View is rendered. - */ - onBeforeRender(view: View): void; - - /** - * Event that is triggered after this View is rendered. - */ - onRender(view: View): void; - - /** - * Event that is triggered before this View is added to the DOM. - */ - onBeforeAttach(view: View): void; - - /** - * Event that is triggered after this View's element has been added to - * the DOM. - */ - onAttach(view: View): void; - - /** - * Event that is triggered after this View's content has been added to - * the DOM. Is also triggered every time this.render() is called. - */ - onDomRefresh(view: View): void; - - /** - * Event that is triggered before this View is destroyed. - */ - onBeforeDestroy(view: View, ...args: any[]): void; - - /** - * Event that is triggered before this View's element is removed from - * the DOM. - */ - onBeforeDetach(view: View): void; - - /** - * Event that is triggered before this View's content is removed from - * the DOM. - */ - onDomRemove(view: View): void; - - /** - * Event that is triggered after this View's element has been removed - * from the DOM. - */ - onDetach(view: View): void; - - /** - * Event that is triggered after this View is destroyed. - */ - onDestroy(view: View, ...args: any[]): void; - - /** - * Event that is triggered before a Region is added. - */ - onBeforeAddRegion(regionName: string, region: Region): void; - - /** - * Event that is triggered after a Region has been added. - */ - onAddRegion(regionName: string, region: Region): void; - - /** - * Event that is triggered before a Region is removed. - */ - onBeforeRemoveRegion(regionName: string, region: Region): void; - - /** - * Event that is triggered after a Region has been removed. - */ - onRemoveRegion(regionName: string, region: Region): void; - - /** - * Behavior objects to assign to this View. - */ - behaviors: Behavior[] | { [index: string]: typeof Behavior; } | Array<{ - behaviorClass: typeof Behavior; - [index: string]: any; - }>; - - /** - * Bind to events that occur on attached models. - */ - modelEvents: EventsHash; - - /** - * The view triggers attribute binds DOM events to Marionette View events - * that can be responded to at the view or parent level. - */ - triggers: EventsHash; - - /** - * Name parts of your template to be used - * throughout the view with the ui attribute. - */ - ui: any; - } - - interface CollectionViewOptions< - TModel extends Backbone.Model, - TCollection extends Backbone.Collection = Backbone.Collection - > extends Backbone.ViewOptions, ViewMixinOptions { - /** - * Specify a child view to use. - */ - childView?: (() => typeof Backbone.View) | typeof Backbone.View; - - /** - * Define options to pass to the childView constructor. - */ - childViewOptions?: (() => ViewOptions) | ViewOptions; - - /** - * The events attribute binds DOM events to actions to perform on the - * view. It takes DOM event key and a mapping to the handler. - */ - events?: EventsHash; - - /** - * Prevent some of the underlying collection's models from being - * rendered as child views. - */ - filter?(child?: TModel, index?: number, collection?: TCollection): boolean; - - /** - * Specify a view to use if the collection has no children. - */ - emptyView?: (() => typeof Backbone.View) | typeof Backbone.View; - - /** - * Define options to pass to the emptyView constructor. - */ - emptyViewOptions?: (() => ViewOptions) | ViewOptions; - - /** - * If true when you sort your collection there will be no re-rendering, - * only the DOM nodes will be reordered. - */ - reorderOnSort?: boolean; - - /** - * If false the collection view will not maintain a sorted collection's - * order in the DOM. - */ - sort?: boolean; - - /** - * Render your collection view's children with a different sort order - * than the underlying Backbone collection. - */ - viewComparator?: string | ((element: TModel) => number | string) | ((compare: TModel, to?: TModel) => number); // Mirrors Backbone.Collection.comparator - } - - /** - * The CollectionView will loop through all of the models in the specified - * collection, render each of them using a specified childView, then append - * the results of the child view's el to the collection view's el. By - * default the CollectionView will maintain a sorted collection's order in the - * DOM. This behavior can be disabled by specifying {sort: false} on - * initialize. - */ - class CollectionView, TCollection extends Backbone.Collection = Backbone.Collection> extends View { - constructor(options?: CollectionViewOptions); - - /** - * Specify a child view to use. - */ - childView: (() => { new(...args: any[]): TView }) | { new(...args: any[]): TView }; - - /** - * Define options to pass to the childView constructor. - */ - childViewOptions: ((model: TModel, index: number) => ViewOptions) | ViewOptions; - - /** - * Prevent some of the underlying collection's models from being - * rendered as child views. - */ - filter: (child?: TModel, index?: number, collection?: TCollection) => boolean; - - /** - * Modify the CollectionView's filter attribute, and renders the new - * ChildViews in a efficient way, instead of rendering the whole DOM - * structure again. - */ - setFilter: (filter: (child?: TModel, index?: number, collection?: TCollection) => boolean, options: { preventRender: boolean }) => void; - - /** - * Remove a filter from the CollectionView. - */ - removeFilter: (options: { preventRender: boolean }) => void; - - /** - * Specify a view to use if the collection has no children. - */ - emptyView: (() => { new(...args: any[]): Backbone.View }) | { new(...args: any[]): Backbone.View }; - - /** - * Define options to pass to the emptyView constructor. - */ - emptyViewOptions: ((model: TModel, index: number) => ViewOptions) | ViewOptions; - - /** - * Method used to determine when emptyView is rendered. - */ - isEmpty(): boolean; - - /** - * The render method of the collection view is responsible for rendering - * the entire collection. It loops through each of the children in the - * collection and renders them individually as an childView. - */ - render(): CollectionView; - - /** - * This method is used move the HTML from the element buffer into the - * collection view's el. - */ - attachHtml(collectionView: CollectionView, childView: TView, index: number): void; - - /** - * When overriding attachHtml it may be necessary to also override how - * the buffer is attached. - */ - attachBuffer(collectionView: CollectionView, buffer: DocumentFragment): void; - - /** - * Customize the event prefix for events that are forwarded through the - * collection view. - */ - childViewEventPrefix: string | false; - - /** - * Use the childViewEvents attribute to map child events to methods on the - * parent view. - */ - childViewEvents: EventsHash; - - /** - * A childViewTriggers hash or method permits proxying of child view events - * without manually setting bindings. The values of the hash should be a - * string of the event to trigger on the parent. - */ - childViewTriggers: EventsHash; - - /** - * Bind to events that occur on attached collections. - */ - collectionEvents: EventsHash; - - /** - * Bind to events that occur on attached models. - */ - modelEvents: EventsHash; - - /** - * The view triggers attribute binds DOM events to Marionette View events - * that can be responded to at the view or parent level. - */ - triggers: EventsHash; - - /** - * If true when you sort your collection there will be no re-rendering, - * only the DOM nodes will be reordered. - */ - reorderOnSort: boolean; - - /** - * If reorderOnSort is set to true, this function will be used instead - * of re-rendering all children. - */ - reorder(): void; - - /** - * By default the CollectionView will maintain the order of its - * collection in the DOM. However on occasions the view may need to - * re-render to make this possible, for example if you were to change - * the comparator on the collection. The CollectionView will re-render - * its children or reorder them depending on reorderOnSort. - */ - resortView(): void; - - /** - * Render your collection view's children with a different sort order - * than the underlying Backbone collection. - */ - viewComparator: string | ((element: TModel) => number | string) | ((compare: TModel, to?: TModel) => number); // Mirrors Backbone.Collection.comparator - - /** - * Override this method to determine which viewComparator to use. - */ - getViewComparator: () => (string | ((element: TModel) => number | string) | ((compare: TModel, to?: TModel) => number)); // Mirrors Backbone.Collection.comparator - - /** - * Behavior objects to assign to this View. - */ - behaviors: Behavior[] | { [index: string]: typeof Behavior; } | Array<{ - behaviorClass: typeof Behavior; - [index: string]: any; - }>; - - /** - * Name parts of your template to be used throughout the view with the - * ui attribute. - */ - ui: any; - - /** - * The CollectionView can store and manage its child views. This allows - * you to easily access the views within the collection view, iterate - * them, find them by a given indexer such as the view's model or - * collection, and more. - */ - children: Container; - - /** - * The buildChildView is responsible for taking the ChildView class and - * instantiating it with the appropriate data. - */ - buildChildView(child: TModel, childViewClass: { new(...args: any[]): TView }, childViewOptions: ViewOptions): void; - - /** - * The addChildView method can be used to add a view that is independent - * of your Backbone.Collection. - */ - addChildView(childView: TView, index: number): void; - - /** - * The removeChildView method is useful if you need to remove a view - * from the CollectionView without affecting the view's collection. - */ - removeChildView(childView: TView): void; - - /** - * Called just prior to rendering the collection view. - */ - onBeforeRender(): void; - - /** - * Triggered after the view has been rendered. You can implement this in - * your view to provide custom code for dealing with the view's el after - * it has been rendered. - */ - onRender(): void; - - /** - * This callback function allows you to know when a child / child view - * instance is about to be added to the collection view. It provides - * access to the view instance for the child that was added. - */ - onBeforeAddChild(childView: TView): void; - - /** - * This callback function allows you to know when a child / child view - * instance has been added to the collection view. It provides access to - * the view instance for the child that was added. - */ - onAddChild(childView: TView): void; - - /** - * This callback function allows you to know when a childView instance is - * about to be removed from the collectionView. It provides access to the - * view instance for the child that was removed. - */ - onBeforeRemoveChild(childView: TView): void; - - /** - * This callback function allows you to know when a child / childView - * instance has been deleted or removed from the collection. - */ - onRemoveChild(childView: TView): void; - - /** - * Automatically destroys this Collection's children and cleans up - * listeners. - */ - destroy(...args: any[]): CollectionView; - } - - interface AppRoutes { - [index: string]: string; - } - - interface AppRouterOptions { - /** - * Define the app routes and the method names on the controller that - * will be called when accessing the routes. - */ - appRoutes?: AppRoutes; - - /** - * Define the app routes and the method names on the router that will be - * called when accessing the routes. - */ - routes?: AppRoutes; - - /** - * An object that contains the methods specified in appRoutes. - */ - controller?: any; - } - - /** - * The Marionette AppRouter is typically used to set up your app when the - * user loads a specific endpoint directly. - */ - class AppRouter extends Backbone.Router { - constructor(options?: AppRouterOptions); - - /** - * Add an app route at runtime. - */ - appRoute(route: string, methodName: string): void; - - /** - * Specify a controller with the multiple routes at runtime. This will - * preserve the existing controller as well. - */ - processAppRoutes(controller: any, appRoutes: AppRoutes): void; - - /** - * An object that contains the methods specified in appRoutes. - */ - controller: any; - - /** - * Fires whenever the user navigates to a new route in your application - * that matches a route. - */ - onRoute(name: string, path: string, args: any[]): void; - } - - interface ApplicationOptions extends ObjectOptions { - /** - * Root entry point for the View tree of your Application. - */ - region: string; - } - - /** - * The Application is used to model your Marionette application under a - * single entry point. The application provides: - * - An obvious entry point to your app - * - A clear hook for global events e.g. the AppRouter - * - An interface to let you inject variables from the wider context into - * your app - */ - class Application extends Object { - constructor(options?: ApplicationOptions); - - /** - * Root entry point for the View tree of your Application. - */ - region: string; - - /** - * Called immediately after the Application has been instantiated, and - * is invoked with the same arguments that the constructor received. - */ - initialize(options: ApplicationOptions): void; - - /** - * Fired just before the application is started. - */ - onBeforeStart(options: ApplicationOptions): void; - - /** - * Fired as part of the application startup. - */ - onStart(options: ApplicationOptions): void; - - /** - * Once you have your application configured, you can kick everything - * off by calling this method. - */ - start(options?: any): void; - - /** - * Return the attached region object for the Application. - */ - getRegion(): Region; - - /** - * Display View in the region attached to the Application. This runs the - * View lifecycle. - */ - showView(view: View): void; - - /** - * Return the view currently being displayed in the Application's - * attached region. If the Application is not currently displaying a - * view, this method returns undefined. - */ - getView(): View; - } - - /** - * A Behavior provides a clean separation of concerns to your view logic, - * allowing you to share common user-facing operations between your views. - */ - class Behavior extends Object { - constructor(options?: any); - - options: any; - - /** - * Behaviors can have their own ui hash, which will be mixed into the ui - * hash of its associated View instance. ui elements defined on either the - * Behavior or the View will be made available within events and triggers. - * They also are attached directly to the Behavior and can be accessed within - * Behavior methods as this.ui. - */ - ui: any; - - /** - * Any triggers you define on the Behavior will be triggered in response to the appropriate event on the view. - */ - triggers: EventsHash; - - /** - * modelEvents will respond to the view's model events. - */ - modelEvents: EventsHash; - - /** - * collectionEvents will respond to the view's collection events. - */ - collectionEvents: EventsHash; - - /** - * The behaviors key allows a behavior to group multiple behaviors - * together. - */ - behaviors: Behavior[] | { [index: string]: typeof Behavior; } | Array<{ - behaviorClass: typeof Behavior; - [index: string]: any; - }>; - - /** - * defaults can be a hash or function to define the default options for - * your behavior. The default options will be overridden depending on - * what you set as the options per behavior (this works just like a - * backbone.model). - */ - defaults: any; - - /** - * el is a direct proxy of the view's el - */ - el: any; - - /** - * $el is a direct proxy of the view's el cached as a jQuery selector. - */ - $el: JQuery; - - /** - * The View that this behavior is attached to. - */ - view: View; - - /** - * $ is a direct proxy of the views $ lookup method. - */ - $(selector: any): JQuery; - } - - /** - * DEPRECATED - */ - class Behaviors { - /** - * This method defines where your behavior classes are stored. Override this to provide another lookup. - */ - static behaviorsLookup(): any; - - /** - * This method has a default implementation that is simple to override. It - * is responsible for the lookup of single behavior from within the - * Behaviors.behaviorsLookup or elsewhere. Note that it should return the type of the - * class to instantiate, not an instance of that class. - */ - static getBehaviorClass(options: any, key: string): any; - } + triggerMethod(name: string, ...args: any[]): any; +} + +/** + * The TemplateCache provides a cache for retrieving templates from script blocks + * in your HTML. This will improve the speed of subsequent calls to get a template. + */ +export class TemplateCache implements DomMixin { + /** + * Returns a new HTML DOM node instance. The resulting node can be + * passed into the other DOM functions. + */ + createBuffer(): DocumentFragment; + + /** + * Takes the DOM node el and appends the rendered children to the end of + * the element's contents. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param children is jQuery.append argument: http://api.jquery.com/append/ + */ + appendChildren(el: any, children: any): void; + + /** + * Add sibling to the DOM immediately before the DOM node el. The + * sibling will be at the same level as el. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param sibling is jQuery.before argument: http://api.jquery.com/before/ + */ + beforeEl(el: any, sibling: any): void; + + /** + * Remove oldEl from the DOM and put newEl in its place. + */ + replaceEl(newEl: HTMLElement, oldEL: HTMLElement): void; + + /** + * Remove the inner contents of el from the DOM while leaving el itself + * in the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + detachContents(el: any): void; + + /** + * Replace the contents of el with the HTML string of html. Unlike other + * DOM functions, this takes a literal string for its second argument. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param html is a jQuery.html argument: https://api.jquery.com/html/ + */ + setInnerContent(el: any, html: string): void; + + /** + * Detach el from the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + detachEl(el: any): void; + + /** + * Remove el from the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + removeEl(el: any): void; + + /** + * Lookup the selector string within the DOM node for context. The + * optional context argument will come in as a DOM Node reference to run + * the selector search. If context hasn't been set, then findEls should + * search the entire document for the selector. + * @param selector is a jQuery argument: https://api.jquery.com/jQuery/ + * @param context is a jQuery argument: https://api.jquery.com/jQuery/ + */ + findEls(selector: any, context: any): void; + + /** + * To use the TemplateCache, call the get method on TemplateCache + * directly. Internally, instances of the TemplateCache class will be + * created and stored but you do not have to manually create these + * instances yourself. get will return a compiled template function. + */ + static get(templateId: string, options?: any): any; + + /** + * You can clear one or more, or all items from the cache using the clear + * method. Clearing a template from the cache will force it to re-load + * from the DOM the next time it is retrieved. + * @param the templateId used for loading / caching of the templates to clear. If none specified, all templates will be cleared from the cache. + */ + static clear(...templateId: string[]): void; + + /** + * Initial method to load the template. (undocumented) + */ + load(options?: any): any; + + /** + * The default template retrieval is to select the template contents from the + * DOM using jQuery. If you wish to change the way this works, you can + * override this method on the TemplateCache object. + * Note that the options argument seems to be unused in the source. + */ + loadTemplate(templateId: string, options?: any): any; + + /** + * The default template compilation passes the results from loadTemplate to + * the compileTemplate function, which returns an underscore.js compiled + * template function. When overriding compileTemplate remember that it + * must return a function which takes an object of parameters and values + * and returns a formatted HTML string. + */ + compileTemplate(rawTemplate: any, options?: any): any; +} + +export interface RegionConstructionOptions { + /** + * Specifies the element for the region to manage. This may be + * a selector string, a raw DOM node reference or a jQuery wrapped + * DOM node. + */ + el?: any; + + /** + * Prevents error on missing element. (undocumented) + */ + allowMissingEl?: boolean; + + /** + * Element to use as context when finding el via jQuery. Defaults to the + * the document. (undocumented) + */ + parentEl?: string; + + /** + * Overwrite the parent el of the region with the rendered contents of + * the inner View. + */ + replaceElement?: string; +} + +export interface RegionViewOptions { + /** + * DEPRECATED: If you replace the current view with a new view by calling show, by + * default it will automatically destroy the previous view. You can + * prevent this behavior by setting this option to true. + */ + preventDestroy?: boolean; +} + +/** + * Regions provide consistent methods to manage, show and destroy views in + * your applications and layouts. They use a jQuery selector to show your + * views in the correct place. + */ +export class Region extends Object implements DomMixin { + /** + * Returns a new HTML DOM node instance. The resulting node can be + * passed into the other DOM functions. + */ + createBuffer(): DocumentFragment; + + /** + * Takes the DOM node el and appends the rendered children to the end of + * the element's contents. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param children is jQuery.append argument: http://api.jquery.com/append/ + */ + appendChildren(el: any, children: any): void; + + /** + * Add sibling to the DOM immediately before the DOM node el. The + * sibling will be at the same level as el. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param sibling is jQuery.before argument: http://api.jquery.com/before/ + */ + beforeEl(el: any, sibling: any): void; + + /** + * Remove oldEl from the DOM and put newEl in its place. + */ + replaceEl(newEl: HTMLElement, oldEL: HTMLElement): void; + + /** + * Remove the inner contents of el from the DOM while leaving el itself + * in the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + detachContents(el: any): void; + + /** + * Replace the contents of el with the HTML string of html. Unlike other + * DOM functions, this takes a literal string for its second argument. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param html is a jQuery.html argument: https://api.jquery.com/html/ + */ + setInnerContent(el: any, html: string): void; + + /** + * Detach el from the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + detachEl(el: any): void; + + /** + * Remove el from the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + removeEl(el: any): void; + + /** + * Lookup the selector string within the DOM node for context. The + * optional context argument will come in as a DOM Node reference to run + * the selector search. If context hasn't been set, then findEls should + * search the entire document for the selector. + * @param selector is a jQuery argument: https://api.jquery.com/jQuery/ + * @param context is a jQuery argument: https://api.jquery.com/jQuery/ + */ + findEls(selector: any, context: any): void; + + /** + * You can specify an el for the region to manage at the time the region + * is instantiated. + */ + constructor(options?: RegionConstructionOptions); + + /** + * Defaults to 'mnr' (undocumented) + */ + cidPrefix: string; + + /** + * Overwrite the parent el of the region with the rendered contents of + * the inner View. + */ + replaceElement: boolean; + + /** + * Contains the element that this region should manage. + */ + el: any; + + /** + * Renders and displays the specified view in this region. + * @param view the view to display. + */ + show(view: Backbone.View, options?: RegionViewOptions): void; + + /** + * Override this method to change how the region finds the DOM element + * that it manages. Return a jQuery selector object scoped to a provided + * parent el or the document if none exists. (undocumented) + */ + getEl(): any; + + /** + * Check to see if the region’s el was replaced. (undocumented) + */ + isReplaced(): boolean; + + /** + * Check to see if a view is being swapped by another. + */ + isSwappingView(): boolean; + + /** + * Override this method to change how the new view is appended to the + * `$el` that the region is managing + */ + attachHtml(view: Backbone.View): void; + + /** + * Destroy the current view, clean up any event handlers and remove it + * from the DOM. When a region is emptied empty events are triggered. + */ + empty(options?: RegionViewOptions): any; + + /** + * Destroys the view taking into consideration if is a View descendant + * or vanilla Backbone view. + */ + destroyView(view: Backbone.View): Backbone.View; + + /** + * Override the region's removeView method to change how and when the + * view is destroyed / removed from the DOM. + */ + removeView(view: Backbone.View): void; + + /** + * Empties the Region without destroying the view, returns the detached + * view. + */ + detachView(): Backbone.View; + + /** + * Override this method to change how the region detaches current + * content. + */ + detachHtml(): void; + + /** + * If you wish to check whether a region has a view, you can use the + * hasView function. This will return a boolean value depending whether + * or not the region is showing a view. + */ + hasView(): boolean; + + /** + * A region can be reset at any time. This destroys any existing view + * being displayed, and deletes the cached el. The next time the region + * shows a view, the region's el is queried from the DOM. + */ + reset(): any; + + /** + * @returns view that this region has. + */ + currentView: Backbone.View; +} + +/** + * Render a template with data by passing in the template selector and the + * data to render. This is the default renderer that is used by Marionette. + */ +export class Renderer { + /** + * This method returns a string containing the result of applying the + * template using the data object as the context. + * @param template The template to render. If this is a function this is + * treated as a pre-compiled template and does not try to compile it again. This + * allows any view that supports a template parameter to specify a pre-compiled + * template function as the template setting. The template function does not + * have to be any specific template engine. It only needs to be a function + * that returns valid HTML as a string from the data parameter passed to + * the function. + */ + static render(template: any, data: any): string; +} + +export interface ViewOptions extends Backbone.ViewOptions, ViewMixinOptions { + /** + * The events attribute binds DOM events to actions to perform on the + * view. It takes DOM event key and a mapping to the handler. + */ + events?: EventsHash; + + /** + * If you've created a custom region class, you can use it to define + * your region. + */ + regionClass?: any; + + /** + * Add regions to this View. + */ + regions?: any; + + /** + * Set the template of this View. + */ + template?: any; + + /** + * The templateContext attribute can be used to add extra information to + * your templates + */ + templateContext?: any; +} + +/** + * A View is a view that represents an item to be displayed with a template. + * This is typically a Backbone.Model, Backbone.Collection, or nothing at + * all. Views are also used to build up your application hierarchy - you can + * easily nest multiple views through the regions attribute. + */ +export class View extends Backbone.View implements ViewMixin, RegionsMixin { + constructor(options?: ViewOptions); + + events(): EventsHash; + + /** + * Returns a new HTML DOM node instance. The resulting node can be + * passed into the other DOM functions. + */ + createBuffer(): DocumentFragment; + + /** + * Takes the DOM node el and appends the rendered children to the end of + * the element's contents. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param children is jQuery.append argument: http://api.jquery.com/append/ + */ + appendChildren(el: any, children: any): void; + + /** + * Add sibling to the DOM immediately before the DOM node el. The + * sibling will be at the same level as el. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param sibling is jQuery.before argument: http://api.jquery.com/before/ + */ + beforeEl(el: any, sibling: any): void; + + /** + * Remove oldEl from the DOM and put newEl in its place. + */ + replaceEl(newEl: HTMLElement, oldEL: HTMLElement): void; + + /** + * Remove the inner contents of el from the DOM while leaving el itself + * in the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + detachContents(el: any): void; + + /** + * Replace the contents of el with the HTML string of html. Unlike other + * DOM functions, this takes a literal string for its second argument. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + * @param html is a jQuery.html argument: https://api.jquery.com/html/ + */ + setInnerContent(el: any, html: string): void; + + /** + * Detach el from the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + detachEl(el: any): void; + + /** + * Remove el from the DOM. + * @param el is a jQuery argument: https://api.jquery.com/jQuery/ + */ + removeEl(el: any): void; + + /** + * Lookup the selector string within the DOM node for context. The + * optional context argument will come in as a DOM Node reference to run + * the selector search. If context hasn't been set, then findEls should + * search the entire document for the selector. + * @param selector is a jQuery argument: https://api.jquery.com/jQuery/ + * @param context is a jQuery argument: https://api.jquery.com/jQuery/ + */ + findEls(selector: any, context: any): void; + + /** + * Receives a hash of event names and functions and/or function names, + * and returns the same hash with the function names replaced with the + * function references themselves. + */ + normalizeMethods(hash: any): T; + + /** + * A handy function to pluck certain options and attach them directly + * to an instance. + */ + mergeOptions(options: any, keys: any): void; + + /** + * Retrieve an object's attribute either directly from the object, or from + * the object's this.options, with this.options taking precedence. + * @param optionName the name of the option to retrieve. + */ + getOption(optionName: string): any; + + /** + * This method is used to bind a backbone "entity" (collection/model) to + * methods on a target object. + */ + bindEvents(entity: any, bindings: any): void; + + /** + * This method can be used to unbind callbacks from entities' + * (collection/model) events. + */ + unbindEvents(entity: any, bindings: any): void; + + /** + * Internal property. (undocumented) + */ + supportsRenderLifecycle: boolean; + + /** + * Internal property. (undocumented) + */ + supportsDestroyLifecycle: boolean; + + /** + * Check if this View has been destroyed. + */ + isDestroyed(): boolean; + + /** + * Check if this View has been rendered. + */ + isRendered(): boolean; + + /** + * Check if this View is attached to the DOM. + */ + isAttached(): boolean; + + /** + * Overrides Backbone.View.delegateEvents. By default Marionette uses + * this to add handlers for events and triggers. (undocumented) + */ + delegateEvents(eventsArg: any): View; + + /** + * Get the triggers that are currently attached to this view. + * (undocumented) + */ + getTriggers(): EventsHash; + + /** + * Delegate entity events. (undocumented) + */ + delegateEntityEvents(): View; + + /** + * Undelegate entity events. (undocumented) + */ + undelegateEntityEvents(): View; + + /** + * Manually destroy a view by calling the destroy method. The method + * unbinds the UI elements, removes the view and its children from the + * DOM and unbinds the listeners. It also triggers lifecycle events. + */ + destroy(...args: any[]): View; + + /** + * Bind UI elements to this view. By default this is called in the + * render method. (undocumented) + */ + bindUIElements(): any; + + /** + * Bind UI elements from this view. (undocumented) + */ + unbindUIElements(): any; + + /** + * Customize the event prefix for events that are forwarded through the + * collection view. + */ + childViewEventPrefix: string | false; + + /** + * Trigger an event and a corresponding method on the target object. + * All arguments that are passed to the triggerMethod call are passed + * along to both the event and the method, with the exception of the + * event name not being passed to the corresponding method. + */ + triggerMethod(name: string, ...args: any[]): any; + + /** + * Define the region class used for this View. + */ + regionClass: any; + + /** + * Add a region to this View. + */ + addRegion(regionName: string, element: any): any; + + /** + * Add multiple regions to this View. + */ + addRegions(regions: any): any; + + /** + * Remove a region from this View. + */ + removeRegion(regionName: string): any; + + /** + * Remove all regions from this View. + */ + removeRegions(): any; + + /** + * Empty all regions from this View. + */ + emptyRegions(): any; + + /** + * Check if this View has a particular region. + */ + hasRegion(regionName: string): any; + + /** + * Return a region from this View. + */ + getRegion(regionName: string): Region; + + /** + * Returns all regions from this View. + */ + getRegions(): any; + + /** + * Show a view inside a region. + */ + showChildView(regionName: string, view: any, options?: RegionViewOptions): void; + + /** + * Detach a view from a region. + */ + detachChildView(regionName: string): Backbone.View; + + /** + * Get the view from a region. + */ + getChildView(regionName: string): Backbone.View; + + /** + * The results of this method ared passed to this View's template. By + * default Marionette will attempt to pass either an attached model or + * collection which has been converted to JSON. + */ + serializeData(): any; + + /** + * Method used by this.serializeData to serialize this View's model + * data. + */ + serializeModel(): any; + + /** + * Method used by this.serializeData to serialize this View's collection + * data. + */ + serializeCollection(): any; + + /** + * Rebind this View to a new element. Overriding Backbone.View’s + * setElement to handle if an element was previously defined. + * (undocumented) + */ + setElement(element: any): View; + + /** + * Renders the view. Given a template this method will build your HTML + * from that template, mixing in model information and any extra + * template context. + */ + render(): View; + + /** + * Used to determine which template to use. Override this method to add + * logic for using multiple templates. + */ + getTemplate(): any; + + /** + * Mix in template context methods. Looks for a templateContext + * attribute, which can either be an object literal, or a function that + * returns an object literal. All methods and attributes from this + * object are copies to the object passed in. (undocumented) + */ + mixinTemplateContext(...args: any[]): any; + + /** + * Used to attached the rendered template to this View's element. + */ + attachElContent(html: string): View; + + /** + * Used to set the renderer for this View. The rendere function is + * passed the template and the data and is expected to return an html + * string. By default this is set to use Renderer. + */ + setRenderer(renderer: (template: any, data: any) => string): void; + + /** + * Event that is triggered before this View is rendered. + */ + onBeforeRender(view: View): void; + + /** + * Event that is triggered after this View is rendered. + */ + onRender(view: View): void; + + /** + * Event that is triggered before this View is added to the DOM. + */ + onBeforeAttach(view: View): void; + + /** + * Event that is triggered after this View's element has been added to + * the DOM. + */ + onAttach(view: View): void; + + /** + * Event that is triggered after this View's content has been added to + * the DOM. Is also triggered every time this.render() is called. + */ + onDomRefresh(view: View): void; + + /** + * Event that is triggered before this View is destroyed. + */ + onBeforeDestroy(view: View, ...args: any[]): void; + + /** + * Event that is triggered before this View's element is removed from + * the DOM. + */ + onBeforeDetach(view: View): void; + + /** + * Event that is triggered before this View's content is removed from + * the DOM. + */ + onDomRemove(view: View): void; + + /** + * Event that is triggered after this View's element has been removed + * from the DOM. + */ + onDetach(view: View): void; + + /** + * Event that is triggered after this View is destroyed. + */ + onDestroy(view: View, ...args: any[]): void; + + /** + * Event that is triggered before a Region is added. + */ + onBeforeAddRegion(regionName: string, region: Region): void; + + /** + * Event that is triggered after a Region has been added. + */ + onAddRegion(regionName: string, region: Region): void; + + /** + * Event that is triggered before a Region is removed. + */ + onBeforeRemoveRegion(regionName: string, region: Region): void; + + /** + * Event that is triggered after a Region has been removed. + */ + onRemoveRegion(regionName: string, region: Region): void; + + /** + * Behavior objects to assign to this View. + */ + behaviors: Behavior[] | { [index: string]: typeof Behavior; } | Array<{ + behaviorClass: typeof Behavior; + [index: string]: any; + }>; + + /** + * Bind to events that occur on attached models. + */ + modelEvents: EventsHash; + + /** + * The view triggers attribute binds DOM events to Marionette View events + * that can be responded to at the view or parent level. + */ + triggers: EventsHash; + + /** + * Name parts of your template to be used + * throughout the view with the ui attribute. + */ + ui: any; +} + +export interface CollectionViewOptions< + TModel extends Backbone.Model, + TCollection extends Backbone.Collection = Backbone.Collection +> extends Backbone.ViewOptions, ViewMixinOptions { + /** + * Specify a child view to use. + */ + childView?: (() => typeof Backbone.View) | typeof Backbone.View; + + /** + * Define options to pass to the childView constructor. + */ + childViewOptions?: (() => ViewOptions) | ViewOptions; + + /** + * The events attribute binds DOM events to actions to perform on the + * view. It takes DOM event key and a mapping to the handler. + */ + events?: EventsHash; + + /** + * Prevent some of the underlying collection's models from being + * rendered as child views. + */ + filter?(child?: TModel, index?: number, collection?: TCollection): boolean; + + /** + * Specify a view to use if the collection has no children. + */ + emptyView?: (() => typeof Backbone.View) | typeof Backbone.View; + + /** + * Define options to pass to the emptyView constructor. + */ + emptyViewOptions?: (() => ViewOptions) | ViewOptions; + + /** + * If true when you sort your collection there will be no re-rendering, + * only the DOM nodes will be reordered. + */ + reorderOnSort?: boolean; + + /** + * If false the collection view will not maintain a sorted collection's + * order in the DOM. + */ + sort?: boolean; + + /** + * Render your collection view's children with a different sort order + * than the underlying Backbone collection. + */ + viewComparator?: string | ((element: TModel) => number | string) | ((compare: TModel, to?: TModel) => number); // Mirrors Backbone.Collection.comparator +} + +/** + * The CollectionView will loop through all of the models in the specified + * collection, render each of them using a specified childView, then append + * the results of the child view's el to the collection view's el. By + * default the CollectionView will maintain a sorted collection's order in the + * DOM. This behavior can be disabled by specifying {sort: false} on + * initialize. + */ +export class CollectionView, TCollection extends Backbone.Collection = Backbone.Collection> extends View { + constructor(options?: CollectionViewOptions); + + /** + * Specify a child view to use. + */ + childView: (() => { new(...args: any[]): TView }) | { new(...args: any[]): TView }; + + /** + * Define options to pass to the childView constructor. + */ + childViewOptions: ((model: TModel, index: number) => ViewOptions) | ViewOptions; + + /** + * Prevent some of the underlying collection's models from being + * rendered as child views. + */ + filter: (child?: TModel, index?: number, collection?: TCollection) => boolean; + + /** + * Modify the CollectionView's filter attribute, and renders the new + * ChildViews in a efficient way, instead of rendering the whole DOM + * structure again. + */ + setFilter: (filter: (child?: TModel, index?: number, collection?: TCollection) => boolean, options: { preventRender: boolean }) => void; + + /** + * Remove a filter from the CollectionView. + */ + removeFilter: (options: { preventRender: boolean }) => void; + + /** + * Specify a view to use if the collection has no children. + */ + emptyView: (() => { new(...args: any[]): Backbone.View }) | { new(...args: any[]): Backbone.View }; + + /** + * Define options to pass to the emptyView constructor. + */ + emptyViewOptions: ((model: TModel, index: number) => ViewOptions) | ViewOptions; + + /** + * Method used to determine when emptyView is rendered. + */ + isEmpty(): boolean; + + /** + * The render method of the collection view is responsible for rendering + * the entire collection. It loops through each of the children in the + * collection and renders them individually as an childView. + */ + render(): CollectionView; + + /** + * This method is used move the HTML from the element buffer into the + * collection view's el. + */ + attachHtml(collectionView: CollectionView, childView: TView, index: number): void; + + /** + * When overriding attachHtml it may be necessary to also override how + * the buffer is attached. + */ + attachBuffer(collectionView: CollectionView, buffer: DocumentFragment): void; + + /** + * Customize the event prefix for events that are forwarded through the + * collection view. + */ + childViewEventPrefix: string | false; + + /** + * Use the childViewEvents attribute to map child events to methods on the + * parent view. + */ + childViewEvents: EventsHash; + + /** + * A childViewTriggers hash or method permits proxying of child view events + * without manually setting bindings. The values of the hash should be a + * string of the event to trigger on the parent. + */ + childViewTriggers: EventsHash; + + /** + * Bind to events that occur on attached collections. + */ + collectionEvents: EventsHash; + + /** + * Bind to events that occur on attached models. + */ + modelEvents: EventsHash; + + /** + * The view triggers attribute binds DOM events to Marionette View events + * that can be responded to at the view or parent level. + */ + triggers: EventsHash; + + /** + * If true when you sort your collection there will be no re-rendering, + * only the DOM nodes will be reordered. + */ + reorderOnSort: boolean; + + /** + * If reorderOnSort is set to true, this function will be used instead + * of re-rendering all children. + */ + reorder(): void; + + /** + * By default the CollectionView will maintain the order of its + * collection in the DOM. However on occasions the view may need to + * re-render to make this possible, for example if you were to change + * the comparator on the collection. The CollectionView will re-render + * its children or reorder them depending on reorderOnSort. + */ + resortView(): void; + + /** + * Render your collection view's children with a different sort order + * than the underlying Backbone collection. + */ + viewComparator: string | ((element: TModel) => number | string) | ((compare: TModel, to?: TModel) => number); // Mirrors Backbone.Collection.comparator + + /** + * Override this method to determine which viewComparator to use. + */ + getViewComparator: () => (string | ((element: TModel) => number | string) | ((compare: TModel, to?: TModel) => number)); // Mirrors Backbone.Collection.comparator + + /** + * Behavior objects to assign to this View. + */ + behaviors: Behavior[] | { [index: string]: typeof Behavior; } | Array<{ + behaviorClass: typeof Behavior; + [index: string]: any; + }>; + + /** + * Name parts of your template to be used throughout the view with the + * ui attribute. + */ + ui: any; + + /** + * The CollectionView can store and manage its child views. This allows + * you to easily access the views within the collection view, iterate + * them, find them by a given indexer such as the view's model or + * collection, and more. + */ + children: Container; + + /** + * The buildChildView is responsible for taking the ChildView class and + * instantiating it with the appropriate data. + */ + buildChildView(child: TModel, childViewClass: { new(...args: any[]): TView }, childViewOptions: ViewOptions): void; + + /** + * The addChildView method can be used to add a view that is independent + * of your Backbone.Collection. + */ + addChildView(childView: TView, index: number): void; + + /** + * The removeChildView method is useful if you need to remove a view + * from the CollectionView without affecting the view's collection. + */ + removeChildView(childView: TView): void; + + /** + * Called just prior to rendering the collection view. + */ + onBeforeRender(): void; + + /** + * Triggered after the view has been rendered. You can implement this in + * your view to provide custom code for dealing with the view's el after + * it has been rendered. + */ + onRender(): void; + + /** + * This callback function allows you to know when a child / child view + * instance is about to be added to the collection view. It provides + * access to the view instance for the child that was added. + */ + onBeforeAddChild(childView: TView): void; + + /** + * This callback function allows you to know when a child / child view + * instance has been added to the collection view. It provides access to + * the view instance for the child that was added. + */ + onAddChild(childView: TView): void; + + /** + * This callback function allows you to know when a childView instance is + * about to be removed from the collectionView. It provides access to the + * view instance for the child that was removed. + */ + onBeforeRemoveChild(childView: TView): void; + + /** + * This callback function allows you to know when a child / childView + * instance has been deleted or removed from the collection. + */ + onRemoveChild(childView: TView): void; + + /** + * Automatically destroys this Collection's children and cleans up + * listeners. + */ + destroy(...args: any[]): CollectionView; +} + +export interface AppRoutes { + [index: string]: string; +} + +export interface AppRouterOptions { + /** + * Define the app routes and the method names on the controller that + * will be called when accessing the routes. + */ + appRoutes?: AppRoutes; + + /** + * Define the app routes and the method names on the router that will be + * called when accessing the routes. + */ + routes?: AppRoutes; + + /** + * An object that contains the methods specified in appRoutes. + */ + controller?: any; +} + +/** + * The Marionette AppRouter is typically used to set up your app when the + * user loads a specific endpoint directly. + */ +export class AppRouter extends Backbone.Router { + constructor(options?: AppRouterOptions); + + /** + * Add an app route at runtime. + */ + appRoute(route: string, methodName: string): void; + + /** + * Specify a controller with the multiple routes at runtime. This will + * preserve the existing controller as well. + */ + processAppRoutes(controller: any, appRoutes: AppRoutes): void; + + /** + * An object that contains the methods specified in appRoutes. + */ + controller: any; + + /** + * Fires whenever the user navigates to a new route in your application + * that matches a route. + */ + onRoute(name: string, path: string, args: any[]): void; +} + +export interface ApplicationOptions extends ObjectOptions { + /** + * Root entry point for the View tree of your Application. + */ + region: string; +} + +/** + * The Application is used to model your Marionette application under a + * single entry point. The application provides: + * - An obvious entry point to your app + * - A clear hook for global events e.g. the AppRouter + * - An interface to let you inject variables from the wider context into + * your app + */ +export class Application extends Object { + constructor(options?: ApplicationOptions); + + /** + * Root entry point for the View tree of your Application. + */ + region: string; + + /** + * Called immediately after the Application has been instantiated, and + * is invoked with the same arguments that the constructor received. + */ + initialize(options: ApplicationOptions): void; + + /** + * Fired just before the application is started. + */ + onBeforeStart(options: ApplicationOptions): void; + + /** + * Fired as part of the application startup. + */ + onStart(options: ApplicationOptions): void; + + /** + * Once you have your application configured, you can kick everything + * off by calling this method. + */ + start(options?: any): void; + + /** + * Return the attached region object for the Application. + */ + getRegion(): Region; + + /** + * Display View in the region attached to the Application. This runs the + * View lifecycle. + */ + showView(view: View): void; + + /** + * Return the view currently being displayed in the Application's + * attached region. If the Application is not currently displaying a + * view, this method returns undefined. + */ + getView(): View; +} + +/** + * A Behavior provides a clean separation of concerns to your view logic, + * allowing you to share common user-facing operations between your views. + */ +export class Behavior extends Object { + constructor(options?: any); + + options: any; + + /** + * Behaviors can have their own ui hash, which will be mixed into the ui + * hash of its associated View instance. ui elements defined on either the + * Behavior or the View will be made available within events and triggers. + * They also are attached directly to the Behavior and can be accessed within + * Behavior methods as this.ui. + */ + ui: any; + + /** + * Any triggers you define on the Behavior will be triggered in response to the appropriate event on the view. + */ + triggers: EventsHash; + + /** + * modelEvents will respond to the view's model events. + */ + modelEvents: EventsHash; + + /** + * collectionEvents will respond to the view's collection events. + */ + collectionEvents: EventsHash; + + /** + * The behaviors key allows a behavior to group multiple behaviors + * together. + */ + behaviors: Behavior[] | { [index: string]: typeof Behavior; } | Array<{ + behaviorClass: typeof Behavior; + [index: string]: any; + }>; + + /** + * defaults can be a hash or function to define the default options for + * your behavior. The default options will be overridden depending on + * what you set as the options per behavior (this works just like a + * backbone.model). + */ + defaults: any; + + /** + * el is a direct proxy of the view's el + */ + el: any; + + /** + * $el is a direct proxy of the view's el cached as a jQuery selector. + */ + $el: JQuery; + + /** + * The View that this behavior is attached to. + */ + view: View; + + /** + * $ is a direct proxy of the views $ lookup method. + */ + $(selector: any): JQuery; +} + +/** + * DEPRECATED + */ +export class Behaviors { + /** + * This method defines where your behavior classes are stored. Override this to provide another lookup. + */ + static behaviorsLookup(): any; + + /** + * This method has a default implementation that is simple to override. It + * is responsible for the lookup of single behavior from within the + * Behaviors.behaviorsLookup or elsewhere. Note that it should return the type of the + * class to instantiate, not an instance of that class. + */ + static getBehaviorClass(options: any, key: string): any; } diff --git a/types/backbone.marionette/tslint.json b/types/backbone.marionette/tslint.json index f93cf8562a..3fc34b8203 100644 --- a/types/backbone.marionette/tslint.json +++ b/types/backbone.marionette/tslint.json @@ -1,3 +1,7 @@ { - "extends": "dtslint/dt.json" + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-unnecessary-generics": false + } } diff --git a/types/backbone/index.d.ts b/types/backbone/index.d.ts index 806086943e..42a322e4c2 100644 --- a/types/backbone/index.d.ts +++ b/types/backbone/index.d.ts @@ -219,7 +219,7 @@ declare namespace Backbone { /** * Specify a model attribute name (string) or function that will be used to sort the collection. */ - comparator: string | ((element: TModel) => number | string) | ((compare: TModel, to?: TModel) => number); + comparator: string | { bivarianceHack(element: TModel): number | string }["bivarianceHack"] | { bivarianceHack(compare: TModel, to?: TModel): number }["bivarianceHack"]; add(model: {}|TModel, options?: AddOptions): TModel; add(models: ({}|TModel)[], options?: AddOptions): TModel[]; diff --git a/types/baidumap-web-sdk/tsconfig.json b/types/baidumap-web-sdk/tsconfig.json index 6af444e434..7b0c7c4913 100644 --- a/types/baidumap-web-sdk/tsconfig.json +++ b/types/baidumap-web-sdk/tsconfig.json @@ -8,6 +8,11 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true }, diff --git a/types/better-sqlite3/index.d.ts b/types/better-sqlite3/index.d.ts index 98de770ccf..530f5c3e53 100644 --- a/types/better-sqlite3/index.d.ts +++ b/types/better-sqlite3/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for better-sqlite3 3.1 // Project: http://github.com/JoshuaWise/better-sqlite3 // Definitions by: Ben Davies +// Mathew Rumsey // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -42,6 +43,7 @@ declare class Transaction { interface DatabaseOptions { memory?: boolean; readonly?: boolean; + fileMustExist?: boolean; } interface RegistrationOptions { diff --git a/types/big.js/big.js-tests.ts b/types/big.js/big.js-tests.ts deleted file mode 100644 index 642bf0fd2e..0000000000 --- a/types/big.js/big.js-tests.ts +++ /dev/null @@ -1,264 +0,0 @@ -// Type definitions for big.js -// Project: https://github.com/MikeMcl/big.js/ -// Definitions by: Steve Ognibene -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/* - - Tests include code from http://mikemcl.github.io/big.js/ - - Minor changes have been made such as adding variable definitions where required. - -*/ - -import BigJS = BigJsLibrary.BigJS; -function constructorTests() { - var x = new Big(9) // '9' - var y = new Big(x) // '9' - var d = Big(435.345) // 'new' is optional - var e = Big('435.345') // 'new' is optional - var a = new Big('5032485723458348569331745.33434346346912144534543') - var b = new Big('4.321e+4') // '43210' - var c = new Big('-735.0918e-430') // '-7.350918e-428' -} - -function staticPropertiesTests() { - Big.DP = 40; - Big.RM = 3; - Big.RM = BigJsLibrary.RoundingMode.RoundAwayFromZero; -} - -function absTests() { - var x = new Big(-0.8); - x.abs(); // '0.8' -} - -function cmpTests() { - var x = new Big(6); - var y = new Big(5); - x.cmp(y); // 1 - y.cmp(x.minus(1)); // 0 -} - -function divTests() { - var x = new Big(355); - var y = new Big(113); - x.div(y); // '3.14159292035398230088' - Big.DP = 2; - x.div(y); // '3.14' - x.div(5); // '71' -} - -function eqTests() { - 0 === 1e-324; // true - var x = new Big(0); - x.eq('1e-324'); // false - Big(-0).eq(x); // true ( -0 === 0 ) -} - -function gtTests() { - 0.1 > 0.3 - 0.2; // true - var x = new Big(0.1); - x.gt(Big(0.3).minus(0.2)); // false - Big(0).gt(x); // false -} - -function gteTests() { - 0.3 - 0.2 >= 0.1; // false - var x = new Big(0.3).minus(0.2); - x.gte(0.1); // true - Big(1).gte(x); // true -} - -function ltTests() { - 0.3 - 0.2 < 0.1; // true - var x = new Big(0.3).minus(0.2); - x.lt(0.1); // false - Big(0).lt(x); // true -} - -function lteTests() { - 0.1 <= 0.3 - 0.2; // false - var x = new Big(0.1); - x.lte(Big(0.3).minus(0.2)); // true - Big(-1).lte(x); // true -} - -function minusTests() { - 0.3 - 0.1; // 0.19999999999999998 - var x = new Big(0.3); - x.minus(0.1); // '0.2' -} - -function modTests() { - 1 % 0.9 // 0.09999999999999998 - var x = Big(1); - x.mod(0.9) // '0.1' -} - -function plusTests() { - 0.1 + 0.2 // 0.30000000000000004 - var x = new Big(0.1) - var y = x.plus(0.2) // '0.3' - Big(0.7).plus(x).plus(y) // '1' -} - -function powTests() { - Math.pow(0.7, 2) // 0.48999999999999994 - var x = new Big(0.7) - x.pow(2) // '0.49' - Big.DP = 20 - Big(3).pow(-2) // '0.11111111111111111111' - - new Big(123.456).pow(1000).toString().length // 5099 - new Big(2).pow(1e+6) // Time taken (Node.js): 9 minutes 34 secs. -} - -function roundTests() { - var x = 123.45 - Math.round(x) // 123 - var y = new Big(x) - y.round() // '123' - y.round(2) // '123.45' - y.round(10) // '123.45' - y.round(1, 0) // '123.4' - y.round(1, 1) // '123.5' - y.round(1, 2) // '123.4' - y.round(1, 3) // '123.5' - y // '123.45' -} - -function sqrtTests() { - var x = new Big(16) - x.sqrt() // '4' - var y = new Big(3) - y.sqrt() // '1.73205080756887729353' -} - -function timesTests() { - 0.6 * 3 // 1.7999999999999998 - var x = new Big(0.6) - var y = x.times(3) // '1.8' - Big('7e+500').times(y) // '1.26e+501' -} - -function toExponentialTests() { - var x = 45.6 - var y = new Big(x) - x.toExponential() // '4.56e+1' - y.toExponential() // '4.56e+1' - x.toExponential(0) // '5e+1' - y.toExponential(0) // '5e+1' - x.toExponential(1) // '4.6e+1' - y.toExponential(1) // '4.6e+1' - x.toExponential(3) // '4.560e+1' - y.toExponential(3) // '4.560e+1' -} - -function toFixedTests() { - var x = 45.6 - var y = new Big(x) - x.toFixed() // '46' - y.toFixed() // '45.6' - y.toFixed(0) // '46' - x.toFixed(3) // '45.600' - y.toFixed(3) // '45.600' -} - -function toPrecisionTests() { - var x = 45.6 - var y = new Big(x) - x.toPrecision() // '45.6' - y.toPrecision() // '45.6' - x.toPrecision(1) // '5e+1' - y.toPrecision(1) // '5e+1' - x.toPrecision(5) // '45.600' - y.toPrecision(5) // '45.600' -} - -function toStringTests() { - var x = new Big('9.99e+20') - x.toString() // '999000000000000000000' - var y = new Big('1E21') - x.toString() // '1e+21' -} - -function valueOfTests() { - var x = new Big('177.7e+457') - x.valueOf() // '1.777e+459' -} - -function toJSONTests() { - var x = new Big('177.7e+457') - var y = new Big(235.4325) - var z = new Big('0.0098074') - var str = JSON.stringify([x, y, z]) - - var a = new Big('123').toJSON(); - - JSON.parse(str, function (k, v) { return k === '' ? v : new Big(v) }) // Returns an array of three Big numbers. -} - -function propertiesTest1() { - var x = new Big(0.123) // '0.123' - x.toExponential() // '1.23e-1' - x.c // '1,2,3' - x.e // -1 - x.s // 1 - - var y = new Number(-123.4567000e+2) // '-12345.67' - y.toExponential() // '-1.234567e+4' - var z = new Big('-123.4567000e+2') // '-12345.67' - z.toExponential() // '-1.234567e+4' - z.c // '1,2,3,4,5,6,7' - z.e // 4 - z.s // -1 -} - -function propertiesTest2() { - var x = new Big('1234.000') // '1234' - x.toExponential() // '1.234e+3' - x.c // '1,2,3,4' - x.e // 3 - - x.e = -5 - x // '0.00001234' -} - -function propertiesTest3() { - var y = new Big(-0) // '0' - y.c // '0' [0].toString() - y.e // 0 - y.s // -1 -} - -// see http://mikemcl.github.io/big.js/#faq -// "How can I simultaneously use different decimal places and/or rounding mode settings for different Big numbers?" -function testMultipleConstructors() { - - var Big10 = Big(); - - // Set the decimal places of division operations for each constructor. - Big.DP = 3; - Big10.DP = 10; - - var x = Big(5); - var y = Big10(5); - - x.div(3) // 1.667 - y.div(3) // 1.6666666667 -} -function multipleTypesAccepted(n: number | BigJS | string) { - var y = Big(n) - .minus(n) - .mod(n) - .plus(n) - .times(n); - y.cmp(n); - y.eq(n); - y.gt(n); - y.gte(n); - y.lt(n); - y.lte(n); - y.div(n) -} diff --git a/types/big.js/index.d.ts b/types/big.js/index.d.ts index 92eb845b98..cf197e8cfc 100644 --- a/types/big.js/index.d.ts +++ b/types/big.js/index.d.ts @@ -1,142 +1,325 @@ -// Type definitions for big.js +// Type definitions for big.js 4.0 // Project: https://github.com/MikeMcl/big.js/ // Definitions by: Steve Ognibene +// Miika Hänninen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +export type BigSource = number | string | Big; -declare namespace BigJsLibrary { - - export const enum RoundingMode { - RoundTowardsZero = 0, - RoundTowardsNearestAwayFromZero = 1, - RoundTowardsNearestTowardsEven = 2, - RoundAwayFromZero = 3 - } - - interface BigJS extends BigJS_Constructors { - /** The maximum number of decimal places of the results of operations involving division. - It is relevant only to the div and sqrt methods, and the pow method when the exponent is negative. - @default 40 */ - DP: number; - - /** The rounding mode used in the above operations and by round, toExponential, toFixed and toPrecision. - Default is RoundTowardsNearestAwayFromZero - @default 1 */ - RM: RoundingMode; - } - - type BigNumberInputType = number | string | BigJS; - - interface BigJS_Constructors { - new (value: BigNumberInputType): BigJS; - (value: BigNumberInputType): BigJS; - - /** A decimal value. */ - (): BigJS; - } - - /** BigJS instance methods */ - interface BigJS extends BigJS_Constructors { - /** Returns a Big number whose value is the absolute value, i.e. the magnitude, of this Big number. */ - abs(): BigJS; - - /** Compare - @returns {Number} - 1 = If the value of this Big number is greater than the value of n - -1 = If the value of this Big number is less than the value of n - 0 = If this Big number and n have the same value */ - cmp(n: BigNumberInputType): number; - - /** Returns a Big number whose value is the value of this Big number divided by n. */ - div(n: BigNumberInputType): BigJS; - - /** Returns true if the value of this Big equals the value of n, otherwise returns false. */ - eq(n: BigNumberInputType): boolean; - - /** Returns true if the value of this Big is greater than the value of n, otherwise returns false. */ - gt(n: BigNumberInputType): boolean; - - /** Returns true if the value of this Big is greater than or equal to the value of n, otherwise returns false. */ - gte(n: BigNumberInputType): boolean; - - /** Returns true if the value of this Big is less than the value of n, otherwise returns false. */ - lt(n: BigNumberInputType): boolean; - - /** Returns true if the value of this Big is less than or equal to the value of n, otherwise returns false. */ - lte(n: BigNumberInputType): boolean; - - /** Returns a Big number whose value is the value of this Big number minus n. */ - minus(n: BigNumberInputType): BigJS; - - /** Returns a Big number whose value is the value of this Big number modulo n, i.e. the integer remainder of dividing this Big number by n. - The result will have the same sign as this Big number, and it will match that of Javascript's % operator (within the limits of its precision) and BigDecimal's remainder method. */ - mod(n: BigNumberInputType): BigJS; - - /** Returns a Big number whose value is the value of this Big number plus n. */ - plus(n: BigNumberInputType): BigJS; - - /** Returns a Big number whose value is the value of this Big number raised to the power exp. - If exp is negative and the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM. - @param exp integer, -1e+6 to 1e+6 inclusive */ - pow(exp: number): BigJS; - - /** Returns a Big number whose value is the value of this Big number rounded to a whole number. */ - round(): BigJS; - /** Returns a Big number whose value is the value of this Big number rounded using rounding mode rm to a maximum of dp decimal places. - @param dp Number of decimal places (0 to 1e+6 inclusive). If dp is omitted or is null or undefined, the return value is n rounded to a whole number. */ - round(dp: number): BigJS; - /** Returns a Big number whose value is the value of this Big number rounded using rounding mode rm to a maximum of dp decimal places. - @param dp Number of decimal places (0 to 1e+6 inclusive). If dp is omitted or is null or undefined, the return value is n rounded to a whole number. - @param rm Rounding mode. If rm is omitted or is null or undefined, the current Big.RM setting is used. */ - round(dp: number, rm: RoundingMode): BigJS; - - /** Returns a Big number whose value is the square root of this Big number. */ - sqrt(): BigJS; - - /** Returns a Big number whose value is the value of this Big number times n. */ - times(n: BigNumberInputType): BigJS; - - /** Returns a string representing the value of this Big number in exponential notation to a fixed number of decimal places dp. */ - toExponential(): string; - /** Returns a string representing the value of this Big number in exponential notation to a fixed number of decimal places dp. - @param dp Number of decimal places (0 to 1e+6 inclusive). If dp is omitted, or is null or undefined, the number of digits after the decimal point defaults to the minimum number of digits necessary to represent the value exactly. */ - toExponential(dp: number): string; - - /** Returns a string representing the value of this Big number in normal notation to a fixed number of decimal places dp. */ - toFixed(): string; - /** Returns a string representing the value of this Big number in normal notation to a fixed number of decimal places dp. - @param dp Number of decimal places (0 to 1e+6 inclusive). If dp is omitted, or is null or undefined, then the return value is simply the value in normal notation. This is also unlike Number.prototype.toFixed, which returns the value to zero decimal places. */ - toFixed(dp: number): string; - - /** Returns a string representing the value of this Big number to the specified number of significant digits sd. */ - toPrecision(): string; - /** Returns a string representing the value of this Big number to the specified number of significant digits sd. - @param sd significant digits. If sd is omitted, or is null or undefined, then the return value is the same as .toString(). */ - toPrecision(sd: number /** number of significant digits (0 to 1e+6 inclusive) */): string; - - /** Returns a string representing the value of this Big number. */ - toString(): string; - - /** As toString. */ - valueOf(): string; - - /** As toString. */ - toJSON(): string; - - /** coefficient (significand) */ - c: number[]; - - /** exponent (Integer, -1e+6 to 1e+6 inclusive) */ - e: number; - - /** sign (-1 or 1) */ - s: number; - } +export const enum Comparison { + GT = 1, + EQ = 0, + LT = -1, } -declare module "big.js" { - var bigjs : BigJsLibrary.BigJS; - export = bigjs; +export const enum RoundingMode { + /** + * Rounds towards zero. + * I.e. truncate, no rounding. + */ + RoundDown = 0, + /** + * Rounds towards nearest neighbour. + * If equidistant, rounds away from zero. + */ + RoundHalfUp = 1, + /** + * Rounds towards nearest neighbour. + * If equidistant, rounds towards even neighbour. + */ + RoundHalfEven = 2, + /** + * Rounds away from zero. + */ + RoundUp = 3, } -declare var Big: BigJsLibrary.BigJS; +export interface BigConstructor { + /** + * Returns a new instance of a Big number object + * + * String values may be in exponential, as well as normal (non-exponential) notation. + * There is no limit to the number of digits of a string value (other than that of Javascript's maximum array size), but the largest recommended exponent magnitude is 1e+6. + * Infinity, NaN and hexadecimal literal strings, e.g. '0xff', are not valid. + * String values in octal literal form will be interpreted as decimals, e.g. '011' is 11, not 9. + * + * @throws `NaN` on an invalid value. + */ + new (value: BigSource): Big; + + /** + * Returns a new instance of a Big number object + * + * String values may be in exponential, as well as normal (non-exponential) notation. + * There is no limit to the number of digits of a string value (other than that of Javascript's maximum array size), but the largest recommended exponent magnitude is 1e+6. + * Infinity, NaN and hexadecimal literal strings, e.g. '0xff', are not valid. + * String values in octal literal form will be interpreted as decimals, e.g. '011' is 11, not 9. + * + * @throws `NaN` on an invalid value. + */ + (value: BigSource): Big; + + /** + * Create an additional Big number constructor + * + * Values created with the returned constructor will have a separate set of configuration values. + * This can be used to create Big objects with different DP and RM values. + * Big numbers created by different constructors can be used together in operations, and it is the DP and RM setting of the Big number that an operation is called upon that will apply. + * In the interest of memory efficiency, all Big number constructors share the same prototype object, + * so while the DP and RM (and any other own properties) of a constructor are isolated and untouchable by another, its prototype methods are not. + */ + (): BigConstructor; + + /** + * The maximum number of decimal places of the results of operations involving division. + * It is relevant only to the div and sqrt methods, and the pow method when the exponent is negative. + * + * 0 to 1e+6 inclusive + * Default value: 20 + */ + DP: number; + /** + * The rounding mode used in the above operations and by round, toExponential, toFixed and toPrecision. + * Default value: 1 + */ + RM: number; + /** + * The negative exponent value at and below which toString returns exponential notation. + * + * -1e+6 to 0 inclusive + * Default value: -7 + */ + NE: number; + /** + * The positive exponent value at and above which toString returns exponential notation. + * + * 0 to 1e+6 inclusive + * Default value: 21 + */ + PE: number; +} + +export interface Big { + /** Returns a Big number whose value is the absolute value, i.e. the magnitude, of this Big number. */ + abs(): Big; + /** + * Compare the values. + * + * @throws `NaN` if n is invalid. + */ + cmp(n: BigSource): Comparison; + /** + * Returns a Big number whose value is the value of this Big number divided by n. + * + * If the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM. + * + * @throws `NaN` if n is invalid. + * @throws `±Infinity` on division by zero. + * @throws `NaN` on division of zero by zero. + */ + div(n: BigSource): Big; + /** + * Returns true if the value of this Big equals the value of n, otherwise returns false. + * + * @throws `NaN` if n is invalid. + */ + eq(n: BigSource): boolean; + /** + * Returns true if the value of this Big is greater than the value of n, otherwise returns false. + * + * @throws `NaN` if n is invalid. + */ + gt(n: BigSource): boolean; + /** + * Returns true if the value of this Big is greater than or equal to the value of n, otherwise returns false. + * + * @throws `NaN` if n is invalid. + */ + gte(n: BigSource): boolean; + /** + * Returns true if the value of this Big is less than the value of n, otherwise returns false. + * + * @throws `NaN` if n is invalid. + */ + lt(n: BigSource): boolean; + /** + * Returns true if the value of this Big is less than or equal to the value of n, otherwise returns false. + * + * @throws `NaN` if n is invalid. + */ + lte(n: BigSource): boolean; + /** + * Returns a Big number whose value is the value of this Big number minus n. + * + * @throws `NaN` if n is invalid. + */ + minus(n: BigSource): Big; + /** + * Returns a Big number whose value is the value of this Big number modulo n, i.e. the integer remainder of dividing this Big number by n. + * + * The result will have the same sign as this Big number, and it will match that of Javascript's % operator (within the limits of its precision) and BigDecimal's remainder method. + * + * @throws `NaN` if n is negative or otherwise invalid. + */ + mod(n: BigSource): Big; + /** + * Returns a Big number whose value is the value of this Big number plus n. + * + * @throws `NaN` if n is invalid. + */ + plus(n: BigSource): Big; + /** + * Returns a Big number whose value is the value of this Big number raised to the power exp. + * + * If exp is negative and the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM. + * + * @param exp The power to raise the number to, -1e+6 to 1e+6 inclusive + * @throws `!pow!` if exp is invalid. + * + * Note: High value exponents may cause this method to be slow to return. + */ + pow(exp: number): Big; + /** + * Returns a Big number whose value is the value of this Big number rounded using rounding mode rm to a maximum of dp decimal places. + * + * @param dp Decimal places, 0 to 1e+6 inclusive + * @param rm The rounding mode, one of the RoundingMode enumeration values + * @throws `!round!` if dp is invalid. + * @throws `!Big.RM!` if rm is invalid. + */ + round(dp?: number, rm?: RoundingMode): Big; + /** + * Returns a Big number whose value is the square root of this Big number. + * + * If the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM. + * + * @throws `NaN` if this Big number is negative. + */ + sqrt(): Big; + /** + * Returns a Big number whose value is the value of this Big number times n. + * + * @throws `NaN` if n is invalid. + */ + times(n: BigSource): Big; + /** + * Returns a string representing the value of this Big number in exponential notation to a fixed number of decimal places dp. + * + * If the value of this Big number in exponential notation has more digits to the right of the decimal point than is specified by dp, + * the return value will be rounded to dp decimal places using rounding mode Big.RM. + * + * If the value of this Big number in exponential notation has fewer digits to the right of the decimal point than is specified by dp, the return value will be appended with zeros accordingly. + * + * If dp is omitted, or is null or undefined, the number of digits after the decimal point defaults to the minimum number of digits necessary to represent the value exactly. + * + * @param dp Decimal places, 0 to 1e+6 inclusive + * @throws `!toFix!` if dp is invalid. + */ + toExponential(dp?: number): string; + /** + * Returns a string representing the value of this Big number in normal notation to a fixed number of decimal places dp. + * + * If the value of this Big number in normal notation has more digits to the right of the decimal point than is specified by dp, + * the return value will be rounded to dp decimal places using rounding mode Big.RM. + * + * If the value of this Big number in normal notation has fewer fraction digits then is specified by dp, the return value will be appended with zeros accordingly. + * + * Unlike Number.prototype.toFixed, which returns exponential notation if a number is greater or equal to 1021, this method will always return normal notation. + * + * If dp is omitted, or is null or undefined, then the return value is simply the value in normal notation. + * This is also unlike Number.prototype.toFixed, which returns the value to zero decimal places. + * + * @param dp Decimal places, 0 to 1e+6 inclusive + * @throws `!toFix!` if dp is invalid. + */ + toFixed(dp?: number): string; + /** + * Returns a string representing the value of this Big number to the specified number of significant digits sd. + * + * If the value of this Big number has more digits than is specified by sd, the return value will be rounded to sd significant digits using rounding mode Big.RM. + * + * If the value of this Big number has fewer digits than is specified by sd, the return value will be appended with zeros accordingly. + * + * If sd is less than the number of digits necessary to represent the integer part of the value in normal notation, then exponential notation is used. + * + * If sd is omitted, or is null or undefined, then the return value is the same as .toString(). + * + * @param sd Significant digits, 1 to 1e+6 inclusive + * @throws `!toPre!` if sd is invalid. + */ + toPrecision(sd?: number): string; + /** + * Returns a string representing the value of this Big number. + * + * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned. + * + * The point at which toString returns exponential rather than normal notation can be adjusted by changing + * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard. + */ + toString(): string; + /** + * Returns a string representing the value of this Big number. + * + * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned. + * + * The point at which toString returns exponential rather than normal notation can be adjusted by changing + * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard. + */ + valueOf(): string; + /** + * Returns a string representing the value of this Big number. + * + * If this Big number has a positive exponent that is equal to or greater than 21, or a negative exponent equal to or less than -7, then exponential notation is returned. + * + * The point at which toString returns exponential rather than normal notation can be adjusted by changing + * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard. + */ + toJSON(): string; +} + +export const Big: BigConstructor; + +// Helpers to allow referencing Big and BigConstructor from inside the global declaration without creating a self reference +/* tslint:disable:strict-export-declare-modifiers */ +type Big_ = Big; +type BigConstructor_ = BigConstructor; +type BigSource_ = BigSource; +/* tslint:enable:strict-export-declare-modifiers */ + +declare global { + namespace BigJs { + type Big = Big_; + type BigConstructor = BigConstructor_; + type BigSource = BigSource_; + + const enum Comparison { + GT = 1, + EQ = 0, + LT = -1, + } + + const enum RoundingMode { + /** + * Rounds towards zero. + * I.e. truncate, no rounding. + */ + RoundDown = 0, + /** + * Rounds towards nearest neighbour. + * If equidistant, rounds away from zero. + */ + RoundHalfUp = 1, + /** + * Rounds towards nearest neighbour. + * If equidistant, rounds towards even neighbour. + */ + RoundHalfEven = 2, + /** + * Rounds away from zero. + */ + RoundUp = 3, + } + } + + const Big: BigJs.BigConstructor; +} diff --git a/types/big.js/test/big.js-global-tests.ts b/types/big.js/test/big.js-global-tests.ts new file mode 100644 index 0000000000..ef57a3880d --- /dev/null +++ b/types/big.js/test/big.js-global-tests.ts @@ -0,0 +1,229 @@ +/* + + This file contains tests for the globally exported big.js definitions. + Use the global Big constructor and the types in the global BigJs namespace. + Do not import anything from 'big.js' + + Tests include code from http://mikemcl.github.io/big.js/ + + Minor changes have been made such as adding variable definitions where required. + +*/ + +function constructorTests() { + const x = new Big(9); // '9' + const y = new Big(x); // '9' + const d = Big(435.345); // 'new' is optional + const e = Big('435.345'); // 'new' is optional + const a = new Big('5032485723458348569331745.33434346346912144534543'); + const b = new Big('4.321e+4'); // '43210' + const c = new Big('-735.0918e-430'); // '-7.350918e-428' +} + +function staticPropertiesTests() { + Big.DP = 40; + Big.RM = 3; + Big.RM = BigJs.RoundingMode.RoundUp; +} + +function absTests() { + const x = new Big(-0.8); + x.abs(); // '0.8' +} + +function cmpTests() { + const x = new Big(6); + const y = new Big(5); + x.cmp(y); // 1 + y.cmp(x.minus(1)); // 0 +} + +function divTests() { + const x = new Big(355); + const y = new Big(113); + x.div(y); // '3.14159292035398230088' + Big.DP = 2; + x.div(y); // '3.14' + x.div(5); // '71' +} + +function eqTests() { + 0 === 1e-324; // true + const x = new Big(0); + x.eq('1e-324'); // false + Big(-0).eq(x); // true ( -0 === 0 ) +} + +function gtTests() { + 0.1 > 0.3 - 0.2; // true + const x = new Big(0.1); + x.gt(Big(0.3).minus(0.2)); // false + Big(0).gt(x); // false +} + +function gteTests() { + 0.3 - 0.2 >= 0.1; // false + const x = new Big(0.3).minus(0.2); + x.gte(0.1); // true + Big(1).gte(x); // true +} + +function ltTests() { + 0.3 - 0.2 < 0.1; // true + const x = new Big(0.3).minus(0.2); + x.lt(0.1); // false + Big(0).lt(x); // true +} + +function lteTests() { + 0.1 <= 0.3 - 0.2; // false + const x = new Big(0.1); + x.lte(Big(0.3).minus(0.2)); // true + Big(-1).lte(x); // true +} + +function minusTests() { + 0.3 - 0.1; // 0.19999999999999998 + const x = new Big(0.3); + x.minus(0.1); // '0.2' +} + +function modTests() { + 1 % 0.9; // 0.09999999999999998 + const x = Big(1); + x.mod(0.9); // '0.1' +} + +function plusTests() { + 0.1 + 0.2; // 0.30000000000000004 + const x = new Big(0.1); + const y = x.plus(0.2); // '0.3' + Big(0.7).plus(x).plus(y); // '1' +} + +function powTests() { + Math.pow(0.7, 2); // 0.48999999999999994 + const x = new Big(0.7); + x.pow(2); // '0.49' + Big.DP = 20; + Big(3).pow(-2); // '0.11111111111111111111' + + new Big(123.456).pow(1000).toString().length; // 5099 + new Big(2).pow(1e+6); // Time taken (Node.js): 9 minutes 34 secs. +} + +function roundTests() { + const x = 123.45; + Math.round(x); // 123 + const y = new Big(x); + y.round(); // '123' + y.round(2); // '123.45' + y.round(10); // '123.45' + y.round(1, 0); // '123.4' + y.round(1, 1); // '123.5' + y.round(1, 2); // '123.4' + y.round(1, 3); // '123.5' + y; // '123.45' +} + +function sqrtTests() { + const x = new Big(16); + x.sqrt(); // '4' + const y = new Big(3); + y.sqrt(); // '1.73205080756887729353' +} + +function timesTests() { + 0.6 * 3; // 1.7999999999999998 + const x = new Big(0.6); + const y = x.times(3); // '1.8' + Big('7e+500').times(y); // '1.26e+501' +} + +function toExponentialTests() { + const x = 45.6; + const y = new Big(x); + x.toExponential(); // '4.56e+1' + y.toExponential(); // '4.56e+1' + x.toExponential(0); // '5e+1' + y.toExponential(0); // '5e+1' + x.toExponential(1); // '4.6e+1' + y.toExponential(1); // '4.6e+1' + x.toExponential(3); // '4.560e+1' + y.toExponential(3); // '4.560e+1' +} + +function toFixedTests() { + const x = 45.6; + const y = new Big(x); + x.toFixed(); // '46' + y.toFixed(); // '45.6' + y.toFixed(0); // '46' + x.toFixed(3); // '45.600' + y.toFixed(3); // '45.600' +} + +function toPrecisionTests() { + const x = 45.6; + const y = new Big(x); + x.toPrecision(); // '45.6' + y.toPrecision(); // '45.6' + x.toPrecision(1); // '5e+1' + y.toPrecision(1); // '5e+1' + x.toPrecision(5); // '45.600' + y.toPrecision(5); // '45.600' +} + +function toStringTests() { + const x = new Big('9.99e+20'); + x.toString(); // '999000000000000000000' + const y = new Big('1E21'); + x.toString(); // '1e+21' +} + +function valueOfTests() { + const x = new Big('177.7e+457'); + x.valueOf(); // '1.777e+459' +} + +function toJSONTests() { + const x = new Big('177.7e+457'); + const y = new Big(235.4325); + const z = new Big('0.0098074'); + const str = JSON.stringify([x, y, z]); + + const a = new Big('123').toJSON(); + + JSON.parse(str, (k, v) => k === '' ? v : new Big(v)); // Returns an array of three Big numbers. +} + +// see http://mikemcl.github.io/big.js/#faq +// "How can I simultaneously use different decimal places and/or rounding mode settings for different Big numbers?" +function testMultipleConstructors() { + const Big10 = Big(); + + // Set the decimal places of division operations for each constructor. + Big.DP = 3; + Big10.DP = 10; + + const x = Big(5); + const y = Big10(5); + + x.div(3); // 1.667 + y.div(3); // 1.6666666667 +} + +function multipleTypesAccepted(n: number | BigJs.Big | string) { + const y = Big(n) + .minus(n) + .mod(n) + .plus(n) + .times(n); + y.cmp(n); + y.eq(n); + y.gt(n); + y.gte(n); + y.lt(n); + y.lte(n); + y.div(n); +} diff --git a/types/big.js/test/big.js-module-tests.ts b/types/big.js/test/big.js-module-tests.ts new file mode 100644 index 0000000000..7cd246ffd4 --- /dev/null +++ b/types/big.js/test/big.js-module-tests.ts @@ -0,0 +1,231 @@ +/* + + This file contains tests for the named export definitions of big.js. + Import the Big constructor and any types from 'big.js' + Do not use the global Big constructor or the types in the global BigJs namespace. + + Tests include code from http://mikemcl.github.io/big.js/ + + Minor changes have been made such as adding variable definitions where required. + +*/ + +import { Big, RoundingMode } from 'big.js'; + +function constructorTests() { + const x = new Big(9); // '9' + const y = new Big(x); // '9' + const d = Big(435.345); // 'new' is optional + const e = Big('435.345'); // 'new' is optional + const a = new Big('5032485723458348569331745.33434346346912144534543'); + const b = new Big('4.321e+4'); // '43210' + const c = new Big('-735.0918e-430'); // '-7.350918e-428' +} + +function staticPropertiesTests() { + Big.DP = 40; + Big.RM = 3; + Big.RM = RoundingMode.RoundUp; +} + +function absTests() { + const x = new Big(-0.8); + x.abs(); // '0.8' +} + +function cmpTests() { + const x = new Big(6); + const y = new Big(5); + x.cmp(y); // 1 + y.cmp(x.minus(1)); // 0 +} + +function divTests() { + const x = new Big(355); + const y = new Big(113); + x.div(y); // '3.14159292035398230088' + Big.DP = 2; + x.div(y); // '3.14' + x.div(5); // '71' +} + +function eqTests() { + 0 === 1e-324; // true + const x = new Big(0); + x.eq('1e-324'); // false + Big(-0).eq(x); // true ( -0 === 0 ) +} + +function gtTests() { + 0.1 > 0.3 - 0.2; // true + const x = new Big(0.1); + x.gt(Big(0.3).minus(0.2)); // false + Big(0).gt(x); // false +} + +function gteTests() { + 0.3 - 0.2 >= 0.1; // false + const x = new Big(0.3).minus(0.2); + x.gte(0.1); // true + Big(1).gte(x); // true +} + +function ltTests() { + 0.3 - 0.2 < 0.1; // true + const x = new Big(0.3).minus(0.2); + x.lt(0.1); // false + Big(0).lt(x); // true +} + +function lteTests() { + 0.1 <= 0.3 - 0.2; // false + const x = new Big(0.1); + x.lte(Big(0.3).minus(0.2)); // true + Big(-1).lte(x); // true +} + +function minusTests() { + 0.3 - 0.1; // 0.19999999999999998 + const x = new Big(0.3); + x.minus(0.1); // '0.2' +} + +function modTests() { + 1 % 0.9; // 0.09999999999999998 + const x = Big(1); + x.mod(0.9); // '0.1' +} + +function plusTests() { + 0.1 + 0.2; // 0.30000000000000004 + const x = new Big(0.1); + const y = x.plus(0.2); // '0.3' + Big(0.7).plus(x).plus(y); // '1' +} + +function powTests() { + Math.pow(0.7, 2); // 0.48999999999999994 + const x = new Big(0.7); + x.pow(2); // '0.49' + Big.DP = 20; + Big(3).pow(-2); // '0.11111111111111111111' + + new Big(123.456).pow(1000).toString().length; // 5099 + new Big(2).pow(1e+6); // Time taken (Node.js): 9 minutes 34 secs. +} + +function roundTests() { + const x = 123.45; + Math.round(x); // 123 + const y = new Big(x); + y.round(); // '123' + y.round(2); // '123.45' + y.round(10); // '123.45' + y.round(1, 0); // '123.4' + y.round(1, 1); // '123.5' + y.round(1, 2); // '123.4' + y.round(1, 3); // '123.5' + y; // '123.45' +} + +function sqrtTests() { + const x = new Big(16); + x.sqrt(); // '4' + const y = new Big(3); + y.sqrt(); // '1.73205080756887729353' +} + +function timesTests() { + 0.6 * 3; // 1.7999999999999998 + const x = new Big(0.6); + const y = x.times(3); // '1.8' + Big('7e+500').times(y); // '1.26e+501' +} + +function toExponentialTests() { + const x = 45.6; + const y = new Big(x); + x.toExponential(); // '4.56e+1' + y.toExponential(); // '4.56e+1' + x.toExponential(0); // '5e+1' + y.toExponential(0); // '5e+1' + x.toExponential(1); // '4.6e+1' + y.toExponential(1); // '4.6e+1' + x.toExponential(3); // '4.560e+1' + y.toExponential(3); // '4.560e+1' +} + +function toFixedTests() { + const x = 45.6; + const y = new Big(x); + x.toFixed(); // '46' + y.toFixed(); // '45.6' + y.toFixed(0); // '46' + x.toFixed(3); // '45.600' + y.toFixed(3); // '45.600' +} + +function toPrecisionTests() { + const x = 45.6; + const y = new Big(x); + x.toPrecision(); // '45.6' + y.toPrecision(); // '45.6' + x.toPrecision(1); // '5e+1' + y.toPrecision(1); // '5e+1' + x.toPrecision(5); // '45.600' + y.toPrecision(5); // '45.600' +} + +function toStringTests() { + const x = new Big('9.99e+20'); + x.toString(); // '999000000000000000000' + const y = new Big('1E21'); + x.toString(); // '1e+21' +} + +function valueOfTests() { + const x = new Big('177.7e+457'); + x.valueOf(); // '1.777e+459' +} + +function toJSONTests() { + const x = new Big('177.7e+457'); + const y = new Big(235.4325); + const z = new Big('0.0098074'); + const str = JSON.stringify([x, y, z]); + + const a = new Big('123').toJSON(); + + JSON.parse(str, (k, v) => k === '' ? v : new Big(v)); // Returns an array of three Big numbers. +} + +// see http://mikemcl.github.io/big.js/#faq +// "How can I simultaneously use different decimal places and/or rounding mode settings for different Big numbers?" +function testMultipleConstructors() { + const Big10 = Big(); + + // Set the decimal places of division operations for each constructor. + Big.DP = 3; + Big10.DP = 10; + + const x = Big(5); + const y = Big10(5); + + x.div(3); // 1.667 + y.div(3); // 1.6666666667 +} + +function multipleTypesAccepted(n: number | Big | string) { + const y = Big(n) + .minus(n) + .mod(n) + .plus(n) + .times(n); + y.cmp(n); + y.eq(n); + y.gt(n); + y.gte(n); + y.lt(n); + y.lte(n); + y.div(n); +} diff --git a/types/big.js/tsconfig.json b/types/big.js/tsconfig.json index 27ff564268..ed3368dd05 100644 --- a/types/big.js/tsconfig.json +++ b/types/big.js/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,6 +17,7 @@ }, "files": [ "index.d.ts", - "big.js-tests.ts" + "test/big.js-module-tests.ts", + "test/big.js-global-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/big.js/tslint.json b/types/big.js/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/big.js/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/blob-util/blob-util-tests.ts b/types/blob-util/blob-util-tests.ts index d05b401116..ec087b2d6a 100644 --- a/types/blob-util/blob-util-tests.ts +++ b/types/blob-util/blob-util-tests.ts @@ -5,6 +5,8 @@ const testBlob = new Blob(['abcd']); blobUtil.base64StringToBlob('abcd'); // $ExpectType Promise blobUtil.createObjectURL(testBlob); // $ExpectType string blobUtil.imgSrcToBlob('test.jpg'); // $ExpectType Promise +blobUtil.imgSrcToBlob('http://some-other-site.com/img.jpg', 'image/jpeg', 'Anonymous', 1.0); // $ExpectType Promise +blobUtil.imgSrcToBlob('test.jpg', 'image/jpeg', undefined, 0.7); // $ExpectType Promise blobUtil.createBlob(['abcd']); // $ExpectType Blob blobUtil.arrayBufferToBlob(new ArrayBuffer(0)); // $ExpectType Promise blobUtil.binaryStringToBlob('0101'); // $ExpectType Promise @@ -12,7 +14,10 @@ blobUtil.blobToArrayBuffer(testBlob); // $ExpectType Promise blobUtil.blobToBase64String(testBlob); // $ExpectType Promise blobUtil.blobToBinaryString(testBlob); // $ExpectType Promise blobUtil.canvasToBlob(new HTMLCanvasElement()); // $ExpectType Promise +blobUtil.canvasToBlob(new HTMLCanvasElement(), 'image/webp'); // $ExpectType Promise +blobUtil.canvasToBlob(new HTMLCanvasElement(), 'image/webp', 0.8); // $ExpectType Promise blobUtil.dataURLToBlob('data:abcd'); // $ExpectType Promise blobUtil.blobToDataURL(testBlob); // $ExpectType Promise blobUtil.imgSrcToDataURL('test.jpg'); // $ExpectType Promise +blobUtil.imgSrcToDataURL('http://some-other-site.com/img.jpg', 'image/jpeg', 'Anonymous', 1.0); // $ExpectType Promise blobUtil.revokeObjectURL('blob:example'); // $ExpectType void diff --git a/types/blob-util/index.d.ts b/types/blob-util/index.d.ts index 362b8e012f..3e900f0ecb 100644 --- a/types/blob-util/index.d.ts +++ b/types/blob-util/index.d.ts @@ -13,8 +13,39 @@ export function blobToBase64String(blob: Blob): Promise; export function base64StringToBlob(base64: string, type?: string): Promise; export function dataURLToBlob(dataURL: string): Promise; export function blobToDataURL(blob: Blob): Promise; -export function imgSrcToDataURL(src: string, type?: string, crossOrigin?: string): Promise; -export function canvasToBlob(canvas: HTMLCanvasElement, type?: string): Promise; -export function imgSrcToBlob(src: string, type?: string, crossOrigin?: string): Promise; + +/** + * Convert an image's src URL to a data URL by loading the image and painting it to a canvas. + * + * Note: this will coerce the image to the desired content type, and it will only paint the first frame of an animated GIF. + * + * @param src + * @param type the content type (optional, defaults to 'image/png') + * @param crossOrigin for CORS-enabled images, set this to 'Anonymous' to avoid "tainted canvas" errors + * @param quality a number between 0 and 1 indicating image quality if the requested type is 'image/jpeg' or 'image/webp' + */ +export function imgSrcToDataURL(src: string, type?: string, crossOrigin?: string, quality?: number): Promise; + +/** + * Convert a canvas to a Blob. + * + * @param src + * @param type the content type (optional, defaults to 'image/png') + * @param quality a number between 0 and 1 indicating image quality if the requested type is 'image/jpeg' or 'image/webp' + */ +export function canvasToBlob(canvas: HTMLCanvasElement, type?: string, quality?: number): Promise; + +/** + * Convert an image's src URL to a Blob by loading the image and painting it to a canvas. + * + * Note: this will coerce the image to the desired content type, and it will only paint the first frame of an animated GIF. + * + * @param src + * @param type the content type (optional, defaults to 'image/png') + * @param crossOrigin for CORS-enabled images, set this to 'Anonymous' to avoid "tainted canvas" errors + * @param quality a number between 0 and 1 indicating image quality if the requested type is 'image/jpeg' or 'image/webp' + */ +export function imgSrcToBlob(src: string, type?: string, crossOrigin?: string, quality?: number): Promise; + export function arrayBufferToBlob(arrayBuff: ArrayBuffer, type?: string): Promise; export function blobToArrayBuffer(blob: Blob): Promise; diff --git a/types/bluebird/bluebird-tests.ts b/types/bluebird/bluebird-tests.ts index c72581b8f9..a77a6262db 100644 --- a/types/bluebird/bluebird-tests.ts +++ b/types/bluebird/bluebird-tests.ts @@ -688,6 +688,15 @@ fooArrProm = fooArrProm.each((item: Foo, index: number, arrayLength: n // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +fooProm = new Promise.Promise((resolve, reject) => { + resolve(foo); +}); +fooProm = Promise.Promise.try(() => { + return foo; +}); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + function getMaybePromise(): Foo|Promise { return foo; } @@ -830,10 +839,12 @@ obj = Promise.promisifyAll(obj, { // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -//TODO enable generator -/* - func = Promise.coroutine(f); +const generator = function* (a: number, b: string) {return "string"} +const coroutine = Promise.coroutine(generator); +coroutine(5, "foo").then((x: string) => {}); +const coroutineCustomYield = Promise.coroutine(generator, { yieldHandler: (value) => "whatever" }) +/* barProm = Promise.spawn(f); */ // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/types/bluebird/index.d.ts b/types/bluebird/index.d.ts index 5175bb8d4b..b9a9d35e4d 100644 --- a/types/bluebird/index.d.ts +++ b/types/bluebird/index.d.ts @@ -695,6 +695,11 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { * Returns a new function that wraps the given function `fn`. The new function will always return a promise that is fulfilled with the original functions return values or rejected with thrown exceptions from the original function. * This method is convenient when a function can sometimes return synchronously or throw synchronously. */ + static method(fn: (arg1: A1) => R | PromiseLike): (arg1: A1) => Bluebird + static method(fn: (arg1: A1, arg2: A2) => R | PromiseLike): (arg1: A1, arg2: A2) => Bluebird + static method(fn: (arg1: A1, arg2: A2, arg3: A3) => R | PromiseLike): (arg1: A1, arg2: A2, arg3: A3) => Bluebird + static method(fn: (arg1: A1, arg2: A2, arg3: A3, arg4: A4) => R | PromiseLike): (arg1: A1, arg2: A2, arg3: A3, arg4: A4) => Bluebird + static method(fn: (arg1: A1, arg2: A2, arg3: A3, arg4: A4, arg5: A5) => R | PromiseLike): (arg1: A1, arg2: A2, arg3: A3, arg4: A4, arg5: A5) => Bluebird static method(fn: (...args: any[]) => R | PromiseLike): (...args: any[]) => Bluebird; /** @@ -776,9 +781,17 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { /** * Returns a function that can use `yield` to run asynchronous code synchronously. This feature requires the support of generators which are drafted in the next version of the language. Node version greater than `0.11.2` is required and needs to be executed with the `--harmony-generators` (or `--harmony`) command-line switch. */ - // TODO fix coroutine GeneratorFunction - static coroutine(generatorFunction: (...args: any[]) => IterableIterator): (...args: any[]) => Bluebird; - + // TODO: After https://github.com/Microsoft/TypeScript/issues/2983 is implemented, we can use + // the return type propagation of generators to automatically infer the return type T. + static coroutine(generatorFunction: () => IterableIterator, options?: Bluebird.CoroutineOptions): () => Bluebird; + static coroutine(generatorFunction: (a1: A1) => IterableIterator, options?: Bluebird.CoroutineOptions): (a1: A1) => Bluebird; + static coroutine(generatorFunction: (a1: A1, a2: A2) => IterableIterator, options?: Bluebird.CoroutineOptions): (a1: A1, a2: A2) => Bluebird; + static coroutine(generatorFunction: (a1: A1, a2: A2, a3: A3) => IterableIterator, options?: Bluebird.CoroutineOptions): (a1: A1, a2: A2, a3: A3) => Bluebird; + static coroutine(generatorFunction: (a1: A1, a2: A2, a3: A3, a4: A4) => IterableIterator, options?: Bluebird.CoroutineOptions): (a1: A1, a2: A2, a3: A3, a4: A4) => Bluebird; + static coroutine(generatorFunction: (a1: A1, a2: A2, a3: A3, a4: A4, a5: A5) => IterableIterator, options?: Bluebird.CoroutineOptions): (a1: A1, a2: A2, a3: A3, a4: A4, a5: A5) => Bluebird; + static coroutine(generatorFunction: (a1: A1, a2: A2, a3: A3, a4: A4, a5: A5, a6: A6) => IterableIterator, options?: Bluebird.CoroutineOptions): (a1: A1, a2: A2, a3: A3, a4: A4, a5: A5, a6: A6) => Bluebird; + static coroutine(generatorFunction: (a1: A1, a2: A2, a3: A3, a4: A4, a5: A5, a6: A6, a7: A7) => IterableIterator, options?: Bluebird.CoroutineOptions): (a1: A1, a2: A2, a3: A3, a4: A4, a5: A5, a6: A6, a7: A7) => Bluebird; + static coroutine(generatorFunction: (a1: A1, a2: A2, a3: A3, a4: A4, a5: A5, a6: A6, a7: A7, a8: A8) => IterableIterator, options?: Bluebird.CoroutineOptions): (a1: A1, a2: A2, a3: A3, a4: A4, a5: A5, a6: A6, a7: A7, a8: A8) => Bluebird; /** * Add `handler` as the handler to call when there is a possibly unhandled rejection. The default handler logs the error stack to stderr or `console.error` in browsers. * @@ -989,6 +1002,12 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { monitoring?: boolean; }): void; + /** + * Create a new promise. The passed in function will receive functions `resolve` and `reject` as its arguments which can be called to seal the fate of the created promise. + * If promise cancellation is enabled, passed in function will receive one more function argument `onCancel` that allows to register an optional cancellation callback. + */ + static Promise: typeof Bluebird + /** * The version number of the library */ @@ -1015,6 +1034,9 @@ declare namespace Bluebird { // The promisifier gets a reference to the original method and should return a function which returns a promise promisifier?: (originalMethod: (...args: any[]) => any, defaultPromisifer: (...args: any[]) => (...args: any[]) => Bluebird) => () => PromiseLike; } + export interface CoroutineOptions { + yieldHandler: (value: any) => any; + } /** * Represents an error is an explicit promise rejection as opposed to a thrown error. diff --git a/types/bluebird/tsconfig.json b/types/bluebird/tsconfig.json index ec949f562b..d5f42bef56 100644 --- a/types/bluebird/tsconfig.json +++ b/types/bluebird/tsconfig.json @@ -19,4 +19,4 @@ "noEmit": true, "forceConsistentCasingInFileNames": true } -} \ No newline at end of file +} diff --git a/types/bluebird/tslint.json b/types/bluebird/tslint.json new file mode 100644 index 0000000000..55713db673 --- /dev/null +++ b/types/bluebird/tslint.json @@ -0,0 +1,29 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "adjacent-overload-signatures": false, + "array-type": false, + "ban-types": false, + "comment-format": false, + "dt-header": false, + "max-line-length": false, + "member-access": false, + "no-consecutive-blank-lines": false, + "no-padding": false, + "no-unnecessary-callback-wrapper": false, + "no-unnecessary-generics": false, + "no-var-keyword": false, + "no-void-expression": false, + "one-line": false, + "only-arrow-functions": false, + "prefer-const": false, + "prefer-method-signature": false, + "semicolon": false, + "space-before-function-paren": false, + "strict-export-declare-modifiers": false, + "typedef-whitespace": false, + "unified-signatures": false, + "void-return": false, + "whitespace": false + } +} \ No newline at end of file diff --git a/types/bluebird/v2/bluebird-tests.ts b/types/bluebird/v2/bluebird-tests.ts index 8acdcb44bd..c90d0d1bbf 100644 --- a/types/bluebird/v2/bluebird-tests.ts +++ b/types/bluebird/v2/bluebird-tests.ts @@ -671,6 +671,15 @@ fooArrProm = fooArrProm.each((item: Foo, index: number, arrayLength: n // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +fooProm = new Promise.Promise((resolve, reject) => { + resolve(foo); +}); +fooProm = Promise.Promise.try(() => { + return foo; +}); + +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + function getMaybePromise(): Foo|Promise { return foo; } diff --git a/types/bluebird/v2/index.d.ts b/types/bluebird/v2/index.d.ts index 34659859cb..ea97ee9ab5 100644 --- a/types/bluebird/v2/index.d.ts +++ b/types/bluebird/v2/index.d.ts @@ -36,7 +36,8 @@ interface PromiseConstructor { reject: (error: any) => void, onCancel?: PromiseCancelHandlerSetter ) => void): Promise; - + Promise: typeof Promise + config(options: { warnings?: boolean | {wForgottenReturn?: boolean}; longStackTraces?: boolean; @@ -313,7 +314,7 @@ interface PromiseConstructor { // array with values mapSeries(values: R[], mapper: (item: R, index: number, arrayLength: number) => U | PromiseLike): Promise; - + /** * Reduce an array, or a promise of an array, which contains a promises (or a mix of promises and values) with the given `reducer` function with the signature `(total, current, index, arrayLength)` where `item` is the resolved value of a respective promise in the input array. If any promise in the input array is rejected the returned promise is rejected as well. diff --git a/types/bootbox/index.d.ts b/types/bootbox/index.d.ts index ba5cc8c23b..850eb18c25 100644 --- a/types/bootbox/index.d.ts +++ b/types/bootbox/index.d.ts @@ -7,9 +7,9 @@ /// /** Bootbox options shared by all modal types */ -interface BootboxBaseOptions { +interface BootboxBaseOptions { title?: string | Element; - callback?: (result: boolean | string) => any; + callback?: (result: T) => any; onEscape?: (() => any) | boolean; show?: boolean; backdrop?: boolean; @@ -22,24 +22,24 @@ interface BootboxBaseOptions { } /** Bootbox options available for custom modals */ -interface BootboxDialogOptions extends BootboxBaseOptions { +interface BootboxDialogOptions extends BootboxBaseOptions { message: string | Element; } /** Bootbox options available for alert modals */ -interface BootboxAlertOptions extends BootboxDialogOptions { +interface BootboxAlertOptions extends BootboxDialogOptions { callback?: () => any; buttons?: BootboxAlertButtonMap; } /** Bootbox options available for confirm modals */ -interface BootboxConfirmOptions extends BootboxDialogOptions { +interface BootboxConfirmOptions extends BootboxDialogOptions { callback: (result: boolean) => any; buttons?: BootboxConfirmPromptButtonMap; } /** Bootbox options available for prompt modals */ -interface BootboxPromptOptions extends BootboxBaseOptions { +interface BootboxPromptOptions extends BootboxBaseOptions { title: string; value?: string; inputType?: "text" | "textarea" | "email" | "select" | "checkbox" | "date" | "time" | "number" | "password"; @@ -93,7 +93,7 @@ interface BootboxStatic { prompt(message: string, callback: (result: string) => void): JQuery; prompt(options: BootboxPromptOptions): JQuery; dialog(message: string, callback?: (result: string) => void): JQuery; - dialog(options: BootboxDialogOptions): JQuery; + dialog(options: BootboxDialogOptions): JQuery; setDefaults(options: BootboxDefaultOptions): void; hideAll(): void; diff --git a/types/bootbox/tsconfig.json b/types/bootbox/tsconfig.json index e9bedd04f7..7d84efdd82 100644 --- a/types/bootbox/tsconfig.json +++ b/types/bootbox/tsconfig.json @@ -20,4 +20,4 @@ "index.d.ts", "bootbox-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/bootstrap-datepicker/index.d.ts b/types/bootstrap-datepicker/index.d.ts index 02eda0fba8..a1beefa467 100644 --- a/types/bootstrap-datepicker/index.d.ts +++ b/types/bootstrap-datepicker/index.d.ts @@ -6,12 +6,18 @@ /// +type DatepickerEvents = "show"|"hide"|"clearDate"|"changeDate"|"changeMonth"|"changeYear"|"changeDecade"|"changeCentury"; + +type DatepickerViewModes = 0|"days"|1|"months"|2|"years"|3|"decades"|4|"centuries"|"millenium"; + +type DatepickerOrientations = "auto"|"left top"|"left bottom"|"right top"|"right bottom"; + /** * All options that take a “Date” can handle a Date object; a String * formatted according to the given format; or a timedelta relative * to today, eg “-1d”, “+6m +1y”, etc, where valid units are “d” (day), * “w” (week), “m” (month), and “y” (year). - * + * * See online docs for more info: * https://bootstrap-datepicker.readthedocs.io/en/latest/options.html */ @@ -35,11 +41,11 @@ interface DatepickerOptions { daysOfWeekDisabled?: number[]; forceParse?: boolean; inputs?: any[]; - minViewMode?: 0|"days"|1|"months"|2|"years"|3|"decades"|4|"centuries"|"millenium"; - maxViewMode?: 0|"days"|1|"months"|2|"years"|3|"decades"|4|"centuries"|"millenium"; + minViewMode?: DatepickerViewModes; + maxViewMode?: DatepickerViewModes; multidate?: boolean|number; multidateSeparator?: string; - orientation?: "auto"|"left top"|"left bottom"|"right top"|"right bottom"; + orientation?: DatepickerOrientations; assumeNearbyYear?: boolean|number; viewMode?: string; templates?: any; @@ -91,10 +97,10 @@ interface JQuery { datepicker(methodName: string, params: any): any; datepicker(options: DatepickerOptions): JQuery; - off(events: "changeDate", selector?: string, handler?: (eventObject: DatepickerEventObject) => any): JQuery; - off(events: "changeDate", handler: (eventObject: DatepickerEventObject) => any): JQuery; + off(events: DatepickerEvents, selector?: string, handler?: (eventObject: DatepickerEventObject) => any): JQuery; + off(events: DatepickerEvents, handler: (eventObject: DatepickerEventObject) => any): JQuery; - on(events: "changeDate", selector: string, data: any, handler?: (eventObject: DatepickerEventObject) => any): JQuery; - on(events: "changeDate", selector: string, handler: (eventObject: DatepickerEventObject) => any): JQuery; - on(events: 'changeDate', handler: (eventObject: DatepickerEventObject) => any): JQuery; + on(events: DatepickerEvents, selector: string, data: any, handler?: (eventObject: DatepickerEventObject) => any): JQuery; + on(events: DatepickerEvents, selector: string, handler: (eventObject: DatepickerEventObject) => any): JQuery; + on(events: DatepickerEvents, handler: (eventObject: DatepickerEventObject) => any): JQuery; } diff --git a/types/bricks.js/bricks.js-tests.ts b/types/bricks.js/bricks.js-tests.ts new file mode 100644 index 0000000000..dbef221df0 --- /dev/null +++ b/types/bricks.js/bricks.js-tests.ts @@ -0,0 +1,18 @@ +import Bricks from 'bricks.js'; + +const bricks = Bricks({ + container: document.body.firstChild!, + packed: 'packed', + sizes: [ + { columns: 2, gutter: 10 }, + { mq: '768px', columns: 3, gutter: 25 }, + { mq: '1024px', columns: 4, gutter: 25 }, + ] +}); + +bricks + .pack() + .resize() + .on('resize', (detail) => { + const columns: number = detail.columns; + }); diff --git a/types/bricks.js/index.d.ts b/types/bricks.js/index.d.ts new file mode 100644 index 0000000000..1b4da86ebe --- /dev/null +++ b/types/bricks.js/index.d.ts @@ -0,0 +1,36 @@ +// Type definitions for bricks.js 1.8 +// Project: https://github.com/callmecavs/bricks.js +// Definitions by: Pusztai Tibor +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function BricksFactory(options: BricksOptions): BricksInstance; + +export interface BricksInstance { + pack(): BricksInstance; + update(): BricksInstance; + resize(flag?: boolean): BricksInstance; + + on(event: 'pack' | 'update', listener: () => any): BricksInstance; + on(event: 'resize', listener: (sizeDetail: SizeDetail) => any): BricksInstance; + + once(event: 'pack' | 'update', listener: () => any): BricksInstance; + once(event: 'resize', listener: (sizeDetail: SizeDetail) => any): BricksInstance; + + off(event: 'pack' | 'update', listener?: () => any): BricksInstance; + off(event: 'resize', listener?: (sizeDetail: SizeDetail) => any): BricksInstance; +} + +export interface BricksOptions { + container: Node | string; + packed: string; + sizes: SizeDetail[]; + position?: boolean; +} + +export interface SizeDetail { + mq?: string; + columns: number; + gutter: number; +} + +export default BricksFactory; diff --git a/types/bricks.js/tsconfig.json b/types/bricks.js/tsconfig.json new file mode 100644 index 0000000000..5a4746ea86 --- /dev/null +++ b/types/bricks.js/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "bricks.js-tests.ts" + ] +} diff --git a/types/bricks.js/tslint.json b/types/bricks.js/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/bricks.js/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/bull/index.d.ts b/types/bull/index.d.ts index 82a31a4ff3..5754236da8 100644 --- a/types/bull/index.d.ts +++ b/types/bull/index.d.ts @@ -104,6 +104,11 @@ declare namespace Bull { * since pubsub does not give any guarantees. */ finished(): Promise; + + /** + * Promotes a job that is currently "delayed" to the "waiting" state and executed as soon as possible. + */ + promote(): Promise; } type JobStatus = 'completed' | 'waiting' | 'active' | 'delayed' | 'failed'; diff --git a/types/bunyan-bugsnag/bunyan-bugsnag-tests.ts b/types/bunyan-bugsnag/bunyan-bugsnag-tests.ts new file mode 100644 index 0000000000..3c46089690 --- /dev/null +++ b/types/bunyan-bugsnag/bunyan-bugsnag-tests.ts @@ -0,0 +1,27 @@ +import * as bunyanBugsnag from 'bunyan-bugsnag'; +import * as bunyan from 'bunyan'; + +const stream1 = bunyanBugsnag(); + +const stream2 = bunyanBugsnag({ + systemInfo: ['name', 'hostname', 'pid', 'req_id', 'level', 'time', 'v'], + warningLevel: 'warn', + errorLevel: 'error', +}); + +const options: bunyanBugsnag.Options = { + systemInfo: ['name', 'hostname', 'pid', 'req_id', 'level', 'time', 'v'], + warningLevel: 30, + errorLevel: 20 +}; + +const stream3 = bunyanBugsnag(options); + +const logger = bunyan.createLogger({ + name: 'appName', + streams: [{ + type: 'raw', + level: 'warn', + stream: stream3 + }] +}); diff --git a/types/bunyan-bugsnag/index.d.ts b/types/bunyan-bugsnag/index.d.ts new file mode 100644 index 0000000000..9716238aab --- /dev/null +++ b/types/bunyan-bugsnag/index.d.ts @@ -0,0 +1,18 @@ +// Type definitions for bunyan-bugsnag 1.0 +// Project: https://github.com/marnusw/bunyan-bugsnag +// Definitions by: Pasi Eronen +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as Logger from 'bunyan'; + +declare namespace bugsnagLogStream { + interface Options { + systemInfo?: string[]; + warningLevel?: Logger.LogLevel; + errorLevel?: Logger.LogLevel; + } +} + +declare function bugsnagLogStream(options?: bugsnagLogStream.Options): NodeJS.WritableStream; + +export = bugsnagLogStream; diff --git a/types/bunyan-bugsnag/tsconfig.json b/types/bunyan-bugsnag/tsconfig.json new file mode 100644 index 0000000000..fc5f16775b --- /dev/null +++ b/types/bunyan-bugsnag/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "bunyan-bugsnag-tests.ts" + ] +} diff --git a/types/bunyan-bugsnag/tslint.json b/types/bunyan-bugsnag/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/bunyan-bugsnag/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/bunyan/bunyan-tests.ts b/types/bunyan/bunyan-tests.ts index 3c093c0270..e1d1861049 100644 --- a/types/bunyan/bunyan-tests.ts +++ b/types/bunyan/bunyan-tests.ts @@ -47,7 +47,8 @@ const options: Logger.LoggerOptions = { }, { type: 'raw', stream: ringBuffer, - level: Logger.ERROR + level: Logger.ERROR, + reemitErrorEvents: true }] }; diff --git a/types/bunyan/index.d.ts b/types/bunyan/index.d.ts index 055c64deb8..0a0c648220 100644 --- a/types/bunyan/index.d.ts +++ b/types/bunyan/index.d.ts @@ -234,6 +234,7 @@ declare namespace Logger { period?: string; count?: number; name?: string; + reemitErrorEvents?: boolean; } interface LoggerOptions { diff --git a/types/chai-oequal/tslint.json b/types/chai-oequal/tslint.json index 075fa88707..bd3bb78849 100644 --- a/types/chai-oequal/tslint.json +++ b/types/chai-oequal/tslint.json @@ -1,6 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { + "no-declare-current-package": false, "no-single-declare-module": false } } diff --git a/types/chart.js/index.d.ts b/types/chart.js/index.d.ts index 607f6924f8..14ded63945 100644 --- a/types/chart.js/index.d.ts +++ b/types/chart.js/index.d.ts @@ -5,6 +5,7 @@ // KentarouTakeda // Larry Bahr // Daniel Luz +// Joseph Page // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -33,7 +34,7 @@ declare class Chart { static pluginService: PluginServiceStatic; static defaults: { - global: Chart.ChartOptions; + global: Chart.ChartOptions & Chart.ChartFontOptions; }; } declare class PluginServiceStatic { @@ -199,7 +200,7 @@ declare namespace Chart { interface ChartLegendLabelOptions { boxWidth?: number; fontSize?: number; - fontStyle?: number; + fontStyle?: string; fontColor?: ChartColor; fontFamily?: string; padding?: number; @@ -317,7 +318,7 @@ declare namespace Chart { lineWidth?: number; drawBorder?: boolean; drawOnChartArea?: boolean; - drawticks?: boolean; + drawTicks?: boolean; tickMarkLength?: number; zeroLineWidth?: number; zeroLineColor?: ChartColor; diff --git a/types/chartist/index.d.ts b/types/chartist/index.d.ts index e1d4cba452..3eb5e07973 100644 --- a/types/chartist/index.d.ts +++ b/types/chartist/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for Chartist v0.9.6 +// Type definitions for Chartist v0.9.7 // Project: https://github.com/gionkunz/chartist-js -// Definitions by: Matt Gibbs , Simon Pfeifer +// Definitions by: Matt Gibbs , Simon Pfeifer , Cassey Lottman // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Chartist { @@ -187,11 +187,17 @@ declare namespace Chartist { * If specified the donut CSS classes will be used and strokes will be drawn instead of pie slices. */ donut?: boolean; + + /** + * If specified the donut segments will be drawn as shapes instead of strokes. + */ + donutSolid?: boolean; /** - * Specify the donut stroke width, currently done in javascript for convenience. + * Specify the donut stroke width, currently done in javascript for convenience. May move to CSS styles in the future. + * This option can be set as number or string to specify a relative width (i.e. 100 or '30%'). */ - donutWidth?: number; + donutWidth?: number | string; /** * Specify if a label should be shown or not @@ -217,6 +223,16 @@ declare namespace Chartist { * Label direction can be 'neutral', 'explode' or 'implode'. Default is 'neutral'. The labels anchor will be positioned based on those settings as well as the fact if the labels are on the right or left side of the center of the chart. Usually explode is useful when labels are positioned far away from the center. */ labelDirection?: string; + + /** + * If true the whole data is reversed including labels, the series order as well as the whole series data arrays. + */ + reverseData?: boolean; + + /** + * If true empty values will be ignored to avoid drawing unncessary slices and labels + */ + ignoreEmptyValues?: boolean; } interface IChartPadding { @@ -357,123 +373,124 @@ declare namespace Chartist { end?: string; } - interface ICandleChartOptions extends IChartOptions { - - /** - * Options for X-Axis - */ - axisX?: ICandleChartAxis; - - /** - * Options for Y-Axis - */ - axisY?: ICandleChartAxis; - - /** - * Specify a fixed width for the chart as a string (i.e. '100px' or '50%') - */ - width?: number | string; - - /** - * Specify a fixed height for the chart as a string (i.e. '100px' or '50%') - */ - height?: number | string; - - /** - * Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value - */ - hight?: number | string; - - /** - * Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value - */ - low?: number | string; - - /** - * Width of candle body in pixel (IMO is 2 px best minimum value) - */ - candleWidth?: number | string; - - /** - * Width of candle wick in pixel (IMO is 1 px best minimum value) - */ - candleWickWidth?: number | string; - - /** - * Use calculated x-axis step length, depending on the number of quotes to display, as candle width. Otherwise the candleWidth is being used. - */ - useStepLengthAsCandleWidth?: boolean | string; - - /** - * Use 1/3 of candle body width as width for the candle wick, otherwise the candleWickWidth is being used. - */ - useOneThirdAsCandleWickWidth?: boolean | string; - - /** - * Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5} - */ - chartPadding?: IChartPadding | number; - - /** - * When set to true, the last grid line on the x-axis is not drawn and the chart elements will expand to the full available width of the chart. For the last label to be drawn correctly you might need to add chart padding or offset the last label with a draw event handler. - */ - fullWidth?: boolean | string; - - /** - * Override the class names that get used to generate the SVG structure of the chart - */ - classNames?: ICandleChartClasses; - } - - interface ICandleChartAxis { - /** - * The offset of the chart drawing area to the border of the container - */ - offset?: number; - /** - * Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. - */ - position?: string; - /** - * Allows you to correct label positioning on this axis by positive or negative x and y offset. - */ - labelOffset?: { - x?: number; - y?: number; - }; - /** - * If labels should be shown or not - */ - showLabel?: boolean; - /** - * If the axis grid should be drawn or not - */ - showGrid?: boolean; - /** - * Interpolation function that allows you to intercept the value from the axis label - */ - labelInterpolationFnc?: Function; - /** - * Set the axis type to be used to project values on this axis. If not defined, Chartist.StepAxis will be used for the X-Axis, where the ticks option will be set to the labels in the data and the stretch option will be set to the global fullWidth option. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here. - */ - type?: any; - } - - interface ICandleChartClasses { - chart?: string; - label?: string; - labelGroup?: string; - series?: string; - candlePositive?: string; - candleNegative?: string, - grid?: string, - gridGroup?: string, - gridBackground?: string, - vertical?: string, - horizontal?: string, - start?: string, - end?: string, - } + interface ICandleChartOptions extends IChartOptions { + + /** + * Options for X-Axis + */ + axisX?: ICandleChartAxis; + + /** + * Options for Y-Axis + */ + axisY?: ICandleChartAxis; + + /** + * Specify a fixed width for the chart as a string (i.e. '100px' or '50%') + */ + width?: number | string; + + /** + * Specify a fixed height for the chart as a string (i.e. '100px' or '50%') + */ + height?: number | string; + + /** + * Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value + */ + hight?: number | string; + + /** + * Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value + */ + low?: number | string; + + /** + * Width of candle body in pixel (IMO is 2 px best minimum value) + */ + candleWidth?: number | string; + + /** + * Width of candle wick in pixel (IMO is 1 px best minimum value) + */ + candleWickWidth?: number | string; + + /** + * Use calculated x-axis step length, depending on the number of quotes to display, as candle width. Otherwise the candleWidth is being used. + */ + useStepLengthAsCandleWidth?: boolean | string; + + /** + * Use 1/3 of candle body width as width for the candle wick, otherwise the candleWickWidth is being used. + */ + useOneThirdAsCandleWickWidth?: boolean | string; + + /** + * Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5} + */ + chartPadding?: IChartPadding | number; + + /** + * When set to true, the last grid line on the x-axis is not drawn and the chart elements will expand to the full available width of the chart. For the last label to be drawncorrectly you might need to add chart padding or offset the last label with a draw event handler. + */ + fullWidth?: boolean | string; + + /** + * Override the class names that get used to generate the SVG structure of the chart + */ + classNames?: ICandleChartClasses; + } + + interface ICandleChartAxis { + /** + * The offset of the chart drawing area to the border of the container + */ + offset?: number; + /** + * Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis. + */ + position?: string; + /** + * Allows you to correct label positioning on this axis by positive or negative x and y offset. + */ + labelOffset?: { + x?: number; + y?: number; + }; + /** + * If labels should be shown or not + */ + showLabel?: boolean; + /** + * If the axis grid should be drawn or not + */ + showGrid?: boolean; + /** + * Interpolation function that allows you to intercept the value from the axis label + */ + labelInterpolationFnc?: Function; + /** + * Set the axis type to be used to project values on this axis. If not defined, Chartist.StepAxis will be used for the X-Axis, where the ticks option will be set to the labels in the data and the stretch option will be set to the global fullWidth option. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here. + */ + type?: any; + } + + interface ICandleChartClasses { + chart?: string; + label?: string; + labelGroup?: string; + series?: string; + candlePositive?: string; + candleNegative?: string, + grid?: string, + gridGroup?: string, + gridBackground?: string, + vertical?: string, + horizontal?: string, + start?: string, + end?: string, + } + interface ChartistSvgStatic { new (name: HTMLElement | string, attributes: Object, className?: string, parent?: Object, insertFirst?: boolean): IChartistSvg; @@ -682,4 +699,4 @@ declare namespace Chartist { declare var Chartist: Chartist.ChartistStatic; export = Chartist; -export as namespace Chartist; +export as namespace Chartist; \ No newline at end of file diff --git a/types/chartjs/index.d.ts b/types/chartjs/index.d.ts index a9075e02a2..4caaef4981 100644 --- a/types/chartjs/index.d.ts +++ b/types/chartjs/index.d.ts @@ -120,6 +120,10 @@ interface ChartScalesOptions { interface ScaleTicksOptions { min?: number; max?: number; + maxTicksLimit?: number; + suggestedMin?: number; + suggestedMax?: number; + stepSize?: number; } interface ChartTitle { diff --git a/types/chokidar/index.d.ts b/types/chokidar/index.d.ts index 683214fe35..229ffb556f 100644 --- a/types/chokidar/index.d.ts +++ b/types/chokidar/index.d.ts @@ -1,6 +1,8 @@ -// Type definitions for chokidar 1.7.0 +// Type definitions for chokidar 1.7.1 // Project: https://github.com/paulmillr/chokidar -// Definitions by: Stefan Steinhart , Felix Becker +// Definitions by: Stefan Steinhart +// Felix Becker +// Zach Cardoza // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -18,6 +20,11 @@ export interface WatchedPaths { export class FSWatcher extends EventEmitter implements fs.FSWatcher { + /** + * Constructs a new FSWatcher instance with optional WatchOptions parameter. + */ + constructor(options?: WatchOptions); + /** * Add files, directories, or glob patterns for tracking. Takes an array of strings or just one * string. diff --git a/types/chroma-js/index.d.ts b/types/chroma-js/index.d.ts index 41f7a36785..f826c8f254 100644 --- a/types/chroma-js/index.d.ts +++ b/types/chroma-js/index.d.ts @@ -109,7 +109,7 @@ declare namespace chroma { * Blends two colors using RGB channel-wise blend functions. */ blend(color1: string | Color, color2: string | Color, - blendMode: 'multiply' | 'darken' | 'lighten' | 'screen' | 'overlay' | 'burn' | 'dogde'): Color; + blendMode: 'multiply' | 'darken' | 'lighten' | 'screen' | 'overlay' | 'burn' | 'dodge'): Color; /** * Returns a random color. diff --git a/types/chrome/index.d.ts b/types/chrome/index.d.ts index 42ba4c1804..5104ab7ca1 100644 --- a/types/chrome/index.d.ts +++ b/types/chrome/index.d.ts @@ -436,7 +436,7 @@ declare namespace chrome.bookmarks { declare namespace chrome.browserAction { interface BadgeBackgroundColorDetails { /** An array of four integers in the range [0,255] that make up the RGBA color of the badge. For example, opaque red is [255, 0, 0, 255]. Can also be a string with a CSS value, with opaque red being #FF0000 or #F00. */ - color: any; + color: string | ColorArray; /** Optional. Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */ tabId?: number; } @@ -448,6 +448,8 @@ declare namespace chrome.browserAction { tabId?: number; } + type ColorArray = [number, number, number, number]; + interface TitleDetails { /** The string the browser action should display when moused over. */ title: string; @@ -518,7 +520,7 @@ declare namespace chrome.browserAction { * @param callback The callback parameter should be a function that looks like this: * function( ColorArray result) {...}; */ - export function getBadgeBackgroundColor(details: TabDetails, callback: (result: number[]) => void): void; + export function getBadgeBackgroundColor(details: TabDetails, callback: (result: ColorArray) => void): void; /** * Since Chrome 19. * Gets the html document set as the popup for this browser action. diff --git a/types/cloudflare-apps/index.d.ts b/types/cloudflare-apps/index.d.ts index ca1162d11a..6223a5e8ca 100644 --- a/types/cloudflare-apps/index.d.ts +++ b/types/cloudflare-apps/index.d.ts @@ -4,122 +4,117 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -// tslint:disable-next-line:no-single-declare-module -declare module "cloudflare-apps" { - global { - /** - * An object which contains all of the options the installer specified, - * based on the structure given in the options section of your `install.json`. - */ - const INSTALL_OPTIONS: CloudflareApps.InstallOptions; +/** + * An object which contains all of the options the installer specified, + * based on the structure given in the options section of your `install.json`. + */ +declare const INSTALL_OPTIONS: CloudflareApps.InstallOptions; - /** - * A string ID which is equal to the ID of this install. - * Its primary purpose is to allow you to easily distinguish between your app being loaded - * in the Cloudflare Preview or the installer’s live website. - */ - const INSTALL_ID: string; +/** + * A string ID which is equal to the ID of this install. + * Its primary purpose is to allow you to easily distinguish between your app being loaded + * in the Cloudflare Preview or the installer’s live website. + */ +declare const INSTALL_ID: string; - /** - * An object which you can use to store arbitrary values - * which you would like to be accessable from other Cloudflare scripts, - * without polluting the global scope. - * For example, it’s commonly used to share an update function with its update handler. - */ - const INSTALL_SCOPE: CloudflareApps.InstallScope; +/** + * An object which you can use to store arbitrary values + * which you would like to be accessable from other Cloudflare scripts, + * without polluting the global scope. + * For example, it’s commonly used to share an update function with its update handler. + */ +declare const INSTALL_SCOPE: CloudflareApps.InstallScope; - /** - * This object is specific to paid apps. It allows you to know which product the user has purchased. - * When you create a paid app you will be given product ids for each of the plans you wish to sell the product for. - * `INSTALL_PRODUCT.id` will then be that id for the plan the user has purchased. - * This value is absent for free apps and will always be set for paid apps even if the user is on a free plan. - */ - const INSTALL_PRODUCT: CloudflareApps.InstallProduct | undefined; +/** + * This object is specific to paid apps. It allows you to know which product the user has purchased. + * When you create a paid app you will be given product ids for each of the plans you wish to sell the product for. + * `INSTALL_PRODUCT.id` will then be that id for the plan the user has purchased. + * This value is absent for free apps and will always be set for paid apps even if the user is on a free plan. + */ +declare const INSTALL_PRODUCT: CloudflareApps.InstallProduct | undefined; - /** - * It's the same as CloudflareApps variable. - * - * DON'T use this variable directly. - * BAD Example: - * ```ts - * const apps: cloudflareApps.CloudflareApps = INSTALL; - * ``` - * ------------------------------------------------- - * Use directly properties and methods. - * GOOD Example: - * ```ts - * const siteId: string = INSTALL.siteId; - * ``` - */ - const INSTALL: CloudflareApps.CloudflareApps; +/** + * It's the same as CloudflareApps variable. + * + * DON'T use this variable directly. + * BAD Example: + * ```ts + * const apps: cloudflareApps.CloudflareApps = INSTALL; + * ``` + * ------------------------------------------------- + * Use directly properties and methods. + * GOOD Example: + * ```ts + * const siteId: string = INSTALL.siteId; + * ``` + */ +declare const INSTALL: CloudflareApps.CloudflareApps; - /** - * This is undocumented global variable. - * The documentation may arrive later. - */ - const CloudflareApps: CloudflareApps.CloudflareApps; +/** + * This is undocumented global variable. + * The documentation may arrive later. + */ +declare const CloudflareApps: CloudflareApps.CloudflareApps; - namespace CloudflareApps { - interface InstallOptions { - [key: string]: any; - } +declare namespace CloudflareApps { + interface InstallOptions { + [key: string]: any; + } - interface InstallScope { - [key: string]: any; - } + interface InstallScope { + [key: string]: any; + } - interface InstallProduct { - id: string; - } + interface InstallProduct { + id: string; + } - interface CloudflareAppsMethods { - createElement(options: ElementLocation, previousElement?: T): T; + interface CloudflareAppsMethods { + createElement(options: ElementLocation, previousElement?: T): T; - matchPage(patterns: string[]): boolean; + matchPage(patterns: string[]): boolean; - querySelector(selectors: K): ElementTagNameMap[K] | null; - querySelector(selectors: string): Element | null; - } + querySelector(selectors: K): ElementTagNameMap[K] | null; + querySelector(selectors: string): Element | null; + } - interface CloudflareApps extends CloudflareAppsMethods { - installs: { [id: string]: App | undefined }; - proxy: CloudflareAppsProxy; - siteId: string; - } + interface CloudflareApps extends CloudflareAppsMethods { + installs: { [id: string]: App | undefined }; + proxy: CloudflareAppsProxy; + siteId: string; + } - interface App { - appId: string; - options: InstallOptions; - scope: InstallScope; - } + interface App { + appId: string; + options: InstallOptions; + scope: InstallScope; + } - interface CloudflareAppsProxy { - embedSiteId: string; - hasRocketEmbed: boolean; - originalURL: OriginalURL; - } + interface CloudflareAppsProxy { + embedSiteId: string; + hasRocketEmbed: boolean; + originalURL: OriginalURL; + } - interface OriginalURL { - raw: string; - parsed: OriginalURLParsed; - } + interface OriginalURL { + raw: string; + parsed: OriginalURLParsed; + } - interface OriginalURLParsed { - fragment: string; - host: string; - path: string; - scheme: "https" | "http"; - query: URLQuery; - } + interface OriginalURLParsed { + fragment: string; + host: string; + path: string; + scheme: "https" | "http"; + query: URLQuery; + } - interface URLQuery { - [key: string]: string[]; - } + interface URLQuery { + [key: string]: string[]; + } - interface ElementLocation { - method: "before" | "prepend" | "append" | "after" | "replace"; - selector: string; - } - } + interface ElementLocation { + method: "before" | "prepend" | "append" | "after" | "replace"; + selector: string; } } diff --git a/types/cls-hooked/cls-hooked-tests.ts b/types/cls-hooked/cls-hooked-tests.ts new file mode 100644 index 0000000000..affaa6c54a --- /dev/null +++ b/types/cls-hooked/cls-hooked-tests.ts @@ -0,0 +1,23 @@ +import * as http from 'http'; +import * as cls from 'cls-hooked'; + +const session = cls.createNamespace('my session'); +const user = { id: 'foo' }; +session.set('user', user); +session.run((value: number) => { + session.set('value', value); +}); +http.createServer((req, res) => { + session.bindEmitter(req); + session.bindEmitter(res); +}); +function bindLater(callback: (x: number) => number) { + return session.bind(callback, session.createContext()); +} + +bindLater((x: number) => { + return x; +})(123); // passing argument 'abc' should get compile error + +const session2 = cls.getNamespace('my session'); +session2.get('user'); diff --git a/types/cls-hooked/index.d.ts b/types/cls-hooked/index.d.ts new file mode 100644 index 0000000000..6d0a68aa6e --- /dev/null +++ b/types/cls-hooked/index.d.ts @@ -0,0 +1,25 @@ +// Type definitions for cls-hooked 4.2 +// Project: https://github.com/jeff-lewis/cls-hooked +// Definitions by: Leo Liang +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import { EventEmitter } from 'events'; + +export interface Namespace { + active: any; + + set(key: string, value: T): T; + get(key: string): any; + run(fn: (...args: any[]) => void): void; + runAndReturn(fn: (...args: any[]) => T): T; + bind(fn: F, context?: any): F; // tslint:disable-line: ban-types + bindEmitter(emitter: EventEmitter): void; + createContext(): any; +} + +export function createNamespace(name: string): Namespace; +export function getNamespace(name: string): Namespace; +export function destroyNamespace(name: string): void; +export function reset(): void; diff --git a/types/cls-hooked/tsconfig.json b/types/cls-hooked/tsconfig.json new file mode 100644 index 0000000000..d5fe6249f9 --- /dev/null +++ b/types/cls-hooked/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "cls-hooked-tests.ts" + ] +} diff --git a/types/cls-hooked/tslint.json b/types/cls-hooked/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/cls-hooked/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/codemirror/index.d.ts b/types/codemirror/index.d.ts index fb755fae4b..88989b2ef2 100644 --- a/types/codemirror/index.d.ts +++ b/types/codemirror/index.d.ts @@ -765,6 +765,12 @@ declare namespace CodeMirror { /** Determines whether the gutter scrolls along with the content horizontally (false) or whether it stays fixed during horizontal scrolling (true, the default). */ fixedGutter?: boolean; + + /** + * Chooses a scrollbar implementation. The default is "native", showing native scrollbars. The core library also + * provides the "null" style, which completely hides the scrollbars. Addons can implement additional scrollbar models. + */ + scrollbarStyle?: string; /** boolean|string. This disables editing of the editor content by the user. If the special value "nocursor" is given (instead of simply true), focusing of the editor is also disallowed. */ readOnly?: any; diff --git a/types/commander/commander-tests.ts b/types/commander/commander-tests.ts index 259b107bbf..46aa77d92c 100644 --- a/types/commander/commander-tests.ts +++ b/types/commander/commander-tests.ts @@ -1,13 +1,16 @@ -import * as program from "commander"; +import * as program from 'commander'; interface ExtendedOptions extends program.CommandOptions { isNew: any; } -const commandInstance = new program.Command("-f"); -const optionsInstance = new program.Option("-f"); +const commandInstance = new program.Command('-f'); +const optionsInstance = new program.Option('-f'); + +const name = program.name(); program + .name('set name') .version('0.0.1') .option('-p, --peppers', 'Add peppers') .option('-P, --pineapple', 'Add pineapple') diff --git a/types/commander/index.d.ts b/types/commander/index.d.ts index 9e5feded68..c732d43c7c 100644 --- a/types/commander/index.d.ts +++ b/types/commander/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for commander 2.9 +// Type definitions for commander 2.11 // Project: https://github.com/visionmedia/commander.js // Definitions by: Alan Agius , Marcelo Dezem , vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -248,6 +248,14 @@ declare class Command extends NodeJS.EventEmitter { usage(str: string): Command; usage(): string; + /** + * Set the name of the command. + * + * @param {string} str + * @return {Command} + */ + name(str: string): Command; + /** * Get the name of the command. * @@ -258,9 +266,9 @@ declare class Command extends NodeJS.EventEmitter { /** * Output help information for this command. * - * @param {() => void} [cb] Callback method + * @param {(str: string) => string} [cb] */ - outputHelp(cb?: () => void): void; + outputHelp(cb?: (str: string) => string): void; /** Output help information and exit. */ help(): void; diff --git a/types/connect-mongo/connect-mongo-tests.ts b/types/connect-mongo/connect-mongo-tests.ts index a512d7dc71..67caed7c27 100644 --- a/types/connect-mongo/connect-mongo-tests.ts +++ b/types/connect-mongo/connect-mongo-tests.ts @@ -43,3 +43,11 @@ app.use(session({ secret: 'secret', store: new MongoStore({db: mongoDb}) })); + +// NativeMongoPromiseOptions +var Client = mongodb.MongoClient; +var mongoDbPromise = Client.connect('mongodb://localhost/test'); +app.use(session({ + secret: 'secret', + store: new MongoStore({ dbPromise: mongoDbPromise}) +})); diff --git a/types/connect-mongo/index.d.ts b/types/connect-mongo/index.d.ts index 0b7443f7e1..6f71906fa5 100644 --- a/types/connect-mongo/index.d.ts +++ b/types/connect-mongo/index.d.ts @@ -91,14 +91,16 @@ declare namespace connectMongo { mongooseConnection: mongoose.Connection; } - export interface NaitiveMongoOptions extends DefaultOptions { + export interface NativeMongoOptions extends DefaultOptions { db: mongodb.Db; } + export interface NativeMongoPromiseOptions extends DefaultOptions { + dbPromise: Promise; + } + export interface MongoStoreFactory { - new (options: MongoUrlOptions): MongoStore; - new (options: MogooseConnectionOptions): MongoStore; - new (options: NaitiveMongoOptions): MongoStore; + new(options: MongoUrlOptions | MogooseConnectionOptions | NativeMongoOptions | NativeMongoPromiseOptions): MongoStore; } export class MongoStore extends session.Store { diff --git a/types/connect-pg-simple/connect-pg-simple-tests.ts b/types/connect-pg-simple/connect-pg-simple-tests.ts new file mode 100644 index 0000000000..1e90c9b4e5 --- /dev/null +++ b/types/connect-pg-simple/connect-pg-simple-tests.ts @@ -0,0 +1,44 @@ +import connectPgSimple = require("connect-pg-simple"); +import * as session from "express-session"; +import * as pg from "pg"; +import * as express from "express"; + +const pgSession = connectPgSimple(session); + +const pgPool = new pg.Pool({}); +const store1: session.Store = new pgSession({ + pool: pgPool, + tableName: "user_sessions", + pruneSessionInterval: 300 +}); + +const app = express(); +app.use(session({ + store: store1, + secret: "foo" +})); + +const store2: session.Store = new pgSession({ + conString: "postgres://postgres@localhost:5432/foo", + ttl: 3600, + schemaName: "someschema", + pruneSessionInterval: false, + errorLog: (...args) => console.error(...args) +}); + +const store3 = new pgSession({ + conObject: { + host: "localhost", + user: "database-user", + max: 20, + idleTimeoutMillis: 30000 + } +}); + +const store4 = new pgSession(); + +store4.close(); + +store4.pruneSessions(); + +store4.pruneSessions(err => console.log(err)); diff --git a/types/connect-pg-simple/index.d.ts b/types/connect-pg-simple/index.d.ts new file mode 100644 index 0000000000..2337eef86b --- /dev/null +++ b/types/connect-pg-simple/index.d.ts @@ -0,0 +1,33 @@ +// Type definitions for connect-pg-simple 4.2 +// Project: https://github.com/voxpelli/node-connect-pg-simple#readme +// Definitions by: Pasi Eronen +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +import { RequestHandler } from "express"; +import { Store, SessionOptions } from "express-session"; +import { Pool, PoolConfig } from "pg"; + +declare function connectPgSimple(session: (options?: SessionOptions) => RequestHandler): typeof connectPgSimple.PGStore; + +declare namespace connectPgSimple { + class PGStore extends Store { + constructor(options?: PGStoreOptions); + close(): void; + pruneSessions(callback?: (err: Error) => void): void; + } + interface PGStoreOptions { + pool?: Pool; + pgPromise?: object; // not typed to avoid dependency to "pg-promise" module (which includes its own types) + conString?: string; + conObject?: PoolConfig; + ttl?: number; + schemaName?: string; + tableName?: string; + pruneSessionInterval?: false | number; + // tslint:disable-next-line:prefer-method-signature + errorLog?: (...args: any[]) => void; + } +} + +export = connectPgSimple; diff --git a/types/connect-pg-simple/tsconfig.json b/types/connect-pg-simple/tsconfig.json new file mode 100644 index 0000000000..d192ede32f --- /dev/null +++ b/types/connect-pg-simple/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "connect-pg-simple-tests.ts" + ] +} diff --git a/types/connect-pg-simple/tslint.json b/types/connect-pg-simple/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/connect-pg-simple/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/convict/index.d.ts b/types/convict/index.d.ts index d7904ec5d6..5aac427dd0 100644 --- a/types/convict/index.d.ts +++ b/types/convict/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for convict 4.0 +// Type definitions for convict 4.1 // Project: https://github.com/mozilla/node-convict // Definitions by: Wim Looman // Vesa Poikajärvi @@ -118,7 +118,7 @@ declare namespace convict { interface convict { addFormat(format: convict.Format): void; addFormats(formats: { [name: string]: convict.Format }): void; - (config: convict.Schema): convict.Config; + (config: convict.Schema | string): convict.Config; } declare var convict: convict; export = convict; diff --git a/types/cordova-plugin-canvascamera/index.d.ts b/types/cordova-plugin-canvascamera/index.d.ts new file mode 100644 index 0000000000..f9d2a1717e --- /dev/null +++ b/types/cordova-plugin-canvascamera/index.d.ts @@ -0,0 +1,170 @@ +// Type definitions for CanvasCameraPlugin 1.0 +// Project: https://github.com/VirtuoWorks/CanvasCameraPlugin +// Definitions by: Ricardo Azzi Silva +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +interface CordovaPlugins { + /** + * cordova-plugin-device-name interface + */ + CanvasCamera: CanvasCamera; +} + +declare class CanvasCamera { + constructor(); + + createFrame(image: HTMLImageElement, element: HTMLCanvasElement): Frame; + createRenderer(element: HTMLCanvasElement, parent: CanvasCamera): Renderer; + initialize(fcanvas: HTMLCanvasElement, tcanvas: HTMLCanvasElement): void; + start( + options: CanvasCameraOptions, + onError?: (error?: any) => void, + onSuccess?: (data: any) => void + ): void; + stop( + onError?: (error?: any) => void, + onSuccess?: (data: any) => void + ): void; + flashMode( + flashMode: boolean, + onError?: (error?: any) => void, + onSuccess?: (data: any) => void + ): void; + cameraPosition( + cameraFacing: 'front' | 'back', + onError?: (error?: any) => void, + onSuccess?: (data: any) => void + ): void; + capture(data: any): void; + enableRenderers(): void; + disableRenderers(): void; + setRenderingPresets(): CanvasCamera; + getUISize(): { width: number, height: number }; + getUIOrientation(): 'portrait' | 'landscape'; + setRenderersSize(size: { width: number, height: number }): CanvasCamera; +} + +interface CanvasCameraOptions { + /** + * Number, optional, default: 352, width in pixels of the video to capture and the output canvas width in pixels. + */ + width?: number; + + /** + * Number, optional, default: 288, height in pixels of the video to capture and the output canvas height in pixels. + */ + height?: number; + + canvas?: { + /** + * Number, optional, default: 352, width in pixels of the video to capture. + */ + width?: number, + + /** + * Number, optional, default: 288, height in pixels of the video to capture. + */ + height?: number + }; + + capture?: { + /** + * Number, optional, default: 352, output canvas width in pixels. + */ + width?: number, + + /** + * Number, optional, default: 288, output canvas height in pixels. + */ + height?: number + }; + + /** + * Number, optional, default: 30, desired number of frames per second. + */ + fps?: number; + + /** + * String, optional, default: 'front', 'front' or 'back'. + */ + use?: 'file' | 'data'; + + /** + * Boolean, optional, default: false, a boolean to set flash mode on/off. + */ + flashMode?: boolean; + + /** + * Number, optional, default: 1/6, a ratio used to scale down the thumbnail. + */ + thumbnailRatio?: number; + + /** + * String, optional, default: file, file to use files for rendering (lower CPU / higher storage) or data to use base64 jpg data for rendering (higher cpu / lower storage). + */ + cameraFacing?: 'front' | 'back'; + + /** + * Function, optional, default : null, callback executed before a frame has been drawn. frame contains the canvas element, the image element, the tracking data. + */ + // tslint:disable-next-line:prefer-method-signature + onBeforeDraw?: (frame?: Frame) => void; + + /** + * Function, optional, default : null, callback executed after a frame has been drawn. frame contains the canvas element, the image element, the tracking data. + */ + // tslint:disable-next-line:prefer-method-signature + onAfterDraw?: (frame?: Frame) => void; +} + +declare class Frame { + sx: number; + sy: number; + sWidth: number; + sHeight: number; + dx: number; + dy: number; + dWidth: number; + dHeight: number; + image: HTMLImageElement; + element: HTMLCanvasElement; + + private constructor(); + + initialize(): Frame; + recycle(): void; +} + +declare class Renderer { + size: { width: number, height: number }; + type: 'file' | 'data'; + image: HTMLImageElement; + context: CanvasRenderingContext2D; + orientation: 'portrait' | 'landscape'; + buffer: any[]; + available: boolean; + fullscreen: boolean; + parent: CanvasCamera; + element: HTMLCanvasElement; + onAfterDraw: (frame?: Frame) => void; + onBeforeDraw: (frame?: Frame) => void; + + private constructor(); + + initialize(): Renderer; + onOrientationChange(): void; + clear(): Renderer; + draw(frame: Frame): Renderer; + bufferize(data: any, type: 'file' | 'data'): Renderer; + run(): Renderer; + render(data: any, type: 'file' | 'data'): Renderer; + enable(): Renderer; + disable(): Renderer; + enabled(): boolean; + disabled(): boolean; + invert(): Renderer; + resize(): Renderer; + setSize(size: { width: number, height: number }, auto?: boolean): Renderer; + setOnBeforeDraw(onBeforeDraw: (frame?: Frame) => void): Renderer; + setOnAfterDraw(onAfterDraw: (frame?: Frame) => void): Renderer; +} diff --git a/types/cordova-plugin-canvascamera/tsconfig.json b/types/cordova-plugin-canvascamera/tsconfig.json new file mode 100644 index 0000000000..f4a291c106 --- /dev/null +++ b/types/cordova-plugin-canvascamera/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "dom", + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [] + }, + "files": [ + "index.d.ts" + ] +} \ No newline at end of file diff --git a/types/cordova-plugin-canvascamera/tslint.json b/types/cordova-plugin-canvascamera/tslint.json new file mode 100644 index 0000000000..e60c15844f --- /dev/null +++ b/types/cordova-plugin-canvascamera/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} \ No newline at end of file diff --git a/types/cordova-plugin-file-opener2/cordova-plugin-file-opener2-tests.ts b/types/cordova-plugin-file-opener2/cordova-plugin-file-opener2-tests.ts new file mode 100644 index 0000000000..2bbf69206e --- /dev/null +++ b/types/cordova-plugin-file-opener2/cordova-plugin-file-opener2-tests.ts @@ -0,0 +1,49 @@ +/// + +/** + * Open an APK install dialog: + */ +cordova.plugins.fileOpener2.open( + '/sdcard/Download/gmail.apk', + 'application/vnd.android.package-archive' +); + +/** + * Open a PDF document with the default PDF reader and optional callback object: + */ +cordova.plugins.fileOpener2.open( + '/sdcard/Download/starwars.pdf', // You can also use a Cordova-style file uri: cdvfile://localhost/persistent/Download/starwars.pdf + 'application/pdf', + { + error: e => { + }, + success: () => { + } + } +); + +cordova.plugins.fileOpener2.showOpenWithDialog( + '/sdcard/Download/starwars.pdf', // You can also use a Cordova-style file uri: cdvfile://localhost/persistent/Download/starwars.pdf + 'application/pdf', + { + error: e => { + }, + success: () => { + } + } +); + +cordova.plugins.fileOpener2.uninstall('com.zynga.FarmVille2CountryEscape', { + error: e => { + }, + success: () => { + } +}); + +cordova.plugins.fileOpener2.appIsInstalled('com.adobe.reader', { + success: res => { + if (res.status === 0) { + } else { + } + } +}); diff --git a/types/cordova-plugin-file-opener2/index.d.ts b/types/cordova-plugin-file-opener2/index.d.ts new file mode 100644 index 0000000000..b7fb167772 --- /dev/null +++ b/types/cordova-plugin-file-opener2/index.d.ts @@ -0,0 +1,41 @@ +// Type definitions for cordova-plugin-file-opener2 2.0 +// Project: https://github.com/pwlin/cordova-plugin-file-opener2 +// Definitions by: Cyril Gandon +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +interface CordovaPluginsFileOpener2Result { + status: number; + message: string; +} +interface CordovaPluginsFileOpener2CallbackContext { + success?(): void; + error?(error: CordovaPluginsFileOpener2Result): void; +} +interface CordovaPluginsFileOpener2 { + /** + * Open a file with the default file opener and optional callback object: + */ + open(fileName: string, contentType: string, callbackContext?: CordovaPluginsFileOpener2CallbackContext): void; + + /** + * Open a system modal to open document with one of the already installed app and optional callback object + */ + showOpenWithDialog(fileName: string, contentType: string, callbackContext?: CordovaPluginsFileOpener2CallbackContext): void; + + /** + * Uninstall a package with its id. Android platform only. + */ + uninstall(packageId: string, callbackContext?: CordovaPluginsFileOpener2CallbackContext): void; + + /** + * Check if an app is already installed. Android platform only. + */ + appIsInstalled(packageId: string, callbackContext?: { + success?(result: CordovaPluginsFileOpener2Result): void; + error?(error: CordovaPluginsFileOpener2Result): void; + }): void; +} + +interface CordovaPlugins { + fileOpener2: CordovaPluginsFileOpener2; +} diff --git a/types/cordova-plugin-file-opener2/tsconfig.json b/types/cordova-plugin-file-opener2/tsconfig.json new file mode 100644 index 0000000000..b9b71ec9e2 --- /dev/null +++ b/types/cordova-plugin-file-opener2/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "cordova-plugin-file-opener2-tests.ts" + ] +} diff --git a/types/cordova-plugin-file-opener2/tslint.json b/types/cordova-plugin-file-opener2/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/cordova-plugin-file-opener2/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/cordova-plugin-inappbrowser/index.d.ts b/types/cordova-plugin-inappbrowser/index.d.ts index b266fbab44..1cf2c67642 100644 --- a/types/cordova-plugin-inappbrowser/index.d.ts +++ b/types/cordova-plugin-inappbrowser/index.d.ts @@ -25,7 +25,7 @@ interface Window { * NOTE: The InAppBrowser window behaves like a standard web browser, and can't access Cordova APIs. */ interface InAppBrowser extends Window { - onloadstart(type: InAppBrowserEvent): void; + onloadstart(type: Event): void; onloadstop(type: InAppBrowserEvent): void; onloaderror(type: InAppBrowserEvent): void; onexit(type: InAppBrowserEvent): void; diff --git a/types/cordova-plugin-inappbrowser/tsconfig.json b/types/cordova-plugin-inappbrowser/tsconfig.json index fc11c3516e..aea375a6ca 100644 --- a/types/cordova-plugin-inappbrowser/tsconfig.json +++ b/types/cordova-plugin-inappbrowser/tsconfig.json @@ -20,4 +20,4 @@ "index.d.ts", "cordova-plugin-inappbrowser-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/core-js/tslint.json b/types/core-js/tslint.json index deb0a8f9b2..a8e29063db 100644 --- a/types/core-js/tslint.json +++ b/types/core-js/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { "ban-types": false, + "no-declare-current-package": false, "no-unnecessary-generics": false } } diff --git a/types/countries-and-timezones/countries-and-timezones-tests.ts b/types/countries-and-timezones/countries-and-timezones-tests.ts new file mode 100644 index 0000000000..a73344aa88 --- /dev/null +++ b/types/countries-and-timezones/countries-and-timezones-tests.ts @@ -0,0 +1,6 @@ +import * as lib from 'countries-and-timezones'; + +lib.getAllCountries(); +lib.getAllTimezones(); +lib.getCountriesForTimezone('Europe/London'); +lib.getTimezonesForCountry('GB'); diff --git a/types/countries-and-timezones/index.d.ts b/types/countries-and-timezones/index.d.ts new file mode 100644 index 0000000000..1012133d8e --- /dev/null +++ b/types/countries-and-timezones/index.d.ts @@ -0,0 +1,25 @@ +// Type definitions for countries-and-timezones 1.0 +// Project: https://github.com/manuelmhtr/countries-and-timezones#readme +// Definitions by: David Bird +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export interface Country { + id: string; + name: string; + timezones: string[]; +} + +export interface Timezone { + name: string; + utcOffset: number; + offsetStr: string; + countries: string[]; +} + +export function getAllCountries(): Country[]; + +export function getAllTimezones(): Timezone[]; + +export function getCountriesForTimezone(timezoneId: string): Country[]; + +export function getTimezonesForCountry(countryId: string): Timezone[]; diff --git a/types/countries-and-timezones/tsconfig.json b/types/countries-and-timezones/tsconfig.json new file mode 100644 index 0000000000..8a5b341368 --- /dev/null +++ b/types/countries-and-timezones/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "countries-and-timezones-tests.ts" + ] +} diff --git a/types/countries-and-timezones/tslint.json b/types/countries-and-timezones/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/countries-and-timezones/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/crypto-js/crypto-js-tests.ts b/types/crypto-js/crypto-js-tests.ts index c36def9f90..9b5dd1be6f 100644 --- a/types/crypto-js/crypto-js-tests.ts +++ b/types/crypto-js/crypto-js-tests.ts @@ -11,6 +11,10 @@ wordArray = CryptoJS.SHA1('some message', 'some key', { any: true }); wordArray = CryptoJS.format.OpenSSL('some message'); wordArray = CryptoJS.format.OpenSSL('some message', 'some key'); +var FR = new FileReader(); +FR.onloadend = () => { + var hash = CryptoJS.SHA1(CryptoJS.lib.WordArray.create(FR.result)).toString() +} // Ciphers var encrypted: CryptoJS.WordArray; diff --git a/types/crypto-js/index.d.ts b/types/crypto-js/index.d.ts index 8e80c74a07..4e35dfbdfb 100644 --- a/types/crypto-js/index.d.ts +++ b/types/crypto-js/index.d.ts @@ -8,7 +8,7 @@ export as namespace CryptoJS; declare var CryptoJS: CryptoJS.Hashes; declare namespace CryptoJS { - type Hash = (message: string, key?: string, ...options: any[]) => WordArray; + type Hash = (message: string | LibWordArray, key?: string, ...options: any[]) => WordArray; interface Cipher { encrypt(message: string, secretPassphrase: string, option?: CipherOption): WordArray; decrypt(encryptedMessage: string | WordArray, secretPassphrase: string, option?: CipherOption): DecryptedMessage; @@ -25,6 +25,10 @@ declare namespace CryptoJS { process(messagePart: string): string; finalize(): string; } + interface LibWordArray { + sigBytes: number, + words: number[], + } export interface WordArray { iv: string; salt: string; @@ -97,6 +101,11 @@ declare namespace CryptoJS { Utf16LE: Encoder; Base64: Encoder; }; + lib: { + WordArray: { + create: (v: any) => LibWordArray; + }; + }; mode: { CBC: Mode; CFB: Mode; diff --git a/types/csv-parse/lib/sync.d.ts b/types/csv-parse/lib/sync.d.ts index 5a025f6dab..e886b7017f 100644 --- a/types/csv-parse/lib/sync.d.ts +++ b/types/csv-parse/lib/sync.d.ts @@ -1,4 +1,4 @@ -import { Options } from "csv-parse"; +import { Options } from ".."; declare function parse(input: string, options?: Options): any; export = parse; diff --git a/types/cucumber/cucumber-tests.ts b/types/cucumber/cucumber-tests.ts index 46531711f3..77760bd5ac 100644 --- a/types/cucumber/cucumber-tests.ts +++ b/types/cucumber/cucumber-tests.ts @@ -1,6 +1,13 @@ import * as assert from "power-assert"; import cucumber = require("cucumber"); +// You can optionally declare your own world properties +declare module "cucumber" { + interface World { + visit(url: string, callback: CallbackStepDefinition): void; + } +} + function StepSample() { type Callback = cucumber.CallbackStepDefinition; type Table = cucumber.TableDefinition; diff --git a/types/cucumber/index.d.ts b/types/cucumber/index.d.ts index 90ed0abe4a..d72b3ee4ac 100644 --- a/types/cucumber/index.d.ts +++ b/types/cucumber/index.d.ts @@ -7,6 +7,10 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 +export interface World { + [key: string]: any; +} + export interface CallbackStepDefinition { pending(): PromiseLike; (error?: any, pending?: string): void; @@ -21,7 +25,7 @@ export interface TableDefinition { export type StepDefinitionParam = string | number | CallbackStepDefinition | TableDefinition; -export type StepDefinitionCode = (this: {[key: string]: any}, ...stepArgs: StepDefinitionParam[]) => PromiseLike | any | void; +export type StepDefinitionCode = (this: World, ...stepArgs: StepDefinitionParam[]) => PromiseLike | any | void; export interface StepDefinitionOptions { timeout?: number; @@ -45,7 +49,7 @@ export interface HookScenarioResult { stepsResults: any; } -export type HookCode = (this: { [key: string]: any }, scenario: HookScenarioResult, callback?: CallbackStepDefinition) => void; +export type HookCode = (this: World, scenario: HookScenarioResult, callback?: CallbackStepDefinition) => void; // tslint:disable-next-line ban-types export type AroundCode = (scenario: HookScenarioResult, runScenario?: (error: string, callback?: Function) => void) => void; @@ -69,7 +73,7 @@ export interface Hooks { Around(code: AroundCode): void; setDefaultTimeout(time: number): void; // tslint:disable-next-line ban-types - setWorldConstructor(world: ((this: {[key: string]: any}, init: {attach: Function, parameters: {[key: string]: any}}) => void) | {}): void; + setWorldConstructor(world: ((this: World, init: {attach: Function, parameters: {[key: string]: any}}) => void) | {}): void; registerHandler(handlerOption: string, code: (event: any, callback: CallbackStepDefinition) => void): void; registerListener(listener: EventListener): void; defineParameterType(transform: Transform): void; diff --git a/types/d3-force/d3-force-tests.ts b/types/d3-force/d3-force-tests.ts index c08e1b5cee..6b73a1dbf4 100644 --- a/types/d3-force/d3-force-tests.ts +++ b/types/d3-force/d3-force-tests.ts @@ -370,6 +370,168 @@ simNodeNumberAccessor = forcePosY.y(); forcePosY.initialize(graph.nodes); forcePosY(0.1); // alpha +// ForceRadial ============================================================================== + +// create ForceRadial force -------------------------------------------------------------- + +let forceRadial: d3Force.ForceRadial; + +// Radius set only +forceRadial = d3Force.forceRadial(50); +forceRadial = d3Force.forceRadial((node, index, nodes) => { + const n: SimNode = node; + const i: number = index; + const ns: SimNode[] = nodes; + return 50 * n.group; +}); + +// Radius and x-coordinate of center set only +forceRadial = d3Force.forceRadial(50, 10); +forceRadial = d3Force.forceRadial( + 50, // radius + (node, index, nodes) => { + const n: SimNode = node; + const i: number = index; + const ns: SimNode[] = nodes; + return 10 * n.group; + } // center-x +); + +// Radius and center set +forceRadial = d3Force.forceRadial(50, 10, 10); +forceRadial = d3Force.forceRadial( + 50, // radius + 10, // center-x + (node, index, nodes) => { + const n: SimNode = node; + const i: number = index; + const ns: SimNode[] = nodes; + return 10 * n.group; + } // center-y +); + +forceRadial = d3Force.forceRadial( + (node, index, nodes) => { + const n: SimNode = node; + const i: number = index; + const ns: SimNode[] = nodes; + return 50 * n.group; + }, // radius + (node, index, nodes) => { + const n: SimNode = node; + const i: number = index; + const ns: SimNode[] = nodes; + return 10 * n.group; + }, // center-x + (node, index, nodes) => { + const n: SimNode = node; + const i: number = index; + const ns: SimNode[] = nodes; + return 10 * n.group; + } // center-y +); +// Configure ForceRadial force ----------------------------------------------------------- + +// strength + +forceRadial = forceRadial.strength(0.2); +forceRadial = forceRadial.strength((node, index, nodes) => { + const n: SimNode = node; + const i: number = index; + const ns: SimNode[] = nodes; + return 0.1 * n.group; +}); +simNodeNumberAccessor = forceRadial.strength(); + +// radius + +forceRadial = forceRadial.radius(100); +forceRadial = forceRadial.radius((node, index, nodes) => { + const n: SimNode = node; + const i: number = index; + const ns: SimNode[] = nodes; + let target: number; + switch (n.group) { + case 1: + target = 100; + break; + case 2: + target = 200; + break; + case 3: + target = 300; + break; + default: + target = 0; + break; + } + + return target; +}); + +simNodeNumberAccessor = forceRadial.radius(); + +// x + +forceRadial = forceRadial.x(100); +forceRadial = forceRadial.x((node, index, nodes) => { + const n: SimNode = node; + const i: number = index; + const ns: SimNode[] = nodes; + let target: number; + switch (n.group) { + case 1: + target = 100; + break; + case 2: + target = 200; + break; + case 3: + target = 300; + break; + default: + target = 0; + break; + } + + return target; +}); + +simNodeNumberAccessor = forceRadial.x(); + +// y + +forceRadial = forceRadial.y(100); +forceRadial = forceRadial.y((node, index, nodes) => { + const n: SimNode = node; + const i: number = index; + const ns: SimNode[] = nodes; + let target: number; + switch (n.group) { + case 1: + target = 100; + break; + case 2: + target = 200; + break; + case 3: + target = 300; + break; + default: + target = 0; + break; + } + + return target; +}); + +simNodeNumberAccessor = forceRadial.y(); + +// Use ForceRadial force ----------------------------------------------------------------- + +forceRadial.initialize(graph.nodes); +forceRadial(0.1); // alpha + // ------------------------------------------------------------------------------------- // Test Force Simulation // ------------------------------------------------------------------------------------- diff --git a/types/d3-force/index.d.ts b/types/d3-force/index.d.ts index 23f83c7ea3..1736a1ac78 100644 --- a/types/d3-force/index.d.ts +++ b/types/d3-force/index.d.ts @@ -1,9 +1,9 @@ -// Type definitions for D3JS d3-force module 1.0 +// Type definitions for D3JS d3-force module 1.1 // Project: https://github.com/d3/d3-force/ // Definitions by: Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// Last module patch version validated against: 1.0.4 +// Last module patch version validated against: 1.1.0 // ----------------------------------------------------------------------- // Force Simulation @@ -66,14 +66,18 @@ export interface SimulationNodeDatum { export interface SimulationLinkDatum { /** * Link’s source node. - * For convenience, a link’s source property may be initialized using numeric or string identifiers rather than object references; see link.id. + * For convenience, a link’s source and target properties may be initialized using numeric or string identifiers rather than object references; see link.id. + * When the link force is initialized (or re-initialized, as when the nodes or links change), any link.source or link.target property which is not an object + * is replaced by an object reference to the corresponding node with the given identifier. * After initialization, the source property represents the source node object. */ source: NodeDatum | string | number; /** * Link’s source link - * For convenience, a link’s target property may be initialized using numeric or string identifiers rather than object references; see link.id. - * After initialization, the target property represents the source node object. + * For convenience, a link’s source and target properties may be initialized using numeric or string identifiers rather than object references; see link.id. + * When the link force is initialized (or re-initialized, as when the nodes or links change), any link.source or link.target property which is not an object + * is replaced by an object reference to the corresponding node with the given identifier. + * After initialization, the target property represents the target node object. */ target: NodeDatum | string | number; /** @@ -565,6 +569,8 @@ export interface ForceLink(y: number): ForceY * The function returns the y-coordinate. */ export function forceY(y: (d: NodeDatum, i: number, data: NodeDatum[]) => number): ForceY; + +/** + * The radial force is similar to the x- and y-positioning forces, except it pushes nodes towards the closest point on a given circle. + * The circle is of the specified radius centered at ⟨x,y⟩. If x and y are not specified, they default to ⟨0,0⟩. + * The strength of the force is proportional to the one-dimensional distance between the node’s position and the target position. + * While this force can be used to position individual nodes, it is intended primarily for global forces that apply to all (or most) nodes. + * + * The generic refers to the type of data for a node. + */ +export interface ForceRadial extends Force { + /** + * Assign the array of nodes to this force. This method is called when a force is bound to a simulation via simulation.force + * and when the simulation’s nodes change via simulation.nodes. + * + * A force may perform necessary work during initialization, such as evaluating per-node parameters, to avoid repeatedly performing work during each application of the force. + */ + initialize(nodes: NodeDatum[]): void; + + /** + * Returns the current strength accessor, which defaults to a constant strength for all nodes of 0.1. + */ + strength(): (d: NodeDatum, i: number, data: NodeDatum[]) => number; + /** + * Set the strength accessor to the specified constant strength for all nodes, re-evaluates the strength accessor for each node, and returns this force. + * + * The strength determines how much to increment the node’s x-velocity: (x - node.x) × strength. + * + * For example, a value of 0.1 indicates that the node should move a tenth of the way from its current x-position to the target x-position with each application. + * Higher values moves nodes more quickly to the target position, often at the expense of other forces or constraints. + * + * A value outside the range [0,1] is not recommended. + * + * The constant is internally wrapped into a strength accessor function. + * + * The strength accessor is invoked for each node in the simulation, being passed the node, its zero-based index and the complete array of nodes. + * The resulting number is then stored internally, such that the strength of each node is only recomputed when the force is initialized or + * when this method is called with a new strength, and not on every application of the force. + * + * @param strength Constant value of strength to be used for all nodes. + */ + strength(strength: number): this; + /** + * Set the strength accessor to the specified function, re-evaluates the strength accessor for each node, and returns this force. + * + * The strength determines how much to increment the node’s x-velocity: (x - node.x) × strength. + * + * For example, a value of 0.1 indicates that the node should move a tenth of the way from its current x-position to the target x-position with each application. + * Higher values moves nodes more quickly to the target position, often at the expense of other forces or constraints. + * + * A value outside the range [0,1] is not recommended. + * + * The strength accessor is invoked for each node in the simulation, being passed the node, its zero-based index and the complete array of nodes. + * The resulting number is then stored internally, such that the strength of each node is only recomputed when the force is initialized or + * when this method is called with a new strength, and not on every application of the force. + * + * @param strength A strength accessor function which is invoked for each node in the simulation, being passed the node, its zero-based index and the complete array of nodes. + * The function returns the strength. + */ + strength(strength: (d: NodeDatum, i: number, data: NodeDatum[]) => number): this; + + /** + * Return the current radius accessor for the circle. + */ + radius(): (d: NodeDatum, i: number, data: NodeDatum[]) => number; + /** + * Set the radius accessor for the circle to the specified number, re-evaluates the radius accessor for each node, + * and returns this force. + * + * The constant is internally wrapped into a radius accessor function. + * + * The radius accessor is invoked for each node in the simulation, being passed the node, its zero-based index and the complete array of nodes. + * The resulting number is then stored internally, such that radius of the circle for each node is only recomputed when the force is initialized or + * when this method is called with a new radius, and not on every application of the force. + * + * @param radius Constant radius of the circle to be used for all nodes. + */ + radius(radius: number): this; + /** + * Set the radius accessor for the circle to the specified function, re-evaluates the radius accessor for each node, + * and returns this force. + * + * The radius accessor is invoked for each node in the simulation, being passed the node, its zero-based index and the complete array of nodes. + * The resulting number is then stored internally, such that radius of the circle for each node is only recomputed when the force is initialized or + * when this method is called with a new radius, and not on every application of the force. + * + * @param radius A radius accessor function for the circle which is invoked for each node in the simulation, being passed the node, its zero-based index and the complete array of nodes. + * The function returns the radius of the circle. + */ + radius(radius: (d: NodeDatum, i: number, data: NodeDatum[]) => number): this; + + /** + * Return the current x-accessor for the circle center, which defaults to a function returning 0 for all nodes. + */ + x(): (d: NodeDatum, i: number, data: NodeDatum[]) => number; + /** + * Set the x-coordinate accessor for the circle center to the specified number, re-evaluates the x-accessor for each node, + * and returns this force. + * + * The constant is internally wrapped into an x-coordinate accessor function. + * + * The x-accessor is invoked for each node in the simulation, being passed the node, its zero-based index and the complete array of nodes. + * The resulting number is then stored internally, such that the x-coordinate of the circle center for each node is only recomputed when the force is initialized or + * when this method is called with a new x, and not on every application of the force. + * + * @param x Constant x-coordinate of the circle center to be used for all nodes. + */ + x(x: number): this; + /** + * Set the x-coordinate accessor to the specified function, re-evaluates the x-accessor for each node, + * and returns this force. + * + * The x-accessor is invoked for each node in the simulation, being passed the node, its zero-based index and the complete array of nodes. + * The resulting number is then stored internally, such that the x-coordinate of the circle center for each node is only recomputed when the force is initialized or + * when this method is called with a new x, and not on every application of the force. + * + * @param x A x-coordinate accessor function for the circle center which is invoked for each node in the simulation, being passed the node, its zero-based index and the complete array of nodes. + * The function returns the x-coordinate of the circle center. + */ + x(x: (d: NodeDatum, i: number, data: NodeDatum[]) => number): this; + + /** + * Return the current y-accessor for the circle center, which defaults to a function returning 0 for all nodes. + */ + y(): (d: NodeDatum, i: number, data: NodeDatum[]) => number; + /** + * Set the y-coordinate accessor for the circle center to the specified number, re-evaluates the y-accessor for each node, + * and returns this force. + * + * The constant is internally wrapped into an y-coordinate accessor function. + * + * The y-accessor is invoked for each node in the simulation, being passed the node, its zero-based index and the complete array of nodes. + * The resulting number is then stored internally, such that the y-coordinate of the circle center for each node is only recomputed when the force is initialized or + * when this method is called with a new y, and not on every application of the force. + * + * @param y Constant y-coordinate of the circle center to be used for all nodes. + */ + y(y: number): this; + /** + * Set the y-coordinate accessor to the specified function, re-evaluates the y-accessor for each node, + * and returns this force. + * + * The y-accessor is invoked for each node in the simulation, being passed the node, its zero-based index and the complete array of nodes. + * The resulting number is then stored internally, such that the y-coordinate of the circle center for each node is only recomputed when the force is initialized or + * when this method is called with a new y, and not on every application of the force. + * + * @param y A y-coordinate accessor function for the circle center which is invoked for each node in the simulation, being passed the node, its zero-based index and the complete array of nodes. + * The function returns the y-coordinate of the circle center. + */ + y(y: (d: NodeDatum, i: number, data: NodeDatum[]) => number): this; +} + +/** + * Create a new radial positioning force towards a circle of the specified radius centered at ⟨x,y⟩. + * If x and y are not specified, they default to ⟨0,0⟩. + * + * The strength of the force is proportional to the one-dimensional distance between the node’s position and the target position. + * While this force can be used to position individual nodes, it is intended primarily for global forces that apply to all (or most) nodes. + * + * The generic refers to the type of data for a node. + */ +export function forceRadial(radius: number | ((d: NodeDatum, i: number, data: NodeDatum[]) => number), + x?: number | ((d: NodeDatum, i: number, data: NodeDatum[]) => number), y?: number | ((d: NodeDatum, i: number, data: NodeDatum[]) => number)): ForceRadial; diff --git a/types/d3-geo/d3-geo-tests.ts b/types/d3-geo/d3-geo-tests.ts index f698193878..4d423aa5a3 100644 --- a/types/d3-geo/d3-geo-tests.ts +++ b/types/d3-geo/d3-geo-tests.ts @@ -326,6 +326,7 @@ const mercatorRaw: d3Geo.GeoRawProjection = d3Geo.geoMercatorRaw(); const orthographicRaw: d3Geo.GeoRawProjection = d3Geo.geoOrthographicRaw(); const stereographicRaw: d3Geo.GeoRawProjection = d3Geo.geoStereographicRaw(); const transverseMercatorRaw: d3Geo.GeoRawProjection = d3Geo.geoTransverseMercatorRaw(); +const naturalEart1Raw: d3Geo.GeoRawProjection = d3Geo.geoNaturalEarth1Raw(); // Use Raw Projection ===================================================== @@ -351,6 +352,7 @@ const mercator: d3Geo.GeoProjection = d3Geo.geoMercator(); const orthographic: d3Geo.GeoProjection = d3Geo.geoOrthographic(); const stereographic: d3Geo.GeoProjection = d3Geo.geoStereographic(); const transverseMercator: d3Geo.GeoProjection = d3Geo.geoTransverseMercator(); +const natualEarth1: d3Geo.GeoProjection = d3Geo.geoNaturalEarth1(); // ---------------------------------------------------------------------- // Create New Projections @@ -369,6 +371,13 @@ const inverted2: [number, number] = constructedProjection.invert([54, 2]); // TODO ????? // let stream: d3Geo.Stream = constructedProjection.stream([54, 2]); +const preClip: (stream: d3Geo.GeoStream) => d3Geo.GeoStream = constructedProjection.preclip(); +constructedProjection = constructedProjection.preclip(d3Geo.geoClipAntimeridian); +constructedProjection = constructedProjection.preclip(d3Geo.geoClipCircle(45)); + +const postClip: (stream: d3Geo.GeoStream) => d3Geo.GeoStream = constructedProjection.postclip(); +constructedProjection = constructedProjection.postclip(d3Geo.geoClipRectangle(0, 0, 1, 1)); + const clipAngle: number = constructedProjection.clipAngle(); constructedProjection = constructedProjection.clipAngle(null); constructedProjection = constructedProjection.clipAngle(45); @@ -684,3 +693,13 @@ d3Geo.geoStream(sampleExtendedFeature1, stream); d3Geo.geoStream(sampleExtendedFeature2, stream); d3Geo.geoStream(sampleFeatureCollection, stream); d3Geo.geoStream(sampleExtendedFeatureCollection, stream); + +// ---------------------------------------------------------------------- +// Clipping Function +// ---------------------------------------------------------------------- + +let clippingFunction: (stream: d3Geo.GeoStream) => d3Geo.GeoStream; + +clippingFunction = d3Geo.geoClipAntimeridian; +clippingFunction = d3Geo.geoClipCircle(45); +clippingFunction = d3Geo.geoClipRectangle(0, 0, 1, 1); diff --git a/types/d3-geo/index.d.ts b/types/d3-geo/index.d.ts index bff408ce6b..6860031224 100644 --- a/types/d3-geo/index.d.ts +++ b/types/d3-geo/index.d.ts @@ -1,9 +1,9 @@ -// Type definitions for D3JS d3-geo module 1.6 +// Type definitions for D3JS d3-geo module 1.8 // Project: https://github.com/d3/d3-geo/ // Definitions by: Hugues Stefanski , Tom Wanzek , Alex Ford , Boris Yankov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// Last module patch version validated against: 1.6.1 +// Last module patch version validated against: 1.8.1 import * as GeoJSON from 'geojson'; @@ -645,6 +645,34 @@ export interface GeoProjection extends GeoStreamWrapper { */ center(point: [number, number]): this; + /** + * Returns the current spherical clipping function. + * Pre-clipping occurs in geographic coordinates. Cutting along the antimeridian line, + * or clipping along a small circle are the most common strategies. + */ + preclip(): (stream: GeoStream) => GeoStream; + /** + * Sets the projection’s spherical clipping to the specified function and returns the projection. + * Pre-clipping occurs in geographic coordinates. Cutting along the antimeridian line, or clipping along a small circle are the most common strategies. + * + * @param preclip A spherical clipping function. Clipping functions are implemented as transformations of a projection stream. + * Pre-clipping operates on spherical coordinates, in radians. + */ + preclip(preclip: (stream: GeoStream) => GeoStream): this; + + /** + * Returns the current cartesian clipping function. + * Post-clipping occurs on the plane, when a projection is bounded to a certain extent such as a rectangle. + */ + postclip(): (stream: GeoStream) => GeoStream; + /** + * Sets the projection’s cartesian clipping to the specified function and returns the projection. + * + * @param postclip A cartesian clipping function. Clipping functions are implemented as transformations of a projection stream. + * Post-clipping operates on planar coordinates, in pixels. + */ + postclip(postclip: (stream: GeoStream) => GeoStream): this; + /** * Returns the current clip angle which defaults to null. * @@ -653,6 +681,7 @@ export interface GeoProjection extends GeoStreamWrapper { clipAngle(): number | null; /** * Switches to antimeridian cutting rather than small-circle clipping. + * See also projection.preclip, d3.geoClipAntimeridian, d3.geoClipCircle. * * @param angle Set to null to switch to antimeridian cutting. */ @@ -661,6 +690,8 @@ export interface GeoProjection extends GeoStreamWrapper { * Sets the projection’s clipping circle radius to the specified angle in degrees and returns the projection. * Small-circle clipping is independent of viewport clipping via projection.clipExtent. * + * See also projection.preclip, d3.geoClipAntimeridian, d3.geoClipCircle. + * * @param angle Angle in degrees. */ clipAngle(angle: number): this; @@ -675,6 +706,8 @@ export interface GeoProjection extends GeoStreamWrapper { * * Viewport clipping is independent of small-circle clipping via projection.clipAngle. * + * See also projection.postclip, d3.geoClipRectangle. + * * @param extent Set to null to disable viewport clipping. */ clipExtent(extent: null): this; @@ -684,6 +717,8 @@ export interface GeoProjection extends GeoStreamWrapper { * * Viewport clipping is independent of small-circle clipping via projection.clipAngle. * + * See also projection.postclip, d3.geoClipRectangle. + * * @param extent The extent bounds are specified as an array [[x₀, y₀], [x₁, y₁]], where x₀ is the left-side of the viewport, y₀ is the top, x₁ is the right and y₁ is the bottom. */ clipExtent(extent: [[number, number], [number, number]]): this; @@ -1314,6 +1349,16 @@ export function geoTransverseMercator(): GeoProjection; */ export function geoTransverseMercatorRaw(): GeoRawProjection; +/** + * The Natural Earth projection is a pseudocylindrical projection designed by Tom Patterson. It is neither conformal nor equal-area, but appealing to the eye for small-scale maps of the whole world. + */ +export function geoNaturalEarth1(): GeoProjection; + +/** + * The raw pseudo-cylindircal Natural Earth projection. + */ +export function geoNaturalEarth1Raw(): GeoRawProjection; + // ---------------------------------------------------------------------- // Projection Transforms // ---------------------------------------------------------------------- @@ -1541,3 +1586,32 @@ export interface GeoIdentityTranform extends GeoStreamWrapper { * Returns the identity transform which can be used to scale, translate and clip planar geometry. */ export function geoIdentity(): GeoIdentityTranform; + +// ---------------------------------------------------------------------- +// Clipping Functions +// ---------------------------------------------------------------------- + +/** + * A clipping function transforming a stream such that geometries (lines or polygons) that cross the antimeridian line are cut in two, one on each side. + * Typically used for pre-clipping. + */ +export const geoClipAntimeridian: ((stream: GeoStream) => GeoStream); + +/** + * Generates a clipping function transforming a stream such that geometries are bounded by a small circle of radius angle around the projection’s center. + * Typically used for pre-clipping. + * + * @param angle + */ +export function geoClipCircle(angle: number): (stream: GeoStream) => GeoStream; + +/** + * Generates a clipping function transforming a stream such that geometries are bounded by a rectangle of coordinates [[x0, y0], [x1, y1]]. + * Typically used for post-clipping. + * + * @param x0 x0 coordinate. + * @param y0 y0 coordinate. + * @param x1 x1 coordinate. + * @param y1 y1 coordinate. + */ +export function geoClipRectangle(x0: number, y0: number, x1: number, y1: number): (stream: GeoStream) => GeoStream; diff --git a/types/d3/d3-tests.ts b/types/d3/d3-tests.ts index 1efb46be8e..3942256a76 100644 --- a/types/d3/d3-tests.ts +++ b/types/d3/d3-tests.ts @@ -1,9 +1,7 @@ import * as d3 from 'd3'; -// TODO: complete tests. Note the tests here should be limited to -// testing existence of re-exported members of the -// constituent modules comprising the D3 version 4 standard bundle +const version: string = d3.version; -// Ability to access d3-select related properties - -const d: d3.Selection = d3.selection(); +// NOTE: Tests for all re-exports of consituent D3 modules are omitted as excessive. +// The standard bundle definition is a straightforward pass-through with the exception of the +// above tested "version" property. diff --git a/types/d3/index.d.ts b/types/d3/index.d.ts index 4f2a95694e..1a17c3acca 100644 --- a/types/d3/index.d.ts +++ b/types/d3/index.d.ts @@ -5,6 +5,7 @@ export as namespace d3; +export const version: string; export * from 'd3-array'; export * from 'd3-axis'; export * from 'd3-brush'; diff --git a/types/d3kit/d3kit-tests.ts b/types/d3kit/d3kit-tests.ts index e1a92d41b9..ec3b2de1ce 100644 --- a/types/d3kit/d3kit-tests.ts +++ b/types/d3kit/d3kit-tests.ts @@ -1,14 +1,196 @@ +function test_base() { + let tb: d3kit.Base; + let another: d3kit.Base; + let options: d3kit.ChartOptions; + let margins: d3kit.ChartMargin; + let offsets: [number, number]; + let defopts: d3kit.ChartOptions; + let w: number; + let h: number; + let d: [number, number]; + let p: number; + + // create examples of margins, offsets, options + margins = { top: 20, right: 20, bottom: 20, left: 20}; + offsets = [0.5, 0.5]; + options = { initialWidth: 400, initialHeight: 300, margin: margins, offset: offsets }; + + /** + * Test constructor + */ + tb = new d3kit.Base(); // empty + tb = new d3kit.Base(options); // with options + another = new d3kit.Base(); + + /** + * Test static function + */ + defopts = d3kit.Base.getDefaultOptions(); // without options + defopts = d3kit.Base.getDefaultOptions(options); // with options + + /** + * Test getters + */ + w = tb.width(); + h = tb.height(); + d = tb.dimension(); + p = tb.pixelRatio(); + margins = tb.margin(); + offsets = tb.offset(); + + /** + * Test setters + */ + tb.width(w); + tb.height(h); + tb.dimension(d); + tb.margin(margins); + tb.offset(offsets); + tb.pixelRatio(window.devicePixelRatio); + tb.copyDimension(another); + + /** + * Test events + */ + tb.dimension(d).updateDimensionNow(); +} + +function test_abstract_plate() { + let el: Element; + let margins: d3kit.ChartMargin; + let offsets: [number, number]; + let plate: d3kit.AbstractPlate; + let options: d3kit.ChartOptions; + let sel: d3.Selection; + + // create a div, append to body, return Node as type Element + el = document.body.appendChild(document.createElement('div')) as Element; + + // create example of options + margins = { top: 20, right: 20, bottom: 20, left: 20}; + offsets = [0.5, 0.5]; + options = { initialWidth: 400, initialHeight: 300, margin: margins, offset: offsets }; + + /** + * Test constructor + */ + plate = new d3kit.AbstractPlate(el); // without options + plate = new d3kit.AbstractPlate(el, options); // with options + + /** + * Test functions + */ + el = plate.getNode(); + sel = plate.getSelection(); +} + +function test_canvas_plate() { + let el: Element; + let margins: d3kit.ChartMargin; + let offsets: [number, number]; + let plate: d3kit.CanvasPlate; + let options: d3kit.ChartOptions; + let sel: d3.Selection; + let context: CanvasRenderingContext2D; + + // create example of options + margins = { top: 20, right: 20, bottom: 20, left: 20}; + offsets = [0.5, 0.5]; + options = { initialWidth: 400, initialHeight: 300, margin: margins, offset: offsets }; + + /** + * Test constructor + */ + plate = new d3kit.CanvasPlate(); // without options + plate = new d3kit.CanvasPlate(options); // with options + + /** + * Test functions + */ + el = plate.getNode(); + sel = plate.getSelection(); + plate = plate.clear(); + context = plate.getContext2d(); +} + +function test_div_plate() { + let el: Element; + let margins: d3kit.ChartMargin; + let offsets: [number, number]; + let plate: d3kit.DivPlate; + let options: d3kit.ChartOptions; + let sel: d3.Selection; + + // create example of options + margins = { top: 20, right: 20, bottom: 20, left: 20}; + offsets = [0.5, 0.5]; + options = { initialWidth: 400, initialHeight: 300, margin: margins, offset: offsets }; + + /** + * Test constructor + */ + plate = new d3kit.DivPlate(); // without options + plate = new d3kit.DivPlate(options); // with options + + /** + * Test functions + */ + el = plate.getNode(); + sel = plate.getSelection(); +} + +function test_svg_plate() { + let el: Element; + let margins: d3kit.ChartMargin; + let offsets: [number, number]; + let plate: d3kit.SvgPlate; + let options: d3kit.ChartOptions; + let sel: d3.Selection; + let rootg: d3.Selection; + let layers: d3kit.LayerOrganizer; + + // create example of options + margins = { top: 20, right: 20, bottom: 20, left: 20}; + offsets = [0.5, 0.5]; + options = { initialWidth: 400, initialHeight: 300, margin: margins, offset: offsets }; + + /** + * Test constructor + */ + plate = new d3kit.SvgPlate(); // without options + plate = new d3kit.SvgPlate(options); // with options + + /** + * Test properties + */ + rootg = plate.rootG; + layers = plate.layers; + + /** + * Test functions + */ + el = plate.getNode(); + sel = plate.getSelection(); +} + function test_abstract_chart() { - let el: Element, - chart: d3kit.AbstractChart, - options: d3kit.ChartOptions, - margins: d3kit.ChartMargin, - offsets: [number, number], - defopts: d3kit.ChartOptions, - fitopts: d3kit.FitOptions, - watchop: d3kit.WatchOptions, - events: string[], - w: number, h:number, d: [number, number], a: any, b: boolean; + let el: Element; + let chart: d3kit.AbstractChart; + let another: d3kit.AbstractChart; + let options: d3kit.ChartOptions; + let margins: d3kit.ChartMargin; + let offsets: [number, number]; + let defopts: d3kit.ChartOptions; + let fitopts: d3kit.FitOptions; + let watchop: d3kit.WatchOptions; + let events: string[]; + let w: number; + let h: number; + let d: [number, number]; + let a: any; + let b: boolean; + let p: number; + let plate: d3kit.AbstractPlate; // create a div, append to body, return Node as type Element el = document.body.appendChild(document.createElement('div')) as Element; @@ -17,8 +199,9 @@ function test_abstract_chart() { margins = { top: 20, right: 20, bottom: 20, left: 20}; offsets = [0.5, 0.5]; options = { initialWidth: 400, initialHeight: 300, margin: margins, offset: offsets }; - fitopts = { mode: 'basic', width: '90%', ratio: 4/3 }; + fitopts = { mode: 'basic', width: '90%', ratio: 4 / 3 }; watchop = { mode: 'window', target: null, interval: 500 }; + plate = new d3kit.AbstractPlate(el); /** * Test constructor @@ -27,6 +210,7 @@ function test_abstract_chart() { chart = new d3kit.AbstractChart('div#chart'); // with selector chart = new d3kit.AbstractChart(el, options); // with element+options chart = new d3kit.AbstractChart('div#chart', options); // with selector+options + another = new d3kit.AbstractChart(el); /** * Test static functions @@ -42,6 +226,7 @@ function test_abstract_chart() { w = chart.width(); h = chart.height(); d = chart.dimension(); + p = chart.pixelRatio(); a = chart.data(); margins = chart.margin(); offsets = chart.offset(); @@ -58,6 +243,8 @@ function test_abstract_chart() { chart.margin(margins); chart.offset(offsets); chart.options(options); + chart.pixelRatio(window.devicePixelRatio); + chart.copyDimension(another); /** * Test booleans @@ -65,28 +252,37 @@ function test_abstract_chart() { b = chart.hasData(); b = chart.hasNonZeroArea(); + /** + * Test plate functions + */ + plate = chart.addPlate('a-plate', plate, true); // with doNotAppend + chart = chart.addPlate('a-plate', plate); // without doNotAppend + chart = chart.removePlate('a-plate'); + /** * Test events */ chart.dimension(d).updateDimensionNow(); chart.setupDispatcher(['click', 'mouseover']); chart.fit(fitopts); // without watch options - chart.fit(fitopts, watchop); // with watch options + chart.fit(fitopts, true); // with boolean for watch options + chart.fit(fitopts, watchop); // with explicit watch options chart.stopFitWatcher(); chart.on('mouseover', () => { chart.stopFitWatcher(); }); chart.off('mouseover'); chart.destroy(); } -function test_svgchart() { - let el: Element, - chart: d3kit.SvgChart, - options: d3kit.ChartOptions, - margins: d3kit.ChartMargin, - offsets: [number, number], - svg: d3.Selection, - rootg: d3.Selection, - layers: d3kit.LayerOrganizer; +function test_svg_chart() { + let el: Element; + let chart: d3kit.SvgChart; + let options: d3kit.ChartOptions; + let margins: d3kit.ChartMargin; + let offsets: [number, number]; + let svg: d3.Selection; + let rootg: d3.Selection; + let layers: d3kit.LayerOrganizer; + let plate: d3kit.SvgPlate; // create a div, append to body, return Node as type Element el = document.body.appendChild(document.createElement('div')) as Element; @@ -104,21 +300,30 @@ function test_svgchart() { chart = new d3kit.SvgChart(el, options); // with element+options chart = new d3kit.SvgChart('div#chart', options); // with selector+options + /** + * Test plate functions + */ + plate = new d3kit.SvgPlate(); + plate = chart.addPlate('a-plate', plate, true); // with doNotAppend + chart = chart.addPlate('a-plate', plate); // without doNotAppend + chart = chart.removePlate('a-plate'); + /** * Test properties */ svg = chart.svg; rootg = chart.rootG; layers = chart.layers; + plate = chart.plate; } -function test_canvaschart() { - let el: Element, - chart: d3kit.CanvasChart, - options: d3kit.ChartOptions, - margins: d3kit.ChartMargin, - offsets: [number, number], - context: CanvasRenderingContext2D; +function test_canvas_chart() { + let el: Element; + let chart: d3kit.CanvasChart; + let options: d3kit.ChartOptions; + let margins: d3kit.ChartMargin; + let offsets: [number, number]; + let context: CanvasRenderingContext2D; // create a div, append to body, return Node as type Element el = document.body.appendChild(document.createElement('div')) as Element; @@ -144,11 +349,63 @@ function test_canvaschart() { chart.clear(); } +function test_hybrid_chart() { + let el: Element; + let chart: d3kit.HybridChart; + let options: d3kit.ChartOptions; + let margins: d3kit.ChartMargin; + let offsets: [number, number]; + let svg: d3.Selection; + let rootg: d3.Selection; + let layers: d3kit.LayerOrganizer; + let plate: d3kit.SvgPlate; + let context: CanvasRenderingContext2D; + + // create a div, append to body, return Node as type Element + el = document.body.appendChild(document.createElement('div')) as Element; + + // create examples of margins, offsets, options, fit options, watch options + margins = { top: 20, right: 20, bottom: 20, left: 20}; + offsets = [0.5, 0.5]; + options = { initialWidth: 400, initialHeight: 300, margin: margins, offset: offsets }; + + /** + * Test constructor + */ + chart = new d3kit.HybridChart(el); // with element + chart = new d3kit.HybridChart('div#chart'); // with selector + chart = new d3kit.HybridChart(el, options); // with element+options + chart = new d3kit.HybridChart('div#chart', options); // with selector+options + + /** + * Test plate functions + */ + plate = new d3kit.SvgPlate(); + plate = chart.addPlate('a-plate', plate, true); // with doNotAppend + chart = chart.addPlate('a-plate', plate); // without doNotAppend + chart = chart.removePlate('a-plate'); + + /** + * Test SVG properties + */ + svg = chart.svg; + rootg = chart.rootG; + layers = chart.layers; + plate = chart.plate; + + /** + * Test canvas chart functions + */ + context = chart.getContext2d(); + options = d3kit.CanvasChart.getDefaultOptions(); + chart.clear(); +} + function test_layer_organizer() { - let selection: d3.Selection, - layer: d3.Selection, - layers: d3kit.LayerOrganizer, - hasXAxis: boolean; + let selection: d3.Selection; + let layer: d3.Selection; + let layers: d3kit.LayerOrganizer; + let hasXAxis: boolean; selection = d3.select('svg'); @@ -163,8 +420,8 @@ function test_layer_organizer() { */ layers.create('graph'); layers.create(['graph', 'highlight']); - layers.create({'graph': [{'axes':['x-axis', 'y-axis']}, {'labels':['x-label', 'y-label', 'title']}]}); - layers.create([{'axes':['x-axis', 'y-axis']}, {'labels':['x-label', 'y-label', 'title']}]); + layers.create({graph: [{axes: ['x-axis', 'y-axis']}, {labels: ['x-label', 'y-label', 'title']}]}); + layers.create([{axes: ['x-axis', 'y-axis']}, {labels: ['x-label', 'y-label', 'title']}]); /** * Test other layer organizer functions @@ -174,13 +431,18 @@ function test_layer_organizer() { } function test_helper() { - let simple1: Object = { "one": 1 }, - simple2: Object = { "two": 2 }, - complex: Object = { "fruit": ["apple", "pear", "grape"], "prez": { "fn": "Barack", "ln": "Obama" } }, - merged1: Object, merged2: Object, - anObject: Object = {"this": "isanobject"}, isObj: boolean, - aFuncxn = () => "this is a function", isFunc: boolean, - kebabed: string, dbouncd: any, throtld: any; + const simple1: {} = { one: 1 }; + const simple2: {} = { two: 2 }; + const complex: {} = { fruit: ["apple", "pear", "grape"], prez: { fn: "Barack", ln: "Obama" } }; + const anObject: {} = { this: "isanobject"}; + let merged1: {}; + let merged2: {}; + let isObj: boolean; + let aFuncxn = () => "this is a function"; + let isFunc: boolean; + let kebabed: string; + let dbouncd: any; + let throtld: any; dbouncd = d3kit.helper.debounce(aFuncxn, 300); merged1 = d3kit.helper.extend(simple1, simple2); diff --git a/types/d3kit/index.d.ts b/types/d3kit/index.d.ts index 8d0d468a3c..c374a59501 100644 --- a/types/d3kit/index.d.ts +++ b/types/d3kit/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for d3Kit v3.1.2 +// Type definitions for d3Kit 3.2 // Project: https://github.com/twitter/d3kit // Definitions by: Morgan Benton // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -7,37 +7,73 @@ export as namespace d3kit; -export class AbstractChart { - container: Element; - constructor(selector: string|Element, options?: ChartOptions); - static getDefaultOptions(): ChartOptions; - static getCustomEventNames(): string[]; - setupDispatcher(customEventNames?: string[]): void; - getCustomEventNames(): string[]; - getInnerWidth(): number; - getInnerHeight(): number; +export class Base { + constructor(options?: ChartOptions); + static getDefaultOptions(options?: ChartOptions): ChartOptions; + copyDimension(another: Base): this; width(value: number): this; width(): number; height(value: number): this; height(): number; dimension(dimensions: [number, number]): this; dimension(): [number, number]; - data(data: any): this; - data(): any; margin(margins: ChartMargin): this; margin(): ChartMargin; offset(offset: [number, number]): this; offset(): [number, number]; + pixelRatio(value: number): this; + pixelRatio(): number; + updateDimensionNow(): this; +} + +export class AbstractPlate extends Base { + constructor(selector: string|Element, options?: ChartOptions); + static getDefaultOptions(options?: ChartOptions): ChartOptions; + getNode(): Element; + getSelection(): d3.Selection; +} + +export class CanvasPlate extends AbstractPlate { + constructor(options?: ChartOptions); + static getDefaultOptions(options?: ChartOptions): ChartOptions; + getContext2d(): CanvasRenderingContext2D; + clear(): this; +} + +export class DivPlate extends AbstractPlate { + constructor(options?: ChartOptions); + static getDefaultOptions(options?: ChartOptions): ChartOptions; +} + +export class SvgPlate extends AbstractPlate { + rootG: d3.Selection; + layers: LayerOrganizer; + constructor(options?: ChartOptions); + static getDefaultOptions(options?: ChartOptions): ChartOptions; +} + +export class AbstractChart extends Base { + constructor(selector: string|Element, options?: ChartOptions); + static getCustomEventNames(): string[]; + addPlate(name: string, plate: AbstractPlate, doNotAppend: boolean): AbstractPlate; + addPlate(name: string, plate: AbstractPlate): this; + removePlate(name: string): this; + setupDispatcher(customEventNames?: string[]): this; + getCustomEventNames(): string[]; + getInnerWidth(): number; + getInnerHeight(): number; + data(data: any): this; + data(): any; options(options: ChartOptions): this; options(): ChartOptions; - updateDimensionNow(): this; hasData(): boolean; hasNonZeroArea(): boolean; - fit(fitOptions: FitOptions, watchOptions?: WatchOptions): this; + fit(fitOptions?: FitOptions, watchOptions?: boolean|WatchOptions): this; stopFitWatcher(): this; on(name: string, listener: () => void): this; off(name: string): this; - destroy(): void; + dispatchAs(name: string, ...args: any[]): (...args: any[]) => void; + destroy(): this; } export interface ChartMargin { @@ -68,7 +104,7 @@ export interface FitOptions { // from https://github.com/kristw/slimfit export interface WatchOptions { mode?: string; - target?: any; // lazy + target?: Element|[number, number]|{width: number, height: number}|null; interval?: number; } @@ -76,6 +112,7 @@ export class SvgChart extends AbstractChart { svg: d3.Selection; rootG: d3.Selection; layers: LayerOrganizer; + plate: SvgPlate; constructor(selector: string|Element, options?: ChartOptions); } @@ -86,6 +123,15 @@ export class CanvasChart extends AbstractChart { clear(): this; } +export class HybridChart extends CanvasChart { + svg: d3.Selection; + rootG: d3.Selection; + layers: LayerOrganizer; + plate: SvgPlate; + constructor(selector: string|Element, options?: ChartOptions); + static getDefaultOptions(): ChartOptions; +} + export class LayerOrganizer { constructor(container: d3.Selection, defaultTag?: string); create(layerNames: string|string[]|LayerConfig|LayerConfig[]): d3.Selection|Array>; diff --git a/types/d3kit/tsconfig.json b/types/d3kit/tsconfig.json index dac05091a5..e1c744e180 100644 --- a/types/d3kit/tsconfig.json +++ b/types/d3kit/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" diff --git a/types/d3kit/tslint.json b/types/d3kit/tslint.json new file mode 100644 index 0000000000..2750cc0197 --- /dev/null +++ b/types/d3kit/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/dagre-layout/dagre-layout-tests.ts b/types/dagre-layout/dagre-layout-tests.ts new file mode 100644 index 0000000000..4a6e787496 --- /dev/null +++ b/types/dagre-layout/dagre-layout-tests.ts @@ -0,0 +1,10 @@ +import * as dagre from "dagre-layout"; + +const graph = new dagre.graphlib.Graph(); +graph.setGraph({}) + .setDefaultEdgeLabel(() => ({})) + .setNode("a", {}) + .setEdge("b", "c") + .setEdge("c", "d", {class: "class"}); + +dagre.layout(graph); diff --git a/types/dagre-layout/index.d.ts b/types/dagre-layout/index.d.ts new file mode 100644 index 0000000000..71361331de --- /dev/null +++ b/types/dagre-layout/index.d.ts @@ -0,0 +1,51 @@ +// Type definitions for dagre-layout 0.8 +// Project: https://github.com/tylingsoft/dagre-layout#readme +// Definitions by: Qinfeng Chen +// Lisa Vallfors +// Pete Vilter +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 +// copied from definitions for dagre, since dagre-layout is a drop-in replacement + +export namespace graphlib { + class Graph { + edges(): Edge[]; + edge(id: any): any; + nodes(): string[]; + node(id: any): any; + setDefaultEdgeLabel(callback: string|(() => string|object)): Graph; + setDefaultNodeLabel(callback: string|(() => string|object)): Graph; + setEdge(sourceId: string, targetId: string, options?: { [key: string]: any }, value?: string): Graph; + setEdge(params: {v: string, w: string, name?: string}, value?: string): Graph; + setGraph(label: GraphLabel): Graph; + setNode(id: string, node: { [key: string]: any }): Graph; + graph(): GraphLabel; + + constructor(opt?: {directed?: boolean, multigraph?: boolean, compound?: boolean}); + setParent(name: string, parentName: string): void; + hasNode(name: string): boolean; + } +} + +export interface GraphLabel { + width?: number; + height?: number; + compound?: boolean; + rankdir?: string; + align?: string; + nodesep?: number; + edgesep?: number; + ranksep?: number; + marginx?: number; + marginy?: number; + acyclicer?: string; + ranker?: string; +} + +export function layout(graph: graphlib.Graph): void; + +export interface Edge { + v: string; + w: string; + name?: string; +} diff --git a/types/dagre-layout/tsconfig.json b/types/dagre-layout/tsconfig.json new file mode 100644 index 0000000000..060af9fbc5 --- /dev/null +++ b/types/dagre-layout/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "dagre-layout-tests.ts" + ] +} diff --git a/types/dagre-layout/tslint.json b/types/dagre-layout/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/dagre-layout/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/dagre/dagre-tests.ts b/types/dagre/dagre-tests.ts index d9a62a107b..ae81c2c896 100644 --- a/types/dagre/dagre-tests.ts +++ b/types/dagre/dagre-tests.ts @@ -1,6 +1,6 @@ const gDagre = new dagre.graphlib.Graph(); gDagre.setGraph({}) - .setDefaultEdgeLabel(() => {}) + .setDefaultEdgeLabel(() => ({})) .setNode("a", {}) .setEdge("b", "c") .setEdge("c", "d", {class: "class"}); diff --git a/types/dagre/index.d.ts b/types/dagre/index.d.ts index 6f008ad1c8..55d98b0535 100644 --- a/types/dagre/index.d.ts +++ b/types/dagre/index.d.ts @@ -1,7 +1,10 @@ // Type definitions for dagre 0.7 // Project: https://github.com/cpettitt/dagre -// Definitions by: Qinfeng Chen , Lisa Vallfors +// Definitions by: Qinfeng Chen +// Lisa Vallfors +// Pete Vilter // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 export as namespace dagre; @@ -11,8 +14,8 @@ export namespace graphlib { edge(id: any): any; nodes(): string[]; node(id: any): any; - setDefaultEdgeLabel(callback: string|(() => string|void)): Graph; - setDefaultNodeLabel(callback: string|(() => string|void)): Graph; + setDefaultEdgeLabel(callback: string|(() => string|object)): Graph; + setDefaultNodeLabel(callback: string|(() => string|object)): Graph; setEdge(sourceId: string, targetId: string, options?: { [key: string]: any }, value?: string): Graph; setEdge(params: {v: string, w: string, name?: string}, value?: string): Graph; setGraph(label: GraphLabel): Graph; diff --git a/types/deep-freeze-es6/deep-freeze-es6-tests.ts b/types/deep-freeze-es6/deep-freeze-es6-tests.ts new file mode 100644 index 0000000000..f2a235668f --- /dev/null +++ b/types/deep-freeze-es6/deep-freeze-es6-tests.ts @@ -0,0 +1,11 @@ +import * as deepFreeze from "deep-freeze-es6"; + +class Foo { + foo: string; +} +const foo: Foo = deepFreeze(new Foo()); +const foo2: Foo = deepFreeze({foo: "bar"}); +const obj: object = deepFreeze({count: 2}); +const items: Array<{id: number, name: string}> = deepFreeze([{id: 0, name: "first"}]); +const map: Map = deepFreeze(new Map()); +const set: Set = deepFreeze(new Set()); diff --git a/types/deep-freeze-es6/index.d.ts b/types/deep-freeze-es6/index.d.ts new file mode 100644 index 0000000000..7d26cbe5c8 --- /dev/null +++ b/types/deep-freeze-es6/index.d.ts @@ -0,0 +1,15 @@ +// Type definitions for deep-freeze-es6 1.0 +// Project: https://github.com/christophehurpeau/deep-freeze-es6 +// Definitions by: Matt Bishop +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +/** Declaration file generated by dts-gen */ + +export = deepFreeze; + +declare function deepFreeze(obj: T): T; + +declare namespace deepFreeze { + const prototype: {}; +} diff --git a/types/deep-freeze-es6/tsconfig.json b/types/deep-freeze-es6/tsconfig.json new file mode 100644 index 0000000000..ba72d75a31 --- /dev/null +++ b/types/deep-freeze-es6/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "deep-freeze-es6-tests.ts" + ] +} diff --git a/types/deep-freeze-es6/tslint.json b/types/deep-freeze-es6/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/deep-freeze-es6/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/dockerode/index.d.ts b/types/dockerode/index.d.ts index 42657744d3..ac569b2d32 100644 --- a/types/dockerode/index.d.ts +++ b/types/dockerode/index.d.ts @@ -4,6 +4,7 @@ // Nicolas Laplante // ByeongHun Yoo // Ray Fang +// Marius Meisenzahl // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -444,6 +445,7 @@ declare namespace Dockerode { } interface HostConfig { + AutoRemove: boolean; Binds: string[]; ContainerIDFile: string; LogConfig: { @@ -593,6 +595,7 @@ declare namespace Dockerode { ExposedPorts?: { [port: string]: {} }; StopSignal?: string; HostConfig?: { + AutoRemove?: boolean; Binds?: string[]; Links?: string[]; Memory?: number; diff --git a/types/docopt/docopt-tests.ts b/types/docopt/docopt-tests.ts index 8d68355b27..fee97222ca 100644 --- a/types/docopt/docopt-tests.ts +++ b/types/docopt/docopt-tests.ts @@ -1,4 +1,4 @@ -import docopt = require("docopt"); +import { docopt } from "docopt"; var doc = ` Usage: diff --git a/types/docopt/index.d.ts b/types/docopt/index.d.ts index 8d8b23a0c0..b70ff5d5fc 100644 --- a/types/docopt/index.d.ts +++ b/types/docopt/index.d.ts @@ -6,11 +6,9 @@ /** * @param doc should be a string with the help message, written according to rules of the docopt language. */ -declare function docopt(doc: string, options: DocoptOption): any; +export function docopt(doc: string, options: DocoptOption): any; -export = docopt; - -interface DocoptOption { +export interface DocoptOption { /** is an optional argument vector. It defaults to the arguments passed to your program (process.argv[2..]). You can also supply it with an array of strings, as with process.argv. For example: ['--verbose', '-o', 'hai.txt'] */ argv?: Array, /** (default:true) specifies whether the parser should automatically print the help message (supplied as doc) in case -h or --help options are encountered. After showing the usage-message, the program will terminate. If you want to handle -h or --help options manually (the same as other options), set help=false. */ diff --git a/types/documentdb-session/documentdb-session-tests.ts b/types/documentdb-session/documentdb-session-tests.ts new file mode 100644 index 0000000000..af5dba62cb --- /dev/null +++ b/types/documentdb-session/documentdb-session-tests.ts @@ -0,0 +1,18 @@ +import express = require("express"); +import session = require("express-session"); +import DocumentDBSession = require("documentdb-session"); + +const DocumentDBStore = DocumentDBSession(session); +const store = new DocumentDBStore({ + database: "MY_DATABASE", + collection: "MY_COLLECTION", + host: "https://sample.documents.azure.com:443/", + ttl: 60 * 60 * 10, // 10 hours + key: "magic key" +}); + +const app = express(); +session({ + store, + secret: "I can count all the way to 55", +}); diff --git a/types/documentdb-session/index.d.ts b/types/documentdb-session/index.d.ts new file mode 100644 index 0000000000..69914bdc6c --- /dev/null +++ b/types/documentdb-session/index.d.ts @@ -0,0 +1,63 @@ +// Type definitions for documentdb-session 1.0 +// Project: https://github.com/dwhieb/documentdb-session#readme +// Definitions by: Daniel Rosenwasser +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +import session = require("express-session"); + +export = DocumentDBSession; + +declare function DocumentDBSession(expressSession: typeof session): DocumentDBStoreConstructor; + +interface DocumentDBStoreConstructor { + new (options: Options): session.Store; +} + +interface Options { + /** + * The ID of the collection where the session data should be stored. + * If the collection does not exist, it will be created when the session store initializes. + * The collection may contain other data, or it may be a dedicated collection just for sessions. + * + * @default `"sessions"` + */ + collection?: string; + + /** + * The ID of the database where the session data should be stored. + * If the database does not exist, it will be creaed when the session store initializes. + * + * @default `"sessionstore"` + */ + database?: string; + + /** + * By default, `documentdb-session` sets a `"type"` attribute on each session document with a value of `"session"`, + * to distinguish session documents from other documents in the collection. + * If you would like a different attribute or value to be used to discriminate session documents from other documents, + * enter that as an attribute-value pair in an object here, e.g. `{ site: "mysite.com" }` or `{ _type: "session" }`. + * + * @default `{ type: "session" }` + */ + discriminator?: object; + /** + * The URL / hostname of your DocumentDB database account, usually of the form `https://mydbaccount.documents.azure.com:443/`. + * You can also provide this in an environment variable, (`DOCUMENTDB_URL`) instead. + */ + host: string; + /** + * The primary key for your DocumentDB account. + * A primary key is required because `documentdb-session` may create a new database for your account, if none exists. + * You can also provide this in an environment variable (`DOCUMENTDB_KEY`) instead. + */ + key: string; + /** + * The TTL (time-to-live or expiration time) for your sessions, in seconds. + * After this time has elapsed since the last change to the session data, the session will be deleted. + * A session's TTL is extended each time session data is changed, restarting the timer. + * See more on [**Configuring TTL**](https://github.com/dwhieb/documentdb-session#configuring-ttl-time-to-live-or-expiration-time). + * *Enabling TTL is strongly recommended.* + */ + ttl?: number; +} diff --git a/types/documentdb-session/tsconfig.json b/types/documentdb-session/tsconfig.json new file mode 100644 index 0000000000..478f009cc6 --- /dev/null +++ b/types/documentdb-session/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "documentdb-session-tests.ts" + ] +} diff --git a/types/documentdb-session/tslint.json b/types/documentdb-session/tslint.json new file mode 100644 index 0000000000..4978339df9 --- /dev/null +++ b/types/documentdb-session/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "no-irregular-whitespace": false + } +} \ No newline at end of file diff --git a/types/draft-js/draft-js-tests.tsx b/types/draft-js/draft-js-tests.tsx index 46f90a8a31..dae23b90ef 100644 --- a/types/draft-js/draft-js-tests.tsx +++ b/types/draft-js/draft-js-tests.tsx @@ -68,13 +68,12 @@ class RichEditorExample extends React.Component<{}, { editorState: EditorState } return getDefaultKeyBinding(e); } - handleKeyCommand = (command: string) => { + handleKeyCommand = (command: string, editorState: EditorState) => { if (command === SPLIT_HEADER_BLOCK) { this.onChange(this.splitHeaderToNewBlock()); return 'handled'; } - const {editorState} = this.state; const newState = RichUtils.handleKeyCommand(editorState, command); if (newState) { diff --git a/types/draft-js/index.d.ts b/types/draft-js/index.d.ts index af97b6d676..6420669a3a 100644 --- a/types/draft-js/index.d.ts +++ b/types/draft-js/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Draft.js v0.10.0 +// Type definitions for Draft.js v0.10.1 // Project: https://facebook.github.io/draft-js/ // Definitions by: Dmitry Rogozhny // Eelco Lempsink @@ -6,6 +6,7 @@ // Ryan Schwers // Michael Wu // Willis Plummer +// Santiago Vilar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -125,20 +126,20 @@ declare namespace Draft { // Useful for managing special behavior for pressing the `Return` key. E.g. // removing the style from an empty list item. - handleReturn?(e: SyntheticKeyboardEvent): DraftHandleValue, + handleReturn?(e: SyntheticKeyboardEvent, editorState: EditorState): DraftHandleValue, // Map a key command string provided by your key binding function to a // specified behavior. - handleKeyCommand?(command: EditorCommand): DraftHandleValue, + handleKeyCommand?(command: EditorCommand, editorState: EditorState): DraftHandleValue, // Handle intended text insertion before the insertion occurs. This may be // useful in cases where the user has entered characters that you would like // to trigger some special behavior. E.g. immediately converting `:)` to an // emoji Unicode character, or replacing ASCII quote characters with smart // quotes. - handleBeforeInput?(chars: string): DraftHandleValue, + handleBeforeInput?(chars: string, editorState: EditorState): DraftHandleValue, - handlePastedText?(text: string, html?: string): DraftHandleValue, + handlePastedText?(text: string, html: string|undefined, editorState: EditorState): DraftHandleValue, handlePastedFiles?(files: Array): DraftHandleValue, diff --git a/types/dropzone/index.d.ts b/types/dropzone/index.d.ts index 18a70ca7fb..f809f84227 100644 --- a/types/dropzone/index.d.ts +++ b/types/dropzone/index.d.ts @@ -31,6 +31,7 @@ declare namespace Dropzone { url?: string; method?: string; withCredentials?: boolean; + timeout?: number; parallelUploads?: number; uploadMultiple?: boolean; maxFilesize?: number; diff --git a/types/dts-generator/dts-generator-tests.ts b/types/dts-generator/dts-generator-tests.ts new file mode 100644 index 0000000000..76e37dc802 --- /dev/null +++ b/types/dts-generator/dts-generator-tests.ts @@ -0,0 +1,3 @@ +import dtsGenerator = require('dts-generator'); + +dtsGenerator({name: 'foo', out: 'bar'}); diff --git a/types/dts-generator/index.d.ts b/types/dts-generator/index.d.ts new file mode 100644 index 0000000000..9de25e1f91 --- /dev/null +++ b/types/dts-generator/index.d.ts @@ -0,0 +1,86 @@ +// Type definitions for dts-generator 2.1 +// Project: https://github.com/SitePen/dts-generator#readme +// Definitions by: Matt Traynham +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + +import ts = require('typescript'); +import Bluebird = require('bluebird'); + +export = dtsGenerator; + +declare function dtsGenerator(options: dtsGenerator.DtsGeneratorOptions): Bluebird; + +declare namespace dtsGenerator { + interface ResolveModuleIdParams { + /** The identifier of the module being declared in the generated d.ts */ + currentModuleId: string; + } + + interface ResolveModuleImportParams { + /** The identifier of the module currently being imported in the generated d.ts */ + importedModuleId: string; + + /** The identifier of the enclosing module currently being declared in the generated d.ts */ + currentModuleId: string; + + /** True if the imported module id is declared as a module in the input files. */ + isDeclaredExternalModule: boolean; + } + + interface DtsGeneratorOptions { + /** + * The base directory for the package being bundled. Any dependencies discovered outside this directory will be excluded + * from the bundle. + * Note this is no longer the preferred way to configure dts-generator, please see project. + */ + baseDir?: string; + /** + * A list of glob patterns, relative to baseDir, that should be excluded from the bundle. + * Use the --exclude flag one or more times on the command-line. Defaults to [ "node_modules\/**\/*.d.ts" ]. + */ + exclude?: string[]; + /** + * A list of external module reference paths that should be inserted as reference comments. + * Use the --extern flag one or more times on the command-line. + */ + externs?: string[]; + /** + * A list of external @types package dependencies that should be inserted as reference comments. + * Use the --types flag one or more times on the command-line. + */ + types?: string[]; + /** A list of files from the baseDir to bundle. */ + files?: string[]; + /** The end-of-line character that should be used when outputting code. Defaults to os.EOL. */ + eol?: string; + /** The character(s) that should be used to indent the declarations in the output. Defaults to \t. */ + indent?: string; + /** The module ID that should be used as the exported value of the package’s “main” module. */ + main?: string; + /** The type of module resolution to use when generating the bundle. */ + moduleResolution?: ts.ModuleResolutionKind; + /** The name of the package. Used to determine the correct exported package name for modules. */ + name: string; + /** The filename where the generated bundle will be created. */ + out: string; + /** + * The base directory for the project being bundled. It is assumed that this directory contains a + * tsconfig.json which will be parsed to determine the files that should be bundled as well as + * other configuration information like target + */ + project?: string; + /** The target environment for generated code. Defaults to ts.ScriptTarget.Latest. */ + target?: ts.ScriptTarget; + /** + * An optional callback provided by the invoker to customize the declared module ids the output d.ts files. + * @see {@link https://github.com/SitePen/dts-generator/blob/master/docs/resolving-module-ids.md Resolving Module Ids} + */ + resolveModuleId?(params: ResolveModuleIdParams): string; + /** + * An optional callback provided by the invoker to customize the imported module ids in the output d.ts files. + * @see {@link https://github.com/SitePen/dts-generator/blob/master/docs/resolving-module-ids.md Resolving Module Ids} + */ + resolveModuleImport?(params: ResolveModuleImportParams): string; + } +} diff --git a/types/dts-generator/tsconfig.json b/types/dts-generator/tsconfig.json new file mode 100644 index 0000000000..b1fa8686f2 --- /dev/null +++ b/types/dts-generator/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "dts-generator-tests.ts" + ] +} diff --git a/types/dts-generator/tslint.json b/types/dts-generator/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/dts-generator/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/duplexify/duplexify-tests.ts b/types/duplexify/duplexify-tests.ts new file mode 100644 index 0000000000..11d33d7303 --- /dev/null +++ b/types/duplexify/duplexify-tests.ts @@ -0,0 +1,16 @@ +import duplexify = require("duplexify"); +import { Readable, Writable, Duplex } from "stream"; + +declare var readable: Readable; +declare var writable: Writable; + +duplexify(writable, readable); +duplexify(writable); +duplexify(undefined, readable); + +const d: duplexify.Duplexify = duplexify(); +d.setReadable(readable); +d.setReadable(); // $ExpectError +d.setWritable(writable); +d.setWritable(); // $ExpectError +const f: Duplex = d; diff --git a/types/duplexify/index.d.ts b/types/duplexify/index.d.ts new file mode 100644 index 0000000000..791a000f8b --- /dev/null +++ b/types/duplexify/index.d.ts @@ -0,0 +1,21 @@ +// Type definitions for duplexify 3.5 +// Project: https://github.com/mafintosh/duplexify +// Definitions by: Sami Kukkonen +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// + +import * as stream from "stream"; + +export = duplexify; + +interface DuplexifyConstructor { + (writable?: stream.Writable, readable?: stream.Readable, streamOptions?: stream.DuplexOptions): duplexify.Duplexify; + new (writable?: stream.Writable, readable?: stream.Readable, streamOptions?: stream.DuplexOptions): duplexify.Duplexify; +} +declare var duplexify: DuplexifyConstructor; +declare namespace duplexify { + interface Duplexify extends stream.Duplex { + setWritable(writable: stream.Writable): void; + setReadable(readable: stream.Readable): void; + } +} diff --git a/types/duplexify/tsconfig.json b/types/duplexify/tsconfig.json new file mode 100644 index 0000000000..715137eb9d --- /dev/null +++ b/types/duplexify/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "duplexify-tests.ts" + ] +} diff --git a/types/duplexify/tslint.json b/types/duplexify/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/duplexify/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/duplicate-package-checker-webpack-plugin/duplicate-package-checker-webpack-plugin-tests.ts b/types/duplicate-package-checker-webpack-plugin/duplicate-package-checker-webpack-plugin-tests.ts new file mode 100644 index 0000000000..0552f0e7c4 --- /dev/null +++ b/types/duplicate-package-checker-webpack-plugin/duplicate-package-checker-webpack-plugin-tests.ts @@ -0,0 +1,24 @@ +import webpack = require('webpack'); +import DuplicatePackageCheckerWebpackPlugin = require('duplicate-package-checker-webpack-plugin'); + +const a: webpack.Configuration = { + entry: 'test.js', + plugins: [ + new DuplicatePackageCheckerWebpackPlugin() + ] +}; +const b: webpack.Configuration = { + entry: 'test.js', + plugins: [ + new DuplicatePackageCheckerWebpackPlugin({}) + ] +}; +const c: webpack.Configuration = { + entry: 'test.js', + plugins: [ + new DuplicatePackageCheckerWebpackPlugin({ + verbose: true, + emitError: true + }) + ] +}; diff --git a/types/duplicate-package-checker-webpack-plugin/index.d.ts b/types/duplicate-package-checker-webpack-plugin/index.d.ts new file mode 100644 index 0000000000..88d8ccd54c --- /dev/null +++ b/types/duplicate-package-checker-webpack-plugin/index.d.ts @@ -0,0 +1,21 @@ +// Type definitions for duplicate-package-checker-webpack-plugin 1.2 +// Project: https://github.com/darrenscerri/duplicate-package-checker-webpack-plugin#readme +// Definitions by: Matt Traynham +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import webpack = require('webpack'); + +export = DuplicatePackageCheckerWebpackPlugin; + +declare class DuplicatePackageCheckerWebpackPlugin extends webpack.Plugin { + constructor(options?: DuplicatePackageCheckerWebpackPlugin.Options); +} + +declare namespace DuplicatePackageCheckerWebpackPlugin { + interface Options { + // Also show module that is requiring each duplicate package + verbose?: boolean; + // Emit errors instead of warnings + emitError?: boolean; + } +} diff --git a/types/duplicate-package-checker-webpack-plugin/tsconfig.json b/types/duplicate-package-checker-webpack-plugin/tsconfig.json new file mode 100644 index 0000000000..7b3dc55ffe --- /dev/null +++ b/types/duplicate-package-checker-webpack-plugin/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "duplicate-package-checker-webpack-plugin-tests.ts" + ] +} diff --git a/types/duplicate-package-checker-webpack-plugin/tslint.json b/types/duplicate-package-checker-webpack-plugin/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/duplicate-package-checker-webpack-plugin/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/dwt/index.d.ts b/types/dwt/index.d.ts index 423dab8824..cad6825c27 100644 --- a/types/dwt/index.d.ts +++ b/types/dwt/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for dwt 12.3 +// Type definitions for dwt 13.1 // Project: http://www.dynamsoft.com/Products/WebTWAIN_Overview.aspx // Definitions by: Xiao Ling +// Josh Hall // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -11,7 +12,7 @@ * * Copyright 2017, Dynamsoft Corporation * Author: Dynamsoft Support Team -* Version: 12.3 +* Version: 13 */ /** @@ -21,6 +22,8 @@ declare namespace Dynamsoft { namespace WebTwainEnv { function GetWebTwain (cid: string): WebTwain; function RegisterEvent(event: string, fn: () => void): void; + function Load(): void; + let AutoLoad: boolean; } } diff --git a/types/dwt/v12/dwt-tests.ts b/types/dwt/v12/dwt-tests.ts new file mode 100644 index 0000000000..b1a5cc6b09 --- /dev/null +++ b/types/dwt/v12/dwt-tests.ts @@ -0,0 +1,101 @@ +function dwtOnReady() { + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); // Get the Dynamic Web TWAIN object that is embeded in the div with id 'dwtcontrolContainer' + if (DWObject) { + let count = DWObject.SourceCount; + if (count === 0) { + DWObject.CloseSourceManager(); + DWObject.ImageCaptureDriverType = 0; + DWObject.OpenSourceManager(); + count = DWObject.SourceCount; + } + } +} + +function acquireImage() { + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + if (DWObject) { + DWObject.SelectSourceByIndex(0); // Use method SelectSourceByIndex to avoid the 'Select Source' dialog + DWObject.OpenSource(); + DWObject.IfDisableSourceAfterAcquire = true; // Scanner source will be disabled/closed automatically after the scan. + DWObject.AcquireImage({}, () => {}, (errorCode: number, errorString: string) => {DWObject.CloseSource(); }); + } +} + +function registerEvent() { + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + if (DWObject) { + // The event OnPostTransfer fires after each image is scanned and transferred + DWObject.RegisterEvent("OnPostTransfer", function () {}); + + // The event OnPostLoad fires after the images from a local directory have been loaded into the control + DWObject.RegisterEvent("OnPostLoad", function () {}); + + // The event OnMouseClick fires when the mouse clicks on an image on Dynamic Web TWAIN viewer + DWObject.RegisterEvent("OnMouseClick", function () {}); + + // The event OnTopImageInTheViewChanged fires when the top image currently displayed in the viewer changes + DWObject.RegisterEvent("OnTopImageInTheViewChanged", function (index: number) { + DWObject.CurrentImageIndexInBuffer = index; + }); + } +} + +function editImage() { + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + if (DWObject) { + if (DWObject.HowManyImagesInBuffer > 0) + DWObject.RotateLeft(DWObject.CurrentImageIndexInBuffer); + + if (DWObject.HowManyImagesInBuffer > 0) + DWObject.RotateRight(DWObject.CurrentImageIndexInBuffer); + + if (DWObject.HowManyImagesInBuffer > 0) + DWObject.Mirror(DWObject.CurrentImageIndexInBuffer); + + if (DWObject.HowManyImagesInBuffer > 0) + DWObject.Flip(DWObject.CurrentImageIndexInBuffer); + } +} + +function showImageEditor() { + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + if (DWObject) { + DWObject.ShowImageEditor(); + } +} + +function saveImage() { + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + if (DWObject) { + DWObject.ConvertToGrayScale(DWObject.CurrentImageIndexInBuffer); + DWObject.SaveAsJPEG("DynamicWebTWAIN.jpg", DWObject.CurrentImageIndexInBuffer); + DWObject.SaveAllAsMultiPageTIFF("DynamicWebTWAIN.tiff", () => {}, (errorCode: number, errorString: string) => {}); + DWObject.SaveAllAsPDF("DynamicWebTWAIN.pdf", () => {}, (errorCode: number, errorString: string) => {}); + } +} + +function updateLargeViewer() { + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + const DWObjectLargeViewer = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainerLargeViewer'); + if (DWObject) { + DWObject.CopyToClipboard(DWObject.CurrentImageIndexInBuffer); // Copy the current image in the thumbnail to clipboard in DIB format. + DWObjectLargeViewer.LoadDibFromClipboard(); // Load the image from Clipboard into the large viewer. + } +} + +function uploadImage() { + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + if (DWObject) { + DWObject.HTTPPort = 80; + DWObject.IfSSL = false; + DWObject.HTTPUploadThroughPost("www.dynamsoft.com", DWObject.CurrentImageIndexInBuffer, "upload", "tmp.jpg", () => {}, (errorCode: number, errorString: string) => {}); + } +} + +function downloadImage() { + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + if (DWObject) { + DWObject.HTTPPort = 80; + DWObject.HTTPDownload("www.dynamsoft.com", "img.png", () => {}, (errorCode: number, errorString: string) => {}); + } +} diff --git a/types/dwt/v12/index.d.ts b/types/dwt/v12/index.d.ts new file mode 100644 index 0000000000..423dab8824 --- /dev/null +++ b/types/dwt/v12/index.d.ts @@ -0,0 +1,3459 @@ +// Type definitions for dwt 12.3 +// Project: http://www.dynamsoft.com/Products/WebTWAIN_Overview.aspx +// Definitions by: Xiao Ling +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +/*! +* Dynamsoft WebTwain JavaScript Intellisense +* Product: Dynamsoft Web Twain +* Web Site: http://www.dynamsoft.com +* +* Copyright 2017, Dynamsoft Corporation +* Author: Dynamsoft Support Team +* Version: 12.3 +*/ + +/** + * @namespace Dynamsoft + */ +declare namespace Dynamsoft { + namespace WebTwainEnv { + function GetWebTwain (cid: string): WebTwain; + function RegisterEvent(event: string, fn: () => void): void; + } +} + +/** ICAP_PIXELTYPE values (PT_ means Pixel Type) */ +declare enum EnumDWT_PixelType { + TWPT_BW = 0, + TWPT_GRAY = 1, + TWPT_RGB = 2, + TWPT_PALLETE = 3, + TWPT_CMY = 4, + TWPT_CMYK = 5, + TWPT_YUV = 6, + TWPT_YUVK = 7, + TWPT_CIEXYZ = 8, + TWPT_LAB = 9, + TWPT_SRGB = 10, + TWPT_SCRGB = 11, + TWPT_INFRARED = 16 +} + +declare enum EnumDWT_BorderStyle { + /** No border. */ + TWBS_NONE = 0, + /** Flat border. */ + TWBS_SINGLEFLAT = 1, + /** 3D border. */ + TWBS_SINGLE3D = 2 +} + +/** For query the operation that are supported by the data source on a capability . + * Application gets these through DG_CONTROL/DAT_CAPABILITY/MSG_QUERYSUPPORT + */ +declare enum EnumDWT_MessageType { + TWQC_GET = 1, + TWQC_SET = 2, + TWQC_GETDEFAULT = 4, + TWQC_GETCURRENT = 8, + TWQC_RESET = 16 +} + +/** Capabilities */ +declare enum EnumDWT_Cap { + /** Nothing. */ + CAP_NONE = 0, + /** The application is willing to accept this number of images. */ + CAP_XFERCOUNT = 1, + /** Allows the application and Source to identify which compression schemes they have in + * common for Buffered Memory and File transfers. + * Note for File transfers: + * Since only certain file formats support compression, this capability must be negotiated after + * setting the desired file format with ICAP_IMAGEFILEFORMAT. + */ + ICAP_COMPRESSION = 256, + /** The type of pixel data that a Source is capable of acquiring (for example, black and white, gray, RGB, etc.). */ + ICAP_PIXELTYPE = 257, + /** Unless a quantity is dimensionless or uses a specified unit of measure, ICAP_UNITS determines + * the unit of measure for all quantities. + */ + ICAP_UNITS = 258, + /** Allows the application and Source to identify which transfer mechanisms the source supports. */ + ICAP_XFERMECH = 259, + /** The name or other identifying information about the Author of the image. It may include a copyright string. */ + CAP_AUTHOR = 4096, + /** A general note about the acquired image. */ + CAP_CAPTION = 4097, + /** If TRUE, Source must acquire data from the document feeder acquire area and other feeder + * capabilities can be used. If FALSE, Source must acquire data from the non-feeder acquire area + * and no other feeder capabilities can be used. + */ + CAP_FEEDERENABLED = 4098, + /** Reflect whether there are documents loaded in the Source's feeder. */ + CAP_FEEDERLOADED = 4099, + /** The date and time the image was acquired. + * Stored in the form "YYYY/MM/DD HH:mm:SS.sss" where YYYY is the year, MM is the + * numerical month, DD is the numerical day, HH is the hour, mm is the minute, SS is the second, + * and sss is the millisecond. + */ + CAP_TIMEDATE = 4100, + /** Returns a list of all the capabilities for which the Source will answer inquiries. Does not indicate + * which capabilities the Source will allow to be set by the application. Some capabilities can only + * be set if certain setup work has been done so the Source cannot globally answer which + * capabilities are "set-able." + */ + CAP_SUPPORTEDCAPS = 4101, + /** Allows the application and Source to negotiate capabilities to be used in States 5 and 6. */ + CAP_EXTENDEDCAPS = 4102, + /** If TRUE, the Source will automatically feed the next page from the document feeder after the + * number of frames negotiated for capture from each page are acquired. CAP_FEEDERENABLED + * must be TRUE to use this capability. + */ + CAP_AUTOFEED = 4103, + /** If TRUE, the Source will eject the current page being acquired from and will leave the feeder + * acquire area empty. + * If CAP_AUTOFEED is TRUE, a fresh page will be advanced. + * CAP_FEEDERENABLED must equal TRUE to use this capability. + * This capability must have been negotiated as an extended capability to be used in States 5 and 6. + */ + CAP_CLEARPAGE = 4104, + /** If TRUE, the Source will eject the current page and advance the next page in the document feeder + * into the feeder acquire area. + * If CAP_AUTOFEED is TRUE, the same action just described will occur and CAP_AUTOFEED will + * remain active. + * CAP_FEEDERENABLED must equal TRUE to use this capability. + * This capability must have been negotiated as an extended capability to be used in States 5 and 6. + */ + CAP_FEEDPAGE = 4105, + /** If TRUE, the Source will return the current page to the input side of the document feeder and + * feed the last page from the output side of the feeder back into the acquisition area. + * If CAP_AUTOFEED is TRUE, automatic feeding will continue after all negotiated frames from this + * page are acquired. + * CAP_FEEDERENABLED must equal TRUE to use this capability. + * This capability must have been negotiated as an extended capability to be used in States 5 and 6. + */ + CAP_REWINDPAGE = 4106, + /** If TRUE, the Source will display a progress indicator during acquisition and transfer, regardless + * of whether the Source's user interface is active. If FALSE, the progress indicator will be + * suppressed if the Source's user interface is inactive. + * The Source will continue to display device-specific instructions and error messages even with + * the Source user interface and progress indicators turned off. + */ + CAP_INDICATORS = 4107, + /** Returns a list of all the capabilities for which the Source will answer inquiries. Does not indicate + * which capabilities the Source will allow to be set by the application. Some capabilities can only + * be set if certain setup work has been done so the Source cannot globally answer which + * capabilities are "set-able." + */ + CAP_SUPPORTEDCAPSEXT = 4108, + /** This capability determines whether the device has a paper sensor that can detect documents on the ADF or Flatbed. */ + CAP_PAPERDETECTABLE = 4109, + /** If TRUE, indicates that this Source supports acquisition with the UI disabled; i.e., + * TW_USERINTERFACE's ShowUI field can be set to FALSE. If FALSE, indicates that this Source + * can only support acquisition with the UI enabled. + */ + CAP_UICONTROLLABLE = 4110, + /** If TRUE, the physical hardware (e.g., scanner, digital camera, image database, etc.) that + * represents the image source is attached, powered on, and communicating. + */ + CAP_DEVICEONLINE = 4111, + /** This capability is intended to boost the performance of a Source. The fundamental assumption + * behind AutoScan is that the device is able to capture the number of images indicated by the + * value of CAP_XFERCOUNT without waiting for the Application to request the image transfers. + * This is only possible if the device has internal buffers capable of caching the images it captures. + * The default behavior is undefined, because some high volume devices are incapable of anything + * but CAP_AUTOSCAN being equal to TRUE. However, if a Source supports FALSE, it should use it + * as the mandatory default, since this best describes the behavior of pre-1.8 TWAIN Applications. + */ + CAP_AUTOSCAN = 4112, + /** Allows an application to request the delivery of thumbnail representations for the set of images + * that are to be delivered. + * Setting CAP_THUMBNAILSENABLED to TRUE turns on thumbnail mode. Images transferred + * thereafter will be sent at thumbnail size (exact thumbnail size is determined by the Data Source). + * Setting this capability to FALSE turns thumbnail mode off and returns full size images. + */ + CAP_THUMBNAILSENABLED = 4113, + /** This indicates whether the scanner supports duplex. If so, it further indicates whether one-path + * or two-path duplex is supported. + */ + CAP_DUPLEX = 4114, + /** The user can set the duplex option to be TRUE or FALSE. If TRUE, the scanner scans both sides + * of a paper; otherwise, the scanner will scan only one side of the image. + */ + CAP_DUPLEXENABLED = 4115, + /** Allows an application to query a source to see if it implements the new user interface settings dialog. */ + CAP_ENABLEDSUIONLY = 4116, + CAP_CUSTOMDSDATA = 4117, + /** Allows the application to specify the starting endorser / imprinter number. All other endorser/ + * imprinter properties should be handled through the data source's user interface. + * The user can set the starting number for the endorser. + */ + CAP_ENDORSER = 4118, + /** Turns specific audible alarms on and off. */ + CAP_ALARMS = 4120, + /** The volume of a device's audible alarm. Note that this control affects the volume of all alarms; + * no specific volume control for individual types of alarms is provided. + */ + CAP_ALARMVOLUME = 4121, + /** The number of images to automatically capture. This does not refer to the number of images to + * be sent to the Application, use CAP_XFERCOUNT for that. + */ + CAP_AUTOMATICCAPTURE = 4122, + /** For automatic capture, this value selects the number of milliseconds before the first picture is to + * be taken, or the first image is to be scanned. + */ + CAP_TIMEBEFOREFIRSTCAPTURE = 4123, + /** For automatic capture, this value selects the milliseconds to wait between pictures taken, or images scanned. */ + CAP_TIMEBETWEENCAPTURES = 4124, + /** CapGet() reports the presence of data in the scanner's buffers. CapSet() with a value of TWCB_CLEAR immediately clears the buffers. */ + CAP_CLEARBUFFERS = 4125, + /** Describes the number of pages that the scanner can buffer when CAP_AUTOSCAN is enabled. */ + CAP_MAXBATCHBUFFERS = 4126, + /** The date and time of the device's clock. + * Managed in the form "YYYY/MM/DD HH:mm:SS:sss" where YYYY is the year, MM is the + * numerical month, DD is the numerical day, HH is the hour, mm is the minute, SS is the second, + * and sss is the millisecond. + */ + CAP_DEVICETIMEDATE = 4127, + /** CapGet() reports the kinds of power available to the device. CapGetCurrent() reports the current power supply in use. */ + CAP_POWERSUPPLY = 4128, + /** This capability queries the Source for UI support for preview mode. If TRUE, the Source supports preview UI. */ + CAP_CAMERAPREVIEWUI = 4129, + /** A string containing the serial number of the currently selected device in the Source. Multiple + * devices may all report the same serial number. + */ + CAP_SERIALNUMBER = 4132, + /** CapGet() returns the current list of available printer devices, along with the one currently being used for negotiation. + * CapSet() selects the current device for negotiation, and optionally constrains the list. + * Top/Bottom refers to duplex devices, and indicates if the printer is writing on the top or the bottom of the sheet of paper. + * Simplex devices use the top settings. Before/After indicates whether printing occurs before or after the sheet of paper has been scanned. + */ + CAP_PRINTER = 4134, + /** Turns the current CAP_PRINTER device on or off. */ + CAP_PRINTERENABLED = 4135, + /** The User can set the starting number for the current CAP_PRINTER device. */ + CAP_PRINTERINDEX = 4136, + /** Specifies the appropriate current CAP_PRINTER device mode. + * Note: + * • TWPM_SINGLESTRING specifies that the printed text will consist of a single string. + * • TWPM _MULTISTRING specifies that the printed text will consist of an enumerated list of + * strings to be printed in order. + * • TWPM _COMPOUNDSTRING specifies that the printed string will consist of a compound of a + * String followed by a value followed by a suffix string. + */ + CAP_PRINTERMODE = 4137, + /** Specifies the string(s) that are to be used in the string component when the current + * CAP_PRINTER device is enabled. + */ + CAP_PRINTERSTRING = 4138, + /** Specifies the string that shall be used as the current CAP_PRINTER device's suffix. */ + CAP_PRINTERSUFFIX = 4139, + /** Allows Application and Source to identify which languages they have in common for the exchange of string data, + * and to select the language of the internal UI. Since the TWLG_xxxx codes include language and country data, there is no separate + * capability for selecting the country. + */ + CAP_LANGUAGE = 4140, + /** Helps the Application determine any special actions it may need to take when negotiating + * frames with the Source. Allowed values are listed in . + * TWFA_NONE: The alignment is free-floating. Applications should assume + * that the origin for frames is on the left. + * TWFA_LEFT: The alignment is to the left. + * TWFA_CENTER: The alignment is centered. This means that the paper will + * be fed in the middle of the ICAP_PHYSICALWIDTH of the + * device. If this is set, then the Application should calculate + * any frames with a left offset of zero. + * TWFA_RIGHT: The alignment is to the right. + */ + CAP_FEEDERALIGNMENT = 4141, + /** TWFO_FIRSTPAGEFIRST if the feeder starts with the top of the first page. + * TWFO_LASTPAGEFIRST is the feeder starts with the top of the last page. + */ + CAP_FEEDERORDER = 4142, + /** Indicates whether the physical hardware (e.g. scanner, digital camera) is capable of acquiring + * multiple images of the same page without changes to the physical registration of that page. + */ + CAP_REACQUIREALLOWED = 4144, + /** The minutes of battery power remaining to the device. */ + CAP_BATTERYMINUTES = 4146, + /** When used with CapGet(), return the percentage of battery power level on camera. If -1 is returned, it indicates that the battery is not present. */ + CAP_BATTERYPERCENTAGE = 4147, + /** Added 1.91 */ + CAP_CAMERASIDE = 4148, + /** Added 1.91 */ + CAP_SEGMENTED = 4149, + /** Added 2.0 */ + CAP_CAMERAENABLED = 4150, + /** Added 2.0 */ + CAP_CAMERAORDER = 4151, + /** Added 2.0 */ + CAP_MICRENABLED = 4152, + /** Added 2.0 */ + CAP_FEEDERPREP = 4153, + /** Added 2.0 */ + CAP_FEEDERPOCKET = 4154, + /** Added 2.1 */ + CAP_AUTOMATICSENSEMEDIUM = 4155, + /** Added 2.1 */ + CAP_CUSTOMINTERFACEGUID = 4156, + /** TRUE enables and FALSE disables the Source's Auto-brightness function (if any). */ + ICAP_AUTOBRIGHT = 4352, + /** The brightness values available within the Source. */ + ICAP_BRIGHTNESS = 4353, + /** The contrast values available within the Source. */ + ICAP_CONTRAST = 4355, + /** Specifies the square-cell halftone (dithering) matrix the Source should use to halftone the image. */ + ICAP_CUSTHALFTONE = 4356, + /** Specifies the exposure time used to capture the image, in seconds. */ + ICAP_EXPOSURETIME = 4357, + /** Describes the color characteristic of the subtractive filter applied to the image data. Multiple + * filters may be applied to a single acquisition. + */ + ICAP_FILTER = 4358, + /** Specifies whether or not the image was acquired using a flash. */ + ICAP_FLASHUSED = 4359, + /** Gamma correction value for the image data. */ + ICAP_GAMMA = 4360, + /** A list of names of the halftone patterns available within the Source. */ + ICAP_HALFTONES = 4361, + /** Specifies which value in an image should be interpreted as the lightest "highlight." All values + * "lighter" than this value will be clipped to this value. Whether lighter values are smaller or + * larger can be determined by examining the Current value of ICAP_PIXELFLAVOR. + */ + ICAP_HIGHLIGHT = 4362, + /** Informs the application which file formats the Source can generate (CapGet()). Tells the Source which file formats the application can handle (CapSet()). + * TWFF_TIFF Used for document + * TWFF_PICT Native Macintosh + * TWFF_BMP Native Microsoft + * TWFF_XBM Used for document + * TWFF_JFIF Wrapper for JPEG + * TWFF_FPX FlashPix, used with digital + * TWFF_TIFFMULTI Multi-page TIFF files + * TWFF_PNG An image format standard intended for use on the web, replaces GIF + * TWFF_SPIFF A standard from JPEG, intended to replace JFIF, also supports JBIG + * TWFF_EXIF File format for use with digital cameras. + */ + ICAP_IMAGEFILEFORMAT = 4364, + /** TRUE means the lamp is currently, or should be set to ON. Sources may not support CapSet() operations. */ + ICAP_LAMPSTATE = 4365, + /** Describes the general color characteristic of the light source used to acquire the image. */ + ICAP_LIGHTSOURCE = 4366, + /** Defines which edge of the "paper" the image's "top" is aligned with. This information is used to adjust the frames to match the + * scanning orientation of the paper. For instance, if an ICAP_SUPPORTEDSIZE of TWSS_ISOA4 has been negotiated, + * and ICAP_ORIENTATION is set to TWOR_LANDSCAPE, then the Source must rotate the frame it downloads to the scanner to reflect the + * orientation of the paper. Please note that setting ICAP_ORIENTATION does not affect the values reported by ICAP_FRAMES; + * it just causes the Source to use them in a different way. The upper-left of the image is defined as the location where both the primary and + * secondary scans originate. (The X axis is the primary scan direction and the Y axis is the secondary scan direction.) + * For a flatbed scanner, the light bar moves in the secondary scan direction. For a handheld scanner, the scanner is drug in the + * secondary scan direction. For a digital camera, the secondary direction is the vertical axis when the viewed image is considered upright. + */ + ICAP_ORIENTATION = 4368, + /** The maximum physical width (X-axis) the Source can acquire (measured in units of ICAP_UNITS). */ + ICAP_PHYSICALWIDTH = 4369, + /** The maximum physical height (Y-axis) the Source can acquire (measured in units of ICAP_UNITS). */ + ICAP_PHYSICALHEIGHT = 4370, + /** Specifies which value in an image should be interpreted as the darkest "shadow." All values + * "darker" than this value will be clipped to this value. + */ + ICAP_SHADOW = 4371, + /** The list of frames the Source will acquire on each page. */ + ICAP_FRAMES = 4372, + /** The native optical resolution along the X-axis of the device being controlled by the Source. Most + * devices will respond with a single value (TW_ONEVALUE). + * This is NOT a list of all resolutions that can be generated by the device. Rather, this is the + * resolution of the device's optics. Measured in units of pixels per unit as defined by + * ICAP_UNITS (pixels per TWUN_PIXELS yields dimensionless data). + */ + ICAP_XNATIVERESOLUTION = 4374, + /** The native optical resolution along the Y-axis of the device being controlled by the Source. + * Measured in units of pixels per unit as defined by ICAP_UNITS (pixels per TWUN_PIXELS + * yields dimensionless data). + */ + ICAP_YNATIVERESOLUTION = 4375, + /** All the X-axis resolutions the Source can provide. + * Measured in units of pixels per unit as defined by ICAP_UNITS (pixels per TWUN_PIXELS + * yields dimensionless data). That is, when the units are TWUN_PIXELS, both + * ICAP_XRESOLUTION and ICAP_YRESOLUTION shall report 1 pixel/pixel. Some data sources + * like to report the actual number of pixels that the device reports, but that response is more + * appropriate in ICAP_PHYSICALHEIGHT and ICAP_PHYSICALWIDTH. + */ + ICAP_XRESOLUTION = 4376, + /** All the Y-axis resolutions the Source can provide. + * Measured in units of pixels per unit as defined by ICAP_UNITS (pixels per TWUN_PIXELS + * yields dimensionless data). That is, when the units are TWUN_PIXELS, both + * ICAP_XRESOLUTION and ICAP_YRESOLUTION shall report 1 pixel/pixel. Some data sources + * like to report the actual number of pixels that the device reports, but that response is more + * appropriate in ICAP_PHYSICALHEIGHT and ICAP_PHYSICALWIDTH. + */ + ICAP_YRESOLUTION = 4377, + /** The maximum number of frames the Source can provide or the application can accept per page. + * This is a bounding capability only. It does not establish current or future behavior. + */ + ICAP_MAXFRAMES = 4378, + /** This is used with buffered memory transfers. If TRUE, Source can provide application with tiled image data. */ + ICAP_TILES = 4379, + /** Specifies how the bytes in an image are filled by the Source. TWBO_MSBFIRST indicates that the leftmost bit in the byte (usually bit 7) is + * the byte's Most Significant Bit. + */ + ICAP_BITORDER = 4380, + /** Used for CCITT Group 3 2-dimensional compression. The 'K' factor indicates how often the + * new compression baseline should be re-established. A value of 2 or 4 is common in facsimile + * communication. A value of zero in this field will indicate an infinite K factor—the baseline is + * only calculated at the beginning of the transfer. + */ + ICAP_CCITTKFACTOR = 4381, + /** Describes whether the image was captured transmissively or reflectively. */ + ICAP_LIGHTPATH = 4382, + /** Sense of the pixel whose numeric value is zero (minimum data value). */ + ICAP_PIXELFLAVOR = 4383, + /** Allows the application and Source to identify which color data formats are available. There are + * two options, "planar" and "chunky." + */ + ICAP_PLANARCHUNKY = 4384, + /** How the Source can/should rotate the scanned image data prior to transfer. This doesn't use + * ICAP_UNITS. It is always measured in degrees. Any applied value is additive with any + * rotation specified in ICAP_ORIENTATION. + */ + ICAP_ROTATION = 4385, + /** For devices that support fixed frame sizes. + * Defined sizes match typical page sizes. This specifies the size(s) the Source can/should use to acquire image data. + */ + ICAP_SUPPORTEDSIZES = 4386, + /** Specifies the dividing line between black and white. This is the value the Source will use to + * threshold, if needed, when ICAP_PIXELTYPE:TWPT_BW. + * The value is normalized so there are no units of measure associated with this ICAP. + */ + ICAP_THRESHOLD = 4387, + /** All the X-axis scaling values available. A value of '1.0' is equivalent to 100% scaling. Do not use values less than or equal to zero. */ + ICAP_XSCALING = 4388, + /** All the Y-axis scaling values available. A value of '1.0' is equivalent to 100% scaling. Do not use values less than or equal to zero. + * There are no units inherent with this data as it is normalized to 1.0 being "unscaled." + */ + ICAP_YSCALING = 4389, + /** Used for CCITT data compression only. Indicates the bit order representation of the stored compressed codes. */ + ICAP_BITORDERCODES = 4390, + /** Used only for CCITT data compression. Specifies whether the compressed codes' pixel "sense" + * will be inverted from the Current value of ICAP_PIXELFLAVOR prior to transfer. + */ + ICAP_PIXELFLAVORCODES = 4391, + /** Allows the application and Source to agree upon a common set of color descriptors that are + * made available by the Source. This ICAP is only useful for JPEG-compressed buffered memory image transfers. + */ + ICAP_JPEGPIXELTYPE = 4392, + /** Used only with CCITT data compression. Specifies the minimum number of words of compressed codes (compressed data) to be transmitted per line. */ + ICAP_TIMEFILL = 4394, + /** Specifies the pixel bit depths for the Current value of ICAP_PIXELTYPE. For example, when + * using ICAP_PIXELTYPE:TWPT_GRAY, this capability specifies whether this is 8-bit gray or 4-bit gray. + * This depth applies to all the data channels (for instance, the R, G, and B channels will all have + * this same bit depth for RGB data). + */ + ICAP_BITDEPTH = 4395, + /** Specifies the Reduction Method the Source should use to reduce the bit depth of the data. Most + * commonly used with ICAP_PIXELTYPE:TWPT_BW to reduce gray data to black and white. + */ + ICAP_BITDEPTHREDUCTION = 4396, + /** If TRUE the Source will issue a MSG_XFERREADY before starting the scan. + * Note: The Source may need to scan the image before initiating the transfer. This is the case if + * the scanned image is rotated or merged with another scanned image. + */ + ICAP_UNDEFINEDIMAGESIZE = 4397, + /** Allows the application to query the data source to see if it supports extended image attribute capabilities, + * such as Barcode Recognition, Shaded Area Detection and Removal, Skew detection and Removal, and so on. + */ + ICAP_EXTIMAGEINFO = 4399, + /** Allows the source to define the minimum height (Y-axis) that the source can acquire. */ + ICAP_MINIMUMHEIGHT = 4400, + /** Allows the source to define theminimum width (X-axis) that the source can acquire. */ + ICAP_MINIMUMWIDTH = 4401, + /** Use this capability to have the Source discard blank images. The Application never sees these + * images during the scanning session. + * TWBP_DISABLE – this must be the default state for the Source. It indicates that all images will + * be delivered to the Application, none of them will be discarded. + * TWBP_AUTO – if this is used, then the Source will decide if an image is blank or not and discard + * as appropriate. + * If the specified value is a positive number in the range 0 to 231–1, then this capability will use it + * as the byte size cutoff point to identify which images are to be discarded. If the size of the image + * is less than or equal to this value, then it will be discarded. If the size of the image is greater + * than this value, then it will be kept so that it can be transferred to the Application. + */ + ICAP_AUTODISCARDBLANKPAGES = 4404, + /** Flip rotation is used to properly orient images that flip orientation every other image. + * TWFR_BOOK The images to be scanned are viewed in book form, flipping each page from left to right or right to left. + * TWFR_FANFOLD The images to be scanned are viewed in fanfold paper style, flipping each page up or down. + */ + ICAP_FLIPROTATION = 4406, + /** Turns bar code detection on and off. */ + ICAP_BARCODEDETECTIONENABLED = 4407, + /** Provides a list of bar code types that can be detected by the current Data Source. */ + ICAP_SUPPORTEDBARCODETYPES = 4408, + /** The maximum number of supported search priorities. */ + ICAP_BARCODEMAXSEARCHPRIORITIES = 4409, + /** A prioritized list of bar code types dictating the order in which bar codes will be sought. */ + ICAP_BARCODESEARCHPRIORITIES = 4410, + /** Restricts bar code searching to certain orientations, or prioritizes one orientation over the other. */ + ICAP_BARCODESEARCHMODE = 4411, + /** Restricts the number of times a search will be retried if none are found on each page. */ + ICAP_BARCODEMAXRETRIES = 4412, + /** Restricts the total time spent on searching for a bar code on each page. */ + ICAP_BARCODETIMEOUT = 4413, + /** When used with CapGet(), returns all camera supported lens zooming range. */ + ICAP_ZOOMFACTOR = 4414, + /** Turns patch code detection on and off. */ + ICAP_PATCHCODEDETECTIONENABLED = 4415, + /** A list of patch code types that may be detected by the current Data Source. */ + ICAP_SUPPORTEDPATCHCODETYPES = 4416, + /** The maximum number of supported search priorities. */ + ICAP_PATCHCODEMAXSEARCHPRIORITIES = 4417, + /** A prioritized list of patch code types dictating the order in which patch codes will be sought. */ + ICAP_PATCHCODESEARCHPRIORITIES = 4418, + /** Restricts patch code searching to certain orientations, or prioritizes one orientation over the other. */ + ICAP_PATCHCODESEARCHMODE = 4419, + /** Restricts the number of times a search will be retried if none are found on each page. */ + ICAP_PATCHCODEMAXRETRIES = 4420, + /** Restricts the total time spent on searching for a patch code on each page. */ + ICAP_PATCHCODETIMEOUT = 4421, + /** For devices that support flash. CapSet() selects the flash to be used (if any). CapGet() reports the current setting. + * This capability replaces ICAP_FLASHUSED, which is only able to negotiate the flash being on or off. + */ + ICAP_FLASHUSED2 = 4422, + /** For devices that support image enhancement filtering. This capability selects the algorithm used to improve the quality of the image. */ + ICAP_IMAGEFILTER = 4423, + /** For devices that support noise filtering. This capability selects the algorithm used to remove noise. */ + ICAP_NOISEFILTER = 4424, + /** Overscan is used to scan outside of the boundaries described by ICAP_FRAMES, and is used to help acquire image data that + * may be lost because of skewing. + * This is primarily of use for transport scanners which rely on edge detection to begin scanning. + * If overscan is supported, then the device is capable of scanning in the inter-document gap to get the skewed image information. + */ + ICAP_OVERSCAN = 4425, + /** Turns automatic border detection on and off. */ + ICAP_AUTOMATICBORDERDETECTION = 4432, + /** Turns automatic deskew correction on and off. */ + ICAP_AUTOMATICDESKEW = 4433, + /** When TRUE this capability depends on intelligent features within the Source to automatically + * rotate the image to the correct position. + */ + ICAP_AUTOMATICROTATE = 4434, + /** Added 1.9 */ + ICAP_JPEGQUALITY = 4435, + /** Added 1.91 */ + ICAP_FEEDERTYPE = 4436, + /** Added 1.91 */ + ICAP_ICCPROFILE = 4437, + /** Added 2.0 */ + ICAP_AUTOSIZE = 4438, + /** Added 2.1 */ + ICAP_AUTOMATICCROPUSESFRAME = 4439, + /** Added 2.1 */ + ICAP_AUTOMATICLENGTHDETECTION = 4440, + /** Added 2.1 */ + ICAP_AUTOMATICCOLORENABLED = 4441, + /** Added 2.1 */ + ICAP_AUTOMATICCOLORNONCOLORPIXELTYPE = 4442, + /** Added 2.1 */ + ICAP_COLORMANAGEMENTENABLED = 4443, + /** Added 2.1 */ + ICAP_IMAGEMERGE = 4444, + /** Added 2.1 */ + ICAP_IMAGEMERGEHEIGHTTHRESHOLD = 4445, + /** Added 2.1 */ + ICAP_SUPPORTEDEXTIMAGEINFO = 4446 +} + +/** Capabilities exist in many varieties but all have a Default Value, Current Value, and may have other values available that can be supported if selected. + * To help categorize the supported values into clear structures, TWAIN defines four types of containers for capabilities = + * TW_ONEVALUE, TW_ARRAY, TW_RANGE and TW_ENUMERATION. + */ +declare enum EnumDWT_CapType { + /** Nothing. */ + TWON_NONE = 0, + /** A rectangular array of values that describe a logical item. It is similar to the TW_ONEVALUE because the current and default values are the same and + * there are no other values to select from. For example, a list of the names, such as the supported capabilities list returned by the CAP_SUPPORTEDCAPS + * capability, would use this type of container. + */ + TWON_ARRAY = 3, + /** This is the most general type because it defines a list of values from which the Current Value can be chosen. + * The values do not progress uniformly through a range and there is not a consistent step size between the values. + * For example, if a Source's resolution options do not occur in even step sizes then an enumeration would be used (for example, 150, 400, and 600). + */ + TWON_ENUMERATION = 4, + /** A single value whose current and default values are coincident. The range of available values for this type of capability is simply this single value. + * For example, a capability that indicates the presence of a document feeder could be of this type. + */ + TWON_ONEVALUE = 5, + /** Many capabilities allow users to select their current value from a range of regularly spaced values. + * The capability can specify the minimum and maximum acceptable values and the incremental step size between the values. + * For example, resolution might be supported from 100 to 600 in steps of 50 (100, 150, 200, ..., 550, 600). + */ + TWON_RANGE = 6 +} + +/** ICAP_XFERMECH values. */ +declare enum EnumDWT_TransferMode { + /** Native transfers require the data to be transferred to a single large block of RAM. Therefore, + * they always face the risk of having an inadequate amount of RAM available to perform the transfer successfully. + */ + TWSX_NATIVE = 0, + /** Disk File Mode Transfers. */ + TWSX_FILE = 1, + /** Buffered Memory Mode Transfers. */ + TWSX_MEMORY = 2, + /** added 1.91 */ + TWSX_MEMFILE = 4 +} + +/** ICAP_IMAGEFILEFORMAT values. */ +declare enum EnumDWT_FileFormat { + /** Used for document imaging. Tagged Image File Format */ + TWFF_TIFF = 0, + /** Native Macintosh format. Macintosh PICT */ + TWFF_PICT = 1, + /** Native Microsoft format. Windows Bitmap */ + TWFF_BMP = 2, + /** Used for document imaging. X-Windows Bitmap */ + TWFF_XBM = 3, + /** Wrapper for JPEG images. JPEG File Interchange Format */ + TWFF_JFIF = 4, + /** FlashPix, used with digital cameras. Flash Pix */ + TWFF_FPX = 5, + /** Multi-page TIFF files. Multi-page tiff file */ + TWFF_TIFFMULTI = 6, + /** An image format standard intended for use on the web, replaces GIF. */ + TWFF_PNG = 7, + /** A standard from JPEG, intended to replace JFIF, also supports JBIG. */ + TWFF_SPIFF = 8, + /** File format for use with digital cameras. */ + TWFF_EXIF = 9, + /** A file format from Adobe. 1.91 NB: this is not PDF/A */ + TWFF_PDF = 10, + /** A file format from the Joint Photographic Experts Group. 1.91 */ + TWFF_JP2 = 11, + /** 1.91 */ + TWFF_JPN = 12, + /** 1.91 */ + TWFF_JPX = 13, + /** A file format from LizardTech. 1.91 */ + TWFF_DEJAVU = 14, + /** A file format from Adobe. 2.0 */ + TWFF_PDFA = 15, + /** 2.1 Adobe PDF/A, Version 2 */ + TWFF_PDFA2 = 16 +} + +/** TIFF file compression type. */ +declare enum EnumDWT_TIFFCompressionType { + /** Auto mode. */ + TIFF_AUTO = 0, + /** Dump mode. */ + TIFF_NONE = 1, + /** CCITT modified Huffman RLE. */ + TIFF_RLE = 2, + /** CCITT Group 3 fax encoding. */ + TIFF_FAX3 = 3, + /** CCITT T.4 (TIFF 6 name). */ + TIFF_T4 = 3, + /** CCITT Group 4 fax encoding */ + TIFF_FAX4 = 4, + /** CCITT T.6 (TIFF 6 name). */ + TIFF_T6 = 4, + /** Lempel Ziv and Welch */ + TIFF_LZW = 5, + TIFF_JPEG = 7, + TIFF_PACKBITS = 32773 +} + +/** The method to do interpolation. */ +declare enum EnumDWT_InterpolationMethod { + IM_NEARESTNEIGHBOUR = 1, + IM_BILINEAR = 2, + IM_BICUBIC = 3, + IM_BESTQUALITY = 5 +} + +/** Image type */ +declare enum EnumDWT_ImageType { + /** Native Microsoft format. */ + IT_BMP = 0, + /** JPEG format. */ + IT_JPG = 1, + /** Tagged Image File Format. */ + IT_TIF = 2, + /** An image format standard intended for use on the web, replaces GIF. */ + IT_PNG = 3, + /** A file format from Adobe. */ + IT_PDF = 4, + IT_ALL = 5 +} + +/** PDF file compression type. */ +declare enum EnumDWT_PDFCompressionType { + /** Auto mode. */ + PDF_AUTO = 0, + /** CCITT Group 3 fax encoding. */ + PDF_FAX3 = 1, + /** CCITT Group 4 fax encoding */ + PDF_FAX4 = 2, + /** Lempel Ziv and Welch */ + PDF_LZW = 3, + /** CCITT modified Huffman RLE. */ + PDF_RLE = 4, + PDF_JPEG = 5 +} + +declare enum EnumDWT_ShowMode { + /** Activates the window and displays it in its current size and position. */ + SW_ACTIVE = 0, + /** Maximizes the window */ + SW_MAX = 1, + /** Minimize the window */ + SW_MIN = 2, + /** Close the latest opened editor window */ + SW_CLOSE = 3, + /** Check whether a window exists */ + SW_IFLIVE = 4 +} + +/** The kind of data stored in the container. */ +declare enum EnumDWT_CapValueType { + TWTY_INT8 = 0, + /** Means Item is a TW_INT16 */ + TWTY_INT16 = 1, + /** Means Item is a TW_INT32 */ + TWTY_INT32 = 2, + /** Means Item is a TW_UINT8 */ + TWTY_UINT8 = 3, + /** Means Item is a TW_UINT16 */ + TWTY_UINT16 = 4, + /** Means Item is a TW_int */ + TWTY_int = 5, + /** Means Item is a TW_BOOL */ + TWTY_BOOL = 6, + /** Means Item is a TW_FIX32 */ + TWTY_FIX32 = 7, + /** Means Item is a TW_FRAME */ + TWTY_FRAME = 8, + /** Means Item is a TW_STR32 */ + TWTY_STR32 = 9, + /** Means Item is a TW_STR64 */ + TWTY_STR64 = 10, + /** Means Item is a TW_STR128 */ + TWTY_STR128 = 11, + /** Means Item is a TW_STR255 */ + TWTY_STR255 = 12 +} + +/** ICAP_UNITS values. */ +declare enum EnumDWT_UnitType { + TWUN_INCHES = 0, + TWUN_CENTIMETERS = 1, + TWUN_PICAS = 2, + TWUN_POINTS = 3, + TWUN_TWIPS = 4, + TWUN_PIXELS = 5, + TWUN_MILLIMETERS = 6 +} + +/** ICAP_DUPLEX values. */ +declare enum EnumDWT_DUPLEX { + TWDX_NONE = 0, + TWDX_1PASSDUPLEX = 1, + TWDX_2PASSDUPLEX = 2 +} + +/** CAP_LANGUAGE values. */ +declare enum EnumDWT_CapLanguage { + /** Danish */ + TWLG_DAN = 0, + /** Dutch */ + TWLG_DUT = 1, + /** International English */ + TWLG_ENG = 2, + /** French Canadian */ + TWLG_FCF = 3, + /** Finnish */ + TWLG_FIN = 4, + /** French */ + TWLG_FRN = 5, + /** German */ + TWLG_GER = 6, + /** Icelandic */ + TWLG_ICE = 7, + /** Italian */ + TWLG_ITN = 8, + /** Norwegian */ + TWLG_NOR = 9, + /** Portuguese */ + TWLG_POR = 10, + /** Spanish */ + TWLG_SPA = 11, + /** Swedish */ + TWLG_SWE = 12, + /** U.S. English */ + TWLG_USA = 13, + /** Added for 1.8 */ + TWLG_USERLOCALE = -1, + TWLG_AFRIKAANS = 14, + TWLG_ALBANIA = 15, + TWLG_ARABIC = 16, + TWLG_ARABIC_ALGERIA = 17, + TWLG_ARABIC_BAHRAIN = 18, + TWLG_ARABIC_EGYPT = 19, + TWLG_ARABIC_IRAQ = 20, + TWLG_ARABIC_JORDAN = 21, + TWLG_ARABIC_KUWAIT = 22, + TWLG_ARABIC_LEBANON = 23, + TWLG_ARABIC_LIBYA = 24, + TWLG_ARABIC_MOROCCO = 25, + TWLG_ARABIC_OMAN = 26, + TWLG_ARABIC_QATAR = 27, + TWLG_ARABIC_SAUDIARABIA = 28, + TWLG_ARABIC_SYRIA = 29, + TWLG_ARABIC_TUNISIA = 30, + /** United Arabic Emirates */ + TWLG_ARABIC_UAE = 31, + TWLG_ARABIC_YEMEN = 32, + TWLG_BASQUE = 33, + TWLG_BYELORUSSIAN = 34, + TWLG_BULGARIAN = 35, + TWLG_CATALAN = 36, + TWLG_CHINESE = 37, + TWLG_CHINESE_HONGKONG = 38, + /** People's Republic of China */ + TWLG_CHINESE_PRC = 39, + TWLG_CHINESE_SINGAPORE = 40, + TWLG_CHINESE_SIMPLIFIED = 41, + TWLG_CHINESE_TAIWAN = 42, + TWLG_CHINESE_TRADITIONAL = 43, + TWLG_CROATIA = 44, + TWLG_CZECH = 45, + TWLG_DANISH = 0, + TWLG_DUTCH = 1, + TWLG_DUTCH_BELGIAN = 46, + TWLG_ENGLISH = 2, + TWLG_ENGLISH_AUSTRALIAN = 47, + TWLG_ENGLISH_CANADIAN = 48, + TWLG_ENGLISH_IRELAND = 49, + TWLG_ENGLISH_NEWZEALAND = 50, + TWLG_ENGLISH_SOUTHAFRICA = 51, + TWLG_ENGLISH_UK = 52, + TWLG_ENGLISH_USA = 13, + TWLG_ESTONIAN = 53, + TWLG_FAEROESE = 54, + TWLG_FARSI = 55, + TWLG_FINNISH = 4, + TWLG_FRENCH = 5, + TWLG_FRENCH_BELGIAN = 56, + TWLG_FRENCH_CANADIAN = 3, + TWLG_FRENCH_LUXEMBOURG = 57, + TWLG_FRENCH_SWISS = 58, + TWLG_GERMAN = 6, + TWLG_GERMAN_AUSTRIAN = 59, + TWLG_GERMAN_LUXEMBOURG = 60, + TWLG_GERMAN_LIECHTENSTEIN = 61, + TWLG_GERMAN_SWISS = 62, + TWLG_GREEK = 63, + TWLG_HEBREW = 64, + TWLG_HUNGARIAN = 65, + TWLG_ICELANDIC = 7, + TWLG_INDONESIAN = 66, + TWLG_ITALIAN = 8, + TWLG_ITALIAN_SWISS = 67, + TWLG_JAPANESE = 68, + TWLG_KOREAN = 69, + TWLG_KOREAN_JOHAB = 70, + TWLG_LATVIAN = 71, + TWLG_LITHUANIAN = 72, + TWLG_NORWEGIAN = 9, + TWLG_NORWEGIAN_BOKMAL = 73, + TWLG_NORWEGIAN_NYNORSK = 74, + TWLG_POLISH = 75, + TWLG_PORTUGUESE = 10, + TWLG_PORTUGUESE_BRAZIL = 76, + TWLG_ROMANIAN = 77, + TWLG_RUSSIAN = 78, + TWLG_SERBIAN_LATIN = 79, + TWLG_SLOVAK = 80, + TWLG_SLOVENIAN = 81, + TWLG_SPANISH = 11, + TWLG_SPANISH_MEXICAN = 82, + TWLG_SPANISH_MODERN = 83, + TWLG_SWEDISH = 12, + TWLG_THAI = 84, + TWLG_TURKISH = 85, + TWLG_UKRANIAN = 86, + /** More stuff added for 1.8 */ + TWLG_ASSAMESE = 87, + TWLG_BENGALI = 88, + TWLG_BIHARI = 89, + TWLG_BODO = 90, + TWLG_DOGRI = 91, + TWLG_GUJARATI = 92, + TWLG_HARYANVI = 93, + TWLG_HINDI = 94, + TWLG_KANNADA = 95, + TWLG_KASHMIRI = 96, + TWLG_MALAYALAM = 97, + TWLG_MARATHI = 98, + TWLG_MARWARI = 99, + TWLG_MEGHALAYAN = 100, + TWLG_MIZO = 101, + TWLG_NAGA = 102, + TWLG_ORISSI = 103, + TWLG_PUNJABI = 104, + TWLG_PUSHTU = 105, + TWLG_SERBIAN_CYRILLIC = 106, + TWLG_SIKKIMI = 107, + TWLG_SWEDISH_FINLAND = 108, + TWLG_TAMIL = 109, + TWLG_TELUGU = 110, + TWLG_TRIPURI = 111, + TWLG_URDU = 112, + TWLG_VIETNAMESE = 113 +} + +/** TWAIN Supported sizes. */ +declare enum EnumDWT_CapSupportedSizes { + /** 0 */ + TWSS_NONE = 0, + /** 1 */ + TWSS_A4LETTER = 1, + /** 2 */ + TWSS_B5LETTER = 2, + /** 3 */ + TWSS_USLETTER = 3, + /** 4 */ + TWSS_USLEGAL = 4, + /** Added 1.5 + * 5 + */ + TWSS_A5 = 5, + /** 6 */ + TWSS_B4 = 6, + /** 7 */ + TWSS_B6 = 7, + /** Added 1.7 + * 9 + */ + TWSS_USLEDGER = 9, + /** 10 */ + TWSS_USEXECUTIVE = 10, + /** 11 */ + TWSS_A3 = 11, + /** 12 */ + TWSS_B3 = 12, + /** 13 */ + TWSS_A6 = 13, + /** 14 */ + TWSS_C4 = 14, + /** 15 */ + TWSS_C5 = 15, + /** 16 */ + TWSS_C6 = 16, + /** Added 1.8 + * 17 + */ + TWSS_4A0 = 17, + /** 18 */ + TWSS_2A0 = 18, + /** 19 */ + TWSS_A0 = 19, + /** 20 */ + TWSS_A1 = 20, + /** 21 */ + TWSS_A2 = 21, + /** 1 */ + TWSS_A4 = 1, + /** 22 */ + TWSS_A7 = 22, + /** 23 */ + TWSS_A8 = 23, + /** 24 */ + TWSS_A9 = 24, + /** 25 */ + TWSS_A10 = 25, + /** 26 */ + TWSS_ISOB0 = 26, + /** 27 */ + TWSS_ISOB1 = 27, + /** 28 */ + TWSS_ISOB2 = 28, + /** 12 */ + TWSS_ISOB3 = 12, + /** 6 */ + TWSS_ISOB4 = 6, + /** 29 */ + TWSS_ISOB5 = 29, + /** 7 */ + TWSS_ISOB6 = 7, + /** 30 */ + TWSS_ISOB7 = 30, + /** 31 */ + TWSS_ISOB8 = 31, + /** 32 */ + TWSS_ISOB9 = 32, + /** 33 */ + TWSS_ISOB10 = 33, + /** 34 */ + TWSS_JISB0 = 34, + /** 35 */ + TWSS_JISB1 = 35, + /** 36 */ + TWSS_JISB2 = 36, + /** 37 */ + TWSS_JISB3 = 37, + /** 38 */ + TWSS_JISB4 = 38, + /** 2 */ + TWSS_JISB5 = 2, + /** 39 */ + TWSS_JISB6 = 39, + /** 40 */ + TWSS_JISB7 = 40, + /** 41 */ + TWSS_JISB8 = 41, + /** 41 */ + TWSS_JISB9 = 42, + /** 43 */ + TWSS_JISB10 = 43, + /** 44 */ + TWSS_C0 = 44, + /** 45 */ + TWSS_C1 = 45, + /** 46 */ + TWSS_C2 = 46, + /** 47 */ + TWSS_C3 = 47, + /** 48 */ + TWSS_C7 = 48, + /** 49 */ + TWSS_C8 = 49, + /** 50 */ + TWSS_C9 = 50, + /** 51 */ + TWSS_C10 = 51, + /** 52 */ + TWSS_USSTATEMENT = 52, + /** 53 */ + TWSS_BUSINESSCARD = 53, + /** 54. Added 2.1 */ + TWSS_MAXSIZE = 54 +} + +/** CAP_FEEDERALIGNMENT values. */ +declare enum EnumDWT_CapFeederAlignment { + /** The alignment is free-floating. Applications should assume that the origin for frames is on the left. */ + TWFA_NONE = 0, + /** The alignment is to the left. */ + TWFA_LEFT = 1, + /** The alignment is centered. This means that the paper will be fed in the middle of the ICAP_PHYSICALWIDTH of the + * device. If this is set, then the Application should calculate any frames with a left offset of zero. + */ + TWFA_CENTER = 2, + /** The alignment is to the right. */ + TWFA_RIGHT = 3 +} +/** CAP_FEEDERORDER values. */ +declare enum EnumDWT_CapFeederOrder { + /** The feeder starts with the top of the first page. */ + TWFO_FIRSTPAGEFIRST = 0, + /** The feeder starts with the top of the last page. */ + TWFO_LASTPAGEFIRST = 1 +} + +/** CAP_PRINTER values. */ +declare enum EnumDWT_CapPrinter { + TWPR_IMPRINTERTOPBEFORE = 0, + TWPR_IMPRINTERTOPAFTER = 1, + TWPR_IMPRINTERBOTTOMBEFORE = 2, + TWPR_IMPRINTERBOTTOMAFTER = 3, + TWPR_ENDORSERTOPBEFORE = 4, + TWPR_ENDORSERTOPAFTER = 5, + TWPR_ENDORSERBOTTOMBEFORE = 6, + TWPR_ENDORSERBOTTOMAFTER = 7 +} + +/** CAP_PRINTERMODE values. */ +declare enum EnumDWT_CapPrinterMode { + /** Specifies that the printed text will consist of a single string. */ + TWPM_SINGLESTRING = 0, + /** Specifies that the printed text will consist of an enumerated list of strings to be printed in order. */ + TWPM_MULTISTRING = 1, + /** Specifies that the printed string will consist of a compound of a String followed by a value followed by a suffix string. */ + TWPM_COMPOUNDSTRING = 2 +} + +/** ICAP_BITDEPTHREDUCTION values. */ +declare enum EnumDWT_CapBitdepthReduction { + TWBR_THRESHOLD = 0, + TWBR_HALFTONE = 1, + TWBR_CUSTHALFTONE = 2, + TWBR_DIFFUSION = 3 +} + +/** ICAP_BITORDER values. */ +declare enum EnumDWT_CapBitOrder { + TWBO_LSBFIRST = 0, + /** Indicates that the leftmost bit in the byte (usually bit 7) is the byte's Most Significant Bit. */ + TWBO_MSBFIRST = 1 +} + +/** ICAP_FILTER values. */ +declare enum EnumDWT_CapFilterType { + TWFT_RED = 0, + TWFT_GREEN = 1, + TWFT_BLUE = 2, + TWFT_NONE = 3, + TWFT_WHITE = 4, + TWFT_CYAN = 5, + TWFT_MAGENTA = 6, + TWFT_YELLOW = 7, + TWFT_BLACK = 8 +} + +/** ICAP_FLASHUSED2 values. */ +declare enum EnumDWT_CapFlash { + TWFL_NONE = 0, + TWFL_OFF = 1, + TWFL_ON = 2, + TWFL_AUTO = 3, + TWFL_REDEYE = 4 +} + +/** ICAP_FLIPROTATION values. */ +declare enum EnumDWT_CapFlipRotation { + /** The images to be scanned are viewed in book form, flipping each page from left to right or right to left. */ + TWFR_BOOK = 0, + /** The images to be scanned are viewed in fanfold paper style, flipping each page up or down. */ + TWFR_FANFOLD = 1 +} + +/** ICAP_IMAGEFILTER values. */ +declare enum EnumDWT_CapImageFilter { + TWIF_NONE = 0, + TWIF_AUTO = 1, + /** Good for halftone images. */ + TWIF_LOWPASS = 2, + /** Good for improving text. */ + TWIF_BANDPASS = 3, + /** Good for improving fine lines. */ + TWIF_HIGHPASS = 4, + TWIF_TEXT = 3, + TWIF_FINELINE = 4 +} + +/** ICAP_LIGHTPATH values. */ +declare enum EnumDWT_CapLightPath { + TWLP_REFLECTIVE = 0, + TWLP_TRANSMISSIVE = 1 +} + +/** ICAP_LIGHTSOURCE values. */ +declare enum EnumDWT_CapLightSource { + TWLS_RED = 0, + TWLS_GREEN = 1, + TWLS_BLUE = 2, + TWLS_NONE = 3, + TWLS_WHITE = 4, + TWLS_UV = 5, + TWLS_IR = 6 +} + +/** TWEI_MAGTYPE values. (MD_ means Mag Type) Added 2.0 */ +declare enum EnumDWT_MagType { + /** Added 2.0 */ + TWMD_MICR = 0, + /** added 2.1 */ + TWMD_RAW = 1, + /** added 2.1 */ + TWMD_INVALID = 2 +} + +/** ICAP_NOISEFILTER values. */ +declare enum EnumDWT_CapNoiseFilter { + TWNF_NONE = 0, + TWNF_AUTO = 1, + TWNF_LONEPIXEL = 2, + TWNF_MAJORITYRULE = 3 +} + +/** ICAP_ORIENTATION values. */ +declare enum EnumDWT_CapORientation { + TWOR_ROT0 = 0, + TWOR_ROT90 = 1, + TWOR_ROT180 = 2, + TWOR_ROT270 = 3, + TWOR_PORTRAIT = 0, + TWOR_LANDSCAPE = 3, + /** 2.0 */ + TWOR_AUTO = 4, + /** 2.0 */ + TWOR_AUTOTEXT = 5, + /** 2.0 */ + TWOR_AUTOPICTURE = 6 +} + +/** ICAP_OVERSCAN values. */ +declare enum EnumDWT_CapOverscan { + TWOV_NONE = 0, + TWOV_AUTO = 1, + TWOV_TOPBOTTOM = 2, + TWOV_LEFTRIGHT = 3, + TWOV_ALL = 4 +} + +/** ICAP_PIXELFLAVOR values. */ +declare enum EnumDWT_CapPixelFlavor { + /** Zero pixel represents darkest shade. zero pixel represents darkest shade */ + TWPF_CHOCOLATE = 0, + /** Zero pixel represents lightest shade. zero pixel represents lightest shade */ + TWPF_VANILLA = 1 +} + +/** ICAP_PLANARCHUNKY values. */ +declare enum EnumDWT_CapPlanarChunky { + TWPC_CHUNKY = 0, + TWPC_PLANAR = 1 +} + +/** Data source status. */ +declare enum EnumDWT_DataSourceStatus { + /** Indicate the data source is closed. */ + TWDSS_CLOSED = 0, + /** Indicate the data source is opened. */ + TWDSS_OPENED = 1, + /** Indicate the data source is enabled. */ + TWDSS_ENABLED = 2, + /** Indicate the data source is acquiring image. */ + TWDSS_ACQUIRING = 3 +} + +/** Fit window type */ +declare enum EnumDWT_FitWindowType { + /** Fit the image to the width and height of the window */ + enumFitWindow = 0, + /** Fit the image to the height of the window */ + enumFitWindowHeight = 1, + /** Fit the image to the width of the window */ + enumFitWindowWidth = 2 +} + +declare enum EnumDWT_UploadDataFormat { + Binary = 0, + Base64 = 1 +} + +declare enum EnumDWT_MouseShape { + Default = 0, + Hand = 1, + Crosshair = 2, + Zoom = 3 +} + +/** + * @class + */ +// properties (get/set) / sync functions +interface WebTwain { + /** + * Returns or sets whether multi-page selection is supported. + * @type {bool} + */ + AllowMultiSelect: boolean; + + /** + * [Deprecated.] Returns or sets whether allowing the plugin to send authentication request. The default value of this property is TRUE. + * @type {bool} + */ + AllowPluginAuthentication: boolean; + + /** + * [Deprecated.] Returns or sets whether the async mode is activated. With this mode, Dynamic Web TWAIN is able to upload/download files via HTTP/FTP asynchronously. The default value is false. + * @type {bool} + */ + AsyncMode: boolean; + + /** + * Returns or sets the background color of the main control. It is a value specifying the 24-bit RGB value. + * @type {int} + */ + BackgroundColor: number; + + /** + * Returns or sets the fill color of the selected area of an image when it is cut, erased or rotated. It is a value specifying the 24-bit RGB value. + * @type {int} + */ + BackgroundFillColor: number; + + /** + * [Deprecated.] Returns the number of barcode detected in an image. + * @type {int} + */ + BarcodeCount: number; + + /** + * Returns or sets the pixel bit depths for the current value of PixelType property. This is a runtime property. + * @type {short} + */ + BitDepth: number; + + /** + * Returns the current deviation of the pixels in the image. + * @type {float} + */ + BlankImageCurrentStdDev: number; + + /** + * Returns or sets the standard deviation of the pixels in the image. + * @type {float} + */ + BlankImageMaxStdDev: number; + + /** + * Returns or sets the dividing line between black and white. The default value is 128. + * @type {int} + */ + BlankImageThreshold: number; + + /** + * [Deprecated.] Returns or sets the border style. + * @type {EnumDWT_BorderStyle} + */ + BorderStyle: EnumDWT_BorderStyle; + + /** + * Returns or sets the brightness values available within the Source. This is a runtime property. + * @type {float} + */ + Brightness: number; + + /** + * [Deprecated.] Sets or returns whether brokerprocess is enabled for scanning. + * @type {int} + */ + BrokerProcessType: number; + + /** + * Sets or returns how much physical memory is allowed for storing images currently loaded in Dynamic Web TWAIN. Once the limit is reached, images will be cached on the hard disk. + * @type {int} + */ + BufferMemoryLimit: number; + + /** + * Specifies the capabiltiy to be negotiated. This is a runtime property. + * @type {EnumDWT_Cap} + */ + Capability: EnumDWT_Cap; + + /** + * Sets or returns the index (0-based) of a list to indicate the Current Value when the value of the CapType property is TWON_ENUMERATION. If the data type of the capability is String, the list is in CapItemsString property. For other data types, the list is in CapItems property. This is a runtime property. + * @type {int} + */ + CapCurrentIndex: number; + + /** + * Sets or returns the current value in a range when the value of the CapType property is TWON_RANGE. This is a runtime property. + * @type {double} + */ + CapCurrentValue: number; + + /** + * Returns the index (0-based) of a list to indicate the Default Value when the value of the CapType property is TWON_ENUMERATION. If the data type of the capability is String, the list is in CapItemsString property. For other data types, the list is in CapItems property. This is a runtime, read-only property. + * @type {int} + */ + CapDefaultIndex: number; + + /** + * Returns the default value in a range when the value of the CapType property is TWON_RANGE. This is a runtime, read-only property. + * @type {double} + */ + CapDefaultValue: number; + + /** + * Sets or returns the maximum value in a range when the value of the CapType property is TWON_RANGE. This is a runtime property. + * @type {double} + */ + CapMaxValue: number; + + /** + * Sets or returns the minimum value in a range when the value of the CapType property is TWON_RANGE. This is a runtime property. + * @type {double} + */ + CapMinValue: number; + + /** + * [Deprecated.] Sets or returns how many items are in the list when the value of the CapType property is TWON_ARRAY or TWON_ENUMERATION. For String data type, the list is in CapItemsString property. For other data types, the list is in CapItems property. This is a runtime property. + * @type {int} + */ + CapNumItems: number; + + /** + * [Deprecated.] Replaced by GetCapItemsString method and SetCapItemsString method. + * @type {string} + */ + CapItemsString: string; + + /** + * Sets or returns the step size in a range when the value of the CapType property is TWON_RANGE. This is a runtime property. + * @type {double} + */ + CapStepSize: number; + + /** + * Sets or returns the type of capability container used to exchange capability information between application and source. This is a runtime property. + * @type {EnumDWT_CapType} + */ + CapType: EnumDWT_CapType; + + /** + * Returns or sets the value of the capability specified by Capability property when the value of the CapType property is TWON_ONEVALUE. This is a runtime property. + * @type {double} + */ + CapValue: number; + + /** + * Sets or returns the string value for a capability when the value of the CapType property is TWON_ONEVALUE. This is a runtime property. + * @type {string} + */ + CapValueString: string; + + /** + * Sets or returns the value type for reading the value of a capability. This is a runtime property. + * @type {short} + */ + CapValueType: number; + + /** + * Returns or sets the contrast values available within the Source. This is a runtime property. + * @type {float} + */ + Contrast: number; + + /** + * Sets or returns the product name string for the application identity. + * @type {string} + */ + ProductName: string; + + /** + * Returns or sets current index of image in buffer. This is a runtime property. + * @type {short} + */ + CurrentImageIndexInBuffer: number; + + /** + * Returns the device name of current source. This is a runtime, read-only property. + * @type {string} + */ + CurrentSourceName: string; + + /** + * Returns the value indicating the data source status. This is a runtime, read-only property. + * @type {int} + */ + DataSourceStatus: number; + + /** + * Returns the device name of default source. This is a runtime, read-only property. + * @type {string} + */ + DefaultSourceName: string; + + /** + * Returns whether the source supports duplex. If so, it further returns the level of duplex the Source supports (one pass or two pass duplex). This is a runtime, read-only property. + * @type {int} + */ + Duplex: number; + + /** + * [Deprecated.] Returns or sets whether the user can zoom image using hot key. + * @type {bool} + */ + EnableInteractiveZoom: boolean; + + /** + * Returns the error code. This is a runtime, read-only property. + * @type {int} + */ + ErrorCode: number; + + /** + * Returns the error string. This is a runtime, read-only property. + * @type {string} + */ + ErrorString: string; + + /** + * Returns or sets whether to resize the image to fit the image to the width or height of the window. To use the property, the view mode should be set to -1 by -1. You can use SetViewMode method to set the view mode. + * @type {EnumDWT_FitWindowType} + */ + FitWindowType: EnumDWT_FitWindowType; + + /** + * Returns or sets the password used to log into the FTP server. + * @type {string} + */ + FTPPassword: string; + + /** + * Returns or sets the port number of the FTP server. + * @type {int} + */ + FTPPort: number; + + /** + * Returns or sets the user name used to log into the FTP server. + * @type {string} + */ + FTPUserName: string; + + /** + * Returns how many images are in buffer. This is a runtime, read-only property. + * @type {short} + */ + HowManyImagesInBuffer: number; + + /** + * Specifies the field name of uploaded image through POST. + * @type {string} + */ + HttpFieldNameOfUploadedImage: string; + + /** + * [Deprecated.] Sets or returns the password used to log into the HTTP server. + * @type {string} + */ + HTTPPassword: string; + + /** + * Returns or sets the port number of the HTTP server. + * @type {int} + */ + HTTPPort: number; + + /** + * Returns the response string from the HTTP server if an error occurs for HTTPUploadThroughPost() method. This is a runtime, read-only property. + * @type {string} + */ + HTTPPostResponseString: string; + + /** + * [Deprecated.] Returns or sets the user name used to log into the HTTP server. + * @type {string} + */ + HTTPUserName: string; + + /** + * Returns or sets whether the feature of disk caching is enabled. + * @type {bool} + */ + IfAllowLocalCache: boolean; + + /** + * Returns or sets whether insert or append new scanned images. + * @type {bool} + */ + IfAppendImage: boolean; + + /** + * Returns or sets whether the Source's Auto-brightness function is enabled. This is a runtime property. + * @type {bool} + */ + IfAutoBright: boolean; + + /** + * Returns or sets whether the data source (scanner) will discard blank images during scanning. The property works only if the device and its driver support discarding blank pages. You can find whether your device supports this capbility from its user manual. Or, you can use the built-in methods of Dynamic Web TWAIN to detect blank images: IsBlankImage, IsBlankImageEx. + * @type {bool} + */ + IfAutoDiscardBlankpages: boolean; + + /** + * Returns or sets whether the Source enable automatic document feeding process. This is a runtime property. + * @type {bool} + */ + IfAutoFeed: boolean; + + /** + * Turns automatic border detection on and off. The property works only if the device and its driver support detecting the border automatically. You can find whether your device supports this capbility from its user manual. + * @type {bool} + */ + IfAutomaticBorderDetection: boolean; + + /** + * Turns automatic skew correction on and off. + * @type {bool} + */ + IfAutomaticDeskew: boolean; + + /** + * Returns or sets whether the Source enables the automatic document scanning process. This is a runtime property. + * @type {bool} + */ + IfAutoScan: boolean; + + /** + * Returns or sets whether close the Data Source User Interface after acquire all images. Default value of this property is FALSE. + * @type {bool} + */ + IfDisableSourceAfterAcquire: boolean; + + /** + * Returns or sets whether the Source supports duplex. If TRUE, the scanner scans both sides of a paper; otherwise, the scanner will scan only one side of the image. This is a runtime property. + * @type {bool} + */ + IfDuplexEnabled: boolean; + + /** + * Returns or sets whether the Automatic Document Feeder (ADF) is enabled. This is a runtime property. + * @type {bool} + */ + IfFeederEnabled: boolean; + + /** + * Returns whether or not there are documents loaded in the Source's feeder when IfFeederEnabled and IfPaperDetectable are TRUE. This is a runtime, read-only property. + * @type {bool} + */ + IfFeederLoaded: boolean; + + /** + * Returns or sets whether to resize the image to fit the size of window when the view mode is set to -1 by -1. You can use SetViewMode method to set the view mode. + * @type {bool} + */ + IfFitWindow: boolean; + + /** + * [Deprecated.] Returns or sets whether the UI (User Interface) of Source runs in modal state. Default value of this property is TRUE. + * @type {bool} + */ + IfModalUI: boolean; + + /** + * Sets or returns whether Dynamic Web TWAIN uses Graphics Device Interface (GDI) when decoding images. + * @type {bool} + */ + IfOpenImageWithGDIPlus: boolean; + + /** + * Returns the value whether the Source has a paper sensor that can detect documents on the ADF or Flatbed. This is a runtime, read-only property. + * @type {bool} + */ + IfPaperDetectable: boolean; + + /** + * Returns or sets whether FTP passive mode is enabled. + * @type {bool} + */ + IfPASVMode: boolean; + + /** + * [Deprecated.] Returns or sets whether communicate with device in a separate thread. Default value of this property is FALSE. + * @type {bool} + */ + IfScanInNewThread: boolean; + + /** + * Sets or returns whether to show the cancel dialog when uploading images to server. + * @type {bool} + */ + IfShowCancelDialogWhenImageTransfer: boolean; + + /** + * Returns or sets whether to show the file dialog box when saving scanned images or loading images from local folder. + * @type {bool} + */ + IfShowFileDialog: boolean; + + /** + * Returns or sets whether the Source displays a progress indicator during acquisition and transfer, regardless of whether the Source's user interface is active. This is a runtime property. + * @type {bool} + */ + IfShowIndicator: boolean; + + /** + * [Deprecated.] Returns or sets whether the driver of the printer displays the User Interface. + * @type {bool} + */ + IfShowPrintUI: boolean; + + /** + * Returns or sets whether the progress bar will be displayed during the transaction. This is a runtime property. + * @type {bool} + */ + IfShowProgressBar: boolean; + + /** + * Returns or sets whether the Source displays the User Interface. + * @type {bool} + */ + IfShowUI: boolean; + + /** + * Returns or sets whether SSL is used when uploading or downloading images. + * @type {bool} + */ + IfSSL: boolean; + + /** + * Return or sets whether the Source allows to save many images in one TIFF file. The default value is FALSE. + * @type {bool} + */ + IfTiffMultiPage: boolean; + + /** + * Returns whether the Source supports acquisition with the UI (User Interface) disabled. If FALSE, indicates that this Source can only support acquisition with the UI enabled. This is a runtime, read-only property. + * @type {bool} + */ + IfUIControllable: boolean; + + /** + * Sets or returns whether Dynamic Web TWAIN uses the new TWAIN Data Source Manager (TWAINDSM.dll) when acquiring images from TWAIN devices. + * @type {bool} + */ + IfUseTwainDSM: boolean; + + /** + * Specifies whether or not to automatically scroll to the last image or stay on the current image when loading or acquiring images + * @type {bool} + */ + IfAutoScroll: boolean; + + /** + * [Deprecated.] The number of bits in each image pixel (or bit depth). This is a runtime, read-only property. + * @type {short} + */ + ImageBitsPerPixel: number; + + /** + * Returns or sets whether a TWAIN driver or Native Scan of Mac OS X is used for document scanning. This property works for Mac edition only. + * @type {int} + */ + ImageCaptureDriverType: number; + + /** + * [Deprecated.] Returns or sets whether the image enumerator is enabled in Image Editor. + * @type {bool} + */ + ImageEditorIfEnableEnumerator: boolean; + + /** + * [Deprecated.] Returns or sets whether the Image Editor is a modal window. + * @type {bool} + */ + ImageEditorIfModal: boolean; + + /** + * [Deprecated.] Returns or sets whether the Image Editor is read-only. + * @type {bool} + */ + ImageEditorIfReadonly: boolean; + + /** + * [Deprecated.] Returns or sets the title of Image Editor window. + * @type {string} + */ + ImageEditorWindowTitle: string; + + /** + * Returns the document number of the current image. This is a runtime, read-only property. + * @type {int} + */ + ImageLayoutDocumentNumber: number; + + /** + * Returns the value of the bottom-most edge of the current image frame (in Unit). This is a read-only runtime property. + * @type {float} + */ + ImageLayoutFrameBottom: number; + + /** + * Returns the value of the left-most edge of the current image frame (in Unit). This is a runtime, read-only property. + * @type {float} + */ + ImageLayoutFrameLeft: number; + + /** + * Returns the frame number of the current image. This is a runtime, read-only property. + * @type {int} + */ + ImageLayoutFrameNumber: number; + + /** + * Returns the value of the right-most edge of the current image frame (in Unit). This is a runtime, read-only property. + * @type {float} + */ + ImageLayoutFrameRight: number; + + /** + * Returns the value of the top-most edge of the current image frame (in Unit). This is a runtime, read-only property. + * @type {float} + */ + ImageLayoutFrameTop: number; + + /** + * Returns the page number of the current image. This is a runtime, read-only property. + * @type {Long} + */ + ImageLayoutPageNumber: number; + + /** + * [Deprecated.] Returns how tall/long, in pixels, the image is. This is a runtime, read-only property. + * @type {int} + */ + ImageLength: number; + + /** + * Returns or sets the margin between images when multiple images are displayed in Dynamic Web TWAIN. + * @type {short} + */ + ImageMargin: number; + + /** + * Returns the pixel type of the current image. This is a runtime, read-only property. Please note the property is only valid in OnPreTransfer and OnPostTransfer event. + * @type {EnumDWT_PixelType} + */ + ImagePixelType: EnumDWT_PixelType; + + /** + * [Deprecated.] Returns how width, in pixels, the image is. This is a runtime, read-only property. + * @type {int} + */ + ImageWidth: number; + + /** + * [Deprecated.] Returns the X resolution of the current image. X resolution is the number of pixels per Unit in the horizontal direction. This is a runtime, read-only property. + * @type {float} + */ + ImageXResolution: number; + + /** + * [Deprecated.] Returns the Y resolution of the current image. Y resolution is the number of pixels per Unit in the vertical direction. This is a runtime, read-only property. + * @type {float} + */ + ImageYResolution: number; + + /** + * Returns or sets the quality of JPEG files and PDF files using JPEG compression. + * @type {short} + */ + JPEGQuality: number; + + /** + * Returns or sets the log level for debugging. + * @type {short} + */ + LogLevel: number; + + /** + * Return the magnetic data if the scanner support magnetic data recognition. + * @type {string} + */ + MagData: string; + + /** + * Return the magnetic type if the scanner support magnetic data recognition. + * @type {short} + */ + MagType: number; + + /** + * Sets or returns the manufacture string for the application identity. + * @type {string} + */ + Manufacturer: string; + + /** + * Returns or sets the maximum number of images can be held in buffer. + * @type {short} + */ + MaxImagesInBuffer: number; + + /** + * [Deprecated.] Returns or sets how many threads can be used when you upload files through POST. + * @type {int} + */ + MaxInternetTransferThreads: number; + + /** + * Sets or returns the maximum allowed size when Dynamic Web TWAIN uploads a document. + * @type {int} + */ + MaxUploadImageSize: number; + + /** + * Returns or sets the shape of the mouse. + * @type {bool} + */ + MouseShape: boolean; + + /** + * Returns the X co-ordinate of the mouse. This is a runtime property. + * @type {int} + */ + MouseX: number; + + /** + * Returns the Y co-ordinate of the mouse. This is a runtime property. + * @type {int} + */ + MouseY: number; + + /** + * Returns or sets the page size(s) the Source can/should use to acquire image data. This is a runtime property. + * @type {short} + */ + PageSize: number; + + /** + * Returns or sets the name of the person who creates the PDF document. + * @type {string} + */ + PDFAuthor: string; + + /** + * Returns or sets the compression type of PDF files. This is a runtime property. + * @type {EnumDWT_PDFCompressionType} + */ + PDFCompressionType: EnumDWT_PDFCompressionType; + + /** + * Returns or sets the date when the PDF document is created. + * @type {string} + */ + PDFCreationDate: string; + + /** + * Returns or sets the name of the application that created the original document, if the PDF document is converted from another form. + * @type {string} + */ + PDFCreator: string; + + /** + * Returns or sets the keywords associated with the PDF document. + * @type {string} + */ + PDFKeywords: string; + + /** + * Returns or sets the date when the PDF document is last modified. + * @type {string} + */ + PDFModifiedDate: string; + + /** + * Returns or sets the name of the application that converted the PDF document from its native. + * @type {string} + */ + PDFProducer: string; + + /** + * Returns or sets the subject of the PDF document. + * @type {string} + */ + PDFSubject: string; + + /** + * Returns or sets the title of the PDF document. + * @type {string} + */ + PDFTitle: string; + + /** + * Returns or sets the value of the PDF version. + * @type {string} + */ + PDFVersion: string; + + /** + * Returns the number of transfers the Source is ready to supply, upon demand. This is a runtime, read-only property. + * @type {short} + */ + PendingXfers: number; + + /** + * Returns or sets the pixel flavor for acquired images. This is a runtime property. + * @type {short} + */ + PixelFlavor: number; + + /** + * Returns or sets the pixel type of current data source. This is a runtime property. Using this property after calling OpenSource() method and before calling AcquireImage(). + * @type {EnumDWT_PixelType} + */ + PixelType: EnumDWT_PixelType; + + /** + * Sets or returns the product family string for the application identity. + * @type {string} + */ + ProductFamily: string; + + /** + * Sets the product key. A product key is generated in Licensing Tool which is intalled with Dynamic Web TWAIN. Each product key corresponds with a license. + * @type {string} + */ + ProductKey: string; + + /** + * [Deprecated.] Returns or sets the name of the proxy server. + * @type {string} + */ + ProxyServer: string; + + /** + * Returns or sets the current resolution for acquired images. This is a runtime property. + * @type {float} + */ + Resolution: number; + + /** + * Returns or sets how many scanned images are selected. + * @type {short} + */ + SelectedImagesCount: number; + + /** + * Returns or sets the border color of the selected image. It is a value specifying the 24-bit RGB value. + * @type {int} + */ + SelectionImageBorderColor: number; + + /** + * Specifies a fixed aspect ratio to be used for selecting an area. + * @type {float} + */ + SelectionRectAspectRatio: number; + + /** + * Returns how many sources are installed in the system. This is a runtime, read-only property. + * @type {int} + */ + SourceCount: number; + + /** + * [Deprecated.] Replaced by GetSourceNameItems method. + * @type {string} + */ + SourceNameItems: string; + + /** + * [Deprecated.] + * @type {string} + */ + GetSourceNames: string; + + /** + * Returns or sets the compression type of TIFF files. This is a runtime property. + * @type {EnumDWT_TIFFCompressionType} + */ + TIFFCompressionType: EnumDWT_TIFFCompressionType; + + /** + * Sets or returns the transfer mode. + * @type {EnumDWT_TransferMode} + */ + TransferMode: EnumDWT_TransferMode; + + /** + * Returns or sets the unit of measure. This is a runtime property. + * @type {short} + */ + Unit: number; + + /** + * Sets or returns the version info string for the application identity. + * @type {string} + */ + VersionInfo: string; + + /** + * Returns and sets the number of images you are willing to transfer per session. This is a runtime property. + * @type {short} + */ + XferCount: number; + + /** + * Returns or sets zoom factor for the image, only valid When the view mode is set to -1 by -1. + * @type {float} + */ + Zoom: number; + + /** + * Binds a specified function to an event, so that the function gets called whenever the event fires. + * @method WebTwain#RegisterEvent + * @param {string} name the name of the event that the function is bound to. + * @param {object} evt specifies the function to call when event fires. + * @return {bool} + */ + RegisterEvent(name: string, evt: object): boolean; + + // --- SCAN start -- + + /** + * Cancels all pending transfers. + * @method WebTwain#CancelAllPendingTransfers + * @return {bool} + */ + CancelAllPendingTransfers(): boolean; + + /** + * Closes Data Source. + * @method WebTwain#CloseSource + * @return {bool} + */ + CloseSource(): boolean; + + /** + * Closes and unloads Data Source Manager. + * @method WebTwain#CloseSourceManager + * @return {bool} + */ + CloseSourceManager(): boolean; + + /** + * Disable the source. If the source's user interface is displayed when the source is enabled, it will be closed. + * @method WebTwain#DisableSource + * @return {bool} + */ + DisableSource(): boolean; + + /** + * Sets the Source to eject the current page and advance the next page in the document feeder into the feeder acquire area when IfFeederEnabled is TRUE. + * @method WebTwain#FeedPage + * @return {bool} + */ + FeedPage(): boolean; + + /** + * Retrieve the device type of the currently selected data source, it might be a scanner, a web camera, etc. + * @method WebTwain#GetDeviceType + * @return {int} + */ + GetDeviceType(): number; + + /** + * Get the source name according to the source index. + * @method WebTwain#GetSourceNameItems + * @param {short} index int index. Index is 0-based and can not be greater than SourceCount property. + * @return {string} + */ + GetSourceNameItems(index: number): string; + + /** + * Loads the specified Source into main memory and causes its initialization, + * placing Dynamic Web TWAIN into Capability Negotiation state. If no source is + * specified (no SelectSource() or SelectSourceByIndex() is called), opens the default source. + * @method WebTwain#OpenSource + * @return {bool} + */ + OpenSource(): boolean; + + /** + * Loads and opens Data Source Manager. + * @method WebTwain#OpenSourceManager + * @return {bool} + */ + OpenSourceManager(): boolean; + + /** + * Reverts the current image layout to the Data Source's default. + * @method WebTwain#ResetImageLayout + * @return {bool} + */ + ResetImageLayout(): boolean; + + /** + * Sets the Source to return the current page to the input side of the document feeder and + * feed the last page from the outside of the feeder back into the acquisition area if IfFeederEnabled is TRUE. + * @method WebTwain#RewindPage + * @return {bool} + */ + RewindPage(): boolean; + + /** + * Brings up the TWAIN Data Source Manager's Source Selection User Interface (UI) + * so that user can choose which Data Source to be the current Source. + * @method WebTwain#SelectSource + * @return {bool} + */ + SelectSource(): boolean; + + /** + * Selects the index-the source in SourceNameItems property as the current source. + * @method WebTwain#SelectSourceByIndex + * @param {short} index It is the index of SourceNameItems property. + * @return {bool} + */ + SelectSourceByIndex(index: number): boolean; + + /** + * Sets file name and file format information used in File Transfer Mode. + * @method WebTwain#SetFileXferInfo + * @param {string} fileName the name of the file to be used in transfer. + * @param {EnumDWT_FileFormat} fileFormat an enumerated value indicates the format of the image. + * @return {bool} + */ + SetFileXferInfo(fileName: string, fileFormat: EnumDWT_FileFormat): boolean; + + /** + * Sets the left, top, right, and bottom sides of the image layout rectangle for the current Data Source. + * @method WebTwain#SetImageLayout + * @param {float} left specifies the floating point number for the left side of the image layout rectangle. + * @param {float} top specifies the floating point number for the top side of the image layout rectangle. + * @param {float} right specifies the floating point number for the right side of the image layout rectangle. + * @param {float} bottom specifies the floating point number for the bottom side of the image layout rectangle. + * @return {bool} + */ + SetImageLayout(left: number, top: number, right: number, bottom: number): boolean; + + /** + * Clears all the web forms which are used for image uploading. + * @method WebTwain#ClearAllHTTPFormField + * @return {bool} + */ + ClearAllHTTPFormField(): boolean; + + /** + * Clears the content of all custom tiff tags. + * @method WebTwain#ClearTiffCustomTag + * @return {void} + */ + ClearTiffCustomTag(): void; + + /** + * Check whether a certain file exists on the local disk. + * @method WebTwain#FileExists + * @param {string} localFile specifies the absolute path of the local file. + * @return {bool} + */ + FileExists(localFile: string): boolean; + + /** + * Downloads an image from the FTP server. + * @method WebTwain#FTPDownload + * @param {string} FTPServer the name of the FTP server. + * @param {string} FTPRemoteFile the name of the file to be downloaded. It should be the relative path of the file on the FTP server. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the download succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the download fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + FTPDownload(FTPServer: string, FTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Directly download a file from the FTP server to local disk without loading it into Dynamic Web TWAIN. + * @method WebTwain#FTPDownloadDirectly + * @param {string} FTPServer the name of the FTP server. + * @param {string} FTPRemoteFile the name of the file to be downloaded. It should be the relative path of the file on the FTP server. + * @param {string} localFile specify a full path to store the file. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the download succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the download fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + FTPDownloadDirectly(FTPServer: string, FTPRemoteFile: string, localFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Downloads an image from the FTP server. + * @method WebTwain#FTPDownloadEx + * @param {string} FTPServer the name of the FTP server. + * @param {string} FTPRemoteFile the name of the file to be downloaded. It should be the relative path of the file on the FTP server. + * @param {EnumDWT_ImageType} lImageType simage format of the file to be downloaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the download succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the download fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + FTPDownloadEx(FTPServer: string, FTPRemoteFile: string, lImageType: EnumDWT_ImageType, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Uploads the image of a specified index in the buffer to the FTP server. + * @method WebTwain#FTPUpload + * @param {string} FTPServer the name of the FTP server. + * @param {short} sImageIndex specifies the index of the image in the buffer. The index is 0-based. + * @param {string} FTPRemoteFile the name of the file to be created on the FTP server. It should be a relative path on the FTP server. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + FTPUpload(FTPServer: string, sImageIndex: number, FTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Directly upload a specific file to the FTP server without loading it into Dynamic Web TWAIN. + * @method WebTwain#FTPUploadDirectly + * @param {string} FTPServer the name of the FTP server. + * @param {string} localFile specify the the full path of a local file. + * @param {string} FTPRemoteFile the name of the file to be created on the FTP server. It should be a relative path on the FTP server. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + FTPUploadDirectly(FTPServer: string, localFile: string, FTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Uploads the image of a specified index in the buffer to the FTP server as a specified image format. + * @method WebTwain#FTPUploadEx + * @param {string} FTPServer the name of the FTP server. + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {string} FTPRemoteFile the name of the file to be created on the FTP server. It should be a relative path on the FTP server. + * @param {EnumDWT_ImageType} lImageType the image format of the file to be created on the FTP server. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + FTPUploadEx(FTPServer: string, sImageIndex: number, FTPRemoteFile: string, lImageType: EnumDWT_ImageType, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Uploads all images in buffer to the FTP server as Multi-Page TIFF. + * @method WebTwain#FTPUploadAllAsMultiPageTIFF + * @param {string} FTPServer the name of the FTP server. + * @param {string} FTPRemoteFile the name of the image to be uploaded. It should be a relative path on the FTP server. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + FTPUploadAllAsMultiPageTIFF(FTPServer: string, FTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Uploads all images in buffer to the FTP server as Multi-Page PDF. + * @method WebTwain#FTPUploadAllAsPDF + * @param {string} FTPServer the name of the FTP server. + * @param {string} FTPRemoteFile the name of the image to be uploaded. It should be a relative path on the FTP server. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + FTPUploadAllAsPDF(FTPServer: string, FTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Uploads the selected images in buffer to the FTP server as Multi-Page PDF. + * @method WebTwain#FTPUploadAsMultiPagePDF + * @param {string} FTPServer the name of the FTP server. + * @param {string} FTPRemoteFile the name of the image to be uploaded. It should be a relative path on the FTP server. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + FTPUploadAsMultiPagePDF(FTPServer: string, FTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Uploads the selected images in buffer to the FTP server as Multi-Page TIFF. + * @method WebTwain#FTPUploadAsMultiPageTIFF + * @param {string} FTPServer the name of the FTP server. + * @param {string} FTPRemoteFile the name of the image to be uploaded. It should be a relative path on the FTP server. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + FTPUploadAsMultiPageTIFF(FTPServer: string, FTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Downloads an image from the HTTP server. + * @method WebTwain#HTTPDownload + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} HTTPRemoteFile the name of the image to be downloaded. It should be the relative path of the file on the HTTP server. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the download succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the download fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + HTTPDownload(HTTPServer: string, HTTPRemoteFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Directly downloads a file from the HTTP server to a local disk without loading it into Dynamic Web TWAIN. + * @method WebTwain#HTTPDownloadDirectly + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} HTTPRemoteFile The relative path of the file on the HTTP server. + * @param {string} localFile specify the location to store the downloaded file. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the download succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the download fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + HTTPDownloadDirectly(HTTPServer: string, HTTPRemoteFile: string, localFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Downloads an image from the HTTP server. + * @method WebTwain#HTTPDownloadEx + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} HTTPRemoteFile the relative path of the file on the HTTP server, or path to an action page (with necessary parameters) which gets and sends back the image stream to the client (please check the sample for more info) + * @param {EnumDWT_ImageType} lImageType the image format of the file to be downloaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the download succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the download fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + HTTPDownloadEx(HTTPServer: string, HTTPRemoteFile: string, lImageType: EnumDWT_ImageType, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Download an image from the server using a HTTP Post call. + * @method WebTwain#HTTPDownloadThroughPost + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} HTTPRemoteFile the relative path of the file on the HTTP server, or path to an action page (with necessary parameters) which gets and sends back the image stream to the client (please check the sample for more info) + * @param {EnumDWT_ImageType} lImageType the image format of the file to be downloaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the download succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the download fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + HTTPDownloadThroughPost(HTTPServer: string, HTTPRemoteFile: string, lImageType: EnumDWT_ImageType, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Uploads the image of a specified index in the buffer to the HTTP server through the HTTP POST method. + * @method WebTwain#HTTPUploadThroughPost + * @param {string} HTTPServer the name of the HTTP server. + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {string} ActionPage the specified page for posting image files. This is the relative path of the page, not the absolute path. For example: "upload.asp", not "http://www.webserver.com/upload.asp". + * @param {string} fileName the name of the image to be uploaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnHttpUploadSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnHttpUploadFailure. + * @return {bool} + */ + HTTPUploadThroughPost(HTTPServer: string, sImageIndex: number, ActionPage: string, fileName: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Directly upload a specific local file to the HTTP server through the HTTP POST method without loading it into Dynamic Web TWAIN. + * @method WebTwain#HTTPUploadThroughPostDirectly + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} localFile specifies the path of a local file . + * @param {string} ActionPage the specified page for posting files. This is the relative path of the page, not the absolute path. For example: "upload.asp", not "http://www.webserver.com/upload.asp". + * @param {string} fileName the name of the file to be uploaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnHttpUploadSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnHttpUploadFailure. + * @return {bool} + */ + HTTPUploadThroughPostDirectly(HTTPServer: string, localFile: string, ActionPage: string, fileName: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Uploads the image of a specified index in the buffer to the HTTP server as a specified image format through the HTTP POST method. + * @method WebTwain#HTTPUploadThroughPostEx + * @param {string} HTTPServer the name of the HTTP server. + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {string} ActionPage the specified page for posting image files. This is the relative path of the page, not the absolute path. For example: "upload.asp", not "http://www.webserver.com/upload.asp". + * @param {string} fileName the name of the image to be uploaded. + * @param {EnumDWT_ImageType} lImageType the image format of the file to be created on the HTTP server.s + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnHttpUploadSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnHttpUploadFailure. + * @return {bool} + */ + HTTPUploadThroughPostEx(HTTPServer: string, sImageIndex: number, ActionPage: string, fileName: string, lImageType: EnumDWT_ImageType, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Uploads all images in the buffer to the HTTP server through the HTTP Post method as a Multi-Page TIFF. + * @method WebTwain#HTTPUploadAllThroughPostAsMultiPageTIFF + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} ActionPage the specified page for posting image files. This is the relative path of the page, not the absolute path. For example: "upload.asp", not "http://www.webserver.com/upload.asp". + * @param {string} fileName the name of the image to be uploaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnHttpUploadSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnHttpUploadFailure. + * @return {bool} + */ + HTTPUploadAllThroughPostAsMultiPageTIFF(HTTPServer: string, ActionPage: string, fileName: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Uploads the selected images in the buffer to the HTTP server through the HTTP Post method as a Multi-Page TIFF. + * @method WebTwain#HTTPUploadThroughPostAsMultiPageTIFF + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} ActionPage the specified page for posting image files. This is the relative path of the page, not the absolute path. For example: "upload.asp", not "http://www.webserver.com/upload.asp". + * @param {string} fileName the name of the image to be uploaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnHttpUploadSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnHttpUploadFailure. + * @return {bool} + */ + HTTPUploadThroughPostAsMultiPageTIFF(HTTPServer: string, ActionPage: string, fileName: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Uploads all images in the buffer to the HTTP server through HTTP Post method as a Multi-Page PDF. + * @method WebTwain#HTTPUploadAllThroughPostAsPDF + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} ActionPage the specified page for posting image files. This is the relative path of the page, not the absolute path. For example: "upload.asp", not "http://www.webserver.com/upload.asp". + * @param {string} fileName the name of the image to be uploaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnHttpUploadSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnHttpUploadFailure. + * @return {bool} + */ + HTTPUploadAllThroughPostAsPDF(HTTPServer: string, ActionPage: string, fileName: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Uploads the selected images in the buffer to the HTTP server through the HTTP Post method as a Multi-Page PDF. + * @method WebTwain#HTTPUploadThroughPostAsMultiPagePDF + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} ActionPage the specified page for posting image files. This is the relative path of the page, not the absolute path. For example: "upload.asp", not "http://www.webserver.com/upload.asp". + * @param {string} fileName the name of the image to be uploaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnHttpUploadSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnHttpUploadFailure. + * @return {bool} + */ + HTTPUploadThroughPostAsMultiPagePDF(HTTPServer: string, ActionPage: string, fileName: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * [Deprecated.] Directly uploads a specific local file to the HTTP server through the HTTP PUT method without loading it into Dynamic Web TWAIN. + * @method WebTwain#HTTPUploadThroughPutDirectly + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} localFile specifies the path of a local file. + * @param {string} RemoteFileName the name of the file to be created on the HTTP server. It should a relative path on the web server. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + HTTPUploadThroughPutDirectly(HTTPServer: string, localFile: string, RemoteFileName: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * [Deprecated.] Uploads the image of a specified index in the buffer to the HTTP server through the HTTP PUT method. + * @method WebTwain#HTTPUploadThroughPut + * @param {string} HTTPServer the name of the HTTP server. + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {string} RemoteFileName the name of the image to be created on the HTTP server. It should a relative path on the web server. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + HTTPUploadThroughPut(HTTPServer: string, sImageIndex: number, RemoteFileName: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * [Deprecated.] Uploads the image of a specified index in the buffer to the HTTP server as a specified image format through the HTTP PUT method. + * @method WebTwain#HTTPUploadThroughPutEx + * @param {string} HTTPServer the name of the HTTP server. + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {string} RemoteFileName the name of the file to be created on the HTTP server. It should a relative path on the web server. + * @param {EnumDWT_ImageType} lImageType the image format of the file to be created on the HTTP server. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + HTTPUploadThroughPutEx(HTTPServer: string, sImageIndex: number, RemoteFileName: string, lImageType: EnumDWT_ImageType, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * [Deprecated.] Uploads all images in the buffer to the HTTP server through the HTTP Put method as a Multi-Page TIFF. + * @method WebTwain#HTTPUploadAllThroughPutAsMultiPageTIFF + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} RemoteFileName the name of the image to be uploaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + HTTPUploadAllThroughPutAsMultiPageTIFF(HTTPServer: string, RemoteFileName: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * [Deprecated.] Uploads the selected images in the buffer to the HTTP server through the HTTP Put method as a Multi-Page TIFF. + * @method WebTwain#HTTPUploadThroughPutAsMultiPageTIFF + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} RemoteFileName the name of the image to be uploaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + HTTPUploadThroughPutAsMultiPageTIFF(HTTPServer: string, RemoteFileName: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * [Deprecated.] Uploads all images in the buffer to the HTTP server through the HTTP Put method as a Multi-Page PDF. + * @method WebTwain#HTTPUploadAllThroughPutAsPDF + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} RemoteFileName the name of the image to be uploaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + HTTPUploadAllThroughPutAsPDF(HTTPServer: string, RemoteFileName: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * [Deprecated.] Uploads the selected images in the buffer to the HTTP server through the HTTP Put method as a Multi-Page PDF. + * @method WebTwain#HTTPUploadThroughPutAsMultiPagePDF + * @param {string} HTTPServer the name of the HTTP server. + * @param {string} RemoteFileName the name of the image to be uploaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + HTTPUploadThroughPutAsMultiPagePDF(HTTPServer: string, RemoteFileName: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Configures how segmented upload is done. + * @method WebTwain#SetUploadSegment + * @param {int} segmentUploadThreshold specifies the threshold (in MB) over which segmented upload will be invoked. + * @param {int} moduleSize specifies the size of each segment (in KB). + * @return {bool} + */ + SetUploadSegment (segmentUploadThreshold: number, moduleSize: number): boolean; + + /** + * Uploads the images specified by the indices to the HTTP server. + * @method WebTwain#HTTPUpload + * @param {string} url the url where the images are sent in a POST request. + * @param {Array} indices indices specifies which images are to be uploaded. + * @param {EnumDWT_ImageType} enumImageType the image format in which the images are to be uploaded. + * @param {EnumDWT_UploadDataFormat} dataFormat whether to upload the images as binary or a base64-based string. + * @param {function} asyncSuccessFunc the function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} asyncFailureFunc the function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + HTTPUpload (url: string, indices: number[], enumImageType: EnumDWT_ImageType, dataFormat: EnumDWT_UploadDataFormat, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Loads a DIB format image from Clipboard into the Dynamic Web TWAIN. + * @method WebTwain#LoadDibFromClipboard + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the loading succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the loading fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + LoadDibFromClipboard(optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Loads an image into the Dynamic Web TWAIN. + * @method WebTwain#LoadImage + * @param {string} localFile the name of the image to be loaded. It should be the absolute path of the image file on the local disk. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the loading succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the loading fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + LoadImage(localFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Loads an image into the Dynamic Web TWAIN. + * @method WebTwain#LoadImageEx + * @param {string} localFile the name of the image to be loaded. It should be the absolute path of the image file on the local disk. + * @param {EnumDWT_ImageType} lImageType the image format of the file to be loaded. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the loading succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the loading fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + LoadImageEx(localFile: string, lImageType: EnumDWT_ImageType, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Loads image from a base64 byte array with the specified file format. + * @method WebTwain#LoadImageFromBase64Binary + * @param {string} bry specifies the base64 string data. + * @param {EnumDWT_ImageType} lImageType specifies the file format. + * @return {bool} + */ + LoadImageFromBase64Binary(bry: string, lImageType: EnumDWT_ImageType): boolean; + + /** + * [Deprecated.] Loads image from a byte array with the specified file format. + * @method WebTwain#LoadImageFromBytes + * @param {int} lBufferSize Specifies the buffer size. + * @param {Array} buffer A byte array of the image data. + * @param {EnumDWT_ImageType} lImageType Specifies the file format. + * @return {bool} + */ + LoadImageFromBytes(lBufferSize: number, buffer: number[], lImageType: EnumDWT_ImageType): boolean; + + /** + * Saves all images in buffer as a MultiPage TIFF file. + * @method WebTwain#SaveAllAsMultiPageTIFF + * @param {string} localFile the name of the MultiPage TIFF file to be saved. It should be an absolute path on the local disk. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the saving succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the saving fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + SaveAllAsMultiPageTIFF(localFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Saves all images in buffer as a Multi-Page PDF file. + * @method WebTwain#SaveAllAsPDF + * @param {string} localFile the name of the Multi-Page PDF file to be saved. It should be an absolute path on the local disk. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the saving succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the saving fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + SaveAllAsPDF(localFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Saves the image of a specified index in buffer as a BMP file. + * @method WebTwain#SaveAsBMP + * @param {string} localFile the name of the BMP file to be saved. It should be an absolute path on the local disk. + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + SaveAsBMP(localFile: string, sImageIndex: number): boolean; + + /** + * Saves the image of a specified index in buffer as a JPEG file. + * @method WebTwain#SaveAsJPEG + * @param {string} localFile the name of the JPEG file to be saved. It should be an absolute path on the local disk. + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + SaveAsJPEG(localFile: string, sImageIndex: number): boolean; + + /** + * Saves the image of a specified index in buffer as a PDF file. + * @method WebTwain#SaveAsPDF + * @param {string} localFile the name of the JPEG file to be saved. It should be an absolute path on the local disk. + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + SaveAsPDF(localFile: string, sImageIndex: number): boolean; + + /** + * Saves the image of a specified index in buffer as a PNG file. + * @method WebTwain#SaveAsPNG + * @param {string} localFile the name of the JPEG file to be saved. It should be an absolute path on the local disk. + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + SaveAsPNG(localFile: string, sImageIndex: number): boolean; + + /** + * Saves the image of a specified index in buffer as a TIFF file. + * @method WebTwain#SaveAsTIFF + * @param {string} localFile the name of the JPEG file to be saved. It should be an absolute path on the local disk. + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + SaveAsTIFF(localFile: string, sImageIndex: number): boolean; + + /** + * Saves the selected images in buffer as a Multipage PDF file. + * @method WebTwain#SaveSelectedImagesAsMultiPagePDF + * @param {string} localFile the name of the MultiPage PDF file to be saved. It should be an absolute path on the local disk. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the saving succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the saving fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + SaveSelectedImagesAsMultiPagePDF(localFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Saves the selected images in buffer as a Multipage TIFF file. + * @method WebTwain#SaveSelectedImagesAsMultiPageTIFF + * @param {string} localFile the name of the MultiPage TIFF file to be saved. It should be an absolute path on the local disk. + * @param {function} optionalAsyncSuccessFunc optional. The function to call when the saving succeeds. Please refer to the function prototype OnSuccess. + * @param {function} optionalAsyncFailureFunc optional. The function to call when the saving fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + SaveSelectedImagesAsMultiPageTIFF(localFile: string, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Saves the selected images in buffer to base64 string. + * @method WebTwain#SaveSelectedImagesToBase64Binary + * @return {string} + */ + SaveSelectedImagesToBase64Binary(): string; + + /** + * [Deprecated.] Saves the selected images in buffer to a byte array in the specified file format. + * @method WebTwain#SaveSelectedImagesToBytes + * @param {int} bufferSize specified the buffer size. + * @param {Array} buffer A byte array of the image data. + * @return {int} + */ + SaveSelectedImagesToBytes(bufferSize: number, buffer: number[]): number; + + /** + * [Deprecated.] Sets current cookie into the Http Header to be used when uploading scanned images through POST. + * @method WebTwain#SetCookie + * @param {string} cookie the cookie on current page. + * @return {void} + */ + SetCookie(cookie: string): void; + + /** + * Sets a text parameter as a filed in a web form. This form is maintained by the component itself (meaning it's not on the page). All fields in this form will be passed to the server when uploading images. + * @method WebTwain#SetHTTPFormField + * @param {string} FieldName specifies the name of a text field in web form. + * @param {string} FieldValue specifies the value of a text field in web form. + * @return {bool} + */ + SetHTTPFormField(FieldName: string, FieldValue: string): boolean; + + /** + * Sets a custom tiff tag. Currently you can set up to 32 tags. The string to be set in a tag can be encoded with base64. + * @method WebTwain#SetTiffCustomTag + * @param {int} tag specifies the tag identifier. The value should be between 600 and 700. + * @param {string} content the string to be set for this tag. The string will be written to the .tiff file when you save/upload it. If the string is base64 encoded, we'll decode it before writing it. + * @param {bool} base64Str if you'd like to encode the string with base64, set this to true. Otherwise, the string will be plin text. + * @return {bool} + */ + SetTiffCustomTag(tag: number, content: string, base64Str: boolean): boolean; + + /** + * Show save file dialog or show open file dialog. + * @method WebTwain#ShowFileDialog + * @param {bool} SaveDialog True -- show save file dialog, False -- show open file dialog. + * @param {string} Filter The filter name specifies the filter pattern (for example, "*.TXT"). To specify multiple filter patterns for a single display string, use a semicolon to separate the patterns (for example, "*.TXT;*.DOC;*.BAK"). A pattern string can be a combination of valid file name characters and the asterisk (*) wildcard character. Do not include spaces in the pattern string. To retrieve a shortcut's target without filtering, use the string "All Files\0*.*\0\0", but the program will replace "\0" with "|" automatically. + * @param {int} FilterIndex The index of the currently selected filter in the File Types control. The buffer pointed to by Filter contains pairs of strings that define the filters. The index is 0-based. + * @param {string} DefExtension Define the default extension. GetOpenFileName and GetSaveFileName append this extension to the file name only if the user fails to type an extension. If this member is NULL and the user fails to type an extension, no extension is appended. + * @param {string} InitialDir The initial directory. The algorithm for selecting the initial directory varies on different platforms. + * @param {bool} AllowMultiSelect True -- allows users to select more than one file, False -- only allows to select one file. + * @param {bool} OverwritePrompt True -- If a file already exists with the same name, the old file will be simply overwritten, False -- not allows to save and overwrite a same name file. + * @param {int} Flags If this parameter equals 0, the program will be initiated with the default flags, otherwise initiated with the cumstom value and paramters "AllowMultiSelect" and "OverwritePrompt" will be useless. + * @return {bool} + */ + ShowFileDialog(SaveDialog: boolean, Filter: string, FilterIndex: number, DefExtension: string, InitialDir: string, AllowMultiSelect: boolean, OverwritePrompt: boolean, Flags: number): boolean; + + /** + * Gets information of the capability specified by the Capability property. + * @method WebTwain#CapGet + * @return {bool} + */ + CapGet(): boolean; + + /** + * Returns the Source's current Value for the specified capability. + * @method WebTwain#CapGetCurrent + * @return {bool} + */ + CapGetCurrent(): boolean; + + /** + * Returns the Source's Default Value for the specified capability. This is the Source's preferred default value. + * @method WebTwain#CapGetDefault + * @return {bool} + */ + CapGetDefault(): boolean; + + /** + * Returns the value of the bottom-most edge of the specified frame. + * @method WebTwain#CapGetFrameBottom + * @param {short} index specifies the value of which frame to get. The index is 0-based. + * @return {float} + */ + CapGetFrameBottom(index: number): number; + + /** + * Returns the value (in Unit) of the left-most edge of the specified frame. + * @method WebTwain#CapGetFrameLeft + * @param {short} index specifies the value of which frame to get. The index is 0-based. + * @return {float} + */ + CapGetFrameLeft(index: number): number; + + /** + * Returns the value (in Unit) of the left-most edge of the specified frame. + * @method WebTwain#CapGetFrameRight + * @param {short} index specifies the value of which frame to get. The index is 0-based. + * @return {float} + */ + CapGetFrameRight(index: number): number; + + /** + * Returns the value (in Unit) of the top-most edge of the specified frame. + * @method WebTwain#CapGetFrameTop + * @param {short} index specifies the value of which frame to get. The index is 0-based. + * @return {float} + */ + CapGetFrameTop(index: number): number; + + /** + * Queries whether the Source supports a particular operation on the capability. + * @method WebTwain#CapIfSupported + * @param {EnumDWT_MessageType} messageType specifies the type of capability operation. + * @return {bool} + */ + CapIfSupported(messageType: EnumDWT_MessageType): boolean; + + /** + * Changes the Current Value of the capability specified by Capability property back to its power-on value. + * @method WebTwain#CapReset + * @return {bool} + */ + CapReset(): boolean; + + /** + * Sets the current capability using the container type specified by CapType property. The current capability is specified by Capability property. + * @method WebTwain#CapSet + * @return {bool} + */ + CapSet(): boolean; + + /** + * Sets the values of the specified frame. + * @method WebTwain#CapSetFrame + * @param {short} index specifies the values of which frame to set. The index is 0-based. + * @param {float} left the value (in Unit) of the left-most edge of the specified frame. + * @param {float} top the value (in Unit) of the top-most edge of the specified frame. + * @param {float} right the value (in Unit) of the right-most edge of the specified frame. + * @param {float} bottom the value (in Unit) of the bottom-most edge of the specified frame. + * @return {bool} + */ + CapSetFrame(index: number, left: number, top: number, right: number, bottom: number): boolean; + + /** + * Get the cap item value of the capability specified by Capability property, when the value of the CapType property is TWON_ARRAY or TWON_ENUMERATION. + * @method WebTwain#GetCapItems + * @param {int} index Index is 0-based. It is the index of the cap item. + * @return {double} + */ + GetCapItems(index: number): number; + + /** + * Returns the cap item value of the capability specified by Capability property, when the value of the CapType property is TWON_ARRAY or TWON_ENUMERATION. + * @method WebTwain#GetCapItemsString + * @param {int} index Index is 0-based. It is the index of the cap item. + * @return {string} + */ + GetCapItemsString(index: number): string; + + /** + * Set the value of the specified cap item. + * @method WebTwain#SetCapItems + * @param {int} index Index is 0-based. It is the index of the cap item. + * @param {double} newVal The Double type of CapItems property is used to present Double, Single(float), Long, int and even boolean types. For string type, please use CapItemsstring property. + * @return {void} + */ + SetCapItems(index: number, newVal: number): void; + + /** + * Set the cap item value of the capability specified by Capability property, when the value of the CapType property is TWON_ARRAY or TWON_ENUMERATION. + * @method WebTwain#SetCapItemsString + * @param {int} index Index is 0-based. It is the index of the cap item. + * @param {string} newVal The new value to be set. + * @return {void} + */ + SetCapItemsString(index: number, newVal: string): void; + // --- SCAN end -- + + // --- View & Edit start -- + + /** + * Add text on an image. + * @method WebTwain#AddText + * @param {short} sImageIndex the index of the image that you want to add text to. + * @param {int} x the x coordinate for the text. + * @param {int} y the y coordinate for the text. + * @param {string} text the content of the text that you want to add. + * @param {int} txtColor the color for the text. + * @param {int} backgroundColor the background color. + * @param {float} backgroundRoundRadius ranging from 0 to 0.5. Please NOTE that MAC version does not support this parameter. + * @param {float} backgroundOpacity specifies the opacity of the background of the added text, it ranges from 0 to 1.0. Please NOTE that Mac version only supports value 0 and 1 + * @return {bool} + */ + AddText(sImageIndex: number, x: number, y: number, text: string, txtColor: number, backgroundColor: number, backgroundRoundRadius: number, backgroundOpacity: number): boolean; + + /** + * Create the font for adding text using the method AddText. + * @method WebTwain#CreateTextFont + * @param {int} height Specifies the desired height (in logical units) of the font.The absolute value of nHeight must not exceed 16,384 device units after it is converted.For all height comparisons, the font mapper looks for the largest font that does not exceed the requested size or the smallest font if all the fonts exceed the requested size. + * @param {int} width Specifies the average width (in logical units) of characters in the font. If Width is 0, the aspect ratio of the device will be matched against the digitization aspect ratio of the available fonts to find the closest match, which is determined by the absolute value of the difference. + * @param {int} escapement Specifies the angle (in 0.1-degree units) between the escapement vector and the x-axis of the display surface. The escapement vector is the line through the origins of the first and last characters on a line. The angle is measured counterclockwise from the x-axis. + * @param {int} orientation Specifies the angle (in 0.1-degree units) between the baseline of a character and the x-axis.The angle is measured counterclockwise from the x-axis for coordinate systems in which the y-direction is down and clockwise from the x-axis for coordinate systems in which the y-direction is up. + * @param {int} weight Specifies the font weight (in inked pixels per 1000). The described valuesare approximate; the actual appearance depends on the typeface. Some fonts haveonly FW_NORMAL, FW_REGULAR, and FW_BOLD weights. If FW_DONTCARE is specified, a default weight is used. + * @param {short} italic Specifies an italic font if set to TRUE. + * @param {short} underline Specifies an underlined font if set to TRUE. + * @param {short} strikeOut A strikeout font if set to TRUE. + * @param {short} charSet Specifies the font's character set. The OEM character set is system-dependent. Fonts with other character sets may exist in the system. An application that uses a font with an unknown character set must not attempt to translate or interpret strings that are to be rendered with that font. + * @param {short} outputPrecision Specifies the desired output precision. The output precision defines how closely the output must match the requested font's height, width, character orientation, escapement, and pitch. + * @param {short} clipPrecision Specifies the desired clipping precision. The clipping precision defines how to clip characters that are partially outside the clipping region. + * @param {short} quality Specifies the font's output quality, which defines how carefully the GDI must attempt to match the logical-font attributes to those of an actual physical font. + * @param {short} pitchAndFamily The pitch and family of the font. + * @param {string} faceName the typeface name, the length of this string must not exceed 32 characters, including the terminating null character. + * @return {bool} + */ + CreateTextFont(height: number, width: number, escapement: number, orientation: number, weight: number, italic: number, underline: number, strikeOut: number, charSet: number, outputPrecision: number, clipPrecision: number, quality: number, pitchAndFamily: number, faceName: string): boolean; + + /** + * Copies the image of a specified index in buffer to clipboard in DIB format. + * @method WebTwain#CopyToClipboard + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + CopyToClipboard(sImageIndex: number): boolean; + + /** + * Clears the specified area of a specified image, and fill the area with the fill color. + * @method WebTwain#Erase + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {int} left specifies the x-coordinate of the upper-left corner of the rectangle. + * @param {int} top specifies the y-coordinate of the upper-left corner of the rectangle. + * @param {int} right specifies the x-coordinate of the lower-right corner of the rectangle. + * @param {int} bottom specifies the y-coordinate of the lower-right corner of the rectangle. + * @return {bool} + */ + Erase(sImageIndex: number, left: number, top: number, right: number, bottom: number): boolean; + + /** + * Returns the pixel bit depth of the selected image. + * @method WebTwain#GetImageBitDepth + * @param {short} sImageIndex specifies the index of image. The index is 0-based. + * @return {short} + */ + GetImageBitDepth(sImageIndex: number): number; + + /** + * Returns the width (pixels) of the selected image. This is a read-only property. + * @method WebTwain#GetImageWidth + * @param {short} sImageIndex specifies the index of image. The index is 0-based. + * @return {int} + */ + GetImageWidth(sImageIndex: number): number; + + /** + * Returns the height (pixels) of the selected image. This is a read-only property. + * @method WebTwain#GetImageHeight + * @param {short} sImageIndex specifies the index of image. The index is 0-based. + * @return {int} + */ + GetImageHeight(sImageIndex: number): number; + + /** + * Returns the file size of the new image resized from the image of a specified index in buffer. + * @method WebTwain#GetImageSize + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {int} iWidth specifies the pixel width of the new image. + * @param {int} iHeight specifies the pixel height of the new image. + * @return {double} + */ + GetImageSize(sImageIndex: number, iWidth: number, iHeight: number): number; + + /** + * Pre-calculate the file size of the local image file that is saved from an image of a specified index in buffer. + * @method WebTwain#GetImageSizeWithSpecifiedType + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {short} sImageType specifies the type of an image file.. + * @return {int} + */ + GetImageSizeWithSpecifiedType(sImageIndex: number, sImageType: number): number; + + /** + * Return the horizontal resolution of the specified image. + * @method WebTwain#GetImageXResolution + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {int} + */ + GetImageXResolution(sImageIndex: number): number; + + /** + * Return the vertical resolution of the specified image. + * @method WebTwain#GetImageYResolution + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {int} + */ + GetImageYResolution(sImageIndex: number): number; + + /** + * Returns the index of the selected image. + * @method WebTwain#GetSelectedImageIndex + * @param {short} sSelectedIndex specifies the index of the selected image. + * @return {short} + */ + GetSelectedImageIndex(sSelectedIndex: number): number; + + /** + * You can use the method to select images programatically which is ususally done by mouse clicking. + * @method WebTwain#SetSelectedImageIndex + * @param {short} sSelectedIndex this is the index of an array that holds the indices of selected images. + * @param {short} newVal specifies the index of an image that you want to select. + * @return {void} + */ + SetSelectedImageIndex(selectedIndex: number, newVal: number): void; + + /** + * Pre-calculate the file size of the local image file that is saved from the selected images in buffer. + * @method WebTwain#GetSelectedImagesSize + * @param {int} iImageType specifies the type of an image file. + * @return {int} + */ + GetSelectedImagesSize(iImageType: number): number; + + /** + * Check the skew angle of an image by its index in buffer. + * @method WebTwain#GetSkewAngle + * @param {short} sImageIndex the index of the image in the buffer. + * @return {double} + */ + GetSkewAngle(sImageIndex: number): number; + + /** + * Check the skew angle of a rectangular part of an image by its index in buffer. + * @method WebTwain#GetSkewAngleEx + * @param {short} sImageIndex the index of the image in the buffer. + * @param {int} left specifies the x-coordinate of the upper-left corner of the rectangle. + * @param {int} top specifies the y-coordinate of the upper-left corner of the rectangle. + * @param {int} right specifies the x-coordinate of the lower-right corner of the rectangle. + * @param {int} bottom specifies the y-coordinate of the lower-right corner of the rectangle. + * @return {double} + */ + GetSkewAngleEx(sImageIndex: number, left: number, top: number, right: number, bottom: number): number; + + /** + * [Deprecated.] Detects whether a certain area on an image is blank. + * @method WebTwain#IsBlankImageEx + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {int} left specifies the x-coordinate of the upper-left corner of the rectangle. + * @param {int} top specifies the y-coordinate of the upper-left corner of the rectangle. + * @param {int} right specifies the x-coordinate of the lower-right corner of the rectangle. + * @param {int} bottom specifies the y-coordinate of the lower-right corner of the rectangle. + * @param {bool} bFuzzyMatch specifies whether use fuzzy matching when detecting. + * @return {bool} + */ + IsBlankImageEx(sImageIndex: number, left: number, top: number, right: number, bottom: number, bFuzzyMatch: boolean): boolean; + + /** + * Mirrors the image of a specified index in buffer. + * @method WebTwain#Mirror + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + Mirror(sImageIndex: number): boolean; + + /** + * Decorates image of a specified index in buffer with rectangles of transparent color. + * @method WebTwain#OverlayRectangle + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {int} left specifies the x-coordinate of the upper-left corner of the rectangle. + * @param {int} top specifies the y-coordinate of the upper-left corner of the rectangle. + * @param {int} right specifies the x-coordinate of the lower-right corner of the rectangle. + * @param {int} bottom specifies the y-coordinate of the lower-right corner of the rectangle. + * @param {int} color Specifies the fill color of the rectangle. The byte-ordering of the RGB value is 0xBBGGRR. BB represents blue, GG represents green, RR represents red. + * @param {float} fOpacity Specifies the opacity of the rectangle. The value represents opacity. 1.0 is 100% opaque and 0.0 is totally transparent. + * @return {bool} + */ + OverlayRectangle(sImageIndex: number, left: number, top: number, right: number, bottom: number, color: number, fOpacity: number): boolean; + + /** + * Removes all images in buffer. + * @method WebTwain#RemoveAllImages + * @return {void} + */ + RemoveAllImages(): void; + + /** + * Removes selected images in buffer. + * @method WebTwain#RemoveAllSelectedImages + * @return {bool} + */ + RemoveAllSelectedImages(): boolean; + + /** + * Removes the image of a specified index in buffer. + * @method WebTwain#RemoveImage + * @param {short} sImageIndexToBeDeleted specifies the index of the image to be deleted in buffer. The index is 0-based. + * @return {bool} + */ + RemoveImage(sImageIndexToBeDeleted: number): boolean; + + // Image Operate + /** + * Rotates the image of a specified index in buffer by specified angle. + * @method WebTwain#Rotate + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {float} fAngle Specifies the rotation angle. + * @param {bool} bKeepSize Keep size or not. + * @return {bool} + */ + Rotate(sImageIndex: number, fAngle: number, bKeepSize: boolean): boolean; + + /** + * Rotates the image of a specified index in buffer by specified angle. + * @method WebTwain#RotateEx + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {float} fAngle Specifies the rotation angle. + * @param {bool} bKeepSize Keep size or not. + * @param {EnumDWT_InterpolationMethod} newVal specifies the method to do interpolation. + * @return {bool} + */ + RotateEx(sImageIndex: number, fAngle: number, bKeepSize: boolean, newVal: EnumDWT_InterpolationMethod): boolean; + + /** + * Rotates the image of a specified index in buffer by 90 degrees counter-clockwise. + * @method WebTwain#RotateLeft + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + RotateLeft(sImageIndex: number): boolean; + + /** + * Rotates the image of a specified index in buffer by 90 degrees clockwise. + * @method WebTwain#RotateRight + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + RotateRight(sImageIndex: number): boolean; + + /** + * Changes width and height of the image of a specified index in the buffer. Please note the file size of the image will be changed proportionately. + * @method WebTwain#ChangeImageSize + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {int} iNewWidth specifies the pixel width of the new image. + * @param {int} iNewHeight specifies the pixel height of the new image. + * @param {EnumDWT_InterpolationMethod} newVal specifies the method to do interpolation. + * @return {bool} + */ + ChangeImageSize(sImageIndex: number, iNewWidth: number, iNewHeight: number, newVal: EnumDWT_InterpolationMethod): boolean; + + /** + * Flips the image of a specified index in buffer. + * @method WebTwain#Flip + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + Flip(sImageIndex: number): boolean; + + /** + * Crops the image of a specified index in buffer. + * @method WebTwain#Crop + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {int} left specifies the x-coordinate of the upper-left corner of the rectangle. + * @param {int} top specifies the y-coordinate of the upper-left corner of the rectangle. + * @param {int} right specifies the x-coordinate of the lower-right corner of the rectangle. + * @param {int} bottom specifies the y-coordinate of the lower-right corner of the rectangle. + * @return {bool} + */ + Crop(sImageIndex: number, left: number, top: number, right: number, bottom: number): boolean; + + /** + * Crops the image of a specified index in buffer to clipboard in DIB format. + * @method WebTwain#CropToClipboard + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {int} left specifies the x-coordinate of the upper-left corner of the rectangle. + * @param {int} top specifies the y-coordinate of the upper-left corner of the rectangle. + * @param {int} right specifies the x-coordinate of the lower-right corner of the rectangle. + * @param {int} bottom specifies the y-coordinate of the lower-right corner of the rectangle. + * @return {bool} + */ + CropToClipboard(sImageIndex: number, left: number, top: number, right: number, bottom: number): boolean; + + /** + * Cuts the image data in the specified area to the system clipboard in DIB format. + * @method WebTwain#CutFrameToClipboard + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {int} left specifies the x-coordinate of the upper-left corner of the rectangle. + * @param {int} top specifies the y-coordinate of the upper-left corner of the rectangle. + * @param {int} right specifies the x-coordinate of the lower-right corner of the rectangle. + * @param {int} bottom specifies the y-coordinate of the lower-right corner of the rectangle. + * @return {bool} + */ + CutFrameToClipboard(sImageIndex: number, left: number, top: number, right: number, bottom: number): boolean; + + /** + * Cuts the image of a specified index in buffer to clipboard in DIB format. + * @method WebTwain#CutToClipboard + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + CutToClipboard(sImageIndex: number): boolean; + + /** + * Change the DPI (dots per inch) for the specified image. + * @method WebTwain#SetDPI + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {int} xResolution The horizontal resolution. + * @param {int} yResolution The vertical resolution. + * @param {bool} bResampleImage Whether to resample the image. (The image size will be changed if this is set to true). + * @param {EnumDWT_InterpolationMethod} newVal specifies the method to do interpolation. + * @return {bool} + */ + SetDPI(sImageIndex: number, xResolution: number, yResolution: number, bResampleImage: boolean, newVal: EnumDWT_InterpolationMethod): boolean; + + /** + * Sets the view mode that images are displayed in Dynamic Web TWAIN. You can use this method to display multiple images in Dynamic Web TWAIN. + * @method WebTwain#SetViewMode + * @param {short} sHorizontalImageCount specifies how many columns can be displayed in Dynamic Web TWAIN. + * @param {short} sVerticalImageCount specifies how many rows can be displayed in Dynamic Web TWAIN.. + * @return {void} + */ + SetViewMode(sHorizontalImageCount: number, sVerticalImageCount: number): void; + + /** + * Moves a specified image. + * @method WebTwain#MoveImage + * @param {short} sSourceImageIndex Specifies the source index of image in buffer. The index is 0-based. + * @param {short} sTargetImageIndex Specifies the target index of image in buffer. The index is 0-based. + * @return {bool} + */ + MoveImage(sSourceImageIndex: number, sTargetImageIndex: number): boolean; + + /** + * Switchs two images of specified indices in buffer. + * @method WebTwain#SwitchImage + * @param {short} sImageIndex1 specifies the index of image in buffer. The index is 0-based. + * @param {short} sImageIndex2 specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + SwitchImage(sImageIndex1: number, sImageIndex2: number): boolean; + + /** + * Shows the GUI of Image Printer. + * @method WebTwain#Print + * @return {bool} + */ + Print(): boolean; + // --- View & Edit end -- + + // --- Upload & Save end -- + + // --- Others --- + /** + * Shows the GUI of Image Editor. + * @method WebTwain#ShowImageEditor + * @return {bool} + */ + ShowImageEditor(): boolean; + + /** + * Unbinds an event from the specified function, so that the function stops receiving notifications when the event fires. + * @method WebTwain#UnregisterEvent + * @param {string} name the name of the event. + * @param {object} evt specified the function to be unbound. + * @return {bool} + */ + UnregisterEvent(name: string, evt: object): boolean; + // --- Others end --- + + /** + * Enables the source to accept image. + * @method WebTwain#EnableSource + * @return {bool} + */ + EnableSource(): boolean; + + /** + * Displays the source's built-in interface to acquire image. + * @method WebTwain#AcquireImage + * @param {object} optionalDeviceConfig a JS object used to set up the device for image acquisition. + * @param {function} asyncSuccessFunc the function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} asyncFailureFunc the function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + AcquireImage(optionalDeviceConfig?: object, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + // start from 10.0 + /** + * Change the width of an image in buffer. + * @method WebTwain#SetImageWidth + * @param {short} sImageIndex specifies which image you'd like to change. + * @param {int} iNewWidth specifies how wide you'd like to change the image. + * @return {bool} + */ + SetImageWidth(sImageIndex: number, iNewWidth: number): boolean; + + // Set custom DS data (DAT_CUSTOMDSDATA), the input string is encoded with base64 + /** + * Sets custom DS data to be used for scanning, the input string is encoded with base64. Custom DS data means a specific scanning profile. + * @method WebTwain#SetCustomDSDataEx + * @param {string} value the input string which is encoded with base64. + * @return {bool} + */ + SetCustomDSDataEx(value: string): boolean; + + // Set custom DS data, load data from the specified file + /** + * Sets custom DS data to be used for scanning, the data is stored in a file. Custom DS data means a specific scanning profile. + * @method WebTwain#SetCustomDSData + * @param {string} fileName the absolute path of the file where the custom data source data is stored. + * @return {bool} + */ + SetCustomDSData(fileName: string): boolean; + + // Get custom DS data, and returned string is encoded with base64 + /** + * Gets custom DS data, the returned string is base64 encoded. + * @method WebTwain#GetCustomDSDataEx + * @return {string} + */ + GetCustomDSDataEx(): string; + + // Get custom DS data, and save the data to the specified file + /** + * Gets custom DS data and save the data in a specified file. + * @method WebTwain#GetCustomDSData + * @param {string} fileName the path of the file used for storing custom DS data. + * @return {bool} + */ + GetCustomDSData(fileName: string): boolean; + + /** + * Changes the bitdepth of a specified image. + * @method WebTwain#ChangeBitDepth + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {short} sBitDepth specifies the target bit depth. + * @param {bool} bHighQuality specifies whether or not to keep high quality while changing the bit depth. When it's true, it takes more time. + * @return {bool} + */ + ChangeBitDepth(sImageIndex: number, sBitDepth: number, bHighQuality: boolean): boolean; + + /** + * Changes a specified image to gray scale. + * @method WebTwain#ConvertToGrayScale + * @param {short} sIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + ConvertToGrayScale(sIndex: number): boolean; + + /** + * [Deprecated.] Shows the GUI of Image Editor with custom settings. + * @method WebTwain#ShowImageEditorEx + * @param {int} x specifies the new position of the left top corner of the window. + * @param {int} y specifies the new position of the left top corner of the window. + * @param {int} cx specifies the width of the window. + * @param {int} cy specifies the height of the window. + * @param {int} nCmdShow specifices how the window should be shown. + * @return {bool} + */ + ShowImageEditorEx(x: number, y: number, cx: number, cy: number, nCmdShow: number): boolean; + + /** + * [Deprecated.] Detects whether an image is blank. + * @method WebTwain#IsBlankImage + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + IsBlankImage(sImageIndex: number): boolean; + + /** + * Detects whether a specific image is blank. + * @method WebTwain#IsBlankImageExpress + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @return {bool} + */ + IsBlankImageExpress(sImageIndex: number): boolean; + + /** + * [Deprecated.] Detects whether a specific image is blank. + * @method WebTwain#GetBarcodeInfo + * @param {int} barcodeInfoType Defined in TWAIN Specification. + * @param {int} barcodeIndex Specifies which barcode to check. The index is 0-based. + * @return {object} + */ + GetBarcodeInfo(barcodeInfoType: number, barcodeIndex: number): object; + + /** + * [Deprecated.] Gets the content from a specified barcode. + * @method WebTwain#GetBarcodeText + * @param {int} barcodeIndex Specifies which barcode to check. The index is 0-based. + * @return {bool} + */ + GetBarcodeText(barcodeIndex: number): boolean; + + /** + * Sets the default source to use. It's only valid when IfUseTWAINDSM is set to true. + * @method WebTwain#SetDefaultSource + * @param {short} sImageIndex specifies the index of the default source. The index is 0-based. + * @return {bool} + */ + SetDefaultSource(sImageIndex: number): boolean; + + /** + * Draws a rectangle on the viewer which represents the selected area. + * @method WebTwain#SetSelectedImageArea + * @param {short} sImageIndex specifies the index of image in buffer. The index is 0-based. + * @param {int} left The X axis of the left border. + * @param {int} top The Y axis of the top border. + * @param {int} right The X axis of the right border. + * @param {int} bottom The Y axis of the bottom border. + * @return {bool} + */ + SetSelectedImageArea(sImageIndex: number, left: number, top: number, right: number, bottom: number): boolean; + + /** + * Converts the images specified by the indices to base64. + * @method WebTwain#ConvertToBase64 + * @param {Array} indices indices specifies which images are to be converted to base64. + * @param {EnumDWT_ImageType} enumImageType the image format in which the images are to be converted to base64. + * @param {function} asyncSuccessFunc the function to call when the upload succeeds. Please refer to the function prototype OnSuccess. + * @param {function} asyncFailureFunc the function to call when the upload fails. Please refer to the function prototype OnFailure. + * @return {bool} + */ + ConvertToBase64(indices: number[], enumImageType: EnumDWT_ImageType, optionalAsyncSuccessFunc?: () => void, optionalAsyncFailureFunc?: (errorCode: number, errorString: string) => void): boolean; + + /** + * Returns the direct URL of an image specified by index, if iWidth or iHeight is set to -1, you get the original image, otherwise you get the image with specified iWidth or iHeight while keeping the same aspect ratio. + * @method WebTwain#GetImageURL + * @param {short} index the index of the image. + * @param {int} iWidth the width of the image. + * @param {int} iHeight the height of the image. + * @return {string} + */ + GetImageURL(index: number, iWidth: number, iHeight: number): string; + + /** + * Sets a header for the current HTTP Post request. + * @method WebTwain#SetHTTPHeader + * @param {string} key the key of the header. + * @param {string} value the value of the header. + * @return {bool} + */ + SetHTTPHeader(key: string, value: string): boolean; +} diff --git a/types/dwt/v12/tsconfig.json b/types/dwt/v12/tsconfig.json new file mode 100644 index 0000000000..0681765aaf --- /dev/null +++ b/types/dwt/v12/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "dwt": [ "dwt/v12" ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "dwt-tests.ts" + ] +} diff --git a/types/dwt/v12/tslint.json b/types/dwt/v12/tslint.json new file mode 100644 index 0000000000..acce7c8a0b --- /dev/null +++ b/types/dwt/v12/tslint.json @@ -0,0 +1,9 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "max-line-length": [false], + "no-trailing-whitespace": false, + "space-before-function-paren": false, + "only-arrow-functions": [false] + } +} diff --git a/types/dygraphs/index.d.ts b/types/dygraphs/index.d.ts index 33db704b3b..c8617b18fc 100644 --- a/types/dygraphs/index.d.ts +++ b/types/dygraphs/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for dygraphs 1.1.2 +// Type definitions for dygraphs 1.1.3 // Project: http://dygraphs.com -// Definitions by: Dan Vanderkam +// Definitions by: Dan Vanderkam // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -595,9 +595,9 @@ declare namespace dygraphs { /** * When to display the legend. By default, it only appears when a user mouses over the chart. * Set it to "always" to always display a legend of some sort. When set to "follow", legend - * follows highlighted points. + * follows highlighted points. If set to 'never' then it will not appear at all. */ - legend?: 'always' | 'follow' | 'onmouseover'; + legend?: 'always' | 'follow' | 'onmouseover' | 'never'; /** * for details see https://github.com/danvk/dygraphs/pull/683 diff --git a/types/echarts/index.d.ts b/types/echarts/index.d.ts index 4261a7e848..bcae4299d3 100644 --- a/types/echarts/index.d.ts +++ b/types/echarts/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Xie Jingyang , AntiMoron // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare namespace ECharts { +declare namespace echarts { function init(dom:HTMLDivElement|HTMLCanvasElement, theme?:Object|string, opts?:{ devicePixelRatio?: number renderer?: string @@ -26,7 +26,7 @@ declare namespace ECharts { function registerTheme(themeName:string, theme:Object):void; - class ECharts { + interface ECharts { group:string; setOption(option:EChartOption, notMerge?:boolean, notRefreshImmediately?:boolean):void @@ -178,5 +178,5 @@ declare namespace ECharts { } declare module "echarts" { - export = ECharts; + export = echarts; } diff --git a/types/elasticsearch/index.d.ts b/types/elasticsearch/index.d.ts index fbe9795b9e..8acc7e4097 100644 --- a/types/elasticsearch/index.d.ts +++ b/types/elasticsearch/index.d.ts @@ -113,9 +113,9 @@ declare module Elasticsearch { } export interface Explanation { - value: number, - description: string, - details: Explanation[] + value: number; + description: string; + details: Explanation[]; } export interface GenericParams { @@ -543,7 +543,7 @@ declare module Elasticsearch { inline: string; lang: string; } - } + }; } export interface ReindexResponse { @@ -555,7 +555,7 @@ declare module Elasticsearch { retries: { bulk: number; search: number; - } + }; throttled_millis: number; failures: any[]; } @@ -1073,7 +1073,7 @@ declare module Elasticsearch { tokenizer?: string; explain?: boolean; attributes?: NameList; - format?: "" + format?: ""; } export interface IndicesClearCacheParams extends GenericParams { @@ -1370,7 +1370,7 @@ declare module Elasticsearch { masterTimeout?: TimeSpan; body: { actions: IndicesUpdateAliasesParamsAction[]; - } + }; } export interface IndicesUpdateAliasesParamsAction { @@ -1386,7 +1386,7 @@ declare module Elasticsearch { }; remove_index?: { index: string; - } + }; } export interface IndicesUpgradeParams extends GenericParams { diff --git a/types/electron-json-storage/electron-json-storage-tests.ts b/types/electron-json-storage/electron-json-storage-tests.ts index 3abc584a46..07d8461bed 100644 --- a/types/electron-json-storage/electron-json-storage-tests.ts +++ b/types/electron-json-storage/electron-json-storage-tests.ts @@ -1,28 +1,42 @@ import electron = require('electron'); import storage = require('electron-json-storage'); -storage.set("foo", { "foo": "bar" }, function(err: any) { }); +const DATA_PATH = '~/Downloads'; -storage.get("foo", function(err: any, data: Object) { - console.log(JSON.stringify(data)); +console.log(storage.DEFAULT_DATA_PATH.length); + +storage.setDataPath(DATA_PATH); +console.log(DATA_PATH.length); + +console.log(storage.getDataPath().length); + +storage.set('foo', { foo: 'bar' }, (err: any) => { }); +storage.set('bar', { foo: 'bar' }, (err: any) => { }); + +storage.get('foo', (err: any, data: object) => { + console.log(JSON.stringify(data)); }); -storage.has("foo", function(err: any, hasKey: boolean) { - console.log("hasKey?: %s", hasKey); +storage.getMany(['foo', 'bar'], (err: any, data: object) => { + console.log(JSON.stringify(data)); }); -storage.keys(function(err: any, keys: string[]) { - console.log(keys); +storage.getAll((err: any, data: object) => { + console.log(JSON.stringify(data)); }); -storage.remove("foo", function(err: any) { - console.log(err); +storage.has('foo', (err: any, hasKey: boolean) => { + console.log("hasKey?: %s", hasKey); }); -storage.clear(function(err: any) { - console.log(err); +storage.keys((err: any, keys: string[]) => { + console.log(keys); }); -storage.has("foo", function(err: any, data: Object) { - console.log(data); +storage.remove("foo", (err: any) => { + console.log(err); +}); + +storage.clear((err: any) => { + console.log(err); }); diff --git a/types/electron-json-storage/index.d.ts b/types/electron-json-storage/index.d.ts index 428b784638..cafa6c4171 100644 --- a/types/electron-json-storage/index.d.ts +++ b/types/electron-json-storage/index.d.ts @@ -1,12 +1,18 @@ -// Type definitions for electron-json-storage -// Project: https://github.com/jviotti/electron-json-storage -// Definitions by: Sam Saint-Pettersen +// Type definitions for electron-json-storage 3.1 +// Project: https://github.com/electron-userland/electron-json-storage +// Definitions by: Sam Saint-Pettersen , +// nrlquaker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 +// TypeScript Version: 2.2 -export declare function get(key: string, callback: (error: any, data: Object) => void): void; -export declare function set(key: string, json: Object, callback: (error: any) => void): void; -export declare function has(key: string, callback: (error: any, hasKey: boolean) => void): void; -export declare function keys(callback: (error: any, keys: string[]) => void): void; -export declare function remove(key: string, callback: (error: any) => void): void; -export declare function clear(callback: (error: any) => void): void; +export const DEFAULT_DATA_PATH: string; +export function setDataPath(directory: string): void; +export function getDataPath(): string; +export function get(key: string, callback: (error: any, data: object) => void): void; +export function getMany(keys: ReadonlyArray, callback: (error: any, data: object) => void): void; +export function getAll(callback: (error: any, data: object) => void): void; +export function set(key: string, json: object, callback: (error: any) => void): void; +export function has(key: string, callback: (error: any, hasKey: boolean) => void): void; +export function keys(callback: (error: any, keys: string[]) => void): void; +export function remove(key: string, callback: (error: any) => void): void; +export function clear(callback: (error: any) => void): void; diff --git a/types/electron-json-storage/package.json b/types/electron-json-storage/package.json index 73c77d2608..880e1b40f6 100644 --- a/types/electron-json-storage/package.json +++ b/types/electron-json-storage/package.json @@ -3,4 +3,4 @@ "dependencies": { "electron": "^1.7.5" } -} \ No newline at end of file +} diff --git a/types/electron-json-storage/tslint.json b/types/electron-json-storage/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/electron-json-storage/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/electron-winstaller/electron-winstaller-tests.ts b/types/electron-winstaller/electron-winstaller-tests.ts new file mode 100644 index 0000000000..91c1923522 --- /dev/null +++ b/types/electron-winstaller/electron-winstaller-tests.ts @@ -0,0 +1,14 @@ +import * as electronInstaller from "electron-winstaller"; + +const options: electronInstaller.Options = { + appDirectory: '/tmp/build/my-app-64', + outputDirectory: '/tmp/build/installer64', + authors: 'My App Inc.', + exe: 'myapp.exe' +}; + +const resultPromise = electronInstaller.createWindowsInstaller(options); + +resultPromise.then( + () => console.log("It worked!"), + (e) => console.log(`No dice: ${e.message}`)); diff --git a/types/electron-winstaller/index.d.ts b/types/electron-winstaller/index.d.ts new file mode 100644 index 0000000000..bfc294d2a8 --- /dev/null +++ b/types/electron-winstaller/index.d.ts @@ -0,0 +1,115 @@ +// Type definitions for electron-winstaller 2.6 +// Project: https://github.com/electron/windows-installer +// Definitions by: Brendan Forster +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export function convertVersion(version: string): string; + +export function createWindowsInstaller(options: Options): Promise; + +export interface Options { + /** + * The folder path of your Electron app + */ + appDirectory: string; + /** + * The folder path to create the .exe installer in. + * + * Defaults to the installer folder at the project root. + */ + outputDirectory?: string; + /** + * The local path to a `.gif` file to display during install. + */ + loadingGif?: string; + /** + * The authors value for the nuget package metadata. + * + * Defaults to the `author` field from your app's package.json file when unspecified. + */ + authors: string; + /** + * The owners value for the nuget package metadata. + * + * Defaults to the `authors` field when unspecified. + */ + owners?: string; + /** + * The name of your app's main `.exe` file. + * + * This uses the `name` field in your app's package.json file with an added `.exe` extension when unspecified. + */ + exe?: string; + /** + * The description value for the nuget package metadata. + * + * Defaults to the `description` field from your app's package.json file when unspecified. + */ + description?: string; + /** + * The version value for the nuget package metadata. + * + * Defaults to the `version` field from your app's package.json file when unspecified. + */ + version?: string; + /** + * The title value for the nuget package metadata. + * + * Defaults to the `productName` field and then the `name` field from your app's package.json file when unspecified. + */ + title?: string; + /** + * Windows Application Model ID (appId). + * + * Defaults to the name field in your app's package.json file. + */ + name?: string; + /** + * The path to an Authenticode Code Signing Certificate + */ + certificateFile?: string; + /** + * The password to decrypt the certificate given in `certificateFile` + */ + certificatePassword?: string; + /** + * Params to pass to signtool. + * + * Overrides `certificateFile` and `certificatePassword`. + */ + signWithParams?: string; + /** + * A URL to an ICO file to use as the application icon (displayed in Control Panel > Programs and Features). + * + * Defaults to the Atom icon. + */ + iconUrl?: string; + /** + * The ICO file to use as the icon for the generated Setup.exe + */ + setupIcon?: string; + /** + * The name to use for the generated Setup.exe file + */ + setupExe?: string; + /** + * The name to use for the generated Setup.msi file + */ + setupMsi?: string; + /** + * Should Squirrel.Windows create an MSI installer? + */ + noMsi?: boolean; + /** + * Should Squirrel.Windows delta packages? (disable only if necessary, they are a Good Thing) + */ + noDelta?: boolean; + /** + * A URL to your existing updates. If given, these will be downloaded to create delta updates + */ + remoteReleases?: string; + /** + * Authentication token for remote updates + */ + remoteToken?: string; +} diff --git a/types/electron-winstaller/tsconfig.json b/types/electron-winstaller/tsconfig.json new file mode 100644 index 0000000000..f208c4761f --- /dev/null +++ b/types/electron-winstaller/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "electron-winstaller-tests.ts" + ] +} diff --git a/types/electron-winstaller/tslint.json b/types/electron-winstaller/tslint.json new file mode 100644 index 0000000000..d88586e5bd --- /dev/null +++ b/types/electron-winstaller/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/email-templates/tslint.json b/types/email-templates/tslint.json index e765bc9e16..d04b04bc22 100644 --- a/types/email-templates/tslint.json +++ b/types/email-templates/tslint.json @@ -1,6 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { + "no-declare-current-package": false, "no-single-declare-module": false } } diff --git a/types/ember/ember-tests.ts b/types/ember/ember-tests.ts index f2d8805864..3964d68a86 100644 --- a/types/ember/ember-tests.ts +++ b/types/ember/ember-tests.ts @@ -182,7 +182,27 @@ const mix2 = Ember.Mixin.create({ bar: 2, }); -const component1 = Ember.Component.extend(mix1, mix2, { +const mix3 = Ember.Mixin.create({ + foo: 3, +}); + +const mix4 = Ember.Mixin.create({ + bar: 4, +}); + +const mix5 = Ember.Mixin.create({ + foo: 5, +}); + +const mix6 = Ember.Mixin.create({ + bar: 6, +}); + +const mix7 = Ember.Mixin.create({ + foo: 7, +}); + +const component1 = Ember.Component.extend(mix1, mix2, mix3, mix4, mix5, mix6, mix7, { lyft: Ember.inject.service(), cars: Ember.computed.readOnly('lyft.cars'), }); diff --git a/types/ember/index.d.ts b/types/ember/index.d.ts index c69832e367..60b2f28f70 100644 --- a/types/ember/index.d.ts +++ b/types/ember/index.d.ts @@ -913,6 +913,11 @@ declare namespace Ember { static extend(args?: CoreObjectArguments): T; static extend(mixin1: Mixin, args?: CoreObjectArguments): T; static extend(mixin1: Mixin, mixin2: Mixin, args?: CoreObjectArguments): T; + static extend(mixin1: Mixin, mixin2: Mixin, mixin3: Mixin, args?: CoreObjectArguments): T; + static extend(mixin1: Mixin, mixin2: Mixin, mixin3: Mixin, mixin4: Mixin, args?: CoreObjectArguments): T; + static extend(mixin1: Mixin, mixin2: Mixin, mixin3: Mixin, mixin4: Mixin, mixin5: Mixin, args?: CoreObjectArguments): T; + static extend(mixin1: Mixin, mixin2: Mixin, mixin3: Mixin, mixin4: Mixin, mixin5: Mixin, mixin6: Mixin, args?: CoreObjectArguments): T; + static extend(mixin1: Mixin, mixin2: Mixin, mixin3: Mixin, mixin4: Mixin, mixin5: Mixin, mixin6: Mixin, mixin7: Mixin, args?: CoreObjectArguments): T; /** Creates a new subclass. diff --git a/types/end-of-stream/end-of-stream-tests.ts b/types/end-of-stream/end-of-stream-tests.ts new file mode 100644 index 0000000000..211c6f5196 --- /dev/null +++ b/types/end-of-stream/end-of-stream-tests.ts @@ -0,0 +1,27 @@ +import * as eos from "end-of-stream"; + +declare const readableStream: NodeJS.ReadableStream; +declare const writableStream: NodeJS.WritableStream; + +declare const callback: (error: Error | undefined | null) => void; + +eos(readableStream); +eos(readableStream, callback); +eos(readableStream, { readable: true }); +eos(readableStream, { readable: 1 }); // $ExpectError +eos(readableStream, { writable: true }); +eos(readableStream, { writable: 1 }); // $ExpectError +eos(readableStream, { error: true }); +eos(readableStream, { error: 1 }); // $ExpectError +eos(readableStream, { foo: true }); // $ExpectError +eos(readableStream, { readable: true }, callback); +eos(writableStream); +eos(writableStream, callback); +eos(writableStream, { readable: true }); +eos(writableStream, { readable: 1 }); // $ExpectError +eos(writableStream, { writable: true }); +eos(writableStream, { writable: 1 }); // $ExpectError +eos(writableStream, { error: true }); +eos(writableStream, { error: 1 }); // $ExpectError +eos(writableStream, { foo: true }); // $ExpectError +eos(writableStream, { readable: true }, callback); diff --git a/types/end-of-stream/index.d.ts b/types/end-of-stream/index.d.ts new file mode 100644 index 0000000000..839d5c29af --- /dev/null +++ b/types/end-of-stream/index.d.ts @@ -0,0 +1,25 @@ +// Type definitions for end-of-stream 1.4 +// Project: https://github.com/mafintosh/end-of-stream +// Definitions by: Sami Kukkonen +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// + +interface Options { + readable?: boolean; + writable?: boolean; + error?: boolean; +} +type Stream = NodeJS.ReadableStream | NodeJS.WritableStream; +type Callback = (error?: Error | null) => void; +declare function eos( + stream: Stream, + callback?: Callback +): () => void; +declare function eos( + stream: Stream, + options: Options, + callback?: Callback +): () => void; +declare namespace eos { +} +export = eos; diff --git a/types/end-of-stream/tsconfig.json b/types/end-of-stream/tsconfig.json new file mode 100644 index 0000000000..4f06f62e73 --- /dev/null +++ b/types/end-of-stream/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "end-of-stream-tests.ts" + ] +} diff --git a/types/end-of-stream/tslint.json b/types/end-of-stream/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/end-of-stream/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/enzyme/enzyme-tests.tsx b/types/enzyme/enzyme-tests.tsx index 4087c539a7..63e716c50b 100644 --- a/types/enzyme/enzyme-tests.tsx +++ b/types/enzyme/enzyme-tests.tsx @@ -109,6 +109,10 @@ function ShallowWrapperTest() { const diveWrapper: ShallowWrapper = shallowWrapper.dive({ context: { foobar: 'barfoo' } }); } + function test_hostNodes() { + shallowWrapper.hostNodes(); + } + function test_equals() { boolVal = shallowWrapper.equals(
); } @@ -206,6 +210,14 @@ function ShallowWrapperTest() { reactElements = shallowWrapper.getNodes(); } + function test_getElement() { + reactElement = shallowWrapper.getElement(); + } + + function test_getElements() { + reactElements = shallowWrapper.getElements(); + } + function test_getDOMNode() { domElement = shallowWrapper.getDOMNode(); } @@ -417,6 +429,10 @@ function ReactWrapperTest() { reactWrapper.detach(); } + function test_hostNodes() { + reactWrapper.hostNodes(); + } + function test_find() { elementWrapper = reactWrapper.find('.selector'); reactWrapper = reactWrapper.find(MyComponent); @@ -545,6 +561,14 @@ function ReactWrapperTest() { reactElements = reactWrapper.getNodes(); } + function test_getElement() { + reactElement = reactWrapper.getElement(); + } + + function test_getElements() { + reactElements = reactWrapper.getElements(); + } + function test_getDOMNode() { domElement = reactWrapper.getDOMNode(); } diff --git a/types/enzyme/index.d.ts b/types/enzyme/index.d.ts index 8ebb11ce94..0659bed99f 100644 --- a/types/enzyme/index.d.ts +++ b/types/enzyme/index.d.ts @@ -23,7 +23,7 @@ export class ElementClass extends Component { * all specified in the implementation. TS chooses the EnzymePropSelector overload and loses the generics */ export interface ComponentClass { - new (props?: Props, context?: any): Component; + new(props?: Props, context?: any): Component; } export type StatelessComponent = (props: Props, context?: any) => JSX.Element; @@ -148,6 +148,16 @@ export interface CommonWrapper

{ */ getNodes(): Array>; + /** + * Returns the wrapper's underlying node. + */ + getElement(): ReactElement; + + /** + * Returns the wrapper's underlying node. + */ + getElements(): Array>; + /** * Returns the outer most DOMComponent of the current wrapper. */ @@ -342,7 +352,7 @@ export interface CommonWrapper

{ every(selector: EnzymeSelector): boolean; /** - * Returns whether or not any of the nodes in the wrapper pass the provided predicate function. + * Returns whether or not all of the nodes in the wrapper pass the provided predicate function. * @param fn */ everyWhere(fn: (wrapper: this) => boolean): boolean; @@ -422,6 +432,14 @@ export interface ShallowWrapper

extends CommonWrapper { */ dive(options?: ShallowRendererProps): ShallowWrapper; + /** + * Strips out all the not host-nodes from the list of nodes + * + * This method is useful if you want to check for the presence of host nodes + * (actually rendered HTML elements) ignoring the React nodes. + */ + hostNodes(): ShallowWrapper; + /** * Returns a wrapper around all of the parents/ancestors of the wrapper. Does not include the node in the * current wrapper. Optionally, a selector can be provided and it will filter the parents by this selector. @@ -480,6 +498,14 @@ export interface ReactWrapper

extends CommonWrapper { */ detach(): void; + /** + * Strips out all the not host-nodes from the list of nodes + * + * This method is useful if you want to check for the presence of host nodes + * (actually rendered HTML elements) ignoring the React nodes. + */ + hostNodes(): ReactWrapper; + /** * Find every node in the render tree that matches the provided selector. * @param selector The selector to match. @@ -612,3 +638,10 @@ export function mount(node: ReactElement

, options?: MountRendererProps) * @param [options] */ export function render(node: ReactElement

, options?: any): Cheerio; + +/** + * Configure enzyme to use the correct adapter for the react verstion + * This is enabling the Enzyme configuration with adapters in TS + * @param options + */ +export function configure(options: { adapter: any }): void; diff --git a/types/event-emitter/all-off.d.ts b/types/event-emitter/all-off.d.ts index e94f6e7747..a6fb3e7971 100644 --- a/types/event-emitter/all-off.d.ts +++ b/types/event-emitter/all-off.d.ts @@ -1,4 +1,4 @@ -import { Emitter } from "event-emitter"; +import { Emitter } from "."; declare function allOff(emitter: Emitter): void; export = allOff; diff --git a/types/event-emitter/has-listeners.d.ts b/types/event-emitter/has-listeners.d.ts index 2a67ee6bc5..e4763e7c91 100644 --- a/types/event-emitter/has-listeners.d.ts +++ b/types/event-emitter/has-listeners.d.ts @@ -1,4 +1,4 @@ -import { Emitter } from "event-emitter"; +import { Emitter } from "."; declare function hasListeners(emitter: Emitter, name?: string): boolean; export = hasListeners; diff --git a/types/event-emitter/pipe.d.ts b/types/event-emitter/pipe.d.ts index 29b0512cb6..1a9320cbd2 100644 --- a/types/event-emitter/pipe.d.ts +++ b/types/event-emitter/pipe.d.ts @@ -1,4 +1,4 @@ -import { Emitter } from "event-emitter"; +import { Emitter } from "."; declare namespace pipe { interface EmitterPipe { diff --git a/types/event-emitter/unify.d.ts b/types/event-emitter/unify.d.ts index af70f0f38c..566d129326 100644 --- a/types/event-emitter/unify.d.ts +++ b/types/event-emitter/unify.d.ts @@ -1,4 +1,4 @@ -import { Emitter } from "event-emitter"; +import { Emitter } from "."; declare function unify(emitter1: Emitter, emitter2: Emitter): Emitter; export = unify; diff --git a/types/event-kit/.editorconfig b/types/event-kit/.editorconfig index 570211f898..2b997514d2 100644 --- a/types/event-kit/.editorconfig +++ b/types/event-kit/.editorconfig @@ -1,3 +1,3 @@ [*.ts] indent_style = tab -indent_size = 4 +indent_size = 2 diff --git a/types/event-kit/README.md b/types/event-kit/README.md new file mode 100644 index 0000000000..90835ef13e --- /dev/null +++ b/types/event-kit/README.md @@ -0,0 +1,22 @@ +## Event Kit Type Definitions + +TypeScript type definitions for [event-kit](https://github.com/atom/event-kit), which is published [under the same name](https://www.npmjs.com/package/event-kit) on NPM. + +### Usage Notes + +#### Exports + +The three classes exported from this module are: [CompositeDisposable](https://github.com/atom/event-kit/blob/master/src/composite-disposable.coffee), [Disposable](https://github.com/atom/event-kit/blob/master/src/disposable.coffee), and [Emitter](https://github.com/atom/event-kit/blob/master/src/emitter.coffee). + +```ts +import { CompositeDisposable, Disposable, Emitter } from "event-kit"; +let subscriptions = new CompositeDisposable(); +``` + +#### The EventKit Namespace + +All types used by "event-kit" can be referenced from the EventKit namespace. + +```ts +function example(disposable: EventKit.DisposableLike) {} +``` diff --git a/types/event-kit/event-kit-tests.ts b/types/event-kit/event-kit-tests.ts index 4b4a0d4e7c..41fa6ba22a 100644 --- a/types/event-kit/event-kit-tests.ts +++ b/types/event-kit/event-kit-tests.ts @@ -1,57 +1,83 @@ - - import { Disposable, CompositeDisposable, Emitter } from "event-kit"; -// Emitter +declare let bool: boolean; +declare let subscription: EventKit.Disposable; +declare let subscriptions: EventKit.CompositeDisposable; +declare let emitter: EventKit.Emitter; +// NPM Usage Tests ============================================================ class User { - private emitter: Emitter; + private readonly emitter: EventKit.Emitter; name: string; constructor() { this.emitter = new Emitter(); } - onDidChangeName(callback: (name: string) => void): Disposable { - return this.emitter.on('did-change-name', callback); + onDidChangeName(callback: (value: any) => void) { + return this.emitter.on("did-change-name", callback); } - setName(name: string): void { - if (this.name != name) { + setName(name: string) { + if (name !== this.name) { this.name = name; - this.emitter.emit('did-change-name', name); + this.emitter.emit("did-change-name", name); } + return name; } - destroy(): void { - this.emitter.clear(); + destroy() { this.emitter.dispose(); } } -// Disposable - -var disposable = new Disposable(() => { - // cleanup -}); -disposable.dispose(); - -var user = new User(); -var subscription = user.onDidChangeName((name: string) => { - console.log('User name change to: ' + name); -}); -if(Disposable.isDisposable(subscription)) {} +const user = new User(); +subscription = user.onDidChangeName(name => console.log("My name is #{name}")); subscription.dispose(); -// CompositeDisposable +// Disposable ================================================================= +bool = subscription.disposed; +if (subscription.disposalAction) subscription.disposalAction(); +subscription.dispose(); + +// CompositeDisposable ======================================================== +// Properties +bool = subscriptions.disposed; + +// Construction and Lifecycle +subscriptions = new CompositeDisposable(); +new CompositeDisposable(subscription); +new CompositeDisposable(subscription, subscription); +new CompositeDisposable({ dispose() {} }); -var subscriptions = new CompositeDisposable(); -subscriptions.add( - user.onDidChangeName((name: string) => { - console.log('subscriber #1'); - }), - user.onDidChangeName((name: string) => { - console.log('subscriber #2'); - }) -); subscriptions.dispose(); + +// Managing Disposables +subscriptions.add(subscription); +subscriptions.add( + subscription, + { dispose() {} } +); + +subscriptions.remove(subscription); +subscriptions.remove({ dispose() {} }); + +subscriptions.delete(subscription); +subscriptions.delete({ dispose() {} }); + +subscriptions.clear(); + +// Emitter ==================================================================== +bool = emitter.disposed; + +emitter.clear(); +emitter.dispose(); + +// Event Subscription +subscription = emitter.on("test-event", value => {}); +emitter.once("test-event", value => {}); +subscription = emitter.preempt("test-event", value => {}); + +// Event Emission +emitter.emit("test-event"); +emitter.emit("test-event", 42); diff --git a/types/event-kit/index.d.ts b/types/event-kit/index.d.ts index 74f270c40f..8ce9bd8fbe 100644 --- a/types/event-kit/index.d.ts +++ b/types/event-kit/index.d.ts @@ -1,91 +1,126 @@ -// Type definitions for event-kit v1.2.0 +// Type definitions for event-kit 2.x // Project: https://github.com/atom/event-kit -// Definitions by: Vadim Macagon +// Definitions by: GlenCFL // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 -export = AtomEventKit; +declare global { + namespace EventKit { + /** The static side to each exported class. Should generally only be used internally. */ + namespace Statics { + /* tslint:disable:no-unnecessary-qualifier */ + /** The static side to the Disposable class. */ + interface Disposable { + /** Ensure that Object correctly implements the Disposable contract. */ + isDisposable(object: object): boolean; -declare namespace AtomEventKit { - interface IDisposable { - dispose(): void; + /** Construct a Disposable. */ + new (disposableAction?: () => void): EventKit.Disposable; + } + + /** The static side to the CompositeDisposable class. */ + interface CompositeDisposable { + /** Construct an instance, optionally with one or more disposables. */ + new (...disposables: DisposableLike[]): EventKit.CompositeDisposable; + } + + /** The static side to the Emitter class. */ + interface Emitter { + /** Construct an emitter. */ + new (): EventKit.Emitter; + } + /* tslint:enable:no-unnecessary-qualifier */ + } + + interface DisposableLike { + dispose(): void; + } + + /** A handle to a resource that can be disposed. */ + interface Disposable extends DisposableLike { + disposed: boolean; + + /** A callback which will be called within dispose(). */ + disposalAction?(): void; + + /** Perform the disposal action, indicating that the resource associated + * with this disposable is no longer needed. + */ + dispose(): void; + } + + /** An object that aggregates multiple Disposable instances together into a + * single disposable, so they can all be disposed as a group. + */ + interface CompositeDisposable extends DisposableLike { + disposed: boolean; + + /** Dispose all disposables added to this composite disposable. + * If this object has already been disposed, this method has no effect. + */ + dispose(): void; + + // Managing Disposables + /** Add disposables to be disposed when the composite is disposed. + * If this object has already been disposed, this method has no effect. + */ + add(...disposables: DisposableLike[]): void; + + /** Remove a previously added disposable. */ + remove(disposable: DisposableLike): void; + + /** Alias to CompositeDisposable::remove. */ + delete(disposable: DisposableLike): void; + + /** Clear all disposables. They will not be disposed by the next call to + * dispose. + */ + clear(): void; + } + + /** Utility class to be used when implementing event-based APIs that allows + * for handlers registered via ::on to be invoked with calls to ::emit. + */ + interface Emitter extends DisposableLike { + disposed: boolean; + + /** Clear out any existing subscribers. */ + clear(): void; + + /** Unsubscribe all handlers. */ + dispose(): boolean; + + // Event Subscription + /** Registers a handler to be invoked whenever the given event is emitted. */ + on(eventName: string, handler: (value: any) => void): Disposable; + + /** Register the given handler function to be invoked the next time an event + * with the given name is emitted via ::emit. + */ + once(eventName: string, handler: (value: any) => void): Disposable; + + /** Register the given handler function to be invoked before all other + * handlers existing at the time of subscription whenever events by the + * given name are emitted via ::emit. + */ + preempt(eventName: string, handler: (value: any) => void): Disposable; + + // Event Emission + /** Invoke handlers registered via ::on for the given event name. */ + emit(eventName: string, value?: any): void; + } } - - /** Static side of the Disposable class. */ - interface DisposableStatic { - prototype: Disposable; - new (disposalAction: Function): Disposable; - /** - * Ensure that Object correctly implements the Disposable. - */ - isDisposable(object: Object): boolean; - } - - /** Instance side of the Disposable class. */ - interface Disposable extends IDisposable { - disposed: boolean; - - constructor: DisposableStatic; - } - - /** A class that represent a handle to a resource that can be disposed. */ - var Disposable: DisposableStatic; - - /** Static side of the CompositeDisposable class. */ - interface CompositeDisposableStatic { - prototype: CompositeDisposable; - new (...disposables: IDisposable[]): CompositeDisposable; - } - - /** Instance side of the CompositeDisposable class. */ - interface CompositeDisposable extends IDisposable { - disposed: boolean; - - constructor: CompositeDisposableStatic; - add(...disposables: IDisposable[]): void; - remove(disposable: IDisposable): void; - clear(): void; - } - - /** - * A class that aggregates multiple [[Disposable]] instances together into a single disposable, - * so that they can all be disposed as a group. - */ - var CompositeDisposable: CompositeDisposableStatic; - - /** Static side of the Emitter class. */ - interface EmitterStatic { - prototype: Emitter; - new (): Emitter; - } - - /** Instance side of the Emitter class. */ - interface Emitter { - isDisposed: boolean; - - constructor: EmitterStatic; - /** - * Clear out any existing subscribers. - */ - clear(): void; - /** - * Unsubscribe all handlers. - */ - dispose(): void; - /** - * Registers a handler to be invoked whenever the given event is emitted. - * @return An object that will unregister the handler when disposed. - */ - on(eventName: string, handler: (value: any) => void, unshift?: boolean): Disposable; - /** - * Registers a handler to be invoked *before* all previously registered handlers for - * the given event. - * @return An object that will unregister the handler when disposed. - */ - preempt(eventName: string, handler: (value: any) => void): Disposable; - /** Invokes any registered handlers for the given event. */ - emit(eventName: string, value: any): void; - } - - /** A utility class for implementing event-based APIs. */ - var Emitter: EmitterStatic; } + +/** A handle to a resource that can be disposed. */ +export const Disposable: EventKit.Statics.Disposable; + +/** An object that aggregates multiple Disposable instances together into a + * single disposable, so they can all be disposed as a group. + */ +export const CompositeDisposable: EventKit.Statics.CompositeDisposable; + +/** Utility class to be used when implementing event-based APIs that allows + * for handlers registered via ::on to be invoked with calls to ::emit. + */ +export const Emitter: EventKit.Statics.Emitter; diff --git a/types/event-kit/tsconfig.json b/types/event-kit/tsconfig.json index 1682f77cb6..ec89f9ddb9 100644 --- a/types/event-kit/tsconfig.json +++ b/types/event-kit/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -20,4 +20,4 @@ "index.d.ts", "event-kit-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/event-kit/tslint.json b/types/event-kit/tslint.json new file mode 100644 index 0000000000..10fd9f0654 --- /dev/null +++ b/types/event-kit/tslint.json @@ -0,0 +1,38 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // Custom rules. + "class-name": true, + "indent": [true, "tabs"], + "jsdoc-format": true, + "linebreak-style": [true, "LF"], + "max-line-length": [true, 100], + "no-any": false, + "quotemark": [true, "double", "avoid-escape"], + "trailing-comma": [true, { + "multiline": { "objects": "always", "arrays": "always", "functions": "never" }, + "singleline": { "objects": "never", "arrays": "never", "functions": "never" } + }], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-module", + "check-separator", + "check-type", + "check-typecast", + "check-rest-spread", + "check-preblock" + ], + // Soon to be defaults. + "arrow-return-shorthand": [true, "multiline"], + "no-floating-promises": true, + "no-unbound-method": true, + "no-unsafe-any": true, + "number-literal-format": true, + "restrict-plus-operands": true, + "return-undefined": true, + "switch-final-break": true + } +} diff --git a/types/event-kit/v1/.editorconfig b/types/event-kit/v1/.editorconfig new file mode 100644 index 0000000000..570211f898 --- /dev/null +++ b/types/event-kit/v1/.editorconfig @@ -0,0 +1,3 @@ +[*.ts] +indent_style = tab +indent_size = 4 diff --git a/types/event-kit/v1/event-kit-tests.ts b/types/event-kit/v1/event-kit-tests.ts new file mode 100644 index 0000000000..4b4a0d4e7c --- /dev/null +++ b/types/event-kit/v1/event-kit-tests.ts @@ -0,0 +1,57 @@ + + +import { Disposable, CompositeDisposable, Emitter } from "event-kit"; + +// Emitter + +class User { + private emitter: Emitter; + name: string; + + constructor() { + this.emitter = new Emitter(); + } + + onDidChangeName(callback: (name: string) => void): Disposable { + return this.emitter.on('did-change-name', callback); + } + + setName(name: string): void { + if (this.name != name) { + this.name = name; + this.emitter.emit('did-change-name', name); + } + } + + destroy(): void { + this.emitter.clear(); + this.emitter.dispose(); + } +} + +// Disposable + +var disposable = new Disposable(() => { + // cleanup +}); +disposable.dispose(); + +var user = new User(); +var subscription = user.onDidChangeName((name: string) => { + console.log('User name change to: ' + name); +}); +if(Disposable.isDisposable(subscription)) {} +subscription.dispose(); + +// CompositeDisposable + +var subscriptions = new CompositeDisposable(); +subscriptions.add( + user.onDidChangeName((name: string) => { + console.log('subscriber #1'); + }), + user.onDidChangeName((name: string) => { + console.log('subscriber #2'); + }) +); +subscriptions.dispose(); diff --git a/types/event-kit/v1/index.d.ts b/types/event-kit/v1/index.d.ts new file mode 100644 index 0000000000..74f270c40f --- /dev/null +++ b/types/event-kit/v1/index.d.ts @@ -0,0 +1,91 @@ +// Type definitions for event-kit v1.2.0 +// Project: https://github.com/atom/event-kit +// Definitions by: Vadim Macagon +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = AtomEventKit; + +declare namespace AtomEventKit { + interface IDisposable { + dispose(): void; + } + + /** Static side of the Disposable class. */ + interface DisposableStatic { + prototype: Disposable; + new (disposalAction: Function): Disposable; + /** + * Ensure that Object correctly implements the Disposable. + */ + isDisposable(object: Object): boolean; + } + + /** Instance side of the Disposable class. */ + interface Disposable extends IDisposable { + disposed: boolean; + + constructor: DisposableStatic; + } + + /** A class that represent a handle to a resource that can be disposed. */ + var Disposable: DisposableStatic; + + /** Static side of the CompositeDisposable class. */ + interface CompositeDisposableStatic { + prototype: CompositeDisposable; + new (...disposables: IDisposable[]): CompositeDisposable; + } + + /** Instance side of the CompositeDisposable class. */ + interface CompositeDisposable extends IDisposable { + disposed: boolean; + + constructor: CompositeDisposableStatic; + add(...disposables: IDisposable[]): void; + remove(disposable: IDisposable): void; + clear(): void; + } + + /** + * A class that aggregates multiple [[Disposable]] instances together into a single disposable, + * so that they can all be disposed as a group. + */ + var CompositeDisposable: CompositeDisposableStatic; + + /** Static side of the Emitter class. */ + interface EmitterStatic { + prototype: Emitter; + new (): Emitter; + } + + /** Instance side of the Emitter class. */ + interface Emitter { + isDisposed: boolean; + + constructor: EmitterStatic; + /** + * Clear out any existing subscribers. + */ + clear(): void; + /** + * Unsubscribe all handlers. + */ + dispose(): void; + /** + * Registers a handler to be invoked whenever the given event is emitted. + * @return An object that will unregister the handler when disposed. + */ + on(eventName: string, handler: (value: any) => void, unshift?: boolean): Disposable; + /** + * Registers a handler to be invoked *before* all previously registered handlers for + * the given event. + * @return An object that will unregister the handler when disposed. + */ + preempt(eventName: string, handler: (value: any) => void): Disposable; + /** Invokes any registered handlers for the given event. */ + emit(eventName: string, value: any): void; + } + + /** A utility class for implementing event-based APIs. */ + var Emitter: EmitterStatic; +} diff --git a/types/event-kit/v1/tsconfig.json b/types/event-kit/v1/tsconfig.json new file mode 100644 index 0000000000..d3cc578758 --- /dev/null +++ b/types/event-kit/v1/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "event-kit": [ "event-kit/v1" ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "event-kit-tests.ts" + ] +} diff --git a/types/evernote/index.d.ts b/types/evernote/index.d.ts index 65765259c3..a6bff784ab 100644 --- a/types/evernote/index.d.ts +++ b/types/evernote/index.d.ts @@ -2,8 +2,9 @@ // Project: https://www.npmjs.com/package/evernote // Definitions by: Zachary Collins // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 -import * as Thrift from 'thrift'; +import { Thrift } from 'thrift'; declare namespace Evernote { interface Callback { diff --git a/types/evernote/tsconfig.json b/types/evernote/tsconfig.json index ee72e55520..ecf7678a0d 100644 --- a/types/evernote/tsconfig.json +++ b/types/evernote/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6" + "es6", + "dom" ], "noImplicitAny": true, "noImplicitThis": true, diff --git a/types/express-brute-mongo/express-brute-mongo-tests.ts b/types/express-brute-mongo/express-brute-mongo-tests.ts index f242da216e..ba86b03600 100644 --- a/types/express-brute-mongo/express-brute-mongo-tests.ts +++ b/types/express-brute-mongo/express-brute-mongo-tests.ts @@ -2,21 +2,21 @@ import express = require("express"); import ExpressBrute = require("express-brute"); import MongoStore = require("express-brute-mongo"); import mongodb = require("mongodb"); -var MongoClient = mongodb.MongoClient; +const MongoClient = mongodb.MongoClient; -var store = new MongoStore(ready => { +const store = new MongoStore(ready => { MongoClient.connect("mongodb://127.0.0.1:27017/test", (err, db) => { if (err) { throw err; } - var collection = db.collection("bruteforce-store"); + const collection = db.collection("bruteforce-store"); ready(collection); }); }); -var app = express(); -var bruteforce = new ExpressBrute(store); +const app = express(); +const bruteforce = new ExpressBrute(store); app.post("/auth", bruteforce.prevent, (req, res, next) => { res.send("Success!"); diff --git a/types/express-brute-mongo/index.d.ts b/types/express-brute-mongo/index.d.ts index 33ea0adcb5..56af09a099 100644 --- a/types/express-brute-mongo/index.d.ts +++ b/types/express-brute-mongo/index.d.ts @@ -10,7 +10,7 @@ import { Collection } from "mongodb"; * @summary MongoDB store adapter. * @class */ -export = class MongoStore { +declare class MongoStore { /** * @summary Constructor. * @constructor @@ -19,3 +19,4 @@ export = class MongoStore { */ constructor(getCollection: (collection: (c: Collection) => void) => void, options?: Object); } +export = MongoStore; diff --git a/types/express-brute-mongo/tslint.json b/types/express-brute-mongo/tslint.json new file mode 100644 index 0000000000..c0ad422b87 --- /dev/null +++ b/types/express-brute-mongo/tslint.json @@ -0,0 +1,8 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "ban-types": false, + "dt-header": false + } +} diff --git a/types/express-brute-redis/express-brute-redis-tests.ts b/types/express-brute-redis/express-brute-redis-tests.ts new file mode 100644 index 0000000000..7d7eba0638 --- /dev/null +++ b/types/express-brute-redis/express-brute-redis-tests.ts @@ -0,0 +1,22 @@ +import express = require("express"); +import expressbrute = require("express-brute"); +import expressbruteredis = require("express-brute-redis"); + +const store: expressbruteredis = new expressbruteredis({ + host: "localhost", + port: 6379, + db: "0" +}); + +const bruteforce: expressbrute = new expressbrute(store, { + failCallback: (req: express.Request, res: express.Response, next: express.NextFunction, validTime: Date) => { + // Don't send a message back to the user in production + res.send("You cannot submit a request again until: " + validTime); + } +}); + +const app: express.Express = express(); + +app.post("/", bruteforce.prevent, (req, res, next) => { + res.send("Success!"); +}); diff --git a/types/express-brute-redis/index.d.ts b/types/express-brute-redis/index.d.ts new file mode 100644 index 0000000000..ea720c4c85 --- /dev/null +++ b/types/express-brute-redis/index.d.ts @@ -0,0 +1,48 @@ +// Type definitions for express-brute-redis 0.0 +// Project: https://github.com/AdamPflug/express-brute-redis +// Definitions by: Scott Harwell +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import { ClientOpts } from "redis"; + +/** + * @summary Redis store for Express Brute + * @class + */ +declare class express_brute_redis { + /** + * Default options for the Redis client + */ + static defaults: ClientOpts; + + /** + * @summary constructor + * @param options Options to configure the Redis client. + */ + constructor(options?: ClientOpts, ...args: any[]); + + /** + * @summary Sets a key in Redis storage. + * @param key + * @param value + * @param lifetime + * @param callback + */ + set(key: string, value: string, lifetime?: number, callback?: (sender: express_brute_redis) => void): void; + + /** + * @summary Gets a key in Redis storage. + * @param key + * @param callback + */ + get(key: string, callback?: (err: Error, data: any) => void): void; + + /** + * @summary Resets a key in Redis storage. + * @param key + * @param callback + */ + reset(key: string, callback?: (err: Error, data: any) => void, ...args: any[]): void; +} + +export = express_brute_redis; diff --git a/types/express-brute-redis/tsconfig.json b/types/express-brute-redis/tsconfig.json new file mode 100644 index 0000000000..387e065dfb --- /dev/null +++ b/types/express-brute-redis/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "express-brute-redis-tests.ts" + ] +} diff --git a/types/express-brute-redis/tslint.json b/types/express-brute-redis/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/express-brute-redis/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/express-flash-2/express-flash-2-tests.ts b/types/express-flash-2/express-flash-2-tests.ts index 055501d9ff..f433ac6cc2 100644 --- a/types/express-flash-2/express-flash-2-tests.ts +++ b/types/express-flash-2/express-flash-2-tests.ts @@ -1,3 +1,3 @@ -import flash from "express-flash-2"; +import flash = require("express-flash-2"); flash(); diff --git a/types/express-flash-2/index.d.ts b/types/express-flash-2/index.d.ts index f5bd168191..06c1bc6591 100644 --- a/types/express-flash-2/index.d.ts +++ b/types/express-flash-2/index.d.ts @@ -3,55 +3,55 @@ // Definitions by: Matheus Salmi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare namespace Express { - interface Request { - session?: Session; - } +import express = require('express'); - interface Session { - flash: Flash; - } +/** + * Expose `flash()` function on responses. + */ +declare function flash(): express.RequestHandler; - interface Flash { - [key: string]: any[]; - } +export = flash; - interface Response { - /** - * Queue flash `msg` of the given `type`. - * - * Examples: - * - * req.flash('info', 'email sent'); - * req.flash('error', 'email delivery failed'); - * req.flash('info', 'email re-sent'); - * - * - * Formatting: - * - * Flash notifications also support arbitrary formatting support. - * For example you may pass variable arguments to `req.flash()` - * and use the %s specifier to be replaced by the associated argument: - * - * req.flash('info', 'email has been sent to %s.', userName); - * - * Formatting uses `util.format()`, which is available on Node 0.6+. - */ - flash(type: string, msg: string | any[]): void; +declare global { + namespace Express { + interface Request { + session?: Session; + } - locals: { - flash: Flash - }; + interface Session { + flash: Flash; + } + + interface Flash { + [key: string]: any[]; + } + + interface Response { + /** + * Queue flash `msg` of the given `type`. + * + * Examples: + * + * req.flash('info', 'email sent'); + * req.flash('error', 'email delivery failed'); + * req.flash('info', 'email re-sent'); + * + * + * Formatting: + * + * Flash notifications also support arbitrary formatting support. + * For example you may pass variable arguments to `req.flash()` + * and use the %s specifier to be replaced by the associated argument: + * + * req.flash('info', 'email has been sent to %s.', userName); + * + * Formatting uses `util.format()`, which is available on Node 0.6+. + */ + flash(type: string, msg: string | any[]): void; + + locals: { + flash: Flash + }; + } } } - -declare module 'express-flash-2' { - import express = require('express'); - - /** - * Expose `flash()` function on responses. - */ - function flash(): express.RequestHandler; - - export = flash; -} diff --git a/types/express-flash-2/tslint.json b/types/express-flash-2/tslint.json index 949f3563fd..3db14f85ea 100644 --- a/types/express-flash-2/tslint.json +++ b/types/express-flash-2/tslint.json @@ -1,8 +1 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "no-single-declare-module": false, - "strict-export-declare-modifiers": false, - "expect": false - } -} +{ "extends": "dtslint/dt.json" } diff --git a/types/extended-listbox/extended-listbox-tests.ts b/types/extended-listbox/extended-listbox-tests.ts index e3dcba4735..571a455300 100644 --- a/types/extended-listbox/extended-listbox-tests.ts +++ b/types/extended-listbox/extended-listbox-tests.ts @@ -1,39 +1,38 @@ -/// - -var $test = $("#test"); +const testElement: HTMLElement = document.getElementById("test"); // Create Listbox with defaults -var instance: ExtendedListboxInstance = $test.listbox(); +let instance: SingleSelectListBox = new SingleSelectListBox(testElement); +instance = new MultiSelectListBox(testElement); // Create with options -var options = {}; -options.multiple = true; -options.searchBar = false; -options.searchBarWatermark = "Search"; -options.searchBarButton = { icon: "fa fa-search", visible: true, onClick: function () { alert(); } }; -options.getItems = (): (string|ListboxItem)[] => { +let settings = {}; +settings.searchBar = false; +settings.searchBarWatermark = "Search"; +settings.searchBarButton = { icon: "fa fa-search", visible: true, onClick: function () { alert(); } }; +settings.getItems = (): (string|ListBoxItem)[] => { return ["Test1"]; }; -options.onItemsChanged = (event: ListboxEvent): void => { +settings.onItemsChanged = (event: ListBoxEvent): void => { console.log(event.eventName); console.log(event.args); console.log(event.target); }; -options.onFilterChanged = (event: ListboxEvent): void => { +settings.onFilterChanged = (event: ListBoxEvent): void => { console.log(event.args); }; -options.onValueChanged = (event: ListboxEvent): void => { +settings.onValueChanged = (event: ListBoxEvent): void => { console.log(event.args); }; -options.onItemDoubleClicked = (event: ListboxEvent): void => { +settings.onItemDoubleClicked = (event: ListBoxEvent): void => { console.log(event.args); }; -options.onItemEnterPressed = (event: ListboxEvent): void => { +settings.onItemEnterPressed = (event: ListBoxEvent): void => { console.log(event.args); }; -instance = $test.listbox(options); +instance = new SingleSelectListBox(testElement, settings); +instance = new MultiSelectListBox(testElement, settings); /////// NEW API /////// @@ -43,7 +42,7 @@ var id: string = instance.addItem("Test2"); // Add item -var item: ListboxItem = {}; +var item: ListBoxItem = {}; item.selected = true; item.disabled = false; item.childItems = [{ text: "Test4" }]; @@ -67,14 +66,14 @@ instance.removeItems([id, ids[0]]); // Get item -var i: ListboxItem = instance.getItem(id); +var i: ListBoxItem = instance.getItem(id); // Get items -var allItems: ListboxItem[] = instance.getItems(); +var allItems: ListBoxItem[] = instance.getItems(); // Get selected items -var allItems: ListboxItem[] = instance.getSelection(); +var allItems: ListBoxItem[] = instance.getSelection(); // Move item up @@ -106,30 +105,30 @@ instance.destroy(); // onValueChanged -instance.onValueChanged((event: ListboxEvent) => { +settings.onValueChanged = (event: ListBoxEvent) => { console.log(event.args); -}); +}; // onItemsChanged -instance.onItemsChanged((event: ListboxEvent) => { +settings.onItemsChanged = (event: ListBoxEvent) => { console.log(event.args); -}); +}; // onFilterChanged -instance.onFilterChanged((event: ListboxEvent) => { +settings.onFilterChanged = (event: ListBoxEvent) => { console.log(event.args); -}); +}; // onItemEnterPressed -instance.onItemEnterPressed((event: ListboxEvent) => { +settings.onItemEnterPressed = (event: ListBoxEvent) => { console.log(event.args); -}); +}; // onItemDoubleClicked -instance.onItemDoubleClicked((event: ListboxEvent) => { +settings.onItemDoubleClicked = (event: ListBoxEvent) => { console.log(event.args); -}); +}; diff --git a/types/extended-listbox/index.d.ts b/types/extended-listbox/index.d.ts index e5062510f9..5d6e7822d5 100644 --- a/types/extended-listbox/index.d.ts +++ b/types/extended-listbox/index.d.ts @@ -1,10 +1,9 @@ -// Type definitions for extended-listbox 3.0.x +// Type definitions for extended-listbox 4.0.x // Project: https://github.com/code-chris/extended-listbox // Definitions by: Christian Kotzbauer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 -interface ListboxItem { +interface ListBoxItem { /** display text */ text?: string; @@ -27,10 +26,10 @@ interface ListboxItem { parentGroupId?: string; /** list of childItems */ - childItems?: ListboxItem[]; + childItems?: (string | ListBoxItem)[]; } -interface ListboxSearchBarButtonOptions { +interface ListBoxSearchBarButtonOptions { /** determines if the button is visible */ visible?: boolean; @@ -41,7 +40,7 @@ interface ListboxSearchBarButtonOptions { onClick?: () => void; } -interface ListBoxOptions { +interface ListBoxSettings { /** determines if the searchBar is visible */ searchBar?: boolean; @@ -49,50 +48,44 @@ interface ListBoxOptions { searchBarWatermark?: string; /** settings for the searchBar button */ - searchBarButton?: ListboxSearchBarButtonOptions; - - /** determines if multiple items can be selected */ - multiple?: boolean; + searchBarButton?: ListBoxSearchBarButtonOptions; /** function which returns a array of items */ - getItems?: () => (string|ListboxItem)[]; + getItems?: () => (string | ListBoxItem)[]; /** callback for selection changes */ - onValueChanged?: (event: ListboxEvent) => void; + onValueChanged?: (event: ListBoxEvent) => void; /** callback for searchBar text changes */ - onFilterChanged?: (event: ListboxEvent) => void; + onFilterChanged?: (event: ListBoxEvent) => void; /** callback for item changes (item added, item removed, item order) */ - onItemsChanged?: (event: ListboxEvent) => void; + onItemsChanged?: (event: ListBoxEvent) => void; /** callback for enter keyPress event on an item */ - onItemEnterPressed?: (event: ListboxEvent) => void; + onItemEnterPressed?: (event: ListBoxEvent) => void; /** callback for doubleClick event on an item */ - onItemDoubleClicked?: (event: ListboxEvent) => void; + onItemDoubleClicked?: (event: ListBoxEvent) => void; } -interface ListboxEvent { +interface ListBoxEvent { /** unique event name */ eventName: string; /** target object for which event is triggered */ - target: JQuery; + target: Element; /** any object */ args: any; } -interface ExtendedListboxInstance { - /** DOM element of the listbox root */ - target: JQuery; - +interface BaseListBox { /** Adds a new item to the list */ - addItem(item: string|ListboxItem): string; + addItem(item: string | ListBoxItem): string; /** Adds new items to the list */ - addItems(item: (string|ListboxItem)[]): string[]; + addItems(items: (string | ListBoxItem)[]): string[]; /** Removes a item from the list */ removeItem(identifier: string): void; @@ -107,13 +100,10 @@ interface ExtendedListboxInstance { clearSelection(): void; /** Returns a item object for the given id or display text */ - getItem(identifier: string): ListboxItem; + getItem(identifier: string): ListBoxItem; /** Returns all item objects */ - getItems(): ListboxItem[]; - - /** Returns all ListboxItem's which are selected */ - getSelection(): ListboxItem[]; + getItems(): ListBoxItem[]; /** Decreases the index of the matching item by one */ moveItemUp(identifier: string): number; @@ -130,26 +120,22 @@ interface ExtendedListboxInstance { /** Enables or disables the whole list and all childs */ enable(state: boolean): void; - /** callback for selection changes */ - onValueChanged(callback: (event: ListboxEvent) => void): void; - - /** callback for item changes (item added, item removed, item order) */ - onItemsChanged(callback: (event: ListboxEvent) => void): void; - - /** callback for searchBar text changes */ - onFilterChanged(callback: (event: ListboxEvent) => void): void; - - /** callback for enter keyPress event on an item */ - onItemEnterPressed(callback: (event: ListboxEvent) => void): void; - - /** callback for doubleClick event on an item */ - onItemDoubleClicked(callback: (event: ListboxEvent) => void): void; + /** Returns all ListBoxItem's which are selected */ + getSelection(): ListBoxItem[]; } -interface JQuery { - /** constructs a new instance of Listbox on the given DOM item or returns existing */ - listbox(): ExtendedListboxInstance|ExtendedListboxInstance[]; - - /** constructs a new instance of Listbox on the given DOM item */ - listbox(options: ListBoxOptions): ExtendedListboxInstance|ExtendedListboxInstance[]; +interface SingleSelectListBox extends BaseListBox { } + +interface MultiSelectListBox extends BaseListBox { +} + +declare var SingleSelectListBox: { + prototype: SingleSelectListBox; + new(domElement: HTMLElement, options?: ListBoxSettings): SingleSelectListBox; +}; + +declare var MultiSelectListBox: { + prototype: MultiSelectListBox; + new(domElement: HTMLElement, options?: ListBoxSettings): MultiSelectListBox; +}; diff --git a/types/extract-text-webpack-plugin/extract-text-webpack-plugin-tests.ts b/types/extract-text-webpack-plugin/extract-text-webpack-plugin-tests.ts index ca992ea3ef..06fc528cff 100644 --- a/types/extract-text-webpack-plugin/extract-text-webpack-plugin-tests.ts +++ b/types/extract-text-webpack-plugin/extract-text-webpack-plugin-tests.ts @@ -1,10 +1,7 @@ -import { optimize, Configuration, Plugin } from 'webpack' - -import * as ExtractTextPlugin from 'extract-text-webpack-plugin' - - -let configuration: Configuration +import webpack = require('webpack'); +import ExtractTextPlugin = require('extract-text-webpack-plugin'); +let configuration: webpack.Configuration; configuration = { // The standard entry point and output config @@ -58,7 +55,7 @@ configuration = { configuration = { // ... plugins: [ - new optimize.CommonsChunkPlugin({ + new webpack.optimize.CommonsChunkPlugin({ name: "commons", filename: "commons.js", }), @@ -85,15 +82,15 @@ configuration = { }; // multiple extract instances -let extractCSS = new ExtractTextPlugin('stylesheets/[name].css'); -let extractLESS = new ExtractTextPlugin('stylesheets/[name].less'); +const extractCSS: ExtractTextPlugin = new ExtractTextPlugin('stylesheets/[name].css'); +const extractLESS: ExtractTextPlugin = new ExtractTextPlugin('stylesheets/[name].less'); configuration = { // ... module: { rules: [ - { test: /\.scss$/i, use: extractCSS.extract(['css','sass']) }, - { test: /\.less$/i, use: extractLESS.extract(['css','less']) }, + { test: /\.scss$/i, use: extractCSS.extract(['css', 'sass']) }, + { test: /\.less$/i, use: extractLESS.extract(['css', 'less']) }, ] }, plugins: [ diff --git a/types/extract-text-webpack-plugin/index.d.ts b/types/extract-text-webpack-plugin/index.d.ts index 0897d7b594..962698568a 100644 --- a/types/extract-text-webpack-plugin/index.d.ts +++ b/types/extract-text-webpack-plugin/index.d.ts @@ -1,49 +1,56 @@ -// Type definitions for extract-text-webpack-plugin 2.1.0 +// Type definitions for extract-text-webpack-plugin 3.0 // Project: https://github.com/webpack-contrib/extract-text-webpack-plugin // Definitions by: flying-sheep , kayo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -import { Plugin, OldLoader, NewLoader } from 'webpack' +import webpack = require('webpack'); + +export = ExtractTextPlugin; /** * extract-text-webpack-plugin has no support for .options instead of .query yet. * See https://github.com/webpack/extract-text-webpack-plugin/issues/281 */ -type Loader = string | OldLoader | NewLoader - -interface ExtractPluginOptions { - /** the filename of the result file. May contain `[name]`, `[id]` and `[contenthash]` */ - filename: string - /** extract from all additional chunks too (by default it extracts only from the initial chunk(s)) */ - allChunks?: boolean - /** disables the plugin */ - disable?: boolean - /** Unique ident for this plugin instance. (For advanced usage only, by default automatically generated) */ - id?: string -} - -interface ExtractOptions { - /** the loader(s) that should be used for converting the resource to a css exporting module */ - use: Loader | Loader[] - /** the loader(s) that should be used when the css is not extracted (i.e. in an additional chunk when `allChunks: false`) */ - fallback?: Loader | Loader[] - /** override the `publicPath` setting for this loader */ - publicPath?: string -} +type Loader = string | webpack.OldLoader | webpack.NewLoader; /** * Use an `ExtractTextPlugin` instance and a loader returned by `extract` in concert to write files to disk instead of loading them into others. * Usage example at https://github.com/webpack/extract-text-webpack-plugin#usage-example-with-css */ -interface ExtractTextPlugin extends Plugin { +declare class ExtractTextPlugin extends webpack.Plugin { /** Create a plugin instance defining the extraction target file(s) for the files loaded by `extract` */ - new (options: string | ExtractPluginOptions): ExtractTextPlugin + constructor(options: string | ExtractTextPlugin.PluginOptions); /** - * Creates an extracting loader from an existing loader. + * Creates an extracting loader from an existing loader (static). * Use the resulting loader in `module.rules`/`module.loaders`. + * @see {@link https://www.npmjs.com/package/extract-text-webpack-plugin#extract} */ - extract: (loader: Loader | Loader[] | ExtractOptions) => Loader[] + static extract: (loader: Loader | Loader[] | ExtractTextPlugin.LoaderOptions) => Loader[]; + /** + * Creates an extracting loader from an existing loader (instance). + * Use the resulting loader in `module.rules`/`module.loaders`. + * @see {@link https://www.npmjs.com/package/extract-text-webpack-plugin#multiple-instances} + */ + extract: (loader: Loader | Loader[] | ExtractTextPlugin.LoaderOptions) => Loader[]; } -declare const extractTextPlugin: ExtractTextPlugin -export = extractTextPlugin +declare namespace ExtractTextPlugin { + interface PluginOptions { + /** the filename of the result file. May contain `[name]`, `[id]` and `[contenthash]` */ + filename: string; + /** extract from all additional chunks too (by default it extracts only from the initial chunk(s)) */ + allChunks?: boolean; + /** disables the plugin */ + disable?: boolean; + /** Unique ident for this plugin instance. (For advanced usage only, by default automatically generated) */ + id?: string; + } + interface LoaderOptions { + /** the loader(s) that should be used for converting the resource to a css exporting module */ + use: Loader | Loader[]; + /** the loader(s) that should be used when the css is not extracted (i.e. in an additional chunk when `allChunks: false`) */ + fallback?: Loader | Loader[]; + /** override the `publicPath` setting for this loader */ + publicPath?: string; + } +} diff --git a/types/extract-text-webpack-plugin/tsconfig.json b/types/extract-text-webpack-plugin/tsconfig.json index b5e248c21d..af41789949 100644 --- a/types/extract-text-webpack-plugin/tsconfig.json +++ b/types/extract-text-webpack-plugin/tsconfig.json @@ -19,4 +19,4 @@ "index.d.ts", "extract-text-webpack-plugin-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/extract-text-webpack-plugin/tslint.json b/types/extract-text-webpack-plugin/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/extract-text-webpack-plugin/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/firebird/tslint.json b/types/firebird/tslint.json index 188dc816e2..4b3c58f2c3 100644 --- a/types/firebird/tslint.json +++ b/types/firebird/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODO "no-boolean-literal-compare": false, + "no-declare-current-package": false, "no-unnecessary-generics": false } } diff --git a/types/first-mate/.editorconfig b/types/first-mate/.editorconfig index 570211f898..2b997514d2 100644 --- a/types/first-mate/.editorconfig +++ b/types/first-mate/.editorconfig @@ -1,3 +1,3 @@ [*.ts] indent_style = tab -indent_size = 4 +indent_size = 2 diff --git a/types/first-mate/README.md b/types/first-mate/README.md new file mode 100644 index 0000000000..e83328a13e --- /dev/null +++ b/types/first-mate/README.md @@ -0,0 +1,22 @@ +## First Mate Type Definitions + +TypeScript type definitions for [First Mate](https://github.com/atom/first-mate), which is published as "[first-mate](https://www.npmjs.com/package/first-mate)" on NPM. + +### Usage Notes + +#### Exports + +The three classes exported from this module are: [Grammar](https://github.com/atom/first-mate/blob/master/src/grammar.coffee), [GrammarRegistry](https://github.com/atom/first-mate/blob/master/src/grammar-registry.coffee), and [ScopeSelector](https://github.com/atom/first-mate/blob/master/src/scope-selector.coffee). + +```ts +import { Grammar, GrammarRegistry, ScopeSelector } from "first-mate"; +let selector = new ScopeSelector("a | b"); +``` + +#### The FirstMate Namespace + +Many of the types used by First Mate can be referenced from the FirstMate namespace. + +```ts +function example(grammar: FirstMate.Grammar) {} +``` diff --git a/types/first-mate/first-mate-tests.ts b/types/first-mate/first-mate-tests.ts index 1f7fe0fc76..b0fd70d4e2 100644 --- a/types/first-mate/first-mate-tests.ts +++ b/types/first-mate/first-mate-tests.ts @@ -1,10 +1,93 @@ +import { GrammarRegistry, Grammar, ScopeSelector } from "first-mate"; +declare let subscription: EventKit.Disposable; +declare let grammar: FirstMate.Grammar; +declare let grammars: FirstMate.Grammar[]; -import { GrammarRegistry, Grammar, IToken } from "first-mate"; +// NPM Examples =============================================================== +const selector = new ScopeSelector("a | b"); +selector.matches(["c"]); // # false +selector.matches(["a"]); // # true -var registry = new GrammarRegistry({ maxTokensPerLine: 100 }); -var grammar = registry.loadGrammarSync('javascript.json'); -var result = grammar.tokenizeLine('var text = "hello world";'); +const registry = new GrammarRegistry(); +grammar = registry.loadGrammarSync("./spec/fixtures/javascript.json"); +const { line, tags } = grammar.tokenizeLine("var offset = 3;"); +// Convert compact tags representation into convenient, space-inefficient tokens. +const tokens = registry.decodeTokens(line, tags); +for (const { value, scopes } of tokens) { + console.log(`Token text: '${value}' with scopes: ${scopes}`); +} + +// General Usage ============================================================== +let str: string; + +new GrammarRegistry({ maxTokensPerLine: 100 }); +registry.loadGrammarSync("javascript.json"); +const result = grammar.tokenizeLine('var text = "hello world";'); result.tokens.forEach((token) => { - console.log("Token text: '" + token.value + "' with scopes: " + token.scopes); + console.log(`Token text: '${token.value}' with scopes: ${token.scopes}`); +}); + +new ScopeSelector("source.file"); +let prefix = selector.getPrefix("test"); +if (prefix) { + str = prefix.charAt(0); +} +prefix = selector.getPrefix(["test", "test"]); + +str = selector.toCssSelector(); +str = selector.toCssSyntaxSelector(); + +// Grammar ==================================================================== +subscription = grammar.onDidUpdate(() => {}); + +const tokenizeLinesResult = grammar.tokenizeLines("Test String"); +for (const tokenizedLine of tokenizeLinesResult) { + for (const token of tokenizedLine) { + token.scopes; + token.value; + } +} + +grammar.tokenizeLine("Test String"); +const tokenizeLineResult = grammar.tokenizeLine("Test String", null, false); +tokenizeLineResult.line; +tokenizeLineResult.tags; +tokenizeLineResult.tokens; +grammar.tokenizeLine("Test String", tokenizeLineResult.ruleStack); +grammar.tokenizeLine("Test String", tokenizeLineResult.ruleStack, false); + +// Grammar Registry =========================================================== +// Event Subscription +subscription = registry.onDidAddGrammar(grammar => grammar.name); +subscription = registry.onDidUpdateGrammar(grammar => grammar.name); + +// Managing Grammars +grammars = registry.getGrammars(); + +let potentialGrammar = registry.grammarForScopeName("scope.test"); +if (potentialGrammar) grammar = potentialGrammar; + +subscription = registry.addGrammar(grammar); + +potentialGrammar = registry.removeGrammarForScopeName("scope.test"); + +grammar = registry.readGrammarSync("/test/path"); + +registry.readGrammar("/test/path", (error, grammar) => { + if (grammar) { + grammar.name; + } else { + if (error) error.name; + } +}); + +grammar = registry.loadGrammarSync("/test/path"); + +registry.loadGrammar("/test/path", (error, grammar) => { + if (grammar) { + grammar.name; + } else { + if (error) error.name; + } }); diff --git a/types/first-mate/index.d.ts b/types/first-mate/index.d.ts index 8087fe06f4..0986b80aa5 100644 --- a/types/first-mate/index.d.ts +++ b/types/first-mate/index.d.ts @@ -1,107 +1,258 @@ -// Type definitions for first-mate v4.1.7 +// Type definitions for first-mate 7.x // Project: https://github.com/atom/first-mate/ -// Definitions by: Vadim Macagon +// Definitions by: GlenCFL // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 /// -import * as AtomEventKit from "event-kit"; -export = AtomFirstMate; +declare global { + /** TextMate helpers. */ + namespace FirstMate { + /** Objects that appear as parameters to functions. */ + namespace Options { + interface Grammar { + name?: string; + fileTypes?: ReadonlyArray; + scopeName?: string; + foldingStopMarker?: string; + maxTokensPerLine?: number; + maxLineLength?: number; -declare namespace AtomFirstMate { - type Disposable = AtomEventKit.Disposable; + injections?: any; + injectionSelector?: any; + patterns?: ReadonlyArray; + repository?: object; + firstLineMatch?: any; + } + } - interface IToken { - value: string; - scopes: string[]; + /** The static side to each exported class. Should generally only be used internally. */ + namespace Statics { + /* tslint:disable:no-unnecessary-qualifier */ + /** The static side to the Grammar class. */ + interface Grammar { + new (registry: FirstMate.GrammarRegistry, options?: FirstMate.Options.Grammar): + FirstMate.Grammar; + } + + /** The static side to the GrammarRegistry class. */ + interface GrammarRegistry { + new (options?: { maxTokensPerLine?: number, maxLineLength?: number }): + FirstMate.GrammarRegistry; + } + + /** The static side to the ScopeSelector class. */ + interface ScopeSelector { + /** Create a new scope selector. + * @param source The string to parse as a scope selector. + * @return A newly constructed ScopeSelector. + */ + new (source: string): FirstMate.ScopeSelector; + } + /* tslint:enable:no-unnecessary-qualifier */ + } + + /** Data structures that are used within classes. */ + namespace Structures { + interface GrammarToken { + value: string; + scopes: string[]; + } + + /** Result returned by `Grammar.tokenizeLine`. */ + interface TokenizeLineResult { + /** The string of text that was tokenized. */ + line: string; + + /** An array of integer scope ids and strings. Positive ids indicate the + * beginning of a scope, and negative tags indicate the end. To resolve ids + * to scope names, call {GrammarRegistry::scopeForId} with the absolute + * value of the id. + */ + tags: Array; + + /** This is a dynamic property. Invoking it will incur additional overhead, + * but will automatically translate the `tags` into token objects with `value` + * and `scopes` properties. + */ + tokens: GrammarToken[]; + + /** An array of rules representing the tokenized state at the end of the line. + * These should be passed back into this method when tokenizing the next line + * in the file. + */ + ruleStack: GrammarRule[]; + } + + interface GrammarRule { + // https://github.com/atom/first-mate/blob/v7.0.7/src/rule.coffee + // This is private. Don't go down the rabbit hole. + rule: object; + scopeName: string; + contentScopeName: string; + } + } + + /** Grammar that tokenizes lines of text. */ + interface Grammar { + name: string; + fileTypes: string[]; + scopeName: string; + maxTokensPerLine: number; + maxLineLength: number; + + // Event Subscription + onDidUpdate(callback: () => void): EventKit.Disposable; + + // Tokenizing + /** Tokenize all lines in the given text. + * @param text A string containing one or more lines. + * @return An array of token arrays for each line tokenized. + */ + tokenizeLines(text: string): Structures.GrammarToken[][]; + + /** Tokenizes the line of text. + * @param line A string of text to tokenize. + * @param ruleStack An optional array of rules previously returned from this + * method. This should be null when tokenizing the first line in the file. + * @param firstLine A optional boolean denoting whether this is the first line + * in the file which defaults to `false`. + * @return An object representing the result of the tokenize. + */ + tokenizeLine(line: string, ruleStack?: null, firstLine?: boolean): + Structures.TokenizeLineResult; + /** Tokenizes the line of text. + * @param line A string of text to tokenize. + * @param ruleStack An optional array of rules previously returned from this + * method. This should be null when tokenizing the first line in the file. + * @param firstLine A optional boolean denoting whether this is the first line + * in the file which defaults to `false`. + * @return An object representing the result of the tokenize. + */ + tokenizeLine(line: string, ruleStack: Structures.GrammarRule[], firstLine?: false): + Structures.TokenizeLineResult; + } + + /** Instance side of GrammarRegistry class. */ + interface GrammarRegistry { + maxTokensPerLine: number; + maxLineLength: number; + + // Event Subscription + /** Invoke the given callback when a grammar is added to the registry. + * @param callback The callback to be invoked whenever a grammar is added. + * @return A Disposable on which `.dispose()` can be called to unsubscribe. + */ + onDidAddGrammar(callback: (grammar: Grammar) => void): EventKit.Disposable; + + /** Invoke the given callback when a grammar is updated due to a grammar it + * depends on being added or removed from the registry. + * @param callback The callback to be invoked whenever a grammar is updated. + * @return A Disposable on which `.dispose()` can be called to unsubscribe. + */ + onDidUpdateGrammar(callback: (grammar: Grammar) => void): EventKit.Disposable; + + // Managing Grammars + /** Get all the grammars in this registry. + * @return A non-empty array of Grammar instances. + */ + getGrammars(): Grammar[]; + + /** Get a grammar with the given scope name. + * @param scopeName A string such as `source.js`. + * @return A Grammar or undefined. + */ + grammarForScopeName(scopeName: string): Grammar|undefined; + + /** Add a grammar to this registry. + * A 'grammar-added' event is emitted after the grammar is added. + * @param grammar The Grammar to add. This should be a value previously returned + * from ::readGrammar or ::readGrammarSync. + * @return Returns a Disposable on which `.dispose()` can be called to remove + * the grammar. + */ + addGrammar(grammar: Grammar): EventKit.Disposable; + + /** Remove the given grammar from this registry. + * @param grammar The grammar to remove. This should be a grammar previously + * added to the registry from ::addGrammar. + */ + removeGrammar(grammar: Grammar): void; + + /** Remove the grammar with the given scope name. + * @param scopeName A string such as `source.js`. + * @return Returns the removed Grammar or undefined. + */ + removeGrammarForScopeName(scopeName: string): Grammar|undefined; + + /** Read a grammar synchronously but don't add it to the registry. + * @param grammarPath The absolute file path to a grammar. + * @return The newly loaded Grammar. + */ + readGrammarSync(grammarPath: string): Grammar; + + /** Read a grammar asynchronously but don't add it to the registry. + * @param grammarPath The absolute file path to the grammar. + * @param callback The function to be invoked once the Grammar has been read in. + */ + readGrammar(grammarPath: string, callback: (error: Error|null, grammar?: Grammar) => + void): void; + + /** Read a grammar synchronously and add it to this registry. + * @param grammarPath The absolute file path to the grammar. + * @return The newly loaded Grammar. + */ + loadGrammarSync(grammarPath: string): Grammar; + + /** Read a grammar asynchronously and add it to the registry. + * @param grammarPath The absolute file path to the grammar. + * @param callback The function to be invoked once the Grammar has been read in + * and added to the registry. + */ + loadGrammar(grammarPath: string, callback: (error: Error|null, grammar?: Grammar) => + void): void; + + /** Convert compact tags representation into convenient, space-inefficient tokens. + * @param lineText The text of the tokenized line. + * @param tags The tags returned from a call to Grammar::tokenizeLine(). + * @return An array of Token instances decoded from the given tags. + */ + decodeTokens(lineText: string, tags: Array): Structures.GrammarToken[]; + } + + interface ScopeSelector { + /** Check if this scope selector matches the scopes. + * @param scopes A single scope or an array of them to be compared against. + * @return A boolean indicating whether or not this ScopeSelector matched. + */ + matches(scopes: string|ReadonlyArray): boolean; + + /** Gets the prefix of this scope selector. + * @param scopes The scopes to match a prefix against. + * @return The matching prefix, if there is one. + */ + getPrefix(scopes: string|ReadonlyArray): string|undefined; + + /** Convert this TextMate scope selector to a CSS selector. + * @return A string with the CSSSelector representation of this ScopeSelector. + */ + toCssSelector(): string; + + /** Convert this TextMate scope selector to a CSS selector, prefixing scopes + * with `syntax--`. + * @return A string with the syntax-specific CSSSelector representation of this + * ScopeSelector. + */ + toCssSyntaxSelector(): string; + } } +} - /** Result returned by `Grammar.tokenizeLine`. */ - interface TokenizeLineResult { - /** Text that was tokenized. */ - line: string; - tags: any[]; - /** - * This is a dynamic property that will only be available if `Grammar.tokenizeLine` was called - * with `compatibilityMode` set to `true` (the default). - */ - tokens?: IToken[]; - /** - * The tokenized state at the end of the line. This should be passed back into `tokenizeLine` - * when tokenizing the next line in the file/buffer. - */ - ruleStack: Rule[] - } +/** Registry containing one or more grammars. */ +export const GrammarRegistry: FirstMate.Statics.GrammarRegistry; - /** Instance side of Rule class. */ - interface Rule { - } +export const ScopeSelector: FirstMate.Statics.ScopeSelector; - /** Static side of Grammar class. */ - interface GrammarStatic { - prototype: Grammar; - new (registry: GrammarRegistry, options?: any): Grammar; - } - - /** Instance side of Grammar class. */ - interface Grammar { - constructor: GrammarStatic; - onDidUpdate(callback: Function): Disposable; - /** - * Tokenizes all lines in a string. - * - * @param text A string containing one or more lines. - * @return An array of token arrays, one token array per line. - */ - tokenizeLines(text: string): Array>; - /** - * Tokenizes a line of text. - * - * @param line Text to be tokenized. - * @param firstLine Indicates whether `line` is the first line in the file/buffer, - * defaults to `false`. - * @param compatibilityMode `true` by default. - * @return An object containing tokens for the given line. - */ - tokenizeLine( - line: string, ruleStack?: Rule[], firstLine?: boolean, compatibilityMode?: boolean - ): TokenizeLineResult; - } - - /** Grammar that tokenizes lines of text. */ - var Grammar: GrammarStatic; - - /** Static side of GrammarRegistry class. */ - interface GrammarRegistryStatic { - prototype: GrammarRegistry; - new (options?: { maxTokensPerLine: number }): GrammarRegistry; - } - - /** Instance side of GrammarRegistry class. */ - interface GrammarRegistry { - constructor: GrammarRegistryStatic; - - // Event Subscription - - onDidAddGrammar(callback: (grammar: Grammar) => void): Disposable; - onDidUpdateGrammar(callback: (grammar: Grammar) => void): Disposable; - - // Managing Grammars - - getGrammars(): Grammar[]; - grammarForScopeName(scopeName: string): Grammar; - addGrammar(grammar: Grammar): Disposable; - removeGrammarForScopeName(scopeName: string): Grammar; - readGrammarSync(grammarPath: string): Grammar; - readGrammar(grammarPath: string, callback: (error: Error, grammar: Grammar) => void): void; - loadGrammarSync(grammarPath: string): Grammar; - loadGrammar(grammarPath: string, callback: (error: Error, grammar: Grammar) => void): void; - grammarOverrideForPath(filePath: string): Grammar; - setGrammarOverrideForPath(filePath: string, scopeName: string): Grammar; - clearGrammarOverrides(): void; - selectGrammar(filePath: string, fileContents: string): Grammar; - } - - /** Registry containing one or more grammars. */ - var GrammarRegistry: GrammarRegistryStatic; -} \ No newline at end of file +/** Grammar that tokenizes lines of text. */ +export const Grammar: FirstMate.Statics.Grammar; diff --git a/types/first-mate/tsconfig.json b/types/first-mate/tsconfig.json index b8ae8bf954..edba8406ca 100644 --- a/types/first-mate/tsconfig.json +++ b/types/first-mate/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -20,4 +20,4 @@ "index.d.ts", "first-mate-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/first-mate/tslint.json b/types/first-mate/tslint.json new file mode 100644 index 0000000000..22fcf73c1c --- /dev/null +++ b/types/first-mate/tslint.json @@ -0,0 +1,39 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // Custom rules. + "class-name": true, + "indent": [true, "tabs"], + "jsdoc-format": true, + "linebreak-style": [true, "LF"], + "max-line-length": [true, 100], + "quotemark": [true, "double", "avoid-escape"], + "trailing-comma": [true, { + "multiline": { "objects": "always", "arrays": "always", "functions": "never" }, + "singleline": { "objects": "never", "arrays": "never", "functions": "never" } + }], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-module", + "check-separator", + "check-type", + "check-typecast", + "check-rest-spread", + "check-preblock" + ], + // TODO + "no-any": false, + // Soon to be defaults. + "arrow-return-shorthand": [true, "multiline"], + "no-floating-promises": true, + "no-unbound-method": true, + "no-unsafe-any": true, + "number-literal-format": true, + "restrict-plus-operands": true, + "return-undefined": true, + "switch-final-break": true + } +} diff --git a/types/first-mate/v4/.editorconfig b/types/first-mate/v4/.editorconfig new file mode 100644 index 0000000000..570211f898 --- /dev/null +++ b/types/first-mate/v4/.editorconfig @@ -0,0 +1,3 @@ +[*.ts] +indent_style = tab +indent_size = 4 diff --git a/types/first-mate/v4/first-mate-tests.ts b/types/first-mate/v4/first-mate-tests.ts new file mode 100644 index 0000000000..1f7fe0fc76 --- /dev/null +++ b/types/first-mate/v4/first-mate-tests.ts @@ -0,0 +1,10 @@ + + +import { GrammarRegistry, Grammar, IToken } from "first-mate"; + +var registry = new GrammarRegistry({ maxTokensPerLine: 100 }); +var grammar = registry.loadGrammarSync('javascript.json'); +var result = grammar.tokenizeLine('var text = "hello world";'); +result.tokens.forEach((token) => { + console.log("Token text: '" + token.value + "' with scopes: " + token.scopes); +}); diff --git a/types/first-mate/v4/index.d.ts b/types/first-mate/v4/index.d.ts new file mode 100644 index 0000000000..81b7d96c04 --- /dev/null +++ b/types/first-mate/v4/index.d.ts @@ -0,0 +1,105 @@ +// Type definitions for first-mate v4.1.7 +// Project: https://github.com/atom/first-mate/ +// Definitions by: Vadim Macagon +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as AtomEventKit from "event-kit"; +export = AtomFirstMate; + +declare namespace AtomFirstMate { + type Disposable = AtomEventKit.Disposable; + + interface IToken { + value: string; + scopes: string[]; + } + + /** Result returned by `Grammar.tokenizeLine`. */ + interface TokenizeLineResult { + /** Text that was tokenized. */ + line: string; + tags: any[]; + /** + * This is a dynamic property that will only be available if `Grammar.tokenizeLine` was called + * with `compatibilityMode` set to `true` (the default). + */ + tokens?: IToken[]; + /** + * The tokenized state at the end of the line. This should be passed back into `tokenizeLine` + * when tokenizing the next line in the file/buffer. + */ + ruleStack: Rule[] + } + + /** Instance side of Rule class. */ + interface Rule { + } + + /** Static side of Grammar class. */ + interface GrammarStatic { + prototype: Grammar; + new (registry: GrammarRegistry, options?: any): Grammar; + } + + /** Instance side of Grammar class. */ + interface Grammar { + constructor: GrammarStatic; + onDidUpdate(callback: Function): Disposable; + /** + * Tokenizes all lines in a string. + * + * @param text A string containing one or more lines. + * @return An array of token arrays, one token array per line. + */ + tokenizeLines(text: string): Array>; + /** + * Tokenizes a line of text. + * + * @param line Text to be tokenized. + * @param firstLine Indicates whether `line` is the first line in the file/buffer, + * defaults to `false`. + * @param compatibilityMode `true` by default. + * @return An object containing tokens for the given line. + */ + tokenizeLine( + line: string, ruleStack?: Rule[], firstLine?: boolean, compatibilityMode?: boolean + ): TokenizeLineResult; + } + + /** Grammar that tokenizes lines of text. */ + var Grammar: GrammarStatic; + + /** Static side of GrammarRegistry class. */ + interface GrammarRegistryStatic { + prototype: GrammarRegistry; + new (options?: { maxTokensPerLine: number }): GrammarRegistry; + } + + /** Instance side of GrammarRegistry class. */ + interface GrammarRegistry { + constructor: GrammarRegistryStatic; + + // Event Subscription + + onDidAddGrammar(callback: (grammar: Grammar) => void): Disposable; + onDidUpdateGrammar(callback: (grammar: Grammar) => void): Disposable; + + // Managing Grammars + + getGrammars(): Grammar[]; + grammarForScopeName(scopeName: string): Grammar; + addGrammar(grammar: Grammar): Disposable; + removeGrammarForScopeName(scopeName: string): Grammar; + readGrammarSync(grammarPath: string): Grammar; + readGrammar(grammarPath: string, callback: (error: Error, grammar: Grammar) => void): void; + loadGrammarSync(grammarPath: string): Grammar; + loadGrammar(grammarPath: string, callback: (error: Error, grammar: Grammar) => void): void; + grammarOverrideForPath(filePath: string): Grammar; + setGrammarOverrideForPath(filePath: string, scopeName: string): Grammar; + clearGrammarOverrides(): void; + selectGrammar(filePath: string, fileContents: string): Grammar; + } + + /** Registry containing one or more grammars. */ + var GrammarRegistry: GrammarRegistryStatic; +} diff --git a/types/first-mate/v4/tsconfig.json b/types/first-mate/v4/tsconfig.json new file mode 100644 index 0000000000..62bbc43837 --- /dev/null +++ b/types/first-mate/v4/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "event-kit": [ "event-kit/v1" ], + "first-mate": [ "first-mate/v4" ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "first-mate-tests.ts" + ] +} diff --git a/types/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts index 87bdbfe15c..65bacff53e 100644 --- a/types/fluent-ffmpeg/index.d.ts +++ b/types/fluent-ffmpeg/index.d.ts @@ -90,7 +90,7 @@ declare namespace Ffmpeg { type FormatsCallback = (err: Error, formats: Formats) => void; interface FfprobeData { - stream: any[]; + streams: any[]; format: any; chapters: any[]; } diff --git a/types/friendly-errors-webpack-plugin/index.d.ts b/types/friendly-errors-webpack-plugin/index.d.ts index 582dfadf57..7e2937c867 100644 --- a/types/friendly-errors-webpack-plugin/index.d.ts +++ b/types/friendly-errors-webpack-plugin/index.d.ts @@ -24,7 +24,7 @@ declare namespace FriendlyErrorsWebpackPlugin { notes: string[], }; onErrors?(severity: Severity, errors: string): void; - clearConsole?: true; + clearConsole?: boolean; additionalFormatters?: Array<(errors: WebpackError[], type: Severity) => string[]>; additionalTransformers?: Array<(error: any) => any>; } diff --git a/types/fusioncharts/fusioncharts.charts.d.ts b/types/fusioncharts/fusioncharts.charts.d.ts index bab32b04b8..d4de3a4561 100644 --- a/types/fusioncharts/fusioncharts.charts.d.ts +++ b/types/fusioncharts/fusioncharts.charts.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from "."; declare function charts(H: FusionChartStatic): FusionChartStatic; export = charts; diff --git a/types/fusioncharts/fusioncharts.gantt.d.ts b/types/fusioncharts/fusioncharts.gantt.d.ts index 847aa93707..e52f61abe8 100644 --- a/types/fusioncharts/fusioncharts.gantt.d.ts +++ b/types/fusioncharts/fusioncharts.gantt.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from "."; declare function gantt(H: FusionChartStatic): FusionChartStatic; export = gantt; diff --git a/types/fusioncharts/fusioncharts.maps.d.ts b/types/fusioncharts/fusioncharts.maps.d.ts index ea5ed5922d..acf9dd91ea 100644 --- a/types/fusioncharts/fusioncharts.maps.d.ts +++ b/types/fusioncharts/fusioncharts.maps.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from "."; declare function maps(H: FusionChartStatic): FusionChartStatic; export = maps; diff --git a/types/fusioncharts/fusioncharts.powercharts.d.ts b/types/fusioncharts/fusioncharts.powercharts.d.ts index b854d2ce64..c18073ed9d 100644 --- a/types/fusioncharts/fusioncharts.powercharts.d.ts +++ b/types/fusioncharts/fusioncharts.powercharts.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from "."; declare function powercharts(H: FusionChartStatic): FusionChartStatic; export = powercharts; diff --git a/types/fusioncharts/fusioncharts.ssgrid.d.ts b/types/fusioncharts/fusioncharts.ssgrid.d.ts index 88e8c02afb..27b7e45906 100644 --- a/types/fusioncharts/fusioncharts.ssgrid.d.ts +++ b/types/fusioncharts/fusioncharts.ssgrid.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from "."; declare function ssgrid(H: FusionChartStatic): FusionChartStatic; export = ssgrid; diff --git a/types/fusioncharts/fusioncharts.treemap.d.ts b/types/fusioncharts/fusioncharts.treemap.d.ts index 9ca8941e62..41c70111f4 100644 --- a/types/fusioncharts/fusioncharts.treemap.d.ts +++ b/types/fusioncharts/fusioncharts.treemap.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from "."; declare function treemap(H: FusionChartStatic): FusionChartStatic; export = treemap; diff --git a/types/fusioncharts/fusioncharts.widgets.d.ts b/types/fusioncharts/fusioncharts.widgets.d.ts index 719e791409..e370acb48a 100644 --- a/types/fusioncharts/fusioncharts.widgets.d.ts +++ b/types/fusioncharts/fusioncharts.widgets.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from "."; declare function widgets(H: FusionChartStatic): FusionChartStatic; export = widgets; diff --git a/types/fusioncharts/fusioncharts.zoomscatter.d.ts b/types/fusioncharts/fusioncharts.zoomscatter.d.ts index 4e6a53a364..c9e1213873 100644 --- a/types/fusioncharts/fusioncharts.zoomscatter.d.ts +++ b/types/fusioncharts/fusioncharts.zoomscatter.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from "."; declare function zoomscatter(H: FusionChartStatic): FusionChartStatic; export = zoomscatter; diff --git a/types/fusioncharts/maps/fusioncharts.usa.d.ts b/types/fusioncharts/maps/fusioncharts.usa.d.ts index ce03434417..45003eb3a8 100644 --- a/types/fusioncharts/maps/fusioncharts.usa.d.ts +++ b/types/fusioncharts/maps/fusioncharts.usa.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from ".."; declare function usa(H: FusionChartStatic): FusionChartStatic; export = usa; diff --git a/types/fusioncharts/maps/fusioncharts.world.d.ts b/types/fusioncharts/maps/fusioncharts.world.d.ts index 8d68a0e03f..e77368c4f6 100644 --- a/types/fusioncharts/maps/fusioncharts.world.d.ts +++ b/types/fusioncharts/maps/fusioncharts.world.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from ".."; declare function world(H: FusionChartStatic): FusionChartStatic; export = world; diff --git a/types/fusioncharts/themes/fusioncharts.theme.carbon.d.ts b/types/fusioncharts/themes/fusioncharts.theme.carbon.d.ts index 833c371ee4..7d1d3d9d41 100644 --- a/types/fusioncharts/themes/fusioncharts.theme.carbon.d.ts +++ b/types/fusioncharts/themes/fusioncharts.theme.carbon.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from ".."; declare function carbon(H: FusionChartStatic): FusionChartStatic; export = carbon; diff --git a/types/fusioncharts/themes/fusioncharts.theme.fint.d.ts b/types/fusioncharts/themes/fusioncharts.theme.fint.d.ts index fc9017e342..0c8a469ede 100644 --- a/types/fusioncharts/themes/fusioncharts.theme.fint.d.ts +++ b/types/fusioncharts/themes/fusioncharts.theme.fint.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from ".."; declare function fint(H: FusionChartStatic): FusionChartStatic; export = fint; diff --git a/types/fusioncharts/themes/fusioncharts.theme.ocean.d.ts b/types/fusioncharts/themes/fusioncharts.theme.ocean.d.ts index cc7fbee84c..c7941229d6 100644 --- a/types/fusioncharts/themes/fusioncharts.theme.ocean.d.ts +++ b/types/fusioncharts/themes/fusioncharts.theme.ocean.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from ".."; declare function ocean(H: FusionChartStatic): FusionChartStatic; export = ocean; diff --git a/types/fusioncharts/themes/fusioncharts.theme.zune.d.ts b/types/fusioncharts/themes/fusioncharts.theme.zune.d.ts index ed3dc001a1..13cef2ba17 100644 --- a/types/fusioncharts/themes/fusioncharts.theme.zune.d.ts +++ b/types/fusioncharts/themes/fusioncharts.theme.zune.d.ts @@ -1,4 +1,4 @@ -import { FusionChartStatic } from "fusioncharts"; +import { FusionChartStatic } from ".."; declare function zune(H: FusionChartStatic): FusionChartStatic; export = zune; diff --git a/types/gapi.auth2/index.d.ts b/types/gapi.auth2/index.d.ts index 4cdef77a80..c5cfff0d9e 100644 --- a/types/gapi.auth2/index.d.ts +++ b/types/gapi.auth2/index.d.ts @@ -208,7 +208,7 @@ declare namespace gapi.auth2 { login_hint?: string; app_package_name?: string; openid_realm?: string; - include_granted_scope?: boolean; + include_granted_scopes?: boolean; } /** diff --git a/types/gapi.youtube/index.d.ts b/types/gapi.youtube/index.d.ts index 5f3aef616a..b09779cdb3 100644 --- a/types/gapi.youtube/index.d.ts +++ b/types/gapi.youtube/index.d.ts @@ -1621,7 +1621,7 @@ interface GoogleApiYouTubePlaylistResource { /** * A map of thumbnail images associated with the playlist. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail. */ - thumbnails: GoogleApiYouTubeThumbnailItemResource[]; + thumbnails: GoogleApiYouTubeThumbnailResource; /** * The channel title of the channel that the video belongs to. */ @@ -1813,6 +1813,14 @@ interface GoogleApiYouTubeThumbnailResource { * A high resolution version of the thumbnail image. For a video (or a resource that refers to a video), this image is 480px wide and 360px tall. For a channel, this image is 800px wide and 800px tall. */ high: GoogleApiYouTubeThumbnailItemResource; + /** + * A standard resolution version of the thumbnail image. For a video (or a resource that refers to a video), this image is 480px wide and 360px tall. For a channel, this image is 800px wide and 800px tall. + */ + standard?: GoogleApiYouTubeThumbnailItemResource; + /** + * A very high resolution version of the thumbnail image. For a video (or a resource that refers to a video), this image is 480px wide and 360px tall. For a channel, this image is 800px wide and 800px tall. + */ + maxres?: GoogleApiYouTubeThumbnailItemResource; } interface GoogleApiYouTubeThumbnailItemResource { diff --git a/types/geojson/geojson-tests.ts b/types/geojson/geojson-tests.ts index 1e4fe3b392..64b2b34f2b 100644 --- a/types/geojson/geojson-tests.ts +++ b/types/geojson/geojson-tests.ts @@ -205,3 +205,20 @@ featureCollection = { } } }; + +// Allow access to custom properties +const pt: GeoJSON.Feature = { + type: 'Feature', + properties: { + foo: 'bar', + hello: 'world', + 1: 2 + }, + geometry: { + type: 'Point', + coordinates: [0, 0] + } +}; +pt.properties.foo; +pt.properties.hello; +pt.properties[1]; diff --git a/types/geojson/index.d.ts b/types/geojson/index.d.ts index acee02d863..120a9cf100 100644 --- a/types/geojson/index.d.ts +++ b/types/geojson/index.d.ts @@ -92,7 +92,7 @@ export interface GeometryCollection extends GeoJsonObject { export interface Feature extends GeoJsonObject { type: 'Feature'; geometry: T; - properties: {} | null; + properties: any; id?: string; } diff --git a/types/get-port/get-port-tests.ts b/types/get-port/get-port-tests.ts index 620f0fd32c..b6e59890d6 100644 --- a/types/get-port/get-port-tests.ts +++ b/types/get-port/get-port-tests.ts @@ -3,3 +3,7 @@ import * as getPort from "get-port"; getPort().then(port => { console.log(port); }); + +getPort({ port: 3000 }).then(port => { + console.log(port); +}); diff --git a/types/get-port/index.d.ts b/types/get-port/index.d.ts index 673c547f1c..3f62b90c86 100644 --- a/types/get-port/index.d.ts +++ b/types/get-port/index.d.ts @@ -1,9 +1,9 @@ -// Type definitions for ajv +// Type definitions for get-port 3.2 // Project: https://github.com/sindresorhus/get-port // Definitions by: York Yao // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "get-port" { - var getPort: () => PromiseLike + var getPort: (options?: { port?: number, host?: string }) => PromiseLike export = getPort; } diff --git a/types/glob/index.d.ts b/types/glob/index.d.ts index 6687c79570..c7c6ffc601 100644 --- a/types/glob/index.d.ts +++ b/types/glob/index.d.ts @@ -11,8 +11,8 @@ import events = require("events"); import fs = require('fs'); import minimatch = require("minimatch"); -declare function G(pattern: string, cb: (err: Error, matches: string[]) => void): void; -declare function G(pattern: string, options: G.IOptions, cb: (err: Error, matches: string[]) => void): void; +declare function G(pattern: string, cb: (err: Error | null, matches: string[]) => void): void; +declare function G(pattern: string, options: G.IOptions, cb: (err: Error | null, matches: string[]) => void): void; declare namespace G { function sync(pattern: string, options?: IOptions): string[]; @@ -57,8 +57,8 @@ declare namespace G { } interface IGlobStatic extends events.EventEmitter { - new (pattern: string, cb?: (err: Error, matches: string[]) => void): IGlob; - new (pattern: string, options: IOptions, cb?: (err: Error, matches: string[]) => void): IGlob; + new (pattern: string, cb?: (err: Error | null, matches: string[]) => void): IGlob; + new (pattern: string, options: IOptions, cb?: (err: Error | null, matches: string[]) => void): IGlob; prototype: IGlob; } diff --git a/types/google-cloud__datastore/google-cloud__datastore-tests.ts b/types/google-cloud__datastore/google-cloud__datastore-tests.ts new file mode 100644 index 0000000000..285cb1fb00 --- /dev/null +++ b/types/google-cloud__datastore/google-cloud__datastore-tests.ts @@ -0,0 +1,183 @@ +import Datastore = require('@google-cloud/datastore'); +import { + DatastoreDouble, + DatastoreGeopoint, + DatastoreInt, + DatastoreKey, + DatastoreKeyPath +} from '@google-cloud/datastore/entity'; +import { Query, QueryCallback, QueryInfo, QueryOptions, QueryResult } from '@google-cloud/datastore/query'; +import { AllocateIdsResult, CommitCallback, CommitResponse, CommitResult } from '@google-cloud/datastore/request'; +import { DatastoreTransaction, TransactionResult } from '@google-cloud/datastore/transaction'; + +interface TestEntity { + name?: string; + location?: string; + symbol?: string; + + [keySymbol: string]: any; +} + +const kind = 'Company'; +const entityToCreate: TestEntity = { + name: 'Google', + location: 'CA' +}; + +const ds: Datastore = new Datastore({ + apiEndpoint: 'http://localhost:8081', + namespace: 'project-namespace', + projectId: 'project-id', + keyFilename: '../secret.json', + credentials: {} + }); +ds.determineBaseUrl_('http://localhost:8081'); + +// Keys components creation: +const dsInt: DatastoreInt = ds.int(42); +const dsDouble: DatastoreDouble = ds.double('3.14'); +const dsGeopoint: DatastoreGeopoint = ds.geoPoint({latitude: 0, longitude: 0}); + +// Keys creation: +const keyPath: DatastoreKeyPath = [kind, 'Google', 'Department', dsInt]; +const key: DatastoreKey = ds.key(keyPath); +const ancestorKey: DatastoreKey = ds.key(['ParentCompany', 'Alphabet']); +const keyWithOptions: DatastoreKey = ds.key({ + namespace: 'special-namespace', + path: keyPath + }); +const incompleteKey = ds.key([kind]); + +// ID allocation: +ds.allocateIds(incompleteKey, 1, (err: Error, keys: DatastoreKey[]) => { +}); +const allocationPromise: Promise = ds.allocateIds(incompleteKey, 1); + +// Query creation: +const manuallyCreatedQuery = new Datastore.Query('scope', kind, 'namespace'); +const options: QueryOptions = {consistency: 'strong'}; +const query: Query = ds.createQuery(kind); +const complexQuery = ds.createQuery('special_namespace', kind) + .hasAncestor(ancestorKey) + .filter('aProp', '<', 0) + .filter('location', dsGeopoint) + .order('location', {descending: true}) + .select(['1', '2']) + .groupBy(['group', 'props']) + .limit(1000) + .offset(10); + +// Running queries: +const queryCallback: QueryCallback = (err: Error, entities: TestEntity[]) => entities[0][Datastore.KEY]; + +ds.runQuery(query, queryCallback); +ds.runQuery(query, options, queryCallback); +ds.runQuery(query, options); + +const queryStream: NodeJS.ReadableStream = complexQuery.runStream(); +const dsQueryStream: NodeJS.ReadableStream = ds.runQueryStream(complexQuery, options); +complexQuery.run() + .then((data: QueryResult) => { + const {moreResults, endCursor} = data[1]; + const frontEndResponse: any = {}; + switch (moreResults) { + case Datastore.NO_MORE_RESULTS: + frontEndResponse.nextPageCursor = null; + break; + case Datastore.MORE_RESULTS_AFTER_CURSOR: + case Datastore.MORE_RESULTS_AFTER_LIMIT: + frontEndResponse.nextPageCursor = endCursor; + } + }); + +query.run((err: Error, entities: TestEntity[], info: QueryInfo) => { + if (err) { + return; + } + const {moreResults, endCursor} = info; + + const frontEndResponse: any = {entities}; + switch (moreResults) { + case ds.NO_MORE_RESULTS: + frontEndResponse.nextPageCursor = null; + break; + case ds.MORE_RESULTS_AFTER_CURSOR: + case ds.MORE_RESULTS_AFTER_LIMIT: + frontEndResponse.nextPageCursor = endCursor; + } +}); + +// Saving an entity: +const saveCallback: CommitCallback = (err: Error, response: CommitResponse) => undefined; + +ds.insert(entityToCreate, saveCallback); +ds.save(entityToCreate, saveCallback); +ds.update(entityToCreate, saveCallback); +ds.upsert(entityToCreate, saveCallback); + +const insertPromise: Promise = ds.insert(entityToCreate); +const savePromise: Promise = ds.save(entityToCreate); +const updatePromise: Promise = ds.update(entityToCreate); +const upsertPromise: Promise = ds.upsert(entityToCreate); + +// Getting entities: +ds.get(key, (err, entity) => { +}); +ds.get(key).then((data: [TestEntity]) => data[0]); +ds.get(key, {maxApiCalls: 1}) + .then((data: [TestEntity]) => { + const blah: TestEntity = data[0]; + }); +ds.get([key, key], {maxApiCalls: 1}) + .then((data: [TestEntity[]]) => { + const blah: TestEntity[] = data[0]; + }); +ds.get(key, (err: Error, data: any[]) => data[0]); + +// We can verify the data was saved by using {module:datastore#get}. +ds.get( + key, + (err, entity) => { + } +); + +// Deleting entities: +ds.delete(key, err => { + if (!err) { + // Record deleted successfully. + } +}); + +// Running in transactions: +const transaction: DatastoreTransaction = ds.transaction(); +const manuallyCreatedTx = new Datastore.Transaction(ds); + +transaction.run((err, activeTx: DatastoreTransaction) => { + transaction.get(key, (err: Error, entity: TestEntity) => { + if (err) { + transaction.rollback(err => { + }); + } + + const queryInTx: Query = activeTx.createQuery(kind); + const namespacedQueryInTx: Query = activeTx.createQuery('special-namespace', kind); + + transaction.save(entity); + transaction.commit(err => { + }); + }); +}); + +const promisedTxStart: Promise = ds.transaction().run(); + +promisedTxStart.then((result: TransactionResult) => { + const activeTx: DatastoreTransaction = result[0]; + const rollbackPromise: Promise<{}> = activeTx.rollback(); + return activeTx.commit(); +}); + +class MyCustomDatastoreRequest extends Datastore.DatastoreRequest { + constructor() { + super(); + } +} diff --git a/types/google-cloud__datastore/index.d.ts b/types/google-cloud__datastore/index.d.ts new file mode 100644 index 0000000000..6eee49ba50 --- /dev/null +++ b/types/google-cloud__datastore/index.d.ts @@ -0,0 +1,302 @@ +// Type definitions for @google-cloud/datastore 1.1 +// Project: https://github.com/GoogleCloudPlatform/google-cloud-node/tree/master/packages/datastore +// Definitions by: Antoine Beauvais-Lacasse +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +/// + +declare module '@google-cloud/datastore' { + export = Datastore; + + import { + DatastoreKey, + KEY_SYMBOL, + DatastoreInt, + DatastoreDouble, + DatastoreGeopoint, + DatastoreKeyPath, + DatastoreKeyOptions, + DatastoreCoords, + OneOrMany + } from '@google-cloud/datastore/entity'; + import { DatastoreRequest as DatastoreRequest_, CommitCallback, CommitResult } from '@google-cloud/datastore/request'; + import { + Query as DatastoreQuery, + MoreResultsAfterCursor, + MoreResultsAfterLimit, + NoMoreResults + } from '@google-cloud/datastore/query'; + import { DatastoreTransaction } from '@google-cloud/datastore/transaction'; + + class Datastore extends DatastoreRequest_ { + constructor(options: InitOptions); + + readonly KEY: KEY_SYMBOL; + readonly MORE_RESULTS_AFTER_CURSOR: MoreResultsAfterCursor; + readonly MORE_RESULTS_AFTER_LIMIT: MoreResultsAfterLimit; + readonly NO_MORE_RESULTS: NoMoreResults; + + // tslint:disable-next-line unified-signatures (Arg is semantically different) + createQuery(namespace: string, kind: string): DatastoreQuery; + createQuery(kind: string): DatastoreQuery; + + save(entities: OneOrMany, callback: CommitCallback): void; + save(entities: OneOrMany): Promise; + + delete(keyOrKeys: DatastoreKey | ReadonlyArray, callback: CommitCallback): void; + delete(keyOrKeys: DatastoreKey | ReadonlyArray): Promise; + + transaction(): DatastoreTransaction; + + int(value: string | number): DatastoreInt; + + double(value: string | number): DatastoreDouble; + + geoPoint(coordinates: DatastoreCoords): DatastoreGeopoint; + + key(pathOrOptions: DatastoreKeyPath | DatastoreKeyOptions): DatastoreKey; + + determineBaseUrl_(customApiEndpoint?: string): void; + } + + interface InitOptions { + apiEndpoint?: string; + namespace?: string; + projectId?: string; + keyFilename?: string; + credentials?: object; + } + + namespace Datastore { + const KEY: KEY_SYMBOL; + const MORE_RESULTS_AFTER_CURSOR: MoreResultsAfterCursor; + const MORE_RESULTS_AFTER_LIMIT: MoreResultsAfterLimit; + const NO_MORE_RESULTS: NoMoreResults; + + const Query: typeof DatastoreQuery; + const DatastoreRequest: typeof DatastoreRequest_; + const Transaction: typeof DatastoreTransaction; + } +} + +declare module '@google-cloud/datastore/entity' { + interface DatastoreInt { + value: string; + } + interface DatastoreDouble { + value: string; + } + + interface DatastoreCoords { + latitude: number; + longitude: number; + } + interface DatastoreGeopoint { + value: DatastoreCoords; + } + + type PathElement = string | number | DatastoreInt; + + /** + * DatastoreKeyPath is structured as [kind, identifier, kind, identifier, ...] + * `kind` must be a string, `identifier` is a PathElement + */ + type DatastoreKeyPath = PathElement[]; + + interface DatastoreKeyOptions { + namespace?: string; + path: DatastoreKeyPath; + } + + interface DatastoreKey { + kind: string; + id?: string; + name?: string; + + readonly path: DatastoreKeyPath; + + parent?: DatastoreKey; + } + + type KEY_SYMBOL = symbol; + + interface DatastorePayload { + key: DatastoreKey; + // TODO Include possibility of 'raw data' with indexing options, etc + data: T | object; + excludeFromIndexes?: string[]; + } + + /** + * NB: TS does not support computed symbol keys (yet: https://github.com/Microsoft/TypeScript/pull/15473) + * If using a raw T object, it MUST have a {@link Datastore_#KEY} symbol property of type {@link DatastoreKey}. + */ + type ObjOrPayload = T | DatastorePayload; + type OneOrMany = ObjOrPayload | Array>; +} + +declare module '@google-cloud/datastore/query' { + // tslint:disable-next-line no-duplicate-imports (This rule is broken for multiple modules per file) + import { DatastoreKey } from '@google-cloud/datastore/entity'; + + type MoreResultsAfterCursor = 'MORE_RESULTS_AFTER_CURSOR'; + type MoreResultsAfterLimit = 'MORE_RESULTS_AFTER_LIMIT'; + type NoMoreResults = 'NO_MORE_RESULTS'; + + class Query { + constructor(scope: string, kinds: string, namespace: string); + + filter(property: string, operator: QueryFilterOperator, value: any): this; + filter(property: string, value: any): this; + + hasAncestor(key: DatastoreKey): this; + + order(property: string, options?: OrderOptions): this; + + groupBy(properties: string | ReadonlyArray): this; + + select(properties: string | ReadonlyArray): this; + + start(cursorToken: string): this; + + end(cursorToken: string): this; + + limit(n: number): this; + + offset(n: number): this; + + run(callback: QueryCallback): void; + run(options: QueryOptions, callback: QueryCallback): void; + run(options?: QueryOptions): Promise; + + runStream(): NodeJS.ReadableStream; + } + + type QueryFilterOperator = '<' | '<=' | '=' | '>=' | '>'; + + interface OrderOptions { + descending: boolean; + } + + interface QueryOptions { + consistency?: 'strong' | 'eventual'; + maxApiCalls?: number; + } + + interface QueryInfo { + endCursor?: string; + readonly moreResults: MoreResultsAfterCursor | MoreResultsAfterLimit | NoMoreResults; + } + + type QueryCallback = (err: Error, entities: object[], info: QueryInfo) => void; + type QueryResult = [object[], QueryInfo]; +} + +declare module '@google-cloud/datastore/request' { + // tslint:disable-next-line no-duplicate-imports (This rule is broken for multiple modules per file) + import { DatastoreKey, OneOrMany } from '@google-cloud/datastore/entity'; + // tslint:disable-next-line no-duplicate-imports + import { Query, QueryCallback, QueryOptions, QueryResult } from '@google-cloud/datastore/query'; + + /** + * Creates requests to the Datastore endpoint. + * Designed to be inherited by {@link Datastore} & {@link DatastoreTransaction} + */ + abstract class DatastoreRequest { + allocateIds(incompleteKey: DatastoreKey, n: number, callback: AllocateIdsCallback): void; + allocateIds(incompleteKey: DatastoreKey, n: number): Promise; + + createReadStream(keys: DatastoreKey | ReadonlyArray, + options: QueryOptions): NodeJS.ReadableStream; + + delete(keyOrKeys: DatastoreKey | ReadonlyArray, callback: CommitCallback): void; + delete(keyOrKeys: DatastoreKey | ReadonlyArray): Promise | void; + + get(key: DatastoreKey, options: QueryOptions, callback: GetCallback): void; + get(keys: ReadonlyArray, options: QueryOptions, callback: GetCallback): void; + get(key: DatastoreKey, callback: GetCallback): void; + get(keys: ReadonlyArray, callback: GetCallback): void; + + get(key: DatastoreKey, options?: QueryOptions): Promise<[object | undefined]>; + get(keys: ReadonlyArray, options?: QueryOptions): Promise<[object[]]>; + + runQuery(query: Query, options: QueryOptions, callback: QueryCallback): void; + runQuery(query: Query, callback: QueryCallback): void; + runQuery(query: Query, options?: QueryOptions): QueryResult; + + runQueryStream(query: Query, options?: QueryOptions): NodeJS.ReadableStream; + + save(entities: OneOrMany, callback: CommitCallback): void; + save(entities: OneOrMany): Promise | void; + + insert(entities: OneOrMany, callback: CommitCallback): void; + insert(entities: OneOrMany): Promise; + + update(entities: OneOrMany, callback: CommitCallback): void; + update(entities: OneOrMany): Promise; + + upsert(entities: OneOrMany, callback: CommitCallback): void; + upsert(entities: OneOrMany): Promise; + } + + interface MutationResult { + key: DatastoreKey; + conflictDetected: boolean; + version: number; + } + + interface CommitResponse { + mutationResults: MutationResult[]; + indexUpdates: number; + } + + type CommitCallback = (err: Error, result: CommitResponse) => void; + type CommitResult = [CommitResponse]; + + type GetCallback = (err: Error, entity: T) => void; + + type AllocateIdsCallback = (err: Error, keys: DatastoreKey[]) => void; + type AllocateIdsResult = [DatastoreKey[]]; +} + +declare module '@google-cloud/datastore/transaction' { + import Datastore_ = require('@google-cloud/datastore'); + // tslint:disable-next-line no-duplicate-imports (This rule is broken for multiple modules per file) + import { DatastoreKey, OneOrMany } from '@google-cloud/datastore/entity'; + // tslint:disable-next-line no-duplicate-imports + import { Query } from '@google-cloud/datastore/query'; + // tslint:disable-next-line no-duplicate-imports + import { DatastoreRequest, CommitCallback, CommitResult } from '@google-cloud/datastore/request'; + + class DatastoreTransaction extends DatastoreRequest { + constructor(datastore: Datastore_); + + // tslint:disable-next-line unified-signatures (Arg is semantically different) + createQuery(namespace: string, kind: string): Query; + createQuery(kind: string): Query; + + save(entities: OneOrMany): void; + + delete(keyOrKeys: DatastoreKey | ReadonlyArray): void; + + commit(): Promise; + commit(callback: CommitCallback): void; + + rollback(): Promise; + rollback(callback: RollbackCallback): void; + + run(callback: TransactionCallback): void; + run(): Promise; + } + + interface BeginTransactionResponse { + transaction: string; + } + + type RollbackCallback = (err: Error, rollbackResponse: {}) => void; + type RollbackResult = [{}]; + + type TransactionCallback = (err: Error, tx: DatastoreTransaction, beginTxResponse: BeginTransactionResponse) => void; + type TransactionResult = [DatastoreTransaction, BeginTransactionResponse]; +} diff --git a/types/google-cloud__datastore/tsconfig.json b/types/google-cloud__datastore/tsconfig.json new file mode 100644 index 0000000000..d5934e0ab2 --- /dev/null +++ b/types/google-cloud__datastore/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "paths": { + "@google-cloud/datastore": ["google-cloud__datastore"] + }, + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "google-cloud__datastore-tests.ts" + ] +} diff --git a/types/google-cloud__datastore/tslint.json b/types/google-cloud__datastore/tslint.json new file mode 100644 index 0000000000..d88586e5bd --- /dev/null +++ b/types/google-cloud__datastore/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/googlemaps/index.d.ts b/types/googlemaps/index.d.ts index b86057d5b6..e3cd3a951e 100644 --- a/types/googlemaps/index.d.ts +++ b/types/googlemaps/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Google Maps JavaScript API 3.26 +// Type definitions for Google Maps JavaScript API 3.29 // Project: https://developers.google.com/maps/ // Definitions by: Folia A/S , Chris Wrench , Kiarash Ghiaseddin , Grant Hutchins , Denis Atyasov , Michael McMullin , Martin Costello // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -1591,10 +1591,10 @@ declare namespace google.maps { avoidFerries?: boolean; avoidHighways?: boolean; avoidTolls?: boolean; - destinations?: string[]|LatLng[]|Place[]; + destinations?: string[]|LatLng[]|LatLngLiteral[]|Place[]; drivingOptions?: DrivingOptions; durationInTraffic?: boolean; - origins?: string[]|LatLng[]|Place[]; + origins?: string[]|LatLng[]|LatLngLiteral[]|Place[]; region?: string; transitOptions?: TransitOptions; travelMode?: TravelMode; @@ -2476,19 +2476,22 @@ declare namespace google.maps { } export interface OpeningHours { - open_now: boolean, - periods: OpeningPeriod[], - weekday_text: string[] + open_now: boolean; + periods: OpeningPeriod[]; + weekday_text: string[]; } export interface OpeningPeriod { - open: OpeningHoursTime, - close?: OpeningHoursTime + open: OpeningHoursTime; + close?: OpeningHoursTime; } export interface OpeningHoursTime { - day: number, - time: string + day: number; + hours: number; + minutes: number; + nextDate: number; + time: string; } export interface PredictionTerm { @@ -2549,12 +2552,13 @@ declare namespace google.maps { export interface PlaceResult { address_components: GeocoderAddressComponent[]; - aspects: PlaceAspectRating[]; /* Deprecated. Will be removed May 2, 2017 */ + adr_address: string; formatted_address: string; formatted_phone_number: string; geometry: PlaceGeometry; html_attributions: string[]; icon: string; + id: string; international_phone_number: string; name: string; opening_hours: OpeningHours; @@ -2566,6 +2570,7 @@ declare namespace google.maps { reviews: PlaceReview[]; types: string[]; url: string; + utc_offset: number; vicinity: string; website: string; } diff --git a/types/graceful-fs/index.d.ts b/types/graceful-fs/index.d.ts index 9ae9ef79d0..2b31db0668 100644 --- a/types/graceful-fs/index.d.ts +++ b/types/graceful-fs/index.d.ts @@ -6,41 +6,38 @@ /// -declare module 'graceful-fs' { - import * as fs from 'fs'; +import * as fs from 'fs'; - export * from 'fs'; +export * from 'fs'; +/** + * Use this method to patch the global fs module (or any other fs-like module). + * NOTE: This should only ever be done at the top-level application layer, in order to delay on + * EMFILE errors from any fs-using dependencies. You should **not** do this in a library, because + * it can cause unexpected delays in other parts of the program. + * @param fsModule The reference to the fs module or an fs-like module. + */ +export function gracefulify(fsModule: T): T & Lutimes; + +export interface Lutimes { /** - * Use this method to patch the global fs module (or any other fs-like module). - * NOTE: This should only ever be done at the top-level application layer, in order to delay on - * EMFILE errors from any fs-using dependencies. You should **not** do this in a library, because - * it can cause unexpected delays in other parts of the program. - * @param fsModule The reference to the fs module or an fs-like module. + * Asynchronously change file timestamps of the file referenced by the supplied path. + * If path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps + * of the symbolic link are changed. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. */ - // tslint:disable-next-line strict-export-declare-modifiers - export function gracefulify(fsModule: T): T & Lutimes; - - interface Lutimes { - /** - * Asynchronously change file timestamps of the file referenced by the supplied path. - * If path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps - * of the symbolic link are changed. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - lutimes: typeof fs.lutimes; - /** - * Synchronously change file timestamps of the file referenced by the supplied path. - * If path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps - * of the symbolic link are changed. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - lutimesSync: typeof fs.lutimesSync; - } + lutimes: typeof fs.lutimes; + /** + * Synchronously change file timestamps of the file referenced by the supplied path. + * If path refers to a symbolic link, then the link is not dereferenced: instead, the timestamps + * of the symbolic link are changed. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + lutimesSync: typeof fs.lutimesSync; } declare module 'fs' { diff --git a/types/gsap/tslint.json b/types/gsap/tslint.json index 25953ef466..6d192e7cef 100644 --- a/types/gsap/tslint.json +++ b/types/gsap/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODOs "dt-header": false, + "no-declare-current-package": false, "no-single-declare-module": false } } diff --git a/types/gulp-uglify/composer.d.ts b/types/gulp-uglify/composer.d.ts index ec592ad5e8..bb3f04f134 100644 --- a/types/gulp-uglify/composer.d.ts +++ b/types/gulp-uglify/composer.d.ts @@ -1,5 +1,5 @@ import * as UglifyJS from 'uglify-js'; -import * as GulpUglify from 'gulp-uglify'; +import * as GulpUglify from '.'; interface Composer { (uglify: Uglify, log: Logger): typeof GulpUglify; diff --git a/types/gulp-zip/gulp-zip-tests.ts b/types/gulp-zip/gulp-zip-tests.ts new file mode 100644 index 0000000000..983a4263ce --- /dev/null +++ b/types/gulp-zip/gulp-zip-tests.ts @@ -0,0 +1,4 @@ +import * as GulpZip from 'gulp-zip'; + +GulpZip('file.zip').on('end', () => {}); +GulpZip('file.zip', {compress: false}).on('end', () => {}); diff --git a/types/gulp-zip/index.d.ts b/types/gulp-zip/index.d.ts new file mode 100644 index 0000000000..a0582863b3 --- /dev/null +++ b/types/gulp-zip/index.d.ts @@ -0,0 +1,20 @@ +// Type definitions for gulp-zip 4.0 +// Project: https://github.com/sindresorhus/gulp-zip +// Definitions by: Louis Orleans +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace GulpZip { + interface GulpZipOptions { + /** + * Compress + * @default true + */ + compress?: boolean; + } +} + +declare function GulpZip(filename: string, options?: GulpZip.GulpZipOptions): NodeJS.ReadStream; + +export = GulpZip; diff --git a/types/gulp-zip/tsconfig.json b/types/gulp-zip/tsconfig.json new file mode 100644 index 0000000000..621b4764a8 --- /dev/null +++ b/types/gulp-zip/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "gulp-zip-tests.ts" + ] +} diff --git a/types/gulp-zip/tslint.json b/types/gulp-zip/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/gulp-zip/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/hapi/index.d.ts b/types/hapi/index.d.ts index 01e8675a29..f996967691 100644 --- a/types/hapi/index.d.ts +++ b/types/hapi/index.d.ts @@ -724,11 +724,11 @@ export interface ConnectionConfigurationServerDefaults { /** connection load limits configuration where: */ load?: { /** maximum V8 heap size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxHeapUsedBytes: number; + maxHeapUsedBytes?: number; /** maximum process RSS size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxRssBytes: number; + maxRssBytes?: number; /** maximum event loop delay duration in milliseconds over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxEventLoopDelay: number; + maxEventLoopDelay?: number; }; /** plugin-specific configuration which can later be accessed via connection.settings.plugins. Provides a place to store and pass connection-specific plugin configuration. plugins is an object where each key is a plugin name and the value is the configuration. Note the difference between connection.settings.plugins which is used to store configuration values and connection.plugins which is meant for storing run-time state. */ plugins?: PluginSpecificConfiguration; diff --git a/types/hapi/v12/index.d.ts b/types/hapi/v12/index.d.ts index 8cbfaff2cf..55df6194c9 100644 --- a/types/hapi/v12/index.d.ts +++ b/types/hapi/v12/index.d.ts @@ -102,11 +102,11 @@ declare module "hapi" { /** connection load limits configuration where: */ load?: { /** maximum V8 heap size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxHeapUsedBytes: number; + maxHeapUsedBytes?: number; /** maximum process RSS size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxRssBytes: number; + maxRssBytes?: number; /** maximum event loop delay duration in milliseconds over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxEventLoopDelay: number; + maxEventLoopDelay?: number; }; /** plugin-specific configuration which can later be accessed via connection.settings.plugins. Provides a place to store and pass connection-specific plugin configuration. plugins is an object where each key is a plugin name and the value is the configuration. Note the difference between connection.settings.plugins which is used to store configuration values and connection.plugins which is meant for storing run-time state. */ plugins?: any; diff --git a/types/hapi/v15/index.d.ts b/types/hapi/v15/index.d.ts index b7a4510483..f08e72d817 100644 --- a/types/hapi/v15/index.d.ts +++ b/types/hapi/v15/index.d.ts @@ -125,11 +125,11 @@ export interface IConnectionConfigurationServerDefaults { /** connection load limits configuration where: */ load?: { /** maximum V8 heap size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxHeapUsedBytes: number; + maxHeapUsedBytes?: number; /** maximum process RSS size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxRssBytes: number; + maxRssBytes?: number; /** maximum event loop delay duration in milliseconds over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxEventLoopDelay: number; + maxEventLoopDelay?: number; }; /** plugin-specific configuration which can later be accessed via connection.settings.plugins. Provides a place to store and pass connection-specific plugin configuration. plugins is an object where each key is a plugin name and the value is the configuration. Note the difference between connection.settings.plugins which is used to store configuration values and connection.plugins which is meant for storing run-time state. */ plugins?: any; diff --git a/types/hapi/v8/index.d.ts b/types/hapi/v8/index.d.ts index 762b9eb198..e7d71c8ca0 100644 --- a/types/hapi/v8/index.d.ts +++ b/types/hapi/v8/index.d.ts @@ -88,11 +88,11 @@ export interface IConnectionConfigurationServerDefaults { /** connection load limits configuration where: */ load?: { /** maximum V8 heap size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxHeapUsedBytes: number; + maxHeapUsedBytes?: number; /** maximum process RSS size over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxRssBytes: number; + maxRssBytes?: number; /** maximum event loop delay duration in milliseconds over which incoming requests are rejected with an HTTP Server Timeout (503) response. Defaults to 0 (no limit). */ - maxEventLoopDelay: number; + maxEventLoopDelay?: number; }; /** plugin-specific configuration which can later be accessed via connection.settings.plugins. Provides a place to store and pass connection-specific plugin configuration. plugins is an object where each key is a plugin name and the value is the configuration. Note the difference between connection.settings.plugins which is used to store configuration values and connection.plugins which is meant for storing run-time state. */ plugins?: any; diff --git a/types/heremaps/heremaps-tests.ts b/types/heremaps/heremaps-tests.ts index 9d289ffe6c..0856cd2616 100644 --- a/types/heremaps/heremaps-tests.ts +++ b/types/heremaps/heremaps-tests.ts @@ -173,3 +173,9 @@ clusteringOptions: { // Create a layer that will consume objects from our clustering provider const layer = new H.map.layer.ObjectLayer(clusteredDataProvider); + +const pixelProjection = new H.geo.PixelProjection(); +pixelProjection.rescale(12); + +const point = pixelProjection.geoToPixel({ lat: 53, lng: 12 }); +pixelProjection.xyToGeo(point.x, point.y); diff --git a/types/heremaps/index.d.ts b/types/heremaps/index.d.ts index 3c01018a3e..0bda913919 100644 --- a/types/heremaps/index.d.ts +++ b/types/heremaps/index.d.ts @@ -806,6 +806,84 @@ declare namespace H { */ type Longitude = number; + /** + * PixelProjection transforms pixel world coordinates at a certain scale (zoom level) to geographical coordinates and vice versa. + * By default, it uses the Mercator projection to transform geographic points into the 2d plane map points, which are adjusted to the current scale. + * @property projection {H.geo.IProjection} - This property indicates the geographical projection that underlies the given PixelProjection. + * @property x {number} - This property holds the x-offset in the projection relative to the top-left corner of the screen. + * @property y {number} - This property holds the y-offset in the projection relative to the top-left corner of the screen. + * @property w {number} - This property holds a value indicating the width of the world in pixels. + * @property h {number} - This property holds a value indicating the height of the world in pixels. + */ + class PixelProjection { + /** + * Constructor + * @param opt_projection {H.geo.IProjection=} - An object representing the projection to use, the default is spherical Mercator H.geo.mercator + * @param opt_sizeAtLevelZero {number=} A value indicating the size of a tile representation of the world in pixels at zoom level 0, the default is 256 + */ + constructor(opt_projection?: H.geo.IProjection, opt_sizeAtLevelZero?: number); + + projection: H.geo.IProjection; + x: number; + y: number; + w: number; + h: number; + + /** + * This method updates the scale exponent for the pixel projection. + * @param zoom {number} - A value indicating the zoom level + */ + rescale(zoom: number): void; + + /** + * This method retrieves the current zoom scale factor previously set by a call to H.geo.PixelProjection#rescale. + * @return {number} - A value indicating the zoom scale factor + */ + getZoomScale(): number; + + /** + * This method translates a point defines in terms of its geographic coordinates to pixel coordinates at the specified zoom level. + * @param geoPoint {H.geo.IPoint} - An object containing the geographic coordinates + * @param opt_out {H.math.IPoint=} - An optional point to store the result + * @return {H.math.IPoint} - An object representing the results of the the conversion to pixel coordinates + */ + geoToPixel(geoPoint: H.geo.IPoint, opt_out?: H.math.IPoint): H.math.IPoint; + + /** + * This method translates a point defined in terms of its pixel coordinates to a location defined in geographic coordinates. + * @param point {H.math.IPoint} - An object defining a location on the screen in terms of pixel coordinates + * @param opt_out {H.geo.IPoint=} - An optional point to store the result + * @return {H.geo.IPoint} - An object representing the results of conversion to a geographic location + */ + pixelToGeo(point: H.math.IPoint, opt_out?: H.geo.IPoint): H.geo.IPoint; + + /** + * This method translates the x and y coordinates of a pixel to a geographic point. + * @param x {number} - A value indicating the pixel x-coordinate + * @param y {number} - A value indicating the pixel y-coordinate + * @param opt_out {H.geo.Point=} - An optional point to store the result + * @return {H.geo.Point} - An object representing the results of the conversion to a geographic location + */ + xyToGeo(x: number, y: number, opt_out?: H.geo.Point): H.geo.Point; + + /** + * This method translates geographical coordinates (latitude, longitude) supplied by the caller into a point defined in terms of pixel coordinates. + * This method accepts longitudes outside of the normal longitude range. + * @param latitude {number} - The latitude to translate + * @param longitude {number} - The longitude to translate + * @param opt_out {H.math.IPoint=} - An optional point to store the result + * @return {H.math.Point} - The results of the conversion as a point object containing x and y coordinates (in pixels) + */ + latLngToPixel(latitude: number, longitude: number, opt_out?: H.math.IPoint): H.math.Point; + + /** + * This method method translates a map point to world pixel coordinates relative to current projection offset. + * @param point {H.math.IPoint} - An object representing the map point to convert + * @return {H.math.Point} - The result of the conversion as an object containing pixel coordinate + */ + pointToPixel(point: H.math.IPoint): H.math.Point; + } + /** * Class represents a geographical point, which is defined by the latitude, longitude and optional altitude. * @property lat {H.geo.Latitude} - The latitude coordinate. diff --git a/types/heroku-logger/heroku-logger-tests.ts b/types/heroku-logger/heroku-logger-tests.ts new file mode 100644 index 0000000000..237857651c --- /dev/null +++ b/types/heroku-logger/heroku-logger-tests.ts @@ -0,0 +1,11 @@ +import * as logger from 'heroku-logger'; +// tslint:disable-next-line:no-duplicate-imports +import { Logger, LoggerConfig } from 'heroku-logger'; + +logger.trace(''); // $ExpectType void +logger.debug(''); // $ExpectType void +logger.info(''); // $ExpectType void +logger.warn(''); // $ExpectType void +logger.error(''); // $ExpectType void +logger.fatal(''); // $ExpectType void +new logger.Logger({}); // $ExpectType LoggerConfig diff --git a/types/heroku-logger/index.d.ts b/types/heroku-logger/index.d.ts new file mode 100644 index 0000000000..ae5b72408b --- /dev/null +++ b/types/heroku-logger/index.d.ts @@ -0,0 +1,39 @@ +// Type definitions for heroku-logger 0.1 +// Project: https://github.com/ianstormtaylor/heroku-logger +// Definitions by: Kyle Vogt +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 +/* =================== USAGE =================== + + import * as logger from 'heroku-logger'; + catch (error) { + logger.warn('Do not clutter your log files!', error); + } + + =============================================== */ + +export function trace(message: string, data?: object): void; +export function debug(message: string, data?: object): void; +export function info(message: string, data?: object): void; +export function warn(message: string, data?: object): void; +export function error(message: string, data?: object): void; +export function fatal(message: string, data?: object): void; + +export const Logger: Logger; + +export interface LoggerConfig { + level?: string; + color?: boolean; + readable?: boolean; + prefix?: boolean; +} + +export interface Logger { + trace(message: string, data?: object): void; + debug(message: string, data?: object): void; + info(message: string, data?: object): void; + warn(message: string, data?: object): void; + error(message: string, data?: object): void; + fatal(message: string, data?: object): void; + new (config: LoggerConfig): LoggerConfig; +} diff --git a/types/heroku-logger/tsconfig.json b/types/heroku-logger/tsconfig.json new file mode 100644 index 0000000000..2bcbe3a08b --- /dev/null +++ b/types/heroku-logger/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "heroku-logger-tests.ts" + ] +} diff --git a/types/heroku-logger/tslint.json b/types/heroku-logger/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/heroku-logger/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/highcharts/index.d.ts b/types/highcharts/index.d.ts index 48bd7b9c76..662c4f4164 100644 --- a/types/highcharts/index.d.ts +++ b/types/highcharts/index.d.ts @@ -4221,7 +4221,7 @@ declare namespace Highcharts { * @default true * @since 4.1.9 */ - softTreshold?: boolean; + softThreshold?: boolean; /** * Whether to stack the values of each series on top of each other. Possible values are null to disable, 'normal' to * stack by value or 'percent'. @@ -5371,6 +5371,10 @@ declare namespace Highcharts { * @since 2.1 */ stack?: any; + /** + * The series' visibility state as set by series.show(), series.hide(), or the initial configuration. + */ + visible?: boolean; /** * When using dual or multiple x axes, this number defines which xAxis the particular series is connected to. It * refers to either the axis id or the index of the axis in the xAxis array, with 0 being the first. diff --git a/types/highcharts/tslint.json b/types/highcharts/tslint.json index df5c6f4ca0..cfc8218eab 100644 --- a/types/highcharts/tslint.json +++ b/types/highcharts/tslint.json @@ -1,11 +1,14 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs "ban-types": false, "unified-signatures": false, "no-empty-interface": false, "dt-header": false, + "no-declare-current-package": false, "no-object-literal-type-assertion": false, + "no-self-import": false, "no-unnecessary-generics": false } } diff --git a/types/history/v2/lib/actions.d.ts b/types/history/v2/lib/actions.d.ts index 9eba9d4653..b3f61ae096 100644 --- a/types/history/v2/lib/actions.d.ts +++ b/types/history/v2/lib/actions.d.ts @@ -2,8 +2,9 @@ export const PUSH: string; export const REPLACE: string; export const POP: string; -export default { - PUSH, - REPLACE, - POP -} +declare const defaultExport: { + PUSH: string, + REPLACE: string, + POP: string, +}; +export default defaultExport; diff --git a/types/history/v3/lib/actions.d.ts b/types/history/v3/lib/actions.d.ts index 22fd29f61e..b3f61ae096 100644 --- a/types/history/v3/lib/actions.d.ts +++ b/types/history/v3/lib/actions.d.ts @@ -2,8 +2,9 @@ export const PUSH: string; export const REPLACE: string; export const POP: string; -export default { - PUSH, - REPLACE, - POP +declare const defaultExport: { + PUSH: string, + REPLACE: string, + POP: string, }; +export default defaultExport; diff --git a/types/hopscotch/index.d.ts b/types/hopscotch/index.d.ts index ff393f27df..27d4398366 100644 --- a/types/hopscotch/index.d.ts +++ b/types/hopscotch/index.d.ts @@ -1,9 +1,10 @@ // Type definitions for Hopscotch v0.2.5 // Project: http://linkedin.github.io/hopscotch/ -// Definitions by: Tim Perry +// Definitions by: Tim Perry , Aurimas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare type CallbackNameNamesOrDefinition = string | string[] | (() => void); +declare type placementTypes = 'top' | 'bottom' | 'right' | 'left'; interface HopscotchConfiguration { bubbleWidth?: number; @@ -27,6 +28,7 @@ interface HopscotchConfiguration { onEnd?: CallbackNameNamesOrDefinition; onClose?: CallbackNameNamesOrDefinition; onError?: CallbackNameNamesOrDefinition; + onShow?: CallbackNameNamesOrDefinition; i18n?: { nextBtn?: string; @@ -44,7 +46,7 @@ interface TourDefinition extends HopscotchConfiguration { } interface StepDefinition { - placement: string; + placement: placementTypes; target: string | HTMLElement | Array title?: string; @@ -53,9 +55,9 @@ interface StepDefinition { width?: number; padding?: number; - xOffset?: number; - yOffset?: number; - arrowOffset?: number; + xOffset?: number | 'center'; + yOffset?: number | 'center'; + arrowOffset?: number | 'center'; delay?: number; zIndex?: number; diff --git a/types/i18n/tslint.json b/types/i18n/tslint.json index eb3e5cc86e..63e9b63ec9 100644 --- a/types/i18n/tslint.json +++ b/types/i18n/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODOs "no-any-union": false, + "no-declare-current-package": false, "no-single-declare-module": false, "prefer-method-signature": false } diff --git a/types/i18next/v2/tslint.json b/types/i18next/v2/tslint.json index 23714c9cea..3d8ba29b42 100644 --- a/types/i18next/v2/tslint.json +++ b/types/i18next/v2/tslint.json @@ -1,8 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [ - false - ] + // TODOs + "interface-name": false, + "no-any-union": false } } diff --git a/types/i2c-bus/i2c-bus-tests.ts b/types/i2c-bus/i2c-bus-tests.ts index 1e4c6c8bcb..599e7c6599 100644 --- a/types/i2c-bus/i2c-bus-tests.ts +++ b/types/i2c-bus/i2c-bus-tests.ts @@ -5,8 +5,7 @@ // Tests taken from documentation samples. import { I2cBus, open, openSync } from "i2c-bus"; -import * as asnc from "async"; - +import * as async from "async"; function toCelsius(rawTemp: number): number { const halfDegrees = ((rawTemp & 0xff) << 1) + (rawTemp >> 15); diff --git a/types/ibm-mobilefirst/index.d.ts b/types/ibm-mobilefirst/index.d.ts index 4da0cbf3b1..2577b0972b 100644 --- a/types/ibm-mobilefirst/index.d.ts +++ b/types/ibm-mobilefirst/index.d.ts @@ -61,8 +61,8 @@ declare namespace WL { getHeader(name: any): string; } interface Options { - onSuccess?: (response: IResponse) => void; - onFailure?: (response: IResponse) => void; + onSuccess?(response: IResponse): void; + onFailure?(response: IResponse): void; invocationContext?: any; } interface ResponseHandler { diff --git a/types/ibm-mobilefirst/tsconfig.json b/types/ibm-mobilefirst/tsconfig.json index 0e4e6e45d9..89d222469f 100644 --- a/types/ibm-mobilefirst/tsconfig.json +++ b/types/ibm-mobilefirst/tsconfig.json @@ -20,4 +20,4 @@ "index.d.ts", "ibm-mobilefirst-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/ibm_db/index.d.ts b/types/ibm_db/index.d.ts index 2a1e968b2c..662a16ffb3 100644 --- a/types/ibm_db/index.d.ts +++ b/types/ibm_db/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -interface ConnStr { +export interface ConnStr { DATABASE: string; HOSTNAME: string; PORT: number | string; @@ -13,7 +13,7 @@ interface ConnStr { PWD: string; } -interface Options { +export interface Options { odbc?: ODBC; queue?: SimpleQueue | any[]; fetchMode?: number | null; @@ -22,7 +22,7 @@ interface Options { systemNaming?: boolean; } -interface DescribeObject { +export interface DescribeObject { database: string; schema?: string; type?: string; @@ -30,7 +30,7 @@ interface DescribeObject { column?: string; } -interface PoolOptions { +export interface PoolOptions { idleTimeout?: number; autoCleanIdle?: boolean; maxPoolSize?: number; @@ -38,7 +38,7 @@ interface PoolOptions { systemNaming?: any; } -declare class SimpleQueue { +export class SimpleQueue { fifo: any[]; executing: boolean; push(fn: (foo: any, bar: any) => void): void; @@ -46,7 +46,7 @@ declare class SimpleQueue { next(): void; } // Class SimpleQueue -export default (options?: Options) => new Database(options); +export default function(options?: Options): Database; export class Database implements Options { odbc: ODBC; diff --git a/types/iframe-resizer/index.d.ts b/types/iframe-resizer/index.d.ts index 3dd26dd391..9c6f7e80ba 100644 --- a/types/iframe-resizer/index.d.ts +++ b/types/iframe-resizer/index.d.ts @@ -3,275 +3,270 @@ // Definitions by: Armin Baljic // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// tslint:disable:prefer-method-signature -// tslint:disable-next-line:no-single-declare-module -declare module 'iframe-resizer' { - // tslint:disable-next-line:interface-name - interface IFrameObject { - close(): void; - moveToAnchor(anchor: string): void; - resize(): void; - sendMessage(message: any, targetOrigin?: string): void; - } - - // tslint:disable-next-line:interface-name - interface IFrameComponent extends HTMLIFrameElement { - iFrameResizer: IFrameObject; - } - - // tslint:disable-next-line:interface-name - interface IFrameOptions { - /** - * When enabled changes to the Window size or the DOM will cause the iFrame to resize to the new content size. - * Disable if using size method with custom dimensions. - */ - autoResize?: boolean; - /** - * Override the body background style in the iFrame. - */ - bodyBackground?: string; - /** - * Override the default body margin style in the iFrame. A string can be any valid value for the - * CSS margin attribute, for example '8px 3em'. A number value is converted into px. - */ - bodyMargin?: number; - /** - * When set to true, only allow incoming messages from the domain listed in the src property of the iFrame tag. - * If your iFrame navigates between different domains, ports or protocols; then you will need to - * provide an array of URLs or disable this option. - */ - checkOrigin?: boolean; - /** - * When enabled in page linking inside the iFrame and from the iFrame to the parent page will be enabled. - */ - inPageLinks?: boolean; - /** - * Height calculation method. - */ - heightCalculationMethod?: HeightCalculationMethod; - /** - * Set iFrame Id - */ - id?: string; - /** - * In browsers that don't support mutationObserver, such as IE10, the library falls back to using - * setInterval, to check for changes to the page size. - */ - interval?: number; - /** - * Setting the log option to true will make the scripts in both the host page and the iFrame output - * everything they do to the JavaScript console so you can see the communication between the two scripts. - */ - log?: boolean; - /** - * Set maximum height of iFrame. - */ - maxHeight?: number; - /** - * Set maximum width of iFrame. - */ - maxWidth?: number; - /** - * Set minimum height of iFrame. - */ - minHeight?: number; - /** - * Set minimum width of iFrame. - */ - minWidth?: number; - /** - * Listen for resize events from the parent page, or the iFrame. Select the 'child' value if the iFrame - * can be resized independently of the browser window. Selecting this value can cause issues with some - * height calculation methods on mobile devices. - */ - resizeFrom?: 'parent' | 'child'; - /** - * Enable scroll bars in iFrame. - */ - scrolling?: boolean | 'auto'; - /** - * Resize iFrame to content height. - */ - sizeHeight?: boolean; - /** - * Resize iFrame to content width. - */ - sizeWidth?: boolean; - /** - * Set the number of pixels the iFrame content size has to change by, before triggering a resize of the iFrame. - */ - tolerance?: number; - /** - * Width calculation method. - */ - widthCalculationMethod?: WidthCalculationMethod; - /** - * Called when iFrame is closed via parentIFrame.close() or iframe.iframeResizer.close() methods. - */ - closedCallback?: (iframeId: string) => void; - /** - * Initial setup callback function. - */ - initCallback?: (iframe: IFrameComponent) => void; - /** - * Receive message posted from iFrame with the parentIFrame.sendMessage() method. - */ - messageCallback?: (data: IFrameMessageData) => void; - /** - * Function called after iFrame resized. Passes in messageData object containing the iFrame, height, width - * and the type of event that triggered the iFrame to resize. - */ - resizedCallback?: (data: IFrameResizedData) => void; - /** - * Called before the page is repositioned after a request from the iFrame, due to either an in page link, - * or a direct request from either parentIFrame.scrollTo() or parentIFrame.scrollToOffset(). - * If this callback function returns false, it will stop the library from repositioning the page, so that - * you can implement your own animated page scrolling instead. - */ - scrollCallback?: (data: IFrameScrollData) => boolean; - } - - // tslint:disable-next-line:interface-name - interface IFramePageOptions { - /** - * This option allows you to restrict the domain of the parent page, - * to prevent other sites mimicking your parent page. - */ - targetOrigin?: string; - /** - * Receive message posted from the parent page with the iframe.iFrameResizer.sendMessage() method. - */ - messageCallback?: (message: any) => void; - /** - * This function is called once iFrame-Resizer has been initialized after receiving a call from the parent page. - */ - readyCallback?: () => void; - /** - * These option can be used to override the option set in the parent page - */ - heightCalculationMethod?: HeightCalculationMethod | (() => number); - /** - * These option can be used to override the option set in the parent page - */ - widthCalculationMethod?: WidthCalculationMethod | (() => number); - } - - type HeightCalculationMethod = 'bodyOffset' | 'bodyScroll' | 'documentElementOffset' | 'documentElementScroll' | - 'max' | 'min' | 'grow' | 'lowestElement' | 'taggedElement'; - - type WidthCalculationMethod = 'bodyOffset' | 'bodyScroll' | 'documentElementOffset' | 'documentElementScroll' | - 'max' | 'min' | 'scroll' | 'rightMostElement' | 'taggedElement'; - - // tslint:disable-next-line:interface-name - interface IFramePage { - /** - * Turn autoResizing of the iFrame on and off. Returns bool of current state. - */ - autoResize(resize?: boolean): boolean; - /** - * Remove the iFrame from the parent page. - */ - close(): void; - /** - * Returns the ID of the iFrame that the page is contained in. - */ - getId(): string; - /** - * Ask the containing page for its positioning coordinates. - * - * Your callback function will be recalled when the parent page is scrolled or resized. - * - * Pass false to disable the callback. - */ - getPageInfo(callback: ((data: PageInfo) => void) | false): void; - /** - * Scroll the parent page to the coordinates x and y - */ - scrollTo(x: number, y: number): void; - /** - * Scroll the parent page to the coordinates x and y relative to the position of the iFrame. - */ - scrollToOffset(x: number, y: number): void; - /** - * Send data to the containing page, message can be any data type that can be serialized into JSON. The `targetOrigin` - * option is used to restrict where the message is sent to; to stop an attacker mimicking your parent page. - * See the MDN documentation on postMessage for more details. - */ - sendMessage(message: any, targetOrigin?: string): void; - /** - * Change the method use to workout the height of the iFrame. - */ - setHeightCalculationMethod(method: HeightCalculationMethod): void; - /** - * Change the method use to workout the width of the iFrame. - */ - setWidthCalculationMethod(method: WidthCalculationMethod): void; - /** - * Set default target origin. - */ - setTargetOrigin(targetOrigin: string): void; - /** - * Manually force iFrame to resize. To use passed arguments you need first to disable the `autoResize` option to - * prevent auto resizing and enable the `sizeWidth` option if you wish to set the width. - */ - size(customHeight?: string, customWidth?: string): void; - } - - interface PageInfo { - /** - * The height of the iframe in pixels - */ - iframeHeight: number; - /** - * The width of the iframe in pixels - */ - iframeWidth: number; - /** - * The height of the viewport in pixels - */ - clientHeight: number; - /** - * The width of the viewport in pixels - */ - clientWidth: number; - /** - * The number of pixels between the left edge of the containing page and the left edge of the iframe - */ - offsetLeft: number; - /** - * The number of pixels between the top edge of the containing page and the top edge of the iframe - */ - offsetTop: number; - /** - * The number of pixels between the left edge of the iframe and the left edge of the iframe viewport - */ - scrollLeft: number; - /** - * The number of pixels between the top edge of the iframe and the top edge of the iframe viewport - */ - scrollTop: number; - } - - // tslint:disable-next-line:interface-name - interface IFrameResizedData { - iframe: IFrameComponent; - height: number; - width: number; - type: string; - } - - // tslint:disable-next-line:interface-name - interface IFrameMessageData { - iframe: IFrameComponent; - message: string; - } - - // tslint:disable-next-line:interface-name - interface IFrameScrollData { - x: number; - y: number; - } - - function iframeResizer(options: IFrameOptions, target: string | HTMLElement): IFrameComponent[]; +// tslint:disable-next-line:interface-name +export interface IFrameObject { + close(): void; + moveToAnchor(anchor: string): void; + resize(): void; + sendMessage(message: any, targetOrigin?: string): void; } -// tslint:enable:prefer-method-signature + +// tslint:disable-next-line:interface-name +export interface IFrameComponent extends HTMLIFrameElement { + iFrameResizer: IFrameObject; +} + +// tslint:disable-next-line:interface-name +export interface IFrameOptions { + /** + * When enabled changes to the Window size or the DOM will cause the iFrame to resize to the new content size. + * Disable if using size method with custom dimensions. + */ + autoResize?: boolean; + /** + * Override the body background style in the iFrame. + */ + bodyBackground?: string; + /** + * Override the default body margin style in the iFrame. A string can be any valid value for the + * CSS margin attribute, for example '8px 3em'. A number value is converted into px. + */ + bodyMargin?: number; + /** + * When set to true, only allow incoming messages from the domain listed in the src property of the iFrame tag. + * If your iFrame navigates between different domains, ports or protocols; then you will need to + * provide an array of URLs or disable this option. + */ + checkOrigin?: boolean; + /** + * When enabled in page linking inside the iFrame and from the iFrame to the parent page will be enabled. + */ + inPageLinks?: boolean; + /** + * Height calculation method. + */ + heightCalculationMethod?: HeightCalculationMethod; + /** + * Set iFrame Id + */ + id?: string; + /** + * In browsers that don't support mutationObserver, such as IE10, the library falls back to using + * setInterval, to check for changes to the page size. + */ + interval?: number; + /** + * Setting the log option to true will make the scripts in both the host page and the iFrame output + * everything they do to the JavaScript console so you can see the communication between the two scripts. + */ + log?: boolean; + /** + * Set maximum height of iFrame. + */ + maxHeight?: number; + /** + * Set maximum width of iFrame. + */ + maxWidth?: number; + /** + * Set minimum height of iFrame. + */ + minHeight?: number; + /** + * Set minimum width of iFrame. + */ + minWidth?: number; + /** + * Listen for resize events from the parent page, or the iFrame. Select the 'child' value if the iFrame + * can be resized independently of the browser window. Selecting this value can cause issues with some + * height calculation methods on mobile devices. + */ + resizeFrom?: 'parent' | 'child'; + /** + * Enable scroll bars in iFrame. + */ + scrolling?: boolean | 'auto'; + /** + * Resize iFrame to content height. + */ + sizeHeight?: boolean; + /** + * Resize iFrame to content width. + */ + sizeWidth?: boolean; + /** + * Set the number of pixels the iFrame content size has to change by, before triggering a resize of the iFrame. + */ + tolerance?: number; + /** + * Width calculation method. + */ + widthCalculationMethod?: WidthCalculationMethod; + /** + * Called when iFrame is closed via parentIFrame.close() or iframe.iframeResizer.close() methods. + */ + closedCallback?(iframeId: string): void; + /** + * Initial setup callback function. + */ + initCallback?(iframe: IFrameComponent): void; + /** + * Receive message posted from iFrame with the parentIFrame.sendMessage() method. + */ + messageCallback?(data: IFrameMessageData): void; + /** + * Function called after iFrame resized. Passes in messageData object containing the iFrame, height, width + * and the type of event that triggered the iFrame to resize. + */ + resizedCallback?(data: IFrameResizedData): void; + /** + * Called before the page is repositioned after a request from the iFrame, due to either an in page link, + * or a direct request from either parentIFrame.scrollTo() or parentIFrame.scrollToOffset(). + * If this callback function returns false, it will stop the library from repositioning the page, so that + * you can implement your own animated page scrolling instead. + */ + scrollCallback?(data: IFrameScrollData): boolean; +} + +// tslint:disable-next-line:interface-name +export interface IFramePageOptions { + /** + * This option allows you to restrict the domain of the parent page, + * to prevent other sites mimicking your parent page. + */ + targetOrigin?: string; + /** + * Receive message posted from the parent page with the iframe.iFrameResizer.sendMessage() method. + */ + messageCallback?(message: any): void; + /** + * This function is called once iFrame-Resizer has been initialized after receiving a call from the parent page. + */ + readyCallback?(): void; + /** + * These option can be used to override the option set in the parent page + */ + heightCalculationMethod?: HeightCalculationMethod | (() => number); + /** + * These option can be used to override the option set in the parent page + */ + widthCalculationMethod?: WidthCalculationMethod | (() => number); +} + +export type HeightCalculationMethod = 'bodyOffset' | 'bodyScroll' | 'documentElementOffset' | 'documentElementScroll' | + 'max' | 'min' | 'grow' | 'lowestElement' | 'taggedElement'; + + export type WidthCalculationMethod = 'bodyOffset' | 'bodyScroll' | 'documentElementOffset' | 'documentElementScroll' | + 'max' | 'min' | 'scroll' | 'rightMostElement' | 'taggedElement'; + +// tslint:disable-next-line:interface-name +export interface IFramePage { + /** + * Turn autoResizing of the iFrame on and off. Returns bool of current state. + */ + autoResize(resize?: boolean): boolean; + /** + * Remove the iFrame from the parent page. + */ + close(): void; + /** + * Returns the ID of the iFrame that the page is contained in. + */ + getId(): string; + /** + * Ask the containing page for its positioning coordinates. + * + * Your callback function will be recalled when the parent page is scrolled or resized. + * + * Pass false to disable the callback. + */ + getPageInfo(callback: ((data: PageInfo) => void) | false): void; + /** + * Scroll the parent page to the coordinates x and y + */ + scrollTo(x: number, y: number): void; + /** + * Scroll the parent page to the coordinates x and y relative to the position of the iFrame. + */ + scrollToOffset(x: number, y: number): void; + /** + * Send data to the containing page, message can be any data type that can be serialized into JSON. The `targetOrigin` + * option is used to restrict where the message is sent to; to stop an attacker mimicking your parent page. + * See the MDN documentation on postMessage for more details. + */ + sendMessage(message: any, targetOrigin?: string): void; + /** + * Change the method use to workout the height of the iFrame. + */ + setHeightCalculationMethod(method: HeightCalculationMethod): void; + /** + * Change the method use to workout the width of the iFrame. + */ + setWidthCalculationMethod(method: WidthCalculationMethod): void; + /** + * Set default target origin. + */ + setTargetOrigin(targetOrigin: string): void; + /** + * Manually force iFrame to resize. To use passed arguments you need first to disable the `autoResize` option to + * prevent auto resizing and enable the `sizeWidth` option if you wish to set the width. + */ + size(customHeight?: string, customWidth?: string): void; +} + +export interface PageInfo { + /** + * The height of the iframe in pixels + */ + iframeHeight: number; + /** + * The width of the iframe in pixels + */ + iframeWidth: number; + /** + * The height of the viewport in pixels + */ + clientHeight: number; + /** + * The width of the viewport in pixels + */ + clientWidth: number; + /** + * The number of pixels between the left edge of the containing page and the left edge of the iframe + */ + offsetLeft: number; + /** + * The number of pixels between the top edge of the containing page and the top edge of the iframe + */ + offsetTop: number; + /** + * The number of pixels between the left edge of the iframe and the left edge of the iframe viewport + */ + scrollLeft: number; + /** + * The number of pixels between the top edge of the iframe and the top edge of the iframe viewport + */ + scrollTop: number; +} + +// tslint:disable-next-line:interface-name +export interface IFrameResizedData { + iframe: IFrameComponent; + height: number; + width: number; + type: string; +} + +// tslint:disable-next-line:interface-name +export interface IFrameMessageData { + iframe: IFrameComponent; + message: string; +} + +// tslint:disable-next-line:interface-name +export interface IFrameScrollData { + x: number; + y: number; +} + +export function iframeResizer(options: IFrameOptions, target: string | HTMLElement): IFrameComponent[]; diff --git a/types/ignite-ui/index.d.ts b/types/ignite-ui/index.d.ts index 970875a49b..2341f1bd9f 100644 --- a/types/ignite-ui/index.d.ts +++ b/types/ignite-ui/index.d.ts @@ -577,7 +577,7 @@ class DataSource { /** * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } */ fields(fields?: Object): Object; @@ -614,36 +614,36 @@ class DataSource { /** * Gets/sets the schema definition. * - * @param s a schema object - * @param t type of the data source. See settings.type + * @param s a schema object + * @param t type of the data source. See settings.type */ schema(s?: Object, t?: string): void; /** * Gets/sets a list of paging settings * - * @param p object holding all paging settings. See settings.paging + * @param p object holding all paging settings. See settings.paging */ pagingSettings(p?: Object): Object; /** * Gets/sets a list of filtering settings * - * @param f object holding all filtering settings. See settings.filtering + * @param f object holding all filtering settings. See settings.filtering */ filterSettings(f?: Object): void; /** * Gets/sets a list of paging settings * - * @param s object holding all sorting settings. See settings.sorting + * @param s object holding all sorting settings. See settings.sorting */ sortSettings(s?: Object): Object; /** * Gets/sets a list of summaries settings. * - * @param s object holding all summaries settings. See settings.summaries + * @param s object holding all summaries settings. See settings.summaries */ summariesSettings(s?: Object): void; @@ -665,16 +665,16 @@ class DataSource { /** * Returns a record by a specified key (requires that primaryKey is set in the settings) * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource */ findRecordByKey(key: string, ds?: string, objPath?: string): Object; /** * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source * - * @param key primary key of the record + * @param key primary key of the record * @param origDs */ removeRecordByKey(key: Object, origDs: Object): void; @@ -682,7 +682,7 @@ class DataSource { /** * Removes a record from the data source at specific index. * - * @param index index of record + * @param index index of record * @param origDs */ removeRecordByIndex(index: number, origDs: Object): void; @@ -690,82 +690,82 @@ class DataSource { /** * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log */ setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; /** * Updates a record in the datasource. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource */ insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; /** * Deletes a row from the data source. * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ deleteRow(rowId: Object, autoCommit: boolean): Object; /** * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ addNode(data: Object): void; /** * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ removeNode(data: Object): void; /** * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source * - * @param t a transaction object + * @param t a transaction object */ getDetachedRecord(t: Object): Object; /** * Update the data source with every transaction from the log * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. */ commit(id?: number): void; /** * Clears the transaction log without updating anything in the data source * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. */ rollback(id?: Object): void; @@ -787,8 +787,8 @@ class DataSource { /** * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) */ saveChanges(success: Function, error: Function): void; @@ -809,16 +809,16 @@ class DataSource { * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView * 6. fire the databound event * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context */ dataBind(callback?: string, callee?: Object): void; /** * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it */ getCellValue(fieldName: string, record: Object): Object; @@ -828,8 +828,8 @@ class DataSource { * If key or dsObj are not set then returns summaries data. * Takes summary data from passed argument dsObj(using argument key) * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) */ summariesResponse(key?: string, dsObj?: Object): Object; @@ -846,8 +846,8 @@ class DataSource { * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] * - * @param fields an array of fields object definitions - * @param direction asc / desc direction + * @param fields an array of fields object definitions + * @param direction asc / desc direction */ sort(fields: Object, direction: string): void; @@ -859,8 +859,8 @@ class DataSource { /** * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. * - * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). - * @param fields an array of fields that will be searched. + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. */ filterByText(expression: string, fields?: any[]): void; @@ -874,26 +874,14 @@ class DataSource { * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain * if expr is detected to be a regular expression, the "cond" part is skipped * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * {filterAllFields: , expr: , fields: } * - * @param fieldExpressions {filterAllFields: , expr: , fields: } - * - * ``` - * ds = new $.%%WidgetName%%({ - * type: "json", - * dataSource: adventureWorks, - * schema: jsonSchema - * }); - * ds.dataBind(); - * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); - * // Filter by text - * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); - * ``` - * - * @param boolLogic a list of field expression definitions - * @param keepFilterState boolean logic. Accepted values are AND and OR. - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + * @param fieldExpressions a list of field expression definitions + * @param boolLogic boolean logic. Accepted values are AND and OR. + * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. */ - filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; + filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; /** * This clears local filtering applied to the data view by resetting it to the original data and applying any paging @@ -907,7 +895,7 @@ class DataSource { * the actual total number of records may not * match the number of records that exists on the client * - * @param count the total number of records + * @param count the total number of records * @param key * @param dsObj * @param context @@ -917,14 +905,14 @@ class DataSource { /** * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend */ hasTotalRecordsCount(hasCount: boolean): void; /** * Returns metadata object for the specified key * - * @param key Primary key of the record + * @param key Primary key of the record */ metadata(key: string): Object; @@ -941,14 +929,14 @@ class DataSource { /** * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. * - * @param index the page index. If none is specified, returns the current page index. + * @param index the page index. If none is specified, returns the current page index. */ pageIndex(index?: number): number; /** * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. */ persistedPageIndex(value?: number): number; @@ -965,7 +953,7 @@ class DataSource { /** * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size * - * @param s the page size. + * @param s the page size. */ pageSize(s?: number): number; @@ -979,28 +967,28 @@ class DataSource { /** * Returns a list of records for the specified page. Implies that paging is enabled. * - * @param p the page index for which records will be returned + * @param p the page index for which records will be returned */ recordsForPage(p: number): void; /** * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data * - * @param tableDOM TABLE dom element to transform + * @param tableDOM TABLE dom element to transform */ tableToObject(tableDOM: Element): Object; /** * Parses the string and returns an evaluated JSON object * - * @param s the JSON as string. + * @param s the JSON as string. */ stringToJSONObject(s: string): void; /** * Parses a string and returns a XML Document * - * @param s the XML represented as a string + * @param s the XML represented as a string */ stringToXmlObject(s: string): void; @@ -1022,22 +1010,22 @@ class DataSource { /** * Toggle grouped record with the specified id and updates collections visible groupby data and data view * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded */ toggleGroupByRecord(id: string, collapsed: boolean): void; /** * Check whether the specified gorupby record is collapsed * - * @param gbRec id of the grouped record OR grouped record + * @param gbRec id of the grouped record OR grouped record */ isGroupByRecordCollapsed(gbRec: Object): boolean; /** * Check whether grouping is applied for the specified sorting expressions. * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings */ isGroupByApplied(exprs?: any[]): boolean; } @@ -1131,21 +1119,21 @@ class DataSchema { /** * Performs a transformation on the schema so that the resulting data matches the schema * - * @param data the data to transform + * @param data the data to transform */ transform(data: Object): Object; /** * Specifies if the object is null, undefined, or an empty string * - * @param o the object to check for being empty + * @param o the object to check for being empty */ isEmpty(o: Object): Object; /** * Specifies if the object has custom properties or not * - * @param obj the object to check for presence or lack of custom properties + * @param obj the object to check for presence or lack of custom properties */ isObjEmpty(obj: Object): Object; @@ -1167,7 +1155,7 @@ class RemoteDataSource { /** * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } */ fields(fields?: Object): Object; @@ -1204,36 +1192,36 @@ class RemoteDataSource { /** * Gets/sets the schema definition. * - * @param s a schema object - * @param t type of the data source. See settings.type + * @param s a schema object + * @param t type of the data source. See settings.type */ schema(s?: Object, t?: string): void; /** * Gets/sets a list of paging settings * - * @param p object holding all paging settings. See settings.paging + * @param p object holding all paging settings. See settings.paging */ pagingSettings(p?: Object): Object; /** * Gets/sets a list of filtering settings * - * @param f object holding all filtering settings. See settings.filtering + * @param f object holding all filtering settings. See settings.filtering */ filterSettings(f?: Object): void; /** * Gets/sets a list of paging settings * - * @param s object holding all sorting settings. See settings.sorting + * @param s object holding all sorting settings. See settings.sorting */ sortSettings(s?: Object): Object; /** * Gets/sets a list of summaries settings. * - * @param s object holding all summaries settings. See settings.summaries + * @param s object holding all summaries settings. See settings.summaries */ summariesSettings(s?: Object): void; @@ -1255,16 +1243,16 @@ class RemoteDataSource { /** * Returns a record by a specified key (requires that primaryKey is set in the settings) * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource */ findRecordByKey(key: string, ds?: string, objPath?: string): Object; /** * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source * - * @param key primary key of the record + * @param key primary key of the record * @param origDs */ removeRecordByKey(key: Object, origDs: Object): void; @@ -1272,7 +1260,7 @@ class RemoteDataSource { /** * Removes a record from the data source at specific index. * - * @param index index of record + * @param index index of record * @param origDs */ removeRecordByIndex(index: number, origDs: Object): void; @@ -1280,82 +1268,82 @@ class RemoteDataSource { /** * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log */ setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; /** * Updates a record in the datasource. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource */ insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; /** * Deletes a row from the data source. * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ deleteRow(rowId: Object, autoCommit: boolean): Object; /** * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ addNode(data: Object): void; /** * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ removeNode(data: Object): void; /** * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source * - * @param t a transaction object + * @param t a transaction object */ getDetachedRecord(t: Object): Object; /** * Update the data source with every transaction from the log * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. */ commit(id?: number): void; /** * Clears the transaction log without updating anything in the data source * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. */ rollback(id?: Object): void; @@ -1377,8 +1365,8 @@ class RemoteDataSource { /** * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) */ saveChanges(success: Function, error: Function): void; @@ -1399,16 +1387,16 @@ class RemoteDataSource { * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView * 6. fire the databound event * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context */ dataBind(callback?: string, callee?: Object): void; /** * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it */ getCellValue(fieldName: string, record: Object): Object; @@ -1418,8 +1406,8 @@ class RemoteDataSource { * If key or dsObj are not set then returns summaries data. * Takes summary data from passed argument dsObj(using argument key) * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) */ summariesResponse(key?: string, dsObj?: Object): Object; @@ -1436,8 +1424,8 @@ class RemoteDataSource { * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] * - * @param fields an array of fields object definitions - * @param direction asc / desc direction + * @param fields an array of fields object definitions + * @param direction asc / desc direction */ sort(fields: Object, direction: string): void; @@ -1449,8 +1437,8 @@ class RemoteDataSource { /** * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. * - * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). - * @param fields an array of fields that will be searched. + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. */ filterByText(expression: string, fields?: any[]): void; @@ -1464,28 +1452,14 @@ class RemoteDataSource { * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain * if expr is detected to be a regular expression, the "cond" part is skipped * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * {filterAllFields: , expr: , fields: } * - * @param fieldExpressions {filterAllFields: , expr: , fields: } - * - * ``` - * ds = new $.%%WidgetName%%({ - * type: "json", - * dataSource: adventureWorks, - * schema: jsonSchema - * }); - * ds.dataBind(); - * - * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); - * - * // Filter by text - * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); - * ``` - * - * @param boolLogic a list of field expression definitions - * @param keepFilterState boolean logic. Accepted values are AND and OR. - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + * @param fieldExpressions a list of field expression definitions + * @param boolLogic boolean logic. Accepted values are AND and OR. + * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. */ - filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; + filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; /** * This clears local filtering applied to the data view by resetting it to the original data and applying any paging @@ -1499,7 +1473,7 @@ class RemoteDataSource { * the actual total number of records may not * match the number of records that exists on the client * - * @param count the total number of records + * @param count the total number of records * @param key * @param dsObj * @param context @@ -1509,14 +1483,14 @@ class RemoteDataSource { /** * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend */ hasTotalRecordsCount(hasCount: boolean): void; /** * Returns metadata object for the specified key * - * @param key Primary key of the record + * @param key Primary key of the record */ metadata(key: string): Object; @@ -1533,14 +1507,14 @@ class RemoteDataSource { /** * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. * - * @param index the page index. If none is specified, returns the current page index. + * @param index the page index. If none is specified, returns the current page index. */ pageIndex(index?: number): number; /** * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. */ persistedPageIndex(value?: number): number; @@ -1557,7 +1531,7 @@ class RemoteDataSource { /** * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size * - * @param s the page size. + * @param s the page size. */ pageSize(s?: number): number; @@ -1571,28 +1545,28 @@ class RemoteDataSource { /** * Returns a list of records for the specified page. Implies that paging is enabled. * - * @param p the page index for which records will be returned + * @param p the page index for which records will be returned */ recordsForPage(p: number): void; /** * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data * - * @param tableDOM TABLE dom element to transform + * @param tableDOM TABLE dom element to transform */ tableToObject(tableDOM: Element): Object; /** * Parses the string and returns an evaluated JSON object * - * @param s the JSON as string. + * @param s the JSON as string. */ stringToJSONObject(s: string): void; /** * Parses a string and returns a XML Document * - * @param s the XML represented as a string + * @param s the XML represented as a string */ stringToXmlObject(s: string): void; @@ -1614,22 +1588,22 @@ class RemoteDataSource { /** * Toggle grouped record with the specified id and updates collections visible groupby data and data view * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded */ toggleGroupByRecord(id: string, collapsed: boolean): void; /** * Check whether the specified gorupby record is collapsed * - * @param gbRec id of the grouped record OR grouped record + * @param gbRec id of the grouped record OR grouped record */ isGroupByRecordCollapsed(gbRec: Object): boolean; /** * Check whether grouping is applied for the specified sorting expressions. * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings */ isGroupByApplied(exprs?: any[]): boolean; } @@ -1657,7 +1631,7 @@ class JSONDataSource { /** * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } */ fields(fields?: Object): Object; @@ -1694,36 +1668,36 @@ class JSONDataSource { /** * Gets/sets the schema definition. * - * @param s a schema object - * @param t type of the data source. See settings.type + * @param s a schema object + * @param t type of the data source. See settings.type */ schema(s?: Object, t?: string): void; /** * Gets/sets a list of paging settings * - * @param p object holding all paging settings. See settings.paging + * @param p object holding all paging settings. See settings.paging */ pagingSettings(p?: Object): Object; /** * Gets/sets a list of filtering settings * - * @param f object holding all filtering settings. See settings.filtering + * @param f object holding all filtering settings. See settings.filtering */ filterSettings(f?: Object): void; /** * Gets/sets a list of paging settings * - * @param s object holding all sorting settings. See settings.sorting + * @param s object holding all sorting settings. See settings.sorting */ sortSettings(s?: Object): Object; /** * Gets/sets a list of summaries settings. * - * @param s object holding all summaries settings. See settings.summaries + * @param s object holding all summaries settings. See settings.summaries */ summariesSettings(s?: Object): void; @@ -1745,16 +1719,16 @@ class JSONDataSource { /** * Returns a record by a specified key (requires that primaryKey is set in the settings) * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource */ findRecordByKey(key: string, ds?: string, objPath?: string): Object; /** * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source * - * @param key primary key of the record + * @param key primary key of the record * @param origDs */ removeRecordByKey(key: Object, origDs: Object): void; @@ -1762,7 +1736,7 @@ class JSONDataSource { /** * Removes a record from the data source at specific index. * - * @param index index of record + * @param index index of record * @param origDs */ removeRecordByIndex(index: number, origDs: Object): void; @@ -1770,82 +1744,82 @@ class JSONDataSource { /** * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log */ setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; /** * Updates a record in the datasource. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource */ insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; /** * Deletes a row from the data source. * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ deleteRow(rowId: Object, autoCommit: boolean): Object; /** * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ addNode(data: Object): void; /** * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ removeNode(data: Object): void; /** * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source * - * @param t a transaction object + * @param t a transaction object */ getDetachedRecord(t: Object): Object; /** * Update the data source with every transaction from the log * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. */ commit(id?: number): void; /** * Clears the transaction log without updating anything in the data source * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. */ rollback(id?: Object): void; @@ -1867,8 +1841,8 @@ class JSONDataSource { /** * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) */ saveChanges(success: Function, error: Function): void; @@ -1889,16 +1863,16 @@ class JSONDataSource { * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView * 6. fire the databound event * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context */ dataBind(callback?: string, callee?: Object): void; /** * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it */ getCellValue(fieldName: string, record: Object): Object; @@ -1908,8 +1882,8 @@ class JSONDataSource { * If key or dsObj are not set then returns summaries data. * Takes summary data from passed argument dsObj(using argument key) * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) */ summariesResponse(key?: string, dsObj?: Object): Object; @@ -1926,8 +1900,8 @@ class JSONDataSource { * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] * - * @param fields an array of fields object definitions - * @param direction asc / desc direction + * @param fields an array of fields object definitions + * @param direction asc / desc direction */ sort(fields: Object, direction: string): void; @@ -1939,8 +1913,8 @@ class JSONDataSource { /** * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. * - * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). - * @param fields an array of fields that will be searched. + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. */ filterByText(expression: string, fields?: any[]): void; @@ -1954,28 +1928,14 @@ class JSONDataSource { * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain * if expr is detected to be a regular expression, the "cond" part is skipped * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * {filterAllFields: , expr: , fields: } * - * @param fieldExpressions {filterAllFields: , expr: , fields: } - * - * ``` - * ds = new $.%%WidgetName%%({ - * type: "json", - * dataSource: adventureWorks, - * schema: jsonSchema - * }); - * ds.dataBind(); - * - * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); - * - * // Filter by text - * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); - * ``` - * - * @param boolLogic a list of field expression definitions - * @param keepFilterState boolean logic. Accepted values are AND and OR. - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + * @param fieldExpressions a list of field expression definitions + * @param boolLogic boolean logic. Accepted values are AND and OR. + * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. */ - filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; + filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; /** * This clears local filtering applied to the data view by resetting it to the original data and applying any paging @@ -1989,7 +1949,7 @@ class JSONDataSource { * the actual total number of records may not * match the number of records that exists on the client * - * @param count the total number of records + * @param count the total number of records * @param key * @param dsObj * @param context @@ -1999,14 +1959,14 @@ class JSONDataSource { /** * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend */ hasTotalRecordsCount(hasCount: boolean): void; /** * Returns metadata object for the specified key * - * @param key Primary key of the record + * @param key Primary key of the record */ metadata(key: string): Object; @@ -2023,14 +1983,14 @@ class JSONDataSource { /** * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. * - * @param index the page index. If none is specified, returns the current page index. + * @param index the page index. If none is specified, returns the current page index. */ pageIndex(index?: number): number; /** * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. */ persistedPageIndex(value?: number): number; @@ -2047,7 +2007,7 @@ class JSONDataSource { /** * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size * - * @param s the page size. + * @param s the page size. */ pageSize(s?: number): number; @@ -2061,28 +2021,28 @@ class JSONDataSource { /** * Returns a list of records for the specified page. Implies that paging is enabled. * - * @param p the page index for which records will be returned + * @param p the page index for which records will be returned */ recordsForPage(p: number): void; /** * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data * - * @param tableDOM TABLE dom element to transform + * @param tableDOM TABLE dom element to transform */ tableToObject(tableDOM: Element): Object; /** * Parses the string and returns an evaluated JSON object * - * @param s the JSON as string. + * @param s the JSON as string. */ stringToJSONObject(s: string): void; /** * Parses a string and returns a XML Document * - * @param s the XML represented as a string + * @param s the XML represented as a string */ stringToXmlObject(s: string): void; @@ -2104,22 +2064,22 @@ class JSONDataSource { /** * Toggle grouped record with the specified id and updates collections visible groupby data and data view * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded */ toggleGroupByRecord(id: string, collapsed: boolean): void; /** * Check whether the specified gorupby record is collapsed * - * @param gbRec id of the grouped record OR grouped record + * @param gbRec id of the grouped record OR grouped record */ isGroupByRecordCollapsed(gbRec: Object): boolean; /** * Check whether grouping is applied for the specified sorting expressions. * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings */ isGroupByApplied(exprs?: any[]): boolean; } @@ -2258,7 +2218,7 @@ class RESTDataSource { /** * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } */ fields(fields?: Object): Object; @@ -2295,36 +2255,36 @@ class RESTDataSource { /** * Gets/sets the schema definition. * - * @param s a schema object - * @param t type of the data source. See settings.type + * @param s a schema object + * @param t type of the data source. See settings.type */ schema(s?: Object, t?: string): void; /** * Gets/sets a list of paging settings * - * @param p object holding all paging settings. See settings.paging + * @param p object holding all paging settings. See settings.paging */ pagingSettings(p?: Object): Object; /** * Gets/sets a list of filtering settings * - * @param f object holding all filtering settings. See settings.filtering + * @param f object holding all filtering settings. See settings.filtering */ filterSettings(f?: Object): void; /** * Gets/sets a list of paging settings * - * @param s object holding all sorting settings. See settings.sorting + * @param s object holding all sorting settings. See settings.sorting */ sortSettings(s?: Object): Object; /** * Gets/sets a list of summaries settings. * - * @param s object holding all summaries settings. See settings.summaries + * @param s object holding all summaries settings. See settings.summaries */ summariesSettings(s?: Object): void; @@ -2346,16 +2306,16 @@ class RESTDataSource { /** * Returns a record by a specified key (requires that primaryKey is set in the settings) * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource */ findRecordByKey(key: string, ds?: string, objPath?: string): Object; /** * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source * - * @param key primary key of the record + * @param key primary key of the record * @param origDs */ removeRecordByKey(key: Object, origDs: Object): void; @@ -2363,7 +2323,7 @@ class RESTDataSource { /** * Removes a record from the data source at specific index. * - * @param index index of record + * @param index index of record * @param origDs */ removeRecordByIndex(index: number, origDs: Object): void; @@ -2371,82 +2331,82 @@ class RESTDataSource { /** * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log */ setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; /** * Updates a record in the datasource. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource */ insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; /** * Deletes a row from the data source. * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ deleteRow(rowId: Object, autoCommit: boolean): Object; /** * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ addNode(data: Object): void; /** * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ removeNode(data: Object): void; /** * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source * - * @param t a transaction object + * @param t a transaction object */ getDetachedRecord(t: Object): Object; /** * Update the data source with every transaction from the log * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. */ commit(id?: number): void; /** * Clears the transaction log without updating anything in the data source * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. */ rollback(id?: Object): void; @@ -2482,16 +2442,16 @@ class RESTDataSource { * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView * 6. fire the databound event * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context */ dataBind(callback?: string, callee?: Object): void; /** * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it */ getCellValue(fieldName: string, record: Object): Object; @@ -2501,8 +2461,8 @@ class RESTDataSource { * If key or dsObj are not set then returns summaries data. * Takes summary data from passed argument dsObj(using argument key) * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) */ summariesResponse(key?: string, dsObj?: Object): Object; @@ -2519,8 +2479,8 @@ class RESTDataSource { * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] * - * @param fields an array of fields object definitions - * @param direction asc / desc direction + * @param fields an array of fields object definitions + * @param direction asc / desc direction */ sort(fields: Object, direction: string): void; @@ -2532,8 +2492,8 @@ class RESTDataSource { /** * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. * - * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). - * @param fields an array of fields that will be searched. + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. */ filterByText(expression: string, fields?: any[]): void; @@ -2547,28 +2507,14 @@ class RESTDataSource { * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain * if expr is detected to be a regular expression, the "cond" part is skipped * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * {filterAllFields: , expr: , fields: } * - * @param fieldExpressions {filterAllFields: , expr: , fields: } - * - * ``` - * ds = new $.%%WidgetName%%({ - * type: "json", - * dataSource: adventureWorks, - * schema: jsonSchema - * }); - * ds.dataBind(); - * - * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); - * - * // Filter by text - * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); - * ``` - * - * @param boolLogic a list of field expression definitions - * @param keepFilterState boolean logic. Accepted values are AND and OR. - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + * @param fieldExpressions a list of field expression definitions + * @param boolLogic boolean logic. Accepted values are AND and OR. + * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. */ - filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; + filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; /** * This clears local filtering applied to the data view by resetting it to the original data and applying any paging @@ -2582,7 +2528,7 @@ class RESTDataSource { * the actual total number of records may not * match the number of records that exists on the client * - * @param count the total number of records + * @param count the total number of records * @param key * @param dsObj * @param context @@ -2592,14 +2538,14 @@ class RESTDataSource { /** * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend */ hasTotalRecordsCount(hasCount: boolean): void; /** * Returns metadata object for the specified key * - * @param key Primary key of the record + * @param key Primary key of the record */ metadata(key: string): Object; @@ -2616,14 +2562,14 @@ class RESTDataSource { /** * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. * - * @param index the page index. If none is specified, returns the current page index. + * @param index the page index. If none is specified, returns the current page index. */ pageIndex(index?: number): number; /** * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. */ persistedPageIndex(value?: number): number; @@ -2640,7 +2586,7 @@ class RESTDataSource { /** * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size * - * @param s the page size. + * @param s the page size. */ pageSize(s?: number): number; @@ -2654,28 +2600,28 @@ class RESTDataSource { /** * Returns a list of records for the specified page. Implies that paging is enabled. * - * @param p the page index for which records will be returned + * @param p the page index for which records will be returned */ recordsForPage(p: number): void; /** * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data * - * @param tableDOM TABLE dom element to transform + * @param tableDOM TABLE dom element to transform */ tableToObject(tableDOM: Element): Object; /** * Parses the string and returns an evaluated JSON object * - * @param s the JSON as string. + * @param s the JSON as string. */ stringToJSONObject(s: string): void; /** * Parses a string and returns a XML Document * - * @param s the XML represented as a string + * @param s the XML represented as a string */ stringToXmlObject(s: string): void; @@ -2697,22 +2643,22 @@ class RESTDataSource { /** * Toggle grouped record with the specified id and updates collections visible groupby data and data view * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded */ toggleGroupByRecord(id: string, collapsed: boolean): void; /** * Check whether the specified gorupby record is collapsed * - * @param gbRec id of the grouped record OR grouped record + * @param gbRec id of the grouped record OR grouped record */ isGroupByRecordCollapsed(gbRec: Object): boolean; /** * Check whether grouping is applied for the specified sorting expressions. * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings */ isGroupByApplied(exprs?: any[]): boolean; } @@ -2751,7 +2697,7 @@ class JSONPDataSource { /** * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } */ fields(fields?: Object): Object; @@ -2788,36 +2734,36 @@ class JSONPDataSource { /** * Gets/sets the schema definition. * - * @param s a schema object - * @param t type of the data source. See settings.type + * @param s a schema object + * @param t type of the data source. See settings.type */ schema(s?: Object, t?: string): void; /** * Gets/sets a list of paging settings * - * @param p object holding all paging settings. See settings.paging + * @param p object holding all paging settings. See settings.paging */ pagingSettings(p?: Object): Object; /** * Gets/sets a list of filtering settings * - * @param f object holding all filtering settings. See settings.filtering + * @param f object holding all filtering settings. See settings.filtering */ filterSettings(f?: Object): void; /** * Gets/sets a list of paging settings * - * @param s object holding all sorting settings. See settings.sorting + * @param s object holding all sorting settings. See settings.sorting */ sortSettings(s?: Object): Object; /** * Gets/sets a list of summaries settings. * - * @param s object holding all summaries settings. See settings.summaries + * @param s object holding all summaries settings. See settings.summaries */ summariesSettings(s?: Object): void; @@ -2839,16 +2785,16 @@ class JSONPDataSource { /** * Returns a record by a specified key (requires that primaryKey is set in the settings) * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource */ findRecordByKey(key: string, ds?: string, objPath?: string): Object; /** * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source * - * @param key primary key of the record + * @param key primary key of the record * @param origDs */ removeRecordByKey(key: Object, origDs: Object): void; @@ -2856,7 +2802,7 @@ class JSONPDataSource { /** * Removes a record from the data source at specific index. * - * @param index index of record + * @param index index of record * @param origDs */ removeRecordByIndex(index: number, origDs: Object): void; @@ -2864,82 +2810,82 @@ class JSONPDataSource { /** * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log */ setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; /** * Updates a record in the datasource. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource */ insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; /** * Deletes a row from the data source. * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ deleteRow(rowId: Object, autoCommit: boolean): Object; /** * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ addNode(data: Object): void; /** * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ removeNode(data: Object): void; /** * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source * - * @param t a transaction object + * @param t a transaction object */ getDetachedRecord(t: Object): Object; /** * Update the data source with every transaction from the log * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. */ commit(id?: number): void; /** * Clears the transaction log without updating anything in the data source * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. */ rollback(id?: Object): void; @@ -2961,8 +2907,8 @@ class JSONPDataSource { /** * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) */ saveChanges(success: Function, error: Function): void; @@ -2983,16 +2929,16 @@ class JSONPDataSource { * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView * 6. fire the databound event * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context */ dataBind(callback?: string, callee?: Object): void; /** * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it */ getCellValue(fieldName: string, record: Object): Object; @@ -3002,8 +2948,8 @@ class JSONPDataSource { * If key or dsObj are not set then returns summaries data. * Takes summary data from passed argument dsObj(using argument key) * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) */ summariesResponse(key?: string, dsObj?: Object): Object; @@ -3020,8 +2966,8 @@ class JSONPDataSource { * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] * - * @param fields an array of fields object definitions - * @param direction asc / desc direction + * @param fields an array of fields object definitions + * @param direction asc / desc direction */ sort(fields: Object, direction: string): void; @@ -3033,8 +2979,8 @@ class JSONPDataSource { /** * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. * - * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). - * @param fields an array of fields that will be searched. + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. */ filterByText(expression: string, fields?: any[]): void; @@ -3048,28 +2994,14 @@ class JSONPDataSource { * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain * if expr is detected to be a regular expression, the "cond" part is skipped * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * {filterAllFields: , expr: , fields: } * - * @param fieldExpressions {filterAllFields: , expr: , fields: } - * - * ``` - * ds = new $.%%WidgetName%%({ - * type: "json", - * dataSource: adventureWorks, - * schema: jsonSchema - * }); - * ds.dataBind(); - * - * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); - * - * // Filter by text - * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); - * ``` - * - * @param boolLogic a list of field expression definitions - * @param keepFilterState boolean logic. Accepted values are AND and OR. - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + * @param fieldExpressions a list of field expression definitions + * @param boolLogic boolean logic. Accepted values are AND and OR. + * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. */ - filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; + filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; /** * This clears local filtering applied to the data view by resetting it to the original data and applying any paging @@ -3083,7 +3015,7 @@ class JSONPDataSource { * the actual total number of records may not * match the number of records that exists on the client * - * @param count the total number of records + * @param count the total number of records * @param key * @param dsObj * @param context @@ -3093,14 +3025,14 @@ class JSONPDataSource { /** * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend */ hasTotalRecordsCount(hasCount: boolean): void; /** * Returns metadata object for the specified key * - * @param key Primary key of the record + * @param key Primary key of the record */ metadata(key: string): Object; @@ -3117,14 +3049,14 @@ class JSONPDataSource { /** * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. * - * @param index the page index. If none is specified, returns the current page index. + * @param index the page index. If none is specified, returns the current page index. */ pageIndex(index?: number): number; /** * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. */ persistedPageIndex(value?: number): number; @@ -3141,7 +3073,7 @@ class JSONPDataSource { /** * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size * - * @param s the page size. + * @param s the page size. */ pageSize(s?: number): number; @@ -3155,28 +3087,28 @@ class JSONPDataSource { /** * Returns a list of records for the specified page. Implies that paging is enabled. * - * @param p the page index for which records will be returned + * @param p the page index for which records will be returned */ recordsForPage(p: number): void; /** * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data * - * @param tableDOM TABLE dom element to transform + * @param tableDOM TABLE dom element to transform */ tableToObject(tableDOM: Element): Object; /** * Parses the string and returns an evaluated JSON object * - * @param s the JSON as string. + * @param s the JSON as string. */ stringToJSONObject(s: string): void; /** * Parses a string and returns a XML Document * - * @param s the XML represented as a string + * @param s the XML represented as a string */ stringToXmlObject(s: string): void; @@ -3198,22 +3130,22 @@ class JSONPDataSource { /** * Toggle grouped record with the specified id and updates collections visible groupby data and data view * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded */ toggleGroupByRecord(id: string, collapsed: boolean): void; /** * Check whether the specified gorupby record is collapsed * - * @param gbRec id of the grouped record OR grouped record + * @param gbRec id of the grouped record OR grouped record */ isGroupByRecordCollapsed(gbRec: Object): boolean; /** * Check whether grouping is applied for the specified sorting expressions. * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings */ isGroupByApplied(exprs?: any[]): boolean; } @@ -3229,7 +3161,7 @@ class XmlDataSource { /** * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } */ fields(fields?: Object): Object; @@ -3266,36 +3198,36 @@ class XmlDataSource { /** * Gets/sets the schema definition. * - * @param s a schema object - * @param t type of the data source. See settings.type + * @param s a schema object + * @param t type of the data source. See settings.type */ schema(s?: Object, t?: string): void; /** * Gets/sets a list of paging settings * - * @param p object holding all paging settings. See settings.paging + * @param p object holding all paging settings. See settings.paging */ pagingSettings(p?: Object): Object; /** * Gets/sets a list of filtering settings * - * @param f object holding all filtering settings. See settings.filtering + * @param f object holding all filtering settings. See settings.filtering */ filterSettings(f?: Object): void; /** * Gets/sets a list of paging settings * - * @param s object holding all sorting settings. See settings.sorting + * @param s object holding all sorting settings. See settings.sorting */ sortSettings(s?: Object): Object; /** * Gets/sets a list of summaries settings. * - * @param s object holding all summaries settings. See settings.summaries + * @param s object holding all summaries settings. See settings.summaries */ summariesSettings(s?: Object): void; @@ -3317,16 +3249,16 @@ class XmlDataSource { /** * Returns a record by a specified key (requires that primaryKey is set in the settings) * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource */ findRecordByKey(key: string, ds?: string, objPath?: string): Object; /** * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source * - * @param key primary key of the record + * @param key primary key of the record * @param origDs */ removeRecordByKey(key: Object, origDs: Object): void; @@ -3334,7 +3266,7 @@ class XmlDataSource { /** * Removes a record from the data source at specific index. * - * @param index index of record + * @param index index of record * @param origDs */ removeRecordByIndex(index: number, origDs: Object): void; @@ -3342,82 +3274,82 @@ class XmlDataSource { /** * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log */ setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; /** * Updates a record in the datasource. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource */ insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; /** * Deletes a row from the data source. * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ deleteRow(rowId: Object, autoCommit: boolean): Object; /** * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ addNode(data: Object): void; /** * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ removeNode(data: Object): void; /** * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source * - * @param t a transaction object + * @param t a transaction object */ getDetachedRecord(t: Object): Object; /** * Update the data source with every transaction from the log * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. */ commit(id?: number): void; /** * Clears the transaction log without updating anything in the data source * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. */ rollback(id?: Object): void; @@ -3439,8 +3371,8 @@ class XmlDataSource { /** * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) */ saveChanges(success: Function, error: Function): void; @@ -3461,16 +3393,16 @@ class XmlDataSource { * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView * 6. fire the databound event * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context */ dataBind(callback?: string, callee?: Object): void; /** * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it */ getCellValue(fieldName: string, record: Object): Object; @@ -3480,8 +3412,8 @@ class XmlDataSource { * If key or dsObj are not set then returns summaries data. * Takes summary data from passed argument dsObj(using argument key) * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) */ summariesResponse(key?: string, dsObj?: Object): Object; @@ -3498,8 +3430,8 @@ class XmlDataSource { * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] * - * @param fields an array of fields object definitions - * @param direction asc / desc direction + * @param fields an array of fields object definitions + * @param direction asc / desc direction */ sort(fields: Object, direction: string): void; @@ -3511,8 +3443,8 @@ class XmlDataSource { /** * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. * - * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). - * @param fields an array of fields that will be searched. + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. */ filterByText(expression: string, fields?: any[]): void; @@ -3526,28 +3458,14 @@ class XmlDataSource { * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain * if expr is detected to be a regular expression, the "cond" part is skipped * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * {filterAllFields: , expr: , fields: } * - * @param fieldExpressions {filterAllFields: , expr: , fields: } - * - * ``` - * ds = new $.%%WidgetName%%({ - * type: "json", - * dataSource: adventureWorks, - * schema: jsonSchema - * }); - * ds.dataBind(); - * - * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); - * - * // Filter by text - * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); - * ``` - * - * @param boolLogic a list of field expression definitions - * @param keepFilterState boolean logic. Accepted values are AND and OR. - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + * @param fieldExpressions a list of field expression definitions + * @param boolLogic boolean logic. Accepted values are AND and OR. + * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. */ - filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; + filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; /** * This clears local filtering applied to the data view by resetting it to the original data and applying any paging @@ -3561,7 +3479,7 @@ class XmlDataSource { * the actual total number of records may not * match the number of records that exists on the client * - * @param count the total number of records + * @param count the total number of records * @param key * @param dsObj * @param context @@ -3571,14 +3489,14 @@ class XmlDataSource { /** * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend */ hasTotalRecordsCount(hasCount: boolean): void; /** * Returns metadata object for the specified key * - * @param key Primary key of the record + * @param key Primary key of the record */ metadata(key: string): Object; @@ -3595,14 +3513,14 @@ class XmlDataSource { /** * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. * - * @param index the page index. If none is specified, returns the current page index. + * @param index the page index. If none is specified, returns the current page index. */ pageIndex(index?: number): number; /** * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. */ persistedPageIndex(value?: number): number; @@ -3619,7 +3537,7 @@ class XmlDataSource { /** * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size * - * @param s the page size. + * @param s the page size. */ pageSize(s?: number): number; @@ -3633,28 +3551,28 @@ class XmlDataSource { /** * Returns a list of records for the specified page. Implies that paging is enabled. * - * @param p the page index for which records will be returned + * @param p the page index for which records will be returned */ recordsForPage(p: number): void; /** * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data * - * @param tableDOM TABLE dom element to transform + * @param tableDOM TABLE dom element to transform */ tableToObject(tableDOM: Element): Object; /** * Parses the string and returns an evaluated JSON object * - * @param s the JSON as string. + * @param s the JSON as string. */ stringToJSONObject(s: string): void; /** * Parses a string and returns a XML Document * - * @param s the XML represented as a string + * @param s the XML represented as a string */ stringToXmlObject(s: string): void; @@ -3676,22 +3594,22 @@ class XmlDataSource { /** * Toggle grouped record with the specified id and updates collections visible groupby data and data view * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded */ toggleGroupByRecord(id: string, collapsed: boolean): void; /** * Check whether the specified gorupby record is collapsed * - * @param gbRec id of the grouped record OR grouped record + * @param gbRec id of the grouped record OR grouped record */ isGroupByRecordCollapsed(gbRec: Object): boolean; /** * Check whether grouping is applied for the specified sorting expressions. * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings */ isGroupByApplied(exprs?: any[]): boolean; } @@ -3719,7 +3637,7 @@ class FunctionDataSource { /** * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } */ fields(fields?: Object): Object; @@ -3756,36 +3674,36 @@ class FunctionDataSource { /** * Gets/sets the schema definition. * - * @param s a schema object - * @param t type of the data source. See settings.type + * @param s a schema object + * @param t type of the data source. See settings.type */ schema(s?: Object, t?: string): void; /** * Gets/sets a list of paging settings * - * @param p object holding all paging settings. See settings.paging + * @param p object holding all paging settings. See settings.paging */ pagingSettings(p?: Object): Object; /** * Gets/sets a list of filtering settings * - * @param f object holding all filtering settings. See settings.filtering + * @param f object holding all filtering settings. See settings.filtering */ filterSettings(f?: Object): void; /** * Gets/sets a list of paging settings * - * @param s object holding all sorting settings. See settings.sorting + * @param s object holding all sorting settings. See settings.sorting */ sortSettings(s?: Object): Object; /** * Gets/sets a list of summaries settings. * - * @param s object holding all summaries settings. See settings.summaries + * @param s object holding all summaries settings. See settings.summaries */ summariesSettings(s?: Object): void; @@ -3807,16 +3725,16 @@ class FunctionDataSource { /** * Returns a record by a specified key (requires that primaryKey is set in the settings) * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource */ findRecordByKey(key: string, ds?: string, objPath?: string): Object; /** * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source * - * @param key primary key of the record + * @param key primary key of the record * @param origDs */ removeRecordByKey(key: Object, origDs: Object): void; @@ -3824,7 +3742,7 @@ class FunctionDataSource { /** * Removes a record from the data source at specific index. * - * @param index index of record + * @param index index of record * @param origDs */ removeRecordByIndex(index: number, origDs: Object): void; @@ -3832,82 +3750,82 @@ class FunctionDataSource { /** * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log */ setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; /** * Updates a record in the datasource. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource */ insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; /** * Deletes a row from the data source. * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ deleteRow(rowId: Object, autoCommit: boolean): Object; /** * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ addNode(data: Object): void; /** * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ removeNode(data: Object): void; /** * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source * - * @param t a transaction object + * @param t a transaction object */ getDetachedRecord(t: Object): Object; /** * Update the data source with every transaction from the log * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. */ commit(id?: number): void; /** * Clears the transaction log without updating anything in the data source * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. */ rollback(id?: Object): void; @@ -3929,8 +3847,8 @@ class FunctionDataSource { /** * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) */ saveChanges(success: Function, error: Function): void; @@ -3951,16 +3869,16 @@ class FunctionDataSource { * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView * 6. fire the databound event * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context */ dataBind(callback?: string, callee?: Object): void; /** * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it */ getCellValue(fieldName: string, record: Object): Object; @@ -3970,8 +3888,8 @@ class FunctionDataSource { * If key or dsObj are not set then returns summaries data. * Takes summary data from passed argument dsObj(using argument key) * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) */ summariesResponse(key?: string, dsObj?: Object): Object; @@ -3988,8 +3906,8 @@ class FunctionDataSource { * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] * - * @param fields an array of fields object definitions - * @param direction asc / desc direction + * @param fields an array of fields object definitions + * @param direction asc / desc direction */ sort(fields: Object, direction: string): void; @@ -4001,8 +3919,8 @@ class FunctionDataSource { /** * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. * - * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). - * @param fields an array of fields that will be searched. + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. */ filterByText(expression: string, fields?: any[]): void; @@ -4016,28 +3934,14 @@ class FunctionDataSource { * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain * if expr is detected to be a regular expression, the "cond" part is skipped * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * {filterAllFields: , expr: , fields: } * - * @param fieldExpressions {filterAllFields: , expr: , fields: } - * - * ``` - * ds = new $.%%WidgetName%%({ - * type: "json", - * dataSource: adventureWorks, - * schema: jsonSchema - * }); - * ds.dataBind(); - * - * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); - * - * // Filter by text - * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); - * ``` - * - * @param boolLogic a list of field expression definitions - * @param keepFilterState boolean logic. Accepted values are AND and OR. - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + * @param fieldExpressions a list of field expression definitions + * @param boolLogic boolean logic. Accepted values are AND and OR. + * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. */ - filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; + filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; /** * This clears local filtering applied to the data view by resetting it to the original data and applying any paging @@ -4051,7 +3955,7 @@ class FunctionDataSource { * the actual total number of records may not * match the number of records that exists on the client * - * @param count the total number of records + * @param count the total number of records * @param key * @param dsObj * @param context @@ -4061,14 +3965,14 @@ class FunctionDataSource { /** * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend */ hasTotalRecordsCount(hasCount: boolean): void; /** * Returns metadata object for the specified key * - * @param key Primary key of the record + * @param key Primary key of the record */ metadata(key: string): Object; @@ -4085,14 +3989,14 @@ class FunctionDataSource { /** * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. * - * @param index the page index. If none is specified, returns the current page index. + * @param index the page index. If none is specified, returns the current page index. */ pageIndex(index?: number): number; /** * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. */ persistedPageIndex(value?: number): number; @@ -4109,7 +4013,7 @@ class FunctionDataSource { /** * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size * - * @param s the page size. + * @param s the page size. */ pageSize(s?: number): number; @@ -4123,28 +4027,28 @@ class FunctionDataSource { /** * Returns a list of records for the specified page. Implies that paging is enabled. * - * @param p the page index for which records will be returned + * @param p the page index for which records will be returned */ recordsForPage(p: number): void; /** * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data * - * @param tableDOM TABLE dom element to transform + * @param tableDOM TABLE dom element to transform */ tableToObject(tableDOM: Element): Object; /** * Parses the string and returns an evaluated JSON object * - * @param s the JSON as string. + * @param s the JSON as string. */ stringToJSONObject(s: string): void; /** * Parses a string and returns a XML Document * - * @param s the XML represented as a string + * @param s the XML represented as a string */ stringToXmlObject(s: string): void; @@ -4166,22 +4070,22 @@ class FunctionDataSource { /** * Toggle grouped record with the specified id and updates collections visible groupby data and data view * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded */ toggleGroupByRecord(id: string, collapsed: boolean): void; /** * Check whether the specified gorupby record is collapsed * - * @param gbRec id of the grouped record OR grouped record + * @param gbRec id of the grouped record OR grouped record */ isGroupByRecordCollapsed(gbRec: Object): boolean; /** * Check whether grouping is applied for the specified sorting expressions. * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings */ isGroupByApplied(exprs?: any[]): boolean; } @@ -4209,7 +4113,7 @@ class HtmlTableDataSource { /** * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } */ fields(fields?: Object): Object; @@ -4246,36 +4150,36 @@ class HtmlTableDataSource { /** * Gets/sets the schema definition. * - * @param s a schema object - * @param t type of the data source. See settings.type + * @param s a schema object + * @param t type of the data source. See settings.type */ schema(s?: Object, t?: string): void; /** * Gets/sets a list of paging settings * - * @param p object holding all paging settings. See settings.paging + * @param p object holding all paging settings. See settings.paging */ pagingSettings(p?: Object): Object; /** * Gets/sets a list of filtering settings * - * @param f object holding all filtering settings. See settings.filtering + * @param f object holding all filtering settings. See settings.filtering */ filterSettings(f?: Object): void; /** * Gets/sets a list of paging settings * - * @param s object holding all sorting settings. See settings.sorting + * @param s object holding all sorting settings. See settings.sorting */ sortSettings(s?: Object): Object; /** * Gets/sets a list of summaries settings. * - * @param s object holding all summaries settings. See settings.summaries + * @param s object holding all summaries settings. See settings.summaries */ summariesSettings(s?: Object): void; @@ -4297,16 +4201,16 @@ class HtmlTableDataSource { /** * Returns a record by a specified key (requires that primaryKey is set in the settings) * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource */ findRecordByKey(key: string, ds?: string, objPath?: string): Object; /** * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source * - * @param key primary key of the record + * @param key primary key of the record * @param origDs */ removeRecordByKey(key: Object, origDs: Object): void; @@ -4314,7 +4218,7 @@ class HtmlTableDataSource { /** * Removes a record from the data source at specific index. * - * @param index index of record + * @param index index of record * @param origDs */ removeRecordByIndex(index: number, origDs: Object): void; @@ -4322,82 +4226,82 @@ class HtmlTableDataSource { /** * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log */ setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; /** * Updates a record in the datasource. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource */ insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; /** * Deletes a row from the data source. * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ deleteRow(rowId: Object, autoCommit: boolean): Object; /** * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ addNode(data: Object): void; /** * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ removeNode(data: Object): void; /** * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source * - * @param t a transaction object + * @param t a transaction object */ getDetachedRecord(t: Object): Object; /** * Update the data source with every transaction from the log * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. */ commit(id?: number): void; /** * Clears the transaction log without updating anything in the data source * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. */ rollback(id?: Object): void; @@ -4419,8 +4323,8 @@ class HtmlTableDataSource { /** * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) */ saveChanges(success: Function, error: Function): void; @@ -4441,16 +4345,16 @@ class HtmlTableDataSource { * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView * 6. fire the databound event * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context */ dataBind(callback?: string, callee?: Object): void; /** * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it */ getCellValue(fieldName: string, record: Object): Object; @@ -4460,8 +4364,8 @@ class HtmlTableDataSource { * If key or dsObj are not set then returns summaries data. * Takes summary data from passed argument dsObj(using argument key) * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) */ summariesResponse(key?: string, dsObj?: Object): Object; @@ -4478,8 +4382,8 @@ class HtmlTableDataSource { * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] * - * @param fields an array of fields object definitions - * @param direction asc / desc direction + * @param fields an array of fields object definitions + * @param direction asc / desc direction */ sort(fields: Object, direction: string): void; @@ -4491,8 +4395,8 @@ class HtmlTableDataSource { /** * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. * - * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). - * @param fields an array of fields that will be searched. + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. */ filterByText(expression: string, fields?: any[]): void; @@ -4506,28 +4410,14 @@ class HtmlTableDataSource { * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain * if expr is detected to be a regular expression, the "cond" part is skipped * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * {filterAllFields: , expr: , fields: } * - * @param fieldExpressions {filterAllFields: , expr: , fields: } - * - * ``` - * ds = new $.%%WidgetName%%({ - * type: "json", - * dataSource: adventureWorks, - * schema: jsonSchema - * }); - * ds.dataBind(); - * - * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); - * - * // Filter by text - * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); - * ``` - * - * @param boolLogic a list of field expression definitions - * @param keepFilterState boolean logic. Accepted values are AND and OR. - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + * @param fieldExpressions a list of field expression definitions + * @param boolLogic boolean logic. Accepted values are AND and OR. + * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. */ - filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; + filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; /** * This clears local filtering applied to the data view by resetting it to the original data and applying any paging @@ -4541,7 +4431,7 @@ class HtmlTableDataSource { * the actual total number of records may not * match the number of records that exists on the client * - * @param count the total number of records + * @param count the total number of records * @param key * @param dsObj * @param context @@ -4551,14 +4441,14 @@ class HtmlTableDataSource { /** * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend */ hasTotalRecordsCount(hasCount: boolean): void; /** * Returns metadata object for the specified key * - * @param key Primary key of the record + * @param key Primary key of the record */ metadata(key: string): Object; @@ -4575,14 +4465,14 @@ class HtmlTableDataSource { /** * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. * - * @param index the page index. If none is specified, returns the current page index. + * @param index the page index. If none is specified, returns the current page index. */ pageIndex(index?: number): number; /** * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. */ persistedPageIndex(value?: number): number; @@ -4599,7 +4489,7 @@ class HtmlTableDataSource { /** * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size * - * @param s the page size. + * @param s the page size. */ pageSize(s?: number): number; @@ -4613,28 +4503,28 @@ class HtmlTableDataSource { /** * Returns a list of records for the specified page. Implies that paging is enabled. * - * @param p the page index for which records will be returned + * @param p the page index for which records will be returned */ recordsForPage(p: number): void; /** * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data * - * @param tableDOM TABLE dom element to transform + * @param tableDOM TABLE dom element to transform */ tableToObject(tableDOM: Element): Object; /** * Parses the string and returns an evaluated JSON object * - * @param s the JSON as string. + * @param s the JSON as string. */ stringToJSONObject(s: string): void; /** * Parses a string and returns a XML Document * - * @param s the XML represented as a string + * @param s the XML represented as a string */ stringToXmlObject(s: string): void; @@ -4656,22 +4546,22 @@ class HtmlTableDataSource { /** * Toggle grouped record with the specified id and updates collections visible groupby data and data view * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded */ toggleGroupByRecord(id: string, collapsed: boolean): void; /** * Check whether the specified gorupby record is collapsed * - * @param gbRec id of the grouped record OR grouped record + * @param gbRec id of the grouped record OR grouped record */ isGroupByRecordCollapsed(gbRec: Object): boolean; /** * Check whether grouping is applied for the specified sorting expressions. * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings */ isGroupByApplied(exprs?: any[]): boolean; } @@ -4687,7 +4577,7 @@ class ArrayDataSource { /** * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } */ fields(fields?: Object): Object; @@ -4724,36 +4614,36 @@ class ArrayDataSource { /** * Gets/sets the schema definition. * - * @param s a schema object - * @param t type of the data source. See settings.type + * @param s a schema object + * @param t type of the data source. See settings.type */ schema(s?: Object, t?: string): void; /** * Gets/sets a list of paging settings * - * @param p object holding all paging settings. See settings.paging + * @param p object holding all paging settings. See settings.paging */ pagingSettings(p?: Object): Object; /** * Gets/sets a list of filtering settings * - * @param f object holding all filtering settings. See settings.filtering + * @param f object holding all filtering settings. See settings.filtering */ filterSettings(f?: Object): void; /** * Gets/sets a list of paging settings * - * @param s object holding all sorting settings. See settings.sorting + * @param s object holding all sorting settings. See settings.sorting */ sortSettings(s?: Object): Object; /** * Gets/sets a list of summaries settings. * - * @param s object holding all summaries settings. See settings.summaries + * @param s object holding all summaries settings. See settings.summaries */ summariesSettings(s?: Object): void; @@ -4775,16 +4665,16 @@ class ArrayDataSource { /** * Returns a record by a specified key (requires that primaryKey is set in the settings) * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource */ findRecordByKey(key: string, ds?: string, objPath?: string): Object; /** * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source * - * @param key primary key of the record + * @param key primary key of the record * @param origDs */ removeRecordByKey(key: Object, origDs: Object): void; @@ -4792,7 +4682,7 @@ class ArrayDataSource { /** * Removes a record from the data source at specific index. * - * @param index index of record + * @param index index of record * @param origDs */ removeRecordByIndex(index: number, origDs: Object): void; @@ -4800,82 +4690,82 @@ class ArrayDataSource { /** * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log */ setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; /** * Updates a record in the datasource. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource */ insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; /** * Deletes a row from the data source. * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ deleteRow(rowId: Object, autoCommit: boolean): Object; /** * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ addNode(data: Object): void; /** * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ removeNode(data: Object): void; /** * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source * - * @param t a transaction object + * @param t a transaction object */ getDetachedRecord(t: Object): Object; /** * Update the data source with every transaction from the log * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. */ commit(id?: number): void; /** * Clears the transaction log without updating anything in the data source * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. */ rollback(id?: Object): void; @@ -4897,8 +4787,8 @@ class ArrayDataSource { /** * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) */ saveChanges(success: Function, error: Function): void; @@ -4919,16 +4809,16 @@ class ArrayDataSource { * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView * 6. fire the databound event * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context */ dataBind(callback?: string, callee?: Object): void; /** * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it */ getCellValue(fieldName: string, record: Object): Object; @@ -4938,8 +4828,8 @@ class ArrayDataSource { * If key or dsObj are not set then returns summaries data. * Takes summary data from passed argument dsObj(using argument key) * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) */ summariesResponse(key?: string, dsObj?: Object): Object; @@ -4956,8 +4846,8 @@ class ArrayDataSource { * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] * - * @param fields an array of fields object definitions - * @param direction asc / desc direction + * @param fields an array of fields object definitions + * @param direction asc / desc direction */ sort(fields: Object, direction: string): void; @@ -4969,8 +4859,8 @@ class ArrayDataSource { /** * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. * - * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). - * @param fields an array of fields that will be searched. + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. */ filterByText(expression: string, fields?: any[]): void; @@ -4984,28 +4874,14 @@ class ArrayDataSource { * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain * if expr is detected to be a regular expression, the "cond" part is skipped * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * {filterAllFields: , expr: , fields: } * - * @param fieldExpressions {filterAllFields: , expr: , fields: } - * - * ``` - * ds = new $.%%WidgetName%%({ - * type: "json", - * dataSource: adventureWorks, - * schema: jsonSchema - * }); - * ds.dataBind(); - * - * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); - * - * // Filter by text - * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); - * ``` - * - * @param boolLogic a list of field expression definitions - * @param keepFilterState boolean logic. Accepted values are AND and OR. - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + * @param fieldExpressions a list of field expression definitions + * @param boolLogic boolean logic. Accepted values are AND and OR. + * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. */ - filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; + filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; /** * This clears local filtering applied to the data view by resetting it to the original data and applying any paging @@ -5019,7 +4895,7 @@ class ArrayDataSource { * the actual total number of records may not * match the number of records that exists on the client * - * @param count the total number of records + * @param count the total number of records * @param key * @param dsObj * @param context @@ -5029,14 +4905,14 @@ class ArrayDataSource { /** * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend */ hasTotalRecordsCount(hasCount: boolean): void; /** * Returns metadata object for the specified key * - * @param key Primary key of the record + * @param key Primary key of the record */ metadata(key: string): Object; @@ -5053,14 +4929,14 @@ class ArrayDataSource { /** * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. * - * @param index the page index. If none is specified, returns the current page index. + * @param index the page index. If none is specified, returns the current page index. */ pageIndex(index?: number): number; /** * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. */ persistedPageIndex(value?: number): number; @@ -5077,7 +4953,7 @@ class ArrayDataSource { /** * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size * - * @param s the page size. + * @param s the page size. */ pageSize(s?: number): number; @@ -5091,28 +4967,28 @@ class ArrayDataSource { /** * Returns a list of records for the specified page. Implies that paging is enabled. * - * @param p the page index for which records will be returned + * @param p the page index for which records will be returned */ recordsForPage(p: number): void; /** * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data * - * @param tableDOM TABLE dom element to transform + * @param tableDOM TABLE dom element to transform */ tableToObject(tableDOM: Element): Object; /** * Parses the string and returns an evaluated JSON object * - * @param s the JSON as string. + * @param s the JSON as string. */ stringToJSONObject(s: string): void; /** * Parses a string and returns a XML Document * - * @param s the XML represented as a string + * @param s the XML represented as a string */ stringToXmlObject(s: string): void; @@ -5134,22 +5010,22 @@ class ArrayDataSource { /** * Toggle grouped record with the specified id and updates collections visible groupby data and data view * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded */ toggleGroupByRecord(id: string, collapsed: boolean): void; /** * Check whether the specified gorupby record is collapsed * - * @param gbRec id of the grouped record OR grouped record + * @param gbRec id of the grouped record OR grouped record */ isGroupByRecordCollapsed(gbRec: Object): boolean; /** * Check whether grouping is applied for the specified sorting expressions. * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings */ isGroupByApplied(exprs?: any[]): boolean; } @@ -5178,44 +5054,45 @@ interface MashupDataSourceMashupSettings { declare namespace Infragistics { class MashupDataSource { constructor(mashupSettings: MashupDataSourceMashupSettings); + constructor(settings: DataSourceSettings); /** * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log */ setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; /** * Updates a record in the datasource. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId Not used in $.ig.DataSource + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId Not used in $.ig.DataSource */ insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; @@ -5227,7 +5104,7 @@ class MashupDataSource { /** * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } */ fields(fields?: Object): Object; @@ -5264,36 +5141,36 @@ class MashupDataSource { /** * Gets/sets the schema definition. * - * @param s a schema object - * @param t type of the data source. See settings.type + * @param s a schema object + * @param t type of the data source. See settings.type */ schema(s?: Object, t?: string): void; /** * Gets/sets a list of paging settings * - * @param p object holding all paging settings. See settings.paging + * @param p object holding all paging settings. See settings.paging */ pagingSettings(p?: Object): Object; /** * Gets/sets a list of filtering settings * - * @param f object holding all filtering settings. See settings.filtering + * @param f object holding all filtering settings. See settings.filtering */ filterSettings(f?: Object): void; /** * Gets/sets a list of paging settings * - * @param s object holding all sorting settings. See settings.sorting + * @param s object holding all sorting settings. See settings.sorting */ sortSettings(s?: Object): Object; /** * Gets/sets a list of summaries settings. * - * @param s object holding all summaries settings. See settings.summaries + * @param s object holding all summaries settings. See settings.summaries */ summariesSettings(s?: Object): void; @@ -5315,16 +5192,16 @@ class MashupDataSource { /** * Returns a record by a specified key (requires that primaryKey is set in the settings) * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath Not used in $.ig.DataSource + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath Not used in $.ig.DataSource */ findRecordByKey(key: string, ds?: string, objPath?: string): Object; /** * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source * - * @param key primary key of the record + * @param key primary key of the record * @param origDs */ removeRecordByKey(key: Object, origDs: Object): void; @@ -5332,7 +5209,7 @@ class MashupDataSource { /** * Removes a record from the data source at specific index. * - * @param index index of record + * @param index index of record * @param origDs */ removeRecordByIndex(index: number, origDs: Object): void; @@ -5340,43 +5217,43 @@ class MashupDataSource { /** * Deletes a row from the data source. * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ deleteRow(rowId: Object, autoCommit: boolean): Object; /** * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ addNode(data: Object): void; /** * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ removeNode(data: Object): void; /** * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source * - * @param t a transaction object + * @param t a transaction object */ getDetachedRecord(t: Object): Object; /** * Update the data source with every transaction from the log * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. */ commit(id?: number): void; /** * Clears the transaction log without updating anything in the data source * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. */ rollback(id?: Object): void; @@ -5398,16 +5275,16 @@ class MashupDataSource { /** * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) */ saveChanges(success: Function, error: Function): void; /** * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it */ getCellValue(fieldName: string, record: Object): Object; @@ -5417,8 +5294,8 @@ class MashupDataSource { * If key or dsObj are not set then returns summaries data. * Takes summary data from passed argument dsObj(using argument key) * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) */ summariesResponse(key?: string, dsObj?: Object): Object; @@ -5435,8 +5312,8 @@ class MashupDataSource { * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] * - * @param fields an array of fields object definitions - * @param direction asc / desc direction + * @param fields an array of fields object definitions + * @param direction asc / desc direction */ sort(fields: Object, direction: string): void; @@ -5448,8 +5325,8 @@ class MashupDataSource { /** * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. * - * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). - * @param fields an array of fields that will be searched. + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. */ filterByText(expression: string, fields?: any[]): void; @@ -5463,28 +5340,14 @@ class MashupDataSource { * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain * if expr is detected to be a regular expression, the "cond" part is skipped * To [filter by text](ig.datasource#methods:filterByText) "fieldExpressions" should have only one object with the following schema: + * {filterAllFields: , expr: , fields: } * - * @param fieldExpressions {filterAllFields: , expr: , fields: } - * - * ``` - * ds = new $.%%WidgetName%%({ - * type: "json", - * dataSource: adventureWorks, - * schema: jsonSchema - * }); - * ds.dataBind(); - * - * ds.filter([{fieldName : "Color", expr: "Red", cond: "Equals"}], "AND", true); - * - * // Filter by text - * ds.filter([{filterAllFields: true, expr: "abc", fields: [name: "Description", type: "string"]}]); - * ``` - * - * @param boolLogic a list of field expression definitions - * @param keepFilterState boolean logic. Accepted values are AND and OR. - * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. + * @param fieldExpressions a list of field expression definitions + * @param boolLogic boolean logic. Accepted values are AND and OR. + * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions + * @param fieldExpressionsOnStrings a list of field expression definitions (or a string with the conditions separated by AND/OR operator, example: "ID = 1 OR ID = 2"), which when applied will threat the related field as if it's string and can only apply conditions valid for string types. */ - filter(fieldExpressions: any[], boolLogic: Object, keepFilterState: Object, fieldExpressionsOnStrings: Object): void; + filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; /** * This clears local filtering applied to the data view by resetting it to the original data and applying any paging @@ -5498,7 +5361,7 @@ class MashupDataSource { * the actual total number of records may not * match the number of records that exists on the client * - * @param count the total number of records + * @param count the total number of records * @param key * @param dsObj * @param context @@ -5508,14 +5371,14 @@ class MashupDataSource { /** * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend */ hasTotalRecordsCount(hasCount: boolean): void; /** * Returns metadata object for the specified key * - * @param key Primary key of the record + * @param key Primary key of the record */ metadata(key: string): Object; @@ -5532,14 +5395,14 @@ class MashupDataSource { /** * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. * - * @param index the page index. If none is specified, returns the current page index. + * @param index the page index. If none is specified, returns the current page index. */ pageIndex(index?: number): number; /** * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. */ persistedPageIndex(value?: number): number; @@ -5556,7 +5419,7 @@ class MashupDataSource { /** * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size * - * @param s the page size. + * @param s the page size. */ pageSize(s?: number): number; @@ -5570,28 +5433,28 @@ class MashupDataSource { /** * Returns a list of records for the specified page. Implies that paging is enabled. * - * @param p the page index for which records will be returned + * @param p the page index for which records will be returned */ recordsForPage(p: number): void; /** * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data * - * @param tableDOM TABLE dom element to transform + * @param tableDOM TABLE dom element to transform */ tableToObject(tableDOM: Element): Object; /** * Parses the string and returns an evaluated JSON object * - * @param s the JSON as string. + * @param s the JSON as string. */ stringToJSONObject(s: string): void; /** * Parses a string and returns a XML Document * - * @param s the XML represented as a string + * @param s the XML represented as a string */ stringToXmlObject(s: string): void; @@ -5613,22 +5476,22 @@ class MashupDataSource { /** * Toggle grouped record with the specified id and updates collections visible groupby data and data view * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded */ toggleGroupByRecord(id: string, collapsed: boolean): void; /** * Check whether the specified gorupby record is collapsed * - * @param gbRec id of the grouped record OR grouped record + * @param gbRec id of the grouped record OR grouped record */ isGroupByRecordCollapsed(gbRec: Object): boolean; /** * Check whether grouping is applied for the specified sorting expressions. * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings */ isGroupByApplied(exprs?: any[]): boolean; } @@ -5921,16 +5784,16 @@ class TreeHierarchicalDataSource { * 5. next, if OpType is Local, apply paging, sorting, and/or filtering to the data, and store the result in this._dataView * 6. fire the databound event * - * @param callback callback function - * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context + * @param callback callback function + * @param callee callee object on which the callback will be executed. If none is specified, will assume global execution context */ dataBind(callback?: string, callee?: Object): void; /** * Gets the passed record's parent records * - * @param dataRow the child record. - * @param ds the data source in which to search for the related parent records. + * @param dataRow the child record. + * @param ds the data source in which to search for the related parent records. */ getParentRowsForRow(dataRow: Object, ds?: Object): Object; @@ -5942,31 +5805,31 @@ class TreeHierarchicalDataSource { /** * Gets/Sets whether the data source has been transformed from flat to hierarchical * - * @param isTransformed Determines if the data source is marked as transformed or not. + * @param isTransformed Determines if the data source is marked as transformed or not. */ isTransformedToHierarchicalData(isTransformed?: boolean): void; /** * Transforms flat data to hierararchical data and returns the result * - * @param data The flat data that will be transformed to hierarchical + * @param data The flat data that will be transformed to hierarchical */ transformToHierarchicalData(data: Object): Object; /** * This processes the passed data for the specified level and applies the schema transformation to it. * - * @param data The data to be processed and transformed - * @param level The level to which the data belongs to. If this is not set it defaults to 0. - * @param suppressTransformation Determines whether the data should go through schema transformation. If true schema transofrmatin will not be applied. + * @param data The data to be processed and transformed + * @param level The level to which the data belongs to. If this is not set it defaults to 0. + * @param suppressTransformation Determines whether the data should go through schema transformation. If true schema transofrmatin will not be applied. */ processDataPerLevel(data: Object, level?: number, suppressTransformation?: boolean): Object; /** * Returnschild data transformed to flat data * - * @param record The data record whose data is transformed and returned as flat - * @param level The level. If not set defaults to 0. + * @param record The data record whose data is transformed and returned as flat + * @param level The level. If not set defaults to 0. */ getFlatDataForRecord(record: Object, level?: number): Object; @@ -5974,8 +5837,8 @@ class TreeHierarchicalDataSource { * Generates flat data. * Returns an object that contains the generated flat data, the flat visible data, records count and visible records count. * - * @param data The data record whose data is transformed. - * @param level The level from which to start recursively generating the flat data. If not set defaults to 0. + * @param data The data record whose data is transformed. + * @param level The level from which to start recursively generating the flat data. If not set defaults to 0. */ generateFlatData(data: Object, level?: number): Object; @@ -6007,33 +5870,33 @@ class TreeHierarchicalDataSource { /** * Sets the expanded/collapsed state of a row by its index * - * @param index The index of the row. - * @param expanded If true then the row will be expanded. Otherwise it will be collapsed. - * @param callbackArgs Specifies a custom function to be called when the state of the row is changed. + * @param index The index of the row. + * @param expanded If true then the row will be expanded. Otherwise it will be collapsed. + * @param callbackArgs Specifies a custom function to be called when the state of the row is changed. */ setExpandedStateByRowIndex(index: number, expanded: boolean, callbackArgs: Function): void; /** * Sets the expanded state of a row by its primary key * - * @param rowId The id of the row. - * @param expanded If true the row will be expanded. Otherwise it will be collapsed. - * @param callbackArgs Specifies a custom function to be called when the state of the row is changed. + * @param rowId The id of the row. + * @param expanded If true the row will be expanded. Otherwise it will be collapsed. + * @param callbackArgs Specifies a custom function to be called when the state of the row is changed. */ setExpandedStateByPrimaryKey(rowId: string, expanded: boolean, callbackArgs: Function): void; /** * Gets whether the row with the specified id is expanded.Returns true if the row is expanded or false if it's not. * - * @param rowId //The id of the row. + * @param rowId //The id of the row. */ getExpandStateById(rowId: string): boolean; /** * Toggles the row's state by the row's id. * - * @param rowId The id of the row. - * @param callbackArgs Specifies a custom function to be called when the state of the row is changed. + * @param rowId The id of the row. + * @param callbackArgs Specifies a custom function to be called when the state of the row is changed. */ toggleRow(rowId: string, callbackArgs: Function): void; @@ -6045,8 +5908,8 @@ class TreeHierarchicalDataSource { * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] * - * @param fields an array of fields object definitions - * @param direction asc / desc direction + * @param fields an array of fields object definitions + * @param direction asc / desc direction */ sort(fields: Object, direction: string): void; @@ -6056,24 +5919,24 @@ class TreeHierarchicalDataSource { * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] * - * @param data the data array that will be sorted. - * @param level the level to which the data belongs to - * @param fields an array of fields object definitions - * @param direction asc / desc direction + * @param data the data array that will be sorted. + * @param level the level to which the data belongs to + * @param fields an array of fields object definitions + * @param direction asc / desc direction */ sortDataRecursive(data: Object, level: number, fields: Object, direction: string): void; /** * Sorts the passed data and returns the sorted result. * - * @param data the data to be sorted + * @param data the data to be sorted * * fields => an array of fields object definitions: * example: [{fieldName : "firstName"}, {fieldName : "lastName"}] * example 2: [{fieldIndex : 1} , {fieldIndex : 2}] * - * @param fields an array of fields object definitions - * @param direction asc / desc direction + * @param fields an array of fields object definitions + * @param direction asc / desc direction */ sortData(data: Object, fields: Object, direction: string): void; @@ -6102,9 +5965,9 @@ class TreeHierarchicalDataSource { * cond is the filtering condition such as startsWith, endsWith, contains, equals, doesNotEqual, doesNotContain * if expr is detected to be a regular expression, the "cond" part is skipped * - * @param fieldExpressions a list of field expression definitions - * @param boolLogic boolean logic. Accepted values are AND and OR. - * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions + * @param fieldExpressions a list of field expression definitions + * @param boolLogic boolean logic. Accepted values are AND and OR. + * @param keepFilterState if keepFilterState is set to true, it will not discard previous filtering expressions * @param fieldExpressionsOnStrings */ filter(fieldExpressions: Object, boolLogic: Object, keepFilterState: boolean, fieldExpressionsOnStrings: Object): void; @@ -6132,7 +5995,7 @@ class TreeHierarchicalDataSource { /** * Clears __matchFiltering property from the data record objects in the filtered data source. The __matchFiltering property determines whether a record matches the specified filtering condition. * - * @param data the array of data objects to be cleared. If not set the current filtered data array is used. + * @param data the array of data objects to be cleared. If not set the current filtered data array is used. */ clearMatchFiltering(data?: Object): void; @@ -6146,16 +6009,16 @@ class TreeHierarchicalDataSource { /** * Returns a record by a specified key (requires that primaryKey is set in the settings) * - * @param key Primary key of the record - * @param ds the data source in which to search for the record. When not set it will use the current data source. - * @param objPath path to the object. Example: {path: '5/1'} + * @param key Primary key of the record + * @param ds the data source in which to search for the record. When not set it will use the current data source. + * @param objPath path to the object. Example: {path: '5/1'} */ findRecordByKey(key: Object, ds?: string, objPath?: Object): Object; /** * Removes a specific record denoted by the primaryKey of the passed key parameter from the data source * - * @param key primary key of the record + * @param key primary key of the record * @param origDs */ removeRecordByKey(key: Object, origDs: Object): void; @@ -6163,34 +6026,34 @@ class TreeHierarchicalDataSource { /** * Deletes a row from the data source. * - * @param rowId the record key - primaryKey (string) or index (number) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ deleteRow(rowId: Object, autoCommit: boolean): Object; /** * Gets the chilren records by the parent record's key in the passed data source * - * @param key primary key of the record - * @param ds the data source + * @param key primary key of the record + * @param ds the data source */ getChildrenByKey(key: Object, ds: Object): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param rowIndex row index at which to be insert the new row - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log - * @param parentRowId the value of the primary key of the parent row(if any) + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param rowIndex row index at which to be insert the new row + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param parentRowId the value of the primary key of the parent row(if any) */ insertRow(rowId: Object, rowObject: Object, rowIndex: number, autoCommit: boolean, parentRowId: Object): Object; /** * Sets a list of fields to the data source. If no parameter is specified, just returns the already existing list of fields * - * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } + * @param fields a field has the following format: {key: 'fieldKey', dataType: 'string/number/date' } */ fields(fields?: Object): Object; @@ -6227,36 +6090,36 @@ class TreeHierarchicalDataSource { /** * Gets/sets the schema definition. * - * @param s a schema object - * @param t type of the data source. See settings.type + * @param s a schema object + * @param t type of the data source. See settings.type */ schema(s?: Object, t?: string): void; /** * Gets/sets a list of paging settings * - * @param p object holding all paging settings. See settings.paging + * @param p object holding all paging settings. See settings.paging */ pagingSettings(p?: Object): Object; /** * Gets/sets a list of filtering settings * - * @param f object holding all filtering settings. See settings.filtering + * @param f object holding all filtering settings. See settings.filtering */ filterSettings(f?: Object): void; /** * Gets/sets a list of paging settings * - * @param s object holding all sorting settings. See settings.sorting + * @param s object holding all sorting settings. See settings.sorting */ sortSettings(s?: Object): Object; /** * Gets/sets a list of summaries settings. * - * @param s object holding all summaries settings. See settings.summaries + * @param s object holding all summaries settings. See settings.summaries */ summariesSettings(s?: Object): void; @@ -6278,7 +6141,7 @@ class TreeHierarchicalDataSource { /** * Removes a record from the data source at specific index. * - * @param index index of record + * @param index index of record * @param origDs */ removeRecordByIndex(index: number, origDs: Object): void; @@ -6286,63 +6149,63 @@ class TreeHierarchicalDataSource { /** * Sets a cell value for the cell denoted by rowId and colId. Creates a transaction for the update operation and returns it * - * @param rowId the rowId - row key (string) or index (number) - * @param colId the column id - column key (string) or index (number) - * @param val The new value - * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the rowId - row key (string) or index (number) + * @param colId the column id - column key (string) or index (number) + * @param val The new value + * @param autoCommit if autoCommit is true, it updates the datasource automatically and the transaction is still stored in the accumulated transaction log */ setCellValue(rowId: Object, colId: Object, val: Object, autoCommit: boolean): Object; /** * Updates a record in the datasource. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the record object containing the key/value pairs we want to update. It doesn't have to include key/value pairs for all fields defined in the schema or in the data source (if no schema is defined) + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ updateRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new row to the data source. Creates a transaction that can be committed / rolled back * - * @param rowId the record key - primaryKey (string) or index (number) - * @param rowObject the new record data. - * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log + * @param rowId the record key - primaryKey (string) or index (number) + * @param rowObject the new record data. + * @param autoCommit if autoCommit is true, the datasource will be updated automatically and the transaction is still stored in the accumulated transaction log */ addRow(rowId: Object, rowObject: Object, autoCommit: boolean): Object; /** * Adds a new node to the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ addNode(data: Object): void; /** * Removes a node from the tree data source. Creates a transaction that can be committed / rolled back * - * @param data the transaction data + * @param data the transaction data */ removeNode(data: Object): void; /** * Returns a standalone object (copy) that represents the commited transactions, but detached from the data source * - * @param t a transaction object + * @param t a transaction object */ getDetachedRecord(t: Object): Object; /** * Update the data source with every transaction from the log * - * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. + * @param id Id of the transaction to commit. If no id is specified, will commit all transactions to the data source. */ commit(id?: number): void; /** * Clears the transaction log without updating anything in the data source * - * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. + * @param id Record Id to find transactions for. If no id is specified, will rollback all transactions to the data source. */ rollback(id?: Object): void; @@ -6364,16 +6227,16 @@ class TreeHierarchicalDataSource { /** * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) */ saveChanges(success: Function, error: Function): void; /** * Gets a cell value from the record by the specified fieldName. If there's a mapper defined for the field, the resolved by the mapper value will be returned. * - * @param fieldName the fieldName - name of the field - * @param record the record from which to get it + * @param fieldName the fieldName - name of the field + * @param record the record from which to get it */ getCellValue(fieldName: string, record: Object): Object; @@ -6383,8 +6246,8 @@ class TreeHierarchicalDataSource { * If key or dsObj are not set then returns summaries data. * Takes summary data from passed argument dsObj(using argument key) * - * @param key response key to take summary data(for example "Metadata.Summaries") - * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) + * @param key response key to take summary data(for example "Metadata.Summaries") + * @param dsObj data source object - usually contains information about data records and metadata(holds info about summaries) */ summariesResponse(key?: string, dsObj?: Object): Object; @@ -6401,8 +6264,8 @@ class TreeHierarchicalDataSource { /** * Filters the data source locally by text. If "fields" parameter is set search is performed only in the listed fields otherwise all fields are searched. * - * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). - * @param fields an array of fields that will be searched. + * @param expression a text to search for. Multiple search texts should be separated by space. When multiple search texts are provided all of them should be presented in the search fields (bool logic "and" is applied). + * @param fields an array of fields that will be searched. */ filterByText(expression: string, fields?: any[]): void; @@ -6413,7 +6276,7 @@ class TreeHierarchicalDataSource { * the actual total number of records may not * match the number of records that exists on the client * - * @param count the total number of records + * @param count the total number of records * @param key * @param dsObj * @param context @@ -6423,28 +6286,28 @@ class TreeHierarchicalDataSource { /** * Gets / sets if the response from the server contains a property which specifies the total number of records in the server-side backend * - * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend + * @param hasCount specifies if the data source contains a property that denotes the total number of records in the server-side backend */ hasTotalRecordsCount(hasCount: boolean): void; /** * Returns metadata object for the specified key * - * @param key Primary key of the record + * @param key Primary key of the record */ metadata(key: string): Object; /** * Gets /sets the current page index. If an index is passed as a parameter, the data source is re-bound. * - * @param index the page index. If none is specified, returns the current page index. + * @param index the page index. If none is specified, returns the current page index. */ pageIndex(index?: number): number; /** * Gets /sets the page index that should be persisted. For now ONLY when filtering is applied and call explicitly DataBind. * - * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. + * @param value the page index that should be persisted. If none is specified, returns the current page index that should be persisted. */ persistedPageIndex(value?: number): number; @@ -6461,7 +6324,7 @@ class TreeHierarchicalDataSource { /** * Gets /sets the page size and rebinds the data source if a parameter is specified. If no parameter is passed, returns the current page size * - * @param s the page size. + * @param s the page size. */ pageSize(s?: number): number; @@ -6475,28 +6338,28 @@ class TreeHierarchicalDataSource { /** * Returns a list of records for the specified page. Implies that paging is enabled. * - * @param p the page index for which records will be returned + * @param p the page index for which records will be returned */ recordsForPage(p: number): void; /** * Converts a HTML TABLE dom element to a JavaScript array of objects that contain the records data * - * @param tableDOM TABLE dom element to transform + * @param tableDOM TABLE dom element to transform */ tableToObject(tableDOM: Element): Object; /** * Parses the string and returns an evaluated JSON object * - * @param s the JSON as string. + * @param s the JSON as string. */ stringToJSONObject(s: string): void; /** * Parses a string and returns a XML Document * - * @param s the XML represented as a string + * @param s the XML represented as a string */ stringToXmlObject(s: string): void; @@ -6518,22 +6381,22 @@ class TreeHierarchicalDataSource { /** * Toggle grouped record with the specified id and updates collections visible groupby data and data view * - * @param id data-id attribute of the respective group row in the DOM - * @param collapsed if true the record should be collapsed, otherwise expanded + * @param id data-id attribute of the respective group row in the DOM + * @param collapsed if true the record should be collapsed, otherwise expanded */ toggleGroupByRecord(id: string, collapsed: boolean): void; /** * Check whether the specified gorupby record is collapsed * - * @param gbRec id of the grouped record OR grouped record + * @param gbRec id of the grouped record OR grouped record */ isGroupByRecordCollapsed(gbRec: Object): boolean; /** * Check whether grouping is applied for the specified sorting expressions. * - * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings + * @param exprs array of sorting expressions. If not set check expressions defined in sorting settings */ isGroupByApplied(exprs?: any[]): boolean; } @@ -6566,6 +6429,7 @@ interface SimpleTextMarkerTemplateSettings { declare namespace Infragistics { class SimpleTextMarkerTemplate { constructor(requireThis: boolean); + constructor(settings: SimpleTextMarkerTemplateSettings); getText(item: Object, textDelegate: Object): void; measure(measureInfo: Object): void; @@ -6847,14 +6711,15 @@ interface GridExcelExporterSettings { declare namespace Infragistics { class GridExcelExporter { constructor(callbacks: GridExcelExporterCallbacks); + constructor(settings: GridExcelExporterSettings); /** * Exports the provided igGrid to Excel document. * - * @param grid Grid to be exported. - * @param userSettings Settings for exporting the grid. - * @param userCallbacks Callbacks for the events. + * @param grid Grid to be exported. + * @param userSettings Settings for exporting the grid. + * @param userCallbacks Callbacks for the events. */ exportGrid(grid: Object, userSettings: Object, userCallbacks: Object): void; } @@ -8806,9 +8671,9 @@ class igTemplating { /** * Populates the given template with the provided data. If data is a function that requires arguments, the arguments need to be provided as an array following the data. tmpl(template, data[, args]) * - * @param template Specifies the template string - * @param data Specifies the data to be templated in the template. If function is provided, then it has to be object or array returning function, possible receiving arguments array which can be specified as the third parameter - * @param args If function is provided as the second parameter, then this parameter is the arguments for the function. + * @param template Specifies the template string + * @param data Specifies the data to be templated in the template. If function is provided, then it has to be object or array returning function, possible receiving arguments array which can be specified as the third parameter + * @param args If function is provided as the second parameter, then this parameter is the arguments for the function. */ tmpl(template: string, data: Object, args?: any[]): string; clearTmplCache(): void; @@ -8816,7 +8681,7 @@ class igTemplating { /** * Encoding < > ' and " * - * @param value The string to be encoded. + * @param value The string to be encoded. */ encode(value: string): string; } @@ -8954,46 +8819,46 @@ interface IgQRCodeBarcode { * * Valid values: * "undefined" If set, the QR code barcode sets internally the smallest version that will accommodate the data. - * "version1" Version1 defines size of 21x21 namespaces for the symbol. - * "version2" Version2 defines size of 25x25 namespaces for the symbol. - * "version3" Version3 defines size of 29x29 namespaces for the symbol. - * "version4" Version4 defines size of 33x33 namespaces for the symbol. - * "version5" Version5 defines size of 37x37 namespaces for the symbol. - * "version6" Version6 defines size of 41x41 namespaces for the symbol. - * "version7" Version7 defines size of 45x45 namespaces for the symbol. - * "version8" Version8 defines size of 49x49 namespaces for the symbol. - * "version9" Version9 defines size of 53x53 namespaces for the symbol. - * "version10" Version10 defines size of 57x57 namespaces for the symbol. - * "version11" Version11 defines size of 61x61 namespaces for the symbol. - * "version12" Version12 defines size of 65x65 namespaces for the symbol. - * "version13" Version13 defines size of 69x69 namespaces for the symbol. - * "version14" Version14 defines size of 73x73 namespaces for the symbol. - * "version15" Version15 defines size of 77x77 namespaces for the symbol. - * "version16" Version16 defines size of 81x81 namespaces for the symbol. - * "version17" Version17 defines size of 85x85 namespaces for the symbol. - * "version18" Version18 defines size of 89x89 namespaces for the symbol. - * "version19" Version19 defines size of 93x93 namespaces for the symbol. - * "version20" Version20 defines size of 97x97 namespaces for the symbol. - * "version21" Version21 defines size of 101x101 namespaces for the symbol. - * "version22" Version22 defines size of 105x105 namespaces for the symbol. - * "version23" Version23 defines size of 109x109 namespaces for the symbol. - * "version24" Version24 defines size of 113x113 namespaces for the symbol. - * "version25" Version25 defines size of 117x117 namespaces for the symbol. - * "version26" Version26 defines size of 121x121 namespaces for the symbol. - * "version27" Version27 defines size of 125x125 namespaces for the symbol. - * "version28" Version28 defines size of 129x129 namespaces for the symbol. - * "version29" Version29 defines size of 133x133 namespaces for the symbol. - * "version30" Version30 defines size of 137x137 namespaces for the symbol. - * "version31" Version31 defines size of 141x141 namespaces for the symbol. - * "version32" Version32 defines size of 145x145 namespaces for the symbol. - * "version33" Version33 defines size of 149x149 namespaces for the symbol. - * "version34" Version34 defines size of 153x153 namespaces for the symbol. - * "version35" Version35 defines size of 157x157 namespaces for the symbol. - * "version36" Version36 defines size of 161x161 namespaces for the symbol. - * "version37" Version37 defines size of 165x165 namespaces for the symbol. - * "version38" Version38 defines size of 169x169 namespaces for the symbol. - * "version39" Version39 defines size of 173x173 namespaces for the symbol. - * "version40" Version40 defines size of 177x177 namespaces for the symbol. + * "version1" Version1 defines size of 21x21 modules for the symbol. + * "version2" Version2 defines size of 25x25 modules for the symbol. + * "version3" Version3 defines size of 29x29 modules for the symbol. + * "version4" Version4 defines size of 33x33 modules for the symbol. + * "version5" Version5 defines size of 37x37 modules for the symbol. + * "version6" Version6 defines size of 41x41 modules for the symbol. + * "version7" Version7 defines size of 45x45 modules for the symbol. + * "version8" Version8 defines size of 49x49 modules for the symbol. + * "version9" Version9 defines size of 53x53 modules for the symbol. + * "version10" Version10 defines size of 57x57 modules for the symbol. + * "version11" Version11 defines size of 61x61 modules for the symbol. + * "version12" Version12 defines size of 65x65 modules for the symbol. + * "version13" Version13 defines size of 69x69 modules for the symbol. + * "version14" Version14 defines size of 73x73 modules for the symbol. + * "version15" Version15 defines size of 77x77 modules for the symbol. + * "version16" Version16 defines size of 81x81 modules for the symbol. + * "version17" Version17 defines size of 85x85 modules for the symbol. + * "version18" Version18 defines size of 89x89 modules for the symbol. + * "version19" Version19 defines size of 93x93 modules for the symbol. + * "version20" Version20 defines size of 97x97 modules for the symbol. + * "version21" Version21 defines size of 101x101 modules for the symbol. + * "version22" Version22 defines size of 105x105 modules for the symbol. + * "version23" Version23 defines size of 109x109 modules for the symbol. + * "version24" Version24 defines size of 113x113 modules for the symbol. + * "version25" Version25 defines size of 117x117 modules for the symbol. + * "version26" Version26 defines size of 121x121 modules for the symbol. + * "version27" Version27 defines size of 125x125 modules for the symbol. + * "version28" Version28 defines size of 129x129 modules for the symbol. + * "version29" Version29 defines size of 133x133 modules for the symbol. + * "version30" Version30 defines size of 137x137 modules for the symbol. + * "version31" Version31 defines size of 141x141 modules for the symbol. + * "version32" Version32 defines size of 145x145 modules for the symbol. + * "version33" Version33 defines size of 149x149 modules for the symbol. + * "version34" Version34 defines size of 153x153 modules for the symbol. + * "version35" Version35 defines size of 157x157 modules for the symbol. + * "version36" Version36 defines size of 161x161 modules for the symbol. + * "version37" Version37 defines size of 165x165 modules for the symbol. + * "version38" Version38 defines size of 169x169 modules for the symbol. + * "version39" Version39 defines size of 173x173 modules for the symbol. + * "version40" Version40 defines size of 177x177 modules for the symbol. */ sizeVersion?: string; @@ -9095,6 +8960,7 @@ interface JQuery { /** * The width of the barcode. It can be set as a number in pixels, string (px) or percentage (%). */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -9102,11 +8968,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * The height of the barcode. It can be set as a number in pixels, string (px) or percentage (%). */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -9114,6 +8982,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -9215,6 +9084,7 @@ interface JQuery { /** * Gets the stretch. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "stretch"): string; /** @@ -9222,11 +9092,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "stretch", optionValue: string): void; /** * Gets a value which specifies how the grid fills within the barcode control dimensions. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "barsFillMode"): string; /** @@ -9234,6 +9106,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "barsFillMode", optionValue: string): void; /** @@ -9263,6 +9136,7 @@ interface JQuery { /** * Gets the error correction level of the QR Code symbol. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "errorCorrectionLevel"): string; /** @@ -9270,11 +9144,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "errorCorrectionLevel", optionValue: string): void; /** * Gets the size version of the QR Code symbol. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "sizeVersion"): string; /** @@ -9282,11 +9158,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "sizeVersion", optionValue: string): void; /** * Gets the encoding mode for compaction of the QR Code symbol data. The default value is undefined if the Shift_JIS encoding is loaded. Otherwise the default value is byte. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "encodingMode"): string; /** @@ -9294,6 +9172,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "encodingMode", optionValue: string): void; /** @@ -9313,6 +9192,7 @@ interface JQuery { /** * Gets a value indicating whether to show the ECI header. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "eciHeaderDisplayMode"): string; /** @@ -9320,11 +9200,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "eciHeaderDisplayMode", optionValue: string): void; /** * Gets the FNC1 mode indicator which identifies symbols encoding messages formatted according to specific predefined industry or application specificatoins. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "fnc1Mode"): string; /** @@ -9332,6 +9214,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igQRCodeBarcode(optionLiteral: 'option', optionName: "fnc1Mode", optionValue: string): void; /** @@ -9582,14 +9465,14 @@ interface IgBaseChartMethods { /** * Find index of item within actual data used by chart. * - * @param item The reference to item. + * @param item The reference to item. */ findIndexOfItem(item: Object): number; /** * Get item within actual data used by chart. That is similar to this.getData()[ index ]. * - * @param index Index of data item. + * @param index Index of data item. */ getDataItem(index: Object): Object; @@ -9601,68 +9484,68 @@ interface IgBaseChartMethods { /** * Adds a new item to the data source and notifies the chart. * - * @param item The item that we want to add to the data source. + * @param item The item that we want to add to the data source. */ addItem(item: Object): Object; /** * Inserts a new item to the data source and notifies the chart. * - * @param item the new item that we want to insert in the data source. - * @param index The index in the data source where the new item will be inserted. + * @param item the new item that we want to insert in the data source. + * @param index The index in the data source where the new item will be inserted. */ insertItem(item: Object, index: number): Object; /** * Deletes an item from the data source and notifies the chart. * - * @param index The index in the data source from where the item will be been removed. + * @param index The index in the data source from where the item will be been removed. */ removeItem(index: number): Object; /** * Updates an item in the data source and notifies the chart. * - * @param index The index of the item in the data source that we want to change. - * @param item The new item object that will be set in the data source. + * @param index The index of the item in the data source that we want to change. + * @param item The new item object that will be set in the data source. */ setItem(index: number, item: Object): Object; /** * Notifies the chart that an item has been set in an associated data source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source that has been changed. - * @param newItem the new item that has been set in the collection. - * @param oldItem the old item that has been overwritten in the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source that has been changed. + * @param newItem the new item that has been set in the collection. + * @param oldItem the old item that has been overwritten in the collection. */ notifySetItem(dataSource: Object, index: number, newItem: Object, oldItem: Object): Object; /** * Notifies the chart that the items have been cleared from an associated data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. + * @param dataSource The data source in which the change happened. */ notifyClearItems(dataSource: Object): Object; /** * Notifies the target axis or series that an item has been inserted at the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source where the new item has been inserted. - * @param newItem the new item that has been set in the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source where the new item has been inserted. + * @param newItem the new item that has been set in the collection. */ notifyInsertItem(dataSource: Object, index: number, newItem: Object): Object; /** * Notifies the target axis or series that an item has been removed from the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source from where the old item has been removed. - * @param oldItem the old item that has been removed from the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source from where the old item has been removed. + * @param oldItem the old item that has been removed from the collection. */ notifyRemoveItem(dataSource: Object, index: number, oldItem: Object): Object; @@ -10427,21 +10310,21 @@ interface IgBulletGraphMethods { /** * Adds a new range to the bullet graph. * - * @param value The range object to be added. + * @param value The range object to be added. */ addRange(value: Object): void; /** * Removes a range from the bullet graph. * - * @param value A JS object with properties set as follows: name: nameOfTheRangeToRemove, remove: true + * @param value A JS object with properties set as follows: name: nameOfTheRangeToRemove, remove: true */ removeRange(value: Object): void; /** * Updates the specified range of the bullet graph. * - * @param value The range object to be updated. + * @param value The range object to be updated. */ updateRange(value: Object): void; @@ -10482,6 +10365,7 @@ interface JQuery { /** * The width of the gauge. It can be set as a number in pixels, string (px) or percentage (%). */ + igBulletGraph(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -10489,11 +10373,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igBulletGraph(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * The height of the gauge. It can be set as a number in pixels, string (px) or percentage (%). */ + igBulletGraph(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -10501,6 +10387,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igBulletGraph(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -10554,6 +10441,7 @@ interface JQuery { /** * Gets the orientation of the scale. */ + igBulletGraph(optionLiteral: 'option', optionName: "orientation"): string; /** @@ -10561,6 +10449,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igBulletGraph(optionLiteral: 'option', optionName: "orientation", optionValue: string): void; /** @@ -11312,8 +11201,7 @@ interface PropertyChangedEvent { (event: Event, ui: PropertyChangedEventUIParam): void; } -interface PropertyChangedEventUIParam { -} +interface PropertyChangedEventUIParam {} interface IgCategoryChart { /** @@ -12208,14 +12096,14 @@ interface IgCategoryChartMethods { /** * Find index of item within actual data used by chart. * - * @param item The reference to item. + * @param item The reference to item. */ findIndexOfItem(item: Object): number; /** * Get item within actual data used by chart. That is similar to this.getData()[ index ]. * - * @param index Index of data item. + * @param index Index of data item. */ getDataItem(index: Object): Object; @@ -12227,68 +12115,68 @@ interface IgCategoryChartMethods { /** * Adds a new item to the data source and notifies the chart. * - * @param item The item that we want to add to the data source. + * @param item The item that we want to add to the data source. */ addItem(item: Object): Object; /** * Inserts a new item to the data source and notifies the chart. * - * @param item the new item that we want to insert in the data source. - * @param index The index in the data source where the new item will be inserted. + * @param item the new item that we want to insert in the data source. + * @param index The index in the data source where the new item will be inserted. */ insertItem(item: Object, index: number): Object; /** * Deletes an item from the data source and notifies the chart. * - * @param index The index in the data source from where the item will be been removed. + * @param index The index in the data source from where the item will be been removed. */ removeItem(index: number): Object; /** * Updates an item in the data source and notifies the chart. * - * @param index The index of the item in the data source that we want to change. - * @param item The new item object that will be set in the data source. + * @param index The index of the item in the data source that we want to change. + * @param item The new item object that will be set in the data source. */ setItem(index: number, item: Object): Object; /** * Notifies the chart that an item has been set in an associated data source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source that has been changed. - * @param newItem the new item that has been set in the collection. - * @param oldItem the old item that has been overwritten in the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source that has been changed. + * @param newItem the new item that has been set in the collection. + * @param oldItem the old item that has been overwritten in the collection. */ notifySetItem(dataSource: Object, index: number, newItem: Object, oldItem: Object): Object; /** * Notifies the chart that the items have been cleared from an associated data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. + * @param dataSource The data source in which the change happened. */ notifyClearItems(dataSource: Object): Object; /** * Notifies the target axis or series that an item has been inserted at the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source where the new item has been inserted. - * @param newItem the new item that has been set in the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source where the new item has been inserted. + * @param newItem the new item that has been set in the collection. */ notifyInsertItem(dataSource: Object, index: number, newItem: Object): Object; /** * Notifies the target axis or series that an item has been removed from the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source from where the old item has been removed. - * @param oldItem the old item that has been removed from the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source from where the old item has been removed. + * @param oldItem the old item that has been removed from the collection. */ notifyRemoveItem(dataSource: Object, index: number, oldItem: Object): Object; @@ -12861,13 +12749,7 @@ interface JQuery { * @optionValue New value to be set. */ igCategoryChart(optionLiteral: 'option', optionName: "yAxisTitleTextColor", optionValue: string): void; - - /** - */ igCategoryChart(optionLiteral: 'option', optionName: "createWrappedTooltip"): any; - - /** - */ igCategoryChart(optionLiteral: 'option', optionName: "createWrappedTooltip", optionValue: any): void; /** @@ -12881,13 +12763,7 @@ interface JQuery { * @optionValue New value to be set. */ igCategoryChart(optionLiteral: 'option', optionName: "tooltipTemplate", optionValue: string): void; - - /** - */ igCategoryChart(optionLiteral: 'option', optionName: "tooltipTemplates"): any; - - /** - */ igCategoryChart(optionLiteral: 'option', optionName: "tooltipTemplates", optionValue: any): void; /** @@ -12937,13 +12813,7 @@ interface JQuery { * @optionValue New value to be set. */ igCategoryChart(optionLiteral: 'option', optionName: "yAxisTitleTextStyle", optionValue: string): void; - - /** - */ igCategoryChart(optionLiteral: 'option', optionName: "widget"): any; - - /** - */ igCategoryChart(optionLiteral: 'option', optionName: "widget", optionValue: any): void; /** @@ -13035,6 +12905,7 @@ interface JQuery { /** * Gets the type of chart series to generate from the data. */ + igCategoryChart(optionLiteral: 'option', optionName: "chartType"): string; /** @@ -13042,6 +12913,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "chartType", optionValue: string): void; /** @@ -13153,6 +13025,7 @@ interface JQuery { /** * Gets horizontal alignment which determines the title position, relative to the left and right edges of the chart. */ + igCategoryChart(optionLiteral: 'option', optionName: "titleAlignment"): string; /** @@ -13160,11 +13033,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "titleAlignment", optionValue: string): void; /** * Gets horizontal alignment which determines the subtitle position, relative to the left and right edges of the chart. */ + igCategoryChart(optionLiteral: 'option', optionName: "subtitleAlignment"): string; /** @@ -13172,12 +13047,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "subtitleAlignment", optionValue: string): void; /** * Gets the behavior that determines how unknown values will be plotted on the chart.Null and Double.NaN are two examples of unknown values. * */ + igCategoryChart(optionLiteral: 'option', optionName: "unknownValuePlotting"): string; /** @@ -13186,11 +13063,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "unknownValuePlotting", optionValue: string): void; /** * Gets the behavior for markers in each series which are placed too close together for the current view, resulting in a collision. */ + igCategoryChart(optionLiteral: 'option', optionName: "markerCollisionAvoidance"): string; /** @@ -13198,6 +13077,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "markerCollisionAvoidance", optionValue: string): void; /** @@ -13215,6 +13095,7 @@ interface JQuery { /** * Gets the method that determines how to animate series plots when the chart is loading into view */ + igCategoryChart(optionLiteral: 'option', optionName: "transitionInMode"): string; /** @@ -13222,11 +13103,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "transitionInMode", optionValue: string): void; /** * Gets the arrival speed used for animating series plots when the chart is loading into view */ + igCategoryChart(optionLiteral: 'option', optionName: "transitionInSpeedType"): string; /** @@ -13234,6 +13117,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "transitionInSpeedType", optionValue: string): void; /** @@ -13711,6 +13595,7 @@ interface JQuery { /** * Gets the formula used for calculating trend lines in this chart. */ + igCategoryChart(optionLiteral: 'option', optionName: "trendLineType"): string; /** @@ -13718,6 +13603,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "trendLineType", optionValue: string): void; /** @@ -13827,6 +13713,7 @@ interface JQuery { /** * Gets the horizontal alignment of the X-axis title. */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisTitleAlignment"): string; /** @@ -13834,11 +13721,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisTitleAlignment", optionValue: string): void; /** * Gets the vertical alignment of the Y-axis title. */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisTitleAlignment"): string; /** @@ -13846,11 +13735,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisTitleAlignment", optionValue: string): void; /** * Gets the horizontal alignment of X-axis labels. */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisLabelHorizontalAlignment"): string; /** @@ -13858,11 +13749,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisLabelHorizontalAlignment", optionValue: string): void; /** * Gets the horizontal alignment of Y-axis labels. */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabelHorizontalAlignment"): string; /** @@ -13870,11 +13763,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabelHorizontalAlignment", optionValue: string): void; /** * Gets the vertical alignment of X-axis labels. */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisLabelVerticalAlignment"): string; /** @@ -13882,11 +13777,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisLabelVerticalAlignment", optionValue: string): void; /** * Gets the vertical alignment of Y-axis labels. */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabelVerticalAlignment"): string; /** @@ -13894,11 +13791,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabelVerticalAlignment", optionValue: string): void; /** * Gets the visibility of X-axis labels. */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisLabelVisibility"): string; /** @@ -13906,11 +13805,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "xAxisLabelVisibility", optionValue: string): void; /** * Gets the visibility of Y-axis labels. */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabelVisibility"): string; /** @@ -13918,6 +13819,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCategoryChart(optionLiteral: 'option', optionName: "yAxisLabelVisibility", optionValue: string): void; /** @@ -15518,8 +15420,7 @@ interface BrowserNotSupportedEvent { (event: Event, ui: BrowserNotSupportedEventUIParam): void; } -interface BrowserNotSupportedEventUIParam { -} +interface BrowserNotSupportedEventUIParam {} interface SeriesCursorMouseMoveEvent { (event: Event, ui: SeriesCursorMouseMoveEventUIParam): void; @@ -16887,8 +16788,8 @@ interface IgDataChartMethods { /** * Exports the chart to a PNG image. * - * @param width The width of the image. - * @param height The height of the image. + * @param width The width of the image. + * @param height The height of the image. */ exportImage(width?: Object, height?: Object): Object; @@ -16910,112 +16811,112 @@ interface IgDataChartMethods { /** * Adds a new item to the data source and notifies the chart. * - * @param item The item that we want to add to the data source. - * @param targetName The name of the series or axis bound to the data source. This is required only when the data is bound to series or axis. If the data is bound to dataSource of igDataChart, the second parameter should not be set. + * @param item The item that we want to add to the data source. + * @param targetName The name of the series or axis bound to the data source. This is required only when the data is bound to series or axis. If the data is bound to dataSource of igDataChart, the second parameter should not be set. */ addItem(item: Object, targetName: string): void; /** * Inserts a new item to the data source and notifies the chart. * - * @param item the new item that we want to insert in the data source. - * @param index The index in the data source where the new item will be inserted. - * @param targetName The name of the series or axis bound to the data source. + * @param item the new item that we want to insert in the data source. + * @param index The index in the data source where the new item will be inserted. + * @param targetName The name of the series or axis bound to the data source. */ insertItem(item: Object, index: number, targetName: string): void; /** * Deletes an item from the data source and notifies the chart. * - * @param index The index in the data source from where the item will be been removed. - * @param targetName The name of the series or axis bound to the data source. This is required only when the data is bound to series or axis. If the data is bound to dataSource of igDataChart, the second parameter should not be set. + * @param index The index in the data source from where the item will be been removed. + * @param targetName The name of the series or axis bound to the data source. This is required only when the data is bound to series or axis. If the data is bound to dataSource of igDataChart, the second parameter should not be set. */ removeItem(index: number, targetName: string): void; /** * Updates an item in the data source and notifies the chart. * - * @param index The index of the item in the data source that we want to change. - * @param item The new item object that will be set in the data source. - * @param targetName The name of the series or axis bound to the data source. + * @param index The index of the item in the data source that we want to change. + * @param item The new item object that will be set in the data source. + * @param targetName The name of the series or axis bound to the data source. */ setItem(index: number, item: Object, targetName: string): void; /** * Notifies the chart that an item has been set in an associated data source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source that has been changed. - * @param newItem the new item that has been set in the collection. - * @param oldItem the old item that has been overwritten in the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source that has been changed. + * @param newItem the new item that has been set in the collection. + * @param oldItem the old item that has been overwritten in the collection. */ notifySetItem(dataSource: Object, index: number, newItem: Object, oldItem: Object): Object; /** * Notifies the chart that the items have been cleared from an associated data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. + * @param dataSource The data source in which the change happened. */ notifyClearItems(dataSource: Object): Object; /** * Notifies the target axis or series that an item has been inserted at the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source where the new item has been inserted. - * @param newItem the new item that has been set in the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source where the new item has been inserted. + * @param newItem the new item that has been set in the collection. */ notifyInsertItem(dataSource: Object, index: number, newItem: Object): Object; /** * Notifies the target axis or series that an item has been removed from the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source from where the old item has been removed. - * @param oldItem the old item that has been removed from the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source from where the old item has been removed. + * @param oldItem the old item that has been removed from the collection. */ notifyRemoveItem(dataSource: Object, index: number, oldItem: Object): Object; /** * Notifies the target axis or series that it should scroll the requested data item into view. * - * @param targetName The name of the axis or series notify. - * @param item The data item to bring into view, if possible. + * @param targetName The name of the axis or series notify. + * @param item The data item to bring into view, if possible. */ scrollIntoView(targetName: string, item: Object): Object; /** * Notifies the target axis that it should scale the requested value into chart space from axis space. - * For example you can use this method if you want to find where value 50 of the x axis stands scaled to chart's width. + * For example you can use this method if you want to find where value 50 of the x axis stands scaled to chart's width. * - * @param targetName The name of the axis to notify. - * @param unscaledValue The value in axis space to translate into chart space. + * @param targetName The name of the axis to notify. + * @param unscaledValue The value in axis space to translate into chart space. */ scaleValue(targetName: string, unscaledValue: number): number; /** * Notifies the target axis that it should unscale the requested value into axis space from chart space. - * For example you can use this method if you want to find what is the value of x axis unscaled from 0 width of the chart. + * For example you can use this method if you want to find what is the value of x axis unscaled from 0 width of the chart. * - * @param targetName The name of the axis to notify. - * @param scaledValue The value in chart space to translate into axis space. + * @param targetName The name of the axis to notify. + * @param scaledValue The value in chart space to translate into axis space. */ unscaleValue(targetName: string, scaledValue: number): number; /** * For the target axis, if using enhanced interval management and precise interval fitting, this will reset the cached maximum label width, and recalculate using the current labels. * - * @param targetName The name of the axis to notify. + * @param targetName The name of the axis to notify. */ resetCachedEnhancedInterval(targetName: string): Object; /** * Notifies the target series that something that affects its visual properties has changed and the visual output needs a repaint. * - * @param targetName The name of the series to notify. + * @param targetName The name of the series to notify. */ notifyVisualPropertiesChanged(targetName: string): Object; @@ -17032,21 +16933,21 @@ interface IgDataChartMethods { /** * Gets the actual minimum value of the target numeric or date time axis * - * @param targetName The name of the axis from which to get the minimum value. + * @param targetName The name of the axis from which to get the minimum value. */ getActualMinimumValue(targetName: string): void; /** * Gets the actual maximum value of the target numeric or date time axis * - * @param targetName The name of the axis from which to get the maximum value. + * @param targetName The name of the axis from which to get the maximum value. */ getActualMaximumValue(targetName: string): void; /** * Gets the actual interval of the target numeric or date time axis * - * @param targetName The name of the axis from which to get the interval. + * @param targetName The name of the axis from which to get the interval. */ getActualInterval(targetName: string): void; @@ -17058,236 +16959,236 @@ interface IgDataChartMethods { /** * Indicates that a series should render, even though no option has been modified that would normally cause it to refresh. * - * @param targetName The name of the series to render. - * @param animate Whether the change should be animated, if possible. + * @param targetName The name of the series to render. + * @param animate Whether the change should be animated, if possible. */ renderSeries(targetName: string, animate: boolean): void; /** * Gets the item item index associated with the specified world position. * - * @param targetName The name of the series to target. - * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. + * @param targetName The name of the series to target. + * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. */ getItemIndex(targetName: string, worldPoint: Object): number; /** * Gets the item that is the best match for the specified world coordinates. * - * @param targetName The name of the series to target. - * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. + * @param targetName The name of the series to target. + * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. */ getItem(targetName: string, worldPoint: Object): Object; /** * For a category plotted series, gets the current width of the items within the categories. This only returns a value if the items have some form of width (e.g. columns, bars, etc.) otherwise 0 is returned. * - * @param targetName The name of the series to target. + * @param targetName The name of the series to target. */ getItemSpan(targetName: string): number; /** * If possible, will return the best available main value of the series for a given world coordinate. * - * @param targetName The name of the series to target. - * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. - * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. - * @param skipUnknowns If true, unknown values should be skipped. + * @param targetName The name of the series to target. + * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. + * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. + * @param skipUnknowns If true, unknown values should be skipped. */ getSeriesValue(targetName: string, worldPoint: Object, useInterpolation: boolean, skipUnknowns: boolean): number; /** * If possible, will return the best available value bounding box within the series that has the best value match for the world position provided. * - * @param targetName The name of the series to target. - * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. + * @param targetName The name of the series to target. + * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. */ getSeriesValueBoundingBox(targetName: string, worldPoint: Object): Object; /** * If possible, will return the best available value fine grained bounding boxes within the series that have the best value match for the world position provided. * - * @param targetName The name of the series to target. - * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. + * @param targetName The name of the series to target. + * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. */ getSeriesValueFineGrainedBoundingBoxes(targetName: string, worldPoint: Object): Object; /** * If possible, will return the best available main value position of the series for a given world coordinate. * - * @param targetName The name of the series to target. - * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. - * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. - * @param skipUnknowns If true, unknown values should be skipped. + * @param targetName The name of the series to target. + * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. + * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. + * @param skipUnknowns If true, unknown values should be skipped. */ getSeriesValuePosition(targetName: string, worldPoint: Object, useInterpolation: boolean, skipUnknowns: boolean): Object; /** * If possible, will return the best available main value position of the series for a given world coordinate. * - * @param targetName The name of the series to target. - * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} that represents a position within the pixel space of the series. - * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. - * @param skipUnknowns If true, unknown values should be skipped. + * @param targetName The name of the series to target. + * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} that represents a position within the pixel space of the series. + * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. + * @param skipUnknowns If true, unknown values should be skipped. */ getSeriesValuePositionFromSeriesPixel(targetName: string, seriesPoint: Object, useInterpolation: boolean, skipUnknowns: boolean): Object; /** * If possible, will return the best available main value of the series for a given world coordinate. * - * @param targetName The name of the series to target. - * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} ) that represents a position in the pixel space of the series. - * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. - * @param skipUnknowns If true, unknown values should be skipped. + * @param targetName The name of the series to target. + * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} ) that represents a position in the pixel space of the series. + * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. + * @param skipUnknowns If true, unknown values should be skipped. */ getSeriesValueFromSeriesPixel(targetName: string, seriesPoint: Object, useInterpolation: boolean, skipUnknowns: boolean): number; /** * If possible, will return the best available value bounding box within the series that has the best value match for the given series pixel coordinate. * - * @param targetName The name of the series to target. - * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} ) that represents a position in the pixel space of the series. + * @param targetName The name of the series to target. + * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} ) that represents a position in the pixel space of the series. */ getSeriesValueBoundingBoxFromSeriesPixel(targetName: string, seriesPoint: Object): Object; /** * If possible, will return the best available value fine grained bounding boxes within the series that have the best value match for series pixel position provided. * - * @param targetName The name of the series to target. - * @param worldPoint The series pixel position (in the form {x: [number], y: [number]} ) that represents a position in the pixel space of the series. + * @param targetName The name of the series to target. + * @param worldPoint The series pixel position (in the form {x: [number], y: [number]} ) that represents a position in the pixel space of the series. */ getSeriesValueFineGrainedBoundingBoxesFromSeriesPixel(targetName: string, worldPoint: Object): Object; /** * If possible, will return the best available high value of the series for a given world coordinate. * - * @param targetName The name of the series to target. - * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. - * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. - * @param skipUnknowns If true, unknown values should be skipped. + * @param targetName The name of the series to target. + * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. + * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. + * @param skipUnknowns If true, unknown values should be skipped. */ getSeriesHighValue(targetName: string, worldPoint: Object, useInterpolation: boolean, skipUnknowns: boolean): number; /** * If possible, will return the best available high value position of the series for a given world coordinate. * - * @param targetName The name of the series to target. - * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. - * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. - * @param skipUnknowns If true, unknown values should be skipped. + * @param targetName The name of the series to target. + * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. + * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. + * @param skipUnknowns If true, unknown values should be skipped. */ getSeriesHighValuePosition(targetName: string, worldPoint: Object, useInterpolation: boolean, skipUnknowns: boolean): Object; /** * If possible, will return the best available high value position of the series for a given world coordinate. * - * @param targetName The name of the series to target. - * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} that represents a position within the pixel space of the series. - * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. - * @param skipUnknowns If true, unknown values should be skipped. + * @param targetName The name of the series to target. + * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} that represents a position within the pixel space of the series. + * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. + * @param skipUnknowns If true, unknown values should be skipped. */ getSeriesHighValuePositionFromSeriesPixel(targetName: string, seriesPoint: Object, useInterpolation: boolean, skipUnknowns: boolean): Object; /** * If possible, will return the best available high value of the series for a given world coordinate. * - * @param targetName The name of the series to target. - * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} ) that represents a position in the pixel space of the series. - * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. - * @param skipUnknowns If true, unknown values should be skipped. + * @param targetName The name of the series to target. + * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} ) that represents a position in the pixel space of the series. + * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. + * @param skipUnknowns If true, unknown values should be skipped. */ getSeriesHighValueFromSeriesPixel(targetName: string, seriesPoint: Object, useInterpolation: boolean, skipUnknowns: boolean): number; /** * If possible, will return the best available low value of the series for a given world coordinate. * - * @param targetName The name of the series to target. - * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. - * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. - * @param skipUnknowns If true, unknown values should be skipped. + * @param targetName The name of the series to target. + * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. + * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. + * @param skipUnknowns If true, unknown values should be skipped. */ getSeriesLowValue(targetName: string, worldPoint: Object, useInterpolation: boolean, skipUnknowns: boolean): number; /** * If possible, will return the best available low value position of the series for a given world coordinate. * - * @param targetName The name of the series to target. - * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. - * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. - * @param skipUnknowns If true, unknown values should be skipped. + * @param targetName The name of the series to target. + * @param worldPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. + * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. + * @param skipUnknowns If true, unknown values should be skipped. */ getSeriesLowValuePosition(targetName: string, worldPoint: Object, useInterpolation: boolean, skipUnknowns: boolean): Object; /** * If possible, will return the best available low value position of the series for a given world coordinate. * - * @param targetName The name of the series to target. - * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} that represents a position within the pixel space of the series. - * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. - * @param skipUnknowns If true, unknown values should be skipped. + * @param targetName The name of the series to target. + * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} that represents a position within the pixel space of the series. + * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. + * @param skipUnknowns If true, unknown values should be skipped. */ getSeriesLowValuePositionFromSeriesPixel(targetName: string, seriesPoint: Object, useInterpolation: boolean, skipUnknowns: boolean): Object; /** * If possible, will return the best available low value of the series for a given world coordinate. * - * @param targetName The name of the series to target. - * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} ) that represents a position in the pixel space of the series. - * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. - * @param skipUnknowns If true, unknown values should be skipped. + * @param targetName The name of the series to target. + * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} ) that represents a position in the pixel space of the series. + * @param useInterpolation If true, interpolation should be used to get in-between values, rather than only the actual values in the data set. + * @param skipUnknowns If true, unknown values should be skipped. */ getSeriesLowValueFromSeriesPixel(targetName: string, seriesPoint: Object, useInterpolation: boolean, skipUnknowns: boolean): number; /** * Gets the item item index associated with the specified series pixel coordinate. * - * @param targetName The name of the series to target. - * @param seriesPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. + * @param targetName The name of the series to target. + * @param seriesPoint The world position (in the form {x: [number from 0 to 1], y: [number from 0 to 1]} ) that represents a position in the space of the axes. */ getItemIndexFromSeriesPixel(targetName: string, seriesPoint: Object): number; /** * Gets the item that is the best match for the specified world coordinates. * - * @param targetName The name of the series to target. - * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} ) that represents a position in the pixel space of the series. + * @param targetName The name of the series to target. + * @param seriesPoint The series pixel position (in the form {x: [number], y: [number]} ) that represents a position in the pixel space of the series. */ getItemFromSeriesPixel(targetName: string, seriesPoint: Object): Object; /** * Gets the category offset for a series, if applicable. * - * @param targetName The name of the series to target. + * @param targetName The name of the series to target. */ getSeriesOffsetValue(targetName: string): number; /** * Gets the category width for a series, if applicable. * - * @param targetName The name of the series to target. + * @param targetName The name of the series to target. */ getSeriesCategoryWidth(targetName: string): number; /** * Replays the transition in animation for a series, if applicable. * - * @param targetName The name of the series to target. + * @param targetName The name of the series to target. */ replayTransitionIn(targetName: string): Object; /** * Simulates a hover interaction over a given point in the viewport of a series. * - * @param targetName The name of the series to target. - * @param seriesPoint The point at which to hover. Should have an x property with type number and a y property with type number. + * @param targetName The name of the series to target. + * @param seriesPoint The point at which to hover. Should have an x property with type number and a y property with type number. */ simulateHover(targetName: string, seriesPoint: Object): Object; /** * Moves the cursor point of the target annotation layer to the desired world coordinates. * - * @param targetName The name of the series to target. - * @param worldPoint The point to which to move the cursor. Should have an x property with type number and a y property with type number. + * @param targetName The name of the series to target. + * @param worldPoint The point to which to move the cursor. Should have an x property with type number and a y property with type number. */ moveCursorPoint(targetName: string, worldPoint: Object): Object; @@ -17830,38 +17731,38 @@ interface IgPieChartMethods { /** * Adds a new item to the data source and notifies the chart. * - * @param item the new item that will be added to the data source. + * @param item the new item that will be added to the data source. */ addItem(item: Object): void; /** * Inserts a new item to the data source and notifies the chart. * - * @param item the new item that will be inserted in the data source. - * @param index The index in the data source where the new item will be inserted. + * @param item the new item that will be inserted in the data source. + * @param index The index in the data source where the new item will be inserted. */ insertItem(item: Object, index: number): void; /** * Deletes an item from the data source and notifies the chart. * - * @param index The index in the data source from where the item will be been removed. + * @param index The index in the data source from where the item will be been removed. */ removeItem(index: number): void; /** * Updates an item in the data source and notifies the chart. * - * @param index The index in the data source that we want to change. - * @param item the new item that we want to set in the data source. + * @param index The index in the data source that we want to change. + * @param item the new item that we want to set in the data source. */ setItem(index: number, item: Object): void; /** * Exports the chart to a PNG image. * - * @param width The width of the image. - * @param height The height of the image. + * @param width The width of the image. + * @param height The height of the image. */ exportImage(width?: Object, height?: Object): Object; @@ -18094,6 +17995,7 @@ interface JQuery { * The response to user panning and zooming: whether to update the view immediately while the user action is happening, or to defer the update to after the user action is complete. The user action will be an action such as a mouse drag which causes panning and/or zooming to occur. * */ + igDataChart(optionLiteral: 'option', optionName: "windowResponse"): string; /** @@ -18102,6 +18004,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDataChart(optionLiteral: 'option', optionName: "windowResponse", optionValue: string): void; /** @@ -18123,6 +18026,7 @@ interface JQuery { /** * The visibility of the OverviewPlusDetailPane. */ + igDataChart(optionLiteral: 'option', optionName: "overviewPlusDetailPaneVisibility"): string; /** @@ -18130,11 +18034,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igDataChart(optionLiteral: 'option', optionName: "overviewPlusDetailPaneVisibility", optionValue: string): void; /** * Gets the current Chart's crosshair visibility override. Note: setting this property does not affect the mobile browser version of the chart. */ + igDataChart(optionLiteral: 'option', optionName: "crosshairVisibility"): string; /** @@ -18142,6 +18048,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDataChart(optionLiteral: 'option', optionName: "crosshairVisibility", optionValue: string): void; /** @@ -18159,6 +18066,7 @@ interface JQuery { /** * Gets the DefaultInteraction property. The default interaction state defines the chart's response to mouse events. */ + igDataChart(optionLiteral: 'option', optionName: "defaultInteraction"): string; /** @@ -18166,11 +18074,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igDataChart(optionLiteral: 'option', optionName: "defaultInteraction", optionValue: string): void; /** * Gets the current Chart's DragModifier property. */ + igDataChart(optionLiteral: 'option', optionName: "dragModifier"): string; /** @@ -18178,11 +18088,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igDataChart(optionLiteral: 'option', optionName: "dragModifier", optionValue: string): void; /** * Gets the current Chart's PanModifier property. */ + igDataChart(optionLiteral: 'option', optionName: "panModifier"): string; /** @@ -18190,6 +18102,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDataChart(optionLiteral: 'option', optionName: "panModifier", optionValue: string): void; /** @@ -18533,6 +18446,7 @@ interface JQuery { /** * Gets the GridMode property. */ + igDataChart(optionLiteral: 'option', optionName: "gridMode"): string; /** @@ -18540,6 +18454,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDataChart(optionLiteral: 'option', optionName: "gridMode", optionValue: string): void; /** @@ -18609,6 +18524,7 @@ interface JQuery { /** * The width of the chart. It can be set as a number in pixels, string (px) or percentage (%). */ + igDataChart(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -18616,11 +18532,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igDataChart(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * The height of the chart. It can be set as a number in pixels, string (px) or percentage (%). */ + igDataChart(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -18628,6 +18546,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDataChart(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -18885,6 +18804,7 @@ interface JQuery { /** * The horizontal alignment to use for the title. */ + igDataChart(optionLiteral: 'option', optionName: "titleHorizontalAlignment"): string; /** @@ -18892,11 +18812,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igDataChart(optionLiteral: 'option', optionName: "titleHorizontalAlignment", optionValue: string): void; /** * The horizontal alignment to use for the subtitle. */ + igDataChart(optionLiteral: 'option', optionName: "subtitleHorizontalAlignment"): string; /** @@ -18904,6 +18826,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDataChart(optionLiteral: 'option', optionName: "subtitleHorizontalAlignment", optionValue: string): void; /** @@ -18969,6 +18892,7 @@ interface JQuery { /** * Gets which type of hit testing the series should use. */ + igDataChart(optionLiteral: 'option', optionName: "contentHitTestMode"): string; /** @@ -18976,6 +18900,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDataChart(optionLiteral: 'option', optionName: "contentHitTestMode", optionValue: string): void; /** @@ -19583,6 +19508,7 @@ interface JQuery { /** * The width of the chart. It can be set as a number in pixels, string (px) or percentage (%). */ + igPieChart(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -19590,11 +19516,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igPieChart(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * The height of the chart. It can be set as a number in pixels, string (px) or percentage (%). */ + igPieChart(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -19602,6 +19530,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPieChart(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -19716,6 +19645,7 @@ interface JQuery { * Gets the position of chart labels. * */ + igPieChart(optionLiteral: 'option', optionName: "labelsPosition"): string; /** @@ -19724,6 +19654,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPieChart(optionLiteral: 'option', optionName: "labelsPosition", optionValue: string): void; /** @@ -19758,6 +19689,7 @@ interface JQuery { * Gets the type of selection the pie chart allows. * */ + igPieChart(optionLiteral: 'option', optionName: "selectionMode"): string; /** @@ -19766,6 +19698,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPieChart(optionLiteral: 'option', optionName: "selectionMode", optionValue: string): void; /** @@ -19800,6 +19733,7 @@ interface JQuery { * Gets whether the leader lines are visible. * */ + igPieChart(optionLiteral: 'option', optionName: "leaderLineVisibility"): string; /** @@ -19808,12 +19742,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igPieChart(optionLiteral: 'option', optionName: "leaderLineVisibility", optionValue: string): void; /** * Gets what type of leader lines will be used for the outside end labels. * */ + igPieChart(optionLiteral: 'option', optionName: "leaderLineType"): string; /** @@ -19822,6 +19758,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPieChart(optionLiteral: 'option', optionName: "leaderLineType", optionValue: string): void; /** @@ -19887,6 +19824,7 @@ interface JQuery { /** * Gets whether to use numeric or percent-based threshold value. */ + igPieChart(optionLiteral: 'option', optionName: "othersCategoryType"): string; /** @@ -19894,6 +19832,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPieChart(optionLiteral: 'option', optionName: "othersCategoryType", optionValue: string): void; /** @@ -20050,6 +19989,7 @@ interface JQuery { * Gets the rotational direction of the chart. * */ + igPieChart(optionLiteral: 'option', optionName: "sweepDirection"): string; /** @@ -20058,6 +19998,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPieChart(optionLiteral: 'option', optionName: "sweepDirection", optionValue: string): void; /** @@ -20633,6 +20574,7 @@ interface JQuery { /** * Type of the legend. */ + igChartLegend(optionLiteral: 'option', optionName: "type"): string; /** @@ -20640,11 +20582,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igChartLegend(optionLiteral: 'option', optionName: "type", optionValue: string): void; /** * The width of the legend. It can be set as a number in pixels, string (px) or percentage (%). */ + igChartLegend(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -20652,11 +20596,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igChartLegend(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * The height of the legend. It can be set as a number in pixels, string (px) or percentage (%). */ + igChartLegend(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -20664,6 +20610,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igChartLegend(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -20845,7 +20792,7 @@ interface IgColorPickerMethods { /** * Gets the color for an element from the color picker in RGB format. * - * @param $element A jQuery element in the color picker from which the color will be retrieved. + * @param $element A jQuery element in the color picker from which the color will be retrieved. */ colorFromElement($element: Object): string; @@ -20858,7 +20805,7 @@ interface IgColorPickerMethods { /** * Select a color. * - * @param color The #RGB value of the color to be selected. + * @param color The #RGB value of the color to be selected. */ selectColor(color: string): Object; } @@ -21706,7 +21653,6 @@ interface IgCombo { * Gets/Sets type of filtering.Note: option is set to "remote", then the "css.waitFiltering" is applied to combo and its drop-down list. * * - * * Valid values: * "remote" filtering is performed by server * "local" filtering is performed by $.ig.DataSource @@ -21724,7 +21670,6 @@ interface IgCombo { * Gets/Sets condition used for filtering.Note: When [autoComplete](ui.igcombo#options:autoComplete) is enabled, the filtering condition is always "startsWith". * * - * * Valid values: * "contains" * "doesNotContain" @@ -22096,8 +22041,8 @@ interface IgComboMethods { /** * Forces an update of the igCombo value according to the current text in the igCombo input. * - * The refresh is primarily intended to be used with [allowCustomValue](ui.igcombo#options:allowCustomValue) set to true. - * The refresh will take the current text and, if no selection is applied, will set it as igCombo value provided that [allowCustomValue](ui.igcombo#options:allowCustomValue) true. + * The refresh is primarily intended to be used with [allowCustomValue](ui.igcombo#options:allowCustomValue) set to true. + * The refresh will take the current text and, if no selection is applied, will set it as igCombo value provided that [allowCustomValue](ui.igcombo#options:allowCustomValue) true. */ refreshValue(): Object; @@ -22159,6 +22104,14 @@ interface IgComboMethods { */ filter(texts?: Object, event?: Object): Object; + /** + * Creates expressions for filtering. + * + * @param expressions Filter by array of objects, such as each object represents filtering expression. + * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [filtering](ui.igcombo#events:filtering) and [filtered](ui.igcombo#events:filtered) events. + */ + filterByExpressions(expressions: any[], event?: Object): Object; + /** * Clears filtering. * @@ -22186,7 +22139,7 @@ interface IgComboMethods { /** * Clears the input text, resets highlighting, filtering and selection. * - * @param options Object with set of options controlling the behavior of this api method. + * @param options Object with set of options controlling the behavior of this api method. * focusCombo (boolean): Set to true to focus combo after clearing the input. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ @@ -22218,14 +22171,14 @@ interface IgComboMethods { * * @param value Value or array of values matching the valueKey property of item/items to be selected * @param options Object with set of options controlling the behavior of this api method. - * closeDropDown (boolean): Set to true to close the drop down list after the selection. - * focusCombo (boolean): Set to true to focus combo after the selection. - * additive (boolean): Set to true to select the item without losing other selection. Works only when multi selection is enabled. - * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. - * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. - * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. - * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. - * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. + * closeDropDown (boolean): Set to true to close the drop down list after the selection. + * focusCombo (boolean): Set to true to focus combo after the selection. + * additive (boolean): Set to true to select the item without losing other selection. Works only when multi selection is enabled. + * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. + * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. + * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. + * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. + * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ value(value?: Object, options?: Object, event?: Object): Object; @@ -22235,14 +22188,14 @@ interface IgComboMethods { * * @param $items jQuery object with item or items to be selected. * @param options Object with set of options controlling the behavior of this api method. - * closeDropDown (boolean): Set to true to close the drop down list after the selection. - * focusCombo (boolean): Set to true to focus combo after the selection. - * additive (boolean): Set to true to select the item without losing other selection. Works only when multi selection is enabled. - * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. - * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. - * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. - * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. - * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. + * closeDropDown (boolean): Set to true to close the drop down list after the selection. + * focusCombo (boolean): Set to true to focus combo after the selection. + * additive (boolean): Set to true to select the item without losing other selection. Works only when multi selection is enabled. + * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. + * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. + * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. + * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. + * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ select($items: Object, options?: Object, event?: Object): Object; @@ -22252,14 +22205,14 @@ interface IgComboMethods { * * @param index Index or array of indexes of items to be selected * @param options Object with set of options controlling the behavior of this api method. - * closeDropDown (boolean): Set to true to close the drop down list after the selection. - * focusCombo (boolean): Set to true to focus combo after the selection. - * additive (boolean): Set to true to select the item without losing other selection. Works only when multi selection is enabled. - * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. - * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. - * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. - * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. - * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. + * closeDropDown (boolean): Set to true to close the drop down list after the selection. + * focusCombo (boolean): Set to true to focus combo after the selection. + * additive (boolean): Set to true to select the item without losing other selection. Works only when multi selection is enabled. + * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. + * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. + * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. + * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. + * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ index(index?: Object, options?: Object, event?: Object): Object; @@ -22268,13 +22221,13 @@ interface IgComboMethods { * Selects all items from the drop-down list. * * @param options Object with set of options controlling the behavior of this api method. - * closeDropDown (boolean): Set to true to close the drop down list after the selection. - * focusCombo (boolean): Set to true to focus combo after the selection. - * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. - * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. - * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. - * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. - * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. + * closeDropDown (boolean): Set to true to close the drop down list after the selection. + * focusCombo (boolean): Set to true to focus combo after the selection. + * keepFiltering (boolean): Set to true to keep filtering after the selection. By default the filtering is cleared. + * keepInputText (boolean): Set to true to keep input text unchanged after the selection. By default input text is updated. + * keepHighlighting (boolean): Set to true to keep highlighting unchanged after the selection. By default highlighting is removed. + * keepNavItem (boolean): Set to true to keep current navigation item unchanged after the selection. By default the navigation item is changed to the new selected item. + * keepScrollPosition (boolean): Set to true to keep current scroll position. By default the scroll position will change so that the last selected item is visible. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ selectAll(options?: Object, event?: Object): Object; @@ -22284,8 +22237,8 @@ interface IgComboMethods { * * @param value Value or array of values matching the [valueKey](ui.igcombo#options:valueKey) property of item/items to be deselected * @param options Object with set of options controlling the behavior of this api method. - * focusCombo (boolean): Set to true to focus combo after the deselection. - * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. + * focusCombo (boolean): Set to true to focus combo after the deselection. + * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ deselectByValue(value: Object, options?: Object, event?: Object): Object; @@ -22295,8 +22248,8 @@ interface IgComboMethods { * * @param $items jQuery object with item or items to be deselected * @param options Object with set of options controlling the behavior of this api method. - * focusCombo (boolean): Set to true to focus combo after the deselection. - * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. + * focusCombo (boolean): Set to true to focus combo after the deselection. + * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ deselect($items: Object, options?: Object, event?: Object): Object; @@ -22306,8 +22259,8 @@ interface IgComboMethods { * * @param index Index or array of indexes of items to be selected * @param options Object with set of options controlling the behavior of this api method. - * focusCombo (boolean): Set to true to focus combo after the deselection. - * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. + * focusCombo (boolean): Set to true to focus combo after the deselection. + * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ deselectByIndex(index: Object, options?: Object, event?: Object): Object; @@ -22316,8 +22269,8 @@ interface IgComboMethods { * Deselects all selected items from the drop down list. * * @param options Object with set of options controlling the behavior of this api method. - * focusCombo (boolean): Set to true to focus combo after the deselection. - * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. + * focusCombo (boolean): Set to true to focus combo after the deselection. + * keepInputText (boolean): Set to true to keep input text unchanged after the deselection. By default input text is updated. * @param event Indicates the browser event which triggered this action (not API). Calling the method with this param set to "true" will trigger [selectionChanging](ui.igcombo#events:selectionChanging) and [selectionChanged](ui.igcombo#events:selectionChanged) events. */ deselectAll(options?: Object, event?: Object): Object; @@ -22419,6 +22372,7 @@ interface JQuery { igCombo(methodName: "filteredItems"): any[]; igCombo(methodName: "selectedItems"): any[]; igCombo(methodName: "filter", texts?: Object, event?: Object): Object; + igCombo(methodName: "filterByExpressions", expressions: any[], event?: Object): Object; igCombo(methodName: "clearFiltering", event?: Object): Object; igCombo(methodName: "openDropDown", callback?: Function, focusCombo?: boolean, event?: Object): Object; igCombo(methodName: "closeDropDown", callback?: Function, event?: Object): Object; @@ -22453,6 +22407,7 @@ interface JQuery { * Gets/Sets the width of combo. The numeric and string values (valid html units for size) are supported. It includes %, px, em and other units. * */ + igCombo(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -22461,12 +22416,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igCombo(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets height of combo. The numeric and string values (valid html units for size) are supported. It includes %, px, em and other units. * */ + igCombo(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -22475,12 +22432,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igCombo(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** * Gets/Sets the width of drop-down list in pixels. * */ + igCombo(optionLiteral: 'option', optionName: "dropDownWidth"): string|number; /** @@ -22489,6 +22448,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCombo(optionLiteral: 'option', optionName: "dropDownWidth", optionValue: string|number): void; /** @@ -22523,14 +22483,14 @@ interface JQuery { /** * Sets URL which is used for sending JSON on request for remote filtering (MVC for example). That option is required when [load on demand](ui.igcombo#options:loadOnDemandSettings) is - * [enabled](ui.igcombo#options:loadOnDemandSettings.enabled) and its [type](ui.igcombo#options:filteringType) is remote. + * [enabled](ui.igcombo#options:loadOnDemandSettings.enabled) and its [type](ui.igcombo#options:filteringType) is remote. * */ igCombo(optionLiteral: 'option', optionName: "dataSourceUrl"): string; /** * Sets URL which is used for sending JSON on request for remote filtering (MVC for example). That option is required when [load on demand](ui.igcombo#options:loadOnDemandSettings) is - * [enabled](ui.igcombo#options:loadOnDemandSettings.enabled) and its [type](ui.igcombo#options:filteringType) is remote. + * [enabled](ui.igcombo#options:loadOnDemandSettings.enabled) and its [type](ui.igcombo#options:filteringType) is remote. * * * @optionValue New value to be set. @@ -22569,6 +22529,7 @@ interface JQuery { * Response type when a URL is set as the data source. See http://api.jquery.com/jQuery.ajax/ => dataType. * */ + igCombo(optionLiteral: 'option', optionName: "responseDataType"): string; /** @@ -22577,6 +22538,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCombo(optionLiteral: 'option', optionName: "responseDataType", optionValue: string): void; /** @@ -22637,14 +22599,14 @@ interface JQuery { /** * Gets/Sets a template used to render an item in list. The igCombo utilizes igTemplating for generating node content templates. - * More info on the templating engine can be found here: http://www.igniteui.com/help/infragistics-templating-engine. + * More info on the templating engine can be found here: http://www.igniteui.com/help/infragistics-templating-engine. * */ igCombo(optionLiteral: 'option', optionName: "itemTemplate"): string; /** * /Sets a template used to render an item in list. The igCombo utilizes igTemplating for generating node content templates. - * More info on the templating engine can be found here: http://www.igniteui.com/help/infragistics-templating-engine. + * More info on the templating engine can be found here: http://www.igniteui.com/help/infragistics-templating-engine. * * * @optionValue New value to be set. @@ -22754,17 +22716,17 @@ interface JQuery { /** * Gets/Sets type of filtering.Note: option is set to "remote", then the "css.waitFiltering" is applied to combo and its drop-down list. * - * */ + igCombo(optionLiteral: 'option', optionName: "filteringType"): string; /** * /Sets type of filtering.Note: option is set to "remote", then the "css.waitFiltering" is applied to combo and its drop-down list. * * - * * @optionValue New value to be set. */ + igCombo(optionLiteral: 'option', optionName: "filteringType", optionValue: string): void; /** @@ -22784,23 +22746,24 @@ interface JQuery { /** * Gets/Sets condition used for filtering.Note: When [autoComplete](ui.igcombo#options:autoComplete) is enabled, the filtering condition is always "startsWith". * - * */ + igCombo(optionLiteral: 'option', optionName: "filteringCondition"): string; /** * /Sets condition used for filtering.Note: When [autoComplete](ui.igcombo#options:autoComplete) is enabled, the filtering condition is always "startsWith". * * - * * @optionValue New value to be set. */ + igCombo(optionLiteral: 'option', optionName: "filteringCondition", optionValue: string): void; /** * Gets/Sets filtering logic. * */ + igCombo(optionLiteral: 'option', optionName: "filteringLogic"): string; /** @@ -22809,6 +22772,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCombo(optionLiteral: 'option', optionName: "filteringLogic", optionValue: string): void; /** @@ -22881,6 +22845,7 @@ interface JQuery { * Sets gets functionality mode. * */ + igCombo(optionLiteral: 'option', optionName: "mode"): string; /** @@ -22889,6 +22854,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCombo(optionLiteral: 'option', optionName: "mode", optionValue: string): void; /** @@ -22955,6 +22921,7 @@ interface JQuery { * Gets/Sets condition used for highlighting of matching parts in items of drop-down list. * */ + igCombo(optionLiteral: 'option', optionName: "highlightMatchesMode"): string; /** @@ -22963,6 +22930,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCombo(optionLiteral: 'option', optionName: "highlightMatchesMode", optionValue: string): void; /** @@ -23233,6 +23201,7 @@ interface JQuery { * Gets/Sets drop-down list orientation when open button is clicked. * */ + igCombo(optionLiteral: 'option', optionName: "dropDownOrientation"): string; /** @@ -23241,6 +23210,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCombo(optionLiteral: 'option', optionName: "dropDownOrientation", optionValue: string): void; /** @@ -23606,11 +23576,11 @@ interface AnimationEndedEventUIParam { action?: any; } -interface FocusEvent { - (event: Event, ui: FocusEventUIParam): void; +interface IgFocusEvent { + (event: Event, ui: IgFocusEventUIParam): void; } -interface FocusEventUIParam { +interface IgFocusEventUIParam { /** * Used to obtain a reference to the igDialog. */ @@ -23644,7 +23614,6 @@ interface IgDialog { * Gets/Sets the state of the dialog.Note: when the dialog is modal, then pinned and minimized states are not supported, because that will trigger misbehavior. * * - * * Valid values: * "opened" The dialog is opened. * "minimized" The dialog is minimized. @@ -23749,7 +23718,6 @@ interface IgDialog { * Gets/Sets the initial height of the dialog in pixels for normal state.Besides numeric values, following units are supported: "px", "em" and "%". * In case of "%", the size of browser window is used and it has effect only on open action. * - * */ height?: number|string; @@ -23757,7 +23725,6 @@ interface IgDialog { * Gets/Sets the initial width of the dialog in pixels for normal state.Besides numeric values, following units are supported: "px", "em" and "%". * In case of "%", the size of browser window is used and it has effect only on open action. * - * */ width?: number|string; @@ -23899,7 +23866,6 @@ interface IgDialog { * If this option is set to "auto" and showMaximizeButton is enabled or if this option is set to true, then the dialog will be maximized when it was in normal state, * and dialog-state will be set to normal if it was maximized. * - * */ enableDblclick?: any; @@ -23962,7 +23928,7 @@ interface IgDialog { * Use evt to obtain the browser event. * Use ui.owner to obtain a reference to the igDialog. */ - focus?: FocusEvent; + focus?: IgFocusEvent; /** * Event which is raised when the dialog or its content loses focus. @@ -23986,9 +23952,9 @@ interface IgDialogMethods { /** * Gets/Sets the state of the editor. - * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. * - * @param state New state. + * @param state New state. */ state(state?: string): string; @@ -23999,53 +23965,53 @@ interface IgDialogMethods { /** * Closes the dialog if it is opened. - * Notes: - * 1. If the state of the dialog changes, then stateChanging and stateChanged events are raised. - * 2. That method does not change minimized or maximized state of the dialog. - * It means that method "open" will open the dialog and keep previous minimized or maximized state. + * Notes: + * 1. If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * 2. That method does not change minimized or maximized state of the dialog. + * It means that method "open" will open the dialog and keep previous minimized or maximized state. * - * @param e Browser event: internal use only. + * @param e Browser event: internal use only. */ close(e?: Object): Object; /** * Opens the dialog if it is closed. Notes: - * 1. If the state of the dialog changes, then stateChanging and stateChanged events are raised. - * 2. That method does not change minimized or maximized state of the dialog. It means that if the dialog was in minimized or maximized stated when closed by "close" method, then the dialog will open in minimized or maximized state respectively. + * 1. If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * 2. That method does not change minimized or maximized state of the dialog. It means that if the dialog was in minimized or maximized stated when closed by "close" method, then the dialog will open in minimized or maximized state respectively. */ open(): Object; /** * Minimizes the dialog if it is not minimized. - * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. */ minimize(): Object; /** * Maximizes the dialog if it is not maximized. - * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. */ maximize(): Object; /** * Sets the normal state for the dialog if it was maximized or minimized. - * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. */ restore(): Object; /** * Pins the dialog if it is not pinned. - * When the dialog is pinned, then the html element of the dialog is moved to the original container where the target element was located and position:absolute is removed. - * The pinned dialog does not support modal state, maximized state and it can not be moved. - * Notes: - * 1. If the parent element of the original target-element is invisible, then the pinned dialog becomes invisible as well. - * 2. If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * When the dialog is pinned, then the html element of the dialog is moved to the original container where the target element was located and position:absolute is removed. + * The pinned dialog does not support modal state, maximized state and it can not be moved. + * Notes: + * 1. If the parent element of the original target-element is invisible, then the pinned dialog becomes invisible as well. + * 2. If the state of the dialog changes, then stateChanging and stateChanged events are raised. */ pin(): Object; /** * Unpins the dialog if it is pinned. - * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. + * Note: If the state of the dialog changes, then stateChanging and stateChanged events are raised. */ unpin(): Object; @@ -24062,14 +24028,14 @@ interface IgDialogMethods { /** * Moves a not modal dialog to the top. * - * @param e Original event of browser. + * @param e Original event of browser. */ moveToTop(e?: Object): Object; /** * Retrieves the igDialog content container or sets its content to be the new content provided. * - * @param newContent The new html content provided as a string. If the parameter is provided then the method acts as a setter. + * @param newContent The new html content provided as a string. If the parameter is provided then the method acts as a setter. */ content(newContent?: string): Object; } @@ -24120,17 +24086,17 @@ interface JQuery { /** * Gets/Sets the state of the dialog.Note: when the dialog is modal, then pinned and minimized states are not supported, because that will trigger misbehavior. * - * */ + igDialog(optionLiteral: 'option', optionName: "state"): string; /** * /Sets the state of the dialog.Note: when the dialog is modal, then pinned and minimized states are not supported, because that will trigger misbehavior. * * - * * @optionValue New value to be set. */ + igDialog(optionLiteral: 'option', optionName: "state", optionValue: string): void; /** @@ -24349,8 +24315,8 @@ interface JQuery { * Gets/Sets the initial height of the dialog in pixels for normal state.Besides numeric values, following units are supported: "px", "em" and "%". * In case of "%", the size of browser window is used and it has effect only on open action. * - * */ + igDialog(optionLiteral: 'option', optionName: "height"): number|string; /** @@ -24358,17 +24324,17 @@ interface JQuery { * In case of "%", the size of browser window is used and it has effect only on open action. * * - * * @optionValue New value to be set. */ + igDialog(optionLiteral: 'option', optionName: "height", optionValue: number|string): void; /** * Gets/Sets the initial width of the dialog in pixels for normal state.Besides numeric values, following units are supported: "px", "em" and "%". * In case of "%", the size of browser window is used and it has effect only on open action. * - * */ + igDialog(optionLiteral: 'option', optionName: "width"): number|string; /** @@ -24376,9 +24342,9 @@ interface JQuery { * In case of "%", the size of browser window is used and it has effect only on open action. * * - * * @optionValue New value to be set. */ + igDialog(optionLiteral: 'option', optionName: "width", optionValue: number|string): void; /** @@ -24694,7 +24660,6 @@ interface JQuery { * If this option is set to "auto" and showMaximizeButton is enabled or if this option is set to true, then the dialog will be maximized when it was in normal state, * and dialog-state will be set to normal if it was maximized. * - * */ igDialog(optionLiteral: 'option', optionName: "enableDblclick"): any; @@ -24704,7 +24669,6 @@ interface JQuery { * and dialog-state will be set to normal if it was maximized. * * - * * @optionValue New value to be set. */ igDialog(optionLiteral: 'option', optionName: "enableDblclick", optionValue: any): void; @@ -24826,7 +24790,7 @@ interface JQuery { * Use evt to obtain the browser event. * Use ui.owner to obtain a reference to the igDialog. */ - igDialog(optionLiteral: 'option', optionName: "focus"): FocusEvent; + igDialog(optionLiteral: 'option', optionName: "focus"): IgFocusEvent; /** * Event which is raised when the dialog or its content gets focus. @@ -24837,7 +24801,7 @@ interface JQuery { * * @optionValue Define event handler function. */ - igDialog(optionLiteral: 'option', optionName: "focus", optionValue: FocusEvent): void; + igDialog(optionLiteral: 'option', optionName: "focus", optionValue: IgFocusEvent): void; /** * Event which is raised when the dialog or its content loses focus. @@ -25026,8 +24990,7 @@ interface HoleDimensionsChangedEvent { (event: Event, ui: HoleDimensionsChangedEventUIParam): void; } -interface HoleDimensionsChangedEventUIParam { -} +interface HoleDimensionsChangedEventUIParam {} interface IgDoughnutChart { /** @@ -25221,21 +25184,21 @@ interface IgDoughnutChartMethods { /** * Adds a new series to the doughnut chart. * - * @param seriesObj The series object to be added. + * @param seriesObj The series object to be added. */ addSeries(seriesObj: Object): void; /** * Removes the specified series from the doughnut chart. * - * @param seriesObj The series object identifying the series to be removed. + * @param seriesObj The series object identifying the series to be removed. */ removeSeries(seriesObj: Object): void; /** * Updates the series with the specified name with the specified new property values. * - * @param value The series object identifying the series to be updated. + * @param value The series object identifying the series to be updated. */ updateSeries(value: Object): void; @@ -25267,89 +25230,89 @@ interface IgDoughnutChartMethods { /** * Returns data source of the series. * - * @param series Optional. The series name. If not provided an array of series data sources is returned. + * @param series Optional. The series name. If not provided an array of series data sources is returned. */ getData(series: string): Object; /** * Find index of item within actual data used by chart. * - * @param item The reference to item. + * @param item The reference to item. */ findIndexOfItem(item: Object): number; /** * Get item within actual data used by chart. That is similar to this.getData()[ index ]. * - * @param index Index of data item. + * @param index Index of data item. */ getDataItem(index: Object): Object; /** * Adds a new item to the data source and notifies the chart. * - * @param item The item that we want to add to the data source. + * @param item The item that we want to add to the data source. */ addItem(item: Object): Object; /** * Inserts a new item to the data source and notifies the chart. * - * @param item the new item that we want to insert in the data source. - * @param index The index in the data source where the new item will be inserted. + * @param item the new item that we want to insert in the data source. + * @param index The index in the data source where the new item will be inserted. */ insertItem(item: Object, index: number): Object; /** * Deletes an item from the data source and notifies the chart. * - * @param index The index in the data source from where the item will be been removed. + * @param index The index in the data source from where the item will be been removed. */ removeItem(index: number): Object; /** * Updates an item in the data source and notifies the chart. * - * @param index The index of the item in the data source that we want to change. - * @param item The new item object that will be set in the data source. + * @param index The index of the item in the data source that we want to change. + * @param item The new item object that will be set in the data source. */ setItem(index: number, item: Object): Object; /** * Notifies the chart that an item has been set in an associated data source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source that has been changed. - * @param newItem the new item that has been set in the collection. - * @param oldItem the old item that has been overwritten in the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source that has been changed. + * @param newItem the new item that has been set in the collection. + * @param oldItem the old item that has been overwritten in the collection. */ notifySetItem(dataSource: Object, index: number, newItem: Object, oldItem: Object): Object; /** * Notifies the chart that the items have been cleared from an associated data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. + * @param dataSource The data source in which the change happened. */ notifyClearItems(dataSource: Object): Object; /** * Notifies the target axis or series that an item has been inserted at the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source where the new item has been inserted. - * @param newItem the new item that has been set in the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source where the new item has been inserted. + * @param newItem the new item that has been set in the collection. */ notifyInsertItem(dataSource: Object, index: number, newItem: Object): Object; /** * Notifies the target axis or series that an item has been removed from the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source from where the old item has been removed. - * @param oldItem the old item that has been removed from the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source from where the old item has been removed. + * @param oldItem the old item that has been removed from the collection. */ notifyRemoveItem(dataSource: Object, index: number, oldItem: Object): Object; @@ -25393,6 +25356,7 @@ interface JQuery { /** * The width of the chart. It can be set as a number in pixels, string (px) or percentage (%). */ + igDoughnutChart(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -25400,11 +25364,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igDoughnutChart(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * The height of the chart. It can be set as a number in pixels, string (px) or percentage (%). */ + igDoughnutChart(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -25412,6 +25378,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDoughnutChart(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -26017,12 +25984,12 @@ interface ValueChangedEventUIParam { owner?: any; /** - * Used to obtain the new value. + * Used to obtain the value entered from the user after internal formatting. */ newValue?: any; /** - * Used to obtain the original value. + * Used to obtain the value entered from the user before internal formatting. */ originalValue?: any; @@ -26179,7 +26146,7 @@ interface IgBaseEditor { * Use ui.element to obtain a reference to the event target. * Use ui.editorInput to get a reference to the editor field. */ - focus?: FocusEvent; + focus?: IgFocusEvent; /** * Event which is raised on keydown event. @@ -26226,8 +26193,8 @@ interface IgBaseEditor { * Event which is raised after the editor value is changed. It can be raised after loosing focus or on spin events. * Function takes arguments evt and ui. * Use ui.owner to obtain reference to igEditor. - * Use ui.newValue to obtain the new value. - * Use ui.originalValue to obtain the original value. + * Use ui.newValue to obtain the value entered from the user after internal formatting. + * Use ui.originalValue to obtain the value entered from the user before internal formatting. * Use ui.editorInput to obtain reference to the editor input. */ valueChanged?: ValueChangedEvent; @@ -26241,7 +26208,7 @@ interface IgBaseEditorMethods { /** * Gets/Sets name attribute applied to the editor element. * - * @param newValue The new input name. + * @param newValue The new input name. */ inputName(newValue?: string): string; value(newValue: Object): void; @@ -26264,7 +26231,7 @@ interface IgBaseEditorMethods { /** * Sets focus to the editor after the specified delay. * - * @param delay The delay before focusing the editor. + * @param delay The delay before focusing the editor. */ setFocus(delay?: number): void; @@ -26464,7 +26431,6 @@ interface IgTextEditor { * Gets visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * * - * * Valid values: * "dropdown" A button to open/close the list is located on the right side of the editor. * "clear" A button to clear the value is located on the right side of the editor. @@ -26649,6 +26615,14 @@ interface IgTextEditor { */ suppressNotifications?: boolean; + /** + * Gets/Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * Note: When drop down is opened the only way to close it will be using the drop down button. + * + */ + suppressKeyboard?: boolean; + /** * Gets/Sets the width of the control. * @@ -26861,7 +26835,7 @@ interface IgTextEditor { * Use ui.element to obtain a reference to the event target. * Use ui.editorInput to get a reference to the editor field. */ - focus?: FocusEvent; + focus?: IgFocusEvent; /** * Event which is raised on keydown event. @@ -26908,8 +26882,8 @@ interface IgTextEditor { * Event which is raised after the editor value is changed. It can be raised after loosing focus or on spin events. * Function takes arguments evt and ui. * Use ui.owner to obtain reference to igEditor. - * Use ui.newValue to obtain the new value. - * Use ui.originalValue to obtain the original value. + * Use ui.newValue to obtain the value entered from the user after internal formatting. + * Use ui.originalValue to obtain the value entered from the user before internal formatting. * Use ui.editorInput to obtain reference to the editor input. */ valueChanged?: ValueChangedEvent; @@ -26958,15 +26932,15 @@ interface IgTextEditorMethods { /** * Finds index of list item by text that matches with the search parameters. * - * @param text The text to search for in the drop down list. - * @param matchType The rule that is applied for searching the text. + * @param text The text to search for in the drop down list. + * @param matchType The rule that is applied for searching the text. */ findListItemIndex(text: string, matchType?: Object): number; /** * Gets the index of the selected list item. Sets selected item by index. * - * @param index The index of the item that needs to be selected. + * @param index The index of the item that needs to be selected. */ selectedListIndex(index?: number): number; @@ -26992,17 +26966,17 @@ interface IgTextEditorMethods { /** * Inserts the text at the location of the caret or over the current selection. If the editor is focused the method will insert the text over the current selection. If the editor is not focused the method will set the text as value of the editor. - * Note: The method raises [textChanged](ui.igtexteditor#events:textChanged) event. + * Note: The method raises [textChanged](ui.igtexteditor#events:textChanged) event. * - * @param string The string to be inserted. + * @param string The string to be inserted. */ insert(string: string): void; /** * Selects the text between start and end indices in the editor. If the parameters are equal, then the method sets location of caret. The method has effect only when the editor has focus. * - * @param start Start of the selection. - * @param end End of the selection. + * @param start Start of the selection. + * @param end End of the selection. */ select(start: number, end: number): void; @@ -27029,7 +27003,7 @@ interface IgTextEditorMethods { /** * Gets/Sets name attribute applied to the editor element. * - * @param newValue The new input name. + * @param newValue The new input name. */ inputName(newValue?: string): string; value(newValue: Object): void; @@ -27052,7 +27026,7 @@ interface IgTextEditorMethods { /** * Sets focus to the editor after the specified delay. * - * @param delay The delay before focusing the editor. + * @param delay The delay before focusing the editor. */ setFocus(delay?: number): void; @@ -27199,7 +27173,6 @@ interface IgNumericEditor { * In addition, the maximum value that can be set to [minDecimals](ui.igNumericEditor#options:minDecimals) and [maxDecimals](ui.igNumericEditor#options:maxDecimals) options can be 15, when editor is in 'double' mode and 7, when in 'float' mode. * * - * * Valid values: * "double" the Number object is used with the limits of a double and if the value is not set, then the null or Number.NaN is used depending on the option [allowNullValue](ui.igNumericEditor#options:allowNullValue). Note: that is used as default. * "float" the Number object is used with the limits of a float and if the value is not set, then the null or Number.NaN is used depending on the option [allowNullValue](ui.igNumericEditor#options:allowNullValue). @@ -27245,7 +27218,6 @@ interface IgNumericEditor { * Notes: The "+" character is not supported in edit mode. * * - * * Valid values: * "null" scientific format is disabled. * "E" scientific format is enabled and the "E" character is used. @@ -27309,7 +27281,6 @@ interface IgNumericEditor { * Gets visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * * - * * Valid values: * "dropdown" A button to open/close the list is located on the right side of the editor. * "clear" A button to clear the value is located on the right side of the editor. @@ -27414,6 +27385,14 @@ interface IgNumericEditor { */ suppressNotifications?: boolean; + /** + * Gets/Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * Note: When drop down is opened the only way to close it will be using the drop down button. + * + */ + suppressKeyboard?: boolean; + /** * Gets/Sets the width of the control. * @@ -27545,14 +27524,14 @@ interface IgNumericEditorMethods { /** * Gets/Sets editor value. * - * @param newValue New editor value. + * @param newValue New editor value. */ value(newValue?: number): number; /** * Finds index of list item by text that matches with the search parameters. * - * @param number The text to search for. + * @param number The text to search for. */ findListItemIndex(number: number): number; getSelectedText(): void; @@ -27562,14 +27541,14 @@ interface IgNumericEditorMethods { /** * Increments value in editor according to the parameter or selects the previous item from the drop-down list if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * - * @param delta Increments value. + * @param delta Increments value. */ spinUp(delta?: number): void; /** * Decrements value in editor according to the parameter selects the next item from the drop-down list if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * - * @param delta Decrement value. + * @param delta Decrement value. */ spinDown(delta?: number): void; @@ -27626,7 +27605,7 @@ interface IgNumericEditorMethods { /** * Gets the index of the selected list item. Sets selected item by index. * - * @param index The index of the item that needs to be selected. + * @param index The index of the item that needs to be selected. */ selectedListIndex(index?: number): number; @@ -27637,17 +27616,17 @@ interface IgNumericEditorMethods { /** * Inserts the text at the location of the caret or over the current selection. If the editor is focused the method will insert the text over the current selection. If the editor is not focused the method will set the text as value of the editor. - * Note: The method raises [textChanged](ui.igtexteditor#events:textChanged) event. + * Note: The method raises [textChanged](ui.igtexteditor#events:textChanged) event. * - * @param string The string to be inserted. + * @param string The string to be inserted. */ insert(string: string): void; /** * Selects the text between start and end indices in the editor. If the parameters are equal, then the method sets location of caret. The method has effect only when the editor has focus. * - * @param start Start of the selection. - * @param end End of the selection. + * @param start Start of the selection. + * @param end End of the selection. */ select(start: number, end: number): void; @@ -27788,7 +27767,6 @@ interface IgCurrencyEditor { * In addition, the maximum value that can be set to [minDecimals](ui.igNumericEditor#options:minDecimals) and [maxDecimals](ui.igNumericEditor#options:maxDecimals) options can be 15, when editor is in 'double' mode and 7, when in 'float' mode. * * - * * Valid values: * "double" the Number object is used with the limits of a double and if the value is not set, then the null or Number.NaN is used depending on the option [allowNullValue](ui.igNumericEditor#options:allowNullValue). Note: that is used as default. * "float" the Number object is used with the limits of a float and if the value is not set, then the null or Number.NaN is used depending on the option [allowNullValue](ui.igNumericEditor#options:allowNullValue). @@ -27834,7 +27812,6 @@ interface IgCurrencyEditor { * Notes: The "+" character is not supported in edit mode. * * - * * Valid values: * "null" scientific format is disabled. * "E" scientific format is enabled and the "E" character is used. @@ -27898,7 +27875,6 @@ interface IgCurrencyEditor { * Gets visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * * - * * Valid values: * "dropdown" A button to open/close the list is located on the right side of the editor. * "clear" A button to clear the value is located on the right side of the editor. @@ -28003,6 +27979,14 @@ interface IgCurrencyEditor { */ suppressNotifications?: boolean; + /** + * Gets/Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * Note: When drop down is opened the only way to close it will be using the drop down button. + * + */ + suppressKeyboard?: boolean; + /** * Gets/Sets the width of the control. * @@ -28068,21 +28052,21 @@ interface IgCurrencyEditorMethods { /** * Gets/sets a string that is used as the currency symbol shown with the number in the input. The value provided as a param is propagated to the currencySymbol option and thus has the same priority as the option. * - * @param symbol New currency symbol. + * @param symbol New currency symbol. */ currencySymbol(symbol?: Object): string; /** * Gets/Sets editor value. * - * @param newValue New editor value. + * @param newValue New editor value. */ value(newValue?: number): number; /** * Finds index of list item by text that matches with the search parameters. * - * @param number The text to search for. + * @param number The text to search for. */ findListItemIndex(number: number): number; getSelectedText(): void; @@ -28092,14 +28076,14 @@ interface IgCurrencyEditorMethods { /** * Increments value in editor according to the parameter or selects the previous item from the drop-down list if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * - * @param delta Increments value. + * @param delta Increments value. */ spinUp(delta?: number): void; /** * Decrements value in editor according to the parameter selects the next item from the drop-down list if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * - * @param delta Decrement value. + * @param delta Decrement value. */ spinDown(delta?: number): void; @@ -28154,7 +28138,6 @@ interface IgPercentEditor { * In addition, the maximum value that can be set to [minDecimals](ui.igPercentEditor#options:minDecimals) and [maxDecimals](ui.igPercentEditor#options:maxDecimals) options can be 15, when editor is in 'double' mode and 7, when in 'float' mode. * * - * * Valid values: * "double" the Number object is used with the limits of a double and if the value is not set, then the null or Number.NaN is used depending on the option [allowNullValue](ui.igpercenteditor#options:allowNullValue). Note: that is used as default. * "float" the Number object is used with the limits of a float and if the value is not set, then the null or Number.NaN is used depending on the option [allowNullValue](ui.igpercenteditor#options:allowNullValue). @@ -28302,7 +28285,6 @@ interface IgPercentEditor { * Notes: The "+" character is not supported in edit mode. * * - * * Valid values: * "null" scientific format is disabled. * "E" scientific format is enabled and the "E" character is used. @@ -28366,7 +28348,6 @@ interface IgPercentEditor { * Gets visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * * - * * Valid values: * "dropdown" A button to open/close the list is located on the right side of the editor. * "clear" A button to clear the value is located on the right side of the editor. @@ -28471,6 +28452,14 @@ interface IgPercentEditor { */ suppressNotifications?: boolean; + /** + * Gets/Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * Note: When drop down is opened the only way to close it will be using the drop down button. + * + */ + suppressKeyboard?: boolean; + /** * Gets/Sets the width of the control. * @@ -28535,30 +28524,30 @@ interface IgPercentEditor { interface IgPercentEditorMethods { /** * Paste text at location of the caret or over the current selection. Best used during editing, as the method will instead set the text as value (modified by the [displayFactor](ui.igpercenteditor#options:displayFactor)) if the editor is not focused. - * Note: the method raises the [textChanged](ui.igpercenteditor#events:textChanged) event. + * Note: the method raises the [textChanged](ui.igpercenteditor#events:textChanged) event. * - * @param string The string to be inserted. + * @param string The string to be inserted. */ insert(string: string): void; /** * Gets/Sets a string that is used as the percent symbol shown with the number in the input. The value provided as a param is propagated to the [percentSymbol](ui.igpercenteditor#options:percentSymbol) option and thus has the same priority as the option. * - * @param symbol New percent symbol. + * @param symbol New percent symbol. */ percentSymbol(symbol?: Object): string; /** * Gets/Sets editor value. * - * @param newValue New editor value. + * @param newValue New editor value. */ value(newValue?: number): number; /** * Finds index of list item by text that matches with the search parameters. * - * @param number The text to search for. + * @param number The text to search for. */ findListItemIndex(number: number): number; getSelectedText(): void; @@ -28568,14 +28557,14 @@ interface IgPercentEditorMethods { /** * Increments value in editor according to the parameter or selects the previous item from the drop-down list if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * - * @param delta Increments value. + * @param delta Increments value. */ spinUp(delta?: number): void; /** * Decrements value in editor according to the parameter selects the next item from the drop-down list if [isLimitedToListValues](ui.%%WidgetNameLowered%%#options:isLimitedToListValues) is enabled. * - * @param delta Decrement value. + * @param delta Decrement value. */ spinDown(delta?: number): void; @@ -28755,6 +28744,7 @@ interface IgMaskEditor { * */ value?: any; + suppressKeyboard?: boolean; /** * Gets/Sets the horizontal alignment of the text in the editor. @@ -28911,7 +28901,7 @@ interface IgMaskEditorMethods { /** * Gets/Sets mask editor value. * - * @param newValue New mask editor value. + * @param newValue New mask editor value. */ value(newValue?: string): string; dropDownContainer(): void; @@ -28959,17 +28949,17 @@ interface IgMaskEditorMethods { /** * Inserts the text at the location of the caret or over the current selection. If the editor is focused the method will insert the text over the current selection. If the editor is not focused the method will set the text as value of the editor. - * Note: The method raises [textChanged](ui.igtexteditor#events:textChanged) event. + * Note: The method raises [textChanged](ui.igtexteditor#events:textChanged) event. * - * @param string The string to be inserted. + * @param string The string to be inserted. */ insert(string: string): void; /** * Selects the text between start and end indices in the editor. If the parameters are equal, then the method sets location of caret. The method has effect only when the editor has focus. * - * @param start Start of the selection. - * @param end End of the selection. + * @param start Start of the selection. + * @param end End of the selection. */ select(start: number, end: number): void; } @@ -28983,21 +28973,21 @@ interface IgDateEditor { * Note! This option doesn't use the dateInputFormat to extract the date. * */ - value?: Object; + value?: Date; /** * Gets the minimum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. * Note! This option doesn't use the dateInputFormat to extract the date. * */ - minValue?: Object; + minValue?: Date; /** * Gets the maximum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. * Note! This option doesn't use the dateInputFormat to extract the date. * */ - maxValue?: Object; + maxValue?: Date; /** * Gets/Sets format of date while editor has no focus. @@ -29212,6 +29202,7 @@ interface IgDateEditor { * This option is inherited from a parent widget and it's not applicable for igDateEditor */ toLower?: boolean; + suppressKeyboard?: boolean; /** * Gets custom regional settings for editor. If it is string, then $.ig.regional[stringValue] is assumed. @@ -29414,17 +29405,17 @@ interface IgDateEditorMethods { /** * Gets/Sets editor value. * - * Note! This option doesn't use the dateInputFormat to extract the date + * Note! This option doesn't use the dateInputFormat to extract the date * - * @param newValue New editor value. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. For example Date(/"thicks"/). + * @param newValue New editor value. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. For example Date(/"thicks"/). */ - value(newValue?: Object): Object; + value(newValue?: Date): Date; /** * Gets selected date as a date object. This method can be used when dataMode is set as either displayModeText or editModeText. * In such cases the value() method will not return date object and getSelectedDate() can be used to replace that functionality. */ - getSelectedDate(): Object; + getSelectedDate(): Date; /** * Sets selected date. This method can be used when dataMode is set as either displayModeText or editModeText. @@ -29432,19 +29423,19 @@ interface IgDateEditorMethods { * * @param date */ - selectDate(date: Object): void; + selectDate(date: Date): void; /** * Increases the date or time period, depending on the current cursor position. * - * @param delta The increase delta. + * @param delta The increase delta. */ spinUp(delta?: number): void; /** * Decreases the date or time period, depending on the current cursor position. * - * @param delta The decrease delta. + * @param delta The decrease delta. */ spinDown(delta?: number): void; @@ -29557,26 +29548,33 @@ interface IgDatePicker { */ listWidth?: number; + /** + * Gets/Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * + */ + suppressKeyboard?: boolean; + /** * Gets/Sets the value of the editor. Date object can be set as value. String can be set and the editor will pass it to the Date object constructor and use the corresponding Date object as the value. MVC date format can be used too. * Note! This option doesn't use the dateInputFormat to extract the date. * */ - value?: Object; + value?: Date; /** * Gets the minimum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. * Note! This option doesn't use the dateInputFormat to extract the date. * */ - minValue?: Object; + minValue?: Date; /** * Gets the maximum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. * Note! This option doesn't use the dateInputFormat to extract the date. * */ - maxValue?: Object; + maxValue?: Date; /** * Gets/Sets format of date while editor has no focus. @@ -30003,17 +30001,17 @@ interface IgDatePickerMethods { /** * Gets/Sets editor value. * - * Note! This option doesn't use the dateInputFormat to extract the date + * Note! This option doesn't use the dateInputFormat to extract the date * - * @param newValue New editor value. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. For example Date(/"thicks"/). + * @param newValue New editor value. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. For example Date(/"thicks"/). */ - value(newValue?: Object): Object; + value(newValue?: Date): Date; /** * Gets selected date as a date object. This method can be used when dataMode is set as either displayModeText or editModeText. * In such cases the value() method will not return date object and getSelectedDate() can be used to replace that functionality. */ - getSelectedDate(): Object; + getSelectedDate(): Date; /** * Sets selected date. This method can be used when dataMode is set as either displayModeText or editModeText. @@ -30021,19 +30019,19 @@ interface IgDatePickerMethods { * * @param date */ - selectDate(date: Object): void; + selectDate(date: Date): void; /** * Increases the date or time period, depending on the current cursor position. * - * @param delta The increase delta. + * @param delta The increase delta. */ spinUp(delta?: number): void; /** * Decreases the date or time period, depending on the current cursor position. * - * @param delta The decrease delta. + * @param delta The decrease delta. */ spinDown(delta?: number): void; @@ -30067,7 +30065,6 @@ interface IgCheckboxEditor { * Gets/Sets size of the checkbox based on preset styles.For different sizes, define 'width' and 'height' options instead. * * - * * Valid values: * "verysmall" The size of the Checkbox editor is very small. * "small" The size of the Checkbox editor is small. @@ -30243,7 +30240,7 @@ interface IgCheckboxEditor { * Use ui.element to obtain a reference to the event target. * Use ui.editorInput to get a reference to the editor field. */ - focus?: FocusEvent; + focus?: IgFocusEvent; /** * Event which is raised on keydown event. @@ -30287,10 +30284,10 @@ interface IgCheckboxEditorMethods { /** * Gets/Sets Current checked state/Value of the igCheckboxEditor that will be submitted by the HTML form. - * 1. If the [value](ui.igcheckboxeditor#options:value) option IS NOT defined, then 'value' method will match the checked state of the editor. - * This option is used when the checkbox is intended to operate as a Boolean editor. In that case the return type is bool. - * 2. If the [value](ui.igcheckboxeditor#options:value) option IS defined, then 'value' method will return the value that will be submitted when the editor is checked and the form is submitted. - * To get checked state regardless of the 'value' option, use $(".selector").igCheckboxEditor("option", "checked"); + * 1. If the [value](ui.igcheckboxeditor#options:value) option IS NOT defined, then 'value' method will match the checked state of the editor. + * This option is used when the checkbox is intended to operate as a Boolean editor. In that case the return type is bool. + * 2. If the [value](ui.igcheckboxeditor#options:value) option IS defined, then 'value' method will return the value that will be submitted when the editor is checked and the form is submitted. + * To get checked state regardless of the 'value' option, use $(".selector").igCheckboxEditor("option", "checked"); * * @param newValue */ @@ -30304,7 +30301,7 @@ interface IgCheckboxEditorMethods { /** * Gets/Sets name attribute applied to the editor element. * - * @param newValue The new input name. + * @param newValue The new input name. */ inputName(newValue?: string): string; @@ -30326,7 +30323,7 @@ interface IgCheckboxEditorMethods { /** * Sets focus to the editor after the specified delay. * - * @param delay The delay before focusing the editor. + * @param delay The delay before focusing the editor. */ setFocus(delay?: number): void; @@ -30377,6 +30374,7 @@ interface JQuery { * Gets/Sets the width of the control. * */ + igBaseEditor(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -30385,12 +30383,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igBaseEditor(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets the height of the control. * */ + igBaseEditor(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -30399,6 +30399,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igBaseEditor(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -30449,6 +30450,7 @@ interface JQuery { * Gets/Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string * */ + igBaseEditor(optionLiteral: 'option', optionName: "nullValue"): string|number; /** @@ -30457,6 +30459,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igBaseEditor(optionLiteral: 'option', optionName: "nullValue", optionValue: string|number): void; /** @@ -30682,7 +30685,7 @@ interface JQuery { * Use ui.element to obtain a reference to the event target. * Use ui.editorInput to get a reference to the editor field. */ - igBaseEditor(optionLiteral: 'option', optionName: "focus"): FocusEvent; + igBaseEditor(optionLiteral: 'option', optionName: "focus"): IgFocusEvent; /** * Event which is raised when input field of editor gets focus. @@ -30693,7 +30696,7 @@ interface JQuery { * * @optionValue Define event handler function. */ - igBaseEditor(optionLiteral: 'option', optionName: "focus", optionValue: FocusEvent): void; + igBaseEditor(optionLiteral: 'option', optionName: "focus", optionValue: IgFocusEvent): void; /** * Event which is raised on keydown event. @@ -30789,8 +30792,8 @@ interface JQuery { * Event which is raised after the editor value is changed. It can be raised after loosing focus or on spin events. * Function takes arguments evt and ui. * Use ui.owner to obtain reference to igEditor. - * Use ui.newValue to obtain the new value. - * Use ui.originalValue to obtain the original value. + * Use ui.newValue to obtain the value entered from the user after internal formatting. + * Use ui.originalValue to obtain the value entered from the user before internal formatting. * Use ui.editorInput to obtain reference to the editor input. */ igBaseEditor(optionLiteral: 'option', optionName: "valueChanged"): ValueChangedEvent; @@ -30799,8 +30802,8 @@ interface JQuery { * Event which is raised after the editor value is changed. It can be raised after loosing focus or on spin events. * Function takes arguments evt and ui. * Use ui.owner to obtain reference to igEditor. - * Use ui.newValue to obtain the new value. - * Use ui.originalValue to obtain the original value. + * Use ui.newValue to obtain the value entered from the user after internal formatting. + * Use ui.originalValue to obtain the value entered from the user before internal formatting. * Use ui.editorInput to obtain reference to the editor input. * * @optionValue Define event handler function. @@ -30848,17 +30851,17 @@ interface JQuery { /** * Gets visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * - * */ + igTextEditor(optionLiteral: 'option', optionName: "buttonType"): string; /** * Visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * * - * * @optionValue New value to be set. */ + igTextEditor(optionLiteral: 'option', optionName: "buttonType", optionValue: string): void; /** @@ -31003,6 +31006,7 @@ interface JQuery { * Gets/Sets the horizontal alignment of the text in the editor. * */ + igTextEditor(optionLiteral: 'option', optionName: "textAlign"): string; /** @@ -31011,6 +31015,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTextEditor(optionLiteral: 'option', optionName: "textAlign", optionValue: string): void; /** @@ -31031,6 +31036,7 @@ interface JQuery { * Gets/Sets the action when the editor gets focused. The default value is selectAll. * */ + igTextEditor(optionLiteral: 'option', optionName: "selectionOnFocus"): string; /** @@ -31039,12 +31045,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTextEditor(optionLiteral: 'option', optionName: "selectionOnFocus", optionValue: string): void; /** * Gets the text mode of the editor such as: single-line text editor, password editor or multiline editor. That option has effect only on initialization. If based element (selector) is TEXTAREA, then it is used as input-field. * */ + igTextEditor(optionLiteral: 'option', optionName: "textMode"): string; /** @@ -31053,6 +31061,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTextEditor(optionLiteral: 'option', optionName: "textMode", optionValue: string): void; /** @@ -31115,6 +31124,7 @@ interface JQuery { * Gets/Sets the drop-down list opening orientation when the list gets open. If the option is set to auto the editor has priority to open the drop-down list bottom. If the space is not enough it tries to open the list top. If the space is not enough in both directions then the list gets opened at the bottom of the editor. * */ + igTextEditor(optionLiteral: 'option', optionName: "dropDownOrientation"): string; /** @@ -31123,6 +31133,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTextEditor(optionLiteral: 'option', optionName: "dropDownOrientation", optionValue: string): void; /** @@ -31219,10 +31230,29 @@ interface JQuery { */ igTextEditor(optionLiteral: 'option', optionName: "suppressNotifications", optionValue: boolean): void; + /** + * Gets/Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * Note: When drop down is opened the only way to close it will be using the drop down button. + * + */ + igTextEditor(optionLiteral: 'option', optionName: "suppressKeyboard"): boolean; + + /** + * /Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * Note: When drop down is opened the only way to close it will be using the drop down button. + * + * + * @optionValue New value to be set. + */ + igTextEditor(optionLiteral: 'option', optionName: "suppressKeyboard", optionValue: boolean): void; + /** * Gets/Sets the width of the control. * */ + igTextEditor(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -31231,12 +31261,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTextEditor(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets the height of the control. * */ + igTextEditor(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -31245,6 +31277,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTextEditor(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -31295,6 +31328,7 @@ interface JQuery { * Gets/Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string * */ + igTextEditor(optionLiteral: 'option', optionName: "nullValue"): string|number; /** @@ -31303,6 +31337,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTextEditor(optionLiteral: 'option', optionName: "nullValue", optionValue: string|number): void; /** @@ -31674,7 +31709,7 @@ interface JQuery { * Use ui.element to obtain a reference to the event target. * Use ui.editorInput to get a reference to the editor field. */ - igTextEditor(optionLiteral: 'option', optionName: "focus"): FocusEvent; + igTextEditor(optionLiteral: 'option', optionName: "focus"): IgFocusEvent; /** * Event which is raised when input field of editor gets focus. @@ -31685,7 +31720,7 @@ interface JQuery { * * @optionValue Define event handler function. */ - igTextEditor(optionLiteral: 'option', optionName: "focus", optionValue: FocusEvent): void; + igTextEditor(optionLiteral: 'option', optionName: "focus", optionValue: IgFocusEvent): void; /** * Event which is raised on keydown event. @@ -31781,8 +31816,8 @@ interface JQuery { * Event which is raised after the editor value is changed. It can be raised after loosing focus or on spin events. * Function takes arguments evt and ui. * Use ui.owner to obtain reference to igEditor. - * Use ui.newValue to obtain the new value. - * Use ui.originalValue to obtain the original value. + * Use ui.newValue to obtain the value entered from the user after internal formatting. + * Use ui.originalValue to obtain the value entered from the user before internal formatting. * Use ui.editorInput to obtain reference to the editor input. */ igTextEditor(optionLiteral: 'option', optionName: "valueChanged"): ValueChangedEvent; @@ -31791,8 +31826,8 @@ interface JQuery { * Event which is raised after the editor value is changed. It can be raised after loosing focus or on spin events. * Function takes arguments evt and ui. * Use ui.owner to obtain reference to igEditor. - * Use ui.newValue to obtain the new value. - * Use ui.originalValue to obtain the original value. + * Use ui.newValue to obtain the value entered from the user after internal formatting. + * Use ui.originalValue to obtain the value entered from the user before internal formatting. * Use ui.editorInput to obtain reference to the editor input. * * @optionValue Define event handler function. @@ -32035,6 +32070,7 @@ interface JQuery { * Gets/Sets the horizontal alignment of the text in the editor. * */ + igNumericEditor(optionLiteral: 'option', optionName: "textAlign"): string; /** @@ -32043,6 +32079,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igNumericEditor(optionLiteral: 'option', optionName: "textAlign", optionValue: string): void; /** @@ -32050,8 +32087,8 @@ interface JQuery { * The range for the specific type follows the numeric type standards, e.g. in .NET Framework [floating-point](https://msdn.microsoft.com/en-us/library/9ahet949.aspx) types and [integral types](https://msdn.microsoft.com/en-us/library/exx3b86w.aspx). * In addition, the maximum value that can be set to [minDecimals](ui.igNumericEditor#options:minDecimals) and [maxDecimals](ui.igNumericEditor#options:maxDecimals) options can be 15, when editor is in 'double' mode and 7, when in 'float' mode. * - * */ + igNumericEditor(optionLiteral: 'option', optionName: "dataMode"): string; /** @@ -32060,9 +32097,9 @@ interface JQuery { * In addition, the maximum value that can be set to [minDecimals](ui.igNumericEditor#options:minDecimals) and [maxDecimals](ui.igNumericEditor#options:maxDecimals) options can be 15, when editor is in 'double' mode and 7, when in 'float' mode. * * - * * @optionValue New value to be set. */ + igNumericEditor(optionLiteral: 'option', optionName: "dataMode", optionValue: string): void; /** @@ -32128,8 +32165,8 @@ interface JQuery { * If that option is set, then numeric value appears as a string with possible E-power flag. In edit mode the "E" or "e" character can be entered as well. * Notes: The "+" character is not supported in edit mode. * - * */ + igNumericEditor(optionLiteral: 'option', optionName: "scientificFormat"): string; /** @@ -32138,9 +32175,9 @@ interface JQuery { * Notes: The "+" character is not supported in edit mode. * * - * * @optionValue New value to be set. */ + igNumericEditor(optionLiteral: 'option', optionName: "scientificFormat", optionValue: string): void; /** @@ -32260,17 +32297,17 @@ interface JQuery { /** * Gets visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * - * */ + igNumericEditor(optionLiteral: 'option', optionName: "buttonType"): string; /** * Visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * * - * * @optionValue New value to be set. */ + igNumericEditor(optionLiteral: 'option', optionName: "buttonType", optionValue: string): void; /** @@ -32373,6 +32410,7 @@ interface JQuery { * Gets/Sets the action when the editor gets focused. The default value is selectAll. * */ + igNumericEditor(optionLiteral: 'option', optionName: "selectionOnFocus"): string; /** @@ -32381,6 +32419,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igNumericEditor(optionLiteral: 'option', optionName: "selectionOnFocus", optionValue: string): void; /** @@ -32415,6 +32454,7 @@ interface JQuery { * Gets/Sets the drop-down list opening orientation when the list gets open. If the option is set to auto the editor has priority to open the drop-down list bottom. If the space is not enough it tries to open the list top. If the space is not enough in both directions then the list gets opened at the bottom of the editor. * */ + igNumericEditor(optionLiteral: 'option', optionName: "dropDownOrientation"): string; /** @@ -32423,6 +32463,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igNumericEditor(optionLiteral: 'option', optionName: "dropDownOrientation", optionValue: string): void; /** @@ -32471,10 +32512,29 @@ interface JQuery { */ igNumericEditor(optionLiteral: 'option', optionName: "suppressNotifications", optionValue: boolean): void; + /** + * Gets/Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * Note: When drop down is opened the only way to close it will be using the drop down button. + * + */ + igNumericEditor(optionLiteral: 'option', optionName: "suppressKeyboard"): boolean; + + /** + * /Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * Note: When drop down is opened the only way to close it will be using the drop down button. + * + * + * @optionValue New value to be set. + */ + igNumericEditor(optionLiteral: 'option', optionName: "suppressKeyboard", optionValue: boolean): void; + /** * Gets/Sets the width of the control. * */ + igNumericEditor(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -32483,12 +32543,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igNumericEditor(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets the height of the control. * */ + igNumericEditor(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -32497,6 +32559,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igNumericEditor(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -32517,6 +32580,7 @@ interface JQuery { * Gets/Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string * */ + igNumericEditor(optionLiteral: 'option', optionName: "nullValue"): string|number; /** @@ -32525,6 +32589,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igNumericEditor(optionLiteral: 'option', optionName: "nullValue", optionValue: string|number): void; /** @@ -32989,6 +33054,7 @@ interface JQuery { * Gets/Sets the horizontal alignment of the text in the editor. * */ + igCurrencyEditor(optionLiteral: 'option', optionName: "textAlign"): string; /** @@ -32997,6 +33063,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCurrencyEditor(optionLiteral: 'option', optionName: "textAlign", optionValue: string): void; /** @@ -33004,8 +33071,8 @@ interface JQuery { * The range for the specific type follows the numeric type standards, e.g. in .NET Framework [floating-point](https://msdn.microsoft.com/en-us/library/9ahet949.aspx) types and [integral types](https://msdn.microsoft.com/en-us/library/exx3b86w.aspx). * In addition, the maximum value that can be set to [minDecimals](ui.igNumericEditor#options:minDecimals) and [maxDecimals](ui.igNumericEditor#options:maxDecimals) options can be 15, when editor is in 'double' mode and 7, when in 'float' mode. * - * */ + igCurrencyEditor(optionLiteral: 'option', optionName: "dataMode"): string; /** @@ -33014,9 +33081,9 @@ interface JQuery { * In addition, the maximum value that can be set to [minDecimals](ui.igNumericEditor#options:minDecimals) and [maxDecimals](ui.igNumericEditor#options:maxDecimals) options can be 15, when editor is in 'double' mode and 7, when in 'float' mode. * * - * * @optionValue New value to be set. */ + igCurrencyEditor(optionLiteral: 'option', optionName: "dataMode", optionValue: string): void; /** @@ -33082,8 +33149,8 @@ interface JQuery { * If that option is set, then numeric value appears as a string with possible E-power flag. In edit mode the "E" or "e" character can be entered as well. * Notes: The "+" character is not supported in edit mode. * - * */ + igCurrencyEditor(optionLiteral: 'option', optionName: "scientificFormat"): string; /** @@ -33092,9 +33159,9 @@ interface JQuery { * Notes: The "+" character is not supported in edit mode. * * - * * @optionValue New value to be set. */ + igCurrencyEditor(optionLiteral: 'option', optionName: "scientificFormat", optionValue: string): void; /** @@ -33214,17 +33281,17 @@ interface JQuery { /** * Gets visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * - * */ + igCurrencyEditor(optionLiteral: 'option', optionName: "buttonType"): string; /** * Visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * * - * * @optionValue New value to be set. */ + igCurrencyEditor(optionLiteral: 'option', optionName: "buttonType", optionValue: string): void; /** @@ -33327,6 +33394,7 @@ interface JQuery { * Gets/Sets the action when the editor gets focused. The default value is selectAll. * */ + igCurrencyEditor(optionLiteral: 'option', optionName: "selectionOnFocus"): string; /** @@ -33335,6 +33403,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCurrencyEditor(optionLiteral: 'option', optionName: "selectionOnFocus", optionValue: string): void; /** @@ -33369,6 +33438,7 @@ interface JQuery { * Gets/Sets the drop-down list opening orientation when the list gets open. If the option is set to auto the editor has priority to open the drop-down list bottom. If the space is not enough it tries to open the list top. If the space is not enough in both directions then the list gets opened at the bottom of the editor. * */ + igCurrencyEditor(optionLiteral: 'option', optionName: "dropDownOrientation"): string; /** @@ -33377,6 +33447,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCurrencyEditor(optionLiteral: 'option', optionName: "dropDownOrientation", optionValue: string): void; /** @@ -33425,10 +33496,29 @@ interface JQuery { */ igCurrencyEditor(optionLiteral: 'option', optionName: "suppressNotifications", optionValue: boolean): void; + /** + * Gets/Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * Note: When drop down is opened the only way to close it will be using the drop down button. + * + */ + igCurrencyEditor(optionLiteral: 'option', optionName: "suppressKeyboard"): boolean; + + /** + * /Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * Note: When drop down is opened the only way to close it will be using the drop down button. + * + * + * @optionValue New value to be set. + */ + igCurrencyEditor(optionLiteral: 'option', optionName: "suppressKeyboard", optionValue: boolean): void; + /** * Gets/Sets the width of the control. * */ + igCurrencyEditor(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -33437,12 +33527,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igCurrencyEditor(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets the height of the control. * */ + igCurrencyEditor(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -33451,6 +33543,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCurrencyEditor(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -33471,6 +33564,7 @@ interface JQuery { * Gets/Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string * */ + igCurrencyEditor(optionLiteral: 'option', optionName: "nullValue"): string|number; /** @@ -33479,6 +33573,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCurrencyEditor(optionLiteral: 'option', optionName: "nullValue", optionValue: string|number): void; /** @@ -33621,8 +33716,8 @@ interface JQuery { * The range for the specific type follows the numeric type standards, e.g. in .NET Framework [floating-point](https://msdn.microsoft.com/en-us/library/9ahet949.aspx) types and [integral types](https://msdn.microsoft.com/en-us/library/exx3b86w.aspx). * In addition, the maximum value that can be set to [minDecimals](ui.igPercentEditor#options:minDecimals) and [maxDecimals](ui.igPercentEditor#options:maxDecimals) options can be 15, when editor is in 'double' mode and 7, when in 'float' mode. * - * */ + igPercentEditor(optionLiteral: 'option', optionName: "dataMode"): string; /** @@ -33631,9 +33726,9 @@ interface JQuery { * In addition, the maximum value that can be set to [minDecimals](ui.igPercentEditor#options:minDecimals) and [maxDecimals](ui.igPercentEditor#options:maxDecimals) options can be 15, when editor is in 'double' mode and 7, when in 'float' mode. * * - * * @optionValue New value to be set. */ + igPercentEditor(optionLiteral: 'option', optionName: "dataMode", optionValue: string): void; /** @@ -33856,6 +33951,7 @@ interface JQuery { * Gets/Sets the horizontal alignment of the text in the editor. * */ + igPercentEditor(optionLiteral: 'option', optionName: "textAlign"): string; /** @@ -33864,6 +33960,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPercentEditor(optionLiteral: 'option', optionName: "textAlign", optionValue: string): void; /** @@ -33915,8 +34012,8 @@ interface JQuery { * If that option is set, then numeric value appears as a string with possible E-power flag. In edit mode the "E" or "e" character can be entered as well. * Notes: The "+" character is not supported in edit mode. * - * */ + igPercentEditor(optionLiteral: 'option', optionName: "scientificFormat"): string; /** @@ -33925,9 +34022,9 @@ interface JQuery { * Notes: The "+" character is not supported in edit mode. * * - * * @optionValue New value to be set. */ + igPercentEditor(optionLiteral: 'option', optionName: "scientificFormat", optionValue: string): void; /** @@ -34047,17 +34144,17 @@ interface JQuery { /** * Gets visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * - * */ + igPercentEditor(optionLiteral: 'option', optionName: "buttonType"): string; /** * Visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too.Note! This option can not be set runtime. * * - * * @optionValue New value to be set. */ + igPercentEditor(optionLiteral: 'option', optionName: "buttonType", optionValue: string): void; /** @@ -34160,6 +34257,7 @@ interface JQuery { * Gets/Sets the action when the editor gets focused. The default value is selectAll. * */ + igPercentEditor(optionLiteral: 'option', optionName: "selectionOnFocus"): string; /** @@ -34168,6 +34266,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPercentEditor(optionLiteral: 'option', optionName: "selectionOnFocus", optionValue: string): void; /** @@ -34202,6 +34301,7 @@ interface JQuery { * Gets/Sets the drop-down list opening orientation when the list gets open. If the option is set to auto the editor has priority to open the drop-down list bottom. If the space is not enough it tries to open the list top. If the space is not enough in both directions then the list gets opened at the bottom of the editor. * */ + igPercentEditor(optionLiteral: 'option', optionName: "dropDownOrientation"): string; /** @@ -34210,6 +34310,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPercentEditor(optionLiteral: 'option', optionName: "dropDownOrientation", optionValue: string): void; /** @@ -34258,10 +34359,29 @@ interface JQuery { */ igPercentEditor(optionLiteral: 'option', optionName: "suppressNotifications", optionValue: boolean): void; + /** + * Gets/Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * Note: When drop down is opened the only way to close it will be using the drop down button. + * + */ + igPercentEditor(optionLiteral: 'option', optionName: "suppressKeyboard"): boolean; + + /** + * /Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * Note: When drop down is opened the only way to close it will be using the drop down button. + * + * + * @optionValue New value to be set. + */ + igPercentEditor(optionLiteral: 'option', optionName: "suppressKeyboard", optionValue: boolean): void; + /** * Gets/Sets the width of the control. * */ + igPercentEditor(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -34270,12 +34390,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igPercentEditor(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets the height of the control. * */ + igPercentEditor(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -34284,6 +34406,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPercentEditor(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -34304,6 +34427,7 @@ interface JQuery { * Gets/Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string * */ + igPercentEditor(optionLiteral: 'option', optionName: "nullValue"): string|number; /** @@ -34312,6 +34436,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPercentEditor(optionLiteral: 'option', optionName: "nullValue", optionValue: string|number): void; /** @@ -34420,6 +34545,7 @@ interface JQuery { * Gets visibility of the clear button. That option can be set only on initialization. * */ + igMaskEditor(optionLiteral: 'option', optionName: "buttonType"): string; /** @@ -34428,6 +34554,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igMaskEditor(optionLiteral: 'option', optionName: "buttonType", optionValue: string): void; /** @@ -34480,6 +34607,7 @@ interface JQuery { * It affects the value of the control (value method/option and submitted in forms). It defines what the value should contain from text, unfilled prompts and literals. The default is allText and when used value method/option returns the text entered, all prompts (positions) and literals. * */ + igMaskEditor(optionLiteral: 'option', optionName: "dataMode"): string; /** @@ -34488,6 +34616,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igMaskEditor(optionLiteral: 'option', optionName: "dataMode", optionValue: string): void; /** @@ -34733,11 +34862,14 @@ interface JQuery { * @optionValue New value to be set. */ igMaskEditor(optionLiteral: 'option', optionName: "value", optionValue: any): void; + igMaskEditor(optionLiteral: 'option', optionName: "suppressKeyboard"): boolean; + igMaskEditor(optionLiteral: 'option', optionName: "suppressKeyboard", optionValue: boolean): void; /** * Gets/Sets the horizontal alignment of the text in the editor. * */ + igMaskEditor(optionLiteral: 'option', optionName: "textAlign"): string; /** @@ -34746,6 +34878,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igMaskEditor(optionLiteral: 'option', optionName: "textAlign", optionValue: string): void; /** @@ -34766,6 +34899,7 @@ interface JQuery { * Gets/Sets the action when the editor gets focused. The default value is selectAll. * */ + igMaskEditor(optionLiteral: 'option', optionName: "selectionOnFocus"): string; /** @@ -34774,6 +34908,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igMaskEditor(optionLiteral: 'option', optionName: "selectionOnFocus", optionValue: string): void; /** @@ -34868,6 +35003,7 @@ interface JQuery { * Gets/Sets the width of the control. * */ + igMaskEditor(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -34876,12 +35012,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igMaskEditor(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets the height of the control. * */ + igMaskEditor(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -34890,6 +35028,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igMaskEditor(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -34926,6 +35065,7 @@ interface JQuery { * Gets/Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string * */ + igMaskEditor(optionLiteral: 'option', optionName: "nullValue"): string|number; /** @@ -34934,6 +35074,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igMaskEditor(optionLiteral: 'option', optionName: "nullValue", optionValue: string|number): void; /** @@ -34995,53 +35136,17 @@ interface JQuery { * @optionValue New value to be set. */ igMaskEditor(optionLiteral: 'option', optionName: "validatorOptions", optionValue: any): void; - - /** - */ igMaskEditor(optionLiteral: 'option', optionName: "dropDownListOpening"): DropDownListOpeningEvent; - - /** - */ igMaskEditor(optionLiteral: 'option', optionName: "dropDownListOpening", optionValue: DropDownListOpeningEvent): void; - - /** - */ igMaskEditor(optionLiteral: 'option', optionName: "dropDownListOpened"): DropDownListOpenedEvent; - - /** - */ igMaskEditor(optionLiteral: 'option', optionName: "dropDownListOpened", optionValue: DropDownListOpenedEvent): void; - - /** - */ igMaskEditor(optionLiteral: 'option', optionName: "dropDownListClosing"): DropDownListClosingEvent; - - /** - */ igMaskEditor(optionLiteral: 'option', optionName: "dropDownListClosing", optionValue: DropDownListClosingEvent): void; - - /** - */ igMaskEditor(optionLiteral: 'option', optionName: "dropDownListClosed"): DropDownListClosedEvent; - - /** - */ igMaskEditor(optionLiteral: 'option', optionName: "dropDownListClosed", optionValue: DropDownListClosedEvent): void; - - /** - */ igMaskEditor(optionLiteral: 'option', optionName: "dropDownItemSelecting"): DropDownItemSelectingEvent; - - /** - */ igMaskEditor(optionLiteral: 'option', optionName: "dropDownItemSelecting", optionValue: DropDownItemSelectingEvent): void; - - /** - */ igMaskEditor(optionLiteral: 'option', optionName: "dropDownItemSelected"): DropDownItemSelectedEvent; - - /** - */ igMaskEditor(optionLiteral: 'option', optionName: "dropDownItemSelected", optionValue: DropDownItemSelectedEvent): void; /** @@ -35072,9 +35177,9 @@ interface JQuery { igMaskEditor(methodName: string, ...methodParams: any[]): any; } interface JQuery { - igDateEditor(methodName: "value", newValue?: Object): Object; - igDateEditor(methodName: "getSelectedDate"): Object; - igDateEditor(methodName: "selectDate", date: Object): void; + igDateEditor(methodName: "value", newValue?: Date): Date; + igDateEditor(methodName: "getSelectedDate"): Date; + igDateEditor(methodName: "selectDate", date: Date): void; igDateEditor(methodName: "spinUp", delta?: number): void; igDateEditor(methodName: "spinDown", delta?: number): void; igDateEditor(methodName: "spinUpButton"): string; @@ -35094,7 +35199,7 @@ interface JQuery { * Note! This option doesn't use the dateInputFormat to extract the date. * */ - igDateEditor(optionLiteral: 'option', optionName: "value"): Object; + igDateEditor(optionLiteral: 'option', optionName: "value"): Date; /** * /Sets the value of the editor. Date object can be set as value. String can be set and the editor will pass it to the Date object constructor and use the corresponding Date object as the value. MVC date format can be used too. @@ -35103,14 +35208,14 @@ interface JQuery { * * @optionValue New value to be set. */ - igDateEditor(optionLiteral: 'option', optionName: "value", optionValue: Object): void; + igDateEditor(optionLiteral: 'option', optionName: "value", optionValue: Date): void; /** * Gets the minimum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. * Note! This option doesn't use the dateInputFormat to extract the date. * */ - igDateEditor(optionLiteral: 'option', optionName: "minValue"): Object; + igDateEditor(optionLiteral: 'option', optionName: "minValue"): Date; /** * The minimum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. @@ -35119,14 +35224,14 @@ interface JQuery { * * @optionValue New value to be set. */ - igDateEditor(optionLiteral: 'option', optionName: "minValue", optionValue: Object): void; + igDateEditor(optionLiteral: 'option', optionName: "minValue", optionValue: Date): void; /** * Gets the maximum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. * Note! This option doesn't use the dateInputFormat to extract the date. * */ - igDateEditor(optionLiteral: 'option', optionName: "maxValue"): Object; + igDateEditor(optionLiteral: 'option', optionName: "maxValue"): Date; /** * The maximum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. @@ -35135,7 +35240,7 @@ interface JQuery { * * @optionValue New value to be set. */ - igDateEditor(optionLiteral: 'option', optionName: "maxValue", optionValue: Object): void; + igDateEditor(optionLiteral: 'option', optionName: "maxValue", optionValue: Date): void; /** * Gets/Sets format of date while editor has no focus. @@ -35294,6 +35399,7 @@ interface JQuery { * "2016-11-11T10:00:00+05:00" * */ + igDateEditor(optionLiteral: 'option', optionName: "dataMode"): string; /** @@ -35305,6 +35411,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDateEditor(optionLiteral: 'option', optionName: "dataMode", optionValue: string): void; /** @@ -35329,6 +35436,7 @@ interface JQuery { * Gets visibility of the spin and clear buttons. That option can be set only on initialization. Combinations like 'spin,clear' are supported too. * */ + igDateEditor(optionLiteral: 'option', optionName: "buttonType"): string; /** @@ -35337,6 +35445,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDateEditor(optionLiteral: 'option', optionName: "buttonType", optionValue: string): void; /** @@ -35429,6 +35538,7 @@ interface JQuery { * Gets/Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string * */ + igDateEditor(optionLiteral: 'option', optionName: "nullValue"): string|number|Date; /** @@ -35437,6 +35547,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDateEditor(optionLiteral: 'option', optionName: "nullValue", optionValue: string|number|Date): void; /** @@ -35594,6 +35705,8 @@ interface JQuery { * @optionValue New value to be set. */ igDateEditor(optionLiteral: 'option', optionName: "toLower", optionValue: boolean): void; + igDateEditor(optionLiteral: 'option', optionName: "suppressKeyboard"): boolean; + igDateEditor(optionLiteral: 'option', optionName: "suppressKeyboard", optionValue: boolean): void; /** * Gets custom regional settings for editor. If it is string, then $.ig.regional[stringValue] is assumed. @@ -35715,6 +35828,7 @@ interface JQuery { * Gets/Sets the horizontal alignment of the text in the editor. * */ + igDateEditor(optionLiteral: 'option', optionName: "textAlign"): string; /** @@ -35723,6 +35837,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDateEditor(optionLiteral: 'option', optionName: "textAlign", optionValue: string): void; /** @@ -35743,6 +35858,7 @@ interface JQuery { * Gets/Sets the action when the editor gets focused. The default value is selectAll. * */ + igDateEditor(optionLiteral: 'option', optionName: "selectionOnFocus"): string; /** @@ -35751,6 +35867,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDateEditor(optionLiteral: 'option', optionName: "selectionOnFocus", optionValue: string): void; /** @@ -35813,6 +35930,7 @@ interface JQuery { * Gets/Sets the width of the control. * */ + igDateEditor(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -35821,12 +35939,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igDateEditor(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets the height of the control. * */ + igDateEditor(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -35835,6 +35955,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDateEditor(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -36015,9 +36136,9 @@ interface JQuery { igDatePicker(methodName: "dropDownButton"): string; igDatePicker(methodName: "dropDownVisible"): boolean; igDatePicker(methodName: "destroy"): void; - igDatePicker(methodName: "value", newValue?: Object): Object; - igDatePicker(methodName: "getSelectedDate"): Object; - igDatePicker(methodName: "selectDate", date: Object): void; + igDatePicker(methodName: "value", newValue?: Date): Date; + igDatePicker(methodName: "getSelectedDate"): Date; + igDatePicker(methodName: "selectDate", date: Date): void; igDatePicker(methodName: "spinUp", delta?: number): void; igDatePicker(methodName: "spinDown", delta?: number): void; igDatePicker(methodName: "spinUpButton"): string; @@ -36042,6 +36163,7 @@ interface JQuery { * Gets visibility of the spin, clear and drop-down button. That option can be set only on initialization. Combinations like 'dropdown,spin' or 'spin,clear' are supported too. * */ + igDatePicker(optionLiteral: 'option', optionName: "buttonType"): string; /** @@ -36050,6 +36172,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDatePicker(optionLiteral: 'option', optionName: "buttonType", optionValue: string): void; /** @@ -36142,12 +36265,28 @@ interface JQuery { */ igDatePicker(optionLiteral: 'option', optionName: "listWidth", optionValue: number): void; + /** + * Gets/Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * + */ + igDatePicker(optionLiteral: 'option', optionName: "suppressKeyboard"): boolean; + + /** + * /Sets whether the onscreen keyboard (if available on device) should be shown when the dropdown button is clicked/tapped. This option prevents initial focus or removes it when the drop button is clicked/tapped. + * Note: The option does not perform device detection so its behavior is always active if enabled. + * + * + * @optionValue New value to be set. + */ + igDatePicker(optionLiteral: 'option', optionName: "suppressKeyboard", optionValue: boolean): void; + /** * Gets/Sets the value of the editor. Date object can be set as value. String can be set and the editor will pass it to the Date object constructor and use the corresponding Date object as the value. MVC date format can be used too. * Note! This option doesn't use the dateInputFormat to extract the date. * */ - igDatePicker(optionLiteral: 'option', optionName: "value"): Object; + igDatePicker(optionLiteral: 'option', optionName: "value"): Date; /** * /Sets the value of the editor. Date object can be set as value. String can be set and the editor will pass it to the Date object constructor and use the corresponding Date object as the value. MVC date format can be used too. @@ -36156,14 +36295,14 @@ interface JQuery { * * @optionValue New value to be set. */ - igDatePicker(optionLiteral: 'option', optionName: "value", optionValue: Object): void; + igDatePicker(optionLiteral: 'option', optionName: "value", optionValue: Date): void; /** * Gets the minimum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. * Note! This option doesn't use the dateInputFormat to extract the date. * */ - igDatePicker(optionLiteral: 'option', optionName: "minValue"): Object; + igDatePicker(optionLiteral: 'option', optionName: "minValue"): Date; /** * The minimum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. @@ -36172,14 +36311,14 @@ interface JQuery { * * @optionValue New value to be set. */ - igDatePicker(optionLiteral: 'option', optionName: "minValue", optionValue: Object): void; + igDatePicker(optionLiteral: 'option', optionName: "minValue", optionValue: Date): void; /** * Gets the maximum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. * Note! This option doesn't use the dateInputFormat to extract the date. * */ - igDatePicker(optionLiteral: 'option', optionName: "maxValue"): Object; + igDatePicker(optionLiteral: 'option', optionName: "maxValue"): Date; /** * The maximum value which can be entered in editor by user. Date object can be set as value. String value can be passed and the editor will use the javascript Date object constructor to create date object and will use it for the comparison. MVC date format can be used too. @@ -36188,7 +36327,7 @@ interface JQuery { * * @optionValue New value to be set. */ - igDatePicker(optionLiteral: 'option', optionName: "maxValue", optionValue: Object): void; + igDatePicker(optionLiteral: 'option', optionName: "maxValue", optionValue: Date): void; /** * Gets/Sets format of date while editor has no focus. @@ -36347,6 +36486,7 @@ interface JQuery { * "2016-11-11T10:00:00+05:00" * */ + igDatePicker(optionLiteral: 'option', optionName: "dataMode"): string; /** @@ -36358,6 +36498,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDatePicker(optionLiteral: 'option', optionName: "dataMode", optionValue: string): void; /** @@ -36468,6 +36609,7 @@ interface JQuery { * Gets/Sets the representation of null value. In case of default the value for the input is set to null, which makes the input to hold an empty string * */ + igDatePicker(optionLiteral: 'option', optionName: "nullValue"): string|number|Date; /** @@ -36476,6 +36618,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDatePicker(optionLiteral: 'option', optionName: "nullValue", optionValue: string|number|Date): void; /** @@ -36668,6 +36811,7 @@ interface JQuery { * Gets/Sets the horizontal alignment of the text in the editor. * */ + igDatePicker(optionLiteral: 'option', optionName: "textAlign"): string; /** @@ -36676,6 +36820,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDatePicker(optionLiteral: 'option', optionName: "textAlign", optionValue: string): void; /** @@ -36696,6 +36841,7 @@ interface JQuery { * Gets/Sets the action when the editor gets focused. The default value is selectAll. * */ + igDatePicker(optionLiteral: 'option', optionName: "selectionOnFocus"): string; /** @@ -36704,6 +36850,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDatePicker(optionLiteral: 'option', optionName: "selectionOnFocus", optionValue: string): void; /** @@ -36766,6 +36913,7 @@ interface JQuery { * Gets/Sets the width of the control. * */ + igDatePicker(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -36774,12 +36922,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igDatePicker(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets the height of the control. * */ + igDatePicker(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -36788,6 +36938,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igDatePicker(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -37035,17 +37186,17 @@ interface JQuery { /** * Gets/Sets size of the checkbox based on preset styles.For different sizes, define 'width' and 'height' options instead. * - * */ + igCheckboxEditor(optionLiteral: 'option', optionName: "size"): string; /** * /Sets size of the checkbox based on preset styles.For different sizes, define 'width' and 'height' options instead. * * - * * @optionValue New value to be set. */ + igCheckboxEditor(optionLiteral: 'option', optionName: "size", optionValue: string): void; /** @@ -37091,27 +37242,16 @@ interface JQuery { * @optionValue New value to be set. */ igCheckboxEditor(optionLiteral: 'option', optionName: "readOnly", optionValue: boolean): void; - - /** - */ igCheckboxEditor(optionLiteral: 'option', optionName: "allowNullValue"): boolean; - - /** - */ igCheckboxEditor(optionLiteral: 'option', optionName: "allowNullValue", optionValue: boolean): void; - - /** - */ igCheckboxEditor(optionLiteral: 'option', optionName: "nullValue"): any; - - /** - */ igCheckboxEditor(optionLiteral: 'option', optionName: "nullValue", optionValue: any): void; /** * Gets/Sets the width of the control. * */ + igCheckboxEditor(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -37120,12 +37260,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igCheckboxEditor(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets the height of the control. * */ + igCheckboxEditor(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -37134,6 +37276,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igCheckboxEditor(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -37413,7 +37556,7 @@ interface JQuery { * Use ui.element to obtain a reference to the event target. * Use ui.editorInput to get a reference to the editor field. */ - igCheckboxEditor(optionLiteral: 'option', optionName: "focus"): FocusEvent; + igCheckboxEditor(optionLiteral: 'option', optionName: "focus"): IgFocusEvent; /** * Event which is raised when input field of editor gets focus. @@ -37424,7 +37567,7 @@ interface JQuery { * * @optionValue Define event handler function. */ - igCheckboxEditor(optionLiteral: 'option', optionName: "focus", optionValue: FocusEvent): void; + igCheckboxEditor(optionLiteral: 'option', optionName: "focus", optionValue: IgFocusEvent): void; /** * Event which is raised on keydown event. @@ -37823,30 +37966,30 @@ interface IgFunnelChartMethods { /** * Gets array of selected slice items. * - * @param selection Array or selected slice items. - * @return array|object If parameter is undefined, then array of selected items is returned. Otherwise, it returns reference to igFunnelChart. + * @param selection Array or selected slice items. + * @return array|object If parameter is undefined, then array of selected items is returned. Otherwise, it returns reference to igFunnelChart. */ selectedSliceItems(selection?: any[]): any[]; /** * Gets sets array of indexes of selected slices. * - * @param selection Array or selected slice indexes. - * @return array|object If parameter is undefined, then array of selected indexes is returned. Otherwise, it returns reference to igFunnelChart. + * @param selection Array or selected slice indexes. + * @return array|object If parameter is undefined, then array of selected indexes is returned. Otherwise, it returns reference to igFunnelChart. */ selectedSliceIndexes(selection?: any[]): any[]; /** * Checks if slice is selected. * - * @param slice Index of slice or reference to slice-data-item. + * @param slice Index of slice or reference to slice-data-item. */ isSelected(slice: Object): boolean; /** * Toggles selected state of slice. * - * @param slice Index of slice or reference to slice-data-item. + * @param slice Index of slice or reference to slice-data-item. */ toggleSelection(slice: Object): Object; exportVisualData(): void; @@ -37859,14 +38002,14 @@ interface IgFunnelChartMethods { /** * Find index of item within actual data used by chart. * - * @param item The reference to item. + * @param item The reference to item. */ findIndexOfItem(item: Object): number; /** * Get item within actual data used by chart. That is similar to this.getData()[ index ]. * - * @param index Index of data item. + * @param index Index of data item. */ getDataItem(index: Object): Object; @@ -37878,68 +38021,68 @@ interface IgFunnelChartMethods { /** * Adds a new item to the data source and notifies the chart. * - * @param item The item that we want to add to the data source. + * @param item The item that we want to add to the data source. */ addItem(item: Object): Object; /** * Inserts a new item to the data source and notifies the chart. * - * @param item the new item that we want to insert in the data source. - * @param index The index in the data source where the new item will be inserted. + * @param item the new item that we want to insert in the data source. + * @param index The index in the data source where the new item will be inserted. */ insertItem(item: Object, index: number): Object; /** * Deletes an item from the data source and notifies the chart. * - * @param index The index in the data source from where the item will be been removed. + * @param index The index in the data source from where the item will be been removed. */ removeItem(index: number): Object; /** * Updates an item in the data source and notifies the chart. * - * @param index The index of the item in the data source that we want to change. - * @param item The new item object that will be set in the data source. + * @param index The index of the item in the data source that we want to change. + * @param item The new item object that will be set in the data source. */ setItem(index: number, item: Object): Object; /** * Notifies the chart that an item has been set in an associated data source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source that has been changed. - * @param newItem the new item that has been set in the collection. - * @param oldItem the old item that has been overwritten in the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source that has been changed. + * @param newItem the new item that has been set in the collection. + * @param oldItem the old item that has been overwritten in the collection. */ notifySetItem(dataSource: Object, index: number, newItem: Object, oldItem: Object): Object; /** * Notifies the chart that the items have been cleared from an associated data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. + * @param dataSource The data source in which the change happened. */ notifyClearItems(dataSource: Object): Object; /** * Notifies the target axis or series that an item has been inserted at the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source where the new item has been inserted. - * @param newItem the new item that has been set in the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source where the new item has been inserted. + * @param newItem the new item that has been set in the collection. */ notifyInsertItem(dataSource: Object, index: number, newItem: Object): Object; /** * Notifies the target axis or series that an item has been removed from the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source from where the old item has been removed. - * @param oldItem the old item that has been removed from the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source from where the old item has been removed. + * @param oldItem the old item that has been removed from the collection. */ notifyRemoveItem(dataSource: Object, index: number, oldItem: Object): Object; @@ -38115,6 +38258,7 @@ interface JQuery { /** * Gets whether the inner labels are visible. */ + igFunnelChart(optionLiteral: 'option', optionName: "innerLabelVisibility"): string; /** @@ -38122,11 +38266,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igFunnelChart(optionLiteral: 'option', optionName: "innerLabelVisibility", optionValue: string): void; /** * Gets whether the outer labels are visible. */ + igFunnelChart(optionLiteral: 'option', optionName: "outerLabelVisibility"): string; /** @@ -38134,11 +38280,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igFunnelChart(optionLiteral: 'option', optionName: "outerLabelVisibility", optionValue: string): void; /** * Gets which side of the chart the outer labels should appear. */ + igFunnelChart(optionLiteral: 'option', optionName: "outerLabelAlignment"): string; /** @@ -38146,11 +38294,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igFunnelChart(optionLiteral: 'option', optionName: "outerLabelAlignment", optionValue: string): void; /** * Gets the how the heights of the funnel slices should be configured. */ + igFunnelChart(optionLiteral: 'option', optionName: "funnelSliceDisplay"): string; /** @@ -38158,6 +38308,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igFunnelChart(optionLiteral: 'option', optionName: "funnelSliceDisplay", optionValue: string): void; /** @@ -38387,21 +38538,9 @@ interface JQuery { * @optionValue New value to be set. */ igFunnelChart(optionLiteral: 'option', optionName: "pixelScalingRatio", optionValue: number): void; - - /** - */ igFunnelChart(optionLiteral: 'option', optionName: "outerLabelTextColor"): any; - - /** - */ igFunnelChart(optionLiteral: 'option', optionName: "outerLabelTextColor", optionValue: any): void; - - /** - */ igFunnelChart(optionLiteral: 'option', optionName: "textColor"): any; - - /** - */ igFunnelChart(optionLiteral: 'option', optionName: "textColor", optionValue: any): void; /** @@ -38640,6 +38779,20 @@ interface RowsRequestingEvent { } interface RowsRequestingEventUIParam { + /** + * Gets a reference to igGridAppendRowsOnDemand. + */ + owner?: any; + + /** + * Gets the next chunk index. + */ + chunkIndex?: number; + + /** + * Gets the chunk size. + */ + chunkSize?: number; } interface RowsRequestedEvent { @@ -38647,6 +38800,25 @@ interface RowsRequestedEvent { } interface RowsRequestedEventUIParam { + /** + * Gets a reference to igGridAppendRowsOnDemand. + */ + owner?: any; + + /** + * Gets the next chunk index. + */ + chunkIndex?: number; + + /** + * Gets the chunk size. + */ + chunkSize?: number; + + /** + * Gets the requested rows. + */ + rows?: any[]; } interface IgGridAppendRowsOnDemand { @@ -38751,6 +38923,7 @@ interface JQuery { * Defines local or remote type of appending rows on demand in igGrid * */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "type"): string; /** @@ -38759,6 +38932,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "type", optionValue: string): void; /** @@ -38849,6 +39023,7 @@ interface JQuery { * Denotes the append rows on demand request method * */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "loadTrigger"): string; /** @@ -38857,6 +39032,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridAppendRowsOnDemand(optionLiteral: 'option', optionName: "loadTrigger", optionValue: string): void; /** @@ -38909,6 +39085,35 @@ interface CellsMergingEvent { } interface CellsMergingEventUIParam { + /** + * Gets a reference to the row the merged group starts in. + */ + row?: string; + + /** + * Gets the index of the row the merged group starts in. + */ + rowIndex?: number; + + /** + * Gets the key of the row the merged group starts in. + */ + rowKey?: any; + + /** + * Gets reference to igGridCellMerging. + */ + owner?: any; + + /** + * Gets a reference to the igGrid the igGridCellMerging are initialized for. + */ + grid?: any; + + /** + * Gets the cells value which is repeated and caused the merged group to be created. + */ + value?: any; } interface CellsMergedEvent { @@ -38916,6 +39121,40 @@ interface CellsMergedEvent { } interface CellsMergedEventUIParam { + /** + * Gets a reference to the row the merged group starts in. + */ + row?: string; + + /** + * Gets the index of the row the merged group starts in. + */ + rowIndex?: number; + + /** + * Gets the key of the row the merged group starts in. + */ + rowKey?: any; + + /** + * Gets reference to igGridCellMerging. + */ + owner?: any; + + /** + * Gets a reference to the igGrid the igGridCellMerging are initialized for. + */ + grid?: any; + + /** + * Gets the cells value which is repeated and caused the merged group to be created. + */ + value?: any; + + /** + * Gets the total count of cells that were merged. + */ + count?: number; } interface IgGridCellMerging { @@ -38959,6 +39198,7 @@ interface JQuery { * Controls the initial state * */ + igGridCellMerging(optionLiteral: 'option', optionName: "initialState"): string; /** @@ -38967,6 +39207,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridCellMerging(optionLiteral: 'option', optionName: "initialState", optionValue: string): void; /** @@ -38992,13 +39233,7 @@ interface JQuery { * @optionValue Define event handler function. */ igGridCellMerging(optionLiteral: 'option', optionName: "cellsMerging", optionValue: CellsMergingEvent): void; - - /** - */ igGridCellMerging(optionLiteral: 'option', optionName: "cellsMerged"): CellsMergedEvent; - - /** - */ igGridCellMerging(optionLiteral: 'option', optionName: "cellsMerged", optionValue: CellsMergedEvent): void; igGridCellMerging(options: IgGridCellMerging): JQuery; igGridCellMerging(optionLiteral: 'option', optionName: string): any; @@ -39042,6 +39277,20 @@ interface ColumnFixingEvent { } interface ColumnFixingEventUIParam { + /** + * Gets the columnKey or the columnIndex. + */ + columnIdentifier?: any; + + /** + * Gets whether the header cell has children(use this argument ONLY when multi-column-headers are enabled). + */ + isGroupHeader?: boolean; + + /** + * Gets a reference to the widget. + */ + owner?: any; } interface ColumnFixedEvent { @@ -39049,6 +39298,20 @@ interface ColumnFixedEvent { } interface ColumnFixedEventUIParam { + /** + * Gets the columnKey or the columnIndex. + */ + columnIdentifier?: any; + + /** + * Gets whether header cell has children(use this argument ONLY when multi-column-headers are enabled). + */ + isGroupHeader?: boolean; + + /** + * Gets a reference to the widget. + */ + owner?: any; } interface ColumnUnfixingEvent { @@ -39056,6 +39319,20 @@ interface ColumnUnfixingEvent { } interface ColumnUnfixingEventUIParam { + /** + * Gets the columnKey or the columnIndex. + */ + columnIdentifier?: any; + + /** + * Gets whether header cell has children(use this argument ONLY when multi-column-headers are enabled). + */ + isGroupHeader?: boolean; + + /** + * Gets a reference to the widget. + */ + owner?: any; } interface ColumnUnfixedEvent { @@ -39063,6 +39340,20 @@ interface ColumnUnfixedEvent { } interface ColumnUnfixedEventUIParam { + /** + * Gets the columnKey or the columnIndex. + */ + columnIdentifier?: any; + + /** + * Gets whether header cell has children(use this argument ONLY when multi-column-headers are enabled). + */ + isGroupHeader?: boolean; + + /** + * Gets a reference to the widget. + */ + owner?: any; } interface ColumnFixingRefusedEvent { @@ -39070,6 +39361,25 @@ interface ColumnFixingRefusedEvent { } interface ColumnFixingRefusedEventUIParam { + /** + * Gets the columnKey or the columnIndex. + */ + columnIdentifier?: any; + + /** + * Gets whether header cell has children(use this argument ONLY when multi-column-headers are enabled). + */ + isGroupHeader?: boolean; + + /** + * Gets the error message describing the reason fixing has failed. + */ + errorMessage?: string; + + /** + * Gets a reference to the widget. + */ + owner?: any; } interface ColumnUnfixingRefusedEvent { @@ -39077,6 +39387,25 @@ interface ColumnUnfixingRefusedEvent { } interface ColumnUnfixingRefusedEventUIParam { + /** + * Gets the columnKey or the columnIndex. + */ + columnIdentifier?: any; + + /** + * Gets whether header cell has children(use this argument ONLY when multi-column-headers are enabled). + */ + isGroupHeader?: boolean; + + /** + * Gets the error message describing the reason fixing has failed. + */ + errorMessage?: string; + + /** + * Gets a reference to the widget. + */ + owner?: any; } interface IgGridColumnFixing { @@ -39198,9 +39527,9 @@ interface IgGridColumnFixingMethods { /** * Unfixes a column by specified column identifier - column key or column index. * - * @param colIdentifier An identifier of the column to be unfixed - column index or column key. - * @param target Key of the column where the unfixed column should move to. - * @param after Specifies where the unfixed column should be rendered after or before the target column. This parameter is disregarded if there is no target column specified. + * @param colIdentifier An identifier of the column to be unfixed - column index or column key. + * @param target Key of the column where the unfixed column should move to. + * @param after Specifies where the unfixed column should be rendered after or before the target column. This parameter is disregarded if there is no target column specified. */ unfixColumn(colIdentifier: Object, target?: string, after?: boolean): Object; @@ -39212,38 +39541,38 @@ interface IgGridColumnFixingMethods { /** * If the 'check' argument is set to true, checks whether the heights of fixed and unfixed tables are equal, if not sync them. Similar check is made for heights of table rows. If the clearRowsHeights argument is set to true, clears rows heights before syncing them. * - * @param check If set to true, checks whether the heights of fixed and unfixed tables are equal, if not sync them. If this argument is set to false sync is performed regardless of the current heights. - * @param clearRowsHeights Clears row heigths for all visible rows. + * @param check If set to true, checks whether the heights of fixed and unfixed tables are equal, if not sync them. If this argument is set to false sync is performed regardless of the current heights. + * @param clearRowsHeights Clears row heigths for all visible rows. */ syncHeights(check?: boolean, clearRowsHeights?: boolean): void; /** * Returns whether the column with the specified key is a column group header, when the [multi-column headers](http://www.igniteui.com/help/iggrid-multicolumnheaders-landingpage) feature is used. * - * @param colKey The key of the column to perform the check for. + * @param colKey The key of the column to perform the check for. */ isGroupHeader(colKey: string): boolean; /** * Checks whether column fixing is allowed for the specified columns. It should not be allowed if there is only one visible column in the unfixed area. * - * @param columns Array of columns and/or column identifiers - could be column indexes, column keys, column object or mixed. + * @param columns Array of columns and/or column identifiers - could be column indexes, column keys, column object or mixed. */ checkFixingAllowed(columns: any[]): boolean; /** * Checks whether unfixing is allowed for the specified columns. It should not be allowed if there is only one visible column in the fixed area. * - * @param columns Array of columns and/or column identifiers - could be column indexes, column keys, column object or mixed. + * @param columns Array of columns and/or column identifiers - could be column indexes, column keys, column object or mixed. */ checkUnfixingAllowed(columns: any[]): boolean; /** * Fixes a column by specified column identifier - column index or column key. * - * @param colIdentifier An identifier of the column to be fixed - column index or column key. - * @param target Key of the column where the fixed column should move to. - * @param after Specifies where the fixed column should be moved after or before the target column. This parameter is disregarded if there is no target column specified. + * @param colIdentifier An identifier of the column to be fixed - column index or column key. + * @param target Key of the column where the fixed column should move to. + * @param after Specifies where the fixed column should be moved after or before the target column. This parameter is disregarded if there is no target column specified. */ fixColumn(colIdentifier: Object, target?: string, after?: boolean): Object; @@ -39275,17 +39604,17 @@ interface IgGridColumnFixingMethods { /** * Syncs rows heights between two collections of rows. * - * @param $trs An array of rows of the first(fixed/unfixed) container. - * @param $anotherRows An array of rows of the second(fixed/unfixed) container. + * @param $trs An array of rows of the first(fixed/unfixed) container. + * @param $anotherRows An array of rows of the second(fixed/unfixed) container. */ syncRowsHeights($trs: any[], $anotherRows: any[]): void; /** * Calculates widths of the fixed columns. * - * @param fCols Array of grid columns. If not set then the total width of the fixed columns are returned. - * @param excludeNonDataColumns If set to true do not calculate the width of non-data fixed columns (like the row selector row numbering column). - * @param includeHidden If set to true calculates width of the hidden fixed columns (their initial width before hiding). + * @param fCols Array of grid columns. If not set then the total width of the fixed columns are returned. + * @param excludeNonDataColumns If set to true do not calculate the width of non-data fixed columns (like the row selector row numbering column). + * @param includeHidden If set to true calculates width of the hidden fixed columns (their initial width before hiding). */ getWidthOfFixedColumns(fCols?: any[], excludeNonDataColumns?: boolean, includeHidden?: boolean): number; @@ -39389,6 +39718,7 @@ interface JQuery { * Configures which side the fixed columns of the grid will be rendered on. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#direction) out of more information. * */ + igGridColumnFixing(optionLiteral: 'option', optionName: "fixingDirection"): string; /** @@ -39397,6 +39727,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridColumnFixing(optionLiteral: 'option', optionName: "fixingDirection", optionValue: string): void; /** @@ -39445,6 +39776,7 @@ interface JQuery { * Minimal visible area in pixels for the unfixed columns. If the end user tries to fix a column(or columns), which causes the width of the fixed columns to grow such that the width of visible area of unfixed columns is less than this option then fixing will be canceled. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#non-fixable-min-width) out for more information. * */ + igGridColumnFixing(optionLiteral: 'option', optionName: "minimalVisibleAreaWidth"): string|number; /** @@ -39453,6 +39785,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridColumnFixing(optionLiteral: 'option', optionName: "minimalVisibleAreaWidth", optionValue: string|number): void; /** @@ -39588,6 +39921,30 @@ interface ColumnDragStartEvent { } interface ColumnDragStartEventUIParam { + /** + * Gets the column key of the column being dragged. + */ + columnKey?: string; + + /** + * Gets the column index of the column being dragged. + */ + columnIndex?: number; + + /** + * Gets a reference to the widget. + */ + owner?: string; + + /** + * Gets a reference to the orginal th being dragged. + */ + header?: string; + + /** + * Gets a reference to cloned DOM element that's actually being dragged. + */ + helper?: string; } interface ColumnDragEndEvent { @@ -39595,6 +39952,30 @@ interface ColumnDragEndEvent { } interface ColumnDragEndEventUIParam { + /** + * Gets the column key of the column that was being dragged. + */ + columnKey?: string; + + /** + * Gets the column index of the column that was being dragged. + */ + columnIndex?: number; + + /** + * Gets a reference to the widget. + */ + owner?: string; + + /** + * Gets a reference to the orginal th that was being dragged. + */ + header?: string; + + /** + * Gets a reference to cloned DOM element that was actually being dragged. + */ + helper?: string; } interface ColumnDragCanceledEvent { @@ -39602,6 +39983,30 @@ interface ColumnDragCanceledEvent { } interface ColumnDragCanceledEventUIParam { + /** + * Gets the column key of the column that was being dragged. + */ + columnKey?: string; + + /** + * Gets the column index of the column that was being dragged. + */ + columnIndex?: number; + + /** + * Gets a reference to the widget. + */ + owner?: string; + + /** + * Gets a reference to the orginal th being dragged. + */ + header?: string; + + /** + * Gets a reference to cloned DOM element that was actually being dragged. + */ + helper?: string; } interface ColumnMovingEvent { @@ -39609,6 +40014,25 @@ interface ColumnMovingEvent { } interface ColumnMovingEventUIParam { + /** + * Gets the column key of the column that was being moved. + */ + columnKey?: string; + + /** + * Gets the column index of the column that was being moved. + */ + columnIndex?: number; + + /** + * Gets the new column index of the column that was being moved. + */ + targetIndex?: number; + + /** + * Gets a reference to the widget. + */ + owner?: string; } interface ColumnMovedEvent { @@ -39616,6 +40040,25 @@ interface ColumnMovedEvent { } interface ColumnMovedEventUIParam { + /** + * Gets the column key of the column that was moved. + */ + columnKey?: string; + + /** + * Gets the previous column index of the column that was moved. + */ + oldIndex?: number; + + /** + * Gets the new column index of the column that was being moved. + */ + newIndex?: number; + + /** + * Gets a reference to the widget. + */ + owner?: any; } interface MovingDialogOpeningEvent { @@ -39623,6 +40066,10 @@ interface MovingDialogOpeningEvent { } interface MovingDialogOpeningEventUIParam { + /** + * Gets a reference to the widget. + */ + owner?: any; } interface MovingDialogOpenedEvent { @@ -39630,6 +40077,10 @@ interface MovingDialogOpenedEvent { } interface MovingDialogOpenedEventUIParam { + /** + * Gets a reference to the ColumnMoving widget. + */ + owner?: any; } interface MovingDialogDraggedEvent { @@ -39637,6 +40088,10 @@ interface MovingDialogDraggedEvent { } interface MovingDialogDraggedEventUIParam { + /** + * Gets a reference to the ColumnMoving widget. + */ + owner?: any; } interface MovingDialogClosingEvent { @@ -39644,6 +40099,10 @@ interface MovingDialogClosingEvent { } interface MovingDialogClosingEventUIParam { + /** + * Gets a reference to the ColumnMoving widget. + */ + owner?: any; } interface MovingDialogClosedEvent { @@ -39651,6 +40110,10 @@ interface MovingDialogClosedEvent { } interface MovingDialogClosedEventUIParam { + /** + * Gets a reference to the ColumnMoving widget. + */ + owner?: any; } interface MovingDialogContentsRenderingEvent { @@ -39658,6 +40121,10 @@ interface MovingDialogContentsRenderingEvent { } interface MovingDialogContentsRenderingEventUIParam { + /** + * Gets a reference to the ColumnMoving widget. + */ + owner?: any; } interface MovingDialogContentsRenderedEvent { @@ -39665,6 +40132,10 @@ interface MovingDialogContentsRenderedEvent { } interface MovingDialogContentsRenderedEventUIParam { + /** + * Gets a reference to the ColumnMoving widget. + */ + owner?: any; } interface MovingDialogMoveUpButtonPressedEvent { @@ -39672,6 +40143,10 @@ interface MovingDialogMoveUpButtonPressedEvent { } interface MovingDialogMoveUpButtonPressedEventUIParam { + /** + * Gets a reference to the ColumnMoving widget. + */ + owner?: any; } interface MovingDialogMoveDownButtonPressedEvent { @@ -39679,6 +40154,10 @@ interface MovingDialogMoveDownButtonPressedEvent { } interface MovingDialogMoveDownButtonPressedEventUIParam { + /** + * Gets a reference to the ColumnMoving widget. + */ + owner?: any; } interface MovingDialogDragColumnMovingEvent { @@ -39686,6 +40165,10 @@ interface MovingDialogDragColumnMovingEvent { } interface MovingDialogDragColumnMovingEventUIParam { + /** + * Gets a reference to the ColumnMoving widget. + */ + owner?: any; } interface MovingDialogDragColumnMovedEvent { @@ -39693,6 +40176,10 @@ interface MovingDialogDragColumnMovedEvent { } interface MovingDialogDragColumnMovedEventUIParam { + /** + * Gets a reference to the ColumnMoving widget. + */ + owner?: any; } interface IgGridColumnMoving { @@ -39971,11 +40458,11 @@ interface IgGridColumnMovingMethods { * Moves a visible column at a specified place, in front or behind a target column or at a target index * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param column An identifier of the column to be moved. It can be a key, a Multi-Column Header identificator, or an index in a number format. The latter is not supported when the grid contains multi-column headers. - * @param target An identifier of a column where the moved column should move to or an index at which the moved column should be moved to. In the case of a column identifier the column will be moved after it by default. - * @param after Specifies whether the column moved should be moved after or before the target column. - * @param inDom Specifies whether the column moving will be enacted through DOM manipulation or through rerendering of the grid. - * @param callback Specifies a custom function to be called when the column is moved. + * @param column An identifier of the column to be moved. It can be a key, a Multi-Column Header identificator, or an index in a number format. The latter is not supported when the grid contains multi-column headers. + * @param target An identifier of a column where the moved column should move to or an index at which the moved column should be moved to. In the case of a column identifier the column will be moved after it by default. + * @param after Specifies whether the column moved should be moved after or before the target column. + * @param inDom Specifies whether the column moving will be enacted through DOM manipulation or through rerendering of the grid. + * @param callback Specifies a custom function to be called when the column is moved. */ moveColumn(column: Object, target: Object, after?: boolean, inDom?: boolean, callback?: Function): void; } @@ -40005,6 +40492,7 @@ interface JQuery { * Specify the drag-and-drop mode for the feature * */ + igGridColumnMoving(optionLiteral: 'option', optionName: "mode"): string; /** @@ -40013,12 +40501,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridColumnMoving(optionLiteral: 'option', optionName: "mode", optionValue: string): void; /** * Specify the way columns will be rearranged * */ + igGridColumnMoving(optionLiteral: 'option', optionName: "moveType"): string; /** @@ -40027,6 +40517,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridColumnMoving(optionLiteral: 'option', optionName: "moveType", optionValue: string): void; /** @@ -40606,6 +41097,25 @@ interface ShowingEvent { } interface ShowingEventUIParam { + /** + * Gets the element the popover will show for. + */ + element?: string; + + /** + * Gets or set the content to be shown as a string. + */ + content?: string; + + /** + * Gets the popover element showing. + */ + popover?: string; + + /** + * Gets a reference to the %%WidgetName%% widget. + */ + owner?: any; } interface ShownEvent { @@ -40613,6 +41123,25 @@ interface ShownEvent { } interface ShownEventUIParam { + /** + * Gets the element the popover showed for. + */ + element?: string; + + /** + * Gets the content that was shown as a string. + */ + content?: string; + + /** + * Gets the popover element showing. + */ + popover?: string; + + /** + * Gets a reference to the %%WidgetName%% widget. + */ + owner?: any; } interface HidingEvent { @@ -40620,6 +41149,25 @@ interface HidingEvent { } interface HidingEventUIParam { + /** + * Gets the element the popover will hide for. + */ + element?: string; + + /** + * Gets the current content displayed in the popover as a string. + */ + content?: string; + + /** + * Gets the popover element hiding. + */ + popover?: string; + + /** + * Gets reference to the %%WidgetName%% widget. + */ + owner?: any; } interface HiddenEvent { @@ -40627,6 +41175,25 @@ interface HiddenEvent { } interface HiddenEventUIParam { + /** + * Gets the element the popover is hidden for. + */ + element?: string; + + /** + * Gets the content displayed in the popover as a string. + */ + content?: string; + + /** + * Gets the popover element hidden. + */ + popover?: string; + + /** + * Gets reference to the %%WidgetName%% widget. + */ + owner?: any; } interface IgGridFeatureChooserPopover { @@ -40638,8 +41205,9 @@ interface IgGridFeatureChooserPopover { /** * controls the direction in which the control shows relative to the target element * + * * Valid values: - * "auto" lets the control show on the side where enough space is available with the priority specified by the [directionPriority](ui.igpopover#options:directionPriority) property + * "auto" lets the control show on the side where enough space is available with the priority specified by the [directionPriority](ui.%%WidgetNameLowered%%#options:directionPriority) property * "left" shows popover on the left side of the target element * "right" shows popover on the right side of the target element * "top" shows popover on the top of the target element @@ -40649,13 +41217,15 @@ interface IgGridFeatureChooserPopover { /** * Controls the priority in which the control searches for space to show relative to the target element. - * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + * This property has effect only if the [direction](ui.%%WidgetNameLowered%%#options:direction) property value is "auto" or unset. + * */ directionPriority?: any[]; /** * controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area * + * * Valid values: * "auto" lets the control choose a position depending on available space with the following priority balanced > end > start * "balanced" the popover is positioned at the middle of the target element @@ -40666,37 +41236,44 @@ interface IgGridFeatureChooserPopover { /** * defines width for the popover. leave null for auto. + * */ width?: number|string; /** * defines height for the popover. leave null for auto + * */ height?: number|string; /** * defines width the popover won't go under the value even if no specific one is set. + * */ minWidth?: number|string; /** * defines width the popover won't exceed even if no specific one is set. + * */ maxWidth?: number|string; /** * defines height the popover won't exceed even if no specific one is set. + * */ maxHeight?: number|string; /** * Sets the time popover fades in and out when showing/hiding + * */ animationDuration?: number; /** * sets the content for the popover container. If left null the content will be get from the target. * + * * Valid values: * "string" String content of the popover container * "function" Function which is a callback that should return the content. Use the 'this' value to access the target DOM element. @@ -40705,17 +41282,20 @@ interface IgGridFeatureChooserPopover { /** * Selectors indicating which items should show popovers. The predefined value is [title]. Customize if you're using something other then the title attribute for the popover content, or if you need a different selector for event delegation. When changing this option, you likely need to also change the contentTemplate option + * */ selectors?: string; /** * Sets the content for the popover header + * */ headerTemplate?: IgPopoverHeaderTemplate; /** * sets the event on which the popover will be shown. Predefined values are "mouseenter", "click" and "focus" * + * * Valid values: * "mouseenter" the popover is shown on mouse enter in the target element * "click" the popover is shown on click on the target element @@ -40776,8 +41356,8 @@ interface IgGridFeatureChooserPopoverMethods { /** * Shows the popover for the specified target * - * @param trg The element to show popover for. - * @param content The string to set for the popover to show. + * @param trg The element to show popover for. + * @param content The string to set for the popover to show. */ show(trg?: Element, content?: string): void; @@ -40794,7 +41374,7 @@ interface IgGridFeatureChooserPopoverMethods { /** * Sets the content for the popover container * - * @param newCnt The popover content to set. + * @param newCnt The popover content to set. */ setContent(newCnt: string): void; @@ -40811,7 +41391,7 @@ interface IgGridFeatureChooserPopoverMethods { /** * Sets the popover to specific coordinates. * - * @param pos The popover coordinates in pixels. + * @param pos The popover coordinates in pixels. */ setCoordinates(pos: Object): void; } @@ -40823,50 +41403,43 @@ interface FeatureChooserRenderingEvent { (event: Event, ui: FeatureChooserRenderingEventUIParam): void; } -interface FeatureChooserRenderingEventUIParam { -} +interface FeatureChooserRenderingEventUIParam {} interface FeatureChooserRenderedEvent { (event: Event, ui: FeatureChooserRenderedEventUIParam): void; } -interface FeatureChooserRenderedEventUIParam { -} +interface FeatureChooserRenderedEventUIParam {} interface FeatureChooserDropDownOpeningEvent { (event: Event, ui: FeatureChooserDropDownOpeningEventUIParam): void; } -interface FeatureChooserDropDownOpeningEventUIParam { -} +interface FeatureChooserDropDownOpeningEventUIParam {} interface FeatureChooserDropDownOpenedEvent { (event: Event, ui: FeatureChooserDropDownOpenedEventUIParam): void; } -interface FeatureChooserDropDownOpenedEventUIParam { -} +interface FeatureChooserDropDownOpenedEventUIParam {} interface MenuTogglingEvent { (event: Event, ui: MenuTogglingEventUIParam): void; } -interface MenuTogglingEventUIParam { -} +interface MenuTogglingEventUIParam {} interface FeatureTogglingEvent { (event: Event, ui: FeatureTogglingEventUIParam): void; } -interface FeatureTogglingEventUIParam { -} +interface FeatureTogglingEventUIParam {} interface FeatureToggledEvent { (event: Event, ui: FeatureToggledEventUIParam): void; } -interface FeatureToggledEventUIParam { -} +interface FeatureToggledEventUIParam {} interface IgGridFeatureChooser { dropDownWidth?: any; @@ -40890,28 +41463,28 @@ interface IgGridFeatureChooserMethods { /** * Show feature chooser dialog by the specified column key * - * @param columnKey Key of the column that should be shown. + * @param columnKey Key of the column that should be shown. */ showDropDown(columnKey: string): void; /** * Hide feature chooser dialog by column key * - * @param columnKey Key of the column that should be hidden. + * @param columnKey Key of the column that should be hidden. */ hideDropDown(columnKey: string): void; /** * Get jQuery representation of the div holding dropdown for the specified columnKey * - * @param columnKey Key of the column + * @param columnKey Key of the column */ getDropDownByColumnKey(columnKey: string): void; /** * Show/hide feature chooser dialog by column key * - * @param columnKey Key of the column that should be shown/hidden. + * @param columnKey Key of the column that should be shown/hidden. */ toggleDropDown(columnKey: string): void; destroy(e: Object, args: Object): void; @@ -40933,60 +41506,42 @@ interface JQuery { igGridFeatureChooserPopover(methodName: "target"): Object; igGridFeatureChooserPopover(methodName: "getCoordinates"): Object; igGridFeatureChooserPopover(methodName: "setCoordinates", pos: Object): void; - - /** - */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "gridId"): string; - - /** - */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "gridId", optionValue: string): void; - - /** - */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "targetButton"): any; - - /** - */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "targetButton", optionValue: any): void; - - /** - */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "closeOnBlur"): boolean; - - /** - */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "closeOnBlur", optionValue: boolean): void; - - /** - */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "containment"): any; - - /** - */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "containment", optionValue: any): void; /** * Controls the direction in which the control shows relative to the target element + * */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "direction"): string; /** * Controls the direction in which the control shows relative to the target element * + * * @optionValue New value to be set. */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "direction", optionValue: string): void; /** * Controls the priority in which the control searches for space to show relative to the target element. - * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + * This property has effect only if the [direction](ui.%%WidgetNameLowered%%#options:direction) property value is "auto" or unset. + * */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "directionPriority"): any[]; /** * Controls the priority in which the control searches for space to show relative to the target element. - * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + * This property has effect only if the [direction](ui.%%WidgetNameLowered%%#options:direction) property value is "auto" or unset. + * * * @optionValue New value to be set. */ @@ -40994,140 +41549,179 @@ interface JQuery { /** * Controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area + * */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "position"): string; /** * Controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area * + * * @optionValue New value to be set. */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "position", optionValue: string): void; /** * Defines width for the popover. leave null for auto. + * */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "width"): number|string; /** * Defines width for the popover. leave null for auto. * + * * @optionValue New value to be set. */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "width", optionValue: number|string): void; /** * Defines height for the popover. leave null for auto + * */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "height"): number|string; /** * Defines height for the popover. leave null for auto * + * * @optionValue New value to be set. */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "height", optionValue: number|string): void; /** * Defines width the popover won't go under the value even if no specific one is set. + * */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "minWidth"): number|string; /** * Defines width the popover won't go under the value even if no specific one is set. * + * * @optionValue New value to be set. */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "minWidth", optionValue: number|string): void; /** * Defines width the popover won't exceed even if no specific one is set. + * */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "maxWidth"): number|string; /** * Defines width the popover won't exceed even if no specific one is set. * + * * @optionValue New value to be set. */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "maxWidth", optionValue: number|string): void; /** * Defines height the popover won't exceed even if no specific one is set. + * */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "maxHeight"): number|string; /** * Defines height the popover won't exceed even if no specific one is set. * + * * @optionValue New value to be set. */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "maxHeight", optionValue: number|string): void; /** * The time popover fades in and out when showing/hiding + * */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "animationDuration"): number; /** * Sets the time popover fades in and out when showing/hiding * + * * @optionValue New value to be set. */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "animationDuration", optionValue: number): void; /** * The content for the popover container. If left null the content will be get from the target. + * */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "contentTemplate"): string|Function; /** * Sets the content for the popover container. If left null the content will be get from the target. * + * * @optionValue New value to be set. */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "contentTemplate", optionValue: string|Function): void; /** * Selectors indicating which items should show popovers. The predefined value is [title]. Customize if you're using something other then the title attribute for the popover content, or if you need a different selector for event delegation. When changing this option, you likely need to also change the contentTemplate option + * */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "selectors"): string; /** * Selectors indicating which items should show popovers. The predefined value is [title]. Customize if you're using something other then the title attribute for the popover content, or if you need a different selector for event delegation. When changing this option, you likely need to also change the contentTemplate option * + * * @optionValue New value to be set. */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "selectors", optionValue: string): void; /** * The content for the popover header + * */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "headerTemplate"): IgPopoverHeaderTemplate; /** * Sets the content for the popover header * + * * @optionValue New value to be set. */ igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "headerTemplate", optionValue: IgPopoverHeaderTemplate): void; /** * The event on which the popover will be shown. Predefined values are "mouseenter", "click" and "focus" + * */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "showOn"): string; /** * Sets the event on which the popover will be shown. Predefined values are "mouseenter", "click" and "focus" * + * * @optionValue New value to be set. */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "showOn", optionValue: string): void; /** * Controls where the popover DOM should be attached to. * */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "appendTo"): string|Object; /** @@ -41136,6 +41730,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFeatureChooserPopover(optionLiteral: 'option', optionName: "appendTo", optionValue: string|Object): void; /** @@ -41198,77 +41793,23 @@ interface JQuery { igGridFeatureChooser(methodName: "getDropDownByColumnKey", columnKey: string): void; igGridFeatureChooser(methodName: "toggleDropDown", columnKey: string): void; igGridFeatureChooser(methodName: "destroy", e: Object, args: Object): void; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "dropDownWidth"): any; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "dropDownWidth", optionValue: any): void; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "animationDuration"): number; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "animationDuration", optionValue: number): void; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "featureChooserRendering"): FeatureChooserRenderingEvent; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "featureChooserRendering", optionValue: FeatureChooserRenderingEvent): void; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "featureChooserRendered"): FeatureChooserRenderedEvent; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "featureChooserRendered", optionValue: FeatureChooserRenderedEvent): void; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "featureChooserDropDownOpening"): FeatureChooserDropDownOpeningEvent; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "featureChooserDropDownOpening", optionValue: FeatureChooserDropDownOpeningEvent): void; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "featureChooserDropDownOpened"): FeatureChooserDropDownOpenedEvent; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "featureChooserDropDownOpened", optionValue: FeatureChooserDropDownOpenedEvent): void; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "menuToggling"): MenuTogglingEvent; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "menuToggling", optionValue: MenuTogglingEvent): void; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "featureToggling"): FeatureTogglingEvent; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "featureToggling", optionValue: FeatureTogglingEvent): void; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "featureToggled"): FeatureToggledEvent; - - /** - */ igGridFeatureChooser(optionLiteral: 'option', optionName: "featureToggled", optionValue: FeatureToggledEvent): void; igGridFeatureChooser(options: IgGridFeatureChooser): JQuery; igGridFeatureChooser(optionLiteral: 'option', optionName: string): any; @@ -41456,6 +41997,25 @@ interface DataFilteringEvent { } interface DataFilteringEventUIParam { + /** + * Gets reference to GridFiltering. + */ + owner?: any; + + /** + * Gets the column index. Applicable only when filtering mode is "simple". + */ + columnIndex?: number; + + /** + * Gets the column key. Applicable only when filtering mode is "simple". + */ + columnKey?: string; + + /** + * Gets the filtering expressions. Filtering expressions could be changed in this event handler and after that data binding is applied. In this way the user could control filtering more easily before applying data-binding. + */ + newExpressions?: any[]; } interface DataFilteredEvent { @@ -41463,6 +42023,25 @@ interface DataFilteredEvent { } interface DataFilteredEventUIParam { + /** + * Gets reference to GridFiltering. + */ + owner?: any; + + /** + * Gets the column index. Applicable only when filtering mode is "simple". + */ + columnIndex?: number; + + /** + * Gets the column key. Applicable only when filtering mode is "simple". + */ + columnKey?: string; + + /** + * Gets the filtered expressions. + */ + expressions?: any[]; } interface FilterDialogOpeningEvent { @@ -41470,6 +42049,15 @@ interface FilterDialogOpeningEvent { } interface FilterDialogOpeningEventUIParam { + /** + * Gets reference to GridFiltering. + */ + owner?: any; + + /** + * Gets reference to the filtering dialog DOM element. + */ + dialog?: string; } interface FilterDialogOpenedEvent { @@ -41477,6 +42065,15 @@ interface FilterDialogOpenedEvent { } interface FilterDialogOpenedEventUIParam { + /** + * Gets reference to GridFiltering. + */ + owner?: any; + + /** + * Gets reference to the filtering dialog DOM element. + */ + dialog?: string; } interface FilterDialogMovingEvent { @@ -41484,6 +42081,25 @@ interface FilterDialogMovingEvent { } interface FilterDialogMovingEventUIParam { + /** + * Gets reference to GridFiltering. + */ + owner?: any; + + /** + * Gets reference to filtering dialog DOM element. + */ + dialog?: string; + + /** + * Gets the original position of the groupby dialog div as { top, left } object, relative to the page. + */ + originalPosition?: any; + + /** + * Gets the current position of the groupby dialog div as { top, left } object, relative to the page. + */ + position?: any; } interface FilterDialogFilterAddingEvent { @@ -41491,6 +42107,15 @@ interface FilterDialogFilterAddingEvent { } interface FilterDialogFilterAddingEventUIParam { + /** + * Gets reference to GridFiltering. + */ + owner?: any; + + /** + * Gets reference to filters table body DOM element. + */ + filtersTableBody?: string; } interface FilterDialogFilterAddedEvent { @@ -41498,6 +42123,15 @@ interface FilterDialogFilterAddedEvent { } interface FilterDialogFilterAddedEventUIParam { + /** + * Gets reference to GridFiltering. + */ + owner?: any; + + /** + * Gets reference to the filters table row DOM element. + */ + filter?: string; } interface FilterDialogClosingEvent { @@ -41505,6 +42139,10 @@ interface FilterDialogClosingEvent { } interface FilterDialogClosingEventUIParam { + /** + * Gets reference to GridFiltering. + */ + owner?: any; } interface FilterDialogClosedEvent { @@ -41512,6 +42150,10 @@ interface FilterDialogClosedEvent { } interface FilterDialogClosedEventUIParam { + /** + * Gets reference to GridFiltering. + */ + owner?: any; } interface FilterDialogContentsRenderingEvent { @@ -41519,6 +42161,15 @@ interface FilterDialogContentsRenderingEvent { } interface FilterDialogContentsRenderingEventUIParam { + /** + * Gets reference to GridFiltering. + */ + owner?: any; + + /** + * Gets reference to the filtering dialog DOM element. + */ + dialogElement?: string; } interface FilterDialogContentsRenderedEvent { @@ -41526,6 +42177,15 @@ interface FilterDialogContentsRenderedEvent { } interface FilterDialogContentsRenderedEventUIParam { + /** + * Gets reference to GridFiltering. + */ + owner?: any; + + /** + * Gets reference to the filtering dialog DOM element. + */ + dialogElement?: string; } interface FilterDialogFilteringEvent { @@ -41533,6 +42193,15 @@ interface FilterDialogFilteringEvent { } interface FilterDialogFilteringEventUIParam { + /** + * Gets reference to GridFiltering. + */ + owner?: any; + + /** + * Gets reference to filtering dialog DOM element. + */ + dialog?: string; } interface IgGridFiltering { @@ -41960,15 +42629,15 @@ interface IgGridFilteringMethods { /** * Toggle filter row when mode is simple or [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is true. Otherwise show/hide advanced dialog. * - * @param event Column key + * @param event Column key */ toggleFilterRowByFeatureChooser(event: string): void; /** * Applies filtering programmatically and updates the UI by default. * - * @param expressions An array of filtering expressions, each one having the format {fieldName: , expr: , cond: , logic: } where fieldName is the key of the column, expr is the actual expression string with which we would like to filter, logic is 'AND' or 'OR', and cond is one of the following strings: "equals", "doesNotEqual", "contains", "doesNotContain", "greaterThan", "lessThan", "greaterThanOrEqualTo", "lessThanOrEqualTo", "true", "false", "null", "notNull", "empty", "notEmpty", "startsWith", "endsWith", "today", "yesterday", "on", "notOn", "thisMonth", "lastMonth", "nextMonth", "before", "after", "thisYear", "lastYear", "nextYear". The difference between the empty and null filtering conditions is that empty includes null, NaN, and undefined, as well as the empty string. - * @param updateUI specifies whether the filter row should be also updated once the grid is filtered + * @param expressions An array of filtering expressions, each one having the format {fieldName: , expr: , cond: , logic: } where fieldName is the key of the column, expr is the actual expression string with which we would like to filter, logic is 'AND' or 'OR', and cond is one of the following strings: "equals", "doesNotEqual", "contains", "doesNotContain", "greaterThan", "lessThan", "greaterThanOrEqualTo", "lessThanOrEqualTo", "true", "false", "null", "notNull", "empty", "notEmpty", "startsWith", "endsWith", "today", "yesterday", "on", "notOn", "thisMonth", "lastMonth", "nextMonth", "before", "after", "thisYear", "lastYear", "nextYear". The difference between the empty and null filtering conditions is that empty includes null, NaN, and undefined, as well as the empty string. + * @param updateUI specifies whether the filter row should be also updated once the grid is filtered * @param addedFromAdvanced */ filter(expressions: any[], updateUI?: boolean, addedFromAdvanced?: boolean): void; @@ -41976,7 +42645,7 @@ interface IgGridFilteringMethods { /** * Check whether filterCondition requires or not filtering expression - e.g. if filterCondition is "lastMonth", "thisMonth", "null", "notNull", "true", "false", etc. then filtering expression is NOT required * - * @param filterCondition filtering condition - e.g. "true", "false", "yesterday", "empty", "null", etc. + * @param filterCondition filtering condition - e.g. "true", "false", "yesterday", "empty", "null", etc. */ requiresFilteringExpression(filterCondition: string): boolean; } @@ -42055,6 +42724,7 @@ interface JQuery { * Type of animations for the column filter dropdowns. * */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownAnimations"): string; /** @@ -42063,6 +42733,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownAnimations", optionValue: string): void; /** @@ -42083,6 +42754,7 @@ interface JQuery { * Width of the column filter dropdowns. * */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownWidth"): string|number; /** @@ -42091,6 +42763,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownWidth", optionValue: string|number): void; /** @@ -42129,6 +42802,7 @@ interface JQuery { * Enable/disable filter icons visibility. * */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownItemIcons"): boolean; /** @@ -42137,6 +42811,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDropDownItemIcons", optionValue: boolean): void; /** @@ -42157,6 +42832,7 @@ interface JQuery { * Type of filtering. Delegates all filtering functionality to the [$.ig.DataSource](ig.datasource). * */ + igGridFiltering(optionLiteral: 'option', optionName: "type"): string; /** @@ -42165,6 +42841,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "type", optionValue: string): void; /** @@ -42185,6 +42862,7 @@ interface JQuery { * Default is 'simple' for non-virtualized grids, and 'advanced' when [virtualization](ui.iggrid#options:virtualization) is enabled. * */ + igGridFiltering(optionLiteral: 'option', optionName: "mode"): string; /** @@ -42193,6 +42871,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "mode", optionValue: string): void; /** @@ -42213,6 +42892,7 @@ interface JQuery { * Location of the advanced filtering button when [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is false (i.e. when the button is rendered in the header). * */ + igGridFiltering(optionLiteral: 'option', optionName: "advancedModeHeaderButtonLocation"): string; /** @@ -42221,12 +42901,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "advancedModeHeaderButtonLocation", optionValue: string): void; /** * Default filter dialog width (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). * */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogWidth"): string|number; /** @@ -42235,12 +42917,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogWidth", optionValue: string|number): void; /** * Default filter dialog height (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). * */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogHeight"): string|number; /** @@ -42249,12 +42933,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogHeight", optionValue: string|number): void; /** * Width of the filtering condition dropdowns in the advanced filter dialog. * */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterDropDownDefaultWidth"): string|number; /** @@ -42263,12 +42949,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterDropDownDefaultWidth", optionValue: string|number): void; /** * Width of the filtering expression input boxes in the advanced filter dialog. * */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogExprInputDefaultWidth"): string|number; /** @@ -42277,12 +42965,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogExprInputDefaultWidth", optionValue: string|number): void; /** * Width of the column chooser dropdowns in the advanced filter dialog. * */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogColumnDropDownDefaultWidth"): string|number; /** @@ -42291,6 +42981,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogColumnDropDownDefaultWidth", optionValue: string|number): void; /** @@ -42311,6 +43002,7 @@ interface JQuery { * The filtering button for filter dropdowns can be rendered either on the left of the filter editor, or on the right. * */ + igGridFiltering(optionLiteral: 'option', optionName: "filterButtonLocation"): string; /** @@ -42319,6 +43011,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "filterButtonLocation", optionValue: string): void; /** @@ -42431,6 +43124,7 @@ interface JQuery { * Add button width - in the advanced filter dialog. * */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddButtonWidth"): string|number; /** @@ -42439,12 +43133,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddButtonWidth", optionValue: string|number): void; /** * Width of the Ok and Cancel buttons in the advanced filtering dialogs. * */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogOkCancelButtonWidth"): string|number; /** @@ -42453,6 +43149,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridFiltering(optionLiteral: 'option', optionName: "filterDialogOkCancelButtonWidth", optionValue: string|number): void; /** @@ -42886,7 +43583,6 @@ interface IgGridColumn { * Width of the column in pixels or percentage. Can also be set as '*', in which case the width auto-size based on the content of the column cells (including the header text).If width is not defined and [defaultColumnWidth](ui.iggrid#options:defaultColumnWidth) is set, it is assumed for all columns. * * - * * Valid values: * "string" The column width can be set in pixels (px), percentage (%) or as '*' in order to auto-size based on the cells and header content. * "number" The column width can be set as a number @@ -43194,6 +43890,35 @@ interface CellClickEvent { } interface CellClickEventUIParam { + /** + * Gets a reference to cell DOM element. + */ + cellElement?: Element; + + /** + * Gets the row index. + */ + rowIndex?: number; + + /** + * Gets the row key. + */ + rowKey?: any; + + /** + * Gets the column index of the DOM element. + */ + colIndex?: number; + + /** + * Gets the column key. + */ + colKey?: string; + + /** + * Gets a reference to the grid. + */ + owner?: any; } interface CellRightClickEvent { @@ -43201,6 +43926,40 @@ interface CellRightClickEvent { } interface CellRightClickEventUIParam { + /** + * Gets a reference to cell DOM element. + */ + cellElement?: Element; + + /** + * Gets the row index. + */ + rowIndex?: number; + + /** + * Gets the row key. + */ + rowKey?: any; + + /** + * Gets the column index of the DOM element. + */ + colIndex?: number; + + /** + * Gets the column key. + */ + colKey?: string; + + /** + * Gets a reference to the row DOM element. + */ + row?: Element; + + /** + * Gets a reference to the grid. + */ + owner?: any; } interface DataRenderingEvent { @@ -43208,6 +43967,10 @@ interface DataRenderingEvent { } interface DataRenderingEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; } interface DataRenderedEvent { @@ -43215,6 +43978,10 @@ interface DataRenderedEvent { } interface DataRenderedEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; } interface HeaderRenderingEvent { @@ -43222,6 +43989,10 @@ interface HeaderRenderingEvent { } interface HeaderRenderingEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; } interface HeaderRenderedEvent { @@ -43229,6 +44000,15 @@ interface HeaderRenderedEvent { } interface HeaderRenderedEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; + + /** + * Gets a reference to headers table DOM element. + */ + table?: Element; } interface CaptionRenderingEvent { @@ -43236,6 +44016,10 @@ interface CaptionRenderingEvent { } interface CaptionRenderingEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; } interface CaptionRenderedEvent { @@ -43243,6 +44027,15 @@ interface CaptionRenderedEvent { } interface CaptionRenderedEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; + + /** + * Gets a reference to the caption container. + */ + captionContainer?: Element; } interface FooterRenderingEvent { @@ -43250,6 +44043,10 @@ interface FooterRenderingEvent { } interface FooterRenderingEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; } interface FooterRenderedEvent { @@ -43257,6 +44054,15 @@ interface FooterRenderedEvent { } interface FooterRenderedEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; + + /** + * Gets a reference to footers table DOM element. + */ + table?: Element; } interface HeaderCellRenderedEvent { @@ -43264,6 +44070,20 @@ interface HeaderCellRenderedEvent { } interface HeaderCellRenderedEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; + + /** + * Gets the column key. + */ + columnKey?: string; + + /** + * Gets a reference to header cell DOM element. + */ + th?: Element; } interface RowsRenderingEvent { @@ -43271,6 +44091,15 @@ interface RowsRenderingEvent { } interface RowsRenderingEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; + + /** + * Gets reference to the grid's table body. + */ + tbody?: Element; } interface RowsRenderedEvent { @@ -43278,6 +44107,15 @@ interface RowsRenderedEvent { } interface RowsRenderedEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; + + /** + * Gets reference to the grid's table body. + */ + tbody?: Element; } interface SchemaGeneratedEvent { @@ -43285,6 +44123,20 @@ interface SchemaGeneratedEvent { } interface SchemaGeneratedEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; + + /** + * Gets a reference to data source schema. + */ + schema?: any; + + /** + * Gets reference to data source. + */ + dataSource?: any; } interface ColumnsCollectionModifiedEvent { @@ -43292,6 +44144,10 @@ interface ColumnsCollectionModifiedEvent { } interface ColumnsCollectionModifiedEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; } interface RequestErrorEvent { @@ -43299,6 +44155,20 @@ interface RequestErrorEvent { } interface RequestErrorEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; + + /** + * Gets the processed error message sent by the server + */ + message?: string; + + /** + * Gets a reference to the whole response object + */ + response?: any; } interface CreatedEvent { @@ -43306,6 +44176,10 @@ interface CreatedEvent { } interface CreatedEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; } interface DestroyedEvent { @@ -43313,6 +44187,10 @@ interface DestroyedEvent { } interface DestroyedEventUIParam { + /** + * Gets a reference to the grid. + */ + owner?: any; } interface IgGrid { @@ -43810,7 +44688,7 @@ interface IgGridMethods { /** * Returns whether the column with identifier colKey is fixed * - * @param colKey An identifier of the column which should be checked. It can be a key or visible index. + * @param colKey An identifier of the column which should be checked. It can be a key or visible index. */ isFixedColumn(colKey: Object): boolean; @@ -43822,19 +44700,19 @@ interface IgGridMethods { /** * Returns whether the header identified by colKey is multicolumn header(has children) * - * @param colKey value of the column key + * @param colKey value of the column key */ isGroupHeader(colKey: string): Object; /** * Returns an object that contains information on the passed Dom element * - * rowId - the id of the record associated with the element - if primaryKey is not set this will be null. - * rowIndex - the index (in the DOM) of the row associated with the element. - * recordIndex - index of the data record associated with this element in the current dataView. - * columnObject - the column object associated with this element ( if the element is tr this will be null) + * rowId - the id of the record associated with the element - if primaryKey is not set this will be null. + * rowIndex - the index (in the DOM) of the row associated with the element. + * recordIndex - index of the data record associated with this element in the current dataView. + * columnObject - the column object associated with this element ( if the element is tr this will be null) * - * @param elem The Dom element or jQuery object which can be a TD or TR element from the grid. + * @param elem The Dom element or jQuery object which can be a TD or TR element from the grid. */ getElementInfo(elem: Element): Object; @@ -43896,17 +44774,17 @@ interface IgGridMethods { /** * Returns the cell TD element at the specified location * - * @param x The column index. - * @param y The row index. - * @param isFixed Optional parameter - if true get cell TD at the specified location from the fixed table + * @param x The column index. + * @param y The row index. + * @param isFixed Optional parameter - if true get cell TD at the specified location from the fixed table */ cellAt(x: number, y: number, isFixed: boolean): Element; /** * Returns the cell TD element by row id and column key * - * @param rowId The id of the row. - * @param columnKey The column key. + * @param rowId The id of the row. + * @param columnKey The column key. */ cellById(rowId: Object, columnKey: string): Element; @@ -43938,22 +44816,22 @@ interface IgGridMethods { /** * Returns the row (TR element) at the specified index. jQuery selectors aren't used for performance reasons * - * @param i The row index. + * @param i The row index. */ rowAt(i: number): Element; /** * Returns the row TR element by row id * - * @param rowId The id of the row. - * @param isFixed Specify search in the fixed container. + * @param rowId The id of the row. + * @param isFixed Specify search in the fixed container. */ rowById(rowId: Object, isFixed?: boolean): Element; /** * Returns the fixed row (TR element) at the specified index. jQuery selectors aren't used for performance reasons(in ColumnFixing scenario - only when there is at least one fixed column) * - * @param i The row index. + * @param i The row index. */ fixedRowAt(i: number): Element; @@ -43980,38 +44858,38 @@ interface IgGridMethods { /** * Returns a column object by the specified column key * - * @param key The column key. + * @param key The column key. */ columnByKey(key: string): Object; /** * Returns a column object by the specified header text. If there are multiple matches, returns the first one. * - * @param text The column header text. + * @param text The column header text. */ columnByText(text: string): Object; /** * Returns an array of selected cells in arbitrary order where every objects has the format { element: , row: , index: , rowIndex: , columnKey: } . - * If multiple selection is disabled the function will return null. + * If multiple selection is disabled the function will return null. */ selectedCells(): any[]; /** * Returns an array of selected rows in arbitrary order where every object has the format { element: , index: } . - * If multiple selection is disabled the function will return null. + * If multiple selection is disabled the function will return null. */ selectedRows(): any[]; /** * Returns the currently selected cell that has the format { element: , row: , index: , rowIndex: , columnKey: }, if any. - * If multiple selection is enabled the function will return null. + * If multiple selection is enabled the function will return null. */ selectedCell(): Object; /** * Returns the currently selected row that has the format { element: , index: }, if any. - * If multiple selection is enabled the function will return null. + * If multiple selection is enabled the function will return null. */ selectedRow(): Object; @@ -44027,106 +44905,106 @@ interface IgGridMethods { /** * Retrieves a cell value using the row index and the column key. If a primaryKey is defined, rowId is assumed to be the row Key (not index). - * If primary key is not defined, then rowId is converted to a number and is used as a row index. + * If primary key is not defined, then rowId is converted to a number and is used as a row index. * - * @param rowId Row index or row key (primary key). - * @param colKey The column key. + * @param rowId Row index or row key (primary key). + * @param colKey The column key. */ getCellValue(rowId: Object, colKey: string): Object; /** * Returns the cell text. If colKey is a number, the index of the column is used (instead of a column name)- does not apply when using a Multi-Row Layout grid. - * This is the actual text (or HTML string) for the contents of the cell. + * This is the actual text (or HTML string) for the contents of the cell. * - * @param rowId Row index or row data key (primary key) - * @param colKey Column key. + * @param rowId Row index or row data key (primary key) + * @param colKey Column key. */ getCellText(rowId: Object, colKey: string): string; /** * Sets a new template for a column after initialization and renders the grid if not explicitly disabled. This method will replace any existing explicitly set row template and will build one anew from the column ones. * - * @param col An identifier of the column to set template for (index or key) - * @param tmpl The column template to set - * @param render Should the grid rerender after template is set + * @param col An identifier of the column to set template for (index or key) + * @param tmpl The column template to set + * @param render Should the grid rerender after template is set */ setColumnTemplate(col: Object, tmpl: string, render?: boolean): void; /** * Commits all pending transactions to the client data source. Note that there won't be anything to commit on the UI, since it is updated instantly. In order to rollback the actual UI, a call to dataBind() is required. * - * @param rowId If specified, will commit only that transaction corresponding to the specified record key. + * @param rowId If specified, will commit only that transaction corresponding to the specified record key. */ commit(rowId?: Object): void; /** * Clears the transaction log (delegates to igDataSource). Note that this does not update the UI. In case the UI must be updated, set the second parameter "updateUI" to true, which will trigger a call to dataBind() to re-render the contents. * - * @param rowId If specified, will only rollback the transactions with that row id. - * @param updateUI Whether to update the UI or not. + * @param rowId If specified, will only rollback the transactions with that row id. + * @param updateUI Whether to update the UI or not. */ rollback(rowId?: Object, updateUI?: boolean): any[]; /** * Returns a record by a specified key (requires that primaryKey is set in the settings). - * That is a wrapper for this.dataSource.findRecordByKey(key). + * That is a wrapper for this.dataSource.findRecordByKey(key). * - * @param key Primary key of the record + * @param key Primary key of the record */ findRecordByKey(key: Object): Object; /** * Returns a standalone object (copy) that represents the committed transactions, but detached from the data source. - * That is a wrapper for this.dataSource.getDetachedRecord(t). + * That is a wrapper for this.dataSource.getDetachedRecord(t). * - * @param t A transaction object. + * @param t A transaction object. */ getDetachedRecord(t: Object): Object; /** * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source. - * That is a wrapper for this.dataSource.pendingTransactions(). + * That is a wrapper for this.dataSource.pendingTransactions(). */ pendingTransactions(): any[]; /** * Returns a list of all transaction objects that are either pending, or have been committed in the data source. - * That is a wrapper for this.dataSource.allTransactions(). + * That is a wrapper for this.dataSource.allTransactions(). */ allTransactions(): any[]; /** * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently. - * That is a wrapper for this.dataSource.transactionsAsString(). + * That is a wrapper for this.dataSource.transactionsAsString(). */ transactionsAsString(): string; /** * Invokes an AJAX request to the updateUrl option (if specified) and passes the serialized transaction log (a serialized JSON string) as part of the POST request. * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) */ saveChanges(success: Function, error: Function): void; /** * Adds a new row (TR) to the grid, by taking a data row object. Assumes the record will have the primary key. * - * @param rec Identifier/key of row. If missing, then number of rows in grid is used. + * @param rec Identifier/key of row. If missing, then number of rows in grid is used. */ renderNewRow(rec?: string): void; /** * If the data source points to a local JSON array of data, and it is necessary to reset it at runtime, it must be done through this API member instead of the options (options.dataSource) * - * @param dataSource New data source object. + * @param dataSource New data source object. */ dataSourceObject(dataSource: Object): void; /** * Returns the total number of records in the underlying backend. If paging or filtering is enabled, this may differ from the number of records in the client-side data source. - * In order for this to work, the response JSON/XML must include a property that specifies the total number of records, which name is specified by options.responseTotalRecCountKey. - * This functionality is completely delegated to the data source control. + * In order for this to work, the response JSON/XML must include a property that specifies the total number of records, which name is specified by options.responseTotalRecCountKey. + * This functionality is completely delegated to the data source control. */ totalRecordsCount(): number; @@ -44141,62 +45019,62 @@ interface IgGridMethods { * Moves a visible column at a specified place, in front or behind a target column or at a target index * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param column An identifier of the column to be moved. It can be a key, a Multi-Column Header identificator, or an index in a number format. The latter is not supported when the grid contains multi-column headers. - * @param target An identifier of a column where the moved column should move to or an index at which the moved column should be moved to. In the case of a column identifier the column will be moved after it by default. - * @param after Specifies whether the column moved should be moved after or before the target column. This parameter is disregarded if there is no target column specified but a target index is used. - * @param inDom Specifies whether the column moving will be enacted through DOM manipulation or through rerendering of the grid. - * @param callback Specifies a custom function to be called when the column is moved. + * @param column An identifier of the column to be moved. It can be a key, a Multi-Column Header identificator, or an index in a number format. The latter is not supported when the grid contains multi-column headers. + * @param target An identifier of a column where the moved column should move to or an index at which the moved column should be moved to. In the case of a column identifier the column will be moved after it by default. + * @param after Specifies whether the column moved should be moved after or before the target column. This parameter is disregarded if there is no target column specified but a target index is used. + * @param inDom Specifies whether the column moving will be enacted through DOM manipulation or through rerendering of the grid. + * @param callback Specifies a custom function to be called when the column is moved. */ moveColumn(column: Object, target: Object, after?: boolean, inDom?: boolean, callback?: Function): void; /** * Shows a hidden column. If the column is not hidden the method does nothing. - * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param column An identifier for the column. If a number is provided it will be used as a column index. If a string is provided it will be used as a column key. - * @param callback Specifies a custom function to be called when the column is shown(optional) + * @param column An identifier for the column. If a number is provided it will be used as a column index. If a string is provided it will be used as a column key. + * @param callback Specifies a custom function to be called when the column is shown(optional) */ showColumn(column: Object, callback: Function): void; /** * Hides a visible column. If the column is hidden the method does nothing. - * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param column An identifier for the column. If a number is provided it will be used as a column index else if a string is provided it will be used as a column key. - * @param callback Specifies a custom function to be called when the column is hidden(optional) + * @param column An identifier for the column. If a number is provided it will be used as a column index else if a string is provided it will be used as a column key. + * @param callback Specifies a custom function to be called when the column is hidden(optional) */ hideColumn(column: Object, callback: Function): void; /** * Gets unbound values for the specified column key. If key is not specified returns all unboundvalues * - * @param key column key + * @param key column key */ getUnboundValues(key: string): Object; /** * Sets unbound values for the unbound column with the specified key. If removeOldValues is true then values(if any) for the unbound columns are re-set with the new values * - * @param key key of the unbound column - * @param values array of values to be set on unbound values - * @param removeOldValues if true removes current unbound values(if any) for the specified column and apply the new ones specified in parameter values. Otherwise merge current values with the specified in parameter values + * @param key key of the unbound column + * @param values array of values to be set on unbound values + * @param removeOldValues if true removes current unbound values(if any) for the specified column and apply the new ones specified in parameter values. Otherwise merge current values with the specified in parameter values */ setUnboundValues(key: string, values: any[], removeOldValues: Object): void; /** * Sets unbound value for the unbound cell by the specified column key and row primary key. * - * @param col key of the unbound column - * @param rowId primary key value of the row - * @param val value to be set on unbound cell - * @param notToRender if false will re-render the row + * @param col key of the unbound column + * @param rowId primary key value of the row + * @param val value to be set on unbound cell + * @param notToRender if false will re-render the row */ setUnboundValueByPK(col: string, rowId: string, val: Object, notToRender: Object): void; /** * Returns an unbound column with the specified key. If not found returns null * - * @param key a column key + * @param key a column key */ getUnboundColumnByKey(key: string): Object; @@ -44213,16 +45091,16 @@ interface IgGridMethods { /** * Calculates the width of the column so its content to be auto-fitted to the width of the data in it(the content should NOT be shrinked/cutted) * - * @param columnIndex Visible column index + * @param columnIndex Visible column index */ calculateAutoFitColumnWidth(columnIndex: number): number; /** * Get visible index by specified column key. If column is not found or is hidden then returns -1. - * Note: Method does not count column groups (Multi-Column Headers). + * Note: Method does not count column groups (Multi-Column Headers). * - * @param columnKey columnKey - * @param includeDataSkip Optional parameter - if set to true include non data columns(like expander column, row selectors column, etc.) in calculations + * @param columnKey columnKey + * @param includeDataSkip Optional parameter - if set to true include non data columns(like expander column, row selectors column, etc.) in calculations */ getVisibleIndexByKey(columnKey: string, includeDataSkip: boolean): number; @@ -44236,22 +45114,22 @@ interface IgGridMethods { /** * Scroll to the specified row or specified position(in pixels) * - * @param scrollerPosition An identifier of the vertical scroll position. When it is string then it is interpreted as pixels otherwise it is the row number + * @param scrollerPosition An identifier of the vertical scroll position. When it is string then it is interpreted as pixels otherwise it is the row number */ virtualScrollTo(scrollerPosition: Object): void; /** * Returns column object and visible index for the table cell(TD) which is passed as argument * - * @param $td cell(TD) - either DOM TD element or jQuery object + * @param $td cell(TD) - either DOM TD element or jQuery object */ getColumnByTD($td: Object): Object; /** * Destroy is part of the jQuery UI widget API and does the following: - * 1. Remove custom CSS classes that were added. - * 2. Unwrap any wrapping elements such as scrolling divs and other containers. - * 3. Unbind all events that were bound. + * 1. Remove custom CSS classes that were added. + * 2. Unwrap any wrapping elements such as scrolling divs and other containers. + * 3. Unbind all events that were bound. * * @param notToCallDestroy */ @@ -44338,6 +45216,7 @@ interface JQuery { * Defines the grid width in pixels or percents. [Here you can find more info about setting igGrid width](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). * */ + igGrid(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -44346,12 +45225,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGrid(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * This is the total height of the grid, including all UI elements - scroll container with data rows, header, footer, filter row - (if any), etc. [Here you can find more info about setting igGrid height](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). * */ + igGrid(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -44360,6 +45241,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGrid(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -44380,6 +45262,7 @@ interface JQuery { * Used for [row virtualization](ui.iggrid#options:rowVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels (default) that will be used to calculate how many rows to render as the end user scrolls. Also all rows' height will be automatically set to this value. * */ + igGrid(optionLiteral: 'option', optionName: "avgRowHeight"): string|number; /** @@ -44388,12 +45271,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGrid(optionLiteral: 'option', optionName: "avgRowHeight", optionValue: string|number): void; /** * Used for [column virtualization](ui.iggrid#options:columnVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels for a column width. * */ + igGrid(optionLiteral: 'option', optionName: "avgColumnWidth"): string|number; /** @@ -44402,12 +45287,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGrid(optionLiteral: 'option', optionName: "avgColumnWidth", optionValue: string|number): void; /** * Default column width that will be set for all columns, that don't have [column width](ui.iggrid#options:columns.width) defined. * */ + igGrid(optionLiteral: 'option', optionName: "defaultColumnWidth"): string|number; /** @@ -44416,6 +45303,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGrid(optionLiteral: 'option', optionName: "defaultColumnWidth", optionValue: string|number): void; /** @@ -44454,6 +45342,7 @@ interface JQuery { * Determines row virtualization mode. * */ + igGrid(optionLiteral: 'option', optionName: "virtualizationMode"): string; /** @@ -44462,6 +45351,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGrid(optionLiteral: 'option', optionName: "virtualizationMode", optionValue: string): void; /** @@ -44524,6 +45414,7 @@ interface JQuery { * The templating engine that will be used to render the grid [column templates](ui.iggrid#options:columns.template). [Here you can find](http://www.infragistics.com/community/blogs/marina_stoyanova/archive/2014/05/30/using-different-template-engines-with-ignite-ui-controls.aspx) how to use templating engines other than igTemplating and jsRender. * */ + igGrid(optionLiteral: 'option', optionName: "templatingEngine"): string; /** @@ -44532,6 +45423,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGrid(optionLiteral: 'option', optionName: "templatingEngine", optionValue: string): void; /** @@ -44552,6 +45444,7 @@ interface JQuery { * Can be any valid data source accepted by [$.ig.DataSource](ig.datasource), or an instance of an $.ig.DataSource itself * */ + igGrid(optionLiteral: 'option', optionName: "dataSource"): Array|Object|string; /** @@ -44560,6 +45453,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGrid(optionLiteral: 'option', optionName: "dataSource", optionValue: Array|Object|string): void; /** @@ -44826,6 +45720,7 @@ interface JQuery { * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) * */ + igGrid(optionLiteral: 'option', optionName: "autoFormat"): string|boolean; /** @@ -44834,6 +45729,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGrid(optionLiteral: 'option', optionName: "autoFormat", optionValue: string|boolean): void; /** @@ -44982,6 +45878,7 @@ interface JQuery { * Configures how the feature chooser icon should display on header cells - e.g. to display as gear icon or not. * */ + igGrid(optionLiteral: 'option', optionName: "featureChooserIconDisplay"): string; /** @@ -44990,6 +45887,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGrid(optionLiteral: 'option', optionName: "featureChooserIconDisplay", optionValue: string): void; /** @@ -45389,7 +46287,6 @@ interface IgGridGroupByColumnSettingsSummaries { * allGroupData - array of data records for the group(for the whole data source - not only for the data view) * * - * * Valid values: * "string" the name of the function as a string located in the global window object. * "function" which will be used for calculating the summary value. @@ -45477,6 +46374,40 @@ interface GroupedColumnsChangingEvent { } interface GroupedColumnsChangingEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * Gets a reference to the current groupedColumns. + */ + groupedColumns?: any[]; + + /** + * Gets the object of the new grouped columns that should be applied.(it is set ONLY if called from modal dialog) + */ + newGroupedColumns?: any; + + /** + * Gets a reference to the current column's key that's being grouped(not set if called from modal dialog). + */ + key?: string; + + /** + * Gets a reference to the current layout object, if any(not set if called from modal dialog). + */ + layout?: any; + + /** + * Gets a reference to the current child grid element, in case it's an hierarchical grid(not set if called from modal dialog). + */ + grid?: any; + + /** + * Gets which user interaction triggers the event - possible options are dragAndDrop|modalDialog|sortStateChanged|removeButton|regroup. + */ + triggeredBy?: string; } interface GroupedColumnsChangedEvent { @@ -45484,6 +46415,35 @@ interface GroupedColumnsChangedEvent { } interface GroupedColumnsChangedEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * Gets a reference to the current groupedColumns. + */ + groupedColumns?: any[]; + + /** + * Gets a reference to the current column's key that's being grouped(not set if called from modal dialog). + */ + key?: string; + + /** + * Gets a reference to the current layout object, if any(not set if called from modal dialog). + */ + layout?: any; + + /** + * Gets a reference to the current child grid element, in case it's an hierarchical grid(not set if called from modal dialog). + */ + grid?: any; + + /** + * Gets which user interaction triggers the event - possible options are dragAndDrop|modalDialog|sortStateChanged|removeButton|regroup. + */ + triggeredBy?: string; } interface ModalDialogMovingEvent { @@ -45491,6 +46451,25 @@ interface ModalDialogMovingEvent { } interface ModalDialogMovingEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * Gets a reference to the modal dialog element. This is a jQuery object. + */ + modalDialogElement?: string; + + /** + * Gets the original position of the GroupBy Dialog div as { top, left } object, relative to the page. + */ + originalPosition?: any; + + /** + * Gets the current position of the GroupBy Dialog div as { top, left } object, relative to the page. + */ + position?: any; } interface ModalDialogClosingEvent { @@ -45498,6 +46477,15 @@ interface ModalDialogClosingEvent { } interface ModalDialogClosingEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * Gets a reference to the modal dialog element. This is a jQuery object. + */ + modalDialogElement?: string; } interface ModalDialogClosedEvent { @@ -45505,6 +46493,15 @@ interface ModalDialogClosedEvent { } interface ModalDialogClosedEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * Gets a reference to the modal dialog element. This is a jQuery object. + */ + modalDialogElement?: string; } interface ModalDialogOpeningEvent { @@ -45512,6 +46509,15 @@ interface ModalDialogOpeningEvent { } interface ModalDialogOpeningEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * Gets a reference to the modal dialog element. This is a jQuery object. + */ + modalDialogElement?: string; } interface ModalDialogOpenedEvent { @@ -45519,6 +46525,15 @@ interface ModalDialogOpenedEvent { } interface ModalDialogOpenedEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * Gets a reference to the modal dialog element. This is a jQuery object. + */ + modalDialogElement?: string; } interface ModalDialogContentsRenderingEvent { @@ -45526,6 +46541,15 @@ interface ModalDialogContentsRenderingEvent { } interface ModalDialogContentsRenderingEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * Gets a reference to the modal dialog element. This is a jQuery object. + */ + modalDialogElement?: string; } interface ModalDialogContentsRenderedEvent { @@ -45533,6 +46557,15 @@ interface ModalDialogContentsRenderedEvent { } interface ModalDialogContentsRenderedEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * Gets a reference to the modal dialog element. This is a jQuery object. + */ + modalDialogElement?: string; } interface ModalDialogButtonApplyClickEvent { @@ -45540,6 +46573,30 @@ interface ModalDialogButtonApplyClickEvent { } interface ModalDialogButtonApplyClickEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * Gets a reference to the modal dialog element. This is a jQuery object. + */ + modalDialogElement?: string; + + /** + * Gets the array of grouped columns. + */ + groupedColumns?: any[]; + + /** + * Gets the array of column layouts. + */ + groupedColumnLayouts?: any[]; + + /** + * Gets the array of sorted columns. + */ + sortingExpr?: any[]; } interface ModalDialogButtonResetClickEvent { @@ -45547,6 +46604,15 @@ interface ModalDialogButtonResetClickEvent { } interface ModalDialogButtonResetClickEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * Gets a reference to the modal dialog element. This is a jQuery object. + */ + modalDialogElement?: string; } interface ModalDialogGroupingColumnEvent { @@ -45554,6 +46620,20 @@ interface ModalDialogGroupingColumnEvent { } interface ModalDialogGroupingColumnEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * The key of the column to be grouped. + */ + key?: string; + + /** + * Gets a reference to the current layout object, if any. + */ + layout?: any; } interface ModalDialogGroupColumnEvent { @@ -45561,6 +46641,25 @@ interface ModalDialogGroupColumnEvent { } interface ModalDialogGroupColumnEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * The key of the column to be grouped. + */ + key?: string; + + /** + * Gets a reference to the current groupedColumns. + */ + groupedColumns?: any[]; + + /** + * Gets a reference to the current layout object, if any. + */ + layout?: any; } interface ModalDialogUngroupingColumnEvent { @@ -45568,6 +46667,20 @@ interface ModalDialogUngroupingColumnEvent { } interface ModalDialogUngroupingColumnEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * The key of the column to be grouped. + */ + key?: string; + + /** + * Get a reference to the current layout object, if any. + */ + layout?: string; } interface ModalDialogUngroupColumnEvent { @@ -45575,6 +46688,25 @@ interface ModalDialogUngroupColumnEvent { } interface ModalDialogUngroupColumnEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * Gets a reference to the current groupedColumns. + */ + groupedColumns?: any[]; + + /** + * Gets the key of the column to be grouped. + */ + key?: string; + + /** + * Get a reference to the current layout object, if any. + */ + layout?: any; } interface ModalDialogSortGroupedColumnEvent { @@ -45582,6 +46714,25 @@ interface ModalDialogSortGroupedColumnEvent { } interface ModalDialogSortGroupedColumnEventUIParam { + /** + * Gets access the GroupBy widget object. + */ + owner?: any; + + /** + * Gets the key of the column to be grouped. + */ + key?: string; + + /** + * Get a reference to the current layout object, if any. + */ + layout?: any; + + /** + * Gets whether column should be sorted ascending or descending. + */ + isAsc?: boolean; } interface IgGridGroupBy { @@ -45887,7 +47038,6 @@ interface IgGridGroupBy { * Specifies default summaries that will appear when grouping by a column on the bottom of each group as a row.This option has a lower priority than the groupSummaries defined under columnSettings for each column. * All default summaries are defined under $.ig.util.defaultSummaryMethods * - * */ groupSummaries?: any; @@ -46016,17 +47166,17 @@ interface IgGridGroupByMethods { /** * Check whether column with specified key and layout is grouped * - * @param key key of the column - * @param layout layout name + * @param key key of the column + * @param layout layout name */ checkColumnIsGrouped(key: string, layout: string): void; /** * Get grouped data by value for the specific column. NOTE: Before calling this function the data(that is passed as an argument) should be sorted by colKey. * - * @param data data (sorted by colKey) that is used to get the records from. - * @param colKey key of the column for which grouping will be applied. - * @param idval value of the column by which grouping will be applied. + * @param data data (sorted by colKey) that is used to get the records from. + * @param colKey key of the column for which grouping will be applied. + * @param idval value of the column by which grouping will be applied. */ getGroupedData(data: any[], colKey: string, idval?: string): any[]; @@ -46038,31 +47188,31 @@ interface IgGridGroupByMethods { /** * Groups by a column * - * @param key Column Key - group by the column with the specified key - * @param layout layout is an optional parameter. if set it means the grouped column is not in the root level but is a child layout column - * @param sortingDirection if not set it is taken from option defaultSortingDirection + * @param key Column Key - group by the column with the specified key + * @param layout layout is an optional parameter. if set it means the grouped column is not in the root level but is a child layout column + * @param sortingDirection if not set it is taken from option defaultSortingDirection */ groupByColumn(key: string, layout?: string, sortingDirection?: Object): void; /** * Removes the specified column from the group by columns list, executes the group by operation and updates the view. * - * @param key Column Key - ungroup by the column with the specified key - * @param layout Layout is an optional parameter. If set it means the grouped column is not in the root level but is a child layout column. + * @param key Column Key - ungroup by the column with the specified key + * @param layout Layout is an optional parameter. If set it means the grouped column is not in the root level but is a child layout column. */ ungroupByColumn(key: string, layout?: string): void; /** * Expand group row with specified id * - * @param rowId data-id attribute of the group row in the DOM + * @param rowId data-id attribute of the group row in the DOM */ expand(rowId: string): void; /** * Expand group row with specified id * - * @param rowId data-id attribute of the group row in the DOM + * @param rowId data-id attribute of the group row in the DOM */ collapse(rowId: string): void; @@ -46100,6 +47250,7 @@ interface JQuery { * Sets the place in the grid where the GroupBy area will be * */ + igGridGroupBy(optionLiteral: 'option', optionName: "groupByAreaVisibility"): string; /** @@ -46108,6 +47259,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridGroupBy(optionLiteral: 'option', optionName: "groupByAreaVisibility", optionValue: string): void; /** @@ -46128,6 +47280,7 @@ interface JQuery { * Gets when paging is applied and there is at least one grouped column which records should be included in page processing. * */ + igGridGroupBy(optionLiteral: 'option', optionName: "pagingMode"): string; /** @@ -46136,6 +47289,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridGroupBy(optionLiteral: 'option', optionName: "pagingMode", optionValue: string): void; /** @@ -46226,6 +47380,7 @@ interface JQuery { * Default sort order - ascending or descending * */ + igGridGroupBy(optionLiteral: 'option', optionName: "defaultSortingDirection"): string; /** @@ -46234,6 +47389,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridGroupBy(optionLiteral: 'option', optionName: "defaultSortingDirection", optionValue: string): void; /** @@ -46282,6 +47438,7 @@ interface JQuery { * Gets whether the GroupBy operation takes place locally on client-side or remotely on server-side. * */ + igGridGroupBy(optionLiteral: 'option', optionName: "type"): string; /** @@ -46290,6 +47447,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridGroupBy(optionLiteral: 'option', optionName: "type", optionValue: string): void; /** @@ -46604,6 +47762,7 @@ interface JQuery { * Gets width of the GroupBy Dialog * */ + igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogWidth"): string|number; /** @@ -46612,12 +47771,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogWidth", optionValue: string|number): void; /** * Gets height of the GroupBy Dialog * */ + igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogHeight"): string|number; /** @@ -46626,6 +47787,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridGroupBy(optionLiteral: 'option', optionName: "modalDialogHeight", optionValue: string|number): void; /** @@ -46688,6 +47850,7 @@ interface JQuery { * Controls containment behavior for the GroupBy Dialog. * */ + igGridGroupBy(optionLiteral: 'option', optionName: "groupByDialogContainment"): string; /** @@ -46696,6 +47859,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridGroupBy(optionLiteral: 'option', optionName: "groupByDialogContainment", optionValue: string): void; /** @@ -46728,7 +47892,6 @@ interface JQuery { * Gets default summaries that will appear when grouping by a column on the bottom of each group as a row.This option has a lower priority than the groupSummaries defined under columnSettings for each column. * All default summaries are defined under $.ig.util.defaultSummaryMethods * - * */ igGridGroupBy(optionLiteral: 'option', optionName: "groupSummaries"): any; @@ -46737,7 +47900,6 @@ interface JQuery { * All default summaries are defined under $.ig.util.defaultSummaryMethods * * - * * @optionValue New value to be set. */ igGridGroupBy(optionLiteral: 'option', optionName: "groupSummaries", optionValue: any): void; @@ -46746,6 +47908,7 @@ interface JQuery { * Gets the groupSummaries postion inside each group. * */ + igGridGroupBy(optionLiteral: 'option', optionName: "groupSummariesPosition"): string; /** @@ -46754,6 +47917,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridGroupBy(optionLiteral: 'option', optionName: "groupSummariesPosition", optionValue: string): void; /** @@ -46989,6 +48153,20 @@ interface ColumnHidingEvent { } interface ColumnHidingEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets the hidden column index. Has a value only if the column's key is a number. + */ + columnIndex?: number; + + /** + * Gets the hidden column key. Has a value only if the column's key is a string. + */ + columnKey?: string; } interface ColumnHidingRefusedEvent { @@ -46996,6 +48174,15 @@ interface ColumnHidingRefusedEvent { } interface ColumnHidingRefusedEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Array of column keys. Has a value only if the column's key is a string. + */ + columnKeys?: any[]; } interface ColumnShowingRefusedEvent { @@ -47003,6 +48190,15 @@ interface ColumnShowingRefusedEvent { } interface ColumnShowingRefusedEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Array of column keys. Has a value only if the column's key is a string. + */ + columnKeys?: any[]; } interface MultiColumnHidingEvent { @@ -47010,6 +48206,15 @@ interface MultiColumnHidingEvent { } interface MultiColumnHidingEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets the array of the hidden column keys. Only when you click on Reset button in column chooser there is an array of column keys. + */ + columnKeys?: any[]; } interface ColumnHiddenEvent { @@ -47017,6 +48222,20 @@ interface ColumnHiddenEvent { } interface ColumnHiddenEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets the hidden column index. Has a value only if the column's key is a number. + */ + columnIndex?: number; + + /** + * Gets the hidden column key. Has a value only if the column's key is a string. + */ + columnKey?: string; } interface ColumnShowingEvent { @@ -47024,6 +48243,20 @@ interface ColumnShowingEvent { } interface ColumnShowingEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets the shown column index. + */ + columnIndex?: number; + + /** + * Gets the shown column key. + */ + columnKey?: string; } interface ColumnShownEvent { @@ -47031,6 +48264,20 @@ interface ColumnShownEvent { } interface ColumnShownEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets the shown column index. + */ + columnIndex?: number; + + /** + * Gets the shown column key. + */ + columnKey?: string; } interface ColumnChooserOpeningEvent { @@ -47038,6 +48285,15 @@ interface ColumnChooserOpeningEvent { } interface ColumnChooserOpeningEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets a reference to the Column Chooser element. This is a jQuery object. + */ + columnChooserElement?: string; } interface ColumnChooserOpenedEvent { @@ -47045,6 +48301,15 @@ interface ColumnChooserOpenedEvent { } interface ColumnChooserOpenedEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets a reference to the Column Chooser element. This is a jQuery object. + */ + columnChooserElement?: string; } interface ColumnChooserMovingEvent { @@ -47052,6 +48317,25 @@ interface ColumnChooserMovingEvent { } interface ColumnChooserMovingEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets a reference to the Column Chooser element. This is a jQuery object. + */ + columnChooserElement?: string; + + /** + * Gets the original position of the column chooser div as { top, left } object, relative to the page. + */ + originalPosition?: any; + + /** + * Gets the current position of the column chooser div as { top, left } object, relative to the page. + */ + position?: any; } interface ColumnChooserClosingEvent { @@ -47059,6 +48343,15 @@ interface ColumnChooserClosingEvent { } interface ColumnChooserClosingEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets a reference to the Column Chooser element. This is a jQuery object. + */ + columnChooserElement?: string; } interface ColumnChooserClosedEvent { @@ -47066,6 +48359,15 @@ interface ColumnChooserClosedEvent { } interface ColumnChooserClosedEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets a reference to the Column Chooser element. This is a jQuery object. + */ + columnChooserElement?: string; } interface ColumnChooserContentsRenderingEvent { @@ -47073,6 +48375,15 @@ interface ColumnChooserContentsRenderingEvent { } interface ColumnChooserContentsRenderingEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets a reference to the Column Chooser element. This is a jQuery object. + */ + columnChooserElement?: string; } interface ColumnChooserContentsRenderedEvent { @@ -47080,6 +48391,15 @@ interface ColumnChooserContentsRenderedEvent { } interface ColumnChooserContentsRenderedEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets a reference to the Column Chooser element. This is a jQuery object. + */ + columnChooserElement?: string; } interface ColumnChooserButtonApplyClickEvent { @@ -47087,6 +48407,25 @@ interface ColumnChooserButtonApplyClickEvent { } interface ColumnChooserButtonApplyClickEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets a reference to the Column Chooser element. This is a jQuery object. + */ + columnChooserElement?: string; + + /** + * Gets the array of columns identifiers which should be shown. + */ + columnsToShow?: any[]; + + /** + * Gets the array of columns identifiers which should be hidden. + */ + columnsToHide?: any[]; } interface ColumnChooserButtonResetClickEvent { @@ -47094,6 +48433,15 @@ interface ColumnChooserButtonResetClickEvent { } interface ColumnChooserButtonResetClickEventUIParam { + /** + * Gets a reference to the GridHiding widget. + */ + owner?: any; + + /** + * Gets a reference to the Column Chooser element. This is a jQuery object. + */ + columnChooserElement?: string; } interface IgGridHiding { @@ -47318,9 +48666,9 @@ interface IgGridHidingMethods { * Shows a hidden column. If the column is not hidden the method does nothing. * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param column An identifier for the column. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. - * @param isMultiColumnHeader If it is true then the column is of type multicolumnheader. An identifier for the column should be of type string. - * @param callback Specifies a custom function to be called when the column(s) is shown(optional) + * @param column An identifier for the column. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. + * @param isMultiColumnHeader If it is true then the column is of type multicolumnheader. An identifier for the column should be of type string. + * @param callback Specifies a custom function to be called when the column(s) is shown(optional) */ showColumn(column: Object, isMultiColumnHeader?: boolean, callback?: Function): void; @@ -47328,9 +48676,9 @@ interface IgGridHidingMethods { * Hides a visible column. If the column is hidden the method does nothing. * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param column An identifier for the column. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. - * @param isMultiColumnHeader If it is true then the column is of type multicolumnheader. An identifier for the column should be of type string. - * @param callback Specifies a custom function to be called when the column is hidden(optional) + * @param column An identifier for the column. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. + * @param isMultiColumnHeader If it is true then the column is of type multicolumnheader. An identifier for the column should be of type string. + * @param callback Specifies a custom function to be called when the column is hidden(optional) */ hideColumn(column: Object, isMultiColumnHeader?: boolean, callback?: Function): void; @@ -47338,8 +48686,8 @@ interface IgGridHidingMethods { * Hides visible columns specified by the array. If the column is hidden the method does nothing. * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param columns An array of identifiers for the columns. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. - * @param callback Specifies a custom function to be called when all columns are hidden(optional) + * @param columns An array of identifiers for the columns. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. + * @param callback Specifies a custom function to be called when all columns are hidden(optional) */ hideMultiColumns(columns: any[], callback?: Function): void; @@ -47347,8 +48695,8 @@ interface IgGridHidingMethods { * Show visible columns specified by the array. If the column is shown the method does nothing. * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param columns An array of identifiers for the columns. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. - * @param callback Specifies a custom function to be called when all columns are shown(optional) + * @param columns An array of identifiers for the columns. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. + * @param callback Specifies a custom function to be called when all columns are shown(optional) */ showMultiColumns(columns: any[], callback?: Function): void; @@ -47954,7 +49302,6 @@ interface IgHierarchicalGridColumn { * Width of the column in pixels or percentage. Can also be set as '*', in which case the width auto-size based on the content of the column cells (including the header text).If width is not defined and [defaultColumnWidth](ui.ighierarchicalgrid#options:defaultColumnWidth) is set, it is assumed for all columns. * * - * * Valid values: * "string" The column width can be set in pixels (px), percentage (%) or as '*' in order to auto-size based on the cells and header content. * "number" The column width can be set as a number @@ -48262,6 +49609,15 @@ interface RowExpandingEvent { } interface RowExpandingEventUIParam { + /** + * Gets access the hierarchical grid object. + */ + owner?: any; + + /** + * Gets access the row element for the row that's about to be expanded. + */ + parentrow?: string; } interface RowExpandedEvent { @@ -48269,6 +49625,15 @@ interface RowExpandedEvent { } interface RowExpandedEventUIParam { + /** + * Gets access the hierarchical grid object. + */ + owner?: any; + + /** + * Gets access the row element for the row that was expanded. + */ + parentrow?: string; } interface RowCollapsingEvent { @@ -48276,6 +49641,15 @@ interface RowCollapsingEvent { } interface RowCollapsingEventUIParam { + /** + * Gets access the hierarchical grid object. + */ + owner?: any; + + /** + * Gets access the row element for the row that's about to be collapsed. + */ + parentrow?: string; } interface RowCollapsedEvent { @@ -48283,6 +49657,15 @@ interface RowCollapsedEvent { } interface RowCollapsedEventUIParam { + /** + * Gets access the hierarchical grid object. + */ + owner?: any; + + /** + * Gets access the row element for the row that was collapsed. + */ + parentrow?: string; } interface ChildrenPopulatingEvent { @@ -48290,6 +49673,20 @@ interface ChildrenPopulatingEvent { } interface ChildrenPopulatingEventUIParam { + /** + * Gets access the hierarchical grid object. + */ + owner?: any; + + /** + * Gets access the row element for the row that's about to be populated. + */ + parentrow?: string; + + /** + * Gets the data ID of the row. + */ + id?: any; } interface ChildrenPopulatedEvent { @@ -48297,6 +49694,20 @@ interface ChildrenPopulatedEvent { } interface ChildrenPopulatedEventUIParam { + /** + * Gets access the hierarchical grid object. + */ + owner?: any; + + /** + * Gets access the row element for the row that was populated. + */ + parentrow?: string; + + /** + * Gets the data ID of the row. + */ + id?: any; } interface ChildGridRenderedEvent { @@ -48304,21 +49715,33 @@ interface ChildGridRenderedEvent { } interface ChildGridRenderedEventUIParam { + /** + * Gets access the hierarchical grid object. + */ + owner?: any; + + /** + * Gets access the row element for the row that's about to be populated. + */ + parentrow?: string; + + /** + * Gets reference to the child grid. + */ + childgrid?: any; } interface ChildGridCreatingEvent { (event: Event, ui: ChildGridCreatingEventUIParam): void; } -interface ChildGridCreatingEventUIParam { -} +interface ChildGridCreatingEventUIParam {} interface ChildGridCreatedEvent { (event: Event, ui: ChildGridCreatedEventUIParam): void; } -interface ChildGridCreatedEventUIParam { -} +interface ChildGridCreatedEventUIParam {} interface IgHierarchicalGrid { /** @@ -48944,49 +50367,49 @@ interface IgHierarchicalGridMethods { /** * Expands or collapses (toggles) a parent row - * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param element accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row - * @param callback Specifies a custom function to be called when parent row is toggled(optional). Takes 2 arguments - first is hierarchical grid object, second is the row element that was toggled + * @param element accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row + * @param callback Specifies a custom function to be called when parent row is toggled(optional). Takes 2 arguments - first is hierarchical grid object, second is the row element that was toggled */ toggle(element: Element, callback?: Function): void; /** * Expands (toggles) a parent row - * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param id accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row - * @param callback Specifies a custom function to be called when parent row is expanded(optional). Takes 2 arguments first is hierarchical grid object, second is the row element that was expanded + * @param id accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row + * @param callback Specifies a custom function to be called when parent row is expanded(optional). Takes 2 arguments first is hierarchical grid object, second is the row element that was expanded */ expand(id: Element, callback?: Function): void; /** * Checks if a parent row is expanded or not * - * @param element accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row + * @param element accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row */ expanded(element: Element): boolean; /** * Collapses a parent row - * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param id accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row - * @param callback Specifies a custom function to be called when parent row is expanded(optional). Takes 2 arguments - first is hierarchical grid object, second is the row element that was collapsed + * @param id accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row + * @param callback Specifies a custom function to be called when parent row is expanded(optional). Takes 2 arguments - first is hierarchical grid object, second is the row element that was collapsed */ collapse(id: Element, callback?: Function): void; /** * Checks if a parent row is currently collapsed * - * @param element accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row + * @param element accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row */ collapsed(element: Element): boolean; /** * Checks if a parent row is populated with data * - * @param element accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row + * @param element accepts a dom element, or a jquery wrapped dom element that should be a TR and should specify a parent row */ populated(element: Element): boolean; @@ -48998,15 +50421,15 @@ interface IgHierarchicalGridMethods { /** * Clears the transaction log (delegates to igDataSource). Note that this does not update the UI. In case the UI must be updated, set the second parameter "updateUI" to true, which will trigger a call to dataBind() to re-render the contents. * - * @param rebind Whether to perform a rebind. + * @param rebind Whether to perform a rebind. */ rollback(rebind?: boolean): void; /** * Posts to the settings.updateUrl using $.ajax, by serializing the changes as url params * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) */ saveChanges(success: Function, error: Function): void; @@ -49240,6 +50663,7 @@ interface JQuery { * Defines the grid width in pixels or percents. [Here you can find more info about setting igGrid width](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). * */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -49248,12 +50672,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * This is the total height of the grid, including all UI elements - scroll container with data rows, header, footer, filter row - (if any), etc. [Here you can find more info about setting igGrid height](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). * */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -49262,6 +50688,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -49282,6 +50709,7 @@ interface JQuery { * Used for [row virtualization](ui.ighierarchicalgrid#options:rowVirtualization) in [fixed mode](ui.ighierarchicalgrid#options:virtualizationMode). This is the average value in pixels (default) that will be used to calculate how many rows to render as the end user scrolls. Also all rows' height will be automatically set to this value. * */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "avgRowHeight"): string|number; /** @@ -49290,12 +50718,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "avgRowHeight", optionValue: string|number): void; /** * Used for [column virtualization](ui.ighierarchicalgrid#options:columnVirtualization) in [fixed mode](ui.ighierarchicalgrid#options:virtualizationMode). This is the average value in pixels for a column width. * */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "avgColumnWidth"): string|number; /** @@ -49304,12 +50734,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "avgColumnWidth", optionValue: string|number): void; /** * Default column width that will be set for all columns, that don't have [column width](ui.ighierarchicalgrid#options:columns.width) defined. * */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "defaultColumnWidth"): string|number; /** @@ -49318,6 +50750,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "defaultColumnWidth", optionValue: string|number): void; /** @@ -49356,6 +50789,7 @@ interface JQuery { * Determines row virtualization mode. * */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "virtualizationMode"): string; /** @@ -49364,6 +50798,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "virtualizationMode", optionValue: string): void; /** @@ -49426,6 +50861,7 @@ interface JQuery { * The templating engine that will be used to render the grid [column templates](ui.ighierarchicalgrid#options:columns.template). [Here you can find](http://www.infragistics.com/community/blogs/marina_stoyanova/archive/2014/05/30/using-different-template-engines-with-ignite-ui-controls.aspx) how to use templating engines other than igTemplating and jsRender. * */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "templatingEngine"): string; /** @@ -49434,6 +50870,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "templatingEngine", optionValue: string): void; /** @@ -49728,6 +51165,7 @@ interface JQuery { * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) * */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "autoFormat"): string|boolean; /** @@ -49736,6 +51174,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "autoFormat", optionValue: string|boolean): void; /** @@ -49884,6 +51323,7 @@ interface JQuery { * Configures how the feature chooser icon should display on header cells - e.g. to display as gear icon or not. * */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "featureChooserIconDisplay"): string; /** @@ -49892,6 +51332,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igHierarchicalGrid(optionLiteral: 'option', optionName: "featureChooserIconDisplay", optionValue: string): void; /** @@ -50326,6 +51767,20 @@ interface GroupCollapsingEvent { } interface GroupCollapsingEventUIParam { + /** + * Gets the reference to the GridMultiColumnHeaders widget. + */ + owner?: any; + + /** + * Gets the column object for the current group that is collapsing. + */ + column?: any; + + /** + * Get a reference to the jQuery object for the column being collapsing (th). + */ + element?: string; } interface GroupCollapsedEvent { @@ -50333,6 +51788,20 @@ interface GroupCollapsedEvent { } interface GroupCollapsedEventUIParam { + /** + * Gets the reference to the GridMultiColumnHeaders widget. + */ + owner?: any; + + /** + * Gets the column object for the current group that is collapsed. + */ + column?: any; + + /** + * Get a reference to the jQuery object for the column being collapsed (th). + */ + element?: string; } interface GroupExpandingEvent { @@ -50340,6 +51809,20 @@ interface GroupExpandingEvent { } interface GroupExpandingEventUIParam { + /** + * Gets the reference to the GridMultiColumnHeaders widget. + */ + owner?: any; + + /** + * Gets the column object for the current group that is expanding. + */ + column?: any; + + /** + * Gets a reference to the jQuery object for the column being expanded (th). + */ + element?: string; } interface GroupExpandedEvent { @@ -50347,6 +51830,15 @@ interface GroupExpandedEvent { } interface GroupExpandedEventUIParam { + /** + * Gets the reference to the GridMultiColumnHeaders widget. + */ + owner?: any; + + /** + * Gets a reference to the jQuery object for the column being expanded (th). + */ + element?: string; } interface IgGridMultiColumnHeaders { @@ -50385,7 +51877,7 @@ interface IgGridMultiColumnHeadersMethods { * Expands a collapsed group. If the group is expanded, the method does nothing. * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param groupKey Group key. + * @param groupKey Group key. * @param callback Specifies a custom function to be called when the group is expanded. */ expandGroup(groupKey: string, callback?: Function): void; @@ -50499,6 +51991,20 @@ interface PageIndexChangingEvent { } interface PageIndexChangingEventUIParam { + /** + * Gets reference to GridPaging. + */ + owner?: any; + + /** + * Gets current page index. + */ + currentPageIndex?: number; + + /** + * Gets new page index. + */ + newPageIndex?: number; } interface PageIndexChangedEvent { @@ -50506,6 +52012,15 @@ interface PageIndexChangedEvent { } interface PageIndexChangedEventUIParam { + /** + * Gets reference to GridPaging. + */ + owner?: any; + + /** + * Gets the current page index. + */ + pageIndex?: number; } interface PageSizeChangingEvent { @@ -50514,9 +52029,14 @@ interface PageSizeChangingEvent { interface PageSizeChangingEventUIParam { /** - * Used to get new page size. + * Gets reference to GridPaging. */ - newPageSize?: any; + owner?: any; + + /** + * Gets the current page size. + */ + currentPageSize?: number; } interface PageSizeChangedEvent { @@ -50524,6 +52044,15 @@ interface PageSizeChangedEvent { } interface PageSizeChangedEventUIParam { + /** + * Gets reference to GridPaging. + */ + owner?: any; + + /** + * Gets the current page size. + */ + currentPageSize?: number; } interface PagerRenderingEvent { @@ -50531,6 +52060,15 @@ interface PagerRenderingEvent { } interface PagerRenderingEventUIParam { + /** + * Gets reference to GridPaging. + */ + owner?: any; + + /** + * Gets a reference to grid's data source. + */ + dataSource?: any; } interface PagerRenderedEvent { @@ -50538,6 +52076,15 @@ interface PagerRenderedEvent { } interface PagerRenderedEventUIParam { + /** + * Gets reference to GridPaging. + */ + owner?: any; + + /** + * Gets a reference to grid's data source. + */ + dataSource?: any; } interface IgGridPaging { @@ -50802,14 +52349,14 @@ interface IgGridPagingMethods { /** * Gets/Sets the current page index, delegates data binding and paging to [$.ig.DataSource](ig.datasource). * - * @param index The page index to go to. + * @param index The page index to go to. */ pageIndex(index?: number): number; /** * Gets/Sets the page size. If no parameter is specified, just returns the current page size. * - * @param size The new page size. + * @param size The new page size. */ pageSize(size?: number): number; @@ -50901,6 +52448,7 @@ interface JQuery { * Type of paging. Delegates all paging functionality to the [$.ig.DataSource](ig.datasource). * */ + igGridPaging(optionLiteral: 'option', optionName: "type"): string; /** @@ -50909,6 +52457,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridPaging(optionLiteral: 'option', optionName: "type", optionValue: string): void; /** @@ -50957,6 +52506,7 @@ interface JQuery { * Page size dropdown location, when [showPageSizeDropDown](ui.iggridpaging#options:showPageSizeDropDown) is set to true. Can be rendered above the grid header or inside the pager, next to the page links. * */ + igGridPaging(optionLiteral: 'option', optionName: "pageSizeDropDownLocation"): string; /** @@ -50965,6 +52515,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridPaging(optionLiteral: 'option', optionName: "pageSizeDropDownLocation", optionValue: string): void; /** @@ -51444,6 +52995,25 @@ interface ColumnResizingEvent { } interface ColumnResizingEventUIParam { + /** + * Gets a reference to the GridResizing widget. + */ + owner?: any; + + /** + * Gets the resized column index. + */ + columnIndex?: number; + + /** + * Gets the resized column key. + */ + columnKey?: string; + + /** + * Gets the desired width(before min/max coercion) for the resized column. + */ + desiredWidth?: number; } interface ColumnResizingRefusedEvent { @@ -51451,6 +53021,25 @@ interface ColumnResizingRefusedEvent { } interface ColumnResizingRefusedEventUIParam { + /** + * Gets a reference to the GridResizing widget. + */ + owner?: any; + + /** + * Gets the resized column index. + */ + columnIndex?: number; + + /** + * Gets the resized column key. + */ + columnKey?: string; + + /** + * Gets the desired width(before min/max coercion) for the resized column. + */ + desiredWidth?: number; } interface ColumnResizedEvent { @@ -51458,6 +53047,30 @@ interface ColumnResizedEvent { } interface ColumnResizedEventUIParam { + /** + * Gets a reference to the GridResizing widget. + */ + owner?: any; + + /** + * Gets the resized column index. + */ + columnIndex?: number; + + /** + * Gets the resized column key. + */ + columnKey?: string; + + /** + * Gets the original column width. + */ + originalWidth?: number; + + /** + * Gets the final column width after resizing. + */ + newWidth?: number; } interface IgGridResizing { @@ -51519,8 +53132,8 @@ interface IgGridResizingMethods { /** * Resizes a column to a specified width in pixels, percents or auto if no width is specified. * - * @param column An identifier for the column. If a number is provided it will be used as a columnIndex else if a strings is provided it will be used as a columnKey. - * @param width Width of the column in pixels or percents. If no width or "*" is specified the column will be auto-sized to the width of the data in it (including header and footer cells). + * @param column An identifier for the column. If a number is provided it will be used as a columnIndex else if a strings is provided it will be used as a columnKey. + * @param width Width of the column in pixels or percents. If no width or "*" is specified the column will be auto-sized to the width of the data in it (including header and footer cells). */ resize(column: Object, width?: Object): void; } @@ -51714,6 +53327,20 @@ interface ResponsiveColumnHidingEvent { } interface ResponsiveColumnHidingEventUIParam { + /** + * Gets the reference to the igGridResponsive widget. + */ + owner?: any; + + /** + * Gets the hidden column index. Has a value only if the column's key is a number. + */ + columnIndex?: number; + + /** + * Gets the hidden column key. Has a value only if the column's key is a string. + */ + columnKey?: string; } interface ResponsiveColumnHiddenEvent { @@ -51721,6 +53348,20 @@ interface ResponsiveColumnHiddenEvent { } interface ResponsiveColumnHiddenEventUIParam { + /** + * Gets the reference to the igGridResponsive widget. + */ + owner?: any; + + /** + * Gets the hidden column index. Has a value only if the column's key is a number. + */ + columnIndex?: number; + + /** + * Gets the hidden column key. Has a value only if the column's key is a string. + */ + columnKey?: string; } interface ResponsiveColumnShowingEvent { @@ -51728,6 +53369,20 @@ interface ResponsiveColumnShowingEvent { } interface ResponsiveColumnShowingEventUIParam { + /** + * Gets the reference to the igGridResponsive widget. + */ + owner?: any; + + /** + * Gets the shown column index. Has a value only if the column's key is a number. + */ + columnIndex?: number; + + /** + * Gets the shown column key. Has a value only if the column's key is a string. + */ + columnKey?: string; } interface ResponsiveColumnShownEvent { @@ -51735,6 +53390,20 @@ interface ResponsiveColumnShownEvent { } interface ResponsiveColumnShownEventUIParam { + /** + * Gets the reference to the igGridResponsive widget. + */ + owner?: any; + + /** + * Gets the shown column index. Has a value only if the column's key is a number. + */ + columnIndex?: number; + + /** + * Gets the shown column key. Has a value only if the column's key is a string. + */ + columnKey?: string; } interface ResponsiveModeChangedEvent { @@ -51742,6 +53411,20 @@ interface ResponsiveModeChangedEvent { } interface ResponsiveModeChangedEventUIParam { + /** + * Gets the reference to the igGridResponsive widget. + */ + owner?: any; + + /** + * Gets the previously assumed mode. + */ + previousMode?: string; + + /** + * Gets the newly assumed mode. + */ + mode?: string; } interface IgGridResponsive { @@ -52029,6 +53712,7 @@ interface JQuery { * The window's width under which the grid will render its contents vertically. * */ + igGridResponsive(optionLiteral: 'option', optionName: "windowWidthToRenderVertically"): string|number; /** @@ -52037,12 +53721,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridResponsive(optionLiteral: 'option', optionName: "windowWidthToRenderVertically", optionValue: string|number): void; /** * The width of the properties column when vertical rendering is enabled * */ + igGridResponsive(optionLiteral: 'option', optionName: "propertiesColumnWidth"): string|number; /** @@ -52051,12 +53737,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridResponsive(optionLiteral: 'option', optionName: "propertiesColumnWidth", optionValue: string|number): void; /** * The width of the values column when vertical rendering is enabled * */ + igGridResponsive(optionLiteral: 'option', optionName: "valuesColumnWidth"): string|number; /** @@ -52065,6 +53753,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridResponsive(optionLiteral: 'option', optionName: "valuesColumnWidth", optionValue: string|number): void; /** @@ -52179,6 +53868,40 @@ interface RowSelectorClickedEvent { } interface RowSelectorClickedEventUIParam { + /** + * Gets reference to the row the clicked row selector resides in. + */ + row?: string; + + /** + * Gets reference to the fixed row the clicked row selector resides in(if there are fixed columns). + */ + fixedRow?: string; + + /** + * Gets the index of the row the clicked row selector resides in. + */ + rowIndex?: number; + + /** + * Gets the key of the row the clicked row selector resides in. + */ + rowKey?: string; + + /** + * Gets a reference to the row selector cell. + */ + rowSelector?: string; + + /** + * Gets reference to RowSelectors. + */ + owner?: any; + + /** + * Gets a reference to the grid the RowSelectors are initialized for. + */ + grid?: any; } interface CheckBoxStateChangingEvent { @@ -52186,6 +53909,50 @@ interface CheckBoxStateChangingEvent { } interface CheckBoxStateChangingEventUIParam { + /** + * Gets a reference to the row the clicked row selector resides in. + */ + row?: string; + + /** + * Gets the index of the row the clicked row selector resides in. + */ + rowIndex?: number; + + /** + * Gets the key of the row the clicked row selector resides in. + */ + rowKey?: any; + + /** + * Gets a reference to the row selector cell. + */ + rowSelector?: string; + + /** + * Gets a reference to the igGridRowSelectors. + */ + owner?: any; + + /** + * Gets a reference to the grid the RowSelectors are initialized for. + */ + grid?: any; + + /** + * Gets the current state of the checkbox ("on","off"). + */ + currentState?: string; + + /** + * Gets the new state of the checkbox ("on","off"). + */ + newState?: string; + + /** + * Checks if the header check box is the one being clicked. In this case no row related args are passed. + */ + isHeader?: boolean; } interface CheckBoxStateChangedEvent { @@ -52193,6 +53960,45 @@ interface CheckBoxStateChangedEvent { } interface CheckBoxStateChangedEventUIParam { + /** + * Gets a reference to the row the clicked row selector resides in. + */ + row?: string; + + /** + * Gets the index of the row the clicked row selector resides in. + */ + rowIndex?: number; + + /** + * Gets the key of the row the clicked row selector resides in. + */ + rowKey?: string; + + /** + * Gets reference to the row selector cell. + */ + rowSelector?: string; + + /** + * Gets reference to the igGridRowSelectors. + */ + owner?: any; + + /** + * Gets reference to the grid the RowSelectors are initialized for. + */ + grid?: any; + + /** + * Gets the state of the checkbox ("on","off"). + */ + state?: string; + + /** + * Checks if the header check box is the one being clicked. In this case no row related args are passed. + */ + isHeader?: boolean; } interface IgGridRowSelectors { @@ -52346,6 +54152,7 @@ interface JQuery { * Defines width of the row selector`s column in pixels or percentage. * */ + igGridRowSelectors(optionLiteral: 'option', optionName: "rowSelectorColumnWidth"): string|number; /** @@ -52354,6 +54161,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridRowSelectors(optionLiteral: 'option', optionName: "rowSelectorColumnWidth", optionValue: string|number): void; /** @@ -52504,6 +54312,30 @@ interface RowSelectionChangingEvent { } interface RowSelectionChangingEventUIParam { + /** + * Gets reference to GridSelection. + */ + owner?: any; + + /** + * Gets reference to the row object. + */ + row?: any; + + /** + * Gets reference to rows object array. + */ + selectedRows?: any[]; + + /** + * Gets the start index for a range row selection. + */ + startIndex?: number; + + /** + * Gets the end index for a range row selection. + */ + endIndex?: number; } interface RowSelectionChangedEvent { @@ -52511,6 +54343,20 @@ interface RowSelectionChangedEvent { } interface RowSelectionChangedEventUIParam { + /** + * Gets reference to GridSelection. + */ + owner?: any; + + /** + * Gets reference to the row object. + */ + row?: any; + + /** + * Gets reference to rows object array. + */ + selectedRows?: any[]; } interface CellSelectionChangingEvent { @@ -52518,6 +54364,40 @@ interface CellSelectionChangingEvent { } interface CellSelectionChangingEventUIParam { + /** + * Gets reference to GridSelection. + */ + owner?: any; + + /** + * Gets reference to the cell object. + */ + cell?: any; + + /** + * Gets reference to selected cells object array. + */ + selectedCells?: any[]; + + /** + * Gets the column index for the first cell in a range selection. + */ + firstColumnIndex?: number; + + /** + * Gets the row index for the first cell in a range selection. + */ + firstRowIndex?: number; + + /** + * Gets the column index for the last cell in a range selection. + */ + lastColumnIndex?: number; + + /** + * Gets the row index for the last cell in a range selection. + */ + lastRowIndex?: number; } interface CellSelectionChangedEvent { @@ -52525,6 +54405,20 @@ interface CellSelectionChangedEvent { } interface CellSelectionChangedEventUIParam { + /** + * Gets reference to GridSelection. + */ + owner?: any; + + /** + * Gets reference to the cell object. + */ + cell?: any; + + /** + * Gets reference to selected cells object array. + */ + selectedCells?: any[]; } interface ActiveCellChangingEvent { @@ -52532,6 +54426,15 @@ interface ActiveCellChangingEvent { } interface ActiveCellChangingEventUIParam { + /** + * Gets reference to GridSelection. + */ + owner?: any; + + /** + * Gets reference to the cell object. + */ + cell?: any; } interface ActiveCellChangedEvent { @@ -52539,6 +54442,15 @@ interface ActiveCellChangedEvent { } interface ActiveCellChangedEventUIParam { + /** + * Gets reference to GridSelection. + */ + owner?: any; + + /** + * Gets reference to the cell object. + */ + cell?: any; } interface ActiveRowChangingEvent { @@ -52546,6 +54458,15 @@ interface ActiveRowChangingEvent { } interface ActiveRowChangingEventUIParam { + /** + * Gets reference to GridSelection. + */ + owner?: any; + + /** + * Gets a reference to the row object. + */ + row?: any; } interface ActiveRowChangedEvent { @@ -52553,6 +54474,15 @@ interface ActiveRowChangedEvent { } interface ActiveRowChangedEventUIParam { + /** + * Gets reference to GridSelection. + */ + owner?: any; + + /** + * Gets a reference to the row object. + */ + row?: any; } interface IgGridSelection { @@ -52683,90 +54613,90 @@ interface IgGridSelectionMethods { /** * Selects a cell by row/col * - * @param row Row index - * @param col Column index - * @param isFixed If the cell is part of the fixed or unfixed area of the grid. + * @param row Row index + * @param col Column index + * @param isFixed If the cell is part of the fixed or unfixed area of the grid. */ selectCell(row: number, col: number, isFixed?: boolean): void; /** * Selects a cell by row id/column key * - * @param id Row Id - * @param colKey Column key + * @param id Row Id + * @param colKey Column key */ selectCellById(id: Object, colKey: string): void; /** * Deselects a cell by row/col * - * @param row Row index - * @param col Column index - * @param isFixed If the cell is part of the fixed or unfixed area of the grid. + * @param row Row index + * @param col Column index + * @param isFixed If the cell is part of the fixed or unfixed area of the grid. */ deselectCell(row: number, col: number, isFixed?: boolean): void; /** * Deselects a cell by row id/column key * - * @param id Row Id - * @param colKey Column key + * @param id Row Id + * @param colKey Column key */ deselectCellById(id: Object, colKey: string): void; /** * Selects a row by index * - * @param index Row index + * @param index Row index */ selectRow(index: number): void; /** * Selects a row by row id * - * @param id Row Id + * @param id Row Id */ selectRowById(id: Object): void; /** * Deselects a row by index * - * @param index Row index + * @param index Row index */ deselectRow(index: number): void; /** * Deselects a row by row id * - * @param id Row Id + * @param id Row Id */ deselectRowById(id: Object): void; /** * Returns an array of selected cells in arbitrary order where every objects has the format { element: , row: , index: , rowIndex: , columnKey: } . * - * If multiple selection is disabled the function will return null. + * If multiple selection is disabled the function will return null. */ selectedCells(): any[]; /** * Returns an array of selected rows in arbitrary order where every object has the format { element: , index: } . * - * If multiple selection is disabled the function will return null. + * If multiple selection is disabled the function will return null. */ selectedRows(): any[]; /** * Returns the currently selected cell that has the format { element: , row: , index: , rowIndex: , columnKey: }, if any. * - * If multiple selection is enabled the function will return null. + * If multiple selection is enabled the function will return null. */ selectedCell(): Object; /** * Returns the currently selected row that has the format { element: , index: }, if any. * - * If multiple selection is enabled the function will return null. + * If multiple selection is enabled the function will return null. */ selectedRow(): Object; @@ -52945,6 +54875,7 @@ interface JQuery { * Defines type of the selection. * */ + igGridSelection(optionLiteral: 'option', optionName: "mode"): string; /** @@ -52953,6 +54884,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridSelection(optionLiteral: 'option', optionName: "mode", optionValue: string): void; /** @@ -53230,6 +55162,25 @@ interface ColumnSortingEvent { } interface ColumnSortingEventUIParam { + /** + * Gets a reference to GridSorting. + */ + owner?: any; + + /** + * Gets the column key. + */ + columnKey?: string; + + /** + * Gets the sorting direction. + */ + direction?: string; + + /** + * Gets sorting expressions. + */ + newExpressions?: any[]; } interface ColumnSortedEvent { @@ -53237,6 +55188,25 @@ interface ColumnSortedEvent { } interface ColumnSortedEventUIParam { + /** + * Gets a reference to GridSorting. + */ + owner?: any; + + /** + * Gets the column key. + */ + columnKey?: string; + + /** + * Gets the sorting direction. + */ + direction?: string; + + /** + * Gets the sorted expressions. + */ + expressions?: any; } interface ModalDialogSortingChangedEvent { @@ -53244,6 +55214,25 @@ interface ModalDialogSortingChangedEvent { } interface ModalDialogSortingChangedEventUIParam { + /** + * Gets a reference to GridSorting. + */ + owner?: any; + + /** + * Gets a reference to the modal dialog element. This is a jQuery object. + */ + modalDialogElement?: string; + + /** + * Gets the column key. + */ + columnKey?: string; + + /** + * Gets whether column should be ascending or not. If true it should be ascending + */ + isAsc?: boolean; } interface ModalDialogButtonUnsortClickEvent { @@ -53251,6 +55240,20 @@ interface ModalDialogButtonUnsortClickEvent { } interface ModalDialogButtonUnsortClickEventUIParam { + /** + * Gets a reference to GridSorting. + */ + owner?: any; + + /** + * Gets a reference to the modal dialog element. This is a jQuery object. + */ + modalDialogElement?: string; + + /** + * Gets the column key. + */ + columnKey?: string; } interface ModalDialogSortClickEvent { @@ -53258,6 +55261,20 @@ interface ModalDialogSortClickEvent { } interface ModalDialogSortClickEventUIParam { + /** + * Gets a reference to GridSorting. + */ + owner?: any; + + /** + * Gets a reference to the modal dialog element. This is a jQuery object. + */ + modalDialogElement?: string; + + /** + * Gets the column key. + */ + columnKey?: string; } interface IgGridSorting { @@ -53548,8 +55565,8 @@ interface IgGridSortingMethods { /** * Sorts the data in a grid column and updates the UI. * - * @param index Column key (string) or index (number) - for multi-row grid only column key can be used. Specifies the column which we want to sort. If the mode is multiple, previous sorting states are not cleared. - * @param direction Specifies sorting direction (ascending or descending) + * @param index Column key (string) or index (number) - for multi-row grid only column key can be used. Specifies the column which we want to sort. If the mode is multiple, previous sorting states are not cleared. + * @param direction Specifies sorting direction (ascending or descending) * @param header */ sortColumn(index: Object, direction: Object, header: Object): void; @@ -53567,8 +55584,8 @@ interface IgGridSortingMethods { /** * Removes sorting for the grid column with the specified columnKey/columnIndex and updates the UI. * - * @param index Column key (string) or index (number) - for multi-row grid only column key can be used. Specifies the column for which we want to remove sorting. If the mode is multiple, previous sorting states are not cleared. - * @param header - if specified client events should be fired + * @param index Column key (string) or index (number) - for multi-row grid only column key can be used. Specifies the column for which we want to remove sorting. If the mode is multiple, previous sorting states are not cleared. + * @param header - if specified client events should be fired */ unsortColumn(index: Object, header: Object): void; @@ -53618,6 +55635,7 @@ interface JQuery { * Defines local or remote sorting operations. * */ + igGridSorting(optionLiteral: 'option', optionName: "type"): string; /** @@ -53626,6 +55644,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridSorting(optionLiteral: 'option', optionName: "type", optionValue: string): void; /** @@ -53702,6 +55721,7 @@ interface JQuery { * Defines single column sorting or multiple column sorting. * */ + igGridSorting(optionLiteral: 'option', optionName: "mode"): string; /** @@ -53710,6 +55730,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridSorting(optionLiteral: 'option', optionName: "mode", optionValue: string): void; /** @@ -53730,6 +55751,7 @@ interface JQuery { * Gets which direction to use on the first click / keydown, if the column is sorted for the first time. * */ + igGridSorting(optionLiteral: 'option', optionName: "firstSortDirection"): string; /** @@ -53738,6 +55760,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridSorting(optionLiteral: 'option', optionName: "firstSortDirection", optionValue: string): void; /** @@ -53840,6 +55863,7 @@ interface JQuery { * Gets width of multiple sorting dialog. * */ + igGridSorting(optionLiteral: 'option', optionName: "modalDialogWidth"): string|number; /** @@ -53848,12 +55872,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridSorting(optionLiteral: 'option', optionName: "modalDialogWidth", optionValue: string|number): void; /** * Gets height of multiple sorting dialog. * */ + igGridSorting(optionLiteral: 'option', optionName: "modalDialogHeight"): string|number; /** @@ -53862,6 +55888,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridSorting(optionLiteral: 'option', optionName: "modalDialogHeight", optionValue: string|number): void; /** @@ -54315,6 +56342,10 @@ interface SummariesCalculatingEvent { } interface SummariesCalculatingEventUIParam { + /** + * Gets the igGridSummaries widget object. + */ + owner?: any; } interface SummariesCalculatedEvent { @@ -54322,6 +56353,15 @@ interface SummariesCalculatedEvent { } interface SummariesCalculatedEventUIParam { + /** + * Gets the data for calculated summaries. + */ + data?: any[]; + + /** + * Gets the igGridSummaries widget object. + */ + owner?: any; } interface SummariesMethodSelectionChangedEvent { @@ -54329,6 +56369,25 @@ interface SummariesMethodSelectionChangedEvent { } interface SummariesMethodSelectionChangedEventUIParam { + /** + * Gets the column key of the column where it is changed selection of summary method. + */ + columnKey?: string; + + /** + * Gets whether method is selected or not. + */ + isSelected?: boolean; + + /** + * Gets the summary method name. + */ + methodName?: string; + + /** + * Gets the igGridSummaries widget object. + */ + owner?: any; } interface SummariesTogglingEvent { @@ -54336,6 +56395,15 @@ interface SummariesTogglingEvent { } interface SummariesTogglingEventUIParam { + /** + * Gets whether summaries are shown or not. + */ + isToShow?: boolean; + + /** + * Gets the igGridSummaries widget object. + */ + owner?: any; } interface SummariesToggledEvent { @@ -54343,6 +56411,15 @@ interface SummariesToggledEvent { } interface SummariesToggledEventUIParam { + /** + * Gets whether summaries are shown or not. + */ + isToShow?: boolean; + + /** + * Gets the igGridSummaries widget object. + */ + owner?: any; } interface DropDownOKClickedEvent { @@ -54350,6 +56427,20 @@ interface DropDownOKClickedEvent { } interface DropDownOKClickedEventUIParam { + /** + * Gets the column key for which OK button is clicked. + */ + columnKey?: string; + + /** + * Gets data for summary methods. Format of event data is {type: "min", active: false}; + */ + eventData?: any; + + /** + * Gets the igGridSummaries widget object. + */ + owner?: any; } interface DropDownCancelClickedEvent { @@ -54357,6 +56448,15 @@ interface DropDownCancelClickedEvent { } interface DropDownCancelClickedEventUIParam { + /** + * Gets the column key for which Cancel button is clicked. + */ + columnKey?: string; + + /** + * Gets the igGridSummaries widget object. + */ + owner?: any; } interface IgGridSummaries { @@ -54592,47 +56692,47 @@ interface IgGridSummariesMethods { /** * Toggle drop down * - * @param columnKey toggle drop down for the column with the specified key - * @param event event object. Its data should contain current columnKey, isAnimating, buttonId + * @param columnKey toggle drop down for the column with the specified key + * @param event event object. Its data should contain current columnKey, isAnimating, buttonId */ toggleDropDown(columnKey: string, event: Object): void; /** * Show/Hide dialog * - * @param $dialog jQuery object representation of dropdown div element + * @param $dialog jQuery object representation of dropdown div element */ showHideDialog($dialog: Object): void; /** * Toggle summaries rows * - * @param isToShow Specifies whether to show or not summaries - * @param isInternalCall Optional parameter.Specifies whether this function is called internally by the widget. + * @param isToShow Specifies whether to show or not summaries + * @param isInternalCall Optional parameter.Specifies whether this function is called internally by the widget. */ toggleSummariesRows(isToShow: boolean, isInternalCall: boolean): void; /** * Toggles the checkstate of a checkbox if checkboxMode is not set to off, otherwise does nothing. * - * @param $checkbox Specifies the jQuery object of the checkbox. + * @param $checkbox Specifies the jQuery object of the checkbox. */ toggleCheckstate($checkbox: Object): void; /** * Select/Unselect specified checkbox * - * @param $checkbox Specifies the jQuery object for checkbox - * @param isToSelect Specify whether to select or not checkbox + * @param $checkbox Specifies the jQuery object for checkbox + * @param isToSelect Specify whether to select or not checkbox */ selectCheckBox($checkbox: Object, isToSelect: boolean): void; /** * Summary calculate the whole data for the specified column key, columnMethods and dataType (used when datasource is remote and dataType is date) * - * @param ck ColumnKey - * @param columnMethods Array of column methods objects - * @param data Object which represents result + * @param ck ColumnKey + * @param columnMethods Array of column methods objects + * @param data Object which represents result * represents dataType for the current column * @param dataType */ @@ -54672,6 +56772,7 @@ interface JQuery { * Type of summaries calculating. * */ + igGridSummaries(optionLiteral: 'option', optionName: "type"): string; /** @@ -54680,6 +56781,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridSummaries(optionLiteral: 'option', optionName: "type", optionValue: string): void; /** @@ -54714,6 +56816,7 @@ interface JQuery { * Gets when calculations are made. * */ + igGridSummaries(optionLiteral: 'option', optionName: "calculateRenderMode"): string; /** @@ -54722,6 +56825,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridSummaries(optionLiteral: 'option', optionName: "calculateRenderMode", optionValue: string): void; /** @@ -54874,6 +56978,7 @@ interface JQuery { * Determines when the summary values are calculated when type is local * */ + igGridSummaries(optionLiteral: 'option', optionName: "summaryExecution"): string; /** @@ -54882,6 +56987,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridSummaries(optionLiteral: 'option', optionName: "summaryExecution", optionValue: string): void; /** @@ -54944,6 +57050,7 @@ interface JQuery { * A reference or name of a javascript function - renders summary cell in grid footer.(if not set it is used default render function) It takes 3 parameters - methodName(summary method), columnKey, data(summary data which should be rendered) * */ + igGridSummaries(optionLiteral: 'option', optionName: "renderSummaryCellFunc"): string|Object; /** @@ -54952,6 +57059,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridSummaries(optionLiteral: 'option', optionName: "renderSummaryCellFunc", optionValue: string|Object): void; /** @@ -55269,6 +57377,7 @@ interface JQuery { * Determines the tooltip visibility option * */ + igGridTooltips(optionLiteral: 'option', optionName: "visibility"): string; /** @@ -55277,12 +57386,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridTooltips(optionLiteral: 'option', optionName: "visibility", optionValue: string): void; /** * Controls the tooltip's style * */ + igGridTooltips(optionLiteral: 'option', optionName: "style"): string; /** @@ -55291,6 +57402,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridTooltips(optionLiteral: 'option', optionName: "style", optionValue: string): void; /** @@ -55616,14 +57728,12 @@ interface IgGridUpdatingRowEditDialogOptions { /** * Specifies a template to be rendered against the currently edited record (or up-to-date key-value pairs in the case of not yet created records). It may contain an element decorated with the 'data-render-tmpl' attribute to specify where the control should render the editors template specified in the [editorsTemplate](ui.iggridupdating#options:rowEditDialogOptions.editorsTemplate) option. For custom dialogs, the elements can be decorated with 'data-editor-for-' attributes where columnKey is the key of the column that editor or input will be used to edit. If both dialogTemplate and [dialogTemplateSelector](ui.iggridupdating#options:rowEditDialogOptions.dialogTemplateSelector) are specified, dialogTemplateSelector will be used.The default template is '
'. * - * */ dialogTemplate?: string; /** * Specifies a selector to a template rendered against the currently edited record (or up-to-date key-value pairs in the case of not yet created records). It may contain an element decorated with the 'data-render-tmpl' attribute to specify where the control should render the editors template specified in the [editorsTemplate](ui.iggridupdating#options:rowEditDialogOptions.editorsTemplate) option. For custom dialogs, the elements can be decorated with 'data-editor-for-' attributes where columnKey is the key of the column that editor or input will be used to edit. If both [dialogTemplate](ui.iggridupdating#options:rowEditDialogOptions.dialogTemplate) and dialogTemplateSelector are specified, dialogTemplateSelector will be used.The default template is '
'. * - * */ dialogTemplateSelector?: string; @@ -55652,6 +57762,15 @@ interface EditRowStartingEvent { } interface EditRowStartingEventUIParam { + /** + * Gets the row's PK value. + */ + rowID?: any; + + /** + * Checks if the edit mode is for adding a new row. + */ + rowAdding?: boolean; } interface EditRowStartedEvent { @@ -55659,6 +57778,15 @@ interface EditRowStartedEvent { } interface EditRowStartedEventUIParam { + /** + * Gets the row's PK value. + */ + rowID?: any; + + /** + * Checks if the edit mode is for adding a new row. + */ + rowAdding?: boolean; } interface EditRowEndingEvent { @@ -55666,6 +57794,25 @@ interface EditRowEndingEvent { } interface EditRowEndingEventUIParam { + /** + * Check if any of the values is changed which will cause update in the data source. Can be manually set to false to prevent this update. + */ + update?: boolean; + + /** + * Checks if the edit mode is for adding a new row. + */ + rowAdding?: boolean; + + /** + * Gets or set the new value for the column with the specified key. + */ + values?: any; + + /** + * Gets the old value for the column with the specified key. + */ + oldValues?: any; } interface EditRowEndedEvent { @@ -55673,6 +57820,30 @@ interface EditRowEndedEvent { } interface EditRowEndedEventUIParam { + /** + * Gets the row's PK value. + */ + rowID?: any; + + /** + * Check if any of the values is changed which will cause update in the data source. + */ + update?: boolean; + + /** + * Check if the edit mode is for adding a new row. + */ + rowAdding?: boolean; + + /** + * Gets the new value for the column with the specified key. + */ + values?: any; + + /** + * Gets the old value for the column with the specified key. + */ + oldValues?: any; } interface EditCellStartingEvent { @@ -55680,6 +57851,35 @@ interface EditCellStartingEvent { } interface EditCellStartingEventUIParam { + /** + * Gets the row's PK value. + */ + rowID?: any; + + /** + * Gets the index of the column. + */ + columnIndex?: number; + + /** + * Gets the key of the column. + */ + columnKey?: string; + + /** + * Gets a reference to the editor used for editing the column. + */ + editor?: string; + + /** + * Gets or set the value of the editor. + */ + value?: any; + + /** + * Checks if the edit mode is for adding a new row. + */ + rowAdding?: boolean; } interface EditCellStartedEvent { @@ -55687,6 +57887,35 @@ interface EditCellStartedEvent { } interface EditCellStartedEventUIParam { + /** + * Gets the row's PK value. + */ + rowID?: any; + + /** + * Gets the index of the column. + */ + columnIndex?: number; + + /** + * Gets the key of the column. + */ + columnKey?: string; + + /** + * Gets a reference to the editor used for editing the column. + */ + editor?: string; + + /** + * Gets or set the value of the editor. + */ + value?: any; + + /** + * Checks if the edit mode is for adding a new row. + */ + rowAdding?: boolean; } interface EditCellEndingEvent { @@ -55694,6 +57923,45 @@ interface EditCellEndingEvent { } interface EditCellEndingEventUIParam { + /** + * Gets the row's PK value. + */ + rowID?: any; + + /** + * Gets the index of the column. + */ + columnIndex?: number; + + /** + * Gets the key of the column. + */ + columnKey?: string; + + /** + * Gets a reference to the editor used for editing the column. + */ + editor?: string; + + /** + * Gets or set the value of the editor. + */ + value?: any; + + /** + * Gets the old value. + */ + oldValue?: any; + + /** + * Check if the value is changed which will cause update in the data source. Can be manually set to false to prevent this update. + */ + update?: boolean; + + /** + * Check if the edit mode is for adding a new row. + */ + rowAdding?: boolean; } interface EditCellEndedEvent { @@ -55701,6 +57969,45 @@ interface EditCellEndedEvent { } interface EditCellEndedEventUIParam { + /** + * Gets the row's PK value. + */ + rowID?: any; + + /** + * Gets the index of the column. + */ + columnIndex?: number; + + /** + * Gets the key of the column. + */ + columnKey?: string; + + /** + * Gets a reference to the editor used for editing the column. + */ + editor?: string; + + /** + * Gets the new value. + */ + value?: any; + + /** + * Gets the old value. + */ + oldValue?: any; + + /** + * Check if the value is changed which will cause update in the data source. Can be manually set to false to prevent this update. + */ + update?: boolean; + + /** + * Check if the edit mode is for adding a new row. + */ + rowAdding?: boolean; } interface RowAddingEvent { @@ -55708,6 +58015,15 @@ interface RowAddingEvent { } interface RowAddingEventUIParam { + /** + * Gets the value for the column with the specified key. + */ + values?: any; + + /** + * Gets the default value (before editing) for the column with the specified key. + */ + oldValues?: any; } interface RowAddedEvent { @@ -55715,6 +58031,15 @@ interface RowAddedEvent { } interface RowAddedEventUIParam { + /** + * Gets the value for the column with the specified key. + */ + values?: any; + + /** + * Gets the default value (before editing) for the column with the specified key. + */ + oldValues?: any; } interface RowDeletingEvent { @@ -55722,6 +58047,15 @@ interface RowDeletingEvent { } interface RowDeletingEventUIParam { + /** + * Gets a jQuery object containing the TR element of the row to delete. + */ + element?: string; + + /** + * Gets the row's PK value. + */ + rowID?: any; } interface RowDeletedEvent { @@ -55729,20 +58063,32 @@ interface RowDeletedEvent { } interface RowDeletedEventUIParam { + /** + * Gets a jQuery object containing the TR element of the deleted row. + */ + element?: string; + + /** + * Gets the row's PK value. + */ + rowID?: any; } interface DataDirtyEvent { (event: Event, ui: DataDirtyEventUIParam): void; } -interface DataDirtyEventUIParam { -} +interface DataDirtyEventUIParam {} interface GeneratePrimaryKeyValueEvent { (event: Event, ui: GeneratePrimaryKeyValueEventUIParam): void; } interface GeneratePrimaryKeyValueEventUIParam { + /** + * Gets the auto-generated primary key (the number of records in the data source + 1) or set a custom unique primary key for the new row. + */ + value?: any; } interface RowEditDialogBeforeOpenEvent { @@ -55750,6 +58096,10 @@ interface RowEditDialogBeforeOpenEvent { } interface RowEditDialogBeforeOpenEventUIParam { + /** + * Gets a reference to row edit dialog DOM element. + */ + dialogElement?: string; } interface RowEditDialogAfterOpenEvent { @@ -55757,6 +58107,10 @@ interface RowEditDialogAfterOpenEvent { } interface RowEditDialogAfterOpenEventUIParam { + /** + * Gets a reference to row edit dialog DOM element. + */ + dialogElement?: string; } interface RowEditDialogBeforeCloseEvent { @@ -55764,6 +58118,10 @@ interface RowEditDialogBeforeCloseEvent { } interface RowEditDialogBeforeCloseEventUIParam { + /** + * Gets a reference to row edit dialog DOM element. + */ + dialogElement?: string; } interface RowEditDialogAfterCloseEvent { @@ -55771,6 +58129,10 @@ interface RowEditDialogAfterCloseEvent { } interface RowEditDialogAfterCloseEventUIParam { + /** + * Gets a reference to row edit dialog DOM element. + */ + dialogElement?: string; } interface RowEditDialogContentsRenderedEvent { @@ -55778,6 +58140,10 @@ interface RowEditDialogContentsRenderedEvent { } interface RowEditDialogContentsRenderedEventUIParam { + /** + * Gets a reference to row edit dialog DOM element. + */ + dialogElement?: string; } interface IgGridUpdating { @@ -56048,9 +58414,9 @@ interface IgGridUpdatingMethods { * Sets a cell value for the specified cell. It also creates a transaction and updates the UI. * If the specified cell is currently in edit mode, the function will set the desired value in the cell's editor instead. * - * @param rowId The primary key of the row the cell is a child of. - * @param colKey The column key of the cell. - * @param value The new value for the cell. + * @param rowId The primary key of the row the cell is a child of. + * @param colKey The column key of the cell. + * @param value The new value for the cell. */ setCellValue(rowId: Object, colKey: string, value: Object): void; @@ -56058,46 +58424,46 @@ interface IgGridUpdatingMethods { * Sets values for specified cells in a row. It also creates a transaction and updates the UI. * If the specified row is currently in edit mode, the function will set the desired values in the row's editors instead. * - * @param rowId The primary key of the row to update. - * @param values Pairs of values in the format { column1Key: value1, column2Key: value2, ... } . + * @param rowId The primary key of the row to update. + * @param values Pairs of values in the format { column1Key: value1, column2Key: value2, ... } . */ updateRow(rowId: Object, values: Object): void; /** * Adds a new row to the grid. It also creates a transaction and updates the UI. * - * @param values Pairs of values in the format { column1Key: value1, column2Key: value2, ... } . + * @param values Pairs of values in the format { column1Key: value1, column2Key: value2, ... } . */ addRow(values: Object): void; /** * Deletes a row from the grid. It also creates a transaction and updates the UI. * - * @param rowId The primary key of the row to delete. + * @param rowId The primary key of the row to delete. */ deleteRow(rowId: Object): void; /** * Starts editing for the row or cell specified (depending on the [editMode](ui.iggridupdating#options:editMode)). * - * @param rowId The row id. - * @param column The column key or index. - * @param raiseEvents Specifies whether or not updating events should be raised for this operation. + * @param rowId The row id. + * @param column The column key or index. + * @param raiseEvents Specifies whether or not updating events should be raised for this operation. */ startEdit(rowId: Object, column: Object, raiseEvents?: boolean): boolean; /** * Starts editing for adding a new row. * - * @param raiseEvents Specifies whether or not updating events should be raised for this operation. + * @param raiseEvents Specifies whether or not updating events should be raised for this operation. */ startAddRowEdit(raiseEvents?: boolean): boolean; /** * Ends the currently active edit mode. * - * @param update Specifies if the edit process should accept the current changes. Default is 'false'. - * @param raiseEvents Specifies whether or not updating events should be raised for this operation. + * @param update Specifies if the edit process should accept the current changes. Default is 'false'. + * @param raiseEvents Specifies whether or not updating events should be raised for this operation. */ endEdit(update?: boolean, raiseEvents?: boolean): boolean; @@ -56114,15 +58480,15 @@ interface IgGridUpdatingMethods { /** * Gets the editor for a column by the column key. That method can be used only after the editor has been created. * - * @param key The key of the column. + * @param key The key of the column. */ editorForKey(key: string): Object; /** * Gets the editor for a column by the cell it resides in. If allowed the function can create the editor if it has not been created yet. * - * @param cell Reference to the jQuery-wrapped TD object of the grid that the editor belongs to. - * @param create Requests to create the editor if it has not been created yet. + * @param cell Reference to the jQuery-wrapped TD object of the grid that the editor belongs to. + * @param create Requests to create the editor if it has not been created yet. */ editorForCell(cell: string, create?: boolean): Object; @@ -56134,7 +58500,7 @@ interface IgGridUpdatingMethods { /** * Shows the delete button for specific row. * - * @param row A jQuery object of the targeted row. + * @param row A jQuery object of the targeted row. */ showDeleteButtonFor(row: Object): void; @@ -56181,6 +58547,7 @@ interface JQuery { * Gets the edit mode. * */ + igGridUpdating(optionLiteral: 'option', optionName: "editMode"): string; /** @@ -56189,6 +58556,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridUpdating(optionLiteral: 'option', optionName: "editMode", optionValue: string): void; /** @@ -56377,6 +58745,7 @@ interface JQuery { * Gets how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by coma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. * */ + igGridUpdating(optionLiteral: 'option', optionName: "startEditTriggers"): string|Array; /** @@ -56385,6 +58754,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridUpdating(optionLiteral: 'option', optionName: "startEditTriggers", optionValue: string|Array): void; /** @@ -56419,6 +58789,7 @@ interface JQuery { * Sets a custom function to be called when the AJAX request to the URL specified by the [updateUrl](ui.iggrid#options:updateUrl) property succeeds. The function will be called with arguments representing the data returned by the server. * */ + igGridUpdating(optionLiteral: 'option', optionName: "saveChangesSuccessHandler"): Function|string; /** @@ -56427,12 +58798,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridUpdating(optionLiteral: 'option', optionName: "saveChangesSuccessHandler", optionValue: Function|string): void; /** * Sets a custom function to be called when the AJAX request to the URL specified by the [updateUrl](ui.iggrid#options:updateUrl) property fails. The function will be called with arguments representing the data returned by the server. * */ + igGridUpdating(optionLiteral: 'option', optionName: "saveChangesErrorHandler"): Function|string; /** @@ -56441,12 +58814,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridUpdating(optionLiteral: 'option', optionName: "saveChangesErrorHandler", optionValue: Function|string): void; /** * On touch-enabled devices specifies the swipe distance for the delete button to appear. * */ + igGridUpdating(optionLiteral: 'option', optionName: "swipeDistance"): string|number; /** @@ -56455,6 +58830,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igGridUpdating(optionLiteral: 'option', optionName: "swipeDistance", optionValue: string|number): void; /** @@ -56762,85 +59138,73 @@ interface ActionExecutingEvent { (event: Event, ui: ActionExecutingEventUIParam): void; } -interface ActionExecutingEventUIParam { -} +interface ActionExecutingEventUIParam {} interface ActionExecutedEvent { (event: Event, ui: ActionExecutedEventUIParam): void; } -interface ActionExecutedEventUIParam { -} +interface ActionExecutedEventUIParam {} interface ToolbarCollapsingEvent { (event: Event, ui: ToolbarCollapsingEventUIParam): void; } -interface ToolbarCollapsingEventUIParam { -} +interface ToolbarCollapsingEventUIParam {} interface ToolbarCollapsedEvent { (event: Event, ui: ToolbarCollapsedEventUIParam): void; } -interface ToolbarCollapsedEventUIParam { -} +interface ToolbarCollapsedEventUIParam {} interface ToolbarExpandingEvent { (event: Event, ui: ToolbarExpandingEventUIParam): void; } -interface ToolbarExpandingEventUIParam { -} +interface ToolbarExpandingEventUIParam {} interface ToolbarExpandedEvent { (event: Event, ui: ToolbarExpandedEventUIParam): void; } -interface ToolbarExpandedEventUIParam { -} +interface ToolbarExpandedEventUIParam {} interface CutEvent { (event: Event, ui: CutEventUIParam): void; } -interface CutEventUIParam { -} +interface CutEventUIParam {} interface CopyEvent { (event: Event, ui: CopyEventUIParam): void; } -interface CopyEventUIParam { -} +interface CopyEventUIParam {} interface PasteEvent { (event: Event, ui: PasteEventUIParam): void; } -interface PasteEventUIParam { -} +interface PasteEventUIParam {} interface UndoEvent { (event: Event, ui: UndoEventUIParam): void; } -interface UndoEventUIParam { -} +interface UndoEventUIParam {} interface RedoEvent { (event: Event, ui: RedoEventUIParam): void; } -interface RedoEventUIParam { -} +interface RedoEventUIParam {} interface WorkspaceResizedEvent { (event: Event, ui: WorkspaceResizedEventUIParam): void; } -interface WorkspaceResizedEventUIParam { -} +interface WorkspaceResizedEventUIParam {} interface IgHtmlEditor { /** @@ -57071,29 +59435,25 @@ interface ApplyEvent { (event: Event, ui: ApplyEventUIParam): void; } -interface ApplyEventUIParam { -} +interface ApplyEventUIParam {} interface CancelEvent { (event: Event, ui: CancelEventUIParam): void; } -interface CancelEventUIParam { -} +interface CancelEventUIParam {} interface ShowEvent { (event: Event, ui: ShowEventUIParam): void; } -interface ShowEventUIParam { -} +interface ShowEventUIParam {} interface HideEvent { (event: Event, ui: HideEventUIParam): void; } -interface HideEventUIParam { -} +interface HideEventUIParam {} interface IgHtmlEditorPopover { item?: any; @@ -57281,6 +59641,7 @@ interface JQuery { * The width of the html editor. It can be set as a number in pixels, string (px) or percentage (%). * */ + igHtmlEditor(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -57289,12 +59650,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igHtmlEditor(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * The height of the html editor. It can be set as a number in pixels, string (px) or percentage (%). * */ + igHtmlEditor(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -57303,6 +59666,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igHtmlEditor(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -57535,12 +59899,7 @@ interface JQuery { igHtmlEditor(methodName: string, ...methodParams: any[]): any; } interface JQuery { - /** - */ igPathFinder(optionLiteral: 'option', optionName: "items"): any; - - /** - */ igPathFinder(optionLiteral: 'option', optionName: "items", optionValue: any): void; igPathFinder(options: IgPathFinder): JQuery; igPathFinder(optionLiteral: 'option', optionName: string): any; @@ -57551,61 +59910,19 @@ interface JQuery { interface JQuery { igHtmlEditorPopover(methodName: "show", item: Object): void; igHtmlEditorPopover(methodName: "hide"): void; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "item"): any; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "item", optionValue: any): void; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "target"): any; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "target", optionValue: any): void; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "isHidden"): boolean; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "isHidden", optionValue: boolean): void; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "apply"): ApplyEvent; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "apply", optionValue: ApplyEvent): void; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "cancel"): CancelEvent; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "cancel", optionValue: CancelEvent): void; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "show"): ShowEvent; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "show", optionValue: ShowEvent): void; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "hide"): HideEvent; - - /** - */ igHtmlEditorPopover(optionLiteral: 'option', optionName: "hide", optionValue: HideEvent): void; igHtmlEditorPopover(options: IgHtmlEditorPopover): JQuery; igHtmlEditorPopover(optionLiteral: 'option', optionName: string): any; @@ -57616,61 +59933,19 @@ interface JQuery { interface JQuery { igLinkPropertiesDialog(methodName: "show", item: Object): void; igLinkPropertiesDialog(methodName: "hide"): void; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "item"): any; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "item", optionValue: any): void; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "target"): any; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "target", optionValue: any): void; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "isHidden"): boolean; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "isHidden", optionValue: boolean): void; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "apply"): ApplyEvent; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "apply", optionValue: ApplyEvent): void; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "cancel"): CancelEvent; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "cancel", optionValue: CancelEvent): void; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "show"): ShowEvent; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "show", optionValue: ShowEvent): void; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "hide"): HideEvent; - - /** - */ igLinkPropertiesDialog(optionLiteral: 'option', optionName: "hide", optionValue: HideEvent): void; igLinkPropertiesDialog(options: IgLinkPropertiesDialog): JQuery; igLinkPropertiesDialog(optionLiteral: 'option', optionName: string): any; @@ -57681,61 +59956,19 @@ interface JQuery { interface JQuery { igTablePropertiesDialog(methodName: "show", item: Object): void; igTablePropertiesDialog(methodName: "hide"): void; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "item"): any; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "item", optionValue: any): void; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "target"): any; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "target", optionValue: any): void; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "isHidden"): boolean; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "isHidden", optionValue: boolean): void; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "apply"): ApplyEvent; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "apply", optionValue: ApplyEvent): void; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "cancel"): CancelEvent; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "cancel", optionValue: CancelEvent): void; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "show"): ShowEvent; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "show", optionValue: ShowEvent): void; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "hide"): HideEvent; - - /** - */ igTablePropertiesDialog(optionLiteral: 'option', optionName: "hide", optionValue: HideEvent): void; igTablePropertiesDialog(options: IgTablePropertiesDialog): JQuery; igTablePropertiesDialog(optionLiteral: 'option', optionName: string): any; @@ -57746,61 +59979,19 @@ interface JQuery { interface JQuery { igImagePropertiesDialog(methodName: "show", item: Object): void; igImagePropertiesDialog(methodName: "hide"): void; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "item"): any; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "item", optionValue: any): void; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "target"): any; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "target", optionValue: any): void; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "isHidden"): boolean; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "isHidden", optionValue: boolean): void; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "apply"): ApplyEvent; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "apply", optionValue: ApplyEvent): void; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "cancel"): CancelEvent; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "cancel", optionValue: CancelEvent): void; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "show"): ShowEvent; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "show", optionValue: ShowEvent): void; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "hide"): HideEvent; - - /** - */ igImagePropertiesDialog(optionLiteral: 'option', optionName: "hide", optionValue: HideEvent): void; igImagePropertiesDialog(options: IgImagePropertiesDialog): JQuery; igImagePropertiesDialog(optionLiteral: 'option', optionName: string): any; @@ -57896,7 +60087,7 @@ interface IgLayoutManagerGridLayout { /** * Specified whether the items should rearrange to fit in the container when it is resized. - * Have effect only when fixed columnWidth option is set. + * Have effect only when fixed columnWidth option is set. * */ rearrangeItems?: boolean; @@ -57928,7 +60119,7 @@ interface IgLayoutManagerItem { /** * Gets/Sets individual item height, either in px or percentage - * string The default height can be set in pixels (px), %, em and other units. + * string The default height can be set in pixels (px), %, em and other units. * */ height?: string; @@ -57947,7 +60138,7 @@ interface IgLayoutManagerItem { /** * Gets/Sets individual item width, either in px or percentage - * string The default width can be set in pixels (px), %, em and other units. + * string The default width can be set in pixels (px), %, em and other units. * */ width?: number; @@ -58059,23 +60250,23 @@ interface IgLayoutManager { /** * An array of item descriptions - * this assumes the container is empty, and every item - * is described by rowspan, colspan, etc. - otherwise values of - * 1 are assumed - * items can have various properties some of which may not be applicable - * depending on the layoutMode. - * for example rowSpan/colSpan/colIndex/rowIndex are only applicable to gridlayout + * this assumes the container is empty, and every item + * is described by rowspan, colspan, etc. - otherwise values of + * 1 are assumed + * items can have various properties some of which may not be applicable + * depending on the layoutMode. + * for example rowSpan/colSpan/colIndex/rowIndex are only applicable to gridlayout * */ items?: IgLayoutManagerItem[]; /** * Defines the layout type - * grid Column type can be set with grid layout - * border Column type can be set with border layout - * flow Column type can be set with flow layout - * column Column type can be set with column layout - * vertical Column type can be set with vertical layout + * grid Column type can be set with grid layout + * border Column type can be set with border layout + * flow Column type can be set with flow layout + * column Column type can be set with column layout + * vertical Column type can be set with vertical layout * * * Valid values: @@ -58095,40 +60286,40 @@ interface IgLayoutManager { /** * Event fired after items are resized. - * Use ui.owner to get a reference to the layout manager performing resizing. + * Use ui.owner to get a reference to the layout manager performing resizing. */ internalResized?: InternalResizedEvent; /** * Event fired before items are resized. - * Use ui.owner to get a reference to the layout manager performing resizing. + * Use ui.owner to get a reference to the layout manager performing resizing. */ internalResizing?: InternalResizingEvent; /** * Event fired after an item has been rendered in the container. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to the igLayoutManager. - * Use ui.itemData to get a reference of item's settings, such as colspan ,rowspan, etc. - * Use ui.index to get a reference of the item's index, if the layout is flow or vertical - * Use ui.item to get a reference to the rendered item + * Function takes arguments evt and ui. + * Use ui.owner to get reference to the igLayoutManager. + * Use ui.itemData to get a reference of item's settings, such as colspan ,rowspan, etc. + * Use ui.index to get a reference of the item's index, if the layout is flow or vertical + * Use ui.item to get a reference to the rendered item */ itemRendered?: ItemRenderedEvent; /** * Event fired before an item is rendered in the container. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to the igLayoutManager. - * Use ui.itemData to get a reference of item's settings, such as colspan ,rowspan, etc. - * Use ui.index to get a reference of the item's index, if the layout is flow or vertical - * Use ui.item to get a reference to the rendered item + * Function takes arguments evt and ui. + * Use ui.owner to get reference to the igLayoutManager. + * Use ui.itemData to get a reference of item's settings, such as colspan ,rowspan, etc. + * Use ui.index to get a reference of the item's index, if the layout is flow or vertical + * Use ui.item to get a reference to the rendered item */ itemRendering?: ItemRenderingEvent; /** * Event fired after all items are rendered. - * Function takes arguments evt and ui. - * Use ui.owner to get reference to the igLayoutManager. + * Function takes arguments evt and ui. + * Use ui.owner to get reference to the igLayoutManager. */ rendered?: RenderedEvent; @@ -58140,7 +60331,7 @@ interface IgLayoutManager { interface IgLayoutManagerMethods { /** * Triggers recalculation of the layout dimensions. Layouts may not need to be reflowed manually, if their sizes are in percentages (i.e. they are responsive by default) - * this can be particularly useful with a grid layout, when the container has percentage sizes, but items are calculated in pixels and positioned absolutely in the container. + * this can be particularly useful with a grid layout, when the container has percentage sizes, but items are calculated in pixels and positioned absolutely in the container. * * @param forceReflow Indicates whether the reflow should be forced. Useful in cases where the items size and position was changed manually. * @param animationDuration The animation duration to be used for this reflow only. Supported only for Grid Layout mode. @@ -58150,9 +60341,9 @@ interface IgLayoutManagerMethods { /** * Destroy is part of the jQuery UI widget API and does the following: - * 1. Remove custom CSS classes that were added. - * 2. Remove any elements that were added at widget's initialization and after that, which didn't below to the original markup - * 3. Unbind all events that were bound. + * 1. Remove custom CSS classes that were added. + * 2. Remove any elements that were added at widget's initialization and after that, which didn't below to the original markup + * 3. Unbind all events that were bound. */ destroy(): void; } @@ -58196,6 +60387,7 @@ interface JQuery { * Gets/Sets height of the layout container. * */ + igLayoutManager(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -58204,6 +60396,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igLayoutManager(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -58222,24 +60415,24 @@ interface JQuery { /** * An array of item descriptions - * this assumes the container is empty, and every item - * is described by rowspan, colspan, etc. - otherwise values of - * 1 are assumed - * items can have various properties some of which may not be applicable - * depending on the layoutMode. - * for example rowSpan/colSpan/colIndex/rowIndex are only applicable to gridlayout + * this assumes the container is empty, and every item + * is described by rowspan, colspan, etc. - otherwise values of + * 1 are assumed + * items can have various properties some of which may not be applicable + * depending on the layoutMode. + * for example rowSpan/colSpan/colIndex/rowIndex are only applicable to gridlayout * */ igLayoutManager(optionLiteral: 'option', optionName: "items"): IgLayoutManagerItem[]; /** * An array of item descriptions - * this assumes the container is empty, and every item - * is described by rowspan, colspan, etc. - otherwise values of - * 1 are assumed - * items can have various properties some of which may not be applicable - * depending on the layoutMode. - * for example rowSpan/colSpan/colIndex/rowIndex are only applicable to gridlayout + * this assumes the container is empty, and every item + * is described by rowspan, colspan, etc. - otherwise values of + * 1 are assumed + * items can have various properties some of which may not be applicable + * depending on the layoutMode. + * for example rowSpan/colSpan/colIndex/rowIndex are only applicable to gridlayout * * * @optionValue New value to be set. @@ -58248,22 +60441,22 @@ interface JQuery { /** * Defines the layout type - * grid Column type can be set with grid layout - * border Column type can be set with border layout - * flow Column type can be set with flow layout - * column Column type can be set with column layout - * vertical Column type can be set with vertical layout + * grid Column type can be set with grid layout + * border Column type can be set with border layout + * flow Column type can be set with flow layout + * column Column type can be set with column layout + * vertical Column type can be set with vertical layout * */ igLayoutManager(optionLiteral: 'option', optionName: "layoutMode"): any; /** * Defines the layout type - * grid Column type can be set with grid layout - * border Column type can be set with border layout - * flow Column type can be set with flow layout - * column Column type can be set with column layout - * vertical Column type can be set with vertical layout + * grid Column type can be set with grid layout + * border Column type can be set with border layout + * flow Column type can be set with flow layout + * column Column type can be set with column layout + * vertical Column type can be set with vertical layout * * * @optionValue New value to be set. @@ -58274,6 +60467,7 @@ interface JQuery { * Gets/Sets width of the layout container. * */ + igLayoutManager(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -58282,17 +60476,18 @@ interface JQuery { * * @optionValue New value to be set. */ + igLayoutManager(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Event fired after items are resized. - * Use ui.owner to get a reference to the layout manager performing resizing. + * Use ui.owner to get a reference to the layout manager performing resizing. */ igLayoutManager(optionLiteral: 'option', optionName: "internalResized"): InternalResizedEvent; /** * Event fired after items are resized. - * Use ui.owner to get a reference to the layout manager performing resizing. + * Use ui.owner to get a reference to the layout manager performing resizing. * * @optionValue Define event handler function. */ @@ -58300,7 +60495,7 @@ interface JQuery { /** * Event fired before items are resized. - * Use ui.owner to get a reference to the layout manager performing resizing. + * Use ui.owner to get a reference to the layout manager performing resizing. */ igLayoutManager(optionLiteral: 'option', optionName: "internalResizing"): InternalResizingEvent; @@ -58828,21 +61023,21 @@ interface IgLinearGaugeMethods { /** * Adds a new range to the linear gauge. * - * @param value The range object to be added. + * @param value The range object to be added. */ addRange(value: Object): void; /** * Removes a range from the linear gauge. * - * @param value A JS object with properties set as follows: name: nameOfTheRangeToRemove, remove: true + * @param value A JS object with properties set as follows: name: nameOfTheRangeToRemove, remove: true */ removeRange(value: Object): void; /** * Updates the specified range of the linear gauge. * - * @param value The range object to be updated. + * @param value The range object to be updated. */ updateRange(value: Object): void; @@ -58901,6 +61096,7 @@ interface JQuery { /** * The width of the gauge. It can be set as a number in pixels, string (px) or percentage (%). */ + igLinearGauge(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -58908,11 +61104,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igLinearGauge(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * The height of the gauge. It can be set as a number in pixels, string (px) or percentage (%). */ + igLinearGauge(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -58920,6 +61118,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igLinearGauge(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -58961,6 +61160,7 @@ interface JQuery { /** * Gets the orientation of the scale. */ + igLinearGauge(optionLiteral: 'option', optionName: "orientation"): string; /** @@ -58968,6 +61168,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igLinearGauge(optionLiteral: 'option', optionName: "orientation", optionValue: string): void; /** @@ -59037,6 +61238,7 @@ interface JQuery { /** * Gets the shape to use when rendering the needle from a number of options. */ + igLinearGauge(optionLiteral: 'option', optionName: "needleShape"): string; /** @@ -59044,6 +61246,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igLinearGauge(optionLiteral: 'option', optionName: "needleShape", optionValue: string): void; /** @@ -60815,34 +63018,34 @@ interface IgMapMethods { /** * Adds a new item to the data source and notifies the map. * - * @param item The item that we want to add to the data source. - * @param targetName The name of the series bound to the data source. + * @param item The item that we want to add to the data source. + * @param targetName The name of the series bound to the data source. */ addItem(item: Object, targetName: string): void; /** * Inserts a new item to the data source and notifies the map. * - * @param item the new item that we want to insert in the data source. - * @param index The index in the data source where the new item will be inserted. - * @param targetName The name of the series bound to the data source. + * @param item the new item that we want to insert in the data source. + * @param index The index in the data source where the new item will be inserted. + * @param targetName The name of the series bound to the data source. */ insertItem(item: Object, index: number, targetName: string): void; /** * Deletes an item from the data source and notifies the map. * - * @param index The index in the data source from where the item will be been removed. - * @param targetName The name of the series bound to the data source. + * @param index The index in the data source from where the item will be been removed. + * @param targetName The name of the series bound to the data source. */ removeItem(index: number, targetName: string): void; /** * Updates an item in the data source and notifies the map. * - * @param index The index of the item in the data source that we want to change. - * @param item The new item object that will be set in the data source. - * @param targetName The name of the series bound to the data source. + * @param index The index of the item in the data source that we want to change. + * @param item The new item object that will be set in the data source. + * @param targetName The name of the series bound to the data source. */ setItem(index: number, item: Object, targetName: string): void; @@ -60894,7 +63097,7 @@ interface IgMapMethods { /** * Either xAxis or yAxis (longitude or latitude) that it should scale the requested value into map space from axis space. - * For example you can use this method if you want to find where longitude 50 stands scaled to map's width. + * For example you can use this method if you want to find where longitude 50 stands scaled to map's width. * * @param targetName Either xAxis or yAxis to notify. * @param unscaledValue The value in axis space to translate into map space. @@ -60903,7 +63106,7 @@ interface IgMapMethods { /** * Either xAxis or yAxis (longitude or latitude) that it should unscale the requested value into axis space from map space. - * For example you can use this method if you want to find what is the longitude unscaled from 0 width of the map. + * For example you can use this method if you want to find what is the longitude unscaled from 0 width of the map. * * @param targetName Either xAxis or yAxis to notify. * @param scaledValue The value in map space to translate into axis space. @@ -60983,8 +63186,8 @@ interface IgMapMethods { /** * Indicates that a series should render, even though no option has been modified that would normally cause it to refresh. * - * @param targetName The name of the series to render. - * @param animate Whether the change should be animated, if possible. + * @param targetName The name of the series to render. + * @param animate Whether the change should be animated, if possible. */ renderSeries(targetName: string, animate: boolean): void; } @@ -61163,6 +63366,7 @@ interface JQuery { /** * The width of the map. It can be set as a number in pixels, string (px) or percentage (%). */ + igMap(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -61170,11 +63374,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igMap(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * The height of the map. It can be set as a number in pixels, string (px) or percentage (%). */ + igMap(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -61182,6 +63388,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igMap(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -61259,6 +63466,7 @@ interface JQuery { /** * Gets the current Map's crosshair visibility override. */ + igMap(optionLiteral: 'option', optionName: "crosshairVisibility"): string; /** @@ -61266,6 +63474,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igMap(optionLiteral: 'option', optionName: "crosshairVisibility", optionValue: string): void; /** @@ -61299,6 +63508,7 @@ interface JQuery { /** * Gets the DefaultInteraction property. The default interaction state defines the map's response to mouse events. */ + igMap(optionLiteral: 'option', optionName: "defaultInteraction"): string; /** @@ -61306,11 +63516,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igMap(optionLiteral: 'option', optionName: "defaultInteraction", optionValue: string): void; /** * Gets the current Map's DragModifier property. */ + igMap(optionLiteral: 'option', optionName: "dragModifier"): string; /** @@ -61318,11 +63530,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igMap(optionLiteral: 'option', optionName: "dragModifier", optionValue: string): void; /** * Gets the current Map's PanModifier property. */ + igMap(optionLiteral: 'option', optionName: "panModifier"): string; /** @@ -61330,6 +63544,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igMap(optionLiteral: 'option', optionName: "panModifier", optionValue: string): void; /** @@ -61394,6 +63609,7 @@ interface JQuery { * The response to user panning and zooming: whether to update the view immediately while the user action is happening, or to defer the update to after the user action is complete. The user action will be an action such as a mouse drag which causes panning and/or zooming to occur. * */ + igMap(optionLiteral: 'option', optionName: "windowResponse"): string; /** @@ -61402,6 +63618,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igMap(optionLiteral: 'option', optionName: "windowResponse", optionValue: string): void; /** @@ -62173,7 +64390,6 @@ interface IgNotifier { * Controls the positioning mode of messages. Setting a mode will override the default behavior which is auto.Note: Inline element uses a block container as is always placed after the target. * * - * * Valid values: * "auto" Uses popover for info and warning messages and inline for errors and success. * "popover" Displays messages in a configurable popover. @@ -62253,8 +64469,9 @@ interface IgNotifier { /** * controls the direction in which the control shows relative to the target element * + * * Valid values: - * "auto" lets the control show on the side where enough space is available with the priority specified by the [directionPriority](ui.igpopover#options:directionPriority) property + * "auto" lets the control show on the side where enough space is available with the priority specified by the [directionPriority](ui.%%WidgetNameLowered%%#options:directionPriority) property * "left" shows popover on the left side of the target element * "right" shows popover on the right side of the target element * "top" shows popover on the top of the target element @@ -62264,13 +64481,15 @@ interface IgNotifier { /** * Controls the priority in which the control searches for space to show relative to the target element. - * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + * This property has effect only if the [direction](ui.%%WidgetNameLowered%%#options:direction) property value is "auto" or unset. + * */ directionPriority?: any[]; /** * controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area * + * * Valid values: * "auto" lets the control choose a position depending on available space with the following priority balanced > end > start * "balanced" the popover is positioned at the middle of the target element @@ -62281,31 +64500,37 @@ interface IgNotifier { /** * defines width for the popover. leave null for auto. + * */ width?: number|string; /** * defines height for the popover. leave null for auto + * */ height?: number|string; /** * defines width the popover won't go under the value even if no specific one is set. + * */ minWidth?: number|string; /** * defines width the popover won't exceed even if no specific one is set. + * */ maxWidth?: number|string; /** * defines height the popover won't exceed even if no specific one is set. + * */ maxHeight?: number|string; /** * Sets the containment for the popover. Accepts a jQuery object + * */ containment?: any; @@ -62338,8 +64563,8 @@ interface IgNotifierMethods { /** * Triggers a notification with a certain state and optional message. The [notifyLevel](ui.ignotifier#options:notifyLevel) option determines if the notification will be displayed. * - * @param state The state to show notification for. - * @param message Optional message to show, overrides defaults. + * @param state The state to show notification for. + * @param message Optional message to show, overrides defaults. */ notify(state: Object, message?: string): void; @@ -62366,8 +64591,8 @@ interface IgNotifierMethods { /** * Shows the popover for the specified target * - * @param trg The element to show popover for. - * @param content The string to set for the popover to show. + * @param trg The element to show popover for. + * @param content The string to set for the popover to show. */ show(trg?: Element, content?: string): void; @@ -62384,7 +64609,7 @@ interface IgNotifierMethods { /** * Sets the content for the popover container * - * @param newCnt The popover content to set. + * @param newCnt The popover content to set. */ setContent(newCnt: string): void; @@ -62401,7 +64626,7 @@ interface IgNotifierMethods { /** * Sets the popover to specific coordinates. * - * @param pos The popover coordinates in pixels. + * @param pos The popover coordinates in pixels. */ setCoordinates(pos: Object): void; } @@ -62427,6 +64652,7 @@ interface JQuery { * Gets/Sets the current state of the igNotifier messages. State controls what CSS classes are applied to the messages and target and has interactions with other options as well. * */ + igNotifier(optionLiteral: 'option', optionName: "state"): string; /** @@ -62435,12 +64661,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igNotifier(optionLiteral: 'option', optionName: "state", optionValue: string): void; /** * Controls the level of notifications shown by automatic and manual messages using the [notify](ui.ignotifier#methods:notify) method. Use [show](ui.ignotifier#methods:show) to ignore the level. * */ + igNotifier(optionLiteral: 'option', optionName: "notifyLevel"): string; /** @@ -62449,12 +64677,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igNotifier(optionLiteral: 'option', optionName: "notifyLevel", optionValue: string): void; /** * Controls where the popover DOM should be attached to (only applies to popovers). * */ + igNotifier(optionLiteral: 'option', optionName: "appendTo"): string|Object; /** @@ -62463,22 +64693,23 @@ interface JQuery { * * @optionValue New value to be set. */ + igNotifier(optionLiteral: 'option', optionName: "appendTo", optionValue: string|Object): void; /** * Controls the positioning mode of messages. Setting a mode will override the default behavior which is auto.Note: Inline element uses a block container as is always placed after the target. * - * */ + igNotifier(optionLiteral: 'option', optionName: "mode"): string; /** * Controls the positioning mode of messages. Setting a mode will override the default behavior which is auto.Note: Inline element uses a block container as is always placed after the target. * * - * * @optionValue New value to be set. */ + igNotifier(optionLiteral: 'option', optionName: "mode", optionValue: string): void; /** @@ -62527,6 +64758,7 @@ interface JQuery { * Gets/Sets the content for the popover container. Templated with parameters by default: {0} - icon container class, {1} - the icon class and {2} - message text. * */ + igNotifier(optionLiteral: 'option', optionName: "contentTemplate"): string|Function; /** @@ -62535,6 +64767,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igNotifier(optionLiteral: 'option', optionName: "contentTemplate", optionValue: string|Function): void; /** @@ -62555,6 +64788,7 @@ interface JQuery { * Sets the event on which the notification will be shown. Predefined values are "mouseenter", "click" and "focus" * */ + igNotifier(optionLiteral: 'option', optionName: "showOn"): string; /** @@ -62563,6 +64797,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igNotifier(optionLiteral: 'option', optionName: "showOn", optionValue: string): void; /** @@ -62621,25 +64856,31 @@ interface JQuery { /** * Controls the direction in which the control shows relative to the target element + * */ + igNotifier(optionLiteral: 'option', optionName: "direction"): string; /** * Controls the direction in which the control shows relative to the target element * + * * @optionValue New value to be set. */ + igNotifier(optionLiteral: 'option', optionName: "direction", optionValue: string): void; /** * Controls the priority in which the control searches for space to show relative to the target element. - * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + * This property has effect only if the [direction](ui.%%WidgetNameLowered%%#options:direction) property value is "auto" or unset. + * */ igNotifier(optionLiteral: 'option', optionName: "directionPriority"): any[]; /** * Controls the priority in which the control searches for space to show relative to the target element. - * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + * This property has effect only if the [direction](ui.%%WidgetNameLowered%%#options:direction) property value is "auto" or unset. + * * * @optionValue New value to be set. */ @@ -62647,84 +64888,110 @@ interface JQuery { /** * Controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area + * */ + igNotifier(optionLiteral: 'option', optionName: "position"): string; /** * Controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area * + * * @optionValue New value to be set. */ + igNotifier(optionLiteral: 'option', optionName: "position", optionValue: string): void; /** * Defines width for the popover. leave null for auto. + * */ + igNotifier(optionLiteral: 'option', optionName: "width"): number|string; /** * Defines width for the popover. leave null for auto. * + * * @optionValue New value to be set. */ + igNotifier(optionLiteral: 'option', optionName: "width", optionValue: number|string): void; /** * Defines height for the popover. leave null for auto + * */ + igNotifier(optionLiteral: 'option', optionName: "height"): number|string; /** * Defines height for the popover. leave null for auto * + * * @optionValue New value to be set. */ + igNotifier(optionLiteral: 'option', optionName: "height", optionValue: number|string): void; /** * Defines width the popover won't go under the value even if no specific one is set. + * */ + igNotifier(optionLiteral: 'option', optionName: "minWidth"): number|string; /** * Defines width the popover won't go under the value even if no specific one is set. * + * * @optionValue New value to be set. */ + igNotifier(optionLiteral: 'option', optionName: "minWidth", optionValue: number|string): void; /** * Defines width the popover won't exceed even if no specific one is set. + * */ + igNotifier(optionLiteral: 'option', optionName: "maxWidth"): number|string; /** * Defines width the popover won't exceed even if no specific one is set. * + * * @optionValue New value to be set. */ + igNotifier(optionLiteral: 'option', optionName: "maxWidth", optionValue: number|string): void; /** * Defines height the popover won't exceed even if no specific one is set. + * */ + igNotifier(optionLiteral: 'option', optionName: "maxHeight"): number|string; /** * Defines height the popover won't exceed even if no specific one is set. * + * * @optionValue New value to be set. */ + igNotifier(optionLiteral: 'option', optionName: "maxHeight", optionValue: number|string): void; /** * The containment for the popover. Accepts a jQuery object + * */ igNotifier(optionLiteral: 'option', optionName: "containment"): any; /** * Sets the containment for the popover. Accepts a jQuery object * + * * @optionValue New value to be set. */ igNotifier(optionLiteral: 'option', optionName: "containment", optionValue: any): void; @@ -63760,17 +66027,14 @@ interface JQuery { igPivotDataSelector(methodName: "update"): void; igPivotDataSelector(methodName: "destroy"): void; - /** - */ igPivotDataSelector(optionLiteral: 'option', optionName: "width"): string|number; - /** - */ igPivotDataSelector(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * This is the total height of the grid, including all UI elements - scroll container with data rows, header, footer, filter row - (if any), etc. */ + igPivotDataSelector(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -63778,6 +66042,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPivotDataSelector(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -65412,17 +67677,14 @@ interface JQuery { igPivotGrid(methodName: "appliedLevelSortDirections"): any[]; igPivotGrid(methodName: "destroy"): void; - /** - */ igPivotGrid(optionLiteral: 'option', optionName: "width"): string|number; - /** - */ igPivotGrid(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * This is the total height of the grid. */ + igPivotGrid(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -65430,6 +67692,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPivotGrid(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -65667,6 +67930,7 @@ interface JQuery { /** * Gets the default sort behavior for the levels if no sort behavior is specified in an item from the levelSortDirections option. */ + igPivotGrid(optionLiteral: 'option', optionName: "defaultLevelSortBehavior"): string; /** @@ -65674,6 +67938,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPivotGrid(optionLiteral: 'option', optionName: "defaultLevelSortBehavior", optionValue: string): void; /** @@ -67108,9 +69373,9 @@ interface IgPivotViewMethods { /** * Destroy is part of the jQuery UI widget API and does the following: - * 1. Remove custom CSS classes that were added. - * 2. Unwrap any wrapping elements such as scrolling divs and other containers. - * 3. Unbind all events that were bound. + * 1. Remove custom CSS classes that were added. + * 2. Unwrap any wrapping elements such as scrolling divs and other containers. + * 3. Unbind all events that were bound. */ destroy(): void; } @@ -67124,20 +69389,12 @@ interface JQuery { igPivotView(methodName: "splitter"): Object; igPivotView(methodName: "destroy"): void; - /** - */ igPivotView(optionLiteral: 'option', optionName: "width"): string|number; - /** - */ igPivotView(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; - /** - */ igPivotView(optionLiteral: 'option', optionName: "height"): string|number; - /** - */ igPivotView(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -67222,14 +69479,16 @@ interface JQuery { interface IgPopover { /** * Controls whether the popover will close on blur or not + * */ closeOnBlur?: boolean; /** * controls the direction in which the control shows relative to the target element * + * * Valid values: - * "auto" lets the control show on the side where enough space is available with the priority specified by the [directionPriority](ui.igpopover#options:directionPriority) property + * "auto" lets the control show on the side where enough space is available with the priority specified by the [directionPriority](ui.%%WidgetNameLowered%%#options:directionPriority) property * "left" shows popover on the left side of the target element * "right" shows popover on the right side of the target element * "top" shows popover on the top of the target element @@ -67239,13 +69498,15 @@ interface IgPopover { /** * Controls the priority in which the control searches for space to show relative to the target element. - * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + * This property has effect only if the [direction](ui.%%WidgetNameLowered%%#options:direction) property value is "auto" or unset. + * */ directionPriority?: any[]; /** * controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area * + * * Valid values: * "auto" lets the control choose a position depending on available space with the following priority balanced > end > start * "balanced" the popover is positioned at the middle of the target element @@ -67256,37 +69517,44 @@ interface IgPopover { /** * defines width for the popover. leave null for auto. + * */ width?: number|string; /** * defines height for the popover. leave null for auto + * */ height?: number|string; /** * defines width the popover won't go under the value even if no specific one is set. + * */ minWidth?: number|string; /** * defines width the popover won't exceed even if no specific one is set. + * */ maxWidth?: number|string; /** * defines height the popover won't exceed even if no specific one is set. + * */ maxHeight?: number|string; /** * Sets the time popover fades in and out when showing/hiding + * */ animationDuration?: number; /** * sets the content for the popover container. If left null the content will be get from the target. * + * * Valid values: * "string" String content of the popover container * "function" Function which is a callback that should return the content. Use the 'this' value to access the target DOM element. @@ -67295,17 +69563,20 @@ interface IgPopover { /** * Selectors indicating which items should show popovers. The predefined value is [title]. Customize if you're using something other then the title attribute for the popover content, or if you need a different selector for event delegation. When changing this option, you likely need to also change the contentTemplate option + * */ selectors?: string; /** * Sets the content for the popover header + * */ headerTemplate?: IgPopoverHeaderTemplate; /** * sets the event on which the popover will be shown. Predefined values are "mouseenter", "click" and "focus" * + * * Valid values: * "mouseenter" the popover is shown on mouse enter in the target element * "click" the popover is shown on click on the target element @@ -67315,6 +69586,7 @@ interface IgPopover { /** * Sets the containment for the popover. Accepts a jQuery object + * */ containment?: any; @@ -67372,8 +69644,8 @@ interface IgPopoverMethods { /** * Shows the popover for the specified target * - * @param trg The element to show popover for. - * @param content The string to set for the popover to show. + * @param trg The element to show popover for. + * @param content The string to set for the popover to show. */ show(trg?: Element, content?: string): void; @@ -67390,7 +69662,7 @@ interface IgPopoverMethods { /** * Sets the content for the popover container * - * @param newCnt The popover content to set. + * @param newCnt The popover content to set. */ setContent(newCnt: string): void; @@ -67407,7 +69679,7 @@ interface IgPopoverMethods { /** * Sets the popover to specific coordinates. * - * @param pos The popover coordinates in pixels. + * @param pos The popover coordinates in pixels. */ setCoordinates(pos: Object): void; } @@ -67429,37 +69701,45 @@ interface JQuery { /** * Controls whether the popover will close on blur or not + * */ igPopover(optionLiteral: 'option', optionName: "closeOnBlur"): boolean; /** * Controls whether the popover will close on blur or not * + * * @optionValue New value to be set. */ igPopover(optionLiteral: 'option', optionName: "closeOnBlur", optionValue: boolean): void; /** * Controls the direction in which the control shows relative to the target element + * */ + igPopover(optionLiteral: 'option', optionName: "direction"): string; /** * Controls the direction in which the control shows relative to the target element * + * * @optionValue New value to be set. */ + igPopover(optionLiteral: 'option', optionName: "direction", optionValue: string): void; /** * Controls the priority in which the control searches for space to show relative to the target element. - * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + * This property has effect only if the [direction](ui.%%WidgetNameLowered%%#options:direction) property value is "auto" or unset. + * */ igPopover(optionLiteral: 'option', optionName: "directionPriority"): any[]; /** * Controls the priority in which the control searches for space to show relative to the target element. - * This property has effect only if the [direction](ui.igpopover#options:direction) property value is "auto" or unset. + * This property has effect only if the [direction](ui.%%WidgetNameLowered%%#options:direction) property value is "auto" or unset. + * * * @optionValue New value to be set. */ @@ -67467,144 +69747,184 @@ interface JQuery { /** * Controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area + * */ + igPopover(optionLiteral: 'option', optionName: "position"): string; /** * Controls the position of the popover according to the target element in case the popover is larger than the target on the side we want to position, if the popover is smaller it should always be in the middle of the visible area * + * * @optionValue New value to be set. */ + igPopover(optionLiteral: 'option', optionName: "position", optionValue: string): void; /** * Defines width for the popover. leave null for auto. + * */ + igPopover(optionLiteral: 'option', optionName: "width"): number|string; /** * Defines width for the popover. leave null for auto. * + * * @optionValue New value to be set. */ + igPopover(optionLiteral: 'option', optionName: "width", optionValue: number|string): void; /** * Defines height for the popover. leave null for auto + * */ + igPopover(optionLiteral: 'option', optionName: "height"): number|string; /** * Defines height for the popover. leave null for auto * + * * @optionValue New value to be set. */ + igPopover(optionLiteral: 'option', optionName: "height", optionValue: number|string): void; /** * Defines width the popover won't go under the value even if no specific one is set. + * */ + igPopover(optionLiteral: 'option', optionName: "minWidth"): number|string; /** * Defines width the popover won't go under the value even if no specific one is set. * + * * @optionValue New value to be set. */ + igPopover(optionLiteral: 'option', optionName: "minWidth", optionValue: number|string): void; /** * Defines width the popover won't exceed even if no specific one is set. + * */ + igPopover(optionLiteral: 'option', optionName: "maxWidth"): number|string; /** * Defines width the popover won't exceed even if no specific one is set. * + * * @optionValue New value to be set. */ + igPopover(optionLiteral: 'option', optionName: "maxWidth", optionValue: number|string): void; /** * Defines height the popover won't exceed even if no specific one is set. + * */ + igPopover(optionLiteral: 'option', optionName: "maxHeight"): number|string; /** * Defines height the popover won't exceed even if no specific one is set. * + * * @optionValue New value to be set. */ + igPopover(optionLiteral: 'option', optionName: "maxHeight", optionValue: number|string): void; /** * The time popover fades in and out when showing/hiding + * */ igPopover(optionLiteral: 'option', optionName: "animationDuration"): number; /** * Sets the time popover fades in and out when showing/hiding * + * * @optionValue New value to be set. */ igPopover(optionLiteral: 'option', optionName: "animationDuration", optionValue: number): void; /** * The content for the popover container. If left null the content will be get from the target. + * */ + igPopover(optionLiteral: 'option', optionName: "contentTemplate"): string|Function; /** * Sets the content for the popover container. If left null the content will be get from the target. * + * * @optionValue New value to be set. */ + igPopover(optionLiteral: 'option', optionName: "contentTemplate", optionValue: string|Function): void; /** * Selectors indicating which items should show popovers. The predefined value is [title]. Customize if you're using something other then the title attribute for the popover content, or if you need a different selector for event delegation. When changing this option, you likely need to also change the contentTemplate option + * */ igPopover(optionLiteral: 'option', optionName: "selectors"): string; /** * Selectors indicating which items should show popovers. The predefined value is [title]. Customize if you're using something other then the title attribute for the popover content, or if you need a different selector for event delegation. When changing this option, you likely need to also change the contentTemplate option * + * * @optionValue New value to be set. */ igPopover(optionLiteral: 'option', optionName: "selectors", optionValue: string): void; /** * The content for the popover header + * */ igPopover(optionLiteral: 'option', optionName: "headerTemplate"): IgPopoverHeaderTemplate; /** * Sets the content for the popover header * + * * @optionValue New value to be set. */ igPopover(optionLiteral: 'option', optionName: "headerTemplate", optionValue: IgPopoverHeaderTemplate): void; /** * The event on which the popover will be shown. Predefined values are "mouseenter", "click" and "focus" + * */ + igPopover(optionLiteral: 'option', optionName: "showOn"): string; /** * Sets the event on which the popover will be shown. Predefined values are "mouseenter", "click" and "focus" * + * * @optionValue New value to be set. */ + igPopover(optionLiteral: 'option', optionName: "showOn", optionValue: string): void; /** * The containment for the popover. Accepts a jQuery object + * */ igPopover(optionLiteral: 'option', optionName: "containment"): any; /** * Sets the containment for the popover. Accepts a jQuery object * + * * @optionValue New value to be set. */ igPopover(optionLiteral: 'option', optionName: "containment", optionValue: any): void; @@ -67613,6 +69933,7 @@ interface JQuery { * Controls where the popover DOM should be attached to. * */ + igPopover(optionLiteral: 'option', optionName: "appendTo"): string|Object; /** @@ -67621,6 +69942,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igPopover(optionLiteral: 'option', optionName: "appendTo", optionValue: string|Object): void; /** @@ -68285,6 +70607,7 @@ interface JQuery { /** * The width of the gauge. It can be set as a number in pixels, string (px) or percentage (%). */ + igRadialGauge(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -68292,11 +70615,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igRadialGauge(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * The height of the gauge. It can be set as a number in pixels, string (px) or percentage (%). */ + igRadialGauge(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -68304,6 +70629,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igRadialGauge(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -68445,6 +70771,7 @@ interface JQuery { /** * Gets the direction in which the scale sweeps around the center from the start angle to end angle. */ + igRadialGauge(optionLiteral: 'option', optionName: "scaleSweepDirection"): string; /** @@ -68452,6 +70779,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igRadialGauge(optionLiteral: 'option', optionName: "scaleSweepDirection", optionValue: string): void; /** @@ -68533,6 +70861,7 @@ interface JQuery { /** * Gets the shape to use when rendering the needle from a number of options. */ + igRadialGauge(optionLiteral: 'option', optionName: "needleShape"): string; /** @@ -68540,6 +70869,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igRadialGauge(optionLiteral: 'option', optionName: "needleShape", optionValue: string): void; /** @@ -68655,6 +70985,7 @@ interface JQuery { /** * Gets the shape to use for the needle cap. */ + igRadialGauge(optionLiteral: 'option', optionName: "needlePivotShape"): string; /** @@ -68662,6 +70993,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igRadialGauge(optionLiteral: 'option', optionName: "needlePivotShape", optionValue: string): void; /** @@ -68981,6 +71313,7 @@ interface JQuery { /** * Gets the oversweep shape to use for the excess fill area for the scale. */ + igRadialGauge(optionLiteral: 'option', optionName: "scaleOversweepShape"): string; /** @@ -68988,6 +71321,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igRadialGauge(optionLiteral: 'option', optionName: "scaleOversweepShape", optionValue: string): void; /** @@ -69017,6 +71351,7 @@ interface JQuery { /** * Gets the type of shape to use for the backing of the gauge. */ + igRadialGauge(optionLiteral: 'option', optionName: "backingShape"): string; /** @@ -69024,6 +71359,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igRadialGauge(optionLiteral: 'option', optionName: "backingShape", optionValue: string): void; /** @@ -69045,6 +71381,7 @@ interface JQuery { /** * Gets the strategy to use for omitting labels if the first and last label have the same value. */ + igRadialGauge(optionLiteral: 'option', optionName: "duplicateLabelOmissionStrategy"): string; /** @@ -69052,6 +71389,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igRadialGauge(optionLiteral: 'option', optionName: "duplicateLabelOmissionStrategy", optionValue: string): void; /** @@ -70044,13 +72382,7 @@ interface JQuery { * @optionValue New value to be set. */ igRadialMenu(optionLiteral: 'option', optionName: "wedgePaddingInDegrees", optionValue: number): void; - - /** - */ igRadialMenu(optionLiteral: 'option', optionName: "pixelScalingRatio"): number; - - /** - */ igRadialMenu(optionLiteral: 'option', optionName: "pixelScalingRatio", optionValue: number): void; /** @@ -70275,7 +72607,7 @@ interface IgRatingMethods { /** * Gets reference to [igValidator](ui.igvalidator) used by igRating. * - * @param destroy Request to destroy validator. + * @param destroy Request to destroy validator. */ validator(destroy?: boolean): Object; @@ -70287,16 +72619,16 @@ interface IgRatingMethods { /** * Gets/Sets (selected) value. * - * @param val New value which is rendered with selected css. - * @return number|object If parameter is not 'number', then exact value rendered with selected css is returned. Otherwise, reference to igRating is returned. + * @param val New value which is rendered with selected css. + * @return number|object If parameter is not 'number', then exact value rendered with selected css is returned. Otherwise, reference to igRating is returned. */ value(val: number): number|Object; /** * Gets/Sets hover value. * - * @param val New value which will be rendered with hover css when rating gets mouse. - * @return number|object If parameter is not "number", then last value which was rendered with hover css is returned. Otherwise, reference to igRating is returned. + * @param val New value which will be rendered with hover css when rating gets mouse. + * @return number|object If parameter is not "number", then last value which was rendered with hover css is returned. Otherwise, reference to igRating is returned. */ valueHover(val?: number): number|Object; @@ -70348,6 +72680,7 @@ interface JQuery { * Gets/Sets value (selected votes or percent). If the value is of type string, it should be suitable for parsing to number. According to [valueAsPercent](ui.igrating#options:valueAsPercent) options the value is used as number of selected votes or as a percent of the votes. * */ + igRating(optionLiteral: 'option', optionName: "value"): number|string; /** @@ -70356,12 +72689,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igRating(optionLiteral: 'option', optionName: "value", optionValue: number|string): void; /** * Gets/Sets value-hover (hovered votes or percent of hovered votes). The default is same as value. If the value is of type string, it should be suitable for parsing to number. According to [valueAsPercent](ui.igrating#options:valueAsPercent) options the valueHover is used as number of hovered votes or as a percent of the hovered votes. * */ + igRating(optionLiteral: 'option', optionName: "valueHover"): number|string; /** @@ -70370,6 +72705,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igRating(optionLiteral: 'option', optionName: "valueHover", optionValue: number|string): void; /** @@ -70472,6 +72808,7 @@ interface JQuery { * Gets/Sets precision. Precision of value and valueHover. * */ + igRating(optionLiteral: 'option', optionName: "precision"): string; /** @@ -70480,6 +72817,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igRating(optionLiteral: 'option', optionName: "precision", optionValue: string): void; /** @@ -70736,6 +73074,25 @@ interface AgendaRangeChangingEvent { } interface AgendaRangeChangingEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to the days to be shown in AgendaView mode. + */ + dateRangeInterval?: number; + + /** + * Gets a reference to the current AgendaView start date. + */ + currentAgendaRangeStartDate?: any; + + /** + * Gets a reference to the newly AgendaView start date. + */ + newAgendaRangeStartDate?: any; } interface AgendaRangeChangedEvent { @@ -70743,6 +73100,20 @@ interface AgendaRangeChangedEvent { } interface AgendaRangeChangedEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to the days to be shown in AgendaView mode. + */ + dateRangeInterval?: number; + + /** + * Gets a reference to the newly AgendaView start date. + */ + newAgendaRangeStartDate?: any; } interface DaySelectedEvent { @@ -70750,6 +73121,15 @@ interface DaySelectedEvent { } interface DaySelectedEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to currently selected date. + */ + date?: any; } interface MonthChangingEvent { @@ -70757,6 +73137,20 @@ interface MonthChangingEvent { } interface MonthChangingEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to newly selected date. + */ + newSelectedDate?: any; + + /** + * Gets a reference to the currently selected date. + */ + currentSelectedDate?: any; } interface MonthChangedEvent { @@ -70764,6 +73158,15 @@ interface MonthChangedEvent { } interface MonthChangedEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to newly selected date. + */ + newSelectedDate?: any; } interface ViewChangingEvent { @@ -70771,6 +73174,20 @@ interface ViewChangingEvent { } interface ViewChangingEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to the currently selected view. + */ + currentSelectedView?: string; + + /** + * Gets a reference to the newly selected view. + */ + newSelectedView?: string; } interface ViewChangedEvent { @@ -70778,6 +73195,15 @@ interface ViewChangedEvent { } interface ViewChangedEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to the newly selected view. + */ + newSelectedView?: string; } interface AppointmentDialogOpeningEvent { @@ -70785,6 +73211,20 @@ interface AppointmentDialogOpeningEvent { } interface AppointmentDialogOpeningEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to the appointment dialog. + */ + element?: any; + + /** + * Gets whether we are creating or updating an appointment. + */ + isAppointmentNew?: boolean; } interface AppointmentDialogOpenedEvent { @@ -70792,6 +73232,20 @@ interface AppointmentDialogOpenedEvent { } interface AppointmentDialogOpenedEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to the appointment dialog. + */ + element?: any; + + /** + * Gets whether we are creating or updating an appointment. + */ + isAppointmentNew?: boolean; } interface AppointmentDialogClosingEvent { @@ -70799,6 +73253,20 @@ interface AppointmentDialogClosingEvent { } interface AppointmentDialogClosingEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to the appointment dialog. + */ + element?: any; + + /** + * Gets whether we are creating or updating an appointment. + */ + isAppointmentNew?: boolean; } interface AppointmentDialogClosedEvent { @@ -70806,6 +73274,20 @@ interface AppointmentDialogClosedEvent { } interface AppointmentDialogClosedEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to the appointment dialog. + */ + element?: any; + + /** + * Gets whether we are creating or updating an appointment. + */ + isAppointmentNew?: boolean; } interface AppointmentCreatingEvent { @@ -70813,6 +73295,15 @@ interface AppointmentCreatingEvent { } interface AppointmentCreatingEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to the appointment which is going to be created. + */ + appointment?: any; } interface AppointmentCreatedEvent { @@ -70820,6 +73311,15 @@ interface AppointmentCreatedEvent { } interface AppointmentCreatedEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to the created appointment. + */ + appointment?: any; } interface AppointmentDeletingEvent { @@ -70827,6 +73327,15 @@ interface AppointmentDeletingEvent { } interface AppointmentDeletingEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to the appointment which is going to be deleted. + */ + appointment?: any; } interface AppointmentDeletedEvent { @@ -70834,6 +73343,15 @@ interface AppointmentDeletedEvent { } interface AppointmentDeletedEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets the id of the deleted appointment. + */ + appointmentId?: any; } interface AppointmentEditingEvent { @@ -70841,6 +73359,20 @@ interface AppointmentEditingEvent { } interface AppointmentEditingEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to the original appointment. + */ + appointment?: any; + + /** + * Gets a reference to the appointment with the edited values. + */ + newAppointment?: any; } interface AppointmentEditedEvent { @@ -70848,6 +73380,15 @@ interface AppointmentEditedEvent { } interface AppointmentEditedEventUIParam { + /** + * Gets a reference to the scheduler. + */ + owner?: any; + + /** + * Gets a reference to the edited appointment. + */ + appointment?: any; } interface IgScheduler { @@ -71027,15 +73568,15 @@ interface IgSchedulerMethods { /** * Deletes appointment from the appointment collection * - * @param appointment appointment + * @param appointment appointment */ deleteAppointment(appointment: Object): Object; /** * Deletes appointment from the appointment collection * - * @param appointment appointment - * @param updateAppoinment updateAppoinment + * @param appointment appointment + * @param updateAppoinment updateAppoinment */ editAppointment(appointment: Object, updateAppoinment: Object): Object; @@ -71103,6 +73644,7 @@ interface JQuery { * Gets/Sets current view mode in the Scheduler. If this options is not defined, then the first defined view in the views property is taken. * */ + igScheduler(optionLiteral: 'option', optionName: "viewMode"): string; /** @@ -71111,6 +73653,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igScheduler(optionLiteral: 'option', optionName: "viewMode", optionValue: string): void; /** @@ -71131,6 +73674,7 @@ interface JQuery { * Gets/Sets the width of the control. * */ + igScheduler(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -71139,12 +73683,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igScheduler(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets the height of the control. * */ + igScheduler(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -71153,6 +73699,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igScheduler(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -71435,6 +73982,35 @@ interface ScrollingEvent { } interface ScrollingEventUIParam { + /** + * Gets a reference to the igScroll. + */ + owner?: any; + + /** + * Gets if the content is scrolled by the arrows. 0 - none used, -1 - Arrow Up/Left, 1 - Arrow Down/Right. + */ + smallIncrement?: number; + + /** + * Gets if the content is scrolled by the scrollbar track areas. 0 - none used, -1 - Scrolled Up/Left, 1 - Scrolled Down/Right. + */ + bigIncrement?: number; + + /** + * Gets which axis is being used to scroll - horizontal(true) or vertical(false). + */ + horizontal?: boolean; + + /** + * Gets how much the content will be scrolled horizontally. + */ + stepX?: number; + + /** + * Gets how much the content will be scrolled vertically. + */ + stepY?: number; } interface ScrolledEvent { @@ -71442,6 +74018,25 @@ interface ScrolledEvent { } interface ScrolledEventUIParam { + /** + * Gets a reference to the igScroll. + */ + owner?: any; + + /** + * Gets if the content is scrolled by the arrows. 0 - none used, -1 - Arrow Up/Left, 1 - Arrow Down/Right. + */ + smallIncrement?: number; + + /** + * Gets if the content is scrolled by the scrollbar track areas. 0 - none used, -1 - Scrolled Up/Left, 1 - Scrolled Down/Right. + */ + bigIncrement?: number; + + /** + * Gets which axis is being used to scroll - horizontal(true) or vertical(false). + */ + horizontal?: boolean; } interface ThumbDragStartEvent { @@ -71449,6 +74044,15 @@ interface ThumbDragStartEvent { } interface ThumbDragStartEventUIParam { + /** + * Gets a reference to the igScroll. + */ + owner?: any; + + /** + * Gets which axis is being used to scroll - horizontal(true) or vertical(false). + */ + horizontal?: boolean; } interface ThumbDragMoveEvent { @@ -71456,6 +74060,25 @@ interface ThumbDragMoveEvent { } interface ThumbDragMoveEventUIParam { + /** + * Gets a reference to the igScroll. + */ + owner?: any; + + /** + * Gets which scrollbar thumb is being used - horizontal(true) or vertical(false). + */ + horizontal?: boolean; + + /** + * Gets how much the content will be scrolled horizontally. + */ + stepX?: number; + + /** + * Gets how much the content will be scrolled vertically. + */ + stepY?: number; } interface ThumbDragEndEvent { @@ -71463,6 +74086,15 @@ interface ThumbDragEndEvent { } interface ThumbDragEndEventUIParam { + /** + * Gets a reference to the igScroll. + */ + owner?: any; + + /** + * Gets which scrollbar thumb is being used - horizontal(true) or vertical(false). + */ + horizontal?: boolean; } interface ResizingEvent { @@ -71733,6 +74365,7 @@ interface JQuery { * Sets or gets what type of scrollbars should be using the igScroll (on all environments). * */ + igScroll(optionLiteral: 'option', optionName: "scrollbarType"): string; /** @@ -71741,6 +74374,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igScroll(optionLiteral: 'option', optionName: "scrollbarType", optionValue: string): void; /** @@ -72246,43 +74880,37 @@ interface StartEvent { (event: Event, ui: StartEventUIParam): void; } -interface StartEventUIParam { -} +interface StartEventUIParam {} interface SlideEvent { (event: Event, ui: SlideEventUIParam): void; } -interface SlideEventUIParam { -} +interface SlideEventUIParam {} interface StopEvent { (event: Event, ui: StopEventUIParam): void; } -interface StopEventUIParam { -} +interface StopEventUIParam {} interface ChangeEvent { (event: Event, ui: ChangeEventUIParam): void; } -interface ChangeEventUIParam { -} +interface ChangeEventUIParam {} interface BookmarkHitEvent { (event: Event, ui: BookmarkHitEventUIParam): void; } -interface BookmarkHitEventUIParam { -} +interface BookmarkHitEventUIParam {} interface BookmarkClickEvent { (event: Event, ui: BookmarkClickEventUIParam): void; } -interface BookmarkClickEventUIParam { -} +interface BookmarkClickEventUIParam {} interface IgSlider { /** @@ -72473,8 +75101,7 @@ interface CaptureEvent { (event: Event, ui: CaptureEventUIParam): void; } -interface CaptureEventUIParam { -} +interface CaptureEventUIParam {} interface MouseWrapper { cancel?: string; @@ -72527,17 +75154,17 @@ interface IgResponsiveContainerMethods { /** * Removes a callback from the callbacks collection. * - * @param callbackId The callback id to remove. + * @param callbackId The callback id to remove. */ removeCallback(callbackId: number): void; /** * Adds a callback to the callback collection. * - * @param callback The function to call when requirements are met. - * @param owner The owner object of the function. - * @param reactionStep The sensitivity of the size change recognition. - * @param reactionDirection The dimensions the changes of which to be traced. + * @param callback The function to call when requirements are met. + * @param owner The owner object of the function. + * @param reactionStep The sensitivity of the size change recognition. + * @param reactionDirection The dimensions the changes of which to be traced. */ addCallback(callback: Function, owner: Object, reactionStep: number, reactionDirection: Object): void; } @@ -72552,21 +75179,9 @@ interface JQuery { igLoading(methodName: "hide"): void; igLoading(methodName: "refreshPos"): void; igLoading(methodName: "destroy"): void; - - /** - */ igLoading(optionLiteral: 'option', optionName: "cssClass"): any; - - /** - */ igLoading(optionLiteral: 'option', optionName: "cssClass", optionValue: any): void; - - /** - */ igLoading(optionLiteral: 'option', optionName: "includeVerticalOffset"): boolean; - - /** - */ igLoading(optionLiteral: 'option', optionName: "includeVerticalOffset", optionValue: boolean): void; igLoading(options: IgLoading): JQuery; igLoading(optionLiteral: 'option', optionName: string): any; @@ -72769,77 +75384,23 @@ interface JQuery { igProgressBar(methodName: "widget"): void; igProgressBar(methodName: "destroy"): void; igProgressBar(methodName: "value", newValue: Object): void; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "animate"): boolean; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "animate", optionValue: boolean): void; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "animateTimeout"): number; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "animateTimeout", optionValue: number): void; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "max"): number; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "max", optionValue: number): void; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "min"): number; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "min", optionValue: number): void; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "orientation"): string; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "orientation", optionValue: string): void; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "value"): number; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "value", optionValue: number): void; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "width"): string; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "width", optionValue: string): void; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "height"): string; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "height", optionValue: string): void; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "range"): boolean; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "range", optionValue: boolean): void; /** @@ -72853,21 +75414,9 @@ interface JQuery { * @optionValue New value to be set. */ igProgressBar(optionLiteral: 'option', optionName: "queue", optionValue: boolean): void; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "endValue"): number; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "endValue", optionValue: number): void; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "change"): ChangeEvent; - - /** - */ igProgressBar(optionLiteral: 'option', optionName: "change", optionValue: ChangeEvent): void; igProgressBar(options: IgProgressBar): JQuery; igProgressBar(optionLiteral: 'option', optionName: string): any; @@ -72879,77 +75428,23 @@ interface JQuery { igButton(methodName: "setTitle", title: Object): void; igButton(methodName: "widget"): void; igButton(methodName: "destroy"): void; - - /** - */ igButton(optionLiteral: 'option', optionName: "width"): any; - - /** - */ igButton(optionLiteral: 'option', optionName: "width", optionValue: any): void; - - /** - */ igButton(optionLiteral: 'option', optionName: "height"): any; - - /** - */ igButton(optionLiteral: 'option', optionName: "height", optionValue: any): void; - - /** - */ igButton(optionLiteral: 'option', optionName: "link"): IgButtonLink; - - /** - */ igButton(optionLiteral: 'option', optionName: "link", optionValue: IgButtonLink): void; - - /** - */ igButton(optionLiteral: 'option', optionName: "labelText"): string; - - /** - */ igButton(optionLiteral: 'option', optionName: "labelText", optionValue: string): void; - - /** - */ igButton(optionLiteral: 'option', optionName: "centerLabel"): boolean; - - /** - */ igButton(optionLiteral: 'option', optionName: "centerLabel", optionValue: boolean): void; - - /** - */ igButton(optionLiteral: 'option', optionName: "css"): any; - - /** - */ igButton(optionLiteral: 'option', optionName: "css", optionValue: any): void; - - /** - */ igButton(optionLiteral: 'option', optionName: "onlyIcons"): boolean; - - /** - */ igButton(optionLiteral: 'option', optionName: "onlyIcons", optionValue: boolean): void; - - /** - */ igButton(optionLiteral: 'option', optionName: "icons"): IgButtonIcons; - - /** - */ igButton(optionLiteral: 'option', optionName: "icons", optionValue: IgButtonIcons): void; - - /** - */ igButton(optionLiteral: 'option', optionName: "title"): boolean; - - /** - */ igButton(optionLiteral: 'option', optionName: "title", optionValue: boolean): void; igButton(options: IgButton): JQuery; igButton(optionLiteral: 'option', optionName: string): any; @@ -72959,21 +75454,9 @@ interface JQuery { } interface JQuery { igTooltip(methodName: "destroy"): void; - - /** - */ igTooltip(optionLiteral: 'option', optionName: "text"): string; - - /** - */ igTooltip(optionLiteral: 'option', optionName: "text", optionValue: string): void; - - /** - */ igTooltip(optionLiteral: 'option', optionName: "arrowLocation"): string; - - /** - */ igTooltip(optionLiteral: 'option', optionName: "arrowLocation", optionValue: string): void; igTooltip(options: IgTooltip): JQuery; igTooltip(optionLiteral: 'option', optionName: string): any; @@ -72983,61 +75466,19 @@ interface JQuery { } interface JQuery { mouseWrapper(methodName: "destroy"): void; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "cancel"): string; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "cancel", optionValue: string): void; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "distance"): number; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "distance", optionValue: number): void; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "delay"): number; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "delay", optionValue: number): void; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "start"): StartEvent; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "start", optionValue: StartEvent): void; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "drag"): DragEvent; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "drag", optionValue: DragEvent): void; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "stop"): StopEvent; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "stop", optionValue: StopEvent): void; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "capture"): CaptureEvent; - - /** - */ mouseWrapper(optionLiteral: 'option', optionName: "capture", optionValue: CaptureEvent): void; mouseWrapper(options: MouseWrapper): JQuery; mouseWrapper(optionLiteral: 'option', optionName: string): any; @@ -73445,14 +75886,14 @@ interface IgSparklineMethods { /** * Find index of item within actual data used by chart. * - * @param item The reference to item. + * @param item The reference to item. */ findIndexOfItem(item: Object): number; /** * Get item within actual data used by chart. That is similar to this.getData()[ index ]. * - * @param index Index of data item. + * @param index Index of data item. */ getDataItem(index: Object): Object; @@ -73464,68 +75905,68 @@ interface IgSparklineMethods { /** * Adds a new item to the data source and notifies the chart. * - * @param item The item that we want to add to the data source. + * @param item The item that we want to add to the data source. */ addItem(item: Object): Object; /** * Inserts a new item to the data source and notifies the chart. * - * @param item the new item that we want to insert in the data source. - * @param index The index in the data source where the new item will be inserted. + * @param item the new item that we want to insert in the data source. + * @param index The index in the data source where the new item will be inserted. */ insertItem(item: Object, index: number): Object; /** * Deletes an item from the data source and notifies the chart. * - * @param index The index in the data source from where the item will be been removed. + * @param index The index in the data source from where the item will be been removed. */ removeItem(index: number): Object; /** * Updates an item in the data source and notifies the chart. * - * @param index The index of the item in the data source that we want to change. - * @param item The new item object that will be set in the data source. + * @param index The index of the item in the data source that we want to change. + * @param item The new item object that will be set in the data source. */ setItem(index: number, item: Object): Object; /** * Notifies the chart that an item has been set in an associated data source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source that has been changed. - * @param newItem the new item that has been set in the collection. - * @param oldItem the old item that has been overwritten in the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source that has been changed. + * @param newItem the new item that has been set in the collection. + * @param oldItem the old item that has been overwritten in the collection. */ notifySetItem(dataSource: Object, index: number, newItem: Object, oldItem: Object): Object; /** * Notifies the chart that the items have been cleared from an associated data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. + * @param dataSource The data source in which the change happened. */ notifyClearItems(dataSource: Object): Object; /** * Notifies the target axis or series that an item has been inserted at the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source where the new item has been inserted. - * @param newItem the new item that has been set in the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source where the new item has been inserted. + * @param newItem the new item that has been set in the collection. */ notifyInsertItem(dataSource: Object, index: number, newItem: Object): Object; /** * Notifies the target axis or series that an item has been removed from the specified index in its data source. - * It's not necessary to notify more than one target of a change if they share the same items source. + * It's not necessary to notify more than one target of a change if they share the same items source. * - * @param dataSource The data source in which the change happened. - * @param index The index in the items source from where the old item has been removed. - * @param oldItem the old item that has been removed from the collection. + * @param dataSource The data source in which the change happened. + * @param index The index in the items source from where the old item has been removed. + * @param oldItem the old item that has been removed from the collection. */ notifyRemoveItem(dataSource: Object, index: number, oldItem: Object): Object; @@ -73568,6 +76009,7 @@ interface JQuery { /** * The width of the sparkline. It can be set as a number in pixels, string (px) or percentage (%). */ + igSparkline(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -73575,11 +76017,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * The height of the sparkline. It can be set as a number in pixels, string (px) or percentage (%). */ + igSparkline(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -73587,6 +76031,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -73736,6 +76181,7 @@ interface JQuery { /** * Gets the display state of the horizontal axis. */ + igSparkline(optionLiteral: 'option', optionName: "horizontalAxisVisibility"): string; /** @@ -73743,11 +76189,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "horizontalAxisVisibility", optionValue: string): void; /** * Gets the display state of the vertical axis. */ + igSparkline(optionLiteral: 'option', optionName: "verticalAxisVisibility"): string; /** @@ -73755,11 +76203,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "verticalAxisVisibility", optionValue: string): void; /** * Gets the marker visibility of the sparkline. */ + igSparkline(optionLiteral: 'option', optionName: "markerVisibility"): string; /** @@ -73767,11 +76217,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "markerVisibility", optionValue: string): void; /** * Gets the negative marker visibility of the sparkline. */ + igSparkline(optionLiteral: 'option', optionName: "negativeMarkerVisibility"): string; /** @@ -73779,11 +76231,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "negativeMarkerVisibility", optionValue: string): void; /** * Gets the first marker visibility of the sparkline. */ + igSparkline(optionLiteral: 'option', optionName: "firstMarkerVisibility"): string; /** @@ -73791,11 +76245,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "firstMarkerVisibility", optionValue: string): void; /** * Gets the last marker visibility of the sparkline. */ + igSparkline(optionLiteral: 'option', optionName: "lastMarkerVisibility"): string; /** @@ -73803,11 +76259,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "lastMarkerVisibility", optionValue: string): void; /** * Gets the low marker visibility of the sparkline. */ + igSparkline(optionLiteral: 'option', optionName: "lowMarkerVisibility"): string; /** @@ -73815,11 +76273,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "lowMarkerVisibility", optionValue: string): void; /** * Gets the high marker visibility of the sparkline. */ + igSparkline(optionLiteral: 'option', optionName: "highMarkerVisibility"): string; /** @@ -73827,11 +76287,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "highMarkerVisibility", optionValue: string): void; /** * Gets the normal range visibility of the sparkline. */ + igSparkline(optionLiteral: 'option', optionName: "normalRangeVisibility"): string; /** @@ -73839,6 +76301,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "normalRangeVisibility", optionValue: string): void; /** @@ -73964,6 +76427,7 @@ interface JQuery { /** * Gets the type of trendline used by the sparkline. */ + igSparkline(optionLiteral: 'option', optionName: "trendLineType"): string; /** @@ -73971,6 +76435,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "trendLineType", optionValue: string): void; /** @@ -74024,6 +76489,7 @@ interface JQuery { /** * Gets the display type of the sparkline. */ + igSparkline(optionLiteral: 'option', optionName: "displayType"): string; /** @@ -74031,11 +76497,13 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "displayType", optionValue: string): void; /** * Gets the way null values are interpreted. */ + igSparkline(optionLiteral: 'option', optionName: "unknownValuePlotting"): string; /** @@ -74043,6 +76511,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igSparkline(optionLiteral: 'option', optionName: "unknownValuePlotting", optionValue: string): void; /** @@ -74824,6 +77293,7 @@ interface JQuery { * Gets/Sets the width of the container. * */ + igSplitter(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -74832,12 +77302,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igSplitter(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets the height of the container. * */ + igSplitter(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -74846,12 +77318,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igSplitter(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** * Gets the orientation of the splitter. * */ + igSplitter(optionLiteral: 'option', optionName: "orientation"): string; /** @@ -74860,6 +77334,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igSplitter(optionLiteral: 'option', optionName: "orientation", optionValue: string): void; /** @@ -75044,6 +77519,30 @@ interface ActivePaneChangedEvent { } interface ActivePaneChangedEventUIParam { + /** + * Gets a reference to the spreadsheet widget. + */ + owner?: any; + + /** + * Gets the previous active [pane](ig.spreadsheet.SpreadsheetPane). + */ + oldActivePane?: any; + + /** + * Gets the current active [pane](ig.spreadsheet.SpreadsheetPane). + */ + newActivePane?: any; + + /** + * Gets the active cell of the new active pane or null if there is no active pane. + */ + activeCell?: string; + + /** + * Gets the current visible range of the new active pane or null if there is no active pane. + */ + visibleRange?: string; } interface ActiveWorksheetChangedEvent { @@ -75051,6 +77550,30 @@ interface ActiveWorksheetChangedEvent { } interface ActiveWorksheetChangedEventUIParam { + /** + * Gets a reference to the spreadsheet widget. + */ + owner?: any; + + /** + * Gets the previous active [worksheet](ig.excel.Worksheet). + */ + oldActiveWorksheet?: any; + + /** + * Gets the name of the previous active worksheet or null if oldActiveWorksheet is null. + */ + oldActiveWorksheetName?: string; + + /** + * Gets the current active [worksheet](ig.excel.Worksheet). + */ + newActiveWorksheet?: any; + + /** + * Gets the name of the new active worksheet or null if newActiveWorksheet is null. + */ + newActiveWorksheetName?: string; } interface EditRangePasswordNeededEvent { @@ -75058,6 +77581,20 @@ interface EditRangePasswordNeededEvent { } interface EditRangePasswordNeededEventUIParam { + /** + * Gets a reference to the spreadsheet widget. + */ + owner?: any; + + /** + * Get an array of [protected range](ig.excel.WorksheetProtectedRange) objects that should be unlocked. + */ + ranges?: any[]; + + /** + * Get a parameterless function that may be invoked to unlock the associated ranges. + */ + unprotect?: any; } interface HyperlinkExecutingEvent { @@ -75065,6 +77602,15 @@ interface HyperlinkExecutingEvent { } interface HyperlinkExecutingEventUIParam { + /** + * Gets a reference to the spreadsheet widget. + */ + owner?: any; + + /** + * Get the [hyperlink](ig.excel.WorksheetHyperlink) to be executed. + */ + hyperlink?: any; } interface UserPromptDisplayingEvent { @@ -75072,6 +77618,35 @@ interface UserPromptDisplayingEvent { } interface UserPromptDisplayingEventUIParam { + /** + * Gets a reference to the spreadsheet widget. + */ + owner?: any; + + /** + * Get a boolean indicating if the operation that triggered the prompt can be cancelled. + */ + canCancel?: boolean; + + /** + * Get a boolean indicating if a message will be displayed to the end user. + */ + displayMessage?: boolean; + + /** + * Gets the exception for the error, if there was one. + */ + exception?: any; + + /** + * Get or set the message that will be displayed. + */ + message?: string; + + /** + * Get the [action](ig.spreadsheet.SpreadsheetUserPromptTrigger) that caused the prompt to be displayed. + */ + trigger?: string; } interface WorkbookDirtiedEvent { @@ -75079,6 +77654,10 @@ interface WorkbookDirtiedEvent { } interface WorkbookDirtiedEventUIParam { + /** + * Gets a reference to the spreadsheet widget. + */ + owner?: any; } interface IgSpreadsheet { @@ -75153,7 +77732,6 @@ interface IgSpreadsheet { * navigated when Shift + Enter are pressed. * * - * * Valid values: * "down" The cell below should be activated. * "right" The cell to the right should be activated @@ -75304,10 +77882,10 @@ interface IgSpreadsheetMethods { /** * Returns an object used to get the formatting of the activeCell and where modifications are applied to the entire active selection. - * Any changes made to this object will affect all the objects in the selection. So for example, the - * Font.Name may return "Arial" because the active cell has that as its resolved font name even though the other - * cells are using a different font but if you set the Font.Name of this object to "Arial" then all the objects - * affected by the selection will have their Font.Name updated to that value. + * Any changes made to this object will affect all the objects in the selection. So for example, the + * Font.Name may return "Arial" because the active cell has that as its resolved font name even though the other + * cells are using a different font but if you set the Font.Name of this object to "Arial" then all the objects + * affected by the selection will have their Font.Name updated to that value. */ getActiveSelectionCellRangeFormat(): Object; @@ -75364,6 +77942,7 @@ interface JQuery { * The width of the spreadsheet. It can be set as a number in pixels, string (px) or percentage (%). * */ + igSpreadsheet(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -75372,12 +77951,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igSpreadsheet(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * The height of the spreadsheet. It can be set as a number in pixels, string (px) or percentage (%). * */ + igSpreadsheet(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -75386,6 +77967,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igSpreadsheet(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -75498,8 +78080,8 @@ interface JQuery { * Returns an enumeration indicating the direction of the cell adjacent to the activeCell that should be activated when the enter key is pressed.This property is only used if the isEnterKeyNavigationEnabled is set to true. Also, the reverse direction is * navigated when Shift + Enter are pressed. * - * */ + igSpreadsheet(optionLiteral: 'option', optionName: "enterKeyNavigationDirection"): string; /** @@ -75507,9 +78089,9 @@ interface JQuery { * navigated when Shift + Enter are pressed. * * - * * @optionValue New value to be set. */ + igSpreadsheet(optionLiteral: 'option', optionName: "enterKeyNavigationDirection", optionValue: string): void; /** @@ -75594,6 +78176,7 @@ interface JQuery { * Returns a value indicating how the selection is updated when interacting with the cells via the mouse or keyboard. * */ + igSpreadsheet(optionLiteral: 'option', optionName: "selectionMode"): string; /** @@ -75602,6 +78185,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igSpreadsheet(optionLiteral: 'option', optionName: "selectionMode", optionValue: string): void; /** @@ -76368,6 +78952,7 @@ interface JQuery { /** * * */ + igTileManager(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -76375,12 +78960,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets the height of the container. * */ + igTileManager(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -76389,12 +78976,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** * Gets/Sets the width of each column in the container. * */ + igTileManager(optionLiteral: 'option', optionName: "columnWidth"): string|number; /** @@ -76403,12 +78992,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "columnWidth", optionValue: string|number): void; /** * Gets/Sets the height of each column in the container. * */ + igTileManager(optionLiteral: 'option', optionName: "columnHeight"): string|number; /** @@ -76417,12 +79008,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "columnHeight", optionValue: string|number): void; /** * Gets/Sets the columns count in the container. * */ + igTileManager(optionLiteral: 'option', optionName: "cols"): number; /** @@ -76431,12 +79024,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "cols", optionValue: number): void; /** * Gets/Sets the rows count in the container. * */ + igTileManager(optionLiteral: 'option', optionName: "rows"): number; /** @@ -76445,6 +79040,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "rows", optionValue: number): void; /** @@ -76497,6 +79093,7 @@ interface JQuery { * Gets/Sets the tiles configurations. Every tile is described by rowSpan, colSpan, rowIndex and colIndex. * */ + igTileManager(optionLiteral: 'option', optionName: "items"): Object; /** @@ -76505,6 +79102,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "items", optionValue: Object): void; /** @@ -76525,6 +79123,7 @@ interface JQuery { * Gets/Sets the content of the tiles in minimized state. * */ + igTileManager(optionLiteral: 'option', optionName: "minimizedState"): string; /** @@ -76533,12 +79132,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "minimizedState", optionValue: string): void; /** * Gets/Sets the content of the tiles in maximized state. * */ + igTileManager(optionLiteral: 'option', optionName: "maximizedState"): string; /** @@ -76547,12 +79148,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "maximizedState", optionValue: string): void; /** * Gets/Sets the index of which items configuration will be used for positioning and sizing of the maximized tile. * */ + igTileManager(optionLiteral: 'option', optionName: "maximizedTileIndex"): number; /** @@ -76561,12 +79164,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "maximizedTileIndex", optionValue: number): void; /** * Gets/Sets how many columns to be displayed in the right panel when the tiles are minimized. * */ + igTileManager(optionLiteral: 'option', optionName: "rightPanelCols"): number; /** @@ -76575,12 +79180,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "rightPanelCols", optionValue: number): void; /** * Gets/Sets the width of the minimized tiles in the right panel. * */ + igTileManager(optionLiteral: 'option', optionName: "rightPanelTilesWidth"): number; /** @@ -76589,12 +79196,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "rightPanelTilesWidth", optionValue: number): void; /** * Gets/Sets the height of the minimized tiles in the right panel. * */ + igTileManager(optionLiteral: 'option', optionName: "rightPanelTilesHeight"): number; /** @@ -76603,6 +79212,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "rightPanelTilesHeight", optionValue: number): void; /** @@ -76679,6 +79289,7 @@ interface JQuery { * Property in the response which specifies where the data records array will be held (if the response is wrapped). See [$.ig.DataSource responseDataKey](ig.datasource#options:settings.responseDataKey). * */ + igTileManager(optionLiteral: 'option', optionName: "responseDataKey"): string; /** @@ -76687,12 +79298,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "responseDataKey", optionValue: string): void; /** * Explicitly set data source type (such as "json"). Please refer to the documentation of [$.ig.DataSource type](ig.datasource#options:settings.type) and its type property. * */ + igTileManager(optionLiteral: 'option', optionName: "responseDataType"): string; /** @@ -76701,6 +79314,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTileManager(optionLiteral: 'option', optionName: "responseDataType", optionValue: string): void; /** @@ -76962,64 +79576,55 @@ interface ToolbarButtonClickEvent { (event: Event, ui: ToolbarButtonClickEventUIParam): void; } -interface ToolbarButtonClickEventUIParam { -} +interface ToolbarButtonClickEventUIParam {} interface ToolbarComboOpeningEvent { (event: Event, ui: ToolbarComboOpeningEventUIParam): void; } -interface ToolbarComboOpeningEventUIParam { -} +interface ToolbarComboOpeningEventUIParam {} interface ToolbarComboSelectedEvent { (event: Event, ui: ToolbarComboSelectedEventUIParam): void; } -interface ToolbarComboSelectedEventUIParam { -} +interface ToolbarComboSelectedEventUIParam {} interface ToolbarCustomItemClickEvent { (event: Event, ui: ToolbarCustomItemClickEventUIParam): void; } -interface ToolbarCustomItemClickEventUIParam { -} +interface ToolbarCustomItemClickEventUIParam {} interface ItemRemovedEvent { (event: Event, ui: ItemRemovedEventUIParam): void; } -interface ItemRemovedEventUIParam { -} +interface ItemRemovedEventUIParam {} interface ItemAddedEvent { (event: Event, ui: ItemAddedEventUIParam): void; } -interface ItemAddedEventUIParam { -} +interface ItemAddedEventUIParam {} interface ItemDisableEvent { (event: Event, ui: ItemDisableEventUIParam): void; } -interface ItemDisableEventUIParam { -} +interface ItemDisableEventUIParam {} interface ItemEnabledEvent { (event: Event, ui: ItemEnabledEventUIParam): void; } -interface ItemEnabledEventUIParam { -} +interface ItemEnabledEventUIParam {} interface WindowResizedEvent { (event: Event, ui: WindowResizedEventUIParam): void; } -interface WindowResizedEventUIParam { -} +interface WindowResizedEventUIParam {} interface IgToolbar { /** @@ -77928,7 +80533,6 @@ interface IgTreeDragAndDropSettings { * Gets the containment for the drag helper. The area inside of which thehelper is contained would be scrollable while dragging. * * - * * Valid values: * "boolean" If set to false, then the draggable elements will be contained in their window. * "selector" The draggable element will be contained to the bounding box of the first element found by the selector. If no element is found, no containment will be set. @@ -78003,6 +80607,30 @@ interface NodeCheckstateChangingEvent { } interface NodeCheckstateChangingEventUIParam { + /** + * Gets a reference to the tree. + */ + owner?: any; + + /** + * Gets a reference to the node object the checkbox of which is being interacted with. + */ + node?: any; + + /** + * Gets the current state of the checkbox. + */ + currentState?: string; + + /** + * Gets the new state that is going to be applied to the checkbox. + */ + newState?: string; + + /** + * Gets the collection of all checked nodes before the new state is applied. + */ + currentCheckedNodes?: any[]; } interface NodeCheckstateChangedEvent { @@ -78010,6 +80638,30 @@ interface NodeCheckstateChangedEvent { } interface NodeCheckstateChangedEventUIParam { + /** + * Gets a reference to the tree. + */ + owner?: any; + + /** + * Gets a reference to the node object the checkbox of which is being interacted with. + */ + node?: any; + + /** + * Gets the new state that is already applied to the checkbox. + */ + newState?: string; + + /** + * Gets the collection of all checked nodes. + */ + newCheckedNodes?: any[]; + + /** + * Gets the collection of all partially checked nodes. + */ + newPartiallyCheckedNodes?: any[]; } interface NodePopulatingEvent { @@ -78017,6 +80669,25 @@ interface NodePopulatingEvent { } interface NodePopulatingEventUIParam { + /** + * Gets the data-path attribute of the node being populated. + */ + path?: string; + + /** + * Gets a reference to the jQuery element of the node whose children are being populated. + */ + element?: string; + + /** + * Gets the node data. + */ + data?: any; + + /** + * Gets a reference to the bindings object for the level at which the populating node is located. + */ + binding?: any; } interface NodePopulatedEvent { @@ -78024,6 +80695,25 @@ interface NodePopulatedEvent { } interface NodePopulatedEventUIParam { + /** + * Gets the data-path atrribute of the populated node. + */ + path?: string; + + /** + * Gets a reference to the jQuery element of the node whose children are populated. + */ + element?: string; + + /** + * Gets the node data. + */ + data?: any; + + /** + * Gets a reference to the bindings object for the level at which the populated node is located. + */ + binding?: any; } interface NodeCollapsingEvent { @@ -78031,6 +80721,15 @@ interface NodeCollapsingEvent { } interface NodeCollapsingEventUIParam { + /** + * Gets a reference to the tree. + */ + owner?: any; + + /** + * Gets a reference to the node object about to collapse. + */ + node?: any; } interface NodeCollapsedEvent { @@ -78038,6 +80737,15 @@ interface NodeCollapsedEvent { } interface NodeCollapsedEventUIParam { + /** + * Gets a reference to the tree. + */ + owner?: any; + + /** + * Gets a reference to the collapsed node object. + */ + node?: any; } interface NodeExpandingEvent { @@ -78045,6 +80753,15 @@ interface NodeExpandingEvent { } interface NodeExpandingEventUIParam { + /** + * Gets a reference to the tree. + */ + owner?: any; + + /** + * Gets a reference to the node object about to expand. + */ + node?: any; } interface NodeExpandedEvent { @@ -78052,6 +80769,15 @@ interface NodeExpandedEvent { } interface NodeExpandedEventUIParam { + /** + * Gets a reference to the tree. + */ + owner?: any; + + /** + * Gets a reference to the expanded node object. + */ + node?: any; } interface NodeClickEvent { @@ -78059,6 +80785,15 @@ interface NodeClickEvent { } interface NodeClickEventUIParam { + /** + * Gets a reference to the tree. + */ + owner?: any; + + /** + * Gets a reference to the node object being clicked. + */ + node?: any; } interface NodeDoubleClickEvent { @@ -78066,6 +80801,25 @@ interface NodeDoubleClickEvent { } interface NodeDoubleClickEventUIParam { + /** + * Gets the data-path attribute of the double clicked node. + */ + path?: string; + + /** + * Gets a reference to the jQuery element of the double clicked node. + */ + element?: string; + + /** + * Gets the node data. + */ + data?: any; + + /** + * Gets a reference to the bindings object for the level at which the double clicked node is located. + */ + binding?: any; } interface NodeDroppingEvent { @@ -78073,6 +80827,45 @@ interface NodeDroppingEvent { } interface NodeDroppingEventUIParam { + /** + * Gets the target node data-path attribute. + */ + path?: string; + + /** + * Gets a reference to the jQuery element of the node. + */ + element?: string; + + /** + * Gets a reference to the target node data. + */ + data?: any; + + /** + * Gets a reference to the binding object for the level at which the target node is located. + */ + binding?: any; + + /** + * Gets a reference to the helper. + */ + helper?: string; + + /** + * Gets a reference to the offset. + */ + offset?: any; + + /** + * Gets a reference to the current position of the draggable element. + */ + position?: any; + + /** + * Gets a reference to the draggable element (the node). + */ + draggable?: string; } interface NodeDroppedEvent { @@ -78080,6 +80873,45 @@ interface NodeDroppedEvent { } interface NodeDroppedEventUIParam { + /** + * Gets the target node data-path attribute. + */ + path?: string; + + /** + * Gets a reference to the jQuery element of the node. + */ + element?: string; + + /** + * Gets a reference to the target node data. + */ + data?: any; + + /** + * Gets a reference to the binding object for the level at which the target node is located. + */ + binding?: any; + + /** + * Gets a reference to the helper. + */ + helper?: string; + + /** + * Gets a reference to the offset. + */ + offset?: any; + + /** + * Gets a reference to the current position of the draggable element. + */ + position?: any; + + /** + * Gets a reference to the draggable element (the node). + */ + draggable?: string; } interface IgTree { @@ -78420,59 +81252,59 @@ interface IgTreeMethods { /** * Toggles the checkstate of a node if checkboxMode is not set to off, otherwise does nothing. * - * @param node Specifies the node element the checkbox of which would be toggled. - * @param event Indicates the browser event which triggered this action, if this is not an API call. + * @param node Specifies the node element the checkbox of which would be toggled. + * @param event Indicates the browser event which triggered this action, if this is not an API call. */ toggleCheckstate(node: Object, event?: Object): void; /** * Toggles the collapse/expand state for the specified node. * - * @param node Specifies the node element the checkbox of which would be toggled. - * @param event Indicates the browser event which triggered this action, if this is not an API call. + * @param node Specifies the node element the checkbox of which would be toggled. + * @param event Indicates the browser event which triggered this action, if this is not an API call. */ toggle(node: Object, event?: Object): void; /** * Expands the tree down to the specified node and selects the node if specified. * - * @param node Specifies the node element down to which the tree would be expanded. - * @param toSelect Specifies the whether to select the node after expanding to it. + * @param node Specifies the node element down to which the tree would be expanded. + * @param toSelect Specifies the whether to select the node after expanding to it. */ expandToNode(node: Object, toSelect?: boolean): void; /** * Expands the specified node. * - * @param node Specifies the node element to expand. + * @param node Specifies the node element to expand. */ expand(node: Object): void; /** * Collapses the specified node. * - * @param node Specifies the node element to collapse. + * @param node Specifies the node element to collapse. */ collapse(node: Object): void; /** * Retrieves the parent node element of the specified node element. * - * @param node Specifies the jQuery selected node element to collapse. + * @param node Specifies the jQuery selected node element to collapse. */ parentNode(node: Object): Object; /** * Retrieves the jQuery element of the node with the specified path. * - * @param nodePath Specifies the path to the required node. + * @param nodePath Specifies the path to the required node. */ nodeByPath(nodePath: string): Object; /** * Retrieves the jQuery element of the node with the specified value. * - * @param value Specifies the value of the required node. + * @param value Specifies the value of the required node. */ nodesByValue(value: string): Object; @@ -78494,15 +81326,15 @@ interface IgTreeMethods { /** * Selects a node. * - * @param node Specifies the node element to be selected. - * @param event Indicates the browser event which triggered this action, if this is not an API call. + * @param node Specifies the node element to be selected. + * @param event Indicates the browser event which triggered this action, if this is not an API call. */ select(node: Object, event?: Object): void; /** * Deselects the specified node. * - * @param node Specifies the node element to be deselected. + * @param node Specifies the node element to be deselected. */ deselect(node: Object): void; @@ -78519,104 +81351,104 @@ interface IgTreeMethods { /** * Retrieves all node objects with the specified text (case sensitive). * - * @param text The text to search for. - * @param parent The node element to start the search from. If not specified then search would start from the root of the tree. + * @param text The text to search for. + * @param parent The node element to start the search from. If not specified then search would start from the root of the tree. */ findNodesByText(text: string, parent?: Object): any[]; /** * Retrieves all node objects for the immediate children of the specified parent with the specified text (case sensitive). * - * @param text The text to search for. - * @param parent The node element the children of which would be searched. + * @param text The text to search for. + * @param parent The node element the children of which would be searched. */ findImmediateNodesByText(text: string, parent?: Object): any[]; /** * Retrieves the n-th jQuery node element child of the specified parent. * - * @param index Specifies the index the node at which to be retrieved. - * @param parent The parent node element to start the search from. + * @param index Specifies the index the node at which to be retrieved. + * @param parent The parent node element to start the search from. */ nodeByIndex(index: number, parent?: Object): Object; /** * Retrieves a node object for the specified node element. * - * @param element Specifies the node element. + * @param element Specifies the node element. */ nodeFromElement(element: Object): Object; /** * Retrieves a node object collection of the immediate children of the provided node element. * - * @param parent Specifies the node element. + * @param parent Specifies the node element. */ children(parent: Object): any[]; /** * Retrieves a node object collection of the immediate children of the node with the provided path. * - * @param path Specifies the path of the node the children of which are to be retrieved. + * @param path Specifies the path of the node the children of which are to be retrieved. */ childrenByPath(path: string): any[]; /** * Returns true if the provided node element is selected and false otherwise. * - * @param node Specifies the node element. + * @param node Specifies the node element. */ isSelected(node: Object): boolean; /** * Returns true if the provided node element is expanded and false otherwise. * - * @param node Specifies the node element. + * @param node Specifies the node element. */ isExpanded(node: Object): boolean; /** * Returns true if the provided node element has its checkbox checkstate checked and false otherwise. * - * @param node Specifies the node element. + * @param node Specifies the node element. */ isChecked(node: Object): boolean; /** * Returns the specified node checkstate. * - * @param node Specifies the node element. + * @param node Specifies the node element. */ checkState(node: Object): string; /** * Adds a new array of nodes to the tree. New nodes are appended to the root or to a specified parent node, at a specified index. * - * @param node Specifies the data used to create the new nodeс. - * @param parent Specifies the element of the parent node the nodes are to be appended to. - * @param nodeIndex Specifies the index at which the nodes to be inserted. + * @param node Specifies the data used to create the new nodeс. + * @param parent Specifies the element of the parent node the nodes are to be appended to. + * @param nodeIndex Specifies the index at which the nodes to be inserted. */ addNode(node: Object, parent?: Object, nodeIndex?: number): void; /** * Removes the node with with the specified path and all of its children. * - * @param path Specifies the path of the node to be removed. + * @param path Specifies the path of the node to be removed. */ removeAt(path: string): void; /** * Removing all the nodes with the specified value. * - * @param value Specifies the value of the nodes to be removed. + * @param value Specifies the value of the nodes to be removed. */ removeNodesByValue(value: string): void; /** * Performs a UI update on the provided node element with the provided data. * - * @param element Specifies the node to be updated. - * @param data Specifies the new data item the node would update according to. + * @param element Specifies the node to be updated. + * @param data Specifies the new data item the node would update according to. */ applyChangesToNode(element: Object, data: Object): void; @@ -78628,7 +81460,7 @@ interface IgTreeMethods { /** * Returns the data for the node with specified path. * - * @param path Specifies the node path for which the data is returned. + * @param path Specifies the node path for which the data is returned. */ nodeDataFor(path: string): Object; @@ -78680,6 +81512,7 @@ interface JQuery { * Gets/Sets the width of the control container. * */ + igTree(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -78688,12 +81521,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTree(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets how the height of of the control container. * */ + igTree(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -78702,12 +81537,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTree(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** * Gets the behavior and type of the checkboxes rendered for the tree nodes. Can be set only at initialization. * */ + igTree(optionLiteral: 'option', optionName: "checkboxMode"): string; /** @@ -78716,6 +81553,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTree(optionLiteral: 'option', optionName: "checkboxMode", optionValue: string): void; /** @@ -78750,6 +81588,7 @@ interface JQuery { * Gets/Sets the image url applied to all parent nodes. * */ + igTree(optionLiteral: 'option', optionName: "parentNodeImageUrl"): string; /** @@ -78758,12 +81597,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTree(optionLiteral: 'option', optionName: "parentNodeImageUrl", optionValue: string): void; /** * Gets/Sets the CSS class applied to all parent nodes. * */ + igTree(optionLiteral: 'option', optionName: "parentNodeImageClass"): string; /** @@ -78772,12 +81613,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTree(optionLiteral: 'option', optionName: "parentNodeImageClass", optionValue: string): void; /** * Gets/Sets the tooltip applied to all parent node images. * */ + igTree(optionLiteral: 'option', optionName: "parentNodeImageTooltip"): string; /** @@ -78786,12 +81629,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTree(optionLiteral: 'option', optionName: "parentNodeImageTooltip", optionValue: string): void; /** * Gets/Sets the image url applied to all leaf nodes. * */ + igTree(optionLiteral: 'option', optionName: "leafNodeImageUrl"): string; /** @@ -78800,12 +81645,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTree(optionLiteral: 'option', optionName: "leafNodeImageUrl", optionValue: string): void; /** * Gets/Sets the CSS class applied to all leaf nodes. * */ + igTree(optionLiteral: 'option', optionName: "leafNodeImageClass"): string; /** @@ -78814,12 +81661,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTree(optionLiteral: 'option', optionName: "leafNodeImageClass", optionValue: string): void; /** * Gets/Sets the tooltip applied to all leaf node images. * */ + igTree(optionLiteral: 'option', optionName: "leafNodeImageTooltip"): string; /** @@ -78828,6 +81677,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTree(optionLiteral: 'option', optionName: "leafNodeImageTooltip", optionValue: string): void; /** @@ -78878,6 +81728,7 @@ interface JQuery { * Gets/Sets a remote URL accepted by [$.ig.DataSource](ig.datasource) in order to request data from it. * */ + igTree(optionLiteral: 'option', optionName: "dataSourceUrl"): string; /** @@ -78886,12 +81737,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTree(optionLiteral: 'option', optionName: "dataSourceUrl", optionValue: string): void; /** * Gets the type of the data source. Delegates the value to [$.ig.DataSource.settings.type](ig.datasource#options:settings.type). Explicitly set data source type (such as "json"). Please refer to the documentation of $.ig.DataSource.settings.type. * */ + igTree(optionLiteral: 'option', optionName: "dataSourceType"): string; /** @@ -78900,12 +81753,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTree(optionLiteral: 'option', optionName: "dataSourceType", optionValue: string): void; /** * Gets the JSON key at which a remote data source will write the data. Delegates the value to [$.ig.DataSource.settings.responseDataKey](ig.datasource#options:settings.responseDataKey). Please refer to the documentation of $.ig.DataSource.settings.responseDataKey. * */ + igTree(optionLiteral: 'option', optionName: "responseDataKey"): string; /** @@ -78914,12 +81769,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTree(optionLiteral: 'option', optionName: "responseDataKey", optionValue: string): void; /** * Gets the data type of the remote data source response. Delegates the value to [$.ig.DataSource.settings.responseDataType](ig.datasource#options:settings.responseDataType). Please refer to the documentation of $.ig.DataSource.settings.responseDataType. * */ + igTree(optionLiteral: 'option', optionName: "responseDataType"): string; /** @@ -78928,6 +81785,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTree(optionLiteral: 'option', optionName: "responseDataType", optionValue: string): void; /** @@ -79434,9 +82292,9 @@ interface IgTreeGridColumnFixingMethods { /** * Unfixes a column by specified column identifier - column key or column index. * - * @param colIdentifier An identifier of the column to be unfixed - column index or column key. - * @param target Key of the column where the unfixed column should move to. - * @param after Specifies where the unfixed column should be rendered after or before the target column. This parameter is disregarded if there is no target column specified. + * @param colIdentifier An identifier of the column to be unfixed - column index or column key. + * @param target Key of the column where the unfixed column should move to. + * @param after Specifies where the unfixed column should be rendered after or before the target column. This parameter is disregarded if there is no target column specified. */ unfixColumn(colIdentifier: Object, target?: string, after?: boolean): Object; @@ -79448,38 +82306,38 @@ interface IgTreeGridColumnFixingMethods { /** * If the 'check' argument is set to true, checks whether the heights of fixed and unfixed tables are equal, if not sync them. Similar check is made for heights of table rows. If the clearRowsHeights argument is set to true, clears rows heights before syncing them. * - * @param check If set to true, checks whether the heights of fixed and unfixed tables are equal, if not sync them. If this argument is set to false sync is performed regardless of the current heights. - * @param clearRowsHeights Clears row heigths for all visible rows. + * @param check If set to true, checks whether the heights of fixed and unfixed tables are equal, if not sync them. If this argument is set to false sync is performed regardless of the current heights. + * @param clearRowsHeights Clears row heigths for all visible rows. */ syncHeights(check?: boolean, clearRowsHeights?: boolean): void; /** * Returns whether the column with the specified key is a column group header, when the [multi-column headers](http://www.igniteui.com/help/iggrid-multicolumnheaders-landingpage) feature is used. * - * @param colKey The key of the column to perform the check for. + * @param colKey The key of the column to perform the check for. */ isGroupHeader(colKey: string): boolean; /** * Checks whether column fixing is allowed for the specified columns. It should not be allowed if there is only one visible column in the unfixed area. * - * @param columns Array of columns and/or column identifiers - could be column indexes, column keys, column object or mixed. + * @param columns Array of columns and/or column identifiers - could be column indexes, column keys, column object or mixed. */ checkFixingAllowed(columns: any[]): boolean; /** * Checks whether unfixing is allowed for the specified columns. It should not be allowed if there is only one visible column in the fixed area. * - * @param columns Array of columns and/or column identifiers - could be column indexes, column keys, column object or mixed. + * @param columns Array of columns and/or column identifiers - could be column indexes, column keys, column object or mixed. */ checkUnfixingAllowed(columns: any[]): boolean; /** * Fixes a column by specified column identifier - column index or column key. * - * @param colIdentifier An identifier of the column to be fixed - column index or column key. - * @param target Key of the column where the fixed column should move to. - * @param after Specifies where the fixed column should be moved after or before the target column. This parameter is disregarded if there is no target column specified. + * @param colIdentifier An identifier of the column to be fixed - column index or column key. + * @param target Key of the column where the fixed column should move to. + * @param after Specifies where the fixed column should be moved after or before the target column. This parameter is disregarded if there is no target column specified. */ fixColumn(colIdentifier: Object, target?: string, after?: boolean): Object; @@ -79511,17 +82369,17 @@ interface IgTreeGridColumnFixingMethods { /** * Syncs rows heights between two collections of rows. * - * @param $trs An array of rows of the first(fixed/unfixed) container. - * @param $anotherRows An array of rows of the second(fixed/unfixed) container. + * @param $trs An array of rows of the first(fixed/unfixed) container. + * @param $anotherRows An array of rows of the second(fixed/unfixed) container. */ syncRowsHeights($trs: any[], $anotherRows: any[]): void; /** * Calculates widths of the fixed columns. * - * @param fCols Array of grid columns. If not set then the total width of the fixed columns are returned. - * @param excludeNonDataColumns If set to true do not calculate the width of non-data fixed columns (like the row selector row numbering column). - * @param includeHidden If set to true calculates width of the hidden fixed columns (their initial width before hiding). + * @param fCols Array of grid columns. If not set then the total width of the fixed columns are returned. + * @param excludeNonDataColumns If set to true do not calculate the width of non-data fixed columns (like the row selector row numbering column). + * @param includeHidden If set to true calculates width of the hidden fixed columns (their initial width before hiding). */ getWidthOfFixedColumns(fCols?: any[], excludeNonDataColumns?: boolean, includeHidden?: boolean): number; } @@ -79620,6 +82478,7 @@ interface JQuery { * Configures which side the fixed columns of the grid will be rendered on. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#direction) out of more information. * */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "fixingDirection"): string; /** @@ -79628,6 +82487,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "fixingDirection", optionValue: string): void; /** @@ -79676,6 +82536,7 @@ interface JQuery { * Minimal visible area in pixels for the unfixed columns. If the end user tries to fix a column(or columns), which causes the width of the fixed columns to grow such that the width of visible area of unfixed columns is less than this option then fixing will be canceled. Check [this topic](http://www.igniteui.com/help/iggrid-columnfixing-configuring#non-fixable-min-width) out for more information. * */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "minimalVisibleAreaWidth"): string|number; /** @@ -79684,6 +82545,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridColumnFixing(optionLiteral: 'option', optionName: "minimalVisibleAreaWidth", optionValue: string|number): void; /** @@ -80062,11 +82924,11 @@ interface IgTreeGridColumnMovingMethods { * Moves a visible column at a specified place, in front or behind a target column or at a target index * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param column An identifier of the column to be moved. It can be a key, a Multi-Column Header identificator, or an index in a number format. The latter is not supported when the grid contains multi-column headers. - * @param target An identifier of a column where the moved column should move to or an index at which the moved column should be moved to. In the case of a column identifier the column will be moved after it by default. - * @param after Specifies whether the column moved should be moved after or before the target column. - * @param inDom Specifies whether the column moving will be enacted through DOM manipulation or through rerendering of the grid. - * @param callback Specifies a custom function to be called when the column is moved. + * @param column An identifier of the column to be moved. It can be a key, a Multi-Column Header identificator, or an index in a number format. The latter is not supported when the grid contains multi-column headers. + * @param target An identifier of a column where the moved column should move to or an index at which the moved column should be moved to. In the case of a column identifier the column will be moved after it by default. + * @param after Specifies whether the column moved should be moved after or before the target column. + * @param inDom Specifies whether the column moving will be enacted through DOM manipulation or through rerendering of the grid. + * @param callback Specifies a custom function to be called when the column is moved. */ moveColumn(column: Object, target: Object, after?: boolean, inDom?: boolean, callback?: Function): void; } @@ -80096,6 +82958,7 @@ interface JQuery { * Specify the drag-and-drop mode for the feature * */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "mode"): string; /** @@ -80104,12 +82967,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "mode", optionValue: string): void; /** * Specify the way columns will be rearranged * */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "moveType"): string; /** @@ -80118,6 +82983,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridColumnMoving(optionLiteral: 'option', optionName: "moveType", optionValue: string): void; /** @@ -81139,15 +84005,15 @@ interface IgTreeGridFilteringMethods { /** * Toggle filter row when mode is simple or [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is true. Otherwise show/hide advanced dialog. * - * @param event Column key + * @param event Column key */ toggleFilterRowByFeatureChooser(event: string): void; /** * Applies filtering programmatically and updates the UI by default. * - * @param expressions An array of filtering expressions, each one having the format {fieldName: , expr: , cond: , logic: } where fieldName is the key of the column, expr is the actual expression string with which we would like to filter, logic is 'AND' or 'OR', and cond is one of the following strings: "equals", "doesNotEqual", "contains", "doesNotContain", "greaterThan", "lessThan", "greaterThanOrEqualTo", "lessThanOrEqualTo", "true", "false", "null", "notNull", "empty", "notEmpty", "startsWith", "endsWith", "today", "yesterday", "on", "notOn", "thisMonth", "lastMonth", "nextMonth", "before", "after", "thisYear", "lastYear", "nextYear". The difference between the empty and null filtering conditions is that empty includes null, NaN, and undefined, as well as the empty string. - * @param updateUI specifies whether the filter row should be also updated once the grid is filtered + * @param expressions An array of filtering expressions, each one having the format {fieldName: , expr: , cond: , logic: } where fieldName is the key of the column, expr is the actual expression string with which we would like to filter, logic is 'AND' or 'OR', and cond is one of the following strings: "equals", "doesNotEqual", "contains", "doesNotContain", "greaterThan", "lessThan", "greaterThanOrEqualTo", "lessThanOrEqualTo", "true", "false", "null", "notNull", "empty", "notEmpty", "startsWith", "endsWith", "today", "yesterday", "on", "notOn", "thisMonth", "lastMonth", "nextMonth", "before", "after", "thisYear", "lastYear", "nextYear". The difference between the empty and null filtering conditions is that empty includes null, NaN, and undefined, as well as the empty string. + * @param updateUI specifies whether the filter row should be also updated once the grid is filtered * @param addedFromAdvanced */ filter(expressions: any[], updateUI?: boolean, addedFromAdvanced?: boolean): void; @@ -81155,7 +84021,7 @@ interface IgTreeGridFilteringMethods { /** * Check whether filterCondition requires or not filtering expression - e.g. if filterCondition is "lastMonth", "thisMonth", "null", "notNull", "true", "false", etc. then filtering expression is NOT required * - * @param filterCondition filtering condition - e.g. "true", "false", "yesterday", "empty", "null", etc. + * @param filterCondition filtering condition - e.g. "true", "false", "yesterday", "empty", "null", etc. */ requiresFilteringExpression(filterCondition: string): boolean; } @@ -81332,6 +84198,7 @@ interface JQuery { * Type of animations for the column filter dropdowns. * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownAnimations"): string; /** @@ -81340,6 +84207,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownAnimations", optionValue: string): void; /** @@ -81360,6 +84228,7 @@ interface JQuery { * Width of the column filter dropdowns. * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownWidth"): string|number; /** @@ -81368,6 +84237,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownWidth", optionValue: string|number): void; /** @@ -81406,6 +84276,7 @@ interface JQuery { * Enable/disable filter icons visibility. * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownItemIcons"): boolean; /** @@ -81414,6 +84285,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDropDownItemIcons", optionValue: boolean): void; /** @@ -81434,6 +84306,7 @@ interface JQuery { * Type of filtering. Delegates all filtering functionality to the [$.ig.DataSource](ig.datasource). * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "type"): string; /** @@ -81442,6 +84315,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "type", optionValue: string): void; /** @@ -81462,6 +84336,7 @@ interface JQuery { * Default is 'simple' for non-virtualized grids, and 'advanced' when [virtualization](ui.iggrid#options:virtualization) is enabled. * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "mode"): string; /** @@ -81470,6 +84345,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "mode", optionValue: string): void; /** @@ -81490,6 +84366,7 @@ interface JQuery { * Location of the advanced filtering button when [advancedModeEditorsVisible](ui.iggridfiltering#options:advancedModeEditorsVisible) is false (i.e. when the button is rendered in the header). * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "advancedModeHeaderButtonLocation"): string; /** @@ -81498,12 +84375,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "advancedModeHeaderButtonLocation", optionValue: string): void; /** * Default filter dialog width (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogWidth"): string|number; /** @@ -81512,12 +84391,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogWidth", optionValue: string|number): void; /** * Default filter dialog height (used for Advanced filtering [mode](ui.iggridfiltering#options:mode)). * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogHeight"): string|number; /** @@ -81526,12 +84407,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogHeight", optionValue: string|number): void; /** * Width of the filtering condition dropdowns in the advanced filter dialog. * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterDropDownDefaultWidth"): string|number; /** @@ -81540,12 +84423,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogFilterDropDownDefaultWidth", optionValue: string|number): void; /** * Width of the filtering expression input boxes in the advanced filter dialog. * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogExprInputDefaultWidth"): string|number; /** @@ -81554,12 +84439,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogExprInputDefaultWidth", optionValue: string|number): void; /** * Width of the column chooser dropdowns in the advanced filter dialog. * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogColumnDropDownDefaultWidth"): string|number; /** @@ -81568,6 +84455,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogColumnDropDownDefaultWidth", optionValue: string|number): void; /** @@ -81588,6 +84476,7 @@ interface JQuery { * The filtering button for filter dropdowns can be rendered either on the left of the filter editor, or on the right. * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterButtonLocation"): string; /** @@ -81596,6 +84485,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterButtonLocation", optionValue: string): void; /** @@ -81708,6 +84598,7 @@ interface JQuery { * Add button width - in the advanced filter dialog. * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddButtonWidth"): string|number; /** @@ -81716,12 +84607,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogAddButtonWidth", optionValue: string|number): void; /** * Width of the Ok and Cancel buttons in the advanced filtering dialogs. * */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogOkCancelButtonWidth"): string|number; /** @@ -81730,6 +84623,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridFiltering(optionLiteral: 'option', optionName: "filterDialogOkCancelButtonWidth", optionValue: string|number): void; /** @@ -82306,9 +85200,9 @@ interface IgTreeGridHidingMethods { * Shows a hidden column. If the column is not hidden the method does nothing. * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param column An identifier for the column. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. - * @param isMultiColumnHeader If it is true then the column is of type multicolumnheader. An identifier for the column should be of type string. - * @param callback Specifies a custom function to be called when the column(s) is shown(optional) + * @param column An identifier for the column. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. + * @param isMultiColumnHeader If it is true then the column is of type multicolumnheader. An identifier for the column should be of type string. + * @param callback Specifies a custom function to be called when the column(s) is shown(optional) */ showColumn(column: Object, isMultiColumnHeader?: boolean, callback?: Function): void; @@ -82316,9 +85210,9 @@ interface IgTreeGridHidingMethods { * Hides a visible column. If the column is hidden the method does nothing. * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param column An identifier for the column. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. - * @param isMultiColumnHeader If it is true then the column is of type multicolumnheader. An identifier for the column should be of type string. - * @param callback Specifies a custom function to be called when the column is hidden(optional) + * @param column An identifier for the column. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. + * @param isMultiColumnHeader If it is true then the column is of type multicolumnheader. An identifier for the column should be of type string. + * @param callback Specifies a custom function to be called when the column is hidden(optional) */ hideColumn(column: Object, isMultiColumnHeader?: boolean, callback?: Function): void; @@ -82326,8 +85220,8 @@ interface IgTreeGridHidingMethods { * Hides visible columns specified by the array. If the column is hidden the method does nothing. * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param columns An array of identifiers for the columns. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. - * @param callback Specifies a custom function to be called when all columns are hidden(optional) + * @param columns An array of identifiers for the columns. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. + * @param callback Specifies a custom function to be called when all columns are hidden(optional) */ hideMultiColumns(columns: any[], callback?: Function): void; @@ -82335,8 +85229,8 @@ interface IgTreeGridHidingMethods { * Show visible columns specified by the array. If the column is shown the method does nothing. * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param columns An array of identifiers for the columns. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. - * @param callback Specifies a custom function to be called when all columns are shown(optional) + * @param columns An array of identifiers for the columns. If a number is provided it will be used as a column index else if a strings is provided it will be used as a column key. + * @param callback Specifies a custom function to be called when all columns are shown(optional) */ showMultiColumns(columns: any[], callback?: Function): void; @@ -82930,7 +85824,7 @@ interface IgTreeGrid { * Specifies the foreign key value in the data source to treat as the root level once the grid is data bound. Defaults to -1 (which includes the entire data source) * */ - foreignKeyRootValue?: number; + foreignKeyRootValue?: number|string; /** * Specify whether to render non-data column which contains expander indicators @@ -83461,8 +86355,8 @@ interface IgTreeGridMethods { /** * Clears the transaction log (delegates to igDataSource). Note that this does not update the UI. In case the UI must be updated, set the second parameter "updateUI" to true, which will trigger a call to dataBind() to re-render the contents. * - * @param rowId If specified, will only rollback the transactions with that row id. - * @param updateUI Whether to update the UI or not. + * @param rowId If specified, will only rollback the transactions with that row id. + * @param updateUI Whether to update the UI or not. */ rollback(rowId?: Object, updateUI?: boolean): any[]; @@ -83474,32 +86368,32 @@ interface IgTreeGridMethods { /** * Toggle row by specified row or row identifier * - * @param row jQuery table row object or a row id. - * @param callback Specifies a custom function to be called when row is expanded/collapsed. The callback has 4 arguments- a reference to the current context(this), object that holds 2 properties(unfixedRow - DOM representation of the unfixed row, fixedRow - DOM representation of the fixed row, if there is no fixed columns it is undefined), reference to the dataRecord, expand - specifies whether row is expanded + * @param row jQuery table row object or a row id. + * @param callback Specifies a custom function to be called when row is expanded/collapsed. The callback has 4 arguments- a reference to the current context(this), object that holds 2 properties(unfixedRow - DOM representation of the unfixed row, fixedRow - DOM representation of the fixed row, if there is no fixed columns it is undefined), reference to the dataRecord, expand - specifies whether row is expanded */ toggleRow(row: Object, callback?: Function): void; /** * Expands a parent row by specified row or row identifier * - * @param row jQuery table row object or a row id. - * @param callback Specifies a custom function to be called when row is expanded/collapsed. The callback has 4 arguments- a reference to the current context(this), object that holds 2 properties(unfixedRow - DOM representation of the unfixed row, fixedRow - DOM representation of the fixed row, if there is no fixed columns it is undefined), reference to the dataRecord, expand - specifies whether row is expanded + * @param row jQuery table row object or a row id. + * @param callback Specifies a custom function to be called when row is expanded/collapsed. The callback has 4 arguments- a reference to the current context(this), object that holds 2 properties(unfixedRow - DOM representation of the unfixed row, fixedRow - DOM representation of the fixed row, if there is no fixed columns it is undefined), reference to the dataRecord, expand - specifies whether row is expanded */ expandRow(row: Object, callback?: Function): void; /** * Collapses a parent row by specified row or row identifier * - * @param row jQuery table row object, raw DOM row object or a row id. - * @param callback Specifies a custom function to be called when row is expanded/collapsed. The callback has 4 arguments- a reference to the current context(this), object that holds 2 properties(unfixedRow - DOM representation of the unfixed row, fixedRow - DOM representation of the fixed row, if there is no fixed columns it is undefined), reference to the dataRecord, expand - specifies whether row is expanded + * @param row jQuery table row object, raw DOM row object or a row id. + * @param callback Specifies a custom function to be called when row is expanded/collapsed. The callback has 4 arguments- a reference to the current context(this), object that holds 2 properties(unfixedRow - DOM representation of the unfixed row, fixedRow - DOM representation of the fixed row, if there is no fixed columns it is undefined), reference to the dataRecord, expand - specifies whether row is expanded */ collapseRow(row: Object, callback?: Function): void; /** * Adds a new row (TR) to the grid as a child of a specific row, by taking a data row object. Assumes the record will have the primary key. * - * @param rec The data row JavaScript object. - * @param parentId Identifier/key of the targeted parent row. If missing, then the new row is rendered to the bottom of the grid. + * @param rec The data row JavaScript object. + * @param parentId Identifier/key of the targeted parent row. If missing, then the new row is rendered to the bottom of the grid. */ renderNewChild(rec: Object, parentId?: string): void; @@ -83532,7 +86426,7 @@ interface IgTreeGridMethods { /** * Returns whether the column with identifier colKey is fixed * - * @param colKey An identifier of the column which should be checked. It can be a key or visible index. + * @param colKey An identifier of the column which should be checked. It can be a key or visible index. */ isFixedColumn(colKey: Object): boolean; @@ -83544,19 +86438,19 @@ interface IgTreeGridMethods { /** * Returns whether the header identified by colKey is multicolumn header(has children) * - * @param colKey value of the column key + * @param colKey value of the column key */ isGroupHeader(colKey: string): Object; /** * Returns an object that contains information on the passed Dom element * - * rowId - the id of the record associated with the element - if primaryKey is not set this will be null. - * rowIndex - the index (in the DOM) of the row associated with the element. - * recordIndex - index of the data record associated with this element in the current dataView. - * columnObject - the column object associated with this element ( if the element is tr this will be null) + * rowId - the id of the record associated with the element - if primaryKey is not set this will be null. + * rowIndex - the index (in the DOM) of the row associated with the element. + * recordIndex - index of the data record associated with this element in the current dataView. + * columnObject - the column object associated with this element ( if the element is tr this will be null) * - * @param elem The Dom element or jQuery object which can be a TD or TR element from the grid. + * @param elem The Dom element or jQuery object which can be a TD or TR element from the grid. */ getElementInfo(elem: Element): Object; @@ -83618,17 +86512,17 @@ interface IgTreeGridMethods { /** * Returns the cell TD element at the specified location * - * @param x The column index. - * @param y The row index. - * @param isFixed Optional parameter - if true get cell TD at the specified location from the fixed table + * @param x The column index. + * @param y The row index. + * @param isFixed Optional parameter - if true get cell TD at the specified location from the fixed table */ cellAt(x: number, y: number, isFixed: boolean): Element; /** * Returns the cell TD element by row id and column key * - * @param rowId The id of the row. - * @param columnKey The column key. + * @param rowId The id of the row. + * @param columnKey The column key. */ cellById(rowId: Object, columnKey: string): Element; @@ -83660,22 +86554,22 @@ interface IgTreeGridMethods { /** * Returns the row (TR element) at the specified index. jQuery selectors aren't used for performance reasons * - * @param i The row index. + * @param i The row index. */ rowAt(i: number): Element; /** * Returns the row TR element by row id * - * @param rowId The id of the row. - * @param isFixed Specify search in the fixed container. + * @param rowId The id of the row. + * @param isFixed Specify search in the fixed container. */ rowById(rowId: Object, isFixed?: boolean): Element; /** * Returns the fixed row (TR element) at the specified index. jQuery selectors aren't used for performance reasons(in ColumnFixing scenario - only when there is at least one fixed column) * - * @param i The row index. + * @param i The row index. */ fixedRowAt(i: number): Element; @@ -83702,38 +86596,38 @@ interface IgTreeGridMethods { /** * Returns a column object by the specified column key * - * @param key The column key. + * @param key The column key. */ columnByKey(key: string): Object; /** * Returns a column object by the specified header text. If there are multiple matches, returns the first one. * - * @param text The column header text. + * @param text The column header text. */ columnByText(text: string): Object; /** * Returns an array of selected cells in arbitrary order where every objects has the format { element: , row: , index: , rowIndex: , columnKey: } . - * If multiple selection is disabled the function will return null. + * If multiple selection is disabled the function will return null. */ selectedCells(): any[]; /** * Returns an array of selected rows in arbitrary order where every object has the format { element: , index: } . - * If multiple selection is disabled the function will return null. + * If multiple selection is disabled the function will return null. */ selectedRows(): any[]; /** * Returns the currently selected cell that has the format { element: , row: , index: , rowIndex: , columnKey: }, if any. - * If multiple selection is enabled the function will return null. + * If multiple selection is enabled the function will return null. */ selectedCell(): Object; /** * Returns the currently selected row that has the format { element: , index: }, if any. - * If multiple selection is enabled the function will return null. + * If multiple selection is enabled the function will return null. */ selectedRow(): Object; @@ -83749,98 +86643,98 @@ interface IgTreeGridMethods { /** * Retrieves a cell value using the row index and the column key. If a primaryKey is defined, rowId is assumed to be the row Key (not index). - * If primary key is not defined, then rowId is converted to a number and is used as a row index. + * If primary key is not defined, then rowId is converted to a number and is used as a row index. * - * @param rowId Row index or row key (primary key). - * @param colKey The column key. + * @param rowId Row index or row key (primary key). + * @param colKey The column key. */ getCellValue(rowId: Object, colKey: string): Object; /** * Returns the cell text. If colKey is a number, the index of the column is used (instead of a column name)- does not apply when using a Multi-Row Layout grid. - * This is the actual text (or HTML string) for the contents of the cell. + * This is the actual text (or HTML string) for the contents of the cell. * - * @param rowId Row index or row data key (primary key) - * @param colKey Column key. + * @param rowId Row index or row data key (primary key) + * @param colKey Column key. */ getCellText(rowId: Object, colKey: string): string; /** * Sets a new template for a column after initialization and renders the grid if not explicitly disabled. This method will replace any existing explicitly set row template and will build one anew from the column ones. * - * @param col An identifier of the column to set template for (index or key) - * @param tmpl The column template to set - * @param render Should the grid rerender after template is set + * @param col An identifier of the column to set template for (index or key) + * @param tmpl The column template to set + * @param render Should the grid rerender after template is set */ setColumnTemplate(col: Object, tmpl: string, render?: boolean): void; /** * Commits all pending transactions to the client data source. Note that there won't be anything to commit on the UI, since it is updated instantly. In order to rollback the actual UI, a call to dataBind() is required. * - * @param rowId If specified, will commit only that transaction corresponding to the specified record key. + * @param rowId If specified, will commit only that transaction corresponding to the specified record key. */ commit(rowId?: Object): void; /** * Returns a record by a specified key (requires that primaryKey is set in the settings). - * That is a wrapper for this.dataSource.findRecordByKey(key). + * That is a wrapper for this.dataSource.findRecordByKey(key). * - * @param key Primary key of the record + * @param key Primary key of the record */ findRecordByKey(key: Object): Object; /** * Returns a standalone object (copy) that represents the committed transactions, but detached from the data source. - * That is a wrapper for this.dataSource.getDetachedRecord(t). + * That is a wrapper for this.dataSource.getDetachedRecord(t). * - * @param t A transaction object. + * @param t A transaction object. */ getDetachedRecord(t: Object): Object; /** * Returns a list of all transaction objects that are pending to be committed or rolled back to the data source. - * That is a wrapper for this.dataSource.pendingTransactions(). + * That is a wrapper for this.dataSource.pendingTransactions(). */ pendingTransactions(): any[]; /** * Returns a list of all transaction objects that are either pending, or have been committed in the data source. - * That is a wrapper for this.dataSource.allTransactions(). + * That is a wrapper for this.dataSource.allTransactions(). */ allTransactions(): any[]; /** * Returns the accumulated transaction log as a string. The purpose of this is to be passed to URLs or used conveniently. - * That is a wrapper for this.dataSource.transactionsAsString(). + * That is a wrapper for this.dataSource.transactionsAsString(). */ transactionsAsString(): string; /** * Invokes an AJAX request to the updateUrl option (if specified) and passes the serialized transaction log (a serialized JSON string) as part of the POST request. * - * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) - * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) + * @param success Specifies a custom function to be called when AJAX request to the updateUrl option succeeds(optional) + * @param error Specifies a custom function to be called when AJAX request to the updateUrl option fails(optional) */ saveChanges(success: Function, error: Function): void; /** * Adds a new row (TR) to the grid, by taking a data row object. Assumes the record will have the primary key. * - * @param rec Identifier/key of row. If missing, then number of rows in grid is used. + * @param rec Identifier/key of row. If missing, then number of rows in grid is used. */ renderNewRow(rec?: string): void; /** * If the data source points to a local JSON array of data, and it is necessary to reset it at runtime, it must be done through this API member instead of the options (options.dataSource) * - * @param dataSource New data source object. + * @param dataSource New data source object. */ dataSourceObject(dataSource: Object): void; /** * Returns the total number of records in the underlying backend. If paging or filtering is enabled, this may differ from the number of records in the client-side data source. - * In order for this to work, the response JSON/XML must include a property that specifies the total number of records, which name is specified by options.responseTotalRecCountKey. - * This functionality is completely delegated to the data source control. + * In order for this to work, the response JSON/XML must include a property that specifies the total number of records, which name is specified by options.responseTotalRecCountKey. + * This functionality is completely delegated to the data source control. */ totalRecordsCount(): number; @@ -83848,62 +86742,62 @@ interface IgTreeGridMethods { * Moves a visible column at a specified place, in front or behind a target column or at a target index * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param column An identifier of the column to be moved. It can be a key, a Multi-Column Header identificator, or an index in a number format. The latter is not supported when the grid contains multi-column headers. - * @param target An identifier of a column where the moved column should move to or an index at which the moved column should be moved to. In the case of a column identifier the column will be moved after it by default. - * @param after Specifies whether the column moved should be moved after or before the target column. This parameter is disregarded if there is no target column specified but a target index is used. - * @param inDom Specifies whether the column moving will be enacted through DOM manipulation or through rerendering of the grid. - * @param callback Specifies a custom function to be called when the column is moved. + * @param column An identifier of the column to be moved. It can be a key, a Multi-Column Header identificator, or an index in a number format. The latter is not supported when the grid contains multi-column headers. + * @param target An identifier of a column where the moved column should move to or an index at which the moved column should be moved to. In the case of a column identifier the column will be moved after it by default. + * @param after Specifies whether the column moved should be moved after or before the target column. This parameter is disregarded if there is no target column specified but a target index is used. + * @param inDom Specifies whether the column moving will be enacted through DOM manipulation or through rerendering of the grid. + * @param callback Specifies a custom function to be called when the column is moved. */ moveColumn(column: Object, target: Object, after?: boolean, inDom?: boolean, callback?: Function): void; /** * Shows a hidden column. If the column is not hidden the method does nothing. - * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param column An identifier for the column. If a number is provided it will be used as a column index. If a string is provided it will be used as a column key. - * @param callback Specifies a custom function to be called when the column is shown(optional) + * @param column An identifier for the column. If a number is provided it will be used as a column index. If a string is provided it will be used as a column key. + * @param callback Specifies a custom function to be called when the column is shown(optional) */ showColumn(column: Object, callback: Function): void; /** * Hides a visible column. If the column is hidden the method does nothing. - * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. + * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param column An identifier for the column. If a number is provided it will be used as a column index else if a string is provided it will be used as a column key. - * @param callback Specifies a custom function to be called when the column is hidden(optional) + * @param column An identifier for the column. If a number is provided it will be used as a column index else if a string is provided it will be used as a column key. + * @param callback Specifies a custom function to be called when the column is hidden(optional) */ hideColumn(column: Object, callback: Function): void; /** * Gets unbound values for the specified column key. If key is not specified returns all unboundvalues * - * @param key column key + * @param key column key */ getUnboundValues(key: string): Object; /** * Sets unbound values for the unbound column with the specified key. If removeOldValues is true then values(if any) for the unbound columns are re-set with the new values * - * @param key key of the unbound column - * @param values array of values to be set on unbound values - * @param removeOldValues if true removes current unbound values(if any) for the specified column and apply the new ones specified in parameter values. Otherwise merge current values with the specified in parameter values + * @param key key of the unbound column + * @param values array of values to be set on unbound values + * @param removeOldValues if true removes current unbound values(if any) for the specified column and apply the new ones specified in parameter values. Otherwise merge current values with the specified in parameter values */ setUnboundValues(key: string, values: any[], removeOldValues: Object): void; /** * Sets unbound value for the unbound cell by the specified column key and row primary key. * - * @param col key of the unbound column - * @param rowId primary key value of the row - * @param val value to be set on unbound cell - * @param notToRender if false will re-render the row + * @param col key of the unbound column + * @param rowId primary key value of the row + * @param val value to be set on unbound cell + * @param notToRender if false will re-render the row */ setUnboundValueByPK(col: string, rowId: string, val: Object, notToRender: Object): void; /** * Returns an unbound column with the specified key. If not found returns null * - * @param key a column key + * @param key a column key */ getUnboundColumnByKey(key: string): Object; @@ -83920,16 +86814,16 @@ interface IgTreeGridMethods { /** * Calculates the width of the column so its content to be auto-fitted to the width of the data in it(the content should NOT be shrinked/cutted) * - * @param columnIndex Visible column index + * @param columnIndex Visible column index */ calculateAutoFitColumnWidth(columnIndex: number): number; /** * Get visible index by specified column key. If column is not found or is hidden then returns -1. - * Note: Method does not count column groups (Multi-Column Headers). + * Note: Method does not count column groups (Multi-Column Headers). * - * @param columnKey columnKey - * @param includeDataSkip Optional parameter - if set to true include non data columns(like expander column, row selectors column, etc.) in calculations + * @param columnKey columnKey + * @param includeDataSkip Optional parameter - if set to true include non data columns(like expander column, row selectors column, etc.) in calculations */ getVisibleIndexByKey(columnKey: string, includeDataSkip: boolean): number; @@ -83943,14 +86837,14 @@ interface IgTreeGridMethods { /** * Scroll to the specified row or specified position(in pixels) * - * @param scrollerPosition An identifier of the vertical scroll position. When it is string then it is interpreted as pixels otherwise it is the row number + * @param scrollerPosition An identifier of the vertical scroll position. When it is string then it is interpreted as pixels otherwise it is the row number */ virtualScrollTo(scrollerPosition: Object): void; /** * Returns column object and visible index for the table cell(TD) which is passed as argument * - * @param $td cell(TD) - either DOM TD element or jQuery object + * @param $td cell(TD) - either DOM TD element or jQuery object */ getColumnByTD($td: Object): Object; } @@ -84137,7 +87031,8 @@ interface JQuery { * Gets the foreign key value in the data source to treat as the root level once the grid is data bound. Defaults to -1 (which includes the entire data source) * */ - igTreeGrid(optionLiteral: 'option', optionName: "foreignKeyRootValue"): number; + + igTreeGrid(optionLiteral: 'option', optionName: "foreignKeyRootValue"): number|string; /** * Sets the foreign key value in the data source to treat as the root level once the grid is data bound. Defaults to -1 (which includes the entire data source) @@ -84145,7 +87040,8 @@ interface JQuery { * * @optionValue New value to be set. */ - igTreeGrid(optionLiteral: 'option', optionName: "foreignKeyRootValue", optionValue: number): void; + + igTreeGrid(optionLiteral: 'option', optionName: "foreignKeyRootValue", optionValue: number|string): void; /** * Specify whether to render non-data column which contains expander indicators @@ -84165,6 +87061,7 @@ interface JQuery { * A reference or name of a javascript function which changes first data cell - renders indentation according to databound level * */ + igTreeGrid(optionLiteral: 'option', optionName: "renderFirstDataCellFunction"): string|Object; /** @@ -84173,6 +87070,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGrid(optionLiteral: 'option', optionName: "renderFirstDataCellFunction", optionValue: string|Object): void; /** @@ -84193,6 +87091,7 @@ interface JQuery { * A reference or name of a javascript function which renders expand indicators(called ONLY IF option renderExpansionIndicatorColumn is true) * */ + igTreeGrid(optionLiteral: 'option', optionName: "renderExpansionCellFunction"): string|Object; /** @@ -84201,6 +87100,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGrid(optionLiteral: 'option', optionName: "renderExpansionCellFunction", optionValue: string|Object): void; /** @@ -84235,6 +87135,7 @@ interface JQuery { * Defines the grid width in pixels or percents. [Here you can find more info about setting igGrid width](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). * */ + igTreeGrid(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -84243,12 +87144,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGrid(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * This is the total height of the grid, including all UI elements - scroll container with data rows, header, footer, filter row - (if any), etc. [Here you can find more info about setting igGrid height](http://www.igniteui.com/help/iggrid-columns-and-layout#width-height). * */ + igTreeGrid(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -84257,6 +87160,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGrid(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -84277,6 +87181,7 @@ interface JQuery { * Used for [row virtualization](ui.iggrid#options:rowVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels (default) that will be used to calculate how many rows to render as the end user scrolls. Also all rows' height will be automatically set to this value. * */ + igTreeGrid(optionLiteral: 'option', optionName: "avgRowHeight"): string|number; /** @@ -84285,12 +87190,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGrid(optionLiteral: 'option', optionName: "avgRowHeight", optionValue: string|number): void; /** * Used for [column virtualization](ui.iggrid#options:columnVirtualization) in [fixed mode](ui.iggrid#options:virtualizationMode). This is the average value in pixels for a column width. * */ + igTreeGrid(optionLiteral: 'option', optionName: "avgColumnWidth"): string|number; /** @@ -84299,12 +87206,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGrid(optionLiteral: 'option', optionName: "avgColumnWidth", optionValue: string|number): void; /** * Default column width that will be set for all columns, that don't have [column width](ui.iggrid#options:columns.width) defined. * */ + igTreeGrid(optionLiteral: 'option', optionName: "defaultColumnWidth"): string|number; /** @@ -84313,6 +87222,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGrid(optionLiteral: 'option', optionName: "defaultColumnWidth", optionValue: string|number): void; /** @@ -84351,6 +87261,7 @@ interface JQuery { * Determines row virtualization mode. * */ + igTreeGrid(optionLiteral: 'option', optionName: "virtualizationMode"): string; /** @@ -84359,6 +87270,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGrid(optionLiteral: 'option', optionName: "virtualizationMode", optionValue: string): void; /** @@ -84421,6 +87333,7 @@ interface JQuery { * The templating engine that will be used to render the grid [column templates](ui.iggrid#options:columns.template). [Here you can find](http://www.infragistics.com/community/blogs/marina_stoyanova/archive/2014/05/30/using-different-template-engines-with-ignite-ui-controls.aspx) how to use templating engines other than igTemplating and jsRender. * */ + igTreeGrid(optionLiteral: 'option', optionName: "templatingEngine"): string; /** @@ -84429,6 +87342,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGrid(optionLiteral: 'option', optionName: "templatingEngine", optionValue: string): void; /** @@ -84449,6 +87363,7 @@ interface JQuery { * Can be any valid data source accepted by [$.ig.DataSource](ig.datasource), or an instance of an $.ig.DataSource itself * */ + igTreeGrid(optionLiteral: 'option', optionName: "dataSource"): Array|Object|string; /** @@ -84457,6 +87372,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGrid(optionLiteral: 'option', optionName: "dataSource", optionValue: Array|Object|string): void; /** @@ -84723,6 +87639,7 @@ interface JQuery { * Sets gets ability to automatically format text in cells for numeric and date columns. The format patterns and rules for numbers and dates are defined in $.ig.regional.defaults object. [Here column formatting is explained in details](http://www.igniteui.com/help/iggrid-columns-and-layout#column-formatting) * */ + igTreeGrid(optionLiteral: 'option', optionName: "autoFormat"): string|boolean; /** @@ -84731,6 +87648,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGrid(optionLiteral: 'option', optionName: "autoFormat", optionValue: string|boolean): void; /** @@ -84879,6 +87797,7 @@ interface JQuery { * Configures how the feature chooser icon should display on header cells - e.g. to display as gear icon or not. * */ + igTreeGrid(optionLiteral: 'option', optionName: "featureChooserIconDisplay"): string; /** @@ -84887,6 +87806,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGrid(optionLiteral: 'option', optionName: "featureChooserIconDisplay", optionValue: string): void; /** @@ -85294,7 +88214,7 @@ interface IgTreeGridMultiColumnHeadersMethods { * Expands a collapsed group. If the group is expanded, the method does nothing. * Note: This method is asynchronous which means that it returns immediately and any subsequent code will execute in parallel. This may lead to runtime errors. To avoid them put the subsequent code in the callback parameter provided by the method. * - * @param groupKey Group key. + * @param groupKey Group key. * @param callback Specifies a custom function to be called when the group is expanded. */ expandGroup(groupKey: string, callback?: Function): void; @@ -85403,6 +88323,25 @@ interface ContextRowRenderingEvent { } interface ContextRowRenderingEventUIParam { + /** + * Gets a reference to igTreeGridPaging. + */ + owner?: any; + + /** + * Gets reference to the first data row. Null if there are no records. + */ + dataRow?: any; + + /** + * Gets current page index. + */ + currentPageIndex?: number; + + /** + * Gets the current context row mode. + */ + contextRowMode?: string; } interface ContextRowRenderedEvent { @@ -85410,6 +88349,30 @@ interface ContextRowRenderedEvent { } interface ContextRowRenderedEventUIParam { + /** + * Gets a reference to igTreeGridPaging. + */ + owner?: any; + + /** + * Gets reference to the first data row. Null if there are no records. + */ + dataRow?: any; + + /** + * Gets current page index. + */ + currentPageIndex?: number; + + /** + * Gets array of the parent rows(of the ui.dataRow). If the dataRow is null(for instance filter is applied and no records are shown) then it is empty array. Otherwise it contains all ancestors ordered by level(including the current dataRow) - the first item is root level, the last array item is the current ui.dataRow + */ + parentRows?: any[]; + + /** + * Gets the current context row mode. + */ + contextRowMode?: string; } interface IgTreeGridPaging { @@ -85751,14 +88714,14 @@ interface IgTreeGridPagingMethods { /** * Gets/Sets the current page index, delegates data binding and paging to [$.ig.DataSource](ig.datasource). * - * @param index The page index to go to. + * @param index The page index to go to. */ pageIndex(index?: number): number; /** * Gets/Sets the page size. If no parameter is specified, just returns the current page size. * - * @param size The new page size. + * @param size The new page size. */ pageSize(size?: number): number; } @@ -85777,6 +88740,7 @@ interface JQuery { * Sets gets paging mode. * */ + igTreeGridPaging(optionLiteral: 'option', optionName: "mode"): string; /** @@ -85785,12 +88749,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridPaging(optionLiteral: 'option', optionName: "mode", optionValue: string): void; /** * When data flows to the next page there are a couple of different modes that can help communicate the context of a leaf level row. When mode option is "rootLevelOnly" then the context row always shows the value of the contextRowRootText option. * */ + igTreeGridPaging(optionLiteral: 'option', optionName: "contextRowMode"): string; /** @@ -85799,6 +88765,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridPaging(optionLiteral: 'option', optionName: "contextRowMode", optionValue: string): void; /** @@ -85861,6 +88828,7 @@ interface JQuery { * Reference to the (or name of )function, called before rendering context row content(rendering loading message/bread crumb/parent row). The function takes 4 arguments- dataRow, $textArea- jQuery representation of the text area of the context row(when mode is loading/breadcrumb then it is otherwise ), array of parent rows and context mode - "loading"|"breadcrumb"|"parent". When the function returns string it is used as html set in $textArea. If the function does not return result or returns false/empty string then rendering of the content of the context row should be handled by the developer(similar to canceling rendering of context row content). * */ + igTreeGridPaging(optionLiteral: 'option', optionName: "renderContextRowFunc"): Function|string; /** @@ -85869,6 +88837,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridPaging(optionLiteral: 'option', optionName: "renderContextRowFunc", optionValue: Function|string): void; /** @@ -85945,6 +88914,7 @@ interface JQuery { * Type of paging. Delegates all paging functionality to the [$.ig.DataSource](ig.datasource). * */ + igTreeGridPaging(optionLiteral: 'option', optionName: "type"): string; /** @@ -85953,6 +88923,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridPaging(optionLiteral: 'option', optionName: "type", optionValue: string): void; /** @@ -86001,6 +88972,7 @@ interface JQuery { * Page size dropdown location, when [showPageSizeDropDown](ui.iggridpaging#options:showPageSizeDropDown) is set to true. Can be rendered above the grid header or inside the pager, next to the page links. * */ + igTreeGridPaging(optionLiteral: 'option', optionName: "pageSizeDropDownLocation"): string; /** @@ -86009,6 +88981,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridPaging(optionLiteral: 'option', optionName: "pageSizeDropDownLocation", optionValue: string): void; /** @@ -86528,8 +89501,8 @@ interface IgTreeGridResizingMethods { /** * Resizes a column to a specified width in pixels, percents or auto if no width is specified. * - * @param column An identifier for the column. If a number is provided it will be used as a columnIndex else if a strings is provided it will be used as a columnKey. - * @param width Width of the column in pixels or percents. If no width or "*" is specified the column will be auto-sized to the width of the data in it (including header and footer cells). + * @param column An identifier for the column. If a number is provided it will be used as a columnIndex else if a strings is provided it will be used as a columnKey. + * @param width Width of the column in pixels or percents. If no width or "*" is specified the column will be auto-sized to the width of the data in it (including header and footer cells). */ resize(column: Object, width?: Object): void; } @@ -86771,30 +89744,30 @@ interface IgTreeGridRowSelectorsMethods { /** * Change the check state of a row by row id * - * @param rowId Row Id - * @param toCheck The new check state of the checkbox - true for checked or false for unchecked + * @param rowId Row Id + * @param toCheck The new check state of the checkbox - true for checked or false for unchecked */ changeCheckStateById(rowId: Object, toCheck: boolean): void; /** * Changes the check state of a row by index to specified value * - * @param index Row index - * @param toCheck The new check state of the checkbox - true for checked or false for unchecked + * @param index Row index + * @param toCheck The new check state of the checkbox - true for checked or false for unchecked */ changeCheckState(index: number, toCheck: boolean): void; /** * Toggles the check state of a row by row id * - * @param rowId Row Id + * @param rowId Row Id */ toggleCheckStateById(rowId: Object): void; /** * Toggles the check state of a row by index * - * @param index Row index + * @param index Row index */ toggleCheckState(index: number): void; @@ -86839,6 +89812,7 @@ interface JQuery { * Determines row numbering format. * */ + igTreeGridRowSelectors(optionLiteral: 'option', optionName: "rowSelectorNumberingMode"): string; /** @@ -86847,12 +89821,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridRowSelectors(optionLiteral: 'option', optionName: "rowSelectorNumberingMode", optionValue: string): void; /** * Gets the type of checkboxes rendered in the row selector. Can be set only at initialization. * */ + igTreeGridRowSelectors(optionLiteral: 'option', optionName: "checkBoxMode"): string; /** @@ -86861,6 +89837,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridRowSelectors(optionLiteral: 'option', optionName: "checkBoxMode", optionValue: string): void; /** @@ -86909,6 +89886,7 @@ interface JQuery { * Defines width of the row selector`s column in pixels or percentage. * */ + igTreeGridRowSelectors(optionLiteral: 'option', optionName: "rowSelectorColumnWidth"): string|number; /** @@ -86917,6 +89895,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridRowSelectors(optionLiteral: 'option', optionName: "rowSelectorColumnWidth", optionValue: string|number): void; /** @@ -87182,7 +90161,7 @@ interface IgTreeGridSelectionMethods { /** * Selects a row by row id * - * @param id Row Id + * @param id Row Id */ selectRowById(id: Object): void; @@ -87194,83 +90173,83 @@ interface IgTreeGridSelectionMethods { /** * Selects a cell by row/col * - * @param row Row index - * @param col Column index - * @param isFixed If the cell is part of the fixed or unfixed area of the grid. + * @param row Row index + * @param col Column index + * @param isFixed If the cell is part of the fixed or unfixed area of the grid. */ selectCell(row: number, col: number, isFixed?: boolean): void; /** * Selects a cell by row id/column key * - * @param id Row Id - * @param colKey Column key + * @param id Row Id + * @param colKey Column key */ selectCellById(id: Object, colKey: string): void; /** * Deselects a cell by row/col * - * @param row Row index - * @param col Column index - * @param isFixed If the cell is part of the fixed or unfixed area of the grid. + * @param row Row index + * @param col Column index + * @param isFixed If the cell is part of the fixed or unfixed area of the grid. */ deselectCell(row: number, col: number, isFixed?: boolean): void; /** * Deselects a cell by row id/column key * - * @param id Row Id - * @param colKey Column key + * @param id Row Id + * @param colKey Column key */ deselectCellById(id: Object, colKey: string): void; /** * Selects a row by index * - * @param index Row index + * @param index Row index */ selectRow(index: number): void; /** * Deselects a row by index * - * @param index Row index + * @param index Row index */ deselectRow(index: number): void; /** * Deselects a row by row id * - * @param id Row Id + * @param id Row Id */ deselectRowById(id: Object): void; /** * Returns an array of selected cells in arbitrary order where every objects has the format { element: , row: , index: , rowIndex: , columnKey: } . * - * If multiple selection is disabled the function will return null. + * If multiple selection is disabled the function will return null. */ selectedCells(): any[]; /** * Returns an array of selected rows in arbitrary order where every object has the format { element: , index: } . * - * If multiple selection is disabled the function will return null. + * If multiple selection is disabled the function will return null. */ selectedRows(): any[]; /** * Returns the currently selected cell that has the format { element: , row: , index: , rowIndex: , columnKey: }, if any. * - * If multiple selection is enabled the function will return null. + * If multiple selection is enabled the function will return null. */ selectedCell(): Object; /** * Returns the currently selected row that has the format { element: , index: }, if any. * - * If multiple selection is enabled the function will return null. + * If multiple selection is enabled the function will return null. */ selectedRow(): Object; @@ -87338,6 +90317,7 @@ interface JQuery { * Defines type of the selection. * */ + igTreeGridSelection(optionLiteral: 'option', optionName: "mode"): string; /** @@ -87346,6 +90326,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridSelection(optionLiteral: 'option', optionName: "mode", optionValue: string): void; /** @@ -87855,7 +90836,7 @@ interface IgTreeGridSortingMethods { /** * Returns whether a column with the specified columnKey is sorted(taken from the data source sorting expressions) * - * @param columnKey Column key (string) + * @param columnKey Column key (string) */ isColumnSorted(columnKey: string): boolean; destroy(): void; @@ -87863,8 +90844,8 @@ interface IgTreeGridSortingMethods { /** * Sorts the data in a grid column and updates the UI. * - * @param index Column key (string) or index (number) - for multi-row grid only column key can be used. Specifies the column which we want to sort. If the mode is multiple, previous sorting states are not cleared. - * @param direction Specifies sorting direction (ascending or descending) + * @param index Column key (string) or index (number) - for multi-row grid only column key can be used. Specifies the column which we want to sort. If the mode is multiple, previous sorting states are not cleared. + * @param direction Specifies sorting direction (ascending or descending) * @param header */ sortColumn(index: Object, direction: Object, header: Object): void; @@ -87882,8 +90863,8 @@ interface IgTreeGridSortingMethods { /** * Removes sorting for the grid column with the specified columnKey/columnIndex and updates the UI. * - * @param index Column key (string) or index (number) - for multi-row grid only column key can be used. Specifies the column for which we want to remove sorting. If the mode is multiple, previous sorting states are not cleared. - * @param header - if specified client events should be fired + * @param index Column key (string) or index (number) - for multi-row grid only column key can be used. Specifies the column for which we want to remove sorting. If the mode is multiple, previous sorting states are not cleared. + * @param header - if specified client events should be fired */ unsortColumn(index: Object, header: Object): void; @@ -87957,6 +90938,7 @@ interface JQuery { * Defines local or remote sorting operations. * */ + igTreeGridSorting(optionLiteral: 'option', optionName: "type"): string; /** @@ -87965,6 +90947,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridSorting(optionLiteral: 'option', optionName: "type", optionValue: string): void; /** @@ -88041,6 +91024,7 @@ interface JQuery { * Defines single column sorting or multiple column sorting. * */ + igTreeGridSorting(optionLiteral: 'option', optionName: "mode"): string; /** @@ -88049,6 +91033,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridSorting(optionLiteral: 'option', optionName: "mode", optionValue: string): void; /** @@ -88069,6 +91054,7 @@ interface JQuery { * Gets which direction to use on the first click / keydown, if the column is sorted for the first time. * */ + igTreeGridSorting(optionLiteral: 'option', optionName: "firstSortDirection"): string; /** @@ -88077,6 +91063,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridSorting(optionLiteral: 'option', optionName: "firstSortDirection", optionValue: string): void; /** @@ -88179,6 +91166,7 @@ interface JQuery { * Gets width of multiple sorting dialog. * */ + igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogWidth"): string|number; /** @@ -88187,12 +91175,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogWidth", optionValue: string|number): void; /** * Gets height of multiple sorting dialog. * */ + igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogHeight"): string|number; /** @@ -88201,6 +91191,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridSorting(optionLiteral: 'option', optionName: "modalDialogHeight", optionValue: string|number): void; /** @@ -88674,6 +91665,7 @@ interface JQuery { * Determines the tooltip visibility option * */ + igTreeGridTooltips(optionLiteral: 'option', optionName: "visibility"): string; /** @@ -88682,12 +91674,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridTooltips(optionLiteral: 'option', optionName: "visibility", optionValue: string): void; /** * Controls the tooltip's style * */ + igTreeGridTooltips(optionLiteral: 'option', optionName: "style"): string; /** @@ -88696,6 +91690,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridTooltips(optionLiteral: 'option', optionName: "style", optionValue: string): void; /** @@ -89136,23 +92131,23 @@ interface IgTreeGridUpdatingMethods { /** * Adds a new child to a specific row. It also creates a transaction and updates the UI. * - * @param values Pairs of values in the format { column1Key: value1, column2Key: value2, ... } . - * @param parentId The ID of the targeted row. + * @param values Pairs of values in the format { column1Key: value1, column2Key: value2, ... } . + * @param parentId The ID of the targeted row. */ addChild(values: Object, parentId: Object): void; /** * Starts editing for adding a new child for specific row. * - * @param parentId The ID of the targeted row. - * @param raiseEvents Specifies whether or not updating events should be raised for this operation. + * @param parentId The ID of the targeted row. + * @param raiseEvents Specifies whether or not updating events should be raised for this operation. */ startAddChildFor(parentId: Object, raiseEvents?: Object): void; /** * Shows the "Add Child" button for specific row. * - * @param row A jQuery object of the targeted row. + * @param row A jQuery object of the targeted row. */ showAddChildButtonFor(row: Object): void; @@ -89166,9 +92161,9 @@ interface IgTreeGridUpdatingMethods { * Sets a cell value for the specified cell. It also creates a transaction and updates the UI. * If the specified cell is currently in edit mode, the function will set the desired value in the cell's editor instead. * - * @param rowId The primary key of the row the cell is a child of. - * @param colKey The column key of the cell. - * @param value The new value for the cell. + * @param rowId The primary key of the row the cell is a child of. + * @param colKey The column key of the cell. + * @param value The new value for the cell. */ setCellValue(rowId: Object, colKey: string, value: Object): void; @@ -89176,46 +92171,46 @@ interface IgTreeGridUpdatingMethods { * Sets values for specified cells in a row. It also creates a transaction and updates the UI. * If the specified row is currently in edit mode, the function will set the desired values in the row's editors instead. * - * @param rowId The primary key of the row to update. - * @param values Pairs of values in the format { column1Key: value1, column2Key: value2, ... } . + * @param rowId The primary key of the row to update. + * @param values Pairs of values in the format { column1Key: value1, column2Key: value2, ... } . */ updateRow(rowId: Object, values: Object): void; /** * Adds a new row to the grid. It also creates a transaction and updates the UI. * - * @param values Pairs of values in the format { column1Key: value1, column2Key: value2, ... } . + * @param values Pairs of values in the format { column1Key: value1, column2Key: value2, ... } . */ addRow(values: Object): void; /** * Deletes a row from the grid. It also creates a transaction and updates the UI. * - * @param rowId The primary key of the row to delete. + * @param rowId The primary key of the row to delete. */ deleteRow(rowId: Object): void; /** * Starts editing for the row or cell specified (depending on the [editMode](ui.iggridupdating#options:editMode)). * - * @param rowId The row id. - * @param column The column key or index. - * @param raiseEvents Specifies whether or not updating events should be raised for this operation. + * @param rowId The row id. + * @param column The column key or index. + * @param raiseEvents Specifies whether or not updating events should be raised for this operation. */ startEdit(rowId: Object, column: Object, raiseEvents?: boolean): boolean; /** * Starts editing for adding a new row. * - * @param raiseEvents Specifies whether or not updating events should be raised for this operation. + * @param raiseEvents Specifies whether or not updating events should be raised for this operation. */ startAddRowEdit(raiseEvents?: boolean): boolean; /** * Ends the currently active edit mode. * - * @param update Specifies if the edit process should accept the current changes. Default is 'false'. - * @param raiseEvents Specifies whether or not updating events should be raised for this operation. + * @param update Specifies if the edit process should accept the current changes. Default is 'false'. + * @param raiseEvents Specifies whether or not updating events should be raised for this operation. */ endEdit(update?: boolean, raiseEvents?: boolean): boolean; @@ -89232,22 +92227,22 @@ interface IgTreeGridUpdatingMethods { /** * Gets the editor for a column by the column key. That method can be used only after the editor has been created. * - * @param key The key of the column. + * @param key The key of the column. */ editorForKey(key: string): Object; /** * Gets the editor for a column by the cell it resides in. If allowed the function can create the editor if it has not been created yet. * - * @param cell Reference to the jQuery-wrapped TD object of the grid that the editor belongs to. - * @param create Requests to create the editor if it has not been created yet. + * @param cell Reference to the jQuery-wrapped TD object of the grid that the editor belongs to. + * @param create Requests to create the editor if it has not been created yet. */ editorForCell(cell: string, create?: boolean): Object; /** * Shows the delete button for specific row. * - * @param row A jQuery object of the targeted row. + * @param row A jQuery object of the targeted row. */ showDeleteButtonFor(row: Object): void; @@ -89340,6 +92335,7 @@ interface JQuery { * Gets the edit mode. * */ + igTreeGridUpdating(optionLiteral: 'option', optionName: "editMode"): string; /** @@ -89348,6 +92344,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridUpdating(optionLiteral: 'option', optionName: "editMode", optionValue: string): void; /** @@ -89536,6 +92533,7 @@ interface JQuery { * Gets how end-users are able to start edit mode. Possible values: "click", "dblclick", "F2", "enter" and their combinations separated by coma or in array. The keyboard triggers have effect only if the grid cells can receive focus (the grid's [tabIndex](ui.iggrid#options:tabIndex) property should not have a negative value) or Selection is enabled. If "dblclick" is included, then "click" has no effect. * */ + igTreeGridUpdating(optionLiteral: 'option', optionName: "startEditTriggers"): string|Array; /** @@ -89544,6 +92542,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridUpdating(optionLiteral: 'option', optionName: "startEditTriggers", optionValue: string|Array): void; /** @@ -89578,6 +92577,7 @@ interface JQuery { * Sets a custom function to be called when the AJAX request to the URL specified by the [updateUrl](ui.iggrid#options:updateUrl) property succeeds. The function will be called with arguments representing the data returned by the server. * */ + igTreeGridUpdating(optionLiteral: 'option', optionName: "saveChangesSuccessHandler"): Function|string; /** @@ -89586,12 +92586,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridUpdating(optionLiteral: 'option', optionName: "saveChangesSuccessHandler", optionValue: Function|string): void; /** * Sets a custom function to be called when the AJAX request to the URL specified by the [updateUrl](ui.iggrid#options:updateUrl) property fails. The function will be called with arguments representing the data returned by the server. * */ + igTreeGridUpdating(optionLiteral: 'option', optionName: "saveChangesErrorHandler"): Function|string; /** @@ -89600,12 +92602,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridUpdating(optionLiteral: 'option', optionName: "saveChangesErrorHandler", optionValue: Function|string): void; /** * On touch-enabled devices specifies the swipe distance for the delete button to appear. * */ + igTreeGridUpdating(optionLiteral: 'option', optionName: "swipeDistance"): string|number; /** @@ -89614,6 +92618,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igTreeGridUpdating(optionLiteral: 'option', optionName: "swipeDistance", optionValue: string|number): void; /** @@ -89971,6 +92976,10 @@ interface FileSelectingEvent { } interface FileSelectingEventUIParam { + /** + * Gets the igUpload widget object. + */ + owner?: any; } interface FileSelectedEvent { @@ -89978,6 +92987,20 @@ interface FileSelectedEvent { } interface FileSelectedEventUIParam { + /** + * Gets the unique identifier of the file. + */ + fileId?: number; + + /** + * Gets the name of the uploaded file. + */ + filePath?: string; + + /** + * Gets the igUpload widget object. + */ + owner?: any; } interface FileUploadingEvent { @@ -89985,6 +93008,40 @@ interface FileUploadingEvent { } interface FileUploadingEventUIParam { + /** + * Gets the unique identifier of the file. + */ + fileId?: number; + + /** + * Gets the name of the uploaded file. + */ + filePath?: string; + + /** + * Gets the file size of the uploaded file. + */ + totalSize?: number; + + /** + * Gets the uploaded bytes. + */ + uploadedBytes?: number; + + /** + * Gets the current file status. + */ + fileStatus?: number; + + /** + * Gets reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from server side), etc. + */ + fileInfo?: any; + + /** + * Gets the igUpload widget object. + */ + owner?: any; } interface FileUploadedEvent { @@ -89992,6 +93049,30 @@ interface FileUploadedEvent { } interface FileUploadedEventUIParam { + /** + * Gets the unique identifier of the file. + */ + fileId?: number; + + /** + * Gets the name of the uploaded file. + */ + filePath?: string; + + /** + * Gets the file size of the uploaded file. + */ + totalSize?: number; + + /** + * Gets reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from server side), etc. + */ + fileInfo?: any; + + /** + * Gets the igUpload widget object. + */ + owner?: any; } interface FileUploadAbortedEvent { @@ -89999,6 +93080,35 @@ interface FileUploadAbortedEvent { } interface FileUploadAbortedEventUIParam { + /** + * Gets the unique identifier of the file. + */ + fileId?: number; + + /** + * Gets the name of the uploaded file. + */ + filePath?: string; + + /** + * Gets the file size of the uploaded file. + */ + totalSize?: number; + + /** + * Gets the uploaded bytes. + */ + uploadedBytes?: number; + + /** + * Gets the current file status. + */ + fileStatus?: number; + + /** + * Gets the igUpload widget object. + */ + owner?: any; } interface CancelAllClickedEvent { @@ -90006,6 +93116,10 @@ interface CancelAllClickedEvent { } interface CancelAllClickedEventUIParam { + /** + * Gets the igUpload widget object. + */ + owner?: any; } interface OnErrorEvent { @@ -90013,6 +93127,35 @@ interface OnErrorEvent { } interface OnErrorEventUIParam { + /** + * Gets the current errorCode. + */ + errorCode?: number; + + /** + * Gets the identifier of the file for which the event is fired(after that it can be used API function getFileInfo). NOTE: It is possible to be null in some cases: try to drop multiple files when mode is single , check maximum allowed uploading files fails or check for count of maximum allowed simultaneous files upload fails. + */ + fileId?: number; + + /** + * Gets the detailed error description. + */ + errorMessage?: string; + + /** + * Gets the error type - it could be clientside or serverside. + */ + errorType?: string; + + /** + * Gets the specific server message returned by server - if errorType is serverside. + */ + serverMessage?: string; + + /** + * Gets the igUpload widget object. + */ + owner?: any; } interface FileExtensionsValidatingEvent { @@ -90020,6 +93163,20 @@ interface FileExtensionsValidatingEvent { } interface FileExtensionsValidatingEventUIParam { + /** + * Gets the full file name. + */ + fileName?: string; + + /** + * Gets the file extension. + */ + fileExtension?: string; + + /** + * Gets the the igUpload widget object. + */ + owner?: any; } interface OnXHRLoadEvent { @@ -90027,6 +93184,25 @@ interface OnXHRLoadEvent { } interface OnXHRLoadEventUIParam { + /** + * Gets the unique identifier of the file. + */ + fileId?: number; + + /** + * Gets reference to the original XMLHttpRequest object. + */ + xhr?: any; + + /** + * Gets reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from the server-side), etc. + */ + fileInfo?: any; + + /** + * Gets the igUpload widget object. + */ + owner?: any; } interface OnFormDataSubmitEvent { @@ -90034,6 +93210,30 @@ interface OnFormDataSubmitEvent { } interface OnFormDataSubmitEventUIParam { + /** + * Gets the unique identifier of the file. + */ + fileId?: number; + + /** + * Gets reference to the fileInfo object - containing information for fileName, fileSize, serverMessage(if returned from the server-side), etc. + */ + fileInfo?: any; + + /** + * Gets reference to the original XMLHttpRequest object(if the browser supports HTML 5 file API - if not it is undefined). + */ + xhr?: any; + + /** + * Gets reference to FormData object(if the browser supports HTML5 file API) OR reference to jQuery representation of
. + */ + formData?: any; + + /** + * Gets the igUpload widget object. + */ + owner?: any; } interface IgUpload { @@ -90352,23 +93552,23 @@ interface IgUploadMethods { /** * Append additional data field to formData(before submitting it to the server). Usually this function is used in the handler of the event onFormDataSubmit. If the browser supports HTML5 file API formData is instance of FormData, otherwise(like IE10 and older) formData is jQuery representation of the that should be submitted to the server * - * @param formData If the browser supports HTML5 file API formData is instance of FormData, otherwise(like IE10 and older) formData is jQuery representation of the that should be submitted to the server - * @param field Data field that should be appended to the formData. The object has 2 properties - value and name. If the browser supports HTML5 the data field is appended to the formData object. Otherwise it is appended as input hidden field to the + * @param formData If the browser supports HTML5 file API formData is instance of FormData, otherwise(like IE10 and older) formData is jQuery representation of the that should be submitted to the server + * @param field Data field that should be appended to the formData. The object has 2 properties - value and name. If the browser supports HTML5 the data field is appended to the formData object. Otherwise it is appended as input hidden field to the */ addDataField(formData: Object, field: Object): void; /** * Append additional data fields to formData(before submitting it to the server). Usually this function is used in the handler of the event onFormDataSubmit. If the browser supports HTML5 file API formData is instance of FormData, otherwise(like IE10 and older) formData is jQuery representation of the that should be submitted to the server * - * @param formData If the browser supports HTML5 file API formData is instance of FormData, otherwise(like IE10 and older) formData is jQuery representation of the that should be submitted to the server - * @param fields Array of data fields that should be appended to the formData. Each data field is object with 2 properties - value and name. If the browser supports HTML5 these data fields are added to the formData. Otherwise each of these data field is appended as input hidden field to the + * @param formData If the browser supports HTML5 file API formData is instance of FormData, otherwise(like IE10 and older) formData is jQuery representation of the that should be submitted to the server + * @param fields Array of data fields that should be appended to the formData. Each data field is object with 2 properties - value and name. If the browser supports HTML5 these data fields are added to the formData. Otherwise each of these data field is appended as input hidden field to the */ addDataFields(formData: Object, fields: any[]): void; /** * Start uploading file as submitting form with the specified formNumber. * - * @param formNumber id of the upload form + * @param formNumber id of the upload form */ startUpload(formNumber: number): void; @@ -90376,7 +93576,7 @@ interface IgUploadMethods { * Cancel upload for the specified file id * formNumber - id of the file to be canceled * - * @param formNumber id of the form which should be cancelled + * @param formNumber id of the form which should be cancelled */ cancelUpload(formNumber: number): void; @@ -90398,7 +93598,7 @@ interface IgUploadMethods { /** * Returns the information about the file by specified file identifier. It could be file which is uploading/uploaded or uploading is not started. If there isn"t file with the specified file id returns null * - * @param fileIndex unique identifier of the file + * @param fileIndex unique identifier of the file */ getFileInfo(fileIndex: number): Object; } @@ -90410,21 +93610,9 @@ interface JQuery { igBrowseButton(methodName: "attachFilePicker", e: Object, isHidden: Object): void; igBrowseButton(methodName: "getFilePicker"): void; igBrowseButton(methodName: "destroy"): void; - - /** - */ igBrowseButton(optionLiteral: 'option', optionName: "autoselect"): boolean; - - /** - */ igBrowseButton(optionLiteral: 'option', optionName: "autoselect", optionValue: boolean): void; - - /** - */ igBrowseButton(optionLiteral: 'option', optionName: "multipleFiles"): boolean; - - /** - */ igBrowseButton(optionLiteral: 'option', optionName: "multipleFiles", optionValue: boolean): void; /** @@ -90461,6 +93649,7 @@ interface JQuery { * Get or set width of the main container of the file upload control. Main container contains all buttons, progressbar, etc. * */ + igUpload(optionLiteral: 'option', optionName: "width"): number|string; /** @@ -90469,12 +93658,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igUpload(optionLiteral: 'option', optionName: "width", optionValue: number|string): void; /** * Get or set height of the main container of the file upload control. Main container contains all buttons, progressbar, etc. * */ + igUpload(optionLiteral: 'option', optionName: "height"): number|string; /** @@ -90483,6 +93674,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igUpload(optionLiteral: 'option', optionName: "height", optionValue: number|string): void; /** @@ -91528,7 +94720,6 @@ interface IgValidator { * Gets/Sets number validation rule options.Default separators for decimals and thousands are '.' and ',' respectively and are defined in the "$.ui.igValidator.defaults" object. * * - * * Valid values: * "boolean" A boolean value indicating if the field should be a number. Default separators are used. * "object" A configuration object with errorMessage, decimalSeparator and thousandsSeparator. Those properties are all optional. @@ -91539,7 +94730,6 @@ interface IgValidator { * Gets/Sets date validation rule options. This can additionally help guide the [valueRange](ui.igvalidator#options:valueRange) validation.Note: Dependat on JavaScript Date parsing which will accept a wide range of values. * * - * * Valid values: * "boolean" A boolean value indicating if the field should be a valid JavaScript Date or can be parsed as one. * "object" A configuration object with optional error message (e.g. date: { errorMessage: "Enter a valid number"} ) @@ -91580,7 +94770,6 @@ interface IgValidator { * Gets/Sets Credit Card number validation rule options.Note: This rule will only validate the checksum of the number using Luhn algorithm irregardless of card type. * * - * * Valid values: * "boolean" A boolean value indicating if the field should be a valid Credit Card number. * "object" A configuration object with optional error message (e.g. creditCard: { errorMessage: "Enter a valid card number"} ) @@ -91858,14 +95047,14 @@ interface IgValidatorMethods { /** * Trigger validation and show errors for invalid fields. * - * @param field Optional field object, its selector or zero-based index to check. Only has effect with fields collection and skips other fields. + * @param field Optional field object, its selector or zero-based index to check. Only has effect with fields collection and skips other fields. */ validate(field?: Object): boolean; /** * Trigger validation but do not display error messages. * - * @param field Optional field object, its selector or zero-based index to check. Only has effect with fields collection and skips other fields. + * @param field Optional field object, its selector or zero-based index to check. Only has effect with fields collection and skips other fields. */ isValid(field?: Object): boolean; @@ -91873,7 +95062,7 @@ interface IgValidatorMethods { * Hide any possible message(s) (either messageTarget or igNotifier). * Note: When the validator has a fields colleciton, not passing a field will hide messages on all fields. * - * @param field Optional field object, its selector or zero-based index to hide message for. + * @param field Optional field object, its selector or zero-based index to hide message for. */ hide(field?: Object): void; @@ -91881,7 +95070,7 @@ interface IgValidatorMethods { * Gets all current error messages for invalid field(s). Note that this method does not valdiate and states and messages are only updated on validation, so * this can be used on formValidated event or after validate/isValid method calls. * - * @param field Optional field object, selector or zero-based index for a single field to get error message for. + * @param field Optional field object, selector or zero-based index for a single field to get error message for. */ getErrorMessages(field?: Object): any[]; @@ -91889,36 +95078,36 @@ interface IgValidatorMethods { * Check for currently displayed message(s). Takes an optional field. * Note: When the validator has a fields colleciton, not passing a field will return a cumulative true even if just one field has a visible message. * - * @param field Optional field object, selector or zero-based index for a single field to get error message for. + * @param field Optional field object, selector or zero-based index for a single field to get error message for. */ isMessageDisplayed(field?: Object): boolean; /** * Gets the notifier for the igValidator or for a single filed. * - * @param field Optional field object, its selector or zero-based index to get notifier for. + * @param field Optional field object, its selector or zero-based index to get notifier for. */ notifier(field?: Object): Object; /** * Adds an new input to the fields collection and initializes it with the validator. Note: Additional fields are only accepted if the validator has been created with the collection. * - * @param field An object with the field selector and options. + * @param field An object with the field selector and options. */ addField(field: Object): void; /** * Removes an input from the fields collection. * - * @param field The field object to remove, its zero-based index or selector. + * @param field The field object to remove, its zero-based index or selector. */ removeField(field: Object): void; /** * Updates a field in the validator collection. Used to reinitialize field in case a control has been created after the validator or to pass in new options. * - * @param field The field object to update, its zero-based index or selector. - * @param fieldOptions New options to apply to the field. + * @param field The field object to update, its zero-based index or selector. + * @param fieldOptions New options to apply to the field. */ updateField(field: Object, fieldOptions?: Object): void; @@ -91934,6 +95123,7 @@ interface JQuery { declare namespace Infragistics { class IgValidatorBaseRule { constructor(name: string); + constructor(formatItems: any[]); /** @@ -91954,15 +95144,15 @@ class IgValidatorBaseRule { /** * Formats an error message using rule-specific values (usually from formatItems). * - * @param message The unformatted error message the validator intends to display. + * @param message The unformatted error message the validator intends to display. */ formatMessage(message: string): string; /** * Validates a value against this rule and returns the result. * - * @param options Options for the validator, if fields are used this parameter is already populated with inherited ones. - * @param value The value to check. + * @param options Options for the validator, if fields are used this parameter is already populated with inherited ones. + * @param value The value to check. */ isValid(options: Object, value: Object): boolean; } @@ -91974,8 +95164,11 @@ IgValidatorBaseRule: typeof Infragistics.IgValidatorBaseRule; declare namespace Infragistics { class IgValidatorRequiredRule { constructor(name: string); + constructor(groupTypes: any[]); + constructor(groupMessageName: string); + constructor(formatItems: any[]); getMessageType(options: Object): void; isValid(options: Object, value: Object): void; @@ -91990,7 +95183,7 @@ class IgValidatorRequiredRule { /** * Formats an error message using rule-specific values (usually from formatItems). * - * @param message The unformatted error message the validator intends to display. + * @param message The unformatted error message the validator intends to display. */ formatMessage(message: string): string; } @@ -92002,6 +95195,7 @@ IgValidatorRequiredRule: typeof Infragistics.IgValidatorRequiredRule; declare namespace Infragistics { class IgValidatorControlRule { constructor(name: string); + constructor(formatItems: any[]); getMessageType(): void; @@ -92016,7 +95210,7 @@ class IgValidatorControlRule { /** * Formats an error message using rule-specific values (usually from formatItems). * - * @param message The unformatted error message the validator intends to display. + * @param message The unformatted error message the validator intends to display. */ formatMessage(message: string): string; } @@ -92028,6 +95222,7 @@ IgValidatorControlRule: typeof Infragistics.IgValidatorControlRule; declare namespace Infragistics { class IgValidatorNumberRule { constructor(name: string); + constructor(formatItems: any[]); isValid(options: Object, value: Object): void; @@ -92049,7 +95244,7 @@ class IgValidatorNumberRule { /** * Formats an error message using rule-specific values (usually from formatItems). * - * @param message The unformatted error message the validator intends to display. + * @param message The unformatted error message the validator intends to display. */ formatMessage(message: string): string; } @@ -92061,6 +95256,7 @@ IgValidatorNumberRule: typeof Infragistics.IgValidatorNumberRule; declare namespace Infragistics { class IgValidatorDateRule { constructor(name: string); + constructor(formatItems: any[]); isValid(options: Object, value: Object): void; @@ -92082,7 +95278,7 @@ class IgValidatorDateRule { /** * Formats an error message using rule-specific values (usually from formatItems). * - * @param message The unformatted error message the validator intends to display. + * @param message The unformatted error message the validator intends to display. */ formatMessage(message: string): string; } @@ -92094,6 +95290,7 @@ IgValidatorDateRule: typeof Infragistics.IgValidatorDateRule; declare namespace Infragistics { class IgValidatorLengthRule { constructor(name: string); + constructor(formatItems: any[]); getMessageType(): void; isValid(options: Object, value: Object): void; @@ -92108,7 +95305,7 @@ class IgValidatorLengthRule { /** * Formats an error message using rule-specific values (usually from formatItems). * - * @param message The unformatted error message the validator intends to display. + * @param message The unformatted error message the validator intends to display. */ formatMessage(message: string): string; } @@ -92120,6 +95317,7 @@ IgValidatorLengthRule: typeof Infragistics.IgValidatorLengthRule; declare namespace Infragistics { class IgValidatorValueRule { constructor(name: string); + constructor(formatItems: any[]); getMessageType(): void; isValid(options: Object, value: Object): void; @@ -92132,6 +95330,7 @@ IgValidatorValueRule: typeof Infragistics.IgValidatorValueRule; declare namespace Infragistics { class IgValidatorEqualToRule { constructor(name: string); + constructor(formatItems: any[]); isValid(options: Object, value: Object): void; @@ -92153,7 +95352,7 @@ class IgValidatorEqualToRule { /** * Formats an error message using rule-specific values (usually from formatItems). * - * @param message The unformatted error message the validator intends to display. + * @param message The unformatted error message the validator intends to display. */ formatMessage(message: string): string; } @@ -92165,6 +95364,7 @@ IgValidatorEqualToRule: typeof Infragistics.IgValidatorEqualToRule; declare namespace Infragistics { class IgValidatorEmailRule { constructor(name: string); + constructor(formatItems: any[]); isValid(options: Object, value: Object): void; @@ -92186,7 +95386,7 @@ class IgValidatorEmailRule { /** * Formats an error message using rule-specific values (usually from formatItems). * - * @param message The unformatted error message the validator intends to display. + * @param message The unformatted error message the validator intends to display. */ formatMessage(message: string): string; } @@ -92198,6 +95398,7 @@ IgValidatorEmailRule: typeof Infragistics.IgValidatorEmailRule; declare namespace Infragistics { class IgValidatorPatternRule { constructor(name: string); + constructor(formatItems: any[]); isValid(options: Object, value: Object): void; @@ -92219,7 +95420,7 @@ class IgValidatorPatternRule { /** * Formats an error message using rule-specific values (usually from formatItems). * - * @param message The unformatted error message the validator intends to display. + * @param message The unformatted error message the validator intends to display. */ formatMessage(message: string): string; } @@ -92231,6 +95432,7 @@ IgValidatorPatternRule: typeof Infragistics.IgValidatorPatternRule; declare namespace Infragistics { class IgValidatorCustomRule { constructor(name: string); + constructor(formatItems: any[]); getMessageType(): void; isValid(options: Object, value: Object): void; @@ -92245,7 +95447,7 @@ class IgValidatorCustomRule { /** * Formats an error message using rule-specific values (usually from formatItems). * - * @param message The unformatted error message the validator intends to display. + * @param message The unformatted error message the validator intends to display. */ formatMessage(message: string): string; } @@ -92257,12 +95459,13 @@ IgValidatorCustomRule: typeof Infragistics.IgValidatorCustomRule; declare namespace Infragistics { class IgValidatorCreditCardRule { constructor(name: string); + constructor(formatItems: any[]); /** * Based on ASP.NET CreditCardAttribute check, * https://github.com/Microsoft/referencesource/blob/master/System.ComponentModel.DataAnnotations/DataAnnotations/CreditCardAttribute.cs - * using Luhn algorithm https://en.wikipedia.org/wiki/Luhn_algorithm + * using Luhn algorithm https://en.wikipedia.org/wiki/Luhn_algorithm * * @param options * @param value @@ -92287,7 +95490,7 @@ class IgValidatorCreditCardRule { /** * Formats an error message using rule-specific values (usually from formatItems). * - * @param message The unformatted error message the validator intends to display. + * @param message The unformatted error message the validator intends to display. */ formatMessage(message: string): string; } @@ -92360,6 +95563,7 @@ interface JQuery { * Gets/Sets option to validate if a value was entered (not empty text, selected item, etc.) * */ + igValidator(optionLiteral: 'option', optionName: "required"): boolean|Object; /** @@ -92368,44 +95572,46 @@ interface JQuery { * * @optionValue New value to be set. */ + igValidator(optionLiteral: 'option', optionName: "required", optionValue: boolean|Object): void; /** * Gets/Sets number validation rule options.Default separators for decimals and thousands are '.' and ',' respectively and are defined in the "$.ui.igValidator.defaults" object. * - * */ + igValidator(optionLiteral: 'option', optionName: "number"): boolean|Object; /** * /Sets number validation rule options.Default separators for decimals and thousands are '.' and ',' respectively and are defined in the "$.ui.igValidator.defaults" object. * * - * * @optionValue New value to be set. */ + igValidator(optionLiteral: 'option', optionName: "number", optionValue: boolean|Object): void; /** * Gets/Sets date validation rule options. This can additionally help guide the [valueRange](ui.igvalidator#options:valueRange) validation.Note: Dependat on JavaScript Date parsing which will accept a wide range of values. * - * */ + igValidator(optionLiteral: 'option', optionName: "date"): boolean|Object; /** * /Sets date validation rule options. This can additionally help guide the [valueRange](ui.igvalidator#options:valueRange) validation.Note: Dependat on JavaScript Date parsing which will accept a wide range of values. * * - * * @optionValue New value to be set. */ + igValidator(optionLiteral: 'option', optionName: "date", optionValue: boolean|Object): void; /** * Gets/Sets email validation rule options. Uses a RegExp defined in the "$.ui.igValidator.defaults" object. * */ + igValidator(optionLiteral: 'option', optionName: "email"): boolean|Object; /** @@ -92414,12 +95620,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igValidator(optionLiteral: 'option', optionName: "email", optionValue: boolean|Object): void; /** * Gets/Sets a minimum and/or maximum length of text or number of selected items. Null or 0 values are ignored. * */ + igValidator(optionLiteral: 'option', optionName: "lengthRange"): Array|Object; /** @@ -92428,12 +95636,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igValidator(optionLiteral: 'option', optionName: "lengthRange", optionValue: Array|Object): void; /** * Gets/Sets a minimum and/or maximum value. Null values are ignored. * */ + igValidator(optionLiteral: 'option', optionName: "valueRange"): Array|Object; /** @@ -92442,28 +95652,30 @@ interface JQuery { * * @optionValue New value to be set. */ + igValidator(optionLiteral: 'option', optionName: "valueRange", optionValue: Array|Object): void; /** * Gets/Sets Credit Card number validation rule options.Note: This rule will only validate the checksum of the number using Luhn algorithm irregardless of card type. * - * */ + igValidator(optionLiteral: 'option', optionName: "creditCard"): boolean|Object; /** * /Sets Credit Card number validation rule options.Note: This rule will only validate the checksum of the number using Luhn algorithm irregardless of card type. * * - * * @optionValue New value to be set. */ + igValidator(optionLiteral: 'option', optionName: "creditCard", optionValue: boolean|Object): void; /** * Gets/Sets regular expression validation rule options. * */ + igValidator(optionLiteral: 'option', optionName: "pattern"): string|Object; /** @@ -92472,6 +95684,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igValidator(optionLiteral: 'option', optionName: "pattern", optionValue: string|Object): void; /** @@ -92536,6 +95749,7 @@ interface JQuery { * Gets/Sets a requirement for the value in this field to be the same as another input element or editor control. * */ + igValidator(optionLiteral: 'option', optionName: "equalTo"): string|Object; /** @@ -92544,12 +95758,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igValidator(optionLiteral: 'option', optionName: "equalTo", optionValue: string|Object): void; /** * Gets/Sets a custom function to perform validation. Use 'this' to reference the calling validator and the value and optional field settings arguments to determine and return the state of the field. * */ + igValidator(optionLiteral: 'option', optionName: "custom"): Function|string|Object; /** @@ -92558,6 +95774,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igValidator(optionLiteral: 'option', optionName: "custom", optionValue: Function|string|Object): void; /** @@ -93776,21 +96993,21 @@ interface IgVideoPlayerMethods { /** * Play a linked commercial for this video. * - * @param commercial Specify the linked commercial to play. + * @param commercial Specify the linked commercial to play. */ playCommercial(commercial: Object): void; /** * Shows the ad banner, if there is such. * - * @param index Specify the index of the banner from the banners array. + * @param index Specify the index of the banner from the banners array. */ showBanner(index: number): void; /** * Hide the ad banner, if there is such. * - * @param index Specify the index of the banner from the banners array. + * @param index Specify the index of the banner from the banners array. */ hideBanner(index: number): void; @@ -93817,14 +97034,14 @@ interface IgVideoPlayerMethods { /** * Gets/Sets the current time of the playing video. * - * @param val Specify the playback position in seconds to navigate to. + * @param val Specify the playback position in seconds to navigate to. */ currentTime(val: number): number; /** * Get a screenshot of the current video frame. It returns a canvas object that you can position and show on the page. This depends on the browser support for canvas. * - * @param scaleFactor Specify scale factor between 0 and 1. + * @param scaleFactor Specify scale factor between 0 and 1. */ screenshot(scaleFactor?: number): Object; @@ -93917,6 +97134,7 @@ interface JQuery { * Gets/Sets the width of the control. By default null will stretch the control to fit data, if no other widths are defined. * */ + igVideoPlayer(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -93925,12 +97143,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igVideoPlayer(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets/Sets the height of the control. By default null will stretch the control to fit data, if no other heights are defined. * */ + igVideoPlayer(optionLiteral: 'option', optionName: "height"): string|number; /** @@ -93939,6 +97159,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igVideoPlayer(optionLiteral: 'option', optionName: "height", optionValue: string|number): void; /** @@ -94518,6 +97739,10 @@ interface ZoomChangingEvent { } interface ZoomChangingEventUIParam { + /** + * Gets reference to igZoombar. + */ + owner?: any; } interface ZoomChangedEvent { @@ -94525,6 +97750,10 @@ interface ZoomChangedEvent { } interface ZoomChangedEventUIParam { + /** + * Gets reference to the igZoombar. + */ + owner?: any; } interface ProviderCreatedEvent { @@ -94532,6 +97761,15 @@ interface ProviderCreatedEvent { } interface ProviderCreatedEventUIParam { + /** + * Gets a reference to the created provider. + */ + provider?: any; + + /** + * Gets reference to the igZoombar. + */ + owner?: any; } interface WindowDragStartingEvent { @@ -94539,6 +97777,10 @@ interface WindowDragStartingEvent { } interface WindowDragStartingEventUIParam { + /** + * Gets reference to the igZoombar. + */ + owner?: any; } interface WindowDragStartedEvent { @@ -94546,6 +97788,10 @@ interface WindowDragStartedEvent { } interface WindowDragStartedEventUIParam { + /** + * Gets reference to the igZoombar. + */ + owner?: any; } interface WindowDraggingEvent { @@ -94553,6 +97799,10 @@ interface WindowDraggingEvent { } interface WindowDraggingEventUIParam { + /** + * Gets reference to the igZoombar. + */ + owner?: any; } interface WindowDragEndingEvent { @@ -94560,6 +97810,10 @@ interface WindowDragEndingEvent { } interface WindowDragEndingEventUIParam { + /** + * Gets reference to the igZoombar. + */ + owner?: any; } interface WindowDragEndedEvent { @@ -94567,6 +97821,10 @@ interface WindowDragEndedEvent { } interface WindowDragEndedEventUIParam { + /** + * Gets reference to the igZoombar. + */ + owner?: any; } interface WindowResizingEvent { @@ -94574,6 +97832,10 @@ interface WindowResizingEvent { } interface WindowResizingEventUIParam { + /** + * Gets reference to the igZoombar. + */ + owner?: any; } interface IgZoombar { @@ -94751,8 +98013,8 @@ interface IgZoombarMethods { /** * Gets or sets the current zoom window * - * @param left The left parameter of the new zoom window in percentages - * @param width The width parameter of the new zoom window in percentages + * @param left The left parameter of the new zoom window in percentages + * @param width The width parameter of the new zoom window in percentages */ zoom(left?: number, width?: number): Object; } @@ -94798,22 +98060,22 @@ class ZoombarProviderDefault { /** * Gets basic options for initializing the clone, based on the options the target is initialized with * - * @param options if the Zoombar has a copy of the options object it'll pass it to the provider + * @param options if the Zoombar has a copy of the options object it'll pass it to the provider */ getBaseOpts(options: Object): void; /** * Alters specific options so that the the clone is more suitable for its purpose * - * @param options the base options of the widget obtained from getBaseOpts + * @param options the base options of the widget obtained from getBaseOpts */ cleanOptsForZoom(options: Object): void; /** * Will be called by the Zoombar if a clone of the target widget should be created * - * @param container a jQuery wrapped element to create the clone component in - * @param options the options that are obtained from cleanOptsForZoom + * @param container a jQuery wrapped element to create the clone component in + * @param options the options that are obtained from cleanOptsForZoom */ createClone(container: Object, options: Object): void; @@ -94830,22 +98092,22 @@ class ZoombarProviderDefault { /** * Sets the target widget min window width (to be in sync with the same property of the zoombar) * - * @param minWidth a number from 0 to 1 representing the minimal width (i.e. maximal zoom) the zoom window can take as a fraction of the total one + * @param minWidth a number from 0 to 1 representing the minimal width (i.e. maximal zoom) the zoom window can take as a fraction of the total one */ syncMinWidth(minWidth: number): void; /** * Sets the width and height of the clone component * - * @param width The width to set in pixels or string (px or % -affixed). - * @param height The height to set in pixels or string (px or % -affixed). + * @param width The width to set in pixels or string (px or % -affixed). + * @param height The height to set in pixels or string (px or % -affixed). */ setSize(width: Object, height: Object): void; /** * Gets/sets the target object * - * @param obj the new target component instance to set + * @param obj the new target component instance to set */ targetObject(obj?: Object): void; @@ -94908,6 +98170,7 @@ interface JQuery { * object A valid jQuery object, the first element of which is that element. * */ + igZoombar(optionLiteral: 'option', optionName: "target"): string|Object; /** @@ -94917,6 +98180,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igZoombar(optionLiteral: 'option', optionName: "target", optionValue: string|Object): void; /** @@ -94924,6 +98188,7 @@ interface JQuery { * object A valid set of properties to initialize the clone with. * */ + igZoombar(optionLiteral: 'option', optionName: "clone"): string|Object; /** @@ -94933,12 +98198,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igZoombar(optionLiteral: 'option', optionName: "clone", optionValue: string|Object): void; /** * Gets the width of the Zoombar. * */ + igZoombar(optionLiteral: 'option', optionName: "width"): string|number; /** @@ -94947,12 +98214,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igZoombar(optionLiteral: 'option', optionName: "width", optionValue: string|number): void; /** * Gets the height of the Zoombar. * */ + igZoombar(optionLiteral: 'option', optionName: "height"): number|string; /** @@ -94961,12 +98230,14 @@ interface JQuery { * * @optionValue New value to be set. */ + igZoombar(optionLiteral: 'option', optionName: "height", optionValue: number|string): void; /** * Gets when the zoom effect is applied. * */ + igZoombar(optionLiteral: 'option', optionName: "zoomAction"): string; /** @@ -94975,6 +98246,7 @@ interface JQuery { * * @optionValue New value to be set. */ + igZoombar(optionLiteral: 'option', optionName: "zoomAction", optionValue: string): void; /** diff --git a/types/intercom-web/index.d.ts b/types/intercom-web/index.d.ts new file mode 100755 index 0000000000..1eb038bd07 --- /dev/null +++ b/types/intercom-web/index.d.ts @@ -0,0 +1,57 @@ +// Type definitions for Intercom Web API 2.8 +// Project: https://docs.intercom.io/ +// configure-intercom-for-your-product-or-site/ +// customize-the-intercom-messenger/the-intercom-javascript-api +// Definitions by: Andrew Fong +// Samer Albahra +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace Intercom_ { + interface IntercomSettings { + app_id?: string; + email?: string; + created_at?: number; + name?: string; + user_id?: string; + user_hash?: string; + widget?: { + activator?: string; + }; + company?: { + id: string|number, + name: string, + created_at: number, + plan?: string, + monthly_spend?: number, + [index: string]: any; + }; + } + + type IntercomCommand = 'boot' + |'shutdown' + |'update' + |'hide' + |'show' + |'showMessages' + |'showNewMessage' + |'onHide' + |'onShow' + |'onActivatorClick' + |'trackEvent'; + + interface IntercomStatic { + (command: 'boot', param: IntercomSettings): void; + (command: 'shutdown' | 'hide' | 'show' | 'showMessages'): void; + (command: 'update', param?: IntercomSettings): void; + (command: 'showNewMessage', param?: string): void; + (command: 'onHide' | 'onShow' | 'onActivatorClick', param?: () => void): void; + (command: 'trackEvent', tag?: string, metadata?: any): void; + (command: IntercomCommand, param1?: any, param2?: any): void; + } +} + +declare var Intercom: Intercom_.IntercomStatic; +declare var intercomSettings: Intercom_.IntercomSettings; +interface Window { + intercomSettings: Intercom_.IntercomSettings; +} diff --git a/types/intercom-web/intercom-web-tests.ts b/types/intercom-web/intercom-web-tests.ts new file mode 100755 index 0000000000..22eeddc8fa --- /dev/null +++ b/types/intercom-web/intercom-web-tests.ts @@ -0,0 +1,62 @@ +/* + From https://docs.intercom.io/configure-intercom-for-your-product-or-site/ + customize-the-intercom-messenger/the-intercom-javascript-api +*/ +intercomSettings = { + email: "example@example.com", + name: "John Doe", + user_id: "123", + created_at: 1234567890, + app_id: "YOUR_APP_ID", + widget: { + activator: "#Intercom" + } +}; + +Intercom('boot', intercomSettings); +Intercom('shutdown'); +Intercom('update'); +Intercom('update', intercomSettings); +Intercom('hide'); +Intercom('show'); +Intercom('showMessages'); +Intercom('showNewMessage'); +Intercom('showNewMessage', 'pre-populated content'); +Intercom('onHide', () => { /* Do stuff */ }); +Intercom('onActivatorClick', () => { /* Do stuff */ }); +Intercom('trackEvent', 'invited-friend'); + +const metadata = { + invitee_email: 'pi@example.org', + invite_code: 'ADDAFRIEND' +}; +Intercom('trackEvent', 'invited-friend', metadata); + +/* + From https://docs.intercom.io/configure-intercom-for-your-product-or-site/ + customize-intercom-to-be-about-your-users/ + group-your-users-by-company +*/ +intercomSettings = { + email: "example@example.com", + created_at: 1457552104, + app_id: "pi3243fa", + company: { + id: '123', + name: 'Intercorp', + created_at: 1234567890, + plan: 'pro', + monthly_spend: 10, + upgraded_at: 1424941688 + } +}; + +/* + From https://docs.intercom.io/configure-intercom-for-your-product-or-site/ + staying-secure/enable-secure-mode-on-your-web-product +*/ +intercomSettings = { + app_id: "pi3243fa", + user_id: "12345", + user_hash: "775c502lcc1087d12398571837c" +}; diff --git a/types/intercom-web/tsconfig.json b/types/intercom-web/tsconfig.json new file mode 100755 index 0000000000..d11c606183 --- /dev/null +++ b/types/intercom-web/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "intercom-web-tests.ts" + ] +} diff --git a/types/intercom-web/tslint.json b/types/intercom-web/tslint.json new file mode 100644 index 0000000000..2750cc0197 --- /dev/null +++ b/types/intercom-web/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/jasmine-enzyme/index.d.ts b/types/jasmine-enzyme/index.d.ts index df8d9aaf16..2d07ac3afe 100644 --- a/types/jasmine-enzyme/index.d.ts +++ b/types/jasmine-enzyme/index.d.ts @@ -7,24 +7,29 @@ /// /// -declare namespace jasmine { - interface Matchers { - toBeChecked(): boolean; - toBeDisabled(): boolean; - toBeEmpty(): boolean; - toBePresent(): boolean; - toContainReact(reactInstance: JSX.Element): boolean; - toHaveClassName(className: string): boolean; - toHaveHTML(html: string): boolean; - toHaveProp(propKey: string, propValue?: any): boolean; - toHaveRef(refName: string): string; - toHaveState(stateKey: string, stateValue?: any): boolean; - toHaveStyle(styleKey: string, styleValue?: any): boolean; - toHaveTagName(tagName: string): boolean; - toHaveText(text?: string): boolean; - toIncludeText(text: string): boolean; - toHaveValue(value: any): boolean; - toMatchElement(reactInstance: JSX.Element): boolean; - toMatchSelector(selector: string): boolean; +declare function jasmineEnzyme(): void; +export default jasmineEnzyme; + +declare global { + namespace jasmine { + interface Matchers { + toBeChecked(): boolean; + toBeDisabled(): boolean; + toBeEmpty(): boolean; + toBePresent(): boolean; + toContainReact(reactInstance: JSX.Element): boolean; + toHaveClassName(className: string): boolean; + toHaveHTML(html: string): boolean; + toHaveProp(propKey: string, propValue?: any): boolean; + toHaveRef(refName: string): string; + toHaveState(stateKey: string, stateValue?: any): boolean; + toHaveStyle(styleKey: string, styleValue?: any): boolean; + toHaveTagName(tagName: string): boolean; + toHaveText(text?: string): boolean; + toIncludeText(text: string): boolean; + toHaveValue(value: any): boolean; + toMatchElement(reactInstance: JSX.Element): boolean; + toMatchSelector(selector: string): boolean; + } } } diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 3c9eb27d93..cf6f2eeb0b 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Jest 20.0 +// Type definitions for Jest 21.1 // Project: http://facebook.github.io/jest/ // Definitions by: Asana // Ivo Stratev @@ -7,6 +7,7 @@ // Alex Jover Morales // Allan Lukwago // Ika +// Waseem Dahman // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 @@ -60,6 +61,14 @@ declare namespace jest { * Equivalent to calling .mockClear() on every mocked function. */ function resetAllMocks(): typeof jest; + /** + * available since Jest 21.1.0 + * Restores all mocks back to their original value. + * Equivalent to calling .mockRestore on every mocked function. + * Beware that jest.restoreAllMocks() only works when mock was created with + * jest.spyOn; other mocks will require you to manually restore them. + */ + function restoreAllMocks(): typeof jest; /** * Removes any pending timers from the timer system. If any timers have * been scheduled, they will be cleared and will never have the opportunity @@ -319,6 +328,10 @@ declare namespace jest { * Matches any string that contains the exact provided string */ stringMatching(str: string | RegExp): any; + /** + * Matches any received string that contains the exact expected string + */ + stringContaining(str: string): any; } interface Matchers { @@ -353,8 +366,9 @@ declare namespace jest { /** * Using exact equality with floating point numbers is a bad idea. * Rounding means that intuitive things fail. + * The default for numDigits is 2. */ - toBeCloseTo(expected: number, delta?: number): R; + toBeCloseTo(expected: number, numDigits?: number): R; /** * Ensure that a variable is not undefined. */ diff --git a/types/jest/jest-tests.ts b/types/jest/jest-tests.ts index ff01b154ad..a6d062a148 100644 --- a/types/jest/jest-tests.ts +++ b/types/jest/jest-tests.ts @@ -17,6 +17,12 @@ describe('sum', () => { }); }); +describe('restoreAllMocks', () => { + afterEach(() => { + jest.restoreAllMocks(); + }); +}); + describe('fetchCurrentUser', () => { it('calls the callback when $.ajax requests are finished', () => { const fetchCurrentUser = require('../fetchCurrentUser'); @@ -193,10 +199,14 @@ describe('Assymetric matchers', () => { it('works', () => { expect({ timestamp: 1480807810388, - text: 'Some text content, but we care only about *this part*' + text: 'Some text content, but we care only about *this part*', + color: '#bada55', + greeting: 'hello, world!', }).toEqual({ timestamp: expect.any(Number), - text: expect.stringMatching('*this part*') + text: expect.stringMatching('*this part*'), + color: expect.stringMatching(/^#?([0-9a-f]{3}|[0-9a-f]{6})$/i), + greeting: expect.stringContaining('hello'), }); const callback = jest.fn(); diff --git a/types/jointjs/tsconfig.json b/types/jointjs/tsconfig.json index 8a67eaf271..cb169471f2 100644 --- a/types/jointjs/tsconfig.json +++ b/types/jointjs/tsconfig.json @@ -19,4 +19,4 @@ "files": [ "index.d.ts" ] -} \ No newline at end of file +} diff --git a/types/jquery.fancytree/index.d.ts b/types/jquery.fancytree/index.d.ts index f4e6ac7be8..34d90d9e8f 100644 --- a/types/jquery.fancytree/index.d.ts +++ b/types/jquery.fancytree/index.d.ts @@ -190,6 +190,13 @@ declare namespace Fancytree { /** Write warning to browser console (prepending tree info) */ warn(msg: any): void; + + /** Temporarily suppress rendering to improve performance on bulk-updates. + * + * @param {boolean} flag + * @returns {boolean} previous status + * @since 2.19 */ + enableUpdate(enabled: boolean): void; } /** A FancytreeNode represents the hierarchical data model and operations. */ diff --git a/types/jquery.simplepagination/index.d.ts b/types/jquery.simplepagination/index.d.ts index 14a8cc612b..09e4791560 100644 --- a/types/jquery.simplepagination/index.d.ts +++ b/types/jquery.simplepagination/index.d.ts @@ -7,34 +7,232 @@ /// interface SimplePaginationOptions { + /** + * Total number of items that will be used to calculate the pages. + * + * @type {number} + * @memberof SimplePaginationOptions + */ items?: number; + /** + * Number of items displayed on each page. + * + * @type {number} + * @memberof SimplePaginationOptions + */ itemsOnPage?: number; + /** + * If specified, items and itemsOnPage will not be used to calculate the number of pages. + * + * @type {number} + * @memberof SimplePaginationOptions + */ pages?: number; + /** + * How many page numbers should be visible while navigating. + * Minimum allowed: 3 (previous, current & next) + * + * @type {number} + * @memberof SimplePaginationOptions + */ displayedPages?: number; + /** + * How many page numbers are visible at the beginning/ending of the pagination. + * + * @type {number} + * @memberof SimplePaginationOptions + */ edges?: number; + /** + * Which page will be selected immediately after init. + * + * @type {number} + * @memberof SimplePaginationOptions + */ currentPage?: number; + /** + * A string used to build the href attribute, added before the page number. + * + * @type {string} + * @memberof SimplePaginationOptions + */ hrefTextPrefix?: string; + /** + * Another string used to build the href attribute, added after the page number. + * + * @type {string} + * @memberof SimplePaginationOptions + */ hrefTextSuffix?: string; + /** + * Text to be display on the previous button. + * + * @type {string} + * @memberof SimplePaginationOptions + */ prevText?: string; + /** + * Text to be display on the next button. + * + * @type {string} + * @memberof SimplePaginationOptions + */ nextText?: string; + /** + * The class of the CSS theme. + * + * @type {string} + * @memberof SimplePaginationOptions + */ cssStyle?: string; + /** + * Set to false if you don't want to select the page immediately after click. + * + * @type {boolean} + * @memberof SimplePaginationOptions + */ selectOnClick?: boolean; + useAnchors?: boolean, + ellipseText?: string; + /** + * When this option is true, + * clicking on the ellipse will replace the ellipse + * with a number type input in which you can manually set the resulting page. + * + * @type {boolean} + * @memberof SimplePaginationOptions + */ + ellipsePageSet?: boolean; + listStyle?: boolean; + /** + * A collection of labels that will be used to render the pagination items, replacing the numbers. + * + * @type {any[]} + * @memberof SimplePaginationOptions + */ + labelMap?: any[]; + nextAtFront?: boolean; + invertPageOrder?: boolean; + useStartEdge?: boolean; + useEndEdge?: boolean; + /** + * Function to call when a page is clicked. + * Page number and event are optional parameters. + * + * @memberof SimplePaginationOptions + */ onPageClick?: (page: number, event: any) => void; + /** + * Function to call when the pagination is initialized. + * + * @memberof SimplePaginationOptions + */ onInit?: () => void; } interface JQuery { pagination(options?: SimplePaginationOptions): JQuery; + /** + * selectPage - Select a page based on page number. + * + * @param selectPage + * @param {number} pageNumber + * @memberof JQuery + */ pagination(method: 'selectPage', pageNumber: number): void; - pagination(method: 'prevPage'): void; - pagination(method: 'nextPage'): void; + /** + * prevPage - Selects the previous page. + * + * @param prevPage + * @returns {JQuery} + * @memberof JQuery + */ + pagination(method: 'prevPage'): JQuery; + /** + * nextPage - Select the next page. + * + * @param nextPage + * @returns {JQuery} + * @memberof JQuery + */ + pagination(method: 'nextPage'): JQuery; + pagination(method: 'selectPage'): JQuery; + /** + * getPagesCount - Returns the total number of pages. + * + * @param getPagesCount + * @returns {number} + * @memberof JQuery + */ pagination(method: 'getPagesCount'): number; + pagination(method: 'setPagesCount', count: number): void; + /** + * getCurrentPage - Returns the current page number. + * + * @param getCurrentPage + * @returns {number} + * @memberof JQuery + */ pagination(method: 'getCurrentPage'): number; - pagination(method: 'disable'): void; - pagination(method: 'enable'): void; - pagination(method: 'destroy'): void; - pagination(method: 'redraw'): void; + /** + * disable - Disables pagination functionality. + * + * @param disable + * @returns {JQuery} + * @memberof JQuery + */ + pagination(method: 'disable'): JQuery; + /** + * enable - Enables the pagination after it was previously disabled. + * + * @param enable + * @returns {JQuery} + * @memberof JQuery + */ + pagination(method: 'enable'): JQuery; + /** + * destroy - Visually destroys the pagination, any existing settings are kept. + * + * @param destroy + * @returns {JQuery} + * @memberof JQuery + */ + pagination(method: 'destroy'): JQuery; + /** + * redraw - The pagination is drawn again using the existing settings. (useful after you have destroyed a pagination for example) + * + * @param redraw + * @returns {JQuery} + * @memberof JQuery + */ + pagination(method: 'redraw'): JQuery; + /** + * drawPage - takes a page number as a parameter and it sets the "currentPage" value to the given page number and draws the pagination + * + * @param drawPage + * @param {number} pageNumber + * @returns {JQuery} + * @memberof JQuery + */ + pagination(method: 'drawPage', pageNumber: number): JQuery; + /** + * updateItems - allows to dynamically change how many items are rendered by the pagination + * + * @param updateItems + * @param {number} items + * @memberof JQuery + */ pagination(method: 'updateItems', items: number): void; + /** + * updateItemsOnPage - allows to dynamically change how many items are rendered on each page + * + * @param updateItemsOnPage + * @param {number} itemsOnPage + * @returns {JQuery} + * @memberof JQuery + */ + pagination(method: 'updateItemsOnPage', itemsOnPage: number): JQuery; + pagination(method: 'getItemsOnPage'): number; pagination(method: string): any; pagination(method: string, value: any): any; } diff --git a/types/jquery/index.d.ts b/types/jquery/index.d.ts index 4a835896ed..e557103e47 100644 --- a/types/jquery/index.d.ts +++ b/types/jquery/index.d.ts @@ -85,7 +85,7 @@ interface JQueryStatic { * @since 1.3 */ off: boolean; - step: JQuery.PlainObject>; + step: JQuery.PlainObject>; }; /** * A Promise-like object (or "thenable") that resolves when the document is ready. @@ -4754,7 +4754,7 @@ interface JQuery extends Iterable * @see {@link https://api.jquery.com/queue/} * @since 1.2 */ - queue(queueName?: string): JQuery.Queue; + queue(queueName?: string): JQuery.Queue; /** * Specify a function to execute when the DOM is fully loaded. * diff --git a/types/jquery/jquery-tests.ts b/types/jquery/jquery-tests.ts index 4c296a1670..0694ce2502 100644 --- a/types/jquery/jquery-tests.ts +++ b/types/jquery/jquery-tests.ts @@ -94,7 +94,7 @@ function JQueryStatic() { } function step() { - // $ExpectType PlainObject> + // $ExpectType PlainObject> $.fx.step; } } @@ -3375,10 +3375,10 @@ function JQuery() { } ]); - // $ExpectType Queue + // $ExpectType Queue $('p').queue('myQueue'); - // $ExpectType Queue + // $ExpectType Queue $('p').queue(); } diff --git a/types/jquery/test/example-tests.ts b/types/jquery/test/example-tests.ts index 5d4e27d970..f32a2c3723 100644 --- a/types/jquery/test/example-tests.ts +++ b/types/jquery/test/example-tests.ts @@ -3061,7 +3061,7 @@ function examples() { type: 'dog', // Note that event comes *after* one and two - test: function(one: typeof you, two: typeof they, event: JQuery.Event) { + test: function(one: typeof you, two: typeof they, event: JQuery.Event) { $('#log') // `one` maps to `you`, the 1st additional @@ -3081,7 +3081,7 @@ function examples() { // The clicked element is `event.target`, // and its type is "button" - .append('the ' + event.target.type + '.'); + .append('the ' + (event.target as HTMLButtonElement).type + '.'); }, }; diff --git a/types/jquery/test/longdesc-tests.ts b/types/jquery/test/longdesc-tests.ts index d77823ff78..bf63445c16 100644 --- a/types/jquery/test/longdesc-tests.ts +++ b/types/jquery/test/longdesc-tests.ts @@ -1332,7 +1332,7 @@ function longdesc() { function jquery_css_hooks_6() { $.fx.step.someCSSProp = function(fx) { - $.cssHooks.someCSSProp.set(fx.elem, fx.now + fx.unit); + $.cssHooks.someCSSProp.set(fx.elem as HTMLElement, fx.now + fx.unit); }; } diff --git a/types/jqueryui/index.d.ts b/types/jqueryui/index.d.ts index fd04f979cd..f32c55eb48 100644 --- a/types/jqueryui/index.d.ts +++ b/types/jqueryui/index.d.ts @@ -618,7 +618,7 @@ declare namespace JQueryUI { resize?: ResizableEvent; start?: ResizableEvent; stop?: ResizableEvent; - create?: ResizableEvents; + create?: ResizableEvent; } interface Resizable extends Widget, ResizableOptions { diff --git a/types/json-rpc-ws/index.d.ts b/types/json-rpc-ws/index.d.ts index 61d72afcf4..c3023c409e 100644 --- a/types/json-rpc-ws/index.d.ts +++ b/types/json-rpc-ws/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for json-rpc-ws 4.0 // Project: https://www.npmjs.com/package/json-rpc-ws // Definitions by: Nicolas Penin +// Margus Lamp // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 @@ -15,7 +16,7 @@ export class Server extends Base { /** * Start the server */ - start(options?: ws.IServerOptions, callback?: () => void): void; + start(options?: ws.ServerOptions, callback?: () => void): void; server: ws.Server; /** * Stop the server diff --git a/types/jsqrcode/index.d.ts b/types/jsqrcode/index.d.ts new file mode 100644 index 0000000000..fd3948c7b0 --- /dev/null +++ b/types/jsqrcode/index.d.ts @@ -0,0 +1,500 @@ +// Type definitions for jsqrcode 1.0 +// Project: https://github.com/LazarSoft/jsqrcode +// Definitions by: Ricardo Azzi Silva +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function URShift(number: number, bits: number): number; + +interface ResultPointCallback { + foundPossibleResultPoint(point: FinderPattern): void; +} + +declare class AlignmentPattern { + private x: number; + private y: number; + private count: number; + private estimatedModuleSize: number; + + readonly X: number; + readonly Y: number; + readonly EstimatedModuleSize: number; + readonly Count: number; + + constructor(posX: number, posY: number, estimatedModuleSize: number); + + incrementCount(): void; + + aboutEquals(moduleSize: number, i: number, j: number): boolean; +} + +declare class AlignmentPatternFinder { + possibleCenters: AlignmentPattern[]; + crossCheckStateCount: [number, number, number]; + image: Uint8Array; + startX: number; + startY: number; + width: number; + height: number; + moduleSize: number; + resultPointCallback: ResultPointCallback; + + constructor( + image: Uint8Array, startX: number, startY: number, + width: number, height: number, + moduleSize: number, resultPointCallback: ResultPointCallback + ); + + private centerFromEnd(stateCount: number, end: number): number; + + private foundPatternCross(stateCount: number): boolean; + + private handlePossibleCenter(stateCount: number, i: number, j: number): AlignmentPattern; + + find(): AlignmentPattern; +} + +declare class BitMatrix { + private width: number; + private height: number; + + readonly Width: number; + readonly Height: number; + readonly Dimension: number; + + rowSize: number; + bits: number[]; + + constructor(width: number, height?: number); + + get_Renamed(x: number, y: number): boolean; + set_Renamed(x: number, y: number): void; + flip(x: number, y: number): void; + clear(): void; + setRegion(left: number, top: number, width: number, height: number): void; +} + +declare class BitMatrixParser { + bitMatrix: BitMatrix; + parsedVersion: Version; + parsedFormatInfo: FormatInformation; + + constructor(bitMatrix: BitMatrix); + + copyBit(i: number, j: number, versionBits: number): number; + readFormatInformation(): FormatInformation; + readVersion(): Version; + readCodewords(): number[]; +} + +declare class DataBlock { + static getDataBlocks( + rawCodewords: number[], version: Version, ecLevel: ErrorCorrectionLevel + ): DataBlock[]; + + private numDataCodewords: number; + private codewords: number[]; + + readonly NumDataCodewords: number; + readonly Codewords: number[]; + + constructor(numDataCodewords: number, codewords: number[]); +} + +declare class QRCodeDataBlockReader { + blockPointer: number; + bitPointer: number; + dataLength: number; + dataLengthMode: number; + blocks: number[]; + numErrorCorrectionCode: number; + + readonly DataByte: Array; + + constructor(blocks: number[], version: number, numErrorCorrectionCode: number); + + getNextBits(numBits: number): number; + NextMode(): number; + getDataLength(modeIndicator: number): number; + getRomanAndFigureString(dataLength: number): string; + getFigureString(dataLength: number): string; + get8bitByteArray(dataLength: number): number[]; + getKanjiString(dataLength: number): string; + parseECIValue(): number; +} + +declare abstract class DataMask { + private static DATA_MASKS: DataMask[]; + + static forReference(reference: number): DataMask; + + abstract unmaskBitMatrix(bits: number[], dimension: number): void; + + abstract isMasked(i: number, j: number): boolean; +} + +declare class DataMask000 extends DataMask { + unmaskBitMatrix(bits: number[], dimension: number): void; + + isMasked(i: number, j: number): boolean; +} + +declare class DataMask001 extends DataMask { + unmaskBitMatrix(bits: number[], dimension: number): void; + + isMasked(i: number, j: number): boolean; +} + +declare class DataMask010 extends DataMask { + unmaskBitMatrix(bits: number[], dimension: number): void; + + isMasked(i: number, j: number): boolean; +} + +declare class DataMask011 extends DataMask { + unmaskBitMatrix(bits: number[], dimension: number): void; + + isMasked(i: number, j: number): boolean; +} + +declare class DataMask100 extends DataMask { + unmaskBitMatrix(bits: number[], dimension: number): void; + + isMasked(i: number, j: number): boolean; +} + +declare class DataMask101 extends DataMask { + unmaskBitMatrix(bits: number[], dimension: number): void; + + isMasked(i: number, j: number): boolean; +} + +declare class DataMask110 extends DataMask { + unmaskBitMatrix(bits: number[], dimension: number): void; + + isMasked(i: number, j: number): boolean; +} + +declare class DataMask111 extends DataMask { + unmaskBitMatrix(bits: number[], dimension: number): void; + + isMasked(i: number, j: number): boolean; +} + +declare const Decoder: { + rsDecoder: ReedSolomonDecoder, + + correctErrors(codewordBytes: number[], numDataCodewords: number): void; + + decode(bits: BitMatrix): QRCodeDataBlockReader; +}; + +declare class PerspectiveTransform { + a11: number; + a12: number; + a13: number; + a21: number; + a22: number; + a23: number; + a31: number; + a32: number; + a33: number; + + static quadrilateralToQuadrilateral( + x0: number, y0: number, x1: number, y1: number, + x2: number, y2: number, x3: number, y3: number, + x0p: number, y0p: number, x1p: number, y1p: number, + x2p: number, y2p: number, x3p: number, y3p: number + ): PerspectiveTransform; + static squareToQuadrilateral( + x0: number, y0: number, x1: number, y1: number, + x2: number, y2: number, x3: number, y3: number + ): PerspectiveTransform; + static quadrilateralToSquare( + x0: number, y0: number, x1: number, y1: number, + x2: number, y2: number, x3: number, y3: number + ): PerspectiveTransform; + + constructor( + a11: number, a21: number, a31: number, + a12: number, a22: number, a32: number, + a13: number, a23: number, a33: number + ); + + transformPoints1(points: number[]): void; + transformPoints2(xValues: number[], yValues: number[]): void; + buildAdjoint(): PerspectiveTransform; + times(other: PerspectiveTransform): PerspectiveTransform; +} + +declare class DetectorResult { + bits: BitMatrix; + points: [DetectorResult, DetectorResult, DetectorResult] | + [DetectorResult, DetectorResult, DetectorResult, DetectorResult]; + + constructor( + bits: BitMatrix, + points: [DetectorResult, DetectorResult, DetectorResult] | + [DetectorResult, DetectorResult, DetectorResult, DetectorResult] + ); +} + +declare class Detector { + image: Uint8Array; + resultPointCallback: ResultPointCallback; + + constructor(image: Uint8Array); + + sizeOfBlackWhiteBlackRun(fromX: number, fromY: number, toX: number, toY: number): number; + sizeOfBlackWhiteBlackRunBothWays(fromX: number, fromY: number, toX: number, toY: number): number; + calculateModuleSizeOneWay(pattern: AlignmentPattern, otherPattern: AlignmentPattern): number; + calculateModuleSize(topLeft: AlignmentPattern, topRight: AlignmentPattern, bottomLeft: AlignmentPattern): number; + distance(pattern1: AlignmentPattern, pattern2: AlignmentPattern): number; + computeDimension(topLeft: AlignmentPattern, topRight: AlignmentPattern, bottomLeft: AlignmentPattern, moduleSize: number): number; + findAlignmentInRegion(overallEstModuleSize: number, estAlignmentX: number, estAlignmentY: number, allowanceFactor: number): AlignmentPattern; + createTransform(topLeft: AlignmentPattern, topRight: AlignmentPattern, bottomLeft: AlignmentPattern, alignmentPattern: AlignmentPattern, dimension: number): PerspectiveTransform; + sampleGrid(image: Uint8Array, transform: PerspectiveTransform, dimension: number): BitMatrix; + processFinderPatternInfo(info: FinderPatternInfo): DetectorResult; + detect(): DetectorResult; +} + +declare const L: ErrorCorrectionLevel; +declare const M: ErrorCorrectionLevel; +declare const Q: ErrorCorrectionLevel; +declare const H: ErrorCorrectionLevel; +declare const FOR_BITS: ErrorCorrectionLevel[]; + +declare class ErrorCorrectionLevel { + private ordinal_Renamed_Field: number; + private bits: number; + private name: string; + + readonly Bits: number; + readonly Name: string; + + static forBits(bits: number): ErrorCorrectionLevel; + + constructor(ordinal: number, bits: number, name: string); +} +declare const MIN_SKIP: number; +declare const MAX_MODULES: number; +declare const INTEGER_MATH_SHIFT: number; +declare const CENTER_QUORUM: number; + +declare class FinderPattern { + private x: number; + private y: number; + private count: number; + private estimatedModuleSize: number; + + readonly X: number; + readonly Y: number; + readonly Count: number; + readonly EstimatedModuleSize: number; + + constructor(posX: number, posY: number, estimatedModuleSize: number); + + incrementCount(): void; + aboutEquals(moduleSize: number, i: number, j: number): boolean; +} + +declare class FinderPatternInfo { + readonly BottomLeft: AlignmentPattern; + readonly TopLeft: AlignmentPattern; + readonly TopRight: AlignmentPattern; + + constructor(patternCenters: [AlignmentPattern, AlignmentPattern, AlignmentPattern]); +} + +declare class FinderPatternFinder { + image: Uint8Array; + possibleCenters: FinderPattern[]; + hasSkipped: boolean; + resultPointCallback: ResultPointCallback; + + private crossCheckStateCount: [number, number, number, number, number]; + readonly CrossCheckStateCount: [number, number, number, number, number]; + + foundPatternCross(stateCount: [number, number, number, number, number]): boolean; + centerFromEnd(stateCount: [number, number, number, number, number], end: number): number; + crossCheckVertical(startI: number, centerJ: number, maxCount: number, originalStateCountTotal: number): number; + crossCheckHorizontal(startJ: number, centerI: number, maxCount: number, originalStateCountTotal: number): number; + handlePossibleCenter(stateCount: [number, number, number, number, number], i: number, j: number): boolean; + selectBestPatterns(): number; + findRowSkip(): number; + haveMultiplyConfirmedCenters(): boolean; + findFinderPattern(image: Uint8Array): FinderPatternInfo; +} + +declare const FORMAT_INFO_MASK_QR: 0x5412; +declare const FORMAT_INFO_DECODE_LOOKUP: [ + [0x5412, 0x00], [0x5125, 0x01], [0x5E7C, 0x02], [0x5B4B, 0x03], [0x45F9, 0x04], [0x40CE, 0x05], [0x4F97, 0x06], + [0x4AA0, 0x07], [0x77C4, 0x08], [0x72F3, 0x09], [0x7DAA, 0x0A], [0x789D, 0x0B], [0x662F, 0x0C], [0x6318, 0x0D], + [0x6C41, 0x0E], [0x6976, 0x0F], [0x1689, 0x10], [0x13BE, 0x11], [0x1CE7, 0x12], [0x19D0, 0x13], [0x0762, 0x14], + [0x0255, 0x15], [0x0D0C, 0x16], [0x083B, 0x17], [0x355F, 0x18], [0x3068, 0x19], [0x3F31, 0x1A], [0x3A06, 0x1B], + [0x24B4, 0x1C], [0x2183, 0x1D], [0x2EDA, 0x1E], [0x2BED, 0x1F] +]; +declare const BITS_SET_IN_HALF_BYTE: [0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4]; + +declare class FormatInformation { + static numBitsDiffering(a: number, b: [number, number]): number; + static decodeFormatInformation(maskedFormatInfo: number): FormatInformation; + private static doDecodeFormatInformation(maskedFormatInfo: number): FormatInformation; + + private errorCorrectionLevel: ErrorCorrectionLevel; + private dataMask: number; + + readonly ErrorCorrectionLevel: ErrorCorrectionLevel; + readonly DataMask: number; + + GetHashCode(): number; + Equals(other: FormatInformation): boolean; +} + +declare class GF256 { + static readonly QR_CODE_FIELD: GF256; + static readonly DATA_MATRIX_FIELD: GF256; + + private zero: GF256Poly; + private one: GF256Poly; + + expTable: number[]; + logTable: number[]; + readonly Zero: GF256Poly; + readonly One: GF256Poly; + + static addOrSubtract(a: number, b: number): number; + + constructor(primitive: number); + + buildMonomial(degree: number, coefficient: number): GF256Poly; + exp(a: number): number; + log(a: number): number; + inverse(a: number): number; + multiply(a: number, b: number): number; +} + +declare class GF256Poly { + field: GF256; + private coefficients: number[]; + + readonly Zero: boolean; + readonly Degree: number; + readonly Coefficients: number[]; + + constructor(field: GF256, coefficients: number[]); + + getCoefficient(degree: number): number; + evaluateAt(a: number): number; + addOrSubtract(other: GF256Poly): GF256Poly; + multiply1(other: GF256Poly): GF256Poly; + multiply2(scalar: number): GF256Poly; + multiplyByMonomial(degree: number, coefficient: number): GF256Poly; + divide(other: GF256Poly): [GF256Poly, GF256Poly]; +} + +declare const GridSampler: { + checkAndNudgePoints(image: Uint8Array, points: number[]): void; + sampleGrid3(image: Uint8Array, dimension: number, transform: PerspectiveTransform): BitMatrix; + sampleGridx( + image: Uint8Array, dimension: number, p1ToX: number, + p1ToY: number, p2ToX: number, p2ToY: number, p3ToX: number, + p3ToY: number, p4ToX: number, p4ToY: number, p1FromX: number, + p1FromY: number, p2FromX: number, p2FromY: number, p3FromX: number, + p3FromY: number, p4FromX: number, p4FromY: number + ): BitMatrix; +}; + +declare class ReedSolomonDecoder { + field: GF256; + + constructor(field: GF256); + + decode(received: GF256, twoS: number[]): void; + runEuclideanAlgorithm(a: GF256Poly, b: GF256Poly, R: number): [GF256Poly, GF256Poly]; + findErrorLocations(errorLocator: GF256Poly): number[]; + findErrorMagnitudes(errorEvaluator: GF256Poly, errorLocations: number[], dataMatrix: boolean): number[]; +} +declare function buildVersions(): Version[]; + +declare class ECB { + private count: number; + private dataCodewords: number; + + readonly Count: number; + readonly DataCodewords: number; + + constructor(count: number, dataCodewords: number); +} + +declare class ECBlocks { + private ecCodewordsPerBlock: number; + private ecBlocks: [ECB] | [ECB, ECB]; + + readonly ECCodewordsPerBlock: number; + readonly TotalECCodewords: number; + readonly NumBlocks: number; + + constructor(ecCodewordsPerBlock: number, ecBlocks1: ECB, ecBlocks2?: ECB); + + getECBlocks(): [ECB] | [ECB, ECB]; +} + +declare class Version { + static readonly VERSION_DECODE_INFO: [ + 0x07C94, 0x085BC, 0x09A99, 0x0A4D3, 0x0BBF6, 0x0C762, 0x0D847, 0x0E60D, 0x0F928, + 0x10B78, 0x1145D, 0x12A17, 0x13532, 0x149A6, 0x15683, 0x168C9, 0x177EC, 0x18EC4, + 0x191E1, 0x1AFAB, 0x1B08E, 0x1CC1A, 0x1D33F, 0x1ED75, 0x1F250, 0x209D5, 0x216F0, + 0x228BA, 0x2379F, 0x24B0B, 0x2542E, 0x26A64, 0x27541, 0x28C69 + ]; + static readonly VERSIONS: Version[]; + + static getVersionForNumber(versionNumber: number): Version; + static getProvisionalVersionForDimension(dimension: number): Version; + static decodeVersionInformation(versionBits: number): Version; + + versionNumber: number; + alignmentPatternCenters: number[]; + ecBlocks: ECBlocks[]; + + readonly VersionNumber: number; + readonly AlignmentPatternCenters: number[]; + readonly TotalCodewords: number; + readonly DimensionForVersion: number; + + constructor(versionNumber: number, alignmentPatternCenters: number[], + ecBlocks1: ECBlocks, ecBlocks2: ECBlocks, + ecBlocks3: ECBlocks, ecBlocks4: ECBlocks); + + buildFunctionPattern(): BitMatrix; + + getECBlocksForLevel(ecLevel: ErrorCorrectionLevel): ECBlocks; +} + +declare const qrcode: { + imagedata: ImageData, + width: number, + height: number, + qrCodeSymbol: any, + debug: boolean, + maxImgSize: number, + readonly sizeOfDataLengthInfo: [[10, 9, 8, 8], [12, 11, 16, 10], [14, 13, 16, 12]], + + // tslint:disable-next-line:prefer-method-signature + callback: () => void, + + orderBestPatterns(patterns: AlignmentPattern[]): void, + + vidError(error?: any): void, + captureToCanvas(): void, + setWebcam(videoId: string): void, + decode(src?: string): void, + isUrl(s: string): boolean, + decode_url(s: string): string, + decode_utf8(s: string): string, + process(ctx: CanvasRenderingContext2D): string, + getPixel(x: number, y: number): number, + binarize(th: number): boolean[], + getMiddleBrightnessPerArea(image: number[]): number[][], + grayScaleToBitmap(grayScale: number[]): Uint8Array, + grayscale(): Uint8Array +}; diff --git a/types/jsqrcode/tsconfig.json b/types/jsqrcode/tsconfig.json new file mode 100644 index 0000000000..f4a291c106 --- /dev/null +++ b/types/jsqrcode/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "dom", + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [] + }, + "files": [ + "index.d.ts" + ] +} \ No newline at end of file diff --git a/types/jsqrcode/tslint.json b/types/jsqrcode/tslint.json new file mode 100644 index 0000000000..e60c15844f --- /dev/null +++ b/types/jsqrcode/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} \ No newline at end of file diff --git a/types/jszip/index.d.ts b/types/jszip/index.d.ts index b44d2bc538..7ea6180080 100644 --- a/types/jszip/index.d.ts +++ b/types/jszip/index.d.ts @@ -1,10 +1,140 @@ -// Type definitions for JSZip +// Type definitions for JSZip 3.1 // Project: http://stuk.github.com/jszip/ -// Definitions by: mzeiher +// Definitions by: mzeiher , forabi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// + +interface JSZipSupport { + arraybuffer: boolean; + uint8array: boolean; + blob: boolean; + nodebuffer: boolean; +} + +type Compression = 'STORE' | 'DEFLATE'; + +interface Metadata { + percent: number; + currentFile: string; +} + +type OnUpdateCallback = (metadata: Metadata) => void; + +interface InputByType { + base64: string; + string: string; + text: string; + binarystring: string; + array: number[]; + unit8array: Uint8Array; + arraybuffer: ArrayBuffer; + blob: Blob; +} + +interface OutputByType { + base64: string; + text: string; + binarystring: string; + array: number[]; + unit8array: Uint8Array; + arraybuffer: ArrayBuffer; + blob: Blob; + nodebuffer: Buffer; +} + +type InputFileFormat = InputByType[keyof InputByType] | NodeJS.ReadableStream; + +declare namespace JSZip { + type InputType = keyof InputByType; + + type OutputType = keyof OutputByType; + + interface JSZipObject { + name: string; + dir: boolean; + date: Date; + comment: string; + /** The UNIX permissions of the file, if any. */ + unixPermissions: number | string | null; + /** The UNIX permissions of the file, if any. */ + dosPermissions: number | null; + options: JSZipObjectOptions; + + /** + * Prepare the content in the asked type. + * @param {String} type the type of the result. + * @param {OnUpdateCallback} onUpdate a function to call on each internal update. + * @return Promise the promise of the result. + */ + async(type: T, onUpdate?: OnUpdateCallback): Promise; + nodeStream(type?: 'nodestream', onUpdate?: OnUpdateCallback): NodeJS.ReadableStream; + } + + interface JSZipFileOptions { + /** Set to `true` if the data is `base64` encoded. For example image data from a `` element. Plain text and HTML do not need this option. */ + base64?: boolean; + /** Set to `true` if the data should be treated as raw content, `false` if this is a text. If `base64` is used, + * this defaults to `true`, if the data is not a `string`, this will be set to `true`. + */ + binary?: boolean; + /** + * The last modification date, defaults to the current date. + */ + date?: Date; + compression?: string; + comment?: string; + /** Set to `true` if (and only if) the input is a "binary string" and has already been prepared with a `0xFF` mask. */ + optimizedBinaryString?: boolean; + /** Set to `true` if folders in the file path should be automatically created, otherwise there will only be virtual folders that represent the path to the file. */ + createFolders?: boolean; + /** Set to `true` if this is a directory and content should be ignored. */ + dir?: boolean; + + /** 6 bits number. The DOS permissions of the file, if any. */ + dosPermissions?: number | null; + /** + * 16 bits number. The UNIX permissions of the file, if any. + * Also accepts a `string` representing the octal value: `"644"`, `"755"`, etc. + */ + unixPermissions?: number | string | null; + } + + interface JSZipObjectOptions { + compression: Compression; + } + + interface JSZipGeneratorOptions { + compression?: Compression; + compressionOptions?: null | { + level: number; + }; + type?: T; + comment?: string; + /** + * mime-type for the generated file. + * Useful when you need to generate a file with a different extension, ie: “.ods”. + * @default 'application/zip' + */ + mimeType?: string; + encodeFileName?(filename: string): string; + /** Stream the files and create file descriptors */ + streamFiles?: boolean; + /** DOS (default) or UNIX */ + platform?: 'DOS' | 'UNIX'; + } + + interface JSZipLoadOptions { + base64?: boolean; + checkCRC32?: boolean; + optimizedBinaryString?: boolean; + createFolders?: boolean; + } +} interface JSZip { - files: {[key: string]: JSZipObject}; + files: {[key: string]: JSZip.JSZipObject}; /** * Get a file from the archive @@ -12,7 +142,7 @@ interface JSZip { * @param Path relative path to file * @return File matching path, null if no file found */ - file(path: string): JSZipObject; + file(path: string): JSZip.JSZipObject; /** * Get files matching a RegExp from archive @@ -20,20 +150,21 @@ interface JSZip { * @param path RegExp to match * @return Return all matching files or an empty array */ - file(path: RegExp): JSZipObject[]; + file(path: RegExp): JSZip.JSZipObject[]; /** * Add a file to the archive * * @param path Relative path to file - * @param content Content of the file + * @param data Content of the file * @param options Optional information about the file * @return JSZip object */ - file(path: string, data: any, options?: JSZipFileOptions): JSZip; + file(path: string, data: InputByType[T] | Promise, options?: JSZip.JSZipFileOptions): this; + file(path: string, data: null, options?: JSZip.JSZipFileOptions & { dir: true }): this; /** - * Return an new JSZip instance with the given folder as root + * Returns an new JSZip instance with the given folder as root * * @param name Name of the folder * @return New JSZip object with the given folder as root or null @@ -46,22 +177,22 @@ interface JSZip { * @param name RegExp to match * @return New array of JSZipFile objects which match the RegExp */ - folder(name: RegExp): JSZipObject[]; + folder(name: RegExp): JSZip.JSZipObject[]; /** * Call a callback function for each entry at this folder level. * * @param callback function */ - forEach(callback: (relativePath: string, file: JSZipObject) => void): void; + forEach(callback: (relativePath: string, file: JSZip.JSZipObject) => void): void; /** - * Get all files wchich match the given filter function + * Get all files which match the given filter function * * @param predicate Filter function * @return Array of matched elements */ - filter(predicate: (relativePath: string, file: JSZipObject) => boolean): JSZipObject[]; + filter(predicate: (relativePath: string, file: JSZip.JSZipObject) => boolean): JSZip.JSZipObject[]; /** * Removes the file or folder from the archive @@ -72,26 +203,22 @@ interface JSZip { remove(path: string): JSZip; /** - * @deprecated since version 3.0 - * @see {@link generateAsync} - * http://stuk.github.io/jszip/documentation/upgrade_guide.html + * Generates a new archive asynchronously + * + * @param options Optional options for the generator + * @param onUpdate The optional function called on each internal update with the metadata. + * @return The serialized archive */ - generate(options?: JSZipGeneratorOptions): any; + generateAsync(options?: JSZip.JSZipGeneratorOptions, onUpdate?: OnUpdateCallback): Promise; /** * Generates a new archive asynchronously * * @param options Optional options for the generator - * @return The serialized archive + * @param onUpdate The optional function called on each internal update with the metadata. + * @return A Node.js `ReadableStream` */ - generateAsync(options?: JSZipGeneratorOptions, onUpdate?: Function): Promise; - - /** - * @deprecated since version 3.0 - * @see {@link loadAsync} - * http://stuk.github.io/jszip/documentation/upgrade_guide.html - */ - load(): void; + generateNodeStream(options?: JSZip.JSZipGeneratorOptions<'nodebuffer'>, onUpdate?: OnUpdateCallback): NodeJS.ReadStream; /** * Deserialize zip file asynchronously @@ -100,133 +227,31 @@ interface JSZip { * @param options Options for deserializing * @return Returns promise */ - loadAsync(data: any, options?: JSZipLoadOptions): Promise; -} + loadAsync(data: InputFileFormat, options?: JSZip.JSZipLoadOptions): Promise; -type Serialization = ("string" | "text" | "base64" | "binarystring" | "uint8array" | - "arraybuffer" | "blob" | "nodebuffer"); - -interface JSZipObject { - name: string; - dir: boolean; - date: Date; - comment: string; - options: JSZipObjectOptions; - - /** - * Prepare the content in the asked type. - * @param {String} type the type of the result. - * @param {Function} onUpdate a function to call on each internal update. - * @return Promise the promise of the result. - */ - async(type: Serialization, onUpdate?: Function): Promise; - - /** - * @deprecated since version 3.0 - */ - asText(): void; - /** - * @deprecated since version 3.0 - */ - asBinary(): void; - /** - * @deprecated since version 3.0 - */ - asArrayBuffer(): void; - /** - * @deprecated since version 3.0 - */ - asUint8Array(): void; - //asNodeBuffer(): void; -} - -interface JSZipFileOptions { - base64?: boolean; - binary?: boolean; - date?: Date; - compression?: string; - comment?: string; - optimizedBinaryString?: boolean; - createFolders?: boolean; - dir?: boolean; -} - -interface JSZipObjectOptions { - /** deprecated */ - base64: boolean; - /** deprecated */ - binary: boolean; - /** deprecated */ - dir: boolean; - /** deprecated */ - date: Date; - compression: string; -} - -interface JSZipGeneratorOptions { - /** deprecated */ - base64?: boolean; - /** DEFLATE or STORE */ - compression?: string; - /** base64 (default), string, uint8array, arraybuffer, blob */ - type?: string; - comment?: string; - /** - * mime-type for the generated file. - * Useful when you need to generate a file with a different extension, ie: “.ods”. - */ - mimeType?: string; - /** streaming uses less memory */ - streamFiles?: boolean; - /** DOS (default) or UNIX */ - platform?: string; -} - -interface JSZipLoadOptions { - base64?: boolean; - checkCRC32?: boolean; - optimizedBinaryString?: boolean; - createFolders?: boolean; -} - -interface JSZipSupport { - arraybuffer: boolean; - uint8array: boolean; - blob: boolean; - nodebuffer: boolean; -} - -declare var JSZip: { /** * Create JSZip instance */ + + /** + * Create JSZip instance + * If no parameters given an empty zip archive will be created + * + * @param data Serialized zip archive + * @param options Description of the serialized zip archive + */ + new (data?: InputFileFormat, options?: JSZip.JSZipLoadOptions): this; + (): JSZip; - /** - * Create JSZip instance - * If no parameters given an empty zip archive will be created - * - * @param data Serialized zip archive - * @param options Description of the serialized zip archive - */ - (data: any, options?: JSZipLoadOptions): JSZip; - - /** - * Create JSZip instance - */ - new (): JSZip; - /** - * Create JSZip instance - * If no parameters given an empty zip archive will be created - * - * @param data Serialized zip archive - * @param options Description of the serialized zip archive - */ - new (data: any, options?: JSZipLoadOptions): JSZip; prototype: JSZip; support: JSZipSupport; + external: { + Promise: PromiseConstructorLike; + }; + version: string; } -declare module "jszip" { - export = JSZip; -} +declare var JSZip: JSZip; + +export = JSZip; diff --git a/types/jszip/jszip-tests.ts b/types/jszip/jszip-tests.ts index f7a4b9f10f..81ccda09db 100644 --- a/types/jszip/jszip-tests.ts +++ b/types/jszip/jszip-tests.ts @@ -1,32 +1,34 @@ -var SEVERITY = { +import * as JSZip from 'jszip'; + +const SEVERITY = { DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3, FATAL: 4 -} +}; function createTestZip(): JSZip { - var zip = new JSZip(); + const zip = new JSZip(); zip.file("test.txt", "test string"); zip.file("test", null, { dir: true }); zip.file("test/test.txt", "test string"); - return zip + return zip; } -function filterWithFileAsync(zip: JSZip, as: Serialization, - cb: (relativePath: string, file: JSZipObject, value: any) => boolean) - : Promise { - var promises: Promise[] = []; - var promiseIndices: {[key: string]: number} = {}; - zip.forEach((relativePath: string, file: JSZipObject) => { - var promise = file.async(as); +function filterWithFileAsync(zip: JSZip, as: JSZip.OutputType, + cb: (relativePath: string, file: JSZip.JSZipObject, value: any) => boolean) + : Promise { + const promises: Array> = []; + const promiseIndices: {[key: string]: number} = {}; + zip.forEach((relativePath: string, file: JSZip.JSZipObject) => { + const promise = file.async(as); promiseIndices[file.name] = promises.length; promises.push(promise); }); - return Promise.all(promises).then(function(values: any[]) { - var filtered = zip.filter((relativePath: string, file: JSZipObject) => { - var index = promiseIndices[file.name]; + return Promise.all(promises).then((values: any[]) => { + const filtered = zip.filter((relativePath: string, file: JSZip.JSZipObject) => { + const index = promiseIndices[file.name]; return cb(relativePath, file, values[index]); }); return Promise.resolve(filtered); @@ -34,12 +36,12 @@ function filterWithFileAsync(zip: JSZip, as: Serialization, } function testJSZip() { - var zip = createTestZip(); - zip.generateAsync({compression: "DEFLATE", type: "base64"}).then(function(serializedZip: any) { - var newJszip = new JSZip(); + const zip = createTestZip(); + zip.generateAsync({compression: "DEFLATE", type: "base64"}).then((serializedZip) => { + const newJszip = new JSZip(); return newJszip.loadAsync(serializedZip, {base64: true/*, checkCRC32: true*/}); - }).then(function(newJszip: JSZip) { - newJszip.file("test.txt").async('text').then(function(text: string) { + }).then((newJszip: JSZip) => { + newJszip.file("test.txt").async('text').then((text: string) => { if (text === "test string") { log(SEVERITY.INFO, "all ok"); } else { @@ -47,7 +49,7 @@ function testJSZip() { } }).catch((e: any) => log(SEVERITY.ERROR, e)); - newJszip.file("test/test.txt").async('text').then(function(text: string) { + newJszip.file("test/test.txt").async('text').then((text: string) => { if (text === "test string") { log(SEVERITY.INFO, "all ok"); } else { @@ -55,20 +57,20 @@ function testJSZip() { } }).catch((e: any) => log(SEVERITY.ERROR, e)); - var folder = newJszip.folder("test"); - folder.file("test.txt").async('text').then(function(text: string) { - if (text == "test string") { + const folder = newJszip.folder("test"); + folder.file("test.txt").async('text').then((text: string) => { + if (text === "test string") { log(SEVERITY.INFO, "all ok"); } else { log(SEVERITY.ERROR, "wrong file"); } }).catch((e: any) => log(SEVERITY.ERROR, e)); - var folders = newJszip.folder(new RegExp("^test")); + const folders = newJszip.folder(new RegExp("^test")); - if (folders.length == 1) { + if (folders.length === 1) { log(SEVERITY.INFO, "all ok"); - if (folders[0].dir == true) { + if (folders[0].dir) { log(SEVERITY.INFO, "all ok"); } else { log(SEVERITY.ERROR, "wrong file"); @@ -77,11 +79,11 @@ function testJSZip() { log(SEVERITY.ERROR, "wrong number of folder"); } - var files = newJszip.file(new RegExp("^test")); - if (files.length == 2) { + const files = newJszip.file(new RegExp("^test")); + if (files.length === 2) { log(SEVERITY.INFO, "all ok"); - Promise.all([files[0].async('text'), files[1].async('text')]).then(function(texts: string[]) { - if (texts[0] == "test string" && texts[1] == 'test string') { + Promise.all([files[0].async('text'), files[1].async('text')]).then((texts: string[]) => { + if (texts[0] === "test string" && texts[1] === 'test string') { log(SEVERITY.INFO, "all ok"); } else { log(SEVERITY.ERROR, "wrong data in files"); @@ -91,32 +93,32 @@ function testJSZip() { log(SEVERITY.ERROR, "wrong number of files"); } - filterWithFileAsync(newJszip, 'text', (relativePath: string, file: JSZipObject, text: string) => { - if (text == "test string") { + filterWithFileAsync(newJszip, 'text', (relativePath: string, file: JSZip.JSZipObject, text: string) => { + if (text === "test string") { return true; } return false; - }).then(function(filterFiles: JSZipObject[]) { - if (filterFiles.length == 2) { + }).then((filterFiles: JSZip.JSZipObject[]) => { + if (filterFiles.length === 2) { log(SEVERITY.INFO, "all ok"); } else { log(SEVERITY.ERROR, "wrong number of files"); } }).catch((e: any) => log(SEVERITY.ERROR, e)); - }).catch((e: any)=> { console.error(e) }); + }).catch((e: any) => { console.error(e); }); } function testJSZipRemove() { - var newJszip = createTestZip(); + const newJszip = createTestZip(); newJszip.remove("test/test.txt"); - filterWithFileAsync(newJszip, 'text', (relativePath: string, file: JSZipObject, text: string) => { - if (text == "test string") { + filterWithFileAsync(newJszip, 'text', (relativePath: string, file: JSZip.JSZipObject, text: string) => { + if (text === "test string") { return true; } return false; - }).then(function(filterFiles: JSZipObject[]) { - if (filterFiles.length == 1) { + }).then((filterFiles: JSZip.JSZipObject[]) => { + if (filterFiles.length === 1) { log(SEVERITY.INFO, "all ok"); } else { log(SEVERITY.ERROR, "wrong number of files"); @@ -124,9 +126,9 @@ function testJSZipRemove() { }).catch((e: any) => log(SEVERITY.ERROR, e)); } -function log(severity:number, message: any) { - var log = ""; - switch(severity) { +function log(severity: number, message: any) { + let log = ""; + switch (severity) { case 0: log += "[DEBUG] "; break; @@ -143,7 +145,7 @@ function log(severity:number, message: any) { log += "[FATAL] "; break; default: - log += "[INFO]" + log += "[INFO]"; break; } console.log(log += message); diff --git a/types/jszip/tsconfig.json b/types/jszip/tsconfig.json index 02f0123b77..80c7836f06 100644 --- a/types/jszip/tsconfig.json +++ b/types/jszip/tsconfig.json @@ -1,13 +1,14 @@ { "compilerOptions": { "module": "commonjs", + "target": "es5", "lib": [ - "es6", + "es2015", "dom" ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -20,4 +21,4 @@ "index.d.ts", "jszip-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/jszip/tslint.json b/types/jszip/tslint.json new file mode 100644 index 0000000000..71ee04c4e1 --- /dev/null +++ b/types/jszip/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "no-unnecessary-generics": false + } +} diff --git a/types/karma-webpack/index.d.ts b/types/karma-webpack/index.d.ts new file mode 100644 index 0000000000..0042ff01a3 --- /dev/null +++ b/types/karma-webpack/index.d.ts @@ -0,0 +1,38 @@ +// Type definitions for karma-webpack 2.0 +// Project: http://github.com/webpack/karma-webpack +// Definitions by: Matt Traynham +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as m from 'karma'; +import webpack = require('webpack'); +import webpackDevMiddleware = require('webpack-dev-middleware'); + +declare module 'karma' { + // Note: karma-webpack will set publicPath for us, so it is optional here. + // Unfortuantely, Typescript doesn't let you overload properties, so + // the entire definition is duplicated here. + interface KarmaWebpackMiddlewareOptions /** extends webpackDevMiddleware.Options */ { + noInfo?: boolean; + quiet?: boolean; + lazy?: boolean; + watchOptions?: webpack.Options.WatchOptions; + publicPath?: string; + index?: string; + headers?: { + [name: string]: string; + }; + stats?: webpack.Options.Stats; + reporter?: webpackDevMiddleware.Reporter | null; + serverSideRender?: boolean; + + log?: webpackDevMiddleware.Logger; + warn?: webpackDevMiddleware.Logger; + error?: webpackDevMiddleware.Logger; + filename?: string; + } + + interface ConfigOptions { + webpack: webpack.Configuration; + webpackMiddlewareOptions: KarmaWebpackMiddlewareOptions; + } +} diff --git a/types/karma-webpack/karma-webpack-tests.ts b/types/karma-webpack/karma-webpack-tests.ts new file mode 100644 index 0000000000..b04b02f9db --- /dev/null +++ b/types/karma-webpack/karma-webpack-tests.ts @@ -0,0 +1,14 @@ +import karma = require('karma'); + +export default function(config: karma.Config): void { + config.set({ + files: ['src/index.spec.ts'], + browsers: ['ChromeHeadless'], + singleRun: true, + frameworks: ['jasmine'], + preprocessors: {'src/index.spec.ts': ['webpack', 'sourcemap']}, + webpack: {entry: 'test.js'}, + webpackMiddlewareOptions: {noInfo: true}, + reporters: ['spec'] + }); +} diff --git a/types/karma-webpack/tsconfig.json b/types/karma-webpack/tsconfig.json new file mode 100644 index 0000000000..6f357958af --- /dev/null +++ b/types/karma-webpack/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "paths": { + "q": [ "q/v0" ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "karma-webpack-tests.ts" + ] +} diff --git a/types/karma-webpack/tslint.json b/types/karma-webpack/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/karma-webpack/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/karma/index.d.ts b/types/karma/index.d.ts index ab4dc9b31f..6dabc5218d 100644 --- a/types/karma/index.d.ts +++ b/types/karma/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for karma v0.13.9 +// Type definitions for karma 1.7 // Project: https://github.com/karma-runner/karma // Definitions by: Tanguy Krotoff // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -284,6 +284,12 @@ declare namespace karma { * @description A list of log appenders to be used. See the documentation for [log4js] for more information. */ loggers?: log4js.AppenderConfigBase[]; + /** + * @default {} + * @description Redefine default mapping from file extensions to MIME-type. + * Set property name to required MIME, provide Array of extensions (without dots) as it's value. + */ + mime?: {[type: string]: string[]}; /** * @default ['karma-*'] * @description List of plugins to load. A plugin can be a string (in which case it will be required diff --git a/types/karma/karma-tests.ts b/types/karma/karma-tests.ts index 4d342fd9e7..2eeed9b480 100644 --- a/types/karma/karma-tests.ts +++ b/types/karma/karma-tests.ts @@ -88,6 +88,10 @@ module.exports = function(config: karma.Config) { 'coverage' ], + mime: { + 'text/x-typescript': ['ts', 'tsx'] + }, + preprocessors: { 'app.js': ['coverage'] }, diff --git a/types/kendo-ui/index.d.ts b/types/kendo-ui/index.d.ts index f44c31d1ef..4ecb8e0ab0 100644 --- a/types/kendo-ui/index.d.ts +++ b/types/kendo-ui/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Kendo UI Professional v2017.2.621 +// Type definitions for Kendo UI Professional v2017.3.913 // Project: http://www.telerik.com/kendo-ui // Definitions by: Telerik // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -91,39 +91,8 @@ declare namespace kendo { }; var cultures: {[culture: string] : { - name?: string; - calendar?: { - AM: string[]; - PM: string[]; - days: { - names: string[]; - namesAbbr: string[]; - namesShort: string[]; - firstDay: number; - }; - months: { - names: string[]; - namesAbbr: string[]; - }; - patterns: { - D: string; - F: string; - G: string; - M: string; - T: string; - Y: string; - d: string; - g: string; - m: string; - s: string; - t: string; - u: string; - y: string; - }; - twoDigitYearMax: number; - }; - calendars?: { - standard: { + name?: string; + calendar?: { AM: string[]; PM: string[]; days: { @@ -153,25 +122,57 @@ declare namespace kendo { }; twoDigitYearMax: number; }; - }; - numberFormat?: { - currency: { + calendars?: { + standard: { + AM: string[]; + PM: string[]; + days: { + names: string[]; + namesAbbr: string[]; + namesShort: string[]; + firstDay: number; + }; + months: { + names: string[]; + namesAbbr: string[]; + }; + patterns: { + D: string; + F: string; + G: string; + M: string; + T: string; + Y: string; + d: string; + g: string; + m: string; + s: string; + t: string; + u: string; + y: string; + }; + twoDigitYearMax: number; + }; + }; + numberFormat?: { + currency: { + decimals: number; + groupSize: number[]; + pattern: string[]; + symbol: string; + }; decimals: number; groupSize: number[]; pattern: string[]; - symbol: string; + percent: { + decimals: number; + groupSize: number[]; + pattern: string[]; + symbol: string; + }; }; - decimals: number; - groupSize: number[]; - pattern: string[]; - percent: { - decimals: number; - groupSize: number[]; - pattern: string[]; - symbol: string; - }; - }; - }}; + } + }; function format(format: string, ...values: any[]): string; @@ -306,7 +307,7 @@ declare namespace kendo { } class ViewContainer extends Observable { - view: View; + view: View; } class Layout extends View { @@ -958,7 +959,7 @@ declare namespace kendo.data { } interface DataSourceSchemaWithConstructorModel extends DataSourceSchema { - model?: typeof Model; + model?: typeof Model; } interface DataSourceSchemaModel { @@ -994,6 +995,9 @@ declare namespace kendo.data { required?: boolean; min?: any; max?: any; + minLength?: any; + maxLength?: any; + [rule: string]: any; } class ObservableArray extends Observable { @@ -1006,7 +1010,7 @@ declare namespace kendo.data { every(callback: (item: Object, index: number, source: ObservableArray) => boolean): boolean; filter(callback: (item: Object, index: number, source: ObservableArray) => boolean): any[]; find(callback: (item: Object, index: number, source: ObservableArray) => boolean): any; - forEach(callback: (item: Object, index: number, source: ObservableArray) => void ): void; + forEach(callback: (item: Object, index: number, source: ObservableArray) => void): void; indexOf(item: any): number; join(separator: string): string; map(callback: (item: Object, index: number, source: ObservableArray) => any): any[]; @@ -1254,7 +1258,7 @@ declare namespace kendo.data { type?: string; change? (e: DataSourceChangeEvent): void; error?(e: DataSourceErrorEvent): void; - push?(e: DataSourcePushEvent): void; + push?(e: DataSourcePushEvent): void; sync?(e: DataSourceEvent): void; requestStart?(e: DataSourceRequestStartEvent): void; requestEnd?(e: DataSourceRequestEndEvent): void; @@ -1284,9 +1288,9 @@ declare namespace kendo.data { node?: any; } - interface DataSourcePushEvent extends DataSourceEvent { + interface DataSourcePushEvent extends DataSourceEvent { items?: DataSourceItemOrGroup[]; - type?: string; + type?: string; } @@ -1495,7 +1499,7 @@ declare namespace kendo.mobile { statusBarStyle?: string; transition?: string; useNativeScrolling?: boolean; - init?(e: ApplicationEvent): void; + init?(e: ApplicationEvent): void; } interface ApplicationEvent { @@ -1541,7 +1545,7 @@ declare namespace kendo.dataviz.map.layer { declare namespace kendo.drawing.pdf { function saveAs(group: kendo.drawing.Group, fileName: string, - proxyUrl?: string, callback?: Function): void; + proxyUrl?: string, callback?: Function): void; } declare namespace kendo.ui { @@ -1563,11 +1567,11 @@ declare namespace kendo.ui { } - interface AlertMessages extends DialogMessages { + interface AlertMessages { okText?: string; } - interface AlertOptions extends DialogOptions { + interface AlertOptions { name?: string; messages?: AlertMessages; } @@ -1765,6 +1769,8 @@ declare namespace kendo.ui { navigateToFuture(): void; navigateToPast(): void; navigateUp(): void; + selectDates(): void; + selectDates(): void; value(): Date; value(value: Date): void; value(value: string): void; @@ -1794,6 +1800,8 @@ declare namespace kendo.ui { messages?: CalendarMessages; min?: Date; month?: CalendarMonth; + selectable?: string; + selectDates?: any; weekNumber?: boolean; start?: string; value?: Date; @@ -2081,12 +2089,12 @@ declare namespace kendo.ui { } - interface ConfirmMessages extends DialogMessages { + interface ConfirmMessages { okText?: string; cancel?: string; } - interface ConfirmOptions extends DialogOptions { + interface ConfirmOptions { name?: string; messages?: ConfirmMessages; } @@ -2464,7 +2472,7 @@ declare namespace kendo.ui { static fn: Dialog; - options: DialogOptions; + options: any; element: JQuery; @@ -3703,6 +3711,7 @@ declare namespace kendo.ui { text?: GridColumnCommandItemText; className?: string; click?: Function; + iconClass?: string; } interface GridColumnFilterableCell { @@ -3905,6 +3914,7 @@ declare namespace kendo.ui { } interface GridPageable { + alwaysVisible?: boolean; pageSize?: number; previousNext?: boolean; numeric?: boolean; @@ -3946,6 +3956,7 @@ declare namespace kendo.ui { interface GridScrollable { virtual?: boolean; + endless?: boolean; } interface GridSortable { @@ -3956,6 +3967,7 @@ declare namespace kendo.ui { } interface GridToolbarItem { + iconClass?: string; name?: string; template?: string|Function; text?: string; @@ -4009,6 +4021,8 @@ declare namespace kendo.ui { excelExport?(e: GridExcelExportEvent): void; filter?(e: GridFilterEvent): void; group?(e: GridGroupEvent): void; + groupCollapse?(e: GridGroupCollapseEvent): void; + groupExpand?(e: GridGroupExpandEvent): void; page?(e: GridPageEvent): void; pdfExport?(e: GridPdfExportEvent): void; filterMenuInit?(e: GridFilterMenuInitEvent): void; @@ -4120,6 +4134,16 @@ declare namespace kendo.ui { groups?: any; } + interface GridGroupCollapseEvent extends GridEvent { + element?: JQuery; + group?: any; + } + + interface GridGroupExpandEvent extends GridEvent { + element?: JQuery; + group?: any; + } + interface GridPageEvent extends GridEvent { page?: number; } @@ -4554,6 +4578,11 @@ declare namespace kendo.ui { open?: MenuAnimationOpen; } + interface MenuOpenOnClick { + rootMenuItems?: boolean; + subMenuItems?: boolean; + } + interface MenuScrollable { distance?: number; } @@ -4565,7 +4594,7 @@ declare namespace kendo.ui { dataSource?: any|any; direction?: string; hoverDelay?: number; - openOnClick?: boolean; + openOnClick?: boolean|MenuOpenOnClick; orientation?: string; popupCollision?: string; scrollable?: boolean|MenuScrollable; @@ -4694,7 +4723,7 @@ declare namespace kendo.ui { popup?: MultiSelectPopup; headerTemplate?: string|Function; itemTemplate?: string|Function; - tagTemplate?: string; + tagTemplate?: string|Function; tagMode?: string; value?: any; valuePrimitive?: boolean; @@ -5479,12 +5508,12 @@ declare namespace kendo.ui { } - interface PromptMessages extends DialogMessages { + interface PromptMessages { okText?: string; cancel?: string; } - interface PromptOptions extends DialogOptions { + interface PromptOptions { name?: string; messages?: PromptMessages; } @@ -7382,11 +7411,12 @@ declare namespace kendo.ui { filterable?: boolean|TreeListFilterable; height?: number|string; messages?: TreeListMessages; + navigatable?: boolean; pdf?: TreeListPdf; scrollable?: boolean|any; selectable?: boolean|string; sortable?: boolean|TreeListSortable; - toolbar?: TreeListToolbarItem[] | any; + toolbar?: TreeListToolbarItem[]|any; cancel?(e: TreeListCancelEvent): void; change?(e: TreeListChangeEvent): void; collapse?(e: TreeListCollapseEvent): void; @@ -8432,7 +8462,7 @@ declare namespace kendo.drawing { } - interface FillOptions { + interface FillOptions { @@ -8731,7 +8761,7 @@ declare namespace kendo.drawing { } - interface PDFOptions { + interface PDFOptions { @@ -8920,7 +8950,7 @@ declare namespace kendo.drawing { } - interface StrokeOptions { + interface StrokeOptions { @@ -9070,7 +9100,7 @@ declare namespace kendo.drawing { } - interface TooltipOptions { + interface TooltipOptions { @@ -10112,10 +10142,42 @@ declare namespace kendo.dataviz.ui { width?: number|Function; } + interface ChartSeriesItemMarkersFromBorder { + color?: string|Function; + width?: number|Function; + } + + interface ChartSeriesItemMarkersFrom { + background?: string|Function; + border?: ChartSeriesItemMarkersFromBorder; + size?: number|Function; + type?: string|Function; + visible?: boolean|Function; + visual?: Function; + rotation?: number|Function; + } + + interface ChartSeriesItemMarkersToBorder { + color?: string|Function; + width?: number|Function; + } + + interface ChartSeriesItemMarkersTo { + background?: string|Function; + border?: ChartSeriesItemMarkersToBorder; + size?: number|Function; + type?: string|Function; + visible?: boolean|Function; + visual?: Function; + rotation?: number|Function; + } + interface ChartSeriesItemMarkers { background?: string|Function; border?: ChartSeriesItemMarkersBorder; + from?: ChartSeriesItemMarkersFrom; size?: number|Function; + to?: ChartSeriesItemMarkersTo; type?: string|Function; visible?: boolean|Function; visual?: Function; @@ -10513,6 +10575,7 @@ declare namespace kendo.dataviz.ui { ohlc?: any; overlay?: ChartSeriesDefaultsOverlay; pie?: any; + rangeArea?: any; scatter?: any; scatterLine?: any; spacing?: number; @@ -10521,6 +10584,7 @@ declare namespace kendo.dataviz.ui { tooltip?: ChartSeriesDefaultsTooltip; verticalArea?: any; verticalLine?: any; + verticalRangeArea?: any; visual?: Function; notes?: ChartSeriesDefaultsNotes; } @@ -17409,43 +17473,43 @@ declare namespace kendo { function transformOrigin(firstElement: HTMLElement, secondElement: HTMLElement): any; } - function alert(text: string): void; - function antiForgeryTokens(): any; - function bind(element: string, viewModel: any, namespace?: any): void; - function bind(element: string, viewModel: kendo.data.ObservableObject, namespace?: any): void; - function bind(element: JQuery, viewModel: any, namespace?: any): void; - function bind(element: JQuery, viewModel: kendo.data.ObservableObject, namespace?: any): void; - function bind(element: Element, viewModel: any, namespace?: any): void; - function bind(element: Element, viewModel: kendo.data.ObservableObject, namespace?: any): void; - function observableHierarchy(array: any): void; - function confirm(text: string): JQueryPromise; - function culture(culture: string): void; - function destroy(element: string): void; - function destroy(element: JQuery): void; - function destroy(element: Element): void; - function htmlEncode(value: string): string; - function parseDate(value: string, formats?: string, culture?: string): Date; - function parseDate(value: string, formats?: any, culture?: string): Date; - function parseFloat(value: string, culture?: string): number; - function parseInt(value: string, culture?: string): number; - function parseColor(color: string, noerror: boolean): kendo.Color; - function prompt(text: string, defaultValue: string): JQueryPromise; - function proxyModelSetters(): void; - function proxyModelSetters(data: kendo.data.Model): void; - function resize(element: string, force: boolean): void; - function resize(element: JQuery, force: boolean): void; - function resize(element: Element, force: boolean): void; - function saveAs(options: any): void; - function stringify(value: any): string; - function throttle(fn: Function, timeout: number): Function; - function touchScroller(element: string): void; - function touchScroller(element: JQuery): void; - function touchScroller(element: Element): void; - function toString(value: Date, format: string, culture?: string): string; - function toString(value: number, format: string, culture?: string): string; - function unbind(element: string): void; - function unbind(element: JQuery): void; - function unbind(element: Element): void; + function alert(text: string): void; + function antiForgeryTokens(): any; + function bind(element: string, viewModel: any, namespace?: any): void; + function bind(element: string, viewModel: kendo.data.ObservableObject, namespace?: any): void; + function bind(element: JQuery, viewModel: any, namespace?: any): void; + function bind(element: JQuery, viewModel: kendo.data.ObservableObject, namespace?: any): void; + function bind(element: Element, viewModel: any, namespace?: any): void; + function bind(element: Element, viewModel: kendo.data.ObservableObject, namespace?: any): void; + function observableHierarchy(array: any): void; + function confirm(text: string): JQueryPromise; + function culture(culture: string): void; + function destroy(element: string): void; + function destroy(element: JQuery): void; + function destroy(element: Element): void; + function htmlEncode(value: string): string; + function parseDate(value: string, formats?: string, culture?: string): Date; + function parseDate(value: string, formats?: any, culture?: string): Date; + function parseFloat(value: string, culture?: string): number; + function parseInt(value: string, culture?: string): number; + function parseColor(color: string, noerror: boolean): kendo.Color; + function prompt(text: string, defaultValue: string): JQueryPromise; + function proxyModelSetters(): void; + function proxyModelSetters(data: kendo.data.Model): void; + function resize(element: string, force: boolean): void; + function resize(element: JQuery, force: boolean): void; + function resize(element: Element, force: boolean): void; + function saveAs(options: any): void; + function stringify(value: any): string; + function throttle(fn: Function, timeout: number): Function; + function touchScroller(element: string): void; + function touchScroller(element: JQuery): void; + function touchScroller(element: Element): void; + function toString(value: Date, format: string, culture?: string): string; + function toString(value: number, format: string, culture?: string): string; + function unbind(element: string): void; + function unbind(element: JQuery): void; + function unbind(element: Element): void; namespace pdf { function defineFont(map: any): void; @@ -17573,6 +17637,7 @@ declare namespace kendo.spreadsheet { textAlign(): string; textAlign(value?: string): void; unmerge(): void; + values(): any; values(values: any): void; validation(): any; validation(value?: any): void; @@ -18683,6 +18748,7 @@ declare namespace kendo.ooxml { toDataURL(): string; + toDataURLAsync(): JQueryPromise; } @@ -19179,7 +19245,7 @@ declare namespace kendo.dataviz.drawing { } - interface FillOptions { + interface FillOptions { @@ -19478,7 +19544,7 @@ declare namespace kendo.dataviz.drawing { } - interface PDFOptions { + interface PDFOptions { @@ -19667,7 +19733,7 @@ declare namespace kendo.dataviz.drawing { } - interface StrokeOptions { + interface StrokeOptions { @@ -19817,7 +19883,7 @@ declare namespace kendo.dataviz.drawing { } - interface TooltipOptions { + interface TooltipOptions { diff --git a/types/keycloak-js/keycloak-authz.d.ts b/types/keycloak-js/keycloak-authz.d.ts index b15c505257..0ee42180b4 100644 --- a/types/keycloak-js/keycloak-authz.d.ts +++ b/types/keycloak-js/keycloak-authz.d.ts @@ -1,4 +1,4 @@ -import * as Keycloak from 'keycloak-js'; +import * as Keycloak from '.'; export as namespace KeycloakAuthorization; diff --git a/types/knockout/index.d.ts b/types/knockout/index.d.ts index 3a206fd04c..4ef3bc8739 100644 --- a/types/knockout/index.d.ts +++ b/types/knockout/index.d.ts @@ -151,8 +151,8 @@ interface KnockoutAllBindingsAccessor { interface KnockoutBindingHandler { after?: Array; - init?: (element: any, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor, viewModel?: any, bindingContext?: KnockoutBindingContext) => void | { controlsDescendantBindings: boolean; }; - update?: (element: any, valueAccessor: () => any, allBindingsAccessor?: KnockoutAllBindingsAccessor, viewModel?: any, bindingContext?: KnockoutBindingContext) => void; + init?: (element: any, valueAccessor: () => any, allBindingsAccessor: KnockoutAllBindingsAccessor, viewModel: any, bindingContext: KnockoutBindingContext) => void | { controlsDescendantBindings: boolean; }; + update?: (element: any, valueAccessor: () => any, allBindingsAccessor: KnockoutAllBindingsAccessor, viewModel: any, bindingContext: KnockoutBindingContext) => void; options?: any; preprocess?: (value: string, name: string, addBindingCallback?: (name: string, value: string) => void) => string; [s: string]: any; diff --git a/types/knockout/tsconfig.json b/types/knockout/tsconfig.json index f6f1635804..c5dd9f2ae7 100644 --- a/types/knockout/tsconfig.json +++ b/types/knockout/tsconfig.json @@ -21,4 +21,4 @@ "test/templatingBehaviors.ts", "test/index.ts" ] -} \ No newline at end of file +} diff --git a/types/koa-logger-winston/index.d.ts b/types/koa-logger-winston/index.d.ts new file mode 100644 index 0000000000..687c3494fa --- /dev/null +++ b/types/koa-logger-winston/index.d.ts @@ -0,0 +1,16 @@ +// Type definitions for koa-logger-winston 0.0 +// Project: https://github.com/selbyk/koa-logger-winston#readme +// Definitions by: Steve Hipwell +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import { Middleware } from 'koa'; +import { LoggerInstance } from 'winston'; + +export = logger; + +declare function logger(logger: LoggerInstance): Middleware; + +declare namespace logger { +} diff --git a/types/koa-logger-winston/koa-logger-winston-tests.ts b/types/koa-logger-winston/koa-logger-winston-tests.ts new file mode 100644 index 0000000000..44b9047b86 --- /dev/null +++ b/types/koa-logger-winston/koa-logger-winston-tests.ts @@ -0,0 +1,6 @@ +import * as koa from 'koa'; +import * as logger from 'koa-logger-winston'; +import * as winston from 'winston'; + +const app = new koa(); +app.use(logger(new winston.Logger())); diff --git a/types/koa-logger-winston/tsconfig.json b/types/koa-logger-winston/tsconfig.json new file mode 100644 index 0000000000..0cd24d7f45 --- /dev/null +++ b/types/koa-logger-winston/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "koa-logger-winston-tests.ts" + ] +} diff --git a/types/koa-logger-winston/tslint.json b/types/koa-logger-winston/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/koa-logger-winston/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/koa-range/index.d.ts b/types/koa-range/index.d.ts new file mode 100644 index 0000000000..f2b109b899 --- /dev/null +++ b/types/koa-range/index.d.ts @@ -0,0 +1,9 @@ +// Type definitions for koa-range 0.3 +// Project: https://github.com/koajs/koa-range +// Definitions by: Sami Kukkonen +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as Koa from "koa"; +declare const KoaRange: Koa.Middleware; +declare namespace KoaRange { } +export = KoaRange; diff --git a/types/koa-range/koa-range-tests.ts b/types/koa-range/koa-range-tests.ts new file mode 100644 index 0000000000..c489bf4a6b --- /dev/null +++ b/types/koa-range/koa-range-tests.ts @@ -0,0 +1,5 @@ +import * as range from "koa-range"; +import * as Koa from "koa"; + +const app = new Koa(); +app.use(range); diff --git a/types/koa-range/tsconfig.json b/types/koa-range/tsconfig.json new file mode 100644 index 0000000000..742860d438 --- /dev/null +++ b/types/koa-range/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "koa-range-tests.ts" + ] +} diff --git a/types/koa-range/tslint.json b/types/koa-range/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/koa-range/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/kuromoji/index.d.ts b/types/kuromoji/index.d.ts index d5ccd8aeb6..dc30170a9a 100644 --- a/types/kuromoji/index.d.ts +++ b/types/kuromoji/index.d.ts @@ -1,160 +1,156 @@ -// Type definitions for kuromoji.js +// Type definitions for kuromoji.js 0.1 // Project: https://github.com/takuyaa/kuromoji.js -// Definitions by: MIZUSHIMA Junki +// Definitions by: MIZUSHIMA Junki , kgtkr // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare namespace kuromoji { - - // dict/ConnectionCosts.js - interface ConnectionCosts { - buffer: Int16Array; - put(forward_id: number, backward_id: number, cost: number): void; - get(forward_id: number, backward_id: number): number; - loadConnectionCosts(connection_costs_buffer: Int16Array): void; - } - - // dict/DynamicDictionaries.js - interface DynamicDictionaries { - trie: doublearray.DoubleArray; - token_info_dictionary: TokenInfoDictionary; - connection_costs: ConnectionCosts; - unknown_dictionary: UnknownDictionary; - loadTrie(base_buffer: Int32Array, check_buffer: Int32Array): DynamicDictionaries; - } - - // dict/TokenInfoDictionary.js - interface TokenInfoDictionary { - buildDictionary(entries: any[][]): {[word_id: number]: string}; - put(left_id: number, right_id: number, word_cost: number, surface_form: string, feature: string): number; - addMapping(source: number, target: number): void; - targetMapToBuffer(): Uint8Array; - loadDictionary(array_buffer: Uint8Array): TokenInfoDictionary; - loadPosVector(array_buffer: Uint8Array): TokenInfoDictionary; - loadTargetMap(array_buffer: Uint8Array): TokenInfoDictionary; - getFeatures(token_info_id_str: string): string; - } - - // dict/UnknownDictionary.js - interface UnknownDictionary extends TokenInfoDictionary { - } - - // util/ByteBuffer.js - interface ByteBuffer { - buffer: Uint8Array; - position: number; - size(): number; - reallocate(): void; - shrink(): Uint8Array; - put(b: number): void; - get(index: number): number; - putShort(num: number): void; - getShort(index: number): number; - putInt(num: number): void; - getInt(index: number): number; - readInt(): number; - putString(str: string): void; - getString(index: number): string; - } - - // util/DictionaryBuilder.js - interface DictionaryBuilder { - tid_entries: string[]; - unk_entries: string[]; - addTokenInfoDictionary(text: string): DictionaryBuilder; - costMatrix(matrix_text: string): DictionaryBuilder; - charDef(char_text: string): DictionaryBuilder; - unkDef(text: string): DictionaryBuilder; - build(): DynamicDictionaries; - buildTokenInfoDictionary(): {trie: doublearray.DoubleArray; token_info_dictionary: TokenInfoDictionary}; - buildUnknownDictionary(): UnknownDictionary; - buildConnectionCosts(): ConnectionCosts; - buildDoubleArray(): doublearray.DoubleArray; - } - - // util/IpadicFormatter.js - interface Formatter { - formatEntry(word_id: number, position: number, type: string, features: string[]): T; - formatUnknownEntry(word_id: number, position: number, type: string, features: string[]): T; - } - interface IpadicFormatter extends Formatter { - } - export interface IpadicFeatures { - word_id: number; - word_type: string; - word_position: number; - surface_form: string; - pos: string; - pos_detail_1: string; - pos_detail_2: string; - pos_detail_3: string; - conjugated_type: string; - conjugated_form: string; - basic_form: string; - reading?: string; - pronunciation?: string; - } - - // viterbi/ViterbiBuilder.js - interface ViterbiBuilder { - trie: doublearray.DoubleArray; - token_info_dictionary: TokenInfoDictionary; - unknown_dictionary: UnknownDictionary; - build(sentence_str: string): ViterbiLattice; - } - - // viterbi/ViterbiLattice.js - interface ViterbiLattice { - append(node: ViterbiNode): void; - appendEos(): void; - } - - // viterbi/ViterbiNode.js - interface ViterbiNode { - name: string; - cost: number; - start_pos: number; - length: number; - left_id: number; - right_id: number; - prev: ViterbiNode; - surface_form: string; - shortest_cost: number; - type: string; - } - - // viterbi/ViterbiSearcher.js - interface ViterbiSearcher { - connection_costs: ConnectionCosts; - search(lattice: ViterbiLattice): ViterbiNode[]; - forward(lattice: ViterbiLattice): ViterbiLattice; - backward(lattice: ViterbiLattice): ViterbiNode[]; - } - - // Tokenizer.js - interface TokenizerStatic { - splitByPunctuation(input: string): string[]; - } - interface Tokenizer { - token_info_dictionary: TokenInfoDictionary; - unknown_dictionary: UnknownDictionary; - viterbi_builder: ViterbiBuilder; - viterbi_searcher: ViterbiSearcher; - formatter: Formatter; - tokenize(text: string): T[]; - getLattice(text: string): ViterbiLattice; - } - - // TokenizerBuilder.js - interface TokenizerBuilder { - build(callback: (err: Error, tokenizer: Tokenizer) => void): void; - } - interface TokenizerBuilderOption { - dicPath?: string; - } - - // kuromoji.js - export function builder(option: TokenizerBuilderOption): TokenizerBuilder; - export function dictionaryBuilder(): DictionaryBuilder; +// dict/ConnectionCosts.js +export interface ConnectionCosts { + buffer: Int16Array; + put(forward_id: number, backward_id: number, cost: number): void; + get(forward_id: number, backward_id: number): number; + loadConnectionCosts(connection_costs_buffer: Int16Array): void; } + +// dict/DynamicDictionaries.js +export interface DynamicDictionaries { + trie: doublearray.DoubleArray; + token_info_dictionary: TokenInfoDictionary; + connection_costs: ConnectionCosts; + unknown_dictionary: UnknownDictionary; + loadTrie(base_buffer: Int32Array, check_buffer: Int32Array): DynamicDictionaries; +} + +// dict/TokenInfoDictionary.js +export interface TokenInfoDictionary { + buildDictionary(entries: any[][]): { [word_id: number]: string }; + put(left_id: number, right_id: number, word_cost: number, surface_form: string, feature: string): number; + addMapping(source: number, target: number): void; + targetMapToBuffer(): Uint8Array; + loadDictionary(array_buffer: Uint8Array): TokenInfoDictionary; + loadPosVector(array_buffer: Uint8Array): TokenInfoDictionary; + loadTargetMap(array_buffer: Uint8Array): TokenInfoDictionary; + getFeatures(token_info_id_str: string): string; +} + +// dict/UnknownDictionary.js +export type UnknownDictionary = TokenInfoDictionary; + +// util/ByteBuffer.js +export interface ByteBuffer { + buffer: Uint8Array; + position: number; + size(): number; + reallocate(): void; + shrink(): Uint8Array; + put(b: number): void; + get(index: number): number; + putShort(num: number): void; + getShort(index: number): number; + putInt(num: number): void; + getInt(index: number): number; + readInt(): number; + putString(str: string): void; + getString(index: number): string; +} + +// util/DictionaryBuilder.js +export interface DictionaryBuilder { + tid_entries: string[]; + unk_entries: string[]; + addTokenInfoDictionary(text: string): DictionaryBuilder; + costMatrix(matrix_text: string): DictionaryBuilder; + charDef(char_text: string): DictionaryBuilder; + unkDef(text: string): DictionaryBuilder; + build(): DynamicDictionaries; + buildTokenInfoDictionary(): { trie: doublearray.DoubleArray; token_info_dictionary: TokenInfoDictionary }; + buildUnknownDictionary(): UnknownDictionary; + buildConnectionCosts(): ConnectionCosts; + buildDoubleArray(): doublearray.DoubleArray; +} + +// util/IpadicFormatter.js +export interface Formatter { + formatEntry(word_id: number, position: number, type: string, features: string[]): T; + formatUnknownEntry(word_id: number, position: number, type: string, features: string[]): T; +} +export type IpadicFormatter = Formatter; + +export interface IpadicFeatures { + word_id: number; + word_type: string; + word_position: number; + surface_form: string; + pos: string; + pos_detail_1: string; + pos_detail_2: string; + pos_detail_3: string; + conjugated_type: string; + conjugated_form: string; + basic_form: string; + reading?: string; + pronunciation?: string; +} + +// viterbi/ViterbiBuilder.js +export interface ViterbiBuilder { + trie: doublearray.DoubleArray; + token_info_dictionary: TokenInfoDictionary; + unknown_dictionary: UnknownDictionary; + build(sentence_str: string): ViterbiLattice; +} + +// viterbi/ViterbiLattice.js +export interface ViterbiLattice { + append(node: ViterbiNode): void; + appendEos(): void; +} + +// viterbi/ViterbiNode.js +export interface ViterbiNode { + name: string; + cost: number; + start_pos: number; + length: number; + left_id: number; + right_id: number; + prev: ViterbiNode; + surface_form: string; + shortest_cost: number; + type: string; +} + +// viterbi/ViterbiSearcher.js +export interface ViterbiSearcher { + connection_costs: ConnectionCosts; + search(lattice: ViterbiLattice): ViterbiNode[]; + forward(lattice: ViterbiLattice): ViterbiLattice; + backward(lattice: ViterbiLattice): ViterbiNode[]; +} + +// Tokenizer.js +export interface TokenizerStatic { + splitByPunctuation(input: string): string[]; +} +export interface Tokenizer { + token_info_dictionary: TokenInfoDictionary; + unknown_dictionary: UnknownDictionary; + viterbi_builder: ViterbiBuilder; + viterbi_searcher: ViterbiSearcher; + formatter: Formatter; + tokenize(text: string): T[]; + getLattice(text: string): ViterbiLattice; +} + +// TokenizerBuilder.js +export interface TokenizerBuilder { + build(callback: (err: Error, tokenizer: Tokenizer) => void): void; +} +export interface TokenizerBuilderOption { + dicPath?: string; +} + +// kuromoji.js +export function builder(option: TokenizerBuilderOption): TokenizerBuilder; +export function dictionaryBuilder(): DictionaryBuilder; diff --git a/types/kuromoji/kuromoji-tests.ts b/types/kuromoji/kuromoji-tests.ts index 7b0cd21b62..5e41f39e34 100644 --- a/types/kuromoji/kuromoji-tests.ts +++ b/types/kuromoji/kuromoji-tests.ts @@ -1,11 +1,11 @@ - +import * as kuromoji from 'kuromoji'; // From https://github.com/takuyaa/kuromoji.js/blob/master/README.md#usage -kuromoji.builder({ dicPath: "/url/to/dictionary/dir/" }).build(function (err, tokenizer) { - var path = tokenizer.tokenize("すもももももももものうち"); - var num_tmp: number; - var str_tmp: string; - path.forEach((token)=>{ +kuromoji.builder({ dicPath: "/url/to/dictionary/dir/" }).build((err, tokenizer) => { + const path = tokenizer.tokenize("すもももももももものうち"); + let num_tmp: number; + let str_tmp: string; + path.forEach((token) => { num_tmp = token.word_id; str_tmp = token.word_type; num_tmp = token.word_position; @@ -23,11 +23,11 @@ kuromoji.builder({ dicPath: "/url/to/dictionary/dir/" }).build(function (err, to }); // From https://github.com/takuyaa/kuromoji.js/blob/master/test/resource/minimum-dic/minimum.csv -var minimum_dict = [ +const minimum_dict = [ "すもも,1285,1285,7546,名詞,一般,*,*,*,*,すもも,スモモ,スモモ", "もも,1285,1285,7219,名詞,一般,*,*,*,*,もも,モモ,モモ" ].join('\n'); -var builder = kuromoji.dictionaryBuilder(); +let builder = kuromoji.dictionaryBuilder(); builder = builder.addTokenInfoDictionary(minimum_dict); -var dict = builder.build(); \ No newline at end of file +const dict = builder.build(); diff --git a/types/kuromoji/tslint.json b/types/kuromoji/tslint.json new file mode 100644 index 0000000000..e60c15844f --- /dev/null +++ b/types/kuromoji/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} \ No newline at end of file diff --git a/types/lambda-phi/index.d.ts b/types/lambda-phi/index.d.ts deleted file mode 100644 index 40e6c22a2b..0000000000 --- a/types/lambda-phi/index.d.ts +++ /dev/null @@ -1,329 +0,0 @@ -// Type definitions for lambda-phi 1.0 -// Project: https://github.com/elitechance/lambda-phi -// Definitions by: Ethan Dave B. Gomez -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -declare module 'lambda-phi/lib/path-model' { - class PathModel { - private _methodName; - private _pattern; - private _httpMethods; - pattern: string; - httpMethods: string[]; - methodName: string; - } -} - -declare module 'lambda-phi/lib/path-param-model' { - /** - * Created by EGomez on 5/18/17. - */ - class PathParamModel { - private _name: string; - private _index: number; - private _methodName: string; - private _defaultValue: any; - name: string; - index: number; - methodName: string; - defaultValue: any; - } -} - -declare module 'lambda-phi/lib/http-verb-model' { - /** - * Created by EGomez on 5/18/17. - */ - class HttpVerbModel { - private _name: string; - private _methodName: string; - name: string; - methodName: string; - } -} - -declare module 'lambda-phi/lib/lambda-config' { - /** - * Created by EGomez on 5/19/17. - */ - interface LambdaConfig { - allowNullInjection: boolean; - } -} - -declare module 'lambda-phi/lib/lambda-model' { - /** - * Created by EGomez on 2/23/17. - */ - import { PathModel } from 'lambda-phi/lib/path-model'; - import { PathParamModel } from 'lambda-phi/lib/path-param-model'; - import { HttpVerbModel } from 'lambda-phi/lib/http-verb-model'; - import { LambdaConfig } from 'lambda-phi/lib/lambda-config'; - class LambdaModel { - private _name: any; - private _instance: any; - private _paths: PathModel[]; - private _basePath: string; - private _pathParams: PathParamModel[]; - private _httpVerbs: HttpVerbModel[]; - private _config: any; - /** - * API Properties - */ - private _postConstructorMethod; - private _preLambdaTimeoutMethod; - private _preLambdaTimeoutTime; - private _preLambdaCallbackMethod; - /** - * Lambda Properties - */ - private _eventProperty; - private _callbackProperty; - private _contextProperty; - private _handlerMethod; - /** - * Api Gateway Properties - */ - private _queryParamsProperty; - private _pathParamsProperty; - private _headersProperty; - private _bodyProperty; - private _methodProperty; - private _anyMethod; - name: any; - instance: any; - eventProperty: any; - handlerMethod: any; - callbackProperty: any; - queryParamsProperty: any; - pathParamsProperty: any; - methodProperty: any; - contextProperty: any; - anyMethod: any; - postConstructorMethod: any; - headersProperty: any; - bodyProperty: any; - preLambdaTimeoutMethod: string; - preLambdaTimeoutTime: number; - preLambdaCallbackMethod: string; - paths: PathModel[]; - basePath: string; - pathParams: PathParamModel[]; - httpVerbs: HttpVerbModel[]; - config: LambdaConfig; - } -} - -declare module 'lambda-phi/lib/http-model' { - /** - * Created by EGomez on 5/4/17. - */ - class HttpModel { - static readonly METHOD_GET: string; - static readonly METHOD_POST: string; - static readonly METHOD_PATCH: string; - static readonly METHOD_OPTIONS: string; - static readonly METHOD_PUT: string; - static readonly METHOD_HEAD: string; - static readonly METHOD_DELETE: string; - static readonly methods: string[]; - } -} - -declare module 'lambda-phi/lib/api-gateway' { - import { LambdaModel } from 'lambda-phi/lib/lambda-model'; - class ApiGateway { - private static event; - private static context; - private static queryParams; - private static pathParams; - private static method; - private static headers; - private static body; - private static pathConfig; - static queryParamsAlias: any; - static pathParamsAlias: any; - static methodAlias: any; - static headersAlias: any; - static bodyAlias: any; - - static addHttpVerbMethod(name: string, target: any, methodName: any): void; - - static addAnyMethod(target: any, method: any): void; - - static addHandlerMethod(target: any, method: any): void; - - static addPostConstructorMethod(target: any, method: any): void; - - static addPathMethod(pattern: string, target: any, method: any): void; - - static addPathParam(name: string, target: any, methodName: any, index: number): void; - - static addHeadersProperty(target: any, property: any): void; - - static addQueryParamsProperty(target: any, property: any): void; - - static addMethodProperty(target: any, property: any): void; - - static addBodyProperty(target: any, property: any): void; - - static addPathParamsProperty(target: any, property: any): void; - - private static getHttpVerbMethods(lambda); - - private static methodHasPath(lambda, methodName); - - static setPathConfig(config: any): void; - - static executeHttpRequest(lambda: LambdaModel): void; - - private static executeAnyRequest(lambda); - - private static getObjectValue(object, name); - - private static getAliasValue(event, alias); - - private static setQueryParams(); - - private static setPathParams(); - - private static setMethod(); - - private static setHeaders(); - - private static setBody(); - - static prepareHttpRequestVariables(event: any, context: any): void; - - private static getHttpVerbsByMethodName(lambda, methodName); - - private static verbExists(verbs, verb); - - private static getArgs(keys, pathToRegEx, lambda, path); - - private static getResourcePath(); - - private static executePathLambdaMethod(pathToRegEx, lambda, path); - - static executePath(lambda: LambdaModel): boolean; - - private static getHeaders(lambda); - - private static getQueryParams(lambda); - - private static getPathParams(lambda); - - static setLambdaProperties(lambda: LambdaModel): void; - } - - function Get(): (target: any, methodName: string) => void; - - function Post(): (target: any, methodName: string) => void; - - function Put(): (target: any, methodName: string) => void; - - function Patch(): (target: any, methodName: string) => void; - - function Options(): (target: any, methodName: string) => void; - - function Delete(): (target: any, methodName: string) => void; - - function Head(): (target: any, methodName: string) => void; - - function Any(): (target: any, methodName: string) => void; - - /** - * "alias" will be the alternative name defined in Body Mapping Templates - */ - function Headers(alias?: any): (target: any, propertyKey: string) => void; - - function QueryParams(alias?: any): (target: any, propertyKey: string) => void; - - function PathParams(alias?: any): (target: any, propertyKey: string) => void; - - function Method(alias?: any): (target: any, propertyKey: string) => void; - - function Body(alias?: any): (target: any, propertyKey: string) => void; - - function Path(pattern: string): (target: any, propertyKey: string) => void; - - function PathConfig(config: any): (target: any) => void; - - function PathParam(name: string): (target: any, propertyKey: string, index: number) => void; -} - -declare module 'lambda-phi/lib/lambda-manager' { - import { LambdaModel } from 'lambda-phi/lib/lambda-model'; - import { LambdaConfig } from 'lambda-phi/lib/lambda-config'; - class LambdaManager { - static instance: LambdaManager; - private _rawHandler; - private _event; - private _context; - private _callback; - private _lambdaModels; - private _lambdas; - - upsertLambdaModel(target: any): LambdaModel; - - setLambda(target: any, lambdaConfig: LambdaConfig): void; - - setLambdaPath(target: any, path: any): void; - - private getEvent(lambda); - - private setLambdaProperties(lambda); - - private executePostConstructor(lambda); - - private executeHandler(lambda); - - private setPreLambdaTimeoutMethod(lambda); - - processLambdas(): void; - - getLambdaByName(name: string): LambdaModel; - - addHandlerMethod(target: any, method: any): void; - - addPostConstructorMethod(target: any, method: any): void; - - addPreLambdaTimeoutMethod(target: any, method: string, miliSecondsBeforeTimeout: number): void; - - addPreLambdaCallbackMethod(target: any, method: string): void; - - addCallbackProperty(target: any, property: any): void; - - addEventProperty(target: any, property: any): void; - - addContextProperty(target: any, property: any): void; - - private executePreLambdaCallback(lambda); - - event: any; - context: any; - callback: any; - rawHandler: any; - } -} - -declare module 'lambda-phi' { - import { LambdaConfig } from 'lambda-phi/lib/lambda-config'; - - function LambdaHandler(event: any, context: any, callback: any): void; - - function Lambda(lambdaConfig?: LambdaConfig): (target: any) => void; - - function PostConstructor(): (target: any, methodName: string) => void; - - function PreLambdaTimeout(miliSecondsBeforeTimeout: number): (target: any, methodName: string) => void; - - function PreLambdaCallback(): (target: any, methodName: string) => void; - - function Context(): (target: any, propertyKey: string) => void; - - function Callback(): (target: any, propertyKey: string) => void; - - function Event(): (target: any, propertyKey: string) => void; -} diff --git a/types/lambda-phi/lambda-phi-tests.ts b/types/lambda-phi/lambda-phi-tests.ts deleted file mode 100644 index 5d0b5f3102..0000000000 --- a/types/lambda-phi/lambda-phi-tests.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { Lambda, Event, Context, PostConstructor, PreLambdaTimeout, PreLambdaCallback, Callback } from 'lambda-phi'; -import { - Path, - PathParam, - Get, - Post, - Delete, - Headers, - PathParams, - QueryParams, - Method, - Any, - Body -} from 'lambda-phi/lib/api-gateway'; - -@Lambda({allowNullInjection: false}) -class LambdaClassTest { - @Context() context; - @Method() method; // GET, POST, ... - @Callback() callback; - @Event() event; - @PathParams() pathParams; // /users/{id} --> this.pathParams.id - @Body() body; - @QueryParams() queryParams; - - @Get() - @Post() - otherWise() { - this.callback(null, {body: JSON.stringify("otherwise\n")}); - // this.callback(null, {event:this.event, context:this.context}); - } - - @Path('/affiliates/:id') - normalCallback() { - this.callback(null, this.context); - } - - @Path('/body/:id') - path1(@PathParam('id') id: string) { - this.callback(null, {body: JSON.stringify("my path 1\n")}); - } - - /* @Path('/affiliates') - public affiliates() { - this.callback(null, this.event); - }*/ - - @Path('/body/:my/:path2') - @Get() - @Post() - path2(@PathParam('path2') path: string, @PathParam('my') here: string) { - this.callback(null, { - body: JSON.stringify(`path: ${path}, my:${here}, query: ${this.queryParams.var}\n`) - }); - } - - @Any() - any() { - this.callback(null, {body: JSON.stringify("any method")}); - } -} diff --git a/types/lambda-phi/tslint.json b/types/lambda-phi/tslint.json deleted file mode 100644 index 5a3a4bb647..0000000000 --- a/types/lambda-phi/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - // TODOs - "no-duplicate-imports": false - } -} diff --git a/types/leaflet-draw/index.d.ts b/types/leaflet-draw/index.d.ts index 5ae8c81605..de0767d462 100644 --- a/types/leaflet-draw/index.d.ts +++ b/types/leaflet-draw/index.d.ts @@ -1,6 +1,8 @@ // Type definitions for leaflet-draw 0.4 // Project: https://github.com/Leaflet/Leaflet.draw -// Definitions by: Matt Guest , Ryan Blace +// Definitions by: Matt Guest +// Ryan Blace +// Yun Shi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -252,6 +254,60 @@ declare module 'leaflet' { const DELETESTART: string; const DELETESTOP: string; } + + class Feature extends Handler { + initialize( + map: Map, + options: DrawOptions.PolylineOptions | DrawOptions.PolygonOptions | DrawOptions.RectangleOptions | DrawOptions.MarkerOptions | DrawOptions.EditHandlerOptions | DrawOptions.DeleteHandlerOptions + ): void; + + setOptions( + options: DrawOptions.PolylineOptions | DrawOptions.PolygonOptions | DrawOptions.RectangleOptions | DrawOptions.MarkerOptions | DrawOptions.EditHandlerOptions | DrawOptions.DeleteHandlerOptions + ): void; + } + + class SimpleShape extends Feature { } + class Marker extends Feature { + constructor( + map: Map, + options?: DrawOptions.MarkerOptions + ) + } + + class CircleMarker extends Feature { + constructor( + map: Map, + options?: DrawOptions.MarkerOptions + ) + } + + class Circle extends Feature { + constructor( + map: Map, + options?: DrawOptions.CircleOptions + ) + } + + class Polyline extends Feature { + constructor( + map: Map, + options?: DrawOptions.PolylineOptions + ) + } + + class Rectangle extends Feature { + constructor( + map: Map, + options?: DrawOptions.RectangleOptions + ) + } + + class Polygon extends Feature { + constructor( + map: Map, + options?: DrawOptions.PolygonOptions + ) + } } namespace DrawEvents { diff --git a/types/leaflet-draw/tsconfig.json b/types/leaflet-draw/tsconfig.json index dbb1fec45a..e36b77de72 100644 --- a/types/leaflet-draw/tsconfig.json +++ b/types/leaflet-draw/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" diff --git a/types/leaflet-gpx/index.d.ts b/types/leaflet-gpx/index.d.ts new file mode 100644 index 0000000000..7eac361403 --- /dev/null +++ b/types/leaflet-gpx/index.d.ts @@ -0,0 +1,70 @@ +// Type definitions for leaflet-polylinedecorator 1.1 +// Project: https://github.com/bbecquet/Leaflet.PolylineDecorator#readme +// Definitions by: Viktor Soucek +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import * as L from 'leaflet'; + +declare module 'leaflet' { + interface GPXOptions { + async?: boolean; + max_point_interval?: number; + marker_options?: MarkerOptions; + polyline_options?: PolylineOptions; + gpx_options?: { parseElements: ['track', 'route', 'waypoint'] }; + } + class GPX extends FeatureGroup { + constructor(gpx: any, options?: GPXOptions); + get_duration_string(duration: any, hidems: any): any; + get_duration_string_iso(duration: any, hidems: any): any; + to_miles(v: any): any; + to_ft(v: any): any; + m_to_km(v: any): any; + m_to_mi(v: any): any; + + get_name(): any; + get_desc(): any; + get_author(): any; + get_copyright(): any; + get_distance(): any; + get_distance_imp(): any; + + get_start_time(): any; + get_end_time(): any; + get_moving_time(): any; + get_total_time(): any; + + get_moving_pace(): any; + get_moving_pace_imp(): any; + + get_moving_speed(): any; + get_moving_speed_imp(): any; + + get_total_speed(): any; + get_total_speed_imp(): any; + + get_elevation_gain(): any; + get_elevation_loss(): any; + get_elevation_gain_imp(): any; + get_elevation_loss_imp(): any; + get_elevation_data(): any; + get_elevation_data_imp(): any; + get_elevation_max(): any; + get_elevation_min(): any; + get_elevation_max_imp(): any; + get_elevation_min_imp(): any; + + get_average_hr(): any; + get_average_temp(): any; + get_average_cadence(): any; + get_heartrate_data(): any; + get_heartrate_data_imp(): any; + get_cadence_data(): any; + get_temp_data(): any; + get_cadence_data_imp(): any; + get_temp_data_imp(): any; + + reload(): void; + } +} diff --git a/types/leaflet-gpx/leaflet-gpx-tests.ts b/types/leaflet-gpx/leaflet-gpx-tests.ts new file mode 100644 index 0000000000..342d1d00d7 --- /dev/null +++ b/types/leaflet-gpx/leaflet-gpx-tests.ts @@ -0,0 +1,27 @@ +import * as L from 'leaflet'; +import 'leaflet-gpx'; +const osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'; +const osmAttrib = '© OpenStreetMap contributors'; +const osm = L.tileLayer(osmUrl, { maxZoom: 18, attribution: osmAttrib }); +const map = L.map('map', { layers: [osm], center: L.latLng(-37.7772, 175.2756), zoom: 15 }); +const gpx = new L.GPX( + '\ + \ + Garmin Connect\ + Villefontaine Course à piedrunning\ + \ + 282.399993896484375\ + 58\ + \ + 282.39999389648437558\ + \ + 28258\ + ', + { async: true }) + .on('loaded', (e: any) => { + map.fitBounds(e.target.getBounds()); + }).addTo(map); diff --git a/types/leaflet-gpx/tsconfig.json b/types/leaflet-gpx/tsconfig.json new file mode 100644 index 0000000000..68f95ad1a4 --- /dev/null +++ b/types/leaflet-gpx/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "leaflet-gpx-tests.ts" + ] +} diff --git a/types/leaflet-gpx/tslint.json b/types/leaflet-gpx/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/leaflet-gpx/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/localizejs-library/index.d.ts b/types/localizejs-library/index.d.ts new file mode 100644 index 0000000000..17d75bce31 --- /dev/null +++ b/types/localizejs-library/index.d.ts @@ -0,0 +1,225 @@ +// Type definitions for LocalizeJS Library 1.0 +// Project: https://help.localizejs.com/docs/library-api +// Definitions by: Samer Albahra +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace LocalizeJS.Context { + interface Options { + /** + * Required. Your project key. + */ + key: string; + + /** + * Language to translate your website to. + */ + targetLanguage: string; + + /** + * Defaults to false. If true, Localize will translate your website to the last selected language on subsequent page views. + */ + rememberLanguage: boolean; + + /** + * Defaults to true. If true, translations will be fetched from Localize if not bootstrapped. + */ + fetchTranslations: boolean; + + /** + * Defaults to true. If true, unrecognized phrases will be added to your Localize account. Disable this in development. + */ + saveNewPhrases: boolean; + + /** + * Defaults to true. If true, "alt" attributes will be translated. + */ + translateAlt: boolean; + + /** + * Defaults to false. Set to true to prefetch all active languages, or pass a language code or an array of codes to. + */ + prefetch: boolean; + + /** + * Array of class names for which Localize will ignore. + */ + blockedClasses: string[]; + + /** + * Array of class names for which Localize will translate. If you use this option, Localize will only translate content + * contained in these classes and will ignore all other content in the body of the page. + */ + translateClasses: string[]; + + /** + * Defaults to true. Automatically default the page language to the user's preferred language. The first path segment + * in the URL is used to check to detect the language, ie. www.localize.com/fr. If no language dictionary exists for that + * segment then the language setting in their browser is used. + */ + autodetectLanguage: boolean; + + /** + * Defaults to false. When true, Localize will attempt to translate the entire body of the page. + * If false, Localize will only translate content contained with a "localizejs" class name. + */ + translateBody: boolean; + + /** + * The default language your website will be in when no language has been selected. Defaults to the source language of your website. + */ + defaultLanguage: string; + + /** + * The base path will be stripped from the URL of the phrase as seen in the "Filter by pages" feature. + */ + basePath: string; + + /** + * Defaults to true. If true, the of the page will translate. + */ + translateTitle: boolean; + + /** + * Defaults to false. Allows users to turn on meta tag translation. This optimizes your site for SEO. + */ + translateMetaTags: boolean; + + /** + * Defaults to false. If true, Localize will detect phrases only when the page is not translated. + * Please contact support@localizejs.com prior to updating this option. + */ + saveNewPhrasesFromSource: boolean; + + /** + * Defaults to false. Automatically translate content that is added dynamically to your webpage. + * For example, if your webpage dynamically adds html into the source of the page, our library + * will translate it once the translations have been generated. Behind the scenes this means the + * dictionary file with all your translated content is available for use with Localize.translate(). + * However, translations are not generated instantly, so use with our library event updatedDictionary is recommended. + */ + retranslateOnNewPhrases: boolean; + + /** + * Defaults to false. If true, the Localize library will not send additional metadata to our servers. + * This metadata includes the surrounding HTML of the phrases detected on your website. + */ + enhancedContentSecurity: boolean; + + /** + * Defaults to false. If true, the Localize library will pick up phrases in the <time> elements. + */ + translateTimeElement: boolean; + + /** + * Defaults to false. If true, the Localize library will pick up numbers as phrases. + */ + translateNumbers: boolean; + } +} + +declare var Localize: { + /** + * Initializes LocalizeJS with the supplied options. + * @param options An object containing the supplied options. + */ + initialize(options: LocalizeJS.Context.Options): void; + + /** + * Translates the page into the given language. + * @param language Required. Language codes can be found on your Languages page. + */ + setLanguage(language: string): void + + /** + * Returns the current language of the page. If a language hasn't been set, source is returned. + */ + getLanguage(): string + + /** + * Returns the visitor's list of preferred languages, based on the browser's "accept-language" header. + * @param callback Required. + */ + detectLanguage(callback: () => void): void + + /** + * Returns all available languages for the project. + * @param callback Required. + */ + getAvailableLanguages(callback: () => void): void + + /** + * Translates text or text within html. + * + * If the Localize.translate() input is a string, instances of %{variable} will be replaced with the given value in the variables object. + * You may also use HTML <var> tags in the string + * + * If the active language is the source language of the page, Localize.translate will return the untranslated phrase. + * Localize.translate can be used with or without a callback. We highly recommend using the callback approach if you're calling + * Localize.translate in the first 10 seconds of page load to ensure that the latest translations are available. The callback will + * allow the translation to delay until translations have been fully loaded into the browser. If the translations are already + * loaded, the callback is executed immediately. + * + * @param input Required. Can be text, html or native DOM elements + * @param variables Optional. Object of variables that will be replaced in the input, if it's a string + * @param callback Optional. Callback will trigger once translations have been fetched from Localize. + */ + translate(input: string, variables?: any, callback?: () => void): void + + /** + * Translates all text on the page + */ + translatePage(): void + + /** + * Untranslates all text on the page + */ + untranslatePage(): void + + /** + * Untranslates a specified element on the page. Use Localize.untranslatePage() if untranslating the whole page. + * @param element Required. A DOM node to untranslate + */ + untranslate(element: string): void + + /** + * Bootstrapping translations enables your app to translate without fetching translations remotely from Localizejs.com + * @param translations Required. Generate properly formatted translations on your Languages page + */ + bootstrap(translations: any): void + + /** + * Speed up language switching by prefetching + * @param languages Required. Accepts a string or an array or languages (ex. 'zh-CN') + */ + prefetch(languages: string|string[]): void + + /** + * Saves the phrase, if unrecognized, to your Localize project. Useful for ensuring rarely printed text + * (ie. an obscure error message) is translated. Returns the phrase it was passed. + * @param phrase Required. A string or an array of strings + */ + phrase(phrase: string|string[]): string|string[] + + /** + * Attach an event handler to Localize events. + * @param eventName Required. Name of event to bind to. Can optionally be namespaced: "setLanguage.ns" + * @param fn Required. Event handler. + */ + on(eventName: "initialize" | "setLanguage" | "pluralize" | "translate" | "untranslatePage" | "updatedDictionary", fn: () => void): void + + /** + * Remove an event handler. + * @param eventName Required. Name of event to unbind to. Can optionally be namespaced: "setLanguage.ns" + * @param fn Optional. The () => void to unbind from the event. + */ + on(eventName: "initialize" | "setLanguage" | "pluralize" | "translate" | "untranslatePage" | "updatedDictionary", fn?: () => void): void + + /** + * Returns exchange rate for provided currencies. + * + * @param fromCurrency Required. The default source currency, to be converted from. + * @param toCurrency Required. The new currency, to be converted to. + * @param callback Required. Receives err and rateData arguments. + */ + getExchangeRate(fromCurrency: string, toCurrency: string, callback: () => void): void +}; diff --git a/types/localizejs-library/localizejs-library-tests.ts b/types/localizejs-library/localizejs-library-tests.ts new file mode 100644 index 0000000000..8566b984b5 --- /dev/null +++ b/types/localizejs-library/localizejs-library-tests.ts @@ -0,0 +1,3 @@ +const current = Localize.getLanguage(); + +Localize.setLanguage(current); diff --git a/types/localizejs-library/tsconfig.json b/types/localizejs-library/tsconfig.json new file mode 100644 index 0000000000..0dfeec7c44 --- /dev/null +++ b/types/localizejs-library/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "localizejs-library-tests.ts" + ] +} diff --git a/types/localizejs-library/tslint.json b/types/localizejs-library/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/localizejs-library/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/lodash-es/cond.d.ts b/types/lodash-es/cond.d.ts new file mode 100644 index 0000000000..b7e8fc00e0 --- /dev/null +++ b/types/lodash-es/cond.d.ts @@ -0,0 +1,2 @@ +import { cond } from "lodash"; +export default cond; diff --git a/types/lodash-es/divide.d.ts b/types/lodash-es/divide.d.ts new file mode 100644 index 0000000000..ee3e0b78b3 --- /dev/null +++ b/types/lodash-es/divide.d.ts @@ -0,0 +1,2 @@ +import { divide } from "lodash"; +export default divide; diff --git a/types/lodash-es/entries.d.ts b/types/lodash-es/entries.d.ts new file mode 100644 index 0000000000..621e793fa4 --- /dev/null +++ b/types/lodash-es/entries.d.ts @@ -0,0 +1,2 @@ +import { entries } from "lodash"; +export default entries; diff --git a/types/lodash-es/entriesIn.d.ts b/types/lodash-es/entriesIn.d.ts new file mode 100644 index 0000000000..3f0ad390cb --- /dev/null +++ b/types/lodash-es/entriesIn.d.ts @@ -0,0 +1,2 @@ +import { entriesIn } from "lodash"; +export default entriesIn; diff --git a/types/lodash-es/flatMapDeep.d.ts b/types/lodash-es/flatMapDeep.d.ts new file mode 100644 index 0000000000..762fece30a --- /dev/null +++ b/types/lodash-es/flatMapDeep.d.ts @@ -0,0 +1,2 @@ +import { flatMapDeep } from "lodash"; +export default flatMapDeep; diff --git a/types/lodash-es/flatMapDepth.d.ts b/types/lodash-es/flatMapDepth.d.ts new file mode 100644 index 0000000000..79aecba162 --- /dev/null +++ b/types/lodash-es/flatMapDepth.d.ts @@ -0,0 +1,2 @@ +import { flatMapDepth } from "lodash"; +export default flatMapDepth; diff --git a/types/lodash-es/index.d.ts b/types/lodash-es/index.d.ts index 08964fa17f..7389fc7900 100644 --- a/types/lodash-es/index.d.ts +++ b/types/lodash-es/index.d.ts @@ -33,6 +33,7 @@ export { cloneWith, compact, concat, + cond, constant, countBy, create, @@ -47,6 +48,7 @@ export { difference, differenceBy, differenceWith, + divide, drop, dropRight, dropRightWhile, @@ -54,6 +56,8 @@ export { each, eachRight, endsWith, + entries, + entriesIn, eq, escape, escapeRegExp, @@ -70,6 +74,8 @@ export { findLastKey, first, flatMap, + flatMapDeep, + flatMapDepth, flatten, flattenDeep, flattenDepth, @@ -94,10 +100,10 @@ export { hasIn, head, identity, - inRange, includes, indexOf, initial, + inRange, intersection, intersectionBy, intersectionWith, @@ -175,6 +181,7 @@ export { noConflict, noop, now, + nth, nthArg, omit, omitBy, @@ -198,6 +205,7 @@ export { pull, pullAll, pullAllBy, + pullAllWith, pullAt, random, range, @@ -250,6 +258,7 @@ export { thru, times, toArray, + toFinite, toInteger, toLength, toLower, @@ -273,12 +282,13 @@ export { unionWith, uniq, uniqBy, - uniqWith, uniqueId, + uniqWith, unset, unzip, unzipWith, update, + updateWith, upperCase, upperFirst, values, @@ -291,5 +301,6 @@ export { xorWith, zip, zipObject, + zipObjectDeep, zipWith } from "lodash"; diff --git a/types/lodash-es/nth.d.ts b/types/lodash-es/nth.d.ts new file mode 100644 index 0000000000..e6366a47a0 --- /dev/null +++ b/types/lodash-es/nth.d.ts @@ -0,0 +1,2 @@ +import { nth } from "lodash"; +export default nth; diff --git a/types/lodash-es/pullAllWith.d.ts b/types/lodash-es/pullAllWith.d.ts new file mode 100644 index 0000000000..c8fcf06645 --- /dev/null +++ b/types/lodash-es/pullAllWith.d.ts @@ -0,0 +1,2 @@ +import { pullAllWith } from "lodash"; +export default pullAllWith; diff --git a/types/lodash-es/toFinite.d.ts b/types/lodash-es/toFinite.d.ts new file mode 100644 index 0000000000..e3b9171da5 --- /dev/null +++ b/types/lodash-es/toFinite.d.ts @@ -0,0 +1,2 @@ +import { toFinite } from "lodash"; +export default toFinite; diff --git a/types/lodash-es/tsconfig.json b/types/lodash-es/tsconfig.json index 4cb568cb78..3a7ac3575b 100644 --- a/types/lodash-es/tsconfig.json +++ b/types/lodash-es/tsconfig.json @@ -44,6 +44,7 @@ "cloneWith.d.ts", "compact.d.ts", "concat.d.ts", + "cond.d.ts", "constant.d.ts", "countBy.d.ts", "create.d.ts", @@ -58,6 +59,7 @@ "difference.d.ts", "differenceBy.d.ts", "differenceWith.d.ts", + "divide.d.ts", "drop.d.ts", "dropRight.d.ts", "dropRightWhile.d.ts", @@ -65,6 +67,8 @@ "each.d.ts", "eachRight.d.ts", "endsWith.d.ts", + "entries.d.ts", + "entriesIn.d.ts", "eq.d.ts", "escape.d.ts", "escapeRegExp.d.ts", @@ -81,6 +85,8 @@ "findLastKey.d.ts", "first.d.ts", "flatMap.d.ts", + "flatMapDeep.d.ts", + "flatMapDepth.d.ts", "flatten.d.ts", "flattenDeep.d.ts", "flattenDepth.d.ts", @@ -105,10 +111,10 @@ "hasIn.d.ts", "head.d.ts", "identity.d.ts", - "inRange.d.ts", "includes.d.ts", "indexOf.d.ts", "initial.d.ts", + "inRange.d.ts", "intersection.d.ts", "intersectionBy.d.ts", "intersectionWith.d.ts", @@ -186,6 +192,7 @@ "noConflict.d.ts", "noop.d.ts", "now.d.ts", + "nth.d.ts", "nthArg.d.ts", "omit.d.ts", "omitBy.d.ts", @@ -209,6 +216,7 @@ "pull.d.ts", "pullAll.d.ts", "pullAllBy.d.ts", + "pullAllWith.d.ts", "pullAt.d.ts", "random.d.ts", "range.d.ts", @@ -261,6 +269,7 @@ "thru.d.ts", "times.d.ts", "toArray.d.ts", + "toFinite.d.ts", "toInteger.d.ts", "toLength.d.ts", "toLower.d.ts", @@ -284,12 +293,13 @@ "unionWith.d.ts", "uniq.d.ts", "uniqBy.d.ts", - "uniqWith.d.ts", "uniqueId.d.ts", + "uniqWith.d.ts", "unset.d.ts", "unzip.d.ts", "unzipWith.d.ts", "update.d.ts", + "updateWith.d.ts", "upperCase.d.ts", "upperFirst.d.ts", "values.d.ts", @@ -302,6 +312,7 @@ "xorWith.d.ts", "zip.d.ts", "zipObject.d.ts", + "zipObjectDeep.d.ts", "zipWith.d.ts" ] } \ No newline at end of file diff --git a/types/lodash-es/updateWith.d.ts b/types/lodash-es/updateWith.d.ts new file mode 100644 index 0000000000..e203c530e4 --- /dev/null +++ b/types/lodash-es/updateWith.d.ts @@ -0,0 +1,2 @@ +import { updateWith } from "lodash"; +export default updateWith; diff --git a/types/lodash-es/zipObjectDeep.d.ts b/types/lodash-es/zipObjectDeep.d.ts new file mode 100644 index 0000000000..218c4f373d --- /dev/null +++ b/types/lodash-es/zipObjectDeep.d.ts @@ -0,0 +1,2 @@ +import { zipObjectDeep } from "lodash"; +export default zipObjectDeep; diff --git a/types/lodash.cond/index.d.ts b/types/lodash.cond/index.d.ts new file mode 100644 index 0000000000..0322422601 --- /dev/null +++ b/types/lodash.cond/index.d.ts @@ -0,0 +1,10 @@ +// Type definitions for lodash.cond 4.5 +// Project: http://lodash.com/ +// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + +import { cond } from "lodash"; +export = cond; diff --git a/types/lodash.cond/tsconfig.json b/types/lodash.cond/tsconfig.json new file mode 100644 index 0000000000..3bc13b0278 --- /dev/null +++ b/types/lodash.cond/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts" + ] +} \ No newline at end of file diff --git a/types/lodash.cond/tslint.json b/types/lodash.cond/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/lodash.cond/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/lodash.divide/index.d.ts b/types/lodash.divide/index.d.ts new file mode 100644 index 0000000000..be1cd64bdc --- /dev/null +++ b/types/lodash.divide/index.d.ts @@ -0,0 +1,10 @@ +// Type definitions for lodash.divide 4.9 +// Project: http://lodash.com/ +// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + +import { divide } from "lodash"; +export = divide; diff --git a/types/lodash.divide/tsconfig.json b/types/lodash.divide/tsconfig.json new file mode 100644 index 0000000000..3bc13b0278 --- /dev/null +++ b/types/lodash.divide/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts" + ] +} \ No newline at end of file diff --git a/types/lodash.divide/tslint.json b/types/lodash.divide/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/lodash.divide/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/lodash.flatmapdeep/index.d.ts b/types/lodash.flatmapdeep/index.d.ts new file mode 100644 index 0000000000..aecfd03b25 --- /dev/null +++ b/types/lodash.flatmapdeep/index.d.ts @@ -0,0 +1,10 @@ +// Type definitions for lodash.flatMapDeep 4.10 +// Project: http://lodash.com/ +// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + +import { flatMapDeep } from "lodash"; +export = flatMapDeep; diff --git a/types/lodash.flatmapdeep/tsconfig.json b/types/lodash.flatmapdeep/tsconfig.json new file mode 100644 index 0000000000..3bc13b0278 --- /dev/null +++ b/types/lodash.flatmapdeep/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts" + ] +} \ No newline at end of file diff --git a/types/lodash.flatmapdeep/tslint.json b/types/lodash.flatmapdeep/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/lodash.flatmapdeep/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/lodash.flatmapdepth/index.d.ts b/types/lodash.flatmapdepth/index.d.ts new file mode 100644 index 0000000000..c478b9cf9c --- /dev/null +++ b/types/lodash.flatmapdepth/index.d.ts @@ -0,0 +1,10 @@ +// Type definitions for lodash.flatMapDepth 4.10 +// Project: http://lodash.com/ +// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + +import { flatMapDepth } from "lodash"; +export = flatMapDepth; diff --git a/types/lodash.flatmapdepth/tsconfig.json b/types/lodash.flatmapdepth/tsconfig.json new file mode 100644 index 0000000000..3bc13b0278 --- /dev/null +++ b/types/lodash.flatmapdepth/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts" + ] +} \ No newline at end of file diff --git a/types/lodash.flatmapdepth/tslint.json b/types/lodash.flatmapdepth/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/lodash.flatmapdepth/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/lodash.nth/index.d.ts b/types/lodash.nth/index.d.ts index 9576fa5a4e..9ec5caf822 100644 --- a/types/lodash.nth/index.d.ts +++ b/types/lodash.nth/index.d.ts @@ -1,8 +1,10 @@ -// Type definitions for lodash.nth 4.0 +// Type definitions for lodash.nth 4.11 // Project: http://lodash.com/ // Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { nth } from "lodash"; export = nth; diff --git a/types/lodash.nth/tsconfig.json b/types/lodash.nth/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.nth/tsconfig.json +++ b/types/lodash.nth/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash.pullallwith/index.d.ts b/types/lodash.pullallwith/index.d.ts new file mode 100644 index 0000000000..78c1e388be --- /dev/null +++ b/types/lodash.pullallwith/index.d.ts @@ -0,0 +1,10 @@ +// Type definitions for lodash.pullAllWith 4.7 +// Project: http://lodash.com/ +// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + +import { pullAllWith } from "lodash"; +export = pullAllWith; diff --git a/types/lodash.pullallwith/tsconfig.json b/types/lodash.pullallwith/tsconfig.json new file mode 100644 index 0000000000..3bc13b0278 --- /dev/null +++ b/types/lodash.pullallwith/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts" + ] +} \ No newline at end of file diff --git a/types/lodash.pullallwith/tslint.json b/types/lodash.pullallwith/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/lodash.pullallwith/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/lodash.tofinite/index.d.ts b/types/lodash.tofinite/index.d.ts new file mode 100644 index 0000000000..51a9dc58c2 --- /dev/null +++ b/types/lodash.tofinite/index.d.ts @@ -0,0 +1,10 @@ +// Type definitions for lodash.toFinite 4.12 +// Project: http://lodash.com/ +// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + +import { toFinite } from "lodash"; +export = toFinite; diff --git a/types/lodash.tofinite/tsconfig.json b/types/lodash.tofinite/tsconfig.json new file mode 100644 index 0000000000..3bc13b0278 --- /dev/null +++ b/types/lodash.tofinite/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts" + ] +} \ No newline at end of file diff --git a/types/lodash.tofinite/tslint.json b/types/lodash.tofinite/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/lodash.tofinite/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/lodash.updatewith/index.d.ts b/types/lodash.updatewith/index.d.ts new file mode 100644 index 0000000000..0d3376763c --- /dev/null +++ b/types/lodash.updatewith/index.d.ts @@ -0,0 +1,10 @@ +// Type definitions for lodash.updateWith 4.10 +// Project: http://lodash.com/ +// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + +import { updateWith } from "lodash"; +export = updateWith; diff --git a/types/lodash.updatewith/tsconfig.json b/types/lodash.updatewith/tsconfig.json new file mode 100644 index 0000000000..3bc13b0278 --- /dev/null +++ b/types/lodash.updatewith/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts" + ] +} \ No newline at end of file diff --git a/types/lodash.updatewith/tslint.json b/types/lodash.updatewith/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/lodash.updatewith/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/lodash.zipobjectdeep/index.d.ts b/types/lodash.zipobjectdeep/index.d.ts index 1944588188..5147f6b847 100644 --- a/types/lodash.zipobjectdeep/index.d.ts +++ b/types/lodash.zipobjectdeep/index.d.ts @@ -1,8 +1,10 @@ -// Type definitions for lodash.zipObjectDeep 4.1 +// Type definitions for lodash.zipObjectDeep 4.4 // Project: http://lodash.com/ // Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +// Generated from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/lodash/scripts/generate-modules.ts + import { zipObjectDeep } from "lodash"; export = zipObjectDeep; diff --git a/types/lodash.zipobjectdeep/tsconfig.json b/types/lodash.zipobjectdeep/tsconfig.json index 92ebbc6458..3bc13b0278 100644 --- a/types/lodash.zipobjectdeep/tsconfig.json +++ b/types/lodash.zipobjectdeep/tsconfig.json @@ -1,7 +1,4 @@ { - "files": [ - "index.d.ts" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -9,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -17,5 +14,8 @@ "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts" + ] } \ No newline at end of file diff --git a/types/lodash/cond.d.ts b/types/lodash/cond.d.ts new file mode 100644 index 0000000000..a325bad4bb --- /dev/null +++ b/types/lodash/cond.d.ts @@ -0,0 +1,2 @@ +import { cond } from "./index"; +export = cond; diff --git a/types/lodash/divide.d.ts b/types/lodash/divide.d.ts new file mode 100644 index 0000000000..3d8e393166 --- /dev/null +++ b/types/lodash/divide.d.ts @@ -0,0 +1,2 @@ +import { divide } from "./index"; +export = divide; diff --git a/types/lodash/entries.d.ts b/types/lodash/entries.d.ts new file mode 100644 index 0000000000..24b241751b --- /dev/null +++ b/types/lodash/entries.d.ts @@ -0,0 +1,2 @@ +import { entries } from "./index"; +export = entries; diff --git a/types/lodash/entriesIn.d.ts b/types/lodash/entriesIn.d.ts new file mode 100644 index 0000000000..a68ab1e576 --- /dev/null +++ b/types/lodash/entriesIn.d.ts @@ -0,0 +1,2 @@ +import { entriesIn } from "./index"; +export = entriesIn; diff --git a/types/lodash/flatMapDeep.d.ts b/types/lodash/flatMapDeep.d.ts new file mode 100644 index 0000000000..c65639a1fa --- /dev/null +++ b/types/lodash/flatMapDeep.d.ts @@ -0,0 +1,2 @@ +import { flatMapDeep } from "./index"; +export = flatMapDeep; diff --git a/types/lodash/flatMapDepth.d.ts b/types/lodash/flatMapDepth.d.ts new file mode 100644 index 0000000000..7ec18534b0 --- /dev/null +++ b/types/lodash/flatMapDepth.d.ts @@ -0,0 +1,2 @@ +import { flatMapDepth } from "./index"; +export = flatMapDepth; diff --git a/types/lodash/index.d.ts b/types/lodash/index.d.ts index 301f4d8b66..58698cb4f3 100644 --- a/types/lodash/index.d.ts +++ b/types/lodash/index.d.ts @@ -5,9 +5,10 @@ // Stepan Mikhaylyuk <https://github.com/stepancar>, // Eric L Anderson <https://github.com/ericanderson>, // AJ Richardson <https://github.com/aj-r>, -// Junyoung Clare Jang <https://github.com/ailrun> +// Junyoung Clare Jang <https://github.com/ailrun>, +// e-cloud <https://github.com/e-cloud> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 +// TypeScript Version: 2.4 /** ### 4.0.0 Changelog (https://github.com/lodash/lodash/wiki/Changelog) @@ -1958,6 +1959,7 @@ declare namespace _ { } interface RecursiveArray<T> extends Array<T|RecursiveArray<T>> {} + interface ListOfRecursiveArraysOrValues<T> extends List<T|RecursiveArray<T>> {} //_.flatten @@ -2088,7 +2090,7 @@ declare namespace _ { * @return Returns the new flattened array. */ flattenDepth<T>(array: ListOfRecursiveArraysOrValues<T> | null | undefined, depth?: number): T[]; - } + } //_.fromPairs interface LoDashStatic { @@ -2430,6 +2432,40 @@ declare namespace _ { ): any[]; } + type Comparator<T> = (arrVal: T, othVal: T) => boolean; + + //_.pullAllWith + interface LoDashStatic { + /** + * This method is like `_.pullAll` except that it accepts `comparator` which + * is invoked to compare elements of `array` to `values`. The comparator is + * invoked with two arguments: (arrVal, othVal). + * + * **Note:** Unlike `_.differenceWith`, this method mutates `array`. + * + * @static + * @memberOf _ + * @since 4.6.0 + * @category Array + * @param {Array} array The array to modify. + * @param {Array} values The values to remove. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns `array`. + * @example + * + * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }]; + * + * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual); + * console.log(array); + * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }] + */ + pullAllWith<T>( + array: List<T>, + values: List<T>, + comparator?: Comparator<T> + ): List<T>; + } + //_.reverse DUMMY interface LoDashStatic { /** @@ -4758,6 +4794,14 @@ declare namespace _ { * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 1 }, { 'x': 2 }] */ + uniqBy<TString extends string | null | undefined>( + array: TString, + iteratee: StringIterator<any> + ): TString[]; + + /** + * @see _.uniqBy + */ uniqBy<T>( array: List<T> | null | undefined, iteratee: ListIterator<T, any> @@ -4796,6 +4840,24 @@ declare namespace _ { ): T[]; } + interface LoDashImplicitStringWrapper { + /** + * @see _.uniqBy + */ + uniqBy( + iteratee: StringIterator<any> + ): LoDashImplicitArrayWrapper<string>; + } + + interface LoDashExplicitStringWrapper { + /** + * @see _.uniqBy + */ + uniqBy( + iteratee: StringIterator<any> + ): LoDashExplicitArrayWrapper<string>; + } + interface LoDashImplicitWrapper<T> { /** * @see _.uniqBy @@ -5038,6 +5100,14 @@ declare namespace _ { * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor); * // => [1.1, 2.2] */ + sortedUniqBy<TString extends string | null | undefined>( + array: TString, + iteratee: StringIterator<any> + ): TString[]; + + /** + * @see _.sortedUniqBy + */ sortedUniqBy<T>( array: List<T> | null | undefined, iteratee: ListIterator<T, any> @@ -5076,6 +5146,24 @@ declare namespace _ { ): T[]; } + interface LoDashImplicitStringWrapper { + /** + * @see _.sortedUniqBy + */ + sortedUniqBy( + iteratee: StringIterator<any> + ): LoDashImplicitArrayWrapper<string>; + } + + interface LoDashExplicitStringWrapper { + /** + * @see _.sortedUniqBy + */ + sortedUniqBy( + iteratee: StringIterator<any> + ): LoDashExplicitArrayWrapper<string>; + } + interface LoDashImplicitWrapper<T> { /** * @see _.sortedUniqBy @@ -5787,6 +5875,13 @@ declare namespace _ { chain(value: any): LoDashExplicitWrapper<any>; } + interface LoDashImplicitStringWrapper { + /** + * @see _.chain + */ + chain(): LoDashExplicitStringWrapper; + } + interface LoDashImplicitWrapper<T> { /** * @see _.chain @@ -6789,7 +6884,7 @@ declare namespace _ { predicate: ListIteratorTypeGuard<T, S>, fromIndex?: number ): S|undefined; - + /** * @see _.find */ @@ -6880,7 +6975,7 @@ declare namespace _ { predicate: ListIteratorTypeGuard<T, S>, fromIndex?: number ): S|undefined; - + /** * @see _.findLast */ @@ -7138,6 +7233,411 @@ declare namespace _ { flatMap<TResult>(): LoDashExplicitArrayWrapper<TResult>; } + //_.flatMapDeep + interface LoDashStatic { + /** + * This method is like `_.flatMap` except that it recursively flattens the + * mapped results. + * + * @static + * @memberOf _ + * @since 4.7.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @returns {Array} Returns the new flattened array. + * @example + * + * function duplicate(n) { + * return [[[n, n]]]; + * } + * + * _.flatMapDeep([1, 2], duplicate); + * // => [1, 1, 2, 2] + */ + flatMapDeep<T>( + collection: List<ListOfRecursiveArraysOrValues<T>> | Dictionary<ListOfRecursiveArraysOrValues<T>> | NumericDictionary<ListOfRecursiveArraysOrValues<T>> | null | undefined + ): T[]; + + /** + * @see _.flatMapDeep + */ + flatMapDeep<T, TResult>( + collection: List<T> | null | undefined, + iteratee: ListIterator<T, ListOfRecursiveArraysOrValues<TResult>> | string + ): TResult[]; + + /** + * @see _.flatMapDeep + */ + flatMapDeep<T, TResult>( + collection: Dictionary<T> | null | undefined, + iteratee: DictionaryIterator<T, ListOfRecursiveArraysOrValues<TResult>> | string + ): TResult[]; + + /** + * @see _.flatMapDeep + */ + flatMapDeep<T, TResult>( + collection: NumericDictionary<T> | null | undefined, + iteratee: NumericDictionaryIterator<T, ListOfRecursiveArraysOrValues<TResult>> | string + ): TResult[]; + + /** + * @see _.flatMapDeep + */ + flatMapDeep<TResult>( + collection: object | null | undefined, + iteratee?: ObjectIterator<any, ListOfRecursiveArraysOrValues<TResult>> | string + ): TResult[]; + + /** + * @see _.flatMapDeep + */ + flatMapDeep( + collection: object | null | undefined, + iteratee: object + ): boolean[]; + } + + interface LoDashImplicitWrapper<T> { + /** + * @see _.flatMapDeep + */ + flatMapDeep<TResult>( + iteratee: StringIterator<ListOfRecursiveArraysOrValues<TResult>> + ): LoDashImplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDeep + */ + flatMapDeep(): LoDashImplicitArrayWrapper<string>; + } + + interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> { + /** + * @see _.flatMapDeep + */ + flatMapDeep<TResult>( + iteratee: ListIterator<T, ListOfRecursiveArraysOrValues<TResult>>|string + ): LoDashImplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDeep + */ + flatMapDeep( + iteratee: object + ): LoDashImplicitArrayWrapper<boolean>; + + /** + * @see _.flatMapDeep + */ + flatMapDeep<TResult>(): LoDashImplicitArrayWrapper<TResult>; + } + + interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> { + /** + * @see _.flatMapDeep + */ + flatMapDeep<T, TResult>( + iteratee: ListIterator<T, ListOfRecursiveArraysOrValues<TResult>>|DictionaryIterator<T, ListOfRecursiveArraysOrValues<TResult>>|NumericDictionaryIterator<T, ListOfRecursiveArraysOrValues<TResult>> + ): LoDashImplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDeep + */ + flatMapDeep<TResult>( + iteratee: ObjectIterator<any, ListOfRecursiveArraysOrValues<TResult>>|string + ): LoDashImplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDeep + */ + flatMapDeep( + iteratee: object + ): LoDashImplicitArrayWrapper<boolean>; + + /** + * @see _.flatMapDeep + */ + flatMapDeep<TResult>(): LoDashImplicitArrayWrapper<TResult>; + } + + interface LoDashExplicitWrapper<T> { + /** + * @see _.flatMapDeep + */ + flatMapDeep<TResult>( + iteratee: StringIterator<ListOfRecursiveArraysOrValues<TResult>> + ): LoDashExplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDeep + */ + flatMapDeep(): LoDashExplicitArrayWrapper<string>; + } + + interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> { + /** + * @see _.flatMapDeep + */ + flatMapDeep<TResult>( + iteratee: ListIterator<T, ListOfRecursiveArraysOrValues<TResult>>|string + ): LoDashExplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDeep + */ + flatMapDeep( + iteratee: object + ): LoDashExplicitArrayWrapper<boolean>; + + /** + * @see _.flatMapDeep + */ + flatMapDeep<TResult>(): LoDashExplicitArrayWrapper<TResult>; + } + + interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> { + /** + * @see _.flatMapDeep + */ + flatMapDeep<T, TResult>( + iteratee: ListIterator<T, ListOfRecursiveArraysOrValues<TResult>>|DictionaryIterator<T, ListOfRecursiveArraysOrValues<TResult>>|NumericDictionaryIterator<T, ListOfRecursiveArraysOrValues<TResult>> + ): LoDashExplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDeep + */ + flatMapDeep<TResult>( + iteratee: ObjectIterator<any, ListOfRecursiveArraysOrValues<TResult>>|string + ): LoDashExplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDeep + */ + flatMapDeep( + iteratee: object + ): LoDashExplicitArrayWrapper<boolean>; + + /** + * @see _.flatMapDeep + */ + flatMapDeep<TResult>(): LoDashExplicitArrayWrapper<TResult>; + } + + //_.flatMapDepth + interface LoDashStatic { + /** + * This method is like `_.flatMap` except that it recursively flattens the + * mapped results up to `depth` times. + * + * @static + * @memberOf _ + * @since 4.7.0 + * @category Collection + * @param {Array|Object} collection The collection to iterate over. + * @param {Function} [iteratee=_.identity] The function invoked per iteration. + * @param {number} [depth=1] The maximum recursion depth. + * @returns {Array} Returns the new flattened array. + * @example + * + * function duplicate(n) { + * return [[[n, n]]]; + * } + * + * _.flatMapDepth([1, 2], duplicate, 2); + * // => [[1, 1], [2, 2]] + */ + flatMapDepth<T>( + collection: List<ListOfRecursiveArraysOrValues<T>> | Dictionary<ListOfRecursiveArraysOrValues<T>> | NumericDictionary<ListOfRecursiveArraysOrValues<T>> | null | undefined, + depth?: number + ): T[]; + + /** + * @see _.flatMapDepth + */ + flatMapDepth<T, TResult>( + collection: List<T> | null | undefined, + iteratee: ListIterator<T, ListOfRecursiveArraysOrValues<TResult>> | string, + depth?: number + ): TResult[]; + + /** + * @see _.flatMapDepth + */ + flatMapDepth<T, TResult>( + collection: Dictionary<T> | null | undefined, + iteratee: DictionaryIterator<T, ListOfRecursiveArraysOrValues<TResult>> | string, + depth?: number + ): TResult[]; + + /** + * @see _.flatMapDepth + */ + flatMapDepth<T, TResult>( + collection: NumericDictionary<T> | null | undefined, + iteratee: NumericDictionaryIterator<T, ListOfRecursiveArraysOrValues<TResult>> | string, + depth?: number + ): TResult[]; + + /** + * @see _.flatMapDepth + */ + flatMapDepth<TResult>( + collection: object | null | undefined, + iteratee?: ObjectIterator<any, ListOfRecursiveArraysOrValues<TResult>> | string, + depth?: number + ): TResult[]; + + /** + * @see _.flatMapDepth + */ + flatMapDepth( + collection: object | null | undefined, + iteratee: object, + depth?: number + ): boolean[]; + } + + interface LoDashImplicitWrapper<T> { + /** + * @see _.flatMapDepth + */ + flatMapDepth<TResult>( + iteratee: StringIterator<ListOfRecursiveArraysOrValues<TResult>>, + depth?: number + ): LoDashImplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDepth + */ + flatMapDepth(): LoDashImplicitArrayWrapper<string>; + } + + interface LoDashImplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> { + /** + * @see _.flatMapDepth + */ + flatMapDepth<TResult>( + iteratee: ListIterator<T, ListOfRecursiveArraysOrValues<TResult>>|string, + depth?: number + ): LoDashImplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDepth + */ + flatMapDepth( + iteratee: object, + depth?: number + ): LoDashImplicitArrayWrapper<boolean>; + + /** + * @see _.flatMapDepth + */ + flatMapDepth<TResult>(): LoDashImplicitArrayWrapper<TResult>; + } + + interface LoDashImplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> { + /** + * @see _.flatMapDepth + */ + flatMapDepth<T, TResult>( + iteratee: ListIterator<T, ListOfRecursiveArraysOrValues<TResult>>|DictionaryIterator<T, ListOfRecursiveArraysOrValues<TResult>>|NumericDictionaryIterator<T, ListOfRecursiveArraysOrValues<TResult>>, + depth?: number + ): LoDashImplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDepth + */ + flatMapDepth<TResult>( + iteratee: ObjectIterator<any, ListOfRecursiveArraysOrValues<TResult>>|string, + depth?: number + ): LoDashImplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDepth + */ + flatMapDepth( + iteratee: object, + depth?: number + ): LoDashImplicitArrayWrapper<boolean>; + + /** + * @see _.flatMapDepth + */ + flatMapDepth<TResult>(): LoDashImplicitArrayWrapper<TResult>; + } + + interface LoDashExplicitWrapper<T> { + /** + * @see _.flatMapDepth + */ + flatMapDepth<TResult>( + iteratee: StringIterator<ListOfRecursiveArraysOrValues<TResult>>, + depth?: number + ): LoDashExplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDepth + */ + flatMapDepth(): LoDashExplicitArrayWrapper<string>; + } + + interface LoDashExplicitArrayWrapperBase<T, TArray extends T[] | null | undefined, TWrapper> { + /** + * @see _.flatMapDepth + */ + flatMapDepth<TResult>( + iteratee: ListIterator<T, ListOfRecursiveArraysOrValues<TResult>>|string, + depth?: number + ): LoDashExplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDepth + */ + flatMapDepth( + iteratee: object, + depth?: number + ): LoDashExplicitArrayWrapper<boolean>; + + /** + * @see _.flatMapDepth + */ + flatMapDepth<TResult>(): LoDashExplicitArrayWrapper<TResult>; + } + + interface LoDashExplicitObjectWrapperBase<T, TObject extends T | null | undefined, TWrapper> { + /** + * @see _.flatMapDepth + */ + flatMapDepth<T, TResult>( + iteratee: ListIterator<T, ListOfRecursiveArraysOrValues<TResult>>|DictionaryIterator<T, ListOfRecursiveArraysOrValues<TResult>>|NumericDictionaryIterator<T, ListOfRecursiveArraysOrValues<TResult>>, + depth?: number + ): LoDashExplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDepth + */ + flatMapDepth<TResult>( + iteratee: ObjectIterator<any, ListOfRecursiveArraysOrValues<TResult>>|string, + depth?: number + ): LoDashExplicitArrayWrapper<TResult>; + + /** + * @see _.flatMapDepth + */ + flatMapDepth( + iteratee: object, + depth?: number + ): LoDashExplicitArrayWrapper<boolean>; + + /** + * @see _.flatMapDepth + */ + flatMapDepth<TResult>(): LoDashExplicitArrayWrapper<TResult>; + } + //_.forEach interface LoDashStatic { /** @@ -7355,6 +7855,14 @@ declare namespace _ { * @param thisArg The this binding of iteratee. * @return Returns the composed aggregate object. */ + groupBy<TString extends string | null | undefined, TKey>( + collection: TString, + iteratee?: StringIterator<TKey> + ): Dictionary<TString[]>; + + /** + * @see _.groupBy + */ groupBy<T, TKey>( collection: List<T> | null | undefined, iteratee?: ListIterator<T, TKey> @@ -7724,6 +8232,24 @@ declare namespace _ { ): Dictionary<T>; } + interface LoDashImplicitStringWrapper { + /** + * @see _.keyBy + */ + keyBy( + iteratee?: StringIterator<any> | undefined + ): LoDashImplicitObjectWrapper<Dictionary<string>> + } + + interface LoDashExplicitStringWrapper { + /** + * @see _.keyBy + */ + keyBy( + iteratee?: StringIterator<any> | undefined + ): LoDashExplicitObjectWrapper<Dictionary<string>> + } + interface LoDashImplicitWrapper<T> { /** * @see _.keyBy @@ -8408,53 +8934,53 @@ declare namespace _ { accumulator: TResult): TResult; /** - * @see _.reduce - **/ + * @see _.reduce + **/ reduce<T, TResult>( collection: List<T> | null | undefined, callback: MemoIterator<T, TResult>, accumulator: TResult): TResult; /** - * @see _.reduce - **/ + * @see _.reduce + **/ reduce<T, TResult>( collection: Dictionary<T> | null | undefined, callback: MemoIterator<T, TResult>, accumulator: TResult): TResult; /** - * @see _.reduce - **/ + * @see _.reduce + **/ reduce<T, TResult>( collection: NumericDictionary<T> | null | undefined, callback: MemoIterator<T, TResult>, accumulator: TResult): TResult; /** - * @see _.reduce - **/ + * @see _.reduce + **/ reduce<T, TResult>( collection: T[] | null | undefined, callback: MemoIterator<T, TResult>): TResult | undefined; /** - * @see _.reduce - **/ + * @see _.reduce + **/ reduce<T, TResult>( collection: List<T> | null | undefined, callback: MemoIterator<T, TResult>): TResult | undefined; /** - * @see _.reduce - **/ + * @see _.reduce + **/ reduce<T, TResult>( collection: Dictionary<T> | null | undefined, callback: MemoIterator<T, TResult>): TResult | undefined; /** - * @see _.reduce - **/ + * @see _.reduce + **/ reduce<T, TResult>( collection: NumericDictionary<T> | null | undefined, callback: MemoIterator<T, TResult>): TResult | undefined; @@ -11351,6 +11877,42 @@ declare namespace _ { conformsTo<T>(object: T, source: ConformsPredicateObject<T>): boolean; } + type CondPair<T, R> = [(val: T) => boolean, (val: T) => R] + + //_.cond + interface LoDashStatic { + /** + * Creates a function that iterates over `pairs` and invokes the corresponding + * function of the first predicate to return truthy. The predicate-function + * pairs are invoked with the `this` binding and arguments of the created + * function. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Util + * @param {Array} pairs The predicate-function pairs. + * @returns {Function} Returns the new composite function. + * @example + * + * var func = _.cond([ + * [_.matches({ 'a': 1 }), _.constant('matches A')], + * [_.conforms({ 'b': _.isNumber }), _.constant('matches B')], + * [_.stubTrue, _.constant('no match')] + * ]); + * + * func({ 'a': 1, 'b': 2 }); + * // => 'matches A' + * + * func({ 'a': 0, 'b': 1 }); + * // => 'matches B' + * + * func({ 'a': '1', 'b': '2' }); + * // => 'no match' + */ + cond<T, R>(pairs: CondPair<T, R>[]): (Target: T) => R; + } + //_.eq interface LoDashStatic { /** @@ -12129,7 +12691,7 @@ declare namespace _ { } //_.isMatchWith - type isMatchWithCustomizer = (value: any, other: any, indexOrKey?: number|string) => boolean; + type isMatchWithCustomizer = (value: any, other: any, indexOrKey: number|string) => boolean; interface LoDashStatic { /** @@ -13678,7 +14240,7 @@ declare namespace _ { * @see _.sumBy */ sumBy( - iteratee: ListIterator<{}, number> + iteratee: ListIterator<TObject, number> ): number; /** @@ -13721,7 +14283,7 @@ declare namespace _ { * @see _.sumBy */ sumBy( - iteratee: ListIterator<{}, number> + iteratee: ListIterator<TObject, number> ): LoDashExplicitWrapper<number>; /** @@ -14861,6 +15423,54 @@ declare namespace _ { defaultsDeep<TResult>(...sources: any[]): LoDashImplicitObjectWrapper<TResult>; } + //_.entries + interface LoDashStatic { + /** + * @see _.toPairs + */ + entries<T extends {}>(object?: T): [string, any][]; + + entries<T extends {}, TResult>(object?: T): [string, TResult][]; + } + + interface LoDashImplicitObjectWrapper<T> { + /** + * @see _.toPairs + */ + entries<TResult>(): LoDashImplicitArrayWrapper<[string, TResult]>; + } + + interface LoDashExplicitObjectWrapper<T> { + /** + * @see _.toPairs + */ + entries<TResult>(): LoDashExplicitArrayWrapper<[string, TResult]>; + } + + //_.entriesIn + interface LoDashStatic { + /** + * @see _.toPairsIn + */ + entriesIn<T extends {}>(object?: T): [string, any][]; + + entriesIn<T extends {}, TResult>(object?: T): [string, TResult][]; + } + + interface LoDashImplicitObjectWrapper<T> { + /** + * @see _.toPairsIn + */ + entriesIn<TResult>(): LoDashImplicitArrayWrapper<[string, TResult]>; + } + + interface LoDashExplicitObjectWrapper<T> { + /** + * @see _.toPairsIn + */ + entriesIn<TResult>(): LoDashExplicitArrayWrapper<[string, TResult]>; + } + // _.extend interface LoDashStatic { /** @@ -16222,7 +16832,7 @@ declare namespace _ { */ mapValues<T, TResult>(obj: Dictionary<T> | null | undefined, callback: ObjectIterator<T, TResult>): Dictionary<TResult>; mapValues<T>(obj: Dictionary<T> | null | undefined, where: Dictionary<T>): Dictionary<boolean>; - mapValues<T, TMapped>(obj: T | null | undefined, pluck: string): TMapped; + mapValues<T, TMapped>(obj: T | null | undefined, pluck?: string): TMapped; mapValues<T>(obj: T | null | undefined, callback: ObjectIterator<any, any>): T; } @@ -16239,7 +16849,7 @@ declare namespace _ { * TResult is the type of the property specified by pluck. * T should be a Dictionary<Dictionary<TResult>> */ - mapValues<TResult>(pluck: string): LoDashImplicitObjectWrapper<Dictionary<TResult>>; + mapValues<TResult>(pluck?: string): LoDashImplicitObjectWrapper<Dictionary<TResult>>; /** * @see _.mapValues @@ -16262,7 +16872,7 @@ declare namespace _ { * TResult is the type of the property specified by pluck. * T should be a Dictionary<Dictionary<TResult>> */ - mapValues<TResult>(pluck: string): LoDashExplicitObjectWrapper<Dictionary<TResult>>; + mapValues<TResult>(pluck?: string): LoDashExplicitObjectWrapper<Dictionary<TResult>>; /** * @see _.mapValues @@ -16430,7 +17040,7 @@ declare namespace _ { } //_.mergeWith - type MergeWithCustomizer = (value: any, srcValue: any, key?: string, object?: Object, source?: Object) => any; + type MergeWithCustomizer = { bivariantHack(value: any, srcValue: any, key: string, object: any, source: any): any; }["bivariantHack"] interface LoDashStatic { /** @@ -16913,31 +17523,31 @@ declare namespace _ { * @parem customizer The function to customize assigned values. * @return Returns object. */ + setWith<O, V, TResult>( + object: O, + path: Many<StringRepresentable>, + value: V, + customizer?: SetWithCustomizer<O> + ): TResult; + + /** + * @see _.setWith + */ setWith<TResult>( - object: Object, + object: any, path: Many<StringRepresentable>, value: any, - customizer?: SetWithCustomizer<Object> + customizer?: SetWithCustomizer<any> ): TResult; /** * @see _.setWith */ setWith<V, TResult>( - object: Object, + object: any, path: Many<StringRepresentable>, value: V, - customizer?: SetWithCustomizer<Object> - ): TResult; - - /** - * @see _.setWith - */ - setWith<O, V, TResult>( - object: O, - path: Many<StringRepresentable>, - value: V, - customizer?: SetWithCustomizer<O> + customizer?: SetWithCustomizer<any> ): TResult; } @@ -17231,6 +17841,72 @@ declare namespace _ { ): LoDashExplicitObjectWrapper<TResult>; } + //_.updateWith + interface LoDashStatic { + /** + * This method is like `_.update` except that it accepts `customizer` which is + * invoked to produce the objects of `path`. If `customizer` returns `undefined` + * path creation is handled by the method instead. The `customizer` is invoked + * with three arguments: (nsValue, key, nsObject). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.6.0 + * @category Object + * @param {Object} object The object to modify. + * @param {Array|string} path The path of the property to set. + * @param {Function} updater The function to produce the updated value. + * @param {Function} [customizer] The function to customize assigned values. + * @returns {Object} Returns `object`. + * @example + * + * var object = {}; + * + * _.updateWith(object, '[0][1]', _.constant('a'), Object); + * // => { '0': { '1': 'a' } } + */ + updateWith<O extends {}, TResult>( + object: O, + path: Many<StringRepresentable>, + updater: (oldValue: any) => any, + customizer?: SetWithCustomizer<O> + ): TResult; + + /** + * @see _.updateWith + */ + updateWith<TResult>( + object: any, + path: Many<StringRepresentable>, + updater: (oldValue: any) => any, + customizer?: SetWithCustomizer<any> + ): TResult; + } + + interface LoDashImplicitObjectWrapper<T> { + /** + * @see _.updateWith + */ + updateWith<TResult>( + path: Many<StringRepresentable>, + updater: (oldValue: any) => any, + customizer?: SetWithCustomizer<T> + ): LoDashImplicitObjectWrapper<TResult>; + } + + interface LoDashExplicitObjectWrapper<T> { + /** + * @see _.updateWith + */ + updateWith<TResult>( + path: Many<StringRepresentable>, + updater: (oldValue: any) => any, + customizer?: SetWithCustomizer<T> + ): LoDashExplicitObjectWrapper<TResult>; + } + //_.values interface LoDashStatic { /** diff --git a/types/lodash/lodash-tests.ts b/types/lodash/lodash-tests.ts index e00d951023..3e13b70ac8 100644 --- a/types/lodash/lodash-tests.ts +++ b/types/lodash/lodash-tests.ts @@ -2256,7 +2256,7 @@ namespace TestUniqBy { let result: string[]; result = _.uniqBy<string>('abc', stringIterator); - result = _.uniqBy<string, string>('abc', stringIterator); + result = _.uniqBy('abc', stringIterator); } { @@ -2278,7 +2278,7 @@ namespace TestUniqBy { { let result: _.LoDashImplicitArrayWrapper<string>; - result = _('abc').uniqBy<string>(stringIterator); + result = _('abc').uniqBy(stringIterator); } { @@ -2298,7 +2298,7 @@ namespace TestUniqBy { { let result: _.LoDashExplicitArrayWrapper<string>; - result = _('abc').chain().uniqBy<string>(stringIterator); + result = _('abc').chain().uniqBy(stringIterator); } { @@ -2371,7 +2371,7 @@ namespace TestSortedUniqBy { let result: string[]; result = _.sortedUniqBy<string>('abc', stringIterator); - result = _.sortedUniqBy<string, string>('abc', stringIterator); + result = _.sortedUniqBy('abc', stringIterator); } { @@ -2393,7 +2393,7 @@ namespace TestSortedUniqBy { { let result: _.LoDashImplicitArrayWrapper<string>; - result = _('abc').sortedUniqBy<string>(stringIterator); + result = _('abc').sortedUniqBy(stringIterator); } { @@ -2413,7 +2413,7 @@ namespace TestSortedUniqBy { { let result: _.LoDashExplicitArrayWrapper<string>; - result = _('abc').chain().sortedUniqBy<string>(stringIterator); + result = _('abc').chain().sortedUniqBy(stringIterator); } { @@ -3345,7 +3345,7 @@ namespace TestCountBy { let dictionary: _.Dictionary<TResult> | null | undefined = obj; let numericDictionary: _.NumericDictionary<TResult> | null | undefined = obj; - let stringIterator: (value: string, index: number, collection: string) => any = (value: string, index: number, collection: string) => 1; + let stringIterator: (value: string, index: number, collection: ArrayLike<string>) => any = (value: string, index: number, collection: ArrayLike<string>) => 1; let listIterator: (value: TResult, index: number, collection: _.List<TResult>) => any = (value: TResult, index: number, collection: _.List<TResult>) => 1; let dictionaryIterator: (value: TResult, key: string, collection: _.Dictionary<TResult>) => any = (value: TResult, key: string, collection: _.Dictionary<TResult>) => 1; let numericDictionaryIterator: (value: TResult, key: number, collection: _.NumericDictionary<TResult>) => any = (value: TResult, key: number, collection: _.NumericDictionary<TResult>) => 1; @@ -4198,6 +4198,330 @@ namespace TestFlatMap { } } +// _.flatMapDeep +namespace TestFlatMapDeep { + let numArray: (number|number[])[] | null | undefined = [1, [2, 3]] as any; + let objArray: ({a: number}|{a: number}[])[] | null | undefined = [{a: 1}, [{a: 2}, {a: 3}]] as any; + + let obj: any = {}; + let numList: _.List<number|number[]> | null | undefined = obj; + let objList: _.List<{a: number}|{a: number}[]> | null | undefined = obj; + + let numDictionary: _.Dictionary<number|number[]> | null | undefined = obj; + let objDictionary: _.Dictionary<{a: number}|{a: number}[]> | null | undefined = obj; + + let numNumericDictionary: _.NumericDictionary<number|number[]> | null | undefined = obj; + let objNumericDictionary: _.NumericDictionary<{a: number}|{a: number}[]> | null | undefined = obj; + + let stringIterator: (value: string, index: number, collection: _.List<string>) => _.ListOfRecursiveArraysOrValues<string> = (a, b, c) => ['a', 'b', 'c']; + + let listIterator: (value: number|number[], index: number, collection: _.List<number|number[]>) => _.ListOfRecursiveArraysOrValues<number> = (a, b, c) => [1]; + + let dictionaryIterator: (value: number|number[], key: string, collection: _.Dictionary<number|number[]>) =>_.ListOfRecursiveArraysOrValues<number> = (a, b, c) => [1]; + + let numericDictionaryIterator: (value: number|number[], key: number, collection: _.NumericDictionary<number|number[]>) => _.ListOfRecursiveArraysOrValues<number> = (a, b, c) => [1]; + + { + let result: string[]; + + result = _.flatMapDeep('abc'); + + result = _.flatMapDeep('abc', stringIterator); + } + + { + let result: number[]; + + result = _.flatMapDeep(numArray); + + result = _.flatMapDeep(numArray, listIterator); + + result = _.flatMapDeep(objArray, 'a'); + + result = _.flatMapDeep(numList); + + result = _.flatMapDeep(numList, listIterator); + + result = _.flatMapDeep(objList, 'a'); + + result = _.flatMapDeep(numDictionary); + + result = _.flatMapDeep(numDictionary, dictionaryIterator); + + result = _.flatMapDeep(objDictionary, 'a'); + + result = _.flatMapDeep(numNumericDictionary); + + result = _.flatMapDeep(numNumericDictionary, numericDictionaryIterator); + + result = _.flatMapDeep(objNumericDictionary, 'a'); + } + + { + let result: boolean[]; + + result = _.flatMapDeep(objArray, ['a', 42]); + result = _.flatMapDeep(objArray, {'a': 42}); + + result = _.flatMapDeep(objList, ['a', 42]); + result = _.flatMapDeep(objList, {'a': 42}); + + result = _.flatMapDeep(objDictionary, ['a', 42]); + result = _.flatMapDeep(objDictionary, {'a': 42}); + + result = _.flatMapDeep(objNumericDictionary, ['a', 42]); + result = _.flatMapDeep(objNumericDictionary, {'a': 42}); + } + + { + let result: _.LoDashImplicitArrayWrapper<string>; + + result = _('abc').flatMapDeep(); + result = _('abc').flatMapDeep(stringIterator); + } + + { + let result: _.LoDashImplicitArrayWrapper<number>; + + result = _(numArray).flatMapDeep(); + result = _(numArray).flatMapDeep(listIterator); + result = _(objArray).flatMapDeep('a'); + + result = _(numList).flatMapDeep(); + result = _(numList).flatMapDeep(listIterator); + result = _(objList).flatMapDeep('a'); + + result = _(numDictionary).flatMapDeep(); + result = _(numDictionary).flatMapDeep(dictionaryIterator); + result = _(objDictionary).flatMapDeep('a'); + + result = _(numNumericDictionary).flatMapDeep(); + result = _(numNumericDictionary).flatMapDeep(numericDictionaryIterator); + result = _(objNumericDictionary).flatMapDeep('a'); + } + + { + let result: _.LoDashImplicitArrayWrapper<boolean>; + + result = _(objArray).flatMapDeep(['a', 42]); + result = _(objArray).flatMapDeep({a: 42}); + + result = _(objList).flatMapDeep(['a', 42]); + result = _(objList).flatMapDeep({a: 42}); + + result = _(objDictionary).flatMapDeep(['a', 42]); + result = _(objDictionary).flatMapDeep({a: 42}); + + result = _(objNumericDictionary).flatMapDeep(['a', 42]); + result = _(objNumericDictionary).flatMapDeep({a: 42}); + } + + { + let result: _.LoDashExplicitArrayWrapper<string>; + + result = _('abc').chain().flatMapDeep(); + result = _('abc').chain().flatMapDeep(stringIterator); + } + + { + let result: _.LoDashExplicitArrayWrapper<number>; + + result = _(numArray).chain().flatMapDeep(); + result = _(numArray).chain().flatMapDeep(listIterator); + result = _(objArray).chain().flatMapDeep('a'); + + result = _(numList).chain().flatMapDeep(); + result = _(numList).chain().flatMapDeep(listIterator); + result = _(objList).chain().flatMapDeep('a'); + + result = _(numDictionary).chain().flatMapDeep(); + result = _(numDictionary).chain().flatMapDeep(dictionaryIterator); + result = _(objDictionary).chain().flatMapDeep('a'); + + result = _(numNumericDictionary).chain().flatMapDeep(); + result = _(numNumericDictionary).chain().flatMapDeep(numericDictionaryIterator); + result = _(objNumericDictionary).chain().flatMapDeep('a'); + } + + { + let result: _.LoDashExplicitArrayWrapper<boolean>; + + result = _(objArray).chain().flatMapDeep(['a', 42]); + result = _(objArray).chain().flatMapDeep({a: 42}); + + result = _(objList).chain().flatMapDeep(['a', 42]); + result = _(objList).chain().flatMapDeep({a: 42}); + + result = _(objDictionary).chain().flatMapDeep(['a', 42]); + result = _(objDictionary).chain().flatMapDeep({a: 42}); + + result = _(objNumericDictionary).chain().flatMapDeep(['a', 42]); + result = _(objNumericDictionary).chain().flatMapDeep({a: 42}); + } +} + +// _.flatMapDepth +namespace TestFlatMapDepth { + let numArray: (number|number[])[] | null | undefined = [1, [2, 3]] as any; + let objArray: ({a: number}|{a: number}[])[] | null | undefined = [{a: 1}, [{a: 2}, {a: 3}]] as any; + + let obj: any = {}; + let numList: _.List<number|number[]> | null | undefined = obj; + let objList: _.List<{a: number}|{a: number}[]> | null | undefined = obj; + + let numDictionary: _.Dictionary<number|number[]> | null | undefined = obj; + let objDictionary: _.Dictionary<{a: number}|{a: number}[]> | null | undefined = obj; + + let numNumericDictionary: _.NumericDictionary<number|number[]> | null | undefined = obj; + let objNumericDictionary: _.NumericDictionary<{a: number}|{a: number}[]> | null | undefined = obj; + + let stringIterator: (value: string, index: number, collection: _.List<string>) => _.ListOfRecursiveArraysOrValues<string> = (a, b, c) => ""; + + let listIterator: (value: number|number[], index: number, collection: _.List<number|number[]>) => _.ListOfRecursiveArraysOrValues<number> = (a, b, c) =>[ 1]; + + let dictionaryIterator: (value: number|number[], key: number, collection: _.Dictionary<number|number[]>) => _.ListOfRecursiveArraysOrValues<number> = (a, b, c) => [1]; + + let numericDictionaryIterator: (value: number|number[], key: number, collection: _.NumericDictionary<number|number[]>) => _.ListOfRecursiveArraysOrValues<number> = (a, b, c) => [1]; + + { + let result: string[]; + + result = _.flatMapDepth('abc'); + + result = _.flatMapDepth('abc', stringIterator, 1); + } + + { + let result: number[]; + + result = _.flatMapDepth(numArray); + + result = _.flatMapDepth(numArray, listIterator, 1); + + result = _.flatMapDepth(objArray, 'a'); + + result = _.flatMapDepth(numList); + + result = _.flatMapDepth(numList, listIterator, 1); + + result = _.flatMapDepth(objList, 'a', 1); + + result = _.flatMapDepth(numDictionary); + + result = _.flatMapDepth(numDictionary, dictionaryIterator, 1); + + result = _.flatMapDepth(objDictionary, 'a', 1); + + result = _.flatMapDepth(numNumericDictionary); + + result = _.flatMapDepth(numNumericDictionary, numericDictionaryIterator, 1); + + result = _.flatMapDepth(objNumericDictionary, 'a', 1); + } + + { + let result: boolean[]; + + result = _.flatMapDepth(objArray, ['a', 42], 1); + result = _.flatMapDepth(objArray, {'a': 42}, 1); + + result = _.flatMapDepth(objList, ['a', 42], 1); + result = _.flatMapDepth(objList, {'a': 42}, 1); + + result = _.flatMapDepth(objDictionary, ['a', 42], 1); + result = _.flatMapDepth(objDictionary, {'a': 42}, 1); + + result = _.flatMapDepth(objNumericDictionary, ['a', 42], 1); + result = _.flatMapDepth(objNumericDictionary, {'a': 42}, 1); + } + + { + let result: _.LoDashImplicitArrayWrapper<string>; + + result = _('abc').flatMapDepth(); + result = _('abc').flatMapDepth(stringIterator, 1); + } + + { + let result: _.LoDashImplicitArrayWrapper<number>; + + result = _(numArray).flatMapDepth(); + result = _(numArray).flatMapDepth(listIterator, 1); + result = _(objArray).flatMapDepth('a', 1); + + result = _(numList).flatMapDepth(); + result = _(numList).flatMapDepth(listIterator, 1); + result = _(objList).flatMapDepth('a', 1); + + result = _(numDictionary).flatMapDepth(); + result = _(numDictionary).flatMapDepth(dictionaryIterator, 1); + result = _(objDictionary).flatMapDepth('a', 1); + + result = _(numNumericDictionary).flatMapDepth(); + result = _(numNumericDictionary).flatMapDepth(numericDictionaryIterator, 1); + result = _(objNumericDictionary).flatMapDepth('a', 1); + } + + { + let result: _.LoDashImplicitArrayWrapper<boolean>; + + result = _(objArray).flatMapDepth(['a', 42], 1); + result = _(objArray).flatMapDepth({a: 42}, 1); + + result = _(objList).flatMapDepth(['a', 42], 1); + result = _(objList).flatMapDepth({a: 42}, 1); + + result = _(objDictionary).flatMapDepth(['a', 42], 1); + result = _(objDictionary).flatMapDepth({a: 42}, 1); + + result = _(objNumericDictionary).flatMapDepth(['a', 42], 1); + result = _(objNumericDictionary).flatMapDepth({a: 42}, 1); + } + + { + let result: _.LoDashExplicitArrayWrapper<string>; + + result = _('abc').chain().flatMapDepth(); + result = _('abc').chain().flatMapDepth(stringIterator, 1); + } + + { + let result: _.LoDashExplicitArrayWrapper<number>; + + result = _(numArray).chain().flatMapDepth(); + result = _(numArray).chain().flatMapDepth(listIterator, 1); + result = _(objArray).chain().flatMapDepth('a', 1); + + result = _(numList).chain().flatMapDepth(); + result = _(numList).chain().flatMapDepth(listIterator, 1); + result = _(objList).chain().flatMapDepth('a', 1); + + result = _(numDictionary).chain().flatMapDepth(); + result = _(numDictionary).chain().flatMapDepth(dictionaryIterator, 1); + result = _(objDictionary).chain().flatMapDepth('a', 1); + + result = _(numNumericDictionary).chain().flatMapDepth(); + result = _(numNumericDictionary).chain().flatMapDepth(numericDictionaryIterator, 1); + result = _(objNumericDictionary).chain().flatMapDepth('a', 1); + } + + { + let result: _.LoDashExplicitArrayWrapper<boolean>; + + result = _(objArray).chain().flatMapDepth(['a', 42], 1); + result = _(objArray).chain().flatMapDepth({a: 42}, 1); + + result = _(objList).chain().flatMapDepth(['a', 42], 1); + result = _(objList).chain().flatMapDepth({a: 42}, 1); + + result = _(objDictionary).chain().flatMapDepth(['a', 42], 1); + result = _(objDictionary).chain().flatMapDepth({a: 42}, 1); + + result = _(objNumericDictionary).chain().flatMapDepth(['a', 42], 1); + result = _(objNumericDictionary).chain().flatMapDepth({a: 42}, 1); + } +} + // _.forEach namespace TestForEach { let array: TResult[] = []; @@ -4233,7 +4557,7 @@ namespace TestForEach { { let result: TResult[]; - result = _.forEach(array, (value, index, collection: TResult[]) => { + result = _.forEach(array, (value, index, collection: ArrayLike<TResult>) => { value; // $ExpectType TResult index; // $ExpectType number }); @@ -4248,7 +4572,7 @@ namespace TestForEach { { let result: TResult[] | null | undefined; - result = _.forEach(array, (value, index, collection: TResult[]) => { + result = _.forEach(array, (value, index, collection: ArrayLike<TResult>) => { value; // $ExpectType TResult index; // $ExpectType number }); @@ -4666,7 +4990,7 @@ namespace TestGroupBy { let result: _.LoDashImplicitObjectWrapper<_.Dictionary<string[]>>; result = _('').groupBy(); - result = _('').groupBy<number>(stringIterator); + result = _('').groupBy<number>((char: string, index: number, string: ArrayLike<string>) => 0); } { @@ -4701,7 +5025,7 @@ namespace TestGroupBy { let result: _.LoDashExplicitObjectWrapper<_.Dictionary<string[]>>; result = _('').chain().groupBy(); - result = _('').chain().groupBy<number>(stringIterator); + result = _('').chain().groupBy<number>((char: string, index: number, string: ArrayLike<string>) => 0); } { @@ -5223,7 +5547,7 @@ namespace TestReduce { result = <ABC>_.reduce({ 'a': 1, 'b': 2, 'c': 3 }, (r: ABC, num: number, key: string) => { r[key] = num * 3; return r; - }, {}); + }, {} as ABC); result = <number>_([1, 2, 3]).reduce<number>((sum: number, num: number) => sum + num); result = <ABC>_({ 'a': 1, 'b': 2, 'c': 3 }).reduce<number, ABC>((r: ABC, num: number, key: string) => { @@ -6163,6 +6487,7 @@ namespace TestDebounce { interface ResultFunc { (n: number, s: string): boolean; cancel(): void; + flush(): void; } let func: SampleFunc = (a, b) => true; @@ -6635,6 +6960,7 @@ namespace TestThrottle { interface ResultFunc { (n: number, s: string): boolean; cancel(): void; + flush(): void; } let func: SampleFunc = (a, b) => true; @@ -8656,7 +8982,7 @@ namespace TestSumBy { result = _(array).sumBy(listIterator); result = _(objectArray).sumBy('age'); - result = _(list).sumBy(listIterator); + result = _(list).sumBy((value: _.List<number> | null | undefined, index: number, collection: _.List<_.List<number> | null | undefined>) => 0); result = _(objectList).sumBy('age'); } @@ -8666,7 +8992,7 @@ namespace TestSumBy { result = _(array).chain().sumBy(listIterator); result = _(objectArray).chain().sumBy('age'); - result = _(list).chain().sumBy(listIterator); + result = _(list).chain().sumBy((value: _.List<number> | null | undefined, index: number, collection: _.List<_.List<number> | null | undefined>) => 0); result = _(objectList).chain().sumBy('age'); } } @@ -8822,25 +9148,25 @@ namespace TestAssign { } { - let result: _.LoDashImplicitObjectWrapper<{ a: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string }>; result = _(obj).assign(s1); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number }>; result = _(obj).assign(s1, s2); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number, c: number }>; result = _(obj).assign(s1, s2, s3); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number, d: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number, c: number, d: number }>; result = _(obj).assign(s1, s2, s3, s4); } @@ -8858,25 +9184,25 @@ namespace TestAssign { } { - let result: _.LoDashExplicitObjectWrapper<{ a: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string }>; result = _(obj).chain().assign(s1); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number }>; result = _(obj).chain().assign(s1, s2); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number, c: number }>; result = _(obj).chain().assign(s1, s2, s3); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number, d: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number, c: number, d: number }>; result = _(obj).chain().assign(s1, s2, s3, s4); } @@ -8944,22 +9270,22 @@ namespace TestAssignWith { } { - let result: _.LoDashImplicitObjectWrapper<{ a: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string }>; result = _(obj).assignWith(s1, customizer); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number }>; result = _(obj).assignWith(s1, s2, customizer); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number, c: number }>; result = _(obj).assignWith(s1, s2, s3, customizer); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number, d: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number, c: number, d: number }>; result = _(obj).assignWith(s1, s2, s3, s4, customizer); } @@ -8975,22 +9301,22 @@ namespace TestAssignWith { } { - let result: _.LoDashExplicitObjectWrapper<{ a: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string }>; result = _(obj).chain().assignWith(s1, customizer); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number }>; result = _(obj).chain().assignWith(s1, s2, customizer); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number, c: number }>; result = _(obj).chain().assignWith(s1, s2, s3, customizer); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number, d: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number, c: number, d: number }>; result = _(obj).chain().assignWith(s1, s2, s3, s4, customizer); } @@ -9061,25 +9387,25 @@ namespace TestAssignIn { } { - let result: _.LoDashImplicitObjectWrapper<{ a: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string }>; result = _(obj).assignIn(s1); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number }>; result = _(obj).assignIn(s1, s2); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number, c: number }>; result = _(obj).assignIn(s1, s2, s3); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number, d: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number, c: number, d: number }>; result = _(obj).assignIn(s1, s2, s3, s4); } @@ -9097,25 +9423,25 @@ namespace TestAssignIn { } { - let result: _.LoDashExplicitObjectWrapper<{ a: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string }>; result = _(obj).chain().assignIn(s1); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number }>; result = _(obj).chain().assignIn(s1, s2); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number, c: number }>; result = _(obj).chain().assignIn(s1, s2, s3); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number, d: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number, c: number, d: number }>; result = _(obj).chain().assignIn(s1, s2, s3, s4); } @@ -9183,22 +9509,22 @@ namespace TestAssignInWith { } { - let result: _.LoDashImplicitObjectWrapper<{ a: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string }>; result = _(obj).assignInWith(s1, customizer); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number }>; result = _(obj).assignInWith(s1, s2, customizer); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number, c: number }>; result = _(obj).assignInWith(s1, s2, s3, customizer); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number, d: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number, c: number, d: number }>; result = _(obj).assignInWith(s1, s2, s3, s4, customizer); } @@ -9214,22 +9540,22 @@ namespace TestAssignInWith { } { - let result: _.LoDashExplicitObjectWrapper<{ a: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string }>; result = _(obj).chain().assignInWith(s1, customizer); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number }>; result = _(obj).chain().assignInWith(s1, s2, customizer); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number, c: number }>; result = _(obj).chain().assignInWith(s1, s2, s3, customizer); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number, d: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number, c: number, d: number }>; result = _(obj).chain().assignInWith(s1, s2, s3, s4, customizer); } @@ -9328,25 +9654,25 @@ namespace TestDefaults { } { - let result: _.LoDashImplicitObjectWrapper<{ a: string }>; + let result: _.LoDashImplicitObjectWrapper<{ a: string & number }>; result = _(obj).defaults(s1); } { - let result: _.LoDashImplicitObjectWrapper<{ a: string, b: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: string & number, b: number }>; result = _(obj).defaults(s1, s2); } { - let result: _.LoDashImplicitObjectWrapper<{ a: string, b: number, c: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: string & number, b: number, c: number }>; result = _(obj).defaults(s1, s2, s3); } { - let result: _.LoDashImplicitObjectWrapper<{ a: string, b: number, c: number, d: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: string & number, b: number, c: number, d: number }>; result = _(obj).defaults(s1, s2, s3, s4); } @@ -9364,25 +9690,25 @@ namespace TestDefaults { } { - let result: _.LoDashExplicitObjectWrapper<{ a: string }>; + let result: _.LoDashExplicitObjectWrapper<{ a: string & number }>; result = _(obj).chain().defaults(s1); } { - let result: _.LoDashExplicitObjectWrapper<{ a: string, b: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: string & number, b: number }>; result = _(obj).chain().defaults(s1, s2); } { - let result: _.LoDashExplicitObjectWrapper<{ a: string, b: number, c: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: string & number, b: number, c: number }>; result = _(obj).chain().defaults(s1, s2, s3); } { - let result: _.LoDashExplicitObjectWrapper<{ a: string, b: number, c: number, d: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: string & number, b: number, c: number, d: number }>; result = _(obj).chain().defaults(s1, s2, s3, s4); } @@ -9406,6 +9732,88 @@ const TestDefaultsDeepSource = { 'user': { 'name': 'fred', 'age': 36 } }; result = <DefaultsDeepResult>_.defaultsDeep(TestDefaultsDeepObject, TestDefaultsDeepSource); result = <DefaultsDeepResult>_(TestDefaultsDeepObject).defaultsDeep<DefaultsDeepResult>(TestDefaultsDeepSource).value(); +// _.entries +namespace TestEntries { + let object: _.Dictionary<string> = {}; + + { + let result: [string, any][]; + + result = _.entries<_.Dictionary<string>>(object); + } + + { + let result: [string, string][]; + + result = _.entries<_.Dictionary<string>, string>(object); + } + + { + let result: _.LoDashImplicitArrayWrapper<[string, string]>; + + result = _(object).entries<string>(); + } + + { + let result: _.LoDashImplicitArrayWrapper<[string, any]>; + + result = _(object).entries(); + } + + { + let result: _.LoDashExplicitArrayWrapper<[string, string]>; + + result = _(object).chain().entries<string>(); + } + + { + let result: _.LoDashExplicitArrayWrapper<[string, any]>; + + result = _(object).chain().entries(); + } +} + +// _.entriesIn +namespace TestEntriesIn { + let object: _.Dictionary<string> = {}; + + { + let result: [string, any][]; + + result = _.entriesIn<_.Dictionary<string>>(object); + } + + { + let result: [string, string][]; + + result = _.entriesIn<_.Dictionary<string>, string>(object); + } + + { + let result: _.LoDashImplicitArrayWrapper<[string, string]>; + + result = _(object).entriesIn<string>(); + } + + { + let result: _.LoDashImplicitArrayWrapper<[string, any]>; + + result = _(object).entriesIn(); + } + + { + let result: _.LoDashExplicitArrayWrapper<[string, string]>; + + result = _(object).chain().entriesIn<string>(); + } + + { + let result: _.LoDashExplicitArrayWrapper<[string, any]>; + + result = _(object).chain().entriesIn(); + } +} + // _.extend namespace TestExtend { type Obj = { a: string }; @@ -9467,25 +9875,25 @@ namespace TestExtend { } { - let result: _.LoDashImplicitObjectWrapper<{ a: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string }>; result = _(obj).extend(s1); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number }>; result = _(obj).extend(s1, s2); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number, c: number }>; result = _(obj).extend(s1, s2, s3); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number, d: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number, c: number, d: number }>; result = _(obj).extend(s1, s2, s3, s4); } @@ -9503,25 +9911,25 @@ namespace TestExtend { } { - let result: _.LoDashExplicitObjectWrapper<{ a: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string }>; result = _(obj).chain().extend(s1); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number }>; result = _(obj).chain().extend(s1, s2); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number, c: number }>; result = _(obj).chain().extend(s1, s2, s3); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number, d: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number, c: number, d: number }>; result = _(obj).chain().extend(s1, s2, s3, s4); } @@ -9594,25 +10002,25 @@ namespace TestExtendWith { } { - let result: _.LoDashImplicitObjectWrapper<{ a: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string }>; result = _(obj).extendWith(s1, customizer); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number }>; result = _(obj).extendWith(s1, s2, customizer); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number, c: number }>; result = _(obj).extendWith(s1, s2, s3, customizer); } { - let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number, d: number }>; + let result: _.LoDashImplicitObjectWrapper<{ a: number & string, b: number, c: number, d: number }>; result = _(obj).extendWith(s1, s2, s3, s4, customizer); } @@ -9630,25 +10038,25 @@ namespace TestExtendWith { } { - let result: _.LoDashExplicitObjectWrapper<{ a: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string }>; result = _(obj).chain().extendWith(s1, customizer); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number }>; result = _(obj).chain().extendWith(s1, s2, customizer); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number, c: number }>; result = _(obj).chain().extendWith(s1, s2, s3, customizer); } { - let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number, d: number }>; + let result: _.LoDashExplicitObjectWrapper<{ a: number & string, b: number, c: number, d: number }>; result = _(obj).chain().extendWith(s1, s2, s3, s4, customizer); } @@ -10580,7 +10988,7 @@ namespace TestMergeWith { type ExpectedResult = { a: number, b: string }; let result: ExpectedResult; - let customizer: (value: any, srcValue: any, key?: string, object?: InitialValue, source?: MergingValue) => any = (value: any, srcValue: any, key?: string, object?: InitialValue, source?: MergingValue) => 1; + let customizer: (value: any, srcValue: any, key: string, object: InitialValue, source: MergingValue) => any = (value: any, srcValue: any, key: string, object: InitialValue, source: MergingValue) => 1; // Test for basic merging result = _.mergeWith(initialValue, mergingValue, customizer); @@ -10597,7 +11005,7 @@ namespace TestMergeWith { result = _(initialValue).mergeWith({}, {}, mergingValue, customizer).value(); result = _(initialValue).mergeWith({}, {}, {}, mergingValue, customizer).value(); - // Once we get to the varargs version, you have to specify the result explicitl + // Once we get to the varargs version, you have to specify the result explicitly result = _(initialValue).mergeWith<ExpectedResult>({}, {}, {}, {}, mergingValue, customizer).value(); } @@ -11002,7 +11410,7 @@ namespace TestToPairsIn { { let result: _.LoDashExplicitArrayWrapper<[string, any]>; - result = _(object).chain().toPairs(); + result = _(object).chain().toPairsIn(); } } @@ -11137,6 +11545,48 @@ namespace TestUpdate { } } +// _.updateWith +namespace TestUpdateWith { + type SampleObject = {a: {}}; + type SampleResult = {a: {b: number[]}}; + + let object: SampleObject = { a: {} }; + let updater = (value: any) => 0; + let customizer = (value: any, key: string, object: SampleObject) => 0; + + { + let result: SampleResult; + + result = _.updateWith<SampleResult>(object, 'a.b[1]', updater); + result = _.updateWith<SampleResult>(object, 'a.b[1]', updater, customizer); + result = _.updateWith<SampleResult>(object, ['a', 'b', 1], updater); + result = _.updateWith<SampleResult>(object, ['a', 'b', 1], updater, customizer); + + result = _.updateWith<SampleResult>(object, 'a.b[1]', updater); + result = _.updateWith<SampleResult>(object, 'a.b[1]', updater, customizer); + result = _.updateWith<SampleResult>(object, ['a', 'b', 1], updater); + result = _.updateWith<SampleResult>(object, ['a', 'b', 1], updater, customizer); + } + + { + let result: _.LoDashImplicitObjectWrapper<SampleResult>; + + result = _(object).updateWith<SampleResult>('a.b[1]', updater); + result = _(object).updateWith<SampleResult>('a.b[1]', updater, customizer); + result = _(object).updateWith<SampleResult>(['a', 'b', 1], updater); + result = _(object).updateWith<SampleResult>(['a', 'b', 1], updater, customizer); + } + + { + let result: _.LoDashExplicitObjectWrapper<SampleResult>; + + result = _(object).chain().updateWith<SampleResult>('a.b[1]', updater); + result = _(object).chain().updateWith<SampleResult>('a.b[1]', updater, customizer); + result = _(object).chain().updateWith<SampleResult>(['a', 'b', 1], updater); + result = _(object).chain().updateWith<SampleResult>(['a', 'b', 1], updater, customizer); + } +} + // _.values namespace TestValues { type SampleObject = {a: {}}; @@ -11945,6 +12395,20 @@ namespace TestAttempt { } } +// _.cond +namespace TestCond { + let pairPred1: (val: string) => boolean = (val) => true; + let pairPred2: (val: string) => boolean = (val) => false; + let pairRes1: (val: string) => number = (val) => 1; + let pairRes2: (val: string) => number = (val) => 2; + + { + let result: number; + + result = _.cond([[pairPred1, pairRes1],[pairPred2, pairRes2]])('hello'); + } +} + // _.constant namespace TestConstant { { diff --git a/types/lodash/nth.d.ts b/types/lodash/nth.d.ts new file mode 100644 index 0000000000..ce1013f23b --- /dev/null +++ b/types/lodash/nth.d.ts @@ -0,0 +1,2 @@ +import { nth } from "./index"; +export = nth; diff --git a/types/lodash/pullAllWith.d.ts b/types/lodash/pullAllWith.d.ts new file mode 100644 index 0000000000..d3ce829804 --- /dev/null +++ b/types/lodash/pullAllWith.d.ts @@ -0,0 +1,2 @@ +import { pullAllWith } from "./index"; +export = pullAllWith; diff --git a/types/lodash/scripts/generate-modules.ts b/types/lodash/scripts/generate-modules.ts index e6a4e72abb..32bbc0ec25 100644 --- a/types/lodash/scripts/generate-modules.ts +++ b/types/lodash/scripts/generate-modules.ts @@ -160,6 +160,8 @@ function modulesNotOnNpm(): string[] { "chain", "each", "eachRight", + "entries", + "entriesIn", "extend", "extendWith", "noConflict", @@ -199,6 +201,7 @@ function allModuleNames(): string[] { "cloneWith", "compact", "concat", + "cond", "constant", "countBy", "create", @@ -213,6 +216,7 @@ function allModuleNames(): string[] { "difference", "differenceBy", "differenceWith", + "divide", "drop", "dropRight", "dropRightWhile", @@ -220,6 +224,8 @@ function allModuleNames(): string[] { "each", "eachRight", "endsWith", + "entries", + "entriesIn", "eq", "escape", "escapeRegExp", @@ -236,6 +242,8 @@ function allModuleNames(): string[] { "findLastKey", "first", "flatMap", + "flatMapDeep", + "flatMapDepth", "flatten", "flattenDeep", "flattenDepth", @@ -260,10 +268,10 @@ function allModuleNames(): string[] { "hasIn", "head", "identity", - "inRange", "includes", "indexOf", "initial", + "inRange", "intersection", "intersectionBy", "intersectionWith", @@ -341,6 +349,7 @@ function allModuleNames(): string[] { "noConflict", "noop", "now", + "nth", "nthArg", "omit", "omitBy", @@ -364,6 +373,7 @@ function allModuleNames(): string[] { "pull", "pullAll", "pullAllBy", + "pullAllWith", "pullAt", "random", "range", @@ -416,6 +426,7 @@ function allModuleNames(): string[] { "thru", "times", "toArray", + "toFinite", "toInteger", "toLength", "toLower", @@ -439,12 +450,13 @@ function allModuleNames(): string[] { "unionWith", "uniq", "uniqBy", - "uniqWith", "uniqueId", + "uniqWith", "unset", "unzip", "unzipWith", "update", + "updateWith", "upperCase", "upperFirst", "values", @@ -457,6 +469,7 @@ function allModuleNames(): string[] { "xorWith", "zip", "zipObject", + "zipObjectDeep", "zipWith" ]; } diff --git a/types/lodash/toFinite.d.ts b/types/lodash/toFinite.d.ts new file mode 100644 index 0000000000..c575b47847 --- /dev/null +++ b/types/lodash/toFinite.d.ts @@ -0,0 +1,2 @@ +import { toFinite } from "./index"; +export = toFinite; diff --git a/types/lodash/tsconfig.json b/types/lodash/tsconfig.json index 8fdd6ddff3..9947bcc8e6 100644 --- a/types/lodash/tsconfig.json +++ b/types/lodash/tsconfig.json @@ -44,6 +44,7 @@ "cloneWith.d.ts", "compact.d.ts", "concat.d.ts", + "cond.d.ts", "constant.d.ts", "countBy.d.ts", "create.d.ts", @@ -58,6 +59,7 @@ "difference.d.ts", "differenceBy.d.ts", "differenceWith.d.ts", + "divide.d.ts", "drop.d.ts", "dropRight.d.ts", "dropRightWhile.d.ts", @@ -65,6 +67,8 @@ "each.d.ts", "eachRight.d.ts", "endsWith.d.ts", + "entries.d.ts", + "entriesIn.d.ts", "eq.d.ts", "escape.d.ts", "escapeRegExp.d.ts", @@ -81,6 +85,8 @@ "findLastKey.d.ts", "first.d.ts", "flatMap.d.ts", + "flatMapDeep.d.ts", + "flatMapDepth.d.ts", "flatten.d.ts", "flattenDeep.d.ts", "flattenDepth.d.ts", @@ -105,10 +111,10 @@ "hasIn.d.ts", "head.d.ts", "identity.d.ts", - "inRange.d.ts", "includes.d.ts", "indexOf.d.ts", "initial.d.ts", + "inRange.d.ts", "intersection.d.ts", "intersectionBy.d.ts", "intersectionWith.d.ts", @@ -186,6 +192,7 @@ "noConflict.d.ts", "noop.d.ts", "now.d.ts", + "nth.d.ts", "nthArg.d.ts", "omit.d.ts", "omitBy.d.ts", @@ -209,6 +216,7 @@ "pull.d.ts", "pullAll.d.ts", "pullAllBy.d.ts", + "pullAllWith.d.ts", "pullAt.d.ts", "random.d.ts", "range.d.ts", @@ -261,6 +269,7 @@ "thru.d.ts", "times.d.ts", "toArray.d.ts", + "toFinite.d.ts", "toInteger.d.ts", "toLength.d.ts", "toLower.d.ts", @@ -284,12 +293,13 @@ "unionWith.d.ts", "uniq.d.ts", "uniqBy.d.ts", - "uniqWith.d.ts", "uniqueId.d.ts", + "uniqWith.d.ts", "unset.d.ts", "unzip.d.ts", "unzipWith.d.ts", "update.d.ts", + "updateWith.d.ts", "upperCase.d.ts", "upperFirst.d.ts", "values.d.ts", @@ -302,6 +312,7 @@ "xorWith.d.ts", "zip.d.ts", "zipObject.d.ts", + "zipObjectDeep.d.ts", "zipWith.d.ts" ] -} \ No newline at end of file +} diff --git a/types/lodash/updateWith.d.ts b/types/lodash/updateWith.d.ts new file mode 100644 index 0000000000..44175423ec --- /dev/null +++ b/types/lodash/updateWith.d.ts @@ -0,0 +1,2 @@ +import { updateWith } from "./index"; +export = updateWith; diff --git a/types/lodash/zipObjectDeep.d.ts b/types/lodash/zipObjectDeep.d.ts new file mode 100644 index 0000000000..2a483e8393 --- /dev/null +++ b/types/lodash/zipObjectDeep.d.ts @@ -0,0 +1,2 @@ +import { zipObjectDeep } from "./index"; +export = zipObjectDeep; diff --git a/types/log4js/log4js-tests.ts b/types/log4js/log4js-tests.ts index af4a706e1c..b6123b1abd 100644 --- a/types/log4js/log4js-tests.ts +++ b/types/log4js/log4js-tests.ts @@ -90,10 +90,10 @@ var myAppender: log4js.AppenderModule = { return cb(null); }, - configure: function (config: MyAppenderConfig, options?: { [key: string]: any }): log4js.Appender { - var mycfg = config.mycfg; + configure: function (config: log4js.CustomAppenderConfig, options?: { [key: string]: any }): log4js.Appender { + var mycfg = (config as MyAppenderConfig).mycfg; return this.appender(mycfg); } } -log4js.loadAppender("my-log4js-appender", myAppender); \ No newline at end of file +log4js.loadAppender("my-log4js-appender", myAppender); diff --git a/types/log4js/tsconfig.json b/types/log4js/tsconfig.json index a71e03c82a..ed31cb93c7 100644 --- a/types/log4js/tsconfig.json +++ b/types/log4js/tsconfig.json @@ -19,4 +19,4 @@ "index.d.ts", "log4js-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/logat/index.d.ts b/types/logat/index.d.ts index 3fdf6d6f7a..96e3133e0d 100644 --- a/types/logat/index.d.ts +++ b/types/logat/index.d.ts @@ -3,24 +3,22 @@ // Definitions by: Vikash <https://github.com/krvikash35> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -///<reference types="node" /> +/// <reference types="node" /> -declare module 'logat'{ - - interface LogOptionsI { - logLevel?: number, - logMethod?: number, - logFileName?: string - } - - class Logger extends NodeJS.EventEmitter { - error(...args: any[]): void; - warn(...args: any[]): void; - info(...args: any[]): void; - debug(...args: any[]): void; - getOptions(): LogOptionsI; - setOptions(options: LogOptionsI): void; - } - - export = new Logger(); +interface LogOptionsI { + logLevel?: number; + logMethod?: number; + logFileName?: string; } + +interface Logger extends NodeJS.EventEmitter { + error(...args: any[]): void; + warn(...args: any[]): void; + info(...args: any[]): void; + debug(...args: any[]): void; + getOptions(): LogOptionsI; + setOptions(options: LogOptionsI): void; +} + +declare const logger: Logger; +export = logger; diff --git a/types/logat/logat-tests.ts b/types/logat/logat-tests.ts index e784e1dca2..c129efdec1 100644 --- a/types/logat/logat-tests.ts +++ b/types/logat/logat-tests.ts @@ -1,17 +1,16 @@ - import logat = require('logat'); -logat.on('LogConfigError', function(err: any){ -}) +logat.on('LogConfigError', (err: any) => { +}); logat.error('This is error'); -logat.error( new Error('This is error instance') ); -logat.error( String('object1'), String('object2') ); +logat.error(new Error('This is error instance')); +logat.error('object1', 'object2'); logat.warn('This is warn'); logat.info('This is info'); logat.debug('This is debug'); -logat.setOptions( { +logat.setOptions({ logLevel: 4, logMethod: 1 }); diff --git a/types/logat/tslint.json b/types/logat/tslint.json new file mode 100644 index 0000000000..2750cc0197 --- /dev/null +++ b/types/logat/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/loglevel/index.d.ts b/types/loglevel/index.d.ts index e7c9015e0c..c32bdf52a0 100644 --- a/types/loglevel/index.d.ts +++ b/types/loglevel/index.d.ts @@ -1,182 +1,172 @@ -// Type definitions for loglevel 1.4.0 +// Type definitions for loglevel 1.5 // Project: https://github.com/pimterry/loglevel -// Definitions by: Stefan Profanter <https://github.com/Pro>, Florian Wagner <https://github.com/flqw>, Gabor Szmetanko <https://github.com/szmeti> +// Definitions by: Stefan Profanter <https://github.com/Pro> +// Florian Wagner <https://github.com/flqw> +// Gabor Szmetanko <https://github.com/szmeti> +// Christian Rackerseder <https://github.com/screendriver> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 -/** - * Log levels - */ -declare const enum LogLevel { - TRACE = 0, - DEBUG = 1, - INFO = 2, - WARN = 3, - ERROR = 4, - SILENT = 5 -} +declare var log: log.Logger; +export as namespace log; +export = log; -interface LoggingMethod { - - (...message : any[]):void; - -} - -interface MethodFactory { - - (methodName : string, level : LogLevel, loggerName : string):LoggingMethod; - -} - -interface Log { - - /** - * Plugin API entry point. This will be called for each enabled method each time the level is set - * (including initially), and should return a MethodFactory to be used for the given log method, at the given level, - * for a logger with the given name. If you'd like to retain all the reliability and features of loglevel, it's - * recommended that this wraps the initially provided value of log.methodFactory - */ - methodFactory:MethodFactory; - - /** - * Output trace message to console. - * This will also include a full stack trace - * - * @param msg any data to log to the console - */ - trace(...msg : any[]):void; - - /** - * Output debug message to console including appropriate icons - * - * @param msg any data to log to the console - */ - debug(...msg : any[]):void; - - /** - * Output info message to console including appropriate icons - * - * @param msg any data to log to the console - */ - info(...msg : any[]):void; - - /** - * Output warn message to console including appropriate icons - * - * @param msg any data to log to the console - */ - warn(...msg : any[]):void; - - /** - * Output error message to console including appropriate icons - * - * @param msg any data to log to the console - */ - error(...msg : any[]):void; - - +declare namespace log { /** - * This disables all logging below the given level, so that after a log.setLevel("warn") call log.warn("something") - * or log.error("something") will output messages, but log.info("something") will not. - * - * @param level 0=trace to 5=silent - * @param persist Where possible the log level will be persisted. LocalStorage will be used if available, falling - * back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass - * false as the optional 'persist' second argument, persistence will be skipped. + * Log levels */ - setLevel(level : LogLevel, persist? : boolean):void; + interface LogLevel { + TRACE: 0; + DEBUG: 1; + INFO: 2; + WARN: 3; + ERROR: 4; + SILENT: 5; + } - - /** - * This disables all logging below the given level, so that after a log.setLevel("warn") call log.warn("something") - * or log.error("something") will output messages, but log.info("something") will not. - * - * @param level as a string, like 'error' (case-insensitive) - * @param persist Where possible the log level will be persisted. LocalStorage will be used if available, falling - * back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass - * false as the optional 'persist' second argument, persistence will be skipped. - */ - setLevel(level : string, persist? : boolean):void; - - - /** - * This disables all logging below the given level, so that after a log.setLevel("warn") call log.warn("something") - * or log.error("something") will output messages, but log.info("something") will not. - * - * @param level as the value from the enum - * @param persist Where possible the log level will be persisted. LocalStorage will be used if available, falling - * back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass - * false as the optional 'persist' second argument, persistence will be skipped. - */ - setLevel(level : LogLevel, persist? : boolean):void; - - /** - * If you're using another JavaScript library that exposes a 'log' global, you can run into conflicts with loglevel. - * Similarly to jQuery, you can solve this by putting loglevel into no-conflict mode immediately after it is loaded - * onto the page. This resets to 'log' global to its value before loglevel was loaded (typically undefined), and - * returns the loglevel object, which you can then bind to another name yourself. - */ - noConflict():any; - - /** - * Returns the current logging level, as a value from the enum. - * It's very unlikely you'll need to use this for normal application logging; it's provided partly to help plugin - * development, and partly to let you optimize logging code as below, where debug data is only generated if the - * level is set such that it'll actually be logged. This probably doesn't affect you, unless you've run profiling - * on your code and you have hard numbers telling you that your log data generation is a real performance problem. - */ - getLevel():LogLevel; - - /** - * This sets the current log level only if one has not been persisted and can’t be loaded. This is useful when - * initializing scripts; if a developer or user has previously called setLevel(), this won’t alter their settings. - * For example, your application might set the log level to error in a production environment, but when debugging - * an issue, you might call setLevel("trace") on the console to see all the logs. If that error setting was set - * using setDefaultLevel(), it will still say as trace on subsequent page loads and refreshes instead of resetting - * to error. - * - * The level argument takes is the same values that you might pass to setLevel(). Levels set using - * setDefaultLevel() never persist to subsequent page loads. - * - * @param level as the value from the enum - */ - setDefaultLevel(level : LogLevel):void; - - /** - * This gets you a new logger object that works exactly like the root log object, but can have its level and - * logging methods set independently. All loggers must have a name (which is a non-empty string). Calling - * getLogger() multiple times with the same name will return an identical logger object. - * In large applications, it can be incredibly useful to turn logging on and off for particular modules as you are - * working with them. Using the getLogger() method lets you create a separate logger for each part of your - * application with its own logging level. Likewise, for small, independent modules, using a named logger instead - * of the default root logger allows developers using your module to selectively turn on deep, trace-level logging - * when trying to debug problems, while logging only errors or silencing logging altogether under normal - * circumstances. - * @param name The name of the produced logger - */ - getLogger(name : String):Log; - /** - * This enables all log messages, and is equivalent to log.setLevel("trace"). - * - * @param persist Where possible the log level will be persisted. LocalStorage will be used if available, falling - * back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass - * false as the optional 'persist' second argument, persistence will be skipped. + * Possible log level numbers. */ - enableAll(persist? : boolean):void; - - /** - * This disables all log messages, and is equivalent to log.setLevel("silent"). - * - * @param persist Where possible the log level will be persisted. LocalStorage will be used if available, falling - * back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass - * false as the optional 'persist' second argument, persistence will be skipped. - */ - disableAll(persist? : boolean):void; - -} - -declare var log : Log; - -declare module "loglevel" { - export = log; + type LogLevelNumbers = LogLevel[keyof LogLevel]; + + type LoggingMethod = (...message: any[]) => void; + + type MethodFactory = (methodName: string, level: LogLevelNumbers, loggerName: string) => LoggingMethod; + + interface Logger { + /** + * Available log levels. + */ + readonly levels: LogLevel; + + /** + * Plugin API entry point. This will be called for each enabled method each time the level is set + * (including initially), and should return a MethodFactory to be used for the given log method, at the given level, + * for a logger with the given name. If you'd like to retain all the reliability and features of loglevel, it's + * recommended that this wraps the initially provided value of log.methodFactory + */ + methodFactory: MethodFactory; + + /** + * Output trace message to console. + * This will also include a full stack trace + * + * @param msg any data to log to the console + */ + trace(...msg: any[]): void; + + /** + * Output debug message to console including appropriate icons + * + * @param msg any data to log to the console + */ + debug(...msg: any[]): void; + + /** + * Output info message to console including appropriate icons + * + * @param msg any data to log to the console + */ + info(...msg: any[]): void; + + /** + * Output warn message to console including appropriate icons + * + * @param msg any data to log to the console + */ + warn(...msg: any[]): void; + + /** + * Output error message to console including appropriate icons + * + * @param msg any data to log to the console + */ + error(...msg: any[]): void; + + /** + * This disables all logging below the given level, so that after a log.setLevel("warn") call log.warn("something") + * or log.error("something") will output messages, but log.info("something") will not. + * + * @param level as a string, like 'error' (case-insensitive) or as a number from 0 to 5 (or as log.levels. values) + * @param persist Where possible the log level will be persisted. LocalStorage will be used if available, falling + * back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass + * false as the optional 'persist' second argument, persistence will be skipped. + */ + setLevel( + level: + LogLevelNumbers + | 'trace' + | 'debug' + | 'info' + | 'warn' + | 'error' + | 'silent' + | keyof LogLevel, + persist?: boolean + ): void; + + /** + * If you're using another JavaScript library that exposes a 'log' global, you can run into conflicts with loglevel. + * Similarly to jQuery, you can solve this by putting loglevel into no-conflict mode immediately after it is loaded + * onto the page. This resets to 'log' global to its value before loglevel was loaded (typically undefined), and + * returns the loglevel object, which you can then bind to another name yourself. + */ + noConflict(): any; + + /** + * Returns the current logging level, as a value from LogLevel. + * It's very unlikely you'll need to use this for normal application logging; it's provided partly to help plugin + * development, and partly to let you optimize logging code as below, where debug data is only generated if the + * level is set such that it'll actually be logged. This probably doesn't affect you, unless you've run profiling + * on your code and you have hard numbers telling you that your log data generation is a real performance problem. + */ + getLevel(): LogLevel[keyof LogLevel]; + + /** + * This sets the current log level only if one has not been persisted and can’t be loaded. This is useful when + * initializing scripts; if a developer or user has previously called setLevel(), this won’t alter their settings. + * For example, your application might set the log level to error in a production environment, but when debugging + * an issue, you might call setLevel("trace") on the console to see all the logs. If that error setting was set + * using setDefaultLevel(), it will still say as trace on subsequent page loads and refreshes instead of resetting + * to error. + * + * The level argument takes is the same values that you might pass to setLevel(). Levels set using + * setDefaultLevel() never persist to subsequent page loads. + * + * @param level as the value from the enum + */ + setDefaultLevel(level: LogLevel): void; + + /** + * This gets you a new logger object that works exactly like the root log object, but can have its level and + * logging methods set independently. All loggers must have a name (which is a non-empty string). Calling + * getLogger() multiple times with the same name will return an identical logger object. + * In large applications, it can be incredibly useful to turn logging on and off for particular modules as you are + * working with them. Using the getLogger() method lets you create a separate logger for each part of your + * application with its own logging level. Likewise, for small, independent modules, using a named logger instead + * of the default root logger allows developers using your module to selectively turn on deep, trace-level logging + * when trying to debug problems, while logging only errors or silencing logging altogether under normal + * circumstances. + * @param name The name of the produced logger + */ + getLogger(name: string): Logger; + + /** + * This enables all log messages, and is equivalent to log.setLevel("trace"). + * + * @param persist Where possible the log level will be persisted. LocalStorage will be used if available, falling + * back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass + * false as the optional 'persist' second argument, persistence will be skipped. + */ + enableAll(persist?: boolean): void; + + /** + * This disables all log messages, and is equivalent to log.setLevel("silent"). + * + * @param persist Where possible the log level will be persisted. LocalStorage will be used if available, falling + * back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass + * false as the optional 'persist' second argument, persistence will be skipped. + */ + disableAll(persist?: boolean): void; + } } diff --git a/types/loglevel/test/loglevel-tests.ts b/types/loglevel/test/loglevel-tests.ts new file mode 100644 index 0000000000..453f81d28d --- /dev/null +++ b/types/loglevel/test/loglevel-tests.ts @@ -0,0 +1,43 @@ +import * as moduleLog from 'loglevel'; + +moduleLog.trace('Trace message'); +moduleLog.debug('Debug message'); +moduleLog.info('Info message'); +moduleLog.warn('Warn message'); +moduleLog.error('Error message'); +moduleLog.debug(['Hello', 'world', 42]); + +moduleLog.setLevel(0); +moduleLog.setLevel(0, false); + +moduleLog.setLevel('error'); +moduleLog.setLevel('ERROR'); +moduleLog.setLevel('error', false); +moduleLog.setLevel('ERROR', false); + +moduleLog.setLevel(moduleLog.levels.WARN); +moduleLog.setLevel(moduleLog.levels.WARN, false); + +moduleLog.enableAll(false); +moduleLog.enableAll(); +moduleLog.disableAll(true); +moduleLog.disableAll(); + +const logLevel = moduleLog.getLevel(); + +const testLogger: moduleLog.Logger = moduleLog.getLogger('TestLogger'); + +testLogger.setLevel(logLevel); +testLogger.warn('logging test'); + +const logging = moduleLog.noConflict(); + +logging.error("still pretty easy"); + +// TODO: only works in a global environment +// moduleLog.methodFactory = (methodName: string, level: number, loggerName :string) => { +// return function(...messages: any[]) { +// }; +// }; + +// ----------- global tests ---------- diff --git a/types/loglevel/loglevel-tests.ts b/types/loglevel/test/loglevel-umd-tests.ts similarity index 58% rename from types/loglevel/loglevel-tests.ts rename to types/loglevel/test/loglevel-umd-tests.ts index c5bd30b59c..97e9fe617a 100644 --- a/types/loglevel/loglevel-tests.ts +++ b/types/loglevel/test/loglevel-umd-tests.ts @@ -1,5 +1,3 @@ - - log.trace("Trace message"); log.debug("Debug message"); log.info("Info message"); @@ -13,26 +11,25 @@ log.setLevel(0, false); log.setLevel("error"); log.setLevel("error", false); -log.setLevel(LogLevel.WARN); -log.setLevel(LogLevel.WARN, false); +log.setLevel(log.levels.WARN); +log.setLevel(log.levels.WARN, false); log.enableAll(false); log.enableAll(); log.disableAll(true); log.disableAll(); -var logLevel = log.getLevel(); +const logLevel = log.getLevel(); -var testLogger = log.getLogger("TestLogger"); +const testLogger: log.Logger = log.getLogger("TestLogger"); testLogger.setLevel(logLevel); testLogger.warn("logging test"); -var logging = log.noConflict(); +const logging = log.noConflict(); logging.error("still pretty easy"); -log.methodFactory = function(methodName: string, level: LogLevel, loggerName :string) { - return function(...messages: any[]) { - }; -}; \ No newline at end of file +log.methodFactory = (methodName: string, level: number, loggerName: string) => { + return (...messages: any[]) => {}; +}; diff --git a/types/loglevel/tsconfig.json b/types/loglevel/tsconfig.json index 858fabbb22..2533113a54 100644 --- a/types/loglevel/tsconfig.json +++ b/types/loglevel/tsconfig.json @@ -1,4 +1,4 @@ -{ +{ "compilerOptions": { "module": "commonjs", "lib": [ @@ -17,6 +17,7 @@ }, "files": [ "index.d.ts", - "loglevel-tests.ts" + "test/loglevel-tests.ts", + "test/loglevel-umd-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/loglevel/tslint.json b/types/loglevel/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/loglevel/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/loopback/index.d.ts b/types/loopback/index.d.ts index 0fd42bde9d..bd98db660f 100644 --- a/types/loopback/index.d.ts +++ b/types/loopback/index.d.ts @@ -2,6 +2,8 @@ // Project: https://github.com/strongloop/loopback // Definitions by: Andres D Jimenez <https://github.com/kattsushi> // Tim Schumacher <https://github.com/enko> +// Sequoia McDowell <https://github.com/sequoia> +// Mike Crowe <https://github.com/drmikecrowe> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -723,6 +725,166 @@ declare namespace l { equals(p: any): void; } + /** + * @interface + * @property {string} path HTTP path (relative to the model) at which the method is exposed. + * @property {'get' | 'post' | 'patch' | 'put' | 'del' | 'all'} verb HTTP method (verb) at which the method is available. + * @property {number} status Default HTTP status set when the callback is called without an error. + * @property {number} errorStatus Default HTTP status set when the callback is called with an error. + */ + interface RemoteHttpOptions { + /** + * HTTP path (relative to the model) at which the method is exposed. + * ``` + * http: {path: '/sayhi'} + * ``` + */ + path: string; + /** + * HTTP method (verb) at which the method is available. + * ``` + * http: {path: '/sayhi', verb: 'get'} + * ``` + * default = post + */ + verb: 'get' | 'post' | 'patch' | 'put' | 'del' | 'all'; + + /** + * status Default HTTP status set when the callback is called without an error. + * ``` + * {status: 201} + * ``` + */ + status?: number; + + /** + * errorStatus Default HTTP status set when the callback is called with an error. + * ``` + * {errorStatus: 400} + * ``` + */ + errorStatus?: number; + } + + /** + * @interface + * @property {RemoteMethodArgument[]} accepts Defines arguments that the remote method accepts + * @property {string|string[]} description Text description of the method + * @property {RemoteHttpOptions} http The HTTP options for the remote method + * @property {boolean} isStatic Whether the method is static (eg. `MyModel.myMethod`) + * @property {string | string[]} notes Additional notes, used by API documentation generators like Swagger. + * @property {RemoteMethodArgument} returns Describes the remote method's callback arguments + */ + interface RemoteMethodOptions { + /** + * Defines arguments that the remote method accepts. These arguments map to the static method you define. For the example above, you can see the function signature: + Person.greet(name, age, callback)... + `name` is the first argument, `age` is the second argument and callback is automatically provided by LoopBack (do not specify it in your `accepts` array). + For more info, see Argument descriptions. + Default if not provided is the empty array, []. + { ... + accepts: [ + {arg: 'name', type: 'string'}, + {arg: 'age', type: 'number'},...], + ... } + */ + accepts?: RemoteMethodArgument[]; + + /** + * Text description of the method, used by API documentation generators such as Swagger. + You can put long strings in an array if needed (see note below). + */ + description?: string|string[]; + + /** + * + */ + http?: RemoteHttpOptions; + + /** + * + * boolean. Whether the method is static (eg. `MyModel.myMethod`). Use `false` to define the method on the prototype (for example, `MyModel.prototype.myMethod`). Default is true. + * default: true + */ + isStatic?: boolean; + + /** + * + Additional notes, used by API documentation generators like Swagger. + You can put long strings in an array if needed (see note below). + */ + notes?: string | string[]; + + /** + * Describes the remote method's callback arguments; See Argument descriptions. The err argument is assumed; do not specify. + * Default if not provided is the empty array, []. + * ``` + * returns: {arg: 'greeting', type: 'string'}` + * ``` + */ + returns?: RemoteMethodArgument; + } + + /** + * @interface + * @property {string} arg Argument name + * @property {string | string[]} description A text description of the argument. + * @property {any} http http Object or Function For input arguments: a function or an object describing mapping from HTTP request to the argument value. + * @property {boolean} required True if argument is required; false otherwise. + * @property {boolean} root For callback arguments: set this property to true if your function has a single callback argument. Otherwise the root object returned is an object + * @property {"any" | "Array" | "Boolean" | "Buffer" | "Date" | "GeoPoint" | "null" | "Number" | "Object" | "String"} type + * @property {string} default Default value that will be used to populate loopback-explorer input fields and swagger documentation + */ + interface RemoteMethodArgument { + /** + * Argument name + */ + arg: string; + /** + * A text description of the argument. This is used by API documentation generators like Swagger. + You can split long descriptions into arrays of strings (lines) to keep line lengths manageable. + ``` + [ + "Lorem ipsum dolor sit amet, consectetur adipiscing elit," + "sed do eiusmod tempor incididunt ut labore et dolore", + "magna aliqua." + ] + ``` + */ + description?: string | string[]; + /** + * http Object or Function For input arguments: a function or an object describing mapping from HTTP request to the argument value. See HTTP mapping of input arguments below. + * http.target + * Map the callback argument value to the HTTP response object. The following values are supported. + + * * status sets the res.statusCode to the provided value + * * header sets the http.header or arg named header to the value + */ + http?: RemoteHttpOptions; + + /** + * True if argument is required; false otherwise. + */ + required?: boolean; + + /** + * For callback arguments: set this property to true if your function has a single callback argument to use as the root object returned to remote caller. + * Otherwise the root object returned is a map (argument-name to argument-value). + */ + root?: boolean; + + /** + * Argument datatype; must be a Loopback type. Additionally, callback arguments allow a special type "file"; see below. + */ + type: "any" | "Array" | "Boolean" | "Buffer" | "Date" | "GeoPoint" | "null" | "Number" | "Object" | "String"; + + /** + * Default value that will be used to populate loopback-explorer input fields and swagger documentation. + * Note: This value will not be passed into remote methods function if argument is not present. + */ + default?: string; + } + /** * The base class for **all models** * **Inheriting from `Model`* @@ -877,10 +1039,10 @@ declare namespace l { * Model.remoteMethod('myMethod'); * `` * @param {string} name The name of the method. - * @param {any} options The remoting options. + * @param {RemoteMethodOptions} options The remoting options. * See [Remote methods - Options](docs.strongloop.com/display/LB/Remote+methods#Remotemethods-Options) */ - remoteMethod(name: string, options: any): void; + static remoteMethod(name: string, options: RemoteMethodOptions): void; /** * The `loopback.Model.extend()` method calls this when you create a model that extends another model. diff --git a/types/loopback/loopback-tests.ts b/types/loopback/loopback-tests.ts index d9a83b56a7..4cd7acd272 100644 --- a/types/loopback/loopback-tests.ts +++ b/types/loopback/loopback-tests.ts @@ -28,12 +28,20 @@ class Server { console.dir(data.name); } - model.findOne<TestModel>({}, (err, instance) => { + model.findOne<TestModel>({}, (err: Error, instance: TestModel) => { if (err) { console.dir(err); } console.dir(instance.name); }); + model.remoteMethod('getStuff', { + description: "Get some stuff", + accepts: [ + {arg: 'aParam', type: "String", required: true, description: "A parameter to process"} + ], + http: {verb: "get", path: "/get-stuff"}, + returns: {arg: "res", type: "Object"}, + }); }; } } diff --git a/types/lunr/index.d.ts b/types/lunr/index.d.ts index ba652742f3..42ab5ae41f 100644 --- a/types/lunr/index.d.ts +++ b/types/lunr/index.d.ts @@ -4,6 +4,9 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 +export as namespace lunr; +export = lunr; + /** * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright * Copyright (C) 2014 Oliver Nightingale @@ -999,7 +1002,3 @@ declare namespace lunr { * ``` */ declare function lunr(config: lunr.ConfigFunction): lunr.Index; - -declare module "lunr" { - export = lunr; -} diff --git a/types/lunr/lunr-tests.ts b/types/lunr/lunr-tests.ts index 6b6fef9fd4..ea5f32cfa0 100644 --- a/types/lunr/lunr-tests.ts +++ b/types/lunr/lunr-tests.ts @@ -22,12 +22,12 @@ function basic_test() { function pipeline_test() { const index = lunr(function() { - this.pipeline.add(function(token, tokenIndex, tokens) { + this.pipeline.add((token, tokenIndex, tokens) => { // text processing in here return token; }); - this.pipeline.after(lunr.stopWordFilter, function(token, tokenIndex, tokens) { + this.pipeline.after(lunr.stopWordFilter, (token, tokenIndex, tokens) => { // text processing in here return token; }); diff --git a/types/lunr/tslint.json b/types/lunr/tslint.json index a6eeebd3be..2750cc0197 100644 --- a/types/lunr/tslint.json +++ b/types/lunr/tslint.json @@ -1,9 +1 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "ban-types": false, - "only-arrow-functions": [false], - "no-single-declare-module": false, - "no-unnecessary-qualifier": true - } -} \ No newline at end of file +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/mapbox-gl/index.d.ts b/types/mapbox-gl/index.d.ts index 015aa21bce..ec154e4ab1 100644 --- a/types/mapbox-gl/index.d.ts +++ b/types/mapbox-gl/index.d.ts @@ -395,7 +395,7 @@ declare namespace mapboxgl { timeout?: number; maximumAge?: number; } - + export class FitBoundsOptions { maxZoom?: number; } @@ -723,7 +723,7 @@ declare namespace mapboxgl { angleWidth(p: Point): number; angleWithSep(x: number, y: number): number; - + static convert(a: PointLike): Point; } @@ -920,7 +920,7 @@ declare namespace mapboxgl { } export interface StyleFunction { - stops: any[][]; + stops?: any[][]; property?: string; base?: number; type?: "identity" | "exponential" | "interval" | "categorical"; diff --git a/types/material-ui/index.d.ts b/types/material-ui/index.d.ts index 461e7bf368..0f886aa91f 100644 --- a/types/material-ui/index.d.ts +++ b/types/material-ui/index.d.ts @@ -673,6 +673,7 @@ declare namespace __MaterialUI { size?: number; src?: string; style?: React.CSSProperties; + onClick?: React.MouseEventHandler<{}>; } export class Avatar extends React.Component<AvatarProps> { } @@ -951,7 +952,8 @@ declare namespace __MaterialUI { onRequestDelete?: React.TouchEventHandler<Chip>; onTouchTap?: React.TouchEventHandler<Chip>; style?: React.CSSProperties; - } + onClick?: React.MouseEventHandler<{}>; +} export class Chip extends React.Component<ChipProps> { } diff --git a/types/material-ui/tslint.json b/types/material-ui/tslint.json index d462b76190..b8cee022bf 100644 --- a/types/material-ui/tslint.json +++ b/types/material-ui/tslint.json @@ -5,6 +5,7 @@ "ban-types": false, "dt-header": false, "no-any-union": false, + "no-declare-current-package": false, "no-duplicate-imports": false, "no-empty-interface": false, "no-mergeable-namespace": false, diff --git a/types/mersenne-twister/index.d.ts b/types/mersenne-twister/index.d.ts index 4bfb354f91..09f9675ef8 100644 --- a/types/mersenne-twister/index.d.ts +++ b/types/mersenne-twister/index.d.ts @@ -3,7 +3,8 @@ // Definitions by: KentarouTakeda <https://github.com/KentarouTakeda> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export = class MersenneTwister { +export = MersenneTwister; +declare class MersenneTwister { /** * constructs mt with a number * @params seed @@ -44,4 +45,4 @@ export = class MersenneTwister { * generates a random number on [0,1) with 53-bit resolution */ random_long(): number; -}; +} diff --git a/types/meteor/mongo.d.ts b/types/meteor/mongo.d.ts index 99f931ec28..28e1868840 100644 --- a/types/meteor/mongo.d.ts +++ b/types/meteor/mongo.d.ts @@ -103,7 +103,10 @@ declare module Mongo { interface ObjectIDStatic { new (hexString?: string): ObjectID; } - interface ObjectID { } + interface ObjectID { + toHexString(): string; + equals(otherID: ObjectID): boolean; + } function setConnectionOptions(options: any): void; } diff --git a/types/mfiles/index.d.ts b/types/mfiles/index.d.ts index d500086598..c82377d1fe 100644 --- a/types/mfiles/index.d.ts +++ b/types/mfiles/index.d.ts @@ -3,6 +3,8 @@ // Definitions by: Arsène von Wyss <https://github.com/avonwyss> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +declare const MFExtApplicationPlatformWeb: any; + interface IAccessControlEntry { ChangePermissionsPermission: MFiles.MFPermission; EditPermission: MFiles.MFPermission; @@ -309,6 +311,11 @@ interface IClassGroups { Item(Index: number): IClassGroup; } +interface ICLSIDs { + readonly PreviewerCtrl: string; + readonly ShellListingCtrl: string; +} + interface ICollection { readonly Count: number; readonly Events: IEvents; @@ -393,9 +400,9 @@ interface IDailyTrigger { DaysInterval: number; } -interface IDashboard { +interface IDashboard<T> { AutoStopWithParent: boolean; - readonly CustomData: any; + readonly CustomData: T; readonly Events: IDashboardEvents; readonly IsPopupDashboard: boolean; readonly Parent: (IShellPaneContainer | IShellFrame | IVaultUI | IShellUI); @@ -6169,6 +6176,8 @@ declare namespace MFiles { const XMLSearchResult: { new(): IXMLSearchResult; }; const ApplicationPath: string; + const CLSID: ICLSIDs; + const CurrentApplicationPlatform: any; function CreateInstance(name: string): any; function CreateObjectCLR(assemblyFile: string, className: string): any; diff --git a/types/mfiles/mfiles-tests.ts b/types/mfiles/mfiles-tests.ts index ff9d09a482..8c0dcd45aa 100644 --- a/types/mfiles/mfiles-tests.ts +++ b/types/mfiles/mfiles-tests.ts @@ -72,6 +72,10 @@ function setTheme(shellFrame: IShellFrame) { function OnNewShellUI(shellUI: IShellUI) { shellUI.Events.Register(MFiles.Event.NewShellFrame, newShellFrameHandler); shellUI.Events.Register(MFiles.Event.NewNormalShellFrame, newShellFrameHandler); + if (MFiles.CurrentApplicationPlatform !== MFExtApplicationPlatformWeb) { + // We are not executing on the web, AxtiveX is available + const html = `<object classid='clsid:${MFiles.CLSID.ShellListingCtrl}' style='width: 400px; height: 300px;'> </object>`; + } } function newShellFrameHandler(shellFrame: IShellFrame) { diff --git a/types/microsoftteams/index.d.ts b/types/microsoftteams/index.d.ts index f598a09b06..a463cb4daa 100644 --- a/types/microsoftteams/index.d.ts +++ b/types/microsoftteams/index.d.ts @@ -1,6 +1,8 @@ -// Type definitions for microsoftteams 1.0 +// Type definitions for microsoftteams 1.1 // Project: https://github.com/OfficeDev/microsoft-teams-library-js -// Definitions by: OfficeDev <https://github.com/OfficeDev> +// Definitions by: Bhargav Krishna <https://github.com/WrathOfZombies> +// Jay Ongg <https://github.com/jayongg> +// Yuri Dogandjiev <https://github.com/ydogandjiev> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/types/microsoftteams // TypeScript Version: 2.1 // tslint:disable:prefer-method-signature @@ -12,6 +14,29 @@ interface MessageEvent { * This is the root namespace for the JavaScript SDK. */ declare namespace microsoftTeams { + interface TabInformation { + teamTabs: TabInstance[]; + } + interface TabInstance { + tabName: string; + entityId?: string; + channelId?: string; + channelName?: string; + channelIsFavorite?: boolean; + teamId?: string; + teamName?: string; + teamIsFavorite?: boolean; + groupId?: string; + url?: string; + websiteUrl?: string; + } + const enum TeamType { + Standard = 0, + Edu = 1, + Class = 2, + Plc = 3, + Staff = 4, + } /** * Initializes the library. This must be called before any other SDK calls. * The caller should only call this once the frame is loaded successfully. @@ -28,6 +53,12 @@ declare namespace microsoftTeams { * @param handler The handler to invoke when the user changes their theme. */ function registerOnThemeChangeHandler(handler: (theme: string) => void): void; + /** + * Registers a handler for when the user toggle full screen view for tab. + * Only one handler may be registered at a time. Subsequent registrations will override the first. + * @param handler The handler to invoke when the user changes toggle full screen view for tab. + */ + function registerFullScreenHandler(handler: (isFullScreen: boolean) => void): void; /** * Navigates the frame to a new cross-domain URL. The domain of this URL must match at least one of the * valid domains specified in the tab manifest; otherwise, an exception will be thrown. This function only @@ -36,6 +67,10 @@ declare namespace microsoftTeams { * @param url The url to navigate the frame to. */ function navigateCrossDomain(url: string): void; + /** + * Allows an app to retrieve all the tabs in favorite channels where it is enabled for this user + */ + function getTabInstances(callback: (tabInfo: TabInformation) => void): void; /** * Shares a deep link a user can use to navigate back to a specific state in this page. */ @@ -320,6 +355,14 @@ declare namespace microsoftTeams { * The current UI theme the user is using. */ theme?: string; + /** + * Indication whether the tab is in full screen mode. + */ + isFullScreen?: boolean; + /** + * The type of the team. + */ + teamType?: TeamType; } interface DeepLinkParameters { /** diff --git a/types/microsoftteams/microsoftteams-tests.ts b/types/microsoftteams/microsoftteams-tests.ts index 727b8b6f66..a4f8af0884 100644 --- a/types/microsoftteams/microsoftteams-tests.ts +++ b/types/microsoftteams/microsoftteams-tests.ts @@ -8,6 +8,7 @@ (() => { microsoftTeams.getContext(context => { const { upn, channelId } = context; + context.isFullScreen = true; }); microsoftTeams.settings.getSettings(settings => { @@ -33,4 +34,8 @@ url: '', successCallback: done => { } }); + + microsoftTeams.getTabInstances(tabInfo => { + const tabInstances: microsoftTeams.TabInstance[] = tabInfo.teamTabs; + }); })(); diff --git a/types/mockjs/index.d.ts b/types/mockjs/index.d.ts new file mode 100644 index 0000000000..a0ca673b0a --- /dev/null +++ b/types/mockjs/index.d.ts @@ -0,0 +1,281 @@ +// Type definitions for mockjs 1.0 +// Project: http://mockjs.com/ +// Definitions by: lavyun <httpS://github.com/lavyun> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +declare namespace mockjs { + type N = number; + type S = string; + type B = boolean; + + // Interface for global namespace 'Mockjs' + interface Mockjs { + mock: MockjsMock; + setup: MockjsSetup; + Random: MockjsRandom; + valid: MockjsValid; + toJSONSchema: MockjsToJSONSchema; + version: number; + } + + // Mockjs.mock() + // see https://github.com/nuysoft/Mock/wiki/Mock.mock() + interface MockjsMock { + (rurl: S | RegExp, rtype: S, template: any): Mockjs; + + (rurl: S | RegExp, template: any): Mockjs; + + (template: any): any; + } + + interface MockjsSetupSettings { + timeout?: number | S; + } + + // Mockjs.setup() + // see https://github.com/nuysoft/Mock/wiki/Mock.setup() + type MockjsSetup = (settings: MockjsSetupSettings) => void; + + // Mockjs.Random - Basic + // see https://github.com/nuysoft/Mock/wiki/Basic + interface MockjsRandomBasic { + // Random.boolean + boolean(min: N, max: N, current: B): B; + boolean(): B; + + // Random.natural + natural(min?: N, max?: N): N; + + // Random.integer + integer(min?: N, max?: N): N; + + // Random.float + float(min?: N, max?: N, dmin?: N, dmax?: N): N; + + // Random.character + character(pool: 'lower' | 'upper' | 'number' | 'symbol'): S; + character(pool?: S): S; + + // Random.string + string(pool: S | N, min?: N, max?: N): S; + + // Random.range + range(start?: N, stop?: N, step?: N): N; + } + + // Mockjs.Random - Date + // see https://github.com/nuysoft/Mock/wiki/Date + type RandomDateUtilString = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute' | 'second' | 'week'; + interface MockjsRandomDate { + // Random.date + date(format?: S): S; + + // Random.time + time(format?: S): S; + + // Random.datetime + datetime(format?: S): S; + + // Random.now + now(util: RandomDateUtilString, format?: S): S; + mow(format?: S): S; + } + + // Mockjs.Random - Image + // see https://github.com/nuysoft/Mock/wiki/Image + type RandomImageFormatString = 'png' | 'gif' | 'jpg'; + interface MockjsRandomImage { + // Random.image + image(size?: S, background?: S, foreground?: S, format?: RandomImageFormatString | S, text?: S): S; + + // Random.dataImage + dataImage(size?: S, text?: S): S; + } + + // Mockjs.Random - Color + // see https://github.com/nuysoft/Mock/wiki/Color + interface MockjsRandomColor { + // Random.color + color(): S; + + // Random.hex + hex(): S; + + // Random.rgb + rgb(): S; + + // Random.rgba + rgba(): S; + + // Random.hsl + hsl(): S; + } + + // Mockjs.Random - Text + // see https://github.com/nuysoft/Mock/wiki/Text + interface MockjsRandomText { + // Random.paragraph + paragraph(min?: N, max?: N): S; + + // Random.cparagraph + cparagraph(min?: N, max?: N): S; + + // Random.sentence + sentence(min?: N, max?: N): S; + + // Random.csentence + csentence(min?: N, max?: N): S; + + // Random.word + word(min?: N, max?: N): S; + + // Random.cword + cword(pool?: S | N, min?: N, max?: N): S; + + // Random.title + title(min?: N, max?: N): S; + + // Random.ctitle + ctitle(min?: N, max?: N): S; + } + + // Mockjs.Random - Name + // see https://github.com/nuysoft/Mock/wiki/Name + interface MockjsRandomName { + // Random.first + first(): S; + + // Random.last + last(): S; + + // Random.name + name(middle?: B): S; + + // Random.cfirst + cfirst(): S; + + // Random.clast + clast(): S; + + // Random.cname + cname(): S; + } + + // Mockjs.Random - Web + // see https://github.com/nuysoft/Mock/wiki/Web + type RandomWebProtocal = 'http' | 'ftp' | 'gopher' | 'mailto' | 'mid' | 'cid' | 'news' | 'nntp' | 'prospero' | 'telnet' | 'rlogin' | 'tn3270' | 'wais'; + interface MockjsRandomWeb { + // Random.url + url(protocol?: S, host?: S): S; + + // Random.protocol + protocal(): RandomWebProtocal; + + // Random.domain + domain(): S; + + // Random.tld + dtl(): S; + + // Random.email + email(domain?: S): S; + + // Random.ip + ip(): S; + } + + // Mockjs.Random - Address + // see https://github.com/nuysoft/Mock/wiki/Address + interface MockjsRandomAddress { + // Random.region + region(): S; + + // Random.province + province(): S; + + // Random.city + city(prefix?: B): S; + + // Random.county + country(prefix?: B): S; + + // Random.zip + zip(prefix?: B): S; + } + + // Mockjs.Random - Helper + // see https://github.com/nuysoft/Mock/wiki/Helper + interface MockjsRandomHelper { + // Random.capitalize + capitalize(word: S): S; + + // Random.upper + upper(str: S): S; + + // Random.lower + lower(str: S): S; + + // Random.pick + pick(arr: any[]): any; + + // Random.shuffle + shuffle(arr: any[]): any[]; + } + + // Mockjs.Random - Miscellaneous + // see https://github.com/nuysoft/Mock/wiki/Miscellaneous + interface MockjsRandomMiscellaneous { + // Random.guid + guid(): S; + + // Random.id + id(): S; + + // Random.increment + increment(step?: N): N; + } + + // Mockjs.Random + // see https://github.com/nuysoft/Mock/wiki/Mock.Random + interface MockjsRandom extends MockjsRandomBasic, MockjsRandomDate, + MockjsRandomImage, MockjsRandomColor, MockjsRandomAddress, + MockjsRandomHelper, MockjsRandomMiscellaneous, MockjsRandomName, + MockjsRandomText, MockjsRandomWeb { } + + interface MockjsValidRsItem { + action: S; + actual: S; + expected: S; + message: S; + path: S[]; + type: S; + } + + // Mockjs.valid() + // see https://github.com/nuysoft/Mock/wiki/Mock.valid() + type MockjsValid = (template: any, data: any) => MockjsValidRsItem[]; + + interface MockjsToJSONSchemaRs { + name: S | undefined; + template: any; + type: S; + rule: object; + path: S[]; + properties?: MockjsToJSONSchemaRs[]; + items?: MockjsToJSONSchemaRs[]; + } + + // Mockjs.toJSONSchema() + // see https://github.com/nuysoft/Mock/wiki/Mock.toJSONSchema() + type MockjsToJSONSchema = (template: any) => MockjsToJSONSchemaRs; + + let mock: MockjsMock; + let setup: MockjsSetup; + let Random: MockjsRandom; + let valid: MockjsValid; + let toJSONSchema: MockjsToJSONSchema; + let version: number; +} + +export = mockjs; diff --git a/types/mockjs/mockjs-tests.ts b/types/mockjs/mockjs-tests.ts new file mode 100644 index 0000000000..dd8b876087 --- /dev/null +++ b/types/mockjs/mockjs-tests.ts @@ -0,0 +1,34 @@ +import Mock = require('mockjs'); + +Mock.mock('/test', 'get', { + name: 'mockjs' +}) +.mock('/login', 'post', { + status: 0 +}); +// When request '/test' will response {name: 'mockjs'} +// When request '/login' will response {status: 0} + +const Random = Mock.Random; +console.log(Random.cfirst()); // get one chinese word +console.log(Random.string('hello', 1, 3)); // get 1-3 words from 'hello' +console.log(Random.email()); // get a string like email + +Mock.setup({ + timeout: '100-400' +}); +// When do some request, there were 100-400ms delay until get response + +const template = { + 'age|10-40': 1 +}; + +const data = { + age: 30 +}; + +console.log(Mock.valid(template, data)); + +console.log(Mock.toJSONSchema(template)); + +console.log(Mock.version); diff --git a/types/mockjs/tsconfig.json b/types/mockjs/tsconfig.json new file mode 100644 index 0000000000..59b6876702 --- /dev/null +++ b/types/mockjs/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "mockjs-tests.ts" + ] +} \ No newline at end of file diff --git a/types/mockjs/tslint.json b/types/mockjs/tslint.json new file mode 100644 index 0000000000..faeaedf2e5 --- /dev/null +++ b/types/mockjs/tslint.json @@ -0,0 +1,8 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false, + "export-just-namespace": false, + "no-bad-reference": true + } +} \ No newline at end of file diff --git a/types/moment-timezone/index.d.ts b/types/moment-timezone/index.d.ts index 49c068a211..a839b093c4 100644 --- a/types/moment-timezone/index.d.ts +++ b/types/moment-timezone/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for moment-timezone.js 0.2 +// Type definitions for moment-timezone.js 0.5 // Project: http://momentjs.com/timezone/ // Definitions by: Michel Salib <https://github.com/michelsalib> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -14,6 +14,7 @@ declare module "moment" { abbrs: string[]; untils: number[]; offsets: number[]; + population: number; abbr(timestamp: number): string; offset(timestamp: number): number; diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index 04e38d90f6..b53fd829ba 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -506,9 +506,9 @@ export interface Collection<TSchema = Default> { /** @deprecated */ find<T = TSchema>(query: Object, fields?: Object, skip?: number, limit?: number, timeout?: number): Cursor<T>; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOne - findOne<T = TSchema>(filter: Object, callback: MongoCallback<T>): void; - findOne<T = TSchema>(filter: Object, options?: FindOneOptions): Promise<T>; - findOne<T = TSchema>(filter: Object, options: FindOneOptions, callback: MongoCallback<T>): void; + findOne<T = TSchema>(filter: Object, callback: MongoCallback<T | null>): void; + findOne<T = TSchema>(filter: Object, options?: FindOneOptions): Promise<T | null>; + findOne<T = TSchema>(filter: Object, options: FindOneOptions, callback: MongoCallback<T | null>): void; //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndDelete findOneAndDelete(filter: Object, callback: MongoCallback<FindAndModifyWriteOpResultObject<TSchema>>): void; findOneAndDelete(filter: Object, options?: { projection?: Object, sort?: Object, maxTimeMS?: number }): Promise<FindAndModifyWriteOpResultObject<TSchema>>; diff --git a/types/mongoose-simple-random/index.d.ts b/types/mongoose-simple-random/index.d.ts index 679ba1fbee..fb8edd3500 100644 --- a/types/mongoose-simple-random/index.d.ts +++ b/types/mongoose-simple-random/index.d.ts @@ -1,17 +1,12 @@ // Type definitions for mongoose-simple-random 0.4 // Project: https://github.com/larryprice/mongoose-simple-random -// Definitions by: My Self <https://github.com/me> +// Definitions by: Roberts Slisans <https://github.com/rsxdalv> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module 'mongoose-simple-random' { - import mongoose = require('mongoose'); - // Dummy function allows to avoid hard to kill or fix tslint warning - // (exporting pluginFunc will make this a non-importable module) - function pluginFunc(schema: mongoose.Schema): void; - // Let allows typescript to still use ES2015 style imports - let plugin: typeof pluginFunc; - export = plugin; -} +import mongoose = require('mongoose'); +declare function pluginFunc(schema: mongoose.Schema): void; +declare namespace pluginFunc {} +export = pluginFunc; declare module "mongoose" { interface Model<T extends Document> extends NodeJS.EventEmitter, ModelProperties { diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index 9cb4d6a7f7..cd7bb438d4 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -99,7 +99,7 @@ declare module "mongoose" { export var SchemaTypes: typeof Schema.Types; /** Expose connection states for user-land */ - export var STATES: Object + export var STATES: Object; /** The default connection of the mongoose module. */ export var connection: Connection; /** The node-mongodb-native driver Mongoose uses. */ @@ -628,7 +628,7 @@ declare module "mongoose" { /** * Defines a pre hook for the document. */ - pre(method: string, parallel: boolean, fn: (next: (err?: NativeError) => void, done: () => void) => void, + pre(method: string, parallel: boolean, fn: (next: (err?: NativeError) => void, done: (err?: NativeError) => void) => void, errorCb?: (err: Error) => void): this; pre(method: string, fn: (next: (err?: NativeError) => void) => void, errorCb?: (err: Error) => void): this; @@ -1307,7 +1307,7 @@ declare module "mongoose" { // constructor exposes static methods of mongodb.ObjectID and ObjectId(id) type ObjectIdConstructor = typeof mongodb.ObjectID & { (s?: string | number): mongodb.ObjectID; - } + }; // var objectId: mongoose.Types.ObjectId should reference mongodb.ObjectID not // the ObjectIdConstructor, so we add the interface below @@ -2198,7 +2198,7 @@ declare module "mongoose" { /** Provides promise for aggregate. */ then<TRes>(resolve?: (val: T) => void | TRes | PromiseLike<TRes>, - reject?: (err: any) => void | TRes | PromiseLike<TRes>): Promise<TRes> + reject?: (err: any) => void | TRes | PromiseLike<TRes>): Promise<TRes>; /** * Appends new custom $unwind operator(s) to this aggregate pipeline. @@ -2660,6 +2660,15 @@ declare module "mongoose" { sort?: Object; /** sets the document fields to return */ select?: Object; + /** if true, passes the raw result from the MongoDB driver as the third callback parameter */ + passRawResult?: boolean; + /** overwrites the schema's strict mode option for this update */ + strict?: boolean; + /** + * if true, run all setters defined on the associated model's schema for all fields + * defined in the query and the update. + */ + runSettersOnQuery?: boolean; } interface ModelFindOneAndUpdateOptions extends ModelFindByIdAndUpdateOptions { @@ -2683,7 +2692,7 @@ declare module "mongoose" { /** optional query options like sort, limit, etc */ options?: Object; /** deep populate */ - populate?: ModelPopulateOptions | ModelPopulateOptions[] + populate?: ModelPopulateOptions | ModelPopulateOptions[]; } interface ModelUpdateOptions { diff --git a/types/mz/fs.d.ts b/types/mz/fs.d.ts index ff7222acee..decfaa2942 100644 --- a/types/mz/fs.d.ts +++ b/types/mz/fs.d.ts @@ -273,6 +273,30 @@ export function mkdir(path: string | Buffer, callback: (err?: NodeJS.ErrnoExcept */ export function mkdir(path: string | Buffer, mode?: string | number): Promise<void>; +/** + * Creates a unique temporary directory. + * + * @param prefix temp dir prefix + * @param options "$encoding" or {encoding: "$encoding"} + */ +export function mkdtemp(prefix: string, options: string | {encoding: string}, callback: (err: NodeJS.ErrnoException | undefined, folder: string) => void): void + +/** + * Creates a unique temporary directory. + * + * @param prefix temp dir prefix + * @param options "$encoding" or {encoding: "$encoding"} + */ +export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException | undefined, folder: string) => void): void; + +/** + * Creates a unique temporary directory. + * + * @param prefix temp dir prefix + * @param options "$encoding" or {encoding: "$encoding"} + */ +export function mkdtemp(prefix: string, options: string | {encoding: string}): Promise<string> + /** * Asynchronous `readdir(3)`. * diff --git a/types/nano/index.d.ts b/types/nano/index.d.ts index 45e70ee70e..96e7253f4b 100644 --- a/types/nano/index.d.ts +++ b/types/nano/index.d.ts @@ -16,6 +16,7 @@ declare function nano( declare namespace nano { interface Configuration { url: string; + cookie?: string; requestDefaults?: CoreOptions; log?(id: string, args: any): void; parseUrl?: boolean; diff --git a/types/nano/nano-tests.ts b/types/nano/nano-tests.ts index 7d53b38814..2e44fd3872 100644 --- a/types/nano/nano-tests.ts +++ b/types/nano/nano-tests.ts @@ -6,6 +6,7 @@ import * as nano from "nano"; */ const config: nano.Configuration = { url: "http://localhost:5984/foo", + cookie: "someAuthSession", requestDefaults: { proxy: "http://someproxy" } }; diff --git a/types/needle/index.d.ts b/types/needle/index.d.ts index cc3fa4ff32..b9c07b320b 100644 --- a/types/needle/index.d.ts +++ b/types/needle/index.d.ts @@ -15,6 +15,7 @@ declare namespace core { body: any; raw: Buffer; bytes: number; + cookies?: Cookies; } type ReadableStream = NodeJS.ReadableStream; @@ -42,7 +43,7 @@ declare namespace core { /** * Alias for open_timeout */ - timeout?: number; + timeout?: RequestOptions['open_timeout']; /** * Returns error if data transfer takes longer than X milisecs, @@ -56,7 +57,7 @@ declare namespace core { /** * Alias for follow_max */ - follow?: number; + follow?: RequestOptions['follow_max']; /** * Enables multipart/form-data encoding. Defaults to false. @@ -155,7 +156,7 @@ declare namespace core { /** * Alias for decode_response */ - decode?: boolean; + decode?: ResponseOptions['decode_response']; /** * Whether to parse XML or JSON response bodies automagically. @@ -163,11 +164,11 @@ declare namespace core { * You can also set this to 'xml' or 'json' in which case Needle * will only parse the response if the content type matches. */ - parse_response?: boolean; + parse_response?: boolean | 'json' | 'xml'; /** * Alias for parse_response */ - parse?: boolean; + parse?: ResponseOptions['parse_response']; /** * Whether to parse response’s Set-Cookie header. diff --git a/types/next/document.d.ts b/types/next/document.d.ts new file mode 100644 index 0000000000..dfb34359e1 --- /dev/null +++ b/types/next/document.d.ts @@ -0,0 +1,15 @@ +import * as React from 'react'; + +export interface DocumentProps { + __NEXT_DATA__?: any; + dev?: boolean; + chunks?: string[]; + head?: Array<React.ReactElement<any>>; + styles?: Array<React.ReactElement<any>>; + [key: string]: any; +} + +export class Head extends React.Component<any> {} +export class Main extends React.Component {} +export class NextScript extends React.Component {} +export default class extends React.Component<DocumentProps> {} diff --git a/types/next/dynamic.d.ts b/types/next/dynamic.d.ts new file mode 100644 index 0000000000..4271f89c96 --- /dev/null +++ b/types/next/dynamic.d.ts @@ -0,0 +1,16 @@ +import * as React from 'react'; + +export interface DynamicOptions<TCProps, TLProps> { + loading?: React.ComponentType<TLProps>; + ssr?: boolean; + modules?(props: TCProps & TLProps): { [key: string]: Promise<React.ComponentType<any>> }; + render?(props: TCProps & TLProps, modules: { [key: string]: React.ComponentType<any> }): void; +} + +export class SameLoopPromise<T> extends Promise<T> { + constructor(executor: (resolve: (value?: T) => void, reject: (reason?: any) => void) => void); + setResult(value: T): void; + setError(value: any): void; + runIfNeeded(): void; +} +export default function<TCProps, TLProps>(componentPromise: Promise<React.ComponentType<TCProps>>, options?: DynamicOptions<TCProps, TLProps>): React.ComponentType<TCProps & TLProps>; diff --git a/types/next/error.d.ts b/types/next/error.d.ts new file mode 100644 index 0000000000..a6d8695947 --- /dev/null +++ b/types/next/error.d.ts @@ -0,0 +1,2 @@ +import * as React from 'react'; +export default class extends React.Component<{statusCode: number}> {} diff --git a/types/next/head.d.ts b/types/next/head.d.ts new file mode 100644 index 0000000000..fc50b7bcf9 --- /dev/null +++ b/types/next/head.d.ts @@ -0,0 +1,8 @@ +import * as React from 'react'; + +export function defaultHead(): JSX.Element[]; +export default class extends React.Component { + static canUseDOM: boolean; + static peek(): Array<React.ReactElement<any>>; + static rewind(): Array<React.ReactElement<any>>; +} diff --git a/types/next/index.d.ts b/types/next/index.d.ts index c4a4cb9a49..17f3848bca 100644 --- a/types/next/index.d.ts +++ b/types/next/index.d.ts @@ -6,172 +6,59 @@ /// <reference types="node" /> -declare module 'next' { - import * as http from 'http'; - import * as url from 'url'; - - namespace next { - type UrlLike = url.UrlObject | url.Url; - - interface ServerConfig { - // known keys - webpack?: any; - webpackDevMiddleware?: any; - poweredByHeader?: boolean; - distDir?: string; - assetPrefix?: string; - configOrigin?: string; - useFileSystemPublicRoutes?: boolean; - - // and since this is a config, it can take anything else, too. - [key: string]: any; - } - - interface ServerOptions { - dir?: string; - dev?: boolean; - staticMarkup?: boolean; - quiet?: boolean; - conf?: ServerConfig; - } - - interface Server { - handleRequest(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl?: UrlLike): Promise<void>; - getRequestHandler(): (req: http.IncomingMessage, res: http.ServerResponse, parsedUrl?: UrlLike) => Promise<void>; - prepare(): Promise<void>; - close(): Promise<void>; - defineRoutes(): Promise<void>; - start(): Promise<void>; - run(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl: UrlLike): Promise<void>; - - render(req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}, parsedUrl?: UrlLike): Promise<void>; - renderError(err: any, req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}): Promise<void>; - render404(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl: UrlLike): Promise<void>; - renderToHTML(req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}): Promise<string>; - renderErrorToHTML(err: any, req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}): Promise<string>; - - serveStatic(req: http.IncomingMessage, res: http.ServerResponse, path: string): Promise<void>; - isServeableUrl(path: string): boolean; - isInternalUrl(req: http.IncomingMessage): boolean; - readBuildId(): string; - handleBuildId(buildId: string, res: http.ServerResponse): boolean; - getCompilationError(page: string, req: http.IncomingMessage, res: http.ServerResponse): Promise<any>; - handleBuildHash(filename: string, hash: string, res: http.ServerResponse): void; - send404(res: http.ServerResponse): void; - } - } - - function next(options?: next.ServerOptions): next.Server; - export = next; -} - -declare module 'next/error' { - import * as React from 'react'; - export default class extends React.Component<{statusCode: number}, {}> {} -} - -declare module 'next/head' { - import * as React from 'react'; - - function defaultHead(): JSX.Element[]; - export default class extends React.Component<{}, {}> { - static canUseDOM: boolean; - static peek(): Array<React.ReactElement<any>>; - static rewind(): Array<React.ReactElement<any>>; - } -} - -declare module 'next/document' { - import * as React from 'react'; - - interface DocumentProps { - __NEXT_DATA__?: any; - dev?: boolean; - chunks?: string[]; - head?: Array<React.ReactElement<any>>; - styles?: Array<React.ReactElement<any>>; - [key: string]: any; - } - - class Head extends React.Component<any, {}> {} - class Main extends React.Component<{}, {}> {} - class NextScript extends React.Component<{}, {}> {} - export default class extends React.Component<DocumentProps, {}> {} -} - -declare module 'next/link' { - import * as url from 'url'; - import * as React from 'react'; +import * as http from 'http'; +import * as url from 'url'; +declare namespace next { type UrlLike = url.UrlObject | url.Url; - interface LinkState { - prefetch?: boolean; - shallow?: boolean; - scroll?: boolean; - replace?: boolean; - onError?(error: any): void; - href?: string | UrlLike; - as?: string | UrlLike; - children: React.ReactElement<any>; - } - export default class extends React.Component<LinkState, {}> {} -} + interface ServerConfig { + // known keys + webpack?: any; + webpackDevMiddleware?: any; + poweredByHeader?: boolean; + distDir?: string; + assetPrefix?: string; + configOrigin?: string; + useFileSystemPublicRoutes?: boolean; -declare module 'next/dynamic' { - import * as React from 'react'; - - interface DynamicOptions<TCProps, TLProps> { - loading?: React.ComponentType<TLProps>; - ssr?: boolean; - modules?(props: TCProps & TLProps): { [key: string]: Promise<React.ComponentType<any>> }; - render?(props: TCProps & TLProps, modules: { [key: string]: React.ComponentType<any> }): void; - } - - class SameLoopPromise<T> extends Promise<T> { - constructor(executor: (resolve: (value?: T) => void, reject: (reason?: any) => void) => void); - setResult(value: T): void; - setError(value: any): void; - runIfNeeded(): void; - } - export default function<TCProps, TLProps>(componentPromise: Promise<React.ComponentType<TCProps>>, options?: DynamicOptions<TCProps, TLProps>): React.ComponentType<TCProps & TLProps>; -} - -declare module 'next/router' { - import * as React from 'react'; - - interface EventChangeOptions { - shallow?: boolean; + // and since this is a config, it can take anything else, too. [key: string]: any; } - type RouterCallback = () => void; - interface SingletonRouter { - readyCallbacks: RouterCallback[]; - ready(cb: RouterCallback): void; - - // router properties - readonly components: { [key: string]: { Component: React.ComponentType<any>, err: any } }; - readonly pathname: string; - readonly route: string; - readonly asPath?: string; - readonly query?: { [key: string]: any }; - - // router methods - reload(route: string): Promise<void>; - back(): void; - push(url: string, as?: string, options?: EventChangeOptions): Promise<boolean>; - replace(url: string, as?: string, options?: EventChangeOptions): Promise<boolean>; - prefetch(url: string): Promise<React.ComponentType<any>>; - - // router events - onAppUpdated?(nextRoute: string): void; - onRouteChangeStart?(url: string): void; - onBeforeHistoryChange?(as: string): void; - onRouteChangeComplete?(url: string): void; - onRouteChangeError?(error: any, url: string): void; + interface ServerOptions { + dir?: string; + dev?: boolean; + staticMarkup?: boolean; + quiet?: boolean; + conf?: ServerConfig; } - const Singleton: SingletonRouter; - export default Singleton; + interface Server { + handleRequest(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl?: UrlLike): Promise<void>; + getRequestHandler(): (req: http.IncomingMessage, res: http.ServerResponse, parsedUrl?: UrlLike) => Promise<void>; + prepare(): Promise<void>; + close(): Promise<void>; + defineRoutes(): Promise<void>; + start(): Promise<void>; + run(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl: UrlLike): Promise<void>; + + render(req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}, parsedUrl?: UrlLike): Promise<void>; + renderError(err: any, req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}): Promise<void>; + render404(req: http.IncomingMessage, res: http.ServerResponse, parsedUrl: UrlLike): Promise<void>; + renderToHTML(req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}): Promise<string>; + renderErrorToHTML(err: any, req: http.IncomingMessage, res: http.ServerResponse, pathname: string, query?: {[key: string]: any}): Promise<string>; + + serveStatic(req: http.IncomingMessage, res: http.ServerResponse, path: string): Promise<void>; + isServeableUrl(path: string): boolean; + isInternalUrl(req: http.IncomingMessage): boolean; + readBuildId(): string; + handleBuildId(buildId: string, res: http.ServerResponse): boolean; + getCompilationError(page: string, req: http.IncomingMessage, res: http.ServerResponse): Promise<any>; + handleBuildHash(filename: string, hash: string, res: http.ServerResponse): void; + send404(res: http.ServerResponse): void; + } } + +declare function next(options?: next.ServerOptions): next.Server; +export = next; diff --git a/types/next/link.d.ts b/types/next/link.d.ts new file mode 100644 index 0000000000..aca3190f7e --- /dev/null +++ b/types/next/link.d.ts @@ -0,0 +1,16 @@ +import * as url from 'url'; +import * as React from 'react'; + +export type UrlLike = url.UrlObject | url.Url; +export interface LinkState { + prefetch?: boolean; + shallow?: boolean; + scroll?: boolean; + replace?: boolean; + onError?(error: any): void; + href?: string | UrlLike; + as?: string | UrlLike; + children: React.ReactElement<any>; +} + +export default class extends React.Component<LinkState> {} diff --git a/types/next/router.d.ts b/types/next/router.d.ts new file mode 100644 index 0000000000..021b0dd3dc --- /dev/null +++ b/types/next/router.d.ts @@ -0,0 +1,36 @@ +import * as React from 'react'; + +export interface EventChangeOptions { + shallow?: boolean; + [key: string]: any; +} + +export type RouterCallback = () => void; +export interface SingletonRouter { + readyCallbacks: RouterCallback[]; + ready(cb: RouterCallback): void; + + // router properties + readonly components: { [key: string]: { Component: React.ComponentType<any>, err: any } }; + readonly pathname: string; + readonly route: string; + readonly asPath?: string; + readonly query?: { [key: string]: any }; + + // router methods + reload(route: string): Promise<void>; + back(): void; + push(url: string, as?: string, options?: EventChangeOptions): Promise<boolean>; + replace(url: string, as?: string, options?: EventChangeOptions): Promise<boolean>; + prefetch(url: string): Promise<React.ComponentType<any>>; + + // router events + onAppUpdated?(nextRoute: string): void; + onRouteChangeStart?(url: string): void; + onBeforeHistoryChange?(as: string): void; + onRouteChangeComplete?(url: string): void; + onRouteChangeError?(error: any, url: string): void; +} + +export const Singleton: SingletonRouter; +export default Singleton; diff --git a/types/next/tsconfig.json b/types/next/tsconfig.json index 4ac2956eb3..26d33efe57 100644 --- a/types/next/tsconfig.json +++ b/types/next/tsconfig.json @@ -19,6 +19,12 @@ }, "files": [ "index.d.ts", + "document.d.ts", + "dynamic.d.ts", + "error.d.ts", + "head.d.ts", + "link.d.ts", + "router.d.ts", "test/next-tests.ts", "test/next-error-tests.tsx", "test/next-head-tests.tsx", diff --git a/types/next/tslint.json b/types/next/tslint.json index f05ee58f96..3db14f85ea 100644 --- a/types/next/tslint.json +++ b/types/next/tslint.json @@ -1,12 +1 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - // TODOs: - "no-duplicate-imports": false, - // All of the different "export default" lines in the index.d.ts - // appear to be triggering this. Remove this when I know of a way - // to declare a default export across multiple package/subpackages. - "strict-export-declare-modifiers": false, - "use-default-type-parameter": false - } -} +{ "extends": "dtslint/dt.json" } diff --git a/types/nightmare/index.d.ts b/types/nightmare/index.d.ts index d40ffbd58c..0796a0f8e1 100644 --- a/types/nightmare/index.d.ts +++ b/types/nightmare/index.d.ts @@ -30,6 +30,8 @@ declare class Nightmare { uncheck(seletor: string): Nightmare; select(seletor: string, option: string): Nightmare; upload(selector: string, path: string): Nightmare; + download(path:string): Nightmare; + download(action: "cancel" | "continue"): Nightmare; scrollTo(top: number, left: number): Nightmare; viewport(width: number, height: number): Nightmare; inject(type: string, file: string): Nightmare; @@ -137,6 +139,11 @@ declare namespace Nightmare { cookiesFile?: string; phantomPath?: string; show?: boolean; + paths?: { + downloads?:string; + }; + maxDownloadRequestWait?:number; + ignoreDownloads?:boolean; typeInterval?: number; x?: number; y?: number; diff --git a/types/nightmare/nightmare-tests.ts b/types/nightmare/nightmare-tests.ts index 434964bb20..eea21ae84c 100644 --- a/types/nightmare/nightmare-tests.ts +++ b/types/nightmare/nightmare-tests.ts @@ -360,3 +360,8 @@ new Nightmare() new Nightmare() .goto('https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select') .select('select[name=select]', 'value3'); + +new Nightmare() + .goto('https://github.com/segmentio/nightmare') + .click('a[href="/segmentio/nightmare/archive/master.zip"]') + .download('/some/other/path/master.zip'); \ No newline at end of file diff --git a/types/noble/index.d.ts b/types/noble/index.d.ts index d62b0609a8..474338d383 100644 --- a/types/noble/index.d.ts +++ b/types/noble/index.d.ts @@ -5,6 +5,7 @@ // Shantanu Bhadoria <https://github.com/shantanubhadoria> // Luke Libraro <https://github.com/lukel99> // Dan Chao <https://github.com/bioball> +// Michal Lower <https://github.com/keton> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> @@ -17,11 +18,19 @@ export declare function startScanning(serviceUUIDs: string[], callback?: (error? export declare function startScanning(serviceUUIDs: string[], allowDuplicates: boolean, callback?: (error?: Error) => void): void; export declare function stopScanning(callback?: () => void): void; -export declare function on(event: string, listener: Function): events.EventEmitter; export declare function on(event: "stateChange", listener: (state: string) => void): events.EventEmitter; export declare function on(event: "scanStart", listener: () => void): events.EventEmitter; export declare function on(event: "scanStop", listener: () => void): events.EventEmitter; export declare function on(event: "discover", listener: (peripheral: Peripheral) => void): events.EventEmitter; +export declare function on(event: string, listener: Function): events.EventEmitter; + +export declare function removeListener(event: "stateChange", listener: (state: string) => void): events.EventEmitter; +export declare function removeListener(event: "scanStart", listener: () => void): events.EventEmitter; +export declare function removeListener(event: "scanStop", listener: () => void): events.EventEmitter; +export declare function removeListener(event: "discover", listener: (peripheral: Peripheral) => void): events.EventEmitter; +export declare function removeListener(event: string, listener: Function): events.EventEmitter; + +export declare var state:string; export declare class Peripheral extends events.EventEmitter { id: string; @@ -45,11 +54,11 @@ export declare class Peripheral extends events.EventEmitter { writeHandle(handle: Buffer, data: Buffer, withoutResponse: boolean, callback: (error: string) => void): void; toString(): string; - on(event: string, listener: Function): this; on(event: "connect", listener: (error: string) => void): this; on(event: "disconnect", listener: (error: string) => void): this; on(event: "rssiUpdate", listener: (rssi: number) => void): this; - on(event: "servicesDiscover", listener: (services: Service[]) => void): this; + on(event: "servicesDiscover", listener: (services: Service[]) => void): this; + on(event: string, listener: Function): this; } export interface Advertisement { @@ -71,9 +80,9 @@ export declare class Service extends events.EventEmitter { discoverCharacteristics(characteristicUUIDs: string[], callback?: (error: string, characteristics: Characteristic[]) => void): void; toString(): string; - on(event: string, listener: Function): this; on(event: "includedServicesDiscover", listener: (includedServiceUuids: string[]) => void): this; - on(event: "characteristicsDiscover", listener: (characteristics: Characteristic[]) => void): this; + on(event: "characteristicsDiscover", listener: (characteristics: Characteristic[]) => void): this; + on(event: string, listener: Function): this; } export declare class Characteristic extends events.EventEmitter { @@ -92,13 +101,13 @@ export declare class Characteristic extends events.EventEmitter { subscribe(callback?: (error: string) => void): void; unsubscribe(callback?: (error: string) => void): void; - on(event: string, listener: Function): this; - on(event: string, option: boolean, listener: Function): this; on(event: "read", listener: (data: Buffer, isNotification: boolean) => void): this; on(event: "write", withoutResponse: boolean, listener: (error: string) => void): this; on(event: "broadcast", listener: (state: string) => void): this; on(event: "notify", listener: (state: string) => void): this; - on(event: "descriptorsDiscover", listener: (descriptors: Descriptor[]) => void): this; + on(event: "descriptorsDiscover", listener: (descriptors: Descriptor[]) => void): this; + on(event: string, listener: Function): this; + on(event: string, option: boolean, listener: Function): this; } export declare class Descriptor extends events.EventEmitter { @@ -110,7 +119,7 @@ export declare class Descriptor extends events.EventEmitter { writeValue(data: Buffer, callback?: (error: string) => void): void; toString(): string; - on(event: string, listener: Function): this; on(event: "valueRead", listener: (error: string, data: Buffer) => void): this; - on(event: "valueWrite", listener: (error: string) => void): this; + on(event: "valueWrite", listener: (error: string) => void): this; + on(event: string, listener: Function): this; } diff --git a/types/noble/noble-tests.ts b/types/noble/noble-tests.ts index c790f2deb0..65e13f4d43 100644 --- a/types/noble/noble-tests.ts +++ b/types/noble/noble-tests.ts @@ -27,6 +27,14 @@ noble.on("discover", (peripheral: noble.Peripheral): void => { peripheral.disconnect((): void => {}); }); +noble.removeListener("stateChange", (state: string): void => {}); +noble.removeListener("scanStart", (): void => {}); +noble.removeListener("scanStop", (): void => {}); +noble.removeListener("discover", (peripheral: noble.Peripheral): void => { + peripheral.connect((error: string): void => {}); + peripheral.disconnect((): void => {}); +}); + var peripheral: noble.Peripheral = new noble.Peripheral(); peripheral.uuid = "12ad4e81"; peripheral.advertisement = { diff --git a/types/node-int64/index.d.ts b/types/node-int64/index.d.ts index a056b55601..038c38ab29 100644 --- a/types/node-int64/index.d.ts +++ b/types/node-int64/index.d.ts @@ -1,25 +1,35 @@ // Type definitions for node-int64 v0.4.0 // Project: https://github.com/broofa/node-int64 // Definitions by: Benno Dreissig <https://github.com/x3cion> +// Kevin Greene <https://github.com/kevin-greene-ck> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> declare class Int64 { - static MAX_INT: number; static MIN_INT: number; + public buffer: Buffer; + public offset: number; + constructor(buffer: Buffer, offset?: number); constructor(array: Uint8Array, offset?: number); constructor(str: string); + constructor(num: number); constructor(hi: number, lo: number); _2scomp(): void; + // setValue(string) - A hexidecimal string setValue(str: string): void; + // setValue(number) - Number (throws if n is outside int64 range) + setValue(num: number): void; + // setValue(hi, lo) - Raw bits as two 32-bit values + setValue(hi: number, lo: number): void; + toNumber(allowImprecise?: boolean): number; valueOf(): number; toString(radix?: number): string; @@ -29,7 +39,6 @@ declare class Int64 { compare(other: Int64): number; equals(other: Int64): boolean; inspect(): string; - } export = Int64; diff --git a/types/node-int64/node-int64-tests.ts b/types/node-int64/node-int64-tests.ts index 3235efa3d8..024cd2746f 100644 --- a/types/node-int64/node-int64-tests.ts +++ b/types/node-int64/node-int64-tests.ts @@ -9,30 +9,39 @@ // So let's create a couple Int64s using the above values ... // Require, of course -let Int64 = require('node-int64'); +import Int64 = require('node-int64'); // x's value is what we expect (the decimal value of 0x123456789) let x = new Int64(0x123456789); //!! [Int64 value:4886718345 octets:00 00 00 01 23 45 67 89] +// We can set the value as a number +let a: Int64 = new Int64(64); + +// We can set the value as two numbers representing raw bits +let b: Int64 = new Int64(73876293, 827235); + // y's value is Infinity because it's outside the range of integer // precision. But that's okay - it's still useful because it's internal // representation (octets) is what we passed in let y = new Int64('123456789abcdef0'); //!! [Int64 value:Infinity octets:12 34 56 78 9a bc de f0] +// Get the underlying Buffer object +let buffer: Buffer = y.buffer; + // Let's do some math. Int64's behave like Numbers. (Sorry, Int64 isn't // for doing 64-bit integer arithmetic (yet) - it's just for carrying // around int64 values -x + 1; +x.toNumber() + 1; //!! 4886718346 -y + 1; +y.toNumber() + 1; //!! Infinity // Int64 string operations ... -'value: ' + x; +'value: ' + x.toString(); //!! 'value: 4886718345' -'value: ' + y; +'value: ' + y.toString(); //!! 'value: Infinity' x.toString(2); //!! '100100011010001010110011110001001' @@ -41,9 +50,9 @@ y.toString(2); // Use JS's isFinite() method to see if the Int64 value is in the // integer-precise range of JS values -isFinite(x); +isFinite(x.toNumber()); //!! true -isFinite(y); +isFinite(y.toNumber()); //!! false // Get an octet string representation. (Yay, y is what we put in!) diff --git a/types/node-ipc/index.d.ts b/types/node-ipc/index.d.ts index 2f33935a86..82e5cfa568 100644 --- a/types/node-ipc/index.d.ts +++ b/types/node-ipc/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for node-ipc 9.0 +// Type definitions for node-ipc 9.1 // Project: http://riaevangelist.github.io/node-ipc/ // Definitions by: Arvitaly <https://github.com/arvitaly> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -260,6 +260,11 @@ declare namespace NodeIPC { * Set the depth for util.inspect during ipc.log */ logDepth: number; + /** + * Default: console.log + * The function which receives the output from ipc.log; should take a single string argument + */ + logger(msg: string): void; /** * Default: 100 * This is the max number of connections allowed to a socket. It is currently only being set on Unix Sockets. @@ -287,6 +292,13 @@ declare namespace NodeIPC { * If set to 0, the client will NOT try to reconnect */ stopRetrying: boolean; + /** + * Default: true + * Defaults to true meaning that the module will take care of deleting the IPC socket prior to startup. + * If you use node-ipc in a clustered environment where there will be multiple listeners on the same socket, + * you must set this to false and then take care of deleting the socket in your own code. + */ + unlink: boolean; /** * Primarily used when specifying which interface a client should connect through. * see the socket.connect documentation in the node.js api https://nodejs.org/api/net.html#net_socket_connect_options_connectlistener diff --git a/types/node-ipc/node-ipc-tests.ts b/types/node-ipc/node-ipc-tests.ts index 69a8ffa46e..9befb80b06 100644 --- a/types/node-ipc/node-ipc-tests.ts +++ b/types/node-ipc/node-ipc-tests.ts @@ -14,6 +14,7 @@ ipc.config.interfaces = { }; ipc.config.logDepth = 6; ipc.config.logInColor = true; +ipc.config.logger = console.log; ipc.config.maxConnections = 200; ipc.config.maxRetries = false; ipc.config.networkHost = "127.0.0.1"; @@ -24,6 +25,7 @@ ipc.config.silent = true; ipc.config.socketRoot = ""; ipc.config.stopRetrying = false; ipc.config.sync = true; +ipc.config.unlink = false; ipc.config.tls = { rejectUnauthorized: false, public: "", diff --git a/types/node-red/index.d.ts b/types/node-red/index.d.ts new file mode 100644 index 0000000000..8b19d451e0 --- /dev/null +++ b/types/node-red/index.d.ts @@ -0,0 +1,206 @@ +// Type definitions for node-red 0.17 +// Project: http://nodered.org +// Definitions by: Anders E. Andersen <https://github.com/andersea> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +/// <reference types="node" /> + +import EventEmitter = require('events'); + +/** + * Node-RED node creation api. + */ +export interface Red { + /** Node lifecycle management api. Used by all nodes. */ + nodes: Nodes; + log: any; + settings: any; + events: any; + util: any; + /** Returns the version of the running Node-RED environment. */ + version(): string; +} + +/** + * Node base type. + * + * See the Nodes interfaces registerType() method for information about + * declaring node constructors in typescript. + * + * The id, type and name properties are available after the + * call to RED.nodes.createNode(). + */ +export interface Node extends EventEmitter, NodeProperties { + updateWires(wires: any): void; + context(): any; + close(removed: any): void; + /** + * Send one or more messages to multiple downstream nodes. + * It is possible to send multiple messages to any + * one node by sending an array to the node instead + * of a single message. + * @param msg - array of messages and/or message bundle arrays. + */ + send(msg: any[]): void; + /** + * Send a message to the downstream node. If msg is null or + * undefined, no message is sent. + * @param msg - optional message to send. + */ + send(msg?: any): void; + /** + * Send a message to this node. + * @param msg - optional message to send. + */ + receive(msg: any): void; + /** + * Log an log-level event. Used for mundane events + * that are part of the normal functioning of the + * node. + * @param msg - message to log. + */ + log(msg: any): void; + /** + * Log a warn-level event. For important events + * that the user should be made aware of. + * @param msg - message to log. + */ + warn(msg: any): void; + /** + * Log an error-level event. To trigger catch nodes on + * the workflow call the function with msg set to the + * original message. + * @param logMessage - description of the error. + * @param msg - optional payload that caused the error. + */ + error(logMessage: any, msg?: any): void; + /** + * Log a debug-level event. Use this is for logging + * internal detail not needed for normal operation. + * @param msg - message to log. + */ + debug(msg: any): void; + /** + * Log a trace-level event. Even more internal details than + * debug-level. + * @param msg - message to log. + */ + trace(msg: any): void; + metric(eventname?: any, msg?: any, metricValue?: any): void; + /** + * Set or clear node status. + * + * For more info see: https://nodered.org/docs/creating-nodes/status + * @param status - the status to set or an empty object to clear the + * node status. + */ + status(status: NodeStatus | ClearNodeStatus): void; +} + +/** + * Contains the user selected property values + * for the node. + * + * This object is also known as the node's definition + * object. + */ +export interface NodeProperties { + /** This node's unique identifier. */ + id: NodeId; + /** The type name for this node. */ + type: NodeType; + /** + * The UI visible name for this node. Many nodes + * allow the user to pick the name and provide + * a fallback name, if they leave it blank. + */ + name: string; +} + +/** Unique node identifier. */ +export type NodeId = string; +/** Node type name. */ +export type NodeType = string; + +/** Node status icon color choices. */ +export type StatusFill = "red" | "green" | "yellow" | "blue" | "grey"; +/** Node status icon shape choices. */ +export type StatusShape = "ring" | "dot"; + +/** + * Object used to set the nodes status flag. + */ +export interface NodeStatus { + /** Selects the icon color. */ + fill: StatusFill; + /** Selects either ring or dot shape. */ + shape: StatusShape; + /** Status label. */ + text: string; +} + +/** Fancy definition that matches an empty object. */ +export interface ClearNodeStatus { + fill?: undefined; + shape?: undefined; + text?: undefined; +} + +export interface Nodes { + /** + * Node constructor functions must call this to + * finish setting up the node. Among other things + * it adds the node credentials, which are stored + * outside the flow. + * + * @param node - the node object under construction. + * @param props - the node's properties object, aka. + * the node instance definition. + */ + createNode(node: Node, props: NodeProperties): void; + /** + * Get a node by NodeID. + * + * If your node uses a configuration + * node, this call is used to get access to the running + * instance. + * @param id - the id of the node. + * @return - the node matching the given id. + */ + getNode(id: NodeId): Node; + eachNode(callback: (node: Node) => any): void; + /** + * Adds a set of credentials for the given node id. + * @param id the node id for the credentials + * @param creds an object of credential key/value pairs + */ + addCredentials(id: NodeId, creds: object): void; + /** + * Gets the credentials for the given node id. + * @param id the node id for the credentials + * @return the credentials + */ + getCredentials(id: NodeId): object; + /** + * Deletes the credentials for the given node id. + * @param id the node id for the credentials + */ + deleteCredentials(id: NodeId): void; + /** + * Registers a node constructor. + * + * Node constructors should be declared as functions with an explicit this + * argument of a type descending from the Node interface. You can extend + * the NodeProperties interface also, to add your node's properties. + * + * Example, using in-line declaration: + * + * RED.nodes.registerType('my-node', function(this: MyNode, props: MyProperties) + * => { RED.nodes.createNode(this, props); ... }, { ... }); + * @param type - the string type name + * @param constructor - the constructor function for this node type + * @param opts - optional additional options for the node + */ + registerType(type: string, constructor: (props: NodeProperties) => any, opts?: any): void; +} diff --git a/types/node-red/node-red-tests.ts b/types/node-red/node-red-tests.ts new file mode 100644 index 0000000000..94031db2fb --- /dev/null +++ b/types/node-red/node-red-tests.ts @@ -0,0 +1,33 @@ +import * as nodered from 'node-red'; + +interface MyFantasticNode extends nodered.Node { + myStrProp: string; + myNmbProp: number; + someResource: any; +} + +interface MyFantasticProps extends nodered.NodeProperties { + config: nodered.NodeId; +} + +export = (RED: nodered.Red) => { + RED.nodes.registerType('my-fantastic-node', function(this: MyFantasticNode, props: MyFantasticProps) { + RED.nodes.createNode(this, props); + const config = RED.nodes.getNode(props.config); + this.log('Something fantastic happened.'); + this.warn('Something exceptional happened.'); + this.error('Something disastrous happened when I tried to process this.', { payload: 'Cookies' }); + this.debug('A behind the scenes look.'); + this.trace('A look behind the scenes, under the floor.'); + this.status({ fill: 'red', shape: 'dot', text: 'status' }); + this.status({}); + this.send({ payload: 'Milk' }); + this.send([[ + { payload: 'FirstMessageFirstNode' }, + { payload: 'SecondMessageFirstNode' }, + ], { payload: "MessageSecondNode" }]); + this.on('close', () => { + this.someResource.close(); + }); + }); +}; diff --git a/types/node-red/tsconfig.json b/types/node-red/tsconfig.json new file mode 100644 index 0000000000..06c4329f93 --- /dev/null +++ b/types/node-red/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "node-red-tests.ts" + ] +} diff --git a/types/node-red/tslint.json b/types/node-red/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/node-red/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 79f75145e8..96c7fd132f 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -679,6 +679,24 @@ declare namespace NodeJS { ref(): void; unref(): void; } + + class Module { + static runMain(): void; + static wrap(code: string): string; + + static Module: typeof Module; + + exports: any; + require: NodeRequireFunction; + id: string; + filename: string; + loaded: boolean; + parent: Module | null; + children: Module[]; + paths: string[]; + + constructor(id: string, parent?: Module); + } } interface IterableIterator<T> { } @@ -1986,7 +2004,10 @@ declare module "child_process" { encoding: BufferEncoding; } export interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions { - encoding: string | null; // specify `null`. + encoding: 'buffer' | null; + } + export interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions { + encoding: string; } export function execFile(file: string): ChildProcess; @@ -1996,19 +2017,20 @@ declare module "child_process" { // no `options` definitely means stdout/stderr are `string`. export function execFile(file: string, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess; + export function execFile(file: string, args: string[] | undefined | null, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess; // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. - export function execFile(file: string, options: { encoding: "buffer" | null } & ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess; - export function execFile(file: string, args: string[] | undefined | null, options: { encoding: "buffer" | null } & ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess; + export function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess; + export function execFile(file: string, args: string[] | undefined | null, options: ExecFileOptionsWithBufferEncoding, callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess; // `options` with well known `encoding` means stdout/stderr are definitely `string`. - export function execFile(file: string, options: { encoding: BufferEncoding } & ExecFileOptions, callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess; - export function execFile(file: string, args: string[] | undefined | null, options: { encoding: BufferEncoding } & ExecFileOptions, callback: (error: Error | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess; + export function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess; + export function execFile(file: string, args: string[] | undefined | null, options: ExecFileOptionsWithStringEncoding, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess; // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`. // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`. - export function execFile(file: string, options: { encoding: string } & ExecFileOptions, callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess; - export function execFile(file: string, args: string[] | undefined | null, options: { encoding: string } & ExecFileOptions, callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess; + export function execFile(file: string, options: ExecFileOptionsWithOtherEncoding, callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess; + export function execFile(file: string, args: string[] | undefined | null, options: ExecFileOptionsWithOtherEncoding, callback: (error: Error | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess; // `options` without an `encoding` means stdout/stderr are definitely `string`. export function execFile(file: string, options: ExecFileOptions, callback: (error: Error | null, stdout: string, stderr: string) => void): ChildProcess; @@ -2021,12 +2043,13 @@ declare module "child_process" { // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. export namespace execFile { export function __promisify__(file: string): Promise<{ stdout: string, stderr: string }>; - export function __promisify__(file: string, options: { encoding: "buffer" | null } & ExecFileOptions): Promise<{ stdout: string, stderr: string }>; - export function __promisify__(file: string, args: string[] | undefined | null, options: { encoding: "buffer" | null } & ExecFileOptions): Promise<{ stdout: string, stderr: string }>; - export function __promisify__(file: string, options: { encoding: BufferEncoding } & ExecFileOptions): Promise<{ stdout: Buffer, stderr: Buffer }>; - export function __promisify__(file: string, args: string[] | undefined | null, options: { encoding: BufferEncoding } & ExecFileOptions): Promise<{ stdout: Buffer, stderr: Buffer }>; - export function __promisify__(file: string, options: { encoding: string } & ExecFileOptions): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>; - export function __promisify__(file: string, args: string[] | undefined | null, options: { encoding: string } & ExecFileOptions): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>; + export function __promisify__(file: string, args: string[] | undefined | null): Promise<{ stdout: string, stderr: string }>; + export function __promisify__(file: string, options: ExecFileOptionsWithBufferEncoding): Promise<{ stdout: Buffer, stderr: Buffer }>; + export function __promisify__(file: string, args: string[] | undefined | null, options: ExecFileOptionsWithBufferEncoding): Promise<{ stdout: Buffer, stderr: Buffer }>; + export function __promisify__(file: string, options: ExecFileOptionsWithStringEncoding): Promise<{ stdout: string, stderr: string }>; + export function __promisify__(file: string, args: string[] | undefined | null, options: ExecFileOptionsWithStringEncoding): Promise<{ stdout: string, stderr: string }>; + export function __promisify__(file: string, options: ExecFileOptionsWithOtherEncoding): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>; + export function __promisify__(file: string, args: string[] | undefined | null, options: ExecFileOptionsWithOtherEncoding): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>; export function __promisify__(file: string, options: ExecFileOptions): Promise<{ stdout: string, stderr: string }>; export function __promisify__(file: string, args: string[] | undefined | null, options: ExecFileOptions): Promise<{ stdout: string, stderr: string }>; export function __promisify__(file: string, options: ({ encoding?: string | null } & ExecFileOptions) | undefined | null): Promise<{ stdout: string | Buffer, stderr: string | Buffer }>; @@ -2173,21 +2196,21 @@ declare module "url" { unicode?: boolean; } - export class URLSearchParams implements Iterable<string[]> { - constructor(init?: URLSearchParams | string | { [key: string]: string | string[] | undefined } | Iterable<string[]>); + export class URLSearchParams implements Iterable<[string, string]> { + constructor(init?: URLSearchParams | string | { [key: string]: string | string[] | undefined } | Iterable<[string, string]> | Array<[string, string]>); append(name: string, value: string): void; delete(name: string): void; - entries(): Iterator<string[]>; + entries(): IterableIterator<[string, string]>; forEach(callback: (value: string, name: string) => void): void; get(name: string): string | null; getAll(name: string): string[]; has(name: string): boolean; - keys(): Iterator<string>; + keys(): IterableIterator<string>; set(name: string, value: string): void; sort(): void; toString(): string; - values(): Iterator<string>; - [Symbol.iterator](): Iterator<string[]>; + values(): IterableIterator<string>; + [Symbol.iterator](): IterableIterator<[string, string]>; } export class URL { @@ -4414,6 +4437,7 @@ declare module "string_decoder" { declare module "tls" { import * as crypto from "crypto"; + import * as dns from "dns"; import * as net from "net"; import * as stream from "stream"; @@ -4708,6 +4732,7 @@ declare module "tls" { secureContext?: Object; session?: Buffer; minDHSize?: number; + lookup?: (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void) => void; } export interface Server extends net.Server { @@ -5620,23 +5645,7 @@ declare module "constants" { } declare module "module" { - class Module implements NodeModule { - static runMain(): void; - static wrap(code: string): string; - - exports: any; - require: NodeRequireFunction; - id: string; - filename: string; - loaded: boolean; - parent: NodeModule | null; - children: NodeModule[]; - paths: string[]; - - constructor(id: string, parent?: Module); - } - - export = Module; + export = NodeJS.Module; } declare module "process" { diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 4786c6cfd9..ca62a4a6c2 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -1708,6 +1708,25 @@ namespace child_process_tests { childProcess.spawnSync("echo test"); } + { + childProcess.execFile("npm", () => {}); + childProcess.execFile("npm", ["-v"], () => {}); + childProcess.execFile("npm", ["-v"], { encoding: 'utf-8' }, (stdout, stderr) => { assert(stdout instanceof String); }); + childProcess.execFile("npm", ["-v"], { encoding: 'buffer' }, (stdout, stderr) => { assert(stdout instanceof Buffer); }); + childProcess.execFile("npm", { encoding: 'utf-8' }, (stdout, stderr) => { assert(stdout instanceof String); }); + childProcess.execFile("npm", { encoding: 'buffer' }, (stdout, stderr) => { assert(stdout instanceof Buffer); }); + } + + async function testPromisify() { + const execFile = util.promisify(childProcess.execFile); + let r: { stdout: string | Buffer, stderr: string | Buffer } = await execFile("npm"); + r = await execFile("npm", ["-v"]); + r = await execFile("npm", ["-v"], { encoding: 'utf-8' }); + r = await execFile("npm", ["-v"], { encoding: 'buffer' }); + r = await execFile("npm", { encoding: 'utf-8' }); + r = await execFile("npm", { encoding: 'buffer' }); + } + { let _cp: childProcess.ChildProcess; let _socket: net.Socket; @@ -2233,8 +2252,8 @@ namespace process_tests { process.once("warning", (warning: Error) => { }); process.prependListener("message", (message: any, sendHandle: any) => { }); process.prependOnceListener("SIGBREAK", () => { }); - process.on("newListener", (event: string, listener: Function) => { }); - process.once("removeListener", (event: string, listener: Function) => { }); + process.on("newListener", (event: string | symbol, listener: Function) => { }); + process.once("removeListener", (event: string | symbol, listener: Function) => { }); const listeners = process.listeners('uncaughtException'); const oldHandler = listeners[listeners.length - 1]; @@ -3447,7 +3466,8 @@ namespace module_tests { require.extensions[".ts"] = () => ""; Module.runMain(); - Module.wrap("some code"); + const s: string = Module.wrap("some code"); - const m1 = new Module("moduleId"); + const m1: Module = new Module("moduleId"); + const m2: Module = new Module.Module("moduleId"); } diff --git a/types/nodegit/push-options.d.ts b/types/nodegit/push-options.d.ts index e9cc6e2dcb..c26b663383 100644 --- a/types/nodegit/push-options.d.ts +++ b/types/nodegit/push-options.d.ts @@ -30,12 +30,12 @@ export interface PushOptions { * @type {Strarray} * @memberof PushOptions */ - customHeaders: Strarray; + customHeaders?: Strarray; /** * * * @type {ProxyOptions} * @memberof PushOptions */ - proxyOpts: ProxyOptions; + proxyOpts?: ProxyOptions; } diff --git a/types/nouislider/index.d.ts b/types/nouislider/index.d.ts index a429681742..4389b87d49 100644 --- a/types/nouislider/index.d.ts +++ b/types/nouislider/index.d.ts @@ -187,7 +187,7 @@ declare namespace noUiSlider { * will also accept arrays. Within an array, you can set one position to null * if you want to leave a handle unchanged. */ - set(value: number | number[]): void; + set(value: number | (number | null)[]): void; /** * To return to the initial slider values, you can use the .reset() method. This will only reset the slider values. */ diff --git a/types/object-map/index.d.ts b/types/object-map/index.d.ts new file mode 100644 index 0000000000..d6d0a0b59b --- /dev/null +++ b/types/object-map/index.d.ts @@ -0,0 +1,12 @@ +// Type definitions for object-map 1.0 +// Project: https://github.com/xixixao/object-map +// Definitions by: Wolfgang Faust <https://github.com/wolfgang42> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function objectMap<TInput, TOutput, TThis>( + target: {[k: string]: TInput}, + callback: (this: TThis, currentValue: TInput, key: string, object: {[k: string]: TInput}) => TOutput, + thisArg?: TThis +): {[k: string]: TOutput}; + +export = objectMap; diff --git a/types/object-map/object-map-tests.ts b/types/object-map/object-map-tests.ts new file mode 100644 index 0000000000..7bceef8c62 --- /dev/null +++ b/types/object-map/object-map-tests.ts @@ -0,0 +1,18 @@ +import objectMap = require('object-map'); + +const obj = {foo: 7, bar: 3, baz: -1}; + +let total = 0; +const keys: string[] = []; +objectMap(obj, (val, key) => { + total += val; + keys.push(key); +}); + +const myThis = { + mul: 2, + count: 0, +}; +objectMap(obj, function(val, key) { + this.count += this.mul * val; +}, myThis); diff --git a/types/object-map/tsconfig.json b/types/object-map/tsconfig.json new file mode 100644 index 0000000000..1282cdab5b --- /dev/null +++ b/types/object-map/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "object-map-tests.ts" + ] +} diff --git a/types/object-map/tslint.json b/types/object-map/tslint.json new file mode 100644 index 0000000000..4e88071852 --- /dev/null +++ b/types/object-map/tslint.json @@ -0,0 +1 @@ +{"extends": "dtslint/dt.json"} diff --git a/types/oniguruma/index.d.ts b/types/oniguruma/index.d.ts new file mode 100644 index 0000000000..4734ae39ee --- /dev/null +++ b/types/oniguruma/index.d.ts @@ -0,0 +1,166 @@ +// Type definitions for oniguruma 7.0 +// Project: http://atom.github.io/node-oniguruma +// Definitions by: smhxx <https://github.com/smhxx> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/** An (error, match) callback function to be invoked after an asynchronous + * search operation is completed. The type of T varies slightly based on the + * method being called. + */ +export type Callback<T> = (error: Error, match: T) => void; + +/** An object representing a range within a search string, corresponding to + * either a full-string match, or a capturing group within a match. + */ +export interface CaptureIndex { + /** The index of the capturing group, or 0 for a full-string match */ + index: number; + /** The position in the search string where the capture begins */ + start: number; + /** The position in the search string where the capture ends */ + end: number; + /** The total character length of the capture */ + length: number; +} + +/** An object representing one successful regex match between a pattern and a + * search string. + */ +export interface Match { + /** The index of the best pattern match */ + index: number; + /** An array holding all of the captures (full match + capturing groups) */ + captureIndices: CaptureIndex[]; +} + +/** An object representing a single regex pattern, which can be used to + * interrogate strings for matches against that pattern. + */ +export class OnigRegExp { + /** Create a new regex with the given pattern + * @param pattern A string pattern + */ + constructor(pattern: string); + + /** The regex pattern that the OnigRegExp matches against */ + readonly source: string; + /** The OnigScanner instance used internally for regex matching */ + readonly scanner: OnigScanner; + + /** Augment the capture indices for the given Match object by extracting + * the substrings associated with each capture, assinging them to the + * CaptureIndex object's 'match' property + * @param string The search string from which 'match' resulted + * @param match The Match object containing the matches of the search + * @return An array of CaptureIndex objects which have been augmented with + * the original text that triggered the match + */ + captureIndicesForMatch(string: any, match: Match): + Array<CaptureIndex & { match: string }>; + /** Search the string for a match starting at the given position. + * @param string The string to search. + * @param startPosition The optional position to start at, defaults to 0 + * @param callback The (error, match) function to call when done. Match will + * be null if no matches were found. Otherwise, match will be an + * array of objects for each matched group. + */ + search(string: string, startPosition: number, + callback: Callback<CaptureIndex[] | null>): void; + /** Search the string for a match starting at the beginning of the string. + * @param string The string to search. + * @param callback The (error, match) function to call when done. Match will + * be null if no matches were found. Otherwise, match will be an + * array of objects for each matched group. + */ + search(string: string, + callback: Callback<CaptureIndex[] | null>): void; + /** Synchronously search the string for a match starting at the given + * position. + * @param string The string to search. + * @param startPosition The optional position to start at, defaults to 0 + * @return An array of objects representing each matched group, or null if + * there were no matches. + */ + searchSync(string: string, startPosition?: number): CaptureIndex[] | null; + /** Test if this regular expression matches the given string. + * @param string The string to test against. + * @param callback The (error, matches) function to call when done. Matches + * will be true if at least one match was found, or false otherwise. + */ + test(sring: string, callback: Callback<boolean>): void; + /** Synchronously test if this regular expression matches the given string. + * @param string The string to test against. + * @return True if there is at least one match, or false otherwise. + */ + testSync(string: string): boolean; +} + +/** An object representing one OR MORE regex patterns, which can be used to + * interrogate strings for matches against any of the supplied patterns. + */ +export class OnigScanner { + /** Create a new scanner with the given patterns. + * @param patterns An array of string patterns. + */ + constructor(patterns: ReadonlyArray<string>); + + /** Find the next match from a given position + * @param string The string to search + * @param startPosition The optional position to start at, defaults to 0 + * @param callback The (error, match) function to be called when done. Match + * will be null when there is no match. + * @return void + */ + findNextMatch(string: string, startPosition: number, + callback: Callback<Match | null>): void; + /** Find the next match from the beginning of a string + * @param string The string to search + * @param callback The (error, match) function to be called when done. Match + * will be null when there is no match. + * @return void + */ + findNextMatch(string: string, callback: Callback<Match | null>): void; + /** Synchronously find the next match from a given position + * @param string The string to search + * @param startPosition The optional position to start at, defaults to 0 + * @return An object containing details about the match, or null if no match + */ + findNextMatchSync(string: string, startPosition?: number): Match | null; + /** Coerce the provided value into either a string primitive or a wrapped + * OnigString object. + * @param value A value of any type + * @return A string primitive or OnigString object representing 'value' + */ + private convertToString(value: any): string | OnigString; + /** Coerce the provided value into a number + * @param value A value of any type + * @return A number representing 'value' + */ + private convertToNumber(value: any): number; +} + +/** An object class used internally as a wrapper for JavaScript string + * primitives. + */ +export class OnigString { + /** Wrap a string primitive in a new OnigString object + * @param string The string primitive to be wrapped + */ + constructor(string: string); + + /** The character length of the string primitive wrapped by the object */ + readonly length: number; + /** The string primitive wrapped by the object */ + readonly content: string; + + /** Returns a reference the string primitive wrapped by the object + * @return A reference to the wrapped string primitive + */ + toString(): string; + /** Returns a substring of the string primitive wrapped by the object + * @param start The index of the first character to include + * @param end The index before which the substring should end + * @return A new string primitive containing the specified index range + */ + substring(start: number, end: number): string; +} diff --git a/types/oniguruma/oniguruma-tests.ts b/types/oniguruma/oniguruma-tests.ts new file mode 100644 index 0000000000..4aa9a83baf --- /dev/null +++ b/types/oniguruma/oniguruma-tests.ts @@ -0,0 +1,84 @@ +import { + OnigRegExp, + OnigScanner, + OnigString, + CaptureIndex, + Match +} from 'oniguruma'; + +// Test OnigRegExp +let aString: string; +let aBoolean: boolean; +const usPhoneNumber = new OnigRegExp( + '(?:\\+?1[- ]?)?(?:\\([0-9]{3}\\)|[0-9]{3})[- ]?[0-9]{3}[- ]?[0-9]{4}' +); +const phoneBook = '(318) 555-1204, 18004389216, donotreply@blep.gov'; +aString = usPhoneNumber.source; +let result: CaptureIndex[] | null; +result = usPhoneNumber.searchSync(phoneBook, 0); +result = usPhoneNumber.searchSync(phoneBook); +aBoolean = usPhoneNumber.testSync(phoneBook); + +const searchCallback = (err: Error, match: CaptureIndex[] | null) => { + if (match !== null) { + console.log(match.length); + } else if (err) { + throw err; + } +}; +usPhoneNumber.search(phoneBook, searchCallback); +usPhoneNumber.search(phoneBook, 8, searchCallback); + +const testCallback = (err: Error, match: boolean) => { + if (match) { + console.log('It matched! :D'); + } +}; +usPhoneNumber.test(phoneBook, testCallback); + +const foo = usPhoneNumber.captureIndicesForMatch(phoneBook, { + index: 0, + captureIndices: [ + { index: 0, start: 0, end: 15, length: 15 } + ] +}); +for (const index of foo) { + let bar: string; + bar = index.match; + console.log(bar); +} + +// Test OnigScanner +let aMatch: Match; +let scanner: OnigScanner; +scanner = usPhoneNumber.scanner; +scanner = new OnigScanner(['abc', 'def']); +scanner.findNextMatch('dcfedeabcedfdef', (err: Error, match: Match | null) => { + if (match !== null) { + aMatch = match; + } +}); +scanner.findNextMatch('dcfedeabcedfdef', 8, (err: Error, match: Match | null) => { + if (match !== null) { + aMatch = match; + } +}); +let rv = scanner.findNextMatchSync('dcfedeabcedfdef'); +if (rv !== null) { + aMatch = rv; +} +rv = scanner.findNextMatchSync('dcfedeabcedfdef', 8); +if (rv !== null) { + aMatch = rv; +} + +// Test OnigString +const blep = new OnigString('bar'); +let blepLength: number; +blepLength = blep.length; +let blepContent: string; +blepContent = blep.content; +let blepToString: string; +blepToString = blep.toString(); +let blepSubstring: string; +blepSubstring = blep.substring(0, 2); diff --git a/types/oniguruma/tsconfig.json b/types/oniguruma/tsconfig.json new file mode 100644 index 0000000000..3f338cdbab --- /dev/null +++ b/types/oniguruma/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "oniguruma-tests.ts" + ] +} diff --git a/types/oniguruma/tslint.json b/types/oniguruma/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/oniguruma/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/openlayers/index.d.ts b/types/openlayers/index.d.ts index bd3a90a3c9..a41afed59b 100644 --- a/types/openlayers/index.d.ts +++ b/types/openlayers/index.d.ts @@ -1,8 +1,8 @@ // Type definitions for OpenLayers v4.3.0 // Project: http://openlayers.org/ // Definitions by: Olivier Sechet <https://github.com/osechet> -// Guilhem Brouat <https://github.com/ganlhi> // Bin Wang <https://github.com/wb14123> +// Junyoung Clare Jang <https://github.com/ailrun> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Definitions partially generated using tsd-jsdoc (https://github.com/englercj/tsd-jsdoc) @@ -12436,11 +12436,13 @@ declare module olx { /** * @typedef {{className: (string|undefined), * condition: (ol.EventsConditionType|undefined), + * minArea: (number|undefined), * boxEndCondition: (ol.DragBoxEndConditionType|undefined)}} */ interface DragBoxOptions { className?: string; condition?: ol.EventsConditionType; + minArea?: number; boxEndCondition?: ol.DragBoxEndConditionType; } @@ -12749,7 +12751,8 @@ declare module olx { * maxResolution: (number|undefined), * opacity: (number|undefined), * source: (ol.source.Vector|undefined), - * visible: (boolean|undefined)}} + * visible: (boolean|undefined), + * zIndex: (number|undefined)}} */ interface HeatmapOptions { gradient?: string[]; @@ -12763,6 +12766,7 @@ declare module olx { opacity?: number; source: ol.source.Vector; visible?: boolean; + zIndex?: number; } @@ -12773,7 +12777,8 @@ declare module olx { * visible: (boolean|undefined), * extent: (ol.Extent|undefined), * minResolution: (number|undefined), - * maxResolution: (number|undefined)}} + * maxResolution: (number|undefined), + * zIndex: (number|undefined)}} */ interface ImageOptions { opacity?: number; @@ -12783,6 +12788,7 @@ declare module olx { extent?: ol.Extent; minResolution?: number; maxResolution?: number; + zIndex?: number; } @@ -12795,7 +12801,8 @@ declare module olx { * extent: (ol.Extent|undefined), * minResolution: (number|undefined), * maxResolution: (number|undefined), - * useInterimTilesOnError: (boolean|undefined)}} + * useInterimTilesOnError: (boolean|undefined), + * zIndex: (number|undefined)}} */ interface TileOptions { opacity?: number; @@ -12807,6 +12814,7 @@ declare module olx { minResolution?: number; maxResolution?: number; useInterimTilesOnError?: boolean; + zIndex?: number; } @@ -12821,7 +12829,8 @@ declare module olx { * style: (ol.style.Style|Array.<ol.style.Style>|ol.StyleFunction|undefined), * updateWhileAnimating: (boolean|undefined), * updateWhileInteracting: (boolean|undefined), - * visible: (boolean|undefined)}} + * visible: (boolean|undefined), + * zIndex: (number|undefined)}} */ interface VectorOptions { renderOrder?: (feature1: ol.Feature, feature2: ol.Feature) => number; @@ -12836,6 +12845,7 @@ declare module olx { updateWhileAnimating?: boolean; updateWhileInteracting?: boolean; visible?: boolean; + zIndex?: number; } @@ -12852,7 +12862,8 @@ declare module olx { * style: (ol.style.Style|Array.<ol.style.Style>|ol.StyleFunction|undefined), * updateWhileAnimating: (boolean|undefined), * updateWhileInteracting: (boolean|undefined), - * visible: (boolean|undefined)}} + * visible: (boolean|undefined), + * zIndex: (number|undefined)}} */ interface VectorTileOptions { renderBuffer?: number; @@ -12868,6 +12879,7 @@ declare module olx { updateWhileAnimating?: boolean; updateWhileInteracting?: boolean; visible?: boolean; + zIndex?: number; } diff --git a/types/openlayers/openlayers-tests.ts b/types/openlayers/openlayers-tests.ts index 78cd6fb556..b341ad6ffd 100644 --- a/types/openlayers/openlayers-tests.ts +++ b/types/openlayers/openlayers-tests.ts @@ -400,11 +400,68 @@ let view: ol.View = new ol.View({ voidValue = view.setMaxZoom(numberValue); voidValue = view.setMinZoom(numberValue); +// +// ol.layer.Base +// +let baseLayer: ol.layer.Base = new ol.layer.Base({ + zIndex: 1 +}); + +// +// ol.layer.Group +// +let groupLayer: ol.layer.Group = new ol.layer.Group({ + zIndex: 2 +}); + +// +// ol.layer.Heatmap +// +let heatmapLayer: ol.layer.Heatmap = new ol.layer.Heatmap({ + source: new ol.source.Vector(), + weight: '', + zIndex: 1 +}); + +// +// ol.layer.Image +// +let imageLayer: ol.layer.Image = new ol.layer.Image({ + source: new ol.source.Image({ + projection: '' + }), + zIndex: 1 +}); + +// +// ol.layer.Layer +// +let layerLayer: ol.layer.Layer = new ol.layer.Layer({ + zIndex: 2 +}); + // // ol.layer.Tile // let tileLayer: ol.layer.Tile = new ol.layer.Tile({ - source: new ol.source.OSM() + source: new ol.source.OSM(), + zIndex: 0 +}); + +// +// ol.layer.Vector +// +let vectorLayer: ol.layer.Vector = new ol.layer.Vector({ + source: new ol.source.Vector(), + zIndex: -1 +}); + +// +// ol.layer.VectorTile +// +let vectorTileLayer: ol.layer.VectorTile = new ol.layer.VectorTile({ + renderOrder: () => 1, + zIndex: 2 }); // @@ -695,6 +752,7 @@ draw = new ol.interaction.Draw({ let dragbox: ol.interaction.DragBox = new ol.interaction.DragBox({ className: stringValue, + minArea: 10, condition: ol.events.condition.always, boxEndCondition: function (mapBrowserEvent: ol.MapBrowserEvent, startPixel: ol.Pixel, endPixel: ol.Pixel) { let width: number = endPixel[0] - startPixel[0]; diff --git a/types/opentok/index.d.ts b/types/opentok/index.d.ts index 4667324d2e..85b9794316 100644 --- a/types/opentok/index.d.ts +++ b/types/opentok/index.d.ts @@ -33,6 +33,18 @@ declare module 'opentok' { hasAudio?: boolean; hasVideo?: boolean; outputMode?: OutputMode; + layout?: ArchiveLayoutOptions; + } + + export type ArchiveLayoutOptions = PredefinedArchiveLayoutOptions | CustomArchiveLayoutOptions; + + export interface PredefinedArchiveLayoutOptions { + type: 'bestFit' | 'pip' | 'verticalPresentation' | 'horizontalPresentation'; + } + + export interface CustomArchiveLayoutOptions { + type: 'custom'; + stylesheet: string; } export type MediaMode = 'relayed' | 'routed'; diff --git a/types/opentok/opentok-tests.ts b/types/opentok/opentok-tests.ts index e1df18c6ea..c0f93f333f 100644 --- a/types/opentok/opentok-tests.ts +++ b/types/opentok/opentok-tests.ts @@ -28,6 +28,21 @@ const archiveOptions: OpenTok.ArchiveOptions = { outputMode: 'individual', }; +const archiveCustomLayoutOptions: OpenTok.ArchiveOptions = { + outputMode: 'composed', + layout: { + type: 'custom', + stylesheet: 'derp', + } +}; + +const archivePredefinedLayoutOptions: OpenTok.ArchiveOptions = { + outputMode: 'composed', + layout: { + type: 'pip', + } +}; + client.startArchive('SESSION_ID', archiveOptions, (err: Error, archive: OpenTok.Archive) => { if (err) return console.log(err); console.log(archive.id); diff --git a/types/optics-agent/index.d.ts b/types/optics-agent/index.d.ts index 902e8e8379..83f7817bb9 100644 --- a/types/optics-agent/index.d.ts +++ b/types/optics-agent/index.d.ts @@ -83,12 +83,14 @@ export function middleware(): (req: Request, res: Response, next?: any) => void; export function instrumentHapiServer(server: Server): void; export function context(req: Request): any; -export default { - configureAgent, - instrumentSchema, - koaMiddleware, - middleware, - instrumentHapiServer, - context, - Agent, +declare const defaultExport: { + configureAgent: typeof configureAgent, + instrumentSchema: typeof instrumentSchema, + koaMiddleware: typeof koaMiddleware, + middleware: typeof middleware, + instrumentHapiServer: typeof instrumentHapiServer, + context: typeof context, + Agent: typeof Agent, }; + +export default defaultExport; diff --git a/types/optics-agent/optics-agent-tests.ts b/types/optics-agent/optics-agent-tests.ts index 8ead943b5a..2135c810d4 100644 --- a/types/optics-agent/optics-agent-tests.ts +++ b/types/optics-agent/optics-agent-tests.ts @@ -1,10 +1,12 @@ import OpticsAgent, { configureAgent, instrumentSchema, + koaMiddleware, middleware, instrumentHapiServer, context, Options, + Agent, } from 'optics-agent'; import { GraphQLSchema } from 'graphql'; import * as express from 'express'; @@ -26,17 +28,24 @@ OpticsAgent.configureAgent(configOptions); const expressServer = express(); expressServer.use(OpticsAgent.middleware()); +expressServer.use(middleware()); const hapiServer = new hapi.Server(); OpticsAgent.instrumentHapiServer(hapiServer); +instrumentHapiServer(hapiServer); const koaServer = new KoaServer(); koaServer.use(OpticsAgent.koaMiddleware()); +koaServer.use(koaMiddleware()); declare const req: express.Request; OpticsAgent.context(req); +context(req); -const agent = new OpticsAgent.Agent({ apiKey: '1234' }); +let agent = new OpticsAgent.Agent({ apiKey: '1234' }); declare const schema: GraphQLSchema; agent.instrumentSchema(schema); + +agent = new Agent({ apiKey: '1234' }); +instrumentSchema(schema); diff --git a/types/osrm/index.d.ts b/types/osrm/index.d.ts new file mode 100644 index 0000000000..2bf324bd96 --- /dev/null +++ b/types/osrm/index.d.ts @@ -0,0 +1,587 @@ +// Type definitions for osrm 5.12 +// Project: https://github.com/Project-OSRM/osrm-backend +// Definitions by: Denis Carriere <https://github.com/DenisCarriere> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// <reference types="node" /> + +/** + * The OSRM method is the main constructor for creating an OSRM instance. + * An OSRM instance requires a .osrm network, which is prepared by the OSRM Backend C++ library. + * + * https://github.com/Project-OSRM/node-osrm/blob/master/docs/api.md + */ +declare class OSRM { + constructor(name: string); + /** + * shortest path between given coordinates + */ + route(options: OSRM.RouteOptions, callback: (err: Error, results: OSRM.RouteResults) => void): void; + /** + * returns the nearest street segment for a given coordinate + */ + nearest(options: OSRM.NearestOptions, callback: (err: Error, results: OSRM.NearestResults) => void): void; + + /** + * computes distance tables for given coordinates + */ + table(options: OSRM.TableOptions, callback: (err: Error, results: OSRM.TableResults) => void): void; + /** + * matches given coordinates to the road network + */ + match(options: OSRM.MatchOptions, callback: (err: Error, results: OSRM.MatchResults) => void): void; + /** + * Compute the shortest trip between given coordinates + */ + trip(options: OSRM.TripOptions, callback: (err: Error, results: OSRM.TripResults) => void): void; + /** + * Return vector tiles containing debugging info + */ + tile(options: OSRM.TileOptions | OSRM.Tile, callback: (err: Error, results: Buffer) => void): void; +} + +declare namespace OSRM { + const version: number; + type GeometriesTypes = 'polyline' | 'geojson' | 'polyline6'; + type OverviewTypes = 'full' | 'simplified' | 'false'; + type Coordinate = number[]; + type Polyline = string; + type Bearing = number[]; + type Radius = number; + type Hint = string; + type Duration = number; + type Tile = [number, number, number]; + type StepManeuverTypes = 'turn' | 'new name' | 'depart' | 'arrive' | 'merge' | + 'ramp' | 'on ramp' | 'off ramp' | 'fork' | 'end of road' | + 'use lane' | 'continue' | 'roundabout' | 'rotary' | 'roundabout turn' | + 'notification' | 'exit roundabout' | 'exit rotary'; + type Indication = 'uturn' | 'sharp right' | 'right' | 'slight rigth' | + 'straight' |'slight left' | 'left' | 'sharp left'; + + interface LineString { + type: 'LineString'; + coordinates: Coordinate[]; + } + + interface Waypoint { + hint: string; + distance: number; + name: string; + location: Coordinate; + } + + /** + * Annotation of the whole route leg with fine-grained information about each segment or node id. + * + * https://github.com/Project-OSRM/osrm-backend/blob/master/docs/http.md#annotation-object + */ + interface Annotation { + /** + * The distance, in metres, between each pair of coordinates + */ + distance: number[]; + /** + * The duration between each pair of coordinates, in seconds. Does not include the duration of any turns. + */ + duration: number[]; + /** + * The index of the datasource for the speed between each pair of coordinates. 0 is the default profile, other values are supplied via --segment-speed-file to osrm-contract + */ + datasources: number[]; + /** + * The OSM node ID for each coordinate along the route, excluding the first/last user-supplied coordinates + */ + nodes: number[]; + /** + * The weights between each pair of coordinates. Does not include any turn costs. + */ + weight: number[]; + /** + * Convenience field, calculation of distance / duration rounded to one decimal place + */ + speed: number[]; + } + + /** + * Represents a route between two waypoints. + * + * https://github.com/Project-OSRM/osrm-backend/blob/master/docs/http.md#routeleg-object + */ + interface RouteLeg { + /** + * The distance traveled by this route leg, in float meters. + */ + distance: number; + /** + * The estimated travel time, in float number of seconds. + */ + duration: number; + /** + * The calculated weight of the route leg. + */ + weight: number; + /** + * Summary of the route taken as string. Depends on the summary parameter: + * - true: Names of the two major roads used. Can be empty if route is too short. + * - false: empty string + */ + summary: string; + /** + * Depends on the steps parameter. + * - true: array of RouteStep objects describing the turn-by-turn instructions + * - false: empty array + */ + steps: RouteStep[]; + /** + * Additional details about each coordinate along the route geometry: + * - true: An Annotation object containing node ids, durations distances and + * - false: weights undefined + */ + annotation: Annotation; + } + + /** + * A step consists of a maneuver such as a turn or merge, followed by a distance of travel along a single way to the subsequent step. + * + * https://github.com/Project-OSRM/osrm-backend/blob/master/docs/http.md#routestep-object + */ + interface RouteStep { + /** + * The distance of travel from the maneuver to the subsequent step, in float meters. + */ + distance: number; + /** + * The estimated travel time, in float number of seconds. + */ + duration: number; + /** + * The unsimplified geometry of the route segment, depending on the geometries parameter. + */ + geometry: Polyline | LineString; + /** + * The calculated weight of the step. + */ + weight: number; + /** + * The name of the way along which travel proceeds. + */ + name: string; + /** + * A reference number or code for the way. Optionally included, if ref data is available for the given way. + */ + ref: string; + /** + * The pronunciation hint of the way name. Will be undefined if there is no pronunciation hit. + */ + pronunciation: string; + /** + * The destinations of the way. Will be undefined if there are no destinations. + */ + destinations: string; + /** + * The exit numbers or names of the way. Will be undefined if there are no exit numbers or names. + */ + exits: string; + /** + * A string signifying the mode of transportation. + */ + mode: string; + /** + * A StepManeuver object representing the maneuver. + */ + maneuver: StepManeuver; + /** + * A list of Intersection objects that are passed along the segment, the very first belonging to the StepManeuver + */ + intersections: Intersection[]; + /** + * The name for the rotary. Optionally included, if the step is a rotary and a rotary name is available. + */ + rotary_name: string; + /** + * The pronunciation hint of the rotary name. Optionally included, if the step is a rotary and a rotary pronunciation is available. + */ + rotary_pronunciation: string; + } + + /** + * https://github.com/Project-OSRM/osrm-backend/blob/master/docs/http.md#stepmaneuver-object + */ + interface StepManeuver { + /** + * A [longitude, latitude] pair describing the location of the turn. + */ + location: Coordinate; + /** + * The clockwise angle from true north to the direction of travel immediately before the maneuver. Range 0-359. + */ + bearing_before: number; + /** + * The clockwise angle from true north to the direction of travel immediately after the maneuver. Range 0-359. + */ + bearing_after: number; + /** + * A string indicating the type of maneuver. + * new identifiers might be introduced without API change Types unknown to the client should be handled like the turn type, + * the existence of correct modifier values is guranteed. + */ + type: StepManeuverTypes; + /** + * An optional string indicating the direction change of the maneuver. + */ + modifier: Indication; + } + + /** + * A Lane represents a turn lane at the corresponding turn location. + * + * https://github.com/Project-OSRM/osrm-backend/blob/master/docs/http.md#lane-object + */ + interface Lane { + indications: Indication[]; + valid: boolean; + } + + /** + * An intersection gives a full representation of any cross-way the path passes bay. + * For every step, the very first intersection (intersections[0]) corresponds to the location of the StepManeuver. + * Further intersections are listed for every cross-way until the next turn instruction. + * + * https://github.com/Project-OSRM/osrm-backend/blob/master/docs/http.md#intersection-object + */ + interface Intersection { + /** + * A [longitude, latitude] pair describing the location of the turn. + */ + location: Coordinate; + /** + * A list of bearing values (e.g. [0,90,180,270]) that are available at the intersection. + * The bearings describe all available roads at the intersection. Values are between 0-359 (0=true north) + */ + bearings: number[]; + /** + * An array of strings signifying the classes (as specified in the profile) of the road exiting the intersection. + */ + classes: string[]; + /** + * A list of entry flags, corresponding in a 1:1 relationship to the bearings. + * A value of true indicates that the respective road could be entered on a valid route. + * false indicates that the turn onto the respective road would violate a restriction. + */ + entry: string[]; + /** + * index into bearings/entry array. Used to calculate the bearing just before the turn. + * Namely, the clockwise angle from true north to the direction of travel immediately before the maneuver/passing the intersection. + * Bearings are given relative to the intersection. To get the bearing in the direction of driving, the bearing has to be rotated by a value of 180. + * The value is not supplied for depart maneuvers. + */ + in: number; + /** + * index into the bearings/entry array. Used to extract the bearing just after the turn. + * Namely, The clockwise angle from true north to the direction of travel immediately after the maneuver/passing the intersection. + * The value is not supplied for arrive maneuvers. + */ + out: number; + /** + * Array of Lane objects that denote the available turn lanes at the intersection. + * If no lane information is available for an intersection, the lanes property will not be present. + */ + lanes: Lane; + } + + /** + * Object used to describe waypoint on a route. + * + * https://github.com/Project-OSRM/osrm-backend/blob/master/docs/http.md#waypoint-object + */ + interface Waypoint { + distance: number; + /** + * Name of the street the coordinate snapped to + */ + name: string; + /** + * Array that contains the [longitude, latitude] pair of the snapped coordinate + */ + location: Coordinate; + /** + * Unique internal identifier of the segment (ephemeral, not constant over data updates) + * This can be used on subsequent request to significantly speed up the query and to connect multiple services. + * E.g. you can use the hint value obtained by the nearest query as hint values for route inputs. + */ + hint: string; + } + + /** + * Represents a route through (potentially multiple) waypoints. + * + * https://github.com/Project-OSRM/osrm-backend/blob/master/docs/http.md#route-object + */ + interface Route { + /** + * The distance traveled by the route, in float meters. + */ + distance: number; + /** + * The estimated travel time, in float number of seconds. + */ + duration: number; + /** + * The whole geometry of the route value depending on overview parameter, format depending on the geometries parameter. See RouteStep's geometry property for a parameter documentation. + */ + geometry?: any; + /** + * The calculated weight of the route. + */ + weight: number; + /** + * The name of the weight profile used during extraction phase. + */ + weight_name: string; + /** + * The legs between the given waypoints, an array of RouteLeg objects. + */ + legs: RouteLeg[]; + } + + /** + * Each Waypoint object includes two additional properties, + * + * 1) matchings_index: Index to the Route object in matchings the sub-trace was matched to, + * 2) waypoint_index: Index of the waypoint inside the matched route. + * + * https://github.com/Project-OSRM/node-osrm/blob/master/docs/api.md#match + */ + interface MatchWaypoint extends Waypoint { + matchings_index: number[]; + waypoint_index: number[]; + } + + /** + * matchings is an array of Route objects that assemble the trace. + * Each Route object has an additional confidence property, + * which is the confidence of the matching. + * float value between 0 and 1. 1 is very confident that the matching is correct. + * + * https://github.com/Project-OSRM/node-osrm/blob/master/docs/api.md#match + */ + interface MatchRoute extends Route { + confidence: number; + } + + /** + * Each Waypoint object has the following additional properties, + * + * 1) trips_index: index to trips of the sub-trip the point was matched to, and + * 2) waypoint_index: index of the point in the trip. + * + * https://github.com/Project-OSRM/node-osrm/blob/master/docs/api.md#trip + */ + interface TripWaypoint extends Waypoint { + trips_index: number; + waypoint_index: number; + } + + interface Options { + /** + * The coordinates this request will use. Array with [{lon},{lat}] values, in decimal degrees. + */ + coordinates?: Coordinate[]; + /** + * Limits the search to segments with given bearing in degrees towards true north in clockwise direction. Null or array with [{value},{range}] + */ + bearings?: Bearing[] | null; + /** + * Limits the search to given radius in meters. null or double >= 0 or unlimited (default) + */ + radiuses?: Radius[] | null; + /** + * Hint to derive position in street network. Base64 string + */ + hints?: Hint[]; + /** + * Adds a Hint to the response which can be used in subsequent requests, see hints parameter. + */ + generate_hints?: boolean; + } + + /** + * Returns the fastest route between two or more coordinates while visiting the waypoints in order. + * + * https://github.com/Project-OSRM/node-osrm/blob/master/docs/api.md#route + */ + interface RouteOptions extends Options { + /** + * Search for alternative routes and return as well. Please note that even if an alternative route is requested, a result cannot be guaranteed. (optional, default false) + */ + alternatives?: boolean; + /** + * Return route steps for each route leg. (optional, default false) + */ + steps?: boolean; + /** + * Return annotations for each route leg for duration, nodes, distance, weight, datasources and/or speed. + * Annotations can be false or true (no/full annotations) or an array of strings with duration, nodes, distance, weight, datasources, speed. (optional, default false) + */ + annotations?: boolean | string[]; + /** + * Returned route geometry format (influences overview and per step). Can also be geojson. (optional, default polyline) + */ + geometries?: GeometriesTypes; + /** + * Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all (false). (optional, default simplified) + */ + overview?: OverviewTypes; + /** + * Forces the route to keep going straight at waypoints and don't do a uturn even if it would be faster. Default value depends on the profile. null/true/false + */ + continue_straight?: boolean; + } + + /** + * Snaps a coordinate to the street network and returns the nearest n matches. + * + * Note: coordinates in the general options only supports a single {longitude},{latitude} entry. + * + * https://github.com/Project-OSRM/node-osrm/blob/master/docs/api.md#nearest + */ + interface NearestOptions extends Options { + /** + * Number of nearest segments that should be returned. Must be an integer greater than or equal to 1. (optional, default 1) + */ + number?: number; + } + + /** + * Computes duration tables for the given locations. Allows for both symmetric and asymmetric tables. + * + * https://github.com/Project-OSRM/node-osrm/blob/master/docs/api.md#table + */ + interface TableOptions extends Options { + /** + * to use location with given index as source. Default is to use all. + */ + sources?: number[]; + /** + * to use location with given index as destination. Default is to use all. + */ + destinations?: number[]; + } + + /** + * This generates Mapbox Vector Tiles that can be viewed with a vector-tile capable slippy-map viewer. + * The tiles contain road geometries and metadata that can be used to examine the routing graph. + * The tiles are generated directly from the data in-memory, so are in sync with actual routing results, + * and let you examine which roads are actually routable, and what weights they have applied. + * + * https://github.com/Project-OSRM/node-osrm/blob/master/docs/api.md#tile + */ + interface TileOptions extends Options { + /** + * Array an array consisting of x, y, and z values representing tile coordinates like wiki.openstreetmap.org/wiki/Slippy_map_tilenames + * and are supported by vector tile viewers like Mapbox GL JS. + */ + ZXY?: Tile; + } + + /** + * Map matching matches given GPS points to the road network in the most plausible way. + * Please note the request might result multiple sub-traces. + * Large jumps in the timestamps (>60s) or improbable transitions lead to trace splits if a complete matching could not be found. + * The algorithm might not be able to match all points. Outliers are removed if they can not be matched successfully. + * + * https://github.com/Project-OSRM/node-osrm/blob/master/docs/api.md#tile + */ + interface MatchOptions extends Options { + /** + * Return route steps for each route. (optional, default false) + */ + steps?: boolean; + /** + * Return annotations for each route leg for duration, nodes, distance, weight, datasources and/or speed. + * Annotations can be false or true (no/full annotations) or an array of strings with duration, nodes, distance, weight, datasources, speed. (optional, default false) + */ + annotations?: boolean | string[]; + /** + * Returned route geometry format (influences overview and per step). Can also be geojson. (optional, default polyline) + */ + geometries?: string; + /** + * Add overview geometry either full, simplified according to highest zoom level it could be display on, or not at all (false). (optional, default simplified) + */ + overview?: string; + /** + * Timestamp of the input location (integers, UNIX-like timestamp). + */ + timestamps?: number[]; + /** + * Standard deviation of GPS precision used for map matching. If applicable use GPS accuracy (double >= 0, default 5m). + */ + radiuses?: number[]; + } + + /** + * The trip plugin solves the Traveling Salesman Problem using a greedy heuristic (farthest-insertion algorithm). + * The returned path does not have to be the fastest path, as TSP is NP-hard it is only an approximation. + * Note that all input coordinates have to be connected for the trip service to work. + * + * https://github.com/Project-OSRM/node-osrm/blob/master/docs/api.md#trip + */ + interface TripOptions extends Options { + /** + * Return route is a roundtrip. (optional, default true) + */ + roundtrip?: boolean; + /** + * Return route starts at any coordinate. Can also be first. (optional, default any) + */ + source?: string; + /** + * Return route ends at any coordinate. Can also be last. (optional, default any) + */ + destination?: string; + /** + * Return route steps for each route. (optional, default false) + */ + steps?: boolean; + /** + * Return annotations for each route leg for duration, nodes, distance, weight, datasources and/or speed. + * Annotations can be false or true (no/full annotations) or an array of strings with duration, nodes, distance, weight, datasources, speed. (optional, default false) + */ + annotations?: boolean | string[]; + /** + * Returned route geometry format (influences overview and per step). Can also be geojson. (optional, default polyline) + */ + geometries?: string; + /** + * Add overview geometry either full, simplified (optional, default simplified) + */ + overview?: string; + } + + interface RouteResults { + waypoints: Waypoint[]; + routes: Route[]; + } + + interface NearestResults { + waypoints: Waypoint[]; + } + + interface TableResults { + durations: Duration[][]; + sources: Waypoint[]; + destinations: Waypoint[]; + } + + interface MatchResults { + tracepoints: MatchWaypoint[]; + matchings: MatchRoute[]; + } + + interface TripResults { + waypoints: TripWaypoint[]; + trips: Route[]; + } +} +export = OSRM; diff --git a/types/osrm/osrm-tests.ts b/types/osrm/osrm-tests.ts new file mode 100644 index 0000000000..fd53363dd7 --- /dev/null +++ b/types/osrm/osrm-tests.ts @@ -0,0 +1,63 @@ +import * as fs from 'fs'; +import * as OSRM from 'osrm'; + +// Access to Types from namespace +const tile: OSRM.Tile = [0, 0, 0]; +const overview: OSRM.OverviewTypes = 'full'; + +// Version +OSRM.version; + +// Load Data +const osrm = new OSRM('network.osrm'); + +// Fixtures +const coordinates = [[13.39, 52.54], [13.39, 52.54], [13.39, 52.54]]; +const timestamps = [1424684612, 1424684616, 1424684620]; +const bearings = [[0, 20]]; + +// Route +osrm.route({coordinates}, (err, result) => { + if (err) throw err; + console.log(result.waypoints); // array of Waypoint objects representing all waypoints in order + console.log(result.routes); // array of Route objects ordered by descending recommendation rank +}); + +// Nearest +osrm.nearest({coordinates, number: 3, bearings}, (err, response) => { + console.log(response.waypoints); // array of Waypoint objects +}); + +// Table +osrm.table({coordinates}, (err, response) => { + console.log(response.durations); // array of arrays, matrix in row-major order + console.log(response.sources); // array of Waypoint objects + console.log(response.destinations); // array of Waypoint objects +}); + +// Tile +osrm.tile([0, 0, 0], (err, response) => { + if (err) throw err; + fs.writeFileSync('./tile.vector.pbf', response); // write the buffer to a file +}); + +// Match +osrm.match({coordinates, timestamps}, (err, response) => { + if (err) throw err; + console.log(response.tracepoints); // array of Waypoint objects + console.log(response.matchings); // array of Route objects +}); + +// Trip +osrm.trip({coordinates}, (err, response) => { + if (err) throw err; + console.log(response.waypoints); // array of Waypoint objects + console.log(response.trips); // array of Route objects +}); + +// Round Trip +osrm.trip({coordinates, source: "first", destination: "last", roundtrip: false}, (err, response) => { + if (err) throw err; + console.log(response.waypoints); // array of Waypoint objects + console.log(response.trips); // array of Route objects +}); diff --git a/types/osrm/tsconfig.json b/types/osrm/tsconfig.json new file mode 100644 index 0000000000..75fb168468 --- /dev/null +++ b/types/osrm/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "osrm-tests.ts" + ] +} diff --git a/types/osrm/tslint.json b/types/osrm/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/osrm/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/p-limit/index.d.ts b/types/p-limit/index.d.ts index bab2fa3272..a10fd05e1e 100644 --- a/types/p-limit/index.d.ts +++ b/types/p-limit/index.d.ts @@ -3,6 +3,8 @@ // Definitions by: BendingBender <https://github.com/BendingBender> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +declare namespace pLimit {} + export = pLimit; declare function pLimit<T>(concurrency: number): (fn: () => PromiseLike<T>) => Promise<T>; diff --git a/types/papaparse/index.d.ts b/types/papaparse/index.d.ts index bc1e1645a0..4365ac38ac 100644 --- a/types/papaparse/index.d.ts +++ b/types/papaparse/index.d.ts @@ -1,6 +1,8 @@ // Type definitions for PapaParse v4.1 // Project: https://github.com/mholt/PapaParse -// Definitions by: Pedro Flemming <https://github.com/torpedro>, Rain Shen <https://github.com/rainshen49> +// Definitions by: Pedro Flemming <https://github.com/torpedro> +// Rain Shen <https://github.com/rainshen49> +// João Loff <https://github.com/jfloff> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace PapaParse { @@ -69,7 +71,7 @@ declare namespace PapaParse { preview?: number; // default: 0 encoding?: string; // default: "" worker?: boolean; // default: false - comments?: boolean; // default: false + comments?: boolean | string; // default: false download?: boolean; // default: false skipEmptyLines?: boolean; // default: false fastMode?: boolean; // default: undefined diff --git a/types/passport-oauth2/index.d.ts b/types/passport-oauth2/index.d.ts new file mode 100644 index 0000000000..6be0c6ad44 --- /dev/null +++ b/types/passport-oauth2/index.d.ts @@ -0,0 +1,71 @@ +// Type definitions for passport-oauth2 1.4 +// Project: https://github.com/jaredhanson/passport-oauth2#readme +// Definitions by: Pasi Eronen <https://github.com/pasieronen> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +import { Request } from 'express'; +import { Strategy } from 'passport'; + +declare class OAuth2Strategy implements Strategy { + name: string; + + constructor(options: OAuth2Strategy.StrategyOptions, verify: OAuth2Strategy.VerifyFunction); + constructor(options: OAuth2Strategy.StrategyOptionsWithRequest, verify: OAuth2Strategy.VerifyFunctionWithRequest); + + authenticate(req: Request, options?: any): void; + + userProfile(accessToken: string, done: (err?: Error | null, profile?: any) => void): void; + authorizationParams(options: any): object; + tokenParams(options: any): object; + parseErrorResponse(body: any, status: number): Error | null; +} + +declare namespace OAuth2Strategy { + type VerifyCallback = (err?: Error | null, user?: object, info?: object) => void; + + type VerifyFunction = + ((accessToken: string, refreshToken: string, profile: any, verified: VerifyCallback) => void) | + ((accessToken: string, refreshToken: string, results: any, profile: any, verified: VerifyCallback) => void); + type VerifyFunctionWithRequest = + ((req: Request, accessToken: string, refreshToken: string, profile: any, verified: VerifyCallback) => void) | + ((req: Request, accessToken: string, refreshToken: string, results: any, profile: any, verified: VerifyCallback) => void); + + interface _StrategyOptionsBase { + authorizationURL: string; + tokenURL: string; + clientID: string; + clientSecret: string; + callbackURL: string; + } + interface StrategyOptions extends _StrategyOptionsBase { + passReqToCallback?: false; + } + interface StrategyOptionsWithRequest extends _StrategyOptionsBase { + passReqToCallback: true; + } + + type Strategy = OAuth2Strategy; + const Strategy: typeof OAuth2Strategy; + + class TokenError extends Error { + constructor(message: string | undefined, code: string, uri?: string, status?: number); + code: string; + uri?: string; + status: number; + } + + class AuthorizationError extends Error { + constructor(message: string | undefined, code: string, uri?: string, status?: number); + code: string; + uri?: string; + status: number; + } + + class InternalOAuthError extends Error { + constructor(message: string, err: any); + oauthError: any; + } +} + +export = OAuth2Strategy; diff --git a/types/passport-oauth2/passport-oauth2-tests.ts b/types/passport-oauth2/passport-oauth2-tests.ts new file mode 100644 index 0000000000..23f97c38ea --- /dev/null +++ b/types/passport-oauth2/passport-oauth2-tests.ts @@ -0,0 +1,52 @@ +// tslint:disable-next-line:no-duplicate-imports +import * as OAuth2Strategy from 'passport-oauth2'; +import { Strategy, StrategyOptions, StrategyOptionsWithRequest, VerifyCallback, AuthorizationError, TokenError, InternalOAuthError } from 'passport-oauth2'; +import { Strategy as PassportStrategy } from 'passport'; +import { Request } from 'express'; + +const strategyOptions1: StrategyOptions = { + authorizationURL: 'http://www.example.com/auth', + callbackURL: 'http://www.example.com/callback', + clientID: 'dummy', + clientSecret: 'secret', + tokenURL: 'http://www.example.com/token' +}; + +function verifyFunction1(_accessToken: string, _refreshToken: string, _profile: any, verifyCallback: VerifyCallback) { + verifyCallback(new Error('unimplemented')); +} + +function verifyFunction2(_accessToken: string, _refreshToken: string, _results: any, _profile: any, verifyCallback: VerifyCallback) { + verifyCallback(new Error('unimplemented')); +} + +const strategy1: OAuth2Strategy = new OAuth2Strategy(strategyOptions1, verifyFunction1); + +const strategy2: Strategy = new OAuth2Strategy(strategyOptions1, verifyFunction2); + +function verifyFunction3(_req: Request, _accessToken: string, _refreshToken: string, _profile: any, verifyCallback: VerifyCallback) { + verifyCallback(undefined, {userid: '1'}); +} + +function verifyFunction4(_req: Request, _accessToken: string, _refreshToken: string, _results: any, _profile: any, verifyCallback: VerifyCallback) { + verifyCallback(undefined, {userid: '1'}); +} + +const strategyOptions2: StrategyOptionsWithRequest = { + authorizationURL: 'http://www.example.com/auth', + callbackURL: 'http://www.example.com/callback', + clientID: 'dummy', + clientSecret: 'secret', + tokenURL: 'http://www.example.com/token', + passReqToCallback: true +}; + +const strategy3: PassportStrategy = new OAuth2Strategy(strategyOptions2, verifyFunction3); + +const strategy4: Strategy = new Strategy(strategyOptions2, verifyFunction4); + +const err1 = new AuthorizationError('Description', 'invalid_request', undefined); + +const err2 = new TokenError(undefined, 'invalid_request', undefined); + +const err3 = new InternalOAuthError('Hello', {}); diff --git a/types/passport-oauth2/tsconfig.json b/types/passport-oauth2/tsconfig.json new file mode 100644 index 0000000000..bee4a8416d --- /dev/null +++ b/types/passport-oauth2/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "passport-oauth2-tests.ts" + ] +} diff --git a/types/passport-oauth2/tslint.json b/types/passport-oauth2/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/passport-oauth2/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/pathwatcher/.editorconfig b/types/pathwatcher/.editorconfig new file mode 100644 index 0000000000..2b997514d2 --- /dev/null +++ b/types/pathwatcher/.editorconfig @@ -0,0 +1,3 @@ +[*.ts] +indent_style = tab +indent_size = 2 diff --git a/types/pathwatcher/README.md b/types/pathwatcher/README.md new file mode 100644 index 0000000000..81cacbc752 --- /dev/null +++ b/types/pathwatcher/README.md @@ -0,0 +1,28 @@ +## Path Watcher Node Type Definitions + +TypeScript type definitions for [Path Watcher Node], which is published as "[pathwatcher](https://www.npmjs.com/package/pathwatcher)" on NPM. + +### Usage Notes + +#### Exports + +The two classes exported from this module are: [File](https://github.com/atom/node-pathwatcher/blob/master/src/file.coffee) and [Directory](https://github.com/atom/node-pathwatcher/blob/master/src/directory.coffee). + +```ts +import { File, Directory } from "text-buffer"; +``` + +Additionally, the following functions are exported as well: +```ts +watch(): PathWatcher.PathWatcher; +closeAllWatchers(): void; +getWatchedPaths(): string[]; +``` + +#### The PathWatcher Namespace + +All types used by Path Watcher can be referenced from the PathWatcher namespace. + +```ts +function example(file: PathWatcher.File) {} +``` diff --git a/types/pathwatcher/index.d.ts b/types/pathwatcher/index.d.ts index b1135c384c..cf65fcc2d0 100644 --- a/types/pathwatcher/index.d.ts +++ b/types/pathwatcher/index.d.ts @@ -1,88 +1,242 @@ -// Type definitions for pathwatcher +// Type definitions for pathwatcher 8.x // Project: https://github.com/atom/node-pathwatcher -// Definitions by: vvakame <https://github.com/vvakame> +// Definitions by: GlenCFL <https://github.com/GlenCFL> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 /// <reference types="node" /> +/// <reference types="event-kit" /> -import { EventEmitter } from "events"; -import * as Q from "q"; +import { ReadStream, WriteStream } from "fs"; -export as namespace PathWatcher; +declare global { + namespace PathWatcher { + /** Objects that appear as parameters to callbacks. */ + namespace Events { + interface PathWatchErrorThrown { + /** The error object. */ + error: Error; -export interface IFileStatic { - new (path:string, symlink?:boolean):IFile; + /** Call this function to indicate you have handled the error. + * The error will not be thrown if this function is called. + */ + handle(): void; + } + + interface WatchedFilePathChanged { + event: string; + newFilePath: string; + } + } + + /** The static side to each exported class. Should generally only be used internally. */ + namespace Statics { + /* tslint:disable:no-unnecessary-qualifier */ + /** The static side to the File class. */ + interface File { + /** Configures a new File instance, no files are accessed. */ + new (filePath: string, symlink?: boolean): PathWatcher.File; + } + + /** The static side to the Directory class. */ + interface Directory { + /** Configures a new Directory instance, no files are accessed. */ + new (directoryPath: string, symlink?: boolean): PathWatcher.Directory; + } + /* tslint:enable:no-unnecessary-qualifier */ + } + + /** Represents an individual file that can be watched, read from, and written to. */ + interface File { + // Properties + realPath: string|null; + path: string; + symlink: boolean; + + // Construction + /** Creates the file on disk that corresponds to ::getPath() if no such file + * already exists. + */ + create(): Promise<boolean>; + + // Event Subscription + /** Invoke the given callback when the file's contents change. */ + onDidChange(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback when the file's path changes. */ + onDidRename(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback when the file is deleted. */ + onDidDelete(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback when there is an error with the watch. When + * your callback has been invoked, the file will have unsubscribed from the + * file watches. + */ + onWillThrowWatchError(callback: (errorObject: Events.PathWatchErrorThrown) => + void): EventKit.Disposable; + + // File Metadata + /** Returns a boolean, always true. */ + isFile(): boolean; + + /** Returns a boolean, always false. */ + isDirectory(): boolean; + + /** Returns a boolean indicating whether or not this is a symbolic link. */ + isSymbolicLink(): boolean; + + /** Returns a promise that resolves to a boolean, true if the file exists, + * false otherwise. + */ + exists(): Promise<boolean>; + + /** Returns a boolean, true if the file exists, false otherwise. */ + existsSync(): boolean; + + /** Get the SHA-1 digest of this file. */ + getDigest(): Promise<string>; + + /** Get the SHA-1 digest of this file. */ + getDigestSync(): string; + + /** Sets the file's character set encoding name. */ + setEncoding(encoding: string): void; + + /** Returns the string encoding name for this file (default: "utf8"). */ + getEncoding(): string; + + // Managing Paths + /** Returns the string path for the file. */ + getPath(): string; + + /** Returns this file's completely resolved string path. */ + getRealPathSync(): string; + + /** Returns a promise that resolves to the file's completely resolved + * string path. + */ + getRealPath(): Promise<string>; + + /** Return the string filename without any directory information. */ + getBaseName(): string; + + // Traversing + /** Return the Directory that contains this file. */ + getParent(): Directory; + + // Reading and Writing + /** Reads the contents of the file. */ + read(flushCache?: boolean): Promise<string>; + + /** Returns a stream to read the content of the file. */ + createReadStream(): ReadStream; + + /** Overwrites the file with the given text. */ + write(text: string): Promise<undefined>; + + /** Returns a stream to write content to the file. */ + createWriteStream(): WriteStream; + + /** Overwrites the file with the given text. */ + writeSync(text: string): undefined; + } + + /** Represents a directory on disk that can be watched for changes. */ + interface Directory { + // Properties + realPath: string|null; + path: string; + symlink: boolean; + + // Construction + /** Creates the directory on disk that corresponds to ::getPath() if no such + * directory already exists. + */ + create(mode?: number): Promise<boolean>; + + // Event Subscription + /** Invoke the given callback when the directory's contents change. */ + onDidChange(callback: () => void): EventKit.Disposable; + + // Directory Metadata + /** Returns a boolean, always false. */ + isFile(): boolean; + + /** Returns a roolean, always true. */ + isDirectory(): boolean; + + /** Returns a boolean indicating whether or not this is a symbolic link. */ + isSymbolicLink(): boolean; + + /** Returns a promise that resolves to a boolean, true if the directory\ + * exists, false otherwise. + */ + exists(): Promise<boolean>; + + /** Returns a boolean, true if the directory exists, false otherwise. */ + existsSync(): boolean; + + /** Return a boolean, true if this Directory is the root directory of the + * filesystem, or false if it isn't. + */ + isRoot(): boolean; + + // Managing Paths + /** This may include unfollowed symlinks or relative directory entries. + * Or it may be fully resolved, it depends on what you give it. + */ + getPath(): string; + + /** All relative directory entries are removed and symlinks are resolved to + * their final destination. + */ + getRealPathSync(): string; + + /** Returns the string basename of the directory. */ + getBaseName(): string; + + /** Returns the relative string path to the given path from this directory. */ + relativize(fullPath: string): string; + + // Traversing + /** Traverse to the parent directory. */ + getParent(): Directory; + + /** Traverse within this Directory to a child File. This method doesn't actually + * check to see if the File exists, it just creates the File object. + */ + getFile(filename: string): File; + + /** Traverse within this a Directory to a child Directory. This method doesn't actually + * check to see if the Directory exists, it just creates the Directory object. + */ + getSubdirectory(dirname: string): Directory; + + /** Reads file entries in this directory from disk synchronously. */ + getEntriesSync(): Array<File|Directory>; + + /** Reads file entries in this directory from disk asynchronously. */ + getEntries(callback: (error: Error, entries: Array<File|Directory>) => void): void; + + /** Determines if the given path (real or symbolic) is inside this directory. This + * method does not actually check if the path exists, it just checks if the path + * is under this directory. + */ + contains(pathToCheck: string): boolean; + } + + interface PathWatcher { + onDidChange(callback: (change: Events.WatchedFilePathChanged) => void): EventKit.Disposable; + + close(): void; + } + } } -export interface IFile { - realPath:string; - path:string; - symlink:boolean; - cachedContents:string; - digest:string; - - handleEventSubscriptions():void; - setPath(path:string):void; - getPath():string; - getRealPathSync():string; - getBaseName():string; - write(text:string):void; - readSync(flushCache:boolean):string; - read(flushCache?:boolean): Promise<string>; - // exists():boolean; - existsSync():boolean; - setDigest(contents:string):void; - getDigest():string; - writeFileWithPrivilegeEscalationSync (filePath:string, text:string):void; - handleNativeChangeEvent(eventType:string, eventPath:string):void; - detectResurrectionAfterDelay():void; - detectResurrection():void; - subscribeToNativeChangeEvents():void; - unsubscribeFromNativeChangeEvents():void; -} - -export interface IDirectoryStatic { - new (path:string, symlink?:boolean):IDirectory; -} - -export interface IDirectory { - realPath:string; - path:string; - symlink:boolean; - - getBaseName():string; - getPath():void; - getRealPathSync():string; - contains(pathToCheck:string):boolean; - relativize(fullPath:string):string; - getEntriesSync():any[]; // return type are {File | Directory}[] - getEntries(callback:Function):void; - subscribeToNativeChangeEvents():void; - unsubscribeFromNativeChangeEvents():void; - isPathPrefixOf(prefix:string, fullPath:string):boolean; -} - -export interface IHandleWatcher extends EventEmitter { - onEvent(event:any, filePath:any, oldFilePath:any):any; - start():void; - closeIfNoListener():void; - close():void; -} - -export interface IPathWatcher { - isWatchingParent:boolean; - path:any; - handleWatcher:IHandleWatcher; - - close():void; -} - -export function watch(path:string, callback:Function):IPathWatcher; - -export function closeAllWatchers():void; - -export function getWatchedPaths():string[]; - -export var File: IFileStatic; -export var Directory: IDirectoryStatic; +export let File: PathWatcher.Statics.File; +export let Directory: PathWatcher.Statics.Directory; +export function watch(): PathWatcher.PathWatcher; +export function closeAllWatchers(): void; +export function getWatchedPaths(): string[]; diff --git a/types/pathwatcher/pathwatcher-tests.ts b/types/pathwatcher/pathwatcher-tests.ts index 0e080abbfd..60391ed480 100644 --- a/types/pathwatcher/pathwatcher-tests.ts +++ b/types/pathwatcher/pathwatcher-tests.ts @@ -1,10 +1,109 @@ +import { File, Directory } from "pathwatcher"; +let bool: boolean; +let str: string; +let sub: EventKit.Disposable; -import pathwatcher = require("pathwatcher"); -var File = pathwatcher.File; +let file: PathWatcher.File; +let dir: PathWatcher.Directory; -var filePath: string; -var file = new File(filePath); +// File ======================================================================= +// Construction +file = new File("Test.file"); +new File("Test.file", false); -pathwatcher.watch(filePath, ()=>{ -}); +async function fileCreation() { + bool = await file.create(); +} + +// Event Subscription +sub = file.onDidChange(() => {}); +sub = file.onDidRename(() => {}); +sub = file.onDidDelete(() => {}); +sub = file.onWillThrowWatchError(() => {}); + +// File Metadata +bool = file.isFile(); +bool = file.isDirectory(); +bool = file.isSymbolicLink(); + +async function fileExists() { + bool = await file.exists(); +} + +bool = file.existsSync(); + +async function getFileDigest() { + str = await file.getDigest(); +} + +str = file.getDigestSync(); +file.setEncoding("utf8"); +str = file.getEncoding(); + +// Managing Paths +str = file.getPath(); +str = file.getRealPathSync(); + +async function getFileRealPath() { + str = await file.getRealPath(); +} + +str = file.getBaseName(); + +// Traversing +dir = file.getParent(); + +// Reading and Writing +async function readFile() { + str = await file.read(); +} + +const stream = file.createReadStream(); +stream.close(); + +async function writeFile() { + await file.write("Test"); +} + +file.createWriteStream(); +file.writeSync("Test"); + +// Directory ================================================================== +// Construction +dir = new Directory("Test.file"); +new Directory("Test.file", true); + +async function createDirectory() { + bool = await dir.create(); + bool = await dir.create(0o0777); +} + +// Event Subscription +sub = dir.onDidChange(() => {}); + +// Directory Metadata +bool = dir.isFile(); +bool = dir.isDirectory(); +bool = dir.isSymbolicLink(); + +async function directoryExists() { + bool = await dir.exists(); +} + +bool = dir.existsSync(); +bool = dir.isRoot(); + +// Managing Paths +str = dir.getPath(); +str = dir.getRealPathSync(); +str = dir.getBaseName(); +dir.relativize("Test.file") ; + +// Traversing +dir = dir.getParent(); +file = dir.getFile("Test.file"); +dir = dir.getSubdirectory("Test"); +dir.getEntriesSync(); +dir.getEntries((error, entries) => {}); +bool = dir.contains("Test.file"); diff --git a/types/pathwatcher/tsconfig.json b/types/pathwatcher/tsconfig.json index 00b8e7052f..cd2b999654 100644 --- a/types/pathwatcher/tsconfig.json +++ b/types/pathwatcher/tsconfig.json @@ -6,14 +6,11 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" ], - "paths": { - "q": [ "q/v0" ] - }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true @@ -22,4 +19,4 @@ "index.d.ts", "pathwatcher-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/pathwatcher/tslint.json b/types/pathwatcher/tslint.json new file mode 100644 index 0000000000..cd8f17056a --- /dev/null +++ b/types/pathwatcher/tslint.json @@ -0,0 +1,38 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // Custom rules. + "class-name": true, + "indent": [true, "tabs"], + "jsdoc-format": true, + "linebreak-style": [true, "LF"], + "max-line-length": [true, 100], + "quotemark": [true, "double", "avoid-escape"], + "trailing-comma": [true, { + "multiline": { "objects": "always", "arrays": "always", "functions": "never" }, + "singleline": { "objects": "never", "arrays": "never", "functions": "never" } + }], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-module", + "check-separator", + "check-type", + "check-typecast", + "check-rest-spread", + "check-preblock" + ], + // Soon to be defaults. + "arrow-return-shorthand": [true, "multiline"], + "no-any": true, + "no-floating-promises": true, + "no-unbound-method": true, + "no-unsafe-any": true, + "number-literal-format": true, + "restrict-plus-operands": true, + "return-undefined": true, + "switch-final-break": true + } +} diff --git a/types/pathwatcher/v0/index.d.ts b/types/pathwatcher/v0/index.d.ts new file mode 100644 index 0000000000..b1135c384c --- /dev/null +++ b/types/pathwatcher/v0/index.d.ts @@ -0,0 +1,88 @@ +// Type definitions for pathwatcher +// Project: https://github.com/atom/node-pathwatcher +// Definitions by: vvakame <https://github.com/vvakame> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// <reference types="node" /> + +import { EventEmitter } from "events"; +import * as Q from "q"; + +export as namespace PathWatcher; + +export interface IFileStatic { + new (path:string, symlink?:boolean):IFile; +} + +export interface IFile { + realPath:string; + path:string; + symlink:boolean; + cachedContents:string; + digest:string; + + handleEventSubscriptions():void; + setPath(path:string):void; + getPath():string; + getRealPathSync():string; + getBaseName():string; + write(text:string):void; + readSync(flushCache:boolean):string; + read(flushCache?:boolean): Promise<string>; + // exists():boolean; + existsSync():boolean; + setDigest(contents:string):void; + getDigest():string; + writeFileWithPrivilegeEscalationSync (filePath:string, text:string):void; + handleNativeChangeEvent(eventType:string, eventPath:string):void; + detectResurrectionAfterDelay():void; + detectResurrection():void; + subscribeToNativeChangeEvents():void; + unsubscribeFromNativeChangeEvents():void; +} + +export interface IDirectoryStatic { + new (path:string, symlink?:boolean):IDirectory; +} + +export interface IDirectory { + realPath:string; + path:string; + symlink:boolean; + + getBaseName():string; + getPath():void; + getRealPathSync():string; + contains(pathToCheck:string):boolean; + relativize(fullPath:string):string; + getEntriesSync():any[]; // return type are {File | Directory}[] + getEntries(callback:Function):void; + subscribeToNativeChangeEvents():void; + unsubscribeFromNativeChangeEvents():void; + isPathPrefixOf(prefix:string, fullPath:string):boolean; +} + +export interface IHandleWatcher extends EventEmitter { + onEvent(event:any, filePath:any, oldFilePath:any):any; + start():void; + closeIfNoListener():void; + close():void; +} + +export interface IPathWatcher { + isWatchingParent:boolean; + path:any; + handleWatcher:IHandleWatcher; + + close():void; +} + +export function watch(path:string, callback:Function):IPathWatcher; + +export function closeAllWatchers():void; + +export function getWatchedPaths():string[]; + +export var File: IFileStatic; +export var Directory: IDirectoryStatic; + diff --git a/types/pathwatcher/v0/pathwatcher-tests.ts b/types/pathwatcher/v0/pathwatcher-tests.ts new file mode 100644 index 0000000000..0e080abbfd --- /dev/null +++ b/types/pathwatcher/v0/pathwatcher-tests.ts @@ -0,0 +1,10 @@ + + +import pathwatcher = require("pathwatcher"); +var File = pathwatcher.File; + +var filePath: string; +var file = new File(filePath); + +pathwatcher.watch(filePath, ()=>{ +}); diff --git a/types/pathwatcher/v0/tsconfig.json b/types/pathwatcher/v0/tsconfig.json new file mode 100644 index 0000000000..e6020a4021 --- /dev/null +++ b/types/pathwatcher/v0/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "pathwatcher": [ "pathwatcher/v0" ], + "q": [ "q/v0" ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "pathwatcher-tests.ts" + ] +} diff --git a/types/pdfjs-dist/index.d.ts b/types/pdfjs-dist/index.d.ts index e70a0acb0d..a40c612d5a 100644 --- a/types/pdfjs-dist/index.d.ts +++ b/types/pdfjs-dist/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for PDF.js +// Type definitions for PDF.js v0.1.0 // Project: https://github.com/mozilla/pdf.js // Definitions by: Josh Baldwin <https://github.com/jbaldwin> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -26,456 +26,454 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ - -interface PDFPromise<T> { - isResolved(): boolean; - isRejected(): boolean; - resolve(value: T): void; - reject(reason: string): void; - then<U>(onResolve: (promise: T) => U, onReject?: (reason: string) => void): PDFPromise<U>; -} - -interface PDFTreeNode { - title: string; - bold: boolean; - italic: boolean; - color: number[]; // [r,g,b] - dest: any; - items: PDFTreeNode[]; -} - -interface PDFInfo { - PDFFormatVersion: string; - IsAcroFormPresent: boolean; - IsXFAPresent: boolean; - [key: string]: any; // return type is string, typescript chokes -} - -interface PDFMetadata { - parse(): void; - get(name: string): string; - has(name: string): boolean; -} - -interface PDFSource { - url?: string; - data?: Uint8Array; - httpHeaders?: any; - password?: string; -} - -interface PDFProgressData { - loaded: number; - total: number; -} - -interface PDFDocumentProxy { - - /** - * Total number of pages the PDF contains. - **/ - numPages: number; - - /** - * A unique ID to identify a PDF. Not guaranteed to be unique. [jbaldwin: haha what] - **/ - fingerprint: string; - - /** - * True if embedded document fonts are in use. Will be set during rendering of the pages. - **/ - embeddedFontsUsed(): boolean; - - /** - * @param number The page number to get. The first page is 1. - * @return A promise that is resolved with a PDFPageProxy. - **/ - getPage(number: number): PDFPromise<PDFPageProxy>; - - /** - * TODO: return type of Promise<???> - * A promise that is resolved with a lookup table for mapping named destinations to reference numbers. - **/ - getDestinations(): PDFPromise<any[]>; - - /** - * A promise that is resolved with an array of all the JavaScript strings in the name tree. - **/ - getJavaScript(): PDFPromise<string[]>; - - /** - * A promise that is resolved with an array that is a tree outline (if it has one) of the PDF. @see PDFTreeNode - **/ - getOutline(): PDFPromise<PDFTreeNode[]>; - - /** - * A promise that is resolved with the info and metadata of the PDF. - **/ - getMetadata(): PDFPromise<{ info: PDFInfo; metadata: PDFMetadata }>; - - /** - * Is the PDF encrypted? - **/ - isEncrypted(): PDFPromise<boolean>; - - /** - * A promise that is resolved with Uint8Array that has the raw PDF data. - **/ - getData(): PDFPromise<Uint8Array>; - - /** - * TODO: return type of Promise<???> - * A promise that is resolved when the document's data is loaded. - **/ - dataLoaded(): PDFPromise<any[]>; - - /** - * - **/ - destroy(): void; -} - -interface PDFRef { - num: number; - gen: any; // todo -} - -interface PDFPageViewportOptions { - viewBox: any; - scale: number; - rotation: number; - offsetX: number; - offsetY: number; - dontFlip: boolean; -} - -interface PDFPageViewport { - width: number; - height: number; - fontScale: number; - transforms: number[]; - - clone(options: PDFPageViewportOptions): PDFPageViewport; - convertToViewportPoint(x: number, y: number): number[]; // [x, y] - convertToViewportRectangle(rect: number[]): number[]; // [x1, y1, x2, y2] - convertToPdfPoint(x: number, y: number): number[]; // [x, y] -} - -interface PDFAnnotationData { - subtype: string; - rect: number[]; // [x1, y1, x2, y2] - annotationFlags: any; // todo - color: number[]; // [r,g,b] - borderWidth: number; - hasAppearance: boolean; -} - -interface PDFAnnotations { - getData(): PDFAnnotationData; - hasHtml(): boolean; // always false - getHtmlElement(commonOjbs: any): HTMLElement; // throw new NotImplementedException() - getEmptyContainer(tagName: string, rect: number[]): HTMLElement; // deprecated - isViewable(): boolean; - loadResources(keys: any): PDFPromise<any>; - getOperatorList(evaluator: any): PDFPromise<any>; - // ... todo -} - -interface PDFRenderTextLayer { - beginLayout(): void; - endLayout(): void; - appendText(): void; -} - -interface PDFRenderImageLayer { - beginLayout(): void; - endLayout(): void; - appendImage(): void; -} - -interface PDFRenderParams { - canvasContext: CanvasRenderingContext2D; - viewport?: PDFPageViewport; - textLayer?: PDFRenderTextLayer; - imageLayer?: PDFRenderImageLayer; - continueCallback?: (_continue: () => void) => void; -} - -interface PDFViewerParams { - container: HTMLElement; - viewer?: HTMLElement; -} - -/** - * RenderTask is basically a promise but adds a cancel function to termiate it. - **/ -interface PDFRenderTask extends PDFPromise<PDFPageProxy> { - - /** - * Cancel the rendering task. If the task is currently rendering it will not be cancelled until graphics pauses with a timeout. The promise that this object extends will resolve when cancelled. - **/ - cancel(): void; -} - -interface PDFPageProxy { - - /** - * Page number of the page. First page is 1. - **/ - pageNumber: number; - - /** - * The number of degrees the page is rotated clockwise. - **/ - rotate: number; - - /** - * The reference that points to this page. - **/ - ref: PDFRef; - - /** - * @return An array of the visible portion of the PDF page in the user space units - [x1, y1, x2, y2]. - **/ - view: number[]; - - /** - * @param scale The desired scale of the viewport. - * @param rotate Degrees to rotate the viewport. If omitted this defaults to the page rotation. - * @return - **/ - getViewport(scale: number, rotate?: number): PDFPageViewport; - - /** - * A promise that is resolved with an array of the annotation objects. - **/ - getAnnotations(): PDFPromise<PDFAnnotations>; - - /** - * Begins the process of rendering a page to the desired context. - * @param params Rendering options. - * @return An extended promise that is resolved when the page finishes rendering. - **/ - render(params: PDFRenderParams): PDFRenderTask; - - /** - * A promise that is resolved with the string that is the text content frm the page. - **/ - getTextContent(): PDFPromise<TextContent>; - - /** - * marked as future feature - **/ - //getOperationList(): PDFPromise<>; - - /** - * Destroyes resources allocated by the page. - **/ - destroy(): void; -} - -interface TextContentItem { - str: string; - transform: number[]; // [0..5] 4=x, 5=y - width: number; - height: number; - dir: string; // Left-to-right (ltr), etc - fontName: string; // A lookup into the styles map of the owning TextContent -} - -interface TextContent { - items: TextContentItem[]; - styles: any; -} - -/** - * A PDF document and page is built of many objects. E.g. there are objects for fonts, images, rendering code and such. These objects might get processed inside of a worker. The `PDFObjects` implements some basic functions to manage these objects. - **/ -interface PDFObjects { - get(objId: number, callback?: any): any; - resolve(objId: number, data: any): any; - isResolved(objId: number): boolean; - hasData(objId: number): boolean; - getData(objId: number): any; - clear(): void; -} - -interface PDFJSUtilStatic { - /** - * Normalize rectangle so that (x1,y1) < (x2,y2) - * @param {number[]} rect - the rectangle with [x1,y1,x2,y2] - * - * For coordinate systems whose origin lies in the bottom-left, this - * means normalization to (BL,TR) ordering. For systems with origin in the - * top-left, this means (TL,BR) ordering. - **/ - normalizeRect(rect:number[]): number[]; -} - -interface PDFJSStatic { - - /** - * The maximum allowed image size in total pixels e.g. width * height. Images above this value will not be drawn. Use -1 for no limit. - **/ - maxImageSize: number; - - /** - * The url of where the predefined Adobe CMaps are located. Include trailing - * slash. - */ - cMapUrl: string; - - /** - * Specifies if CMaps are binary packed. - */ - cMapPacked: boolean; - - /** - * By default fonts are converted to OpenType fonts and loaded via font face rules. If disabled, the font will be rendered using a built in font renderer that constructs the glyphs with primitive path commands. - **/ - disableFontFace: boolean; - - /** - * Path for image resources, mainly for annotation icons. Include trailing - * slash. - */ - imageResourcesPath: string; - - /** - * Disable the web worker and run all code on the main thread. This will happen - * automatically if the browser doesn't support workers or sending typed arrays - * to workers. - */ - disableWorker: boolean; - - /** - * Path and filename of the worker file. Required when the worker is enabled in - * development mode. If unspecified in the production build, the worker will be - * loaded based on the location of the pdf.js file. - */ - workerSrc: string; - - /** - * Disable range request loading of PDF files. When enabled and if the server - * supports partial content requests then the PDF will be fetched in chunks. - * Enabled (false) by default. - */ - disableRange: boolean; - - /** - * Disable streaming of PDF file data. By default PDF.js attempts to load PDF - * in chunks. This default behavior can be disabled. - */ - disableStream: boolean; - - /** - * Disable pre-fetching of PDF file data. When range requests are enabled PDF.js - * will automatically keep fetching more data even if it isn't needed to display - * the current page. This default behavior can be disabled. - * - * NOTE: It is also necessary to disable streaming, see above, - * in order for disabling of pre-fetching to work correctly. - */ - disableAutoFetch: boolean; - - /** - * Enables special hooks for debugging PDF.js. - */ - pdfBug: boolean; - - /** - * Enables transfer usage in postMessage for ArrayBuffers. - */ - postMessageTransfers: boolean; - - /** - * Disables URL.createObjectURL usage. - */ - disableCreateObjectURL: boolean; - - /** - * Disables WebGL usage. - */ - disableWebGL: boolean; - - /** - * Disables fullscreen support, and by extension Presentation Mode, - * in browsers which support the fullscreen API. - */ - disableFullscreen: boolean; - - /** - * Enables CSS only zooming. - */ - useOnlyCssZoom: boolean; - - /** - * Controls the logging level. - * The constants from PDFJS.VERBOSITY_LEVELS should be used: - * - errors - * - warnings [default] - * - infos - */ - verbosity: number; - - /** - * The maximum supported canvas size in total pixels e.g. width * height. - * The default value is 4096 * 4096. Use -1 for no limit. - */ - maxCanvasPixels: number; - - /** - * Opens external links in a new window if enabled. The default behavior opens - * external links in the PDF.js window. - */ - openExternalLinksInNewWindow: boolean; - - /** - * Determines if we can eval strings as JS. Primarily used to improve - * performance for font rendering. - */ - isEvalSupported: boolean; - - Util: PDFJSUtilStatic; - - /** - * This is the main entry point for loading a PDF and interacting with it. - * NOTE: If a URL is used to fetch the PDF data a standard XMLHttpRequest(XHR) - * is used, which means it must follow the same origin rules that any XHR does - * e.g. No corss domain requests without CORS. - * @param source - * @param pdfDataRangeTransport Used if you want to manually server range requests for data in the PDF. @ee viewer.js for an example of pdfDataRangeTransport's interface. - * @param passwordCallback Used to request a password if wrong or no password was provided. The callback receives two parameters: function that needs to be called with new password and the reason. - * @param progressCallback Progress callback. - * @return A promise that is resolved with PDFDocumentProxy object. - **/ - getDocument( - source: string, - pdfDataRangeTransport?: any, - passwordCallback?: (fn: (password: string) => void, reason: string) => string, - progressCallback?: (progressData: PDFProgressData) => void) - : PDFPromise<PDFDocumentProxy>; - - getDocument( - source: Uint8Array, - pdfDataRangeTransport?: any, - passwordCallback?: (fn: (password: string) => void, reason: string) => string, - progressCallback?: (progressData: PDFProgressData) => void) - : PDFPromise<PDFDocumentProxy>; - - getDocument( - source: PDFSource, - pdfDataRangeTransport?: any, - passwordCallback?: (fn: (password: string) => void, reason: string) => string, - progressCallback?: (progressData: PDFProgressData) => void) - : PDFPromise<PDFDocumentProxy>; - - PDFViewer(params: PDFViewerParams): void; -} - -declare var PDFJS: PDFJSStatic; - declare module "pdfjs-dist" { - export = PDFJS; + export = PDF; } +declare namespace PDF { + interface PDFPromise<T> { + isResolved(): boolean; + isRejected(): boolean; + resolve(value: T): void; + reject(reason: string): void; + then<U>(onResolve: (promise: T) => U, onReject?: (reason: string) => void): PDFPromise<U>; + } + + interface PDFTreeNode { + title: string; + bold: boolean; + italic: boolean; + color: number[]; // [r,g,b] + dest: any; + items: PDFTreeNode[]; + } + + interface PDFInfo { + PDFFormatVersion: string; + IsAcroFormPresent: boolean; + IsXFAPresent: boolean; + [key: string]: any; // return type is string, typescript chokes + } + + interface PDFMetadata { + parse(): void; + get(name: string): string; + has(name: string): boolean; + } + + interface PDFSource { + url?: string; + data?: Uint8Array; + httpHeaders?: any; + password?: string; + } + + interface PDFProgressData { + loaded: number; + total: number; + } + + interface PDFDocumentProxy { + + /** + * Total number of pages the PDF contains. + **/ + numPages: number; + + /** + * A unique ID to identify a PDF. Not guaranteed to be unique. [jbaldwin: haha what] + **/ + fingerprint: string; + + /** + * True if embedded document fonts are in use. Will be set during rendering of the pages. + **/ + embeddedFontsUsed(): boolean; + + /** + * @param number The page number to get. The first page is 1. + * @return A promise that is resolved with a PDFPageProxy. + **/ + getPage(number: number): PDFPromise<PDFPageProxy>; + + /** + * TODO: return type of Promise<???> + * A promise that is resolved with a lookup table for mapping named destinations to reference numbers. + **/ + getDestinations(): PDFPromise<any[]>; + + /** + * A promise that is resolved with an array of all the JavaScript strings in the name tree. + **/ + getJavaScript(): PDFPromise<string[]>; + + /** + * A promise that is resolved with an array that is a tree outline (if it has one) of the PDF. @see PDFTreeNode + **/ + getOutline(): PDFPromise<PDFTreeNode[]>; + + /** + * A promise that is resolved with the info and metadata of the PDF. + **/ + getMetadata(): PDFPromise<{ info: PDFInfo; metadata: PDFMetadata }>; + + /** + * Is the PDF encrypted? + **/ + isEncrypted(): PDFPromise<boolean>; + + /** + * A promise that is resolved with Uint8Array that has the raw PDF data. + **/ + getData(): PDFPromise<Uint8Array>; + + /** + * TODO: return type of Promise<???> + * A promise that is resolved when the document's data is loaded. + **/ + dataLoaded(): PDFPromise<any[]>; + + /** + * + **/ + destroy(): void; + } + + interface PDFRef { + num: number; + gen: any; // todo + } + + interface PDFPageViewportOptions { + viewBox: any; + scale: number; + rotation: number; + offsetX: number; + offsetY: number; + dontFlip: boolean; + } + + interface PDFPageViewport { + width: number; + height: number; + fontScale: number; + transforms: number[]; + + clone(options: PDFPageViewportOptions): PDFPageViewport; + convertToViewportPoint(x: number, y: number): number[]; // [x, y] + convertToViewportRectangle(rect: number[]): number[]; // [x1, y1, x2, y2] + convertToPdfPoint(x: number, y: number): number[]; // [x, y] + } + + interface PDFAnnotationData { + subtype: string; + rect: number[]; // [x1, y1, x2, y2] + annotationFlags: any; // todo + color: number[]; // [r,g,b] + borderWidth: number; + hasAppearance: boolean; + } + + interface PDFAnnotations { + getData(): PDFAnnotationData; + hasHtml(): boolean; // always false + getHtmlElement(commonOjbs: any): HTMLElement; // throw new NotImplementedException() + getEmptyContainer(tagName: string, rect: number[]): HTMLElement; // deprecated + isViewable(): boolean; + loadResources(keys: any): PDFPromise<any>; + getOperatorList(evaluator: any): PDFPromise<any>; + // ... todo + } + + interface PDFRenderTextLayer { + beginLayout(): void; + endLayout(): void; + appendText(): void; + } + + interface PDFRenderImageLayer { + beginLayout(): void; + endLayout(): void; + appendImage(): void; + } + + interface PDFRenderParams { + canvasContext: CanvasRenderingContext2D; + viewport?: PDFPageViewport; + textLayer?: PDFRenderTextLayer; + imageLayer?: PDFRenderImageLayer; + continueCallback?: (_continue: () => void) => void; + } + + interface PDFViewerParams { + container: HTMLElement; + viewer?: HTMLElement; + } + + /** + * RenderTask is basically a promise but adds a cancel function to termiate it. + **/ + interface PDFRenderTask extends PDFPromise<PDFPageProxy> { + + /** + * Cancel the rendering task. If the task is currently rendering it will not be cancelled until graphics pauses with a timeout. The promise that this object extends will resolve when cancelled. + **/ + cancel(): void; + } + + interface PDFPageProxy { + + /** + * Page number of the page. First page is 1. + **/ + pageNumber: number; + + /** + * The number of degrees the page is rotated clockwise. + **/ + rotate: number; + + /** + * The reference that points to this page. + **/ + ref: PDFRef; + + /** + * @return An array of the visible portion of the PDF page in the user space units - [x1, y1, x2, y2]. + **/ + view: number[]; + + /** + * @param scale The desired scale of the viewport. + * @param rotate Degrees to rotate the viewport. If omitted this defaults to the page rotation. + * @return + **/ + getViewport(scale: number, rotate?: number): PDFPageViewport; + + /** + * A promise that is resolved with an array of the annotation objects. + **/ + getAnnotations(): PDFPromise<PDFAnnotations>; + + /** + * Begins the process of rendering a page to the desired context. + * @param params Rendering options. + * @return An extended promise that is resolved when the page finishes rendering. + **/ + render(params: PDFRenderParams): PDFRenderTask; + + /** + * A promise that is resolved with the string that is the text content frm the page. + **/ + getTextContent(): PDFPromise<TextContent>; + + /** + * marked as future feature + **/ + //getOperationList(): PDFPromise<>; + + /** + * Destroyes resources allocated by the page. + **/ + destroy(): void; + } + + interface TextContentItem { + str: string; + transform: number[]; // [0..5] 4=x, 5=y + width: number; + height: number; + dir: string; // Left-to-right (ltr), etc + fontName: string; // A lookup into the styles map of the owning TextContent + } + + interface TextContent { + items: TextContentItem[]; + styles: any; + } + + /** + * A PDF document and page is built of many objects. E.g. there are objects for fonts, images, rendering code and such. These objects might get processed inside of a worker. The `PDFObjects` implements some basic functions to manage these objects. + **/ + interface PDFObjects { + get(objId: number, callback?: any): any; + resolve(objId: number, data: any): any; + isResolved(objId: number): boolean; + hasData(objId: number): boolean; + getData(objId: number): any; + clear(): void; + } + + interface PDFJSUtilStatic { + /** + * Normalize rectangle so that (x1,y1) < (x2,y2) + * @param {number[]} rect - the rectangle with [x1,y1,x2,y2] + * + * For coordinate systems whose origin lies in the bottom-left, this + * means normalization to (BL,TR) ordering. For systems with origin in the + * top-left, this means (TL,BR) ordering. + **/ + normalizeRect(rect:number[]): number[]; + } + + interface PDFJSStatic { + + /** + * The maximum allowed image size in total pixels e.g. width * height. Images above this value will not be drawn. Use -1 for no limit. + **/ + maxImageSize: number; + + /** + * The url of where the predefined Adobe CMaps are located. Include trailing + * slash. + */ + cMapUrl: string; + + /** + * Specifies if CMaps are binary packed. + */ + cMapPacked: boolean; + + /** + * By default fonts are converted to OpenType fonts and loaded via font face rules. If disabled, the font will be rendered using a built in font renderer that constructs the glyphs with primitive path commands. + **/ + disableFontFace: boolean; + + /** + * Path for image resources, mainly for annotation icons. Include trailing + * slash. + */ + imageResourcesPath: string; + + /** + * Disable the web worker and run all code on the main thread. This will happen + * automatically if the browser doesn't support workers or sending typed arrays + * to workers. + */ + disableWorker: boolean; + + /** + * Path and filename of the worker file. Required when the worker is enabled in + * development mode. If unspecified in the production build, the worker will be + * loaded based on the location of the pdf.js file. + */ + workerSrc: string; + + /** + * Disable range request loading of PDF files. When enabled and if the server + * supports partial content requests then the PDF will be fetched in chunks. + * Enabled (false) by default. + */ + disableRange: boolean; + + /** + * Disable streaming of PDF file data. By default PDF.js attempts to load PDF + * in chunks. This default behavior can be disabled. + */ + disableStream: boolean; + + /** + * Disable pre-fetching of PDF file data. When range requests are enabled PDF.js + * will automatically keep fetching more data even if it isn't needed to display + * the current page. This default behavior can be disabled. + * + * NOTE: It is also necessary to disable streaming, see above, + * in order for disabling of pre-fetching to work correctly. + */ + disableAutoFetch: boolean; + + /** + * Enables special hooks for debugging PDF.js. + */ + pdfBug: boolean; + + /** + * Enables transfer usage in postMessage for ArrayBuffers. + */ + postMessageTransfers: boolean; + + /** + * Disables URL.createObjectURL usage. + */ + disableCreateObjectURL: boolean; + + /** + * Disables WebGL usage. + */ + disableWebGL: boolean; + + /** + * Disables fullscreen support, and by extension Presentation Mode, + * in browsers which support the fullscreen API. + */ + disableFullscreen: boolean; + + /** + * Enables CSS only zooming. + */ + useOnlyCssZoom: boolean; + + /** + * Controls the logging level. + * The constants from PDFJS.VERBOSITY_LEVELS should be used: + * - errors + * - warnings [default] + * - infos + */ + verbosity: number; + + /** + * The maximum supported canvas size in total pixels e.g. width * height. + * The default value is 4096 * 4096. Use -1 for no limit. + */ + maxCanvasPixels: number; + + /** + * Opens external links in a new window if enabled. The default behavior opens + * external links in the PDF.js window. + */ + openExternalLinksInNewWindow: boolean; + + /** + * Determines if we can eval strings as JS. Primarily used to improve + * performance for font rendering. + */ + isEvalSupported: boolean; + + Util: PDFJSUtilStatic; + + /** + * This is the main entry point for loading a PDF and interacting with it. + * NOTE: If a URL is used to fetch the PDF data a standard XMLHttpRequest(XHR) + * is used, which means it must follow the same origin rules that any XHR does + * e.g. No corss domain requests without CORS. + * @param source + * @param pdfDataRangeTransport Used if you want to manually server range requests for data in the PDF. @ee viewer.js for an example of pdfDataRangeTransport's interface. + * @param passwordCallback Used to request a password if wrong or no password was provided. The callback receives two parameters: function that needs to be called with new password and the reason. + * @param progressCallback Progress callback. + * @return A promise that is resolved with PDFDocumentProxy object. + **/ + getDocument( + source: string, + pdfDataRangeTransport?: any, + passwordCallback?: (fn: (password: string) => void, reason: string) => string, + progressCallback?: (progressData: PDFProgressData) => void) + : PDFPromise<PDFDocumentProxy>; + + getDocument( + source: Uint8Array, + pdfDataRangeTransport?: any, + passwordCallback?: (fn: (password: string) => void, reason: string) => string, + progressCallback?: (progressData: PDFProgressData) => void) + : PDFPromise<PDFDocumentProxy>; + + getDocument( + source: PDFSource, + pdfDataRangeTransport?: any, + passwordCallback?: (fn: (password: string) => void, reason: string) => string, + progressCallback?: (progressData: PDFProgressData) => void) + : PDFPromise<PDFDocumentProxy>; + + PDFViewer(params: PDFViewerParams): void; + } +} diff --git a/types/pdfjs-dist/pdfjs-dist-tests.ts b/types/pdfjs-dist/pdfjs-dist-tests.ts index 6b22b56f46..cd2325975a 100644 --- a/types/pdfjs-dist/pdfjs-dist-tests.ts +++ b/types/pdfjs-dist/pdfjs-dist-tests.ts @@ -1,10 +1,11 @@ - +import { PDFJSStatic, PDFDocumentProxy, PDFPromise } from 'pdfjs-dist'; // // Fetch the PDF document from the URL using promises // var pdfDoc: PDFDocumentProxy; var pageNum: number; +var PDFJS: PDFJSStatic; PDFJS.getDocument('helloworld.pdf').then(function (pdf) { // Using promise to fetch the page diff --git a/types/pdfkit/index.d.ts b/types/pdfkit/index.d.ts index 053aa7f029..90079efc0e 100644 --- a/types/pdfkit/index.d.ts +++ b/types/pdfkit/index.d.ts @@ -58,9 +58,16 @@ declare namespace PDFKit.Mixins { textAnnotation(x: number, y: number, w: number, h: number, text: string, option?: AnnotationOption): TDocument; } + // The color forms accepted by PDFKit: + // example: "red" [R, G, B] [C, M, Y, K] + type ColorValue = string | PDFGradient | [number, number, number] | [number, number, number, number]; + + // The winding / filling rule accepted by PDFKit: + type RuleValue = "even-odd" | "evenodd" | "non-zero" | "nonzero"; + interface PDFColor<TDocument> { - fillColor(color: string|PDFGradient, opacity?: number): TDocument; - strokeColor(color: string, opacity?: number): TDocument; + fillColor(color: ColorValue, opacity?: number): TDocument; + strokeColor(color: ColorValue, opacity?: number): TDocument; opacity(opacity: number): TDocument; fillOpacity(opacity: number): TDocument; strokeOpacity(opacity: number): TDocument; @@ -166,10 +173,13 @@ declare namespace PDFKit.Mixins { circle(x: number, y: number, raduis: number): TDocument; polygon(...points: number[][]): TDocument; path(path: string): TDocument; - fill(color: string|PDFKit.PDFGradient, rule?: string): TDocument; - stroke(color?: string|PDFKit.PDFGradient): TDocument; - fillAndStroke(fillColor: string, strokeColor?: string, rule?: string): TDocument; - clip(rule?: string): TDocument; + fill(color?: ColorValue, rule?: RuleValue): TDocument; + fill(rule: RuleValue): TDocument; + stroke(color?: ColorValue): TDocument; + fillAndStroke(fillColor?: ColorValue, strokeColor?: ColorValue, rule?: RuleValue): TDocument; + fillAndStroke(fillColor: ColorValue, rule?: RuleValue): TDocument; + fillAndStroke(rule: RuleValue): TDocument; + clip(rule?: RuleValue): TDocument; transform(m11: number, m12: number, m21: number, m22: number, dx: number, dy: number): TDocument; translate(x: number, y: number): TDocument; rotate(angle: number, options?: { origin?: number[] }): TDocument; diff --git a/types/pdfkit/pdfkit-tests.ts b/types/pdfkit/pdfkit-tests.ts index 57aff702da..72358ed5e2 100644 --- a/types/pdfkit/pdfkit-tests.ts +++ b/types/pdfkit/pdfkit-tests.ts @@ -44,6 +44,8 @@ doc.moveTo(0,20) .lineTo(100,160) .quadraticCurveTo(130,200,150,120) .lineTo(400,90) + .strokeColor([255, 0, 0], 1) + .strokeColor([255, 0, 0]) .stroke(); //SVG Paths @@ -80,6 +82,9 @@ var grad = doc.linearGradient(50, 0, 150, 100) doc.rect(50, 0, 100, 100) .fill(grad); +doc.rect(150, 0, 25, 25) +.fill(); + doc.circle(100, 50, 50).dash(5, { space: 10 }).stroke(); diff --git a/types/peer-dial/index.d.ts b/types/peer-dial/index.d.ts new file mode 100644 index 0000000000..4d3af378b6 --- /dev/null +++ b/types/peer-dial/index.d.ts @@ -0,0 +1,93 @@ +// Type definitions for peer-dial 0.0 +// Project: https://github.com/fraunhoferfokus/peer-dial +// Definitions by: James Tooley <https://github.com/RealTYPICAL> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +/// <reference types="node" /> + +import * as events from "events"; +import * as express from "express"; +import * as uuid from "node-uuid"; + +export class Server extends events.EventEmitter { + constructor(options: ServerOptions); + start(): void; + stop(): void; + corsOptionsAppsDelegate(req: string, callback: (err: any, data: CorsOptions) => void): void; +} + +export interface CorsOptions { + origin: boolean; + methods: string[]; + exposedHeaders: string[]; +} + +export interface ServerOptions { + expressApp: express.Express; + prefix: string; + port: number; + host?: string; + uuid?: uuid.UUIDOptions; + friendlyName?: string; + manufacturer: string; + modelName: string; + maxContentLength?: number; + extraHeaders?: object; + delegate: Delegate; + corsAllowOrigins: string | boolean; +} + +export interface Delegate { + getApp(appName: string): App; + launchApp(appName: string, launchData: string, callback: (data: string) => void): void; + stopApp(appName: string, pid: string, callback: (data: boolean) => void): void; +} + +export interface App { + name: string; + state: string; + allowStop: boolean; + pid: string; + launch(launchData: string): void; +} + +export interface AppInfo { + dialVer: string; + name: string; + options: AppInfoOptions; + state: string; + xmlns: string; +} + +export interface AppInfoOptions { + allowStop: string; +} + +export class Client extends events.EventEmitter { + getDialDevice(deviceDescriptionUrl: string, callback?: (data: DialDevice, err: any) => void): void; + start(): void; + refresh(): void; + stop(): void; +} + +export class DialDevice { + constructor(deviceInfo: DeviceInfo); + getAppInfoXml(appName: string, callback?: (data: string, err: any) => void): void; + getAppInfo(appName: string, callback?: (data: AppInfo, err: any) => void): void; + launchApp(appName: string, launchData: string, contentType: string, callback?: (data: string, err: any) => void): void; + stopApp(appName: string, pid: string, callback?: (data: number, err: any) => void): void; +} + +export interface DeviceInfo { + descriptionUrl: string; + applicationUrl: string; + deviceType: string; + friendlyName: string; + manufacturer: string; + modelName: string; + UDN: string; + iconList: object[] | { + icon: object + }; +} diff --git a/types/peer-dial/peer-dial-tests.ts b/types/peer-dial/peer-dial-tests.ts new file mode 100644 index 0000000000..cb4238da62 --- /dev/null +++ b/types/peer-dial/peer-dial-tests.ts @@ -0,0 +1,47 @@ +import { Server, Client, App, AppInfo, CorsOptions, ServerOptions, Delegate, DialDevice, DeviceInfo } from 'peer-dial'; +import * as express from 'express'; + +class AppImpl implements App { + name: string; + state: string; + allowStop: boolean; + pid: string; + launch(launchData: string): void { + } +} +const app = new AppImpl(); +class DelegateImpl implements Delegate { + getApp(appName: string): App { + return app; + } + launchApp(appName: string, launchData: string, callback: (data: string) => void): void { + } + stopApp(appName: string, pid: string, callback: (data: boolean) => void): void { + } +} +function testServer() { + const object = new Server({ + expressApp: express(), + prefix: '/dial', + port: 3000, + corsAllowOrigins: '*', + manufacturer: 'testing', + modelName: 'testing', + delegate: new DelegateImpl() + }); +} +function testClient() { + const client = new Client(); + client.on("ready", () => { + }).on('found', (deviceDescriptionUrl: string, ssdpHeaders: string) => { + client.getDialDevice(deviceDescriptionUrl, (dialDevice: DialDevice, err: any) => { + dialDevice.getAppInfo('YouTube', (appInfo: AppInfo, err: any) => { + if (appInfo) { + dialDevice.launchApp("YouTube", "something", "text/plain", (data: string, err: any) => { + }); + } + }); + }); + }); + client.start(); +} diff --git a/types/peer-dial/tsconfig.json b/types/peer-dial/tsconfig.json new file mode 100644 index 0000000000..5cfd0105d1 --- /dev/null +++ b/types/peer-dial/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "peer-dial-tests.ts" + ] +} diff --git a/types/peer-dial/tslint.json b/types/peer-dial/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/peer-dial/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/pg-ears/index.d.ts b/types/pg-ears/index.d.ts new file mode 100644 index 0000000000..d3fdaadf89 --- /dev/null +++ b/types/pg-ears/index.d.ts @@ -0,0 +1,24 @@ +// Type definitions for pg-ears 1.0 +// Project: https://github.com/doesdev/pg-ears +// Definitions by: Bradley Ayers <https://github.com/bradleyayers> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import { ClientConfig } from "pg"; + +interface PgEars { + listen( + channel: string, + cb: (err: Error | null, payload?: string) => void + ): null; + notify(channel: string, payload: any, cb?: (err: Error) => void): void; +} + +declare function pg_ears( + opts: ClientConfig & { + maxAttempts?: number; + // Interval between connection retries, in milliseconds. + checkInterval?: number; + } +): PgEars; + +export = pg_ears; diff --git a/types/pg-ears/pg-ears-tests.ts b/types/pg-ears/pg-ears-tests.ts new file mode 100644 index 0000000000..7dbb8efbc6 --- /dev/null +++ b/types/pg-ears/pg-ears-tests.ts @@ -0,0 +1,11 @@ +import PgEars = require("pg-ears"); + +const pgEars = PgEars({ + checkInterval: 10000, + maxAttempts: 6 * 60 * 24, + host: "example.com", + port: 5432, + database: "example", + user: "postgres", + password: "" +}); diff --git a/types/pg-ears/tsconfig.json b/types/pg-ears/tsconfig.json new file mode 100644 index 0000000000..58f2ea0adf --- /dev/null +++ b/types/pg-ears/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "pg-ears-tests.ts" + ] +} diff --git a/types/pg-ears/tslint.json b/types/pg-ears/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/pg-ears/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/pg/index.d.ts b/types/pg/index.d.ts index b3155e988a..68fba5fb40 100644 --- a/types/pg/index.d.ts +++ b/types/pg/index.d.ts @@ -95,7 +95,7 @@ export class Pool extends events.EventEmitter { export class Client extends events.EventEmitter { constructor(config: ClientConfig); - connect(): Promise<Client>; + connect(): Promise<void>; connect(callback: (err: Error) => void): void; end(): Promise<void>; @@ -139,6 +139,6 @@ export const types: typeof pgTypes; export const defaults: Defaults & ClientConfig; -import * as Pg from 'pg'; +import * as Pg from '.'; export const native: typeof Pg | null; diff --git a/types/phonegap-plugin-barcodescanner/index.d.ts b/types/phonegap-plugin-barcodescanner/index.d.ts index 85bde977b7..431cea4b94 100644 --- a/types/phonegap-plugin-barcodescanner/index.d.ts +++ b/types/phonegap-plugin-barcodescanner/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for phonegap-plugin-barcodescanner // Project: https://github.com/phonegap/phonegap-plugin-barcodescanner // Definitions by: Nathan Ainslie <https://www.github.com/nainslie> +// Jeff Wu <https://www.github.com/jeffwu85182> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface CordovaPlugins { @@ -13,13 +14,19 @@ declare namespace phonegapBarcode { format: string; cancelled: boolean; } - + interface BarcodeScanOptions { preferFrontCamera?: boolean; showFlipCameraButton?: boolean; + showTorchButton?: boolean; + torchOn?: boolean; + saveHistory?: boolean; + resultDisplayDuration? :number; + disableAnimations: boolean; prompt?: string; formats?: string; orientation?: "landscape" | "portrait"; + disableSuccessBeep?: boolean; } interface EncodingType { @@ -34,4 +41,4 @@ declare namespace phonegapBarcode { encode: (encodingType: EncodingType, data: string, success: ((result: any) => any), failure?: ((err: any) => any)) => void; Encode: EncodingType; } -} \ No newline at end of file +} diff --git a/types/phonegap-plugin-barcodescanner/phonegap-plugin-barcodescanner-tests.ts b/types/phonegap-plugin-barcodescanner/phonegap-plugin-barcodescanner-tests.ts index 454a22fa85..39ac67fbb9 100644 --- a/types/phonegap-plugin-barcodescanner/phonegap-plugin-barcodescanner-tests.ts +++ b/types/phonegap-plugin-barcodescanner/phonegap-plugin-barcodescanner-tests.ts @@ -11,11 +11,17 @@ cordova.plugins.barcodeScanner.scan( alert("Scanning failed: " + error); }, { - "preferFrontCamera" : true, // iOS and Android - "showFlipCameraButton" : true, // iOS and Android - "prompt" : "Place a barcode inside the scan area", // supported on Android only - "formats" : "QR_CODE,PDF_417", // default: all but PDF_417 and RSS_EXPANDED - "orientation" : "landscape" // Android only (portrait|landscape), default unset so it rotates with the device + preferFrontCamera : true, // iOS and Android + showFlipCameraButton : true, // iOS and Android + showTorchButton : true, // iOS and Android + torchOn: true, // Android, launch with the torch switched on (if available) + saveHistory: true, // Android, save scan history (default false) + prompt : "Place a barcode inside the scan area", // Android + resultDisplayDuration: 500, // Android, display scanned text for X ms. 0 suppresses it entirely, default 1500 + formats : "QR_CODE,PDF_417", // default: all but PDF_417 and RSS_EXPANDED + orientation : "landscape", // Android only (portrait|landscape), default unset so it rotates with the device + disableAnimations : true, // iOS + disableSuccessBeep: false // iOS and Android } ); @@ -25,4 +31,4 @@ cordova.plugins.barcodeScanner.encode(cordova.plugins.barcodeScanner.Encode.TEXT }, function(fail) { alert("encoding failed: " + fail); } -); \ No newline at end of file +); diff --git a/types/pify/index.d.ts b/types/pify/index.d.ts index b7cdad5332..fc4b13df5d 100644 --- a/types/pify/index.d.ts +++ b/types/pify/index.d.ts @@ -1,18 +1,21 @@ -// Type definitions for pify +// Type definitions for pify 3.0.0 // Project: https://github.com/sindresorhus/pify -// Definitions by: Sam Verschueren <https://github.com/samverschueren> +// Definitions by: Sam Verschueren <https://github.com/samverschueren>, [Michael Müller] <https://github.com/mad-mike> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +interface PromiseModule { + new(executor: (resolve: (value?: any) => void, reject: (reason?: any) => void) => void): any; +} interface PifyOptions { multiArgs?: boolean, include?: [string | RegExp], exclude?: [string | RegExp], - excludeMain?: boolean + excludeMain?: boolean, + errorFirst?: boolean, + promiseModule?: PromiseModule } -declare function pify(input: Function, promiseModule?: Function, options?: PifyOptions): (...args: any[]) => Promise<any>; -declare function pify(input: any, promiseModule?: Function, options?: PifyOptions): any; declare function pify(input: Function, options?: PifyOptions): (...args: any[]) => Promise<any>; declare function pify(input: any, options?: PifyOptions): any; diff --git a/types/pify/pify-tests.ts b/types/pify/pify-tests.ts index 87e1ba28ae..f77eb9f10d 100644 --- a/types/pify/pify-tests.ts +++ b/types/pify/pify-tests.ts @@ -17,6 +17,9 @@ const fs = { } callback(undefined, result); + }, + exists: (path: string, callback: (exists: boolean) => void): void => { + callback(true); } }; @@ -24,4 +27,7 @@ const fsP = pify(fs); fsP.readFile('foo.txt').then((result: string) => assert(result, 'foo')); pify(fs.readFile)('foo.txt').then((result: string) => assert(result, 'foo')); -pify(fs.readFile, Promise)('bar.txt').then((result: string) => assert(result, 'bar')); \ No newline at end of file +pify(fs.readFile, { promiseModule: Promise})('bar.txt').then((result: string) => assert(result, 'bar')); + + +pify(fs.exists, { errorFirst: false })('foo.txt').then((result: boolean) => assert(result.toString(), true.toString())); diff --git a/types/pixi.js/index.d.ts b/types/pixi.js/index.d.ts index 7273b6208f..85cc9cf1d8 100644 --- a/types/pixi.js/index.d.ts +++ b/types/pixi.js/index.d.ts @@ -421,7 +421,7 @@ declare namespace PIXI { protected _cr?: number; protected _cy?: number; protected _sy?: number; - protected _nsx?: number; + protected _sx?: number; protected _cx?: number; updateSkew(): void; @@ -941,7 +941,7 @@ declare namespace PIXI { CONTEXT_UID: number; state?: WebGLState; renderingToScreen: boolean; - boundTextures: Texture[]; + boundTextures: BaseTexture[]; filterManager: FilterManager; textureManager?: TextureManager; textureGC?: TextureGarbageCollector; @@ -1128,7 +1128,7 @@ declare namespace PIXI { calculateScreenSpaceMatrix(outputMatrix: Matrix): Matrix; calculateNormalizedScreenSpaceMatrix(outputMatrix: Matrix): Matrix; calculateSpriteMatrix(outputMatrix: Matrix, sprite: Sprite): Matrix; - destroy(): void; + destroy(contextLost?: boolean): void; emptyPool(): void; getPotRenderTarget(gl: WebGLRenderingContext, minWidth: number, minHeight: number, resolution: number): RenderTarget; freePotRenderTarget(renderTarget: RenderTarget): void; @@ -1159,6 +1159,9 @@ declare namespace PIXI { stencilMaskStack: Graphics[]; + protected _useCurrent(): void; + protected _getBitwiseMask(): number; + setMaskStack(stencilMasStack: Graphics[]): void; pushStencil(graphics: Graphics): void; popStencil(): void; @@ -1183,7 +1186,7 @@ declare namespace PIXI { constructor(vertexSrc?: string, fragmentSrc?: string, uniforms?: UniformDataMap<U>); protected _blendMode: number; - vertextSrc?: string; + vertexSrc?: string; fragmentSrc: string; blendMode: number; protected uniformData: UniformDataMap<U>; @@ -1378,6 +1381,8 @@ declare namespace PIXI { fontVariant: string; protected _fontWeight: string; fontWeight: string; + protected _leading: number; + leading: number; protected _letterSpacing: number; letterSpacing: number; protected _lineHeight: number; @@ -1400,7 +1405,6 @@ declare namespace PIXI { wordWrap: boolean; protected _wordWrapWidth: number; wordWrapWidth: number; - leading: number; toFontString(): string; } class TextMetrics { @@ -2500,10 +2504,10 @@ declare namespace PIXI { position?: boolean; rotation?: boolean; uvs?: boolean; - alpha?: boolean; + tint?: boolean; } class ParticleContainer extends Container { - constructor(size?: number, properties?: ParticleContainerProperties, batchSize?: number); + constructor(size?: number, properties?: ParticleContainerProperties, batchSize?: number, autoSize?: boolean); protected _tint: number; protected tintRgb: number | any[]; tint: number; @@ -2514,6 +2518,7 @@ declare namespace PIXI { protected _bufferToUpdate: number; interactiveChildren: boolean; blendMode: number; + autoSize: boolean; roundPixels: boolean; baseTexture: BaseTexture; @@ -2526,17 +2531,17 @@ declare namespace PIXI { constructor(gl: WebGLRenderingContext, properties: any, dynamicPropertyFlags: any[], size: number); gl: WebGLRenderingContext; - vertSize: number; - vertByteSize: number; size: number; dynamicProperties: any[]; staticProperties: any[]; staticStride: number; staticBuffer: any; staticData: any; + staticDataUint32: any; dynamicStride: number; dynamicBuffer: any; dynamicData: any; + dynamicDataUint32: any; destroy(): void; } @@ -2544,6 +2549,7 @@ declare namespace PIXI { attribute: number; size: number; uploadFunction(children: PIXI.DisplayObject[], startIndex: number, amount: number, array: number[], stride: number, offset: number): void; + unsignedByte: any; offset: number; } class ParticleRenderer extends ObjectRenderer { @@ -2556,11 +2562,12 @@ declare namespace PIXI { start(): void; generateBuffers(container: ParticleContainer): ParticleBuffer[]; + protected _generateOneMoreBuffer(container: ParticleContainer): ParticleBuffer; uploadVertices(children: DisplayObject[], startIndex: number, amount: number, array: number[], stride: number, offset: number): void; uploadPosition(children: DisplayObject[], startIndex: number, amount: number, array: number[], stride: number, offset: number): void; uploadRotation(children: DisplayObject[], startIndex: number, amount: number, array: number[], stride: number, offset: number): void; uploadUvs(children: DisplayObject[], startIndex: number, amount: number, array: number[], stride: number, offset: number): void; - uploadAlpha(children: DisplayObject[], startIndex: number, amount: number, array: number[], stride: number, offset: number): void; + uploadTint(children: DisplayObject[], startIndex: number, amount: number, array: number[], stride: number, offset: number): void; destroy(): void; indices: Uint16Array; diff --git a/types/pixi.js/pixi.js-tests.ts b/types/pixi.js/pixi.js-tests.ts index d5eec8f254..6b2616d478 100644 --- a/types/pixi.js/pixi.js-tests.ts +++ b/types/pixi.js/pixi.js-tests.ts @@ -532,7 +532,7 @@ function demos() { position: true, rotation: true, uvs: true, - alpha: true + tint: true }); this.app.stage.addChild(this.sprites); diff --git a/types/pixi.js/tslint.json b/types/pixi.js/tslint.json index fb2df83ec9..8738927597 100644 --- a/types/pixi.js/tslint.json +++ b/types/pixi.js/tslint.json @@ -6,6 +6,7 @@ "dt-header": false, "interface-name": false, "no-any-union": false, + "no-declare-current-package": false, "no-empty-interface": false, "no-inferrable-types": false, "no-mergeable-namespace": false, diff --git a/types/plotly.js/lib/core.d.ts b/types/plotly.js/lib/core.d.ts index ef878f8e8d..ccf5761786 100644 --- a/types/plotly.js/lib/core.d.ts +++ b/types/plotly.js/lib/core.d.ts @@ -1 +1 @@ -export * from 'plotly.js'; +export * from '..'; diff --git a/types/polylabel/index.d.ts b/types/polylabel/index.d.ts index 1fe6aec3df..b9a16ed265 100644 --- a/types/polylabel/index.d.ts +++ b/types/polylabel/index.d.ts @@ -1,34 +1,18 @@ -// Type definitions for polylabel 1.0.0 +// Type definitions for polylabel 1.0 // Project: https://github.com/mapbox/polylabel // Definitions by: Denis Carriere <https://github.com/DenisCarriere> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** - * polylabel - * - * A fast algorithm for finding polygon pole of inaccessibility, the most distant internal point from - * the polygon outline (not to be confused with centroid), implemented as a JavaScript library. - * Useful for optimal placement of a text label on a polygon. - * It's an iterative grid algorithm, inspired by paper by Garcia-Castellanos & Lombardo, 2007. - * Unlike the one in the paper, this algorithm: + * Polylabel returns the pole of inaccessibility coordinate in [x, y] format. * - * - guarantees finding global optimum within the given precision - * - is many times faster (10-40x) + * @param {Array<number>} polygon - Given polygon coordinates in GeoJSON-like format + * @param {number} precision - Precision (1.0 by default) + * @param {boolean} debug - Debugging for Console + * @return {Array<number>} + * @example + * var p = polylabel(polygon, 1.0); */ -declare module "polylabel" { - /** - * Polylabel returns the pole of inaccessibility coordinate in [x, y] format. - * - * @name polylabel - * @function - * @param {Array<number>} polygon - Given polygon coordinates in GeoJSON-like format - * @param {number} precision - Precision (1.0 by default) - * @param {boolean} debug - Debugging for Console - * @return {Array<number>} - * @example - * var p = polylabel(polygon, 1.0); - */ - function polylabel(polygon: number[][][], precision?: number, debug?: boolean): number[]; - namespace polylabel {} - export = polylabel; -} +declare function polylabel(polygon: number[][][], precision?: number, debug?: boolean): number[]; +declare namespace polylabel {} +export default polylabel; diff --git a/types/polylabel/polylabel-tests.ts b/types/polylabel/polylabel-tests.ts index 51a0bdb79b..1eb57821fd 100644 --- a/types/polylabel/polylabel-tests.ts +++ b/types/polylabel/polylabel-tests.ts @@ -1,7 +1,7 @@ -import * as polylabel from 'polylabel'; +import polylabel from 'polylabel'; -const polygon = [[[3116,3071],[3118,3068],[3108,3102],[3751,927]]] -polylabel(polygon) -polylabel(polygon, 1.0) -polylabel(polygon, 1.0, true) -polylabel(polygon, 1.0, false) +const polygon = [[[3116, 3071], [3118, 3068], [3108, 3102], [3751, 927]]]; +polylabel(polygon); +polylabel(polygon, 1.0); +polylabel(polygon, 1.0, true); +polylabel(polygon, 1.0, false); diff --git a/types/polylabel/tslint.json b/types/polylabel/tslint.json new file mode 100644 index 0000000000..30a1bdde2e --- /dev/null +++ b/types/polylabel/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} \ No newline at end of file diff --git a/types/popper.js/index.d.ts b/types/popper.js/index.d.ts index 2af9ae2298..19e892cc03 100644 --- a/types/popper.js/index.d.ts +++ b/types/popper.js/index.d.ts @@ -1,6 +1,9 @@ // Type definitions for popper.js 1.10 // Project: https://github.com/FezVrasta/popper.js/ -// Definitions by: rhysd <https://rhysd.github.io>, joscha <https://github.com/joscha>, seckardt <https://github.com/seckardt>, marcfallows <https://github.com/marcfallows> +// Definitions by: rhysd <https://github.com/rhysd> +// joscha <https://github.com/joscha> +// seckardt <https://github.com/seckardt> +// marcfallows <https://github.com/marcfallows> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Popper { @@ -100,6 +103,8 @@ declare class Popper { disableEventListeners(): void; } +// Popper.js is globally available directly, but in a module it's only available as a default export. +// tslint:disable-next-line no-single-declare-module no-declare-current-package declare module 'popper.js' { export default Popper; } diff --git a/types/popper.js/tslint.json b/types/popper.js/tslint.json index 59781adedc..fd7e538a58 100644 --- a/types/popper.js/tslint.json +++ b/types/popper.js/tslint.json @@ -1,9 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "ban-types": false, - "dt-header": false, - "no-single-declare-module": false, - "no-var": false + // TODO + "ban-types": false } } diff --git a/types/postmark/index.d.ts b/types/postmark/index.d.ts index 76d9c48ee4..8a054e17e0 100644 --- a/types/postmark/index.d.ts +++ b/types/postmark/index.d.ts @@ -100,7 +100,7 @@ interface Options extends SimpleOptions { } declare class Client { - constructor(serverKey: string, options: Partial<Options>); + constructor(serverKey: string, options?: Partial<Options>); send(message: PostmarkMessage, callback: PostmarkCallback): void; sendEmailWithTemplate( message: PostmarkMessageWithTemplate, diff --git a/types/pouchdb-adapter-fruitdown/tslint.json b/types/pouchdb-adapter-fruitdown/tslint.json index 71ee04c4e1..53941b68e7 100644 --- a/types/pouchdb-adapter-fruitdown/tslint.json +++ b/types/pouchdb-adapter-fruitdown/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "no-declare-current-package": false, "no-unnecessary-generics": false } } diff --git a/types/pouchdb-adapter-http/tslint.json b/types/pouchdb-adapter-http/tslint.json index 71ee04c4e1..53941b68e7 100644 --- a/types/pouchdb-adapter-http/tslint.json +++ b/types/pouchdb-adapter-http/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "no-declare-current-package": false, "no-unnecessary-generics": false } } diff --git a/types/pouchdb-adapter-idb/tslint.json b/types/pouchdb-adapter-idb/tslint.json index 71ee04c4e1..53941b68e7 100644 --- a/types/pouchdb-adapter-idb/tslint.json +++ b/types/pouchdb-adapter-idb/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "no-declare-current-package": false, "no-unnecessary-generics": false } } diff --git a/types/pouchdb-adapter-leveldb/tslint.json b/types/pouchdb-adapter-leveldb/tslint.json index 71ee04c4e1..53941b68e7 100644 --- a/types/pouchdb-adapter-leveldb/tslint.json +++ b/types/pouchdb-adapter-leveldb/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "no-declare-current-package": false, "no-unnecessary-generics": false } } diff --git a/types/pouchdb-adapter-localstorage/tslint.json b/types/pouchdb-adapter-localstorage/tslint.json index 71ee04c4e1..53941b68e7 100644 --- a/types/pouchdb-adapter-localstorage/tslint.json +++ b/types/pouchdb-adapter-localstorage/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "no-declare-current-package": false, "no-unnecessary-generics": false } } diff --git a/types/pouchdb-adapter-memory/tslint.json b/types/pouchdb-adapter-memory/tslint.json index 71ee04c4e1..53941b68e7 100644 --- a/types/pouchdb-adapter-memory/tslint.json +++ b/types/pouchdb-adapter-memory/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "no-declare-current-package": false, "no-unnecessary-generics": false } } diff --git a/types/pouchdb-adapter-node-websql/tslint.json b/types/pouchdb-adapter-node-websql/tslint.json index 3db14f85ea..0dab80c69a 100644 --- a/types/pouchdb-adapter-node-websql/tslint.json +++ b/types/pouchdb-adapter-node-websql/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "no-declare-current-package": false + } +} diff --git a/types/pouchdb-adapter-websql/tslint.json b/types/pouchdb-adapter-websql/tslint.json index 71ee04c4e1..53941b68e7 100644 --- a/types/pouchdb-adapter-websql/tslint.json +++ b/types/pouchdb-adapter-websql/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "no-declare-current-package": false, "no-unnecessary-generics": false } } diff --git a/types/pouchdb-browser/tslint.json b/types/pouchdb-browser/tslint.json index 3db14f85ea..0dab80c69a 100644 --- a/types/pouchdb-browser/tslint.json +++ b/types/pouchdb-browser/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "no-declare-current-package": false + } +} diff --git a/types/pouchdb-core/index.d.ts b/types/pouchdb-core/index.d.ts index bc5cb66ce9..4314644b58 100644 --- a/types/pouchdb-core/index.d.ts +++ b/types/pouchdb-core/index.d.ts @@ -107,7 +107,7 @@ declare namespace PouchDB { type AttachmentId = string; type RevisionId = string; type Availability = 'available' | 'compacted' | 'not compacted' | 'missing'; - type Attachment = string | Blob | Buffer; + type AttachmentData = string | Blob | Buffer; interface Options { ajax?: Configuration.RemoteRequesterConfiguration; @@ -178,28 +178,55 @@ declare namespace PouchDB { _attachments?: Attachments; } - interface AttachmentResponse { + /** + * Stub attachments are returned by PouchDB by default (attachments option set to false) + */ + interface StubAttachment { + /** + * Mime type of the attachment + */ content_type: string; - /** MD5 hash, starts with "md5-" prefix */ + /** + * Database digest of the attachment + */ digest: string; - /** Only present if `attachments` was `false`. */ - stub?: boolean; + /** + * Attachment is a stub + */ + stub: true; - /** Only present if `attachments` was `false`. */ - length?: number; + /** + * Length of the attachment + */ + length: number; + } + + /** + * Full attachments are used to create new attachments or returned when the attachments option + * is true. + */ + interface FullAttachment { + /** + * Mime type of the attachment + */ + content_type: string; + + /** MD5 hash, starts with "md5-" prefix; populated by PouchDB for new attachments */ + digest?: string; /** - * Only present if `attachments` was `true`. * {string} if `binary` was `false` * {Blob|Buffer} if `binary` was `true` */ - data?: Attachment; + data: AttachmentData; } + type Attachment = StubAttachment | FullAttachment; + interface Attachments { - [attachmentId: string]: AttachmentResponse; + [attachmentId: string]: Attachment; } type NewDocument<Content extends {}> = Content; @@ -217,18 +244,13 @@ declare namespace PouchDB { /** You can update an existing doc using _rev */ _rev?: RevisionId; - _attachments?: {[attachmentId: string]: PutAttachment}; + _attachments?: Attachments; }; type PutDocument<Content extends {}> = PostDocument<Content> & ChangesMeta & { _id?: DocumentId; }; - interface PutAttachment { - content_type: string; - data: Attachment; - } - interface AllDocsOptions extends Options { /** Include attachment data for each document. * @@ -725,7 +747,7 @@ declare namespace PouchDB { putAttachment(docId: Core.DocumentId, attachmentId: Core.AttachmentId, rev: Core.RevisionId, - attachment: Core.Attachment, + attachment: Core.AttachmentData, type: string, callback: Core.Callback<Core.Response>): void; @@ -737,7 +759,7 @@ declare namespace PouchDB { putAttachment(docId: Core.DocumentId, attachmentId: Core.AttachmentId, rev: Core.RevisionId, - attachment: Core.Attachment, + attachment: Core.AttachmentData, type: string): Promise<Core.Response>; /** @@ -747,7 +769,7 @@ declare namespace PouchDB { */ putAttachment(docId: Core.DocumentId, attachmentId: Core.AttachmentId, - attachment: Core.Attachment, + attachment: Core.AttachmentData, type: string, callback: Core.Callback<Core.Response>): void; @@ -758,7 +780,7 @@ declare namespace PouchDB { */ putAttachment(docId: Core.DocumentId, attachmentId: Core.AttachmentId, - attachment: Core.Attachment, + attachment: Core.AttachmentData, type: string): Promise<Core.Response>; /** Get attachment data */ diff --git a/types/pouchdb-core/pouchdb-core-tests.ts b/types/pouchdb-core/pouchdb-core-tests.ts index 95e98fb2ad..523eed7d04 100644 --- a/types/pouchdb-core/pouchdb-core-tests.ts +++ b/types/pouchdb-core/pouchdb-core-tests.ts @@ -122,6 +122,9 @@ function testBasics() { db.info((error, result) => { }); + // "Round-trippable": can put back a document from get + db.get('id').then(doc => db.put(doc)); + PouchDB.debug.enable('*'); } @@ -236,11 +239,28 @@ function heterogeneousGenericsDatabase(db: PouchDB.Database) { thud: boolean; } + // Attachment test + db.put<Cat>({ + _attachments: { + ['meme.gif']: { + content_type: 'image/gif', + data: new Blob(['fake example']) + } + }, + meow: 'roar' + }); + db.allDocs<Cat>({ startkey: 'cat/', endkey: 'cat/\uffff', include_docs: true }) .then(cats => { for (const row of cats.rows) { if (row.doc) { row.doc.meow; // $ExpectType string + + // Round-trip test + db.put(row.doc); + db.put<Cat>(row.doc); + // Generic strictness test + db.put<Boot>(row.doc); // $ExpectError } } }); diff --git a/types/pouchdb-core/tslint.json b/types/pouchdb-core/tslint.json index 71ee04c4e1..53941b68e7 100644 --- a/types/pouchdb-core/tslint.json +++ b/types/pouchdb-core/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "no-declare-current-package": false, "no-unnecessary-generics": false } } diff --git a/types/pouchdb-find/tslint.json b/types/pouchdb-find/tslint.json index d9d49e375e..0512521e8a 100644 --- a/types/pouchdb-find/tslint.json +++ b/types/pouchdb-find/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "no-declare-current-package": false, "no-any-union": false } } diff --git a/types/pouchdb-http/tslint.json b/types/pouchdb-http/tslint.json index 3db14f85ea..462c618bbf 100644 --- a/types/pouchdb-http/tslint.json +++ b/types/pouchdb-http/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "no-declare-current-package": false + } +} diff --git a/types/pouchdb-mapreduce/tslint.json b/types/pouchdb-mapreduce/tslint.json index c92fd86792..ba44da1be1 100644 --- a/types/pouchdb-mapreduce/tslint.json +++ b/types/pouchdb-mapreduce/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODOs - "no-any-union": false + "no-any-union": false, + "no-declare-current-package": false } } diff --git a/types/pouchdb-node/tslint.json b/types/pouchdb-node/tslint.json index 3db14f85ea..462c618bbf 100644 --- a/types/pouchdb-node/tslint.json +++ b/types/pouchdb-node/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "no-declare-current-package": false + } +} diff --git a/types/pouchdb-replication/tslint.json b/types/pouchdb-replication/tslint.json index 3db14f85ea..998776b847 100644 --- a/types/pouchdb-replication/tslint.json +++ b/types/pouchdb-replication/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "no-declare-current-package": false + } +} diff --git a/types/pouchdb-upsert/tslint.json b/types/pouchdb-upsert/tslint.json index 71ee04c4e1..53941b68e7 100644 --- a/types/pouchdb-upsert/tslint.json +++ b/types/pouchdb-upsert/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "no-declare-current-package": false, "no-unnecessary-generics": false } } diff --git a/types/pouchdb/tslint.json b/types/pouchdb/tslint.json index 3db14f85ea..57b8e6b18b 100644 --- a/types/pouchdb/tslint.json +++ b/types/pouchdb/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "no-declare-current-package": false + } +} diff --git a/types/prettier/index.d.ts b/types/prettier/index.d.ts index 317a514912..1ed2568a1e 100644 --- a/types/prettier/index.d.ts +++ b/types/prettier/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for prettier 1.6 +// Type definitions for prettier 1.7 // Project: https://github.com/prettier/prettier // Definitions by: Ika <https://github.com/ikatyang> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -62,6 +62,11 @@ export interface Options { * Specify the input filepath. This will be used to do parser inference. */ filepath?: string; + /** + * Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file. + * This is very useful when gradually transitioning large, unformatted codebases to prettier. + */ + requirePragma?: boolean; } export interface CursorOptions extends Options { diff --git a/types/prop-types/index.d.ts b/types/prop-types/index.d.ts index 6d6439cd27..ebeef159b0 100644 --- a/types/prop-types/index.d.ts +++ b/types/prop-types/index.d.ts @@ -21,6 +21,7 @@ export const object: Requireable<any>; export const string: Requireable<any>; export const node: Requireable<any>; export const element: Requireable<any>; +export const symbol: Requireable<any>; export function instanceOf(expectedClass: {}): Requireable<any>; export function oneOf(types: any[]): Requireable<any>; export function oneOfType(types: Array<Validator<any>>): Requireable<any>; diff --git a/types/prop-types/prop-types-tests.ts b/types/prop-types/prop-types-tests.ts index 3d353d57ee..238a22b1ef 100644 --- a/types/prop-types/prop-types-tests.ts +++ b/types/prop-types/prop-types-tests.ts @@ -7,6 +7,7 @@ interface Props { func: any; string: string; number: number; + symbol: symbol; object: {}; node: any; element: any; @@ -20,6 +21,7 @@ const propTypes: PropTypes.ValidationMap<Props> = { number: PropTypes.number.isRequired, object: PropTypes.object.isRequired, string: PropTypes.string.isRequired, + symbol: PropTypes.symbol.isRequired, node: PropTypes.node.isRequired, element: PropTypes.element.isRequired }; diff --git a/types/prosemirror-commands/index.d.ts b/types/prosemirror-commands/index.d.ts index 3020dcaabc..df531d3663 100644 --- a/types/prosemirror-commands/index.d.ts +++ b/types/prosemirror-commands/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for prosemirror-commands 0.22 +// Type definitions for prosemirror-commands 0.24 // Project: https://github.com/ProseMirror/prosemirror-commands // Definitions by: Bradley Ayers <https://github.com/bradleyayers> // David Hahn <https://github.com/davidka> diff --git a/types/prosemirror-keymap/index.d.ts b/types/prosemirror-keymap/index.d.ts index b61c0ff1c7..9e190f33b3 100644 --- a/types/prosemirror-keymap/index.d.ts +++ b/types/prosemirror-keymap/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for prosemirror-keymap 0.21 +// Type definitions for prosemirror-keymap 0.24 // Project: https://github.com/ProseMirror/prosemirror-keymap // Definitions by: Bradley Ayers <https://github.com/bradleyayers> // David Hahn <https://github.com/davidka> diff --git a/types/prosemirror-model/index.d.ts b/types/prosemirror-model/index.d.ts index e2b276fcb4..805e9fe46d 100644 --- a/types/prosemirror-model/index.d.ts +++ b/types/prosemirror-model/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for prosemirror-model 0.21 +// Type definitions for prosemirror-model 0.24 // Project: https://github.com/ProseMirror/prosemirror-model // Definitions by: Bradley Ayers <https://github.com/bradleyayers> // David Hahn <https://github.com/davidka> @@ -13,17 +13,14 @@ export interface AnyObject { } export class ContentMatch { - matchNode(node: Node): ContentMatch | null | undefined; matchType(type: NodeType, attrs?: AnyObject, marks?: Mark[]): ContentMatch | null | undefined; matchFragment(fragment: Fragment, from?: number, to?: number): ContentMatch | boolean | null | undefined; - matchToEnd(fragment: Fragment, start?: number, end?: number): boolean; - validEnd(): boolean; + validEnd: boolean; fillBefore(after: Fragment, toEnd: boolean, startIndex?: number): Fragment | null | undefined; - allowsMark(markType: MarkType): boolean; - findWrapping(target: NodeType, targetAttrs?: AnyObject, targetMarks?: Mark[]): Array<{ type: NodeType, attrs: AnyObject }> | null | undefined; - findWrappingFor(node: Node): Array<{ type: NodeType, attrs: AnyObject }> | null | undefined; + findWrapping(target: NodeType): NodeType[] | null; } export class Fragment { + size: number; nodesBetween(from: number, to: number, f: (node: Node, start: number, parent: Node, index: number) => boolean | null | void): void; descendants(f: (node: Node, pos: number, parent: Node) => boolean | null | void): void; append(other: Fragment): Fragment; @@ -34,7 +31,6 @@ export class Fragment { lastChild?: Node | null; childCount: number; child(index: number): Node; - offsetAt(index: number): number; maybeChild(index: number): Node | null | undefined; forEach(f: (node: Node, offset: number, index: number) => void): void; findDiffStart(other: Fragment): number | null | undefined; @@ -58,7 +54,7 @@ export interface ParseRule { skip?: boolean | null; attrs?: AnyObject | null; getAttrs?: ((p: dom.Node | string) => boolean | AnyObject | null | void) | null; - contentElement?: string | null; + contentElement?: string | ((p: dom.Node) => dom.Node) | null; getContent?: ((p: dom.Node) => Fragment) | null; preserveWhitespace?: boolean | 'full' | null; } @@ -72,11 +68,10 @@ export class DOMParser { from?: number | null, to?: number | null, topNode?: Node | null, - topStart?: number | null, + topMatch?: ContentMatch | null, context?: ResolvedPos | null }): Node; parseSlice(dom: dom.Node, options?: AnyObject): Slice; - static schemaRules(schema: Schema): ParseRule[]; static fromSchema(schema: Schema): DOMParser; } export class Mark { @@ -168,7 +163,8 @@ export class ResolvedPos { textOffset: number; nodeAfter?: Node | null; nodeBefore?: Node | null; - marks(after?: boolean): Mark[]; + marks(): Mark[]; + marksAcross(): Mark[] | null; sharedDepth(pos: number): number; blockRange(other?: ResolvedPos, pred?: (p: Node) => boolean): NodeRange | null | undefined; sameParent(other: ResolvedPos): boolean; @@ -176,6 +172,7 @@ export class ResolvedPos { min(other: ResolvedPos): ResolvedPos; } export class NodeRange { + constructor($from: ResolvedPos, $to: ResolvedPos, depth: number); $from: ResolvedPos; $to: ResolvedPos; depth: number; @@ -189,6 +186,7 @@ export class NodeType { name: string; schema: Schema; spec: NodeSpec; + contentMatch: ContentMatch; isBlock: boolean; isText: boolean; isInline: boolean; @@ -200,6 +198,9 @@ export class NodeType { createChecked(attrs?: AnyObject, content?: Fragment | Node | Node[], marks?: Mark[]): Node; createAndFill(attrs?: AnyObject, content?: Fragment | Node | Node[], marks?: Mark[]): Node | null | undefined; validContent(content: Fragment, attrs?: AnyObject): boolean; + allowsMarkType(markType: MarkType): boolean; + allowsMarks(marks: Mark[]): boolean; + allowedMarks(marks: Mark[]): Mark[]; } export class MarkType { name: string; @@ -217,6 +218,7 @@ export interface SchemaSpec { } export interface NodeSpec { content?: string | null; + marks?: string | null; group?: string | null; inline?: boolean | null; atom?: boolean | null; @@ -239,7 +241,6 @@ export interface MarkSpec { } export interface AttributeSpec { default?: any | null; - compute?: (() => any) | null; } export class Schema { constructor(spec: SchemaSpec) @@ -278,6 +279,4 @@ export class DOMSerializer { serializeNode(node: Node, options?: AnyObject): Node; static renderSpec(doc: Document, structure: DOMOutputSpec): { dom: Node, contentDOM?: Node | null }; static fromSchema(schema: Schema): DOMSerializer; - static nodesFromSchema(schema: Schema): { [name: string]: (node: Node) => DOMOutputSpec }; - static marksFromSchema(schema: Schema): { [name: string]: (mark: Mark) => DOMOutputSpec }; } diff --git a/types/prosemirror-state/index.d.ts b/types/prosemirror-state/index.d.ts index 92a488d1c7..93e6582c71 100644 --- a/types/prosemirror-state/index.d.ts +++ b/types/prosemirror-state/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for prosemirror-state 0.21 +// Type definitions for prosemirror-state 0.24 // Project: https://github.com/ProseMirror/prosemirror-state // Definitions by: Bradley Ayers <https://github.com/bradleyayers> // David Hahn <https://github.com/davidka> @@ -27,11 +27,8 @@ export interface PluginSpecProps { handleDoubleClick?: EditorProps["handleDoubleClick"]; handleTripleClickOn?: EditorProps["handleTripleClickOn"]; handleTripleClick?: EditorProps["handleTripleClick"]; - handleContextMenu?: EditorProps["handleContextMenu"]; handlePaste?: EditorProps["handlePaste"]; handleDrop?: EditorProps["handleDrop"]; - onFocus?: EditorProps["onFocus"]; - onBlur?: EditorProps["onBlur"]; createSelectionBetween?: EditorProps["createSelectionBetween"]; domParser?: EditorProps["domParser"]; clipboardParser?: EditorProps["clipboardParser"]; @@ -66,7 +63,7 @@ export class Plugin<T = any> { getState(state: EditorState): T | undefined; } -export interface StateField <T> { +export interface StateField<T> { init(config: AnyObject, instance: EditorState): T; apply(tr: Transaction, value: T, oldState: EditorState, newState: EditorState): T; toJSON?: ((value: T) => any) | null; @@ -91,7 +88,7 @@ export class Selection { empty: boolean; eq(p: Selection): boolean; map(doc: Node, mapping: Mappable): Selection; - content: Slice; + content(): Slice; replace(tr: Transaction, content?: Slice): void; replaceWith(tr: Transaction, node: Node): void; toJSON(): AnyObject; diff --git a/types/prosemirror-state/prosemirror-state-tests.ts b/types/prosemirror-state/prosemirror-state-tests.ts index 5bb330ff97..7b8ff3578a 100644 --- a/types/prosemirror-state/prosemirror-state-tests.ts +++ b/types/prosemirror-state/prosemirror-state-tests.ts @@ -18,13 +18,14 @@ const mark = {} as model.Mark; const slice = {} as model.Slice; const nodeRange = {} as model.NodeRange; const step = {} as transform.Step; +const nodeType = {} as model.NodeType; let transaction: state.Transaction; transaction = new state.Transaction(node).delete(0, 0); transaction = new state.Transaction(node).addMark(0, 0, mark); transaction = new state.Transaction(node).removeMark(0, 0); -transaction = new state.Transaction(node).clearMarkup(0, 0); +transaction = new state.Transaction(node).clearIncompatible(0, nodeType); transaction = new state.Transaction(node).replaceRange(0, 0, slice); transaction = new state.Transaction(node).replaceRangeWith(0, 0, node); transaction = new state.Transaction(node).deleteRange(0, 0); @@ -35,7 +36,7 @@ transaction = new state.Transaction(node).insert(0, node); transaction = new state.Transaction(node).lift(nodeRange, 0); transaction = new state.Transaction(node).wrap(nodeRange, []); transaction = new state.Transaction(node).setBlockType(0, 0, node.type); -transaction = new state.Transaction(node).setNodeType(0); +transaction = new state.Transaction(node).setNodeMarkup(0); transaction = new state.Transaction(node).split(0); transaction = new state.Transaction(node).join(0); transaction = new state.Transaction(node).step(step); diff --git a/types/prosemirror-tables/dom.d.ts b/types/prosemirror-tables/dom.d.ts new file mode 100644 index 0000000000..b4b02d1c24 --- /dev/null +++ b/types/prosemirror-tables/dom.d.ts @@ -0,0 +1,21 @@ +export type DOMDataTransfer = DataTransfer; +export type DOMDocument = Document; +export type DOMElement = HTMLElement; +export type DOMEvent = Event; +export type DOMFragment = DocumentFragment; +export type DOMKeyboardEvent = KeyboardEvent; +export type DOMMouseEvent = MouseEvent; +export type DOMMutationRecord = MutationRecord; +export type DOMNode = Node; + +export { + DOMDataTransfer as DataTransfer, + DOMDocument as Document, + DOMElement as Element, + DOMEvent as Event, + DOMFragment as DocumentFragment, + DOMKeyboardEvent as KeyboardEvent, + DOMMouseEvent as MouseEvent, + DOMMutationRecord as MutationRecord, + DOMNode as Node, +}; diff --git a/types/prosemirror-tables/index.d.ts b/types/prosemirror-tables/index.d.ts new file mode 100644 index 0000000000..fe24b41189 --- /dev/null +++ b/types/prosemirror-tables/index.d.ts @@ -0,0 +1,125 @@ +// Type definitions for prosemirror-tables 0.1 +// Project: https://github.com/ProseMirror/prosemirror-tables +// Definitions by: Oscar Wallhult <https://github.com/superchu> +// Eduard Shvedai <https://github.com/eshvedai> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 +import { EditorState, Plugin, SelectionRange, Transaction } from 'prosemirror-state'; +import { Node, NodeSpec, Slice, ResolvedPos } from 'prosemirror-model'; +import * as dom from './dom'; + +export interface TableNodesOptions { + tableGroup?: string; + cellContent: string; + cellAttributes: { [key: string]: CellAttributes }; +} + +export type getFromDOM = (dom: dom.DOMElement) => any; +export type setDOMAttr = (value: any, attrs: any) => any; + +export interface CellAttributes { + default: any; + getFromDOM?: getFromDOM; + setDOMAttr?: setDOMAttr; +} + +export interface TableNodes { + table: NodeSpec; + table_row: NodeSpec; + table_cell: NodeSpec; + table_header: NodeSpec; +} + +export function tableNodes(options: TableNodesOptions): TableNodes; + +export interface CellSelectionJSON { + type: string; + anchor: number; + head: number; +} + +export class CellSelection { + constructor($anchorCell: ResolvedPos, $headCell?: ResolvedPos); + + from: number; + to: number; + $from: ResolvedPos; + $to: ResolvedPos; + anchor: number; + head: number; + $anchor: ResolvedPos; + $head: ResolvedPos; + $anchorCell: ResolvedPos; + $headCell: ResolvedPos; + empty: boolean; + ranges: SelectionRange[]; + + map(doc: Node, mapping: any): any; + content(): Slice; + replace(tr: Transaction, content: Slice): void; + replaceWith(tr: Transaction, node: Node): void; + forEachCell(f: (node: Node, pos: number) => void): void; + isRowSelection(): boolean; + isColSelection(): boolean; + eq(other: any): boolean; + toJSON(): CellSelectionJSON; + getBookmark(): {anchor: number, head: number}; + + static colSelection(anchorCell: ResolvedPos, headCell?: ResolvedPos): CellSelection; + static rowSelection(anchorCell: ResolvedPos, headCell?: ResolvedPos): CellSelection; + static create(doc: Node, anchorCell: number, headCell?: number): CellSelection; + static fromJSON(doc: Node, json: CellSelectionJSON): CellSelection; +} + +export interface Rect { + left: number; + top: number; + right: number; + bottom: number; +} + +export class TableMap { + width: number; + height: number; + map: number[]; + problems?: object[]; + + findCell(pos: number): Rect; + colCount(pos: number): number; + nextCell(pos: number, axis: string, dir: number): number; + rectBetween(a: number, b: number): Rect; + cellsInRect(rect: Rect): number[]; + positionAt(row: number, col: number, table: Node): number; + + static get(table: Node): TableMap; +} + +export function tableEditing(): Plugin; + +export function deleteTable(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; + +export function goToNextCell(direction: number): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean; + +export function toggleHeaderCell(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; + +export function toggleHeaderColumn(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; + +export function toggleHeaderRow(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; + +export function setCellAttr(name: string, value: any): (state: EditorState, dispatch?: (tr: Transaction) => void) => boolean; + +export function splitCell(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; + +export function mergeCells(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; + +export function deleteRow(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; + +export function addRowAfter(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; + +export function addRowBefore(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; + +export function deleteColumn(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; + +export function addColumnAfter(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; + +export function addColumnBefore(state: EditorState, dispatch?: (tr: Transaction) => void): boolean; diff --git a/types/prosemirror-tables/prosemirror-tables-tests.ts b/types/prosemirror-tables/prosemirror-tables-tests.ts new file mode 100644 index 0000000000..8c788ed54f --- /dev/null +++ b/types/prosemirror-tables/prosemirror-tables-tests.ts @@ -0,0 +1,3 @@ +import * as tables from 'prosemirror-tables'; + +const table = tables.tableEditing(); diff --git a/types/prosemirror-tables/tsconfig.json b/types/prosemirror-tables/tsconfig.json new file mode 100644 index 0000000000..822345265f --- /dev/null +++ b/types/prosemirror-tables/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "prosemirror-tables-tests.ts" + ] +} \ No newline at end of file diff --git a/types/prosemirror-tables/tslint.json b/types/prosemirror-tables/tslint.json new file mode 100644 index 0000000000..2750cc0197 --- /dev/null +++ b/types/prosemirror-tables/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/prosemirror-transform/index.d.ts b/types/prosemirror-transform/index.d.ts index a240214a15..15cc94e936 100644 --- a/types/prosemirror-transform/index.d.ts +++ b/types/prosemirror-transform/index.d.ts @@ -1,11 +1,11 @@ -// Type definitions for prosemirror-transform 0.21 +// Type definitions for prosemirror-transform 0.24 // Project: https://github.com/ProseMirror/prosemirror-transform // Definitions by: Bradley Ayers <https://github.com/bradleyayers> // David Hahn <https://github.com/davidka> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -import { Fragment, Mark, MarkType, Node, NodeRange, NodeType, Schema, Slice } from 'prosemirror-model'; +import { Fragment, Mark, MarkType, Node, NodeRange, NodeType, Schema, Slice, ContentMatch } from 'prosemirror-model'; export interface Mappable { map(pos: number, assoc?: number): number; @@ -21,6 +21,7 @@ export class StepMap { map(pos: number, assoc?: number): number; forEach(f: (oldStart: number, oldEnd: number, newStart: number, newEnd: number) => void): void; invert(): StepMap; + static offset(n: number): StepMap; } export class Mapping { constructor(maps?: StepMap[]) @@ -44,7 +45,7 @@ export class Transform { constructor(doc: Node) addMark(from: number, to: number, mark: Mark): this; removeMark(from: number, to: number, mark?: Mark | MarkType): this; - clearMarkup(from: number, to: number): this; + clearIncompatible(pos: number, parentType: NodeType, match?: ContentMatch | null): this; replaceRange(from: number, to: number, slice: Slice): this; replaceRangeWith(from: number, to: number, node: Node): this; deleteRange(from: number, to: number): this; @@ -55,7 +56,7 @@ export class Transform { lift(range: NodeRange, target: number): this; wrap(range: NodeRange, wrappers: Array<{ type: NodeType, attrs?: object | null }>): this; setBlockType(from: number, to: number | undefined, type: NodeType, attrs?: object): this; - setNodeType(pos: number, type?: NodeType, attrs?: object, marks?: Mark[]): this; + setNodeMarkup(pos: number, type?: NodeType, attrs?: object, marks?: Mark[]): this; split(pos: number, depth?: number, typesAfter?: Array<{ type: NodeType, attrs?: object | null }>): this; join(pos: number, depth?: number, p1?: boolean): this; doc: Node; @@ -80,7 +81,6 @@ export class Step { invert(doc: Node): Step; map(mapping: Mappable): Step | null | undefined; merge(other: Step): Step | null | undefined; - offset(n: number): Step; toJSON(): object; static fromJSON(schema: Schema, json: object): Step; static jsonID(id: string, stepClass: { new(...args: any[]): Step }): void; diff --git a/types/prosemirror-view/index.d.ts b/types/prosemirror-view/index.d.ts index 1c0678d046..bad46cd6ef 100644 --- a/types/prosemirror-view/index.d.ts +++ b/types/prosemirror-view/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for prosemirror-view 0.21 +// Type definitions for prosemirror-view 0.24 // Project: https://github.com/ProseMirror/prosemirror-view // Definitions by: Bradley Ayers <https://github.com/bradleyayers> // David Hahn <https://github.com/davidka> @@ -22,7 +22,7 @@ export interface DecorationAttrs { nodeName?: string | null; } export class DecorationSet { - find(start?: number, end?: number): Decoration[]; + find(start?: number, end?: number, predicate?: ((spec: object) => boolean) | null): Decoration[]; map(mapping: Mapping, doc: Node, options?: { onRemove?: ((decorationSpec: object) => void) | null }): DecorationSet; add(doc: Node, decorations: Decoration[]): DecorationSet; remove(decorations: Decoration[]): DecorationSet; @@ -43,6 +43,7 @@ export class EditorView { root: Document | DocumentFragment; posAtCoords(coords: { left: number, top: number }): { pos: number, inside: number } | null | undefined; coordsAtPos(pos: number): { left: number, right: number, top: number, bottom: number }; + domAtPos(pos: number): { node: dom.Node; offset: number }; endOfTextblock(dir: 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward', state?: EditorState): boolean; destroy(): void; dispatch(tr: Transaction): void; @@ -60,19 +61,19 @@ export interface EditorProps { handleDoubleClick?: ((view: EditorView, pos: number, event: MouseEvent) => boolean) | null; handleTripleClickOn?: ((view: EditorView, pos: number, node: Node, nodePos: number, event: MouseEvent, direct: boolean) => boolean) | null; handleTripleClick?: ((view: EditorView, pos: number, event: MouseEvent) => boolean) | null; - handleContextMenu?: ((view: EditorView, pos: number, event: MouseEvent) => boolean) | null; handlePaste?: ((view: EditorView, event: Event, slice: Slice) => boolean) | null; handleDrop?: ((view: EditorView, event: Event, slice: Slice, moved: boolean) => boolean) | null; - onFocus?: ((view: EditorView, event: Event) => void) | null; - onBlur?: ((view: EditorView, event: Event) => void) | null; + handleScrollToSelection?: ((view: EditorView) => boolean) | null; createSelectionBetween?: ((view: EditorView, anchor: ResolvedPos, head: ResolvedPos) => Selection | null | undefined) | null; domParser?: DOMParser | null; clipboardParser?: DOMParser | null; + clipboardTextParser?: ((p: string, $context: ResolvedPos) => Slice) | null; transformPasted?: ((p: Slice) => Slice) | null; transformPastedHTML?: ((p: string) => string) | null; transformPastedText?: ((p: string) => string) | null; nodeViews?: { [name: string]: (node: Node, view: EditorView, getPos: () => number, decorations: Decoration[]) => NodeView } | null; clipboardSerializer?: DOMSerializer | null; + clipboardTextSerializer?: ((slice: Slice) => string) | null; decorations?: ((p: EditorState) => DecorationSet | null | undefined) | null; editable?: ((p: EditorState) => boolean) | null; attributes?: { [name: string]: string } | ((p: EditorState) => { [name: string]: string } | null | undefined) | null; diff --git a/types/puppeteer/index.d.ts b/types/puppeteer/index.d.ts new file mode 100644 index 0000000000..fabd9060ed --- /dev/null +++ b/types/puppeteer/index.d.ts @@ -0,0 +1,386 @@ +// Type definitions for puppeteer 0.10 +// Project: https://github.com/GoogleChrome/puppeteer#readme +// Definitions by: Marvin Hagemeister <https://github.com/marvinhagemeister> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// <reference types="node" /> + +export interface Keyboard { + down(key: string, options?: { text: string }): Promise<void>; + sendCharacter(char: string): Promise<void>; + up(key: string): Promise<void>; +} + +export interface MousePressOptions { + button?: MouseButtons; + clickCount?: number; +} + +export interface Mouse { + click(x: number, y: number, options: ClickOptions): Promise<void>; + down(options?: MousePressOptions): Promise<void>; + move(x: number, y: number, options?: { steps: number }): Promise<void>; + up(options?: MousePressOptions): Promise<void>; +} + +export interface Touchscreen { + tap(x: number, y: number): Promise<void>; +} + +export interface Tracing { + start(options: { path: string; screenshots?: boolean }): Promise<void>; + stop(): Promise<void>; +} + +export interface Dialog { + accept(promptText?: string): Promise<void>; + defaultValue(): string; + dismiss(): Promise<void>; + message(): string; + type: "alert" | "beforeunload" | "confirm" | "prompt"; +} + +export type PageEvents = + | "console" + | "dialog" + | "error" + | "frameattached" + | "framedetached" + | "framenavigated" + | "load" + | "pageerror" + | "request" + | "requestfailed" + | "requestfinished" + | "response"; + +export interface AuthOptions { + username: string; + password: string; +} + +export type MouseButtons = "left" | "right" | "middle"; + +export interface ClickOptions { + /** defaults to left */ + button?: MouseButtons; + /** defaults to 1 */ + clickCount?: number; + /** + * Time to wait between mousedown and mouseup in milliseconds. + * Defaults to 0. + */ + delay?: number; +} + +export interface Cookie { + name: string; + value: string; + domain: string; + path: string; + expires: number; + httpOnly: boolean; + secure: boolean; + sameSite: "Strict" | "Lax"; +} + +export interface Viewport { + width: number; + height: number; + deviceScaleFactor?: number; + isMobile?: boolean; + hasTouch?: boolean; + isLandscape?: boolean; +} + +export interface EmulateOptions { + viewport?: Viewport; + userAgent?: string; +} + +export type EvaluateFn<T> = (elem?: ElementHandle) => Promise<T>; + +export interface NavigationOptions { + timeout?: number; + waitUntil?: "load" | "networkidle" | "networkIdleTimeout"; + networkIdleInflight?: number; + networkIdleTimeout?: number; +} + +export type PDFFormat = + | "Letter" + | "Legal" + | "Tabload" + | "Ledger" + | "A0" + | "A1" + | "A2" + | "A3" + | "A4" + | "A5"; + +export interface PDFOptions { + /** If no path is provided, the PDF won't be saved to the disk. */ + path?: string; + scale?: number; + displayHeaderFooter?: boolean; + printBackground?: boolean; + landscape?: boolean; + /** + * Paper ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty + * string, which means print all pages. + */ + pageRanges?: string; + format?: PDFFormat; + width?: string; + height?: string; + margin?: { + top?: string; + right?: string; + bottom?: string; + left?: string; + }; +} + +export interface ScreenshotOptions { + path?: string; + type?: "jpeg" | "png"; + /** The quality of the image, between 0-100. Not applicable to png images. */ + quality?: number; + fullPage?: boolean; + clip?: { + x: number; + y: number; + width: number; + height: number; + }; + omitBackground?: boolean; +} + +export interface PageFnOptions { + polling?: "raf" | "mutation" | number; + timeout?: number; +} + +export interface ElementHandle { + click(options?: ClickOptions): Promise<void>; + dispose(): Promise<void>; + hover(): Promise<void>; + tap(): Promise<void>; + uploadFile(...filePaths: string[]): Promise<void>; +} + +export type Headers = Record<string, string>; +export type HttpMethod = + | "GET" + | "POST" + | "PATCH" + | "PUT" + | "DELETE" + | "OPTIONS"; + +export type ResourceType = + | "Document" + | "Stylesheet" + | "Image" + | "Media" + | "Font" + | "Script" + | "TextTrack" + | "XHR" + | "Fetch" + | "EventSource" + | "WebSocket" + | "Manifest" + | "Other"; + +export interface Overrides { + url?: string; + method?: HttpMethod; + postData?: string; + headers?: Headers; +} + +export interface Request { + abort(): Promise<void>; + continue(overrides?: Overrides): Promise<void>; + headers: Headers; + method: HttpMethod; + postData: string | undefined; + resourceType: ResourceType; + response(): Response | null; + url: string; +} + +export interface Response { + buffer(): Promise<Buffer>; + headers: Headers; + json(): Promise<object>; + ok: boolean; + request(): Request; + status: number; + text(): Promise<string>; + url: string; +} + +export interface FrameBase { + $(selector: string): Promise<ElementHandle>; + $$(selector: string): Promise<ElementHandle[]>; + $eval( + selector: string, + fn: (...args: Array<object | ElementHandle>) => void + ): Promise<object>; + addScriptTag(url: string): Promise<void>; + injectFile(filePath: string): Promise<void>; + evaluate<T = string>( + fn: T | EvaluateFn<T>, + ...args: Array<object | ElementHandle> + ): Promise<T>; + title(): Promise<string>; + url(): Promise<string>; + waitFor( + // fn can be an abritary function + // tslint:disable-next-line ban-types + selectorOrFunctionOrTimeout: string | number | Function, + options?: object + ): Promise<void>; + waitForFunction( + // fn can be an abritary function + // tslint:disable-next-line ban-types + fn: string | Function, + options?: PageFnOptions, + ...args: any[] + ): Promise<void>; + waitForNavigation(options?: NavigationOptions): Promise<Response>; + waitForSelector( + selector: string, + options?: { visible: boolean; timeout: number } + ): Promise<void>; +} + +export interface Frame extends FrameBase { + childFrames(): Frame[]; + isDetached(): boolean; + name(): string; + parentFrame(): Frame | undefined; +} + +export interface EventObj { + console: string; + dialog: Dialog; + error: Error; + frameattached: Frame; + framedetached: Frame; + framenavigated: Frame; + load: undefined; + pageerror: string; + request: Request; + requestfailed: Request; + requestfinished: Request; + response: Response; +} + +export interface Page extends FrameBase { + on(event: "console", handler: (...args: any[]) => void): void; + on<K extends keyof EventObj>( + event: K, + handler: (e: EventObj[K], ...args: any[]) => void + ): void; + authenticate(credentials: AuthOptions | null): Promise<void>; + click(selector: string, options?: ClickOptions): Promise<void>; + close(): Promise<void>; + content(): Promise<string>; + cookies(...urls: string[]): Cookie; + emulate(options: Partial<EmulateOptions>): Promise<void>; + emulateMedia(mediaType: string | null): Promise<void>; + evaluateOnNewDocument( + fn: EvaluateFn<string>, + ...args: object[] + ): Promise<void>; + + // Argument `fn` can be an arbitrary function + exposeFunction(name: string, fn: any): Promise<void>; + + focus(selector: string): Promise<void>; + frames(): Frame[]; + goBack(options?: Partial<NavigationOptions>): Promise<Response>; + goForward(options?: Partial<NavigationOptions>): Promise<Response>; + goto(url: string, options?: Partial<NavigationOptions>): Promise<Response>; + hover(selector: string): Promise<void>; + keyboard: Keyboard; + mainFrame(): Frame; + mouse: Mouse; + pdf(options?: Partial<PDFOptions>): Promise<Buffer>; + plainText(): Promise<string>; + press(key: string, options?: { text: string; delay: number }): Promise<void>; + reload(options?: NavigationOptions): Promise<Response>; + screenshot(options?: ScreenshotOptions): Promise<Buffer>; + setContent(html: string): Promise<void>; + setCookie(...cookies: Cookie[]): Promise<void>; + setExtraHTTPHeaders(headers: Headers): Promise<void>; + setJavaScriptEnabled(enabled: boolean): Promise<void>; + setRequestInterceptionEnabled(value: boolean): Promise<void>; + setUserAgent(userAgent: string): Promise<void>; + setViewport(viewport: Viewport): Promise<void>; + tap(selector: string): Promise<void>; + touchscreen: Touchscreen; + tracing: Tracing; + type(text: string, options?: { delay: number }): Promise<void>; + viewport(): Viewport; +} + +export interface Browser { + close(): Promise<void>; + newPage(): Promise<Page>; + version(): Promise<string>; + wsEndpoint(): string; +} + +export interface LaunchOptions { + /** Whether to ignore HTTPS errors during navigation. Defaults to false. */ + ignoreHTTPSErrors?: boolean; + /** Whether to run Chromium in headless mode. Defaults to true. */ + headless?: boolean; + /** + * Path to a Chromium executable to run instead of bundled Chromium. If + * executablePath is a relative path, then it is resolved relative to current + * working directory. + */ + executablePath?: string; + /** + * Slows down Puppeteer operations by the specified amount of milliseconds. + * Useful so that you can see what is going on. + */ + slowMo?: number; + /** + * Additional arguments to pass to the Chromium instance. List of Chromium + * flags can be found here. + */ + args?: string[]; + /** Close chrome process on Ctrl-C. Defaults to true. */ + handleSIGINT?: boolean; + /** + * Maximum time in milliseconds to wait for the Chrome instance to start. + * Defaults to 30000 (30 seconds). Pass 0 to disable timeout. + */ + timeout?: number; + /** + * Whether to pipe browser process stdout and stderr into process.stdout and + * process.stderr. Defaults to false. + */ + dumpio?: boolean; + /** Path to a User Data Directory. */ + userDataDir?: string; +} + +export interface ConnectOptions { + browserWSEndpoint?: string; + ignoreHTTPSErrors?: boolean; +} + +/** Attaches Puppeteer to an existing Chromium instance */ +export function connect(options?: ConnectOptions): Promise<Browser>; +/** Path where Puppeteer expects to find bundled Chromium */ +export function executablePath(): string; +export function launch(options?: LaunchOptions): Promise<Browser>; diff --git a/types/puppeteer/puppeteer-tests.ts b/types/puppeteer/puppeteer-tests.ts new file mode 100644 index 0000000000..b7ca789cde --- /dev/null +++ b/types/puppeteer/puppeteer-tests.ts @@ -0,0 +1,170 @@ +import * as puppeteer from "puppeteer"; + +// Examples taken from README +(async () => { + const browser = await puppeteer.launch(); + const page = await browser.newPage(); + await page.goto("https://example.com"); + await page.screenshot({ path: "example.png" }); + + browser.close(); +})(); + +(async () => { + const browser = await puppeteer.launch(); + const page = await browser.newPage(); + await page.goto("https://news.ycombinator.com", { waitUntil: "networkidle" }); + await page.pdf({ path: "hn.pdf", format: "A4" }); + + browser.close(); +})(); + +(async () => { + const browser = await puppeteer.launch(); + const page = await browser.newPage(); + await page.goto("https://example.com"); + + // Get the "viewport" of the page, as reported by the page. + const dimensions = await page.evaluate(() => { + return { + width: document.documentElement.clientWidth, + height: document.documentElement.clientHeight, + deviceScaleFactor: window.devicePixelRatio + }; + }); + + console.log("Dimensions:", dimensions); + + browser.close(); +})(); + +// The following examples are taken from the docs itself +puppeteer.launch().then(async browser => { + const page = await browser.newPage(); + page.on("console", (...args) => { + for (let i = 0; i < args.length; ++i) console.log(`${i}: ${args[i]}`); + }); + page.evaluate(() => console.log(5, "hello", { foo: "bar" })); + + const result = await page.evaluate(() => { + return Promise.resolve(8 * 7); + }); + console.log(await page.evaluate("1 + 2")); + + const bodyHandle = await page.$("body"); + + // Typings for this are really difficult since they depend on internal state + // of the page class. + const html = await page.evaluate( + (body: HTMLElement) => body.innerHTML, + bodyHandle + ); +}); + +import * as crypto from "crypto"; +import * as fs from "fs"; + +puppeteer.launch().then(async browser => { + const page = await browser.newPage(); + page.on("console", console.log); + await page.exposeFunction("md5", (text: string) => + crypto + .createHash("md5") + .update(text) + .digest("hex") + ); + await page.evaluate(async () => { + // use window.md5 to compute hashes + const myString = "PUPPETEER"; + const myHash = await (window as any).md5(myString); + console.log(`md5 of ${myString} is ${myHash}`); + }); + browser.close(); + + page.on("console", console.log); + await page.exposeFunction("readfile", async (filePath: string) => { + return new Promise((resolve, reject) => { + fs.readFile(filePath, "utf8", (err, text) => { + if (err) reject(err); + else resolve(text); + }); + }); + }); + await page.evaluate(async () => { + // use window.readfile to read contents of a file + const content = await (window as any).readfile("/etc/hosts"); + console.log(content); + }); + + await page.emulateMedia("screen"); + await page.pdf({ path: "page.pdf" }); + + await page.setRequestInterceptionEnabled(true); + page.on("request", interceptedRequest => { + if ( + interceptedRequest.url.endsWith(".png") || + interceptedRequest.url.endsWith(".jpg") + ) + interceptedRequest.abort(); + else interceptedRequest.continue(); + }); + + page.type("Hello"); // Types instantly + page.type("World", { delay: 100 }); // Types slower, like a user + + const watchDog = page.waitForFunction("window.innerWidth < 100"); + page.setViewport({ width: 50, height: 50 }); + await watchDog; + + let currentURL: string; + page + .waitForSelector("img") + .then(() => console.log("First URL with image: " + currentURL)); + for (currentURL of [ + "https://example.com", + "https://google.com", + "https://bbc.com" + ]) { + await page.goto(currentURL); + } + + page.type("Hello World!"); + page.press("ArrowLeft"); + + page.keyboard.down("Shift"); + // tslint:disable-next-line prefer-for-of + for (let i = 0; i < " World".length; i++) { + page.press("ArrowLeft"); + } + page.keyboard.up("Shift"); + page.press("Backspace"); + page.keyboard.sendCharacter("嗨"); + + await page.tracing.start({ path: "trace.json" }); + await page.goto("https://www.google.com"); + await page.tracing.stop(); + + page.on("dialog", async dialog => { + console.log(dialog.message()); + await dialog.dismiss(); + browser.close(); + }); + + const inputElement = await page.$("input[type=submit]"); + await inputElement.click(); +}); + +// Example with launch options +(async () => { + const browser = await puppeteer.launch({ + args: [ + '--no-sandbox', + '--disable-setuid-sandbox', + ] + }); + const page = await browser.newPage(); + await page.goto("https://example.com"); + await page.screenshot({ path: "example.png" }); + + browser.close(); +})(); diff --git a/types/puppeteer/tsconfig.json b/types/puppeteer/tsconfig.json new file mode 100644 index 0000000000..287537e136 --- /dev/null +++ b/types/puppeteer/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6", "dom", "es2017"], + "target": "es2017", + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": ["../"], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": ["index.d.ts", "puppeteer-tests.ts"] +} diff --git a/types/puppeteer/tslint.json b/types/puppeteer/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/puppeteer/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/q/q-tests.ts b/types/q/q-tests.ts index cb9e46e5a7..f54f913e07 100644 --- a/types/q/q-tests.ts +++ b/types/q/q-tests.ts @@ -144,13 +144,13 @@ const nodeStyle = (input: string, cb: (error: any, success: any) => void) => { cb(null, input); }; -Q.nfapply(nodeStyle, ["foo"]).done((result: string) => { +Q.nfapply<string>(nodeStyle, ["foo"]).done((result: string) => { }); -Q.nfcall(nodeStyle, "foo").done((result: string) => { +Q.nfcall<string>(nodeStyle, "foo").done((result: string) => { }); -Q.denodeify(nodeStyle)('foo').done((result: string) => { +Q.denodeify<string>(nodeStyle)('foo').done((result: string) => { }); -Q.nfbind(nodeStyle)('foo').done((result: string) => { +Q.nfbind<string>(nodeStyle)('foo').done((result: string) => { }); class Repo { @@ -171,7 +171,7 @@ class Repo { } const kitty = new Repo(); -Q.nbind(kitty.find, kitty)({cute: true}).done((kitties: any[]) => { +Q.nbind<any[]>(kitty.find, kitty)({cute: true}).done((kitties: any[]) => { }); /** diff --git a/types/quill/index.d.ts b/types/quill/index.d.ts index d8a9bf3c27..6325913519 100644 --- a/types/quill/index.d.ts +++ b/types/quill/index.d.ts @@ -51,6 +51,8 @@ export interface QuillOptionsStatic { theme?: string; formats?: string[]; bounds?: HTMLElement | string; + scrollingContainer?: HTMLElement | string; + strict?: boolean; } export interface BoundsStatic { diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 81ce8cde36..209d61a35f 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -225,9 +225,9 @@ declare namespace R { /** * Returns a new list containing the contents of the given list, followed by the given element. */ + append<U>(el: U): <T>(list: T[]) => Array<(T & U)>; append<T, U>(el: U, list: T[]): Array<(T & U)>; - append<U>(el: U): <T>(list: T[]) => Array<(T & U)>; - append<U>(el: U): <T>(list: T[]) => Array<(T & U)>; + append<T>(el: T, list: string): Array<T & string>; /** * Applies function fn to the argument list args. This is useful for creating a fixed-arity function from @@ -1227,9 +1227,9 @@ declare namespace R { * If the given, non-null object has a value at the given path, returns the value at that path. * Otherwise returns the provided default value. */ - pathOr<T>(d: T, p: Path, obj: any): any; - pathOr<T>(d: T, p: Path): (obj: any) => any; - pathOr<T>(d: T): CurriedFunction2<Path, any, any>; + pathOr<T>(defaultValue: T, path: Path, obj: any): any; + pathOr<T>(defaultValue: T, path: Path): (obj: any) => any; + pathOr<T>(defaultValue: T): CurriedFunction2<Path, any, any>; /** * Returns true if the specified object property at given path satisfies the given predicate; false otherwise. @@ -1438,7 +1438,7 @@ declare namespace R { * Note: TS1.9 # replace any by dictionary */ prop<T>(p: string, obj: any): T; - prop<T>(p: string): <T>(obj: any) => T; + prop<T>(p: string): (obj: any) => T; /** * Determines whether the given property of an object has a specific @@ -1525,9 +1525,9 @@ declare namespace R { * function and passing it an accumulator value and the current value from the array, and * then passing the result to the next call. */ - reduceRight<T, TResult>(fn: (acc: TResult, elem: T) => TResult, acc: TResult, list: T[]): TResult; - reduceRight<T, TResult>(fn: (acc: TResult, elem: T) => TResult): (acc: TResult, list: T[]) => TResult; - reduceRight<T, TResult>(fn: (acc: TResult, elem: T) => TResult, acc: TResult): (list: T[]) => TResult; + reduceRight<T, TResult>(fn: (elem: T, acc: TResult) => TResult, acc: TResult, list: T[]): TResult; + reduceRight<T, TResult>(fn: (elem: T, acc: TResult) => TResult): (acc: TResult, list: T[]) => TResult; + reduceRight<T, TResult>(fn: (elem: T, acc: TResult) => TResult, acc: TResult): (list: T[]) => TResult; /** * Similar to `filter`, except that it keeps only values for which the given predicate diff --git a/types/ramda/ramda-tests.ts b/types/ramda/ramda-tests.ts index 5d8dc09005..7ecd3e5f60 100644 --- a/types/ramda/ramda-tests.ts +++ b/types/ramda/ramda-tests.ts @@ -151,9 +151,9 @@ class F2 { }; () => { - const truncate = R.when( + const truncate = R.when( R.propSatisfies(R.flip(R.gt)(10), "length"), - R.pipe(R.take(10), R.append("…"), R.join("")) + R.pipe<string,string,string[],string>(R.take(10), R.append("…") as (wrong: any) => string[], R.join("")) ); const a: string = truncate("12345"); // => '12345' const b: string = truncate("0123456789ABC"); // => '0123456789…' @@ -317,8 +317,7 @@ R.times(i, 5); (() => { const numbers = [1, 2, 3]; - const add = (a: number, b: number) => a + b; - R.reduce(add, 10, numbers); // => 16; + R.reduce((a,b) => a + b, 10, numbers); // => 16; })(); (() => { @@ -326,9 +325,9 @@ R.times(i, 5); })(); (() => { - const pairs = [["a", 1], ["b", 2], ["c", 3]]; + const pairs = [["a", 1], ["b", 2], ["c", 3]] as [string, number][]; - function flattenPairs(acc: [string, number], pair: [string, number]) { + function flattenPairs(pair: [string, number], acc: Array<string|number>): Array<string|number> { return acc.concat(pair); } @@ -854,13 +853,9 @@ interface Obj { () => { const numbers = [1, 2, 3]; - function add(a: number, b: number) { - return a + b; - } - - R.reduce(add, 10, numbers); // => 16 + R.reduce((a,b) => a + b, 10, numbers); // => 16 R.reduce(add)(10, numbers); // => 16 - R.reduce(add, 10)(numbers); // => 16 + R.reduce<number,number>((a,b) => a + b, 10)(numbers); // => 16 }; interface Student { @@ -911,7 +906,7 @@ type Pair = KeyValuePair<string, number>; () => { const pairs: Pair[] = [["a", 1], ["b", 2], ["c", 3]]; - function flattenPairs(acc: Pair[], pair: Pair): Pair[] { + function flattenPairs(pair: Pair, acc: Array<string|number>): Array<string|number> { return acc.concat(pair); } @@ -1086,7 +1081,7 @@ type Pair = KeyValuePair<string, number>; R.transduce(transducer, fn, [], numbers); // => [2, 3] R.transduce(transducer, fn, [])(numbers); // => [2, 3] R.transduce(transducer, fn)([], numbers); // => [2, 3] - R.transduce(transducer)(fn, [], numbers); // => [2, 3] + R.transduce<number, number>(transducer)(fn, [], numbers); // => [2, 3] }; () => { @@ -1101,7 +1096,7 @@ type Pair = KeyValuePair<string, number>; const list = [1, 2, 3]; R.traverse(of, fn, list); R.traverse(of, fn)(list); - R.traverse(of)(fn, list); + R.traverse<number, number[], {}>(of)(fn, list); }; () => { @@ -1691,7 +1686,7 @@ class Rectangle { const format = R.converge( R.call, [ - R.pipe(R.prop("indent"), indentN), + R.pipe<{}, number, (s: string) => string>(R.prop("indent"), indentN), R.prop("value") ] ); @@ -1841,7 +1836,7 @@ class Rectangle { }; () => { - const sortByAgeDescending = R.sortBy(R.compose(R.negate, R.prop("age"))); + const sortByAgeDescending = R.sortBy(R.compose<{}, number, number>(R.negate, R.prop("age"))); const alice = { name: "ALICE", age : 101 @@ -1859,7 +1854,7 @@ class Rectangle { }; () => { - const sortByNameCaseInsensitive = R.sortBy(R.compose(R.toLower, R.prop("name"))); + const sortByNameCaseInsensitive = R.sortBy(R.compose<string,string,string>(R.toLower, R.prop("name"))); const alice = { name: "ALICE", age : 101 diff --git a/types/ramda/tslint.json b/types/ramda/tslint.json index efa861d7ff..31c2a606ef 100644 --- a/types/ramda/tslint.json +++ b/types/ramda/tslint.json @@ -1,7 +1,9 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs "no-construct": false, // Required for R.is function testing - "no-any-union": false + "no-any-union": false, + "no-unnecessary-generics": false } } diff --git a/types/react-addons-test-utils/index.d.ts b/types/react-addons-test-utils/index.d.ts index 97131130eb..b65262753a 100644 --- a/types/react-addons-test-utils/index.d.ts +++ b/types/react-addons-test-utils/index.d.ts @@ -80,6 +80,7 @@ declare namespace TestUtils { export var blur: EventSimulator; export var change: EventSimulator; export var click: EventSimulator; + export var contextMenu: EventSimulator; export var copy: EventSimulator; export var cut: EventSimulator; export var doubleClick: EventSimulator; diff --git a/types/react-app/index.d.ts b/types/react-app/index.d.ts index 58aa3387d0..a126c914e2 100644 --- a/types/react-app/index.d.ts +++ b/types/react-app/index.d.ts @@ -37,5 +37,5 @@ export function createApp(createAppObject: CreateAppObject): JSX.Element; export class Link extends React.Component<LinkProps> {} export class Layout extends React.Component<LayoutProps> {} -export class Header extends React.Component<{}> {} -export class Navigation extends React.Component<{}> {} +export class Header extends React.Component {} +export class Navigation extends React.Component {} diff --git a/types/react-beautiful-dnd/index.d.ts b/types/react-beautiful-dnd/index.d.ts new file mode 100644 index 0000000000..d01c4ef81e --- /dev/null +++ b/types/react-beautiful-dnd/index.d.ts @@ -0,0 +1,104 @@ +// Type definitions for react-beautiful-dnd 2.3 +// Project: https://github.com/atlassian/react-beautiful-dnd +// Definitions by: varHarrie <https://github.com/varHarrie> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +import * as React from 'react'; + +export type Id = string; + +export type DraggableId = Id; + +export type DroppableId = Id; + +export type TypeId = Id; + +export interface DraggableLocation { + droppableId: DroppableId; + index: number; +} + +/** + * DragDropContext + */ + +export interface DragStart { + draggableId: DraggableId; + type: TypeId; + source: DraggableLocation; +} + +export interface DropResult { + draggableId: DraggableId; + type: TypeId; + source: DraggableLocation; + destination?: DraggableLocation; +} + +export interface DragDropContextProps { + onDragStart?(initial: DragStart): void; + onDragEnd(result: DropResult): void; +} + +export class DragDropContext extends React.Component<DragDropContextProps> {} + +/** + * Droppable + */ + +export interface DroppableProvided { + innerRef(element: HTMLElement | null): any; + placeholder?: React.ReactElement<any>; +} + +export interface DroppableStateSnapshot { + isDraggingOver: boolean; +} + +export interface DroppableProps { + droppableId: DroppableId; + type?: TypeId; + isDropDisabled?: boolean; + direction?: 'vertical' | 'horizontal'; + children(provided: DroppableProvided, snapshot: DroppableStateSnapshot): React.ReactElement<any>; +} + +export class Droppable extends React.Component<DroppableProps> {} + +/** + * Draggable + */ + +export type DraggableStyle = any; + +export interface DragHandleProps { + onMouseDown(event: MouseEvent): void; + onKeyDown(event: KeyboardEvent): void; + onClick(event: MouseEvent): void; + tabIndex: number; + 'aria-grabbed': boolean; + draggable: boolean; + onDragStart(): void; + onDrop(): void; +} + +export interface DraggableProvided { + innerRef(element?: HTMLElement | null): any; + draggableStyle?: DraggableStyle; + dragHandleProps?: DragHandleProps; + placeholder?: React.ReactElement<any>; +} + +export interface DraggableStateSnapshot { + isDragging: boolean; +} + +export interface DraggableProps { + draggableId: DroppableId; + type?: TypeId; + isDragDisabled?: boolean; + children(provided: DraggableProvided, snapshot: DraggableStateSnapshot): React.ReactElement<any>; +} + +export class Draggable extends React.Component<DraggableProps> {} diff --git a/types/react-beautiful-dnd/react-beautiful-dnd-tests.tsx b/types/react-beautiful-dnd/react-beautiful-dnd-tests.tsx new file mode 100644 index 0000000000..3efc2529ce --- /dev/null +++ b/types/react-beautiful-dnd/react-beautiful-dnd-tests.tsx @@ -0,0 +1,103 @@ +import * as React from 'react'; +import * as ReactDOM from 'react-dom'; +import { DragDropContext, Draggable, Droppable, DropResult } from 'react-beautiful-dnd'; + +interface Item { + id: string; + content: string; +} + +const getItems = (count: number): Item[] => { + return Array + .from({length: count}, (v, k) => k) + .map(k => ({ + id: `item-${k}`, + content: `item ${k}` + })); +}; + +const reorder = (list: any[], startIndex: number, endIndex: number) => { + const result = Array.from(list); + const [removed] = result.splice(startIndex, 1); + result.splice(endIndex, 0, removed); + + return result; +}; + +const getItemStyle = (draggableStyle: any, isDragging: any) => ({ + userSelect: 'none', + background: isDragging ? 'lightgreen' : 'grey', + ...draggableStyle +}); + +const getListStyle = (isDraggingOver: any) => ({ + background: isDraggingOver ? 'lightblue' : 'lightgrey', + width: 250 +}); + +interface AppState { + items: Item[]; +} + +class App extends React.Component<{}, AppState> { + constructor(props: any) { + super(props); + + this.state = { + items: getItems(10) + }; + this.onDragEnd = this.onDragEnd.bind(this); + } + + onDragEnd(result: DropResult) { + if (!result.destination) { + return; + } + + const items = reorder( + this.state.items, + result.source.index, + result.destination.index + ); + + this.setState({items}); + } + + render() { + return ( + <DragDropContext onDragEnd={this.onDragEnd}> + <Droppable droppableId="droppable"> + {(provided, snapshot) => ( + <div + ref={provided.innerRef} + style={getListStyle(snapshot.isDraggingOver)} + > + {this.state.items.map(item => ( + <Draggable key={item.id} draggableId={item.id}> + {(provided, snapshot) => ( + <div> + <div + ref={provided.innerRef} + style={getItemStyle( + provided.draggableStyle, + snapshot.isDragging + )} + {...provided.dragHandleProps} + > + {item.content} + </div> + {provided.placeholder} + </div> + )} + </Draggable> + ))} + {provided.placeholder} + </div> + )} + </Droppable> + </DragDropContext> + ); + } +} + +ReactDOM.render(<App />, document.getElementById('app')); diff --git a/types/react-beautiful-dnd/tsconfig.json b/types/react-beautiful-dnd/tsconfig.json new file mode 100644 index 0000000000..1dc2ee7b8a --- /dev/null +++ b/types/react-beautiful-dnd/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "jsx": "react", + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-beautiful-dnd-tests.tsx" + ] +} diff --git a/types/react-beautiful-dnd/tslint.json b/types/react-beautiful-dnd/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/react-beautiful-dnd/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/react-big-calendar/index.d.ts b/types/react-big-calendar/index.d.ts index 529d14a369..7fc53b0ea2 100644 --- a/types/react-big-calendar/index.d.ts +++ b/types/react-big-calendar/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-big-calendar 0.14.0 +// Type definitions for react-big-calendar 0.15.0 // Project: https://github.com/intljusticemission/react-big-calendar // Definitions by: Piotr Witek <http://piotrwitek.github.io> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -9,6 +9,14 @@ declare module 'react-big-calendar' { type stringOrDate = string | Date; + interface CalendarEvent { + title: string; + allDay: boolean; + start: Date; + end: Date; + desc: string; + } + interface BigCalendarProps extends React.Props<BigCalendar> { date?: stringOrDate; view?: string; @@ -16,7 +24,7 @@ declare module 'react-big-calendar' { onNavigate?: Function; onView?: Function; onSelectSlot?: (slotInfo: { start: stringOrDate, end: stringOrDate, slots: Date[] | string[] }) => void; - onSelectEvent?: (event: Object) => void; + onSelectEvent?: (event: CalendarEvent) => void; onSelecting?: (slotInfo: { start: stringOrDate, end: stringOrDate }) => boolean; views?: Object; toolbar?: boolean; diff --git a/types/react-big-calendar/react-big-calendar-tests.tsx b/types/react-big-calendar/react-big-calendar-tests.tsx index b123532d49..8afdc205e8 100644 --- a/types/react-big-calendar/react-big-calendar-tests.tsx +++ b/types/react-big-calendar/react-big-calendar-tests.tsx @@ -12,6 +12,22 @@ BigCalendar.momentLocalizer(moment); // Testing examples from demos page // http://intljusticemission.github.io/react-big-calendar/examples/index.html +class CalendarEvent { + public title: string; + public allDay: boolean; + public start: Date; + public end: Date; + public desc: string; + + public constructor(_title: string, _start: Date, _end: Date, _allDay?: boolean, _desc?: string) { + this.title = _title; + this.allDay = _allDay || false; + this.start = _start; + this.end = _end; + this.desc = _desc || ''; + } +} + // Basic Example Test const BasicExample = React.createClass({ render() { @@ -81,75 +97,20 @@ const fullApiExampleHtml = ReactDOMServer.renderToString(<FullAPIExample />); console.log('Test Results -> FullAPIExample', fullApiExampleHtml); // Test fixtures -function getEvents(): Object[] { - return [ - { - 'title': 'All Day Event', - 'allDay': true, - 'start': new Date(2015, 3, 0), - 'end': new Date(2015, 3, 0) - }, - { - 'title': 'Long Event', - 'start': new Date(2015, 3, 7), - 'end': new Date(2015, 3, 10) - }, - - { - 'title': 'DTS STARTS', - 'start': new Date(2016, 2, 13, 0, 0, 0), - 'end': new Date(2016, 2, 20, 0, 0, 0) - }, - - { - 'title': 'DTS ENDS', - 'start': new Date(2016, 10, 6, 0, 0, 0), - 'end': new Date(2016, 10, 13, 0, 0, 0) - }, - - { - 'title': 'Some Event', - 'start': new Date(2015, 3, 9, 0, 0, 0), - 'end': new Date(2015, 3, 9, 0, 0, 0) - }, - { - 'title': 'Conference', - 'start': new Date(2015, 3, 11), - 'end': new Date(2015, 3, 13), - desc: 'Big conference for important people' - }, - { - 'title': 'Meeting', - 'start': new Date(2015, 3, 12, 10, 30, 0, 0), - 'end': new Date(2015, 3, 12, 12, 30, 0, 0), - desc: 'Pre-meeting meeting, to prepare for the meeting' - }, - { - 'title': 'Lunch', - 'start': new Date(2015, 3, 12, 12, 0, 0, 0), - 'end': new Date(2015, 3, 12, 13, 0, 0, 0), - desc: 'Power lunch' - }, - { - 'title': 'Meeting', - 'start': new Date(2015, 3, 12, 14, 0, 0, 0), - 'end': new Date(2015, 3, 12, 15, 0, 0, 0) - }, - { - 'title': 'Happy Hour', - 'start': new Date(2015, 3, 12, 17, 0, 0, 0), - 'end': new Date(2015, 3, 12, 17, 30, 0, 0), - desc: 'Most important meal of the day' - }, - { - 'title': 'Dinner', - 'start': new Date(2015, 3, 12, 20, 0, 0, 0), - 'end': new Date(2015, 3, 12, 21, 0, 0, 0) - }, - { - 'title': 'Birthday Party', - 'start': new Date(2015, 3, 13, 7, 0, 0), - 'end': new Date(2015, 3, 13, 10, 30, 0) - } +function getEvents(): CalendarEvent[] { + var events: CalendarEvent[] = [ + new CalendarEvent('All Day Event', new Date(2015, 3, 0), new Date(2015, 3, 0), true), + new CalendarEvent('Long Event', new Date(2015, 3, 7), new Date(2015, 3, 10)), + new CalendarEvent('DTS STARTS', new Date(2016, 2, 13, 0, 0, 0), new Date(2016, 2, 20, 0, 0, 0)), + new CalendarEvent('DTS ENDS', new Date(2016, 10, 6, 0, 0, 0), new Date(2016, 10, 13, 0, 0, 0)), + new CalendarEvent('Some Event', new Date(2015, 3, 9, 0, 0, 0), new Date(2015, 3, 9, 0, 0, 0)), + new CalendarEvent('Conference', new Date(2015, 3, 11), new Date(2015, 3, 13), undefined, 'Big conference for important people'), + new CalendarEvent('Meeting', new Date(2015, 3, 12, 10, 30, 0, 0),new Date(2015, 3, 12, 12, 30, 0, 0), undefined, 'Pre-meeting meeting, to prepare for the meeting'), + new CalendarEvent('Lunch', new Date(2015, 3, 12, 12, 0, 0, 0),new Date(2015, 3, 12, 13, 0, 0, 0), undefined, 'Power lunch'), + new CalendarEvent('Meeting', new Date(2015, 3, 12, 14, 0, 0, 0),new Date(2015, 3, 12, 15, 0, 0, 0)), + new CalendarEvent('Happy Hour', new Date(2015, 3, 12, 17, 0, 0, 0),new Date(2015, 3, 12, 17, 30, 0, 0),undefined,'Most important meal of the day'), + new CalendarEvent('Dinner', new Date(2015, 3, 12, 20, 0, 0, 0),new Date(2015, 3, 12, 21, 0, 0, 0)), + new CalendarEvent('Birthday Party', new Date(2015, 3, 13, 7, 0, 0),new Date(2015, 3, 13, 10, 30, 0)), ]; + return events; }; diff --git a/types/react-bootstrap-table/index.d.ts b/types/react-bootstrap-table/index.d.ts index 6d66785e00..57c8d02218 100644 --- a/types/react-bootstrap-table/index.d.ts +++ b/types/react-bootstrap-table/index.d.ts @@ -1,10 +1,9 @@ -// Type definitions for react-bootstrap-table v2.6.0 +// Type definitions for react-bootstrap-table 2.6 // Project: https://github.com/AllenFang/react-bootstrap-table // Definitions by: Frank Laub <https://github.com/flaub>, Aleksander Lode <https://github.com/alelode>, Josué Us <https://github.com/UJosue10> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -/// <reference types="react" /> /// <reference types="node" /> // documentation taken from http://allenfang.github.io/react-bootstrap-table/docs.html @@ -14,65 +13,65 @@ import { EventEmitter } from 'events'; /** * Interface spec for sepcifying functionality to handle remotely - * + * * Consult [documentation](https://allenfang.github.io/react-bootstrap-table/docs.html#remote) * for more info - * + * * @interface RemoteObjSpec */ export interface RemoteObjSpec { /** * If set, cell edits will be handled remotely - * + * * @type {boolean} * @memberof RemoteObjSpec */ cellEdit?: boolean; /** * If set insertions will be handled remotely - * + * * @type {boolean} * @memberof RemoteObjSpec */ insertRow?: boolean; /** * If set deletion will be handled remotely - * + * * @type {boolean} * @memberof RemoteObjSpec */ dropRow?: boolean; /** * If set filters will be handled remotely - * + * * @type {boolean} * @memberof RemoteObjSpec */ filter?: boolean; /** * If set search will be handled remotely - * + * * @type {boolean} * @memberof RemoteObjSpec */ search?: boolean; /** * If set, exporting CSV will be handled remotely - * + * * @type {boolean} * @memberof RemoteObjSpec */ exportCSV?: boolean; /** * If set sorting will be handled remotely - * + * * @type {boolean} * @memberof RemoteObjSpec */ sort?: boolean; /** * If set pagination will be handled remotely - * + * * @type {boolean} * @memberof RemoteObjSpec */ @@ -81,115 +80,115 @@ export interface RemoteObjSpec { export interface BootstrapTableProps extends Props<BootstrapTable> { /** - Set version='4' to use bootstrap@4, else bootstrap@3 is used. - */ + * Set version='4' to use bootstrap@4, else bootstrap@3 is used. + */ version?: string; /** - Use data to specify the data that you want to display on table. - */ + * Use data to specify the data that you want to display on table. + */ data: any[]; /** - If set, data is remote (use also fetchInfo) - */ - remote?: (remobeObj: RemoteObjSpec) => RemoteObjSpec | boolean, // Updated to support ^3.0.0 + * If set, data is remote (use also fetchInfo) + */ + remote?: ((remobeObj: RemoteObjSpec) => RemoteObjSpec) | boolean; // Updated to support ^3.0.0 /** - Use keyField to tell table which column is unique. This is same as isKey in <TableHeaderColumn> - Tips: You need choose one configuration to set key field: keyField or isKey in <TableHeaderColumn> - */ + * Use keyField to tell table which column is unique. This is same as isKey in <TableHeaderColumn> + * Tips: You need choose one configuration to set key field: keyField or isKey in <TableHeaderColumn> + */ keyField?: string; /** - Use height to set the height of table, default is 100%. - */ + * Use height to set the height of table, default is 100%. + */ height?: string; /** - Set the max column width (pixels) - */ + * Set the max column width (pixels) + */ maxHeight?: string; /** - Enable striped by setting striped to true. Same as Bootstrap table class .table-striped, default is false. - */ + * Enable striped by setting striped to true. Same as Bootstrap table class .table-striped, default is false. + */ striped?: boolean; /** - Enable hover by setting hover to true. Same as Bootstrap table class .table-hover, default is false. - */ + * Enable hover by setting hover to true. Same as Bootstrap table class .table-hover, default is false. + */ hover?: boolean; /** - Enable condensed by setting condensed to true. Same as Bootstrap table class .table-condensed, default is false. - */ + * Enable condensed by setting condensed to true. Same as Bootstrap table class .table-condensed, default is false. + */ condensed?: boolean; /** - Become a borderless table by setting bordered to false, default is true. - */ + * Become a borderless table by setting bordered to false, default is true. + */ bordered?: boolean; /** - Enable pagination by setting pagination to true, default is false. - */ + * Enable pagination by setting pagination to true, default is false. + */ pagination?: boolean; /** - Assign the class name of row(tr). This attribute accept a string or function and function is a better way to do more customization. - If a string given, means the value will be presented as the row class. - If a function given, will pass rowData and rowIndex as params and should return string for presenting class. for examples: - @example - function trClassFormat(rowData,rowIndex){ - return rowIndex%2==0?"tr-odd":"tr-even"; //return a class name. - } - */ + * Assign the class name of row(tr). This attribute accept a string or function and function is a better way to do more customization. + * If a string given, means the value will be presented as the row class. + * If a function given, will pass rowData and rowIndex as params and should return string for presenting class. for examples: + * @example + * function trClassFormat(rowData,rowIndex){ + * return rowIndex%2==0?"tr-odd":"tr-even"; //return a class name. + * } + */ trClassName?: string | ((rowData: any, rowIndex: number) => string); /** - Enable row insertion by setting insertRow to true, default is false. - If you enable row insertion, there's a button on the upper left side of table. - */ + * Enable row insertion by setting insertRow to true, default is false. + * If you enable row insertion, there's a button on the upper left side of table. + */ insertRow?: boolean; /** - Enable row deletion by setting deleteRow to true, default is false. - If you enable row deletion, there's a button on the upper left side of table. - */ + * Enable row deletion by setting deleteRow to true, default is false. + * If you enable row deletion, there's a button on the upper left side of table. + */ deleteRow?: boolean; /** - Enable column filter by setting columnFilter to true, default is false. - If enabled, there're input text field per column under the table, user can input your filter condition by each column. - */ + * Enable column filter by setting columnFilter to true, default is false. + * If enabled, there're input text field per column under the table, user can input your filter condition by each column. + */ columnFilter?: boolean; /** - Enable search by setting search to true, default is false. - If enabled, there is a on the upper left side of the table. The default place holder is Search - */ + * Enable search by setting search to true, default is false. + * If enabled, there is a on the upper left side of the table. The default place holder is Search + */ search?: boolean; /** - Set searchPlaceholder to change the placeholder in search field, default is Search. - */ + * Set searchPlaceholder to change the placeholder in search field, default is Search. + */ searchPlaceholder?: string; /** - Enable strict search, default is false. - More info here: https://github.com/AllenFang/react-bootstrap-table/issues/1199 - */ + * Enable strict search, default is false. + * More info here: https://github.com/AllenFang/react-bootstrap-table/issues/1199 + */ strictSearch?: boolean; /** - Enable multi search by multiColumnSearch, default is false. - If you want to use multi search, you must enable search at first. - Tips: Use space to delimited search text. EX: 3 4, which means match all 3 or 4 datas in table. - */ + * Enable multi search by multiColumnSearch, default is false. + * If you want to use multi search, you must enable search at first. + * Tips: Use space to delimited search text. EX: 3 4, which means match all 3 or 4 datas in table. + */ multiColumnSearch?: boolean; /** - Enable export csv function, default is false. - If you enable, there's a button on the upper left side of table. - */ + * Enable export csv function, default is false. + * If you enable, there's a button on the upper left side of table. + */ exportCSV?: boolean; /** - Set CSV filename (e.g. items.csv). Default is spreadsheet.csv - */ + * Set CSV filename (e.g. items.csv). Default is spreadsheet.csv + */ csvFileName?: string; /** - Enable row selection on table. selectRow accept an object which have the following properties - */ + * Enable row selection on table. selectRow accept an object which have the following properties + */ selectRow?: SelectRow; /** - Enable cell editing on table. cellEdit accept an object which have the following properties - */ + * Enable cell editing on table. cellEdit accept an object which have the following properties + */ cellEdit?: CellEdit; /** - For some options setting on this component, you can set the options attribute and give an object which contain following properties - */ + * For some options setting on this component, you can set the options attribute and give an object which contain following properties + */ options?: Options; fetchInfo?: FetchInfo; printable?: boolean; @@ -199,7 +198,7 @@ export interface BootstrapTableProps extends Props<BootstrapTable> { bodyStyle?: any; ignoreSinglePage?: boolean; containerClass?: string; - tableContainerClass?: string + tableContainerClass?: string; headerContainerClass?: string; bodyContainerClass?: string; expandableRow?: (row: any) => boolean; @@ -210,55 +209,55 @@ export type SelectRowMode = 'none' | 'radio' | 'checkbox'; export interface SelectRow { /** - For specifing the selection is single(radio) or multiple(checkbox). - */ + * For specifing the selection is single(radio) or multiple(checkbox). + */ mode: SelectRowMode; /** - Click the row will trigger selection on that row if enable clickToSelect, default is false. - */ + * Click the row will trigger selection on that row if enable clickToSelect, default is false. + */ clickToSelect?: boolean; /** - If true, click the row will trigger selection on that row and also trigger cell editing if you enabled cell edit. Default is false. - */ + * If true, click the row will trigger selection on that row and also trigger cell editing if you enabled cell edit. Default is false. + */ clickToSelectAndEditCell?: boolean; /** - You can assign the background color of row which be selected. - */ + * You can assign the background color of row which be selected. + */ bgColor?: string; /** - You can assign the class name of row which be selected. - */ + * You can assign the class name of row which be selected. + */ className?: string; /** - Give an array data to perform which rows you want to be selected when table loading. - The content of array should be the rowkey which you want to be selected. - */ + * Give an array data to perform which rows you want to be selected when table loading. + * The content of array should be the rowkey which you want to be selected. + */ selected?: string[] | number[]; /** - if true, the radio/checkbox column will be hide. - You can enable this attribute if you enable clickToSelect and you don't want to show the selection column. - */ + * if true, the radio/checkbox column will be hide. + * You can enable this attribute if you enable clickToSelect and you don't want to show the selection column. + */ hideSelectColumn?: boolean; /** - Default is false, if enabled, there will be a button on top of table for toggling selected rows only. - */ + * Default is false, if enabled, there will be a button on top of table for toggling selected rows only. + */ showOnlySelected?: boolean; /** - Accept a custom callback function, if a row be selected or unselected, this function will be called. - This callback function taking three arguments row, isSelected and event: - `row`: is the row data which you wanted to select or unselect. - `isSelected`: it's a boolean value means "whether or not that row will be selected?". - `event`: The event target object. - If return value of this (function) is false, the select or deselect action will not be applied. - */ - onSelect?: (row: any, isSelected: Boolean, event: any) => boolean; + * Accept a custom callback function, if a row be selected or unselected, this function will be called. + * This callback function taking three arguments row, isSelected and event: + * `row`: is the row data which you wanted to select or unselect. + * `isSelected`: it's a boolean value means "whether or not that row will be selected?". + * `event`: The event target object. + * If return value of this (function) is false, the select or deselect action will not be applied. + */ + onSelect?: (row: any, isSelected: boolean, event: any) => boolean; /** - Accept a custom callback function, if click select all checkbox, this function will be called. - This callback function taking two arguments isSelected and currentSelectedAndDisplayData: - `isSelected`: it's a boolean value means "whether or not that row will be selected?". - `currentSelectedAndDisplayData`: If pagination enabled, this result is the data which in a page. In contrast, this is all data in table. - If return value of this function is false, the select all or deselect all action will not be applied. - */ + * Accept a custom callback function, if click select all checkbox, this function will be called. + * This callback function taking two arguments isSelected and currentSelectedAndDisplayData: + * `isSelected`: it's a boolean value means "whether or not that row will be selected?". + * `currentSelectedAndDisplayData`: If pagination enabled, this result is the data which in a page. In contrast, this is all data in table. + * If return value of this function is false, the select all or deselect all action will not be applied. + */ onSelectAll?: (isSelected: boolean, currentSelectedAndDisplayData: any) => boolean; /** @@ -271,24 +270,24 @@ export type CellEditClickMode = 'none' | 'click' | 'dbclick'; export interface CellEdit { /** - To spectify which condition will trigger cell editing.(click or dbclick) - */ + * To spectify which condition will trigger cell editing.(click or dbclick) + */ mode: CellEditClickMode; /** - Enable blurToSave will trigger a saving event on cell when mouse blur on the input field. Default is false. - In the default condition, you need to press ENTER to save the cell. - */ + * Enable blurToSave will trigger a saving event on cell when mouse blur on the input field. Default is false. + * In the default condition, you need to press ENTER to save the cell. + */ blurToSave?: boolean; /** - Accept a custom callback function, before cell saving, this function will be called. - This callback function taking three arguments:row, cellName and cellValue - It's necessary to return a bool value which whether apply this cell editing. - */ + * Accept a custom callback function, before cell saving, this function will be called. + * This callback function taking three arguments:row, cellName and cellValue + * It's necessary to return a bool value which whether apply this cell editing. + */ beforeSaveCell?: (row: any, cellName: string, cellValue: any) => boolean; /** - Accept a custom callback function, after cell saving, this function will be called. - This callback function taking three arguments:row, cellName and cellValue - */ + * Accept a custom callback function, after cell saving, this function will be called. + * This callback function taking three arguments:row, cellName and cellValue + */ afterSaveCell?: (row: any, cellName: string, cellValue: any) => void; } @@ -296,171 +295,169 @@ export type SortOrder = 'asc' | 'desc'; export interface Options { /** - Manage sort field by yourself - */ + * Manage sort field by yourself + */ sortName?: string; /** - Manage sort order by yourself - */ + * Manage sort order by yourself + */ sortOrder?: SortOrder; /** - Assign a default sort field. - */ + * Assign a default sort field. + */ defaultSortName?: string; /** - Assign a default sort ordering. - */ + * Assign a default sort ordering. + */ defaultSortOrder?: SortOrder; /** - False to disable sort indicator on header column, default is true. - */ + * False to disable sort indicator on header column, default is true. + */ sortIndicator?: boolean; /** - Change the displaying text on table if data is empty. - */ + * Change the displaying text on table if data is empty. + */ noDataText?: string | ReactElement<any>; /** - A delay for trigger search after a keyup (millisecond) - */ + * A delay for trigger search after a keyup (millisecond) + */ searchDelayTime?: number; /** - A custom text on export csv button - */ + * A custom text on export csv button + */ exportCSVText?: string; /** - Default is false, if true means you want to ignore any editable configuration when row insert. - */ + * Default is false, if true means you want to ignore any editable configuration when row insert. + */ ignoreEditable?: boolean; /** - Only work on enable search. If true, there will be a button beside search input field for clear search field text. - */ + * Only work on enable search. If true, there will be a button beside search input field for clear search field text. + */ clearSearch?: boolean; /** - Assign a callback function which will be called after table update. - */ + * Assign a callback function which will be called after table update. + */ afterTableComplete?: Function; /** - Assign a callback function which will be called after row delete. - This function taking one argument: rowKeys, which means the row key you dropped. - */ + * Assign a callback function which will be called after row delete. + * This function taking one argument: rowKeys, which means the row key you dropped. + */ afterDeleteRow?: (rowKeys: string[]) => void; /** - Assign a callback function which will be called after row insert. - This function taking one argument: row, which means the whole row data you added. - */ + * Assign a callback function which will be called after row insert. + * This function taking one argument: row, which means the whole row data you added. + */ afterInsertRow?: (row: any) => void; /** - Customize the text of previouse page button - */ + * Customize the text of previouse page button + */ prePage?: string; /** - Customize the text of next page button - */ + * Customize the text of next page button + */ nextPage?: string; /** - Customize the text of first page button - */ + * Customize the text of first page button + */ firstPage?: string; /** - Customize the text of last page button - */ + * Customize the text of last page button + */ lastPage?: string; /** - Accept a number, which means the page you want to show as default. - */ + * Accept a number, which means the page you want to show as default. + */ page?: number; /** - You can change the dropdown list for size per page if you enable pagination. - */ + * You can change the dropdown list for size per page if you enable pagination. + */ sizePerPageList?: number[]; /** - Means the size per page you want to locate as default. - */ + * Means the size per page you want to locate as default. + */ sizePerPage?: number; /** - To define the pagination bar length, default is 5. - */ + * To define the pagination bar length, default is 5. + */ paginationSize?: number; /** - To define where to start counting the pages. - */ + * To define where to start counting the pages. + */ pageStartIndex?: number; /** - Assign a callback function which will be called after page changed. - This function taking two argument: page and sizePerPage. - `page`: Current page. - `sizePerPage`: The data size which in one page. - */ + * Assign a callback function which will be called after page changed. + * This function taking two argument: page and sizePerPage. + * `page`: Current page. + * `sizePerPage`: The data size which in one page. + */ onPageChange?: (page: number, sizePerPage: number) => void; /** - Assign a callback function which will be called after size per page dropdown changed. - This function taking one argument: sizePerPage. - `sizePerPage`: The data size which in one page. - */ + * Assign a callback function which will be called after size per page dropdown changed. + * This function taking one argument: sizePerPage. + * `sizePerPage`: The data size which in one page. + */ onSizePerPageList?: (sizePerPage: number) => void; /** - Assign a callback function which will be called after trigger sorting. - This function taking two argument: `sortName` and `sortOrde`r. - `sortName`: The sort column name - `sortOrder`: The sort ordering. - */ + * Assign a callback function which will be called after trigger sorting. + * This function taking two argument: `sortName` and `sortOrde`r. + * `sortName`: The sort column name + * `sortOrder`: The sort ordering. + */ onSortChange?: (sortName: string, sortOrder: SortOrder) => void; /** - Assign a callback function which will be called after trigger searching. - This function taking two argument: search and result. - `search`: The search text which user input. - `result`: The results after searching. - */ + * Assign a callback function which will be called after trigger searching. + * This function taking two argument: search and result. + * `search`: The search text which user input. + * `result`: The results after searching. + */ afterSearch?: (search: string, result: any) => void; /** - Assign a callback function which will be called after trigger column filtering. - This function taking two argument: filterConds and result. - `filterConds`: It's an array object which contain all column filter conditions. - `result`: The results after filtering. - */ + * Assign a callback function which will be called after trigger column filtering. + * This function taking two argument: filterConds and result. + * `filterConds`: It's an array object which contain all column filter conditions. + * `result`: The results after filtering. + */ afterColumnFilter?: (filterConds: any[], result: any) => void; /** - Assign a callback function which will be called after a row click. - This function taking one argument: row which is the row data which you click on. - */ + * Assign a callback function which will be called after a row click. + * This function taking one argument: row which is the row data which you click on. + */ onRowClick?: (row: any) => void; /** - Assign a callback function which will be called after a row double click. - This function taking one argument: row which is the row data which you double click on. - */ + * Assign a callback function which will be called after a row double click. + * This function taking one argument: row which is the row data which you double click on. + */ onRowDoubleClick?: (row: any) => void; /** - Background color on expanded rows. - */ + * Background color on expanded rows. + */ expandRowBgColor?: string; /** - Assign a callback function which will be called when mouse enter into the table. - */ + * Assign a callback function which will be called when mouse enter into the table. + */ onMouseEnter?: Function; /** - Assign a callback function which will be called when mouse leave from the table. - */ + * Assign a callback function which will be called when mouse leave from the table. + */ onMouseLeave?: Function; /** - Assign a callback function which will be called when mouse over a row in table. - This function taking one argument: row which is the row data which mouse over. - */ + * Assign a callback function which will be called when mouse over a row in table. + * This function taking one argument: row which is the row data which mouse over. + */ onRowMouseOver?: Function; /** - Assign a callback function which will be called when mouse leave from a row in table. - This function taking one argument: row which is the row data which mouse out. - */ + * Assign a callback function which will be called when mouse leave from a row in table. + * This function taking one argument: row which is the row data which mouse out. + */ onRowMouseOut?: Function; /** - Assign a callback function which will be called when row dropping. - It give you a chance to customize your confirmation for row deletion. - This function taking two argument: next and rowKeys: - - `next`: If you confirm to drop row, call next() to continue the process - - `rowKeys` is the row keys which been deleted, you can call next function to apply this deletion. - */ + * Assign a callback function which will be called when row dropping. + * It give you a chance to customize your confirmation for row deletion. + * This function taking two argument: next and rowKeys: + * `next`: If you confirm to drop row, call next() to continue the process + * `rowKeys` is the row keys which been deleted, you can call next function to apply this deletion. + */ handleConfirmDeleteRow?: (next: Function, rowKeys: any[]) => void; paginationShowsTotal?: boolean | ReactElement<any>; onSearchChange?: Function; @@ -474,39 +471,38 @@ export interface Options { // Customization properties /** * Callback function to be called when a cell is modified - * + * * https://allenfang.github.io/react-bootstrap-table/example.html#remote - * + * * @memberof BootstrapTableProps */ onCellEdit?: (row: any, field: string, value: any) => any; /** * Callback function to be called when filter changing - * + * * https://github.com/AllenFang/react-bootstrap-table/blob/master/examples/js/remote/remote-store-filtering.js#L67 - * + * * @memberof BootstrapTableProps */ - onFilterChange?:(filterObj: any) => any; + onFilterChange?: (filterObj: any) => any; /** * Callback function which will be called when a row will be deleted - * + * * https://github.com/AllenFang/react-bootstrap-table/blob/master/examples/js/remote/remote-store-delete-row.js#L27 - * + * * @memberof BootstrapTableProps */ - onDeleteRow?: (rows: any[] | any) => any; + onDeleteRow?: (rows: any) => any; /** * A callback which will be called after page changed - * + * * https://github.com/AllenFang/react-bootstrap-table/blob/master/examples/js/remote/remote-store-paging.js#L30 - * + * * @memberof BootstrapTableProps */ onpageChange?: (page: any, sizePerPage: number) => any; } - interface FetchInfo { dataTotalSize?: number; } @@ -555,21 +551,21 @@ export type DataAlignType = 'left' | 'center' | 'right' | 'start' | 'end'; export interface TableHeaderColumnProps extends Props<TableHeaderColumn> { /** - The field of data you want to show on column. - */ + * The field of data you want to show on column. + */ dataField?: string; /** - Use isKey to tell table which column is unique. This is same as keyField in <BootstrapTable> - Tips: You need choose one configuration to set key field: isKey or keyField in <BootstrapTable> - */ + * Use isKey to tell table which column is unique. This is same as keyField in <BootstrapTable> + * Tips: You need choose one configuration to set key field: isKey or keyField in <BootstrapTable> + */ isKey?: boolean; /** - Set the column width. ex: 150, it's means 150px - */ + * Set the column width. ex: 150, it's means 150px + */ width?: string; /** - Set align in column, value is left, center, right, start and end. - */ + * Set align in column, value is left, center, right, start and end. + */ dataAlign?: DataAlignType; /** @@ -577,90 +573,94 @@ export interface TableHeaderColumnProps extends Props<TableHeaderColumn> { */ headerAlign?: DataAlignType; /** - True to enable table sorting. Default is disabled. - */ + * True to enable table sorting. Default is disabled. + */ dataSort?: boolean; /** - Default search string. - */ + * Default search string. + */ defaultSearch?: string; /** - Allow user to render a custom sort caret. You should give a function and should return a JSX. - This function taking one arguments: order which present the sort order currently. - */ + * Allow user to render a custom sort caret. You should give a function and should return a JSX. + * This function taking one arguments: order which present the sort order currently. + */ caretRender?: Function; /** - Give an Object like following to able to customize your own editing component. - This Object should contain these two property: - getElement(REQUIRED): Accept a callback function and take two arguments: onUpdate and props. - customEditorParameters: Another extra data for custom cell edit component. - */ - customEditor?: { getElement: (onUpdate: any, props: any) => ReactElement<any>, customEditorParameters?: Object }; + * Give an Object like following to able to customize your own editing component. + * This Object should contain these two property: + * getElement(REQUIRED): Accept a callback function and take two arguments: onUpdate and props. + * customEditorParameters: Another extra data for custom cell edit component. + */ + customEditor?: { getElement: (onUpdate: any, props: any) => ReactElement<any>, customEditorParameters?: object }; /** - To customize the column. This callback function should return a String or a React Component. - In addition, this function taking two argument: cell and row. - */ + * To customize the column. This callback function should return a String or a React Component. + * In addition, this function taking two argument: cell and row. + */ dataFormat?: (cell: any, row: any, formatExtraData?: any) => string | ReactElement<any>; /** - To to enable search or filter data on formatting. Default is false - */ + * To to enable search or filter data on formatting. Default is false + */ filterFormatted?: boolean; /** - True to hide column. - */ + * True to hide column. + */ hidden?: boolean; /** - True to hide the dropdown for sizePerPage. - */ - hideSizePerPage?: boolean + * True to hide from insert dialog + */ + hiddenOnInsert?: boolean; /** - False to disable search functionality on column, default is true. - */ + * True to hide the dropdown for sizePerPage. + */ + hideSizePerPage?: boolean; + /** + * False to disable search functionality on column, default is true. + */ searchable?: boolean; /** - Give a customize function for data sorting. - This function taking four arguments: a, b, order, sortField, extraData - */ + * Give a customize function for data sorting. + * This function taking four arguments: a, b, order, sortField, extraData + */ sortFunc?: (a: any, b: any, order: SortOrder, sortField: any, extraData: any) => number; /** - It's a extra data for custom sort function, if defined, this data will be pass as fifth argument in sortFunc. - */ + * It's a extra data for custom sort function, if defined, this data will be pass as fifth argument in sortFunc. + */ sortFuncExtraData?: any; /** - Add custom css class on table header column, this attribute only accept String or Function. - If Function, it taking four arguments: cell, row, rowIndex, columnIndex. - In addition, this function should return a String which is the class name you want to add on. - */ + * Add custom css class on table header column, this attribute only accept String or Function. + * If Function, it taking four arguments: cell, row, rowIndex, columnIndex. + * In addition, this function should return a String which is the class name you want to add on. + */ className?: string | ((cell: any, row: any, rowIndex: number, columnIndex: number) => string); /** - Add custom css class on table body column, this attribute only accept String or Function. - If Function, it taking four arguments: cell, row, rowIndex, columnIndex. - In addition, this function should return a String which is the class name you want to add on. - */ + * Add custom css class on table body column, this attribute only accept String or Function. + * If Function, it taking four arguments: cell, row, rowIndex, columnIndex. + * In addition, this function should return a String which is the class name you want to add on. + */ columnClassName?: String | ((cell: any, row: any, rowIndex: number, columnIndex: number) => string); /** - Add True to set column editable, false is non-editable. If give Object, - you can do more customization when editing cell. This object have following properties: - @example - { - type: //edit type, avaiable value is textarea, select, checkbox - validator: //give function for validation and taking only one "cell value" as argument. This function should return Bool. - options:{ - values: //values means data in select or checkbox.If checkbox, use ':'(colon) to separate value, ex: Y:N - } - } - */ + * Add True to set column editable, false is non-editable. If give Object, + * you can do more customization when editing cell. This object have following properties: + * @example + * { + * type: //edit type, avaiable value is textarea, select, checkbox + * validator: //give function for validation and taking only one "cell value" as argument. This function should return Bool. + * options:{ + * values: //values means data in select or checkbox.If checkbox, use ':'(colon) to separate value, ex: Y:N + * } + * } + */ editable?: boolean | Editable; /** - It only work when you enable insertRow and be assign on rowKey column. - If true, the row key will be generated automatically after a row insertion. - */ + * It only work when you enable insertRow and be assign on rowKey column. + * If true, the row key will be generated automatically after a row insertion. + */ autoValue?: boolean; /** - To Enable a column filter within header column. - This feature support a lots of filter type and condition. Please check example - Following is the format for filter - */ + * To Enable a column filter within header column. + * This feature support a lots of filter type and condition. Please check example + * Following is the format for filter + */ filter?: Filter; onSort?: Function; @@ -696,23 +696,38 @@ export interface TableHeaderColumnProps extends Props<TableHeaderColumn> { * It's useful if your column data is an object. */ filterValue?: Function; + + /** + * Allow you to add your custom attributes on TD element. + */ + tdAttr?: object; + + /** + * Allow you to add your custom style object on TD element. + */ + tdStyle?: object; + + /** + * Allow you to add your custom style object on TH element. + */ + thStyle?: object; } export interface Editable { - type?: string;//edit type, avaiable value is textarea, select, checkbox + type?: string; // edit type, avaiable value is textarea, select, checkbox /** - function for validation and taking only one "cell value" as argument. This function should return Bool. + * Function for validation and taking only one "cell value" as argument. This function should return Bool. */ validator?: (cell: any) => boolean; /** - { - values: //values means data in select or checkbox.If checkbox, use ':'(colon) to separate value, ex: Y:N - } - + * @example + * { + * values: //values means data in select or checkbox. If checkbox, use ':'(colon) to separate value, ex: Y:N + * } */ options?: any; /** - Configuration for the textarea editable type + * Configuration for the textarea editable type */ cols?: number; rows?: number; @@ -725,7 +740,7 @@ export interface ApplyFilterParameter { export type FilterType = 'TextFilter' | 'RegexFilter' | 'SelectFilter' | 'NumberFilter' | 'DateFilter' | 'CustomFilter'; export interface Filter { /** - "TextFilter"||"SelectFilter"||"NumberFilter"||"DateFilter"||"RegexFilter"||"YOUR_CUSTOM_FILTER" + * "TextFilter"||"SelectFilter"||"NumberFilter"||"DateFilter"||"RegexFilter"||"YOUR_CUSTOM_FILTER" */ type?: FilterType; /** diff --git a/types/react-bootstrap-table/react-bootstrap-table-tests.tsx b/types/react-bootstrap-table/react-bootstrap-table-tests.tsx index 76e5bb79b7..c8f25dfa56 100644 --- a/types/react-bootstrap-table/react-bootstrap-table-tests.tsx +++ b/types/react-bootstrap-table/react-bootstrap-table-tests.tsx @@ -1,10 +1,8 @@ -/// <reference types="react-dom"/> - import * as React from 'react'; import { render } from 'react-dom'; -import { BootstrapTable, TableHeaderColumn, ApplyFilterParameter } from 'react-bootstrap-table'; +import { BootstrapTable, TableHeaderColumn, ApplyFilterParameter, Filter } from 'react-bootstrap-table'; -var products = [{ +const products = [{ id: 1, name: "Item name 1", price: 100 @@ -71,11 +69,12 @@ function getCustomFilter(filterHandler: (parameters?: ApplyFilterParameter) => v class CustomFilter extends React.Component { render() { + const filter: Filter = { type: 'CustomFilter', getElement: getCustomFilter, customFilterParameters: { textOK: 'yes', textNOK: 'no' } }; return ( <BootstrapTable data={products}> <TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn> <TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn> - <TableHeaderColumn dataField='isInStock' filter={{ type: 'CustomFilter', getElement: getCustomFilter, customFilterParameters: { textOK: 'yes', textNOK: 'no' } }}>Product Is In Stock</TableHeaderColumn> + <TableHeaderColumn dataField='isInStock' filter={filter}>Product Is In Stock</TableHeaderColumn> </BootstrapTable> ); } @@ -83,6 +82,7 @@ class CustomFilter extends React.Component { class RemoteProps extends React.Component { render() { + const filter: Filter = { type: 'CustomFilter', getElement: getCustomFilter, customFilterParameters: { textOK: 'yes', textNOK: 'no' } }; return ( <BootstrapTable data={products} @@ -96,11 +96,55 @@ class RemoteProps extends React.Component { > <TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn> <TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn> - <TableHeaderColumn dataField='isInStock' filter={{ type: 'CustomFilter', getElement: getCustomFilter, customFilterParameters: { textOK: 'yes', textNOK: 'no' } }}>Product Is In Stock</TableHeaderColumn> + <TableHeaderColumn dataField='isInStock' filter={filter}>Product Is In Stock</TableHeaderColumn> </BootstrapTable> ); } } + +class RemoteBool extends React.Component { + render() { + const filter: Filter = { type: 'CustomFilter', getElement: getCustomFilter, customFilterParameters: { textOK: 'yes', textNOK: 'no' } }; + return ( + <BootstrapTable + data={products} + remote + > + <TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn> + <TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn> + <TableHeaderColumn dataField='isInStock' filter={filter}>Product Is In Stock</TableHeaderColumn> + </BootstrapTable> + ); + } +} + +/** + * See http://allenfang.github.io/react-bootstrap-table/docs.html#tdAttr + */ +const tdAttrExample = <BootstrapTable data={ products } search> + <TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn> + <TableHeaderColumn dataField='name' tdAttr={ { "data-attr": 'test' } }>Product Name</TableHeaderColumn> + <TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn> +</BootstrapTable>; + +/** + * See http://allenfang.github.io/react-bootstrap-table/docs.html#tdStyle + */ +const tdStyleExample = <BootstrapTable data={ products } search> + <TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn> + <TableHeaderColumn dataField='name' tdStyle={ { whiteSpace: 'normal' } }>Product Name</TableHeaderColumn> + <TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn> +</BootstrapTable>; + +/** + * See http://allenfang.github.io/react-bootstrap-table/docs.html#thStyle + */ +const thStyleExample = <BootstrapTable data={ products } search> + <TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn> + <TableHeaderColumn dataField='name' thStyle={ { fontWeight: 'lighter' } }>Product Name</TableHeaderColumn> + <TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn> +</BootstrapTable>; + // Adopted from https://github.com/AllenFang/react-bootstrap-table/blob/master/examples/js/column-header-span/column-header-span-complex.js export default class ColumnHeaderSpanComplex extends React.Component { render() { diff --git a/types/react-bootstrap-table/tslint.json b/types/react-bootstrap-table/tslint.json new file mode 100644 index 0000000000..bf0a68ff4e --- /dev/null +++ b/types/react-bootstrap-table/tslint.json @@ -0,0 +1,10 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "ban-types": false, + "prefer-method-signature": false, + "strict-export-declare-modifiers": false, + "no-empty-interface": false + } + } diff --git a/types/react-bootstrap/lib/Button.d.ts b/types/react-bootstrap/lib/Button.d.ts index 367eea78cc..b677bdfd1a 100644 --- a/types/react-bootstrap/lib/Button.d.ts +++ b/types/react-bootstrap/lib/Button.d.ts @@ -6,7 +6,7 @@ declare namespace Button { bsClass?: string; active?: boolean; block?: boolean; - bsStyle?: string; + bsStyle?: string | null; bsSize?: Sizes; componentClass?: React.ReactType; disabled?: boolean; diff --git a/types/react-bootstrap/lib/Navbar.d.ts b/types/react-bootstrap/lib/Navbar.d.ts index fdacbef45f..5231c74052 100644 --- a/types/react-bootstrap/lib/Navbar.d.ts +++ b/types/react-bootstrap/lib/Navbar.d.ts @@ -17,7 +17,7 @@ declare namespace Navbar { fixedTop?: boolean; fluid?: boolean; inverse?: boolean; - navExpanded?: boolean; + expanded?: boolean; onToggle?: Function; staticTop?: boolean; toggleButton?: any; // TODO: Add more specific type diff --git a/types/react-burger-menu/index.d.ts b/types/react-burger-menu/index.d.ts index 7368c335e2..2cfe6aaa4e 100644 --- a/types/react-burger-menu/index.d.ts +++ b/types/react-burger-menu/index.d.ts @@ -19,6 +19,7 @@ export interface Props { menuClassName?: string; morphShapeClassName?: string; noOverlay?: boolean; + disableOverlayClick?: boolean; onStateChange?(): void; // TODO (Rajab) This can be improved, though I do not know how. From PropTypes: // styles && styles.outerContainer ? PropTypes.string.isRequired : PropTypes.string diff --git a/types/react-color/index.d.ts b/types/react-color/index.d.ts index 3739d3f9d1..b3cf15bc98 100644 --- a/types/react-color/index.d.ts +++ b/types/react-color/index.d.ts @@ -42,17 +42,17 @@ export interface CustomPickerProps<A> extends ClassAttributes<A> { onChange: ColorChangeHandler; } -export { default as AlphaPicker, AlphaPickerProps } from "react-color/lib/components/alpha/Alpha"; -export { default as BlockPicker, BlockPickerProps } from "react-color/lib/components/block/Block"; -export { default as ChromePicker, ChromePickerProps } from "react-color/lib/components/chrome/Chrome"; -export { default as CirclePicker, CirclePickerProps } from "react-color/lib/components/circle/Circle"; -export { default as CompactPicker, CompactPickerProps } from "react-color/lib/components/compact/Compact"; -export { default as GithubPicker, GithubPickerProps } from "react-color/lib/components/github/Github"; -export { default as HuePicker, HuePickerProps } from "react-color/lib/components/hue/Hue"; -export { default as MaterialPicker, MaterialPickerProps } from "react-color/lib/components/material/Material"; -export { default as PhotoshopPicker, PhotoshopPickerProps } from "react-color/lib/components/photoshop/Photoshop"; -export { default as SketchPicker, SketchPickerProps } from "react-color/lib/components/sketch/Sketch"; -export { default as SliderPicker, SliderPickerProps } from "react-color/lib/components/slider/Slider"; -export { default as SwatchesPicker, SwatchesPickerProps } from "react-color/lib/components/swatches/Swatches"; -export { default as TwitterPicker, TwitterPickerProps } from "react-color/lib/components/twitter/Twitter"; -export { default as CustomPicker, InjectedColorProps } from "react-color/lib/components/common/ColorWrap"; +export { default as AlphaPicker, AlphaPickerProps } from "./lib/components/alpha/Alpha"; +export { default as BlockPicker, BlockPickerProps } from "./lib/components/block/Block"; +export { default as ChromePicker, ChromePickerProps } from "./lib/components/chrome/Chrome"; +export { default as CirclePicker, CirclePickerProps } from "./lib/components/circle/Circle"; +export { default as CompactPicker, CompactPickerProps } from "./lib/components/compact/Compact"; +export { default as GithubPicker, GithubPickerProps } from "./lib/components/github/Github"; +export { default as HuePicker, HuePickerProps } from "./lib/components/hue/Hue"; +export { default as MaterialPicker, MaterialPickerProps } from "./lib/components/material/Material"; +export { default as PhotoshopPicker, PhotoshopPickerProps } from "./lib/components/photoshop/Photoshop"; +export { default as SketchPicker, SketchPickerProps } from "./lib/components/sketch/Sketch"; +export { default as SliderPicker, SliderPickerProps } from "./lib/components/slider/Slider"; +export { default as SwatchesPicker, SwatchesPickerProps } from "./lib/components/swatches/Swatches"; +export { default as TwitterPicker, TwitterPickerProps } from "./lib/components/twitter/Twitter"; +export { default as CustomPicker, InjectedColorProps } from "./lib/components/common/ColorWrap"; diff --git a/types/react-color/lib/components/alpha/Alpha.d.ts b/types/react-color/lib/components/alpha/Alpha.d.ts index c3d5f278ca..e6c9370b36 100644 --- a/types/react-color/lib/components/alpha/Alpha.d.ts +++ b/types/react-color/lib/components/alpha/Alpha.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { ColorPickerProps } from "react-color"; +import { ColorPickerProps } from "../../.."; export interface AlphaPickerProps extends ColorPickerProps<AlphaPicker> { height?: string; diff --git a/types/react-color/lib/components/block/Block.d.ts b/types/react-color/lib/components/block/Block.d.ts index e50b84c6ac..20ea123eed 100644 --- a/types/react-color/lib/components/block/Block.d.ts +++ b/types/react-color/lib/components/block/Block.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { ColorPickerProps, Color } from "react-color"; +import { ColorPickerProps, Color } from "../../.."; export interface BlockPickerProps extends ColorPickerProps<BlockPicker> { colors?: string[]; diff --git a/types/react-color/lib/components/chrome/Chrome.d.ts b/types/react-color/lib/components/chrome/Chrome.d.ts index 4493173845..a078cb231e 100644 --- a/types/react-color/lib/components/chrome/Chrome.d.ts +++ b/types/react-color/lib/components/chrome/Chrome.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { ColorPickerProps } from "react-color"; +import { ColorPickerProps } from "../../.."; export interface ChromePickerProps extends ColorPickerProps<ChromePicker> { disableAlpha?: boolean; diff --git a/types/react-color/lib/components/circle/Circle.d.ts b/types/react-color/lib/components/circle/Circle.d.ts index 5b9e79a0b4..84b6e10919 100644 --- a/types/react-color/lib/components/circle/Circle.d.ts +++ b/types/react-color/lib/components/circle/Circle.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { ColorPickerProps, Color } from "react-color"; +import { ColorPickerProps, Color } from "../../.."; export interface CirclePickerProps extends ColorPickerProps<CirclePicker> { colors?: string[]; diff --git a/types/react-color/lib/components/common/Alpha.d.ts b/types/react-color/lib/components/common/Alpha.d.ts index a86a6c4231..6312149196 100644 --- a/types/react-color/lib/components/common/Alpha.d.ts +++ b/types/react-color/lib/components/common/Alpha.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { CustomPickerProps } from "react-color"; +import { CustomPickerProps } from "../../.."; export type AlphaProps = CustomPickerProps<Alpha>; diff --git a/types/react-color/lib/components/common/ColorWrap.d.ts b/types/react-color/lib/components/common/ColorWrap.d.ts index 94a8f5b789..0fd559f728 100644 --- a/types/react-color/lib/components/common/ColorWrap.d.ts +++ b/types/react-color/lib/components/common/ColorWrap.d.ts @@ -1,11 +1,19 @@ import { ComponentClass, StatelessComponent } from "react"; -import { HSLColor, RGBColor, ColorChangeHandler } from "react-color"; +import { HSLColor, RGBColor, ColorChangeHandler, Color, ColorResult } from "../../.."; + +export type ColorWrapChangeHandler = (color: Color | ColorResult) => void; export interface InjectedColorProps { hex?: string; hsl?: HSLColor; rgb?: RGBColor; - onChange?: ColorChangeHandler; + onChange?: ColorWrapChangeHandler; } -export default function CustomPicker<A>(component: ComponentClass<A> | StatelessComponent<A>): ComponentClass<A & InjectedColorProps>; +export interface ExportedColorProps { + color?: Color; + onChange?: ColorChangeHandler; + onChangeComplete?: ColorChangeHandler; +} + +export default function CustomPicker<A>(component: ComponentClass<A & InjectedColorProps> | StatelessComponent<A & InjectedColorProps>): ComponentClass<A & ExportedColorProps>; diff --git a/types/react-color/lib/components/common/EditableInput.d.ts b/types/react-color/lib/components/common/EditableInput.d.ts index d1c5154c90..31de906431 100644 --- a/types/react-color/lib/components/common/EditableInput.d.ts +++ b/types/react-color/lib/components/common/EditableInput.d.ts @@ -1,5 +1,5 @@ import { Component, ClassAttributes, CSSProperties } from "react"; -import { Color, ColorChangeHandler } from "react-color"; +import { Color, ColorChangeHandler } from "../../.."; export interface EditableInputStyles { input?: CSSProperties; diff --git a/types/react-color/lib/components/common/Hue.d.ts b/types/react-color/lib/components/common/Hue.d.ts index 741db9e95f..c5f177a846 100644 --- a/types/react-color/lib/components/common/Hue.d.ts +++ b/types/react-color/lib/components/common/Hue.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { CustomPickerProps } from "react-color"; +import { CustomPickerProps } from "../../.."; export interface HueProps extends CustomPickerProps<Hue> { direction?: "horizontal" | "vertical"; diff --git a/types/react-color/lib/components/common/Saturation.d.ts b/types/react-color/lib/components/common/Saturation.d.ts index a58e47179d..3f75f96b98 100644 --- a/types/react-color/lib/components/common/Saturation.d.ts +++ b/types/react-color/lib/components/common/Saturation.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { CustomPickerProps } from "react-color"; +import { CustomPickerProps } from "../../.."; export type SaturationProps = CustomPickerProps<Saturation>; diff --git a/types/react-color/lib/components/common/index.d.ts b/types/react-color/lib/components/common/index.d.ts index ed5af44bdf..3830fd27dd 100644 --- a/types/react-color/lib/components/common/index.d.ts +++ b/types/react-color/lib/components/common/index.d.ts @@ -1,5 +1,5 @@ -export { default as Alpha } from "react-color/lib/components/common/Alpha"; -export { default as Checkboard } from "react-color/lib/components/common/Checkboard"; -export { default as EditableInput } from "react-color/lib/components/common/EditableInput"; -export { default as Hue } from "react-color/lib/components/common/Hue"; -export { default as Saturation } from "react-color/lib/components/common/Saturation"; +export { default as Alpha } from "./Alpha"; +export { default as Checkboard } from "./Checkboard"; +export { default as EditableInput } from "./EditableInput"; +export { default as Hue } from "./Hue"; +export { default as Saturation } from "./Saturation"; diff --git a/types/react-color/lib/components/compact/Compact.d.ts b/types/react-color/lib/components/compact/Compact.d.ts index 125f496f90..5609899128 100644 --- a/types/react-color/lib/components/compact/Compact.d.ts +++ b/types/react-color/lib/components/compact/Compact.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { ColorPickerProps, Color } from "react-color"; +import { ColorPickerProps, Color } from "../../.."; export interface CompactPickerProps extends ColorPickerProps<CompactPicker> { colors?: string[]; diff --git a/types/react-color/lib/components/github/Github.d.ts b/types/react-color/lib/components/github/Github.d.ts index d0800c9740..18b6a21121 100644 --- a/types/react-color/lib/components/github/Github.d.ts +++ b/types/react-color/lib/components/github/Github.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { ColorPickerProps, Color } from "react-color"; +import { ColorPickerProps, Color } from "../../.."; export interface GithubPickerProps extends ColorPickerProps<GithubPicker> { colors?: string[]; diff --git a/types/react-color/lib/components/hue/Hue.d.ts b/types/react-color/lib/components/hue/Hue.d.ts index a8ff4d60dd..856ec8779d 100644 --- a/types/react-color/lib/components/hue/Hue.d.ts +++ b/types/react-color/lib/components/hue/Hue.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { ColorPickerProps } from "react-color"; +import { ColorPickerProps } from "../../.."; export interface HuePickerProps extends ColorPickerProps<HuePicker> { height?: string; diff --git a/types/react-color/lib/components/material/Material.d.ts b/types/react-color/lib/components/material/Material.d.ts index 46b42ba5ad..fddd745ca9 100644 --- a/types/react-color/lib/components/material/Material.d.ts +++ b/types/react-color/lib/components/material/Material.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { ColorPickerProps } from "react-color"; +import { ColorPickerProps } from "../../.."; export type MaterialPickerProps = ColorPickerProps<MaterialPicker>; diff --git a/types/react-color/lib/components/photoshop/Photoshop.d.ts b/types/react-color/lib/components/photoshop/Photoshop.d.ts index 6e544d4969..beb0ff3a5c 100644 --- a/types/react-color/lib/components/photoshop/Photoshop.d.ts +++ b/types/react-color/lib/components/photoshop/Photoshop.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { ColorChangeHandler, ColorPickerProps } from "react-color"; +import { ColorChangeHandler, ColorPickerProps } from "../../.."; export interface PhotoshopPickerProps extends ColorPickerProps<PhotoshopPicker> { header?: string; diff --git a/types/react-color/lib/components/sketch/Sketch.d.ts b/types/react-color/lib/components/sketch/Sketch.d.ts index 6018674809..7aec9fb82f 100644 --- a/types/react-color/lib/components/sketch/Sketch.d.ts +++ b/types/react-color/lib/components/sketch/Sketch.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { ColorPickerProps, Color } from "react-color"; +import { ColorPickerProps, Color } from "../../.."; export interface SketchPickerProps extends ColorPickerProps<SketchPicker> { disableAlpha?: boolean; diff --git a/types/react-color/lib/components/slider/Slider.d.ts b/types/react-color/lib/components/slider/Slider.d.ts index 1832cc7f24..6a0c9ed629 100644 --- a/types/react-color/lib/components/slider/Slider.d.ts +++ b/types/react-color/lib/components/slider/Slider.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { ColorPickerProps } from "react-color"; +import { ColorPickerProps } from "../../.."; export type SliderPickerProps = ColorPickerProps<SliderPicker>; diff --git a/types/react-color/lib/components/swatches/Swatches.d.ts b/types/react-color/lib/components/swatches/Swatches.d.ts index af3efb7652..b2a7f72dc2 100644 --- a/types/react-color/lib/components/swatches/Swatches.d.ts +++ b/types/react-color/lib/components/swatches/Swatches.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { ColorPickerProps, Color } from "react-color"; +import { ColorPickerProps, Color } from "../../.."; export interface SwatchesPickerProps extends ColorPickerProps<SwatchesPicker> { colors?: string[][]; diff --git a/types/react-color/lib/components/twitter/Twitter.d.ts b/types/react-color/lib/components/twitter/Twitter.d.ts index 3c37ebb8f5..8d5eb2e6dd 100644 --- a/types/react-color/lib/components/twitter/Twitter.d.ts +++ b/types/react-color/lib/components/twitter/Twitter.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { ColorPickerProps, Color } from "react-color"; +import { ColorPickerProps, Color } from "../../.."; export interface TwitterPickerProps extends ColorPickerProps<TwitterPicker> { colors?: string[]; diff --git a/types/react-data-grid/index.d.ts b/types/react-data-grid/index.d.ts index 894ebf95aa..d09784acb6 100644 --- a/types/react-data-grid/index.d.ts +++ b/types/react-data-grid/index.d.ts @@ -198,6 +198,13 @@ declare namespace AdazzleReactDataGrid { * @param row object behind the row */ onRowClick?: (rowIdx : number, row : object) => void + /** + * Responsible for returning an Array of values that can be used for filtering + * a column that is column.filterable and using a column.filterRenderer that + * displays a list of options. + * @param columnKey the column key that we are looking to pull values from + */ + getValidFilterValues?: (columnKey: string) => Array<any> } /** @@ -430,7 +437,12 @@ declare namespace AdazzleReactDataGrid { * Excel-like grid component built with React, with editors, keyboard navigation, copy & paste, and the like * http://adazzle.github.io/react-data-grid/ */ - export class ReactDataGrid extends React.Component<GridProps> { } + export class ReactDataGrid extends React.Component<GridProps> { + /** + * Opens the editor for the cell (idx) in the given row (rowIdx). If the column is not editable then nothing will happen. + */ + openCellEditor(rowIdx: number, idx: number): void; + } export namespace ReactDataGrid { // Useful types export import Column = AdazzleReactDataGrid.Column; diff --git a/types/react-datepicker/index.d.ts b/types/react-datepicker/index.d.ts index b90221b729..2a7ed3ceb6 100644 --- a/types/react-datepicker/index.d.ts +++ b/types/react-datepicker/index.d.ts @@ -1,9 +1,10 @@ -// Type definitions for react-datepicker 0.52 +// Type definitions for react-datepicker 0.55 // Project: https://github.com/Hacker0x01/react-datepicker // Definitions by: Rajab Shakirov <https://github.com/radziksh>, // Andrey Balokha <https://github.com/andrewBalekha>, // Greg Smith <https://github.com/smrq>, // Platon Pronko <https://github.com/Rogach> +// Roy Xue <https://github.com/royxue> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 @@ -74,6 +75,13 @@ export interface ReactDatePickerProps { weekLabel?: string; withPortal?: boolean; yearDropdownItemNumber?: number; + shouldCloseOnSelect?: boolean; + showTimeSelect?: boolean; + timeFormat?: string; + timeIntervals?: number; + minTime?: moment.Moment; + maxTime?: moment.Moment; + excludeTimes?: any[]; } declare const ReactDatePicker: React.ClassicComponentClass<ReactDatePickerProps>; export default ReactDatePicker; diff --git a/types/react-dom/index.d.ts b/types/react-dom/index.d.ts index 796314e19f..35e4b20550 100644 --- a/types/react-dom/index.d.ts +++ b/types/react-dom/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for React (react-dom) 15.5 +// Type definitions for React (react-dom) 16.0 // Project: http://facebook.github.io/react/ // Definitions by: Asana <https://asana.com> // AssureSign <http://www.assuresign.com> @@ -17,37 +17,11 @@ import { export function findDOMNode<E extends Element>(instance: ReactInstance): E; export function findDOMNode(instance: ReactInstance): Element; - -export function render<P extends DOMAttributes<T>, T extends Element>( - element: DOMElement<P, T>, - container: Element | null, - callback?: (element: T) => any -): T; -export function render<P>( - element: SFCElement<P>, - container: Element | null, - callback?: () => any -): void; -export function render<P, T extends Component<P, ComponentState>>( - element: CElement<P, T>, - container: Element | null, - callback?: (component: T) => any -): T; -export function render<P>( - element: ReactElement<P>, - container: Element | null, - callback?: (component?: Component<P, ComponentState> | Element) => any -): Component<P, ComponentState> | Element | void; -export function render<P>( - parentComponent: Component<any>, - element: SFCElement<P>, - container: Element, - callback?: () => any -): void; - export function unmountComponentAtNode(container: Element): boolean; export const version: string; +export const render: Renderer; +export const hydrate: Renderer; export function unstable_batchedUpdates<A, B>(callback: (a: A, b: B) => any, a: A, b: B): void; export function unstable_batchedUpdates<A>(callback: (a: A) => any, a: A): void; @@ -68,3 +42,32 @@ export function unstable_renderSubtreeIntoContainer<P>( element: ReactElement<P>, container: Element, callback?: (component?: Component<P, ComponentState> | Element) => any): Component<P, ComponentState> | Element | void; + +export interface Renderer { + <P extends DOMAttributes<T>, T extends Element>( + element: DOMElement<P, T>, + container: Element | null, + callback?: (element: T) => any + ): T; + <P>( + element: SFCElement<P>, + container: Element | null, + callback?: () => any + ): void; + <P, T extends Component<P, ComponentState>>( + element: CElement<P, T>, + container: Element | null, + callback?: (component: T) => any + ): T; + <P>( + element: ReactElement<P>, + container: Element | null, + callback?: (component?: Component<P, ComponentState> | Element) => any + ): Component<P, ComponentState> | Element | void; + <P>( + parentComponent: Component<any>, + element: SFCElement<P>, + container: Element, + callback?: () => any + ): void; +} diff --git a/types/react-dom/react-dom-tests.ts b/types/react-dom/react-dom-tests.ts index 865d74e386..08eac7afdb 100644 --- a/types/react-dom/react-dom-tests.ts +++ b/types/react-dom/react-dom-tests.ts @@ -15,6 +15,11 @@ describe('ReactDOM', () => { ReactDOM.render(React.createElement('div'), rootElement); }); + it('hydrate', () => { + const rootElement = document.createElement('div'); + ReactDOM.hydrate(React.createElement('div'), rootElement); + }); + it('unmounts', () => { const rootElement = document.createElement('div'); ReactDOM.render(React.createElement('div'), rootElement); diff --git a/types/react-dom/server/index.d.ts b/types/react-dom/server/index.d.ts index 7d45ecbeee..53bbca7250 100644 --- a/types/react-dom/server/index.d.ts +++ b/types/react-dom/server/index.d.ts @@ -1,3 +1,5 @@ +/// <reference types="node" /> + import { ReactElement } from 'react'; /** @@ -12,6 +14,13 @@ import { ReactElement } from 'react'; */ export function renderToString(element: ReactElement<any>): string; +/** + * Render a React element to its initial HTML. Returns a Readable stream that outputs + * an HTML string. The HTML output by this stream is exactly equal to what + * `ReactDOMServer.renderToString()` would return. + */ +export function renderToNodeStream(element: ReactElement<any>): NodeJS.ReadableStream; + /** * Similar to `renderToString`, except this doesn't create extra DOM attributes * such as `data-reactid`, that React uses internally. This is useful if you want @@ -19,6 +28,14 @@ export function renderToString(element: ReactElement<any>): string; * attributes can save lots of bytes. */ export function renderToStaticMarkup(element: ReactElement<any>): string; + +/** + * Similar to `renderToNodeStream`, except this doesn't create extra DOM attributes + * such as `data-reactid`, that React uses internally. The HTML output by this stream + * is exactly equal to what `ReactDOMServer.renderToStaticMarkup()` would return. + */ +export function renderToStaticNodeStream(element: ReactElement<any>): NodeJS.ReadableStream; + export const version: string; export as namespace ReactDOMServer; diff --git a/types/react-dom/test-utils/index.d.ts b/types/react-dom/test-utils/index.d.ts index f87971ecc3..05362460d4 100644 --- a/types/react-dom/test-utils/index.d.ts +++ b/types/react-dom/test-utils/index.d.ts @@ -83,9 +83,19 @@ export interface ShallowRenderer { * `Simulate` has a method for every event that React understands. */ export namespace Simulate { + const abort: EventSimulator; + const animationEnd: EventSimulator; + const animationIteration: EventSimulator; + const animationStart: EventSimulator; const blur: EventSimulator; + const canPlay: EventSimulator; + const canPlayThrough: EventSimulator; const change: EventSimulator; const click: EventSimulator; + const compositionEnd: EventSimulator; + const compositionStart: EventSimulator; + const compositionUpdate: EventSimulator; + const contextMenu: EventSimulator; const copy: EventSimulator; const cut: EventSimulator; const doubleClick: EventSimulator; @@ -97,11 +107,21 @@ export namespace Simulate { const dragOver: EventSimulator; const dragStart: EventSimulator; const drop: EventSimulator; + const durationChange: EventSimulator; + const emptied: EventSimulator; + const encrypted: EventSimulator; + const ended: EventSimulator; + const error: EventSimulator; const focus: EventSimulator; const input: EventSimulator; + const invalid: EventSimulator; const keyDown: EventSimulator; const keyPress: EventSimulator; const keyUp: EventSimulator; + const load: EventSimulator; + const loadStart: EventSimulator; + const loadedData: EventSimulator; + const loadedMetadata: EventSimulator; const mouseDown: EventSimulator; const mouseEnter: EventSimulator; const mouseLeave: EventSimulator; @@ -110,12 +130,26 @@ export namespace Simulate { const mouseOver: EventSimulator; const mouseUp: EventSimulator; const paste: EventSimulator; + const pause: EventSimulator; + const play: EventSimulator; + const playing: EventSimulator; + const progress: EventSimulator; + const rateChange: EventSimulator; const scroll: EventSimulator; + const seeked: EventSimulator; + const seeking: EventSimulator; + const select: EventSimulator; + const stalled: EventSimulator; const submit: EventSimulator; + const suspend: EventSimulator; + const timeUpdate: EventSimulator; const touchCancel: EventSimulator; const touchEnd: EventSimulator; const touchMove: EventSimulator; const touchStart: EventSimulator; + const transitionEnd: EventSimulator; + const volumeChange: EventSimulator; + const waiting: EventSimulator; const wheel: EventSimulator; } diff --git a/types/react-dom/tslint.json b/types/react-dom/tslint.json index c1874f7fe3..8179a3659a 100644 --- a/types/react-dom/tslint.json +++ b/types/react-dom/tslint.json @@ -1,7 +1,9 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs "dt-header": false, + "no-unnecessary-generics": false, "no-unnecessary-type-assertion": false } } \ No newline at end of file diff --git a/types/react-dom/v15/index.d.ts b/types/react-dom/v15/index.d.ts new file mode 100644 index 0000000000..796314e19f --- /dev/null +++ b/types/react-dom/v15/index.d.ts @@ -0,0 +1,70 @@ +// Type definitions for React (react-dom) 15.5 +// Project: http://facebook.github.io/react/ +// Definitions by: Asana <https://asana.com> +// AssureSign <http://www.assuresign.com> +// Microsoft <https://microsoft.com> +// MartynasZilinskas <https://github.com/MartynasZilinskas> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +export as namespace ReactDOM; + +import { + ReactInstance, Component, ComponentState, + ReactElement, SFCElement, CElement, + DOMAttributes, DOMElement +} from 'react'; + +export function findDOMNode<E extends Element>(instance: ReactInstance): E; +export function findDOMNode(instance: ReactInstance): Element; + +export function render<P extends DOMAttributes<T>, T extends Element>( + element: DOMElement<P, T>, + container: Element | null, + callback?: (element: T) => any +): T; +export function render<P>( + element: SFCElement<P>, + container: Element | null, + callback?: () => any +): void; +export function render<P, T extends Component<P, ComponentState>>( + element: CElement<P, T>, + container: Element | null, + callback?: (component: T) => any +): T; +export function render<P>( + element: ReactElement<P>, + container: Element | null, + callback?: (component?: Component<P, ComponentState> | Element) => any +): Component<P, ComponentState> | Element | void; +export function render<P>( + parentComponent: Component<any>, + element: SFCElement<P>, + container: Element, + callback?: () => any +): void; + +export function unmountComponentAtNode(container: Element): boolean; + +export const version: string; + +export function unstable_batchedUpdates<A, B>(callback: (a: A, b: B) => any, a: A, b: B): void; +export function unstable_batchedUpdates<A>(callback: (a: A) => any, a: A): void; +export function unstable_batchedUpdates(callback: () => any): void; + +export function unstable_renderSubtreeIntoContainer<P extends DOMAttributes<T>, T extends Element>( + parentComponent: Component<any>, + element: DOMElement<P, T>, + container: Element, + callback?: (element: T) => any): T; +export function unstable_renderSubtreeIntoContainer<P, T extends Component<P, ComponentState>>( + parentComponent: Component<any>, + element: CElement<P, T>, + container: Element, + callback?: (component: T) => any): T; +export function unstable_renderSubtreeIntoContainer<P>( + parentComponent: Component<any>, + element: ReactElement<P>, + container: Element, + callback?: (component?: Component<P, ComponentState> | Element) => any): Component<P, ComponentState> | Element | void; diff --git a/types/react-dom/v15/node-stream/index.d.ts b/types/react-dom/v15/node-stream/index.d.ts new file mode 100644 index 0000000000..ff24c8a939 --- /dev/null +++ b/types/react-dom/v15/node-stream/index.d.ts @@ -0,0 +1,18 @@ +import { ReactElement } from 'react'; + +/** + * Render a ReactElement to its initial HTML. This should only be used on the + * server. + * See https://facebook.github.io/react/docs/react-dom-stream.html#rendertostream + */ +export function renderToStream(element: ReactElement<any>): any; + +/** + * Similar to renderToStream, except this doesn't create extra DOM attributes + * such as data-react-id that React uses internally. + * See https://facebook.github.io/react/docs/react-dom-stream.html#rendertostaticstream + */ +export function renderToStaticStream(element: ReactElement<any>): any; +export const version: string; + +export as namespace ReactDOMNodeStream; diff --git a/types/react-dom/v15/react-dom-tests.ts b/types/react-dom/v15/react-dom-tests.ts new file mode 100644 index 0000000000..865d74e386 --- /dev/null +++ b/types/react-dom/v15/react-dom-tests.ts @@ -0,0 +1,155 @@ +import * as React from 'react'; +import * as ReactDOM from 'react-dom'; +import * as ReactDOMServer from 'react-dom/server'; +import * as ReactDOMNodeStream from 'react-dom/node-stream'; +import * as ReactTestUtils from 'react-dom/test-utils'; + +declare function describe(desc: string, f: () => void): void; +declare function it(desc: string, f: () => void): void; + +class TestComponent extends React.Component { } + +describe('ReactDOM', () => { + it('render', () => { + const rootElement = document.createElement('div'); + ReactDOM.render(React.createElement('div'), rootElement); + }); + + it('unmounts', () => { + const rootElement = document.createElement('div'); + ReactDOM.render(React.createElement('div'), rootElement); + ReactDOM.unmountComponentAtNode(rootElement); + }); + + it('find dom node', () => { + const rootElement = document.createElement('div'); + ReactDOM.render(React.createElement('div'), rootElement); + ReactDOM.findDOMNode(rootElement); + }); +}); + +describe('ReactDOMServer', () => { + it('renderToString', () => { + const content: string = ReactDOMServer.renderToString(React.createElement('div')); + }); + + it('renderToStaticMarkup', () => { + const content: string = ReactDOMServer.renderToStaticMarkup(React.createElement('div')); + }); +}); + +describe('ReactDOMNodeStream', () => { + it('renderToStream', () => { + const content: any = ReactDOMNodeStream.renderToStream(React.createElement('div')); + }); + + it('renderToStaticStream', () => { + const content: any = ReactDOMNodeStream.renderToStaticStream(React.createElement('div')); + }); +}); + +describe('React dom test utils', () => { + it('Simulate', () => { + const element = document.createElement('div'); + const dom = ReactDOM.render( + React.createElement('input', { type: 'text' }), + element + ) as Element; + const node = ReactDOM.findDOMNode(dom) as HTMLInputElement; + + node.value = 'giraffe'; + ReactTestUtils.Simulate.change(node); + ReactTestUtils.Simulate.keyDown(node, { key: "Enter", keyCode: 13, which: 13 }); + }); + + it('renderIntoDocument', () => { + const element = React.createElement('input', { type: 'text' }); + ReactTestUtils.renderIntoDocument(element); + }); + + it('mockComponent', () => { + ReactTestUtils.mockComponent(TestComponent, 'div'); + }); + + it('isElement', () => { + const element = React.createElement(TestComponent); + const isReactElement: boolean = ReactTestUtils.isElement(element); + }); + + it('isElementOfType', () => { + const element = React.createElement(TestComponent); + const isReactElement: boolean = ReactTestUtils.isElementOfType(element, TestComponent); + }); + + it('isDOMComponent', () => { + const element = React.createElement('div'); + const instance = ReactTestUtils.renderIntoDocument(element) as HTMLDivElement; + const isDOMElement: boolean = ReactTestUtils.isDOMComponent(instance); + }); + + it('isCompositeComponent', () => { + const element = React.createElement(TestComponent); + const instance: TestComponent = ReactTestUtils.renderIntoDocument(element); + const isCompositeComponent: boolean = ReactTestUtils.isCompositeComponent(instance); + }); + + it('isCompositeComponentWithType', () => { + const element = React.createElement(TestComponent); + const instance: TestComponent = ReactTestUtils.renderIntoDocument(element); + const isCompositeComponent: boolean = ReactTestUtils.isCompositeComponentWithType(instance, TestComponent); + }); + + it('findAllInRenderedTree', () => { + const component = ReactTestUtils.renderIntoDocument(React.createElement(TestComponent)); + ReactTestUtils.findAllInRenderedTree(component, (i: React.ReactInstance) => true); + }); + + it('scryRenderedDOMComponentsWithClass', () => { + const component = ReactTestUtils.renderIntoDocument(React.createElement(TestComponent)); + ReactTestUtils.scryRenderedDOMComponentsWithClass(component, 'class'); + }); + + it('findRenderedDOMComponentWithClass', () => { + const component = ReactTestUtils.renderIntoDocument(React.createElement(TestComponent)); + ReactTestUtils.findRenderedDOMComponentWithClass(component, 'class'); + }); + + it('scryRenderedDOMComponentsWithTag', () => { + const component = ReactTestUtils.renderIntoDocument(React.createElement(TestComponent)); + ReactTestUtils.scryRenderedDOMComponentsWithTag(component, 'div'); + }); + + it('findRenderedDOMComponentWithTag', () => { + const component = ReactTestUtils.renderIntoDocument(React.createElement(TestComponent)); + ReactTestUtils.findRenderedDOMComponentWithTag(component, 'tag'); + }); + + it('scryRenderedComponentsWithType', () => { + const component = ReactTestUtils.renderIntoDocument(React.createElement(TestComponent)); + ReactTestUtils.scryRenderedComponentsWithType(component, TestComponent); + }); + + it('findRenderedComponentWithType', () => { + const component = ReactTestUtils.renderIntoDocument(React.createElement(TestComponent)); + ReactTestUtils.findRenderedComponentWithType(component, TestComponent); + }); + + describe('Shallow Rendering', () => { + it('createRenderer', () => { + const component = React.createElement(TestComponent); + const shallowRenderer = ReactTestUtils.createRenderer(); + }); + + it('shallowRenderer.render', () => { + const component = React.createElement(TestComponent); + const shallowRenderer = ReactTestUtils.createRenderer(); + shallowRenderer.render(component); + }); + + it('shallowRenderer.getRenderOutput', () => { + const component = React.createElement(TestComponent); + const shallowRenderer = ReactTestUtils.createRenderer(); + shallowRenderer.getRenderOutput(); + }); + }); +}); diff --git a/types/react-dom/v15/server/index.d.ts b/types/react-dom/v15/server/index.d.ts new file mode 100644 index 0000000000..7d45ecbeee --- /dev/null +++ b/types/react-dom/v15/server/index.d.ts @@ -0,0 +1,24 @@ +import { ReactElement } from 'react'; + +/** + * Render a React element to its initial HTML. This should only be used on the server. + * React will return an HTML string. You can use this method to generate HTML on the server + * and send the markup down on the initial request for faster page loads and to allow search + * engines to crawl your pages for SEO purposes. + * + * If you call `ReactDOM.render()` on a node that already has this server-rendered markup, + * React will preserve it and only attach event handlers, allowing you + * to have a very performant first-load experience. + */ +export function renderToString(element: ReactElement<any>): string; + +/** + * Similar to `renderToString`, except this doesn't create extra DOM attributes + * such as `data-reactid`, that React uses internally. This is useful if you want + * to use React as a simple static page generator, as stripping away the extra + * attributes can save lots of bytes. + */ +export function renderToStaticMarkup(element: ReactElement<any>): string; +export const version: string; + +export as namespace ReactDOMServer; diff --git a/types/react-dom/v15/test-utils/index.d.ts b/types/react-dom/v15/test-utils/index.d.ts new file mode 100644 index 0000000000..05362460d4 --- /dev/null +++ b/types/react-dom/v15/test-utils/index.d.ts @@ -0,0 +1,276 @@ +import { + AbstractView, Component, ComponentClass, + ReactElement, ReactInstance, ClassType, + DOMElement, SFCElement, CElement, + ReactHTMLElement, DOMAttributes, SFC +} from 'react'; + +import * as ReactTestUtils from "."; + +export interface OptionalEventProperties { + bubbles?: boolean; + cancelable?: boolean; + currentTarget?: EventTarget; + defaultPrevented?: boolean; + eventPhase?: number; + isTrusted?: boolean; + nativeEvent?: Event; + preventDefault?(): void; + stopPropagation?(): void; + target?: EventTarget; + timeStamp?: Date; + type?: string; +} + +export interface SyntheticEventData extends OptionalEventProperties { + altKey?: boolean; + button?: number; + buttons?: number; + clientX?: number; + clientY?: number; + changedTouches?: TouchList; + charCode?: boolean; + clipboardData?: DataTransfer; + ctrlKey?: boolean; + deltaMode?: number; + deltaX?: number; + deltaY?: number; + deltaZ?: number; + detail?: number; + getModifierState?(key: string): boolean; + key?: string; + keyCode?: number; + locale?: string; + location?: number; + metaKey?: boolean; + pageX?: number; + pageY?: number; + relatedTarget?: EventTarget; + repeat?: boolean; + screenX?: number; + screenY?: number; + shiftKey?: boolean; + targetTouches?: TouchList; + touches?: TouchList; + view?: AbstractView; + which?: number; +} + +export type EventSimulator = (element: Element | Component<any>, eventData?: SyntheticEventData) => void; + +export interface MockedComponentClass { + new (): any; +} + +export interface ShallowRenderer { + /** + * After `shallowRenderer.render()` has been called, returns shallowly rendered output. + */ + getRenderOutput<E extends ReactElement<any>>(): E; + /** + * After `shallowRenderer.render()` has been called, returns shallowly rendered output. + */ + getRenderOutput(): ReactElement<any>; + /** + * Similar to `ReactDOM.render` but it doesn't require DOM and only renders a single level deep. + */ + render(element: ReactElement<any>, context?: any): void; + unmount(): void; +} + +/** + * Simulate an event dispatch on a DOM node with optional `eventData` event data. + * `Simulate` has a method for every event that React understands. + */ +export namespace Simulate { + const abort: EventSimulator; + const animationEnd: EventSimulator; + const animationIteration: EventSimulator; + const animationStart: EventSimulator; + const blur: EventSimulator; + const canPlay: EventSimulator; + const canPlayThrough: EventSimulator; + const change: EventSimulator; + const click: EventSimulator; + const compositionEnd: EventSimulator; + const compositionStart: EventSimulator; + const compositionUpdate: EventSimulator; + const contextMenu: EventSimulator; + const copy: EventSimulator; + const cut: EventSimulator; + const doubleClick: EventSimulator; + const drag: EventSimulator; + const dragEnd: EventSimulator; + const dragEnter: EventSimulator; + const dragExit: EventSimulator; + const dragLeave: EventSimulator; + const dragOver: EventSimulator; + const dragStart: EventSimulator; + const drop: EventSimulator; + const durationChange: EventSimulator; + const emptied: EventSimulator; + const encrypted: EventSimulator; + const ended: EventSimulator; + const error: EventSimulator; + const focus: EventSimulator; + const input: EventSimulator; + const invalid: EventSimulator; + const keyDown: EventSimulator; + const keyPress: EventSimulator; + const keyUp: EventSimulator; + const load: EventSimulator; + const loadStart: EventSimulator; + const loadedData: EventSimulator; + const loadedMetadata: EventSimulator; + const mouseDown: EventSimulator; + const mouseEnter: EventSimulator; + const mouseLeave: EventSimulator; + const mouseMove: EventSimulator; + const mouseOut: EventSimulator; + const mouseOver: EventSimulator; + const mouseUp: EventSimulator; + const paste: EventSimulator; + const pause: EventSimulator; + const play: EventSimulator; + const playing: EventSimulator; + const progress: EventSimulator; + const rateChange: EventSimulator; + const scroll: EventSimulator; + const seeked: EventSimulator; + const seeking: EventSimulator; + const select: EventSimulator; + const stalled: EventSimulator; + const submit: EventSimulator; + const suspend: EventSimulator; + const timeUpdate: EventSimulator; + const touchCancel: EventSimulator; + const touchEnd: EventSimulator; + const touchMove: EventSimulator; + const touchStart: EventSimulator; + const transitionEnd: EventSimulator; + const volumeChange: EventSimulator; + const waiting: EventSimulator; + const wheel: EventSimulator; +} + +/** + * Render a React element into a detached DOM node in the document. __This function requires a DOM__. + */ +export function renderIntoDocument<T extends Element>( + element: DOMElement<any, T>): T; +export function renderIntoDocument( + element: SFCElement<any>): void; +export function renderIntoDocument<T extends Component<any>>( + element: CElement<any, T>): T; +export function renderIntoDocument<P>( + element: ReactElement<P>): Component<P> | Element | void; + +/** + * Pass a mocked component module to this method to augment it with useful methods that allow it to + * be used as a dummy React component. Instead of rendering as usual, the component will become + * a simple `<div>` (or other tag if `mockTagName` is provided) containing any provided children. + */ +export function mockComponent( + mocked: MockedComponentClass, mockTagName?: string): typeof ReactTestUtils; + +/** + * Returns `true` if `element` is any React element. + */ +export function isElement(element: any): boolean; + +/** + * Returns `true` if `element` is a React element whose type is of a React `componentClass`. + */ +export function isElementOfType<T extends HTMLElement>( + element: ReactElement<any>, type: string): element is ReactHTMLElement<T>; +/** + * Returns `true` if `element` is a React element whose type is of a React `componentClass`. + */ +export function isElementOfType<P extends DOMAttributes<{}>, T extends Element>( + element: ReactElement<any>, type: string): element is DOMElement<P, T>; +/** + * Returns `true` if `element` is a React element whose type is of a React `componentClass`. + */ +export function isElementOfType<P>( + element: ReactElement<any>, type: SFC<P>): element is SFCElement<P>; +/** + * Returns `true` if `element` is a React element whose type is of a React `componentClass`. + */ +export function isElementOfType<P, T extends Component<P>, C extends ComponentClass<P>>( + element: ReactElement<any>, type: ClassType<P, T, C>): element is CElement<P, T>; + +/** + * Returns `true` if `instance` is a DOM component (such as a `<div>` or `<span>`). + */ +export function isDOMComponent(instance: ReactInstance): instance is Element; +/** + * Returns `true` if `instance` is a user-defined component, such as a class or a function. + */ +export function isCompositeComponent(instance: ReactInstance): instance is Component<any>; +/** + * Returns `true` if `instance` is a component whose type is of a React `componentClass`. + */ +export function isCompositeComponentWithType<T extends Component<any>, C extends ComponentClass<any>>( + instance: ReactInstance, type: ClassType<any, T, C>): boolean; + +/** + * Traverse all components in `tree` and accumulate all components where + * `test(component)` is `true`. This is not that useful on its own, but it's used + * as a primitive for other test utils. + */ +export function findAllInRenderedTree( + root: Component<any>, + fn: (i: ReactInstance) => boolean): ReactInstance[]; + +/** + * Finds all DOM elements of components in the rendered tree that are + * DOM components with the class name matching `className`. + */ +export function scryRenderedDOMComponentsWithClass( + root: Component<any>, + className: string): Element[]; +/** + * Like `scryRenderedDOMComponentsWithClass()` but expects there to be one result, + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + */ +export function findRenderedDOMComponentWithClass( + root: Component<any>, + className: string): Element; + +/** + * Finds all DOM elements of components in the rendered tree that are + * DOM components with the tag name matching `tagName`. + */ +export function scryRenderedDOMComponentsWithTag( + root: Component<any>, + tagName: string): Element[]; +/** + * Like `scryRenderedDOMComponentsWithTag()` but expects there to be one result, + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + */ +export function findRenderedDOMComponentWithTag( + root: Component<any>, + tagName: string): Element; + +/** + * Finds all instances of components with type equal to `componentClass`. + */ +export function scryRenderedComponentsWithType<T extends Component, C extends ComponentClass>( + root: Component<any>, + type: ClassType<any, T, C>): T[]; + +/** + * Same as `scryRenderedComponentsWithType()` but expects there to be one result + * and returns that one result, or throws exception if there is any other + * number of matches besides one. + */ +export function findRenderedComponentWithType<T extends Component, C extends ComponentClass>( + root: Component<any>, + type: ClassType<any, T, C>): T; + +/** + * Call this in your tests to create a shallow renderer. + */ +export function createRenderer(): ShallowRenderer; diff --git a/types/react-dom/v15/tsconfig.json b/types/react-dom/v15/tsconfig.json new file mode 100644 index 0000000000..6cba48934f --- /dev/null +++ b/types/react-dom/v15/tsconfig.json @@ -0,0 +1,34 @@ +{ + "files": [ + "index.d.ts", + "react-dom-tests.ts", + "server/index.d.ts", + "node-stream/index.d.ts", + "test-utils/index.d.ts" + ], + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "paths": { + "react": [ + "react/v15" + ], + "react-dom": [ + "react-dom/v15" + ] + }, + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + } +} diff --git a/types/react-dom/v15/tslint.json b/types/react-dom/v15/tslint.json new file mode 100644 index 0000000000..8179a3659a --- /dev/null +++ b/types/react-dom/v15/tslint.json @@ -0,0 +1,9 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "dt-header": false, + "no-unnecessary-generics": false, + "no-unnecessary-type-assertion": false + } +} \ No newline at end of file diff --git a/types/react-dropzone/index.d.ts b/types/react-dropzone/index.d.ts index c2ab8820de..3ea828f350 100644 --- a/types/react-dropzone/index.d.ts +++ b/types/react-dropzone/index.d.ts @@ -1,10 +1,11 @@ -// Type definitions for react-dropzone 3.13 +// Type definitions for react-dropzone 4.1.3 // Project: https://github.com/okonet/react-dropzone // Definitions by: Mathieu Larouche Dube <https://github.com/matdube>, // Ivo Jesus <https://github.com/LynxEyes>, // Luís Rodrigues <https://github.com/goblindegook>, // Ben Bayard <https://github.com/benbayard>, -// Karol Janyst <https://github.com/LKay> +// Karol Janyst <https://github.com/LKay>, +// Andris Causs <https://github.com/codeaid> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -22,15 +23,20 @@ declare namespace Dropzone { export interface DropzoneProps extends Pick<InputHTMLAttributes<HTMLDivElement>, PickedAttributes> { disableClick?: boolean; + disabled?: boolean; disablePreview?: boolean; preventDropOnDocument?: boolean; inputProps?: InputHTMLAttributes<HTMLInputElement>; maxSize?: number; minSize?: number; activeClassName?: string; + acceptClassName?: string; rejectClassName?: string; + disabledClassName?: string; activeStyle?: CSSProperties; + acceptStyle?: CSSProperties; rejectStyle?: CSSProperties; + disabledStyle?: CSSProperties; onDrop?: DropFilesEventHandler; onDropAccepted?: DropFileEventHandler; onDropRejected?: DropFileEventHandler; diff --git a/types/react-dropzone/react-dropzone-tests.tsx b/types/react-dropzone/react-dropzone-tests.tsx index 3bf54cdc2b..8fcb16311a 100644 --- a/types/react-dropzone/react-dropzone-tests.tsx +++ b/types/react-dropzone/react-dropzone-tests.tsx @@ -34,14 +34,19 @@ class Test extends React.Component { onFileDialogCancel={this.handleFileDialog} style={{ borderStyle: "dashed" }} activeStyle={{ borderStyle: "dotted" }} + acceptStyle={{ borderStyle: "dotted" }} rejectStyle={{ borderStyle: "dotted" }} + disabledStyle={{ borderStyle: "dotted" }} className="regular" activeClassName="active" + acceptClassName="accept" rejectClassName="reject" + disabledClassName="disabled" minSize={2000} maxSize={Infinity} disablePreview disableClick + disabled multiple={false} accept="*.png" name="dropzone" diff --git a/types/react-dropzone/v3/index.d.ts b/types/react-dropzone/v3/index.d.ts new file mode 100644 index 0000000000..c2ab8820de --- /dev/null +++ b/types/react-dropzone/v3/index.d.ts @@ -0,0 +1,45 @@ +// Type definitions for react-dropzone 3.13 +// Project: https://github.com/okonet/react-dropzone +// Definitions by: Mathieu Larouche Dube <https://github.com/matdube>, +// Ivo Jesus <https://github.com/LynxEyes>, +// Luís Rodrigues <https://github.com/goblindegook>, +// Ben Bayard <https://github.com/benbayard>, +// Karol Janyst <https://github.com/LKay> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import { CSSProperties, Component, DragEvent, InputHTMLAttributes } from "react"; + +declare namespace Dropzone { + export interface ImageFile extends File { + preview?: string; + } + + export type DropFileEventHandler = (acceptedOrRejected: ImageFile[], event: DragEvent<HTMLDivElement>) => void; + export type DropFilesEventHandler = (accepted: ImageFile[], rejected: ImageFile[], event: DragEvent<HTMLDivElement>) => void; + + type PickedAttributes = "accept" | "className" | "multiple" | "name" | "onClick" | "onDragStart" | "onDragEnter" | "onDragOver" | "onDragLeave" | "style"; + + export interface DropzoneProps extends Pick<InputHTMLAttributes<HTMLDivElement>, PickedAttributes> { + disableClick?: boolean; + disablePreview?: boolean; + preventDropOnDocument?: boolean; + inputProps?: InputHTMLAttributes<HTMLInputElement>; + maxSize?: number; + minSize?: number; + activeClassName?: string; + rejectClassName?: string; + activeStyle?: CSSProperties; + rejectStyle?: CSSProperties; + onDrop?: DropFilesEventHandler; + onDropAccepted?: DropFileEventHandler; + onDropRejected?: DropFileEventHandler; + onFileDialogCancel?: () => void; + } +} + +declare class Dropzone extends Component<Dropzone.DropzoneProps> { + open(): void; +} + +export = Dropzone; diff --git a/types/react-dropzone/v3/react-dropzone-tests.tsx b/types/react-dropzone/v3/react-dropzone-tests.tsx new file mode 100644 index 0000000000..3bf54cdc2b --- /dev/null +++ b/types/react-dropzone/v3/react-dropzone-tests.tsx @@ -0,0 +1,55 @@ +import * as React from "react"; +import { DragEvent, SyntheticEvent } from "react"; +import Dropzone = require("react-dropzone"); +import { ImageFile } from "react-dropzone"; + +class Test extends React.Component { + + dz: Dropzone; + + open() { + this.dz.open(); + } + + handleDropFile = (files: ImageFile[], e: DragEvent<HTMLDivElement>) => {}; + + handleDropFiles = (accepted: File[], rejected: File[], event: DragEvent<HTMLDivElement>) => {}; + + handleDefault = (e: SyntheticEvent<HTMLDivElement>) => {} + + handleFileDialog = () => {} + + render() { + return ( + <div> + <Dropzone + ref={(node) => { this.dz = node }} + onClick={this.handleDefault} + onDrop={this.handleDropFiles} + onDropAccepted={this.handleDropFile } + onDropRejected={this.handleDropFile } + onDragStart={this.handleDefault} + onDragEnter={this.handleDefault} + onDragLeave={this.handleDefault} + onFileDialogCancel={this.handleFileDialog} + style={{ borderStyle: "dashed" }} + activeStyle={{ borderStyle: "dotted" }} + rejectStyle={{ borderStyle: "dotted" }} + className="regular" + activeClassName="active" + rejectClassName="reject" + minSize={2000} + maxSize={Infinity} + disablePreview + disableClick + multiple={false} + accept="*.png" + name="dropzone" + inputProps={{ id : "dropzone" }} + /> + </div> + ); + } +} + +export default Test; diff --git a/types/react-dropzone/v3/tsconfig.json b/types/react-dropzone/v3/tsconfig.json new file mode 100644 index 0000000000..3032b7ca7d --- /dev/null +++ b/types/react-dropzone/v3/tsconfig.json @@ -0,0 +1,29 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "jsx": "react", + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "types": [], + "paths": { + "react-dropzone": [ + "react-dropzone/v3" + ] + }, + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-dropzone-tests.tsx" + ] +} \ No newline at end of file diff --git a/types/react-form/index.d.ts b/types/react-form/index.d.ts new file mode 100644 index 0000000000..4694efa926 --- /dev/null +++ b/types/react-form/index.d.ts @@ -0,0 +1,286 @@ +// Type definitions for react-form 1.3 +// Project: https://github.com/tannerlinsley/react-form#readme +// Definitions by: Cameron McAteer <https://github.com/cameron-mcateer> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import * as React from 'react'; + +export type FormValue = any; +export type FormError = string | undefined; +export interface Nested<T> { + [key: string]: T | Nested<T>; +} +export type FormValues = Nested<FormValue>; +export type Touched = Nested<boolean>; +export type FormErrors = {[key: string]: FormError} | [{[key: string]: FormError}]; +export type NestedErrors = Nested<FormErrors>; +export type RenderReturn = JSX.Element | false | null; + +export interface FormProps { + loadState?(props: FormProps, self: Form): FormState | undefined; + defaultValues?: FormValues; + preValidate?(values: FormValues, state: FormState, props: FormProps, self: Form): FormValues; + validate?(values: FormValues, state: FormState, props: FormProps): FormErrors; + onValidationFail?(values: FormValues, state: FormState, props: FormProps, self: Form): void; + onChange?(state: FormState, props: FormProps, initial: boolean | FormProps, self: Form): void; + saveState?(state: FormState, props: FormProps, self: Form): void; + willUnmount?(state: FormState, props: FormProps, self: Form): void; + preSubmit?(values: FormValues, state: FormState, props: FormProps, self: Form): FormValues; + onSubmit?(values: FormValues, state: FormState, props: FormProps, self: Form): void; + postSubmit?(values: FormValues, state: FormState, props: FormProps, self: Form): void; +} + +export interface FormState { + values: FormValues; + touched: Touched; + errors: FormErrors; + nestedErrors: NestedErrors; + dirty?: boolean; +} + +export const FormDefaultProps: FormProps; + +export interface FormApi { + setAllValues(values: FormValues, noTouch?: boolean): void; + setValue(field: string, value: any, noTouch?: boolean): void; + getValue(field: string, fallback?: any): any; + setNestedError(field: string, value?: boolean): void; + getError(field: string): FormError; + setTouched(field: string, value?: boolean): void; + getTouched(field: string): boolean; + addValue(field: string, value: any): void; + removeValue(field: string, index: number): void; + swapValues(field: string, index: number, destIndex: number): void; + setAllTouched(dirty?: boolean, state?: Partial<FormState>): void; + resetForm(): void; + submitForm(e?: Pick<React.SyntheticEvent<any>, 'preventDefault'>): void; +} + +export interface FormFunctionProps extends FormProps, FormState, FormApi {} + +export interface FormContext { + formApi: FormApi; +} + +export class Form + extends React.Component< + FormProps & { children?: ((props: FormFunctionProps) => RenderReturn) | RenderReturn }, + FormState + > + implements FormApi, React.ChildContextProvider<FormContext> { + static defaultProps: FormProps; + static childContextTypes: { + formApi: React.Validator<any> + }; + + getDefaultState(): FormState; + getChildContext(): FormContext; + componentWillMount(): void; + componentWillReceiveProps(nextProps: Readonly<Partial<FormProps>>, nextContext: any): void; + componentWillUmount(): void; + + // API + setAllValues(values: FormValues, noTouch?: boolean): void; + setValue(field: string, value: any, noTouch?: boolean): void; + getValue(field: string, fallback?: any): any; + setNestedError(field: string, value?: boolean): void; + getError(field: string): FormError; + setTouched(field: string, value?: boolean): void; + getTouched(field: string): boolean; + addValue(field: string, value: any): void; + removeValue(field: string, index: number): void; + swapValues(field: string, index: number, destIndex: number): void; + setAllTouched(dirty?: boolean, state?: Partial<FormState>): void; + resetForm(): void; + submitForm(e?: Pick<React.SyntheticEvent<any>, 'preventDefault'>): void; + + // Utils + getAPI(): FormApi; + setFormState(newState: Partial<FormState>, silent?: boolean): void; + emitChange(state: FormState, initial?: boolean): void; + validate(values: FormValues, state: FormState, props: FormProps): FormErrors; + render(): RenderReturn; + } + +export interface FormFieldApi { + setAllValues(values: FormValues, noTouch?: boolean): void; + setValue(value: any, noTouch?: boolean): void; + getValue(fallback?: any): any; + setNestedError(value?: boolean): void; + getError(): FormError; + setTouched(value?: boolean): void; + getTouched(): boolean; + addValue(value: any): void; + removeValue(index: number): void; + swapValues(index: number, destIndex: number): void; + setAllTouched(dirty?: boolean, state?: Partial<FormState>): void; + resetForm(): void; + submitForm(e?: Pick<React.SyntheticEvent<any>, 'preventDefault'>): void; +} + +export interface FormFieldPropsWithField { + field?: string; + children(api: FormFieldApi): React.ReactElement<any> | null; +} +export interface FormFieldPropsWithoutField { + children(api: FormApi): RenderReturn; +} +export type FormFieldProps = FormFieldPropsWithField | FormFieldPropsWithoutField; +export const FormField: React.SFC<FormFieldProps>; + +// FormError +export interface FormErrorProps { + field?: FormFieldPropsWithField['field']; + className?: string; + style?: React.HTMLAttributes<HTMLElement>['style']; +} +export const FormError: React.SFC<FormErrorProps>; + +export interface FormInputProps { + field?: FormFieldPropsWithField['field']; + showErrors?: boolean; + errorBefore?: boolean; + isForm?: boolean; + className?: string; + errorProps?: FormErrorProps; +} + +export interface FormInputPropsWithChildren extends FormInputProps { + children(api: FormFieldApi): React.ReactElement<any> | null; +} +export const FormInput: React.SFC<FormInputPropsWithChildren>; + +// ============================== +// Inputs +// ============================== + +export type EventHandler<T, E> = (e: E, cb: () => void) => void; +export type ChangeHandler<T> = EventHandler<T, React.ChangeEvent<T>>; +export type FocusHandler<T> = EventHandler<T, React.FocusEvent<T>>; +export type ClickHandler<T> = EventHandler<T, React.MouseEvent<T>>; + +// Prop interfaces are intermediate interfaces to "redefine" the type of some events +// onChange:React.EventHandler => onChange:any => onChange:CustomEventHandler + +export interface SelectOption { + label: string; + value: any; + disabled?: boolean; +} +export interface SelectAttrs extends React.SelectHTMLAttributes<HTMLSelectElement> { + onChange?: any; + onBlur?: any; +} +export interface SelectProps extends SelectAttrs { + options: ReadonlyArray<SelectOption>; + field?: FormInputProps['field']; + showErrors?: FormInputProps['showErrors']; + errorBefore?: FormInputProps['errorBefore']; + onChange?: ChangeHandler<HTMLSelectElement>; + onBlur?: FocusHandler<HTMLSelectElement>; + isForm?: FormInputProps['isForm']; + noTouch?: boolean; + errorProps?: FormInputProps['errorProps']; + placeholder?: string; +} +export const Select: React.SFC<SelectProps>; + +export interface InputAttrs extends React.InputHTMLAttributes<HTMLInputElement> { + onChange?: any; + onBlur?: any; +} +export interface CheckboxProps extends InputAttrs { + field?: FormInputProps['field']; + showErrors?: FormInputProps['showErrors']; + errorBefore?: FormInputProps['errorBefore']; + onChange?: ChangeHandler<HTMLInputElement>; + onBlur?: FocusHandler<HTMLInputElement>; + isForm?: FormInputProps['isForm']; + noTouch?: boolean; + errorProps?: FormInputProps['errorProps']; +} +export const Checkbox: React.SFC<CheckboxProps>; + +export interface TextareaAttrs extends React.TextareaHTMLAttributes<HTMLTextAreaElement> { + onChange?: any; + onBlur?: any; +} +export interface TextareaProps extends TextareaAttrs { + field?: FormInputProps['field']; + showErrors?: FormInputProps['showErrors']; + errorBefore?: FormInputProps['errorBefore']; + onChange?: ChangeHandler<HTMLTextAreaElement>; + onBlur?: FocusHandler<HTMLTextAreaElement>; + isForm?: FormInputProps['isForm']; + noTouch?: boolean; + errorProps?: FormInputProps['errorProps']; +} +export const Textarea: React.SFC<TextareaProps>; + +export interface NestedFormProps extends FormProps { + field?: FormInputProps['field']; + children?: React.ReactElement<FormProps> | [React.ReactElement<FormProps>]; + errorProps?: FormInputProps['errorProps']; +} +export const NestedForm: React.SFC<NestedFormProps>; + +export interface TextProps extends InputAttrs { + field?: FormInputProps['field']; + showErrors?: FormInputProps['showErrors']; + errorBefore?: FormInputProps['errorBefore']; + onChange?: ChangeHandler<HTMLInputElement>; + onBlur?: FocusHandler<HTMLInputElement>; + isForm?: FormInputProps['isForm']; + noTouch?: boolean; + errorProps?: FormInputProps['errorProps']; +} +export const Text: React.SFC<TextProps>; + +export interface RadioGroupProps { + field?: FormInputProps['field']; + showErrors?: FormInputProps['showErrors']; + errorBefore?: FormInputProps['errorBefore']; + isForm?: FormInputProps['isForm']; + errorProps?: FormInputProps['errorProps']; +} +export interface RadioGroupContext { + formRadioGroup: RadioGroup; +} +export class RadioGroup extends React.Component<RadioGroupProps> implements FormFieldApi { + static childContextTypes: { + formRadioGroup: React.Validator<any> + }; + + setAllValues: FormFieldApi['setAllValues']; + setValue: FormFieldApi['setValue']; + getValue: FormFieldApi['getValue']; + setNestedError: FormFieldApi['setNestedError']; + getError: FormFieldApi['getError']; + setTouched: FormFieldApi['setTouched']; + getTouched: FormFieldApi['getTouched']; + addValue: FormFieldApi['addValue']; + removeValue: FormFieldApi['removeValue']; + swapValues: FormFieldApi['swapValues']; + setAllTouched: FormFieldApi['setAllTouched']; + resetForm: FormFieldApi['resetForm']; + submitForm: FormFieldApi['submitForm']; + + getChildContext(): RadioGroupContext; +} + +export interface InputWIthoutClick extends InputAttrs { + onClick?: any; +} +export interface RadioProps extends InputWIthoutClick { + onClick?: ClickHandler<HTMLInputElement>; + onChange?: ChangeHandler<HTMLInputElement>; + onBlur?: FocusHandler<HTMLInputElement>; +} +export class Radio extends React.Component<RadioProps> { + static contextTypes: { + formRadioGroup: React.Validator<any> + }; + + context: RadioGroupContext; +} diff --git a/types/react-form/react-form-tests.tsx b/types/react-form/react-form-tests.tsx new file mode 100644 index 0000000000..aad7f1b92f --- /dev/null +++ b/types/react-form/react-form-tests.tsx @@ -0,0 +1,78 @@ +import * as React from 'react'; +import { + Form, + FormError, + FormInput, + + // Inputs + Select, + Checkbox, + Textarea, + NestedForm, + Text, + RadioGroup, + Radio +} from 'react-form'; + +<Form />; + +<Form> + {() => null} +</Form>; + +<Form> + {() => <div/>} +</Form>; + +<Form> + { ({ submitForm }) => <button onClick={submitForm}>Submit</button> } +</Form>; + +<FormError field="" />; + +const CustomInput: React.SFC<React.HTMLAttributes<HTMLInputElement> & {field?: string}> = + ({field, ...rest}) => { + return ( + <FormInput field={field}> + {({ setValue, getValue, setTouched }) => { + return ( + <input + {...rest} + value={getValue()} + onChange={(e) => setValue(e.target.value)} + onBlur={() => setTouched(true)} + /> + ); + }} + </FormInput> + ); + }; + +const events = { + onChange: (e: React.SyntheticEvent<HTMLElement>, cb: () => void): null => null, + onBlur: (e: React.SyntheticEvent<HTMLElement>, cb: () => void): null => null +}; +const onClick = (e: React.SyntheticEvent<HTMLElement>, cb: () => void): null => null; + +<Select options={[]} />; +<Select field="" options={[{label: '', value: '', disabled: false}]} {...events} />; + +<Checkbox />; +<Checkbox field="" checked={false} {...events} />; + +<Textarea />; +<Textarea field="" {...events} />; + +<Form> + <NestedForm> + <Form /> + </NestedForm> +</Form>; + +<Text />; +<Text field="" {...events} />; + +<RadioGroup field=""> + <Radio /> + <Radio {...events} onClick={onClick} /> +</RadioGroup>; diff --git a/types/react-form/tsconfig.json b/types/react-form/tsconfig.json new file mode 100644 index 0000000000..13b8c8f5a5 --- /dev/null +++ b/types/react-form/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "jsx": "react", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-form-tests.tsx" + ] +} diff --git a/types/react-form/tslint.json b/types/react-form/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-form/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/react-foundation/components/accordion.d.ts b/types/react-foundation/components/accordion.d.ts new file mode 100644 index 0000000000..8847b8ce28 --- /dev/null +++ b/types/react-foundation/components/accordion.d.ts @@ -0,0 +1,31 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { FlexboxPropTypes } from '../utils'; +/** + * Accordion component. + * http://foundation.zurb.com/sites/docs/accordion.html + */ +export declare const Accordion: React.StatelessComponent<AccordianProps>; +export interface AccordianProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLUListElement> { +} +/** + * Accordion item component. + */ +export declare const AccordionItem: React.StatelessComponent<AccordianItemProps>; +export interface AccordianItemProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLLIElement> { + isActive?: boolean; +} +/** + * Accordion panel container component. + */ +export declare const AccordionContent: React.StatelessComponent<AccordianContentProps>; +export interface AccordianContentProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + isActive?: boolean; +} +/** + * Accordion panel title component. + */ +export declare const AccordionTitle: React.StatelessComponent<AccordionTitleProps>; +export interface AccordionTitleProps extends FlexboxPropTypes, React.AnchorHTMLAttributes<HTMLAnchorElement> { + isActive?: boolean; +} diff --git a/types/react-foundation/components/badge.d.ts b/types/react-foundation/components/badge.d.ts new file mode 100644 index 0000000000..a77ab2ca2a --- /dev/null +++ b/types/react-foundation/components/badge.d.ts @@ -0,0 +1,12 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { BadgeColors } from '../enums'; +import { FlexboxPropTypes } from '../utils'; +/** + * Badge component. + * http://foundation.zurb.com/sites/docs/badge.html + */ +export declare const Badge: React.StatelessComponent<BadgeProps>; +export interface BadgeProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLSpanElement> { + color?: BadgeColors; +} diff --git a/types/react-foundation/components/breadcrumbs.d.ts b/types/react-foundation/components/breadcrumbs.d.ts new file mode 100644 index 0000000000..3094b8887c --- /dev/null +++ b/types/react-foundation/components/breadcrumbs.d.ts @@ -0,0 +1,23 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { GeneralPropTypes, FlexboxPropTypes } from '../utils'; +/** + * Breadcrumbs component. + * http://foundation.zurb.com/sites/docs/breadcrumbs.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const Breadcrumbs: React.StatelessComponent<BreadcrumbsProps>; +export interface BreadcrumbsProps extends GeneralPropTypes, React.HTMLAttributes<HTMLUListElement> { +} +/** + * Breadcrumb item component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const BreadcrumbItem: React.StatelessComponent<BreadcrumbItemProps>; +export interface BreadcrumbItemProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLLIElement> { + isDisabled?: boolean; +} diff --git a/types/react-foundation/components/button-group.d.ts b/types/react-foundation/components/button-group.d.ts new file mode 100644 index 0000000000..558dca03ab --- /dev/null +++ b/types/react-foundation/components/button-group.d.ts @@ -0,0 +1,19 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { Breakpoints, ButtonGroupColors, ButtonGroupSizes } from '../enums'; +import { FlexboxPropTypes } from '../utils'; +/** + * Button group component. + * http://foundation.zurb.com/sites/docs/button-group.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const ButtonGroup: React.StatelessComponent<ButtonGroupProps>; +export interface ButtonGroupProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + color?: ButtonGroupColors; + size?: ButtonGroupSizes; + stackFor?: Breakpoints; + isExpanded?: boolean; + isStacked?: boolean; +} diff --git a/types/react-foundation/components/button.d.ts b/types/react-foundation/components/button.d.ts new file mode 100644 index 0000000000..1bbbcce956 --- /dev/null +++ b/types/react-foundation/components/button.d.ts @@ -0,0 +1,34 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { ButtonSizes, ButtonColors } from '../enums'; +import { FlexboxPropTypes } from '../utils'; +export interface ButtonPropsCommon extends FlexboxPropTypes { + size?: ButtonSizes; + isHollow?: boolean; + isExpanded?: boolean; + isDisabled?: boolean; + isDropdown?: boolean; + isArrowOnly?: boolean; +} +export interface ButtonProps extends ButtonPropsCommon, React.HTMLAttributes<HTMLDivElement> { + color?: ButtonColors; +} +/** + * Button component. + * http://foundation.zurb.com/sites/docs/button.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const Button: React.StatelessComponent<ButtonProps>; +export interface LinkProps extends ButtonPropsCommon, React.AnchorHTMLAttributes<HTMLAnchorElement> { + color?: ButtonColors; +} +/** + * Link button component. + * http://foundation.zurb.com/sites/docs/button.html#basics + * + * @param {Object} props + * @returns {Object} + */ +export declare const Link: React.StatelessComponent<LinkProps>; diff --git a/types/react-foundation/components/callout.d.ts b/types/react-foundation/components/callout.d.ts new file mode 100644 index 0000000000..e9fa8c18f0 --- /dev/null +++ b/types/react-foundation/components/callout.d.ts @@ -0,0 +1,16 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { CalloutColors, CalloutSizes } from '../enums'; +import { FlexboxPropTypes } from '../utils'; +/** + * Callout component. + * http://foundation.zurb.com/sites/docs/callout.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const Callout: React.StatelessComponent<CalloutProps>; +export interface CalloutProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + color?: CalloutColors; + size?: CalloutSizes; +} diff --git a/types/react-foundation/components/close-button.d.ts b/types/react-foundation/components/close-button.d.ts new file mode 100644 index 0000000000..e7ac9be517 --- /dev/null +++ b/types/react-foundation/components/close-button.d.ts @@ -0,0 +1,13 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { FlexboxPropTypes } from '../utils'; +/** + * Close button component. + * http://foundation.zurb.com/sites/docs/close-button.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const CloseButton: React.StatelessComponent<CloseButtonProps>; +export interface CloseButtonProps extends FlexboxPropTypes, React.ButtonHTMLAttributes<HTMLButtonElement> { +} diff --git a/types/react-foundation/components/element.d.ts b/types/react-foundation/components/element.d.ts new file mode 100644 index 0000000000..88601c5479 --- /dev/null +++ b/types/react-foundation/components/element.d.ts @@ -0,0 +1,21 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { FlexboxPropTypes } from '../utils'; +/** + * Div component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const Block: React.StatelessComponent<BlockProps>; +export interface BlockProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { +} +/** + * Span component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const Inline: React.StatelessComponent<InlineProps>; +export interface InlineProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLSpanElement> { +} diff --git a/types/react-foundation/components/flex-video.d.ts b/types/react-foundation/components/flex-video.d.ts new file mode 100644 index 0000000000..4c302b63a7 --- /dev/null +++ b/types/react-foundation/components/flex-video.d.ts @@ -0,0 +1,15 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { FlexboxPropTypes } from '../utils'; +export interface FlexVideoProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + isWidescreen?: boolean; + isVimeo?: boolean; +} +/** + * FlexVideo component. + * http://foundation.zurb.com/sites/docs/flex-video.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const FlexVideo: React.StatelessComponent<FlexVideoProps>; diff --git a/types/react-foundation/components/grid.d.ts b/types/react-foundation/components/grid.d.ts new file mode 100644 index 0000000000..d2e1beed00 --- /dev/null +++ b/types/react-foundation/components/grid.d.ts @@ -0,0 +1,66 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { FlexboxPropTypes } from '../utils'; +/** + * Row component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const Row: React.StatelessComponent<RowProps>; +export interface RowProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + upOnSmall?: number; + upOnMedium?: number; + upOnLarge?: number; + horizontalAlignment?: string; + verticalAlignment?: string; + unstackOnSmall?: boolean; + unstackOnMedium?: boolean; + unstackOnLarge?: boolean; + collapseOnSmall?: boolean; + collapseOnMedium?: boolean; + collapseOnLarge?: boolean; + uncollapseOnSmall?: boolean; + uncollapseOnMedium?: boolean; + uncollapseOnLarge?: boolean; + isCollapsed?: boolean; + isExpanded?: boolean; + isColumn?: boolean; +} +/** + * Column component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const Column: React.StatelessComponent<ColumnProps>; +export interface ColumnProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + upOnSmall?: number; + small?: number; + medium?: number; + large?: number; + offsetOnSmall?: number; + offsetOnMedium?: number; + offsetOnLarge?: number; + pushOnSmall?: number; + pushOnMedium?: number; + pushOnLarge?: number; + pullOnSmall?: number; + pullOnMedium?: number; + pullOnLarge?: number; + orderOnSmall?: number; + orderOnMedium?: number; + orderOnLarge?: number; + centerOnSmall?: boolean; + centerOnMedium?: boolean; + centerOnLarge?: boolean; + uncenterOnSmall?: boolean; + uncenterOnMedium?: boolean; + uncenterOnLarge?: boolean; + expandOnSmall?: boolean; + expandOnMedium?: boolean; + expandOnLarge?: boolean; + isShrunk?: boolean; + isLast?: boolean; + isColumn?: boolean; +} diff --git a/types/react-foundation/components/icon.d.ts b/types/react-foundation/components/icon.d.ts new file mode 100644 index 0000000000..5cce8ed79b --- /dev/null +++ b/types/react-foundation/components/icon.d.ts @@ -0,0 +1,14 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { FlexboxPropTypes } from '../utils'; +/** + * Icon component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const Icon: React.StatelessComponent<IconProps>; +export interface IconProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLElement> { + name: string; + prefix?: string; +} diff --git a/types/react-foundation/components/label.d.ts b/types/react-foundation/components/label.d.ts new file mode 100644 index 0000000000..ecb5b66add --- /dev/null +++ b/types/react-foundation/components/label.d.ts @@ -0,0 +1,15 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { LabelColors } from '../enums'; +import { FlexboxPropTypes } from '../utils'; +/** + * Label component. + * http://foundation.zurb.com/sites/docs/label.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const Label: React.StatelessComponent<LabelProps>; +export interface LabelProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLSpanElement> { + color?: LabelColors; +} diff --git a/types/react-foundation/components/media-object.d.ts b/types/react-foundation/components/media-object.d.ts new file mode 100644 index 0000000000..02a6abd257 --- /dev/null +++ b/types/react-foundation/components/media-object.d.ts @@ -0,0 +1,27 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { HorizontalAlignments } from '../enums'; +import { FlexboxPropTypes } from '../utils'; +/** + * Media object component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const MediaObject: React.StatelessComponent<MediaObjectProps>; +export interface MediaObjectProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + stackForSmall?: boolean; +} +/** + * Media object section component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const MediaObjectSection: React.StatelessComponent<MediaObjectSectionProps>; +export interface MediaObjectSectionProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + alignment?: HorizontalAlignments; + isMain?: boolean; + isMiddle?: boolean; + isBottom?: boolean; +} diff --git a/types/react-foundation/components/menu.d.ts b/types/react-foundation/components/menu.d.ts new file mode 100644 index 0000000000..bd23e19a50 --- /dev/null +++ b/types/react-foundation/components/menu.d.ts @@ -0,0 +1,39 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { MenuAlignments } from '../enums'; +import { FlexboxPropTypes } from '../utils'; +/** + * Menu component. + * http://foundation.zurb.com/sites/docs/menu.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const Menu: React.StatelessComponent<MenuProps>; +export interface MenuProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLUListElement> { + alignment?: MenuAlignments; + iconsOnTop?: boolean; + isExpanded?: boolean; + isVertical?: boolean; + isDropdown?: boolean; + isSimple?: boolean; + isNested?: boolean; + horizontalOnMedium?: boolean; +} +/** + * Menu item component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const MenuItem: React.StatelessComponent<MenuItemProps>; +export interface MenuItemProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLLIElement> { + isActive?: boolean; +} +/** + * Menu text wrapper-component. + * + * @param {Object} props + * @returns {XML} + */ +export declare const MenuText: (props: MenuItemProps) => JSX.Element; diff --git a/types/react-foundation/components/pagination.d.ts b/types/react-foundation/components/pagination.d.ts new file mode 100644 index 0000000000..6e0bec7623 --- /dev/null +++ b/types/react-foundation/components/pagination.d.ts @@ -0,0 +1,46 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { FlexboxPropTypes } from '../utils'; +/** + * Pagination component. + * http://foundation.zurb.com/sites/docs/pagination.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const Pagination: React.StatelessComponent<PaginationProps>; +export interface PaginationProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLUListElement> { + isCentered?: boolean; +} +/** + * Pagination item component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const PaginationItem: React.StatelessComponent<PaginationItemProps>; +export interface PaginationItemProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLLIElement> { + isCurrent?: boolean; + isDisabled?: boolean; +} +/** + * Pagination previous wrapper-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const PaginationPrevious: React.StatelessComponent<PaginationItemProps>; +/** + * Pagination next wrapper-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const PaginationNext: React.StatelessComponent<PaginationItemProps>; +/** + * Pagination ellipsis wrapper-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const PaginationEllipsis: React.StatelessComponent<PaginationItemProps>; diff --git a/types/react-foundation/components/progress-bar.d.ts b/types/react-foundation/components/progress-bar.d.ts new file mode 100644 index 0000000000..423b0b4d1b --- /dev/null +++ b/types/react-foundation/components/progress-bar.d.ts @@ -0,0 +1,61 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { ProgressColors } from '../enums'; +import { GeneralPropTypes, FlexboxPropTypes } from '../utils'; +/** + * Progress component. + * http://foundation.zurb.com/sites/docs/progress-bar.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const Progress: React.StatelessComponent<PaginationProps>; +export interface PaginationProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + min?: number; + max?: number; + value?: number; + color?: ProgressColors; + valueText?: string; + meter?: ProgressMeterWithTextProps; +} +/** + * Progress meter sub-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const ProgressMeter: React.StatelessComponent<ProgressMeterProps>; +export interface ProgressMeterProps extends GeneralPropTypes, React.HTMLAttributes<HTMLDivElement> { +} +/** + * Progress meter with text sub-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const ProgressMeterWithText: React.StatelessComponent<ProgressMeterWithTextProps>; +export interface ProgressMeterWithTextProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLSpanElement> { + text: string; +} +/** + * Progress meter text sub-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const ProgressMeterText: React.StatelessComponent<ProgressMeterTextProps>; +export interface ProgressMeterTextProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLParagraphElement> { + children?: string; +} +/** + * Native progress component. + * http://foundation.zurb.com/sites/docs/progress-bar.html#native-progress + * + * @returns {Object} + */ +export declare const NativeProgress: React.StatelessComponent<NativeProgressProps>; +export interface NativeProgressProps extends FlexboxPropTypes, React.ProgressHTMLAttributes<HTMLProgressElement> { + max?: number; + value?: number; + color?: ProgressColors; +} diff --git a/types/react-foundation/components/responsive.d.ts b/types/react-foundation/components/responsive.d.ts new file mode 100644 index 0000000000..94a915f2c8 --- /dev/null +++ b/types/react-foundation/components/responsive.d.ts @@ -0,0 +1,98 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { Component } from 'react'; +import * as PropTypes from 'prop-types'; +import { TopBarProps } from './top-bar'; +import { GeneralPropTypes, FlexboxPropTypes } from '../utils'; +/** + * Responsive navigation component. + * http://foundation.zurb.com/sites/docs/responsive-navigation.html + */ +export declare class ResponsiveNavigation extends Component<ResponsiveNavigationProps, ResponsiveNavigationState> { + constructor(); + componentWillMount(): void; + componentDidMount(): void; + componentWillUnmount(): void; + /** + * Updates the state of this component. + * While this might seem like a sub-optimal solution, it is actually the only solution. + * Using 'hide' and 'show' -classes won't work because they set display with `!important`. + */ + update(): void; + /** + * Called when the menu icon is clicked. + */ + toggle(): void; + render(): JSX.Element; + static propTypes: { + breakpoint: PropTypes.Validator<any>; + alignX: PropTypes.Requireable<any>; + alignY: PropTypes.Requireable<any>; + selfAlignX: PropTypes.Requireable<any>; + selfAlignY: PropTypes.Requireable<any>; + centerAlign: PropTypes.Requireable<any>; + flexContainer: PropTypes.Requireable<any>; + flexDirRow: PropTypes.Requireable<any>; + flexDirRowRev: PropTypes.Requireable<any>; + flexDirCol: PropTypes.Requireable<any>; + flexDirColRev: PropTypes.Requireable<any>; + flexChild: PropTypes.Requireable<any>; + flexOrder: PropTypes.Requireable<any>; + flexOrderSmall: PropTypes.Requireable<any>; + flexOrderMedium: PropTypes.Requireable<any>; + flexOrderLarge: PropTypes.Requireable<any>; + showFor: PropTypes.Requireable<any>; + showOnlyFor: PropTypes.Requireable<any>; + hideFor: PropTypes.Requireable<any>; + hideOnlyFor: PropTypes.Requireable<any>; + isHidden: PropTypes.Requireable<any>; + isInvisible: PropTypes.Requireable<any>; + showForLandscape: PropTypes.Requireable<any>; + showForPortrait: PropTypes.Requireable<any>; + showForSr: PropTypes.Requireable<any>; + showOnFocus: PropTypes.Requireable<any>; + isClearfix: PropTypes.Requireable<any>; + float: PropTypes.Requireable<any>; + }; + static defaultProps: { + breakpoint: number; + }; +} +export interface ResponsiveNavigationState { + isTitleBarVisible: boolean; + isTopBarVisible: boolean; +} +export interface ResponsiveNavigationProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + breakpoint?: number; + titleBar?: TitleBarProps; + menuIcon?: MenuIconProps; + titleBarTitle?: TitleBarTitleProps; + topBar?: TopBarProps; +} +/** + * Title bar sub-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const TitleBar: React.StatelessComponent<TitleBarProps>; +export interface TitleBarProps extends GeneralPropTypes, React.HTMLAttributes<HTMLDivElement> { +} +/** + * Title bar menu icon sub-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const MenuIcon: React.StatelessComponent<MenuIconProps>; +export interface MenuIconProps extends GeneralPropTypes, React.ButtonHTMLAttributes<HTMLButtonElement> { +} +/** + * Title bar title sub-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const TitleBarTitle: React.StatelessComponent<TitleBarTitleProps>; +export interface TitleBarTitleProps extends GeneralPropTypes, React.HTMLAttributes<HTMLDivElement> { +} diff --git a/types/react-foundation/components/reveal.d.ts b/types/react-foundation/components/reveal.d.ts new file mode 100644 index 0000000000..e1281e83de --- /dev/null +++ b/types/react-foundation/components/reveal.d.ts @@ -0,0 +1,17 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { FlexboxPropTypes } from '../utils'; +/** + * Reveal component. + * http://foundation.zurb.com/sites/docs/reveal.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const Reveal: React.StatelessComponent<PaginationProps>; +export interface PaginationProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + isTiny?: boolean; + isSmall?: boolean; + isLarge?: boolean; + isFullscreen?: boolean; +} diff --git a/types/react-foundation/components/slider.d.ts b/types/react-foundation/components/slider.d.ts new file mode 100644 index 0000000000..b5b414ba23 --- /dev/null +++ b/types/react-foundation/components/slider.d.ts @@ -0,0 +1,64 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { Component } from 'react'; +/** + * Slider component. + * http://foundation.zurb.com/sites/docs/slider.html + */ +export declare class Slider extends Component<SliderProps, SliderState> { + constructor(); + componentWillMount(): void; + render(): JSX.Element; +} +export interface SliderProps extends React.HTMLAttributes<HTMLDivElement>, SliderCommonProps { + initialStart?: number; + fill?: SliderFillProps; + handle?: SliderHandleProps; +} +export interface SliderState { + value: number; +} +/** + * Two-handle slider component. + * http://foundation.zurb.com/sites/docs/slider.html#two-handles + */ +export declare class TwoHandleSlider extends Component<TwoHandleSliderProps, TwoHandleSliderState> { + constructor(); + componentWillMount(): void; + render(): JSX.Element; +} +export interface TwoHandleSliderProps extends React.HTMLAttributes<HTMLDivElement>, SliderCommonProps { + initialStart?: number; + initialEnd?: number; + minHandle?: SliderHandleProps; + maxHandle?: SliderHandleProps; + fill?: SliderFillProps; +} +export interface TwoHandleSliderState { + minValue: number; + maxValue: number; +} +/** + * Slider handle sub-component. + * + * @param {Object} props + * @returns {XML} + */ +export declare const SliderHandle: React.StatelessComponent<SliderHandleProps>; +export interface SliderHandleProps extends React.HTMLAttributes<HTMLSpanElement> { +} +export interface SliderFillProps { + className?: string; +} +/** + * Slider fill sub-component. + * + * @param {Object} props + * @returns {XML} + */ +export declare const SliderFill: React.StatelessComponent<SliderFillProps>; +export interface SliderCommonProps { + className?: string; + isVertical?: boolean; + isDisabled?: boolean; +} diff --git a/types/react-foundation/components/switch.d.ts b/types/react-foundation/components/switch.d.ts new file mode 100644 index 0000000000..623380ebd8 --- /dev/null +++ b/types/react-foundation/components/switch.d.ts @@ -0,0 +1,60 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { SwitchSizes, SwitchInputTypes } from '../enums'; +import { GeneralPropTypes, FlexboxPropTypes } from '../utils'; +/** + * Switch component. + * http://foundation.zurb.com/sites/docs/switch.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const Switch: React.StatelessComponent<SwitchProps>; +export interface SwitchProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + size?: SwitchSizes; + id?: string; + input?: SwitchInputProps; + paddle?: SwitchPaddleProps; + active?: SwitchActiveProps; + inactive?: SwitchInactiveProps; +} +/** + * Switch input sub-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const SwitchInput: React.StatelessComponent<SwitchInputProps>; +export interface SwitchInputProps extends GeneralPropTypes, React.InputHTMLAttributes<HTMLInputElement> { + type?: SwitchInputTypes; + id?: string; +} +/** + * Switch paddle sub-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const SwitchPaddle: React.StatelessComponent<SwitchPaddleProps>; +export interface SwitchPaddleProps extends GeneralPropTypes, React.LabelHTMLAttributes<HTMLLabelElement> { +} +/** + * Switch active sub-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const SwitchActive: React.StatelessComponent<SwitchActiveProps>; +export interface SwitchActiveProps extends GeneralPropTypes, React.HTMLAttributes<HTMLSpanElement> { + text?: string; +} +/** + * Switch inactive sub-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const SwitchInactive: React.StatelessComponent<SwitchInactiveProps>; +export interface SwitchInactiveProps extends GeneralPropTypes, React.HTMLAttributes<HTMLSpanElement> { + text?: string; +} diff --git a/types/react-foundation/components/tabs.d.ts b/types/react-foundation/components/tabs.d.ts new file mode 100644 index 0000000000..b0bf9ed07c --- /dev/null +++ b/types/react-foundation/components/tabs.d.ts @@ -0,0 +1,45 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { FlexboxPropTypes } from '../utils'; +/** + * Tabs component. + * http://foundation.zurb.com/sites/docs/tabs.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const Tabs: React.StatelessComponent<TabsProps>; +export interface TabsProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLUListElement> { + isVertical?: boolean; +} +/** + * Tab item component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const TabItem: React.StatelessComponent<TabItemProps>; +export interface TabItemProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLLIElement> { + isActive?: boolean; +} +/** + * Tab panel container component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const TabsContent: React.StatelessComponent<TabsContentProps>; +export interface TabsContentProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + isActive?: boolean; + isVertical?: boolean; +} +/** + * Tab panel item component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const TabPanel: React.StatelessComponent<TabPanelProps>; +export interface TabPanelProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + isActive?: boolean; +} diff --git a/types/react-foundation/components/thumbnail.d.ts b/types/react-foundation/components/thumbnail.d.ts new file mode 100644 index 0000000000..36730c76b0 --- /dev/null +++ b/types/react-foundation/components/thumbnail.d.ts @@ -0,0 +1,21 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { FlexboxPropTypes } from '../utils'; +/** + * Thumbnail component. + * http://foundation.zurb.com/sites/docs/switch.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const Thumbnail: React.StatelessComponent<ThumbnailProps>; +export interface ThumbnailProps extends FlexboxPropTypes, React.ImgHTMLAttributes<HTMLImageElement> { +} +/** + * Thumbnail link component. + * http://foundation.zurb.com/sites/docs/switch.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const ThumbnailLink: React.StatelessComponent<ThumbnailProps>; diff --git a/types/react-foundation/components/top-bar.d.ts b/types/react-foundation/components/top-bar.d.ts new file mode 100644 index 0000000000..801ab3ab46 --- /dev/null +++ b/types/react-foundation/components/top-bar.d.ts @@ -0,0 +1,34 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { FlexboxPropTypes } from '../utils'; +export interface TopBarProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { +} +/** + * Top bar component. + * http://foundation.zurb.com/sites/docs/top-bar.html + * + * @param {Object} props + * @returns {Object} + */ +export declare const TopBar: React.StatelessComponent<TopBarProps>; +/** + * Top bar title sub-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const TopBarTitle: React.StatelessComponent<TopBarProps>; +/** + * Top bar left sub-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const TopBarLeft: React.StatelessComponent<TopBarProps>; +/** + * Top bar right sub-component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const TopBarRight: React.StatelessComponent<TopBarProps>; diff --git a/types/react-foundation/components/xy-grid.d.ts b/types/react-foundation/components/xy-grid.d.ts new file mode 100644 index 0000000000..3b457084e4 --- /dev/null +++ b/types/react-foundation/components/xy-grid.d.ts @@ -0,0 +1,50 @@ +/// <reference types="react" /> +import * as React from 'react'; +import { GutterTypes, ExtendedBreakpoints } from '../enums'; +import { FlexboxPropTypes } from '../utils'; +/** + * Grid container component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const GridContainer: React.StatelessComponent<GridContainerProps>; +export interface GridContainerProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + fluid?: boolean; + full?: boolean; +} +/** + * Grid component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const Grid: React.StatelessComponent<GridProps>; +export interface GridProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + vertical?: boolean; + gutters?: GutterTypes; + upOnSmall?: number; + upOnMedium?: number; + upOnLarge?: number; + collapseOnSmall?: GutterTypes; + collapseOnMedium?: GutterTypes; + collapseOnLarge?: GutterTypes; + gridFrame?: ExtendedBreakpoints; +} +/** + * Cell component. + * + * @param {Object} props + * @returns {Object} + */ +export declare const Cell: React.StatelessComponent<CellProps>; +export interface CellProps extends FlexboxPropTypes, React.HTMLAttributes<HTMLDivElement> { + small?: number; + medium?: number; + large?: number; + auto?: ExtendedBreakpoints; + shrink?: ExtendedBreakpoints; + offsetOnSmall?: number; + offsetOnMedium?: number; + offsetOnLarge?: number; +} diff --git a/types/react-foundation/enums.d.ts b/types/react-foundation/enums.d.ts new file mode 100644 index 0000000000..c543c66e8d --- /dev/null +++ b/types/react-foundation/enums.d.ts @@ -0,0 +1,230 @@ +/** + * Breakpoints enumerable. + */ +export declare type Breakpoints = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge'; +export declare const Breakpoints: { + SMALL: Breakpoints; + MEDIUM: Breakpoints; + LARGE: Breakpoints; + XLARGE: Breakpoints; + XXLARGE: Breakpoints; +}; +/** + * Badge color enumerable. + */ +export declare type BadgeColors = 'info' | 'secondary' | 'success' | 'warning' | 'alert'; +export declare const BadgeColors: { + INFO: BadgeColors; + SECONDARY: BadgeColors; + SUCCESS: BadgeColors; + WARNING: BadgeColors; + ALERT: BadgeColors; +}; +/** + * Button color enumerable. + */ +export declare type ButtonColors = 'primary' | 'secondary' | 'success' | 'alert' | 'warning'; +export declare const ButtonColors: { + PRIMARY: ButtonColors; + SECONDARY: ButtonColors; + SUCCESS: ButtonColors; + ALERT: ButtonColors; + WARNING: ButtonColors; +}; +/** + * Button group color enumerable. + */ +export declare type ButtonGroupColors = 'primary' | 'secondary' | 'success' | 'alert' | 'warning'; +export declare const ButtonGroupColors: { + PRIMARY: ButtonColors; + SECONDARY: ButtonColors; + SUCCESS: ButtonColors; + ALERT: ButtonColors; + WARNING: ButtonColors; +}; +/** + * Callout color enumerable. + */ +export declare type CalloutColors = 'primary' | 'secondary' | 'success' | 'warning' | 'alert'; +export declare const CalloutColors: { + PRIMARY: ButtonColors; + SECONDARY: ButtonColors; + SUCCESS: ButtonColors; + WARNING: ButtonColors; + ALERT: ButtonColors; +}; +/** + * Label color enumerable. + */ +export declare type LabelColors = 'info' | 'secondary' | 'success' | 'warning' | 'alert'; +export declare const LabelColors: { + INFO: BadgeColors; + SECONDARY: BadgeColors; + SUCCESS: BadgeColors; + WARNING: BadgeColors; + ALERT: BadgeColors; +}; +/** + * Progress colors enumerable. + */ +export declare type ProgressColors = 'secondary' | 'success' | 'warning' | 'alert'; +export declare const ProgressColors: { + SECONDARY: ProgressColors; + SUCCESS: ProgressColors; + WARNING: ProgressColors; + ALERT: ProgressColors; +}; +/** + * Color meta-enumerable. + * This is exposed to the consumer, while the sub-sets are only used internally. + */ +export declare const Colors: { + SECONDARY: ProgressColors; + SUCCESS: ProgressColors; + WARNING: ProgressColors; + ALERT: ProgressColors; + INFO: BadgeColors; + PRIMARY: ButtonColors; +}; +/** + * Callout size enumerable. + */ +export declare type CalloutSizes = 'small' | 'large'; +export declare const CalloutSizes: { + SMALL: CalloutSizes; + LARGE: CalloutSizes; +}; +/** + * Button size enumerable. + */ +export declare type ButtonSizes = 'tiny' | 'small' | 'large'; +export declare const ButtonSizes: { + TINY: ButtonSizes; + SMALL: ButtonSizes; + LARGE: ButtonSizes; +}; +/** + * Button group size enumerable. + */ +export declare type ButtonGroupSizes = 'tiny' | 'small' | 'large'; +export declare const ButtonGroupSizes: { + TINY: ButtonSizes; + SMALL: ButtonSizes; + LARGE: ButtonSizes; +}; +/** + * Switch size enumerable. + */ +export declare type SwitchSizes = 'tiny' | 'small' | 'large'; +export declare const SwitchSizes: { + TINY: ButtonSizes; + SMALL: ButtonSizes; + LARGE: ButtonSizes; +}; +/** + * Size meta-enumerable. + * This is exposed to the consumer, while the sub-sets are only used internally. + */ +export declare const Sizes: { + TINY: ButtonSizes; + SMALL: ButtonSizes; + LARGE: ButtonSizes; +}; +/** + * Horizontal alignment enumerable. + */ +export declare type HorizontalAlignments = 'center' | 'right' | 'justify' | 'spaced'; +export declare const HorizontalAlignments: { + CENTER: HorizontalAlignments; + RIGHT: HorizontalAlignments; + JUSTIFY: HorizontalAlignments; + SPACED: HorizontalAlignments; +}; +/** + * Vertical alignment enumerable. + */ +export declare type VerticalAlignments = 'top' | 'middle' | 'bottom' | 'stretch'; +export declare const VerticalAlignments: { + TOP: VerticalAlignments; + MIDDLE: VerticalAlignments; + BOTTOM: VerticalAlignments; + STRETCH: VerticalAlignments; +}; +/** + * Menu alignment enumerable. + * + * @type {{RIGHT = string, CENTER = string}} + */ +export declare type MenuAlignments = 'right' | 'center'; +export declare const MenuAlignments: { + RIGHT: MenuAlignments; + CENTER: MenuAlignments; +}; +/** + * Alignments meta-enumerable. + * This is exposed to the consumer, while the sub-sets are only used internally. + */ +export declare const Alignments: { + RIGHT: MenuAlignments; + CENTER: MenuAlignments; + TOP: VerticalAlignments; + MIDDLE: VerticalAlignments; + BOTTOM: VerticalAlignments; + STRETCH: VerticalAlignments; + JUSTIFY: HorizontalAlignments; + SPACED: HorizontalAlignments; +}; +/** + * Float types enumerable. + */ +export declare type FloatTypes = 'left' | 'center' | 'right'; +export declare const FloatTypes: { + LEFT: FloatTypes; + CENTER: FloatTypes; + RIGHT: FloatTypes; +}; +/** + * Switch type enumerable. + */ +export declare type SwitchInputTypes = 'checkbox' | 'radio'; +export declare const SwitchInputTypes: { + CHECKBOX: SwitchInputTypes; + RADIO: SwitchInputTypes; +}; +/** + * Input type meta-enumerable. + * This is exposed to the consumer, while the sub-sets are only used internally. + */ +export declare const InputTypes: { + CHECKBOX: SwitchInputTypes; + RADIO: SwitchInputTypes; +}; +/** + * Gutter type enumerable. + */ +export declare type GutterTypes = 'margin' | 'padding'; +export declare const GutterTypes: { + MARGIN: GutterTypes; + PADDING: GutterTypes; +}; +/** + * Extended breakpoints enumerable (includes 'ALL' option, which is useful when breakpoint is not defined). + */ +export declare type ExtendedBreakpoints = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'all'; +export declare const ExtendedBreakpoints: { + SMALL: ExtendedBreakpoints; + MEDIUM: ExtendedBreakpoints; + LARGE: ExtendedBreakpoints; + XLARGE: ExtendedBreakpoints; + XXLARGE: ExtendedBreakpoints; + ALL: ExtendedBreakpoints; +}; +/** + * Space control enumerable. + */ +export declare type SpaceControls = 'auto' | 'grow' | 'shrink'; +export declare const SpaceControls: { + AUTO: SpaceControls; + GROW: SpaceControls; + SHRINK: SpaceControls; +}; diff --git a/types/react-foundation/index.d.ts b/types/react-foundation/index.d.ts new file mode 100644 index 0000000000..d50d73f556 --- /dev/null +++ b/types/react-foundation/index.d.ts @@ -0,0 +1,31 @@ +// Type definitions for https://github.com/digiaonline/react-foundation 0.9 +// Project: https://github.com/digiaonline/react-foundation +// Definitions by: Daniel Earwicker <https://github.com/danielearwicker> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +export { Accordion, AccordionItem, AccordionTitle, AccordionContent } from './components/accordion'; +export { Badge } from './components/badge'; +export { Breadcrumbs, BreadcrumbItem } from './components/breadcrumbs'; +export { Button, Link } from './components/button'; +export { ButtonGroup } from './components/button-group'; +export { Callout } from './components/callout'; +export { CloseButton } from './components/close-button'; +export { Reveal } from './components/reveal'; +export { FlexVideo } from './components/flex-video'; +export { Row, Column } from './components/grid'; +export { Block, Inline } from './components/element'; +export { Icon } from './components/icon'; +export { Label } from './components/label'; +export { MediaObject, MediaObjectSection } from './components/media-object'; +export { Menu, MenuItem, MenuText } from './components/menu'; +export { Pagination, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis } from './components/pagination'; +export { Progress, ProgressMeter, ProgressMeterWithText, ProgressMeterText, NativeProgress } from './components/progress-bar'; +export { ResponsiveNavigation, TitleBar, MenuIcon, TitleBarTitle } from './components/responsive'; +export { Switch, SwitchInput, SwitchPaddle, SwitchActive, SwitchInactive } from './components/switch'; +export { Thumbnail, ThumbnailLink } from './components/thumbnail'; +export { Tabs, TabItem, TabsContent, TabPanel } from './components/tabs'; +export { TopBar, TopBarTitle, TopBarLeft, TopBarRight } from './components/top-bar'; +export { GridContainer, Grid, Cell } from './components/xy-grid'; +export { Breakpoints, Colors, Sizes, Alignments, FloatTypes, InputTypes, GutterTypes, ExtendedBreakpoints, SpaceControls } from './enums'; +export { Slider, TwoHandleSlider, SliderHandle, SliderFill } from './components/slider'; diff --git a/types/react-foundation/test/react-foundation-tests.tsx b/types/react-foundation/test/react-foundation-tests.tsx new file mode 100644 index 0000000000..c67894be0a --- /dev/null +++ b/types/react-foundation/test/react-foundation-tests.tsx @@ -0,0 +1,1350 @@ +import * as React from 'react'; +import { + Accordion, AccordionItem, AccordionContent, AccordionTitle, + Badge, Breadcrumbs, BreadcrumbItem, + ButtonGroup, + Button, Link, + Callout, + CloseButton, + Block, Inline, + FlexVideo, + Row, Column, + Icon, + Label, + MediaObject, MediaObjectSection, + Menu, MenuItem, MenuText, + Pagination, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, + Progress, ProgressMeter, ProgressMeterWithText, ProgressMeterText, NativeProgress, + ResponsiveNavigation, TitleBar, MenuIcon, TitleBarTitle, + Reveal, + Switch, SwitchInput, SwitchPaddle, SwitchActive, SwitchInactive, + Tabs, TabItem, TabsContent, TabPanel, + Thumbnail, ThumbnailLink, + TopBar, TopBarTitle, TopBarLeft, TopBarRight, + GridContainer, Grid, Cell +} from 'react-foundation'; + +import { // missing from index? + Slider, TwoHandleSlider, SliderHandle, SliderFill +} from 'react-foundation/components/slider'; + +import { + HorizontalAlignments, VerticalAlignments, ExtendedBreakpoints, SpaceControls, + BadgeColors, ButtonGroupColors, ButtonGroupSizes, Breakpoints, + ButtonSizes, ButtonColors, CalloutColors, CalloutSizes, LabelColors, + MenuAlignments, ProgressColors, SwitchSizes, SwitchInputTypes, GutterTypes +} from 'react-foundation/enums'; + +export class ReactFoundationTests extends React.Component { + render() { + return ( + <div> + <Accordion/> + <Accordion + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <AccordionItem/> + <AccordionItem + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <AccordionItem isActive={true}/> + + <AccordionContent/> + <AccordionContent + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <AccordionContent isActive={true}/> + + <AccordionTitle/> + <AccordionTitle + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <AccordionTitle isActive={true}/> + + <Badge/> + <Badge + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Badge color={BadgeColors.SECONDARY}/> + + <Breadcrumbs/> + <Breadcrumbs + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <BreadcrumbItem/> + <BreadcrumbItem + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <BreadcrumbItem isDisabled={true}/> + + <ButtonGroup/> + <ButtonGroup + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <ButtonGroup + color={ButtonGroupColors.SUCCESS} + size={ButtonGroupSizes.SMALL} + stackFor={Breakpoints.XLARGE} + isExpanded={true} + isStacked={false} + /> + + <Button/> + <Button + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Button + size={ButtonSizes.TINY} + isHollow={true} + isExpanded={false} + isDisabled={true} + isDropdown={false} + isArrowOnly={true} + color={ButtonColors.WARNING} + /> + + <Link/> + <Link + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Link + size={ButtonSizes.TINY} + isHollow={true} + isExpanded={false} + isDisabled={true} + isDropdown={false} + isArrowOnly={true} + color={ButtonColors.WARNING} + /> + + <Callout/> + <Callout + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Callout color={CalloutColors.SUCCESS} size={CalloutSizes.LARGE}/> + + <CloseButton/> + <CloseButton + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <Block/> + <Block + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <Inline/> + <Inline + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <FlexVideo/> + <FlexVideo + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <Row/> + <Row + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Row + upOnSmall={2} + upOnMedium={2} + upOnLarge={2} + horizontalAlignment={"hmmm"} + verticalAlignment={"hmmm"} + unstackOnSmall={true} + unstackOnMedium={true} + unstackOnLarge={true} + collapseOnSmall={true} + collapseOnMedium={true} + collapseOnLarge={true} + uncollapseOnSmall={true} + uncollapseOnMedium={true} + uncollapseOnLarge={true} + isCollapsed={true} + isExpanded={true} + isColumn={true} + /> + + <Column/> + <Column + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Column + upOnSmall={2} + small={2} + medium={2} + large={2} + offsetOnSmall={2} + offsetOnMedium={2} + offsetOnLarge={2} + pushOnSmall={2} + pushOnMedium={2} + pushOnLarge={2} + pullOnSmall={2} + pullOnMedium={2} + pullOnLarge={2} + orderOnSmall={2} + orderOnMedium={2} + orderOnLarge={2} + centerOnSmall={true} + centerOnMedium={true} + centerOnLarge={true} + uncenterOnSmall={true} + uncenterOnMedium={true} + uncenterOnLarge={true} + expandOnSmall={true} + expandOnMedium={true} + expandOnLarge={true} + isShrunk={true} + isLast={true} + isColumn={true} + /> + + <Icon name="some"/> + <Icon name="some" + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Icon name="some" prefix="hubba"/> + + <Label/> + <Label + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Label color={LabelColors.INFO}/> + + <MediaObject/> + <MediaObject + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <MediaObject stackForSmall={false}/> + + <MediaObjectSection/> + <MediaObjectSection + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <MediaObjectSection + alignment={HorizontalAlignments.JUSTIFY} + isMain={true} + isMiddle={true} + isBottom={true} + /> + + <Menu/> + <Menu + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Menu + alignment={MenuAlignments.CENTER} + iconsOnTop={true} + isExpanded={true} + isVertical={true} + isDropdown={true} + isSimple={true} + isNested={true} + horizontalOnMedium={true} + /> + + <MenuItem/> + <MenuItem + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <MenuItem isActive={false}/> + + <MenuText/> + <MenuText + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <MenuText isActive={true}/> + + <Pagination/> + <Pagination + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Pagination isCentered={false}/> + + <PaginationItem/> + <PaginationItem + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <PaginationItem isCurrent={false} isDisabled={true}/> + + <PaginationPrevious/> + <PaginationPrevious + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <PaginationPrevious isCurrent={false} isDisabled={true}/> + + <PaginationNext/> + <PaginationNext + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <PaginationNext isCurrent={false} isDisabled={true}/> + + <PaginationEllipsis/> + <PaginationEllipsis + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <PaginationEllipsis isCurrent={false} isDisabled={true}/> + + <Progress/> + <Progress + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Progress + min={4} + max={8} + value={6} + color={ProgressColors.SECONDARY} + valueText="ooo" + meter={{ text: "some" }} + /> + + <ProgressMeter/> + <ProgressMeter + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <ProgressMeterWithText text="some"/> + <ProgressMeterWithText text="some" + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <ProgressMeterText/> + <ProgressMeterText + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <ProgressMeterText/> + + <NativeProgress/> + <NativeProgress + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <NativeProgress + max={6} + value={10} + color={ProgressColors.ALERT} + /> + + <ResponsiveNavigation/> + <ResponsiveNavigation + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <ResponsiveNavigation + breakpoint={42} + titleBar={{ }} + menuIcon={{ }} + titleBarTitle={{ }} + topBar={{ }} + /> + + <TitleBar/> + <TitleBar + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <MenuIcon/> + <MenuIcon + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <TitleBarTitle/> + <TitleBarTitle + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <Reveal/> + <Reveal + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Reveal + isTiny={true} + isSmall={true} + isLarge={true} + isFullscreen={true} + /> + + <Switch/> + <Switch + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Switch + size={SwitchSizes.SMALL} + id="abba" + input={{}} + paddle={{}} + active={{}} + inactive={{}} + /> + + <SwitchInput/> + <SwitchInput + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <SwitchInput + type={SwitchInputTypes.CHECKBOX} + id="blah" + /> + + <SwitchPaddle/> + <SwitchPaddle + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <SwitchPaddle/> + + <SwitchActive/> + <SwitchActive + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <SwitchActive text="ahoy-hoy"/> + + <SwitchInactive/> + <SwitchInactive + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <SwitchInactive text="zebra"/> + + <Tabs/> + <Tabs + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Tabs isVertical={true}/> + + <TabItem/> + <TabItem + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <TabItem isActive={false}/> + + <TabsContent/> + <TabsContent + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <TabsContent isVertical={true} isActive={false}/> + + <TabPanel/> + <TabPanel + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <TabPanel isActive={false}/> + + <Thumbnail/> + <Thumbnail + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <ThumbnailLink/> + <ThumbnailLink + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <TopBar/> + <TopBar + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <TopBarTitle/> + <TopBarTitle + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <TopBarLeft/> + <TopBarLeft + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <TopBarRight/> + <TopBarRight + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <GridContainer/> + <GridContainer + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <GridContainer + fluid={true} + full={true} + /> + + <Grid/> + <Grid + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Grid + vertical={true} + gutters={GutterTypes.MARGIN} + upOnSmall={5} + upOnMedium={5} + upOnLarge={5} + collapseOnSmall={GutterTypes.PADDING} + collapseOnMedium={GutterTypes.PADDING} + collapseOnLarge={GutterTypes.PADDING} + gridFrame={ExtendedBreakpoints.SMALL} + /> + + <Cell/> + <Cell + alignX={HorizontalAlignments.CENTER} + alignY={VerticalAlignments.MIDDLE} + selfAlignX={HorizontalAlignments.JUSTIFY} + selfAlignY={VerticalAlignments.TOP} + centerAlign={true} + flexContainer={false} + flexDirRow={ExtendedBreakpoints.LARGE} + flexDirRowRev={ExtendedBreakpoints.SMALL} + flexDirCol={ExtendedBreakpoints.XLARGE} + flexDirColRev={ExtendedBreakpoints.MEDIUM} + flexChild={SpaceControls.GROW} + flexOrder={12} + flexOrderSmall={24} + flexOrderMedium={48} + flexOrderLarge={92} + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Cell + small={6} + medium={6} + large={6} + auto={ExtendedBreakpoints.ALL} + shrink={ExtendedBreakpoints.XLARGE} + offsetOnSmall={6} + offsetOnMedium={6} + offsetOnLarge={6} + /> + + <Slider/> + <Slider + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <Slider + initialStart={2} + fill={{}} + handle={{}} + isVertical={true} + isDisabled={false} + /> + + <TwoHandleSlider/> + <TwoHandleSlider + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + <TwoHandleSlider + initialStart={3} + initialEnd={4} + minHandle={{}} + maxHandle={{}} + fill={{}} + isVertical={true} + isDisabled={false} + /> + + <SliderHandle/> + <SliderHandle + style={{position: "absolute"}} + className="foo" + onClick = {(e) => e.pageX} + /> + + <SliderFill/> + <SliderFill className="foo" /> + </div> + ); + } +} diff --git a/types/react-foundation/tsconfig.json b/types/react-foundation/tsconfig.json new file mode 100644 index 0000000000..9daeccfa5b --- /dev/null +++ b/types/react-foundation/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "jsx": "react", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "noUnusedLocals": false + }, + "files": [ + "index.d.ts", + "utils.d.ts", + "test/react-foundation-tests.tsx" + ] +} diff --git a/types/react-foundation/tslint.json b/types/react-foundation/tslint.json new file mode 100644 index 0000000000..0e4acb22ee --- /dev/null +++ b/types/react-foundation/tslint.json @@ -0,0 +1,12 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "strict-export-declare-modifiers": false, + "no-trailing-whitespace": false, + "jsdoc-format": false, + "no-reference-import": false, + "prefer-declare-function": false, + "no-duplicate-imports": false, + "no-empty-interface": false + } +} diff --git a/types/react-foundation/utils.d.ts b/types/react-foundation/utils.d.ts new file mode 100644 index 0000000000..b80b4879b0 --- /dev/null +++ b/types/react-foundation/utils.d.ts @@ -0,0 +1,164 @@ +import * as PropTypes from 'prop-types'; +import { Breakpoints, FloatTypes, HorizontalAlignments, VerticalAlignments, SpaceControls, ExtendedBreakpoints } from './enums'; +export interface ClassNameProps { + noDefaultClassName?: string; + className?: string; +} +/** + * Property types for general properties. + * + * @returns {Object} + */ +export declare const GeneralPropTypes: { + showFor: PropTypes.Requireable<any>; + showOnlyFor: PropTypes.Requireable<any>; + hideFor: PropTypes.Requireable<any>; + hideOnlyFor: PropTypes.Requireable<any>; + isHidden: PropTypes.Requireable<any>; + isInvisible: PropTypes.Requireable<any>; + showForLandscape: PropTypes.Requireable<any>; + showForPortrait: PropTypes.Requireable<any>; + showForSr: PropTypes.Requireable<any>; + showOnFocus: PropTypes.Requireable<any>; + isClearfix: PropTypes.Requireable<any>; + float: PropTypes.Requireable<any>; +}; +export interface GeneralPropTypes extends ClassNameProps { + showFor?: Breakpoints; + showOnlyFor?: Breakpoints; + hideFor?: "medium" | "large"; + hideOnlyFor?: Breakpoints; + isHidden?: boolean; + isInvisible?: boolean; + showForLandscape?: boolean; + showForPortrait?: boolean; + showForSr?: boolean; + showOnFocus?: boolean; + isClearfix?: boolean; + float?: FloatTypes; +} +/** + * Creates class names from the given arguments. + * + * @param {*} args + * @returns {string} + */ +export declare function createClassName(...args: any[]): string; +/** + * Parses the general class names from the given properties. + */ +export declare function generalClassNames(props: GeneralPropTypes): { + 'show-for-medium': boolean; + 'show-for-large': boolean; + 'show-for-small-only': boolean; + 'show-for-medium-only': boolean; + 'show-for-large-only': boolean; + 'hide-for-medium': boolean; + 'hide-for-large': boolean; + 'hide-for-small-only': boolean; + 'hide-for-medium-only': boolean; + 'hide-for-large-only': boolean; + 'hide': boolean | undefined; + 'invisible': boolean | undefined; + 'show-for-landscape': boolean | undefined; + 'show-for-portrait': boolean | undefined; + 'show-for-sr': boolean | undefined; + 'show-on-focus': boolean | undefined; + 'clearfix': boolean | undefined; + 'float-left': boolean; + 'float-center': boolean; + 'float-right': boolean; +}; +/** + * Returns the keys for the given object. + * This method is used for getting the keys for prop types. + */ +export declare function objectKeys(object: object): string[]; +/** + * Returns the values for the given object. + * This method is used for getting the values for enumerables. + * + * @param {Object} object + * @returns {Array} + */ +export declare function objectValues(object: object): any[]; +/** + * Removes properties from the given object. + * This method is used for removing valid attributes from component props prior to rendering. + * + * @param {Object} object + * @param {Array} remove + * @returns {Object} + */ +export declare function removeProps(object: object, remove: string[]): object; +/** + * Returns whether or not the given value is defined. + * + * @param {*} value + * @returns {boolean} + */ +export declare function isDefined(value: any): boolean; +/** + * Adds a breakpoint to a class if breakpoint is specified. + * + * @param {String} prop + * @param {String} size + * @returns {string} + */ +export declare function addBreakpoint(prop: string, size: string): string; +/** + * Sets direction for grid and gutters (horizontal or vertical). + * + * @param {boolean} isVertical + * @param {String} gutters + * @returns {string} + */ +export declare function setDirection(isVertical?: boolean, gutters?: string | null): string; +/** + * Property types for flexbox utilities. + * + * @returns {Object} + */ +export declare const FlexboxPropTypes: { + alignX: PropTypes.Requireable<any>; + alignY: PropTypes.Requireable<any>; + selfAlignX: PropTypes.Requireable<any>; + selfAlignY: PropTypes.Requireable<any>; + centerAlign: PropTypes.Requireable<any>; + flexContainer: PropTypes.Requireable<any>; + flexDirRow: PropTypes.Requireable<any>; + flexDirRowRev: PropTypes.Requireable<any>; + flexDirCol: PropTypes.Requireable<any>; + flexDirColRev: PropTypes.Requireable<any>; + flexChild: PropTypes.Requireable<any>; + flexOrder: PropTypes.Requireable<any>; + flexOrderSmall: PropTypes.Requireable<any>; + flexOrderMedium: PropTypes.Requireable<any>; + flexOrderLarge: PropTypes.Requireable<any>; +}; +export interface FlexboxPropTypes extends GeneralPropTypes { + alignX?: HorizontalAlignments; + alignY?: VerticalAlignments; + selfAlignX?: HorizontalAlignments; + selfAlignY?: VerticalAlignments; + centerAlign?: boolean; + flexContainer?: boolean; + flexDirRow?: ExtendedBreakpoints; + flexDirRowRev?: ExtendedBreakpoints; + flexDirCol?: ExtendedBreakpoints; + flexDirColRev?: ExtendedBreakpoints; + flexChild?: SpaceControls; + flexOrder?: number; + flexOrderSmall?: number; + flexOrderMedium?: number; + flexOrderLarge?: number; +} +/** + * Parses the flexbox class names from the given properties. + * + * @param {Object} props + * @returns {Object} + */ +export declare function flexboxClassNames(props: FlexboxPropTypes): { + [name: string]: boolean | undefined; +}; diff --git a/types/react-icons/index.d.ts b/types/react-icons/index.d.ts index 5068bb226b..7c926b347f 100644 --- a/types/react-icons/index.d.ts +++ b/types/react-icons/index.d.ts @@ -1,5 +1,6 @@ // Type definitions for react-icons 2.2 // Project: https://github.com/gorangajic/react-icons#readme // Definitions by: Alexandre Paré <https://github.com/apare> +// John Reilly <https://github.com/johnnyreilly> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-icons/lib/fa/500px.d.ts b/types/react-icons/lib/fa/500px.d.ts new file mode 100644 index 0000000000..29c3f639f8 --- /dev/null +++ b/types/react-icons/lib/fa/500px.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class Fa500px extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/adjust.d.ts b/types/react-icons/lib/fa/adjust.d.ts new file mode 100644 index 0000000000..7ca3d2cf03 --- /dev/null +++ b/types/react-icons/lib/fa/adjust.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAdjust extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/adn.d.ts b/types/react-icons/lib/fa/adn.d.ts new file mode 100644 index 0000000000..c2c5676047 --- /dev/null +++ b/types/react-icons/lib/fa/adn.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAdn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/align-center.d.ts b/types/react-icons/lib/fa/align-center.d.ts new file mode 100644 index 0000000000..718d401bcc --- /dev/null +++ b/types/react-icons/lib/fa/align-center.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAlignCenter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/align-justify.d.ts b/types/react-icons/lib/fa/align-justify.d.ts new file mode 100644 index 0000000000..87df2f26fc --- /dev/null +++ b/types/react-icons/lib/fa/align-justify.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAlignJustify extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/align-left.d.ts b/types/react-icons/lib/fa/align-left.d.ts new file mode 100644 index 0000000000..7a1c956b3f --- /dev/null +++ b/types/react-icons/lib/fa/align-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAlignLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/align-right.d.ts b/types/react-icons/lib/fa/align-right.d.ts new file mode 100644 index 0000000000..0ec0226c13 --- /dev/null +++ b/types/react-icons/lib/fa/align-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAlignRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/amazon.d.ts b/types/react-icons/lib/fa/amazon.d.ts new file mode 100644 index 0000000000..d514c69672 --- /dev/null +++ b/types/react-icons/lib/fa/amazon.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAmazon extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/ambulance.d.ts b/types/react-icons/lib/fa/ambulance.d.ts new file mode 100644 index 0000000000..fbaa0eec3b --- /dev/null +++ b/types/react-icons/lib/fa/ambulance.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAmbulance extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/american-sign-language-interpreting.d.ts b/types/react-icons/lib/fa/american-sign-language-interpreting.d.ts new file mode 100644 index 0000000000..06925c79e5 --- /dev/null +++ b/types/react-icons/lib/fa/american-sign-language-interpreting.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAmericanSignLanguageInterpreting extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/anchor.d.ts b/types/react-icons/lib/fa/anchor.d.ts new file mode 100644 index 0000000000..8812734dc4 --- /dev/null +++ b/types/react-icons/lib/fa/anchor.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAnchor extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/android.d.ts b/types/react-icons/lib/fa/android.d.ts new file mode 100644 index 0000000000..2ee9f5fb18 --- /dev/null +++ b/types/react-icons/lib/fa/android.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAndroid extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/angellist.d.ts b/types/react-icons/lib/fa/angellist.d.ts new file mode 100644 index 0000000000..ce8afe7eda --- /dev/null +++ b/types/react-icons/lib/fa/angellist.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAngellist extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/angle-double-down.d.ts b/types/react-icons/lib/fa/angle-double-down.d.ts new file mode 100644 index 0000000000..93ce66d6b4 --- /dev/null +++ b/types/react-icons/lib/fa/angle-double-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAngleDoubleDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/angle-double-left.d.ts b/types/react-icons/lib/fa/angle-double-left.d.ts new file mode 100644 index 0000000000..ff9d38e1ad --- /dev/null +++ b/types/react-icons/lib/fa/angle-double-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAngleDoubleLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/angle-double-right.d.ts b/types/react-icons/lib/fa/angle-double-right.d.ts new file mode 100644 index 0000000000..2642210681 --- /dev/null +++ b/types/react-icons/lib/fa/angle-double-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAngleDoubleRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/angle-double-up.d.ts b/types/react-icons/lib/fa/angle-double-up.d.ts new file mode 100644 index 0000000000..9a3af8e4bf --- /dev/null +++ b/types/react-icons/lib/fa/angle-double-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAngleDoubleUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/angle-down.d.ts b/types/react-icons/lib/fa/angle-down.d.ts new file mode 100644 index 0000000000..d9e5083f2a --- /dev/null +++ b/types/react-icons/lib/fa/angle-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAngleDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/angle-left.d.ts b/types/react-icons/lib/fa/angle-left.d.ts new file mode 100644 index 0000000000..bea87f2edd --- /dev/null +++ b/types/react-icons/lib/fa/angle-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAngleLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/angle-right.d.ts b/types/react-icons/lib/fa/angle-right.d.ts new file mode 100644 index 0000000000..c5ecf220c6 --- /dev/null +++ b/types/react-icons/lib/fa/angle-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAngleRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/angle-up.d.ts b/types/react-icons/lib/fa/angle-up.d.ts new file mode 100644 index 0000000000..cdbc2fd506 --- /dev/null +++ b/types/react-icons/lib/fa/angle-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAngleUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/apple.d.ts b/types/react-icons/lib/fa/apple.d.ts new file mode 100644 index 0000000000..81a903285f --- /dev/null +++ b/types/react-icons/lib/fa/apple.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaApple extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/archive.d.ts b/types/react-icons/lib/fa/archive.d.ts new file mode 100644 index 0000000000..a86eaae4d2 --- /dev/null +++ b/types/react-icons/lib/fa/archive.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArchive extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/area-chart.d.ts b/types/react-icons/lib/fa/area-chart.d.ts new file mode 100644 index 0000000000..989eaa3b5d --- /dev/null +++ b/types/react-icons/lib/fa/area-chart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAreaChart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrow-circle-down.d.ts b/types/react-icons/lib/fa/arrow-circle-down.d.ts new file mode 100644 index 0000000000..e5551c84a8 --- /dev/null +++ b/types/react-icons/lib/fa/arrow-circle-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowCircleDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrow-circle-left.d.ts b/types/react-icons/lib/fa/arrow-circle-left.d.ts new file mode 100644 index 0000000000..af722a058d --- /dev/null +++ b/types/react-icons/lib/fa/arrow-circle-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowCircleLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrow-circle-o-down.d.ts b/types/react-icons/lib/fa/arrow-circle-o-down.d.ts new file mode 100644 index 0000000000..3e06f22917 --- /dev/null +++ b/types/react-icons/lib/fa/arrow-circle-o-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowCircleODown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrow-circle-o-left.d.ts b/types/react-icons/lib/fa/arrow-circle-o-left.d.ts new file mode 100644 index 0000000000..687373f29c --- /dev/null +++ b/types/react-icons/lib/fa/arrow-circle-o-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowCircleOLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrow-circle-o-right.d.ts b/types/react-icons/lib/fa/arrow-circle-o-right.d.ts new file mode 100644 index 0000000000..c1378c89b6 --- /dev/null +++ b/types/react-icons/lib/fa/arrow-circle-o-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowCircleORight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrow-circle-o-up.d.ts b/types/react-icons/lib/fa/arrow-circle-o-up.d.ts new file mode 100644 index 0000000000..6d67c2f160 --- /dev/null +++ b/types/react-icons/lib/fa/arrow-circle-o-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowCircleOUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrow-circle-right.d.ts b/types/react-icons/lib/fa/arrow-circle-right.d.ts new file mode 100644 index 0000000000..0916b5328d --- /dev/null +++ b/types/react-icons/lib/fa/arrow-circle-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowCircleRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrow-circle-up.d.ts b/types/react-icons/lib/fa/arrow-circle-up.d.ts new file mode 100644 index 0000000000..1d4af5320c --- /dev/null +++ b/types/react-icons/lib/fa/arrow-circle-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowCircleUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrow-down.d.ts b/types/react-icons/lib/fa/arrow-down.d.ts new file mode 100644 index 0000000000..845ae5bda7 --- /dev/null +++ b/types/react-icons/lib/fa/arrow-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrow-left.d.ts b/types/react-icons/lib/fa/arrow-left.d.ts new file mode 100644 index 0000000000..b5333dd62c --- /dev/null +++ b/types/react-icons/lib/fa/arrow-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrow-right.d.ts b/types/react-icons/lib/fa/arrow-right.d.ts new file mode 100644 index 0000000000..7cad9380d5 --- /dev/null +++ b/types/react-icons/lib/fa/arrow-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrow-up.d.ts b/types/react-icons/lib/fa/arrow-up.d.ts new file mode 100644 index 0000000000..eb96f4b47d --- /dev/null +++ b/types/react-icons/lib/fa/arrow-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrows-alt.d.ts b/types/react-icons/lib/fa/arrows-alt.d.ts new file mode 100644 index 0000000000..0497e59469 --- /dev/null +++ b/types/react-icons/lib/fa/arrows-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowsAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrows-h.d.ts b/types/react-icons/lib/fa/arrows-h.d.ts new file mode 100644 index 0000000000..53e31e5671 --- /dev/null +++ b/types/react-icons/lib/fa/arrows-h.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowsH extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrows-v.d.ts b/types/react-icons/lib/fa/arrows-v.d.ts new file mode 100644 index 0000000000..6b4cb60249 --- /dev/null +++ b/types/react-icons/lib/fa/arrows-v.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrowsV extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/arrows.d.ts b/types/react-icons/lib/fa/arrows.d.ts new file mode 100644 index 0000000000..16175f7688 --- /dev/null +++ b/types/react-icons/lib/fa/arrows.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaArrows extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/assistive-listening-systems.d.ts b/types/react-icons/lib/fa/assistive-listening-systems.d.ts new file mode 100644 index 0000000000..f6e1649de6 --- /dev/null +++ b/types/react-icons/lib/fa/assistive-listening-systems.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAssistiveListeningSystems extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/asterisk.d.ts b/types/react-icons/lib/fa/asterisk.d.ts new file mode 100644 index 0000000000..89fc42ca05 --- /dev/null +++ b/types/react-icons/lib/fa/asterisk.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAsterisk extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/at.d.ts b/types/react-icons/lib/fa/at.d.ts new file mode 100644 index 0000000000..a871055990 --- /dev/null +++ b/types/react-icons/lib/fa/at.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/audio-description.d.ts b/types/react-icons/lib/fa/audio-description.d.ts new file mode 100644 index 0000000000..476ef84b6a --- /dev/null +++ b/types/react-icons/lib/fa/audio-description.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAudioDescription extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/automobile.d.ts b/types/react-icons/lib/fa/automobile.d.ts new file mode 100644 index 0000000000..4a6a259ff3 --- /dev/null +++ b/types/react-icons/lib/fa/automobile.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaAutomobile extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/backward.d.ts b/types/react-icons/lib/fa/backward.d.ts new file mode 100644 index 0000000000..ac9bc7b820 --- /dev/null +++ b/types/react-icons/lib/fa/backward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBackward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/balance-scale.d.ts b/types/react-icons/lib/fa/balance-scale.d.ts new file mode 100644 index 0000000000..ae8446ed1b --- /dev/null +++ b/types/react-icons/lib/fa/balance-scale.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBalanceScale extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/ban.d.ts b/types/react-icons/lib/fa/ban.d.ts new file mode 100644 index 0000000000..b2f668bcef --- /dev/null +++ b/types/react-icons/lib/fa/ban.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBan extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bank.d.ts b/types/react-icons/lib/fa/bank.d.ts new file mode 100644 index 0000000000..0d3a14ebf8 --- /dev/null +++ b/types/react-icons/lib/fa/bank.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBank extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bar-chart.d.ts b/types/react-icons/lib/fa/bar-chart.d.ts new file mode 100644 index 0000000000..b184edbda5 --- /dev/null +++ b/types/react-icons/lib/fa/bar-chart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBarChart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/barcode.d.ts b/types/react-icons/lib/fa/barcode.d.ts new file mode 100644 index 0000000000..4f764358a7 --- /dev/null +++ b/types/react-icons/lib/fa/barcode.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBarcode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bars.d.ts b/types/react-icons/lib/fa/bars.d.ts new file mode 100644 index 0000000000..5a3272c896 --- /dev/null +++ b/types/react-icons/lib/fa/bars.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBars extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/battery-0.d.ts b/types/react-icons/lib/fa/battery-0.d.ts new file mode 100644 index 0000000000..c7ad0b12b1 --- /dev/null +++ b/types/react-icons/lib/fa/battery-0.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBattery0 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/battery-1.d.ts b/types/react-icons/lib/fa/battery-1.d.ts new file mode 100644 index 0000000000..a7db7a950f --- /dev/null +++ b/types/react-icons/lib/fa/battery-1.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBattery1 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/battery-2.d.ts b/types/react-icons/lib/fa/battery-2.d.ts new file mode 100644 index 0000000000..345d261889 --- /dev/null +++ b/types/react-icons/lib/fa/battery-2.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBattery2 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/battery-3.d.ts b/types/react-icons/lib/fa/battery-3.d.ts new file mode 100644 index 0000000000..bc2a62de56 --- /dev/null +++ b/types/react-icons/lib/fa/battery-3.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBattery3 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/battery-4.d.ts b/types/react-icons/lib/fa/battery-4.d.ts new file mode 100644 index 0000000000..0541fd5f79 --- /dev/null +++ b/types/react-icons/lib/fa/battery-4.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBattery4 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bed.d.ts b/types/react-icons/lib/fa/bed.d.ts new file mode 100644 index 0000000000..5eab8918d4 --- /dev/null +++ b/types/react-icons/lib/fa/bed.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBed extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/beer.d.ts b/types/react-icons/lib/fa/beer.d.ts new file mode 100644 index 0000000000..79bbeb09d2 --- /dev/null +++ b/types/react-icons/lib/fa/beer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBeer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/behance-square.d.ts b/types/react-icons/lib/fa/behance-square.d.ts new file mode 100644 index 0000000000..550cb6b841 --- /dev/null +++ b/types/react-icons/lib/fa/behance-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBehanceSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/behance.d.ts b/types/react-icons/lib/fa/behance.d.ts new file mode 100644 index 0000000000..e51df4de64 --- /dev/null +++ b/types/react-icons/lib/fa/behance.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBehance extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bell-o.d.ts b/types/react-icons/lib/fa/bell-o.d.ts new file mode 100644 index 0000000000..13f162cd71 --- /dev/null +++ b/types/react-icons/lib/fa/bell-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBellO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bell-slash-o.d.ts b/types/react-icons/lib/fa/bell-slash-o.d.ts new file mode 100644 index 0000000000..49ae89d8d4 --- /dev/null +++ b/types/react-icons/lib/fa/bell-slash-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBellSlashO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bell-slash.d.ts b/types/react-icons/lib/fa/bell-slash.d.ts new file mode 100644 index 0000000000..305b77912b --- /dev/null +++ b/types/react-icons/lib/fa/bell-slash.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBellSlash extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bell.d.ts b/types/react-icons/lib/fa/bell.d.ts new file mode 100644 index 0000000000..4ec0031ae6 --- /dev/null +++ b/types/react-icons/lib/fa/bell.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBell extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bicycle.d.ts b/types/react-icons/lib/fa/bicycle.d.ts new file mode 100644 index 0000000000..e0017c15ca --- /dev/null +++ b/types/react-icons/lib/fa/bicycle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBicycle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/binoculars.d.ts b/types/react-icons/lib/fa/binoculars.d.ts new file mode 100644 index 0000000000..5dd06d8ed4 --- /dev/null +++ b/types/react-icons/lib/fa/binoculars.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBinoculars extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/birthday-cake.d.ts b/types/react-icons/lib/fa/birthday-cake.d.ts new file mode 100644 index 0000000000..24af4a13f7 --- /dev/null +++ b/types/react-icons/lib/fa/birthday-cake.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBirthdayCake extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bitbucket-square.d.ts b/types/react-icons/lib/fa/bitbucket-square.d.ts new file mode 100644 index 0000000000..e9c80979f9 --- /dev/null +++ b/types/react-icons/lib/fa/bitbucket-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBitbucketSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bitbucket.d.ts b/types/react-icons/lib/fa/bitbucket.d.ts new file mode 100644 index 0000000000..3e46e9e0a9 --- /dev/null +++ b/types/react-icons/lib/fa/bitbucket.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBitbucket extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bitcoin.d.ts b/types/react-icons/lib/fa/bitcoin.d.ts new file mode 100644 index 0000000000..34e0ee64b3 --- /dev/null +++ b/types/react-icons/lib/fa/bitcoin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBitcoin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/black-tie.d.ts b/types/react-icons/lib/fa/black-tie.d.ts new file mode 100644 index 0000000000..4586a07039 --- /dev/null +++ b/types/react-icons/lib/fa/black-tie.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBlackTie extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/blind.d.ts b/types/react-icons/lib/fa/blind.d.ts new file mode 100644 index 0000000000..eb3606ac4c --- /dev/null +++ b/types/react-icons/lib/fa/blind.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBlind extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bluetooth-b.d.ts b/types/react-icons/lib/fa/bluetooth-b.d.ts new file mode 100644 index 0000000000..4ca6448c1a --- /dev/null +++ b/types/react-icons/lib/fa/bluetooth-b.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBluetoothB extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bluetooth.d.ts b/types/react-icons/lib/fa/bluetooth.d.ts new file mode 100644 index 0000000000..0aba8d08f5 --- /dev/null +++ b/types/react-icons/lib/fa/bluetooth.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBluetooth extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bold.d.ts b/types/react-icons/lib/fa/bold.d.ts new file mode 100644 index 0000000000..65c28daedc --- /dev/null +++ b/types/react-icons/lib/fa/bold.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBold extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bolt.d.ts b/types/react-icons/lib/fa/bolt.d.ts new file mode 100644 index 0000000000..f4ecb5e36e --- /dev/null +++ b/types/react-icons/lib/fa/bolt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBolt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bomb.d.ts b/types/react-icons/lib/fa/bomb.d.ts new file mode 100644 index 0000000000..7d8f3fff70 --- /dev/null +++ b/types/react-icons/lib/fa/bomb.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBomb extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/book.d.ts b/types/react-icons/lib/fa/book.d.ts new file mode 100644 index 0000000000..2925f2f925 --- /dev/null +++ b/types/react-icons/lib/fa/book.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBook extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bookmark-o.d.ts b/types/react-icons/lib/fa/bookmark-o.d.ts new file mode 100644 index 0000000000..07b10ae683 --- /dev/null +++ b/types/react-icons/lib/fa/bookmark-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBookmarkO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bookmark.d.ts b/types/react-icons/lib/fa/bookmark.d.ts new file mode 100644 index 0000000000..60f758e9ae --- /dev/null +++ b/types/react-icons/lib/fa/bookmark.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBookmark extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/braille.d.ts b/types/react-icons/lib/fa/braille.d.ts new file mode 100644 index 0000000000..4619546218 --- /dev/null +++ b/types/react-icons/lib/fa/braille.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBraille extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/briefcase.d.ts b/types/react-icons/lib/fa/briefcase.d.ts new file mode 100644 index 0000000000..ef7d7a3e67 --- /dev/null +++ b/types/react-icons/lib/fa/briefcase.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBriefcase extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bug.d.ts b/types/react-icons/lib/fa/bug.d.ts new file mode 100644 index 0000000000..3a386909a9 --- /dev/null +++ b/types/react-icons/lib/fa/bug.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBug extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/building-o.d.ts b/types/react-icons/lib/fa/building-o.d.ts new file mode 100644 index 0000000000..1dab73f883 --- /dev/null +++ b/types/react-icons/lib/fa/building-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBuildingO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/building.d.ts b/types/react-icons/lib/fa/building.d.ts new file mode 100644 index 0000000000..1094d0547b --- /dev/null +++ b/types/react-icons/lib/fa/building.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBuilding extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bullhorn.d.ts b/types/react-icons/lib/fa/bullhorn.d.ts new file mode 100644 index 0000000000..83424c5116 --- /dev/null +++ b/types/react-icons/lib/fa/bullhorn.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBullhorn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bullseye.d.ts b/types/react-icons/lib/fa/bullseye.d.ts new file mode 100644 index 0000000000..eaa9ba66fe --- /dev/null +++ b/types/react-icons/lib/fa/bullseye.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBullseye extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/bus.d.ts b/types/react-icons/lib/fa/bus.d.ts new file mode 100644 index 0000000000..7fc2f7bfc5 --- /dev/null +++ b/types/react-icons/lib/fa/bus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/buysellads.d.ts b/types/react-icons/lib/fa/buysellads.d.ts new file mode 100644 index 0000000000..304c070cce --- /dev/null +++ b/types/react-icons/lib/fa/buysellads.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaBuysellads extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cab.d.ts b/types/react-icons/lib/fa/cab.d.ts new file mode 100644 index 0000000000..cd6af6ddd4 --- /dev/null +++ b/types/react-icons/lib/fa/cab.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCab extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/calculator.d.ts b/types/react-icons/lib/fa/calculator.d.ts new file mode 100644 index 0000000000..ed26af229f --- /dev/null +++ b/types/react-icons/lib/fa/calculator.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCalculator extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/calendar-check-o.d.ts b/types/react-icons/lib/fa/calendar-check-o.d.ts new file mode 100644 index 0000000000..9829dc60c3 --- /dev/null +++ b/types/react-icons/lib/fa/calendar-check-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCalendarCheckO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/calendar-minus-o.d.ts b/types/react-icons/lib/fa/calendar-minus-o.d.ts new file mode 100644 index 0000000000..64a2d3a3e3 --- /dev/null +++ b/types/react-icons/lib/fa/calendar-minus-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCalendarMinusO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/calendar-o.d.ts b/types/react-icons/lib/fa/calendar-o.d.ts new file mode 100644 index 0000000000..8a70d1c368 --- /dev/null +++ b/types/react-icons/lib/fa/calendar-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCalendarO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/calendar-plus-o.d.ts b/types/react-icons/lib/fa/calendar-plus-o.d.ts new file mode 100644 index 0000000000..0ff42b4d29 --- /dev/null +++ b/types/react-icons/lib/fa/calendar-plus-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCalendarPlusO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/calendar-times-o.d.ts b/types/react-icons/lib/fa/calendar-times-o.d.ts new file mode 100644 index 0000000000..2a81539d66 --- /dev/null +++ b/types/react-icons/lib/fa/calendar-times-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCalendarTimesO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/calendar.d.ts b/types/react-icons/lib/fa/calendar.d.ts new file mode 100644 index 0000000000..deec1eaeb4 --- /dev/null +++ b/types/react-icons/lib/fa/calendar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCalendar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/camera-retro.d.ts b/types/react-icons/lib/fa/camera-retro.d.ts new file mode 100644 index 0000000000..64821f1f67 --- /dev/null +++ b/types/react-icons/lib/fa/camera-retro.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCameraRetro extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/camera.d.ts b/types/react-icons/lib/fa/camera.d.ts new file mode 100644 index 0000000000..4928697191 --- /dev/null +++ b/types/react-icons/lib/fa/camera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCamera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/caret-down.d.ts b/types/react-icons/lib/fa/caret-down.d.ts new file mode 100644 index 0000000000..dbc43f0466 --- /dev/null +++ b/types/react-icons/lib/fa/caret-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCaretDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/caret-left.d.ts b/types/react-icons/lib/fa/caret-left.d.ts new file mode 100644 index 0000000000..420ce16ba3 --- /dev/null +++ b/types/react-icons/lib/fa/caret-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCaretLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/caret-right.d.ts b/types/react-icons/lib/fa/caret-right.d.ts new file mode 100644 index 0000000000..44e7429916 --- /dev/null +++ b/types/react-icons/lib/fa/caret-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCaretRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/caret-square-o-down.d.ts b/types/react-icons/lib/fa/caret-square-o-down.d.ts new file mode 100644 index 0000000000..dd6d132183 --- /dev/null +++ b/types/react-icons/lib/fa/caret-square-o-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCaretSquareODown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/caret-square-o-left.d.ts b/types/react-icons/lib/fa/caret-square-o-left.d.ts new file mode 100644 index 0000000000..042ada389c --- /dev/null +++ b/types/react-icons/lib/fa/caret-square-o-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCaretSquareOLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/caret-square-o-right.d.ts b/types/react-icons/lib/fa/caret-square-o-right.d.ts new file mode 100644 index 0000000000..12cee8faf7 --- /dev/null +++ b/types/react-icons/lib/fa/caret-square-o-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCaretSquareORight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/caret-square-o-up.d.ts b/types/react-icons/lib/fa/caret-square-o-up.d.ts new file mode 100644 index 0000000000..36e0c7bee6 --- /dev/null +++ b/types/react-icons/lib/fa/caret-square-o-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCaretSquareOUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/caret-up.d.ts b/types/react-icons/lib/fa/caret-up.d.ts new file mode 100644 index 0000000000..4eaad4bb41 --- /dev/null +++ b/types/react-icons/lib/fa/caret-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCaretUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cart-arrow-down.d.ts b/types/react-icons/lib/fa/cart-arrow-down.d.ts new file mode 100644 index 0000000000..539933f702 --- /dev/null +++ b/types/react-icons/lib/fa/cart-arrow-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCartArrowDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cart-plus.d.ts b/types/react-icons/lib/fa/cart-plus.d.ts new file mode 100644 index 0000000000..00e645e840 --- /dev/null +++ b/types/react-icons/lib/fa/cart-plus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCartPlus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cc-amex.d.ts b/types/react-icons/lib/fa/cc-amex.d.ts new file mode 100644 index 0000000000..daede8980e --- /dev/null +++ b/types/react-icons/lib/fa/cc-amex.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCcAmex extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cc-diners-club.d.ts b/types/react-icons/lib/fa/cc-diners-club.d.ts new file mode 100644 index 0000000000..5263120cb0 --- /dev/null +++ b/types/react-icons/lib/fa/cc-diners-club.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCcDinersClub extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cc-discover.d.ts b/types/react-icons/lib/fa/cc-discover.d.ts new file mode 100644 index 0000000000..0d5e5d6daa --- /dev/null +++ b/types/react-icons/lib/fa/cc-discover.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCcDiscover extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cc-jcb.d.ts b/types/react-icons/lib/fa/cc-jcb.d.ts new file mode 100644 index 0000000000..3aeb4c483f --- /dev/null +++ b/types/react-icons/lib/fa/cc-jcb.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCcJcb extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cc-mastercard.d.ts b/types/react-icons/lib/fa/cc-mastercard.d.ts new file mode 100644 index 0000000000..58e0e375c0 --- /dev/null +++ b/types/react-icons/lib/fa/cc-mastercard.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCcMastercard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cc-paypal.d.ts b/types/react-icons/lib/fa/cc-paypal.d.ts new file mode 100644 index 0000000000..4fb116f8ab --- /dev/null +++ b/types/react-icons/lib/fa/cc-paypal.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCcPaypal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cc-stripe.d.ts b/types/react-icons/lib/fa/cc-stripe.d.ts new file mode 100644 index 0000000000..afb2d4cac8 --- /dev/null +++ b/types/react-icons/lib/fa/cc-stripe.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCcStripe extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cc-visa.d.ts b/types/react-icons/lib/fa/cc-visa.d.ts new file mode 100644 index 0000000000..4e5b06b45f --- /dev/null +++ b/types/react-icons/lib/fa/cc-visa.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCcVisa extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cc.d.ts b/types/react-icons/lib/fa/cc.d.ts new file mode 100644 index 0000000000..e2c4036439 --- /dev/null +++ b/types/react-icons/lib/fa/cc.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCc extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/certificate.d.ts b/types/react-icons/lib/fa/certificate.d.ts new file mode 100644 index 0000000000..c8845fb117 --- /dev/null +++ b/types/react-icons/lib/fa/certificate.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCertificate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/chain-broken.d.ts b/types/react-icons/lib/fa/chain-broken.d.ts new file mode 100644 index 0000000000..87a8310d0a --- /dev/null +++ b/types/react-icons/lib/fa/chain-broken.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaChainBroken extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/chain.d.ts b/types/react-icons/lib/fa/chain.d.ts new file mode 100644 index 0000000000..8359a5f773 --- /dev/null +++ b/types/react-icons/lib/fa/chain.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaChain extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/check-circle-o.d.ts b/types/react-icons/lib/fa/check-circle-o.d.ts new file mode 100644 index 0000000000..32390d5c4c --- /dev/null +++ b/types/react-icons/lib/fa/check-circle-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCheckCircleO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/check-circle.d.ts b/types/react-icons/lib/fa/check-circle.d.ts new file mode 100644 index 0000000000..c30263a3be --- /dev/null +++ b/types/react-icons/lib/fa/check-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCheckCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/check-square-o.d.ts b/types/react-icons/lib/fa/check-square-o.d.ts new file mode 100644 index 0000000000..b4aef21d8c --- /dev/null +++ b/types/react-icons/lib/fa/check-square-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCheckSquareO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/check-square.d.ts b/types/react-icons/lib/fa/check-square.d.ts new file mode 100644 index 0000000000..f6ba4ce0bd --- /dev/null +++ b/types/react-icons/lib/fa/check-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCheckSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/check.d.ts b/types/react-icons/lib/fa/check.d.ts new file mode 100644 index 0000000000..b30727c61c --- /dev/null +++ b/types/react-icons/lib/fa/check.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCheck extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/chevron-circle-down.d.ts b/types/react-icons/lib/fa/chevron-circle-down.d.ts new file mode 100644 index 0000000000..35eb978aec --- /dev/null +++ b/types/react-icons/lib/fa/chevron-circle-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaChevronCircleDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/chevron-circle-left.d.ts b/types/react-icons/lib/fa/chevron-circle-left.d.ts new file mode 100644 index 0000000000..e84cdd9146 --- /dev/null +++ b/types/react-icons/lib/fa/chevron-circle-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaChevronCircleLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/chevron-circle-right.d.ts b/types/react-icons/lib/fa/chevron-circle-right.d.ts new file mode 100644 index 0000000000..d5e4d2429c --- /dev/null +++ b/types/react-icons/lib/fa/chevron-circle-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaChevronCircleRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/chevron-circle-up.d.ts b/types/react-icons/lib/fa/chevron-circle-up.d.ts new file mode 100644 index 0000000000..bedcb877d6 --- /dev/null +++ b/types/react-icons/lib/fa/chevron-circle-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaChevronCircleUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/chevron-down.d.ts b/types/react-icons/lib/fa/chevron-down.d.ts new file mode 100644 index 0000000000..5c9ae23cf8 --- /dev/null +++ b/types/react-icons/lib/fa/chevron-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaChevronDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/chevron-left.d.ts b/types/react-icons/lib/fa/chevron-left.d.ts new file mode 100644 index 0000000000..b07fae8a5e --- /dev/null +++ b/types/react-icons/lib/fa/chevron-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaChevronLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/chevron-right.d.ts b/types/react-icons/lib/fa/chevron-right.d.ts new file mode 100644 index 0000000000..27f6264560 --- /dev/null +++ b/types/react-icons/lib/fa/chevron-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaChevronRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/chevron-up.d.ts b/types/react-icons/lib/fa/chevron-up.d.ts new file mode 100644 index 0000000000..3847054d06 --- /dev/null +++ b/types/react-icons/lib/fa/chevron-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaChevronUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/child.d.ts b/types/react-icons/lib/fa/child.d.ts new file mode 100644 index 0000000000..08209ee585 --- /dev/null +++ b/types/react-icons/lib/fa/child.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaChild extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/chrome.d.ts b/types/react-icons/lib/fa/chrome.d.ts new file mode 100644 index 0000000000..703caadb19 --- /dev/null +++ b/types/react-icons/lib/fa/chrome.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaChrome extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/circle-o-notch.d.ts b/types/react-icons/lib/fa/circle-o-notch.d.ts new file mode 100644 index 0000000000..ed18a9f78d --- /dev/null +++ b/types/react-icons/lib/fa/circle-o-notch.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCircleONotch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/circle-o.d.ts b/types/react-icons/lib/fa/circle-o.d.ts new file mode 100644 index 0000000000..05001b7669 --- /dev/null +++ b/types/react-icons/lib/fa/circle-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCircleO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/circle-thin.d.ts b/types/react-icons/lib/fa/circle-thin.d.ts new file mode 100644 index 0000000000..017b8a0e4d --- /dev/null +++ b/types/react-icons/lib/fa/circle-thin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCircleThin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/circle.d.ts b/types/react-icons/lib/fa/circle.d.ts new file mode 100644 index 0000000000..14b042ae0b --- /dev/null +++ b/types/react-icons/lib/fa/circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/clipboard.d.ts b/types/react-icons/lib/fa/clipboard.d.ts new file mode 100644 index 0000000000..6a15d300fb --- /dev/null +++ b/types/react-icons/lib/fa/clipboard.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaClipboard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/clock-o.d.ts b/types/react-icons/lib/fa/clock-o.d.ts new file mode 100644 index 0000000000..021deeb65e --- /dev/null +++ b/types/react-icons/lib/fa/clock-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaClockO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/clone.d.ts b/types/react-icons/lib/fa/clone.d.ts new file mode 100644 index 0000000000..60b8d9d0b9 --- /dev/null +++ b/types/react-icons/lib/fa/clone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaClone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/close.d.ts b/types/react-icons/lib/fa/close.d.ts new file mode 100644 index 0000000000..81b3c24102 --- /dev/null +++ b/types/react-icons/lib/fa/close.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaClose extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cloud-download.d.ts b/types/react-icons/lib/fa/cloud-download.d.ts new file mode 100644 index 0000000000..76834995ef --- /dev/null +++ b/types/react-icons/lib/fa/cloud-download.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCloudDownload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cloud-upload.d.ts b/types/react-icons/lib/fa/cloud-upload.d.ts new file mode 100644 index 0000000000..68e7a59934 --- /dev/null +++ b/types/react-icons/lib/fa/cloud-upload.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCloudUpload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cloud.d.ts b/types/react-icons/lib/fa/cloud.d.ts new file mode 100644 index 0000000000..555b3f5a09 --- /dev/null +++ b/types/react-icons/lib/fa/cloud.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCloud extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cny.d.ts b/types/react-icons/lib/fa/cny.d.ts new file mode 100644 index 0000000000..816523c44e --- /dev/null +++ b/types/react-icons/lib/fa/cny.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCny extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/code-fork.d.ts b/types/react-icons/lib/fa/code-fork.d.ts new file mode 100644 index 0000000000..520f347006 --- /dev/null +++ b/types/react-icons/lib/fa/code-fork.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCodeFork extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/code.d.ts b/types/react-icons/lib/fa/code.d.ts new file mode 100644 index 0000000000..5a9b025804 --- /dev/null +++ b/types/react-icons/lib/fa/code.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/codepen.d.ts b/types/react-icons/lib/fa/codepen.d.ts new file mode 100644 index 0000000000..e317fd7e6e --- /dev/null +++ b/types/react-icons/lib/fa/codepen.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCodepen extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/codiepie.d.ts b/types/react-icons/lib/fa/codiepie.d.ts new file mode 100644 index 0000000000..74deac600a --- /dev/null +++ b/types/react-icons/lib/fa/codiepie.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCodiepie extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/coffee.d.ts b/types/react-icons/lib/fa/coffee.d.ts new file mode 100644 index 0000000000..defdc05087 --- /dev/null +++ b/types/react-icons/lib/fa/coffee.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCoffee extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cog.d.ts b/types/react-icons/lib/fa/cog.d.ts new file mode 100644 index 0000000000..1fe2c08345 --- /dev/null +++ b/types/react-icons/lib/fa/cog.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCog extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cogs.d.ts b/types/react-icons/lib/fa/cogs.d.ts new file mode 100644 index 0000000000..daf4b449d3 --- /dev/null +++ b/types/react-icons/lib/fa/cogs.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCogs extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/columns.d.ts b/types/react-icons/lib/fa/columns.d.ts new file mode 100644 index 0000000000..8e88628b63 --- /dev/null +++ b/types/react-icons/lib/fa/columns.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaColumns extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/comment-o.d.ts b/types/react-icons/lib/fa/comment-o.d.ts new file mode 100644 index 0000000000..e627ec6248 --- /dev/null +++ b/types/react-icons/lib/fa/comment-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCommentO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/comment.d.ts b/types/react-icons/lib/fa/comment.d.ts new file mode 100644 index 0000000000..82043adb6a --- /dev/null +++ b/types/react-icons/lib/fa/comment.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaComment extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/commenting-o.d.ts b/types/react-icons/lib/fa/commenting-o.d.ts new file mode 100644 index 0000000000..40a4c3f058 --- /dev/null +++ b/types/react-icons/lib/fa/commenting-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCommentingO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/commenting.d.ts b/types/react-icons/lib/fa/commenting.d.ts new file mode 100644 index 0000000000..1031cc0ad6 --- /dev/null +++ b/types/react-icons/lib/fa/commenting.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCommenting extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/comments-o.d.ts b/types/react-icons/lib/fa/comments-o.d.ts new file mode 100644 index 0000000000..191de8b6a3 --- /dev/null +++ b/types/react-icons/lib/fa/comments-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCommentsO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/comments.d.ts b/types/react-icons/lib/fa/comments.d.ts new file mode 100644 index 0000000000..e77e9f4b42 --- /dev/null +++ b/types/react-icons/lib/fa/comments.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaComments extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/compass.d.ts b/types/react-icons/lib/fa/compass.d.ts new file mode 100644 index 0000000000..36d4843b21 --- /dev/null +++ b/types/react-icons/lib/fa/compass.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCompass extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/compress.d.ts b/types/react-icons/lib/fa/compress.d.ts new file mode 100644 index 0000000000..7f2f48ca22 --- /dev/null +++ b/types/react-icons/lib/fa/compress.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCompress extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/connectdevelop.d.ts b/types/react-icons/lib/fa/connectdevelop.d.ts new file mode 100644 index 0000000000..aae5bfa48c --- /dev/null +++ b/types/react-icons/lib/fa/connectdevelop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaConnectdevelop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/contao.d.ts b/types/react-icons/lib/fa/contao.d.ts new file mode 100644 index 0000000000..c99ab675b4 --- /dev/null +++ b/types/react-icons/lib/fa/contao.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaContao extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/copy.d.ts b/types/react-icons/lib/fa/copy.d.ts new file mode 100644 index 0000000000..3e6e11bf31 --- /dev/null +++ b/types/react-icons/lib/fa/copy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCopy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/copyright.d.ts b/types/react-icons/lib/fa/copyright.d.ts new file mode 100644 index 0000000000..630383979f --- /dev/null +++ b/types/react-icons/lib/fa/copyright.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCopyright extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/creative-commons.d.ts b/types/react-icons/lib/fa/creative-commons.d.ts new file mode 100644 index 0000000000..eecacfd23c --- /dev/null +++ b/types/react-icons/lib/fa/creative-commons.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCreativeCommons extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/credit-card-alt.d.ts b/types/react-icons/lib/fa/credit-card-alt.d.ts new file mode 100644 index 0000000000..c9d2f20993 --- /dev/null +++ b/types/react-icons/lib/fa/credit-card-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCreditCardAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/credit-card.d.ts b/types/react-icons/lib/fa/credit-card.d.ts new file mode 100644 index 0000000000..374f9efdda --- /dev/null +++ b/types/react-icons/lib/fa/credit-card.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCreditCard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/crop.d.ts b/types/react-icons/lib/fa/crop.d.ts new file mode 100644 index 0000000000..aa47690da9 --- /dev/null +++ b/types/react-icons/lib/fa/crop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCrop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/crosshairs.d.ts b/types/react-icons/lib/fa/crosshairs.d.ts new file mode 100644 index 0000000000..c54203bb33 --- /dev/null +++ b/types/react-icons/lib/fa/crosshairs.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCrosshairs extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/css3.d.ts b/types/react-icons/lib/fa/css3.d.ts new file mode 100644 index 0000000000..361b20e295 --- /dev/null +++ b/types/react-icons/lib/fa/css3.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCss3 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cube.d.ts b/types/react-icons/lib/fa/cube.d.ts new file mode 100644 index 0000000000..ad9dc6b033 --- /dev/null +++ b/types/react-icons/lib/fa/cube.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCube extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cubes.d.ts b/types/react-icons/lib/fa/cubes.d.ts new file mode 100644 index 0000000000..a2cdf49c8c --- /dev/null +++ b/types/react-icons/lib/fa/cubes.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCubes extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cut.d.ts b/types/react-icons/lib/fa/cut.d.ts new file mode 100644 index 0000000000..0c93d3cbc2 --- /dev/null +++ b/types/react-icons/lib/fa/cut.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCut extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/cutlery.d.ts b/types/react-icons/lib/fa/cutlery.d.ts new file mode 100644 index 0000000000..f4496c61e3 --- /dev/null +++ b/types/react-icons/lib/fa/cutlery.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaCutlery extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/dashboard.d.ts b/types/react-icons/lib/fa/dashboard.d.ts new file mode 100644 index 0000000000..d763edb50d --- /dev/null +++ b/types/react-icons/lib/fa/dashboard.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDashboard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/dashcube.d.ts b/types/react-icons/lib/fa/dashcube.d.ts new file mode 100644 index 0000000000..ed15f887b2 --- /dev/null +++ b/types/react-icons/lib/fa/dashcube.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDashcube extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/database.d.ts b/types/react-icons/lib/fa/database.d.ts new file mode 100644 index 0000000000..cfb7bcbedd --- /dev/null +++ b/types/react-icons/lib/fa/database.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDatabase extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/deaf.d.ts b/types/react-icons/lib/fa/deaf.d.ts new file mode 100644 index 0000000000..a53c48b057 --- /dev/null +++ b/types/react-icons/lib/fa/deaf.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDeaf extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/dedent.d.ts b/types/react-icons/lib/fa/dedent.d.ts new file mode 100644 index 0000000000..30db3c96d4 --- /dev/null +++ b/types/react-icons/lib/fa/dedent.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDedent extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/delicious.d.ts b/types/react-icons/lib/fa/delicious.d.ts new file mode 100644 index 0000000000..7a069105b3 --- /dev/null +++ b/types/react-icons/lib/fa/delicious.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDelicious extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/desktop.d.ts b/types/react-icons/lib/fa/desktop.d.ts new file mode 100644 index 0000000000..7ada5afec8 --- /dev/null +++ b/types/react-icons/lib/fa/desktop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDesktop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/deviantart.d.ts b/types/react-icons/lib/fa/deviantart.d.ts new file mode 100644 index 0000000000..d3d8521e04 --- /dev/null +++ b/types/react-icons/lib/fa/deviantart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDeviantart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/diamond.d.ts b/types/react-icons/lib/fa/diamond.d.ts new file mode 100644 index 0000000000..1d54c78101 --- /dev/null +++ b/types/react-icons/lib/fa/diamond.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDiamond extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/digg.d.ts b/types/react-icons/lib/fa/digg.d.ts new file mode 100644 index 0000000000..7ba32cbe41 --- /dev/null +++ b/types/react-icons/lib/fa/digg.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDigg extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/dollar.d.ts b/types/react-icons/lib/fa/dollar.d.ts new file mode 100644 index 0000000000..339fc41f86 --- /dev/null +++ b/types/react-icons/lib/fa/dollar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDollar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/dot-circle-o.d.ts b/types/react-icons/lib/fa/dot-circle-o.d.ts new file mode 100644 index 0000000000..8479c5a1c1 --- /dev/null +++ b/types/react-icons/lib/fa/dot-circle-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDotCircleO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/download.d.ts b/types/react-icons/lib/fa/download.d.ts new file mode 100644 index 0000000000..bd458b4c21 --- /dev/null +++ b/types/react-icons/lib/fa/download.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDownload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/dribbble.d.ts b/types/react-icons/lib/fa/dribbble.d.ts new file mode 100644 index 0000000000..97c095c7f0 --- /dev/null +++ b/types/react-icons/lib/fa/dribbble.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDribbble extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/dropbox.d.ts b/types/react-icons/lib/fa/dropbox.d.ts new file mode 100644 index 0000000000..1534075582 --- /dev/null +++ b/types/react-icons/lib/fa/dropbox.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDropbox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/drupal.d.ts b/types/react-icons/lib/fa/drupal.d.ts new file mode 100644 index 0000000000..c4318c69ed --- /dev/null +++ b/types/react-icons/lib/fa/drupal.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaDrupal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/edge.d.ts b/types/react-icons/lib/fa/edge.d.ts new file mode 100644 index 0000000000..bfe0ccba18 --- /dev/null +++ b/types/react-icons/lib/fa/edge.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEdge extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/edit.d.ts b/types/react-icons/lib/fa/edit.d.ts new file mode 100644 index 0000000000..e207eca02c --- /dev/null +++ b/types/react-icons/lib/fa/edit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEdit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/eject.d.ts b/types/react-icons/lib/fa/eject.d.ts new file mode 100644 index 0000000000..6a8ba89e5b --- /dev/null +++ b/types/react-icons/lib/fa/eject.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEject extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/ellipsis-h.d.ts b/types/react-icons/lib/fa/ellipsis-h.d.ts new file mode 100644 index 0000000000..6c97cce7ac --- /dev/null +++ b/types/react-icons/lib/fa/ellipsis-h.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEllipsisH extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/ellipsis-v.d.ts b/types/react-icons/lib/fa/ellipsis-v.d.ts new file mode 100644 index 0000000000..a6a862fcc0 --- /dev/null +++ b/types/react-icons/lib/fa/ellipsis-v.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEllipsisV extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/empire.d.ts b/types/react-icons/lib/fa/empire.d.ts new file mode 100644 index 0000000000..c898a570aa --- /dev/null +++ b/types/react-icons/lib/fa/empire.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEmpire extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/envelope-o.d.ts b/types/react-icons/lib/fa/envelope-o.d.ts new file mode 100644 index 0000000000..91552afcb2 --- /dev/null +++ b/types/react-icons/lib/fa/envelope-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEnvelopeO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/envelope-square.d.ts b/types/react-icons/lib/fa/envelope-square.d.ts new file mode 100644 index 0000000000..c984bceac4 --- /dev/null +++ b/types/react-icons/lib/fa/envelope-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEnvelopeSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/envelope.d.ts b/types/react-icons/lib/fa/envelope.d.ts new file mode 100644 index 0000000000..c93f0c144b --- /dev/null +++ b/types/react-icons/lib/fa/envelope.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEnvelope extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/envira.d.ts b/types/react-icons/lib/fa/envira.d.ts new file mode 100644 index 0000000000..8ccf1e8183 --- /dev/null +++ b/types/react-icons/lib/fa/envira.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEnvira extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/eraser.d.ts b/types/react-icons/lib/fa/eraser.d.ts new file mode 100644 index 0000000000..1751f58630 --- /dev/null +++ b/types/react-icons/lib/fa/eraser.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEraser extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/eur.d.ts b/types/react-icons/lib/fa/eur.d.ts new file mode 100644 index 0000000000..466c340a42 --- /dev/null +++ b/types/react-icons/lib/fa/eur.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEur extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/exchange.d.ts b/types/react-icons/lib/fa/exchange.d.ts new file mode 100644 index 0000000000..61f666fcc6 --- /dev/null +++ b/types/react-icons/lib/fa/exchange.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaExchange extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/exclamation-circle.d.ts b/types/react-icons/lib/fa/exclamation-circle.d.ts new file mode 100644 index 0000000000..074285abc3 --- /dev/null +++ b/types/react-icons/lib/fa/exclamation-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaExclamationCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/exclamation-triangle.d.ts b/types/react-icons/lib/fa/exclamation-triangle.d.ts new file mode 100644 index 0000000000..0e6a2039ef --- /dev/null +++ b/types/react-icons/lib/fa/exclamation-triangle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaExclamationTriangle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/exclamation.d.ts b/types/react-icons/lib/fa/exclamation.d.ts new file mode 100644 index 0000000000..822c50b207 --- /dev/null +++ b/types/react-icons/lib/fa/exclamation.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaExclamation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/expand.d.ts b/types/react-icons/lib/fa/expand.d.ts new file mode 100644 index 0000000000..4648b519b9 --- /dev/null +++ b/types/react-icons/lib/fa/expand.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaExpand extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/expeditedssl.d.ts b/types/react-icons/lib/fa/expeditedssl.d.ts new file mode 100644 index 0000000000..e30594333e --- /dev/null +++ b/types/react-icons/lib/fa/expeditedssl.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaExpeditedssl extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/external-link-square.d.ts b/types/react-icons/lib/fa/external-link-square.d.ts new file mode 100644 index 0000000000..f49858db95 --- /dev/null +++ b/types/react-icons/lib/fa/external-link-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaExternalLinkSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/external-link.d.ts b/types/react-icons/lib/fa/external-link.d.ts new file mode 100644 index 0000000000..69b539a542 --- /dev/null +++ b/types/react-icons/lib/fa/external-link.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaExternalLink extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/eye-slash.d.ts b/types/react-icons/lib/fa/eye-slash.d.ts new file mode 100644 index 0000000000..cbf60ac206 --- /dev/null +++ b/types/react-icons/lib/fa/eye-slash.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEyeSlash extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/eye.d.ts b/types/react-icons/lib/fa/eye.d.ts new file mode 100644 index 0000000000..bec2d41708 --- /dev/null +++ b/types/react-icons/lib/fa/eye.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEye extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/eyedropper.d.ts b/types/react-icons/lib/fa/eyedropper.d.ts new file mode 100644 index 0000000000..87b2d74f41 --- /dev/null +++ b/types/react-icons/lib/fa/eyedropper.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaEyedropper extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/facebook-official.d.ts b/types/react-icons/lib/fa/facebook-official.d.ts new file mode 100644 index 0000000000..3424fb90dd --- /dev/null +++ b/types/react-icons/lib/fa/facebook-official.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFacebookOfficial extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/facebook-square.d.ts b/types/react-icons/lib/fa/facebook-square.d.ts new file mode 100644 index 0000000000..fb5c101a6b --- /dev/null +++ b/types/react-icons/lib/fa/facebook-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFacebookSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/facebook.d.ts b/types/react-icons/lib/fa/facebook.d.ts new file mode 100644 index 0000000000..d837e533dd --- /dev/null +++ b/types/react-icons/lib/fa/facebook.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFacebook extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/fast-backward.d.ts b/types/react-icons/lib/fa/fast-backward.d.ts new file mode 100644 index 0000000000..73f95fd419 --- /dev/null +++ b/types/react-icons/lib/fa/fast-backward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFastBackward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/fast-forward.d.ts b/types/react-icons/lib/fa/fast-forward.d.ts new file mode 100644 index 0000000000..c28ea39eb7 --- /dev/null +++ b/types/react-icons/lib/fa/fast-forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFastForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/fax.d.ts b/types/react-icons/lib/fa/fax.d.ts new file mode 100644 index 0000000000..9ca411f7f9 --- /dev/null +++ b/types/react-icons/lib/fa/fax.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFax extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/feed.d.ts b/types/react-icons/lib/fa/feed.d.ts new file mode 100644 index 0000000000..448c3a2e24 --- /dev/null +++ b/types/react-icons/lib/fa/feed.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFeed extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/female.d.ts b/types/react-icons/lib/fa/female.d.ts new file mode 100644 index 0000000000..d18a20d305 --- /dev/null +++ b/types/react-icons/lib/fa/female.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFemale extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/fighter-jet.d.ts b/types/react-icons/lib/fa/fighter-jet.d.ts new file mode 100644 index 0000000000..124b4d63e3 --- /dev/null +++ b/types/react-icons/lib/fa/fighter-jet.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFighterJet extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/file-archive-o.d.ts b/types/react-icons/lib/fa/file-archive-o.d.ts new file mode 100644 index 0000000000..6a3390c936 --- /dev/null +++ b/types/react-icons/lib/fa/file-archive-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFileArchiveO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/file-audio-o.d.ts b/types/react-icons/lib/fa/file-audio-o.d.ts new file mode 100644 index 0000000000..a360a79960 --- /dev/null +++ b/types/react-icons/lib/fa/file-audio-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFileAudioO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/file-code-o.d.ts b/types/react-icons/lib/fa/file-code-o.d.ts new file mode 100644 index 0000000000..754fcb2d04 --- /dev/null +++ b/types/react-icons/lib/fa/file-code-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFileCodeO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/file-excel-o.d.ts b/types/react-icons/lib/fa/file-excel-o.d.ts new file mode 100644 index 0000000000..dd41811e82 --- /dev/null +++ b/types/react-icons/lib/fa/file-excel-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFileExcelO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/file-image-o.d.ts b/types/react-icons/lib/fa/file-image-o.d.ts new file mode 100644 index 0000000000..7c6b77a296 --- /dev/null +++ b/types/react-icons/lib/fa/file-image-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFileImageO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/file-movie-o.d.ts b/types/react-icons/lib/fa/file-movie-o.d.ts new file mode 100644 index 0000000000..ec9a9e0e0d --- /dev/null +++ b/types/react-icons/lib/fa/file-movie-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFileMovieO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/file-o.d.ts b/types/react-icons/lib/fa/file-o.d.ts new file mode 100644 index 0000000000..726de80769 --- /dev/null +++ b/types/react-icons/lib/fa/file-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFileO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/file-pdf-o.d.ts b/types/react-icons/lib/fa/file-pdf-o.d.ts new file mode 100644 index 0000000000..79ae492b23 --- /dev/null +++ b/types/react-icons/lib/fa/file-pdf-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFilePdfO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/file-powerpoint-o.d.ts b/types/react-icons/lib/fa/file-powerpoint-o.d.ts new file mode 100644 index 0000000000..fd4016615c --- /dev/null +++ b/types/react-icons/lib/fa/file-powerpoint-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFilePowerpointO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/file-text-o.d.ts b/types/react-icons/lib/fa/file-text-o.d.ts new file mode 100644 index 0000000000..5bf9475839 --- /dev/null +++ b/types/react-icons/lib/fa/file-text-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFileTextO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/file-text.d.ts b/types/react-icons/lib/fa/file-text.d.ts new file mode 100644 index 0000000000..287aa5d5e9 --- /dev/null +++ b/types/react-icons/lib/fa/file-text.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFileText extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/file-word-o.d.ts b/types/react-icons/lib/fa/file-word-o.d.ts new file mode 100644 index 0000000000..e8790d5988 --- /dev/null +++ b/types/react-icons/lib/fa/file-word-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFileWordO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/file.d.ts b/types/react-icons/lib/fa/file.d.ts new file mode 100644 index 0000000000..92fb6d073a --- /dev/null +++ b/types/react-icons/lib/fa/file.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFile extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/film.d.ts b/types/react-icons/lib/fa/film.d.ts new file mode 100644 index 0000000000..639ec938b8 --- /dev/null +++ b/types/react-icons/lib/fa/film.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFilm extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/filter.d.ts b/types/react-icons/lib/fa/filter.d.ts new file mode 100644 index 0000000000..971ec8a2ab --- /dev/null +++ b/types/react-icons/lib/fa/filter.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFilter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/fire-extinguisher.d.ts b/types/react-icons/lib/fa/fire-extinguisher.d.ts new file mode 100644 index 0000000000..347abc3091 --- /dev/null +++ b/types/react-icons/lib/fa/fire-extinguisher.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFireExtinguisher extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/fire.d.ts b/types/react-icons/lib/fa/fire.d.ts new file mode 100644 index 0000000000..361e6b3f2a --- /dev/null +++ b/types/react-icons/lib/fa/fire.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFire extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/firefox.d.ts b/types/react-icons/lib/fa/firefox.d.ts new file mode 100644 index 0000000000..fb5b6faf5b --- /dev/null +++ b/types/react-icons/lib/fa/firefox.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFirefox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/flag-checkered.d.ts b/types/react-icons/lib/fa/flag-checkered.d.ts new file mode 100644 index 0000000000..ad9439fe74 --- /dev/null +++ b/types/react-icons/lib/fa/flag-checkered.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFlagCheckered extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/flag-o.d.ts b/types/react-icons/lib/fa/flag-o.d.ts new file mode 100644 index 0000000000..4af124ebe3 --- /dev/null +++ b/types/react-icons/lib/fa/flag-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFlagO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/flag.d.ts b/types/react-icons/lib/fa/flag.d.ts new file mode 100644 index 0000000000..05b3a41500 --- /dev/null +++ b/types/react-icons/lib/fa/flag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFlag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/flask.d.ts b/types/react-icons/lib/fa/flask.d.ts new file mode 100644 index 0000000000..53edd95b1c --- /dev/null +++ b/types/react-icons/lib/fa/flask.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFlask extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/flickr.d.ts b/types/react-icons/lib/fa/flickr.d.ts new file mode 100644 index 0000000000..0642e63424 --- /dev/null +++ b/types/react-icons/lib/fa/flickr.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFlickr extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/floppy-o.d.ts b/types/react-icons/lib/fa/floppy-o.d.ts new file mode 100644 index 0000000000..a36898567d --- /dev/null +++ b/types/react-icons/lib/fa/floppy-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFloppyO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/folder-o.d.ts b/types/react-icons/lib/fa/folder-o.d.ts new file mode 100644 index 0000000000..86c2f0853c --- /dev/null +++ b/types/react-icons/lib/fa/folder-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFolderO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/folder-open-o.d.ts b/types/react-icons/lib/fa/folder-open-o.d.ts new file mode 100644 index 0000000000..13c270457c --- /dev/null +++ b/types/react-icons/lib/fa/folder-open-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFolderOpenO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/folder-open.d.ts b/types/react-icons/lib/fa/folder-open.d.ts new file mode 100644 index 0000000000..27eefcf390 --- /dev/null +++ b/types/react-icons/lib/fa/folder-open.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFolderOpen extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/folder.d.ts b/types/react-icons/lib/fa/folder.d.ts new file mode 100644 index 0000000000..348ac25522 --- /dev/null +++ b/types/react-icons/lib/fa/folder.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFolder extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/font.d.ts b/types/react-icons/lib/fa/font.d.ts new file mode 100644 index 0000000000..70459022df --- /dev/null +++ b/types/react-icons/lib/fa/font.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFont extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/fonticons.d.ts b/types/react-icons/lib/fa/fonticons.d.ts new file mode 100644 index 0000000000..a124cfb0c2 --- /dev/null +++ b/types/react-icons/lib/fa/fonticons.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFonticons extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/fort-awesome.d.ts b/types/react-icons/lib/fa/fort-awesome.d.ts new file mode 100644 index 0000000000..a88e6a0118 --- /dev/null +++ b/types/react-icons/lib/fa/fort-awesome.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFortAwesome extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/forumbee.d.ts b/types/react-icons/lib/fa/forumbee.d.ts new file mode 100644 index 0000000000..58b96a9d83 --- /dev/null +++ b/types/react-icons/lib/fa/forumbee.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaForumbee extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/forward.d.ts b/types/react-icons/lib/fa/forward.d.ts new file mode 100644 index 0000000000..12eacceb4b --- /dev/null +++ b/types/react-icons/lib/fa/forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/foursquare.d.ts b/types/react-icons/lib/fa/foursquare.d.ts new file mode 100644 index 0000000000..8c2bf2cbf5 --- /dev/null +++ b/types/react-icons/lib/fa/foursquare.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFoursquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/frown-o.d.ts b/types/react-icons/lib/fa/frown-o.d.ts new file mode 100644 index 0000000000..06ebd02274 --- /dev/null +++ b/types/react-icons/lib/fa/frown-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFrownO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/futbol-o.d.ts b/types/react-icons/lib/fa/futbol-o.d.ts new file mode 100644 index 0000000000..eaa4922a85 --- /dev/null +++ b/types/react-icons/lib/fa/futbol-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaFutbolO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/gamepad.d.ts b/types/react-icons/lib/fa/gamepad.d.ts new file mode 100644 index 0000000000..9acea2828f --- /dev/null +++ b/types/react-icons/lib/fa/gamepad.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGamepad extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/gavel.d.ts b/types/react-icons/lib/fa/gavel.d.ts new file mode 100644 index 0000000000..66e5593ffa --- /dev/null +++ b/types/react-icons/lib/fa/gavel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGavel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/gbp.d.ts b/types/react-icons/lib/fa/gbp.d.ts new file mode 100644 index 0000000000..1fb48290e3 --- /dev/null +++ b/types/react-icons/lib/fa/gbp.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGbp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/genderless.d.ts b/types/react-icons/lib/fa/genderless.d.ts new file mode 100644 index 0000000000..5ad672ddb3 --- /dev/null +++ b/types/react-icons/lib/fa/genderless.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGenderless extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/get-pocket.d.ts b/types/react-icons/lib/fa/get-pocket.d.ts new file mode 100644 index 0000000000..1f04b2974b --- /dev/null +++ b/types/react-icons/lib/fa/get-pocket.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGetPocket extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/gg-circle.d.ts b/types/react-icons/lib/fa/gg-circle.d.ts new file mode 100644 index 0000000000..580b37668c --- /dev/null +++ b/types/react-icons/lib/fa/gg-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGgCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/gg.d.ts b/types/react-icons/lib/fa/gg.d.ts new file mode 100644 index 0000000000..2aaf1c7b23 --- /dev/null +++ b/types/react-icons/lib/fa/gg.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGg extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/gift.d.ts b/types/react-icons/lib/fa/gift.d.ts new file mode 100644 index 0000000000..79b22324f5 --- /dev/null +++ b/types/react-icons/lib/fa/gift.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGift extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/git-square.d.ts b/types/react-icons/lib/fa/git-square.d.ts new file mode 100644 index 0000000000..28cf85a92a --- /dev/null +++ b/types/react-icons/lib/fa/git-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGitSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/git.d.ts b/types/react-icons/lib/fa/git.d.ts new file mode 100644 index 0000000000..427ad2a4b8 --- /dev/null +++ b/types/react-icons/lib/fa/git.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/github-alt.d.ts b/types/react-icons/lib/fa/github-alt.d.ts new file mode 100644 index 0000000000..8f3b4c4175 --- /dev/null +++ b/types/react-icons/lib/fa/github-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGithubAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/github-square.d.ts b/types/react-icons/lib/fa/github-square.d.ts new file mode 100644 index 0000000000..8feea6aea6 --- /dev/null +++ b/types/react-icons/lib/fa/github-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGithubSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/github.d.ts b/types/react-icons/lib/fa/github.d.ts new file mode 100644 index 0000000000..6e5ff98328 --- /dev/null +++ b/types/react-icons/lib/fa/github.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGithub extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/gitlab.d.ts b/types/react-icons/lib/fa/gitlab.d.ts new file mode 100644 index 0000000000..1d185afb32 --- /dev/null +++ b/types/react-icons/lib/fa/gitlab.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGitlab extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/gittip.d.ts b/types/react-icons/lib/fa/gittip.d.ts new file mode 100644 index 0000000000..c96eaa0026 --- /dev/null +++ b/types/react-icons/lib/fa/gittip.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGittip extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/glass.d.ts b/types/react-icons/lib/fa/glass.d.ts new file mode 100644 index 0000000000..7f0fa030d9 --- /dev/null +++ b/types/react-icons/lib/fa/glass.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGlass extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/glide-g.d.ts b/types/react-icons/lib/fa/glide-g.d.ts new file mode 100644 index 0000000000..c5601a2e6f --- /dev/null +++ b/types/react-icons/lib/fa/glide-g.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGlideG extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/glide.d.ts b/types/react-icons/lib/fa/glide.d.ts new file mode 100644 index 0000000000..7a7e2300f7 --- /dev/null +++ b/types/react-icons/lib/fa/glide.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGlide extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/globe.d.ts b/types/react-icons/lib/fa/globe.d.ts new file mode 100644 index 0000000000..e71a1f6bd9 --- /dev/null +++ b/types/react-icons/lib/fa/globe.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGlobe extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/google-plus-square.d.ts b/types/react-icons/lib/fa/google-plus-square.d.ts new file mode 100644 index 0000000000..9d3428ec25 --- /dev/null +++ b/types/react-icons/lib/fa/google-plus-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGooglePlusSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/google-plus.d.ts b/types/react-icons/lib/fa/google-plus.d.ts new file mode 100644 index 0000000000..3c1eba715e --- /dev/null +++ b/types/react-icons/lib/fa/google-plus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGooglePlus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/google-wallet.d.ts b/types/react-icons/lib/fa/google-wallet.d.ts new file mode 100644 index 0000000000..8ab0d78a56 --- /dev/null +++ b/types/react-icons/lib/fa/google-wallet.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGoogleWallet extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/google.d.ts b/types/react-icons/lib/fa/google.d.ts new file mode 100644 index 0000000000..3879f1c233 --- /dev/null +++ b/types/react-icons/lib/fa/google.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGoogle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/graduation-cap.d.ts b/types/react-icons/lib/fa/graduation-cap.d.ts new file mode 100644 index 0000000000..5c489d1118 --- /dev/null +++ b/types/react-icons/lib/fa/graduation-cap.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGraduationCap extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/group.d.ts b/types/react-icons/lib/fa/group.d.ts new file mode 100644 index 0000000000..554bfb5fe6 --- /dev/null +++ b/types/react-icons/lib/fa/group.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaGroup extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/h-square.d.ts b/types/react-icons/lib/fa/h-square.d.ts new file mode 100644 index 0000000000..0269ea9ebf --- /dev/null +++ b/types/react-icons/lib/fa/h-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hacker-news.d.ts b/types/react-icons/lib/fa/hacker-news.d.ts new file mode 100644 index 0000000000..70ce441a26 --- /dev/null +++ b/types/react-icons/lib/fa/hacker-news.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHackerNews extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hand-grab-o.d.ts b/types/react-icons/lib/fa/hand-grab-o.d.ts new file mode 100644 index 0000000000..44d508b041 --- /dev/null +++ b/types/react-icons/lib/fa/hand-grab-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHandGrabO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hand-lizard-o.d.ts b/types/react-icons/lib/fa/hand-lizard-o.d.ts new file mode 100644 index 0000000000..633375b976 --- /dev/null +++ b/types/react-icons/lib/fa/hand-lizard-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHandLizardO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hand-o-down.d.ts b/types/react-icons/lib/fa/hand-o-down.d.ts new file mode 100644 index 0000000000..d2a8580c81 --- /dev/null +++ b/types/react-icons/lib/fa/hand-o-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHandODown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hand-o-left.d.ts b/types/react-icons/lib/fa/hand-o-left.d.ts new file mode 100644 index 0000000000..ffce9da58b --- /dev/null +++ b/types/react-icons/lib/fa/hand-o-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHandOLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hand-o-right.d.ts b/types/react-icons/lib/fa/hand-o-right.d.ts new file mode 100644 index 0000000000..4cc734bfe4 --- /dev/null +++ b/types/react-icons/lib/fa/hand-o-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHandORight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hand-o-up.d.ts b/types/react-icons/lib/fa/hand-o-up.d.ts new file mode 100644 index 0000000000..4c108e1765 --- /dev/null +++ b/types/react-icons/lib/fa/hand-o-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHandOUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hand-paper-o.d.ts b/types/react-icons/lib/fa/hand-paper-o.d.ts new file mode 100644 index 0000000000..634685b3ba --- /dev/null +++ b/types/react-icons/lib/fa/hand-paper-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHandPaperO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hand-peace-o.d.ts b/types/react-icons/lib/fa/hand-peace-o.d.ts new file mode 100644 index 0000000000..f5f4c083e0 --- /dev/null +++ b/types/react-icons/lib/fa/hand-peace-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHandPeaceO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hand-pointer-o.d.ts b/types/react-icons/lib/fa/hand-pointer-o.d.ts new file mode 100644 index 0000000000..98d03e1641 --- /dev/null +++ b/types/react-icons/lib/fa/hand-pointer-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHandPointerO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hand-scissors-o.d.ts b/types/react-icons/lib/fa/hand-scissors-o.d.ts new file mode 100644 index 0000000000..8f95ce7463 --- /dev/null +++ b/types/react-icons/lib/fa/hand-scissors-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHandScissorsO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hand-spock-o.d.ts b/types/react-icons/lib/fa/hand-spock-o.d.ts new file mode 100644 index 0000000000..e1ae444a79 --- /dev/null +++ b/types/react-icons/lib/fa/hand-spock-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHandSpockO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hashtag.d.ts b/types/react-icons/lib/fa/hashtag.d.ts new file mode 100644 index 0000000000..c7c9be99a9 --- /dev/null +++ b/types/react-icons/lib/fa/hashtag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHashtag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hdd-o.d.ts b/types/react-icons/lib/fa/hdd-o.d.ts new file mode 100644 index 0000000000..1a04908493 --- /dev/null +++ b/types/react-icons/lib/fa/hdd-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHddO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/header.d.ts b/types/react-icons/lib/fa/header.d.ts new file mode 100644 index 0000000000..6f2e5d9137 --- /dev/null +++ b/types/react-icons/lib/fa/header.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHeader extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/headphones.d.ts b/types/react-icons/lib/fa/headphones.d.ts new file mode 100644 index 0000000000..9e6b4dc42a --- /dev/null +++ b/types/react-icons/lib/fa/headphones.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHeadphones extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/heart-o.d.ts b/types/react-icons/lib/fa/heart-o.d.ts new file mode 100644 index 0000000000..e965f0636c --- /dev/null +++ b/types/react-icons/lib/fa/heart-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHeartO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/heart.d.ts b/types/react-icons/lib/fa/heart.d.ts new file mode 100644 index 0000000000..495c26a5b3 --- /dev/null +++ b/types/react-icons/lib/fa/heart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHeart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/heartbeat.d.ts b/types/react-icons/lib/fa/heartbeat.d.ts new file mode 100644 index 0000000000..74d47f94b1 --- /dev/null +++ b/types/react-icons/lib/fa/heartbeat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHeartbeat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/history.d.ts b/types/react-icons/lib/fa/history.d.ts new file mode 100644 index 0000000000..8af7a784c9 --- /dev/null +++ b/types/react-icons/lib/fa/history.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHistory extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/home.d.ts b/types/react-icons/lib/fa/home.d.ts new file mode 100644 index 0000000000..404898ad6c --- /dev/null +++ b/types/react-icons/lib/fa/home.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHome extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hospital-o.d.ts b/types/react-icons/lib/fa/hospital-o.d.ts new file mode 100644 index 0000000000..1016140f7a --- /dev/null +++ b/types/react-icons/lib/fa/hospital-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHospitalO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hourglass-1.d.ts b/types/react-icons/lib/fa/hourglass-1.d.ts new file mode 100644 index 0000000000..8ec87f4877 --- /dev/null +++ b/types/react-icons/lib/fa/hourglass-1.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHourglass1 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hourglass-2.d.ts b/types/react-icons/lib/fa/hourglass-2.d.ts new file mode 100644 index 0000000000..600933c5e6 --- /dev/null +++ b/types/react-icons/lib/fa/hourglass-2.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHourglass2 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hourglass-3.d.ts b/types/react-icons/lib/fa/hourglass-3.d.ts new file mode 100644 index 0000000000..31e8de7b99 --- /dev/null +++ b/types/react-icons/lib/fa/hourglass-3.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHourglass3 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hourglass-o.d.ts b/types/react-icons/lib/fa/hourglass-o.d.ts new file mode 100644 index 0000000000..5f2962e102 --- /dev/null +++ b/types/react-icons/lib/fa/hourglass-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHourglassO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/hourglass.d.ts b/types/react-icons/lib/fa/hourglass.d.ts new file mode 100644 index 0000000000..8bdcd7c8db --- /dev/null +++ b/types/react-icons/lib/fa/hourglass.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHourglass extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/houzz.d.ts b/types/react-icons/lib/fa/houzz.d.ts new file mode 100644 index 0000000000..ec4c55aecb --- /dev/null +++ b/types/react-icons/lib/fa/houzz.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHouzz extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/html5.d.ts b/types/react-icons/lib/fa/html5.d.ts new file mode 100644 index 0000000000..3b8bfcacbe --- /dev/null +++ b/types/react-icons/lib/fa/html5.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaHtml5 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/i-cursor.d.ts b/types/react-icons/lib/fa/i-cursor.d.ts new file mode 100644 index 0000000000..77e0964814 --- /dev/null +++ b/types/react-icons/lib/fa/i-cursor.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaICursor extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/ils.d.ts b/types/react-icons/lib/fa/ils.d.ts new file mode 100644 index 0000000000..966e8bb384 --- /dev/null +++ b/types/react-icons/lib/fa/ils.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaIls extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/image.d.ts b/types/react-icons/lib/fa/image.d.ts new file mode 100644 index 0000000000..69e435b56a --- /dev/null +++ b/types/react-icons/lib/fa/image.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaImage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/inbox.d.ts b/types/react-icons/lib/fa/inbox.d.ts new file mode 100644 index 0000000000..401aba5577 --- /dev/null +++ b/types/react-icons/lib/fa/inbox.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaInbox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/indent.d.ts b/types/react-icons/lib/fa/indent.d.ts new file mode 100644 index 0000000000..c3022d3fc3 --- /dev/null +++ b/types/react-icons/lib/fa/indent.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaIndent extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/index.d.ts b/types/react-icons/lib/fa/index.d.ts new file mode 100644 index 0000000000..04750fc303 --- /dev/null +++ b/types/react-icons/lib/fa/index.d.ts @@ -0,0 +1,628 @@ +export { default as Fa500px } from "./500px"; +export { default as FaAdjust } from "./adjust"; +export { default as FaAdn } from "./adn"; +export { default as FaAlignCenter } from "./align-center"; +export { default as FaAlignJustify } from "./align-justify"; +export { default as FaAlignLeft } from "./align-left"; +export { default as FaAlignRight } from "./align-right"; +export { default as FaAmazon } from "./amazon"; +export { default as FaAmbulance } from "./ambulance"; +export { default as FaAmericanSignLanguageInterpreting } from "./american-sign-language-interpreting"; +export { default as FaAnchor } from "./anchor"; +export { default as FaAndroid } from "./android"; +export { default as FaAngellist } from "./angellist"; +export { default as FaAngleDoubleDown } from "./angle-double-down"; +export { default as FaAngleDoubleLeft } from "./angle-double-left"; +export { default as FaAngleDoubleRight } from "./angle-double-right"; +export { default as FaAngleDoubleUp } from "./angle-double-up"; +export { default as FaAngleDown } from "./angle-down"; +export { default as FaAngleLeft } from "./angle-left"; +export { default as FaAngleRight } from "./angle-right"; +export { default as FaAngleUp } from "./angle-up"; +export { default as FaApple } from "./apple"; +export { default as FaArchive } from "./archive"; +export { default as FaAreaChart } from "./area-chart"; +export { default as FaArrowCircleDown } from "./arrow-circle-down"; +export { default as FaArrowCircleLeft } from "./arrow-circle-left"; +export { default as FaArrowCircleODown } from "./arrow-circle-o-down"; +export { default as FaArrowCircleOLeft } from "./arrow-circle-o-left"; +export { default as FaArrowCircleORight } from "./arrow-circle-o-right"; +export { default as FaArrowCircleOUp } from "./arrow-circle-o-up"; +export { default as FaArrowCircleRight } from "./arrow-circle-right"; +export { default as FaArrowCircleUp } from "./arrow-circle-up"; +export { default as FaArrowDown } from "./arrow-down"; +export { default as FaArrowLeft } from "./arrow-left"; +export { default as FaArrowRight } from "./arrow-right"; +export { default as FaArrowUp } from "./arrow-up"; +export { default as FaArrowsAlt } from "./arrows-alt"; +export { default as FaArrowsH } from "./arrows-h"; +export { default as FaArrowsV } from "./arrows-v"; +export { default as FaArrows } from "./arrows"; +export { default as FaAssistiveListeningSystems } from "./assistive-listening-systems"; +export { default as FaAsterisk } from "./asterisk"; +export { default as FaAt } from "./at"; +export { default as FaAudioDescription } from "./audio-description"; +export { default as FaAutomobile } from "./automobile"; +export { default as FaBackward } from "./backward"; +export { default as FaBalanceScale } from "./balance-scale"; +export { default as FaBan } from "./ban"; +export { default as FaBank } from "./bank"; +export { default as FaBarChart } from "./bar-chart"; +export { default as FaBarcode } from "./barcode"; +export { default as FaBars } from "./bars"; +export { default as FaBattery0 } from "./battery-0"; +export { default as FaBattery1 } from "./battery-1"; +export { default as FaBattery2 } from "./battery-2"; +export { default as FaBattery3 } from "./battery-3"; +export { default as FaBattery4 } from "./battery-4"; +export { default as FaBed } from "./bed"; +export { default as FaBeer } from "./beer"; +export { default as FaBehanceSquare } from "./behance-square"; +export { default as FaBehance } from "./behance"; +export { default as FaBellO } from "./bell-o"; +export { default as FaBellSlashO } from "./bell-slash-o"; +export { default as FaBellSlash } from "./bell-slash"; +export { default as FaBell } from "./bell"; +export { default as FaBicycle } from "./bicycle"; +export { default as FaBinoculars } from "./binoculars"; +export { default as FaBirthdayCake } from "./birthday-cake"; +export { default as FaBitbucketSquare } from "./bitbucket-square"; +export { default as FaBitbucket } from "./bitbucket"; +export { default as FaBitcoin } from "./bitcoin"; +export { default as FaBlackTie } from "./black-tie"; +export { default as FaBlind } from "./blind"; +export { default as FaBluetoothB } from "./bluetooth-b"; +export { default as FaBluetooth } from "./bluetooth"; +export { default as FaBold } from "./bold"; +export { default as FaBolt } from "./bolt"; +export { default as FaBomb } from "./bomb"; +export { default as FaBook } from "./book"; +export { default as FaBookmarkO } from "./bookmark-o"; +export { default as FaBookmark } from "./bookmark"; +export { default as FaBraille } from "./braille"; +export { default as FaBriefcase } from "./briefcase"; +export { default as FaBug } from "./bug"; +export { default as FaBuildingO } from "./building-o"; +export { default as FaBuilding } from "./building"; +export { default as FaBullhorn } from "./bullhorn"; +export { default as FaBullseye } from "./bullseye"; +export { default as FaBus } from "./bus"; +export { default as FaBuysellads } from "./buysellads"; +export { default as FaCab } from "./cab"; +export { default as FaCalculator } from "./calculator"; +export { default as FaCalendarCheckO } from "./calendar-check-o"; +export { default as FaCalendarMinusO } from "./calendar-minus-o"; +export { default as FaCalendarO } from "./calendar-o"; +export { default as FaCalendarPlusO } from "./calendar-plus-o"; +export { default as FaCalendarTimesO } from "./calendar-times-o"; +export { default as FaCalendar } from "./calendar"; +export { default as FaCameraRetro } from "./camera-retro"; +export { default as FaCamera } from "./camera"; +export { default as FaCaretDown } from "./caret-down"; +export { default as FaCaretLeft } from "./caret-left"; +export { default as FaCaretRight } from "./caret-right"; +export { default as FaCaretSquareODown } from "./caret-square-o-down"; +export { default as FaCaretSquareOLeft } from "./caret-square-o-left"; +export { default as FaCaretSquareORight } from "./caret-square-o-right"; +export { default as FaCaretSquareOUp } from "./caret-square-o-up"; +export { default as FaCaretUp } from "./caret-up"; +export { default as FaCartArrowDown } from "./cart-arrow-down"; +export { default as FaCartPlus } from "./cart-plus"; +export { default as FaCcAmex } from "./cc-amex"; +export { default as FaCcDinersClub } from "./cc-diners-club"; +export { default as FaCcDiscover } from "./cc-discover"; +export { default as FaCcJcb } from "./cc-jcb"; +export { default as FaCcMastercard } from "./cc-mastercard"; +export { default as FaCcPaypal } from "./cc-paypal"; +export { default as FaCcStripe } from "./cc-stripe"; +export { default as FaCcVisa } from "./cc-visa"; +export { default as FaCc } from "./cc"; +export { default as FaCertificate } from "./certificate"; +export { default as FaChainBroken } from "./chain-broken"; +export { default as FaChain } from "./chain"; +export { default as FaCheckCircleO } from "./check-circle-o"; +export { default as FaCheckCircle } from "./check-circle"; +export { default as FaCheckSquareO } from "./check-square-o"; +export { default as FaCheckSquare } from "./check-square"; +export { default as FaCheck } from "./check"; +export { default as FaChevronCircleDown } from "./chevron-circle-down"; +export { default as FaChevronCircleLeft } from "./chevron-circle-left"; +export { default as FaChevronCircleRight } from "./chevron-circle-right"; +export { default as FaChevronCircleUp } from "./chevron-circle-up"; +export { default as FaChevronDown } from "./chevron-down"; +export { default as FaChevronLeft } from "./chevron-left"; +export { default as FaChevronRight } from "./chevron-right"; +export { default as FaChevronUp } from "./chevron-up"; +export { default as FaChild } from "./child"; +export { default as FaChrome } from "./chrome"; +export { default as FaCircleONotch } from "./circle-o-notch"; +export { default as FaCircleO } from "./circle-o"; +export { default as FaCircleThin } from "./circle-thin"; +export { default as FaCircle } from "./circle"; +export { default as FaClipboard } from "./clipboard"; +export { default as FaClockO } from "./clock-o"; +export { default as FaClone } from "./clone"; +export { default as FaClose } from "./close"; +export { default as FaCloudDownload } from "./cloud-download"; +export { default as FaCloudUpload } from "./cloud-upload"; +export { default as FaCloud } from "./cloud"; +export { default as FaCny } from "./cny"; +export { default as FaCodeFork } from "./code-fork"; +export { default as FaCode } from "./code"; +export { default as FaCodepen } from "./codepen"; +export { default as FaCodiepie } from "./codiepie"; +export { default as FaCoffee } from "./coffee"; +export { default as FaCog } from "./cog"; +export { default as FaCogs } from "./cogs"; +export { default as FaColumns } from "./columns"; +export { default as FaCommentO } from "./comment-o"; +export { default as FaComment } from "./comment"; +export { default as FaCommentingO } from "./commenting-o"; +export { default as FaCommenting } from "./commenting"; +export { default as FaCommentsO } from "./comments-o"; +export { default as FaComments } from "./comments"; +export { default as FaCompass } from "./compass"; +export { default as FaCompress } from "./compress"; +export { default as FaConnectdevelop } from "./connectdevelop"; +export { default as FaContao } from "./contao"; +export { default as FaCopy } from "./copy"; +export { default as FaCopyright } from "./copyright"; +export { default as FaCreativeCommons } from "./creative-commons"; +export { default as FaCreditCardAlt } from "./credit-card-alt"; +export { default as FaCreditCard } from "./credit-card"; +export { default as FaCrop } from "./crop"; +export { default as FaCrosshairs } from "./crosshairs"; +export { default as FaCss3 } from "./css3"; +export { default as FaCube } from "./cube"; +export { default as FaCubes } from "./cubes"; +export { default as FaCut } from "./cut"; +export { default as FaCutlery } from "./cutlery"; +export { default as FaDashboard } from "./dashboard"; +export { default as FaDashcube } from "./dashcube"; +export { default as FaDatabase } from "./database"; +export { default as FaDeaf } from "./deaf"; +export { default as FaDedent } from "./dedent"; +export { default as FaDelicious } from "./delicious"; +export { default as FaDesktop } from "./desktop"; +export { default as FaDeviantart } from "./deviantart"; +export { default as FaDiamond } from "./diamond"; +export { default as FaDigg } from "./digg"; +export { default as FaDollar } from "./dollar"; +export { default as FaDotCircleO } from "./dot-circle-o"; +export { default as FaDownload } from "./download"; +export { default as FaDribbble } from "./dribbble"; +export { default as FaDropbox } from "./dropbox"; +export { default as FaDrupal } from "./drupal"; +export { default as FaEdge } from "./edge"; +export { default as FaEdit } from "./edit"; +export { default as FaEject } from "./eject"; +export { default as FaEllipsisH } from "./ellipsis-h"; +export { default as FaEllipsisV } from "./ellipsis-v"; +export { default as FaEmpire } from "./empire"; +export { default as FaEnvelopeO } from "./envelope-o"; +export { default as FaEnvelopeSquare } from "./envelope-square"; +export { default as FaEnvelope } from "./envelope"; +export { default as FaEnvira } from "./envira"; +export { default as FaEraser } from "./eraser"; +export { default as FaEur } from "./eur"; +export { default as FaExchange } from "./exchange"; +export { default as FaExclamationCircle } from "./exclamation-circle"; +export { default as FaExclamationTriangle } from "./exclamation-triangle"; +export { default as FaExclamation } from "./exclamation"; +export { default as FaExpand } from "./expand"; +export { default as FaExpeditedssl } from "./expeditedssl"; +export { default as FaExternalLinkSquare } from "./external-link-square"; +export { default as FaExternalLink } from "./external-link"; +export { default as FaEyeSlash } from "./eye-slash"; +export { default as FaEye } from "./eye"; +export { default as FaEyedropper } from "./eyedropper"; +export { default as FaFacebookOfficial } from "./facebook-official"; +export { default as FaFacebookSquare } from "./facebook-square"; +export { default as FaFacebook } from "./facebook"; +export { default as FaFastBackward } from "./fast-backward"; +export { default as FaFastForward } from "./fast-forward"; +export { default as FaFax } from "./fax"; +export { default as FaFeed } from "./feed"; +export { default as FaFemale } from "./female"; +export { default as FaFighterJet } from "./fighter-jet"; +export { default as FaFileArchiveO } from "./file-archive-o"; +export { default as FaFileAudioO } from "./file-audio-o"; +export { default as FaFileCodeO } from "./file-code-o"; +export { default as FaFileExcelO } from "./file-excel-o"; +export { default as FaFileImageO } from "./file-image-o"; +export { default as FaFileMovieO } from "./file-movie-o"; +export { default as FaFileO } from "./file-o"; +export { default as FaFilePdfO } from "./file-pdf-o"; +export { default as FaFilePowerpointO } from "./file-powerpoint-o"; +export { default as FaFileTextO } from "./file-text-o"; +export { default as FaFileText } from "./file-text"; +export { default as FaFileWordO } from "./file-word-o"; +export { default as FaFile } from "./file"; +export { default as FaFilm } from "./film"; +export { default as FaFilter } from "./filter"; +export { default as FaFireExtinguisher } from "./fire-extinguisher"; +export { default as FaFire } from "./fire"; +export { default as FaFirefox } from "./firefox"; +export { default as FaFlagCheckered } from "./flag-checkered"; +export { default as FaFlagO } from "./flag-o"; +export { default as FaFlag } from "./flag"; +export { default as FaFlask } from "./flask"; +export { default as FaFlickr } from "./flickr"; +export { default as FaFloppyO } from "./floppy-o"; +export { default as FaFolderO } from "./folder-o"; +export { default as FaFolderOpenO } from "./folder-open-o"; +export { default as FaFolderOpen } from "./folder-open"; +export { default as FaFolder } from "./folder"; +export { default as FaFont } from "./font"; +export { default as FaFonticons } from "./fonticons"; +export { default as FaFortAwesome } from "./fort-awesome"; +export { default as FaForumbee } from "./forumbee"; +export { default as FaForward } from "./forward"; +export { default as FaFoursquare } from "./foursquare"; +export { default as FaFrownO } from "./frown-o"; +export { default as FaFutbolO } from "./futbol-o"; +export { default as FaGamepad } from "./gamepad"; +export { default as FaGavel } from "./gavel"; +export { default as FaGbp } from "./gbp"; +export { default as FaGenderless } from "./genderless"; +export { default as FaGetPocket } from "./get-pocket"; +export { default as FaGgCircle } from "./gg-circle"; +export { default as FaGg } from "./gg"; +export { default as FaGift } from "./gift"; +export { default as FaGitSquare } from "./git-square"; +export { default as FaGit } from "./git"; +export { default as FaGithubAlt } from "./github-alt"; +export { default as FaGithubSquare } from "./github-square"; +export { default as FaGithub } from "./github"; +export { default as FaGitlab } from "./gitlab"; +export { default as FaGittip } from "./gittip"; +export { default as FaGlass } from "./glass"; +export { default as FaGlideG } from "./glide-g"; +export { default as FaGlide } from "./glide"; +export { default as FaGlobe } from "./globe"; +export { default as FaGooglePlusSquare } from "./google-plus-square"; +export { default as FaGooglePlus } from "./google-plus"; +export { default as FaGoogleWallet } from "./google-wallet"; +export { default as FaGoogle } from "./google"; +export { default as FaGraduationCap } from "./graduation-cap"; +export { default as FaGroup } from "./group"; +export { default as FaHSquare } from "./h-square"; +export { default as FaHackerNews } from "./hacker-news"; +export { default as FaHandGrabO } from "./hand-grab-o"; +export { default as FaHandLizardO } from "./hand-lizard-o"; +export { default as FaHandODown } from "./hand-o-down"; +export { default as FaHandOLeft } from "./hand-o-left"; +export { default as FaHandORight } from "./hand-o-right"; +export { default as FaHandOUp } from "./hand-o-up"; +export { default as FaHandPaperO } from "./hand-paper-o"; +export { default as FaHandPeaceO } from "./hand-peace-o"; +export { default as FaHandPointerO } from "./hand-pointer-o"; +export { default as FaHandScissorsO } from "./hand-scissors-o"; +export { default as FaHandSpockO } from "./hand-spock-o"; +export { default as FaHashtag } from "./hashtag"; +export { default as FaHddO } from "./hdd-o"; +export { default as FaHeader } from "./header"; +export { default as FaHeadphones } from "./headphones"; +export { default as FaHeartO } from "./heart-o"; +export { default as FaHeart } from "./heart"; +export { default as FaHeartbeat } from "./heartbeat"; +export { default as FaHistory } from "./history"; +export { default as FaHome } from "./home"; +export { default as FaHospitalO } from "./hospital-o"; +export { default as FaHourglass1 } from "./hourglass-1"; +export { default as FaHourglass2 } from "./hourglass-2"; +export { default as FaHourglass3 } from "./hourglass-3"; +export { default as FaHourglassO } from "./hourglass-o"; +export { default as FaHourglass } from "./hourglass"; +export { default as FaHouzz } from "./houzz"; +export { default as FaHtml5 } from "./html5"; +export { default as FaICursor } from "./i-cursor"; +export { default as FaIls } from "./ils"; +export { default as FaImage } from "./image"; +export { default as FaInbox } from "./inbox"; +export { default as FaIndent } from "./indent"; +export { default as FaIndustry } from "./industry"; +export { default as FaInfoCircle } from "./info-circle"; +export { default as FaInfo } from "./info"; +export { default as FaInr } from "./inr"; +export { default as FaInstagram } from "./instagram"; +export { default as FaInternetExplorer } from "./internet-explorer"; +export { default as FaIntersex } from "./intersex"; +export { default as FaIoxhost } from "./ioxhost"; +export { default as FaItalic } from "./italic"; +export { default as FaJoomla } from "./joomla"; +export { default as FaJsfiddle } from "./jsfiddle"; +export { default as FaKey } from "./key"; +export { default as FaKeyboardO } from "./keyboard-o"; +export { default as FaKrw } from "./krw"; +export { default as FaLanguage } from "./language"; +export { default as FaLaptop } from "./laptop"; +export { default as FaLastfmSquare } from "./lastfm-square"; +export { default as FaLastfm } from "./lastfm"; +export { default as FaLeaf } from "./leaf"; +export { default as FaLeanpub } from "./leanpub"; +export { default as FaLemonO } from "./lemon-o"; +export { default as FaLevelDown } from "./level-down"; +export { default as FaLevelUp } from "./level-up"; +export { default as FaLifeBouy } from "./life-bouy"; +export { default as FaLightbulbO } from "./lightbulb-o"; +export { default as FaLineChart } from "./line-chart"; +export { default as FaLinkedinSquare } from "./linkedin-square"; +export { default as FaLinkedin } from "./linkedin"; +export { default as FaLinux } from "./linux"; +export { default as FaListAlt } from "./list-alt"; +export { default as FaListOl } from "./list-ol"; +export { default as FaListUl } from "./list-ul"; +export { default as FaList } from "./list"; +export { default as FaLocationArrow } from "./location-arrow"; +export { default as FaLock } from "./lock"; +export { default as FaLongArrowDown } from "./long-arrow-down"; +export { default as FaLongArrowLeft } from "./long-arrow-left"; +export { default as FaLongArrowRight } from "./long-arrow-right"; +export { default as FaLongArrowUp } from "./long-arrow-up"; +export { default as FaLowVision } from "./low-vision"; +export { default as FaMagic } from "./magic"; +export { default as FaMagnet } from "./magnet"; +export { default as FaMailForward } from "./mail-forward"; +export { default as FaMailReplyAll } from "./mail-reply-all"; +export { default as FaMailReply } from "./mail-reply"; +export { default as FaMale } from "./male"; +export { default as FaMapMarker } from "./map-marker"; +export { default as FaMapO } from "./map-o"; +export { default as FaMapPin } from "./map-pin"; +export { default as FaMapSigns } from "./map-signs"; +export { default as FaMap } from "./map"; +export { default as FaMarsDouble } from "./mars-double"; +export { default as FaMarsStrokeH } from "./mars-stroke-h"; +export { default as FaMarsStrokeV } from "./mars-stroke-v"; +export { default as FaMarsStroke } from "./mars-stroke"; +export { default as FaMars } from "./mars"; +export { default as FaMaxcdn } from "./maxcdn"; +export { default as FaMeanpath } from "./meanpath"; +export { default as FaMedium } from "./medium"; +export { default as FaMedkit } from "./medkit"; +export { default as FaMehO } from "./meh-o"; +export { default as FaMercury } from "./mercury"; +export { default as FaMicrophoneSlash } from "./microphone-slash"; +export { default as FaMicrophone } from "./microphone"; +export { default as FaMinusCircle } from "./minus-circle"; +export { default as FaMinusSquareO } from "./minus-square-o"; +export { default as FaMinusSquare } from "./minus-square"; +export { default as FaMinus } from "./minus"; +export { default as FaMixcloud } from "./mixcloud"; +export { default as FaMobile } from "./mobile"; +export { default as FaModx } from "./modx"; +export { default as FaMoney } from "./money"; +export { default as FaMoonO } from "./moon-o"; +export { default as FaMotorcycle } from "./motorcycle"; +export { default as FaMousePointer } from "./mouse-pointer"; +export { default as FaMusic } from "./music"; +export { default as FaNeuter } from "./neuter"; +export { default as FaNewspaperO } from "./newspaper-o"; +export { default as FaObjectGroup } from "./object-group"; +export { default as FaObjectUngroup } from "./object-ungroup"; +export { default as FaOdnoklassnikiSquare } from "./odnoklassniki-square"; +export { default as FaOdnoklassniki } from "./odnoklassniki"; +export { default as FaOpencart } from "./opencart"; +export { default as FaOpenid } from "./openid"; +export { default as FaOpera } from "./opera"; +export { default as FaOptinMonster } from "./optin-monster"; +export { default as FaPagelines } from "./pagelines"; +export { default as FaPaintBrush } from "./paint-brush"; +export { default as FaPaperPlaneO } from "./paper-plane-o"; +export { default as FaPaperPlane } from "./paper-plane"; +export { default as FaPaperclip } from "./paperclip"; +export { default as FaParagraph } from "./paragraph"; +export { default as FaPauseCircleO } from "./pause-circle-o"; +export { default as FaPauseCircle } from "./pause-circle"; +export { default as FaPause } from "./pause"; +export { default as FaPaw } from "./paw"; +export { default as FaPaypal } from "./paypal"; +export { default as FaPencilSquare } from "./pencil-square"; +export { default as FaPencil } from "./pencil"; +export { default as FaPercent } from "./percent"; +export { default as FaPhoneSquare } from "./phone-square"; +export { default as FaPhone } from "./phone"; +export { default as FaPieChart } from "./pie-chart"; +export { default as FaPiedPiperAlt } from "./pied-piper-alt"; +export { default as FaPiedPiper } from "./pied-piper"; +export { default as FaPinterestP } from "./pinterest-p"; +export { default as FaPinterestSquare } from "./pinterest-square"; +export { default as FaPinterest } from "./pinterest"; +export { default as FaPlane } from "./plane"; +export { default as FaPlayCircleO } from "./play-circle-o"; +export { default as FaPlayCircle } from "./play-circle"; +export { default as FaPlay } from "./play"; +export { default as FaPlug } from "./plug"; +export { default as FaPlusCircle } from "./plus-circle"; +export { default as FaPlusSquareO } from "./plus-square-o"; +export { default as FaPlusSquare } from "./plus-square"; +export { default as FaPlus } from "./plus"; +export { default as FaPowerOff } from "./power-off"; +export { default as FaPrint } from "./print"; +export { default as FaProductHunt } from "./product-hunt"; +export { default as FaPuzzlePiece } from "./puzzle-piece"; +export { default as FaQq } from "./qq"; +export { default as FaQrcode } from "./qrcode"; +export { default as FaQuestionCircleO } from "./question-circle-o"; +export { default as FaQuestionCircle } from "./question-circle"; +export { default as FaQuestion } from "./question"; +export { default as FaQuoteLeft } from "./quote-left"; +export { default as FaQuoteRight } from "./quote-right"; +export { default as FaRa } from "./ra"; +export { default as FaRandom } from "./random"; +export { default as FaRecycle } from "./recycle"; +export { default as FaRedditAlien } from "./reddit-alien"; +export { default as FaRedditSquare } from "./reddit-square"; +export { default as FaReddit } from "./reddit"; +export { default as FaRefresh } from "./refresh"; +export { default as FaRegistered } from "./registered"; +export { default as FaRenren } from "./renren"; +export { default as FaRepeat } from "./repeat"; +export { default as FaRetweet } from "./retweet"; +export { default as FaRoad } from "./road"; +export { default as FaRocket } from "./rocket"; +export { default as FaRotateLeft } from "./rotate-left"; +export { default as FaRouble } from "./rouble"; +export { default as FaRssSquare } from "./rss-square"; +export { default as FaSafari } from "./safari"; +export { default as FaScribd } from "./scribd"; +export { default as FaSearchMinus } from "./search-minus"; +export { default as FaSearchPlus } from "./search-plus"; +export { default as FaSearch } from "./search"; +export { default as FaSellsy } from "./sellsy"; +export { default as FaServer } from "./server"; +export { default as FaShareAltSquare } from "./share-alt-square"; +export { default as FaShareAlt } from "./share-alt"; +export { default as FaShareSquareO } from "./share-square-o"; +export { default as FaShareSquare } from "./share-square"; +export { default as FaShield } from "./shield"; +export { default as FaShip } from "./ship"; +export { default as FaShirtsinbulk } from "./shirtsinbulk"; +export { default as FaShoppingBag } from "./shopping-bag"; +export { default as FaShoppingBasket } from "./shopping-basket"; +export { default as FaShoppingCart } from "./shopping-cart"; +export { default as FaSignIn } from "./sign-in"; +export { default as FaSignLanguage } from "./sign-language"; +export { default as FaSignOut } from "./sign-out"; +export { default as FaSignal } from "./signal"; +export { default as FaSimplybuilt } from "./simplybuilt"; +export { default as FaSitemap } from "./sitemap"; +export { default as FaSkyatlas } from "./skyatlas"; +export { default as FaSkype } from "./skype"; +export { default as FaSlack } from "./slack"; +export { default as FaSliders } from "./sliders"; +export { default as FaSlideshare } from "./slideshare"; +export { default as FaSmileO } from "./smile-o"; +export { default as FaSnapchatGhost } from "./snapchat-ghost"; +export { default as FaSnapchatSquare } from "./snapchat-square"; +export { default as FaSnapchat } from "./snapchat"; +export { default as FaSortAlphaAsc } from "./sort-alpha-asc"; +export { default as FaSortAlphaDesc } from "./sort-alpha-desc"; +export { default as FaSortAmountAsc } from "./sort-amount-asc"; +export { default as FaSortAmountDesc } from "./sort-amount-desc"; +export { default as FaSortAsc } from "./sort-asc"; +export { default as FaSortDesc } from "./sort-desc"; +export { default as FaSortNumericAsc } from "./sort-numeric-asc"; +export { default as FaSortNumericDesc } from "./sort-numeric-desc"; +export { default as FaSort } from "./sort"; +export { default as FaSoundcloud } from "./soundcloud"; +export { default as FaSpaceShuttle } from "./space-shuttle"; +export { default as FaSpinner } from "./spinner"; +export { default as FaSpoon } from "./spoon"; +export { default as FaSpotify } from "./spotify"; +export { default as FaSquareO } from "./square-o"; +export { default as FaSquare } from "./square"; +export { default as FaStackExchange } from "./stack-exchange"; +export { default as FaStackOverflow } from "./stack-overflow"; +export { default as FaStarHalfEmpty } from "./star-half-empty"; +export { default as FaStarHalf } from "./star-half"; +export { default as FaStarO } from "./star-o"; +export { default as FaStar } from "./star"; +export { default as FaSteamSquare } from "./steam-square"; +export { default as FaSteam } from "./steam"; +export { default as FaStepBackward } from "./step-backward"; +export { default as FaStepForward } from "./step-forward"; +export { default as FaStethoscope } from "./stethoscope"; +export { default as FaStickyNoteO } from "./sticky-note-o"; +export { default as FaStickyNote } from "./sticky-note"; +export { default as FaStopCircleO } from "./stop-circle-o"; +export { default as FaStopCircle } from "./stop-circle"; +export { default as FaStop } from "./stop"; +export { default as FaStreetView } from "./street-view"; +export { default as FaStrikethrough } from "./strikethrough"; +export { default as FaStumbleuponCircle } from "./stumbleupon-circle"; +export { default as FaStumbleupon } from "./stumbleupon"; +export { default as FaSubscript } from "./subscript"; +export { default as FaSubway } from "./subway"; +export { default as FaSuitcase } from "./suitcase"; +export { default as FaSunO } from "./sun-o"; +export { default as FaSuperscript } from "./superscript"; +export { default as FaTable } from "./table"; +export { default as FaTablet } from "./tablet"; +export { default as FaTag } from "./tag"; +export { default as FaTags } from "./tags"; +export { default as FaTasks } from "./tasks"; +export { default as FaTelevision } from "./television"; +export { default as FaTencentWeibo } from "./tencent-weibo"; +export { default as FaTerminal } from "./terminal"; +export { default as FaTextHeight } from "./text-height"; +export { default as FaTextWidth } from "./text-width"; +export { default as FaThLarge } from "./th-large"; +export { default as FaThList } from "./th-list"; +export { default as FaTh } from "./th"; +export { default as FaThumbTack } from "./thumb-tack"; +export { default as FaThumbsDown } from "./thumbs-down"; +export { default as FaThumbsODown } from "./thumbs-o-down"; +export { default as FaThumbsOUp } from "./thumbs-o-up"; +export { default as FaThumbsUp } from "./thumbs-up"; +export { default as FaTicket } from "./ticket"; +export { default as FaTimesCircleO } from "./times-circle-o"; +export { default as FaTimesCircle } from "./times-circle"; +export { default as FaTint } from "./tint"; +export { default as FaToggleOff } from "./toggle-off"; +export { default as FaToggleOn } from "./toggle-on"; +export { default as FaTrademark } from "./trademark"; +export { default as FaTrain } from "./train"; +export { default as FaTransgenderAlt } from "./transgender-alt"; +export { default as FaTrashO } from "./trash-o"; +export { default as FaTrash } from "./trash"; +export { default as FaTree } from "./tree"; +export { default as FaTrello } from "./trello"; +export { default as FaTripadvisor } from "./tripadvisor"; +export { default as FaTrophy } from "./trophy"; +export { default as FaTruck } from "./truck"; +export { default as FaTry } from "./try"; +export { default as FaTty } from "./tty"; +export { default as FaTumblrSquare } from "./tumblr-square"; +export { default as FaTumblr } from "./tumblr"; +export { default as FaTwitch } from "./twitch"; +export { default as FaTwitterSquare } from "./twitter-square"; +export { default as FaTwitter } from "./twitter"; +export { default as FaUmbrella } from "./umbrella"; +export { default as FaUnderline } from "./underline"; +export { default as FaUniversalAccess } from "./universal-access"; +export { default as FaUnlockAlt } from "./unlock-alt"; +export { default as FaUnlock } from "./unlock"; +export { default as FaUpload } from "./upload"; +export { default as FaUsb } from "./usb"; +export { default as FaUserMd } from "./user-md"; +export { default as FaUserPlus } from "./user-plus"; +export { default as FaUserSecret } from "./user-secret"; +export { default as FaUserTimes } from "./user-times"; +export { default as FaUser } from "./user"; +export { default as FaVenusDouble } from "./venus-double"; +export { default as FaVenusMars } from "./venus-mars"; +export { default as FaVenus } from "./venus"; +export { default as FaViacoin } from "./viacoin"; +export { default as FaViadeoSquare } from "./viadeo-square"; +export { default as FaViadeo } from "./viadeo"; +export { default as FaVideoCamera } from "./video-camera"; +export { default as FaVimeoSquare } from "./vimeo-square"; +export { default as FaVimeo } from "./vimeo"; +export { default as FaVine } from "./vine"; +export { default as FaVk } from "./vk"; +export { default as FaVolumeControlPhone } from "./volume-control-phone"; +export { default as FaVolumeDown } from "./volume-down"; +export { default as FaVolumeOff } from "./volume-off"; +export { default as FaVolumeUp } from "./volume-up"; +export { default as FaWechat } from "./wechat"; +export { default as FaWeibo } from "./weibo"; +export { default as FaWhatsapp } from "./whatsapp"; +export { default as FaWheelchairAlt } from "./wheelchair-alt"; +export { default as FaWheelchair } from "./wheelchair"; +export { default as FaWifi } from "./wifi"; +export { default as FaWikipediaW } from "./wikipedia-w"; +export { default as FaWindows } from "./windows"; +export { default as FaWordpress } from "./wordpress"; +export { default as FaWpbeginner } from "./wpbeginner"; +export { default as FaWpforms } from "./wpforms"; +export { default as FaWrench } from "./wrench"; +export { default as FaXingSquare } from "./xing-square"; +export { default as FaXing } from "./xing"; +export { default as FaYCombinator } from "./y-combinator"; +export { default as FaYahoo } from "./yahoo"; +export { default as FaYelp } from "./yelp"; +export { default as FaYoutubePlay } from "./youtube-play"; +export { default as FaYoutubeSquare } from "./youtube-square"; +export { default as FaYoutube } from "./youtube"; diff --git a/types/react-icons/lib/fa/industry.d.ts b/types/react-icons/lib/fa/industry.d.ts new file mode 100644 index 0000000000..70d7057743 --- /dev/null +++ b/types/react-icons/lib/fa/industry.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaIndustry extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/info-circle.d.ts b/types/react-icons/lib/fa/info-circle.d.ts new file mode 100644 index 0000000000..7ed29e6eec --- /dev/null +++ b/types/react-icons/lib/fa/info-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaInfoCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/info.d.ts b/types/react-icons/lib/fa/info.d.ts new file mode 100644 index 0000000000..c67b3190a9 --- /dev/null +++ b/types/react-icons/lib/fa/info.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaInfo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/inr.d.ts b/types/react-icons/lib/fa/inr.d.ts new file mode 100644 index 0000000000..b47cb31531 --- /dev/null +++ b/types/react-icons/lib/fa/inr.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaInr extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/instagram.d.ts b/types/react-icons/lib/fa/instagram.d.ts new file mode 100644 index 0000000000..7770e19043 --- /dev/null +++ b/types/react-icons/lib/fa/instagram.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaInstagram extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/internet-explorer.d.ts b/types/react-icons/lib/fa/internet-explorer.d.ts new file mode 100644 index 0000000000..924654fee2 --- /dev/null +++ b/types/react-icons/lib/fa/internet-explorer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaInternetExplorer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/intersex.d.ts b/types/react-icons/lib/fa/intersex.d.ts new file mode 100644 index 0000000000..77580bbb2d --- /dev/null +++ b/types/react-icons/lib/fa/intersex.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaIntersex extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/ioxhost.d.ts b/types/react-icons/lib/fa/ioxhost.d.ts new file mode 100644 index 0000000000..b713d2c54a --- /dev/null +++ b/types/react-icons/lib/fa/ioxhost.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaIoxhost extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/italic.d.ts b/types/react-icons/lib/fa/italic.d.ts new file mode 100644 index 0000000000..57572f5dbc --- /dev/null +++ b/types/react-icons/lib/fa/italic.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaItalic extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/joomla.d.ts b/types/react-icons/lib/fa/joomla.d.ts new file mode 100644 index 0000000000..cdf3539275 --- /dev/null +++ b/types/react-icons/lib/fa/joomla.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaJoomla extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/jsfiddle.d.ts b/types/react-icons/lib/fa/jsfiddle.d.ts new file mode 100644 index 0000000000..e17414bd20 --- /dev/null +++ b/types/react-icons/lib/fa/jsfiddle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaJsfiddle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/key.d.ts b/types/react-icons/lib/fa/key.d.ts new file mode 100644 index 0000000000..b1fc11d702 --- /dev/null +++ b/types/react-icons/lib/fa/key.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaKey extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/keyboard-o.d.ts b/types/react-icons/lib/fa/keyboard-o.d.ts new file mode 100644 index 0000000000..d8676809fd --- /dev/null +++ b/types/react-icons/lib/fa/keyboard-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaKeyboardO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/krw.d.ts b/types/react-icons/lib/fa/krw.d.ts new file mode 100644 index 0000000000..a23710bcfd --- /dev/null +++ b/types/react-icons/lib/fa/krw.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaKrw extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/language.d.ts b/types/react-icons/lib/fa/language.d.ts new file mode 100644 index 0000000000..a04950506c --- /dev/null +++ b/types/react-icons/lib/fa/language.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLanguage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/laptop.d.ts b/types/react-icons/lib/fa/laptop.d.ts new file mode 100644 index 0000000000..d13d583fb7 --- /dev/null +++ b/types/react-icons/lib/fa/laptop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLaptop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/lastfm-square.d.ts b/types/react-icons/lib/fa/lastfm-square.d.ts new file mode 100644 index 0000000000..057f801895 --- /dev/null +++ b/types/react-icons/lib/fa/lastfm-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLastfmSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/lastfm.d.ts b/types/react-icons/lib/fa/lastfm.d.ts new file mode 100644 index 0000000000..c8124c95ce --- /dev/null +++ b/types/react-icons/lib/fa/lastfm.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLastfm extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/leaf.d.ts b/types/react-icons/lib/fa/leaf.d.ts new file mode 100644 index 0000000000..9c4514a54f --- /dev/null +++ b/types/react-icons/lib/fa/leaf.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLeaf extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/leanpub.d.ts b/types/react-icons/lib/fa/leanpub.d.ts new file mode 100644 index 0000000000..de2024c7a8 --- /dev/null +++ b/types/react-icons/lib/fa/leanpub.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLeanpub extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/lemon-o.d.ts b/types/react-icons/lib/fa/lemon-o.d.ts new file mode 100644 index 0000000000..74886cb79c --- /dev/null +++ b/types/react-icons/lib/fa/lemon-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLemonO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/level-down.d.ts b/types/react-icons/lib/fa/level-down.d.ts new file mode 100644 index 0000000000..caba9cef44 --- /dev/null +++ b/types/react-icons/lib/fa/level-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLevelDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/level-up.d.ts b/types/react-icons/lib/fa/level-up.d.ts new file mode 100644 index 0000000000..977a2d2c97 --- /dev/null +++ b/types/react-icons/lib/fa/level-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLevelUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/life-bouy.d.ts b/types/react-icons/lib/fa/life-bouy.d.ts new file mode 100644 index 0000000000..85205b3e62 --- /dev/null +++ b/types/react-icons/lib/fa/life-bouy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLifeBouy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/lightbulb-o.d.ts b/types/react-icons/lib/fa/lightbulb-o.d.ts new file mode 100644 index 0000000000..48646e6261 --- /dev/null +++ b/types/react-icons/lib/fa/lightbulb-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLightbulbO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/line-chart.d.ts b/types/react-icons/lib/fa/line-chart.d.ts new file mode 100644 index 0000000000..f0109467e2 --- /dev/null +++ b/types/react-icons/lib/fa/line-chart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLineChart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/linkedin-square.d.ts b/types/react-icons/lib/fa/linkedin-square.d.ts new file mode 100644 index 0000000000..2c538f5349 --- /dev/null +++ b/types/react-icons/lib/fa/linkedin-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLinkedinSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/linkedin.d.ts b/types/react-icons/lib/fa/linkedin.d.ts new file mode 100644 index 0000000000..7e011b8f8f --- /dev/null +++ b/types/react-icons/lib/fa/linkedin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLinkedin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/linux.d.ts b/types/react-icons/lib/fa/linux.d.ts new file mode 100644 index 0000000000..55eb44cddb --- /dev/null +++ b/types/react-icons/lib/fa/linux.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLinux extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/list-alt.d.ts b/types/react-icons/lib/fa/list-alt.d.ts new file mode 100644 index 0000000000..4987907f75 --- /dev/null +++ b/types/react-icons/lib/fa/list-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaListAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/list-ol.d.ts b/types/react-icons/lib/fa/list-ol.d.ts new file mode 100644 index 0000000000..25c4509dd8 --- /dev/null +++ b/types/react-icons/lib/fa/list-ol.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaListOl extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/list-ul.d.ts b/types/react-icons/lib/fa/list-ul.d.ts new file mode 100644 index 0000000000..be0d49470c --- /dev/null +++ b/types/react-icons/lib/fa/list-ul.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaListUl extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/list.d.ts b/types/react-icons/lib/fa/list.d.ts new file mode 100644 index 0000000000..9b98e5d332 --- /dev/null +++ b/types/react-icons/lib/fa/list.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaList extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/location-arrow.d.ts b/types/react-icons/lib/fa/location-arrow.d.ts new file mode 100644 index 0000000000..67e69c5917 --- /dev/null +++ b/types/react-icons/lib/fa/location-arrow.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLocationArrow extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/lock.d.ts b/types/react-icons/lib/fa/lock.d.ts new file mode 100644 index 0000000000..751ba49fd6 --- /dev/null +++ b/types/react-icons/lib/fa/lock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/long-arrow-down.d.ts b/types/react-icons/lib/fa/long-arrow-down.d.ts new file mode 100644 index 0000000000..81282ef698 --- /dev/null +++ b/types/react-icons/lib/fa/long-arrow-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLongArrowDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/long-arrow-left.d.ts b/types/react-icons/lib/fa/long-arrow-left.d.ts new file mode 100644 index 0000000000..673d2e6a36 --- /dev/null +++ b/types/react-icons/lib/fa/long-arrow-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLongArrowLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/long-arrow-right.d.ts b/types/react-icons/lib/fa/long-arrow-right.d.ts new file mode 100644 index 0000000000..1fafea7de3 --- /dev/null +++ b/types/react-icons/lib/fa/long-arrow-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLongArrowRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/long-arrow-up.d.ts b/types/react-icons/lib/fa/long-arrow-up.d.ts new file mode 100644 index 0000000000..6982118eef --- /dev/null +++ b/types/react-icons/lib/fa/long-arrow-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLongArrowUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/low-vision.d.ts b/types/react-icons/lib/fa/low-vision.d.ts new file mode 100644 index 0000000000..60f19827fa --- /dev/null +++ b/types/react-icons/lib/fa/low-vision.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaLowVision extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/magic.d.ts b/types/react-icons/lib/fa/magic.d.ts new file mode 100644 index 0000000000..7dca91beb2 --- /dev/null +++ b/types/react-icons/lib/fa/magic.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMagic extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/magnet.d.ts b/types/react-icons/lib/fa/magnet.d.ts new file mode 100644 index 0000000000..11cc56ef42 --- /dev/null +++ b/types/react-icons/lib/fa/magnet.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMagnet extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/mail-forward.d.ts b/types/react-icons/lib/fa/mail-forward.d.ts new file mode 100644 index 0000000000..84585713b8 --- /dev/null +++ b/types/react-icons/lib/fa/mail-forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMailForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/mail-reply-all.d.ts b/types/react-icons/lib/fa/mail-reply-all.d.ts new file mode 100644 index 0000000000..7c8c4ed7eb --- /dev/null +++ b/types/react-icons/lib/fa/mail-reply-all.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMailReplyAll extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/mail-reply.d.ts b/types/react-icons/lib/fa/mail-reply.d.ts new file mode 100644 index 0000000000..571aa76b4f --- /dev/null +++ b/types/react-icons/lib/fa/mail-reply.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMailReply extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/male.d.ts b/types/react-icons/lib/fa/male.d.ts new file mode 100644 index 0000000000..9bb9f216af --- /dev/null +++ b/types/react-icons/lib/fa/male.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMale extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/map-marker.d.ts b/types/react-icons/lib/fa/map-marker.d.ts new file mode 100644 index 0000000000..116680b4b7 --- /dev/null +++ b/types/react-icons/lib/fa/map-marker.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMapMarker extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/map-o.d.ts b/types/react-icons/lib/fa/map-o.d.ts new file mode 100644 index 0000000000..366c05d45b --- /dev/null +++ b/types/react-icons/lib/fa/map-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMapO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/map-pin.d.ts b/types/react-icons/lib/fa/map-pin.d.ts new file mode 100644 index 0000000000..e46a8ca0e3 --- /dev/null +++ b/types/react-icons/lib/fa/map-pin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMapPin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/map-signs.d.ts b/types/react-icons/lib/fa/map-signs.d.ts new file mode 100644 index 0000000000..4c4a9c2f69 --- /dev/null +++ b/types/react-icons/lib/fa/map-signs.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMapSigns extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/map.d.ts b/types/react-icons/lib/fa/map.d.ts new file mode 100644 index 0000000000..52c55baf7f --- /dev/null +++ b/types/react-icons/lib/fa/map.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMap extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/mars-double.d.ts b/types/react-icons/lib/fa/mars-double.d.ts new file mode 100644 index 0000000000..c6f7f4aa5d --- /dev/null +++ b/types/react-icons/lib/fa/mars-double.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMarsDouble extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/mars-stroke-h.d.ts b/types/react-icons/lib/fa/mars-stroke-h.d.ts new file mode 100644 index 0000000000..e6d9f035d0 --- /dev/null +++ b/types/react-icons/lib/fa/mars-stroke-h.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMarsStrokeH extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/mars-stroke-v.d.ts b/types/react-icons/lib/fa/mars-stroke-v.d.ts new file mode 100644 index 0000000000..cc1a01a592 --- /dev/null +++ b/types/react-icons/lib/fa/mars-stroke-v.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMarsStrokeV extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/mars-stroke.d.ts b/types/react-icons/lib/fa/mars-stroke.d.ts new file mode 100644 index 0000000000..69e9aec8b5 --- /dev/null +++ b/types/react-icons/lib/fa/mars-stroke.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMarsStroke extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/mars.d.ts b/types/react-icons/lib/fa/mars.d.ts new file mode 100644 index 0000000000..7e21f481b4 --- /dev/null +++ b/types/react-icons/lib/fa/mars.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMars extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/maxcdn.d.ts b/types/react-icons/lib/fa/maxcdn.d.ts new file mode 100644 index 0000000000..ee9c0b0546 --- /dev/null +++ b/types/react-icons/lib/fa/maxcdn.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMaxcdn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/meanpath.d.ts b/types/react-icons/lib/fa/meanpath.d.ts new file mode 100644 index 0000000000..f479c77a85 --- /dev/null +++ b/types/react-icons/lib/fa/meanpath.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMeanpath extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/medium.d.ts b/types/react-icons/lib/fa/medium.d.ts new file mode 100644 index 0000000000..a272177d20 --- /dev/null +++ b/types/react-icons/lib/fa/medium.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMedium extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/medkit.d.ts b/types/react-icons/lib/fa/medkit.d.ts new file mode 100644 index 0000000000..4de9fc61f9 --- /dev/null +++ b/types/react-icons/lib/fa/medkit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMedkit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/meh-o.d.ts b/types/react-icons/lib/fa/meh-o.d.ts new file mode 100644 index 0000000000..2a07cde429 --- /dev/null +++ b/types/react-icons/lib/fa/meh-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMehO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/mercury.d.ts b/types/react-icons/lib/fa/mercury.d.ts new file mode 100644 index 0000000000..616714b2fb --- /dev/null +++ b/types/react-icons/lib/fa/mercury.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMercury extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/microphone-slash.d.ts b/types/react-icons/lib/fa/microphone-slash.d.ts new file mode 100644 index 0000000000..39ddcefe4b --- /dev/null +++ b/types/react-icons/lib/fa/microphone-slash.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMicrophoneSlash extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/microphone.d.ts b/types/react-icons/lib/fa/microphone.d.ts new file mode 100644 index 0000000000..b12fcd389c --- /dev/null +++ b/types/react-icons/lib/fa/microphone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMicrophone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/minus-circle.d.ts b/types/react-icons/lib/fa/minus-circle.d.ts new file mode 100644 index 0000000000..839cee0dbe --- /dev/null +++ b/types/react-icons/lib/fa/minus-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMinusCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/minus-square-o.d.ts b/types/react-icons/lib/fa/minus-square-o.d.ts new file mode 100644 index 0000000000..d2bfd3dbba --- /dev/null +++ b/types/react-icons/lib/fa/minus-square-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMinusSquareO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/minus-square.d.ts b/types/react-icons/lib/fa/minus-square.d.ts new file mode 100644 index 0000000000..8946d33f30 --- /dev/null +++ b/types/react-icons/lib/fa/minus-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMinusSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/minus.d.ts b/types/react-icons/lib/fa/minus.d.ts new file mode 100644 index 0000000000..e7ae38ca8e --- /dev/null +++ b/types/react-icons/lib/fa/minus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMinus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/mixcloud.d.ts b/types/react-icons/lib/fa/mixcloud.d.ts new file mode 100644 index 0000000000..51b4f23bf2 --- /dev/null +++ b/types/react-icons/lib/fa/mixcloud.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMixcloud extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/mobile.d.ts b/types/react-icons/lib/fa/mobile.d.ts new file mode 100644 index 0000000000..e15d976418 --- /dev/null +++ b/types/react-icons/lib/fa/mobile.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMobile extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/modx.d.ts b/types/react-icons/lib/fa/modx.d.ts new file mode 100644 index 0000000000..c08b2d39fa --- /dev/null +++ b/types/react-icons/lib/fa/modx.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaModx extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/money.d.ts b/types/react-icons/lib/fa/money.d.ts new file mode 100644 index 0000000000..4e14ce5956 --- /dev/null +++ b/types/react-icons/lib/fa/money.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMoney extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/moon-o.d.ts b/types/react-icons/lib/fa/moon-o.d.ts new file mode 100644 index 0000000000..c1c2371ed0 --- /dev/null +++ b/types/react-icons/lib/fa/moon-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMoonO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/motorcycle.d.ts b/types/react-icons/lib/fa/motorcycle.d.ts new file mode 100644 index 0000000000..2fd0d87361 --- /dev/null +++ b/types/react-icons/lib/fa/motorcycle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMotorcycle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/mouse-pointer.d.ts b/types/react-icons/lib/fa/mouse-pointer.d.ts new file mode 100644 index 0000000000..8c220aa32b --- /dev/null +++ b/types/react-icons/lib/fa/mouse-pointer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMousePointer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/music.d.ts b/types/react-icons/lib/fa/music.d.ts new file mode 100644 index 0000000000..711455b587 --- /dev/null +++ b/types/react-icons/lib/fa/music.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaMusic extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/neuter.d.ts b/types/react-icons/lib/fa/neuter.d.ts new file mode 100644 index 0000000000..a5ce0a9c93 --- /dev/null +++ b/types/react-icons/lib/fa/neuter.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaNeuter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/newspaper-o.d.ts b/types/react-icons/lib/fa/newspaper-o.d.ts new file mode 100644 index 0000000000..6f7f62737e --- /dev/null +++ b/types/react-icons/lib/fa/newspaper-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaNewspaperO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/object-group.d.ts b/types/react-icons/lib/fa/object-group.d.ts new file mode 100644 index 0000000000..5454030a44 --- /dev/null +++ b/types/react-icons/lib/fa/object-group.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaObjectGroup extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/object-ungroup.d.ts b/types/react-icons/lib/fa/object-ungroup.d.ts new file mode 100644 index 0000000000..705abb0623 --- /dev/null +++ b/types/react-icons/lib/fa/object-ungroup.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaObjectUngroup extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/odnoklassniki-square.d.ts b/types/react-icons/lib/fa/odnoklassniki-square.d.ts new file mode 100644 index 0000000000..d6d1c3fb5e --- /dev/null +++ b/types/react-icons/lib/fa/odnoklassniki-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaOdnoklassnikiSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/odnoklassniki.d.ts b/types/react-icons/lib/fa/odnoklassniki.d.ts new file mode 100644 index 0000000000..c9cdfc3f99 --- /dev/null +++ b/types/react-icons/lib/fa/odnoklassniki.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaOdnoklassniki extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/opencart.d.ts b/types/react-icons/lib/fa/opencart.d.ts new file mode 100644 index 0000000000..dde7963cd7 --- /dev/null +++ b/types/react-icons/lib/fa/opencart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaOpencart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/openid.d.ts b/types/react-icons/lib/fa/openid.d.ts new file mode 100644 index 0000000000..763d13e24d --- /dev/null +++ b/types/react-icons/lib/fa/openid.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaOpenid extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/opera.d.ts b/types/react-icons/lib/fa/opera.d.ts new file mode 100644 index 0000000000..c66bee6dca --- /dev/null +++ b/types/react-icons/lib/fa/opera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaOpera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/optin-monster.d.ts b/types/react-icons/lib/fa/optin-monster.d.ts new file mode 100644 index 0000000000..3a4973ca67 --- /dev/null +++ b/types/react-icons/lib/fa/optin-monster.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaOptinMonster extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/pagelines.d.ts b/types/react-icons/lib/fa/pagelines.d.ts new file mode 100644 index 0000000000..b9db5fd4ab --- /dev/null +++ b/types/react-icons/lib/fa/pagelines.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPagelines extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/paint-brush.d.ts b/types/react-icons/lib/fa/paint-brush.d.ts new file mode 100644 index 0000000000..4d56d06006 --- /dev/null +++ b/types/react-icons/lib/fa/paint-brush.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPaintBrush extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/paper-plane-o.d.ts b/types/react-icons/lib/fa/paper-plane-o.d.ts new file mode 100644 index 0000000000..5fa53c13f7 --- /dev/null +++ b/types/react-icons/lib/fa/paper-plane-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPaperPlaneO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/paper-plane.d.ts b/types/react-icons/lib/fa/paper-plane.d.ts new file mode 100644 index 0000000000..18d0a9fada --- /dev/null +++ b/types/react-icons/lib/fa/paper-plane.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPaperPlane extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/paperclip.d.ts b/types/react-icons/lib/fa/paperclip.d.ts new file mode 100644 index 0000000000..e037d9d2a9 --- /dev/null +++ b/types/react-icons/lib/fa/paperclip.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPaperclip extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/paragraph.d.ts b/types/react-icons/lib/fa/paragraph.d.ts new file mode 100644 index 0000000000..2895b28ecb --- /dev/null +++ b/types/react-icons/lib/fa/paragraph.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaParagraph extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/pause-circle-o.d.ts b/types/react-icons/lib/fa/pause-circle-o.d.ts new file mode 100644 index 0000000000..4b02099cf7 --- /dev/null +++ b/types/react-icons/lib/fa/pause-circle-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPauseCircleO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/pause-circle.d.ts b/types/react-icons/lib/fa/pause-circle.d.ts new file mode 100644 index 0000000000..96fcbf12d2 --- /dev/null +++ b/types/react-icons/lib/fa/pause-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPauseCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/pause.d.ts b/types/react-icons/lib/fa/pause.d.ts new file mode 100644 index 0000000000..87af546f21 --- /dev/null +++ b/types/react-icons/lib/fa/pause.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPause extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/paw.d.ts b/types/react-icons/lib/fa/paw.d.ts new file mode 100644 index 0000000000..6f88ab466f --- /dev/null +++ b/types/react-icons/lib/fa/paw.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPaw extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/paypal.d.ts b/types/react-icons/lib/fa/paypal.d.ts new file mode 100644 index 0000000000..d2878fe144 --- /dev/null +++ b/types/react-icons/lib/fa/paypal.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPaypal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/pencil-square.d.ts b/types/react-icons/lib/fa/pencil-square.d.ts new file mode 100644 index 0000000000..ae8d368315 --- /dev/null +++ b/types/react-icons/lib/fa/pencil-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPencilSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/pencil.d.ts b/types/react-icons/lib/fa/pencil.d.ts new file mode 100644 index 0000000000..bae947d1d9 --- /dev/null +++ b/types/react-icons/lib/fa/pencil.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPencil extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/percent.d.ts b/types/react-icons/lib/fa/percent.d.ts new file mode 100644 index 0000000000..447838a4d4 --- /dev/null +++ b/types/react-icons/lib/fa/percent.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPercent extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/phone-square.d.ts b/types/react-icons/lib/fa/phone-square.d.ts new file mode 100644 index 0000000000..8595e9338b --- /dev/null +++ b/types/react-icons/lib/fa/phone-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPhoneSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/phone.d.ts b/types/react-icons/lib/fa/phone.d.ts new file mode 100644 index 0000000000..985d9a8867 --- /dev/null +++ b/types/react-icons/lib/fa/phone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPhone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/pie-chart.d.ts b/types/react-icons/lib/fa/pie-chart.d.ts new file mode 100644 index 0000000000..b5bd5b2c5c --- /dev/null +++ b/types/react-icons/lib/fa/pie-chart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPieChart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/pied-piper-alt.d.ts b/types/react-icons/lib/fa/pied-piper-alt.d.ts new file mode 100644 index 0000000000..8a23255cad --- /dev/null +++ b/types/react-icons/lib/fa/pied-piper-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPiedPiperAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/pied-piper.d.ts b/types/react-icons/lib/fa/pied-piper.d.ts new file mode 100644 index 0000000000..e925634cd2 --- /dev/null +++ b/types/react-icons/lib/fa/pied-piper.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPiedPiper extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/pinterest-p.d.ts b/types/react-icons/lib/fa/pinterest-p.d.ts new file mode 100644 index 0000000000..c53adc8749 --- /dev/null +++ b/types/react-icons/lib/fa/pinterest-p.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPinterestP extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/pinterest-square.d.ts b/types/react-icons/lib/fa/pinterest-square.d.ts new file mode 100644 index 0000000000..a90c930b91 --- /dev/null +++ b/types/react-icons/lib/fa/pinterest-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPinterestSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/pinterest.d.ts b/types/react-icons/lib/fa/pinterest.d.ts new file mode 100644 index 0000000000..c380cf2092 --- /dev/null +++ b/types/react-icons/lib/fa/pinterest.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPinterest extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/plane.d.ts b/types/react-icons/lib/fa/plane.d.ts new file mode 100644 index 0000000000..13373d06d7 --- /dev/null +++ b/types/react-icons/lib/fa/plane.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPlane extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/play-circle-o.d.ts b/types/react-icons/lib/fa/play-circle-o.d.ts new file mode 100644 index 0000000000..7fa9627c4c --- /dev/null +++ b/types/react-icons/lib/fa/play-circle-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPlayCircleO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/play-circle.d.ts b/types/react-icons/lib/fa/play-circle.d.ts new file mode 100644 index 0000000000..ea4f568b34 --- /dev/null +++ b/types/react-icons/lib/fa/play-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPlayCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/play.d.ts b/types/react-icons/lib/fa/play.d.ts new file mode 100644 index 0000000000..f6c6dafb12 --- /dev/null +++ b/types/react-icons/lib/fa/play.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPlay extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/plug.d.ts b/types/react-icons/lib/fa/plug.d.ts new file mode 100644 index 0000000000..e88fc8c2ae --- /dev/null +++ b/types/react-icons/lib/fa/plug.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPlug extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/plus-circle.d.ts b/types/react-icons/lib/fa/plus-circle.d.ts new file mode 100644 index 0000000000..9bf8af4e8d --- /dev/null +++ b/types/react-icons/lib/fa/plus-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPlusCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/plus-square-o.d.ts b/types/react-icons/lib/fa/plus-square-o.d.ts new file mode 100644 index 0000000000..e9b582ec2d --- /dev/null +++ b/types/react-icons/lib/fa/plus-square-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPlusSquareO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/plus-square.d.ts b/types/react-icons/lib/fa/plus-square.d.ts new file mode 100644 index 0000000000..b69d337311 --- /dev/null +++ b/types/react-icons/lib/fa/plus-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPlusSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/plus.d.ts b/types/react-icons/lib/fa/plus.d.ts new file mode 100644 index 0000000000..f6649123fb --- /dev/null +++ b/types/react-icons/lib/fa/plus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPlus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/power-off.d.ts b/types/react-icons/lib/fa/power-off.d.ts new file mode 100644 index 0000000000..538e8c9886 --- /dev/null +++ b/types/react-icons/lib/fa/power-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPowerOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/print.d.ts b/types/react-icons/lib/fa/print.d.ts new file mode 100644 index 0000000000..5e49c43315 --- /dev/null +++ b/types/react-icons/lib/fa/print.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPrint extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/product-hunt.d.ts b/types/react-icons/lib/fa/product-hunt.d.ts new file mode 100644 index 0000000000..2d790f199c --- /dev/null +++ b/types/react-icons/lib/fa/product-hunt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaProductHunt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/puzzle-piece.d.ts b/types/react-icons/lib/fa/puzzle-piece.d.ts new file mode 100644 index 0000000000..f25059cc09 --- /dev/null +++ b/types/react-icons/lib/fa/puzzle-piece.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaPuzzlePiece extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/qq.d.ts b/types/react-icons/lib/fa/qq.d.ts new file mode 100644 index 0000000000..ff62c8cf78 --- /dev/null +++ b/types/react-icons/lib/fa/qq.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaQq extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/qrcode.d.ts b/types/react-icons/lib/fa/qrcode.d.ts new file mode 100644 index 0000000000..23c52561db --- /dev/null +++ b/types/react-icons/lib/fa/qrcode.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaQrcode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/question-circle-o.d.ts b/types/react-icons/lib/fa/question-circle-o.d.ts new file mode 100644 index 0000000000..e3176c764b --- /dev/null +++ b/types/react-icons/lib/fa/question-circle-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaQuestionCircleO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/question-circle.d.ts b/types/react-icons/lib/fa/question-circle.d.ts new file mode 100644 index 0000000000..a3474eab77 --- /dev/null +++ b/types/react-icons/lib/fa/question-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaQuestionCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/question.d.ts b/types/react-icons/lib/fa/question.d.ts new file mode 100644 index 0000000000..c825b26b4f --- /dev/null +++ b/types/react-icons/lib/fa/question.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaQuestion extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/quote-left.d.ts b/types/react-icons/lib/fa/quote-left.d.ts new file mode 100644 index 0000000000..904a81703f --- /dev/null +++ b/types/react-icons/lib/fa/quote-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaQuoteLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/quote-right.d.ts b/types/react-icons/lib/fa/quote-right.d.ts new file mode 100644 index 0000000000..3a4e38743d --- /dev/null +++ b/types/react-icons/lib/fa/quote-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaQuoteRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/ra.d.ts b/types/react-icons/lib/fa/ra.d.ts new file mode 100644 index 0000000000..da2bd43b87 --- /dev/null +++ b/types/react-icons/lib/fa/ra.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRa extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/random.d.ts b/types/react-icons/lib/fa/random.d.ts new file mode 100644 index 0000000000..02c7c7465e --- /dev/null +++ b/types/react-icons/lib/fa/random.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRandom extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/recycle.d.ts b/types/react-icons/lib/fa/recycle.d.ts new file mode 100644 index 0000000000..3f2c35bb45 --- /dev/null +++ b/types/react-icons/lib/fa/recycle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRecycle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/reddit-alien.d.ts b/types/react-icons/lib/fa/reddit-alien.d.ts new file mode 100644 index 0000000000..0c6152a524 --- /dev/null +++ b/types/react-icons/lib/fa/reddit-alien.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRedditAlien extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/reddit-square.d.ts b/types/react-icons/lib/fa/reddit-square.d.ts new file mode 100644 index 0000000000..2fe217fd2f --- /dev/null +++ b/types/react-icons/lib/fa/reddit-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRedditSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/reddit.d.ts b/types/react-icons/lib/fa/reddit.d.ts new file mode 100644 index 0000000000..485e46b5b0 --- /dev/null +++ b/types/react-icons/lib/fa/reddit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaReddit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/refresh.d.ts b/types/react-icons/lib/fa/refresh.d.ts new file mode 100644 index 0000000000..ebf74b1515 --- /dev/null +++ b/types/react-icons/lib/fa/refresh.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRefresh extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/registered.d.ts b/types/react-icons/lib/fa/registered.d.ts new file mode 100644 index 0000000000..801dc66200 --- /dev/null +++ b/types/react-icons/lib/fa/registered.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRegistered extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/renren.d.ts b/types/react-icons/lib/fa/renren.d.ts new file mode 100644 index 0000000000..25055289d9 --- /dev/null +++ b/types/react-icons/lib/fa/renren.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRenren extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/repeat.d.ts b/types/react-icons/lib/fa/repeat.d.ts new file mode 100644 index 0000000000..c3f51ad288 --- /dev/null +++ b/types/react-icons/lib/fa/repeat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRepeat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/retweet.d.ts b/types/react-icons/lib/fa/retweet.d.ts new file mode 100644 index 0000000000..f18d4bda7b --- /dev/null +++ b/types/react-icons/lib/fa/retweet.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRetweet extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/road.d.ts b/types/react-icons/lib/fa/road.d.ts new file mode 100644 index 0000000000..0715ec2e7e --- /dev/null +++ b/types/react-icons/lib/fa/road.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRoad extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/rocket.d.ts b/types/react-icons/lib/fa/rocket.d.ts new file mode 100644 index 0000000000..2f1c2dc834 --- /dev/null +++ b/types/react-icons/lib/fa/rocket.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRocket extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/rotate-left.d.ts b/types/react-icons/lib/fa/rotate-left.d.ts new file mode 100644 index 0000000000..2a93784c4e --- /dev/null +++ b/types/react-icons/lib/fa/rotate-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRotateLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/rouble.d.ts b/types/react-icons/lib/fa/rouble.d.ts new file mode 100644 index 0000000000..9e61df412e --- /dev/null +++ b/types/react-icons/lib/fa/rouble.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRouble extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/rss-square.d.ts b/types/react-icons/lib/fa/rss-square.d.ts new file mode 100644 index 0000000000..c840ec5513 --- /dev/null +++ b/types/react-icons/lib/fa/rss-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaRssSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/safari.d.ts b/types/react-icons/lib/fa/safari.d.ts new file mode 100644 index 0000000000..6bb95a70f0 --- /dev/null +++ b/types/react-icons/lib/fa/safari.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSafari extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/scribd.d.ts b/types/react-icons/lib/fa/scribd.d.ts new file mode 100644 index 0000000000..39fc8c40a6 --- /dev/null +++ b/types/react-icons/lib/fa/scribd.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaScribd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/search-minus.d.ts b/types/react-icons/lib/fa/search-minus.d.ts new file mode 100644 index 0000000000..b0045c94f4 --- /dev/null +++ b/types/react-icons/lib/fa/search-minus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSearchMinus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/search-plus.d.ts b/types/react-icons/lib/fa/search-plus.d.ts new file mode 100644 index 0000000000..3aaacffaea --- /dev/null +++ b/types/react-icons/lib/fa/search-plus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSearchPlus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/search.d.ts b/types/react-icons/lib/fa/search.d.ts new file mode 100644 index 0000000000..14c1b8eb87 --- /dev/null +++ b/types/react-icons/lib/fa/search.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSearch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sellsy.d.ts b/types/react-icons/lib/fa/sellsy.d.ts new file mode 100644 index 0000000000..9eb86d3b41 --- /dev/null +++ b/types/react-icons/lib/fa/sellsy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSellsy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/server.d.ts b/types/react-icons/lib/fa/server.d.ts new file mode 100644 index 0000000000..f34b2bef92 --- /dev/null +++ b/types/react-icons/lib/fa/server.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaServer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/share-alt-square.d.ts b/types/react-icons/lib/fa/share-alt-square.d.ts new file mode 100644 index 0000000000..31dc918f6c --- /dev/null +++ b/types/react-icons/lib/fa/share-alt-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaShareAltSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/share-alt.d.ts b/types/react-icons/lib/fa/share-alt.d.ts new file mode 100644 index 0000000000..e95e1b249e --- /dev/null +++ b/types/react-icons/lib/fa/share-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaShareAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/share-square-o.d.ts b/types/react-icons/lib/fa/share-square-o.d.ts new file mode 100644 index 0000000000..fbe2893547 --- /dev/null +++ b/types/react-icons/lib/fa/share-square-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaShareSquareO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/share-square.d.ts b/types/react-icons/lib/fa/share-square.d.ts new file mode 100644 index 0000000000..553b8b7d88 --- /dev/null +++ b/types/react-icons/lib/fa/share-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaShareSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/shield.d.ts b/types/react-icons/lib/fa/shield.d.ts new file mode 100644 index 0000000000..0358946bb0 --- /dev/null +++ b/types/react-icons/lib/fa/shield.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaShield extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/ship.d.ts b/types/react-icons/lib/fa/ship.d.ts new file mode 100644 index 0000000000..bbac7fa963 --- /dev/null +++ b/types/react-icons/lib/fa/ship.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaShip extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/shirtsinbulk.d.ts b/types/react-icons/lib/fa/shirtsinbulk.d.ts new file mode 100644 index 0000000000..1cdac4b3b2 --- /dev/null +++ b/types/react-icons/lib/fa/shirtsinbulk.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaShirtsinbulk extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/shopping-bag.d.ts b/types/react-icons/lib/fa/shopping-bag.d.ts new file mode 100644 index 0000000000..0e9ec2fd0d --- /dev/null +++ b/types/react-icons/lib/fa/shopping-bag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaShoppingBag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/shopping-basket.d.ts b/types/react-icons/lib/fa/shopping-basket.d.ts new file mode 100644 index 0000000000..05b7d1417d --- /dev/null +++ b/types/react-icons/lib/fa/shopping-basket.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaShoppingBasket extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/shopping-cart.d.ts b/types/react-icons/lib/fa/shopping-cart.d.ts new file mode 100644 index 0000000000..17d623f44d --- /dev/null +++ b/types/react-icons/lib/fa/shopping-cart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaShoppingCart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sign-in.d.ts b/types/react-icons/lib/fa/sign-in.d.ts new file mode 100644 index 0000000000..6122e57cab --- /dev/null +++ b/types/react-icons/lib/fa/sign-in.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSignIn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sign-language.d.ts b/types/react-icons/lib/fa/sign-language.d.ts new file mode 100644 index 0000000000..92f5afb348 --- /dev/null +++ b/types/react-icons/lib/fa/sign-language.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSignLanguage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sign-out.d.ts b/types/react-icons/lib/fa/sign-out.d.ts new file mode 100644 index 0000000000..0432e2a806 --- /dev/null +++ b/types/react-icons/lib/fa/sign-out.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSignOut extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/signal.d.ts b/types/react-icons/lib/fa/signal.d.ts new file mode 100644 index 0000000000..ff8c9215db --- /dev/null +++ b/types/react-icons/lib/fa/signal.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSignal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/simplybuilt.d.ts b/types/react-icons/lib/fa/simplybuilt.d.ts new file mode 100644 index 0000000000..2f6a53cab7 --- /dev/null +++ b/types/react-icons/lib/fa/simplybuilt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSimplybuilt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sitemap.d.ts b/types/react-icons/lib/fa/sitemap.d.ts new file mode 100644 index 0000000000..e6a3891028 --- /dev/null +++ b/types/react-icons/lib/fa/sitemap.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSitemap extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/skyatlas.d.ts b/types/react-icons/lib/fa/skyatlas.d.ts new file mode 100644 index 0000000000..58a376bec4 --- /dev/null +++ b/types/react-icons/lib/fa/skyatlas.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSkyatlas extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/skype.d.ts b/types/react-icons/lib/fa/skype.d.ts new file mode 100644 index 0000000000..3e4b8465ce --- /dev/null +++ b/types/react-icons/lib/fa/skype.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSkype extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/slack.d.ts b/types/react-icons/lib/fa/slack.d.ts new file mode 100644 index 0000000000..05ae812154 --- /dev/null +++ b/types/react-icons/lib/fa/slack.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSlack extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sliders.d.ts b/types/react-icons/lib/fa/sliders.d.ts new file mode 100644 index 0000000000..5b77a2c246 --- /dev/null +++ b/types/react-icons/lib/fa/sliders.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSliders extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/slideshare.d.ts b/types/react-icons/lib/fa/slideshare.d.ts new file mode 100644 index 0000000000..678418e560 --- /dev/null +++ b/types/react-icons/lib/fa/slideshare.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSlideshare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/smile-o.d.ts b/types/react-icons/lib/fa/smile-o.d.ts new file mode 100644 index 0000000000..8db866e669 --- /dev/null +++ b/types/react-icons/lib/fa/smile-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSmileO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/snapchat-ghost.d.ts b/types/react-icons/lib/fa/snapchat-ghost.d.ts new file mode 100644 index 0000000000..83ca65e891 --- /dev/null +++ b/types/react-icons/lib/fa/snapchat-ghost.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSnapchatGhost extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/snapchat-square.d.ts b/types/react-icons/lib/fa/snapchat-square.d.ts new file mode 100644 index 0000000000..7c1ac2dbc4 --- /dev/null +++ b/types/react-icons/lib/fa/snapchat-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSnapchatSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/snapchat.d.ts b/types/react-icons/lib/fa/snapchat.d.ts new file mode 100644 index 0000000000..bbc8bb62e3 --- /dev/null +++ b/types/react-icons/lib/fa/snapchat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSnapchat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sort-alpha-asc.d.ts b/types/react-icons/lib/fa/sort-alpha-asc.d.ts new file mode 100644 index 0000000000..6b44132473 --- /dev/null +++ b/types/react-icons/lib/fa/sort-alpha-asc.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSortAlphaAsc extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sort-alpha-desc.d.ts b/types/react-icons/lib/fa/sort-alpha-desc.d.ts new file mode 100644 index 0000000000..2830f1986e --- /dev/null +++ b/types/react-icons/lib/fa/sort-alpha-desc.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSortAlphaDesc extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sort-amount-asc.d.ts b/types/react-icons/lib/fa/sort-amount-asc.d.ts new file mode 100644 index 0000000000..05da03032c --- /dev/null +++ b/types/react-icons/lib/fa/sort-amount-asc.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSortAmountAsc extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sort-amount-desc.d.ts b/types/react-icons/lib/fa/sort-amount-desc.d.ts new file mode 100644 index 0000000000..c7e7242565 --- /dev/null +++ b/types/react-icons/lib/fa/sort-amount-desc.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSortAmountDesc extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sort-asc.d.ts b/types/react-icons/lib/fa/sort-asc.d.ts new file mode 100644 index 0000000000..ce2c9fe0a2 --- /dev/null +++ b/types/react-icons/lib/fa/sort-asc.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSortAsc extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sort-desc.d.ts b/types/react-icons/lib/fa/sort-desc.d.ts new file mode 100644 index 0000000000..0b4842a8f9 --- /dev/null +++ b/types/react-icons/lib/fa/sort-desc.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSortDesc extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sort-numeric-asc.d.ts b/types/react-icons/lib/fa/sort-numeric-asc.d.ts new file mode 100644 index 0000000000..b7fa62fe1c --- /dev/null +++ b/types/react-icons/lib/fa/sort-numeric-asc.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSortNumericAsc extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sort-numeric-desc.d.ts b/types/react-icons/lib/fa/sort-numeric-desc.d.ts new file mode 100644 index 0000000000..2c124abd75 --- /dev/null +++ b/types/react-icons/lib/fa/sort-numeric-desc.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSortNumericDesc extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sort.d.ts b/types/react-icons/lib/fa/sort.d.ts new file mode 100644 index 0000000000..ad64fd0c52 --- /dev/null +++ b/types/react-icons/lib/fa/sort.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSort extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/soundcloud.d.ts b/types/react-icons/lib/fa/soundcloud.d.ts new file mode 100644 index 0000000000..c357e174b0 --- /dev/null +++ b/types/react-icons/lib/fa/soundcloud.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSoundcloud extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/space-shuttle.d.ts b/types/react-icons/lib/fa/space-shuttle.d.ts new file mode 100644 index 0000000000..0ce2f24916 --- /dev/null +++ b/types/react-icons/lib/fa/space-shuttle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSpaceShuttle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/spinner.d.ts b/types/react-icons/lib/fa/spinner.d.ts new file mode 100644 index 0000000000..36e2dd9285 --- /dev/null +++ b/types/react-icons/lib/fa/spinner.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSpinner extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/spoon.d.ts b/types/react-icons/lib/fa/spoon.d.ts new file mode 100644 index 0000000000..1112916912 --- /dev/null +++ b/types/react-icons/lib/fa/spoon.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSpoon extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/spotify.d.ts b/types/react-icons/lib/fa/spotify.d.ts new file mode 100644 index 0000000000..94c862a866 --- /dev/null +++ b/types/react-icons/lib/fa/spotify.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSpotify extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/square-o.d.ts b/types/react-icons/lib/fa/square-o.d.ts new file mode 100644 index 0000000000..0d49bd6c23 --- /dev/null +++ b/types/react-icons/lib/fa/square-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSquareO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/square.d.ts b/types/react-icons/lib/fa/square.d.ts new file mode 100644 index 0000000000..d95485831d --- /dev/null +++ b/types/react-icons/lib/fa/square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/stack-exchange.d.ts b/types/react-icons/lib/fa/stack-exchange.d.ts new file mode 100644 index 0000000000..a1f2d0e265 --- /dev/null +++ b/types/react-icons/lib/fa/stack-exchange.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStackExchange extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/stack-overflow.d.ts b/types/react-icons/lib/fa/stack-overflow.d.ts new file mode 100644 index 0000000000..fd71beea7f --- /dev/null +++ b/types/react-icons/lib/fa/stack-overflow.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStackOverflow extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/star-half-empty.d.ts b/types/react-icons/lib/fa/star-half-empty.d.ts new file mode 100644 index 0000000000..6e4b26ad53 --- /dev/null +++ b/types/react-icons/lib/fa/star-half-empty.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStarHalfEmpty extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/star-half.d.ts b/types/react-icons/lib/fa/star-half.d.ts new file mode 100644 index 0000000000..d373ba6a07 --- /dev/null +++ b/types/react-icons/lib/fa/star-half.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStarHalf extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/star-o.d.ts b/types/react-icons/lib/fa/star-o.d.ts new file mode 100644 index 0000000000..cf950d4867 --- /dev/null +++ b/types/react-icons/lib/fa/star-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStarO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/star.d.ts b/types/react-icons/lib/fa/star.d.ts new file mode 100644 index 0000000000..3113155a96 --- /dev/null +++ b/types/react-icons/lib/fa/star.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/steam-square.d.ts b/types/react-icons/lib/fa/steam-square.d.ts new file mode 100644 index 0000000000..3ac2c21b30 --- /dev/null +++ b/types/react-icons/lib/fa/steam-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSteamSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/steam.d.ts b/types/react-icons/lib/fa/steam.d.ts new file mode 100644 index 0000000000..e1aa2f3313 --- /dev/null +++ b/types/react-icons/lib/fa/steam.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSteam extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/step-backward.d.ts b/types/react-icons/lib/fa/step-backward.d.ts new file mode 100644 index 0000000000..fe571ab271 --- /dev/null +++ b/types/react-icons/lib/fa/step-backward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStepBackward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/step-forward.d.ts b/types/react-icons/lib/fa/step-forward.d.ts new file mode 100644 index 0000000000..b8b01f06a8 --- /dev/null +++ b/types/react-icons/lib/fa/step-forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStepForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/stethoscope.d.ts b/types/react-icons/lib/fa/stethoscope.d.ts new file mode 100644 index 0000000000..3f8cdcba2e --- /dev/null +++ b/types/react-icons/lib/fa/stethoscope.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStethoscope extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sticky-note-o.d.ts b/types/react-icons/lib/fa/sticky-note-o.d.ts new file mode 100644 index 0000000000..5d54ced4ec --- /dev/null +++ b/types/react-icons/lib/fa/sticky-note-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStickyNoteO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sticky-note.d.ts b/types/react-icons/lib/fa/sticky-note.d.ts new file mode 100644 index 0000000000..d30fedcdd7 --- /dev/null +++ b/types/react-icons/lib/fa/sticky-note.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStickyNote extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/stop-circle-o.d.ts b/types/react-icons/lib/fa/stop-circle-o.d.ts new file mode 100644 index 0000000000..244ffeb6cc --- /dev/null +++ b/types/react-icons/lib/fa/stop-circle-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStopCircleO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/stop-circle.d.ts b/types/react-icons/lib/fa/stop-circle.d.ts new file mode 100644 index 0000000000..ef7a92d310 --- /dev/null +++ b/types/react-icons/lib/fa/stop-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStopCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/stop.d.ts b/types/react-icons/lib/fa/stop.d.ts new file mode 100644 index 0000000000..fd4356c3df --- /dev/null +++ b/types/react-icons/lib/fa/stop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/street-view.d.ts b/types/react-icons/lib/fa/street-view.d.ts new file mode 100644 index 0000000000..d989035bde --- /dev/null +++ b/types/react-icons/lib/fa/street-view.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStreetView extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/strikethrough.d.ts b/types/react-icons/lib/fa/strikethrough.d.ts new file mode 100644 index 0000000000..f472c0fd77 --- /dev/null +++ b/types/react-icons/lib/fa/strikethrough.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStrikethrough extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/stumbleupon-circle.d.ts b/types/react-icons/lib/fa/stumbleupon-circle.d.ts new file mode 100644 index 0000000000..ecc4d2122e --- /dev/null +++ b/types/react-icons/lib/fa/stumbleupon-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStumbleuponCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/stumbleupon.d.ts b/types/react-icons/lib/fa/stumbleupon.d.ts new file mode 100644 index 0000000000..64185df0f3 --- /dev/null +++ b/types/react-icons/lib/fa/stumbleupon.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaStumbleupon extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/subscript.d.ts b/types/react-icons/lib/fa/subscript.d.ts new file mode 100644 index 0000000000..ac03fe6b89 --- /dev/null +++ b/types/react-icons/lib/fa/subscript.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSubscript extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/subway.d.ts b/types/react-icons/lib/fa/subway.d.ts new file mode 100644 index 0000000000..ce4b09edbf --- /dev/null +++ b/types/react-icons/lib/fa/subway.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSubway extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/suitcase.d.ts b/types/react-icons/lib/fa/suitcase.d.ts new file mode 100644 index 0000000000..0bf3807780 --- /dev/null +++ b/types/react-icons/lib/fa/suitcase.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSuitcase extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/sun-o.d.ts b/types/react-icons/lib/fa/sun-o.d.ts new file mode 100644 index 0000000000..3ac6bfbdd3 --- /dev/null +++ b/types/react-icons/lib/fa/sun-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSunO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/superscript.d.ts b/types/react-icons/lib/fa/superscript.d.ts new file mode 100644 index 0000000000..07a901912e --- /dev/null +++ b/types/react-icons/lib/fa/superscript.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaSuperscript extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/table.d.ts b/types/react-icons/lib/fa/table.d.ts new file mode 100644 index 0000000000..a8ff4e9bf5 --- /dev/null +++ b/types/react-icons/lib/fa/table.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTable extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/tablet.d.ts b/types/react-icons/lib/fa/tablet.d.ts new file mode 100644 index 0000000000..37ea453d17 --- /dev/null +++ b/types/react-icons/lib/fa/tablet.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTablet extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/tag.d.ts b/types/react-icons/lib/fa/tag.d.ts new file mode 100644 index 0000000000..247756142e --- /dev/null +++ b/types/react-icons/lib/fa/tag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/tags.d.ts b/types/react-icons/lib/fa/tags.d.ts new file mode 100644 index 0000000000..3518af839a --- /dev/null +++ b/types/react-icons/lib/fa/tags.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTags extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/tasks.d.ts b/types/react-icons/lib/fa/tasks.d.ts new file mode 100644 index 0000000000..f0b59f374e --- /dev/null +++ b/types/react-icons/lib/fa/tasks.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTasks extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/television.d.ts b/types/react-icons/lib/fa/television.d.ts new file mode 100644 index 0000000000..88b8693a6a --- /dev/null +++ b/types/react-icons/lib/fa/television.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTelevision extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/tencent-weibo.d.ts b/types/react-icons/lib/fa/tencent-weibo.d.ts new file mode 100644 index 0000000000..ce9a04848c --- /dev/null +++ b/types/react-icons/lib/fa/tencent-weibo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTencentWeibo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/terminal.d.ts b/types/react-icons/lib/fa/terminal.d.ts new file mode 100644 index 0000000000..75daa58c87 --- /dev/null +++ b/types/react-icons/lib/fa/terminal.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTerminal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/text-height.d.ts b/types/react-icons/lib/fa/text-height.d.ts new file mode 100644 index 0000000000..69271e359f --- /dev/null +++ b/types/react-icons/lib/fa/text-height.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTextHeight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/text-width.d.ts b/types/react-icons/lib/fa/text-width.d.ts new file mode 100644 index 0000000000..820357df60 --- /dev/null +++ b/types/react-icons/lib/fa/text-width.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTextWidth extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/th-large.d.ts b/types/react-icons/lib/fa/th-large.d.ts new file mode 100644 index 0000000000..f059da9990 --- /dev/null +++ b/types/react-icons/lib/fa/th-large.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaThLarge extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/th-list.d.ts b/types/react-icons/lib/fa/th-list.d.ts new file mode 100644 index 0000000000..09ef167885 --- /dev/null +++ b/types/react-icons/lib/fa/th-list.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaThList extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/th.d.ts b/types/react-icons/lib/fa/th.d.ts new file mode 100644 index 0000000000..9d6674b5d3 --- /dev/null +++ b/types/react-icons/lib/fa/th.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTh extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/thumb-tack.d.ts b/types/react-icons/lib/fa/thumb-tack.d.ts new file mode 100644 index 0000000000..b84e262f77 --- /dev/null +++ b/types/react-icons/lib/fa/thumb-tack.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaThumbTack extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/thumbs-down.d.ts b/types/react-icons/lib/fa/thumbs-down.d.ts new file mode 100644 index 0000000000..c684e7ad5c --- /dev/null +++ b/types/react-icons/lib/fa/thumbs-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaThumbsDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/thumbs-o-down.d.ts b/types/react-icons/lib/fa/thumbs-o-down.d.ts new file mode 100644 index 0000000000..0c9f640d18 --- /dev/null +++ b/types/react-icons/lib/fa/thumbs-o-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaThumbsODown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/thumbs-o-up.d.ts b/types/react-icons/lib/fa/thumbs-o-up.d.ts new file mode 100644 index 0000000000..9d5a487ae1 --- /dev/null +++ b/types/react-icons/lib/fa/thumbs-o-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaThumbsOUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/thumbs-up.d.ts b/types/react-icons/lib/fa/thumbs-up.d.ts new file mode 100644 index 0000000000..84348d3ac2 --- /dev/null +++ b/types/react-icons/lib/fa/thumbs-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaThumbsUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/ticket.d.ts b/types/react-icons/lib/fa/ticket.d.ts new file mode 100644 index 0000000000..275a38e4dd --- /dev/null +++ b/types/react-icons/lib/fa/ticket.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTicket extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/times-circle-o.d.ts b/types/react-icons/lib/fa/times-circle-o.d.ts new file mode 100644 index 0000000000..5a96466de6 --- /dev/null +++ b/types/react-icons/lib/fa/times-circle-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTimesCircleO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/times-circle.d.ts b/types/react-icons/lib/fa/times-circle.d.ts new file mode 100644 index 0000000000..d73596cfb8 --- /dev/null +++ b/types/react-icons/lib/fa/times-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTimesCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/tint.d.ts b/types/react-icons/lib/fa/tint.d.ts new file mode 100644 index 0000000000..b4155f948c --- /dev/null +++ b/types/react-icons/lib/fa/tint.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTint extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/toggle-off.d.ts b/types/react-icons/lib/fa/toggle-off.d.ts new file mode 100644 index 0000000000..e4bd987307 --- /dev/null +++ b/types/react-icons/lib/fa/toggle-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaToggleOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/toggle-on.d.ts b/types/react-icons/lib/fa/toggle-on.d.ts new file mode 100644 index 0000000000..69324fdd13 --- /dev/null +++ b/types/react-icons/lib/fa/toggle-on.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaToggleOn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/trademark.d.ts b/types/react-icons/lib/fa/trademark.d.ts new file mode 100644 index 0000000000..c8ddb8dbf6 --- /dev/null +++ b/types/react-icons/lib/fa/trademark.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTrademark extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/train.d.ts b/types/react-icons/lib/fa/train.d.ts new file mode 100644 index 0000000000..a686d3a677 --- /dev/null +++ b/types/react-icons/lib/fa/train.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTrain extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/transgender-alt.d.ts b/types/react-icons/lib/fa/transgender-alt.d.ts new file mode 100644 index 0000000000..0794285d19 --- /dev/null +++ b/types/react-icons/lib/fa/transgender-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTransgenderAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/trash-o.d.ts b/types/react-icons/lib/fa/trash-o.d.ts new file mode 100644 index 0000000000..c76a07e3f8 --- /dev/null +++ b/types/react-icons/lib/fa/trash-o.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTrashO extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/trash.d.ts b/types/react-icons/lib/fa/trash.d.ts new file mode 100644 index 0000000000..f2f4ce4117 --- /dev/null +++ b/types/react-icons/lib/fa/trash.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTrash extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/tree.d.ts b/types/react-icons/lib/fa/tree.d.ts new file mode 100644 index 0000000000..7b94f9f52e --- /dev/null +++ b/types/react-icons/lib/fa/tree.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTree extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/trello.d.ts b/types/react-icons/lib/fa/trello.d.ts new file mode 100644 index 0000000000..a231c272aa --- /dev/null +++ b/types/react-icons/lib/fa/trello.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTrello extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/tripadvisor.d.ts b/types/react-icons/lib/fa/tripadvisor.d.ts new file mode 100644 index 0000000000..95ad22d7eb --- /dev/null +++ b/types/react-icons/lib/fa/tripadvisor.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTripadvisor extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/trophy.d.ts b/types/react-icons/lib/fa/trophy.d.ts new file mode 100644 index 0000000000..48f48edec1 --- /dev/null +++ b/types/react-icons/lib/fa/trophy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTrophy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/truck.d.ts b/types/react-icons/lib/fa/truck.d.ts new file mode 100644 index 0000000000..00bc370441 --- /dev/null +++ b/types/react-icons/lib/fa/truck.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTruck extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/try.d.ts b/types/react-icons/lib/fa/try.d.ts new file mode 100644 index 0000000000..fa4492d24b --- /dev/null +++ b/types/react-icons/lib/fa/try.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTry extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/tty.d.ts b/types/react-icons/lib/fa/tty.d.ts new file mode 100644 index 0000000000..76ec94f74e --- /dev/null +++ b/types/react-icons/lib/fa/tty.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTty extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/tumblr-square.d.ts b/types/react-icons/lib/fa/tumblr-square.d.ts new file mode 100644 index 0000000000..2bf15bf460 --- /dev/null +++ b/types/react-icons/lib/fa/tumblr-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTumblrSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/tumblr.d.ts b/types/react-icons/lib/fa/tumblr.d.ts new file mode 100644 index 0000000000..c60ae76806 --- /dev/null +++ b/types/react-icons/lib/fa/tumblr.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTumblr extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/twitch.d.ts b/types/react-icons/lib/fa/twitch.d.ts new file mode 100644 index 0000000000..3e46ebac6c --- /dev/null +++ b/types/react-icons/lib/fa/twitch.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTwitch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/twitter-square.d.ts b/types/react-icons/lib/fa/twitter-square.d.ts new file mode 100644 index 0000000000..fb77d182e6 --- /dev/null +++ b/types/react-icons/lib/fa/twitter-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTwitterSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/twitter.d.ts b/types/react-icons/lib/fa/twitter.d.ts new file mode 100644 index 0000000000..e3d5259918 --- /dev/null +++ b/types/react-icons/lib/fa/twitter.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaTwitter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/umbrella.d.ts b/types/react-icons/lib/fa/umbrella.d.ts new file mode 100644 index 0000000000..74fefd9404 --- /dev/null +++ b/types/react-icons/lib/fa/umbrella.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaUmbrella extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/underline.d.ts b/types/react-icons/lib/fa/underline.d.ts new file mode 100644 index 0000000000..af907eba18 --- /dev/null +++ b/types/react-icons/lib/fa/underline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaUnderline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/universal-access.d.ts b/types/react-icons/lib/fa/universal-access.d.ts new file mode 100644 index 0000000000..a02ba6c3be --- /dev/null +++ b/types/react-icons/lib/fa/universal-access.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaUniversalAccess extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/unlock-alt.d.ts b/types/react-icons/lib/fa/unlock-alt.d.ts new file mode 100644 index 0000000000..9d84986727 --- /dev/null +++ b/types/react-icons/lib/fa/unlock-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaUnlockAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/unlock.d.ts b/types/react-icons/lib/fa/unlock.d.ts new file mode 100644 index 0000000000..5b1979f0cd --- /dev/null +++ b/types/react-icons/lib/fa/unlock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaUnlock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/upload.d.ts b/types/react-icons/lib/fa/upload.d.ts new file mode 100644 index 0000000000..566ab8a65d --- /dev/null +++ b/types/react-icons/lib/fa/upload.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaUpload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/usb.d.ts b/types/react-icons/lib/fa/usb.d.ts new file mode 100644 index 0000000000..6ca16d94e8 --- /dev/null +++ b/types/react-icons/lib/fa/usb.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaUsb extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/user-md.d.ts b/types/react-icons/lib/fa/user-md.d.ts new file mode 100644 index 0000000000..0d6f2d9781 --- /dev/null +++ b/types/react-icons/lib/fa/user-md.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaUserMd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/user-plus.d.ts b/types/react-icons/lib/fa/user-plus.d.ts new file mode 100644 index 0000000000..659b2ecb13 --- /dev/null +++ b/types/react-icons/lib/fa/user-plus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaUserPlus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/user-secret.d.ts b/types/react-icons/lib/fa/user-secret.d.ts new file mode 100644 index 0000000000..43bf4e4ac3 --- /dev/null +++ b/types/react-icons/lib/fa/user-secret.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaUserSecret extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/user-times.d.ts b/types/react-icons/lib/fa/user-times.d.ts new file mode 100644 index 0000000000..d235fd5463 --- /dev/null +++ b/types/react-icons/lib/fa/user-times.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaUserTimes extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/user.d.ts b/types/react-icons/lib/fa/user.d.ts new file mode 100644 index 0000000000..cf7b5ac689 --- /dev/null +++ b/types/react-icons/lib/fa/user.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaUser extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/venus-double.d.ts b/types/react-icons/lib/fa/venus-double.d.ts new file mode 100644 index 0000000000..5a3602b516 --- /dev/null +++ b/types/react-icons/lib/fa/venus-double.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaVenusDouble extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/venus-mars.d.ts b/types/react-icons/lib/fa/venus-mars.d.ts new file mode 100644 index 0000000000..70d7448d7e --- /dev/null +++ b/types/react-icons/lib/fa/venus-mars.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaVenusMars extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/venus.d.ts b/types/react-icons/lib/fa/venus.d.ts new file mode 100644 index 0000000000..e80ab6053c --- /dev/null +++ b/types/react-icons/lib/fa/venus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaVenus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/viacoin.d.ts b/types/react-icons/lib/fa/viacoin.d.ts new file mode 100644 index 0000000000..c9f1bef6f3 --- /dev/null +++ b/types/react-icons/lib/fa/viacoin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaViacoin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/viadeo-square.d.ts b/types/react-icons/lib/fa/viadeo-square.d.ts new file mode 100644 index 0000000000..7f10d8302f --- /dev/null +++ b/types/react-icons/lib/fa/viadeo-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaViadeoSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/viadeo.d.ts b/types/react-icons/lib/fa/viadeo.d.ts new file mode 100644 index 0000000000..551545f5cc --- /dev/null +++ b/types/react-icons/lib/fa/viadeo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaViadeo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/video-camera.d.ts b/types/react-icons/lib/fa/video-camera.d.ts new file mode 100644 index 0000000000..f3cf036582 --- /dev/null +++ b/types/react-icons/lib/fa/video-camera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaVideoCamera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/vimeo-square.d.ts b/types/react-icons/lib/fa/vimeo-square.d.ts new file mode 100644 index 0000000000..9b0357e7ca --- /dev/null +++ b/types/react-icons/lib/fa/vimeo-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaVimeoSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/vimeo.d.ts b/types/react-icons/lib/fa/vimeo.d.ts new file mode 100644 index 0000000000..7331ef98e8 --- /dev/null +++ b/types/react-icons/lib/fa/vimeo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaVimeo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/vine.d.ts b/types/react-icons/lib/fa/vine.d.ts new file mode 100644 index 0000000000..b329619d15 --- /dev/null +++ b/types/react-icons/lib/fa/vine.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaVine extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/vk.d.ts b/types/react-icons/lib/fa/vk.d.ts new file mode 100644 index 0000000000..07b3cdb5a9 --- /dev/null +++ b/types/react-icons/lib/fa/vk.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaVk extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/volume-control-phone.d.ts b/types/react-icons/lib/fa/volume-control-phone.d.ts new file mode 100644 index 0000000000..5212a54d80 --- /dev/null +++ b/types/react-icons/lib/fa/volume-control-phone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaVolumeControlPhone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/volume-down.d.ts b/types/react-icons/lib/fa/volume-down.d.ts new file mode 100644 index 0000000000..31c63f8901 --- /dev/null +++ b/types/react-icons/lib/fa/volume-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaVolumeDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/volume-off.d.ts b/types/react-icons/lib/fa/volume-off.d.ts new file mode 100644 index 0000000000..c0e0d7605e --- /dev/null +++ b/types/react-icons/lib/fa/volume-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaVolumeOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/volume-up.d.ts b/types/react-icons/lib/fa/volume-up.d.ts new file mode 100644 index 0000000000..957cdc648b --- /dev/null +++ b/types/react-icons/lib/fa/volume-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaVolumeUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/wechat.d.ts b/types/react-icons/lib/fa/wechat.d.ts new file mode 100644 index 0000000000..35b902956e --- /dev/null +++ b/types/react-icons/lib/fa/wechat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaWechat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/weibo.d.ts b/types/react-icons/lib/fa/weibo.d.ts new file mode 100644 index 0000000000..afbebd68a5 --- /dev/null +++ b/types/react-icons/lib/fa/weibo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaWeibo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/whatsapp.d.ts b/types/react-icons/lib/fa/whatsapp.d.ts new file mode 100644 index 0000000000..d4491b527e --- /dev/null +++ b/types/react-icons/lib/fa/whatsapp.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaWhatsapp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/wheelchair-alt.d.ts b/types/react-icons/lib/fa/wheelchair-alt.d.ts new file mode 100644 index 0000000000..beb76b7b56 --- /dev/null +++ b/types/react-icons/lib/fa/wheelchair-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaWheelchairAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/wheelchair.d.ts b/types/react-icons/lib/fa/wheelchair.d.ts new file mode 100644 index 0000000000..b93d14b52d --- /dev/null +++ b/types/react-icons/lib/fa/wheelchair.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaWheelchair extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/wifi.d.ts b/types/react-icons/lib/fa/wifi.d.ts new file mode 100644 index 0000000000..001d3cfc85 --- /dev/null +++ b/types/react-icons/lib/fa/wifi.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaWifi extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/wikipedia-w.d.ts b/types/react-icons/lib/fa/wikipedia-w.d.ts new file mode 100644 index 0000000000..279a74f1af --- /dev/null +++ b/types/react-icons/lib/fa/wikipedia-w.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaWikipediaW extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/windows.d.ts b/types/react-icons/lib/fa/windows.d.ts new file mode 100644 index 0000000000..7e201a440e --- /dev/null +++ b/types/react-icons/lib/fa/windows.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaWindows extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/wordpress.d.ts b/types/react-icons/lib/fa/wordpress.d.ts new file mode 100644 index 0000000000..6419cd1638 --- /dev/null +++ b/types/react-icons/lib/fa/wordpress.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaWordpress extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/wpbeginner.d.ts b/types/react-icons/lib/fa/wpbeginner.d.ts new file mode 100644 index 0000000000..cccbdae9db --- /dev/null +++ b/types/react-icons/lib/fa/wpbeginner.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaWpbeginner extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/wpforms.d.ts b/types/react-icons/lib/fa/wpforms.d.ts new file mode 100644 index 0000000000..1ec4e76460 --- /dev/null +++ b/types/react-icons/lib/fa/wpforms.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaWpforms extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/wrench.d.ts b/types/react-icons/lib/fa/wrench.d.ts new file mode 100644 index 0000000000..0264b8d26b --- /dev/null +++ b/types/react-icons/lib/fa/wrench.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaWrench extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/xing-square.d.ts b/types/react-icons/lib/fa/xing-square.d.ts new file mode 100644 index 0000000000..5f462112ea --- /dev/null +++ b/types/react-icons/lib/fa/xing-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaXingSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/xing.d.ts b/types/react-icons/lib/fa/xing.d.ts new file mode 100644 index 0000000000..1974b8c345 --- /dev/null +++ b/types/react-icons/lib/fa/xing.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaXing extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/y-combinator.d.ts b/types/react-icons/lib/fa/y-combinator.d.ts new file mode 100644 index 0000000000..00fbccab76 --- /dev/null +++ b/types/react-icons/lib/fa/y-combinator.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaYCombinator extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/yahoo.d.ts b/types/react-icons/lib/fa/yahoo.d.ts new file mode 100644 index 0000000000..20c14e5e13 --- /dev/null +++ b/types/react-icons/lib/fa/yahoo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaYahoo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/yelp.d.ts b/types/react-icons/lib/fa/yelp.d.ts new file mode 100644 index 0000000000..72ade5360d --- /dev/null +++ b/types/react-icons/lib/fa/yelp.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaYelp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/youtube-play.d.ts b/types/react-icons/lib/fa/youtube-play.d.ts new file mode 100644 index 0000000000..f1829960cf --- /dev/null +++ b/types/react-icons/lib/fa/youtube-play.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaYoutubePlay extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/youtube-square.d.ts b/types/react-icons/lib/fa/youtube-square.d.ts new file mode 100644 index 0000000000..c0ccac4e45 --- /dev/null +++ b/types/react-icons/lib/fa/youtube-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaYoutubeSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/fa/youtube.d.ts b/types/react-icons/lib/fa/youtube.d.ts new file mode 100644 index 0000000000..7aee8011f5 --- /dev/null +++ b/types/react-icons/lib/fa/youtube.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class FaYoutube extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/alert.d.ts b/types/react-icons/lib/go/alert.d.ts new file mode 100644 index 0000000000..7380b75f13 --- /dev/null +++ b/types/react-icons/lib/go/alert.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoAlert extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/alignment-align.d.ts b/types/react-icons/lib/go/alignment-align.d.ts new file mode 100644 index 0000000000..b0279982e2 --- /dev/null +++ b/types/react-icons/lib/go/alignment-align.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoAlignmentAlign extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/alignment-aligned-to.d.ts b/types/react-icons/lib/go/alignment-aligned-to.d.ts new file mode 100644 index 0000000000..4d42f9aff5 --- /dev/null +++ b/types/react-icons/lib/go/alignment-aligned-to.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoAlignmentAlignedTo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/alignment-unalign.d.ts b/types/react-icons/lib/go/alignment-unalign.d.ts new file mode 100644 index 0000000000..fcc4e84501 --- /dev/null +++ b/types/react-icons/lib/go/alignment-unalign.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoAlignmentUnalign extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/arrow-down.d.ts b/types/react-icons/lib/go/arrow-down.d.ts new file mode 100644 index 0000000000..88395ee5f4 --- /dev/null +++ b/types/react-icons/lib/go/arrow-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoArrowDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/arrow-left.d.ts b/types/react-icons/lib/go/arrow-left.d.ts new file mode 100644 index 0000000000..4bbebb5f65 --- /dev/null +++ b/types/react-icons/lib/go/arrow-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoArrowLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/arrow-right.d.ts b/types/react-icons/lib/go/arrow-right.d.ts new file mode 100644 index 0000000000..484a4f9317 --- /dev/null +++ b/types/react-icons/lib/go/arrow-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoArrowRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/arrow-small-down.d.ts b/types/react-icons/lib/go/arrow-small-down.d.ts new file mode 100644 index 0000000000..d4aa907034 --- /dev/null +++ b/types/react-icons/lib/go/arrow-small-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoArrowSmallDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/arrow-small-left.d.ts b/types/react-icons/lib/go/arrow-small-left.d.ts new file mode 100644 index 0000000000..a3700b5837 --- /dev/null +++ b/types/react-icons/lib/go/arrow-small-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoArrowSmallLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/arrow-small-right.d.ts b/types/react-icons/lib/go/arrow-small-right.d.ts new file mode 100644 index 0000000000..0ada4d71ee --- /dev/null +++ b/types/react-icons/lib/go/arrow-small-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoArrowSmallRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/arrow-small-up.d.ts b/types/react-icons/lib/go/arrow-small-up.d.ts new file mode 100644 index 0000000000..2bd6cdb4f3 --- /dev/null +++ b/types/react-icons/lib/go/arrow-small-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoArrowSmallUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/arrow-up.d.ts b/types/react-icons/lib/go/arrow-up.d.ts new file mode 100644 index 0000000000..67a6866297 --- /dev/null +++ b/types/react-icons/lib/go/arrow-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoArrowUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/beer.d.ts b/types/react-icons/lib/go/beer.d.ts new file mode 100644 index 0000000000..71baf9a3ac --- /dev/null +++ b/types/react-icons/lib/go/beer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoBeer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/book.d.ts b/types/react-icons/lib/go/book.d.ts new file mode 100644 index 0000000000..cd181328b6 --- /dev/null +++ b/types/react-icons/lib/go/book.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoBook extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/bookmark.d.ts b/types/react-icons/lib/go/bookmark.d.ts new file mode 100644 index 0000000000..d3b156181f --- /dev/null +++ b/types/react-icons/lib/go/bookmark.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoBookmark extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/briefcase.d.ts b/types/react-icons/lib/go/briefcase.d.ts new file mode 100644 index 0000000000..984092ba9b --- /dev/null +++ b/types/react-icons/lib/go/briefcase.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoBriefcase extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/broadcast.d.ts b/types/react-icons/lib/go/broadcast.d.ts new file mode 100644 index 0000000000..6c40834a02 --- /dev/null +++ b/types/react-icons/lib/go/broadcast.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoBroadcast extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/browser.d.ts b/types/react-icons/lib/go/browser.d.ts new file mode 100644 index 0000000000..c268f36ec0 --- /dev/null +++ b/types/react-icons/lib/go/browser.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoBrowser extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/bug.d.ts b/types/react-icons/lib/go/bug.d.ts new file mode 100644 index 0000000000..8159ff886d --- /dev/null +++ b/types/react-icons/lib/go/bug.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoBug extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/calendar.d.ts b/types/react-icons/lib/go/calendar.d.ts new file mode 100644 index 0000000000..5c52a2bf67 --- /dev/null +++ b/types/react-icons/lib/go/calendar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoCalendar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/check.d.ts b/types/react-icons/lib/go/check.d.ts new file mode 100644 index 0000000000..f1f9c1536b --- /dev/null +++ b/types/react-icons/lib/go/check.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoCheck extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/checklist.d.ts b/types/react-icons/lib/go/checklist.d.ts new file mode 100644 index 0000000000..e1bfc3a76e --- /dev/null +++ b/types/react-icons/lib/go/checklist.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoChecklist extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/chevron-down.d.ts b/types/react-icons/lib/go/chevron-down.d.ts new file mode 100644 index 0000000000..4879ed7129 --- /dev/null +++ b/types/react-icons/lib/go/chevron-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoChevronDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/chevron-left.d.ts b/types/react-icons/lib/go/chevron-left.d.ts new file mode 100644 index 0000000000..36a6c0f96a --- /dev/null +++ b/types/react-icons/lib/go/chevron-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoChevronLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/chevron-right.d.ts b/types/react-icons/lib/go/chevron-right.d.ts new file mode 100644 index 0000000000..55e19d951a --- /dev/null +++ b/types/react-icons/lib/go/chevron-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoChevronRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/chevron-up.d.ts b/types/react-icons/lib/go/chevron-up.d.ts new file mode 100644 index 0000000000..2eba9e55c4 --- /dev/null +++ b/types/react-icons/lib/go/chevron-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoChevronUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/circle-slash.d.ts b/types/react-icons/lib/go/circle-slash.d.ts new file mode 100644 index 0000000000..4400a217f6 --- /dev/null +++ b/types/react-icons/lib/go/circle-slash.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoCircleSlash extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/circuit-board.d.ts b/types/react-icons/lib/go/circuit-board.d.ts new file mode 100644 index 0000000000..396c2dc8e8 --- /dev/null +++ b/types/react-icons/lib/go/circuit-board.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoCircuitBoard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/clippy.d.ts b/types/react-icons/lib/go/clippy.d.ts new file mode 100644 index 0000000000..3483e7754e --- /dev/null +++ b/types/react-icons/lib/go/clippy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoClippy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/clock.d.ts b/types/react-icons/lib/go/clock.d.ts new file mode 100644 index 0000000000..3cac2ddd8a --- /dev/null +++ b/types/react-icons/lib/go/clock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoClock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/cloud-download.d.ts b/types/react-icons/lib/go/cloud-download.d.ts new file mode 100644 index 0000000000..a04b70acac --- /dev/null +++ b/types/react-icons/lib/go/cloud-download.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoCloudDownload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/cloud-upload.d.ts b/types/react-icons/lib/go/cloud-upload.d.ts new file mode 100644 index 0000000000..07ac4f6286 --- /dev/null +++ b/types/react-icons/lib/go/cloud-upload.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoCloudUpload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/code.d.ts b/types/react-icons/lib/go/code.d.ts new file mode 100644 index 0000000000..7bbb2b7348 --- /dev/null +++ b/types/react-icons/lib/go/code.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoCode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/color-mode.d.ts b/types/react-icons/lib/go/color-mode.d.ts new file mode 100644 index 0000000000..f047381423 --- /dev/null +++ b/types/react-icons/lib/go/color-mode.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoColorMode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/comment-discussion.d.ts b/types/react-icons/lib/go/comment-discussion.d.ts new file mode 100644 index 0000000000..62be81f952 --- /dev/null +++ b/types/react-icons/lib/go/comment-discussion.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoCommentDiscussion extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/comment.d.ts b/types/react-icons/lib/go/comment.d.ts new file mode 100644 index 0000000000..2e14daa806 --- /dev/null +++ b/types/react-icons/lib/go/comment.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoComment extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/credit-card.d.ts b/types/react-icons/lib/go/credit-card.d.ts new file mode 100644 index 0000000000..d7dbb4127c --- /dev/null +++ b/types/react-icons/lib/go/credit-card.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoCreditCard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/dash.d.ts b/types/react-icons/lib/go/dash.d.ts new file mode 100644 index 0000000000..c7c6ca094f --- /dev/null +++ b/types/react-icons/lib/go/dash.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoDash extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/dashboard.d.ts b/types/react-icons/lib/go/dashboard.d.ts new file mode 100644 index 0000000000..ab328f0213 --- /dev/null +++ b/types/react-icons/lib/go/dashboard.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoDashboard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/database.d.ts b/types/react-icons/lib/go/database.d.ts new file mode 100644 index 0000000000..34758c332d --- /dev/null +++ b/types/react-icons/lib/go/database.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoDatabase extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/device-camera-video.d.ts b/types/react-icons/lib/go/device-camera-video.d.ts new file mode 100644 index 0000000000..9274c81fdd --- /dev/null +++ b/types/react-icons/lib/go/device-camera-video.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoDeviceCameraVideo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/device-camera.d.ts b/types/react-icons/lib/go/device-camera.d.ts new file mode 100644 index 0000000000..65a3f9aa8c --- /dev/null +++ b/types/react-icons/lib/go/device-camera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoDeviceCamera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/device-desktop.d.ts b/types/react-icons/lib/go/device-desktop.d.ts new file mode 100644 index 0000000000..7c75dfe2f1 --- /dev/null +++ b/types/react-icons/lib/go/device-desktop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoDeviceDesktop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/device-mobile.d.ts b/types/react-icons/lib/go/device-mobile.d.ts new file mode 100644 index 0000000000..046f63558d --- /dev/null +++ b/types/react-icons/lib/go/device-mobile.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoDeviceMobile extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/diff-added.d.ts b/types/react-icons/lib/go/diff-added.d.ts new file mode 100644 index 0000000000..bde41f0f53 --- /dev/null +++ b/types/react-icons/lib/go/diff-added.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoDiffAdded extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/diff-ignored.d.ts b/types/react-icons/lib/go/diff-ignored.d.ts new file mode 100644 index 0000000000..2508e07fa9 --- /dev/null +++ b/types/react-icons/lib/go/diff-ignored.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoDiffIgnored extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/diff-modified.d.ts b/types/react-icons/lib/go/diff-modified.d.ts new file mode 100644 index 0000000000..af95e1337d --- /dev/null +++ b/types/react-icons/lib/go/diff-modified.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoDiffModified extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/diff-removed.d.ts b/types/react-icons/lib/go/diff-removed.d.ts new file mode 100644 index 0000000000..46b1e78387 --- /dev/null +++ b/types/react-icons/lib/go/diff-removed.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoDiffRemoved extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/diff-renamed.d.ts b/types/react-icons/lib/go/diff-renamed.d.ts new file mode 100644 index 0000000000..c73850d52c --- /dev/null +++ b/types/react-icons/lib/go/diff-renamed.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoDiffRenamed extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/diff.d.ts b/types/react-icons/lib/go/diff.d.ts new file mode 100644 index 0000000000..ebc0f14e2d --- /dev/null +++ b/types/react-icons/lib/go/diff.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoDiff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/ellipsis.d.ts b/types/react-icons/lib/go/ellipsis.d.ts new file mode 100644 index 0000000000..b8a40f3e30 --- /dev/null +++ b/types/react-icons/lib/go/ellipsis.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoEllipsis extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/eye.d.ts b/types/react-icons/lib/go/eye.d.ts new file mode 100644 index 0000000000..91e5fe5385 --- /dev/null +++ b/types/react-icons/lib/go/eye.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoEye extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/file-binary.d.ts b/types/react-icons/lib/go/file-binary.d.ts new file mode 100644 index 0000000000..b5ab33f79a --- /dev/null +++ b/types/react-icons/lib/go/file-binary.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoFileBinary extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/file-code.d.ts b/types/react-icons/lib/go/file-code.d.ts new file mode 100644 index 0000000000..297e89de52 --- /dev/null +++ b/types/react-icons/lib/go/file-code.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoFileCode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/file-directory.d.ts b/types/react-icons/lib/go/file-directory.d.ts new file mode 100644 index 0000000000..a64af8f137 --- /dev/null +++ b/types/react-icons/lib/go/file-directory.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoFileDirectory extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/file-media.d.ts b/types/react-icons/lib/go/file-media.d.ts new file mode 100644 index 0000000000..8cf5535220 --- /dev/null +++ b/types/react-icons/lib/go/file-media.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoFileMedia extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/file-pdf.d.ts b/types/react-icons/lib/go/file-pdf.d.ts new file mode 100644 index 0000000000..43ae39d5a7 --- /dev/null +++ b/types/react-icons/lib/go/file-pdf.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoFilePdf extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/file-submodule.d.ts b/types/react-icons/lib/go/file-submodule.d.ts new file mode 100644 index 0000000000..5a9499dbac --- /dev/null +++ b/types/react-icons/lib/go/file-submodule.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoFileSubmodule extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/file-symlink-directory.d.ts b/types/react-icons/lib/go/file-symlink-directory.d.ts new file mode 100644 index 0000000000..5337059393 --- /dev/null +++ b/types/react-icons/lib/go/file-symlink-directory.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoFileSymlinkDirectory extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/file-symlink-file.d.ts b/types/react-icons/lib/go/file-symlink-file.d.ts new file mode 100644 index 0000000000..0116f9d2f0 --- /dev/null +++ b/types/react-icons/lib/go/file-symlink-file.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoFileSymlinkFile extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/file-text.d.ts b/types/react-icons/lib/go/file-text.d.ts new file mode 100644 index 0000000000..23b59dfcfd --- /dev/null +++ b/types/react-icons/lib/go/file-text.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoFileText extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/file-zip.d.ts b/types/react-icons/lib/go/file-zip.d.ts new file mode 100644 index 0000000000..e4f588b5db --- /dev/null +++ b/types/react-icons/lib/go/file-zip.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoFileZip extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/flame.d.ts b/types/react-icons/lib/go/flame.d.ts new file mode 100644 index 0000000000..baa5aa3739 --- /dev/null +++ b/types/react-icons/lib/go/flame.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoFlame extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/fold.d.ts b/types/react-icons/lib/go/fold.d.ts new file mode 100644 index 0000000000..7ae869e942 --- /dev/null +++ b/types/react-icons/lib/go/fold.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoFold extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/gear.d.ts b/types/react-icons/lib/go/gear.d.ts new file mode 100644 index 0000000000..7fd837ffbc --- /dev/null +++ b/types/react-icons/lib/go/gear.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoGear extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/gift.d.ts b/types/react-icons/lib/go/gift.d.ts new file mode 100644 index 0000000000..98b9deb223 --- /dev/null +++ b/types/react-icons/lib/go/gift.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoGift extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/gist-secret.d.ts b/types/react-icons/lib/go/gist-secret.d.ts new file mode 100644 index 0000000000..c69f135efd --- /dev/null +++ b/types/react-icons/lib/go/gist-secret.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoGistSecret extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/gist.d.ts b/types/react-icons/lib/go/gist.d.ts new file mode 100644 index 0000000000..8f1ff4e827 --- /dev/null +++ b/types/react-icons/lib/go/gist.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoGist extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/git-branch.d.ts b/types/react-icons/lib/go/git-branch.d.ts new file mode 100644 index 0000000000..52a90bd2a5 --- /dev/null +++ b/types/react-icons/lib/go/git-branch.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoGitBranch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/git-commit.d.ts b/types/react-icons/lib/go/git-commit.d.ts new file mode 100644 index 0000000000..a1ad866ee2 --- /dev/null +++ b/types/react-icons/lib/go/git-commit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoGitCommit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/git-compare.d.ts b/types/react-icons/lib/go/git-compare.d.ts new file mode 100644 index 0000000000..4336af1b22 --- /dev/null +++ b/types/react-icons/lib/go/git-compare.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoGitCompare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/git-merge.d.ts b/types/react-icons/lib/go/git-merge.d.ts new file mode 100644 index 0000000000..f7d3457db7 --- /dev/null +++ b/types/react-icons/lib/go/git-merge.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoGitMerge extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/git-pull-request.d.ts b/types/react-icons/lib/go/git-pull-request.d.ts new file mode 100644 index 0000000000..0c79ca8175 --- /dev/null +++ b/types/react-icons/lib/go/git-pull-request.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoGitPullRequest extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/globe.d.ts b/types/react-icons/lib/go/globe.d.ts new file mode 100644 index 0000000000..b1893d7685 --- /dev/null +++ b/types/react-icons/lib/go/globe.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoGlobe extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/graph.d.ts b/types/react-icons/lib/go/graph.d.ts new file mode 100644 index 0000000000..8f1c24ba75 --- /dev/null +++ b/types/react-icons/lib/go/graph.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoGraph extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/heart.d.ts b/types/react-icons/lib/go/heart.d.ts new file mode 100644 index 0000000000..8f56d447ef --- /dev/null +++ b/types/react-icons/lib/go/heart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoHeart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/history.d.ts b/types/react-icons/lib/go/history.d.ts new file mode 100644 index 0000000000..c91e923a69 --- /dev/null +++ b/types/react-icons/lib/go/history.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoHistory extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/home.d.ts b/types/react-icons/lib/go/home.d.ts new file mode 100644 index 0000000000..97d032716f --- /dev/null +++ b/types/react-icons/lib/go/home.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoHome extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/horizontal-rule.d.ts b/types/react-icons/lib/go/horizontal-rule.d.ts new file mode 100644 index 0000000000..336e1f4eeb --- /dev/null +++ b/types/react-icons/lib/go/horizontal-rule.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoHorizontalRule extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/hourglass.d.ts b/types/react-icons/lib/go/hourglass.d.ts new file mode 100644 index 0000000000..ad0fdf8563 --- /dev/null +++ b/types/react-icons/lib/go/hourglass.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoHourglass extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/hubot.d.ts b/types/react-icons/lib/go/hubot.d.ts new file mode 100644 index 0000000000..984cc59a02 --- /dev/null +++ b/types/react-icons/lib/go/hubot.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoHubot extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/inbox.d.ts b/types/react-icons/lib/go/inbox.d.ts new file mode 100644 index 0000000000..fe75bf017e --- /dev/null +++ b/types/react-icons/lib/go/inbox.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoInbox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/index.d.ts b/types/react-icons/lib/go/index.d.ts new file mode 100644 index 0000000000..285be47453 --- /dev/null +++ b/types/react-icons/lib/go/index.d.ts @@ -0,0 +1,177 @@ +export { default as GoAlert } from "./alert"; +export { default as GoAlignmentAlign } from "./alignment-align"; +export { default as GoAlignmentAlignedTo } from "./alignment-aligned-to"; +export { default as GoAlignmentUnalign } from "./alignment-unalign"; +export { default as GoArrowDown } from "./arrow-down"; +export { default as GoArrowLeft } from "./arrow-left"; +export { default as GoArrowRight } from "./arrow-right"; +export { default as GoArrowSmallDown } from "./arrow-small-down"; +export { default as GoArrowSmallLeft } from "./arrow-small-left"; +export { default as GoArrowSmallRight } from "./arrow-small-right"; +export { default as GoArrowSmallUp } from "./arrow-small-up"; +export { default as GoArrowUp } from "./arrow-up"; +export { default as GoBeer } from "./beer"; +export { default as GoBook } from "./book"; +export { default as GoBookmark } from "./bookmark"; +export { default as GoBriefcase } from "./briefcase"; +export { default as GoBroadcast } from "./broadcast"; +export { default as GoBrowser } from "./browser"; +export { default as GoBug } from "./bug"; +export { default as GoCalendar } from "./calendar"; +export { default as GoCheck } from "./check"; +export { default as GoChecklist } from "./checklist"; +export { default as GoChevronDown } from "./chevron-down"; +export { default as GoChevronLeft } from "./chevron-left"; +export { default as GoChevronRight } from "./chevron-right"; +export { default as GoChevronUp } from "./chevron-up"; +export { default as GoCircleSlash } from "./circle-slash"; +export { default as GoCircuitBoard } from "./circuit-board"; +export { default as GoClippy } from "./clippy"; +export { default as GoClock } from "./clock"; +export { default as GoCloudDownload } from "./cloud-download"; +export { default as GoCloudUpload } from "./cloud-upload"; +export { default as GoCode } from "./code"; +export { default as GoColorMode } from "./color-mode"; +export { default as GoCommentDiscussion } from "./comment-discussion"; +export { default as GoComment } from "./comment"; +export { default as GoCreditCard } from "./credit-card"; +export { default as GoDash } from "./dash"; +export { default as GoDashboard } from "./dashboard"; +export { default as GoDatabase } from "./database"; +export { default as GoDeviceCameraVideo } from "./device-camera-video"; +export { default as GoDeviceCamera } from "./device-camera"; +export { default as GoDeviceDesktop } from "./device-desktop"; +export { default as GoDeviceMobile } from "./device-mobile"; +export { default as GoDiffAdded } from "./diff-added"; +export { default as GoDiffIgnored } from "./diff-ignored"; +export { default as GoDiffModified } from "./diff-modified"; +export { default as GoDiffRemoved } from "./diff-removed"; +export { default as GoDiffRenamed } from "./diff-renamed"; +export { default as GoDiff } from "./diff"; +export { default as GoEllipsis } from "./ellipsis"; +export { default as GoEye } from "./eye"; +export { default as GoFileBinary } from "./file-binary"; +export { default as GoFileCode } from "./file-code"; +export { default as GoFileDirectory } from "./file-directory"; +export { default as GoFileMedia } from "./file-media"; +export { default as GoFilePdf } from "./file-pdf"; +export { default as GoFileSubmodule } from "./file-submodule"; +export { default as GoFileSymlinkDirectory } from "./file-symlink-directory"; +export { default as GoFileSymlinkFile } from "./file-symlink-file"; +export { default as GoFileText } from "./file-text"; +export { default as GoFileZip } from "./file-zip"; +export { default as GoFlame } from "./flame"; +export { default as GoFold } from "./fold"; +export { default as GoGear } from "./gear"; +export { default as GoGift } from "./gift"; +export { default as GoGistSecret } from "./gist-secret"; +export { default as GoGist } from "./gist"; +export { default as GoGitBranch } from "./git-branch"; +export { default as GoGitCommit } from "./git-commit"; +export { default as GoGitCompare } from "./git-compare"; +export { default as GoGitMerge } from "./git-merge"; +export { default as GoGitPullRequest } from "./git-pull-request"; +export { default as GoGlobe } from "./globe"; +export { default as GoGraph } from "./graph"; +export { default as GoHeart } from "./heart"; +export { default as GoHistory } from "./history"; +export { default as GoHome } from "./home"; +export { default as GoHorizontalRule } from "./horizontal-rule"; +export { default as GoHourglass } from "./hourglass"; +export { default as GoHubot } from "./hubot"; +export { default as GoInbox } from "./inbox"; +export { default as GoInfo } from "./info"; +export { default as GoIssueClosed } from "./issue-closed"; +export { default as GoIssueOpened } from "./issue-opened"; +export { default as GoIssueReopened } from "./issue-reopened"; +export { default as GoJersey } from "./jersey"; +export { default as GoJumpDown } from "./jump-down"; +export { default as GoJumpLeft } from "./jump-left"; +export { default as GoJumpRight } from "./jump-right"; +export { default as GoJumpUp } from "./jump-up"; +export { default as GoKey } from "./key"; +export { default as GoKeyboard } from "./keyboard"; +export { default as GoLaw } from "./law"; +export { default as GoLightBulb } from "./light-bulb"; +export { default as GoLinkExternal } from "./link-external"; +export { default as GoLink } from "./link"; +export { default as GoListOrdered } from "./list-ordered"; +export { default as GoListUnordered } from "./list-unordered"; +export { default as GoLocation } from "./location"; +export { default as GoLock } from "./lock"; +export { default as GoLogoGithub } from "./logo-github"; +export { default as GoMailRead } from "./mail-read"; +export { default as GoMailReply } from "./mail-reply"; +export { default as GoMail } from "./mail"; +export { default as GoMarkGithub } from "./mark-github"; +export { default as GoMarkdown } from "./markdown"; +export { default as GoMegaphone } from "./megaphone"; +export { default as GoMention } from "./mention"; +export { default as GoMicroscope } from "./microscope"; +export { default as GoMilestone } from "./milestone"; +export { default as GoMirror } from "./mirror"; +export { default as GoMortarBoard } from "./mortar-board"; +export { default as GoMoveDown } from "./move-down"; +export { default as GoMoveLeft } from "./move-left"; +export { default as GoMoveRight } from "./move-right"; +export { default as GoMoveUp } from "./move-up"; +export { default as GoMute } from "./mute"; +export { default as GoNoNewline } from "./no-newline"; +export { default as GoOctoface } from "./octoface"; +export { default as GoOrganization } from "./organization"; +export { default as GoPackage } from "./package"; +export { default as GoPaintcan } from "./paintcan"; +export { default as GoPencil } from "./pencil"; +export { default as GoPerson } from "./person"; +export { default as GoPin } from "./pin"; +export { default as GoPlaybackFastForward } from "./playback-fast-forward"; +export { default as GoPlaybackPause } from "./playback-pause"; +export { default as GoPlaybackPlay } from "./playback-play"; +export { default as GoPlaybackRewind } from "./playback-rewind"; +export { default as GoPlug } from "./plug"; +export { default as GoPlus } from "./plus"; +export { default as GoPodium } from "./podium"; +export { default as GoPrimitiveDot } from "./primitive-dot"; +export { default as GoPrimitiveSquare } from "./primitive-square"; +export { default as GoPulse } from "./pulse"; +export { default as GoPuzzle } from "./puzzle"; +export { default as GoQuestion } from "./question"; +export { default as GoQuote } from "./quote"; +export { default as GoRadioTower } from "./radio-tower"; +export { default as GoRepoClone } from "./repo-clone"; +export { default as GoRepoForcePush } from "./repo-force-push"; +export { default as GoRepoForked } from "./repo-forked"; +export { default as GoRepoPull } from "./repo-pull"; +export { default as GoRepoPush } from "./repo-push"; +export { default as GoRepo } from "./repo"; +export { default as GoRocket } from "./rocket"; +export { default as GoRss } from "./rss"; +export { default as GoRuby } from "./ruby"; +export { default as GoScreenFull } from "./screen-full"; +export { default as GoScreenNormal } from "./screen-normal"; +export { default as GoSearch } from "./search"; +export { default as GoServer } from "./server"; +export { default as GoSettings } from "./settings"; +export { default as GoSignIn } from "./sign-in"; +export { default as GoSignOut } from "./sign-out"; +export { default as GoSplit } from "./split"; +export { default as GoSquirrel } from "./squirrel"; +export { default as GoStar } from "./star"; +export { default as GoSteps } from "./steps"; +export { default as GoStop } from "./stop"; +export { default as GoSync } from "./sync"; +export { default as GoTag } from "./tag"; +export { default as GoTelescope } from "./telescope"; +export { default as GoTerminal } from "./terminal"; +export { default as GoThreeBars } from "./three-bars"; +export { default as GoTools } from "./tools"; +export { default as GoTrashcan } from "./trashcan"; +export { default as GoTriangleDown } from "./triangle-down"; +export { default as GoTriangleLeft } from "./triangle-left"; +export { default as GoTriangleRight } from "./triangle-right"; +export { default as GoTriangleUp } from "./triangle-up"; +export { default as GoUnfold } from "./unfold"; +export { default as GoUnmute } from "./unmute"; +export { default as GoVersions } from "./versions"; +export { default as GoX } from "./x"; +export { default as GoZap } from "./zap"; diff --git a/types/react-icons/lib/go/info.d.ts b/types/react-icons/lib/go/info.d.ts new file mode 100644 index 0000000000..2359f0e299 --- /dev/null +++ b/types/react-icons/lib/go/info.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoInfo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/issue-closed.d.ts b/types/react-icons/lib/go/issue-closed.d.ts new file mode 100644 index 0000000000..b06460c581 --- /dev/null +++ b/types/react-icons/lib/go/issue-closed.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoIssueClosed extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/issue-opened.d.ts b/types/react-icons/lib/go/issue-opened.d.ts new file mode 100644 index 0000000000..331e3754a9 --- /dev/null +++ b/types/react-icons/lib/go/issue-opened.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoIssueOpened extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/issue-reopened.d.ts b/types/react-icons/lib/go/issue-reopened.d.ts new file mode 100644 index 0000000000..460fb426c8 --- /dev/null +++ b/types/react-icons/lib/go/issue-reopened.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoIssueReopened extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/jersey.d.ts b/types/react-icons/lib/go/jersey.d.ts new file mode 100644 index 0000000000..2c85c72ff0 --- /dev/null +++ b/types/react-icons/lib/go/jersey.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoJersey extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/jump-down.d.ts b/types/react-icons/lib/go/jump-down.d.ts new file mode 100644 index 0000000000..8d0497969e --- /dev/null +++ b/types/react-icons/lib/go/jump-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoJumpDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/jump-left.d.ts b/types/react-icons/lib/go/jump-left.d.ts new file mode 100644 index 0000000000..9be1e1ded5 --- /dev/null +++ b/types/react-icons/lib/go/jump-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoJumpLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/jump-right.d.ts b/types/react-icons/lib/go/jump-right.d.ts new file mode 100644 index 0000000000..efdbf77170 --- /dev/null +++ b/types/react-icons/lib/go/jump-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoJumpRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/jump-up.d.ts b/types/react-icons/lib/go/jump-up.d.ts new file mode 100644 index 0000000000..f8ee7030f0 --- /dev/null +++ b/types/react-icons/lib/go/jump-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoJumpUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/key.d.ts b/types/react-icons/lib/go/key.d.ts new file mode 100644 index 0000000000..635b754f56 --- /dev/null +++ b/types/react-icons/lib/go/key.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoKey extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/keyboard.d.ts b/types/react-icons/lib/go/keyboard.d.ts new file mode 100644 index 0000000000..48e2f695ed --- /dev/null +++ b/types/react-icons/lib/go/keyboard.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoKeyboard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/law.d.ts b/types/react-icons/lib/go/law.d.ts new file mode 100644 index 0000000000..59e6dd09c6 --- /dev/null +++ b/types/react-icons/lib/go/law.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoLaw extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/light-bulb.d.ts b/types/react-icons/lib/go/light-bulb.d.ts new file mode 100644 index 0000000000..b020b05d25 --- /dev/null +++ b/types/react-icons/lib/go/light-bulb.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoLightBulb extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/link-external.d.ts b/types/react-icons/lib/go/link-external.d.ts new file mode 100644 index 0000000000..9e93717352 --- /dev/null +++ b/types/react-icons/lib/go/link-external.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoLinkExternal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/link.d.ts b/types/react-icons/lib/go/link.d.ts new file mode 100644 index 0000000000..7def9d9bd3 --- /dev/null +++ b/types/react-icons/lib/go/link.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoLink extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/list-ordered.d.ts b/types/react-icons/lib/go/list-ordered.d.ts new file mode 100644 index 0000000000..31a2859733 --- /dev/null +++ b/types/react-icons/lib/go/list-ordered.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoListOrdered extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/list-unordered.d.ts b/types/react-icons/lib/go/list-unordered.d.ts new file mode 100644 index 0000000000..59b89e921e --- /dev/null +++ b/types/react-icons/lib/go/list-unordered.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoListUnordered extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/location.d.ts b/types/react-icons/lib/go/location.d.ts new file mode 100644 index 0000000000..a382326479 --- /dev/null +++ b/types/react-icons/lib/go/location.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoLocation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/lock.d.ts b/types/react-icons/lib/go/lock.d.ts new file mode 100644 index 0000000000..623ec47b53 --- /dev/null +++ b/types/react-icons/lib/go/lock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoLock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/logo-github.d.ts b/types/react-icons/lib/go/logo-github.d.ts new file mode 100644 index 0000000000..f57a2d07f7 --- /dev/null +++ b/types/react-icons/lib/go/logo-github.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoLogoGithub extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/mail-read.d.ts b/types/react-icons/lib/go/mail-read.d.ts new file mode 100644 index 0000000000..e6820b2732 --- /dev/null +++ b/types/react-icons/lib/go/mail-read.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMailRead extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/mail-reply.d.ts b/types/react-icons/lib/go/mail-reply.d.ts new file mode 100644 index 0000000000..794cc6dca4 --- /dev/null +++ b/types/react-icons/lib/go/mail-reply.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMailReply extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/mail.d.ts b/types/react-icons/lib/go/mail.d.ts new file mode 100644 index 0000000000..bca60de455 --- /dev/null +++ b/types/react-icons/lib/go/mail.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMail extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/mark-github.d.ts b/types/react-icons/lib/go/mark-github.d.ts new file mode 100644 index 0000000000..999521b725 --- /dev/null +++ b/types/react-icons/lib/go/mark-github.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMarkGithub extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/markdown.d.ts b/types/react-icons/lib/go/markdown.d.ts new file mode 100644 index 0000000000..5533fd8deb --- /dev/null +++ b/types/react-icons/lib/go/markdown.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMarkdown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/megaphone.d.ts b/types/react-icons/lib/go/megaphone.d.ts new file mode 100644 index 0000000000..c76f98d900 --- /dev/null +++ b/types/react-icons/lib/go/megaphone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMegaphone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/mention.d.ts b/types/react-icons/lib/go/mention.d.ts new file mode 100644 index 0000000000..988f97ec6f --- /dev/null +++ b/types/react-icons/lib/go/mention.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMention extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/microscope.d.ts b/types/react-icons/lib/go/microscope.d.ts new file mode 100644 index 0000000000..79f91de4ab --- /dev/null +++ b/types/react-icons/lib/go/microscope.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMicroscope extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/milestone.d.ts b/types/react-icons/lib/go/milestone.d.ts new file mode 100644 index 0000000000..a5df7c65b1 --- /dev/null +++ b/types/react-icons/lib/go/milestone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMilestone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/mirror.d.ts b/types/react-icons/lib/go/mirror.d.ts new file mode 100644 index 0000000000..c8f5f3a988 --- /dev/null +++ b/types/react-icons/lib/go/mirror.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMirror extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/mortar-board.d.ts b/types/react-icons/lib/go/mortar-board.d.ts new file mode 100644 index 0000000000..e435c2f899 --- /dev/null +++ b/types/react-icons/lib/go/mortar-board.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMortarBoard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/move-down.d.ts b/types/react-icons/lib/go/move-down.d.ts new file mode 100644 index 0000000000..cceb4a2fc6 --- /dev/null +++ b/types/react-icons/lib/go/move-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMoveDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/move-left.d.ts b/types/react-icons/lib/go/move-left.d.ts new file mode 100644 index 0000000000..81c57b58d1 --- /dev/null +++ b/types/react-icons/lib/go/move-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMoveLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/move-right.d.ts b/types/react-icons/lib/go/move-right.d.ts new file mode 100644 index 0000000000..b9baed854c --- /dev/null +++ b/types/react-icons/lib/go/move-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMoveRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/move-up.d.ts b/types/react-icons/lib/go/move-up.d.ts new file mode 100644 index 0000000000..b649bd2bca --- /dev/null +++ b/types/react-icons/lib/go/move-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMoveUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/mute.d.ts b/types/react-icons/lib/go/mute.d.ts new file mode 100644 index 0000000000..96aa49027f --- /dev/null +++ b/types/react-icons/lib/go/mute.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoMute extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/no-newline.d.ts b/types/react-icons/lib/go/no-newline.d.ts new file mode 100644 index 0000000000..2953cea8b0 --- /dev/null +++ b/types/react-icons/lib/go/no-newline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoNoNewline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/octoface.d.ts b/types/react-icons/lib/go/octoface.d.ts new file mode 100644 index 0000000000..466708f844 --- /dev/null +++ b/types/react-icons/lib/go/octoface.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoOctoface extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/organization.d.ts b/types/react-icons/lib/go/organization.d.ts new file mode 100644 index 0000000000..321899f2bd --- /dev/null +++ b/types/react-icons/lib/go/organization.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoOrganization extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/package.d.ts b/types/react-icons/lib/go/package.d.ts new file mode 100644 index 0000000000..ecea623c3b --- /dev/null +++ b/types/react-icons/lib/go/package.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPackage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/paintcan.d.ts b/types/react-icons/lib/go/paintcan.d.ts new file mode 100644 index 0000000000..b38f9aa673 --- /dev/null +++ b/types/react-icons/lib/go/paintcan.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPaintcan extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/pencil.d.ts b/types/react-icons/lib/go/pencil.d.ts new file mode 100644 index 0000000000..9a2cc3fe1c --- /dev/null +++ b/types/react-icons/lib/go/pencil.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPencil extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/person.d.ts b/types/react-icons/lib/go/person.d.ts new file mode 100644 index 0000000000..177c738660 --- /dev/null +++ b/types/react-icons/lib/go/person.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPerson extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/pin.d.ts b/types/react-icons/lib/go/pin.d.ts new file mode 100644 index 0000000000..f083f58df7 --- /dev/null +++ b/types/react-icons/lib/go/pin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/playback-fast-forward.d.ts b/types/react-icons/lib/go/playback-fast-forward.d.ts new file mode 100644 index 0000000000..faa2293f90 --- /dev/null +++ b/types/react-icons/lib/go/playback-fast-forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPlaybackFastForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/playback-pause.d.ts b/types/react-icons/lib/go/playback-pause.d.ts new file mode 100644 index 0000000000..43c3830eae --- /dev/null +++ b/types/react-icons/lib/go/playback-pause.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPlaybackPause extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/playback-play.d.ts b/types/react-icons/lib/go/playback-play.d.ts new file mode 100644 index 0000000000..6d90eadb63 --- /dev/null +++ b/types/react-icons/lib/go/playback-play.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPlaybackPlay extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/playback-rewind.d.ts b/types/react-icons/lib/go/playback-rewind.d.ts new file mode 100644 index 0000000000..92080152af --- /dev/null +++ b/types/react-icons/lib/go/playback-rewind.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPlaybackRewind extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/plug.d.ts b/types/react-icons/lib/go/plug.d.ts new file mode 100644 index 0000000000..da0ec12aa1 --- /dev/null +++ b/types/react-icons/lib/go/plug.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPlug extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/plus.d.ts b/types/react-icons/lib/go/plus.d.ts new file mode 100644 index 0000000000..867c30b643 --- /dev/null +++ b/types/react-icons/lib/go/plus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPlus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/podium.d.ts b/types/react-icons/lib/go/podium.d.ts new file mode 100644 index 0000000000..1c16142450 --- /dev/null +++ b/types/react-icons/lib/go/podium.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPodium extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/primitive-dot.d.ts b/types/react-icons/lib/go/primitive-dot.d.ts new file mode 100644 index 0000000000..9a74108de7 --- /dev/null +++ b/types/react-icons/lib/go/primitive-dot.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPrimitiveDot extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/primitive-square.d.ts b/types/react-icons/lib/go/primitive-square.d.ts new file mode 100644 index 0000000000..4a387621dd --- /dev/null +++ b/types/react-icons/lib/go/primitive-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPrimitiveSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/pulse.d.ts b/types/react-icons/lib/go/pulse.d.ts new file mode 100644 index 0000000000..111540b6ea --- /dev/null +++ b/types/react-icons/lib/go/pulse.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPulse extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/puzzle.d.ts b/types/react-icons/lib/go/puzzle.d.ts new file mode 100644 index 0000000000..759922a96d --- /dev/null +++ b/types/react-icons/lib/go/puzzle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoPuzzle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/question.d.ts b/types/react-icons/lib/go/question.d.ts new file mode 100644 index 0000000000..7dd4302a96 --- /dev/null +++ b/types/react-icons/lib/go/question.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoQuestion extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/quote.d.ts b/types/react-icons/lib/go/quote.d.ts new file mode 100644 index 0000000000..47a6f2765a --- /dev/null +++ b/types/react-icons/lib/go/quote.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoQuote extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/radio-tower.d.ts b/types/react-icons/lib/go/radio-tower.d.ts new file mode 100644 index 0000000000..fee3702338 --- /dev/null +++ b/types/react-icons/lib/go/radio-tower.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoRadioTower extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/repo-clone.d.ts b/types/react-icons/lib/go/repo-clone.d.ts new file mode 100644 index 0000000000..fb9957a21d --- /dev/null +++ b/types/react-icons/lib/go/repo-clone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoRepoClone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/repo-force-push.d.ts b/types/react-icons/lib/go/repo-force-push.d.ts new file mode 100644 index 0000000000..6b1bf3a2c1 --- /dev/null +++ b/types/react-icons/lib/go/repo-force-push.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoRepoForcePush extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/repo-forked.d.ts b/types/react-icons/lib/go/repo-forked.d.ts new file mode 100644 index 0000000000..e68f5a3df6 --- /dev/null +++ b/types/react-icons/lib/go/repo-forked.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoRepoForked extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/repo-pull.d.ts b/types/react-icons/lib/go/repo-pull.d.ts new file mode 100644 index 0000000000..916310f2bc --- /dev/null +++ b/types/react-icons/lib/go/repo-pull.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoRepoPull extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/repo-push.d.ts b/types/react-icons/lib/go/repo-push.d.ts new file mode 100644 index 0000000000..5e9a25d3a6 --- /dev/null +++ b/types/react-icons/lib/go/repo-push.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoRepoPush extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/repo.d.ts b/types/react-icons/lib/go/repo.d.ts new file mode 100644 index 0000000000..87dd983849 --- /dev/null +++ b/types/react-icons/lib/go/repo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoRepo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/rocket.d.ts b/types/react-icons/lib/go/rocket.d.ts new file mode 100644 index 0000000000..04a9f8fbbb --- /dev/null +++ b/types/react-icons/lib/go/rocket.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoRocket extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/rss.d.ts b/types/react-icons/lib/go/rss.d.ts new file mode 100644 index 0000000000..d18a40a2fb --- /dev/null +++ b/types/react-icons/lib/go/rss.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoRss extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/ruby.d.ts b/types/react-icons/lib/go/ruby.d.ts new file mode 100644 index 0000000000..467aecdce6 --- /dev/null +++ b/types/react-icons/lib/go/ruby.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoRuby extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/screen-full.d.ts b/types/react-icons/lib/go/screen-full.d.ts new file mode 100644 index 0000000000..f3eae2a63e --- /dev/null +++ b/types/react-icons/lib/go/screen-full.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoScreenFull extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/screen-normal.d.ts b/types/react-icons/lib/go/screen-normal.d.ts new file mode 100644 index 0000000000..59e38edc81 --- /dev/null +++ b/types/react-icons/lib/go/screen-normal.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoScreenNormal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/search.d.ts b/types/react-icons/lib/go/search.d.ts new file mode 100644 index 0000000000..54d1144369 --- /dev/null +++ b/types/react-icons/lib/go/search.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoSearch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/server.d.ts b/types/react-icons/lib/go/server.d.ts new file mode 100644 index 0000000000..1de141c1a2 --- /dev/null +++ b/types/react-icons/lib/go/server.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoServer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/settings.d.ts b/types/react-icons/lib/go/settings.d.ts new file mode 100644 index 0000000000..a583ebe0fe --- /dev/null +++ b/types/react-icons/lib/go/settings.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoSettings extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/sign-in.d.ts b/types/react-icons/lib/go/sign-in.d.ts new file mode 100644 index 0000000000..f1788d6395 --- /dev/null +++ b/types/react-icons/lib/go/sign-in.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoSignIn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/sign-out.d.ts b/types/react-icons/lib/go/sign-out.d.ts new file mode 100644 index 0000000000..dd87a41f43 --- /dev/null +++ b/types/react-icons/lib/go/sign-out.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoSignOut extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/split.d.ts b/types/react-icons/lib/go/split.d.ts new file mode 100644 index 0000000000..4b930df74c --- /dev/null +++ b/types/react-icons/lib/go/split.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoSplit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/squirrel.d.ts b/types/react-icons/lib/go/squirrel.d.ts new file mode 100644 index 0000000000..2c1bfdc544 --- /dev/null +++ b/types/react-icons/lib/go/squirrel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoSquirrel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/star.d.ts b/types/react-icons/lib/go/star.d.ts new file mode 100644 index 0000000000..a5f1a3718e --- /dev/null +++ b/types/react-icons/lib/go/star.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoStar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/steps.d.ts b/types/react-icons/lib/go/steps.d.ts new file mode 100644 index 0000000000..ae1bd0f758 --- /dev/null +++ b/types/react-icons/lib/go/steps.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoSteps extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/stop.d.ts b/types/react-icons/lib/go/stop.d.ts new file mode 100644 index 0000000000..6036ca3c7f --- /dev/null +++ b/types/react-icons/lib/go/stop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoStop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/sync.d.ts b/types/react-icons/lib/go/sync.d.ts new file mode 100644 index 0000000000..7a0ab4e316 --- /dev/null +++ b/types/react-icons/lib/go/sync.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoSync extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/tag.d.ts b/types/react-icons/lib/go/tag.d.ts new file mode 100644 index 0000000000..ff161ead97 --- /dev/null +++ b/types/react-icons/lib/go/tag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoTag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/telescope.d.ts b/types/react-icons/lib/go/telescope.d.ts new file mode 100644 index 0000000000..943c1764db --- /dev/null +++ b/types/react-icons/lib/go/telescope.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoTelescope extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/terminal.d.ts b/types/react-icons/lib/go/terminal.d.ts new file mode 100644 index 0000000000..e21c5a9461 --- /dev/null +++ b/types/react-icons/lib/go/terminal.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoTerminal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/three-bars.d.ts b/types/react-icons/lib/go/three-bars.d.ts new file mode 100644 index 0000000000..75fe787e3f --- /dev/null +++ b/types/react-icons/lib/go/three-bars.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoThreeBars extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/tools.d.ts b/types/react-icons/lib/go/tools.d.ts new file mode 100644 index 0000000000..8229abce20 --- /dev/null +++ b/types/react-icons/lib/go/tools.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoTools extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/trashcan.d.ts b/types/react-icons/lib/go/trashcan.d.ts new file mode 100644 index 0000000000..4b27fba299 --- /dev/null +++ b/types/react-icons/lib/go/trashcan.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoTrashcan extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/triangle-down.d.ts b/types/react-icons/lib/go/triangle-down.d.ts new file mode 100644 index 0000000000..de19ba459a --- /dev/null +++ b/types/react-icons/lib/go/triangle-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoTriangleDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/triangle-left.d.ts b/types/react-icons/lib/go/triangle-left.d.ts new file mode 100644 index 0000000000..309b832111 --- /dev/null +++ b/types/react-icons/lib/go/triangle-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoTriangleLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/triangle-right.d.ts b/types/react-icons/lib/go/triangle-right.d.ts new file mode 100644 index 0000000000..989f428fb3 --- /dev/null +++ b/types/react-icons/lib/go/triangle-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoTriangleRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/triangle-up.d.ts b/types/react-icons/lib/go/triangle-up.d.ts new file mode 100644 index 0000000000..fae4ac1c25 --- /dev/null +++ b/types/react-icons/lib/go/triangle-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoTriangleUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/unfold.d.ts b/types/react-icons/lib/go/unfold.d.ts new file mode 100644 index 0000000000..1c00f170d5 --- /dev/null +++ b/types/react-icons/lib/go/unfold.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoUnfold extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/unmute.d.ts b/types/react-icons/lib/go/unmute.d.ts new file mode 100644 index 0000000000..90eda20972 --- /dev/null +++ b/types/react-icons/lib/go/unmute.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoUnmute extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/versions.d.ts b/types/react-icons/lib/go/versions.d.ts new file mode 100644 index 0000000000..d11586398f --- /dev/null +++ b/types/react-icons/lib/go/versions.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoVersions extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/x.d.ts b/types/react-icons/lib/go/x.d.ts new file mode 100644 index 0000000000..379cb94d5c --- /dev/null +++ b/types/react-icons/lib/go/x.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoX extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/go/zap.d.ts b/types/react-icons/lib/go/zap.d.ts new file mode 100644 index 0000000000..9dafc26355 --- /dev/null +++ b/types/react-icons/lib/go/zap.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class GoZap extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/alert-circled.d.ts b/types/react-icons/lib/io/alert-circled.d.ts new file mode 100644 index 0000000000..1fc164cf30 --- /dev/null +++ b/types/react-icons/lib/io/alert-circled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAlertCircled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/alert.d.ts b/types/react-icons/lib/io/alert.d.ts new file mode 100644 index 0000000000..f3f236a07b --- /dev/null +++ b/types/react-icons/lib/io/alert.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAlert extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-add-circle.d.ts b/types/react-icons/lib/io/android-add-circle.d.ts new file mode 100644 index 0000000000..83301fe5b9 --- /dev/null +++ b/types/react-icons/lib/io/android-add-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidAddCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-add.d.ts b/types/react-icons/lib/io/android-add.d.ts new file mode 100644 index 0000000000..d6ec32e120 --- /dev/null +++ b/types/react-icons/lib/io/android-add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-alarm-clock.d.ts b/types/react-icons/lib/io/android-alarm-clock.d.ts new file mode 100644 index 0000000000..ba7424414a --- /dev/null +++ b/types/react-icons/lib/io/android-alarm-clock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidAlarmClock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-alert.d.ts b/types/react-icons/lib/io/android-alert.d.ts new file mode 100644 index 0000000000..23f9c0fc85 --- /dev/null +++ b/types/react-icons/lib/io/android-alert.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidAlert extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-apps.d.ts b/types/react-icons/lib/io/android-apps.d.ts new file mode 100644 index 0000000000..4ce9dca7c6 --- /dev/null +++ b/types/react-icons/lib/io/android-apps.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidApps extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-archive.d.ts b/types/react-icons/lib/io/android-archive.d.ts new file mode 100644 index 0000000000..bd86f53213 --- /dev/null +++ b/types/react-icons/lib/io/android-archive.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidArchive extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-arrow-back.d.ts b/types/react-icons/lib/io/android-arrow-back.d.ts new file mode 100644 index 0000000000..ccf8a5dc52 --- /dev/null +++ b/types/react-icons/lib/io/android-arrow-back.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidArrowBack extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-arrow-down.d.ts b/types/react-icons/lib/io/android-arrow-down.d.ts new file mode 100644 index 0000000000..71d5471bb6 --- /dev/null +++ b/types/react-icons/lib/io/android-arrow-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidArrowDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-arrow-dropdown-circle.d.ts b/types/react-icons/lib/io/android-arrow-dropdown-circle.d.ts new file mode 100644 index 0000000000..6a11a88c20 --- /dev/null +++ b/types/react-icons/lib/io/android-arrow-dropdown-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidArrowDropdownCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-arrow-dropdown.d.ts b/types/react-icons/lib/io/android-arrow-dropdown.d.ts new file mode 100644 index 0000000000..ec91403322 --- /dev/null +++ b/types/react-icons/lib/io/android-arrow-dropdown.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidArrowDropdown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-arrow-dropleft-circle.d.ts b/types/react-icons/lib/io/android-arrow-dropleft-circle.d.ts new file mode 100644 index 0000000000..a972b89ae8 --- /dev/null +++ b/types/react-icons/lib/io/android-arrow-dropleft-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidArrowDropleftCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-arrow-dropleft.d.ts b/types/react-icons/lib/io/android-arrow-dropleft.d.ts new file mode 100644 index 0000000000..0477b93c0b --- /dev/null +++ b/types/react-icons/lib/io/android-arrow-dropleft.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidArrowDropleft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-arrow-dropright-circle.d.ts b/types/react-icons/lib/io/android-arrow-dropright-circle.d.ts new file mode 100644 index 0000000000..2e53387d79 --- /dev/null +++ b/types/react-icons/lib/io/android-arrow-dropright-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidArrowDroprightCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-arrow-dropright.d.ts b/types/react-icons/lib/io/android-arrow-dropright.d.ts new file mode 100644 index 0000000000..b1ebcac3a3 --- /dev/null +++ b/types/react-icons/lib/io/android-arrow-dropright.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidArrowDropright extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-arrow-dropup-circle.d.ts b/types/react-icons/lib/io/android-arrow-dropup-circle.d.ts new file mode 100644 index 0000000000..cb8d87c3b7 --- /dev/null +++ b/types/react-icons/lib/io/android-arrow-dropup-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidArrowDropupCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-arrow-dropup.d.ts b/types/react-icons/lib/io/android-arrow-dropup.d.ts new file mode 100644 index 0000000000..b52c196650 --- /dev/null +++ b/types/react-icons/lib/io/android-arrow-dropup.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidArrowDropup extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-arrow-forward.d.ts b/types/react-icons/lib/io/android-arrow-forward.d.ts new file mode 100644 index 0000000000..a2e4cfcf3c --- /dev/null +++ b/types/react-icons/lib/io/android-arrow-forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidArrowForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-arrow-up.d.ts b/types/react-icons/lib/io/android-arrow-up.d.ts new file mode 100644 index 0000000000..8d30e1f1d6 --- /dev/null +++ b/types/react-icons/lib/io/android-arrow-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidArrowUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-attach.d.ts b/types/react-icons/lib/io/android-attach.d.ts new file mode 100644 index 0000000000..42b704ef71 --- /dev/null +++ b/types/react-icons/lib/io/android-attach.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidAttach extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-bar.d.ts b/types/react-icons/lib/io/android-bar.d.ts new file mode 100644 index 0000000000..0dbc0148db --- /dev/null +++ b/types/react-icons/lib/io/android-bar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidBar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-bicycle.d.ts b/types/react-icons/lib/io/android-bicycle.d.ts new file mode 100644 index 0000000000..7e8c1ef911 --- /dev/null +++ b/types/react-icons/lib/io/android-bicycle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidBicycle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-boat.d.ts b/types/react-icons/lib/io/android-boat.d.ts new file mode 100644 index 0000000000..59bf285c2b --- /dev/null +++ b/types/react-icons/lib/io/android-boat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidBoat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-bookmark.d.ts b/types/react-icons/lib/io/android-bookmark.d.ts new file mode 100644 index 0000000000..1585e691ac --- /dev/null +++ b/types/react-icons/lib/io/android-bookmark.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidBookmark extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-bulb.d.ts b/types/react-icons/lib/io/android-bulb.d.ts new file mode 100644 index 0000000000..04b9d70acb --- /dev/null +++ b/types/react-icons/lib/io/android-bulb.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidBulb extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-bus.d.ts b/types/react-icons/lib/io/android-bus.d.ts new file mode 100644 index 0000000000..2e93dc479b --- /dev/null +++ b/types/react-icons/lib/io/android-bus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidBus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-calendar.d.ts b/types/react-icons/lib/io/android-calendar.d.ts new file mode 100644 index 0000000000..a884f3ff51 --- /dev/null +++ b/types/react-icons/lib/io/android-calendar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCalendar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-call.d.ts b/types/react-icons/lib/io/android-call.d.ts new file mode 100644 index 0000000000..2b13615abf --- /dev/null +++ b/types/react-icons/lib/io/android-call.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCall extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-camera.d.ts b/types/react-icons/lib/io/android-camera.d.ts new file mode 100644 index 0000000000..042a0b2694 --- /dev/null +++ b/types/react-icons/lib/io/android-camera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCamera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-cancel.d.ts b/types/react-icons/lib/io/android-cancel.d.ts new file mode 100644 index 0000000000..067a2a32f0 --- /dev/null +++ b/types/react-icons/lib/io/android-cancel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCancel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-car.d.ts b/types/react-icons/lib/io/android-car.d.ts new file mode 100644 index 0000000000..fcb7c849d8 --- /dev/null +++ b/types/react-icons/lib/io/android-car.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-cart.d.ts b/types/react-icons/lib/io/android-cart.d.ts new file mode 100644 index 0000000000..7d944a55c5 --- /dev/null +++ b/types/react-icons/lib/io/android-cart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-chat.d.ts b/types/react-icons/lib/io/android-chat.d.ts new file mode 100644 index 0000000000..8789c4f12b --- /dev/null +++ b/types/react-icons/lib/io/android-chat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidChat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-checkbox-blank.d.ts b/types/react-icons/lib/io/android-checkbox-blank.d.ts new file mode 100644 index 0000000000..2651183ba1 --- /dev/null +++ b/types/react-icons/lib/io/android-checkbox-blank.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCheckboxBlank extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-checkbox-outline-blank.d.ts b/types/react-icons/lib/io/android-checkbox-outline-blank.d.ts new file mode 100644 index 0000000000..cf6a3a3d5e --- /dev/null +++ b/types/react-icons/lib/io/android-checkbox-outline-blank.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCheckboxOutlineBlank extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-checkbox-outline.d.ts b/types/react-icons/lib/io/android-checkbox-outline.d.ts new file mode 100644 index 0000000000..3a6347a302 --- /dev/null +++ b/types/react-icons/lib/io/android-checkbox-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCheckboxOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-checkbox.d.ts b/types/react-icons/lib/io/android-checkbox.d.ts new file mode 100644 index 0000000000..cb21d62e65 --- /dev/null +++ b/types/react-icons/lib/io/android-checkbox.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCheckbox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-checkmark-circle.d.ts b/types/react-icons/lib/io/android-checkmark-circle.d.ts new file mode 100644 index 0000000000..3671ada3d0 --- /dev/null +++ b/types/react-icons/lib/io/android-checkmark-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCheckmarkCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-clipboard.d.ts b/types/react-icons/lib/io/android-clipboard.d.ts new file mode 100644 index 0000000000..3d93506b17 --- /dev/null +++ b/types/react-icons/lib/io/android-clipboard.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidClipboard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-close.d.ts b/types/react-icons/lib/io/android-close.d.ts new file mode 100644 index 0000000000..ad32b8b302 --- /dev/null +++ b/types/react-icons/lib/io/android-close.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidClose extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-cloud-circle.d.ts b/types/react-icons/lib/io/android-cloud-circle.d.ts new file mode 100644 index 0000000000..9c30f64677 --- /dev/null +++ b/types/react-icons/lib/io/android-cloud-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCloudCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-cloud-done.d.ts b/types/react-icons/lib/io/android-cloud-done.d.ts new file mode 100644 index 0000000000..6900251eec --- /dev/null +++ b/types/react-icons/lib/io/android-cloud-done.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCloudDone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-cloud-outline.d.ts b/types/react-icons/lib/io/android-cloud-outline.d.ts new file mode 100644 index 0000000000..a8144aad15 --- /dev/null +++ b/types/react-icons/lib/io/android-cloud-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCloudOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-cloud.d.ts b/types/react-icons/lib/io/android-cloud.d.ts new file mode 100644 index 0000000000..e0fc48bfd5 --- /dev/null +++ b/types/react-icons/lib/io/android-cloud.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCloud extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-color-palette.d.ts b/types/react-icons/lib/io/android-color-palette.d.ts new file mode 100644 index 0000000000..79ddef8b10 --- /dev/null +++ b/types/react-icons/lib/io/android-color-palette.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidColorPalette extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-compass.d.ts b/types/react-icons/lib/io/android-compass.d.ts new file mode 100644 index 0000000000..c577a6a3fd --- /dev/null +++ b/types/react-icons/lib/io/android-compass.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCompass extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-contact.d.ts b/types/react-icons/lib/io/android-contact.d.ts new file mode 100644 index 0000000000..933faca311 --- /dev/null +++ b/types/react-icons/lib/io/android-contact.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidContact extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-contacts.d.ts b/types/react-icons/lib/io/android-contacts.d.ts new file mode 100644 index 0000000000..22f23054ff --- /dev/null +++ b/types/react-icons/lib/io/android-contacts.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidContacts extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-contract.d.ts b/types/react-icons/lib/io/android-contract.d.ts new file mode 100644 index 0000000000..87c6a88fa1 --- /dev/null +++ b/types/react-icons/lib/io/android-contract.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidContract extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-create.d.ts b/types/react-icons/lib/io/android-create.d.ts new file mode 100644 index 0000000000..38c4a7fa79 --- /dev/null +++ b/types/react-icons/lib/io/android-create.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidCreate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-delete.d.ts b/types/react-icons/lib/io/android-delete.d.ts new file mode 100644 index 0000000000..1863649507 --- /dev/null +++ b/types/react-icons/lib/io/android-delete.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidDelete extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-desktop.d.ts b/types/react-icons/lib/io/android-desktop.d.ts new file mode 100644 index 0000000000..a8233e4c61 --- /dev/null +++ b/types/react-icons/lib/io/android-desktop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidDesktop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-document.d.ts b/types/react-icons/lib/io/android-document.d.ts new file mode 100644 index 0000000000..b2a4c4d5a3 --- /dev/null +++ b/types/react-icons/lib/io/android-document.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidDocument extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-done-all.d.ts b/types/react-icons/lib/io/android-done-all.d.ts new file mode 100644 index 0000000000..9759331f5e --- /dev/null +++ b/types/react-icons/lib/io/android-done-all.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidDoneAll extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-done.d.ts b/types/react-icons/lib/io/android-done.d.ts new file mode 100644 index 0000000000..ef68fc8e34 --- /dev/null +++ b/types/react-icons/lib/io/android-done.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidDone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-download.d.ts b/types/react-icons/lib/io/android-download.d.ts new file mode 100644 index 0000000000..35caf226ba --- /dev/null +++ b/types/react-icons/lib/io/android-download.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidDownload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-drafts.d.ts b/types/react-icons/lib/io/android-drafts.d.ts new file mode 100644 index 0000000000..c143e50a3d --- /dev/null +++ b/types/react-icons/lib/io/android-drafts.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidDrafts extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-exit.d.ts b/types/react-icons/lib/io/android-exit.d.ts new file mode 100644 index 0000000000..ad1c1fa91e --- /dev/null +++ b/types/react-icons/lib/io/android-exit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidExit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-expand.d.ts b/types/react-icons/lib/io/android-expand.d.ts new file mode 100644 index 0000000000..01e32a17c5 --- /dev/null +++ b/types/react-icons/lib/io/android-expand.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidExpand extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-favorite-outline.d.ts b/types/react-icons/lib/io/android-favorite-outline.d.ts new file mode 100644 index 0000000000..9d26146836 --- /dev/null +++ b/types/react-icons/lib/io/android-favorite-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidFavoriteOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-favorite.d.ts b/types/react-icons/lib/io/android-favorite.d.ts new file mode 100644 index 0000000000..17fd1ebcb0 --- /dev/null +++ b/types/react-icons/lib/io/android-favorite.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidFavorite extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-film.d.ts b/types/react-icons/lib/io/android-film.d.ts new file mode 100644 index 0000000000..d78bd6bf92 --- /dev/null +++ b/types/react-icons/lib/io/android-film.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidFilm extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-folder-open.d.ts b/types/react-icons/lib/io/android-folder-open.d.ts new file mode 100644 index 0000000000..b494784e58 --- /dev/null +++ b/types/react-icons/lib/io/android-folder-open.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidFolderOpen extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-folder.d.ts b/types/react-icons/lib/io/android-folder.d.ts new file mode 100644 index 0000000000..19fa386920 --- /dev/null +++ b/types/react-icons/lib/io/android-folder.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidFolder extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-funnel.d.ts b/types/react-icons/lib/io/android-funnel.d.ts new file mode 100644 index 0000000000..a43e13c0e5 --- /dev/null +++ b/types/react-icons/lib/io/android-funnel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidFunnel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-globe.d.ts b/types/react-icons/lib/io/android-globe.d.ts new file mode 100644 index 0000000000..7d27e58cc1 --- /dev/null +++ b/types/react-icons/lib/io/android-globe.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidGlobe extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-hand.d.ts b/types/react-icons/lib/io/android-hand.d.ts new file mode 100644 index 0000000000..280652d333 --- /dev/null +++ b/types/react-icons/lib/io/android-hand.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidHand extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-hangout.d.ts b/types/react-icons/lib/io/android-hangout.d.ts new file mode 100644 index 0000000000..452158902c --- /dev/null +++ b/types/react-icons/lib/io/android-hangout.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidHangout extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-happy.d.ts b/types/react-icons/lib/io/android-happy.d.ts new file mode 100644 index 0000000000..7343ceb5dd --- /dev/null +++ b/types/react-icons/lib/io/android-happy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidHappy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-home.d.ts b/types/react-icons/lib/io/android-home.d.ts new file mode 100644 index 0000000000..75cc1ed488 --- /dev/null +++ b/types/react-icons/lib/io/android-home.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidHome extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-image.d.ts b/types/react-icons/lib/io/android-image.d.ts new file mode 100644 index 0000000000..46d20ffdc2 --- /dev/null +++ b/types/react-icons/lib/io/android-image.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidImage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-laptop.d.ts b/types/react-icons/lib/io/android-laptop.d.ts new file mode 100644 index 0000000000..749f603ebc --- /dev/null +++ b/types/react-icons/lib/io/android-laptop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidLaptop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-list.d.ts b/types/react-icons/lib/io/android-list.d.ts new file mode 100644 index 0000000000..d366495d98 --- /dev/null +++ b/types/react-icons/lib/io/android-list.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidList extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-locate.d.ts b/types/react-icons/lib/io/android-locate.d.ts new file mode 100644 index 0000000000..b99c14cf66 --- /dev/null +++ b/types/react-icons/lib/io/android-locate.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidLocate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-lock.d.ts b/types/react-icons/lib/io/android-lock.d.ts new file mode 100644 index 0000000000..5447214ecf --- /dev/null +++ b/types/react-icons/lib/io/android-lock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidLock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-mail.d.ts b/types/react-icons/lib/io/android-mail.d.ts new file mode 100644 index 0000000000..29529c349f --- /dev/null +++ b/types/react-icons/lib/io/android-mail.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidMail extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-map.d.ts b/types/react-icons/lib/io/android-map.d.ts new file mode 100644 index 0000000000..521561d56e --- /dev/null +++ b/types/react-icons/lib/io/android-map.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidMap extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-menu.d.ts b/types/react-icons/lib/io/android-menu.d.ts new file mode 100644 index 0000000000..f14d3f29fa --- /dev/null +++ b/types/react-icons/lib/io/android-menu.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidMenu extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-microphone-off.d.ts b/types/react-icons/lib/io/android-microphone-off.d.ts new file mode 100644 index 0000000000..57ea0597db --- /dev/null +++ b/types/react-icons/lib/io/android-microphone-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidMicrophoneOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-microphone.d.ts b/types/react-icons/lib/io/android-microphone.d.ts new file mode 100644 index 0000000000..2e9105f34a --- /dev/null +++ b/types/react-icons/lib/io/android-microphone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidMicrophone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-more-horizontal.d.ts b/types/react-icons/lib/io/android-more-horizontal.d.ts new file mode 100644 index 0000000000..4bdb7f35fd --- /dev/null +++ b/types/react-icons/lib/io/android-more-horizontal.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidMoreHorizontal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-more-vertical.d.ts b/types/react-icons/lib/io/android-more-vertical.d.ts new file mode 100644 index 0000000000..f3b900b03a --- /dev/null +++ b/types/react-icons/lib/io/android-more-vertical.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidMoreVertical extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-navigate.d.ts b/types/react-icons/lib/io/android-navigate.d.ts new file mode 100644 index 0000000000..c062fdb9a2 --- /dev/null +++ b/types/react-icons/lib/io/android-navigate.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidNavigate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-notifications-none.d.ts b/types/react-icons/lib/io/android-notifications-none.d.ts new file mode 100644 index 0000000000..a5df08d48a --- /dev/null +++ b/types/react-icons/lib/io/android-notifications-none.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidNotificationsNone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-notifications-off.d.ts b/types/react-icons/lib/io/android-notifications-off.d.ts new file mode 100644 index 0000000000..38e64be76b --- /dev/null +++ b/types/react-icons/lib/io/android-notifications-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidNotificationsOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-notifications.d.ts b/types/react-icons/lib/io/android-notifications.d.ts new file mode 100644 index 0000000000..f3fdc7b4fe --- /dev/null +++ b/types/react-icons/lib/io/android-notifications.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidNotifications extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-open.d.ts b/types/react-icons/lib/io/android-open.d.ts new file mode 100644 index 0000000000..8ef0abebde --- /dev/null +++ b/types/react-icons/lib/io/android-open.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidOpen extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-options.d.ts b/types/react-icons/lib/io/android-options.d.ts new file mode 100644 index 0000000000..61640a419f --- /dev/null +++ b/types/react-icons/lib/io/android-options.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidOptions extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-people.d.ts b/types/react-icons/lib/io/android-people.d.ts new file mode 100644 index 0000000000..4f19a67eda --- /dev/null +++ b/types/react-icons/lib/io/android-people.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidPeople extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-person-add.d.ts b/types/react-icons/lib/io/android-person-add.d.ts new file mode 100644 index 0000000000..4fe6408fe0 --- /dev/null +++ b/types/react-icons/lib/io/android-person-add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidPersonAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-person.d.ts b/types/react-icons/lib/io/android-person.d.ts new file mode 100644 index 0000000000..ad0e00481a --- /dev/null +++ b/types/react-icons/lib/io/android-person.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidPerson extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-phone-landscape.d.ts b/types/react-icons/lib/io/android-phone-landscape.d.ts new file mode 100644 index 0000000000..bfff8ac323 --- /dev/null +++ b/types/react-icons/lib/io/android-phone-landscape.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidPhoneLandscape extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-phone-portrait.d.ts b/types/react-icons/lib/io/android-phone-portrait.d.ts new file mode 100644 index 0000000000..4a14130c8d --- /dev/null +++ b/types/react-icons/lib/io/android-phone-portrait.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidPhonePortrait extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-pin.d.ts b/types/react-icons/lib/io/android-pin.d.ts new file mode 100644 index 0000000000..5819b33b52 --- /dev/null +++ b/types/react-icons/lib/io/android-pin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidPin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-plane.d.ts b/types/react-icons/lib/io/android-plane.d.ts new file mode 100644 index 0000000000..4b436e096b --- /dev/null +++ b/types/react-icons/lib/io/android-plane.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidPlane extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-playstore.d.ts b/types/react-icons/lib/io/android-playstore.d.ts new file mode 100644 index 0000000000..99174ccab2 --- /dev/null +++ b/types/react-icons/lib/io/android-playstore.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidPlaystore extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-print.d.ts b/types/react-icons/lib/io/android-print.d.ts new file mode 100644 index 0000000000..b2f5807f06 --- /dev/null +++ b/types/react-icons/lib/io/android-print.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidPrint extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-radio-button-off.d.ts b/types/react-icons/lib/io/android-radio-button-off.d.ts new file mode 100644 index 0000000000..fc2f705ff1 --- /dev/null +++ b/types/react-icons/lib/io/android-radio-button-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidRadioButtonOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-radio-button-on.d.ts b/types/react-icons/lib/io/android-radio-button-on.d.ts new file mode 100644 index 0000000000..be28d7626e --- /dev/null +++ b/types/react-icons/lib/io/android-radio-button-on.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidRadioButtonOn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-refresh.d.ts b/types/react-icons/lib/io/android-refresh.d.ts new file mode 100644 index 0000000000..eee0a2b96f --- /dev/null +++ b/types/react-icons/lib/io/android-refresh.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidRefresh extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-remove-circle.d.ts b/types/react-icons/lib/io/android-remove-circle.d.ts new file mode 100644 index 0000000000..7c525668f8 --- /dev/null +++ b/types/react-icons/lib/io/android-remove-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidRemoveCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-remove.d.ts b/types/react-icons/lib/io/android-remove.d.ts new file mode 100644 index 0000000000..3767b079d3 --- /dev/null +++ b/types/react-icons/lib/io/android-remove.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidRemove extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-restaurant.d.ts b/types/react-icons/lib/io/android-restaurant.d.ts new file mode 100644 index 0000000000..5bb7a6ef15 --- /dev/null +++ b/types/react-icons/lib/io/android-restaurant.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidRestaurant extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-sad.d.ts b/types/react-icons/lib/io/android-sad.d.ts new file mode 100644 index 0000000000..dc45162222 --- /dev/null +++ b/types/react-icons/lib/io/android-sad.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidSad extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-search.d.ts b/types/react-icons/lib/io/android-search.d.ts new file mode 100644 index 0000000000..b5158286a1 --- /dev/null +++ b/types/react-icons/lib/io/android-search.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidSearch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-send.d.ts b/types/react-icons/lib/io/android-send.d.ts new file mode 100644 index 0000000000..eebec03631 --- /dev/null +++ b/types/react-icons/lib/io/android-send.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidSend extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-settings.d.ts b/types/react-icons/lib/io/android-settings.d.ts new file mode 100644 index 0000000000..c302aedf0c --- /dev/null +++ b/types/react-icons/lib/io/android-settings.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidSettings extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-share-alt.d.ts b/types/react-icons/lib/io/android-share-alt.d.ts new file mode 100644 index 0000000000..dcdb8a648c --- /dev/null +++ b/types/react-icons/lib/io/android-share-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidShareAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-share.d.ts b/types/react-icons/lib/io/android-share.d.ts new file mode 100644 index 0000000000..6b61e7c4e9 --- /dev/null +++ b/types/react-icons/lib/io/android-share.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidShare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-star-half.d.ts b/types/react-icons/lib/io/android-star-half.d.ts new file mode 100644 index 0000000000..6a9ce4048a --- /dev/null +++ b/types/react-icons/lib/io/android-star-half.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidStarHalf extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-star-outline.d.ts b/types/react-icons/lib/io/android-star-outline.d.ts new file mode 100644 index 0000000000..3413a8803c --- /dev/null +++ b/types/react-icons/lib/io/android-star-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidStarOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-star.d.ts b/types/react-icons/lib/io/android-star.d.ts new file mode 100644 index 0000000000..0c6beadab5 --- /dev/null +++ b/types/react-icons/lib/io/android-star.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidStar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-stopwatch.d.ts b/types/react-icons/lib/io/android-stopwatch.d.ts new file mode 100644 index 0000000000..1094ca3036 --- /dev/null +++ b/types/react-icons/lib/io/android-stopwatch.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidStopwatch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-subway.d.ts b/types/react-icons/lib/io/android-subway.d.ts new file mode 100644 index 0000000000..1939fd06d3 --- /dev/null +++ b/types/react-icons/lib/io/android-subway.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidSubway extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-sunny.d.ts b/types/react-icons/lib/io/android-sunny.d.ts new file mode 100644 index 0000000000..382cc921aa --- /dev/null +++ b/types/react-icons/lib/io/android-sunny.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidSunny extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-sync.d.ts b/types/react-icons/lib/io/android-sync.d.ts new file mode 100644 index 0000000000..27b8493ecf --- /dev/null +++ b/types/react-icons/lib/io/android-sync.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidSync extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-textsms.d.ts b/types/react-icons/lib/io/android-textsms.d.ts new file mode 100644 index 0000000000..8020ed572a --- /dev/null +++ b/types/react-icons/lib/io/android-textsms.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidTextsms extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-time.d.ts b/types/react-icons/lib/io/android-time.d.ts new file mode 100644 index 0000000000..741d66a005 --- /dev/null +++ b/types/react-icons/lib/io/android-time.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidTime extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-train.d.ts b/types/react-icons/lib/io/android-train.d.ts new file mode 100644 index 0000000000..c55e985bdd --- /dev/null +++ b/types/react-icons/lib/io/android-train.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidTrain extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-unlock.d.ts b/types/react-icons/lib/io/android-unlock.d.ts new file mode 100644 index 0000000000..5eec9a875c --- /dev/null +++ b/types/react-icons/lib/io/android-unlock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidUnlock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-upload.d.ts b/types/react-icons/lib/io/android-upload.d.ts new file mode 100644 index 0000000000..d5e092172f --- /dev/null +++ b/types/react-icons/lib/io/android-upload.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidUpload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-volume-down.d.ts b/types/react-icons/lib/io/android-volume-down.d.ts new file mode 100644 index 0000000000..ce256873be --- /dev/null +++ b/types/react-icons/lib/io/android-volume-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidVolumeDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-volume-mute.d.ts b/types/react-icons/lib/io/android-volume-mute.d.ts new file mode 100644 index 0000000000..0675809779 --- /dev/null +++ b/types/react-icons/lib/io/android-volume-mute.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidVolumeMute extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-volume-off.d.ts b/types/react-icons/lib/io/android-volume-off.d.ts new file mode 100644 index 0000000000..76cbb85947 --- /dev/null +++ b/types/react-icons/lib/io/android-volume-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidVolumeOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-volume-up.d.ts b/types/react-icons/lib/io/android-volume-up.d.ts new file mode 100644 index 0000000000..ff3531cf02 --- /dev/null +++ b/types/react-icons/lib/io/android-volume-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidVolumeUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-walk.d.ts b/types/react-icons/lib/io/android-walk.d.ts new file mode 100644 index 0000000000..2d9c9fdfeb --- /dev/null +++ b/types/react-icons/lib/io/android-walk.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidWalk extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-warning.d.ts b/types/react-icons/lib/io/android-warning.d.ts new file mode 100644 index 0000000000..ae0512a305 --- /dev/null +++ b/types/react-icons/lib/io/android-warning.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidWarning extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-watch.d.ts b/types/react-icons/lib/io/android-watch.d.ts new file mode 100644 index 0000000000..fd4f03a21d --- /dev/null +++ b/types/react-icons/lib/io/android-watch.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidWatch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/android-wifi.d.ts b/types/react-icons/lib/io/android-wifi.d.ts new file mode 100644 index 0000000000..52f56bfd92 --- /dev/null +++ b/types/react-icons/lib/io/android-wifi.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAndroidWifi extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/aperture.d.ts b/types/react-icons/lib/io/aperture.d.ts new file mode 100644 index 0000000000..433117938f --- /dev/null +++ b/types/react-icons/lib/io/aperture.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAperture extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/archive.d.ts b/types/react-icons/lib/io/archive.d.ts new file mode 100644 index 0000000000..90863a6615 --- /dev/null +++ b/types/react-icons/lib/io/archive.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArchive extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-down-a.d.ts b/types/react-icons/lib/io/arrow-down-a.d.ts new file mode 100644 index 0000000000..eadf0800bb --- /dev/null +++ b/types/react-icons/lib/io/arrow-down-a.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowDownA extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-down-b.d.ts b/types/react-icons/lib/io/arrow-down-b.d.ts new file mode 100644 index 0000000000..281147e627 --- /dev/null +++ b/types/react-icons/lib/io/arrow-down-b.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowDownB extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-down-c.d.ts b/types/react-icons/lib/io/arrow-down-c.d.ts new file mode 100644 index 0000000000..ab561572b2 --- /dev/null +++ b/types/react-icons/lib/io/arrow-down-c.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowDownC extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-expand.d.ts b/types/react-icons/lib/io/arrow-expand.d.ts new file mode 100644 index 0000000000..273819c731 --- /dev/null +++ b/types/react-icons/lib/io/arrow-expand.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowExpand extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-graph-down-left.d.ts b/types/react-icons/lib/io/arrow-graph-down-left.d.ts new file mode 100644 index 0000000000..db6c5aed00 --- /dev/null +++ b/types/react-icons/lib/io/arrow-graph-down-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowGraphDownLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-graph-down-right.d.ts b/types/react-icons/lib/io/arrow-graph-down-right.d.ts new file mode 100644 index 0000000000..f64ec5a4b5 --- /dev/null +++ b/types/react-icons/lib/io/arrow-graph-down-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowGraphDownRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-graph-up-left.d.ts b/types/react-icons/lib/io/arrow-graph-up-left.d.ts new file mode 100644 index 0000000000..d4c1f87aee --- /dev/null +++ b/types/react-icons/lib/io/arrow-graph-up-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowGraphUpLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-graph-up-right.d.ts b/types/react-icons/lib/io/arrow-graph-up-right.d.ts new file mode 100644 index 0000000000..2b79959860 --- /dev/null +++ b/types/react-icons/lib/io/arrow-graph-up-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowGraphUpRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-left-a.d.ts b/types/react-icons/lib/io/arrow-left-a.d.ts new file mode 100644 index 0000000000..3e7fb51bdd --- /dev/null +++ b/types/react-icons/lib/io/arrow-left-a.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowLeftA extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-left-b.d.ts b/types/react-icons/lib/io/arrow-left-b.d.ts new file mode 100644 index 0000000000..537365c037 --- /dev/null +++ b/types/react-icons/lib/io/arrow-left-b.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowLeftB extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-left-c.d.ts b/types/react-icons/lib/io/arrow-left-c.d.ts new file mode 100644 index 0000000000..a831c73c50 --- /dev/null +++ b/types/react-icons/lib/io/arrow-left-c.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowLeftC extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-move.d.ts b/types/react-icons/lib/io/arrow-move.d.ts new file mode 100644 index 0000000000..1a61a6c75c --- /dev/null +++ b/types/react-icons/lib/io/arrow-move.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowMove extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-resize.d.ts b/types/react-icons/lib/io/arrow-resize.d.ts new file mode 100644 index 0000000000..a8efbc36cf --- /dev/null +++ b/types/react-icons/lib/io/arrow-resize.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowResize extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-return-left.d.ts b/types/react-icons/lib/io/arrow-return-left.d.ts new file mode 100644 index 0000000000..9e0a076927 --- /dev/null +++ b/types/react-icons/lib/io/arrow-return-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowReturnLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-return-right.d.ts b/types/react-icons/lib/io/arrow-return-right.d.ts new file mode 100644 index 0000000000..0bab75e6e9 --- /dev/null +++ b/types/react-icons/lib/io/arrow-return-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowReturnRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-right-a.d.ts b/types/react-icons/lib/io/arrow-right-a.d.ts new file mode 100644 index 0000000000..e91a2984da --- /dev/null +++ b/types/react-icons/lib/io/arrow-right-a.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowRightA extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-right-b.d.ts b/types/react-icons/lib/io/arrow-right-b.d.ts new file mode 100644 index 0000000000..e85dce6f12 --- /dev/null +++ b/types/react-icons/lib/io/arrow-right-b.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowRightB extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-right-c.d.ts b/types/react-icons/lib/io/arrow-right-c.d.ts new file mode 100644 index 0000000000..5673e8df4c --- /dev/null +++ b/types/react-icons/lib/io/arrow-right-c.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowRightC extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-shrink.d.ts b/types/react-icons/lib/io/arrow-shrink.d.ts new file mode 100644 index 0000000000..5fa8093af3 --- /dev/null +++ b/types/react-icons/lib/io/arrow-shrink.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowShrink extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-swap.d.ts b/types/react-icons/lib/io/arrow-swap.d.ts new file mode 100644 index 0000000000..885a2c27ad --- /dev/null +++ b/types/react-icons/lib/io/arrow-swap.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowSwap extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-up-a.d.ts b/types/react-icons/lib/io/arrow-up-a.d.ts new file mode 100644 index 0000000000..a3967e9d42 --- /dev/null +++ b/types/react-icons/lib/io/arrow-up-a.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowUpA extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-up-b.d.ts b/types/react-icons/lib/io/arrow-up-b.d.ts new file mode 100644 index 0000000000..1c91d058f7 --- /dev/null +++ b/types/react-icons/lib/io/arrow-up-b.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowUpB extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/arrow-up-c.d.ts b/types/react-icons/lib/io/arrow-up-c.d.ts new file mode 100644 index 0000000000..9ca25a35a9 --- /dev/null +++ b/types/react-icons/lib/io/arrow-up-c.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoArrowUpC extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/asterisk.d.ts b/types/react-icons/lib/io/asterisk.d.ts new file mode 100644 index 0000000000..a5b58bd24e --- /dev/null +++ b/types/react-icons/lib/io/asterisk.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAsterisk extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/at.d.ts b/types/react-icons/lib/io/at.d.ts new file mode 100644 index 0000000000..cb7284b40f --- /dev/null +++ b/types/react-icons/lib/io/at.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoAt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/backspace-outline.d.ts b/types/react-icons/lib/io/backspace-outline.d.ts new file mode 100644 index 0000000000..8ce9f476c5 --- /dev/null +++ b/types/react-icons/lib/io/backspace-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBackspaceOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/backspace.d.ts b/types/react-icons/lib/io/backspace.d.ts new file mode 100644 index 0000000000..a1d19677b8 --- /dev/null +++ b/types/react-icons/lib/io/backspace.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBackspace extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/bag.d.ts b/types/react-icons/lib/io/bag.d.ts new file mode 100644 index 0000000000..538f19a520 --- /dev/null +++ b/types/react-icons/lib/io/bag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/battery-charging.d.ts b/types/react-icons/lib/io/battery-charging.d.ts new file mode 100644 index 0000000000..b950673aae --- /dev/null +++ b/types/react-icons/lib/io/battery-charging.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBatteryCharging extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/battery-empty.d.ts b/types/react-icons/lib/io/battery-empty.d.ts new file mode 100644 index 0000000000..0a8268869c --- /dev/null +++ b/types/react-icons/lib/io/battery-empty.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBatteryEmpty extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/battery-full.d.ts b/types/react-icons/lib/io/battery-full.d.ts new file mode 100644 index 0000000000..493488adf3 --- /dev/null +++ b/types/react-icons/lib/io/battery-full.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBatteryFull extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/battery-half.d.ts b/types/react-icons/lib/io/battery-half.d.ts new file mode 100644 index 0000000000..0671295096 --- /dev/null +++ b/types/react-icons/lib/io/battery-half.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBatteryHalf extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/battery-low.d.ts b/types/react-icons/lib/io/battery-low.d.ts new file mode 100644 index 0000000000..3c2964a52b --- /dev/null +++ b/types/react-icons/lib/io/battery-low.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBatteryLow extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/beaker.d.ts b/types/react-icons/lib/io/beaker.d.ts new file mode 100644 index 0000000000..5f68a801f8 --- /dev/null +++ b/types/react-icons/lib/io/beaker.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBeaker extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/beer.d.ts b/types/react-icons/lib/io/beer.d.ts new file mode 100644 index 0000000000..9f2f5739ac --- /dev/null +++ b/types/react-icons/lib/io/beer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBeer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/bluetooth.d.ts b/types/react-icons/lib/io/bluetooth.d.ts new file mode 100644 index 0000000000..58eb2659e0 --- /dev/null +++ b/types/react-icons/lib/io/bluetooth.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBluetooth extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/bonfire.d.ts b/types/react-icons/lib/io/bonfire.d.ts new file mode 100644 index 0000000000..c0ef9d7cae --- /dev/null +++ b/types/react-icons/lib/io/bonfire.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBonfire extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/bookmark.d.ts b/types/react-icons/lib/io/bookmark.d.ts new file mode 100644 index 0000000000..3479c40e67 --- /dev/null +++ b/types/react-icons/lib/io/bookmark.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBookmark extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/bowtie.d.ts b/types/react-icons/lib/io/bowtie.d.ts new file mode 100644 index 0000000000..6f983612ce --- /dev/null +++ b/types/react-icons/lib/io/bowtie.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBowtie extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/briefcase.d.ts b/types/react-icons/lib/io/briefcase.d.ts new file mode 100644 index 0000000000..baa5708abd --- /dev/null +++ b/types/react-icons/lib/io/briefcase.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBriefcase extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/bug.d.ts b/types/react-icons/lib/io/bug.d.ts new file mode 100644 index 0000000000..a97e391988 --- /dev/null +++ b/types/react-icons/lib/io/bug.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoBug extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/calculator.d.ts b/types/react-icons/lib/io/calculator.d.ts new file mode 100644 index 0000000000..17bc0695d2 --- /dev/null +++ b/types/react-icons/lib/io/calculator.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCalculator extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/calendar.d.ts b/types/react-icons/lib/io/calendar.d.ts new file mode 100644 index 0000000000..48de2d1402 --- /dev/null +++ b/types/react-icons/lib/io/calendar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCalendar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/camera.d.ts b/types/react-icons/lib/io/camera.d.ts new file mode 100644 index 0000000000..f362c37794 --- /dev/null +++ b/types/react-icons/lib/io/camera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCamera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/card.d.ts b/types/react-icons/lib/io/card.d.ts new file mode 100644 index 0000000000..4aa32829b4 --- /dev/null +++ b/types/react-icons/lib/io/card.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/cash.d.ts b/types/react-icons/lib/io/cash.d.ts new file mode 100644 index 0000000000..8c8a23acfd --- /dev/null +++ b/types/react-icons/lib/io/cash.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCash extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/chatbox-working.d.ts b/types/react-icons/lib/io/chatbox-working.d.ts new file mode 100644 index 0000000000..6574ba5b9c --- /dev/null +++ b/types/react-icons/lib/io/chatbox-working.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoChatboxWorking extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/chatbox.d.ts b/types/react-icons/lib/io/chatbox.d.ts new file mode 100644 index 0000000000..71907bcada --- /dev/null +++ b/types/react-icons/lib/io/chatbox.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoChatbox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/chatboxes.d.ts b/types/react-icons/lib/io/chatboxes.d.ts new file mode 100644 index 0000000000..6a4aff2857 --- /dev/null +++ b/types/react-icons/lib/io/chatboxes.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoChatboxes extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/chatbubble-working.d.ts b/types/react-icons/lib/io/chatbubble-working.d.ts new file mode 100644 index 0000000000..667fb7fcde --- /dev/null +++ b/types/react-icons/lib/io/chatbubble-working.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoChatbubbleWorking extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/chatbubble.d.ts b/types/react-icons/lib/io/chatbubble.d.ts new file mode 100644 index 0000000000..08ecb48df7 --- /dev/null +++ b/types/react-icons/lib/io/chatbubble.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoChatbubble extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/chatbubbles.d.ts b/types/react-icons/lib/io/chatbubbles.d.ts new file mode 100644 index 0000000000..ebf87a1cc5 --- /dev/null +++ b/types/react-icons/lib/io/chatbubbles.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoChatbubbles extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/checkmark-circled.d.ts b/types/react-icons/lib/io/checkmark-circled.d.ts new file mode 100644 index 0000000000..892e19a107 --- /dev/null +++ b/types/react-icons/lib/io/checkmark-circled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCheckmarkCircled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/checkmark-round.d.ts b/types/react-icons/lib/io/checkmark-round.d.ts new file mode 100644 index 0000000000..1311db9d47 --- /dev/null +++ b/types/react-icons/lib/io/checkmark-round.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCheckmarkRound extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/checkmark.d.ts b/types/react-icons/lib/io/checkmark.d.ts new file mode 100644 index 0000000000..0eda0d12da --- /dev/null +++ b/types/react-icons/lib/io/checkmark.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCheckmark extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/chevron-down.d.ts b/types/react-icons/lib/io/chevron-down.d.ts new file mode 100644 index 0000000000..0d9546467d --- /dev/null +++ b/types/react-icons/lib/io/chevron-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoChevronDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/chevron-left.d.ts b/types/react-icons/lib/io/chevron-left.d.ts new file mode 100644 index 0000000000..96fbe2a03f --- /dev/null +++ b/types/react-icons/lib/io/chevron-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoChevronLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/chevron-right.d.ts b/types/react-icons/lib/io/chevron-right.d.ts new file mode 100644 index 0000000000..a83489fa83 --- /dev/null +++ b/types/react-icons/lib/io/chevron-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoChevronRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/chevron-up.d.ts b/types/react-icons/lib/io/chevron-up.d.ts new file mode 100644 index 0000000000..a56e43a584 --- /dev/null +++ b/types/react-icons/lib/io/chevron-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoChevronUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/clipboard.d.ts b/types/react-icons/lib/io/clipboard.d.ts new file mode 100644 index 0000000000..79fc2dd2f7 --- /dev/null +++ b/types/react-icons/lib/io/clipboard.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoClipboard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/clock.d.ts b/types/react-icons/lib/io/clock.d.ts new file mode 100644 index 0000000000..50d4dd2af1 --- /dev/null +++ b/types/react-icons/lib/io/clock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoClock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/close-circled.d.ts b/types/react-icons/lib/io/close-circled.d.ts new file mode 100644 index 0000000000..dd6fb5e9d2 --- /dev/null +++ b/types/react-icons/lib/io/close-circled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCloseCircled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/close-round.d.ts b/types/react-icons/lib/io/close-round.d.ts new file mode 100644 index 0000000000..a918a8e534 --- /dev/null +++ b/types/react-icons/lib/io/close-round.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCloseRound extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/close.d.ts b/types/react-icons/lib/io/close.d.ts new file mode 100644 index 0000000000..acc49f00ac --- /dev/null +++ b/types/react-icons/lib/io/close.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoClose extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/closed-captioning.d.ts b/types/react-icons/lib/io/closed-captioning.d.ts new file mode 100644 index 0000000000..5a2b68d149 --- /dev/null +++ b/types/react-icons/lib/io/closed-captioning.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoClosedCaptioning extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/cloud.d.ts b/types/react-icons/lib/io/cloud.d.ts new file mode 100644 index 0000000000..837051ce2f --- /dev/null +++ b/types/react-icons/lib/io/cloud.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCloud extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/code-download.d.ts b/types/react-icons/lib/io/code-download.d.ts new file mode 100644 index 0000000000..765b401172 --- /dev/null +++ b/types/react-icons/lib/io/code-download.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCodeDownload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/code-working.d.ts b/types/react-icons/lib/io/code-working.d.ts new file mode 100644 index 0000000000..48cf64ecd5 --- /dev/null +++ b/types/react-icons/lib/io/code-working.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCodeWorking extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/code.d.ts b/types/react-icons/lib/io/code.d.ts new file mode 100644 index 0000000000..3d89e7aec1 --- /dev/null +++ b/types/react-icons/lib/io/code.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/coffee.d.ts b/types/react-icons/lib/io/coffee.d.ts new file mode 100644 index 0000000000..f3122b5343 --- /dev/null +++ b/types/react-icons/lib/io/coffee.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCoffee extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/compass.d.ts b/types/react-icons/lib/io/compass.d.ts new file mode 100644 index 0000000000..c0b78dd711 --- /dev/null +++ b/types/react-icons/lib/io/compass.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCompass extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/compose.d.ts b/types/react-icons/lib/io/compose.d.ts new file mode 100644 index 0000000000..5250bbf5f9 --- /dev/null +++ b/types/react-icons/lib/io/compose.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCompose extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/connectbars.d.ts b/types/react-icons/lib/io/connectbars.d.ts new file mode 100644 index 0000000000..2484005cf3 --- /dev/null +++ b/types/react-icons/lib/io/connectbars.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoConnectbars extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/contrast.d.ts b/types/react-icons/lib/io/contrast.d.ts new file mode 100644 index 0000000000..871e34e2b5 --- /dev/null +++ b/types/react-icons/lib/io/contrast.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoContrast extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/crop.d.ts b/types/react-icons/lib/io/crop.d.ts new file mode 100644 index 0000000000..1d9f6fe16f --- /dev/null +++ b/types/react-icons/lib/io/crop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCrop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/cube.d.ts b/types/react-icons/lib/io/cube.d.ts new file mode 100644 index 0000000000..0e20a500a0 --- /dev/null +++ b/types/react-icons/lib/io/cube.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoCube extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/disc.d.ts b/types/react-icons/lib/io/disc.d.ts new file mode 100644 index 0000000000..adb12527e7 --- /dev/null +++ b/types/react-icons/lib/io/disc.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoDisc extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/document-text.d.ts b/types/react-icons/lib/io/document-text.d.ts new file mode 100644 index 0000000000..4c419e9766 --- /dev/null +++ b/types/react-icons/lib/io/document-text.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoDocumentText extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/document.d.ts b/types/react-icons/lib/io/document.d.ts new file mode 100644 index 0000000000..098ab00b2a --- /dev/null +++ b/types/react-icons/lib/io/document.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoDocument extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/drag.d.ts b/types/react-icons/lib/io/drag.d.ts new file mode 100644 index 0000000000..628c38c338 --- /dev/null +++ b/types/react-icons/lib/io/drag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoDrag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/earth.d.ts b/types/react-icons/lib/io/earth.d.ts new file mode 100644 index 0000000000..5d502a5882 --- /dev/null +++ b/types/react-icons/lib/io/earth.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoEarth extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/easel.d.ts b/types/react-icons/lib/io/easel.d.ts new file mode 100644 index 0000000000..dc8b3ff32d --- /dev/null +++ b/types/react-icons/lib/io/easel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoEasel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/edit.d.ts b/types/react-icons/lib/io/edit.d.ts new file mode 100644 index 0000000000..ea10d7df2a --- /dev/null +++ b/types/react-icons/lib/io/edit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoEdit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/egg.d.ts b/types/react-icons/lib/io/egg.d.ts new file mode 100644 index 0000000000..39e63c2f48 --- /dev/null +++ b/types/react-icons/lib/io/egg.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoEgg extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/eject.d.ts b/types/react-icons/lib/io/eject.d.ts new file mode 100644 index 0000000000..1f859a0b76 --- /dev/null +++ b/types/react-icons/lib/io/eject.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoEject extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/email-unread.d.ts b/types/react-icons/lib/io/email-unread.d.ts new file mode 100644 index 0000000000..acdaefd764 --- /dev/null +++ b/types/react-icons/lib/io/email-unread.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoEmailUnread extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/email.d.ts b/types/react-icons/lib/io/email.d.ts new file mode 100644 index 0000000000..7323479361 --- /dev/null +++ b/types/react-icons/lib/io/email.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoEmail extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/erlenmeyer-flask-bubbles.d.ts b/types/react-icons/lib/io/erlenmeyer-flask-bubbles.d.ts new file mode 100644 index 0000000000..fed2da9f1f --- /dev/null +++ b/types/react-icons/lib/io/erlenmeyer-flask-bubbles.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoErlenmeyerFlaskBubbles extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/erlenmeyer-flask.d.ts b/types/react-icons/lib/io/erlenmeyer-flask.d.ts new file mode 100644 index 0000000000..0de1fd7c42 --- /dev/null +++ b/types/react-icons/lib/io/erlenmeyer-flask.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoErlenmeyerFlask extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/eye-disabled.d.ts b/types/react-icons/lib/io/eye-disabled.d.ts new file mode 100644 index 0000000000..3bf20def2a --- /dev/null +++ b/types/react-icons/lib/io/eye-disabled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoEyeDisabled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/eye.d.ts b/types/react-icons/lib/io/eye.d.ts new file mode 100644 index 0000000000..270c59505f --- /dev/null +++ b/types/react-icons/lib/io/eye.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoEye extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/female.d.ts b/types/react-icons/lib/io/female.d.ts new file mode 100644 index 0000000000..cb795e884b --- /dev/null +++ b/types/react-icons/lib/io/female.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoFemale extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/filing.d.ts b/types/react-icons/lib/io/filing.d.ts new file mode 100644 index 0000000000..ba69d4eb8b --- /dev/null +++ b/types/react-icons/lib/io/filing.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoFiling extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/film-marker.d.ts b/types/react-icons/lib/io/film-marker.d.ts new file mode 100644 index 0000000000..4e4a7158f2 --- /dev/null +++ b/types/react-icons/lib/io/film-marker.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoFilmMarker extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/fireball.d.ts b/types/react-icons/lib/io/fireball.d.ts new file mode 100644 index 0000000000..e7056b1534 --- /dev/null +++ b/types/react-icons/lib/io/fireball.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoFireball extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/flag.d.ts b/types/react-icons/lib/io/flag.d.ts new file mode 100644 index 0000000000..c06630b1a6 --- /dev/null +++ b/types/react-icons/lib/io/flag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoFlag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/flame.d.ts b/types/react-icons/lib/io/flame.d.ts new file mode 100644 index 0000000000..d49d1bd2db --- /dev/null +++ b/types/react-icons/lib/io/flame.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoFlame extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/flash-off.d.ts b/types/react-icons/lib/io/flash-off.d.ts new file mode 100644 index 0000000000..2b12ebe578 --- /dev/null +++ b/types/react-icons/lib/io/flash-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoFlashOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/flash.d.ts b/types/react-icons/lib/io/flash.d.ts new file mode 100644 index 0000000000..32901f5a9d --- /dev/null +++ b/types/react-icons/lib/io/flash.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoFlash extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/folder.d.ts b/types/react-icons/lib/io/folder.d.ts new file mode 100644 index 0000000000..dd14763f19 --- /dev/null +++ b/types/react-icons/lib/io/folder.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoFolder extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/fork-repo.d.ts b/types/react-icons/lib/io/fork-repo.d.ts new file mode 100644 index 0000000000..19dfd6a33c --- /dev/null +++ b/types/react-icons/lib/io/fork-repo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoForkRepo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/fork.d.ts b/types/react-icons/lib/io/fork.d.ts new file mode 100644 index 0000000000..b06aa1f455 --- /dev/null +++ b/types/react-icons/lib/io/fork.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoFork extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/forward.d.ts b/types/react-icons/lib/io/forward.d.ts new file mode 100644 index 0000000000..1b36aa1de7 --- /dev/null +++ b/types/react-icons/lib/io/forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/funnel.d.ts b/types/react-icons/lib/io/funnel.d.ts new file mode 100644 index 0000000000..be56fcd18c --- /dev/null +++ b/types/react-icons/lib/io/funnel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoFunnel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/gear-a.d.ts b/types/react-icons/lib/io/gear-a.d.ts new file mode 100644 index 0000000000..b04f6af6c2 --- /dev/null +++ b/types/react-icons/lib/io/gear-a.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoGearA extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/gear-b.d.ts b/types/react-icons/lib/io/gear-b.d.ts new file mode 100644 index 0000000000..b580d2bc7c --- /dev/null +++ b/types/react-icons/lib/io/gear-b.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoGearB extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/grid.d.ts b/types/react-icons/lib/io/grid.d.ts new file mode 100644 index 0000000000..b30f3a11c2 --- /dev/null +++ b/types/react-icons/lib/io/grid.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoGrid extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/hammer.d.ts b/types/react-icons/lib/io/hammer.d.ts new file mode 100644 index 0000000000..4ea6d0c306 --- /dev/null +++ b/types/react-icons/lib/io/hammer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoHammer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/happy-outline.d.ts b/types/react-icons/lib/io/happy-outline.d.ts new file mode 100644 index 0000000000..3207610467 --- /dev/null +++ b/types/react-icons/lib/io/happy-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoHappyOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/happy.d.ts b/types/react-icons/lib/io/happy.d.ts new file mode 100644 index 0000000000..f773c9e528 --- /dev/null +++ b/types/react-icons/lib/io/happy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoHappy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/headphone.d.ts b/types/react-icons/lib/io/headphone.d.ts new file mode 100644 index 0000000000..e1ebdc9185 --- /dev/null +++ b/types/react-icons/lib/io/headphone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoHeadphone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/heart-broken.d.ts b/types/react-icons/lib/io/heart-broken.d.ts new file mode 100644 index 0000000000..822a928ac6 --- /dev/null +++ b/types/react-icons/lib/io/heart-broken.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoHeartBroken extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/heart.d.ts b/types/react-icons/lib/io/heart.d.ts new file mode 100644 index 0000000000..e543207ae6 --- /dev/null +++ b/types/react-icons/lib/io/heart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoHeart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/help-buoy.d.ts b/types/react-icons/lib/io/help-buoy.d.ts new file mode 100644 index 0000000000..9a84933640 --- /dev/null +++ b/types/react-icons/lib/io/help-buoy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoHelpBuoy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/help-circled.d.ts b/types/react-icons/lib/io/help-circled.d.ts new file mode 100644 index 0000000000..f36a8fd5f8 --- /dev/null +++ b/types/react-icons/lib/io/help-circled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoHelpCircled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/help.d.ts b/types/react-icons/lib/io/help.d.ts new file mode 100644 index 0000000000..8eee2581c6 --- /dev/null +++ b/types/react-icons/lib/io/help.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoHelp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/home.d.ts b/types/react-icons/lib/io/home.d.ts new file mode 100644 index 0000000000..337bace8fa --- /dev/null +++ b/types/react-icons/lib/io/home.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoHome extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/icecream.d.ts b/types/react-icons/lib/io/icecream.d.ts new file mode 100644 index 0000000000..1c3f0bd2af --- /dev/null +++ b/types/react-icons/lib/io/icecream.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIcecream extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/image.d.ts b/types/react-icons/lib/io/image.d.ts new file mode 100644 index 0000000000..3fbf7da59a --- /dev/null +++ b/types/react-icons/lib/io/image.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoImage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/images.d.ts b/types/react-icons/lib/io/images.d.ts new file mode 100644 index 0000000000..ae80a81b1e --- /dev/null +++ b/types/react-icons/lib/io/images.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoImages extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/index.d.ts b/types/react-icons/lib/io/index.d.ts new file mode 100644 index 0000000000..ef86c25e2b --- /dev/null +++ b/types/react-icons/lib/io/index.d.ts @@ -0,0 +1,733 @@ +export { default as IoAlertCircled } from "./alert-circled"; +export { default as IoAlert } from "./alert"; +export { default as IoAndroidAddCircle } from "./android-add-circle"; +export { default as IoAndroidAdd } from "./android-add"; +export { default as IoAndroidAlarmClock } from "./android-alarm-clock"; +export { default as IoAndroidAlert } from "./android-alert"; +export { default as IoAndroidApps } from "./android-apps"; +export { default as IoAndroidArchive } from "./android-archive"; +export { default as IoAndroidArrowBack } from "./android-arrow-back"; +export { default as IoAndroidArrowDown } from "./android-arrow-down"; +export { default as IoAndroidArrowDropdownCircle } from "./android-arrow-dropdown-circle"; +export { default as IoAndroidArrowDropdown } from "./android-arrow-dropdown"; +export { default as IoAndroidArrowDropleftCircle } from "./android-arrow-dropleft-circle"; +export { default as IoAndroidArrowDropleft } from "./android-arrow-dropleft"; +export { default as IoAndroidArrowDroprightCircle } from "./android-arrow-dropright-circle"; +export { default as IoAndroidArrowDropright } from "./android-arrow-dropright"; +export { default as IoAndroidArrowDropupCircle } from "./android-arrow-dropup-circle"; +export { default as IoAndroidArrowDropup } from "./android-arrow-dropup"; +export { default as IoAndroidArrowForward } from "./android-arrow-forward"; +export { default as IoAndroidArrowUp } from "./android-arrow-up"; +export { default as IoAndroidAttach } from "./android-attach"; +export { default as IoAndroidBar } from "./android-bar"; +export { default as IoAndroidBicycle } from "./android-bicycle"; +export { default as IoAndroidBoat } from "./android-boat"; +export { default as IoAndroidBookmark } from "./android-bookmark"; +export { default as IoAndroidBulb } from "./android-bulb"; +export { default as IoAndroidBus } from "./android-bus"; +export { default as IoAndroidCalendar } from "./android-calendar"; +export { default as IoAndroidCall } from "./android-call"; +export { default as IoAndroidCamera } from "./android-camera"; +export { default as IoAndroidCancel } from "./android-cancel"; +export { default as IoAndroidCar } from "./android-car"; +export { default as IoAndroidCart } from "./android-cart"; +export { default as IoAndroidChat } from "./android-chat"; +export { default as IoAndroidCheckboxBlank } from "./android-checkbox-blank"; +export { default as IoAndroidCheckboxOutlineBlank } from "./android-checkbox-outline-blank"; +export { default as IoAndroidCheckboxOutline } from "./android-checkbox-outline"; +export { default as IoAndroidCheckbox } from "./android-checkbox"; +export { default as IoAndroidCheckmarkCircle } from "./android-checkmark-circle"; +export { default as IoAndroidClipboard } from "./android-clipboard"; +export { default as IoAndroidClose } from "./android-close"; +export { default as IoAndroidCloudCircle } from "./android-cloud-circle"; +export { default as IoAndroidCloudDone } from "./android-cloud-done"; +export { default as IoAndroidCloudOutline } from "./android-cloud-outline"; +export { default as IoAndroidCloud } from "./android-cloud"; +export { default as IoAndroidColorPalette } from "./android-color-palette"; +export { default as IoAndroidCompass } from "./android-compass"; +export { default as IoAndroidContact } from "./android-contact"; +export { default as IoAndroidContacts } from "./android-contacts"; +export { default as IoAndroidContract } from "./android-contract"; +export { default as IoAndroidCreate } from "./android-create"; +export { default as IoAndroidDelete } from "./android-delete"; +export { default as IoAndroidDesktop } from "./android-desktop"; +export { default as IoAndroidDocument } from "./android-document"; +export { default as IoAndroidDoneAll } from "./android-done-all"; +export { default as IoAndroidDone } from "./android-done"; +export { default as IoAndroidDownload } from "./android-download"; +export { default as IoAndroidDrafts } from "./android-drafts"; +export { default as IoAndroidExit } from "./android-exit"; +export { default as IoAndroidExpand } from "./android-expand"; +export { default as IoAndroidFavoriteOutline } from "./android-favorite-outline"; +export { default as IoAndroidFavorite } from "./android-favorite"; +export { default as IoAndroidFilm } from "./android-film"; +export { default as IoAndroidFolderOpen } from "./android-folder-open"; +export { default as IoAndroidFolder } from "./android-folder"; +export { default as IoAndroidFunnel } from "./android-funnel"; +export { default as IoAndroidGlobe } from "./android-globe"; +export { default as IoAndroidHand } from "./android-hand"; +export { default as IoAndroidHangout } from "./android-hangout"; +export { default as IoAndroidHappy } from "./android-happy"; +export { default as IoAndroidHome } from "./android-home"; +export { default as IoAndroidImage } from "./android-image"; +export { default as IoAndroidLaptop } from "./android-laptop"; +export { default as IoAndroidList } from "./android-list"; +export { default as IoAndroidLocate } from "./android-locate"; +export { default as IoAndroidLock } from "./android-lock"; +export { default as IoAndroidMail } from "./android-mail"; +export { default as IoAndroidMap } from "./android-map"; +export { default as IoAndroidMenu } from "./android-menu"; +export { default as IoAndroidMicrophoneOff } from "./android-microphone-off"; +export { default as IoAndroidMicrophone } from "./android-microphone"; +export { default as IoAndroidMoreHorizontal } from "./android-more-horizontal"; +export { default as IoAndroidMoreVertical } from "./android-more-vertical"; +export { default as IoAndroidNavigate } from "./android-navigate"; +export { default as IoAndroidNotificationsNone } from "./android-notifications-none"; +export { default as IoAndroidNotificationsOff } from "./android-notifications-off"; +export { default as IoAndroidNotifications } from "./android-notifications"; +export { default as IoAndroidOpen } from "./android-open"; +export { default as IoAndroidOptions } from "./android-options"; +export { default as IoAndroidPeople } from "./android-people"; +export { default as IoAndroidPersonAdd } from "./android-person-add"; +export { default as IoAndroidPerson } from "./android-person"; +export { default as IoAndroidPhoneLandscape } from "./android-phone-landscape"; +export { default as IoAndroidPhonePortrait } from "./android-phone-portrait"; +export { default as IoAndroidPin } from "./android-pin"; +export { default as IoAndroidPlane } from "./android-plane"; +export { default as IoAndroidPlaystore } from "./android-playstore"; +export { default as IoAndroidPrint } from "./android-print"; +export { default as IoAndroidRadioButtonOff } from "./android-radio-button-off"; +export { default as IoAndroidRadioButtonOn } from "./android-radio-button-on"; +export { default as IoAndroidRefresh } from "./android-refresh"; +export { default as IoAndroidRemoveCircle } from "./android-remove-circle"; +export { default as IoAndroidRemove } from "./android-remove"; +export { default as IoAndroidRestaurant } from "./android-restaurant"; +export { default as IoAndroidSad } from "./android-sad"; +export { default as IoAndroidSearch } from "./android-search"; +export { default as IoAndroidSend } from "./android-send"; +export { default as IoAndroidSettings } from "./android-settings"; +export { default as IoAndroidShareAlt } from "./android-share-alt"; +export { default as IoAndroidShare } from "./android-share"; +export { default as IoAndroidStarHalf } from "./android-star-half"; +export { default as IoAndroidStarOutline } from "./android-star-outline"; +export { default as IoAndroidStar } from "./android-star"; +export { default as IoAndroidStopwatch } from "./android-stopwatch"; +export { default as IoAndroidSubway } from "./android-subway"; +export { default as IoAndroidSunny } from "./android-sunny"; +export { default as IoAndroidSync } from "./android-sync"; +export { default as IoAndroidTextsms } from "./android-textsms"; +export { default as IoAndroidTime } from "./android-time"; +export { default as IoAndroidTrain } from "./android-train"; +export { default as IoAndroidUnlock } from "./android-unlock"; +export { default as IoAndroidUpload } from "./android-upload"; +export { default as IoAndroidVolumeDown } from "./android-volume-down"; +export { default as IoAndroidVolumeMute } from "./android-volume-mute"; +export { default as IoAndroidVolumeOff } from "./android-volume-off"; +export { default as IoAndroidVolumeUp } from "./android-volume-up"; +export { default as IoAndroidWalk } from "./android-walk"; +export { default as IoAndroidWarning } from "./android-warning"; +export { default as IoAndroidWatch } from "./android-watch"; +export { default as IoAndroidWifi } from "./android-wifi"; +export { default as IoAperture } from "./aperture"; +export { default as IoArchive } from "./archive"; +export { default as IoArrowDownA } from "./arrow-down-a"; +export { default as IoArrowDownB } from "./arrow-down-b"; +export { default as IoArrowDownC } from "./arrow-down-c"; +export { default as IoArrowExpand } from "./arrow-expand"; +export { default as IoArrowGraphDownLeft } from "./arrow-graph-down-left"; +export { default as IoArrowGraphDownRight } from "./arrow-graph-down-right"; +export { default as IoArrowGraphUpLeft } from "./arrow-graph-up-left"; +export { default as IoArrowGraphUpRight } from "./arrow-graph-up-right"; +export { default as IoArrowLeftA } from "./arrow-left-a"; +export { default as IoArrowLeftB } from "./arrow-left-b"; +export { default as IoArrowLeftC } from "./arrow-left-c"; +export { default as IoArrowMove } from "./arrow-move"; +export { default as IoArrowResize } from "./arrow-resize"; +export { default as IoArrowReturnLeft } from "./arrow-return-left"; +export { default as IoArrowReturnRight } from "./arrow-return-right"; +export { default as IoArrowRightA } from "./arrow-right-a"; +export { default as IoArrowRightB } from "./arrow-right-b"; +export { default as IoArrowRightC } from "./arrow-right-c"; +export { default as IoArrowShrink } from "./arrow-shrink"; +export { default as IoArrowSwap } from "./arrow-swap"; +export { default as IoArrowUpA } from "./arrow-up-a"; +export { default as IoArrowUpB } from "./arrow-up-b"; +export { default as IoArrowUpC } from "./arrow-up-c"; +export { default as IoAsterisk } from "./asterisk"; +export { default as IoAt } from "./at"; +export { default as IoBackspaceOutline } from "./backspace-outline"; +export { default as IoBackspace } from "./backspace"; +export { default as IoBag } from "./bag"; +export { default as IoBatteryCharging } from "./battery-charging"; +export { default as IoBatteryEmpty } from "./battery-empty"; +export { default as IoBatteryFull } from "./battery-full"; +export { default as IoBatteryHalf } from "./battery-half"; +export { default as IoBatteryLow } from "./battery-low"; +export { default as IoBeaker } from "./beaker"; +export { default as IoBeer } from "./beer"; +export { default as IoBluetooth } from "./bluetooth"; +export { default as IoBonfire } from "./bonfire"; +export { default as IoBookmark } from "./bookmark"; +export { default as IoBowtie } from "./bowtie"; +export { default as IoBriefcase } from "./briefcase"; +export { default as IoBug } from "./bug"; +export { default as IoCalculator } from "./calculator"; +export { default as IoCalendar } from "./calendar"; +export { default as IoCamera } from "./camera"; +export { default as IoCard } from "./card"; +export { default as IoCash } from "./cash"; +export { default as IoChatboxWorking } from "./chatbox-working"; +export { default as IoChatbox } from "./chatbox"; +export { default as IoChatboxes } from "./chatboxes"; +export { default as IoChatbubbleWorking } from "./chatbubble-working"; +export { default as IoChatbubble } from "./chatbubble"; +export { default as IoChatbubbles } from "./chatbubbles"; +export { default as IoCheckmarkCircled } from "./checkmark-circled"; +export { default as IoCheckmarkRound } from "./checkmark-round"; +export { default as IoCheckmark } from "./checkmark"; +export { default as IoChevronDown } from "./chevron-down"; +export { default as IoChevronLeft } from "./chevron-left"; +export { default as IoChevronRight } from "./chevron-right"; +export { default as IoChevronUp } from "./chevron-up"; +export { default as IoClipboard } from "./clipboard"; +export { default as IoClock } from "./clock"; +export { default as IoCloseCircled } from "./close-circled"; +export { default as IoCloseRound } from "./close-round"; +export { default as IoClose } from "./close"; +export { default as IoClosedCaptioning } from "./closed-captioning"; +export { default as IoCloud } from "./cloud"; +export { default as IoCodeDownload } from "./code-download"; +export { default as IoCodeWorking } from "./code-working"; +export { default as IoCode } from "./code"; +export { default as IoCoffee } from "./coffee"; +export { default as IoCompass } from "./compass"; +export { default as IoCompose } from "./compose"; +export { default as IoConnectbars } from "./connectbars"; +export { default as IoContrast } from "./contrast"; +export { default as IoCrop } from "./crop"; +export { default as IoCube } from "./cube"; +export { default as IoDisc } from "./disc"; +export { default as IoDocumentText } from "./document-text"; +export { default as IoDocument } from "./document"; +export { default as IoDrag } from "./drag"; +export { default as IoEarth } from "./earth"; +export { default as IoEasel } from "./easel"; +export { default as IoEdit } from "./edit"; +export { default as IoEgg } from "./egg"; +export { default as IoEject } from "./eject"; +export { default as IoEmailUnread } from "./email-unread"; +export { default as IoEmail } from "./email"; +export { default as IoErlenmeyerFlaskBubbles } from "./erlenmeyer-flask-bubbles"; +export { default as IoErlenmeyerFlask } from "./erlenmeyer-flask"; +export { default as IoEyeDisabled } from "./eye-disabled"; +export { default as IoEye } from "./eye"; +export { default as IoFemale } from "./female"; +export { default as IoFiling } from "./filing"; +export { default as IoFilmMarker } from "./film-marker"; +export { default as IoFireball } from "./fireball"; +export { default as IoFlag } from "./flag"; +export { default as IoFlame } from "./flame"; +export { default as IoFlashOff } from "./flash-off"; +export { default as IoFlash } from "./flash"; +export { default as IoFolder } from "./folder"; +export { default as IoForkRepo } from "./fork-repo"; +export { default as IoFork } from "./fork"; +export { default as IoForward } from "./forward"; +export { default as IoFunnel } from "./funnel"; +export { default as IoGearA } from "./gear-a"; +export { default as IoGearB } from "./gear-b"; +export { default as IoGrid } from "./grid"; +export { default as IoHammer } from "./hammer"; +export { default as IoHappyOutline } from "./happy-outline"; +export { default as IoHappy } from "./happy"; +export { default as IoHeadphone } from "./headphone"; +export { default as IoHeartBroken } from "./heart-broken"; +export { default as IoHeart } from "./heart"; +export { default as IoHelpBuoy } from "./help-buoy"; +export { default as IoHelpCircled } from "./help-circled"; +export { default as IoHelp } from "./help"; +export { default as IoHome } from "./home"; +export { default as IoIcecream } from "./icecream"; +export { default as IoImage } from "./image"; +export { default as IoImages } from "./images"; +export { default as IoInformatcircled } from "./informatcircled"; +export { default as IoInformation } from "./information"; +export { default as IoIonic } from "./ionic"; +export { default as IoIosAlarmOutline } from "./ios-alarm-outline"; +export { default as IoIosAlarm } from "./ios-alarm"; +export { default as IoIosAlbumsOutline } from "./ios-albums-outline"; +export { default as IoIosAlbums } from "./ios-albums"; +export { default as IoIosAmericanfootballOutline } from "./ios-americanfootball-outline"; +export { default as IoIosAmericanfootball } from "./ios-americanfootball"; +export { default as IoIosAnalyticsOutline } from "./ios-analytics-outline"; +export { default as IoIosAnalytics } from "./ios-analytics"; +export { default as IoIosArrowBack } from "./ios-arrow-back"; +export { default as IoIosArrowDown } from "./ios-arrow-down"; +export { default as IoIosArrowForward } from "./ios-arrow-forward"; +export { default as IoIosArrowLeft } from "./ios-arrow-left"; +export { default as IoIosArrowRight } from "./ios-arrow-right"; +export { default as IoIosArrowThinDown } from "./ios-arrow-thin-down"; +export { default as IoIosArrowThinLeft } from "./ios-arrow-thin-left"; +export { default as IoIosArrowThinRight } from "./ios-arrow-thin-right"; +export { default as IoIosArrowThinUp } from "./ios-arrow-thin-up"; +export { default as IoIosArrowUp } from "./ios-arrow-up"; +export { default as IoIosAtOutline } from "./ios-at-outline"; +export { default as IoIosAt } from "./ios-at"; +export { default as IoIosBarcodeOutline } from "./ios-barcode-outline"; +export { default as IoIosBarcode } from "./ios-barcode"; +export { default as IoIosBaseballOutline } from "./ios-baseball-outline"; +export { default as IoIosBaseball } from "./ios-baseball"; +export { default as IoIosBasketballOutline } from "./ios-basketball-outline"; +export { default as IoIosBasketball } from "./ios-basketball"; +export { default as IoIosBellOutline } from "./ios-bell-outline"; +export { default as IoIosBell } from "./ios-bell"; +export { default as IoIosBodyOutline } from "./ios-body-outline"; +export { default as IoIosBody } from "./ios-body"; +export { default as IoIosBoltOutline } from "./ios-bolt-outline"; +export { default as IoIosBolt } from "./ios-bolt"; +export { default as IoIosBookOutline } from "./ios-book-outline"; +export { default as IoIosBook } from "./ios-book"; +export { default as IoIosBookmarksOutline } from "./ios-bookmarks-outline"; +export { default as IoIosBookmarks } from "./ios-bookmarks"; +export { default as IoIosBoxOutline } from "./ios-box-outline"; +export { default as IoIosBox } from "./ios-box"; +export { default as IoIosBriefcaseOutline } from "./ios-briefcase-outline"; +export { default as IoIosBriefcase } from "./ios-briefcase"; +export { default as IoIosBrowsersOutline } from "./ios-browsers-outline"; +export { default as IoIosBrowsers } from "./ios-browsers"; +export { default as IoIosCalculatorOutline } from "./ios-calculator-outline"; +export { default as IoIosCalculator } from "./ios-calculator"; +export { default as IoIosCalendarOutline } from "./ios-calendar-outline"; +export { default as IoIosCalendar } from "./ios-calendar"; +export { default as IoIosCameraOutline } from "./ios-camera-outline"; +export { default as IoIosCamera } from "./ios-camera"; +export { default as IoIosCartOutline } from "./ios-cart-outline"; +export { default as IoIosCart } from "./ios-cart"; +export { default as IoIosChatboxesOutline } from "./ios-chatboxes-outline"; +export { default as IoIosChatboxes } from "./ios-chatboxes"; +export { default as IoIosChatbubbleOutline } from "./ios-chatbubble-outline"; +export { default as IoIosChatbubble } from "./ios-chatbubble"; +export { default as IoIosCheckmarkEmpty } from "./ios-checkmark-empty"; +export { default as IoIosCheckmarkOutline } from "./ios-checkmark-outline"; +export { default as IoIosCheckmark } from "./ios-checkmark"; +export { default as IoIosCircleFilled } from "./ios-circle-filled"; +export { default as IoIosCircleOutline } from "./ios-circle-outline"; +export { default as IoIosClockOutline } from "./ios-clock-outline"; +export { default as IoIosClock } from "./ios-clock"; +export { default as IoIosCloseEmpty } from "./ios-close-empty"; +export { default as IoIosCloseOutline } from "./ios-close-outline"; +export { default as IoIosClose } from "./ios-close"; +export { default as IoIosCloudDownloadOutline } from "./ios-cloud-download-outline"; +export { default as IoIosCloudDownload } from "./ios-cloud-download"; +export { default as IoIosCloudOutline } from "./ios-cloud-outline"; +export { default as IoIosCloudUploadOutline } from "./ios-cloud-upload-outline"; +export { default as IoIosCloudUpload } from "./ios-cloud-upload"; +export { default as IoIosCloud } from "./ios-cloud"; +export { default as IoIosCloudyNightOutline } from "./ios-cloudy-night-outline"; +export { default as IoIosCloudyNight } from "./ios-cloudy-night"; +export { default as IoIosCloudyOutline } from "./ios-cloudy-outline"; +export { default as IoIosCloudy } from "./ios-cloudy"; +export { default as IoIosCogOutline } from "./ios-cog-outline"; +export { default as IoIosCog } from "./ios-cog"; +export { default as IoIosColorFilterOutline } from "./ios-color-filter-outline"; +export { default as IoIosColorFilter } from "./ios-color-filter"; +export { default as IoIosColorWandOutline } from "./ios-color-wand-outline"; +export { default as IoIosColorWand } from "./ios-color-wand"; +export { default as IoIosComposeOutline } from "./ios-compose-outline"; +export { default as IoIosCompose } from "./ios-compose"; +export { default as IoIosContactOutline } from "./ios-contact-outline"; +export { default as IoIosContact } from "./ios-contact"; +export { default as IoIosCopyOutline } from "./ios-copy-outline"; +export { default as IoIosCopy } from "./ios-copy"; +export { default as IoIosCropStrong } from "./ios-crop-strong"; +export { default as IoIosCrop } from "./ios-crop"; +export { default as IoIosDownloadOutline } from "./ios-download-outline"; +export { default as IoIosDownload } from "./ios-download"; +export { default as IoIosDrag } from "./ios-drag"; +export { default as IoIosEmailOutline } from "./ios-email-outline"; +export { default as IoIosEmail } from "./ios-email"; +export { default as IoIosEyeOutline } from "./ios-eye-outline"; +export { default as IoIosEye } from "./ios-eye"; +export { default as IoIosFastforwardOutline } from "./ios-fastforward-outline"; +export { default as IoIosFastforward } from "./ios-fastforward"; +export { default as IoIosFilingOutline } from "./ios-filing-outline"; +export { default as IoIosFiling } from "./ios-filing"; +export { default as IoIosFilmOutline } from "./ios-film-outline"; +export { default as IoIosFilm } from "./ios-film"; +export { default as IoIosFlagOutline } from "./ios-flag-outline"; +export { default as IoIosFlag } from "./ios-flag"; +export { default as IoIosFlameOutline } from "./ios-flame-outline"; +export { default as IoIosFlame } from "./ios-flame"; +export { default as IoIosFlaskOutline } from "./ios-flask-outline"; +export { default as IoIosFlask } from "./ios-flask"; +export { default as IoIosFlowerOutline } from "./ios-flower-outline"; +export { default as IoIosFlower } from "./ios-flower"; +export { default as IoIosFolderOutline } from "./ios-folder-outline"; +export { default as IoIosFolder } from "./ios-folder"; +export { default as IoIosFootballOutline } from "./ios-football-outline"; +export { default as IoIosFootball } from "./ios-football"; +export { default as IoIosGameControllerAOutline } from "./ios-game-controller-a-outline"; +export { default as IoIosGameControllerA } from "./ios-game-controller-a"; +export { default as IoIosGameControllerBOutline } from "./ios-game-controller-b-outline"; +export { default as IoIosGameControllerB } from "./ios-game-controller-b"; +export { default as IoIosGearOutline } from "./ios-gear-outline"; +export { default as IoIosGear } from "./ios-gear"; +export { default as IoIosGlassesOutline } from "./ios-glasses-outline"; +export { default as IoIosGlasses } from "./ios-glasses"; +export { default as IoIosGridViewOutline } from "./ios-grid-view-outline"; +export { default as IoIosGridView } from "./ios-grid-view"; +export { default as IoIosHeartOutline } from "./ios-heart-outline"; +export { default as IoIosHeart } from "./ios-heart"; +export { default as IoIosHelpEmpty } from "./ios-help-empty"; +export { default as IoIosHelpOutline } from "./ios-help-outline"; +export { default as IoIosHelp } from "./ios-help"; +export { default as IoIosHomeOutline } from "./ios-home-outline"; +export { default as IoIosHome } from "./ios-home"; +export { default as IoIosInfiniteOutline } from "./ios-infinite-outline"; +export { default as IoIosInfinite } from "./ios-infinite"; +export { default as IoIosInformatempty } from "./ios-informatempty"; +export { default as IoIosInformation } from "./ios-information"; +export { default as IoIosInformatoutline } from "./ios-informatoutline"; +export { default as IoIosIonicOutline } from "./ios-ionic-outline"; +export { default as IoIosKeypadOutline } from "./ios-keypad-outline"; +export { default as IoIosKeypad } from "./ios-keypad"; +export { default as IoIosLightbulbOutline } from "./ios-lightbulb-outline"; +export { default as IoIosLightbulb } from "./ios-lightbulb"; +export { default as IoIosListOutline } from "./ios-list-outline"; +export { default as IoIosList } from "./ios-list"; +export { default as IoIosLocation } from "./ios-location"; +export { default as IoIosLocatoutline } from "./ios-locatoutline"; +export { default as IoIosLockedOutline } from "./ios-locked-outline"; +export { default as IoIosLocked } from "./ios-locked"; +export { default as IoIosLoopStrong } from "./ios-loop-strong"; +export { default as IoIosLoop } from "./ios-loop"; +export { default as IoIosMedicalOutline } from "./ios-medical-outline"; +export { default as IoIosMedical } from "./ios-medical"; +export { default as IoIosMedkitOutline } from "./ios-medkit-outline"; +export { default as IoIosMedkit } from "./ios-medkit"; +export { default as IoIosMicOff } from "./ios-mic-off"; +export { default as IoIosMicOutline } from "./ios-mic-outline"; +export { default as IoIosMic } from "./ios-mic"; +export { default as IoIosMinusEmpty } from "./ios-minus-empty"; +export { default as IoIosMinusOutline } from "./ios-minus-outline"; +export { default as IoIosMinus } from "./ios-minus"; +export { default as IoIosMonitorOutline } from "./ios-monitor-outline"; +export { default as IoIosMonitor } from "./ios-monitor"; +export { default as IoIosMoonOutline } from "./ios-moon-outline"; +export { default as IoIosMoon } from "./ios-moon"; +export { default as IoIosMoreOutline } from "./ios-more-outline"; +export { default as IoIosMore } from "./ios-more"; +export { default as IoIosMusicalNote } from "./ios-musical-note"; +export { default as IoIosMusicalNotes } from "./ios-musical-notes"; +export { default as IoIosNavigateOutline } from "./ios-navigate-outline"; +export { default as IoIosNavigate } from "./ios-navigate"; +export { default as IoIosNutrition } from "./ios-nutrition"; +export { default as IoIosNutritoutline } from "./ios-nutritoutline"; +export { default as IoIosPaperOutline } from "./ios-paper-outline"; +export { default as IoIosPaper } from "./ios-paper"; +export { default as IoIosPaperplaneOutline } from "./ios-paperplane-outline"; +export { default as IoIosPaperplane } from "./ios-paperplane"; +export { default as IoIosPartlysunnyOutline } from "./ios-partlysunny-outline"; +export { default as IoIosPartlysunny } from "./ios-partlysunny"; +export { default as IoIosPauseOutline } from "./ios-pause-outline"; +export { default as IoIosPause } from "./ios-pause"; +export { default as IoIosPawOutline } from "./ios-paw-outline"; +export { default as IoIosPaw } from "./ios-paw"; +export { default as IoIosPeopleOutline } from "./ios-people-outline"; +export { default as IoIosPeople } from "./ios-people"; +export { default as IoIosPersonOutline } from "./ios-person-outline"; +export { default as IoIosPerson } from "./ios-person"; +export { default as IoIosPersonaddOutline } from "./ios-personadd-outline"; +export { default as IoIosPersonadd } from "./ios-personadd"; +export { default as IoIosPhotosOutline } from "./ios-photos-outline"; +export { default as IoIosPhotos } from "./ios-photos"; +export { default as IoIosPieOutline } from "./ios-pie-outline"; +export { default as IoIosPie } from "./ios-pie"; +export { default as IoIosPintOutline } from "./ios-pint-outline"; +export { default as IoIosPint } from "./ios-pint"; +export { default as IoIosPlayOutline } from "./ios-play-outline"; +export { default as IoIosPlay } from "./ios-play"; +export { default as IoIosPlusEmpty } from "./ios-plus-empty"; +export { default as IoIosPlusOutline } from "./ios-plus-outline"; +export { default as IoIosPlus } from "./ios-plus"; +export { default as IoIosPricetagOutline } from "./ios-pricetag-outline"; +export { default as IoIosPricetag } from "./ios-pricetag"; +export { default as IoIosPricetagsOutline } from "./ios-pricetags-outline"; +export { default as IoIosPricetags } from "./ios-pricetags"; +export { default as IoIosPrinterOutline } from "./ios-printer-outline"; +export { default as IoIosPrinter } from "./ios-printer"; +export { default as IoIosPulseStrong } from "./ios-pulse-strong"; +export { default as IoIosPulse } from "./ios-pulse"; +export { default as IoIosRainyOutline } from "./ios-rainy-outline"; +export { default as IoIosRainy } from "./ios-rainy"; +export { default as IoIosRecordingOutline } from "./ios-recording-outline"; +export { default as IoIosRecording } from "./ios-recording"; +export { default as IoIosRedoOutline } from "./ios-redo-outline"; +export { default as IoIosRedo } from "./ios-redo"; +export { default as IoIosRefreshEmpty } from "./ios-refresh-empty"; +export { default as IoIosRefreshOutline } from "./ios-refresh-outline"; +export { default as IoIosRefresh } from "./ios-refresh"; +export { default as IoIosReload } from "./ios-reload"; +export { default as IoIosReverseCameraOutline } from "./ios-reverse-camera-outline"; +export { default as IoIosReverseCamera } from "./ios-reverse-camera"; +export { default as IoIosRewindOutline } from "./ios-rewind-outline"; +export { default as IoIosRewind } from "./ios-rewind"; +export { default as IoIosRoseOutline } from "./ios-rose-outline"; +export { default as IoIosRose } from "./ios-rose"; +export { default as IoIosSearchStrong } from "./ios-search-strong"; +export { default as IoIosSearch } from "./ios-search"; +export { default as IoIosSettingsStrong } from "./ios-settings-strong"; +export { default as IoIosSettings } from "./ios-settings"; +export { default as IoIosShuffleStrong } from "./ios-shuffle-strong"; +export { default as IoIosShuffle } from "./ios-shuffle"; +export { default as IoIosSkipbackwardOutline } from "./ios-skipbackward-outline"; +export { default as IoIosSkipbackward } from "./ios-skipbackward"; +export { default as IoIosSkipforwardOutline } from "./ios-skipforward-outline"; +export { default as IoIosSkipforward } from "./ios-skipforward"; +export { default as IoIosSnowy } from "./ios-snowy"; +export { default as IoIosSpeedometerOutline } from "./ios-speedometer-outline"; +export { default as IoIosSpeedometer } from "./ios-speedometer"; +export { default as IoIosStarHalf } from "./ios-star-half"; +export { default as IoIosStarOutline } from "./ios-star-outline"; +export { default as IoIosStar } from "./ios-star"; +export { default as IoIosStopwatchOutline } from "./ios-stopwatch-outline"; +export { default as IoIosStopwatch } from "./ios-stopwatch"; +export { default as IoIosSunnyOutline } from "./ios-sunny-outline"; +export { default as IoIosSunny } from "./ios-sunny"; +export { default as IoIosTelephoneOutline } from "./ios-telephone-outline"; +export { default as IoIosTelephone } from "./ios-telephone"; +export { default as IoIosTennisballOutline } from "./ios-tennisball-outline"; +export { default as IoIosTennisball } from "./ios-tennisball"; +export { default as IoIosThunderstormOutline } from "./ios-thunderstorm-outline"; +export { default as IoIosThunderstorm } from "./ios-thunderstorm"; +export { default as IoIosTimeOutline } from "./ios-time-outline"; +export { default as IoIosTime } from "./ios-time"; +export { default as IoIosTimerOutline } from "./ios-timer-outline"; +export { default as IoIosTimer } from "./ios-timer"; +export { default as IoIosToggleOutline } from "./ios-toggle-outline"; +export { default as IoIosToggle } from "./ios-toggle"; +export { default as IoIosTrashOutline } from "./ios-trash-outline"; +export { default as IoIosTrash } from "./ios-trash"; +export { default as IoIosUndoOutline } from "./ios-undo-outline"; +export { default as IoIosUndo } from "./ios-undo"; +export { default as IoIosUnlockedOutline } from "./ios-unlocked-outline"; +export { default as IoIosUnlocked } from "./ios-unlocked"; +export { default as IoIosUploadOutline } from "./ios-upload-outline"; +export { default as IoIosUpload } from "./ios-upload"; +export { default as IoIosVideocamOutline } from "./ios-videocam-outline"; +export { default as IoIosVideocam } from "./ios-videocam"; +export { default as IoIosVolumeHigh } from "./ios-volume-high"; +export { default as IoIosVolumeLow } from "./ios-volume-low"; +export { default as IoIosWineglassOutline } from "./ios-wineglass-outline"; +export { default as IoIosWineglass } from "./ios-wineglass"; +export { default as IoIosWorldOutline } from "./ios-world-outline"; +export { default as IoIosWorld } from "./ios-world"; +export { default as IoIpad } from "./ipad"; +export { default as IoIphone } from "./iphone"; +export { default as IoIpod } from "./ipod"; +export { default as IoJet } from "./jet"; +export { default as IoKey } from "./key"; +export { default as IoKnife } from "./knife"; +export { default as IoLaptop } from "./laptop"; +export { default as IoLeaf } from "./leaf"; +export { default as IoLevels } from "./levels"; +export { default as IoLightbulb } from "./lightbulb"; +export { default as IoLink } from "./link"; +export { default as IoLoadA } from "./load-a"; +export { default as IoLoadB } from "./load-b"; +export { default as IoLoadC } from "./load-c"; +export { default as IoLoadD } from "./load-d"; +export { default as IoLocation } from "./location"; +export { default as IoLockCombination } from "./lock-combination"; +export { default as IoLocked } from "./locked"; +export { default as IoLogIn } from "./log-in"; +export { default as IoLogOut } from "./log-out"; +export { default as IoLoop } from "./loop"; +export { default as IoMagnet } from "./magnet"; +export { default as IoMale } from "./male"; +export { default as IoMan } from "./man"; +export { default as IoMap } from "./map"; +export { default as IoMedkit } from "./medkit"; +export { default as IoMerge } from "./merge"; +export { default as IoMicA } from "./mic-a"; +export { default as IoMicB } from "./mic-b"; +export { default as IoMicC } from "./mic-c"; +export { default as IoMinusCircled } from "./minus-circled"; +export { default as IoMinusRound } from "./minus-round"; +export { default as IoMinus } from "./minus"; +export { default as IoModelS } from "./model-s"; +export { default as IoMonitor } from "./monitor"; +export { default as IoMore } from "./more"; +export { default as IoMouse } from "./mouse"; +export { default as IoMusicNote } from "./music-note"; +export { default as IoNaviconRound } from "./navicon-round"; +export { default as IoNavicon } from "./navicon"; +export { default as IoNavigate } from "./navigate"; +export { default as IoNetwork } from "./network"; +export { default as IoNoSmoking } from "./no-smoking"; +export { default as IoNuclear } from "./nuclear"; +export { default as IoOutlet } from "./outlet"; +export { default as IoPaintbrush } from "./paintbrush"; +export { default as IoPaintbucket } from "./paintbucket"; +export { default as IoPaperAirplane } from "./paper-airplane"; +export { default as IoPaperclip } from "./paperclip"; +export { default as IoPause } from "./pause"; +export { default as IoPersonAdd } from "./person-add"; +export { default as IoPersonStalker } from "./person-stalker"; +export { default as IoPerson } from "./person"; +export { default as IoPieGraph } from "./pie-graph"; +export { default as IoPin } from "./pin"; +export { default as IoPinpoint } from "./pinpoint"; +export { default as IoPizza } from "./pizza"; +export { default as IoPlane } from "./plane"; +export { default as IoPlanet } from "./planet"; +export { default as IoPlay } from "./play"; +export { default as IoPlaystation } from "./playstation"; +export { default as IoPlusCircled } from "./plus-circled"; +export { default as IoPlusRound } from "./plus-round"; +export { default as IoPlus } from "./plus"; +export { default as IoPodium } from "./podium"; +export { default as IoPound } from "./pound"; +export { default as IoPower } from "./power"; +export { default as IoPricetag } from "./pricetag"; +export { default as IoPricetags } from "./pricetags"; +export { default as IoPrinter } from "./printer"; +export { default as IoPullRequest } from "./pull-request"; +export { default as IoQrScanner } from "./qr-scanner"; +export { default as IoQuote } from "./quote"; +export { default as IoRadioWaves } from "./radio-waves"; +export { default as IoRecord } from "./record"; +export { default as IoRefresh } from "./refresh"; +export { default as IoReplyAll } from "./reply-all"; +export { default as IoReply } from "./reply"; +export { default as IoRibbonA } from "./ribbon-a"; +export { default as IoRibbonB } from "./ribbon-b"; +export { default as IoSadOutline } from "./sad-outline"; +export { default as IoSad } from "./sad"; +export { default as IoScissors } from "./scissors"; +export { default as IoSearch } from "./search"; +export { default as IoSettings } from "./settings"; +export { default as IoShare } from "./share"; +export { default as IoShuffle } from "./shuffle"; +export { default as IoSkipBackward } from "./skip-backward"; +export { default as IoSkipForward } from "./skip-forward"; +export { default as IoSocialAndroidOutline } from "./social-android-outline"; +export { default as IoSocialAndroid } from "./social-android"; +export { default as IoSocialAngularOutline } from "./social-angular-outline"; +export { default as IoSocialAngular } from "./social-angular"; +export { default as IoSocialAppleOutline } from "./social-apple-outline"; +export { default as IoSocialApple } from "./social-apple"; +export { default as IoSocialBitcoinOutline } from "./social-bitcoin-outline"; +export { default as IoSocialBitcoin } from "./social-bitcoin"; +export { default as IoSocialBufferOutline } from "./social-buffer-outline"; +export { default as IoSocialBuffer } from "./social-buffer"; +export { default as IoSocialChromeOutline } from "./social-chrome-outline"; +export { default as IoSocialChrome } from "./social-chrome"; +export { default as IoSocialCodepenOutline } from "./social-codepen-outline"; +export { default as IoSocialCodepen } from "./social-codepen"; +export { default as IoSocialCss3Outline } from "./social-css3-outline"; +export { default as IoSocialCss3 } from "./social-css3"; +export { default as IoSocialDesignernewsOutline } from "./social-designernews-outline"; +export { default as IoSocialDesignernews } from "./social-designernews"; +export { default as IoSocialDribbbleOutline } from "./social-dribbble-outline"; +export { default as IoSocialDribbble } from "./social-dribbble"; +export { default as IoSocialDropboxOutline } from "./social-dropbox-outline"; +export { default as IoSocialDropbox } from "./social-dropbox"; +export { default as IoSocialEuroOutline } from "./social-euro-outline"; +export { default as IoSocialEuro } from "./social-euro"; +export { default as IoSocialFacebookOutline } from "./social-facebook-outline"; +export { default as IoSocialFacebook } from "./social-facebook"; +export { default as IoSocialFoursquareOutline } from "./social-foursquare-outline"; +export { default as IoSocialFoursquare } from "./social-foursquare"; +export { default as IoSocialFreebsdDevil } from "./social-freebsd-devil"; +export { default as IoSocialGithubOutline } from "./social-github-outline"; +export { default as IoSocialGithub } from "./social-github"; +export { default as IoSocialGoogleOutline } from "./social-google-outline"; +export { default as IoSocialGoogle } from "./social-google"; +export { default as IoSocialGoogleplusOutline } from "./social-googleplus-outline"; +export { default as IoSocialGoogleplus } from "./social-googleplus"; +export { default as IoSocialHackernewsOutline } from "./social-hackernews-outline"; +export { default as IoSocialHackernews } from "./social-hackernews"; +export { default as IoSocialHtml5Outline } from "./social-html5-outline"; +export { default as IoSocialHtml5 } from "./social-html5"; +export { default as IoSocialInstagramOutline } from "./social-instagram-outline"; +export { default as IoSocialInstagram } from "./social-instagram"; +export { default as IoSocialJavascriptOutline } from "./social-javascript-outline"; +export { default as IoSocialJavascript } from "./social-javascript"; +export { default as IoSocialLinkedinOutline } from "./social-linkedin-outline"; +export { default as IoSocialLinkedin } from "./social-linkedin"; +export { default as IoSocialMarkdown } from "./social-markdown"; +export { default as IoSocialNodejs } from "./social-nodejs"; +export { default as IoSocialOctocat } from "./social-octocat"; +export { default as IoSocialPinterestOutline } from "./social-pinterest-outline"; +export { default as IoSocialPinterest } from "./social-pinterest"; +export { default as IoSocialPython } from "./social-python"; +export { default as IoSocialRedditOutline } from "./social-reddit-outline"; +export { default as IoSocialReddit } from "./social-reddit"; +export { default as IoSocialRssOutline } from "./social-rss-outline"; +export { default as IoSocialRss } from "./social-rss"; +export { default as IoSocialSass } from "./social-sass"; +export { default as IoSocialSkypeOutline } from "./social-skype-outline"; +export { default as IoSocialSkype } from "./social-skype"; +export { default as IoSocialSnapchatOutline } from "./social-snapchat-outline"; +export { default as IoSocialSnapchat } from "./social-snapchat"; +export { default as IoSocialTumblrOutline } from "./social-tumblr-outline"; +export { default as IoSocialTumblr } from "./social-tumblr"; +export { default as IoSocialTux } from "./social-tux"; +export { default as IoSocialTwitchOutline } from "./social-twitch-outline"; +export { default as IoSocialTwitch } from "./social-twitch"; +export { default as IoSocialTwitterOutline } from "./social-twitter-outline"; +export { default as IoSocialTwitter } from "./social-twitter"; +export { default as IoSocialUsdOutline } from "./social-usd-outline"; +export { default as IoSocialUsd } from "./social-usd"; +export { default as IoSocialVimeoOutline } from "./social-vimeo-outline"; +export { default as IoSocialVimeo } from "./social-vimeo"; +export { default as IoSocialWhatsappOutline } from "./social-whatsapp-outline"; +export { default as IoSocialWhatsapp } from "./social-whatsapp"; +export { default as IoSocialWindowsOutline } from "./social-windows-outline"; +export { default as IoSocialWindows } from "./social-windows"; +export { default as IoSocialWordpressOutline } from "./social-wordpress-outline"; +export { default as IoSocialWordpress } from "./social-wordpress"; +export { default as IoSocialYahooOutline } from "./social-yahoo-outline"; +export { default as IoSocialYahoo } from "./social-yahoo"; +export { default as IoSocialYenOutline } from "./social-yen-outline"; +export { default as IoSocialYen } from "./social-yen"; +export { default as IoSocialYoutubeOutline } from "./social-youtube-outline"; +export { default as IoSocialYoutube } from "./social-youtube"; +export { default as IoSoupCanOutline } from "./soup-can-outline"; +export { default as IoSoupCan } from "./soup-can"; +export { default as IoSpeakerphone } from "./speakerphone"; +export { default as IoSpeedometer } from "./speedometer"; +export { default as IoSpoon } from "./spoon"; +export { default as IoStar } from "./star"; +export { default as IoStatsBars } from "./stats-bars"; +export { default as IoSteam } from "./steam"; +export { default as IoStop } from "./stop"; +export { default as IoThermometer } from "./thermometer"; +export { default as IoThumbsdown } from "./thumbsdown"; +export { default as IoThumbsup } from "./thumbsup"; +export { default as IoToggleFilled } from "./toggle-filled"; +export { default as IoToggle } from "./toggle"; +export { default as IoTransgender } from "./transgender"; +export { default as IoTrashA } from "./trash-a"; +export { default as IoTrashB } from "./trash-b"; +export { default as IoTrophy } from "./trophy"; +export { default as IoTshirtOutline } from "./tshirt-outline"; +export { default as IoTshirt } from "./tshirt"; +export { default as IoUmbrella } from "./umbrella"; +export { default as IoUniversity } from "./university"; +export { default as IoUnlocked } from "./unlocked"; +export { default as IoUpload } from "./upload"; +export { default as IoUsb } from "./usb"; +export { default as IoVideocamera } from "./videocamera"; +export { default as IoVolumeHigh } from "./volume-high"; +export { default as IoVolumeLow } from "./volume-low"; +export { default as IoVolumeMedium } from "./volume-medium"; +export { default as IoVolumeMute } from "./volume-mute"; +export { default as IoWand } from "./wand"; +export { default as IoWaterdrop } from "./waterdrop"; +export { default as IoWifi } from "./wifi"; +export { default as IoWineglass } from "./wineglass"; +export { default as IoWoman } from "./woman"; +export { default as IoWrench } from "./wrench"; +export { default as IoXbox } from "./xbox"; diff --git a/types/react-icons/lib/io/informatcircled.d.ts b/types/react-icons/lib/io/informatcircled.d.ts new file mode 100644 index 0000000000..2ef20abca7 --- /dev/null +++ b/types/react-icons/lib/io/informatcircled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoInformatcircled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/information.d.ts b/types/react-icons/lib/io/information.d.ts new file mode 100644 index 0000000000..02652a360f --- /dev/null +++ b/types/react-icons/lib/io/information.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoInformation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ionic.d.ts b/types/react-icons/lib/io/ionic.d.ts new file mode 100644 index 0000000000..9e19c402cf --- /dev/null +++ b/types/react-icons/lib/io/ionic.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIonic extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-alarm-outline.d.ts b/types/react-icons/lib/io/ios-alarm-outline.d.ts new file mode 100644 index 0000000000..c211ebccee --- /dev/null +++ b/types/react-icons/lib/io/ios-alarm-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosAlarmOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-alarm.d.ts b/types/react-icons/lib/io/ios-alarm.d.ts new file mode 100644 index 0000000000..c61987318d --- /dev/null +++ b/types/react-icons/lib/io/ios-alarm.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosAlarm extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-albums-outline.d.ts b/types/react-icons/lib/io/ios-albums-outline.d.ts new file mode 100644 index 0000000000..48e06ad4b8 --- /dev/null +++ b/types/react-icons/lib/io/ios-albums-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosAlbumsOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-albums.d.ts b/types/react-icons/lib/io/ios-albums.d.ts new file mode 100644 index 0000000000..be7c86317a --- /dev/null +++ b/types/react-icons/lib/io/ios-albums.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosAlbums extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-americanfootball-outline.d.ts b/types/react-icons/lib/io/ios-americanfootball-outline.d.ts new file mode 100644 index 0000000000..d7041c17d3 --- /dev/null +++ b/types/react-icons/lib/io/ios-americanfootball-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosAmericanfootballOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-americanfootball.d.ts b/types/react-icons/lib/io/ios-americanfootball.d.ts new file mode 100644 index 0000000000..4af77520ff --- /dev/null +++ b/types/react-icons/lib/io/ios-americanfootball.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosAmericanfootball extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-analytics-outline.d.ts b/types/react-icons/lib/io/ios-analytics-outline.d.ts new file mode 100644 index 0000000000..6192de6c58 --- /dev/null +++ b/types/react-icons/lib/io/ios-analytics-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosAnalyticsOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-analytics.d.ts b/types/react-icons/lib/io/ios-analytics.d.ts new file mode 100644 index 0000000000..9f3d9e110e --- /dev/null +++ b/types/react-icons/lib/io/ios-analytics.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosAnalytics extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-arrow-back.d.ts b/types/react-icons/lib/io/ios-arrow-back.d.ts new file mode 100644 index 0000000000..1466e59a6d --- /dev/null +++ b/types/react-icons/lib/io/ios-arrow-back.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosArrowBack extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-arrow-down.d.ts b/types/react-icons/lib/io/ios-arrow-down.d.ts new file mode 100644 index 0000000000..91773f927b --- /dev/null +++ b/types/react-icons/lib/io/ios-arrow-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosArrowDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-arrow-forward.d.ts b/types/react-icons/lib/io/ios-arrow-forward.d.ts new file mode 100644 index 0000000000..a2bf7fe213 --- /dev/null +++ b/types/react-icons/lib/io/ios-arrow-forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosArrowForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-arrow-left.d.ts b/types/react-icons/lib/io/ios-arrow-left.d.ts new file mode 100644 index 0000000000..0588edeed0 --- /dev/null +++ b/types/react-icons/lib/io/ios-arrow-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosArrowLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-arrow-right.d.ts b/types/react-icons/lib/io/ios-arrow-right.d.ts new file mode 100644 index 0000000000..5642202b5c --- /dev/null +++ b/types/react-icons/lib/io/ios-arrow-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosArrowRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-arrow-thin-down.d.ts b/types/react-icons/lib/io/ios-arrow-thin-down.d.ts new file mode 100644 index 0000000000..183b547848 --- /dev/null +++ b/types/react-icons/lib/io/ios-arrow-thin-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosArrowThinDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-arrow-thin-left.d.ts b/types/react-icons/lib/io/ios-arrow-thin-left.d.ts new file mode 100644 index 0000000000..4fea91fe45 --- /dev/null +++ b/types/react-icons/lib/io/ios-arrow-thin-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosArrowThinLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-arrow-thin-right.d.ts b/types/react-icons/lib/io/ios-arrow-thin-right.d.ts new file mode 100644 index 0000000000..5e70abd099 --- /dev/null +++ b/types/react-icons/lib/io/ios-arrow-thin-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosArrowThinRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-arrow-thin-up.d.ts b/types/react-icons/lib/io/ios-arrow-thin-up.d.ts new file mode 100644 index 0000000000..412e0b53a2 --- /dev/null +++ b/types/react-icons/lib/io/ios-arrow-thin-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosArrowThinUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-arrow-up.d.ts b/types/react-icons/lib/io/ios-arrow-up.d.ts new file mode 100644 index 0000000000..2adf431795 --- /dev/null +++ b/types/react-icons/lib/io/ios-arrow-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosArrowUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-at-outline.d.ts b/types/react-icons/lib/io/ios-at-outline.d.ts new file mode 100644 index 0000000000..7d20c06912 --- /dev/null +++ b/types/react-icons/lib/io/ios-at-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosAtOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-at.d.ts b/types/react-icons/lib/io/ios-at.d.ts new file mode 100644 index 0000000000..5789d0b976 --- /dev/null +++ b/types/react-icons/lib/io/ios-at.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosAt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-barcode-outline.d.ts b/types/react-icons/lib/io/ios-barcode-outline.d.ts new file mode 100644 index 0000000000..a82a5b88c8 --- /dev/null +++ b/types/react-icons/lib/io/ios-barcode-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBarcodeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-barcode.d.ts b/types/react-icons/lib/io/ios-barcode.d.ts new file mode 100644 index 0000000000..20a769e78e --- /dev/null +++ b/types/react-icons/lib/io/ios-barcode.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBarcode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-baseball-outline.d.ts b/types/react-icons/lib/io/ios-baseball-outline.d.ts new file mode 100644 index 0000000000..99856309a9 --- /dev/null +++ b/types/react-icons/lib/io/ios-baseball-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBaseballOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-baseball.d.ts b/types/react-icons/lib/io/ios-baseball.d.ts new file mode 100644 index 0000000000..1470fd138c --- /dev/null +++ b/types/react-icons/lib/io/ios-baseball.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBaseball extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-basketball-outline.d.ts b/types/react-icons/lib/io/ios-basketball-outline.d.ts new file mode 100644 index 0000000000..5b2d8845df --- /dev/null +++ b/types/react-icons/lib/io/ios-basketball-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBasketballOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-basketball.d.ts b/types/react-icons/lib/io/ios-basketball.d.ts new file mode 100644 index 0000000000..294798f648 --- /dev/null +++ b/types/react-icons/lib/io/ios-basketball.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBasketball extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-bell-outline.d.ts b/types/react-icons/lib/io/ios-bell-outline.d.ts new file mode 100644 index 0000000000..c03c49121e --- /dev/null +++ b/types/react-icons/lib/io/ios-bell-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBellOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-bell.d.ts b/types/react-icons/lib/io/ios-bell.d.ts new file mode 100644 index 0000000000..d1b90b21f9 --- /dev/null +++ b/types/react-icons/lib/io/ios-bell.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBell extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-body-outline.d.ts b/types/react-icons/lib/io/ios-body-outline.d.ts new file mode 100644 index 0000000000..235ed9bca0 --- /dev/null +++ b/types/react-icons/lib/io/ios-body-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBodyOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-body.d.ts b/types/react-icons/lib/io/ios-body.d.ts new file mode 100644 index 0000000000..89712f6b0e --- /dev/null +++ b/types/react-icons/lib/io/ios-body.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBody extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-bolt-outline.d.ts b/types/react-icons/lib/io/ios-bolt-outline.d.ts new file mode 100644 index 0000000000..acc1db40e6 --- /dev/null +++ b/types/react-icons/lib/io/ios-bolt-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBoltOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-bolt.d.ts b/types/react-icons/lib/io/ios-bolt.d.ts new file mode 100644 index 0000000000..a953af8901 --- /dev/null +++ b/types/react-icons/lib/io/ios-bolt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBolt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-book-outline.d.ts b/types/react-icons/lib/io/ios-book-outline.d.ts new file mode 100644 index 0000000000..d6587de870 --- /dev/null +++ b/types/react-icons/lib/io/ios-book-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBookOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-book.d.ts b/types/react-icons/lib/io/ios-book.d.ts new file mode 100644 index 0000000000..9bcddd9e60 --- /dev/null +++ b/types/react-icons/lib/io/ios-book.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBook extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-bookmarks-outline.d.ts b/types/react-icons/lib/io/ios-bookmarks-outline.d.ts new file mode 100644 index 0000000000..c999d5cdd5 --- /dev/null +++ b/types/react-icons/lib/io/ios-bookmarks-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBookmarksOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-bookmarks.d.ts b/types/react-icons/lib/io/ios-bookmarks.d.ts new file mode 100644 index 0000000000..42a926adda --- /dev/null +++ b/types/react-icons/lib/io/ios-bookmarks.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBookmarks extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-box-outline.d.ts b/types/react-icons/lib/io/ios-box-outline.d.ts new file mode 100644 index 0000000000..02b34cefc1 --- /dev/null +++ b/types/react-icons/lib/io/ios-box-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBoxOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-box.d.ts b/types/react-icons/lib/io/ios-box.d.ts new file mode 100644 index 0000000000..67ab43d367 --- /dev/null +++ b/types/react-icons/lib/io/ios-box.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-briefcase-outline.d.ts b/types/react-icons/lib/io/ios-briefcase-outline.d.ts new file mode 100644 index 0000000000..bcba814767 --- /dev/null +++ b/types/react-icons/lib/io/ios-briefcase-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBriefcaseOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-briefcase.d.ts b/types/react-icons/lib/io/ios-briefcase.d.ts new file mode 100644 index 0000000000..03409c1dc4 --- /dev/null +++ b/types/react-icons/lib/io/ios-briefcase.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBriefcase extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-browsers-outline.d.ts b/types/react-icons/lib/io/ios-browsers-outline.d.ts new file mode 100644 index 0000000000..a85fd4dfc9 --- /dev/null +++ b/types/react-icons/lib/io/ios-browsers-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBrowsersOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-browsers.d.ts b/types/react-icons/lib/io/ios-browsers.d.ts new file mode 100644 index 0000000000..155d546472 --- /dev/null +++ b/types/react-icons/lib/io/ios-browsers.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosBrowsers extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-calculator-outline.d.ts b/types/react-icons/lib/io/ios-calculator-outline.d.ts new file mode 100644 index 0000000000..19453725e5 --- /dev/null +++ b/types/react-icons/lib/io/ios-calculator-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCalculatorOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-calculator.d.ts b/types/react-icons/lib/io/ios-calculator.d.ts new file mode 100644 index 0000000000..736a4f431f --- /dev/null +++ b/types/react-icons/lib/io/ios-calculator.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCalculator extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-calendar-outline.d.ts b/types/react-icons/lib/io/ios-calendar-outline.d.ts new file mode 100644 index 0000000000..131eba8430 --- /dev/null +++ b/types/react-icons/lib/io/ios-calendar-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCalendarOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-calendar.d.ts b/types/react-icons/lib/io/ios-calendar.d.ts new file mode 100644 index 0000000000..3275cc770c --- /dev/null +++ b/types/react-icons/lib/io/ios-calendar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCalendar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-camera-outline.d.ts b/types/react-icons/lib/io/ios-camera-outline.d.ts new file mode 100644 index 0000000000..194cacb253 --- /dev/null +++ b/types/react-icons/lib/io/ios-camera-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCameraOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-camera.d.ts b/types/react-icons/lib/io/ios-camera.d.ts new file mode 100644 index 0000000000..346d035f8c --- /dev/null +++ b/types/react-icons/lib/io/ios-camera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCamera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cart-outline.d.ts b/types/react-icons/lib/io/ios-cart-outline.d.ts new file mode 100644 index 0000000000..d7f76296dd --- /dev/null +++ b/types/react-icons/lib/io/ios-cart-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCartOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cart.d.ts b/types/react-icons/lib/io/ios-cart.d.ts new file mode 100644 index 0000000000..918b941efc --- /dev/null +++ b/types/react-icons/lib/io/ios-cart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-chatboxes-outline.d.ts b/types/react-icons/lib/io/ios-chatboxes-outline.d.ts new file mode 100644 index 0000000000..1db97e7086 --- /dev/null +++ b/types/react-icons/lib/io/ios-chatboxes-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosChatboxesOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-chatboxes.d.ts b/types/react-icons/lib/io/ios-chatboxes.d.ts new file mode 100644 index 0000000000..a32fdd72c4 --- /dev/null +++ b/types/react-icons/lib/io/ios-chatboxes.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosChatboxes extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-chatbubble-outline.d.ts b/types/react-icons/lib/io/ios-chatbubble-outline.d.ts new file mode 100644 index 0000000000..ba2b57a053 --- /dev/null +++ b/types/react-icons/lib/io/ios-chatbubble-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosChatbubbleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-chatbubble.d.ts b/types/react-icons/lib/io/ios-chatbubble.d.ts new file mode 100644 index 0000000000..bb9d024821 --- /dev/null +++ b/types/react-icons/lib/io/ios-chatbubble.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosChatbubble extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-checkmark-empty.d.ts b/types/react-icons/lib/io/ios-checkmark-empty.d.ts new file mode 100644 index 0000000000..328adb1f00 --- /dev/null +++ b/types/react-icons/lib/io/ios-checkmark-empty.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCheckmarkEmpty extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-checkmark-outline.d.ts b/types/react-icons/lib/io/ios-checkmark-outline.d.ts new file mode 100644 index 0000000000..cb19eebc9b --- /dev/null +++ b/types/react-icons/lib/io/ios-checkmark-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCheckmarkOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-checkmark.d.ts b/types/react-icons/lib/io/ios-checkmark.d.ts new file mode 100644 index 0000000000..3fcabda1bf --- /dev/null +++ b/types/react-icons/lib/io/ios-checkmark.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCheckmark extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-circle-filled.d.ts b/types/react-icons/lib/io/ios-circle-filled.d.ts new file mode 100644 index 0000000000..4b4192096d --- /dev/null +++ b/types/react-icons/lib/io/ios-circle-filled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCircleFilled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-circle-outline.d.ts b/types/react-icons/lib/io/ios-circle-outline.d.ts new file mode 100644 index 0000000000..99a0ae723f --- /dev/null +++ b/types/react-icons/lib/io/ios-circle-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCircleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-clock-outline.d.ts b/types/react-icons/lib/io/ios-clock-outline.d.ts new file mode 100644 index 0000000000..2d5febf0a9 --- /dev/null +++ b/types/react-icons/lib/io/ios-clock-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosClockOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-clock.d.ts b/types/react-icons/lib/io/ios-clock.d.ts new file mode 100644 index 0000000000..aa160a4bd7 --- /dev/null +++ b/types/react-icons/lib/io/ios-clock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosClock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-close-empty.d.ts b/types/react-icons/lib/io/ios-close-empty.d.ts new file mode 100644 index 0000000000..44a0c8d17b --- /dev/null +++ b/types/react-icons/lib/io/ios-close-empty.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCloseEmpty extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-close-outline.d.ts b/types/react-icons/lib/io/ios-close-outline.d.ts new file mode 100644 index 0000000000..323c5b9d4a --- /dev/null +++ b/types/react-icons/lib/io/ios-close-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCloseOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-close.d.ts b/types/react-icons/lib/io/ios-close.d.ts new file mode 100644 index 0000000000..21ed802d2a --- /dev/null +++ b/types/react-icons/lib/io/ios-close.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosClose extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cloud-download-outline.d.ts b/types/react-icons/lib/io/ios-cloud-download-outline.d.ts new file mode 100644 index 0000000000..3e4358be6d --- /dev/null +++ b/types/react-icons/lib/io/ios-cloud-download-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCloudDownloadOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cloud-download.d.ts b/types/react-icons/lib/io/ios-cloud-download.d.ts new file mode 100644 index 0000000000..593e0c7730 --- /dev/null +++ b/types/react-icons/lib/io/ios-cloud-download.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCloudDownload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cloud-outline.d.ts b/types/react-icons/lib/io/ios-cloud-outline.d.ts new file mode 100644 index 0000000000..c70f0794c3 --- /dev/null +++ b/types/react-icons/lib/io/ios-cloud-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCloudOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cloud-upload-outline.d.ts b/types/react-icons/lib/io/ios-cloud-upload-outline.d.ts new file mode 100644 index 0000000000..2796f586ec --- /dev/null +++ b/types/react-icons/lib/io/ios-cloud-upload-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCloudUploadOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cloud-upload.d.ts b/types/react-icons/lib/io/ios-cloud-upload.d.ts new file mode 100644 index 0000000000..b34cc692a2 --- /dev/null +++ b/types/react-icons/lib/io/ios-cloud-upload.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCloudUpload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cloud.d.ts b/types/react-icons/lib/io/ios-cloud.d.ts new file mode 100644 index 0000000000..a802116f9f --- /dev/null +++ b/types/react-icons/lib/io/ios-cloud.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCloud extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cloudy-night-outline.d.ts b/types/react-icons/lib/io/ios-cloudy-night-outline.d.ts new file mode 100644 index 0000000000..4845f7470d --- /dev/null +++ b/types/react-icons/lib/io/ios-cloudy-night-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCloudyNightOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cloudy-night.d.ts b/types/react-icons/lib/io/ios-cloudy-night.d.ts new file mode 100644 index 0000000000..9298dc5823 --- /dev/null +++ b/types/react-icons/lib/io/ios-cloudy-night.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCloudyNight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cloudy-outline.d.ts b/types/react-icons/lib/io/ios-cloudy-outline.d.ts new file mode 100644 index 0000000000..cfcfd72e69 --- /dev/null +++ b/types/react-icons/lib/io/ios-cloudy-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCloudyOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cloudy.d.ts b/types/react-icons/lib/io/ios-cloudy.d.ts new file mode 100644 index 0000000000..1d30070268 --- /dev/null +++ b/types/react-icons/lib/io/ios-cloudy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCloudy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cog-outline.d.ts b/types/react-icons/lib/io/ios-cog-outline.d.ts new file mode 100644 index 0000000000..8553742da2 --- /dev/null +++ b/types/react-icons/lib/io/ios-cog-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCogOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-cog.d.ts b/types/react-icons/lib/io/ios-cog.d.ts new file mode 100644 index 0000000000..b834fcb3c8 --- /dev/null +++ b/types/react-icons/lib/io/ios-cog.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCog extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-color-filter-outline.d.ts b/types/react-icons/lib/io/ios-color-filter-outline.d.ts new file mode 100644 index 0000000000..a3a38a75c9 --- /dev/null +++ b/types/react-icons/lib/io/ios-color-filter-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosColorFilterOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-color-filter.d.ts b/types/react-icons/lib/io/ios-color-filter.d.ts new file mode 100644 index 0000000000..20fcdef6df --- /dev/null +++ b/types/react-icons/lib/io/ios-color-filter.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosColorFilter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-color-wand-outline.d.ts b/types/react-icons/lib/io/ios-color-wand-outline.d.ts new file mode 100644 index 0000000000..ddb1cb938c --- /dev/null +++ b/types/react-icons/lib/io/ios-color-wand-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosColorWandOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-color-wand.d.ts b/types/react-icons/lib/io/ios-color-wand.d.ts new file mode 100644 index 0000000000..2cffa4f89e --- /dev/null +++ b/types/react-icons/lib/io/ios-color-wand.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosColorWand extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-compose-outline.d.ts b/types/react-icons/lib/io/ios-compose-outline.d.ts new file mode 100644 index 0000000000..30d416ed90 --- /dev/null +++ b/types/react-icons/lib/io/ios-compose-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosComposeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-compose.d.ts b/types/react-icons/lib/io/ios-compose.d.ts new file mode 100644 index 0000000000..9445eed5c1 --- /dev/null +++ b/types/react-icons/lib/io/ios-compose.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCompose extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-contact-outline.d.ts b/types/react-icons/lib/io/ios-contact-outline.d.ts new file mode 100644 index 0000000000..7eb6eb546f --- /dev/null +++ b/types/react-icons/lib/io/ios-contact-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosContactOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-contact.d.ts b/types/react-icons/lib/io/ios-contact.d.ts new file mode 100644 index 0000000000..59c2798235 --- /dev/null +++ b/types/react-icons/lib/io/ios-contact.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosContact extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-copy-outline.d.ts b/types/react-icons/lib/io/ios-copy-outline.d.ts new file mode 100644 index 0000000000..5af5717e89 --- /dev/null +++ b/types/react-icons/lib/io/ios-copy-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCopyOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-copy.d.ts b/types/react-icons/lib/io/ios-copy.d.ts new file mode 100644 index 0000000000..2523a14f88 --- /dev/null +++ b/types/react-icons/lib/io/ios-copy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCopy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-crop-strong.d.ts b/types/react-icons/lib/io/ios-crop-strong.d.ts new file mode 100644 index 0000000000..b0126c2482 --- /dev/null +++ b/types/react-icons/lib/io/ios-crop-strong.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCropStrong extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-crop.d.ts b/types/react-icons/lib/io/ios-crop.d.ts new file mode 100644 index 0000000000..ab76318d3a --- /dev/null +++ b/types/react-icons/lib/io/ios-crop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosCrop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-download-outline.d.ts b/types/react-icons/lib/io/ios-download-outline.d.ts new file mode 100644 index 0000000000..4498357495 --- /dev/null +++ b/types/react-icons/lib/io/ios-download-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosDownloadOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-download.d.ts b/types/react-icons/lib/io/ios-download.d.ts new file mode 100644 index 0000000000..35aaac4be0 --- /dev/null +++ b/types/react-icons/lib/io/ios-download.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosDownload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-drag.d.ts b/types/react-icons/lib/io/ios-drag.d.ts new file mode 100644 index 0000000000..17979b680a --- /dev/null +++ b/types/react-icons/lib/io/ios-drag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosDrag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-email-outline.d.ts b/types/react-icons/lib/io/ios-email-outline.d.ts new file mode 100644 index 0000000000..3ad2b9cb16 --- /dev/null +++ b/types/react-icons/lib/io/ios-email-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosEmailOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-email.d.ts b/types/react-icons/lib/io/ios-email.d.ts new file mode 100644 index 0000000000..ac81192fe0 --- /dev/null +++ b/types/react-icons/lib/io/ios-email.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosEmail extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-eye-outline.d.ts b/types/react-icons/lib/io/ios-eye-outline.d.ts new file mode 100644 index 0000000000..8f83b25a13 --- /dev/null +++ b/types/react-icons/lib/io/ios-eye-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosEyeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-eye.d.ts b/types/react-icons/lib/io/ios-eye.d.ts new file mode 100644 index 0000000000..2a3db8b839 --- /dev/null +++ b/types/react-icons/lib/io/ios-eye.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosEye extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-fastforward-outline.d.ts b/types/react-icons/lib/io/ios-fastforward-outline.d.ts new file mode 100644 index 0000000000..ebc30ba915 --- /dev/null +++ b/types/react-icons/lib/io/ios-fastforward-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFastforwardOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-fastforward.d.ts b/types/react-icons/lib/io/ios-fastforward.d.ts new file mode 100644 index 0000000000..2fedece46c --- /dev/null +++ b/types/react-icons/lib/io/ios-fastforward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFastforward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-filing-outline.d.ts b/types/react-icons/lib/io/ios-filing-outline.d.ts new file mode 100644 index 0000000000..07291ebfd3 --- /dev/null +++ b/types/react-icons/lib/io/ios-filing-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFilingOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-filing.d.ts b/types/react-icons/lib/io/ios-filing.d.ts new file mode 100644 index 0000000000..0ccb6e3e3b --- /dev/null +++ b/types/react-icons/lib/io/ios-filing.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFiling extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-film-outline.d.ts b/types/react-icons/lib/io/ios-film-outline.d.ts new file mode 100644 index 0000000000..5528977dce --- /dev/null +++ b/types/react-icons/lib/io/ios-film-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFilmOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-film.d.ts b/types/react-icons/lib/io/ios-film.d.ts new file mode 100644 index 0000000000..447ebbe08e --- /dev/null +++ b/types/react-icons/lib/io/ios-film.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFilm extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-flag-outline.d.ts b/types/react-icons/lib/io/ios-flag-outline.d.ts new file mode 100644 index 0000000000..f602c44993 --- /dev/null +++ b/types/react-icons/lib/io/ios-flag-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFlagOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-flag.d.ts b/types/react-icons/lib/io/ios-flag.d.ts new file mode 100644 index 0000000000..d6095c22f3 --- /dev/null +++ b/types/react-icons/lib/io/ios-flag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFlag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-flame-outline.d.ts b/types/react-icons/lib/io/ios-flame-outline.d.ts new file mode 100644 index 0000000000..0e8b7410e9 --- /dev/null +++ b/types/react-icons/lib/io/ios-flame-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFlameOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-flame.d.ts b/types/react-icons/lib/io/ios-flame.d.ts new file mode 100644 index 0000000000..a21289710b --- /dev/null +++ b/types/react-icons/lib/io/ios-flame.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFlame extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-flask-outline.d.ts b/types/react-icons/lib/io/ios-flask-outline.d.ts new file mode 100644 index 0000000000..2082d7a326 --- /dev/null +++ b/types/react-icons/lib/io/ios-flask-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFlaskOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-flask.d.ts b/types/react-icons/lib/io/ios-flask.d.ts new file mode 100644 index 0000000000..0b622f18e2 --- /dev/null +++ b/types/react-icons/lib/io/ios-flask.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFlask extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-flower-outline.d.ts b/types/react-icons/lib/io/ios-flower-outline.d.ts new file mode 100644 index 0000000000..7886cbc193 --- /dev/null +++ b/types/react-icons/lib/io/ios-flower-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFlowerOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-flower.d.ts b/types/react-icons/lib/io/ios-flower.d.ts new file mode 100644 index 0000000000..9e1ba1e0bc --- /dev/null +++ b/types/react-icons/lib/io/ios-flower.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFlower extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-folder-outline.d.ts b/types/react-icons/lib/io/ios-folder-outline.d.ts new file mode 100644 index 0000000000..43c60dc202 --- /dev/null +++ b/types/react-icons/lib/io/ios-folder-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFolderOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-folder.d.ts b/types/react-icons/lib/io/ios-folder.d.ts new file mode 100644 index 0000000000..785495d440 --- /dev/null +++ b/types/react-icons/lib/io/ios-folder.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFolder extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-football-outline.d.ts b/types/react-icons/lib/io/ios-football-outline.d.ts new file mode 100644 index 0000000000..6f669b0cd0 --- /dev/null +++ b/types/react-icons/lib/io/ios-football-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFootballOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-football.d.ts b/types/react-icons/lib/io/ios-football.d.ts new file mode 100644 index 0000000000..0ece60db03 --- /dev/null +++ b/types/react-icons/lib/io/ios-football.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosFootball extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-game-controller-a-outline.d.ts b/types/react-icons/lib/io/ios-game-controller-a-outline.d.ts new file mode 100644 index 0000000000..200c64a673 --- /dev/null +++ b/types/react-icons/lib/io/ios-game-controller-a-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosGameControllerAOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-game-controller-a.d.ts b/types/react-icons/lib/io/ios-game-controller-a.d.ts new file mode 100644 index 0000000000..e9e7048f94 --- /dev/null +++ b/types/react-icons/lib/io/ios-game-controller-a.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosGameControllerA extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-game-controller-b-outline.d.ts b/types/react-icons/lib/io/ios-game-controller-b-outline.d.ts new file mode 100644 index 0000000000..d7d82be788 --- /dev/null +++ b/types/react-icons/lib/io/ios-game-controller-b-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosGameControllerBOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-game-controller-b.d.ts b/types/react-icons/lib/io/ios-game-controller-b.d.ts new file mode 100644 index 0000000000..6e5435416c --- /dev/null +++ b/types/react-icons/lib/io/ios-game-controller-b.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosGameControllerB extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-gear-outline.d.ts b/types/react-icons/lib/io/ios-gear-outline.d.ts new file mode 100644 index 0000000000..22181a1a55 --- /dev/null +++ b/types/react-icons/lib/io/ios-gear-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosGearOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-gear.d.ts b/types/react-icons/lib/io/ios-gear.d.ts new file mode 100644 index 0000000000..e899faa7a9 --- /dev/null +++ b/types/react-icons/lib/io/ios-gear.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosGear extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-glasses-outline.d.ts b/types/react-icons/lib/io/ios-glasses-outline.d.ts new file mode 100644 index 0000000000..049fc5bd95 --- /dev/null +++ b/types/react-icons/lib/io/ios-glasses-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosGlassesOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-glasses.d.ts b/types/react-icons/lib/io/ios-glasses.d.ts new file mode 100644 index 0000000000..585312b1f7 --- /dev/null +++ b/types/react-icons/lib/io/ios-glasses.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosGlasses extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-grid-view-outline.d.ts b/types/react-icons/lib/io/ios-grid-view-outline.d.ts new file mode 100644 index 0000000000..f1cf87b7d6 --- /dev/null +++ b/types/react-icons/lib/io/ios-grid-view-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosGridViewOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-grid-view.d.ts b/types/react-icons/lib/io/ios-grid-view.d.ts new file mode 100644 index 0000000000..00f6bb916c --- /dev/null +++ b/types/react-icons/lib/io/ios-grid-view.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosGridView extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-heart-outline.d.ts b/types/react-icons/lib/io/ios-heart-outline.d.ts new file mode 100644 index 0000000000..354c5543f3 --- /dev/null +++ b/types/react-icons/lib/io/ios-heart-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosHeartOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-heart.d.ts b/types/react-icons/lib/io/ios-heart.d.ts new file mode 100644 index 0000000000..254ce938f3 --- /dev/null +++ b/types/react-icons/lib/io/ios-heart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosHeart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-help-empty.d.ts b/types/react-icons/lib/io/ios-help-empty.d.ts new file mode 100644 index 0000000000..cd94f6ceed --- /dev/null +++ b/types/react-icons/lib/io/ios-help-empty.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosHelpEmpty extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-help-outline.d.ts b/types/react-icons/lib/io/ios-help-outline.d.ts new file mode 100644 index 0000000000..3e73ec588b --- /dev/null +++ b/types/react-icons/lib/io/ios-help-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosHelpOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-help.d.ts b/types/react-icons/lib/io/ios-help.d.ts new file mode 100644 index 0000000000..00ede643d8 --- /dev/null +++ b/types/react-icons/lib/io/ios-help.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosHelp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-home-outline.d.ts b/types/react-icons/lib/io/ios-home-outline.d.ts new file mode 100644 index 0000000000..17f1432ff8 --- /dev/null +++ b/types/react-icons/lib/io/ios-home-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosHomeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-home.d.ts b/types/react-icons/lib/io/ios-home.d.ts new file mode 100644 index 0000000000..c0f80ecaf3 --- /dev/null +++ b/types/react-icons/lib/io/ios-home.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosHome extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-infinite-outline.d.ts b/types/react-icons/lib/io/ios-infinite-outline.d.ts new file mode 100644 index 0000000000..0b043764ee --- /dev/null +++ b/types/react-icons/lib/io/ios-infinite-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosInfiniteOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-infinite.d.ts b/types/react-icons/lib/io/ios-infinite.d.ts new file mode 100644 index 0000000000..bf78e5f95b --- /dev/null +++ b/types/react-icons/lib/io/ios-infinite.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosInfinite extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-informatempty.d.ts b/types/react-icons/lib/io/ios-informatempty.d.ts new file mode 100644 index 0000000000..34c1b0c19c --- /dev/null +++ b/types/react-icons/lib/io/ios-informatempty.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosInformatempty extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-information.d.ts b/types/react-icons/lib/io/ios-information.d.ts new file mode 100644 index 0000000000..f6e3295ac3 --- /dev/null +++ b/types/react-icons/lib/io/ios-information.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosInformation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-informatoutline.d.ts b/types/react-icons/lib/io/ios-informatoutline.d.ts new file mode 100644 index 0000000000..038ce93a28 --- /dev/null +++ b/types/react-icons/lib/io/ios-informatoutline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosInformatoutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-ionic-outline.d.ts b/types/react-icons/lib/io/ios-ionic-outline.d.ts new file mode 100644 index 0000000000..bd42bf2316 --- /dev/null +++ b/types/react-icons/lib/io/ios-ionic-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosIonicOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-keypad-outline.d.ts b/types/react-icons/lib/io/ios-keypad-outline.d.ts new file mode 100644 index 0000000000..9adff455e3 --- /dev/null +++ b/types/react-icons/lib/io/ios-keypad-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosKeypadOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-keypad.d.ts b/types/react-icons/lib/io/ios-keypad.d.ts new file mode 100644 index 0000000000..a804cf857f --- /dev/null +++ b/types/react-icons/lib/io/ios-keypad.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosKeypad extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-lightbulb-outline.d.ts b/types/react-icons/lib/io/ios-lightbulb-outline.d.ts new file mode 100644 index 0000000000..4c92bdd5d6 --- /dev/null +++ b/types/react-icons/lib/io/ios-lightbulb-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosLightbulbOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-lightbulb.d.ts b/types/react-icons/lib/io/ios-lightbulb.d.ts new file mode 100644 index 0000000000..a7bbb177bb --- /dev/null +++ b/types/react-icons/lib/io/ios-lightbulb.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosLightbulb extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-list-outline.d.ts b/types/react-icons/lib/io/ios-list-outline.d.ts new file mode 100644 index 0000000000..839d753887 --- /dev/null +++ b/types/react-icons/lib/io/ios-list-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosListOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-list.d.ts b/types/react-icons/lib/io/ios-list.d.ts new file mode 100644 index 0000000000..9789a06dc7 --- /dev/null +++ b/types/react-icons/lib/io/ios-list.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosList extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-location.d.ts b/types/react-icons/lib/io/ios-location.d.ts new file mode 100644 index 0000000000..617b853698 --- /dev/null +++ b/types/react-icons/lib/io/ios-location.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosLocation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-locatoutline.d.ts b/types/react-icons/lib/io/ios-locatoutline.d.ts new file mode 100644 index 0000000000..141e72e594 --- /dev/null +++ b/types/react-icons/lib/io/ios-locatoutline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosLocatoutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-locked-outline.d.ts b/types/react-icons/lib/io/ios-locked-outline.d.ts new file mode 100644 index 0000000000..3f0855a38d --- /dev/null +++ b/types/react-icons/lib/io/ios-locked-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosLockedOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-locked.d.ts b/types/react-icons/lib/io/ios-locked.d.ts new file mode 100644 index 0000000000..b22a3238d4 --- /dev/null +++ b/types/react-icons/lib/io/ios-locked.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosLocked extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-loop-strong.d.ts b/types/react-icons/lib/io/ios-loop-strong.d.ts new file mode 100644 index 0000000000..900c41d788 --- /dev/null +++ b/types/react-icons/lib/io/ios-loop-strong.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosLoopStrong extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-loop.d.ts b/types/react-icons/lib/io/ios-loop.d.ts new file mode 100644 index 0000000000..0235e4f546 --- /dev/null +++ b/types/react-icons/lib/io/ios-loop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosLoop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-medical-outline.d.ts b/types/react-icons/lib/io/ios-medical-outline.d.ts new file mode 100644 index 0000000000..dadb2e61ae --- /dev/null +++ b/types/react-icons/lib/io/ios-medical-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMedicalOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-medical.d.ts b/types/react-icons/lib/io/ios-medical.d.ts new file mode 100644 index 0000000000..1d63e24694 --- /dev/null +++ b/types/react-icons/lib/io/ios-medical.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMedical extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-medkit-outline.d.ts b/types/react-icons/lib/io/ios-medkit-outline.d.ts new file mode 100644 index 0000000000..367cb88b6f --- /dev/null +++ b/types/react-icons/lib/io/ios-medkit-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMedkitOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-medkit.d.ts b/types/react-icons/lib/io/ios-medkit.d.ts new file mode 100644 index 0000000000..bf5d378f58 --- /dev/null +++ b/types/react-icons/lib/io/ios-medkit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMedkit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-mic-off.d.ts b/types/react-icons/lib/io/ios-mic-off.d.ts new file mode 100644 index 0000000000..093cc13897 --- /dev/null +++ b/types/react-icons/lib/io/ios-mic-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMicOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-mic-outline.d.ts b/types/react-icons/lib/io/ios-mic-outline.d.ts new file mode 100644 index 0000000000..1e2a4f7ca6 --- /dev/null +++ b/types/react-icons/lib/io/ios-mic-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMicOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-mic.d.ts b/types/react-icons/lib/io/ios-mic.d.ts new file mode 100644 index 0000000000..a561e50887 --- /dev/null +++ b/types/react-icons/lib/io/ios-mic.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMic extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-minus-empty.d.ts b/types/react-icons/lib/io/ios-minus-empty.d.ts new file mode 100644 index 0000000000..d33c1a6e8c --- /dev/null +++ b/types/react-icons/lib/io/ios-minus-empty.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMinusEmpty extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-minus-outline.d.ts b/types/react-icons/lib/io/ios-minus-outline.d.ts new file mode 100644 index 0000000000..d7373a37df --- /dev/null +++ b/types/react-icons/lib/io/ios-minus-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMinusOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-minus.d.ts b/types/react-icons/lib/io/ios-minus.d.ts new file mode 100644 index 0000000000..abc0a2679e --- /dev/null +++ b/types/react-icons/lib/io/ios-minus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMinus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-monitor-outline.d.ts b/types/react-icons/lib/io/ios-monitor-outline.d.ts new file mode 100644 index 0000000000..8dd207f86e --- /dev/null +++ b/types/react-icons/lib/io/ios-monitor-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMonitorOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-monitor.d.ts b/types/react-icons/lib/io/ios-monitor.d.ts new file mode 100644 index 0000000000..965a9b5d3b --- /dev/null +++ b/types/react-icons/lib/io/ios-monitor.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMonitor extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-moon-outline.d.ts b/types/react-icons/lib/io/ios-moon-outline.d.ts new file mode 100644 index 0000000000..e35e94911f --- /dev/null +++ b/types/react-icons/lib/io/ios-moon-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMoonOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-moon.d.ts b/types/react-icons/lib/io/ios-moon.d.ts new file mode 100644 index 0000000000..cee7a782f1 --- /dev/null +++ b/types/react-icons/lib/io/ios-moon.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMoon extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-more-outline.d.ts b/types/react-icons/lib/io/ios-more-outline.d.ts new file mode 100644 index 0000000000..a5a83f41cf --- /dev/null +++ b/types/react-icons/lib/io/ios-more-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMoreOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-more.d.ts b/types/react-icons/lib/io/ios-more.d.ts new file mode 100644 index 0000000000..9fb63209db --- /dev/null +++ b/types/react-icons/lib/io/ios-more.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMore extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-musical-note.d.ts b/types/react-icons/lib/io/ios-musical-note.d.ts new file mode 100644 index 0000000000..123b990474 --- /dev/null +++ b/types/react-icons/lib/io/ios-musical-note.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMusicalNote extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-musical-notes.d.ts b/types/react-icons/lib/io/ios-musical-notes.d.ts new file mode 100644 index 0000000000..54daf1715e --- /dev/null +++ b/types/react-icons/lib/io/ios-musical-notes.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosMusicalNotes extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-navigate-outline.d.ts b/types/react-icons/lib/io/ios-navigate-outline.d.ts new file mode 100644 index 0000000000..daaafc5c76 --- /dev/null +++ b/types/react-icons/lib/io/ios-navigate-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosNavigateOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-navigate.d.ts b/types/react-icons/lib/io/ios-navigate.d.ts new file mode 100644 index 0000000000..3a8a955fa6 --- /dev/null +++ b/types/react-icons/lib/io/ios-navigate.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosNavigate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-nutrition.d.ts b/types/react-icons/lib/io/ios-nutrition.d.ts new file mode 100644 index 0000000000..19b5f0eae6 --- /dev/null +++ b/types/react-icons/lib/io/ios-nutrition.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosNutrition extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-nutritoutline.d.ts b/types/react-icons/lib/io/ios-nutritoutline.d.ts new file mode 100644 index 0000000000..9ce2ea6d24 --- /dev/null +++ b/types/react-icons/lib/io/ios-nutritoutline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosNutritoutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-paper-outline.d.ts b/types/react-icons/lib/io/ios-paper-outline.d.ts new file mode 100644 index 0000000000..f491c2a055 --- /dev/null +++ b/types/react-icons/lib/io/ios-paper-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPaperOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-paper.d.ts b/types/react-icons/lib/io/ios-paper.d.ts new file mode 100644 index 0000000000..bf98a1330d --- /dev/null +++ b/types/react-icons/lib/io/ios-paper.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPaper extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-paperplane-outline.d.ts b/types/react-icons/lib/io/ios-paperplane-outline.d.ts new file mode 100644 index 0000000000..381b337e35 --- /dev/null +++ b/types/react-icons/lib/io/ios-paperplane-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPaperplaneOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-paperplane.d.ts b/types/react-icons/lib/io/ios-paperplane.d.ts new file mode 100644 index 0000000000..3999ec063c --- /dev/null +++ b/types/react-icons/lib/io/ios-paperplane.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPaperplane extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-partlysunny-outline.d.ts b/types/react-icons/lib/io/ios-partlysunny-outline.d.ts new file mode 100644 index 0000000000..96fddf3405 --- /dev/null +++ b/types/react-icons/lib/io/ios-partlysunny-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPartlysunnyOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-partlysunny.d.ts b/types/react-icons/lib/io/ios-partlysunny.d.ts new file mode 100644 index 0000000000..f0f7b24a0f --- /dev/null +++ b/types/react-icons/lib/io/ios-partlysunny.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPartlysunny extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-pause-outline.d.ts b/types/react-icons/lib/io/ios-pause-outline.d.ts new file mode 100644 index 0000000000..a3c096ec70 --- /dev/null +++ b/types/react-icons/lib/io/ios-pause-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPauseOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-pause.d.ts b/types/react-icons/lib/io/ios-pause.d.ts new file mode 100644 index 0000000000..5be0dbb44e --- /dev/null +++ b/types/react-icons/lib/io/ios-pause.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPause extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-paw-outline.d.ts b/types/react-icons/lib/io/ios-paw-outline.d.ts new file mode 100644 index 0000000000..59ff2ba1f0 --- /dev/null +++ b/types/react-icons/lib/io/ios-paw-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPawOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-paw.d.ts b/types/react-icons/lib/io/ios-paw.d.ts new file mode 100644 index 0000000000..8907243697 --- /dev/null +++ b/types/react-icons/lib/io/ios-paw.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPaw extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-people-outline.d.ts b/types/react-icons/lib/io/ios-people-outline.d.ts new file mode 100644 index 0000000000..fca7beebf0 --- /dev/null +++ b/types/react-icons/lib/io/ios-people-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPeopleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-people.d.ts b/types/react-icons/lib/io/ios-people.d.ts new file mode 100644 index 0000000000..47167ca242 --- /dev/null +++ b/types/react-icons/lib/io/ios-people.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPeople extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-person-outline.d.ts b/types/react-icons/lib/io/ios-person-outline.d.ts new file mode 100644 index 0000000000..d9dcad6337 --- /dev/null +++ b/types/react-icons/lib/io/ios-person-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPersonOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-person.d.ts b/types/react-icons/lib/io/ios-person.d.ts new file mode 100644 index 0000000000..c0a721cdc9 --- /dev/null +++ b/types/react-icons/lib/io/ios-person.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPerson extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-personadd-outline.d.ts b/types/react-icons/lib/io/ios-personadd-outline.d.ts new file mode 100644 index 0000000000..0c2ef41134 --- /dev/null +++ b/types/react-icons/lib/io/ios-personadd-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPersonaddOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-personadd.d.ts b/types/react-icons/lib/io/ios-personadd.d.ts new file mode 100644 index 0000000000..76064513f6 --- /dev/null +++ b/types/react-icons/lib/io/ios-personadd.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPersonadd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-photos-outline.d.ts b/types/react-icons/lib/io/ios-photos-outline.d.ts new file mode 100644 index 0000000000..b6bcf6e60a --- /dev/null +++ b/types/react-icons/lib/io/ios-photos-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPhotosOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-photos.d.ts b/types/react-icons/lib/io/ios-photos.d.ts new file mode 100644 index 0000000000..1f4a1d7b0a --- /dev/null +++ b/types/react-icons/lib/io/ios-photos.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPhotos extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-pie-outline.d.ts b/types/react-icons/lib/io/ios-pie-outline.d.ts new file mode 100644 index 0000000000..a370ac6e6e --- /dev/null +++ b/types/react-icons/lib/io/ios-pie-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPieOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-pie.d.ts b/types/react-icons/lib/io/ios-pie.d.ts new file mode 100644 index 0000000000..4a1c78801a --- /dev/null +++ b/types/react-icons/lib/io/ios-pie.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPie extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-pint-outline.d.ts b/types/react-icons/lib/io/ios-pint-outline.d.ts new file mode 100644 index 0000000000..d400fd801a --- /dev/null +++ b/types/react-icons/lib/io/ios-pint-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPintOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-pint.d.ts b/types/react-icons/lib/io/ios-pint.d.ts new file mode 100644 index 0000000000..21bd07ccd5 --- /dev/null +++ b/types/react-icons/lib/io/ios-pint.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPint extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-play-outline.d.ts b/types/react-icons/lib/io/ios-play-outline.d.ts new file mode 100644 index 0000000000..4c7a550e46 --- /dev/null +++ b/types/react-icons/lib/io/ios-play-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPlayOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-play.d.ts b/types/react-icons/lib/io/ios-play.d.ts new file mode 100644 index 0000000000..18f66a8f59 --- /dev/null +++ b/types/react-icons/lib/io/ios-play.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPlay extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-plus-empty.d.ts b/types/react-icons/lib/io/ios-plus-empty.d.ts new file mode 100644 index 0000000000..a7235d6322 --- /dev/null +++ b/types/react-icons/lib/io/ios-plus-empty.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPlusEmpty extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-plus-outline.d.ts b/types/react-icons/lib/io/ios-plus-outline.d.ts new file mode 100644 index 0000000000..719bce1444 --- /dev/null +++ b/types/react-icons/lib/io/ios-plus-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPlusOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-plus.d.ts b/types/react-icons/lib/io/ios-plus.d.ts new file mode 100644 index 0000000000..7d29ea3f40 --- /dev/null +++ b/types/react-icons/lib/io/ios-plus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPlus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-pricetag-outline.d.ts b/types/react-icons/lib/io/ios-pricetag-outline.d.ts new file mode 100644 index 0000000000..23a4c0c869 --- /dev/null +++ b/types/react-icons/lib/io/ios-pricetag-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPricetagOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-pricetag.d.ts b/types/react-icons/lib/io/ios-pricetag.d.ts new file mode 100644 index 0000000000..601743c434 --- /dev/null +++ b/types/react-icons/lib/io/ios-pricetag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPricetag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-pricetags-outline.d.ts b/types/react-icons/lib/io/ios-pricetags-outline.d.ts new file mode 100644 index 0000000000..0e1e574dac --- /dev/null +++ b/types/react-icons/lib/io/ios-pricetags-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPricetagsOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-pricetags.d.ts b/types/react-icons/lib/io/ios-pricetags.d.ts new file mode 100644 index 0000000000..4cc3aebb75 --- /dev/null +++ b/types/react-icons/lib/io/ios-pricetags.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPricetags extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-printer-outline.d.ts b/types/react-icons/lib/io/ios-printer-outline.d.ts new file mode 100644 index 0000000000..d20dcedadf --- /dev/null +++ b/types/react-icons/lib/io/ios-printer-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPrinterOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-printer.d.ts b/types/react-icons/lib/io/ios-printer.d.ts new file mode 100644 index 0000000000..dc9bccfb25 --- /dev/null +++ b/types/react-icons/lib/io/ios-printer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPrinter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-pulse-strong.d.ts b/types/react-icons/lib/io/ios-pulse-strong.d.ts new file mode 100644 index 0000000000..8f7e12017a --- /dev/null +++ b/types/react-icons/lib/io/ios-pulse-strong.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPulseStrong extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-pulse.d.ts b/types/react-icons/lib/io/ios-pulse.d.ts new file mode 100644 index 0000000000..a7ff149ddf --- /dev/null +++ b/types/react-icons/lib/io/ios-pulse.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosPulse extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-rainy-outline.d.ts b/types/react-icons/lib/io/ios-rainy-outline.d.ts new file mode 100644 index 0000000000..7e283d1cb3 --- /dev/null +++ b/types/react-icons/lib/io/ios-rainy-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosRainyOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-rainy.d.ts b/types/react-icons/lib/io/ios-rainy.d.ts new file mode 100644 index 0000000000..a701475ef0 --- /dev/null +++ b/types/react-icons/lib/io/ios-rainy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosRainy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-recording-outline.d.ts b/types/react-icons/lib/io/ios-recording-outline.d.ts new file mode 100644 index 0000000000..9fc2e6ffca --- /dev/null +++ b/types/react-icons/lib/io/ios-recording-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosRecordingOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-recording.d.ts b/types/react-icons/lib/io/ios-recording.d.ts new file mode 100644 index 0000000000..77d0e299cd --- /dev/null +++ b/types/react-icons/lib/io/ios-recording.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosRecording extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-redo-outline.d.ts b/types/react-icons/lib/io/ios-redo-outline.d.ts new file mode 100644 index 0000000000..47bae67c99 --- /dev/null +++ b/types/react-icons/lib/io/ios-redo-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosRedoOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-redo.d.ts b/types/react-icons/lib/io/ios-redo.d.ts new file mode 100644 index 0000000000..0935996be6 --- /dev/null +++ b/types/react-icons/lib/io/ios-redo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosRedo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-refresh-empty.d.ts b/types/react-icons/lib/io/ios-refresh-empty.d.ts new file mode 100644 index 0000000000..0e7f151339 --- /dev/null +++ b/types/react-icons/lib/io/ios-refresh-empty.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosRefreshEmpty extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-refresh-outline.d.ts b/types/react-icons/lib/io/ios-refresh-outline.d.ts new file mode 100644 index 0000000000..7679405065 --- /dev/null +++ b/types/react-icons/lib/io/ios-refresh-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosRefreshOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-refresh.d.ts b/types/react-icons/lib/io/ios-refresh.d.ts new file mode 100644 index 0000000000..420affa507 --- /dev/null +++ b/types/react-icons/lib/io/ios-refresh.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosRefresh extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-reload.d.ts b/types/react-icons/lib/io/ios-reload.d.ts new file mode 100644 index 0000000000..93e947db67 --- /dev/null +++ b/types/react-icons/lib/io/ios-reload.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosReload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-reverse-camera-outline.d.ts b/types/react-icons/lib/io/ios-reverse-camera-outline.d.ts new file mode 100644 index 0000000000..808d6ca0bf --- /dev/null +++ b/types/react-icons/lib/io/ios-reverse-camera-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosReverseCameraOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-reverse-camera.d.ts b/types/react-icons/lib/io/ios-reverse-camera.d.ts new file mode 100644 index 0000000000..0e74f82ab0 --- /dev/null +++ b/types/react-icons/lib/io/ios-reverse-camera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosReverseCamera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-rewind-outline.d.ts b/types/react-icons/lib/io/ios-rewind-outline.d.ts new file mode 100644 index 0000000000..dfc69fc86d --- /dev/null +++ b/types/react-icons/lib/io/ios-rewind-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosRewindOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-rewind.d.ts b/types/react-icons/lib/io/ios-rewind.d.ts new file mode 100644 index 0000000000..7f883de8bf --- /dev/null +++ b/types/react-icons/lib/io/ios-rewind.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosRewind extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-rose-outline.d.ts b/types/react-icons/lib/io/ios-rose-outline.d.ts new file mode 100644 index 0000000000..dc112023a5 --- /dev/null +++ b/types/react-icons/lib/io/ios-rose-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosRoseOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-rose.d.ts b/types/react-icons/lib/io/ios-rose.d.ts new file mode 100644 index 0000000000..8cd590321f --- /dev/null +++ b/types/react-icons/lib/io/ios-rose.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosRose extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-search-strong.d.ts b/types/react-icons/lib/io/ios-search-strong.d.ts new file mode 100644 index 0000000000..3b0ab67ed2 --- /dev/null +++ b/types/react-icons/lib/io/ios-search-strong.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosSearchStrong extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-search.d.ts b/types/react-icons/lib/io/ios-search.d.ts new file mode 100644 index 0000000000..bd95701f4d --- /dev/null +++ b/types/react-icons/lib/io/ios-search.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosSearch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-settings-strong.d.ts b/types/react-icons/lib/io/ios-settings-strong.d.ts new file mode 100644 index 0000000000..0bb6ef49aa --- /dev/null +++ b/types/react-icons/lib/io/ios-settings-strong.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosSettingsStrong extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-settings.d.ts b/types/react-icons/lib/io/ios-settings.d.ts new file mode 100644 index 0000000000..26ff75fb04 --- /dev/null +++ b/types/react-icons/lib/io/ios-settings.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosSettings extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-shuffle-strong.d.ts b/types/react-icons/lib/io/ios-shuffle-strong.d.ts new file mode 100644 index 0000000000..15d2841c2f --- /dev/null +++ b/types/react-icons/lib/io/ios-shuffle-strong.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosShuffleStrong extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-shuffle.d.ts b/types/react-icons/lib/io/ios-shuffle.d.ts new file mode 100644 index 0000000000..305b4ff79b --- /dev/null +++ b/types/react-icons/lib/io/ios-shuffle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosShuffle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-skipbackward-outline.d.ts b/types/react-icons/lib/io/ios-skipbackward-outline.d.ts new file mode 100644 index 0000000000..fa9db170bd --- /dev/null +++ b/types/react-icons/lib/io/ios-skipbackward-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosSkipbackwardOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-skipbackward.d.ts b/types/react-icons/lib/io/ios-skipbackward.d.ts new file mode 100644 index 0000000000..d9b009ed49 --- /dev/null +++ b/types/react-icons/lib/io/ios-skipbackward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosSkipbackward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-skipforward-outline.d.ts b/types/react-icons/lib/io/ios-skipforward-outline.d.ts new file mode 100644 index 0000000000..63c174f6b2 --- /dev/null +++ b/types/react-icons/lib/io/ios-skipforward-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosSkipforwardOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-skipforward.d.ts b/types/react-icons/lib/io/ios-skipforward.d.ts new file mode 100644 index 0000000000..39ce459a57 --- /dev/null +++ b/types/react-icons/lib/io/ios-skipforward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosSkipforward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-snowy.d.ts b/types/react-icons/lib/io/ios-snowy.d.ts new file mode 100644 index 0000000000..f55f087752 --- /dev/null +++ b/types/react-icons/lib/io/ios-snowy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosSnowy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-speedometer-outline.d.ts b/types/react-icons/lib/io/ios-speedometer-outline.d.ts new file mode 100644 index 0000000000..b0263dc761 --- /dev/null +++ b/types/react-icons/lib/io/ios-speedometer-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosSpeedometerOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-speedometer.d.ts b/types/react-icons/lib/io/ios-speedometer.d.ts new file mode 100644 index 0000000000..f5d6862d1a --- /dev/null +++ b/types/react-icons/lib/io/ios-speedometer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosSpeedometer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-star-half.d.ts b/types/react-icons/lib/io/ios-star-half.d.ts new file mode 100644 index 0000000000..03adf4a4d2 --- /dev/null +++ b/types/react-icons/lib/io/ios-star-half.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosStarHalf extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-star-outline.d.ts b/types/react-icons/lib/io/ios-star-outline.d.ts new file mode 100644 index 0000000000..61dfe85fc1 --- /dev/null +++ b/types/react-icons/lib/io/ios-star-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosStarOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-star.d.ts b/types/react-icons/lib/io/ios-star.d.ts new file mode 100644 index 0000000000..763d68d34c --- /dev/null +++ b/types/react-icons/lib/io/ios-star.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosStar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-stopwatch-outline.d.ts b/types/react-icons/lib/io/ios-stopwatch-outline.d.ts new file mode 100644 index 0000000000..73a9091d13 --- /dev/null +++ b/types/react-icons/lib/io/ios-stopwatch-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosStopwatchOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-stopwatch.d.ts b/types/react-icons/lib/io/ios-stopwatch.d.ts new file mode 100644 index 0000000000..27bf6e3b40 --- /dev/null +++ b/types/react-icons/lib/io/ios-stopwatch.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosStopwatch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-sunny-outline.d.ts b/types/react-icons/lib/io/ios-sunny-outline.d.ts new file mode 100644 index 0000000000..6c1f62f799 --- /dev/null +++ b/types/react-icons/lib/io/ios-sunny-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosSunnyOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-sunny.d.ts b/types/react-icons/lib/io/ios-sunny.d.ts new file mode 100644 index 0000000000..e570cdf17c --- /dev/null +++ b/types/react-icons/lib/io/ios-sunny.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosSunny extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-telephone-outline.d.ts b/types/react-icons/lib/io/ios-telephone-outline.d.ts new file mode 100644 index 0000000000..91d22539d0 --- /dev/null +++ b/types/react-icons/lib/io/ios-telephone-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosTelephoneOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-telephone.d.ts b/types/react-icons/lib/io/ios-telephone.d.ts new file mode 100644 index 0000000000..349826b187 --- /dev/null +++ b/types/react-icons/lib/io/ios-telephone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosTelephone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-tennisball-outline.d.ts b/types/react-icons/lib/io/ios-tennisball-outline.d.ts new file mode 100644 index 0000000000..df889878d4 --- /dev/null +++ b/types/react-icons/lib/io/ios-tennisball-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosTennisballOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-tennisball.d.ts b/types/react-icons/lib/io/ios-tennisball.d.ts new file mode 100644 index 0000000000..177485e5ea --- /dev/null +++ b/types/react-icons/lib/io/ios-tennisball.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosTennisball extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-thunderstorm-outline.d.ts b/types/react-icons/lib/io/ios-thunderstorm-outline.d.ts new file mode 100644 index 0000000000..ac3f8120a7 --- /dev/null +++ b/types/react-icons/lib/io/ios-thunderstorm-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosThunderstormOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-thunderstorm.d.ts b/types/react-icons/lib/io/ios-thunderstorm.d.ts new file mode 100644 index 0000000000..9612dc49cc --- /dev/null +++ b/types/react-icons/lib/io/ios-thunderstorm.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosThunderstorm extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-time-outline.d.ts b/types/react-icons/lib/io/ios-time-outline.d.ts new file mode 100644 index 0000000000..8067387f05 --- /dev/null +++ b/types/react-icons/lib/io/ios-time-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosTimeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-time.d.ts b/types/react-icons/lib/io/ios-time.d.ts new file mode 100644 index 0000000000..cdc944bd0b --- /dev/null +++ b/types/react-icons/lib/io/ios-time.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosTime extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-timer-outline.d.ts b/types/react-icons/lib/io/ios-timer-outline.d.ts new file mode 100644 index 0000000000..21b2cdca0f --- /dev/null +++ b/types/react-icons/lib/io/ios-timer-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosTimerOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-timer.d.ts b/types/react-icons/lib/io/ios-timer.d.ts new file mode 100644 index 0000000000..729f3f79d4 --- /dev/null +++ b/types/react-icons/lib/io/ios-timer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosTimer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-toggle-outline.d.ts b/types/react-icons/lib/io/ios-toggle-outline.d.ts new file mode 100644 index 0000000000..fa23191d8c --- /dev/null +++ b/types/react-icons/lib/io/ios-toggle-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosToggleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-toggle.d.ts b/types/react-icons/lib/io/ios-toggle.d.ts new file mode 100644 index 0000000000..e01579ec53 --- /dev/null +++ b/types/react-icons/lib/io/ios-toggle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosToggle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-trash-outline.d.ts b/types/react-icons/lib/io/ios-trash-outline.d.ts new file mode 100644 index 0000000000..55412f0ae2 --- /dev/null +++ b/types/react-icons/lib/io/ios-trash-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosTrashOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-trash.d.ts b/types/react-icons/lib/io/ios-trash.d.ts new file mode 100644 index 0000000000..296e42671e --- /dev/null +++ b/types/react-icons/lib/io/ios-trash.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosTrash extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-undo-outline.d.ts b/types/react-icons/lib/io/ios-undo-outline.d.ts new file mode 100644 index 0000000000..093074d857 --- /dev/null +++ b/types/react-icons/lib/io/ios-undo-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosUndoOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-undo.d.ts b/types/react-icons/lib/io/ios-undo.d.ts new file mode 100644 index 0000000000..4bcdef2e88 --- /dev/null +++ b/types/react-icons/lib/io/ios-undo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosUndo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-unlocked-outline.d.ts b/types/react-icons/lib/io/ios-unlocked-outline.d.ts new file mode 100644 index 0000000000..d14b0f7ffc --- /dev/null +++ b/types/react-icons/lib/io/ios-unlocked-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosUnlockedOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-unlocked.d.ts b/types/react-icons/lib/io/ios-unlocked.d.ts new file mode 100644 index 0000000000..d873e5f8d1 --- /dev/null +++ b/types/react-icons/lib/io/ios-unlocked.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosUnlocked extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-upload-outline.d.ts b/types/react-icons/lib/io/ios-upload-outline.d.ts new file mode 100644 index 0000000000..5f397a2bd8 --- /dev/null +++ b/types/react-icons/lib/io/ios-upload-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosUploadOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-upload.d.ts b/types/react-icons/lib/io/ios-upload.d.ts new file mode 100644 index 0000000000..5b9acf6b9c --- /dev/null +++ b/types/react-icons/lib/io/ios-upload.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosUpload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-videocam-outline.d.ts b/types/react-icons/lib/io/ios-videocam-outline.d.ts new file mode 100644 index 0000000000..96fac95c0e --- /dev/null +++ b/types/react-icons/lib/io/ios-videocam-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosVideocamOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-videocam.d.ts b/types/react-icons/lib/io/ios-videocam.d.ts new file mode 100644 index 0000000000..a55ede9155 --- /dev/null +++ b/types/react-icons/lib/io/ios-videocam.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosVideocam extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-volume-high.d.ts b/types/react-icons/lib/io/ios-volume-high.d.ts new file mode 100644 index 0000000000..9ae46e1936 --- /dev/null +++ b/types/react-icons/lib/io/ios-volume-high.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosVolumeHigh extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-volume-low.d.ts b/types/react-icons/lib/io/ios-volume-low.d.ts new file mode 100644 index 0000000000..402ee999cb --- /dev/null +++ b/types/react-icons/lib/io/ios-volume-low.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosVolumeLow extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-wineglass-outline.d.ts b/types/react-icons/lib/io/ios-wineglass-outline.d.ts new file mode 100644 index 0000000000..3e34e8f73d --- /dev/null +++ b/types/react-icons/lib/io/ios-wineglass-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosWineglassOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-wineglass.d.ts b/types/react-icons/lib/io/ios-wineglass.d.ts new file mode 100644 index 0000000000..aaf3e6bd56 --- /dev/null +++ b/types/react-icons/lib/io/ios-wineglass.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosWineglass extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-world-outline.d.ts b/types/react-icons/lib/io/ios-world-outline.d.ts new file mode 100644 index 0000000000..4b5d4ab7b1 --- /dev/null +++ b/types/react-icons/lib/io/ios-world-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosWorldOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ios-world.d.ts b/types/react-icons/lib/io/ios-world.d.ts new file mode 100644 index 0000000000..6a2b5a3392 --- /dev/null +++ b/types/react-icons/lib/io/ios-world.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIosWorld extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ipad.d.ts b/types/react-icons/lib/io/ipad.d.ts new file mode 100644 index 0000000000..5f534f3a70 --- /dev/null +++ b/types/react-icons/lib/io/ipad.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIpad extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/iphone.d.ts b/types/react-icons/lib/io/iphone.d.ts new file mode 100644 index 0000000000..4b4fc084d6 --- /dev/null +++ b/types/react-icons/lib/io/iphone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIphone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ipod.d.ts b/types/react-icons/lib/io/ipod.d.ts new file mode 100644 index 0000000000..793b8f7f92 --- /dev/null +++ b/types/react-icons/lib/io/ipod.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoIpod extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/jet.d.ts b/types/react-icons/lib/io/jet.d.ts new file mode 100644 index 0000000000..7f8ef429e2 --- /dev/null +++ b/types/react-icons/lib/io/jet.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoJet extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/key.d.ts b/types/react-icons/lib/io/key.d.ts new file mode 100644 index 0000000000..8a84a24518 --- /dev/null +++ b/types/react-icons/lib/io/key.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoKey extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/knife.d.ts b/types/react-icons/lib/io/knife.d.ts new file mode 100644 index 0000000000..f9683f399b --- /dev/null +++ b/types/react-icons/lib/io/knife.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoKnife extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/laptop.d.ts b/types/react-icons/lib/io/laptop.d.ts new file mode 100644 index 0000000000..ffd3252609 --- /dev/null +++ b/types/react-icons/lib/io/laptop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLaptop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/leaf.d.ts b/types/react-icons/lib/io/leaf.d.ts new file mode 100644 index 0000000000..bc0235a24a --- /dev/null +++ b/types/react-icons/lib/io/leaf.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLeaf extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/levels.d.ts b/types/react-icons/lib/io/levels.d.ts new file mode 100644 index 0000000000..0bd2e2c1e9 --- /dev/null +++ b/types/react-icons/lib/io/levels.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLevels extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/lightbulb.d.ts b/types/react-icons/lib/io/lightbulb.d.ts new file mode 100644 index 0000000000..c16e16a2fa --- /dev/null +++ b/types/react-icons/lib/io/lightbulb.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLightbulb extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/link.d.ts b/types/react-icons/lib/io/link.d.ts new file mode 100644 index 0000000000..c0c376d736 --- /dev/null +++ b/types/react-icons/lib/io/link.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLink extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/load-a.d.ts b/types/react-icons/lib/io/load-a.d.ts new file mode 100644 index 0000000000..bf0b3ec100 --- /dev/null +++ b/types/react-icons/lib/io/load-a.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLoadA extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/load-b.d.ts b/types/react-icons/lib/io/load-b.d.ts new file mode 100644 index 0000000000..85dcae989a --- /dev/null +++ b/types/react-icons/lib/io/load-b.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLoadB extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/load-c.d.ts b/types/react-icons/lib/io/load-c.d.ts new file mode 100644 index 0000000000..733dff4bfa --- /dev/null +++ b/types/react-icons/lib/io/load-c.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLoadC extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/load-d.d.ts b/types/react-icons/lib/io/load-d.d.ts new file mode 100644 index 0000000000..160d71b383 --- /dev/null +++ b/types/react-icons/lib/io/load-d.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLoadD extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/location.d.ts b/types/react-icons/lib/io/location.d.ts new file mode 100644 index 0000000000..04e657adc4 --- /dev/null +++ b/types/react-icons/lib/io/location.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLocation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/lock-combination.d.ts b/types/react-icons/lib/io/lock-combination.d.ts new file mode 100644 index 0000000000..d25e21ded1 --- /dev/null +++ b/types/react-icons/lib/io/lock-combination.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLockCombination extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/locked.d.ts b/types/react-icons/lib/io/locked.d.ts new file mode 100644 index 0000000000..db82275a8e --- /dev/null +++ b/types/react-icons/lib/io/locked.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLocked extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/log-in.d.ts b/types/react-icons/lib/io/log-in.d.ts new file mode 100644 index 0000000000..bb045baf8e --- /dev/null +++ b/types/react-icons/lib/io/log-in.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLogIn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/log-out.d.ts b/types/react-icons/lib/io/log-out.d.ts new file mode 100644 index 0000000000..0374ff539d --- /dev/null +++ b/types/react-icons/lib/io/log-out.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLogOut extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/loop.d.ts b/types/react-icons/lib/io/loop.d.ts new file mode 100644 index 0000000000..2f5d563c07 --- /dev/null +++ b/types/react-icons/lib/io/loop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoLoop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/magnet.d.ts b/types/react-icons/lib/io/magnet.d.ts new file mode 100644 index 0000000000..b8625a2ccf --- /dev/null +++ b/types/react-icons/lib/io/magnet.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMagnet extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/male.d.ts b/types/react-icons/lib/io/male.d.ts new file mode 100644 index 0000000000..62bfbd5067 --- /dev/null +++ b/types/react-icons/lib/io/male.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMale extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/man.d.ts b/types/react-icons/lib/io/man.d.ts new file mode 100644 index 0000000000..2770ac14e2 --- /dev/null +++ b/types/react-icons/lib/io/man.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMan extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/map.d.ts b/types/react-icons/lib/io/map.d.ts new file mode 100644 index 0000000000..4c48512de6 --- /dev/null +++ b/types/react-icons/lib/io/map.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMap extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/medkit.d.ts b/types/react-icons/lib/io/medkit.d.ts new file mode 100644 index 0000000000..e15728387c --- /dev/null +++ b/types/react-icons/lib/io/medkit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMedkit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/merge.d.ts b/types/react-icons/lib/io/merge.d.ts new file mode 100644 index 0000000000..6a41308d9b --- /dev/null +++ b/types/react-icons/lib/io/merge.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMerge extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/mic-a.d.ts b/types/react-icons/lib/io/mic-a.d.ts new file mode 100644 index 0000000000..c5cf11831d --- /dev/null +++ b/types/react-icons/lib/io/mic-a.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMicA extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/mic-b.d.ts b/types/react-icons/lib/io/mic-b.d.ts new file mode 100644 index 0000000000..68a0acf707 --- /dev/null +++ b/types/react-icons/lib/io/mic-b.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMicB extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/mic-c.d.ts b/types/react-icons/lib/io/mic-c.d.ts new file mode 100644 index 0000000000..2d8ddc3be6 --- /dev/null +++ b/types/react-icons/lib/io/mic-c.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMicC extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/minus-circled.d.ts b/types/react-icons/lib/io/minus-circled.d.ts new file mode 100644 index 0000000000..1b5edd59e7 --- /dev/null +++ b/types/react-icons/lib/io/minus-circled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMinusCircled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/minus-round.d.ts b/types/react-icons/lib/io/minus-round.d.ts new file mode 100644 index 0000000000..1a75a9c5d4 --- /dev/null +++ b/types/react-icons/lib/io/minus-round.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMinusRound extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/minus.d.ts b/types/react-icons/lib/io/minus.d.ts new file mode 100644 index 0000000000..ee58f016db --- /dev/null +++ b/types/react-icons/lib/io/minus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMinus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/model-s.d.ts b/types/react-icons/lib/io/model-s.d.ts new file mode 100644 index 0000000000..567219cde6 --- /dev/null +++ b/types/react-icons/lib/io/model-s.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoModelS extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/monitor.d.ts b/types/react-icons/lib/io/monitor.d.ts new file mode 100644 index 0000000000..3454bea09f --- /dev/null +++ b/types/react-icons/lib/io/monitor.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMonitor extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/more.d.ts b/types/react-icons/lib/io/more.d.ts new file mode 100644 index 0000000000..2c528b5bae --- /dev/null +++ b/types/react-icons/lib/io/more.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMore extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/mouse.d.ts b/types/react-icons/lib/io/mouse.d.ts new file mode 100644 index 0000000000..af862564ba --- /dev/null +++ b/types/react-icons/lib/io/mouse.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMouse extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/music-note.d.ts b/types/react-icons/lib/io/music-note.d.ts new file mode 100644 index 0000000000..92875eb08a --- /dev/null +++ b/types/react-icons/lib/io/music-note.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoMusicNote extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/navicon-round.d.ts b/types/react-icons/lib/io/navicon-round.d.ts new file mode 100644 index 0000000000..5d1bc53526 --- /dev/null +++ b/types/react-icons/lib/io/navicon-round.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoNaviconRound extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/navicon.d.ts b/types/react-icons/lib/io/navicon.d.ts new file mode 100644 index 0000000000..cdae5d7238 --- /dev/null +++ b/types/react-icons/lib/io/navicon.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoNavicon extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/navigate.d.ts b/types/react-icons/lib/io/navigate.d.ts new file mode 100644 index 0000000000..2fe67c17b2 --- /dev/null +++ b/types/react-icons/lib/io/navigate.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoNavigate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/network.d.ts b/types/react-icons/lib/io/network.d.ts new file mode 100644 index 0000000000..359c0abbd2 --- /dev/null +++ b/types/react-icons/lib/io/network.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoNetwork extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/no-smoking.d.ts b/types/react-icons/lib/io/no-smoking.d.ts new file mode 100644 index 0000000000..074789127a --- /dev/null +++ b/types/react-icons/lib/io/no-smoking.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoNoSmoking extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/nuclear.d.ts b/types/react-icons/lib/io/nuclear.d.ts new file mode 100644 index 0000000000..559674f85e --- /dev/null +++ b/types/react-icons/lib/io/nuclear.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoNuclear extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/outlet.d.ts b/types/react-icons/lib/io/outlet.d.ts new file mode 100644 index 0000000000..f68de98cb1 --- /dev/null +++ b/types/react-icons/lib/io/outlet.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoOutlet extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/paintbrush.d.ts b/types/react-icons/lib/io/paintbrush.d.ts new file mode 100644 index 0000000000..1cc12bebca --- /dev/null +++ b/types/react-icons/lib/io/paintbrush.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPaintbrush extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/paintbucket.d.ts b/types/react-icons/lib/io/paintbucket.d.ts new file mode 100644 index 0000000000..0e6dce8aa7 --- /dev/null +++ b/types/react-icons/lib/io/paintbucket.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPaintbucket extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/paper-airplane.d.ts b/types/react-icons/lib/io/paper-airplane.d.ts new file mode 100644 index 0000000000..e5c2d64cb8 --- /dev/null +++ b/types/react-icons/lib/io/paper-airplane.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPaperAirplane extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/paperclip.d.ts b/types/react-icons/lib/io/paperclip.d.ts new file mode 100644 index 0000000000..cb9463bdf1 --- /dev/null +++ b/types/react-icons/lib/io/paperclip.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPaperclip extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/pause.d.ts b/types/react-icons/lib/io/pause.d.ts new file mode 100644 index 0000000000..2680c5b1b4 --- /dev/null +++ b/types/react-icons/lib/io/pause.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPause extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/person-add.d.ts b/types/react-icons/lib/io/person-add.d.ts new file mode 100644 index 0000000000..43a66e58c0 --- /dev/null +++ b/types/react-icons/lib/io/person-add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPersonAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/person-stalker.d.ts b/types/react-icons/lib/io/person-stalker.d.ts new file mode 100644 index 0000000000..59ed89e000 --- /dev/null +++ b/types/react-icons/lib/io/person-stalker.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPersonStalker extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/person.d.ts b/types/react-icons/lib/io/person.d.ts new file mode 100644 index 0000000000..0970df9ab0 --- /dev/null +++ b/types/react-icons/lib/io/person.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPerson extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/pie-graph.d.ts b/types/react-icons/lib/io/pie-graph.d.ts new file mode 100644 index 0000000000..4171c0ee1d --- /dev/null +++ b/types/react-icons/lib/io/pie-graph.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPieGraph extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/pin.d.ts b/types/react-icons/lib/io/pin.d.ts new file mode 100644 index 0000000000..7e1d58f30e --- /dev/null +++ b/types/react-icons/lib/io/pin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/pinpoint.d.ts b/types/react-icons/lib/io/pinpoint.d.ts new file mode 100644 index 0000000000..8ecf88a45b --- /dev/null +++ b/types/react-icons/lib/io/pinpoint.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPinpoint extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/pizza.d.ts b/types/react-icons/lib/io/pizza.d.ts new file mode 100644 index 0000000000..ef5ce7525b --- /dev/null +++ b/types/react-icons/lib/io/pizza.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPizza extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/plane.d.ts b/types/react-icons/lib/io/plane.d.ts new file mode 100644 index 0000000000..9f0b2eaff2 --- /dev/null +++ b/types/react-icons/lib/io/plane.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPlane extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/planet.d.ts b/types/react-icons/lib/io/planet.d.ts new file mode 100644 index 0000000000..b91ae2a503 --- /dev/null +++ b/types/react-icons/lib/io/planet.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPlanet extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/play.d.ts b/types/react-icons/lib/io/play.d.ts new file mode 100644 index 0000000000..8a66797eb2 --- /dev/null +++ b/types/react-icons/lib/io/play.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPlay extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/playstation.d.ts b/types/react-icons/lib/io/playstation.d.ts new file mode 100644 index 0000000000..315eecce09 --- /dev/null +++ b/types/react-icons/lib/io/playstation.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPlaystation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/plus-circled.d.ts b/types/react-icons/lib/io/plus-circled.d.ts new file mode 100644 index 0000000000..a74703c85d --- /dev/null +++ b/types/react-icons/lib/io/plus-circled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPlusCircled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/plus-round.d.ts b/types/react-icons/lib/io/plus-round.d.ts new file mode 100644 index 0000000000..3e7ba67f3a --- /dev/null +++ b/types/react-icons/lib/io/plus-round.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPlusRound extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/plus.d.ts b/types/react-icons/lib/io/plus.d.ts new file mode 100644 index 0000000000..f61bf82a1a --- /dev/null +++ b/types/react-icons/lib/io/plus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPlus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/podium.d.ts b/types/react-icons/lib/io/podium.d.ts new file mode 100644 index 0000000000..af2e204331 --- /dev/null +++ b/types/react-icons/lib/io/podium.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPodium extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/pound.d.ts b/types/react-icons/lib/io/pound.d.ts new file mode 100644 index 0000000000..b7b2e28b9e --- /dev/null +++ b/types/react-icons/lib/io/pound.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPound extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/power.d.ts b/types/react-icons/lib/io/power.d.ts new file mode 100644 index 0000000000..f41d3d5e00 --- /dev/null +++ b/types/react-icons/lib/io/power.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPower extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/pricetag.d.ts b/types/react-icons/lib/io/pricetag.d.ts new file mode 100644 index 0000000000..b8f2d47c03 --- /dev/null +++ b/types/react-icons/lib/io/pricetag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPricetag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/pricetags.d.ts b/types/react-icons/lib/io/pricetags.d.ts new file mode 100644 index 0000000000..cca52cc061 --- /dev/null +++ b/types/react-icons/lib/io/pricetags.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPricetags extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/printer.d.ts b/types/react-icons/lib/io/printer.d.ts new file mode 100644 index 0000000000..33bc74b2c2 --- /dev/null +++ b/types/react-icons/lib/io/printer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPrinter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/pull-request.d.ts b/types/react-icons/lib/io/pull-request.d.ts new file mode 100644 index 0000000000..b788efefdc --- /dev/null +++ b/types/react-icons/lib/io/pull-request.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoPullRequest extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/qr-scanner.d.ts b/types/react-icons/lib/io/qr-scanner.d.ts new file mode 100644 index 0000000000..77b1ca1dcf --- /dev/null +++ b/types/react-icons/lib/io/qr-scanner.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoQrScanner extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/quote.d.ts b/types/react-icons/lib/io/quote.d.ts new file mode 100644 index 0000000000..ac7f5d32ef --- /dev/null +++ b/types/react-icons/lib/io/quote.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoQuote extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/radio-waves.d.ts b/types/react-icons/lib/io/radio-waves.d.ts new file mode 100644 index 0000000000..0b67b79379 --- /dev/null +++ b/types/react-icons/lib/io/radio-waves.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoRadioWaves extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/record.d.ts b/types/react-icons/lib/io/record.d.ts new file mode 100644 index 0000000000..dd7cd7a65f --- /dev/null +++ b/types/react-icons/lib/io/record.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoRecord extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/refresh.d.ts b/types/react-icons/lib/io/refresh.d.ts new file mode 100644 index 0000000000..8712271741 --- /dev/null +++ b/types/react-icons/lib/io/refresh.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoRefresh extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/reply-all.d.ts b/types/react-icons/lib/io/reply-all.d.ts new file mode 100644 index 0000000000..568a1f8dd4 --- /dev/null +++ b/types/react-icons/lib/io/reply-all.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoReplyAll extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/reply.d.ts b/types/react-icons/lib/io/reply.d.ts new file mode 100644 index 0000000000..628b3c6ade --- /dev/null +++ b/types/react-icons/lib/io/reply.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoReply extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ribbon-a.d.ts b/types/react-icons/lib/io/ribbon-a.d.ts new file mode 100644 index 0000000000..38d15e1fd1 --- /dev/null +++ b/types/react-icons/lib/io/ribbon-a.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoRibbonA extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/ribbon-b.d.ts b/types/react-icons/lib/io/ribbon-b.d.ts new file mode 100644 index 0000000000..8e2ba836cc --- /dev/null +++ b/types/react-icons/lib/io/ribbon-b.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoRibbonB extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/sad-outline.d.ts b/types/react-icons/lib/io/sad-outline.d.ts new file mode 100644 index 0000000000..07ef27ecfb --- /dev/null +++ b/types/react-icons/lib/io/sad-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSadOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/sad.d.ts b/types/react-icons/lib/io/sad.d.ts new file mode 100644 index 0000000000..de6e0e3b98 --- /dev/null +++ b/types/react-icons/lib/io/sad.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSad extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/scissors.d.ts b/types/react-icons/lib/io/scissors.d.ts new file mode 100644 index 0000000000..18b40acd88 --- /dev/null +++ b/types/react-icons/lib/io/scissors.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoScissors extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/search.d.ts b/types/react-icons/lib/io/search.d.ts new file mode 100644 index 0000000000..00175f972b --- /dev/null +++ b/types/react-icons/lib/io/search.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSearch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/settings.d.ts b/types/react-icons/lib/io/settings.d.ts new file mode 100644 index 0000000000..b5793e8679 --- /dev/null +++ b/types/react-icons/lib/io/settings.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSettings extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/share.d.ts b/types/react-icons/lib/io/share.d.ts new file mode 100644 index 0000000000..ba6d9a210a --- /dev/null +++ b/types/react-icons/lib/io/share.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoShare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/shuffle.d.ts b/types/react-icons/lib/io/shuffle.d.ts new file mode 100644 index 0000000000..fb4bf71aad --- /dev/null +++ b/types/react-icons/lib/io/shuffle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoShuffle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/skip-backward.d.ts b/types/react-icons/lib/io/skip-backward.d.ts new file mode 100644 index 0000000000..94bf5675c3 --- /dev/null +++ b/types/react-icons/lib/io/skip-backward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSkipBackward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/skip-forward.d.ts b/types/react-icons/lib/io/skip-forward.d.ts new file mode 100644 index 0000000000..7912bd2dfa --- /dev/null +++ b/types/react-icons/lib/io/skip-forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSkipForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-android-outline.d.ts b/types/react-icons/lib/io/social-android-outline.d.ts new file mode 100644 index 0000000000..3b306ef4a2 --- /dev/null +++ b/types/react-icons/lib/io/social-android-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialAndroidOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-android.d.ts b/types/react-icons/lib/io/social-android.d.ts new file mode 100644 index 0000000000..362c2af2c5 --- /dev/null +++ b/types/react-icons/lib/io/social-android.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialAndroid extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-angular-outline.d.ts b/types/react-icons/lib/io/social-angular-outline.d.ts new file mode 100644 index 0000000000..be0ad623a7 --- /dev/null +++ b/types/react-icons/lib/io/social-angular-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialAngularOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-angular.d.ts b/types/react-icons/lib/io/social-angular.d.ts new file mode 100644 index 0000000000..0286fd5c24 --- /dev/null +++ b/types/react-icons/lib/io/social-angular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialAngular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-apple-outline.d.ts b/types/react-icons/lib/io/social-apple-outline.d.ts new file mode 100644 index 0000000000..13ef33d192 --- /dev/null +++ b/types/react-icons/lib/io/social-apple-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialAppleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-apple.d.ts b/types/react-icons/lib/io/social-apple.d.ts new file mode 100644 index 0000000000..bece372480 --- /dev/null +++ b/types/react-icons/lib/io/social-apple.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialApple extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-bitcoin-outline.d.ts b/types/react-icons/lib/io/social-bitcoin-outline.d.ts new file mode 100644 index 0000000000..9044d3dc51 --- /dev/null +++ b/types/react-icons/lib/io/social-bitcoin-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialBitcoinOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-bitcoin.d.ts b/types/react-icons/lib/io/social-bitcoin.d.ts new file mode 100644 index 0000000000..f13a9ca0e2 --- /dev/null +++ b/types/react-icons/lib/io/social-bitcoin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialBitcoin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-buffer-outline.d.ts b/types/react-icons/lib/io/social-buffer-outline.d.ts new file mode 100644 index 0000000000..073a4d3256 --- /dev/null +++ b/types/react-icons/lib/io/social-buffer-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialBufferOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-buffer.d.ts b/types/react-icons/lib/io/social-buffer.d.ts new file mode 100644 index 0000000000..8f103cbc23 --- /dev/null +++ b/types/react-icons/lib/io/social-buffer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialBuffer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-chrome-outline.d.ts b/types/react-icons/lib/io/social-chrome-outline.d.ts new file mode 100644 index 0000000000..e0b96d90a9 --- /dev/null +++ b/types/react-icons/lib/io/social-chrome-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialChromeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-chrome.d.ts b/types/react-icons/lib/io/social-chrome.d.ts new file mode 100644 index 0000000000..a98ec53c7b --- /dev/null +++ b/types/react-icons/lib/io/social-chrome.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialChrome extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-codepen-outline.d.ts b/types/react-icons/lib/io/social-codepen-outline.d.ts new file mode 100644 index 0000000000..86affb85f1 --- /dev/null +++ b/types/react-icons/lib/io/social-codepen-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialCodepenOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-codepen.d.ts b/types/react-icons/lib/io/social-codepen.d.ts new file mode 100644 index 0000000000..bd6d0fe2ff --- /dev/null +++ b/types/react-icons/lib/io/social-codepen.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialCodepen extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-css3-outline.d.ts b/types/react-icons/lib/io/social-css3-outline.d.ts new file mode 100644 index 0000000000..0d792c0e6a --- /dev/null +++ b/types/react-icons/lib/io/social-css3-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialCss3Outline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-css3.d.ts b/types/react-icons/lib/io/social-css3.d.ts new file mode 100644 index 0000000000..f8ef55d480 --- /dev/null +++ b/types/react-icons/lib/io/social-css3.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialCss3 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-designernews-outline.d.ts b/types/react-icons/lib/io/social-designernews-outline.d.ts new file mode 100644 index 0000000000..9a84d73221 --- /dev/null +++ b/types/react-icons/lib/io/social-designernews-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialDesignernewsOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-designernews.d.ts b/types/react-icons/lib/io/social-designernews.d.ts new file mode 100644 index 0000000000..b7f5b92381 --- /dev/null +++ b/types/react-icons/lib/io/social-designernews.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialDesignernews extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-dribbble-outline.d.ts b/types/react-icons/lib/io/social-dribbble-outline.d.ts new file mode 100644 index 0000000000..ba7a99e3ab --- /dev/null +++ b/types/react-icons/lib/io/social-dribbble-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialDribbbleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-dribbble.d.ts b/types/react-icons/lib/io/social-dribbble.d.ts new file mode 100644 index 0000000000..ef43f8d862 --- /dev/null +++ b/types/react-icons/lib/io/social-dribbble.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialDribbble extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-dropbox-outline.d.ts b/types/react-icons/lib/io/social-dropbox-outline.d.ts new file mode 100644 index 0000000000..71959da367 --- /dev/null +++ b/types/react-icons/lib/io/social-dropbox-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialDropboxOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-dropbox.d.ts b/types/react-icons/lib/io/social-dropbox.d.ts new file mode 100644 index 0000000000..e0f243a8fa --- /dev/null +++ b/types/react-icons/lib/io/social-dropbox.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialDropbox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-euro-outline.d.ts b/types/react-icons/lib/io/social-euro-outline.d.ts new file mode 100644 index 0000000000..ec55bb73a5 --- /dev/null +++ b/types/react-icons/lib/io/social-euro-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialEuroOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-euro.d.ts b/types/react-icons/lib/io/social-euro.d.ts new file mode 100644 index 0000000000..b0b70b5796 --- /dev/null +++ b/types/react-icons/lib/io/social-euro.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialEuro extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-facebook-outline.d.ts b/types/react-icons/lib/io/social-facebook-outline.d.ts new file mode 100644 index 0000000000..fce2eda2b9 --- /dev/null +++ b/types/react-icons/lib/io/social-facebook-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialFacebookOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-facebook.d.ts b/types/react-icons/lib/io/social-facebook.d.ts new file mode 100644 index 0000000000..696c8f5401 --- /dev/null +++ b/types/react-icons/lib/io/social-facebook.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialFacebook extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-foursquare-outline.d.ts b/types/react-icons/lib/io/social-foursquare-outline.d.ts new file mode 100644 index 0000000000..aa643db79c --- /dev/null +++ b/types/react-icons/lib/io/social-foursquare-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialFoursquareOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-foursquare.d.ts b/types/react-icons/lib/io/social-foursquare.d.ts new file mode 100644 index 0000000000..d4555bfc41 --- /dev/null +++ b/types/react-icons/lib/io/social-foursquare.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialFoursquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-freebsd-devil.d.ts b/types/react-icons/lib/io/social-freebsd-devil.d.ts new file mode 100644 index 0000000000..17715e0a06 --- /dev/null +++ b/types/react-icons/lib/io/social-freebsd-devil.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialFreebsdDevil extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-github-outline.d.ts b/types/react-icons/lib/io/social-github-outline.d.ts new file mode 100644 index 0000000000..ad810dd9f5 --- /dev/null +++ b/types/react-icons/lib/io/social-github-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialGithubOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-github.d.ts b/types/react-icons/lib/io/social-github.d.ts new file mode 100644 index 0000000000..dabc247815 --- /dev/null +++ b/types/react-icons/lib/io/social-github.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialGithub extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-google-outline.d.ts b/types/react-icons/lib/io/social-google-outline.d.ts new file mode 100644 index 0000000000..76fa21d665 --- /dev/null +++ b/types/react-icons/lib/io/social-google-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialGoogleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-google.d.ts b/types/react-icons/lib/io/social-google.d.ts new file mode 100644 index 0000000000..c31283ade3 --- /dev/null +++ b/types/react-icons/lib/io/social-google.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialGoogle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-googleplus-outline.d.ts b/types/react-icons/lib/io/social-googleplus-outline.d.ts new file mode 100644 index 0000000000..fe28dee981 --- /dev/null +++ b/types/react-icons/lib/io/social-googleplus-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialGoogleplusOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-googleplus.d.ts b/types/react-icons/lib/io/social-googleplus.d.ts new file mode 100644 index 0000000000..3fe4052899 --- /dev/null +++ b/types/react-icons/lib/io/social-googleplus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialGoogleplus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-hackernews-outline.d.ts b/types/react-icons/lib/io/social-hackernews-outline.d.ts new file mode 100644 index 0000000000..c71910be26 --- /dev/null +++ b/types/react-icons/lib/io/social-hackernews-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialHackernewsOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-hackernews.d.ts b/types/react-icons/lib/io/social-hackernews.d.ts new file mode 100644 index 0000000000..69f8ffd48e --- /dev/null +++ b/types/react-icons/lib/io/social-hackernews.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialHackernews extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-html5-outline.d.ts b/types/react-icons/lib/io/social-html5-outline.d.ts new file mode 100644 index 0000000000..3c8d43114f --- /dev/null +++ b/types/react-icons/lib/io/social-html5-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialHtml5Outline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-html5.d.ts b/types/react-icons/lib/io/social-html5.d.ts new file mode 100644 index 0000000000..9916b17e2c --- /dev/null +++ b/types/react-icons/lib/io/social-html5.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialHtml5 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-instagram-outline.d.ts b/types/react-icons/lib/io/social-instagram-outline.d.ts new file mode 100644 index 0000000000..ffc74066b7 --- /dev/null +++ b/types/react-icons/lib/io/social-instagram-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialInstagramOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-instagram.d.ts b/types/react-icons/lib/io/social-instagram.d.ts new file mode 100644 index 0000000000..7c06ae1833 --- /dev/null +++ b/types/react-icons/lib/io/social-instagram.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialInstagram extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-javascript-outline.d.ts b/types/react-icons/lib/io/social-javascript-outline.d.ts new file mode 100644 index 0000000000..0f21ff7483 --- /dev/null +++ b/types/react-icons/lib/io/social-javascript-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialJavascriptOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-javascript.d.ts b/types/react-icons/lib/io/social-javascript.d.ts new file mode 100644 index 0000000000..99905575bf --- /dev/null +++ b/types/react-icons/lib/io/social-javascript.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialJavascript extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-linkedin-outline.d.ts b/types/react-icons/lib/io/social-linkedin-outline.d.ts new file mode 100644 index 0000000000..3ddee8261a --- /dev/null +++ b/types/react-icons/lib/io/social-linkedin-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialLinkedinOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-linkedin.d.ts b/types/react-icons/lib/io/social-linkedin.d.ts new file mode 100644 index 0000000000..0266663678 --- /dev/null +++ b/types/react-icons/lib/io/social-linkedin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialLinkedin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-markdown.d.ts b/types/react-icons/lib/io/social-markdown.d.ts new file mode 100644 index 0000000000..963119614d --- /dev/null +++ b/types/react-icons/lib/io/social-markdown.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialMarkdown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-nodejs.d.ts b/types/react-icons/lib/io/social-nodejs.d.ts new file mode 100644 index 0000000000..642390dc4a --- /dev/null +++ b/types/react-icons/lib/io/social-nodejs.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialNodejs extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-octocat.d.ts b/types/react-icons/lib/io/social-octocat.d.ts new file mode 100644 index 0000000000..0003cb487c --- /dev/null +++ b/types/react-icons/lib/io/social-octocat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialOctocat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-pinterest-outline.d.ts b/types/react-icons/lib/io/social-pinterest-outline.d.ts new file mode 100644 index 0000000000..4ed2d123ac --- /dev/null +++ b/types/react-icons/lib/io/social-pinterest-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialPinterestOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-pinterest.d.ts b/types/react-icons/lib/io/social-pinterest.d.ts new file mode 100644 index 0000000000..f2ee95376f --- /dev/null +++ b/types/react-icons/lib/io/social-pinterest.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialPinterest extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-python.d.ts b/types/react-icons/lib/io/social-python.d.ts new file mode 100644 index 0000000000..78a6e50954 --- /dev/null +++ b/types/react-icons/lib/io/social-python.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialPython extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-reddit-outline.d.ts b/types/react-icons/lib/io/social-reddit-outline.d.ts new file mode 100644 index 0000000000..9dd5355bdc --- /dev/null +++ b/types/react-icons/lib/io/social-reddit-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialRedditOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-reddit.d.ts b/types/react-icons/lib/io/social-reddit.d.ts new file mode 100644 index 0000000000..e103be80d3 --- /dev/null +++ b/types/react-icons/lib/io/social-reddit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialReddit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-rss-outline.d.ts b/types/react-icons/lib/io/social-rss-outline.d.ts new file mode 100644 index 0000000000..4baab1f80b --- /dev/null +++ b/types/react-icons/lib/io/social-rss-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialRssOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-rss.d.ts b/types/react-icons/lib/io/social-rss.d.ts new file mode 100644 index 0000000000..2c749b4af9 --- /dev/null +++ b/types/react-icons/lib/io/social-rss.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialRss extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-sass.d.ts b/types/react-icons/lib/io/social-sass.d.ts new file mode 100644 index 0000000000..6ba05bc9ae --- /dev/null +++ b/types/react-icons/lib/io/social-sass.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialSass extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-skype-outline.d.ts b/types/react-icons/lib/io/social-skype-outline.d.ts new file mode 100644 index 0000000000..cefebe89c9 --- /dev/null +++ b/types/react-icons/lib/io/social-skype-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialSkypeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-skype.d.ts b/types/react-icons/lib/io/social-skype.d.ts new file mode 100644 index 0000000000..a49a35ce62 --- /dev/null +++ b/types/react-icons/lib/io/social-skype.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialSkype extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-snapchat-outline.d.ts b/types/react-icons/lib/io/social-snapchat-outline.d.ts new file mode 100644 index 0000000000..5fe324cb94 --- /dev/null +++ b/types/react-icons/lib/io/social-snapchat-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialSnapchatOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-snapchat.d.ts b/types/react-icons/lib/io/social-snapchat.d.ts new file mode 100644 index 0000000000..ba87070d61 --- /dev/null +++ b/types/react-icons/lib/io/social-snapchat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialSnapchat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-tumblr-outline.d.ts b/types/react-icons/lib/io/social-tumblr-outline.d.ts new file mode 100644 index 0000000000..dbf70d2b60 --- /dev/null +++ b/types/react-icons/lib/io/social-tumblr-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialTumblrOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-tumblr.d.ts b/types/react-icons/lib/io/social-tumblr.d.ts new file mode 100644 index 0000000000..ce5c8b4170 --- /dev/null +++ b/types/react-icons/lib/io/social-tumblr.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialTumblr extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-tux.d.ts b/types/react-icons/lib/io/social-tux.d.ts new file mode 100644 index 0000000000..411ff72010 --- /dev/null +++ b/types/react-icons/lib/io/social-tux.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialTux extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-twitch-outline.d.ts b/types/react-icons/lib/io/social-twitch-outline.d.ts new file mode 100644 index 0000000000..5875914d98 --- /dev/null +++ b/types/react-icons/lib/io/social-twitch-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialTwitchOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-twitch.d.ts b/types/react-icons/lib/io/social-twitch.d.ts new file mode 100644 index 0000000000..109993f553 --- /dev/null +++ b/types/react-icons/lib/io/social-twitch.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialTwitch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-twitter-outline.d.ts b/types/react-icons/lib/io/social-twitter-outline.d.ts new file mode 100644 index 0000000000..2ecfe578dd --- /dev/null +++ b/types/react-icons/lib/io/social-twitter-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialTwitterOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-twitter.d.ts b/types/react-icons/lib/io/social-twitter.d.ts new file mode 100644 index 0000000000..81b8c0817a --- /dev/null +++ b/types/react-icons/lib/io/social-twitter.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialTwitter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-usd-outline.d.ts b/types/react-icons/lib/io/social-usd-outline.d.ts new file mode 100644 index 0000000000..8c12d195f5 --- /dev/null +++ b/types/react-icons/lib/io/social-usd-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialUsdOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-usd.d.ts b/types/react-icons/lib/io/social-usd.d.ts new file mode 100644 index 0000000000..a6814ba496 --- /dev/null +++ b/types/react-icons/lib/io/social-usd.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialUsd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-vimeo-outline.d.ts b/types/react-icons/lib/io/social-vimeo-outline.d.ts new file mode 100644 index 0000000000..bcac0c4f79 --- /dev/null +++ b/types/react-icons/lib/io/social-vimeo-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialVimeoOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-vimeo.d.ts b/types/react-icons/lib/io/social-vimeo.d.ts new file mode 100644 index 0000000000..5e0e068a51 --- /dev/null +++ b/types/react-icons/lib/io/social-vimeo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialVimeo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-whatsapp-outline.d.ts b/types/react-icons/lib/io/social-whatsapp-outline.d.ts new file mode 100644 index 0000000000..d3945dd43a --- /dev/null +++ b/types/react-icons/lib/io/social-whatsapp-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialWhatsappOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-whatsapp.d.ts b/types/react-icons/lib/io/social-whatsapp.d.ts new file mode 100644 index 0000000000..3f767a557e --- /dev/null +++ b/types/react-icons/lib/io/social-whatsapp.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialWhatsapp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-windows-outline.d.ts b/types/react-icons/lib/io/social-windows-outline.d.ts new file mode 100644 index 0000000000..204f5cc4ef --- /dev/null +++ b/types/react-icons/lib/io/social-windows-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialWindowsOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-windows.d.ts b/types/react-icons/lib/io/social-windows.d.ts new file mode 100644 index 0000000000..4a5a4854bd --- /dev/null +++ b/types/react-icons/lib/io/social-windows.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialWindows extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-wordpress-outline.d.ts b/types/react-icons/lib/io/social-wordpress-outline.d.ts new file mode 100644 index 0000000000..15e7a115dd --- /dev/null +++ b/types/react-icons/lib/io/social-wordpress-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialWordpressOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-wordpress.d.ts b/types/react-icons/lib/io/social-wordpress.d.ts new file mode 100644 index 0000000000..4d6e02a859 --- /dev/null +++ b/types/react-icons/lib/io/social-wordpress.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialWordpress extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-yahoo-outline.d.ts b/types/react-icons/lib/io/social-yahoo-outline.d.ts new file mode 100644 index 0000000000..5dcc671758 --- /dev/null +++ b/types/react-icons/lib/io/social-yahoo-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialYahooOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-yahoo.d.ts b/types/react-icons/lib/io/social-yahoo.d.ts new file mode 100644 index 0000000000..b5e6c878d6 --- /dev/null +++ b/types/react-icons/lib/io/social-yahoo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialYahoo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-yen-outline.d.ts b/types/react-icons/lib/io/social-yen-outline.d.ts new file mode 100644 index 0000000000..889d6655a6 --- /dev/null +++ b/types/react-icons/lib/io/social-yen-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialYenOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-yen.d.ts b/types/react-icons/lib/io/social-yen.d.ts new file mode 100644 index 0000000000..59d9b2b28b --- /dev/null +++ b/types/react-icons/lib/io/social-yen.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialYen extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-youtube-outline.d.ts b/types/react-icons/lib/io/social-youtube-outline.d.ts new file mode 100644 index 0000000000..09812d8e86 --- /dev/null +++ b/types/react-icons/lib/io/social-youtube-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialYoutubeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/social-youtube.d.ts b/types/react-icons/lib/io/social-youtube.d.ts new file mode 100644 index 0000000000..881e782d72 --- /dev/null +++ b/types/react-icons/lib/io/social-youtube.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSocialYoutube extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/soup-can-outline.d.ts b/types/react-icons/lib/io/soup-can-outline.d.ts new file mode 100644 index 0000000000..e1fe063808 --- /dev/null +++ b/types/react-icons/lib/io/soup-can-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSoupCanOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/soup-can.d.ts b/types/react-icons/lib/io/soup-can.d.ts new file mode 100644 index 0000000000..50b4167624 --- /dev/null +++ b/types/react-icons/lib/io/soup-can.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSoupCan extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/speakerphone.d.ts b/types/react-icons/lib/io/speakerphone.d.ts new file mode 100644 index 0000000000..af9117f78e --- /dev/null +++ b/types/react-icons/lib/io/speakerphone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSpeakerphone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/speedometer.d.ts b/types/react-icons/lib/io/speedometer.d.ts new file mode 100644 index 0000000000..50d69af596 --- /dev/null +++ b/types/react-icons/lib/io/speedometer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSpeedometer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/spoon.d.ts b/types/react-icons/lib/io/spoon.d.ts new file mode 100644 index 0000000000..107a88c9a6 --- /dev/null +++ b/types/react-icons/lib/io/spoon.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSpoon extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/star.d.ts b/types/react-icons/lib/io/star.d.ts new file mode 100644 index 0000000000..f4c1953512 --- /dev/null +++ b/types/react-icons/lib/io/star.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoStar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/stats-bars.d.ts b/types/react-icons/lib/io/stats-bars.d.ts new file mode 100644 index 0000000000..2d5e5024cb --- /dev/null +++ b/types/react-icons/lib/io/stats-bars.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoStatsBars extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/steam.d.ts b/types/react-icons/lib/io/steam.d.ts new file mode 100644 index 0000000000..097461e15c --- /dev/null +++ b/types/react-icons/lib/io/steam.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoSteam extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/stop.d.ts b/types/react-icons/lib/io/stop.d.ts new file mode 100644 index 0000000000..5fed81dabb --- /dev/null +++ b/types/react-icons/lib/io/stop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoStop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/thermometer.d.ts b/types/react-icons/lib/io/thermometer.d.ts new file mode 100644 index 0000000000..f76efa25ac --- /dev/null +++ b/types/react-icons/lib/io/thermometer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoThermometer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/thumbsdown.d.ts b/types/react-icons/lib/io/thumbsdown.d.ts new file mode 100644 index 0000000000..ebbbe6a64e --- /dev/null +++ b/types/react-icons/lib/io/thumbsdown.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoThumbsdown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/thumbsup.d.ts b/types/react-icons/lib/io/thumbsup.d.ts new file mode 100644 index 0000000000..285d40f186 --- /dev/null +++ b/types/react-icons/lib/io/thumbsup.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoThumbsup extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/toggle-filled.d.ts b/types/react-icons/lib/io/toggle-filled.d.ts new file mode 100644 index 0000000000..93cba93938 --- /dev/null +++ b/types/react-icons/lib/io/toggle-filled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoToggleFilled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/toggle.d.ts b/types/react-icons/lib/io/toggle.d.ts new file mode 100644 index 0000000000..1af341ce4f --- /dev/null +++ b/types/react-icons/lib/io/toggle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoToggle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/transgender.d.ts b/types/react-icons/lib/io/transgender.d.ts new file mode 100644 index 0000000000..254ada7d1a --- /dev/null +++ b/types/react-icons/lib/io/transgender.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoTransgender extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/trash-a.d.ts b/types/react-icons/lib/io/trash-a.d.ts new file mode 100644 index 0000000000..bfd8815599 --- /dev/null +++ b/types/react-icons/lib/io/trash-a.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoTrashA extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/trash-b.d.ts b/types/react-icons/lib/io/trash-b.d.ts new file mode 100644 index 0000000000..c7c0cde13a --- /dev/null +++ b/types/react-icons/lib/io/trash-b.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoTrashB extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/trophy.d.ts b/types/react-icons/lib/io/trophy.d.ts new file mode 100644 index 0000000000..f5f159c2e2 --- /dev/null +++ b/types/react-icons/lib/io/trophy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoTrophy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/tshirt-outline.d.ts b/types/react-icons/lib/io/tshirt-outline.d.ts new file mode 100644 index 0000000000..b530f97107 --- /dev/null +++ b/types/react-icons/lib/io/tshirt-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoTshirtOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/tshirt.d.ts b/types/react-icons/lib/io/tshirt.d.ts new file mode 100644 index 0000000000..b0072273b9 --- /dev/null +++ b/types/react-icons/lib/io/tshirt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoTshirt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/umbrella.d.ts b/types/react-icons/lib/io/umbrella.d.ts new file mode 100644 index 0000000000..b85cf5b8c9 --- /dev/null +++ b/types/react-icons/lib/io/umbrella.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoUmbrella extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/university.d.ts b/types/react-icons/lib/io/university.d.ts new file mode 100644 index 0000000000..5947ae4172 --- /dev/null +++ b/types/react-icons/lib/io/university.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoUniversity extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/unlocked.d.ts b/types/react-icons/lib/io/unlocked.d.ts new file mode 100644 index 0000000000..741c5ea952 --- /dev/null +++ b/types/react-icons/lib/io/unlocked.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoUnlocked extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/upload.d.ts b/types/react-icons/lib/io/upload.d.ts new file mode 100644 index 0000000000..1ffb5c4aaf --- /dev/null +++ b/types/react-icons/lib/io/upload.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoUpload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/usb.d.ts b/types/react-icons/lib/io/usb.d.ts new file mode 100644 index 0000000000..e53180c80e --- /dev/null +++ b/types/react-icons/lib/io/usb.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoUsb extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/videocamera.d.ts b/types/react-icons/lib/io/videocamera.d.ts new file mode 100644 index 0000000000..43148acede --- /dev/null +++ b/types/react-icons/lib/io/videocamera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoVideocamera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/volume-high.d.ts b/types/react-icons/lib/io/volume-high.d.ts new file mode 100644 index 0000000000..fdb362c990 --- /dev/null +++ b/types/react-icons/lib/io/volume-high.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoVolumeHigh extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/volume-low.d.ts b/types/react-icons/lib/io/volume-low.d.ts new file mode 100644 index 0000000000..1ac513c891 --- /dev/null +++ b/types/react-icons/lib/io/volume-low.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoVolumeLow extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/volume-medium.d.ts b/types/react-icons/lib/io/volume-medium.d.ts new file mode 100644 index 0000000000..7607d22632 --- /dev/null +++ b/types/react-icons/lib/io/volume-medium.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoVolumeMedium extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/volume-mute.d.ts b/types/react-icons/lib/io/volume-mute.d.ts new file mode 100644 index 0000000000..ff7330e544 --- /dev/null +++ b/types/react-icons/lib/io/volume-mute.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoVolumeMute extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/wand.d.ts b/types/react-icons/lib/io/wand.d.ts new file mode 100644 index 0000000000..e1e22869ee --- /dev/null +++ b/types/react-icons/lib/io/wand.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoWand extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/waterdrop.d.ts b/types/react-icons/lib/io/waterdrop.d.ts new file mode 100644 index 0000000000..a674835d55 --- /dev/null +++ b/types/react-icons/lib/io/waterdrop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoWaterdrop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/wifi.d.ts b/types/react-icons/lib/io/wifi.d.ts new file mode 100644 index 0000000000..3bec1b2449 --- /dev/null +++ b/types/react-icons/lib/io/wifi.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoWifi extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/wineglass.d.ts b/types/react-icons/lib/io/wineglass.d.ts new file mode 100644 index 0000000000..33b7d9843e --- /dev/null +++ b/types/react-icons/lib/io/wineglass.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoWineglass extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/woman.d.ts b/types/react-icons/lib/io/woman.d.ts new file mode 100644 index 0000000000..b3cbbd6294 --- /dev/null +++ b/types/react-icons/lib/io/woman.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoWoman extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/wrench.d.ts b/types/react-icons/lib/io/wrench.d.ts new file mode 100644 index 0000000000..6f53a0a8cd --- /dev/null +++ b/types/react-icons/lib/io/wrench.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoWrench extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/io/xbox.d.ts b/types/react-icons/lib/io/xbox.d.ts new file mode 100644 index 0000000000..2d3db0cbbc --- /dev/null +++ b/types/react-icons/lib/io/xbox.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class IoXbox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/3d-rotation.d.ts b/types/react-icons/lib/md/3d-rotation.d.ts new file mode 100644 index 0000000000..39d7887e16 --- /dev/null +++ b/types/react-icons/lib/md/3d-rotation.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class Md3dRotation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/ac-unit.d.ts b/types/react-icons/lib/md/ac-unit.d.ts new file mode 100644 index 0000000000..19f6257f61 --- /dev/null +++ b/types/react-icons/lib/md/ac-unit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAcUnit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/access-alarm.d.ts b/types/react-icons/lib/md/access-alarm.d.ts new file mode 100644 index 0000000000..8bfb8edd91 --- /dev/null +++ b/types/react-icons/lib/md/access-alarm.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAccessAlarm extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/access-alarms.d.ts b/types/react-icons/lib/md/access-alarms.d.ts new file mode 100644 index 0000000000..0d5b3fa4db --- /dev/null +++ b/types/react-icons/lib/md/access-alarms.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAccessAlarms extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/access-time.d.ts b/types/react-icons/lib/md/access-time.d.ts new file mode 100644 index 0000000000..552cf439f3 --- /dev/null +++ b/types/react-icons/lib/md/access-time.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAccessTime extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/accessibility.d.ts b/types/react-icons/lib/md/accessibility.d.ts new file mode 100644 index 0000000000..4160aa2c69 --- /dev/null +++ b/types/react-icons/lib/md/accessibility.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAccessibility extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/accessible.d.ts b/types/react-icons/lib/md/accessible.d.ts new file mode 100644 index 0000000000..180d7b0bc5 --- /dev/null +++ b/types/react-icons/lib/md/accessible.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAccessible extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/account-balance-wallet.d.ts b/types/react-icons/lib/md/account-balance-wallet.d.ts new file mode 100644 index 0000000000..469c3e9876 --- /dev/null +++ b/types/react-icons/lib/md/account-balance-wallet.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAccountBalanceWallet extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/account-balance.d.ts b/types/react-icons/lib/md/account-balance.d.ts new file mode 100644 index 0000000000..22edcbea9a --- /dev/null +++ b/types/react-icons/lib/md/account-balance.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAccountBalance extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/account-box.d.ts b/types/react-icons/lib/md/account-box.d.ts new file mode 100644 index 0000000000..c49ee5214e --- /dev/null +++ b/types/react-icons/lib/md/account-box.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAccountBox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/account-circle.d.ts b/types/react-icons/lib/md/account-circle.d.ts new file mode 100644 index 0000000000..6c9eab8aaf --- /dev/null +++ b/types/react-icons/lib/md/account-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAccountCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/adb.d.ts b/types/react-icons/lib/md/adb.d.ts new file mode 100644 index 0000000000..f056821ad5 --- /dev/null +++ b/types/react-icons/lib/md/adb.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAdb extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/add-a-photo.d.ts b/types/react-icons/lib/md/add-a-photo.d.ts new file mode 100644 index 0000000000..570d26f3da --- /dev/null +++ b/types/react-icons/lib/md/add-a-photo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAddAPhoto extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/add-alarm.d.ts b/types/react-icons/lib/md/add-alarm.d.ts new file mode 100644 index 0000000000..6b6f78f4b9 --- /dev/null +++ b/types/react-icons/lib/md/add-alarm.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAddAlarm extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/add-alert.d.ts b/types/react-icons/lib/md/add-alert.d.ts new file mode 100644 index 0000000000..b422649d52 --- /dev/null +++ b/types/react-icons/lib/md/add-alert.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAddAlert extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/add-box.d.ts b/types/react-icons/lib/md/add-box.d.ts new file mode 100644 index 0000000000..51e1f765c0 --- /dev/null +++ b/types/react-icons/lib/md/add-box.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAddBox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/add-circle-outline.d.ts b/types/react-icons/lib/md/add-circle-outline.d.ts new file mode 100644 index 0000000000..981d8bb9ce --- /dev/null +++ b/types/react-icons/lib/md/add-circle-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAddCircleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/add-circle.d.ts b/types/react-icons/lib/md/add-circle.d.ts new file mode 100644 index 0000000000..a0a0991c0c --- /dev/null +++ b/types/react-icons/lib/md/add-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAddCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/add-location.d.ts b/types/react-icons/lib/md/add-location.d.ts new file mode 100644 index 0000000000..98b0f328a3 --- /dev/null +++ b/types/react-icons/lib/md/add-location.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAddLocation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/add-shopping-cart.d.ts b/types/react-icons/lib/md/add-shopping-cart.d.ts new file mode 100644 index 0000000000..52ad95dd6f --- /dev/null +++ b/types/react-icons/lib/md/add-shopping-cart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAddShoppingCart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/add-to-photos.d.ts b/types/react-icons/lib/md/add-to-photos.d.ts new file mode 100644 index 0000000000..0eac8c47b2 --- /dev/null +++ b/types/react-icons/lib/md/add-to-photos.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAddToPhotos extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/add-to-queue.d.ts b/types/react-icons/lib/md/add-to-queue.d.ts new file mode 100644 index 0000000000..2bf4474037 --- /dev/null +++ b/types/react-icons/lib/md/add-to-queue.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAddToQueue extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/add.d.ts b/types/react-icons/lib/md/add.d.ts new file mode 100644 index 0000000000..1b7fb63078 --- /dev/null +++ b/types/react-icons/lib/md/add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/adjust.d.ts b/types/react-icons/lib/md/adjust.d.ts new file mode 100644 index 0000000000..c511d98a86 --- /dev/null +++ b/types/react-icons/lib/md/adjust.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAdjust extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/airline-seat-flat-angled.d.ts b/types/react-icons/lib/md/airline-seat-flat-angled.d.ts new file mode 100644 index 0000000000..27306970ac --- /dev/null +++ b/types/react-icons/lib/md/airline-seat-flat-angled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAirlineSeatFlatAngled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/airline-seat-flat.d.ts b/types/react-icons/lib/md/airline-seat-flat.d.ts new file mode 100644 index 0000000000..2708f28c19 --- /dev/null +++ b/types/react-icons/lib/md/airline-seat-flat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAirlineSeatFlat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/airline-seat-individual-suite.d.ts b/types/react-icons/lib/md/airline-seat-individual-suite.d.ts new file mode 100644 index 0000000000..1231fdffbc --- /dev/null +++ b/types/react-icons/lib/md/airline-seat-individual-suite.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAirlineSeatIndividualSuite extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/airline-seat-legroom-extra.d.ts b/types/react-icons/lib/md/airline-seat-legroom-extra.d.ts new file mode 100644 index 0000000000..8e48abc5df --- /dev/null +++ b/types/react-icons/lib/md/airline-seat-legroom-extra.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAirlineSeatLegroomExtra extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/airline-seat-legroom-normal.d.ts b/types/react-icons/lib/md/airline-seat-legroom-normal.d.ts new file mode 100644 index 0000000000..09cdf92d8a --- /dev/null +++ b/types/react-icons/lib/md/airline-seat-legroom-normal.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAirlineSeatLegroomNormal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/airline-seat-legroom-reduced.d.ts b/types/react-icons/lib/md/airline-seat-legroom-reduced.d.ts new file mode 100644 index 0000000000..e969b216a4 --- /dev/null +++ b/types/react-icons/lib/md/airline-seat-legroom-reduced.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAirlineSeatLegroomReduced extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/airline-seat-recline-extra.d.ts b/types/react-icons/lib/md/airline-seat-recline-extra.d.ts new file mode 100644 index 0000000000..f675688c5c --- /dev/null +++ b/types/react-icons/lib/md/airline-seat-recline-extra.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAirlineSeatReclineExtra extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/airline-seat-recline-normal.d.ts b/types/react-icons/lib/md/airline-seat-recline-normal.d.ts new file mode 100644 index 0000000000..2d7aeacd54 --- /dev/null +++ b/types/react-icons/lib/md/airline-seat-recline-normal.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAirlineSeatReclineNormal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/airplanemode-active.d.ts b/types/react-icons/lib/md/airplanemode-active.d.ts new file mode 100644 index 0000000000..64924f7457 --- /dev/null +++ b/types/react-icons/lib/md/airplanemode-active.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAirplanemodeActive extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/airplanemode-inactive.d.ts b/types/react-icons/lib/md/airplanemode-inactive.d.ts new file mode 100644 index 0000000000..bea28feef8 --- /dev/null +++ b/types/react-icons/lib/md/airplanemode-inactive.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAirplanemodeInactive extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/airplay.d.ts b/types/react-icons/lib/md/airplay.d.ts new file mode 100644 index 0000000000..0b7d8346dc --- /dev/null +++ b/types/react-icons/lib/md/airplay.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAirplay extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/airport-shuttle.d.ts b/types/react-icons/lib/md/airport-shuttle.d.ts new file mode 100644 index 0000000000..4d81dcca74 --- /dev/null +++ b/types/react-icons/lib/md/airport-shuttle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAirportShuttle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/alarm-add.d.ts b/types/react-icons/lib/md/alarm-add.d.ts new file mode 100644 index 0000000000..d54261c71e --- /dev/null +++ b/types/react-icons/lib/md/alarm-add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAlarmAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/alarm-off.d.ts b/types/react-icons/lib/md/alarm-off.d.ts new file mode 100644 index 0000000000..637956f31a --- /dev/null +++ b/types/react-icons/lib/md/alarm-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAlarmOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/alarm-on.d.ts b/types/react-icons/lib/md/alarm-on.d.ts new file mode 100644 index 0000000000..8ced06b55a --- /dev/null +++ b/types/react-icons/lib/md/alarm-on.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAlarmOn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/alarm.d.ts b/types/react-icons/lib/md/alarm.d.ts new file mode 100644 index 0000000000..784b55604a --- /dev/null +++ b/types/react-icons/lib/md/alarm.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAlarm extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/album.d.ts b/types/react-icons/lib/md/album.d.ts new file mode 100644 index 0000000000..b7c2dedcad --- /dev/null +++ b/types/react-icons/lib/md/album.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAlbum extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/all-inclusive.d.ts b/types/react-icons/lib/md/all-inclusive.d.ts new file mode 100644 index 0000000000..121315d268 --- /dev/null +++ b/types/react-icons/lib/md/all-inclusive.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAllInclusive extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/all-out.d.ts b/types/react-icons/lib/md/all-out.d.ts new file mode 100644 index 0000000000..feba801059 --- /dev/null +++ b/types/react-icons/lib/md/all-out.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAllOut extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/android.d.ts b/types/react-icons/lib/md/android.d.ts new file mode 100644 index 0000000000..d5821263bd --- /dev/null +++ b/types/react-icons/lib/md/android.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAndroid extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/announcement.d.ts b/types/react-icons/lib/md/announcement.d.ts new file mode 100644 index 0000000000..05af68d6c9 --- /dev/null +++ b/types/react-icons/lib/md/announcement.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAnnouncement extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/apps.d.ts b/types/react-icons/lib/md/apps.d.ts new file mode 100644 index 0000000000..605c867e9d --- /dev/null +++ b/types/react-icons/lib/md/apps.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdApps extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/archive.d.ts b/types/react-icons/lib/md/archive.d.ts new file mode 100644 index 0000000000..00cc76de31 --- /dev/null +++ b/types/react-icons/lib/md/archive.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdArchive extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/arrow-back.d.ts b/types/react-icons/lib/md/arrow-back.d.ts new file mode 100644 index 0000000000..d140fa63a4 --- /dev/null +++ b/types/react-icons/lib/md/arrow-back.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdArrowBack extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/arrow-downward.d.ts b/types/react-icons/lib/md/arrow-downward.d.ts new file mode 100644 index 0000000000..2d764aa5a0 --- /dev/null +++ b/types/react-icons/lib/md/arrow-downward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdArrowDownward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/arrow-drop-down-circle.d.ts b/types/react-icons/lib/md/arrow-drop-down-circle.d.ts new file mode 100644 index 0000000000..4a2bae7ded --- /dev/null +++ b/types/react-icons/lib/md/arrow-drop-down-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdArrowDropDownCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/arrow-drop-down.d.ts b/types/react-icons/lib/md/arrow-drop-down.d.ts new file mode 100644 index 0000000000..0e99216f42 --- /dev/null +++ b/types/react-icons/lib/md/arrow-drop-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdArrowDropDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/arrow-drop-up.d.ts b/types/react-icons/lib/md/arrow-drop-up.d.ts new file mode 100644 index 0000000000..efa55f2df4 --- /dev/null +++ b/types/react-icons/lib/md/arrow-drop-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdArrowDropUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/arrow-forward.d.ts b/types/react-icons/lib/md/arrow-forward.d.ts new file mode 100644 index 0000000000..1d3771ddd7 --- /dev/null +++ b/types/react-icons/lib/md/arrow-forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdArrowForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/arrow-upward.d.ts b/types/react-icons/lib/md/arrow-upward.d.ts new file mode 100644 index 0000000000..cd8f601ed9 --- /dev/null +++ b/types/react-icons/lib/md/arrow-upward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdArrowUpward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/art-track.d.ts b/types/react-icons/lib/md/art-track.d.ts new file mode 100644 index 0000000000..9893405dfd --- /dev/null +++ b/types/react-icons/lib/md/art-track.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdArtTrack extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/aspect-ratio.d.ts b/types/react-icons/lib/md/aspect-ratio.d.ts new file mode 100644 index 0000000000..b0d6311f3e --- /dev/null +++ b/types/react-icons/lib/md/aspect-ratio.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAspectRatio extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/assessment.d.ts b/types/react-icons/lib/md/assessment.d.ts new file mode 100644 index 0000000000..1c4979bd1f --- /dev/null +++ b/types/react-icons/lib/md/assessment.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAssessment extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/assignment-ind.d.ts b/types/react-icons/lib/md/assignment-ind.d.ts new file mode 100644 index 0000000000..6a0c5f2107 --- /dev/null +++ b/types/react-icons/lib/md/assignment-ind.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAssignmentInd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/assignment-late.d.ts b/types/react-icons/lib/md/assignment-late.d.ts new file mode 100644 index 0000000000..5aa4d5dcdd --- /dev/null +++ b/types/react-icons/lib/md/assignment-late.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAssignmentLate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/assignment-return.d.ts b/types/react-icons/lib/md/assignment-return.d.ts new file mode 100644 index 0000000000..e34eea0e8d --- /dev/null +++ b/types/react-icons/lib/md/assignment-return.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAssignmentReturn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/assignment-returned.d.ts b/types/react-icons/lib/md/assignment-returned.d.ts new file mode 100644 index 0000000000..5f3c6039ee --- /dev/null +++ b/types/react-icons/lib/md/assignment-returned.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAssignmentReturned extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/assignment-turned-in.d.ts b/types/react-icons/lib/md/assignment-turned-in.d.ts new file mode 100644 index 0000000000..c055e90d7f --- /dev/null +++ b/types/react-icons/lib/md/assignment-turned-in.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAssignmentTurnedIn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/assignment.d.ts b/types/react-icons/lib/md/assignment.d.ts new file mode 100644 index 0000000000..dc96f96868 --- /dev/null +++ b/types/react-icons/lib/md/assignment.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAssignment extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/assistant-photo.d.ts b/types/react-icons/lib/md/assistant-photo.d.ts new file mode 100644 index 0000000000..2bf4459503 --- /dev/null +++ b/types/react-icons/lib/md/assistant-photo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAssistantPhoto extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/assistant.d.ts b/types/react-icons/lib/md/assistant.d.ts new file mode 100644 index 0000000000..06007d112b --- /dev/null +++ b/types/react-icons/lib/md/assistant.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAssistant extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/attach-file.d.ts b/types/react-icons/lib/md/attach-file.d.ts new file mode 100644 index 0000000000..62aba0f830 --- /dev/null +++ b/types/react-icons/lib/md/attach-file.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAttachFile extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/attach-money.d.ts b/types/react-icons/lib/md/attach-money.d.ts new file mode 100644 index 0000000000..23dfd03a14 --- /dev/null +++ b/types/react-icons/lib/md/attach-money.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAttachMoney extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/attachment.d.ts b/types/react-icons/lib/md/attachment.d.ts new file mode 100644 index 0000000000..66a076a0df --- /dev/null +++ b/types/react-icons/lib/md/attachment.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAttachment extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/audiotrack.d.ts b/types/react-icons/lib/md/audiotrack.d.ts new file mode 100644 index 0000000000..0fb3a781aa --- /dev/null +++ b/types/react-icons/lib/md/audiotrack.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAudiotrack extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/autorenew.d.ts b/types/react-icons/lib/md/autorenew.d.ts new file mode 100644 index 0000000000..3dc1215c35 --- /dev/null +++ b/types/react-icons/lib/md/autorenew.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAutorenew extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/av-timer.d.ts b/types/react-icons/lib/md/av-timer.d.ts new file mode 100644 index 0000000000..d050eb13b6 --- /dev/null +++ b/types/react-icons/lib/md/av-timer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdAvTimer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/backspace.d.ts b/types/react-icons/lib/md/backspace.d.ts new file mode 100644 index 0000000000..c462bc8c5c --- /dev/null +++ b/types/react-icons/lib/md/backspace.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBackspace extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/backup.d.ts b/types/react-icons/lib/md/backup.d.ts new file mode 100644 index 0000000000..ab43c6934f --- /dev/null +++ b/types/react-icons/lib/md/backup.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBackup extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/battery-alert.d.ts b/types/react-icons/lib/md/battery-alert.d.ts new file mode 100644 index 0000000000..c19ea98a0b --- /dev/null +++ b/types/react-icons/lib/md/battery-alert.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBatteryAlert extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/battery-charging-full.d.ts b/types/react-icons/lib/md/battery-charging-full.d.ts new file mode 100644 index 0000000000..c85f75a71a --- /dev/null +++ b/types/react-icons/lib/md/battery-charging-full.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBatteryChargingFull extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/battery-full.d.ts b/types/react-icons/lib/md/battery-full.d.ts new file mode 100644 index 0000000000..0aca5efc47 --- /dev/null +++ b/types/react-icons/lib/md/battery-full.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBatteryFull extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/battery-std.d.ts b/types/react-icons/lib/md/battery-std.d.ts new file mode 100644 index 0000000000..3db6971900 --- /dev/null +++ b/types/react-icons/lib/md/battery-std.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBatteryStd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/battery-unknown.d.ts b/types/react-icons/lib/md/battery-unknown.d.ts new file mode 100644 index 0000000000..85dc874ccb --- /dev/null +++ b/types/react-icons/lib/md/battery-unknown.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBatteryUnknown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/beach-access.d.ts b/types/react-icons/lib/md/beach-access.d.ts new file mode 100644 index 0000000000..bb0f5e8d09 --- /dev/null +++ b/types/react-icons/lib/md/beach-access.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBeachAccess extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/beenhere.d.ts b/types/react-icons/lib/md/beenhere.d.ts new file mode 100644 index 0000000000..a428d7199e --- /dev/null +++ b/types/react-icons/lib/md/beenhere.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBeenhere extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/block.d.ts b/types/react-icons/lib/md/block.d.ts new file mode 100644 index 0000000000..f5496f14bb --- /dev/null +++ b/types/react-icons/lib/md/block.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBlock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/bluetooth-audio.d.ts b/types/react-icons/lib/md/bluetooth-audio.d.ts new file mode 100644 index 0000000000..29629f8a81 --- /dev/null +++ b/types/react-icons/lib/md/bluetooth-audio.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBluetoothAudio extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/bluetooth-connected.d.ts b/types/react-icons/lib/md/bluetooth-connected.d.ts new file mode 100644 index 0000000000..7ea9477b1b --- /dev/null +++ b/types/react-icons/lib/md/bluetooth-connected.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBluetoothConnected extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/bluetooth-disabled.d.ts b/types/react-icons/lib/md/bluetooth-disabled.d.ts new file mode 100644 index 0000000000..685074c6eb --- /dev/null +++ b/types/react-icons/lib/md/bluetooth-disabled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBluetoothDisabled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/bluetooth-searching.d.ts b/types/react-icons/lib/md/bluetooth-searching.d.ts new file mode 100644 index 0000000000..d258e69bd7 --- /dev/null +++ b/types/react-icons/lib/md/bluetooth-searching.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBluetoothSearching extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/bluetooth.d.ts b/types/react-icons/lib/md/bluetooth.d.ts new file mode 100644 index 0000000000..9343fadbf2 --- /dev/null +++ b/types/react-icons/lib/md/bluetooth.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBluetooth extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/blur-circular.d.ts b/types/react-icons/lib/md/blur-circular.d.ts new file mode 100644 index 0000000000..27b3bb0ae2 --- /dev/null +++ b/types/react-icons/lib/md/blur-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBlurCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/blur-linear.d.ts b/types/react-icons/lib/md/blur-linear.d.ts new file mode 100644 index 0000000000..e077a469b1 --- /dev/null +++ b/types/react-icons/lib/md/blur-linear.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBlurLinear extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/blur-off.d.ts b/types/react-icons/lib/md/blur-off.d.ts new file mode 100644 index 0000000000..df3c89e207 --- /dev/null +++ b/types/react-icons/lib/md/blur-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBlurOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/blur-on.d.ts b/types/react-icons/lib/md/blur-on.d.ts new file mode 100644 index 0000000000..ade64f3147 --- /dev/null +++ b/types/react-icons/lib/md/blur-on.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBlurOn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/book.d.ts b/types/react-icons/lib/md/book.d.ts new file mode 100644 index 0000000000..593fefe912 --- /dev/null +++ b/types/react-icons/lib/md/book.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBook extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/bookmark-outline.d.ts b/types/react-icons/lib/md/bookmark-outline.d.ts new file mode 100644 index 0000000000..630c78b12b --- /dev/null +++ b/types/react-icons/lib/md/bookmark-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBookmarkOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/bookmark.d.ts b/types/react-icons/lib/md/bookmark.d.ts new file mode 100644 index 0000000000..b180f81ce4 --- /dev/null +++ b/types/react-icons/lib/md/bookmark.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBookmark extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/border-all.d.ts b/types/react-icons/lib/md/border-all.d.ts new file mode 100644 index 0000000000..111f24de6b --- /dev/null +++ b/types/react-icons/lib/md/border-all.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBorderAll extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/border-bottom.d.ts b/types/react-icons/lib/md/border-bottom.d.ts new file mode 100644 index 0000000000..979bd252bb --- /dev/null +++ b/types/react-icons/lib/md/border-bottom.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBorderBottom extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/border-clear.d.ts b/types/react-icons/lib/md/border-clear.d.ts new file mode 100644 index 0000000000..2d76f24b12 --- /dev/null +++ b/types/react-icons/lib/md/border-clear.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBorderClear extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/border-color.d.ts b/types/react-icons/lib/md/border-color.d.ts new file mode 100644 index 0000000000..b9ddd9918c --- /dev/null +++ b/types/react-icons/lib/md/border-color.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBorderColor extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/border-horizontal.d.ts b/types/react-icons/lib/md/border-horizontal.d.ts new file mode 100644 index 0000000000..7f1e473277 --- /dev/null +++ b/types/react-icons/lib/md/border-horizontal.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBorderHorizontal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/border-inner.d.ts b/types/react-icons/lib/md/border-inner.d.ts new file mode 100644 index 0000000000..2a807b9ce2 --- /dev/null +++ b/types/react-icons/lib/md/border-inner.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBorderInner extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/border-left.d.ts b/types/react-icons/lib/md/border-left.d.ts new file mode 100644 index 0000000000..062bf7af75 --- /dev/null +++ b/types/react-icons/lib/md/border-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBorderLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/border-outer.d.ts b/types/react-icons/lib/md/border-outer.d.ts new file mode 100644 index 0000000000..60e13b29ad --- /dev/null +++ b/types/react-icons/lib/md/border-outer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBorderOuter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/border-right.d.ts b/types/react-icons/lib/md/border-right.d.ts new file mode 100644 index 0000000000..8bb225c8d9 --- /dev/null +++ b/types/react-icons/lib/md/border-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBorderRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/border-style.d.ts b/types/react-icons/lib/md/border-style.d.ts new file mode 100644 index 0000000000..92da93bb6d --- /dev/null +++ b/types/react-icons/lib/md/border-style.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBorderStyle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/border-top.d.ts b/types/react-icons/lib/md/border-top.d.ts new file mode 100644 index 0000000000..32a4a828a8 --- /dev/null +++ b/types/react-icons/lib/md/border-top.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBorderTop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/border-vertical.d.ts b/types/react-icons/lib/md/border-vertical.d.ts new file mode 100644 index 0000000000..dce912d6de --- /dev/null +++ b/types/react-icons/lib/md/border-vertical.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBorderVertical extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/branding-watermark.d.ts b/types/react-icons/lib/md/branding-watermark.d.ts new file mode 100644 index 0000000000..92ae821285 --- /dev/null +++ b/types/react-icons/lib/md/branding-watermark.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrandingWatermark extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/brightness-1.d.ts b/types/react-icons/lib/md/brightness-1.d.ts new file mode 100644 index 0000000000..2ac3e1dd25 --- /dev/null +++ b/types/react-icons/lib/md/brightness-1.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrightness1 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/brightness-2.d.ts b/types/react-icons/lib/md/brightness-2.d.ts new file mode 100644 index 0000000000..ad9eae9cb1 --- /dev/null +++ b/types/react-icons/lib/md/brightness-2.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrightness2 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/brightness-3.d.ts b/types/react-icons/lib/md/brightness-3.d.ts new file mode 100644 index 0000000000..929e3196af --- /dev/null +++ b/types/react-icons/lib/md/brightness-3.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrightness3 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/brightness-4.d.ts b/types/react-icons/lib/md/brightness-4.d.ts new file mode 100644 index 0000000000..eeac7b21a5 --- /dev/null +++ b/types/react-icons/lib/md/brightness-4.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrightness4 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/brightness-5.d.ts b/types/react-icons/lib/md/brightness-5.d.ts new file mode 100644 index 0000000000..26dc5fc08c --- /dev/null +++ b/types/react-icons/lib/md/brightness-5.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrightness5 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/brightness-6.d.ts b/types/react-icons/lib/md/brightness-6.d.ts new file mode 100644 index 0000000000..c59e6345b0 --- /dev/null +++ b/types/react-icons/lib/md/brightness-6.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrightness6 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/brightness-7.d.ts b/types/react-icons/lib/md/brightness-7.d.ts new file mode 100644 index 0000000000..00510b48a7 --- /dev/null +++ b/types/react-icons/lib/md/brightness-7.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrightness7 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/brightness-auto.d.ts b/types/react-icons/lib/md/brightness-auto.d.ts new file mode 100644 index 0000000000..7fd30ba582 --- /dev/null +++ b/types/react-icons/lib/md/brightness-auto.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrightnessAuto extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/brightness-high.d.ts b/types/react-icons/lib/md/brightness-high.d.ts new file mode 100644 index 0000000000..65eb9716e2 --- /dev/null +++ b/types/react-icons/lib/md/brightness-high.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrightnessHigh extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/brightness-low.d.ts b/types/react-icons/lib/md/brightness-low.d.ts new file mode 100644 index 0000000000..7a4220918a --- /dev/null +++ b/types/react-icons/lib/md/brightness-low.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrightnessLow extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/brightness-medium.d.ts b/types/react-icons/lib/md/brightness-medium.d.ts new file mode 100644 index 0000000000..bcae811361 --- /dev/null +++ b/types/react-icons/lib/md/brightness-medium.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrightnessMedium extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/broken-image.d.ts b/types/react-icons/lib/md/broken-image.d.ts new file mode 100644 index 0000000000..26a5256e01 --- /dev/null +++ b/types/react-icons/lib/md/broken-image.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrokenImage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/brush.d.ts b/types/react-icons/lib/md/brush.d.ts new file mode 100644 index 0000000000..71e04689f2 --- /dev/null +++ b/types/react-icons/lib/md/brush.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBrush extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/bubble-chart.d.ts b/types/react-icons/lib/md/bubble-chart.d.ts new file mode 100644 index 0000000000..d893d4d2a1 --- /dev/null +++ b/types/react-icons/lib/md/bubble-chart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBubbleChart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/bug-report.d.ts b/types/react-icons/lib/md/bug-report.d.ts new file mode 100644 index 0000000000..8d5b5f78ef --- /dev/null +++ b/types/react-icons/lib/md/bug-report.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBugReport extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/build.d.ts b/types/react-icons/lib/md/build.d.ts new file mode 100644 index 0000000000..3969a9d67d --- /dev/null +++ b/types/react-icons/lib/md/build.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBuild extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/burst-mode.d.ts b/types/react-icons/lib/md/burst-mode.d.ts new file mode 100644 index 0000000000..2db0673b64 --- /dev/null +++ b/types/react-icons/lib/md/burst-mode.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBurstMode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/business-center.d.ts b/types/react-icons/lib/md/business-center.d.ts new file mode 100644 index 0000000000..019568bc79 --- /dev/null +++ b/types/react-icons/lib/md/business-center.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBusinessCenter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/business.d.ts b/types/react-icons/lib/md/business.d.ts new file mode 100644 index 0000000000..aee4700728 --- /dev/null +++ b/types/react-icons/lib/md/business.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdBusiness extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/cached.d.ts b/types/react-icons/lib/md/cached.d.ts new file mode 100644 index 0000000000..e26b176124 --- /dev/null +++ b/types/react-icons/lib/md/cached.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCached extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/cake.d.ts b/types/react-icons/lib/md/cake.d.ts new file mode 100644 index 0000000000..757d94fa73 --- /dev/null +++ b/types/react-icons/lib/md/cake.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCake extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/call-end.d.ts b/types/react-icons/lib/md/call-end.d.ts new file mode 100644 index 0000000000..fcb323974c --- /dev/null +++ b/types/react-icons/lib/md/call-end.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCallEnd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/call-made.d.ts b/types/react-icons/lib/md/call-made.d.ts new file mode 100644 index 0000000000..d7523be94c --- /dev/null +++ b/types/react-icons/lib/md/call-made.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCallMade extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/call-merge.d.ts b/types/react-icons/lib/md/call-merge.d.ts new file mode 100644 index 0000000000..9c7369c900 --- /dev/null +++ b/types/react-icons/lib/md/call-merge.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCallMerge extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/call-missed-outgoing.d.ts b/types/react-icons/lib/md/call-missed-outgoing.d.ts new file mode 100644 index 0000000000..f03613faad --- /dev/null +++ b/types/react-icons/lib/md/call-missed-outgoing.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCallMissedOutgoing extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/call-missed.d.ts b/types/react-icons/lib/md/call-missed.d.ts new file mode 100644 index 0000000000..c999bb5cab --- /dev/null +++ b/types/react-icons/lib/md/call-missed.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCallMissed extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/call-received.d.ts b/types/react-icons/lib/md/call-received.d.ts new file mode 100644 index 0000000000..29f503af3f --- /dev/null +++ b/types/react-icons/lib/md/call-received.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCallReceived extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/call-split.d.ts b/types/react-icons/lib/md/call-split.d.ts new file mode 100644 index 0000000000..56330a07e8 --- /dev/null +++ b/types/react-icons/lib/md/call-split.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCallSplit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/call-to-action.d.ts b/types/react-icons/lib/md/call-to-action.d.ts new file mode 100644 index 0000000000..f1f8d89d80 --- /dev/null +++ b/types/react-icons/lib/md/call-to-action.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCallToAction extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/call.d.ts b/types/react-icons/lib/md/call.d.ts new file mode 100644 index 0000000000..2bfec93bfc --- /dev/null +++ b/types/react-icons/lib/md/call.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCall extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/camera-alt.d.ts b/types/react-icons/lib/md/camera-alt.d.ts new file mode 100644 index 0000000000..4951b47b34 --- /dev/null +++ b/types/react-icons/lib/md/camera-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCameraAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/camera-enhance.d.ts b/types/react-icons/lib/md/camera-enhance.d.ts new file mode 100644 index 0000000000..957b0b30e4 --- /dev/null +++ b/types/react-icons/lib/md/camera-enhance.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCameraEnhance extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/camera-front.d.ts b/types/react-icons/lib/md/camera-front.d.ts new file mode 100644 index 0000000000..c6f2760218 --- /dev/null +++ b/types/react-icons/lib/md/camera-front.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCameraFront extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/camera-rear.d.ts b/types/react-icons/lib/md/camera-rear.d.ts new file mode 100644 index 0000000000..b524f4456c --- /dev/null +++ b/types/react-icons/lib/md/camera-rear.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCameraRear extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/camera-roll.d.ts b/types/react-icons/lib/md/camera-roll.d.ts new file mode 100644 index 0000000000..b7c7b207e2 --- /dev/null +++ b/types/react-icons/lib/md/camera-roll.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCameraRoll extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/camera.d.ts b/types/react-icons/lib/md/camera.d.ts new file mode 100644 index 0000000000..ca2fbf55e3 --- /dev/null +++ b/types/react-icons/lib/md/camera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCamera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/cancel.d.ts b/types/react-icons/lib/md/cancel.d.ts new file mode 100644 index 0000000000..28248ed4f6 --- /dev/null +++ b/types/react-icons/lib/md/cancel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCancel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/card-giftcard.d.ts b/types/react-icons/lib/md/card-giftcard.d.ts new file mode 100644 index 0000000000..67eb5002e6 --- /dev/null +++ b/types/react-icons/lib/md/card-giftcard.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCardGiftcard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/card-membership.d.ts b/types/react-icons/lib/md/card-membership.d.ts new file mode 100644 index 0000000000..5cb91c641d --- /dev/null +++ b/types/react-icons/lib/md/card-membership.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCardMembership extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/card-travel.d.ts b/types/react-icons/lib/md/card-travel.d.ts new file mode 100644 index 0000000000..a54e339c09 --- /dev/null +++ b/types/react-icons/lib/md/card-travel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCardTravel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/casino.d.ts b/types/react-icons/lib/md/casino.d.ts new file mode 100644 index 0000000000..ceb6c0cf04 --- /dev/null +++ b/types/react-icons/lib/md/casino.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCasino extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/cast-connected.d.ts b/types/react-icons/lib/md/cast-connected.d.ts new file mode 100644 index 0000000000..d4d60dcf60 --- /dev/null +++ b/types/react-icons/lib/md/cast-connected.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCastConnected extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/cast.d.ts b/types/react-icons/lib/md/cast.d.ts new file mode 100644 index 0000000000..b014c40b07 --- /dev/null +++ b/types/react-icons/lib/md/cast.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCast extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/center-focus-strong.d.ts b/types/react-icons/lib/md/center-focus-strong.d.ts new file mode 100644 index 0000000000..6d72ae6a11 --- /dev/null +++ b/types/react-icons/lib/md/center-focus-strong.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCenterFocusStrong extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/center-focus-weak.d.ts b/types/react-icons/lib/md/center-focus-weak.d.ts new file mode 100644 index 0000000000..5565dd7b63 --- /dev/null +++ b/types/react-icons/lib/md/center-focus-weak.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCenterFocusWeak extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/change-history.d.ts b/types/react-icons/lib/md/change-history.d.ts new file mode 100644 index 0000000000..ed3344df50 --- /dev/null +++ b/types/react-icons/lib/md/change-history.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdChangeHistory extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/chat-bubble-outline.d.ts b/types/react-icons/lib/md/chat-bubble-outline.d.ts new file mode 100644 index 0000000000..ad12c21318 --- /dev/null +++ b/types/react-icons/lib/md/chat-bubble-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdChatBubbleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/chat-bubble.d.ts b/types/react-icons/lib/md/chat-bubble.d.ts new file mode 100644 index 0000000000..6322767617 --- /dev/null +++ b/types/react-icons/lib/md/chat-bubble.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdChatBubble extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/chat.d.ts b/types/react-icons/lib/md/chat.d.ts new file mode 100644 index 0000000000..7fecfed168 --- /dev/null +++ b/types/react-icons/lib/md/chat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdChat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/check-box-outline-blank.d.ts b/types/react-icons/lib/md/check-box-outline-blank.d.ts new file mode 100644 index 0000000000..984ee8c5b0 --- /dev/null +++ b/types/react-icons/lib/md/check-box-outline-blank.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCheckBoxOutlineBlank extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/check-box.d.ts b/types/react-icons/lib/md/check-box.d.ts new file mode 100644 index 0000000000..0d131960ee --- /dev/null +++ b/types/react-icons/lib/md/check-box.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCheckBox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/check-circle.d.ts b/types/react-icons/lib/md/check-circle.d.ts new file mode 100644 index 0000000000..350ec8918d --- /dev/null +++ b/types/react-icons/lib/md/check-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCheckCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/check.d.ts b/types/react-icons/lib/md/check.d.ts new file mode 100644 index 0000000000..df809198db --- /dev/null +++ b/types/react-icons/lib/md/check.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCheck extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/chevron-left.d.ts b/types/react-icons/lib/md/chevron-left.d.ts new file mode 100644 index 0000000000..fd0b4bff5a --- /dev/null +++ b/types/react-icons/lib/md/chevron-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdChevronLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/chevron-right.d.ts b/types/react-icons/lib/md/chevron-right.d.ts new file mode 100644 index 0000000000..fd902a1348 --- /dev/null +++ b/types/react-icons/lib/md/chevron-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdChevronRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/child-care.d.ts b/types/react-icons/lib/md/child-care.d.ts new file mode 100644 index 0000000000..133bf02e0e --- /dev/null +++ b/types/react-icons/lib/md/child-care.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdChildCare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/child-friendly.d.ts b/types/react-icons/lib/md/child-friendly.d.ts new file mode 100644 index 0000000000..87f9bc1b8e --- /dev/null +++ b/types/react-icons/lib/md/child-friendly.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdChildFriendly extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/chrome-reader-mode.d.ts b/types/react-icons/lib/md/chrome-reader-mode.d.ts new file mode 100644 index 0000000000..c545db8e9b --- /dev/null +++ b/types/react-icons/lib/md/chrome-reader-mode.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdChromeReaderMode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/class.d.ts b/types/react-icons/lib/md/class.d.ts new file mode 100644 index 0000000000..e0e0e88367 --- /dev/null +++ b/types/react-icons/lib/md/class.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdClass extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/clear-all.d.ts b/types/react-icons/lib/md/clear-all.d.ts new file mode 100644 index 0000000000..b73150c14e --- /dev/null +++ b/types/react-icons/lib/md/clear-all.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdClearAll extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/clear.d.ts b/types/react-icons/lib/md/clear.d.ts new file mode 100644 index 0000000000..4da44db5b5 --- /dev/null +++ b/types/react-icons/lib/md/clear.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdClear extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/close.d.ts b/types/react-icons/lib/md/close.d.ts new file mode 100644 index 0000000000..3f693c1eec --- /dev/null +++ b/types/react-icons/lib/md/close.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdClose extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/closed-caption.d.ts b/types/react-icons/lib/md/closed-caption.d.ts new file mode 100644 index 0000000000..5adaf8fc91 --- /dev/null +++ b/types/react-icons/lib/md/closed-caption.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdClosedCaption extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/cloud-circle.d.ts b/types/react-icons/lib/md/cloud-circle.d.ts new file mode 100644 index 0000000000..55a5be23c2 --- /dev/null +++ b/types/react-icons/lib/md/cloud-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCloudCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/cloud-done.d.ts b/types/react-icons/lib/md/cloud-done.d.ts new file mode 100644 index 0000000000..49f115ae3d --- /dev/null +++ b/types/react-icons/lib/md/cloud-done.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCloudDone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/cloud-download.d.ts b/types/react-icons/lib/md/cloud-download.d.ts new file mode 100644 index 0000000000..c7b6f482bb --- /dev/null +++ b/types/react-icons/lib/md/cloud-download.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCloudDownload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/cloud-off.d.ts b/types/react-icons/lib/md/cloud-off.d.ts new file mode 100644 index 0000000000..2ebe85de9a --- /dev/null +++ b/types/react-icons/lib/md/cloud-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCloudOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/cloud-queue.d.ts b/types/react-icons/lib/md/cloud-queue.d.ts new file mode 100644 index 0000000000..3e7912edb7 --- /dev/null +++ b/types/react-icons/lib/md/cloud-queue.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCloudQueue extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/cloud-upload.d.ts b/types/react-icons/lib/md/cloud-upload.d.ts new file mode 100644 index 0000000000..3813bf345b --- /dev/null +++ b/types/react-icons/lib/md/cloud-upload.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCloudUpload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/cloud.d.ts b/types/react-icons/lib/md/cloud.d.ts new file mode 100644 index 0000000000..774dd53424 --- /dev/null +++ b/types/react-icons/lib/md/cloud.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCloud extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/code.d.ts b/types/react-icons/lib/md/code.d.ts new file mode 100644 index 0000000000..54f942afd1 --- /dev/null +++ b/types/react-icons/lib/md/code.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/collections-bookmark.d.ts b/types/react-icons/lib/md/collections-bookmark.d.ts new file mode 100644 index 0000000000..98d8755848 --- /dev/null +++ b/types/react-icons/lib/md/collections-bookmark.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCollectionsBookmark extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/collections.d.ts b/types/react-icons/lib/md/collections.d.ts new file mode 100644 index 0000000000..7d5cf7fa68 --- /dev/null +++ b/types/react-icons/lib/md/collections.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCollections extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/color-lens.d.ts b/types/react-icons/lib/md/color-lens.d.ts new file mode 100644 index 0000000000..71a56bc853 --- /dev/null +++ b/types/react-icons/lib/md/color-lens.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdColorLens extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/colorize.d.ts b/types/react-icons/lib/md/colorize.d.ts new file mode 100644 index 0000000000..f345627803 --- /dev/null +++ b/types/react-icons/lib/md/colorize.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdColorize extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/comment.d.ts b/types/react-icons/lib/md/comment.d.ts new file mode 100644 index 0000000000..c81ab4762a --- /dev/null +++ b/types/react-icons/lib/md/comment.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdComment extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/compare-arrows.d.ts b/types/react-icons/lib/md/compare-arrows.d.ts new file mode 100644 index 0000000000..727031b8a7 --- /dev/null +++ b/types/react-icons/lib/md/compare-arrows.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCompareArrows extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/compare.d.ts b/types/react-icons/lib/md/compare.d.ts new file mode 100644 index 0000000000..59338cf7c9 --- /dev/null +++ b/types/react-icons/lib/md/compare.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCompare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/computer.d.ts b/types/react-icons/lib/md/computer.d.ts new file mode 100644 index 0000000000..ef16df598d --- /dev/null +++ b/types/react-icons/lib/md/computer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdComputer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/confirmation-number.d.ts b/types/react-icons/lib/md/confirmation-number.d.ts new file mode 100644 index 0000000000..8a3b8fcb8f --- /dev/null +++ b/types/react-icons/lib/md/confirmation-number.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdConfirmationNumber extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/contact-mail.d.ts b/types/react-icons/lib/md/contact-mail.d.ts new file mode 100644 index 0000000000..b5027ce2da --- /dev/null +++ b/types/react-icons/lib/md/contact-mail.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdContactMail extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/contact-phone.d.ts b/types/react-icons/lib/md/contact-phone.d.ts new file mode 100644 index 0000000000..df4405a4da --- /dev/null +++ b/types/react-icons/lib/md/contact-phone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdContactPhone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/contacts.d.ts b/types/react-icons/lib/md/contacts.d.ts new file mode 100644 index 0000000000..e4df5f1c11 --- /dev/null +++ b/types/react-icons/lib/md/contacts.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdContacts extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/content-copy.d.ts b/types/react-icons/lib/md/content-copy.d.ts new file mode 100644 index 0000000000..e069254814 --- /dev/null +++ b/types/react-icons/lib/md/content-copy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdContentCopy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/content-cut.d.ts b/types/react-icons/lib/md/content-cut.d.ts new file mode 100644 index 0000000000..84d7b36ea0 --- /dev/null +++ b/types/react-icons/lib/md/content-cut.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdContentCut extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/content-paste.d.ts b/types/react-icons/lib/md/content-paste.d.ts new file mode 100644 index 0000000000..d3825ed71f --- /dev/null +++ b/types/react-icons/lib/md/content-paste.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdContentPaste extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/control-point-duplicate.d.ts b/types/react-icons/lib/md/control-point-duplicate.d.ts new file mode 100644 index 0000000000..8ba468f7bc --- /dev/null +++ b/types/react-icons/lib/md/control-point-duplicate.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdControlPointDuplicate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/control-point.d.ts b/types/react-icons/lib/md/control-point.d.ts new file mode 100644 index 0000000000..aa32c1b7f4 --- /dev/null +++ b/types/react-icons/lib/md/control-point.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdControlPoint extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/copyright.d.ts b/types/react-icons/lib/md/copyright.d.ts new file mode 100644 index 0000000000..d786505dc9 --- /dev/null +++ b/types/react-icons/lib/md/copyright.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCopyright extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/create-new-folder.d.ts b/types/react-icons/lib/md/create-new-folder.d.ts new file mode 100644 index 0000000000..5f81f01bff --- /dev/null +++ b/types/react-icons/lib/md/create-new-folder.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCreateNewFolder extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/create.d.ts b/types/react-icons/lib/md/create.d.ts new file mode 100644 index 0000000000..75c2871644 --- /dev/null +++ b/types/react-icons/lib/md/create.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCreate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/credit-card.d.ts b/types/react-icons/lib/md/credit-card.d.ts new file mode 100644 index 0000000000..9515c900d0 --- /dev/null +++ b/types/react-icons/lib/md/credit-card.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCreditCard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/crop-16-9.d.ts b/types/react-icons/lib/md/crop-16-9.d.ts new file mode 100644 index 0000000000..d507bc9db9 --- /dev/null +++ b/types/react-icons/lib/md/crop-16-9.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCrop169 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/crop-3-2.d.ts b/types/react-icons/lib/md/crop-3-2.d.ts new file mode 100644 index 0000000000..461cf07b2d --- /dev/null +++ b/types/react-icons/lib/md/crop-3-2.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCrop32 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/crop-5-4.d.ts b/types/react-icons/lib/md/crop-5-4.d.ts new file mode 100644 index 0000000000..4b0cb6c7fb --- /dev/null +++ b/types/react-icons/lib/md/crop-5-4.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCrop54 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/crop-7-5.d.ts b/types/react-icons/lib/md/crop-7-5.d.ts new file mode 100644 index 0000000000..9063520b57 --- /dev/null +++ b/types/react-icons/lib/md/crop-7-5.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCrop75 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/crop-din.d.ts b/types/react-icons/lib/md/crop-din.d.ts new file mode 100644 index 0000000000..115106ef50 --- /dev/null +++ b/types/react-icons/lib/md/crop-din.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCropDin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/crop-free.d.ts b/types/react-icons/lib/md/crop-free.d.ts new file mode 100644 index 0000000000..e68c930ff9 --- /dev/null +++ b/types/react-icons/lib/md/crop-free.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCropFree extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/crop-landscape.d.ts b/types/react-icons/lib/md/crop-landscape.d.ts new file mode 100644 index 0000000000..5ef2f2e4dd --- /dev/null +++ b/types/react-icons/lib/md/crop-landscape.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCropLandscape extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/crop-original.d.ts b/types/react-icons/lib/md/crop-original.d.ts new file mode 100644 index 0000000000..26733dc24e --- /dev/null +++ b/types/react-icons/lib/md/crop-original.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCropOriginal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/crop-portrait.d.ts b/types/react-icons/lib/md/crop-portrait.d.ts new file mode 100644 index 0000000000..9a43790ec0 --- /dev/null +++ b/types/react-icons/lib/md/crop-portrait.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCropPortrait extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/crop-rotate.d.ts b/types/react-icons/lib/md/crop-rotate.d.ts new file mode 100644 index 0000000000..7106d1b55b --- /dev/null +++ b/types/react-icons/lib/md/crop-rotate.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCropRotate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/crop-square.d.ts b/types/react-icons/lib/md/crop-square.d.ts new file mode 100644 index 0000000000..62ba826cfc --- /dev/null +++ b/types/react-icons/lib/md/crop-square.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCropSquare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/crop.d.ts b/types/react-icons/lib/md/crop.d.ts new file mode 100644 index 0000000000..dfd01a2ad8 --- /dev/null +++ b/types/react-icons/lib/md/crop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdCrop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/dashboard.d.ts b/types/react-icons/lib/md/dashboard.d.ts new file mode 100644 index 0000000000..47f85672c9 --- /dev/null +++ b/types/react-icons/lib/md/dashboard.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDashboard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/data-usage.d.ts b/types/react-icons/lib/md/data-usage.d.ts new file mode 100644 index 0000000000..013f33ad67 --- /dev/null +++ b/types/react-icons/lib/md/data-usage.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDataUsage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/date-range.d.ts b/types/react-icons/lib/md/date-range.d.ts new file mode 100644 index 0000000000..a9fc01751f --- /dev/null +++ b/types/react-icons/lib/md/date-range.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDateRange extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/dehaze.d.ts b/types/react-icons/lib/md/dehaze.d.ts new file mode 100644 index 0000000000..9144d9822f --- /dev/null +++ b/types/react-icons/lib/md/dehaze.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDehaze extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/delete-forever.d.ts b/types/react-icons/lib/md/delete-forever.d.ts new file mode 100644 index 0000000000..9820c93b1a --- /dev/null +++ b/types/react-icons/lib/md/delete-forever.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDeleteForever extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/delete-sweep.d.ts b/types/react-icons/lib/md/delete-sweep.d.ts new file mode 100644 index 0000000000..965ce9c746 --- /dev/null +++ b/types/react-icons/lib/md/delete-sweep.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDeleteSweep extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/delete.d.ts b/types/react-icons/lib/md/delete.d.ts new file mode 100644 index 0000000000..f47a4b0a59 --- /dev/null +++ b/types/react-icons/lib/md/delete.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDelete extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/description.d.ts b/types/react-icons/lib/md/description.d.ts new file mode 100644 index 0000000000..76bc0bbf1c --- /dev/null +++ b/types/react-icons/lib/md/description.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDescription extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/desktop-mac.d.ts b/types/react-icons/lib/md/desktop-mac.d.ts new file mode 100644 index 0000000000..007f0a5ae1 --- /dev/null +++ b/types/react-icons/lib/md/desktop-mac.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDesktopMac extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/desktop-windows.d.ts b/types/react-icons/lib/md/desktop-windows.d.ts new file mode 100644 index 0000000000..e735a11f72 --- /dev/null +++ b/types/react-icons/lib/md/desktop-windows.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDesktopWindows extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/details.d.ts b/types/react-icons/lib/md/details.d.ts new file mode 100644 index 0000000000..86ec926d65 --- /dev/null +++ b/types/react-icons/lib/md/details.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDetails extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/developer-board.d.ts b/types/react-icons/lib/md/developer-board.d.ts new file mode 100644 index 0000000000..a3ad5d5b89 --- /dev/null +++ b/types/react-icons/lib/md/developer-board.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDeveloperBoard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/developer-mode.d.ts b/types/react-icons/lib/md/developer-mode.d.ts new file mode 100644 index 0000000000..f2032d8e74 --- /dev/null +++ b/types/react-icons/lib/md/developer-mode.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDeveloperMode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/device-hub.d.ts b/types/react-icons/lib/md/device-hub.d.ts new file mode 100644 index 0000000000..38815bce4d --- /dev/null +++ b/types/react-icons/lib/md/device-hub.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDeviceHub extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/devices-other.d.ts b/types/react-icons/lib/md/devices-other.d.ts new file mode 100644 index 0000000000..69ed6d847d --- /dev/null +++ b/types/react-icons/lib/md/devices-other.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDevicesOther extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/devices.d.ts b/types/react-icons/lib/md/devices.d.ts new file mode 100644 index 0000000000..00163cbb71 --- /dev/null +++ b/types/react-icons/lib/md/devices.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDevices extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/dialer-sip.d.ts b/types/react-icons/lib/md/dialer-sip.d.ts new file mode 100644 index 0000000000..ba4ade0a30 --- /dev/null +++ b/types/react-icons/lib/md/dialer-sip.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDialerSip extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/dialpad.d.ts b/types/react-icons/lib/md/dialpad.d.ts new file mode 100644 index 0000000000..3d74b7ce08 --- /dev/null +++ b/types/react-icons/lib/md/dialpad.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDialpad extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/directions-bike.d.ts b/types/react-icons/lib/md/directions-bike.d.ts new file mode 100644 index 0000000000..3ff5b576f2 --- /dev/null +++ b/types/react-icons/lib/md/directions-bike.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDirectionsBike extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/directions-boat.d.ts b/types/react-icons/lib/md/directions-boat.d.ts new file mode 100644 index 0000000000..29cb6f9727 --- /dev/null +++ b/types/react-icons/lib/md/directions-boat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDirectionsBoat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/directions-bus.d.ts b/types/react-icons/lib/md/directions-bus.d.ts new file mode 100644 index 0000000000..12964dd1bf --- /dev/null +++ b/types/react-icons/lib/md/directions-bus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDirectionsBus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/directions-car.d.ts b/types/react-icons/lib/md/directions-car.d.ts new file mode 100644 index 0000000000..0055e4a7e9 --- /dev/null +++ b/types/react-icons/lib/md/directions-car.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDirectionsCar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/directions-ferry.d.ts b/types/react-icons/lib/md/directions-ferry.d.ts new file mode 100644 index 0000000000..fa5f376ab4 --- /dev/null +++ b/types/react-icons/lib/md/directions-ferry.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDirectionsFerry extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/directions-railway.d.ts b/types/react-icons/lib/md/directions-railway.d.ts new file mode 100644 index 0000000000..ee241e2f78 --- /dev/null +++ b/types/react-icons/lib/md/directions-railway.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDirectionsRailway extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/directions-run.d.ts b/types/react-icons/lib/md/directions-run.d.ts new file mode 100644 index 0000000000..65fabf028c --- /dev/null +++ b/types/react-icons/lib/md/directions-run.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDirectionsRun extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/directions-subway.d.ts b/types/react-icons/lib/md/directions-subway.d.ts new file mode 100644 index 0000000000..d97b4fd1e2 --- /dev/null +++ b/types/react-icons/lib/md/directions-subway.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDirectionsSubway extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/directions-transit.d.ts b/types/react-icons/lib/md/directions-transit.d.ts new file mode 100644 index 0000000000..0016d21dd1 --- /dev/null +++ b/types/react-icons/lib/md/directions-transit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDirectionsTransit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/directions-walk.d.ts b/types/react-icons/lib/md/directions-walk.d.ts new file mode 100644 index 0000000000..5f02d00296 --- /dev/null +++ b/types/react-icons/lib/md/directions-walk.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDirectionsWalk extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/directions.d.ts b/types/react-icons/lib/md/directions.d.ts new file mode 100644 index 0000000000..14a1dded8e --- /dev/null +++ b/types/react-icons/lib/md/directions.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDirections extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/disc-full.d.ts b/types/react-icons/lib/md/disc-full.d.ts new file mode 100644 index 0000000000..f23e47b0bd --- /dev/null +++ b/types/react-icons/lib/md/disc-full.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDiscFull extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/dns.d.ts b/types/react-icons/lib/md/dns.d.ts new file mode 100644 index 0000000000..42a3e45b84 --- /dev/null +++ b/types/react-icons/lib/md/dns.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDns extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/do-not-disturb-alt.d.ts b/types/react-icons/lib/md/do-not-disturb-alt.d.ts new file mode 100644 index 0000000000..6bad8e0875 --- /dev/null +++ b/types/react-icons/lib/md/do-not-disturb-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDoNotDisturbAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/do-not-disturb-off.d.ts b/types/react-icons/lib/md/do-not-disturb-off.d.ts new file mode 100644 index 0000000000..bcbe409363 --- /dev/null +++ b/types/react-icons/lib/md/do-not-disturb-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDoNotDisturbOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/do-not-disturb.d.ts b/types/react-icons/lib/md/do-not-disturb.d.ts new file mode 100644 index 0000000000..bb19ff2e39 --- /dev/null +++ b/types/react-icons/lib/md/do-not-disturb.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDoNotDisturb extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/dock.d.ts b/types/react-icons/lib/md/dock.d.ts new file mode 100644 index 0000000000..3de11f01a5 --- /dev/null +++ b/types/react-icons/lib/md/dock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/domain.d.ts b/types/react-icons/lib/md/domain.d.ts new file mode 100644 index 0000000000..c9586ff2b5 --- /dev/null +++ b/types/react-icons/lib/md/domain.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDomain extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/done-all.d.ts b/types/react-icons/lib/md/done-all.d.ts new file mode 100644 index 0000000000..41e8241fcc --- /dev/null +++ b/types/react-icons/lib/md/done-all.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDoneAll extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/done.d.ts b/types/react-icons/lib/md/done.d.ts new file mode 100644 index 0000000000..977bc177a5 --- /dev/null +++ b/types/react-icons/lib/md/done.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/donut-large.d.ts b/types/react-icons/lib/md/donut-large.d.ts new file mode 100644 index 0000000000..01422e1fa5 --- /dev/null +++ b/types/react-icons/lib/md/donut-large.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDonutLarge extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/donut-small.d.ts b/types/react-icons/lib/md/donut-small.d.ts new file mode 100644 index 0000000000..7475720575 --- /dev/null +++ b/types/react-icons/lib/md/donut-small.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDonutSmall extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/drafts.d.ts b/types/react-icons/lib/md/drafts.d.ts new file mode 100644 index 0000000000..3a3af21927 --- /dev/null +++ b/types/react-icons/lib/md/drafts.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDrafts extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/drag-handle.d.ts b/types/react-icons/lib/md/drag-handle.d.ts new file mode 100644 index 0000000000..80ae3229cd --- /dev/null +++ b/types/react-icons/lib/md/drag-handle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDragHandle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/drive-eta.d.ts b/types/react-icons/lib/md/drive-eta.d.ts new file mode 100644 index 0000000000..6cecfe8799 --- /dev/null +++ b/types/react-icons/lib/md/drive-eta.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDriveEta extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/dvr.d.ts b/types/react-icons/lib/md/dvr.d.ts new file mode 100644 index 0000000000..c9d3aa8ce5 --- /dev/null +++ b/types/react-icons/lib/md/dvr.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdDvr extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/edit-location.d.ts b/types/react-icons/lib/md/edit-location.d.ts new file mode 100644 index 0000000000..d6e3e2bfb7 --- /dev/null +++ b/types/react-icons/lib/md/edit-location.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdEditLocation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/edit.d.ts b/types/react-icons/lib/md/edit.d.ts new file mode 100644 index 0000000000..aaa97a382a --- /dev/null +++ b/types/react-icons/lib/md/edit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdEdit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/eject.d.ts b/types/react-icons/lib/md/eject.d.ts new file mode 100644 index 0000000000..87c366fef5 --- /dev/null +++ b/types/react-icons/lib/md/eject.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdEject extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/email.d.ts b/types/react-icons/lib/md/email.d.ts new file mode 100644 index 0000000000..1c8b5247ee --- /dev/null +++ b/types/react-icons/lib/md/email.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdEmail extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/enhanced-encryption.d.ts b/types/react-icons/lib/md/enhanced-encryption.d.ts new file mode 100644 index 0000000000..be651f5c94 --- /dev/null +++ b/types/react-icons/lib/md/enhanced-encryption.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdEnhancedEncryption extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/equalizer.d.ts b/types/react-icons/lib/md/equalizer.d.ts new file mode 100644 index 0000000000..ab7a2f20f9 --- /dev/null +++ b/types/react-icons/lib/md/equalizer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdEqualizer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/error-outline.d.ts b/types/react-icons/lib/md/error-outline.d.ts new file mode 100644 index 0000000000..0d8a6051a9 --- /dev/null +++ b/types/react-icons/lib/md/error-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdErrorOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/error.d.ts b/types/react-icons/lib/md/error.d.ts new file mode 100644 index 0000000000..c5b9fc8e71 --- /dev/null +++ b/types/react-icons/lib/md/error.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdError extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/euro-symbol.d.ts b/types/react-icons/lib/md/euro-symbol.d.ts new file mode 100644 index 0000000000..1e5b262514 --- /dev/null +++ b/types/react-icons/lib/md/euro-symbol.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdEuroSymbol extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/ev-station.d.ts b/types/react-icons/lib/md/ev-station.d.ts new file mode 100644 index 0000000000..4254fe1ebf --- /dev/null +++ b/types/react-icons/lib/md/ev-station.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdEvStation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/event-available.d.ts b/types/react-icons/lib/md/event-available.d.ts new file mode 100644 index 0000000000..30722d5a81 --- /dev/null +++ b/types/react-icons/lib/md/event-available.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdEventAvailable extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/event-busy.d.ts b/types/react-icons/lib/md/event-busy.d.ts new file mode 100644 index 0000000000..6659755bbf --- /dev/null +++ b/types/react-icons/lib/md/event-busy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdEventBusy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/event-note.d.ts b/types/react-icons/lib/md/event-note.d.ts new file mode 100644 index 0000000000..fb3c3b0279 --- /dev/null +++ b/types/react-icons/lib/md/event-note.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdEventNote extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/event-seat.d.ts b/types/react-icons/lib/md/event-seat.d.ts new file mode 100644 index 0000000000..53c6fd7c85 --- /dev/null +++ b/types/react-icons/lib/md/event-seat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdEventSeat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/event.d.ts b/types/react-icons/lib/md/event.d.ts new file mode 100644 index 0000000000..a5bba2458a --- /dev/null +++ b/types/react-icons/lib/md/event.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdEvent extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/exit-to-app.d.ts b/types/react-icons/lib/md/exit-to-app.d.ts new file mode 100644 index 0000000000..1c12dfc4b7 --- /dev/null +++ b/types/react-icons/lib/md/exit-to-app.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExitToApp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/expand-less.d.ts b/types/react-icons/lib/md/expand-less.d.ts new file mode 100644 index 0000000000..766bf8886e --- /dev/null +++ b/types/react-icons/lib/md/expand-less.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExpandLess extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/expand-more.d.ts b/types/react-icons/lib/md/expand-more.d.ts new file mode 100644 index 0000000000..bef62424b7 --- /dev/null +++ b/types/react-icons/lib/md/expand-more.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExpandMore extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/explicit.d.ts b/types/react-icons/lib/md/explicit.d.ts new file mode 100644 index 0000000000..b10026c0af --- /dev/null +++ b/types/react-icons/lib/md/explicit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExplicit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/explore.d.ts b/types/react-icons/lib/md/explore.d.ts new file mode 100644 index 0000000000..79180f608d --- /dev/null +++ b/types/react-icons/lib/md/explore.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExplore extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/exposure-minus-1.d.ts b/types/react-icons/lib/md/exposure-minus-1.d.ts new file mode 100644 index 0000000000..f0c9222b4e --- /dev/null +++ b/types/react-icons/lib/md/exposure-minus-1.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExposureMinus1 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/exposure-minus-2.d.ts b/types/react-icons/lib/md/exposure-minus-2.d.ts new file mode 100644 index 0000000000..7b70926bf1 --- /dev/null +++ b/types/react-icons/lib/md/exposure-minus-2.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExposureMinus2 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/exposure-neg-1.d.ts b/types/react-icons/lib/md/exposure-neg-1.d.ts new file mode 100644 index 0000000000..136e8abf0e --- /dev/null +++ b/types/react-icons/lib/md/exposure-neg-1.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExposureNeg1 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/exposure-neg-2.d.ts b/types/react-icons/lib/md/exposure-neg-2.d.ts new file mode 100644 index 0000000000..ceec854625 --- /dev/null +++ b/types/react-icons/lib/md/exposure-neg-2.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExposureNeg2 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/exposure-plus-1.d.ts b/types/react-icons/lib/md/exposure-plus-1.d.ts new file mode 100644 index 0000000000..fbb81879c2 --- /dev/null +++ b/types/react-icons/lib/md/exposure-plus-1.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExposurePlus1 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/exposure-plus-2.d.ts b/types/react-icons/lib/md/exposure-plus-2.d.ts new file mode 100644 index 0000000000..d22a7d3123 --- /dev/null +++ b/types/react-icons/lib/md/exposure-plus-2.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExposurePlus2 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/exposure-zero.d.ts b/types/react-icons/lib/md/exposure-zero.d.ts new file mode 100644 index 0000000000..27125daa24 --- /dev/null +++ b/types/react-icons/lib/md/exposure-zero.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExposureZero extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/exposure.d.ts b/types/react-icons/lib/md/exposure.d.ts new file mode 100644 index 0000000000..1d04f364e0 --- /dev/null +++ b/types/react-icons/lib/md/exposure.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExposure extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/extension.d.ts b/types/react-icons/lib/md/extension.d.ts new file mode 100644 index 0000000000..bfb10535b0 --- /dev/null +++ b/types/react-icons/lib/md/extension.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdExtension extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/face.d.ts b/types/react-icons/lib/md/face.d.ts new file mode 100644 index 0000000000..e8042f0b48 --- /dev/null +++ b/types/react-icons/lib/md/face.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFace extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/fast-forward.d.ts b/types/react-icons/lib/md/fast-forward.d.ts new file mode 100644 index 0000000000..3daeacb97a --- /dev/null +++ b/types/react-icons/lib/md/fast-forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFastForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/fast-rewind.d.ts b/types/react-icons/lib/md/fast-rewind.d.ts new file mode 100644 index 0000000000..5b34d9c3a6 --- /dev/null +++ b/types/react-icons/lib/md/fast-rewind.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFastRewind extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/favorite-border.d.ts b/types/react-icons/lib/md/favorite-border.d.ts new file mode 100644 index 0000000000..cd66fdc7e2 --- /dev/null +++ b/types/react-icons/lib/md/favorite-border.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFavoriteBorder extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/favorite-outline.d.ts b/types/react-icons/lib/md/favorite-outline.d.ts new file mode 100644 index 0000000000..7b1df113ba --- /dev/null +++ b/types/react-icons/lib/md/favorite-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFavoriteOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/favorite.d.ts b/types/react-icons/lib/md/favorite.d.ts new file mode 100644 index 0000000000..84959194f9 --- /dev/null +++ b/types/react-icons/lib/md/favorite.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFavorite extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/featured-play-list.d.ts b/types/react-icons/lib/md/featured-play-list.d.ts new file mode 100644 index 0000000000..b8a4685778 --- /dev/null +++ b/types/react-icons/lib/md/featured-play-list.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFeaturedPlayList extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/featured-video.d.ts b/types/react-icons/lib/md/featured-video.d.ts new file mode 100644 index 0000000000..67aa6eb9c5 --- /dev/null +++ b/types/react-icons/lib/md/featured-video.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFeaturedVideo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/feedback.d.ts b/types/react-icons/lib/md/feedback.d.ts new file mode 100644 index 0000000000..b69aff1e22 --- /dev/null +++ b/types/react-icons/lib/md/feedback.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFeedback extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/fiber-dvr.d.ts b/types/react-icons/lib/md/fiber-dvr.d.ts new file mode 100644 index 0000000000..f8c841d7b0 --- /dev/null +++ b/types/react-icons/lib/md/fiber-dvr.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFiberDvr extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/fiber-manual-record.d.ts b/types/react-icons/lib/md/fiber-manual-record.d.ts new file mode 100644 index 0000000000..886e58432d --- /dev/null +++ b/types/react-icons/lib/md/fiber-manual-record.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFiberManualRecord extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/fiber-new.d.ts b/types/react-icons/lib/md/fiber-new.d.ts new file mode 100644 index 0000000000..239b7541af --- /dev/null +++ b/types/react-icons/lib/md/fiber-new.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFiberNew extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/fiber-pin.d.ts b/types/react-icons/lib/md/fiber-pin.d.ts new file mode 100644 index 0000000000..327b456570 --- /dev/null +++ b/types/react-icons/lib/md/fiber-pin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFiberPin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/fiber-smart-record.d.ts b/types/react-icons/lib/md/fiber-smart-record.d.ts new file mode 100644 index 0000000000..0054c9fff7 --- /dev/null +++ b/types/react-icons/lib/md/fiber-smart-record.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFiberSmartRecord extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/file-download.d.ts b/types/react-icons/lib/md/file-download.d.ts new file mode 100644 index 0000000000..7874143a50 --- /dev/null +++ b/types/react-icons/lib/md/file-download.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFileDownload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/file-upload.d.ts b/types/react-icons/lib/md/file-upload.d.ts new file mode 100644 index 0000000000..96d2742e3c --- /dev/null +++ b/types/react-icons/lib/md/file-upload.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFileUpload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-1.d.ts b/types/react-icons/lib/md/filter-1.d.ts new file mode 100644 index 0000000000..0eab79f7ff --- /dev/null +++ b/types/react-icons/lib/md/filter-1.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilter1 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-2.d.ts b/types/react-icons/lib/md/filter-2.d.ts new file mode 100644 index 0000000000..7c2ee2aa23 --- /dev/null +++ b/types/react-icons/lib/md/filter-2.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilter2 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-3.d.ts b/types/react-icons/lib/md/filter-3.d.ts new file mode 100644 index 0000000000..3378d361ba --- /dev/null +++ b/types/react-icons/lib/md/filter-3.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilter3 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-4.d.ts b/types/react-icons/lib/md/filter-4.d.ts new file mode 100644 index 0000000000..9c781a3957 --- /dev/null +++ b/types/react-icons/lib/md/filter-4.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilter4 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-5.d.ts b/types/react-icons/lib/md/filter-5.d.ts new file mode 100644 index 0000000000..0231749f2e --- /dev/null +++ b/types/react-icons/lib/md/filter-5.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilter5 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-6.d.ts b/types/react-icons/lib/md/filter-6.d.ts new file mode 100644 index 0000000000..2aa32d48cd --- /dev/null +++ b/types/react-icons/lib/md/filter-6.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilter6 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-7.d.ts b/types/react-icons/lib/md/filter-7.d.ts new file mode 100644 index 0000000000..3a130313a7 --- /dev/null +++ b/types/react-icons/lib/md/filter-7.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilter7 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-8.d.ts b/types/react-icons/lib/md/filter-8.d.ts new file mode 100644 index 0000000000..bd2690c793 --- /dev/null +++ b/types/react-icons/lib/md/filter-8.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilter8 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-9-plus.d.ts b/types/react-icons/lib/md/filter-9-plus.d.ts new file mode 100644 index 0000000000..6e11758f2e --- /dev/null +++ b/types/react-icons/lib/md/filter-9-plus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilter9Plus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-9.d.ts b/types/react-icons/lib/md/filter-9.d.ts new file mode 100644 index 0000000000..b4971c93f9 --- /dev/null +++ b/types/react-icons/lib/md/filter-9.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilter9 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-b-and-w.d.ts b/types/react-icons/lib/md/filter-b-and-w.d.ts new file mode 100644 index 0000000000..327d166bae --- /dev/null +++ b/types/react-icons/lib/md/filter-b-and-w.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilterBAndW extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-center-focus.d.ts b/types/react-icons/lib/md/filter-center-focus.d.ts new file mode 100644 index 0000000000..6001fc45a8 --- /dev/null +++ b/types/react-icons/lib/md/filter-center-focus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilterCenterFocus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-drama.d.ts b/types/react-icons/lib/md/filter-drama.d.ts new file mode 100644 index 0000000000..982c0518d9 --- /dev/null +++ b/types/react-icons/lib/md/filter-drama.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilterDrama extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-frames.d.ts b/types/react-icons/lib/md/filter-frames.d.ts new file mode 100644 index 0000000000..daef1b137f --- /dev/null +++ b/types/react-icons/lib/md/filter-frames.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilterFrames extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-hdr.d.ts b/types/react-icons/lib/md/filter-hdr.d.ts new file mode 100644 index 0000000000..997614833c --- /dev/null +++ b/types/react-icons/lib/md/filter-hdr.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilterHdr extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-list.d.ts b/types/react-icons/lib/md/filter-list.d.ts new file mode 100644 index 0000000000..546734dff6 --- /dev/null +++ b/types/react-icons/lib/md/filter-list.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilterList extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-none.d.ts b/types/react-icons/lib/md/filter-none.d.ts new file mode 100644 index 0000000000..2e160324d8 --- /dev/null +++ b/types/react-icons/lib/md/filter-none.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilterNone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-tilt-shift.d.ts b/types/react-icons/lib/md/filter-tilt-shift.d.ts new file mode 100644 index 0000000000..0e68c95a0a --- /dev/null +++ b/types/react-icons/lib/md/filter-tilt-shift.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilterTiltShift extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter-vintage.d.ts b/types/react-icons/lib/md/filter-vintage.d.ts new file mode 100644 index 0000000000..af1243b86d --- /dev/null +++ b/types/react-icons/lib/md/filter-vintage.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilterVintage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/filter.d.ts b/types/react-icons/lib/md/filter.d.ts new file mode 100644 index 0000000000..30fd120a11 --- /dev/null +++ b/types/react-icons/lib/md/filter.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFilter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/find-in-page.d.ts b/types/react-icons/lib/md/find-in-page.d.ts new file mode 100644 index 0000000000..3dbb98ad7d --- /dev/null +++ b/types/react-icons/lib/md/find-in-page.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFindInPage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/find-replace.d.ts b/types/react-icons/lib/md/find-replace.d.ts new file mode 100644 index 0000000000..0a066acf85 --- /dev/null +++ b/types/react-icons/lib/md/find-replace.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFindReplace extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/fingerprint.d.ts b/types/react-icons/lib/md/fingerprint.d.ts new file mode 100644 index 0000000000..1db6d8d427 --- /dev/null +++ b/types/react-icons/lib/md/fingerprint.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFingerprint extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/first-page.d.ts b/types/react-icons/lib/md/first-page.d.ts new file mode 100644 index 0000000000..95576cd1a2 --- /dev/null +++ b/types/react-icons/lib/md/first-page.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFirstPage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/fitness-center.d.ts b/types/react-icons/lib/md/fitness-center.d.ts new file mode 100644 index 0000000000..5874b3c1b7 --- /dev/null +++ b/types/react-icons/lib/md/fitness-center.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFitnessCenter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/flag.d.ts b/types/react-icons/lib/md/flag.d.ts new file mode 100644 index 0000000000..5767d894db --- /dev/null +++ b/types/react-icons/lib/md/flag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFlag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/flare.d.ts b/types/react-icons/lib/md/flare.d.ts new file mode 100644 index 0000000000..68715b9a9d --- /dev/null +++ b/types/react-icons/lib/md/flare.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFlare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/flash-auto.d.ts b/types/react-icons/lib/md/flash-auto.d.ts new file mode 100644 index 0000000000..e119dc247b --- /dev/null +++ b/types/react-icons/lib/md/flash-auto.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFlashAuto extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/flash-off.d.ts b/types/react-icons/lib/md/flash-off.d.ts new file mode 100644 index 0000000000..fceeadc93a --- /dev/null +++ b/types/react-icons/lib/md/flash-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFlashOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/flash-on.d.ts b/types/react-icons/lib/md/flash-on.d.ts new file mode 100644 index 0000000000..8fcec401bc --- /dev/null +++ b/types/react-icons/lib/md/flash-on.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFlashOn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/flight-land.d.ts b/types/react-icons/lib/md/flight-land.d.ts new file mode 100644 index 0000000000..f0571c691c --- /dev/null +++ b/types/react-icons/lib/md/flight-land.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFlightLand extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/flight-takeoff.d.ts b/types/react-icons/lib/md/flight-takeoff.d.ts new file mode 100644 index 0000000000..c22f43d504 --- /dev/null +++ b/types/react-icons/lib/md/flight-takeoff.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFlightTakeoff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/flight.d.ts b/types/react-icons/lib/md/flight.d.ts new file mode 100644 index 0000000000..da17781711 --- /dev/null +++ b/types/react-icons/lib/md/flight.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFlight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/flip-to-back.d.ts b/types/react-icons/lib/md/flip-to-back.d.ts new file mode 100644 index 0000000000..a5d426d353 --- /dev/null +++ b/types/react-icons/lib/md/flip-to-back.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFlipToBack extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/flip-to-front.d.ts b/types/react-icons/lib/md/flip-to-front.d.ts new file mode 100644 index 0000000000..480c1d3466 --- /dev/null +++ b/types/react-icons/lib/md/flip-to-front.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFlipToFront extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/flip.d.ts b/types/react-icons/lib/md/flip.d.ts new file mode 100644 index 0000000000..990872e643 --- /dev/null +++ b/types/react-icons/lib/md/flip.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFlip extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/folder-open.d.ts b/types/react-icons/lib/md/folder-open.d.ts new file mode 100644 index 0000000000..813a57abba --- /dev/null +++ b/types/react-icons/lib/md/folder-open.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFolderOpen extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/folder-shared.d.ts b/types/react-icons/lib/md/folder-shared.d.ts new file mode 100644 index 0000000000..a1734b4440 --- /dev/null +++ b/types/react-icons/lib/md/folder-shared.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFolderShared extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/folder-special.d.ts b/types/react-icons/lib/md/folder-special.d.ts new file mode 100644 index 0000000000..ee62be51ce --- /dev/null +++ b/types/react-icons/lib/md/folder-special.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFolderSpecial extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/folder.d.ts b/types/react-icons/lib/md/folder.d.ts new file mode 100644 index 0000000000..efde8117c4 --- /dev/null +++ b/types/react-icons/lib/md/folder.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFolder extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/font-download.d.ts b/types/react-icons/lib/md/font-download.d.ts new file mode 100644 index 0000000000..61c3368b45 --- /dev/null +++ b/types/react-icons/lib/md/font-download.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFontDownload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-align-center.d.ts b/types/react-icons/lib/md/format-align-center.d.ts new file mode 100644 index 0000000000..e601b4115d --- /dev/null +++ b/types/react-icons/lib/md/format-align-center.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatAlignCenter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-align-justify.d.ts b/types/react-icons/lib/md/format-align-justify.d.ts new file mode 100644 index 0000000000..a35ccd43cf --- /dev/null +++ b/types/react-icons/lib/md/format-align-justify.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatAlignJustify extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-align-left.d.ts b/types/react-icons/lib/md/format-align-left.d.ts new file mode 100644 index 0000000000..45443b3013 --- /dev/null +++ b/types/react-icons/lib/md/format-align-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatAlignLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-align-right.d.ts b/types/react-icons/lib/md/format-align-right.d.ts new file mode 100644 index 0000000000..4c965ed516 --- /dev/null +++ b/types/react-icons/lib/md/format-align-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatAlignRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-bold.d.ts b/types/react-icons/lib/md/format-bold.d.ts new file mode 100644 index 0000000000..45c6764995 --- /dev/null +++ b/types/react-icons/lib/md/format-bold.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatBold extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-clear.d.ts b/types/react-icons/lib/md/format-clear.d.ts new file mode 100644 index 0000000000..b60b1f0d1c --- /dev/null +++ b/types/react-icons/lib/md/format-clear.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatClear extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-color-fill.d.ts b/types/react-icons/lib/md/format-color-fill.d.ts new file mode 100644 index 0000000000..c3a17b53ff --- /dev/null +++ b/types/react-icons/lib/md/format-color-fill.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatColorFill extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-color-reset.d.ts b/types/react-icons/lib/md/format-color-reset.d.ts new file mode 100644 index 0000000000..399c41d77e --- /dev/null +++ b/types/react-icons/lib/md/format-color-reset.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatColorReset extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-color-text.d.ts b/types/react-icons/lib/md/format-color-text.d.ts new file mode 100644 index 0000000000..1a332ab22a --- /dev/null +++ b/types/react-icons/lib/md/format-color-text.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatColorText extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-indent-decrease.d.ts b/types/react-icons/lib/md/format-indent-decrease.d.ts new file mode 100644 index 0000000000..a89c15275d --- /dev/null +++ b/types/react-icons/lib/md/format-indent-decrease.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatIndentDecrease extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-indent-increase.d.ts b/types/react-icons/lib/md/format-indent-increase.d.ts new file mode 100644 index 0000000000..8b2d098b69 --- /dev/null +++ b/types/react-icons/lib/md/format-indent-increase.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatIndentIncrease extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-italic.d.ts b/types/react-icons/lib/md/format-italic.d.ts new file mode 100644 index 0000000000..bbc7df9a3f --- /dev/null +++ b/types/react-icons/lib/md/format-italic.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatItalic extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-line-spacing.d.ts b/types/react-icons/lib/md/format-line-spacing.d.ts new file mode 100644 index 0000000000..3731147921 --- /dev/null +++ b/types/react-icons/lib/md/format-line-spacing.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatLineSpacing extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-list-bulleted.d.ts b/types/react-icons/lib/md/format-list-bulleted.d.ts new file mode 100644 index 0000000000..6813d2e4a4 --- /dev/null +++ b/types/react-icons/lib/md/format-list-bulleted.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatListBulleted extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-list-numbered.d.ts b/types/react-icons/lib/md/format-list-numbered.d.ts new file mode 100644 index 0000000000..8c241c413f --- /dev/null +++ b/types/react-icons/lib/md/format-list-numbered.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatListNumbered extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-paint.d.ts b/types/react-icons/lib/md/format-paint.d.ts new file mode 100644 index 0000000000..ebbc520c32 --- /dev/null +++ b/types/react-icons/lib/md/format-paint.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatPaint extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-quote.d.ts b/types/react-icons/lib/md/format-quote.d.ts new file mode 100644 index 0000000000..bd1037ab81 --- /dev/null +++ b/types/react-icons/lib/md/format-quote.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatQuote extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-shapes.d.ts b/types/react-icons/lib/md/format-shapes.d.ts new file mode 100644 index 0000000000..c40f7411dd --- /dev/null +++ b/types/react-icons/lib/md/format-shapes.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatShapes extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-size.d.ts b/types/react-icons/lib/md/format-size.d.ts new file mode 100644 index 0000000000..2a9e345a3e --- /dev/null +++ b/types/react-icons/lib/md/format-size.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatSize extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-strikethrough.d.ts b/types/react-icons/lib/md/format-strikethrough.d.ts new file mode 100644 index 0000000000..fe36f12771 --- /dev/null +++ b/types/react-icons/lib/md/format-strikethrough.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatStrikethrough extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-textdirection-l-to-r.d.ts b/types/react-icons/lib/md/format-textdirection-l-to-r.d.ts new file mode 100644 index 0000000000..71b083148c --- /dev/null +++ b/types/react-icons/lib/md/format-textdirection-l-to-r.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatTextdirectionLToR extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-textdirection-r-to-l.d.ts b/types/react-icons/lib/md/format-textdirection-r-to-l.d.ts new file mode 100644 index 0000000000..58086109e0 --- /dev/null +++ b/types/react-icons/lib/md/format-textdirection-r-to-l.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatTextdirectionRToL extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/format-underlined.d.ts b/types/react-icons/lib/md/format-underlined.d.ts new file mode 100644 index 0000000000..126df5e540 --- /dev/null +++ b/types/react-icons/lib/md/format-underlined.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFormatUnderlined extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/forum.d.ts b/types/react-icons/lib/md/forum.d.ts new file mode 100644 index 0000000000..b7bdc2c096 --- /dev/null +++ b/types/react-icons/lib/md/forum.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdForum extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/forward-10.d.ts b/types/react-icons/lib/md/forward-10.d.ts new file mode 100644 index 0000000000..295d4e89f1 --- /dev/null +++ b/types/react-icons/lib/md/forward-10.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdForward10 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/forward-30.d.ts b/types/react-icons/lib/md/forward-30.d.ts new file mode 100644 index 0000000000..060517c358 --- /dev/null +++ b/types/react-icons/lib/md/forward-30.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdForward30 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/forward-5.d.ts b/types/react-icons/lib/md/forward-5.d.ts new file mode 100644 index 0000000000..bab1bcea70 --- /dev/null +++ b/types/react-icons/lib/md/forward-5.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdForward5 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/forward.d.ts b/types/react-icons/lib/md/forward.d.ts new file mode 100644 index 0000000000..5a3c89125d --- /dev/null +++ b/types/react-icons/lib/md/forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/free-breakfast.d.ts b/types/react-icons/lib/md/free-breakfast.d.ts new file mode 100644 index 0000000000..362b7036e4 --- /dev/null +++ b/types/react-icons/lib/md/free-breakfast.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFreeBreakfast extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/fullscreen-exit.d.ts b/types/react-icons/lib/md/fullscreen-exit.d.ts new file mode 100644 index 0000000000..0a1e720dc6 --- /dev/null +++ b/types/react-icons/lib/md/fullscreen-exit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFullscreenExit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/fullscreen.d.ts b/types/react-icons/lib/md/fullscreen.d.ts new file mode 100644 index 0000000000..a31a4e460b --- /dev/null +++ b/types/react-icons/lib/md/fullscreen.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFullscreen extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/functions.d.ts b/types/react-icons/lib/md/functions.d.ts new file mode 100644 index 0000000000..c6b5e4e36f --- /dev/null +++ b/types/react-icons/lib/md/functions.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdFunctions extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/g-translate.d.ts b/types/react-icons/lib/md/g-translate.d.ts new file mode 100644 index 0000000000..46b09234a0 --- /dev/null +++ b/types/react-icons/lib/md/g-translate.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGTranslate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/gamepad.d.ts b/types/react-icons/lib/md/gamepad.d.ts new file mode 100644 index 0000000000..8596cbd26d --- /dev/null +++ b/types/react-icons/lib/md/gamepad.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGamepad extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/games.d.ts b/types/react-icons/lib/md/games.d.ts new file mode 100644 index 0000000000..3a64f429b9 --- /dev/null +++ b/types/react-icons/lib/md/games.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGames extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/gavel.d.ts b/types/react-icons/lib/md/gavel.d.ts new file mode 100644 index 0000000000..55fd1390e9 --- /dev/null +++ b/types/react-icons/lib/md/gavel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGavel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/gesture.d.ts b/types/react-icons/lib/md/gesture.d.ts new file mode 100644 index 0000000000..a382f009b4 --- /dev/null +++ b/types/react-icons/lib/md/gesture.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGesture extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/get-app.d.ts b/types/react-icons/lib/md/get-app.d.ts new file mode 100644 index 0000000000..9fe4a2a003 --- /dev/null +++ b/types/react-icons/lib/md/get-app.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGetApp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/gif.d.ts b/types/react-icons/lib/md/gif.d.ts new file mode 100644 index 0000000000..60d7666674 --- /dev/null +++ b/types/react-icons/lib/md/gif.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGif extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/goat.d.ts b/types/react-icons/lib/md/goat.d.ts new file mode 100644 index 0000000000..43610ba2e6 --- /dev/null +++ b/types/react-icons/lib/md/goat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGoat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/golf-course.d.ts b/types/react-icons/lib/md/golf-course.d.ts new file mode 100644 index 0000000000..301ee1b707 --- /dev/null +++ b/types/react-icons/lib/md/golf-course.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGolfCourse extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/gps-fixed.d.ts b/types/react-icons/lib/md/gps-fixed.d.ts new file mode 100644 index 0000000000..12443403df --- /dev/null +++ b/types/react-icons/lib/md/gps-fixed.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGpsFixed extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/gps-not-fixed.d.ts b/types/react-icons/lib/md/gps-not-fixed.d.ts new file mode 100644 index 0000000000..8af1c95e23 --- /dev/null +++ b/types/react-icons/lib/md/gps-not-fixed.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGpsNotFixed extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/gps-off.d.ts b/types/react-icons/lib/md/gps-off.d.ts new file mode 100644 index 0000000000..c02322b7a4 --- /dev/null +++ b/types/react-icons/lib/md/gps-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGpsOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/grade.d.ts b/types/react-icons/lib/md/grade.d.ts new file mode 100644 index 0000000000..cebbc96aa6 --- /dev/null +++ b/types/react-icons/lib/md/grade.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGrade extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/gradient.d.ts b/types/react-icons/lib/md/gradient.d.ts new file mode 100644 index 0000000000..32e62169a4 --- /dev/null +++ b/types/react-icons/lib/md/gradient.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGradient extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/grain.d.ts b/types/react-icons/lib/md/grain.d.ts new file mode 100644 index 0000000000..79a8b9a14d --- /dev/null +++ b/types/react-icons/lib/md/grain.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGrain extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/graphic-eq.d.ts b/types/react-icons/lib/md/graphic-eq.d.ts new file mode 100644 index 0000000000..7f59fa3728 --- /dev/null +++ b/types/react-icons/lib/md/graphic-eq.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGraphicEq extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/grid-off.d.ts b/types/react-icons/lib/md/grid-off.d.ts new file mode 100644 index 0000000000..8b5cf60336 --- /dev/null +++ b/types/react-icons/lib/md/grid-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGridOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/grid-on.d.ts b/types/react-icons/lib/md/grid-on.d.ts new file mode 100644 index 0000000000..4978f9912e --- /dev/null +++ b/types/react-icons/lib/md/grid-on.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGridOn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/group-add.d.ts b/types/react-icons/lib/md/group-add.d.ts new file mode 100644 index 0000000000..bacc3ed6cf --- /dev/null +++ b/types/react-icons/lib/md/group-add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGroupAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/group-work.d.ts b/types/react-icons/lib/md/group-work.d.ts new file mode 100644 index 0000000000..997b1738f2 --- /dev/null +++ b/types/react-icons/lib/md/group-work.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGroupWork extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/group.d.ts b/types/react-icons/lib/md/group.d.ts new file mode 100644 index 0000000000..af48b3dd81 --- /dev/null +++ b/types/react-icons/lib/md/group.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdGroup extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/hd.d.ts b/types/react-icons/lib/md/hd.d.ts new file mode 100644 index 0000000000..1698da3a4d --- /dev/null +++ b/types/react-icons/lib/md/hd.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/hdr-off.d.ts b/types/react-icons/lib/md/hdr-off.d.ts new file mode 100644 index 0000000000..4a343d8a9b --- /dev/null +++ b/types/react-icons/lib/md/hdr-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHdrOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/hdr-on.d.ts b/types/react-icons/lib/md/hdr-on.d.ts new file mode 100644 index 0000000000..129aa05032 --- /dev/null +++ b/types/react-icons/lib/md/hdr-on.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHdrOn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/hdr-strong.d.ts b/types/react-icons/lib/md/hdr-strong.d.ts new file mode 100644 index 0000000000..f1eb6a8c80 --- /dev/null +++ b/types/react-icons/lib/md/hdr-strong.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHdrStrong extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/hdr-weak.d.ts b/types/react-icons/lib/md/hdr-weak.d.ts new file mode 100644 index 0000000000..43be31c24d --- /dev/null +++ b/types/react-icons/lib/md/hdr-weak.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHdrWeak extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/headset-mic.d.ts b/types/react-icons/lib/md/headset-mic.d.ts new file mode 100644 index 0000000000..83c8c0547e --- /dev/null +++ b/types/react-icons/lib/md/headset-mic.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHeadsetMic extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/headset.d.ts b/types/react-icons/lib/md/headset.d.ts new file mode 100644 index 0000000000..988ed4b38d --- /dev/null +++ b/types/react-icons/lib/md/headset.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHeadset extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/healing.d.ts b/types/react-icons/lib/md/healing.d.ts new file mode 100644 index 0000000000..fc914063c2 --- /dev/null +++ b/types/react-icons/lib/md/healing.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHealing extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/hearing.d.ts b/types/react-icons/lib/md/hearing.d.ts new file mode 100644 index 0000000000..134c7f1863 --- /dev/null +++ b/types/react-icons/lib/md/hearing.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHearing extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/help-outline.d.ts b/types/react-icons/lib/md/help-outline.d.ts new file mode 100644 index 0000000000..2734400cb9 --- /dev/null +++ b/types/react-icons/lib/md/help-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHelpOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/help.d.ts b/types/react-icons/lib/md/help.d.ts new file mode 100644 index 0000000000..cce20cffd6 --- /dev/null +++ b/types/react-icons/lib/md/help.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHelp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/high-quality.d.ts b/types/react-icons/lib/md/high-quality.d.ts new file mode 100644 index 0000000000..5676b35cbd --- /dev/null +++ b/types/react-icons/lib/md/high-quality.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHighQuality extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/highlight-off.d.ts b/types/react-icons/lib/md/highlight-off.d.ts new file mode 100644 index 0000000000..f188f1f9bd --- /dev/null +++ b/types/react-icons/lib/md/highlight-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHighlightOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/highlight-remove.d.ts b/types/react-icons/lib/md/highlight-remove.d.ts new file mode 100644 index 0000000000..7a28a3b5ae --- /dev/null +++ b/types/react-icons/lib/md/highlight-remove.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHighlightRemove extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/highlight.d.ts b/types/react-icons/lib/md/highlight.d.ts new file mode 100644 index 0000000000..0730ad41da --- /dev/null +++ b/types/react-icons/lib/md/highlight.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHighlight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/history.d.ts b/types/react-icons/lib/md/history.d.ts new file mode 100644 index 0000000000..d97bca17d4 --- /dev/null +++ b/types/react-icons/lib/md/history.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHistory extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/home.d.ts b/types/react-icons/lib/md/home.d.ts new file mode 100644 index 0000000000..6defd6933f --- /dev/null +++ b/types/react-icons/lib/md/home.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHome extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/hot-tub.d.ts b/types/react-icons/lib/md/hot-tub.d.ts new file mode 100644 index 0000000000..89cf2e0591 --- /dev/null +++ b/types/react-icons/lib/md/hot-tub.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHotTub extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/hotel.d.ts b/types/react-icons/lib/md/hotel.d.ts new file mode 100644 index 0000000000..198fb2b211 --- /dev/null +++ b/types/react-icons/lib/md/hotel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHotel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/hourglass-empty.d.ts b/types/react-icons/lib/md/hourglass-empty.d.ts new file mode 100644 index 0000000000..a7e4e25915 --- /dev/null +++ b/types/react-icons/lib/md/hourglass-empty.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHourglassEmpty extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/hourglass-full.d.ts b/types/react-icons/lib/md/hourglass-full.d.ts new file mode 100644 index 0000000000..2a3e1507a3 --- /dev/null +++ b/types/react-icons/lib/md/hourglass-full.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHourglassFull extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/http.d.ts b/types/react-icons/lib/md/http.d.ts new file mode 100644 index 0000000000..def5a14ec5 --- /dev/null +++ b/types/react-icons/lib/md/http.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHttp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/https.d.ts b/types/react-icons/lib/md/https.d.ts new file mode 100644 index 0000000000..991ad252b9 --- /dev/null +++ b/types/react-icons/lib/md/https.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdHttps extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/image-aspect-ratio.d.ts b/types/react-icons/lib/md/image-aspect-ratio.d.ts new file mode 100644 index 0000000000..2cff8927ea --- /dev/null +++ b/types/react-icons/lib/md/image-aspect-ratio.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdImageAspectRatio extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/image.d.ts b/types/react-icons/lib/md/image.d.ts new file mode 100644 index 0000000000..f4246f01ed --- /dev/null +++ b/types/react-icons/lib/md/image.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdImage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/import-contacts.d.ts b/types/react-icons/lib/md/import-contacts.d.ts new file mode 100644 index 0000000000..4012627098 --- /dev/null +++ b/types/react-icons/lib/md/import-contacts.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdImportContacts extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/import-export.d.ts b/types/react-icons/lib/md/import-export.d.ts new file mode 100644 index 0000000000..9c66e17352 --- /dev/null +++ b/types/react-icons/lib/md/import-export.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdImportExport extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/important-devices.d.ts b/types/react-icons/lib/md/important-devices.d.ts new file mode 100644 index 0000000000..8795301e43 --- /dev/null +++ b/types/react-icons/lib/md/important-devices.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdImportantDevices extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/inbox.d.ts b/types/react-icons/lib/md/inbox.d.ts new file mode 100644 index 0000000000..13d401760f --- /dev/null +++ b/types/react-icons/lib/md/inbox.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInbox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/indeterminate-check-box.d.ts b/types/react-icons/lib/md/indeterminate-check-box.d.ts new file mode 100644 index 0000000000..01b0c58730 --- /dev/null +++ b/types/react-icons/lib/md/indeterminate-check-box.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdIndeterminateCheckBox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/index.d.ts b/types/react-icons/lib/md/index.d.ts new file mode 100644 index 0000000000..a3e2e3e929 --- /dev/null +++ b/types/react-icons/lib/md/index.d.ts @@ -0,0 +1,946 @@ +export { default as Md3dRotation } from "./3d-rotation"; +export { default as MdAcUnit } from "./ac-unit"; +export { default as MdAccessAlarm } from "./access-alarm"; +export { default as MdAccessAlarms } from "./access-alarms"; +export { default as MdAccessTime } from "./access-time"; +export { default as MdAccessibility } from "./accessibility"; +export { default as MdAccessible } from "./accessible"; +export { default as MdAccountBalanceWallet } from "./account-balance-wallet"; +export { default as MdAccountBalance } from "./account-balance"; +export { default as MdAccountBox } from "./account-box"; +export { default as MdAccountCircle } from "./account-circle"; +export { default as MdAdb } from "./adb"; +export { default as MdAddAPhoto } from "./add-a-photo"; +export { default as MdAddAlarm } from "./add-alarm"; +export { default as MdAddAlert } from "./add-alert"; +export { default as MdAddBox } from "./add-box"; +export { default as MdAddCircleOutline } from "./add-circle-outline"; +export { default as MdAddCircle } from "./add-circle"; +export { default as MdAddLocation } from "./add-location"; +export { default as MdAddShoppingCart } from "./add-shopping-cart"; +export { default as MdAddToPhotos } from "./add-to-photos"; +export { default as MdAddToQueue } from "./add-to-queue"; +export { default as MdAdd } from "./add"; +export { default as MdAdjust } from "./adjust"; +export { default as MdAirlineSeatFlatAngled } from "./airline-seat-flat-angled"; +export { default as MdAirlineSeatFlat } from "./airline-seat-flat"; +export { default as MdAirlineSeatIndividualSuite } from "./airline-seat-individual-suite"; +export { default as MdAirlineSeatLegroomExtra } from "./airline-seat-legroom-extra"; +export { default as MdAirlineSeatLegroomNormal } from "./airline-seat-legroom-normal"; +export { default as MdAirlineSeatLegroomReduced } from "./airline-seat-legroom-reduced"; +export { default as MdAirlineSeatReclineExtra } from "./airline-seat-recline-extra"; +export { default as MdAirlineSeatReclineNormal } from "./airline-seat-recline-normal"; +export { default as MdAirplanemodeActive } from "./airplanemode-active"; +export { default as MdAirplanemodeInactive } from "./airplanemode-inactive"; +export { default as MdAirplay } from "./airplay"; +export { default as MdAirportShuttle } from "./airport-shuttle"; +export { default as MdAlarmAdd } from "./alarm-add"; +export { default as MdAlarmOff } from "./alarm-off"; +export { default as MdAlarmOn } from "./alarm-on"; +export { default as MdAlarm } from "./alarm"; +export { default as MdAlbum } from "./album"; +export { default as MdAllInclusive } from "./all-inclusive"; +export { default as MdAllOut } from "./all-out"; +export { default as MdAndroid } from "./android"; +export { default as MdAnnouncement } from "./announcement"; +export { default as MdApps } from "./apps"; +export { default as MdArchive } from "./archive"; +export { default as MdArrowBack } from "./arrow-back"; +export { default as MdArrowDownward } from "./arrow-downward"; +export { default as MdArrowDropDownCircle } from "./arrow-drop-down-circle"; +export { default as MdArrowDropDown } from "./arrow-drop-down"; +export { default as MdArrowDropUp } from "./arrow-drop-up"; +export { default as MdArrowForward } from "./arrow-forward"; +export { default as MdArrowUpward } from "./arrow-upward"; +export { default as MdArtTrack } from "./art-track"; +export { default as MdAspectRatio } from "./aspect-ratio"; +export { default as MdAssessment } from "./assessment"; +export { default as MdAssignmentInd } from "./assignment-ind"; +export { default as MdAssignmentLate } from "./assignment-late"; +export { default as MdAssignmentReturn } from "./assignment-return"; +export { default as MdAssignmentReturned } from "./assignment-returned"; +export { default as MdAssignmentTurnedIn } from "./assignment-turned-in"; +export { default as MdAssignment } from "./assignment"; +export { default as MdAssistantPhoto } from "./assistant-photo"; +export { default as MdAssistant } from "./assistant"; +export { default as MdAttachFile } from "./attach-file"; +export { default as MdAttachMoney } from "./attach-money"; +export { default as MdAttachment } from "./attachment"; +export { default as MdAudiotrack } from "./audiotrack"; +export { default as MdAutorenew } from "./autorenew"; +export { default as MdAvTimer } from "./av-timer"; +export { default as MdBackspace } from "./backspace"; +export { default as MdBackup } from "./backup"; +export { default as MdBatteryAlert } from "./battery-alert"; +export { default as MdBatteryChargingFull } from "./battery-charging-full"; +export { default as MdBatteryFull } from "./battery-full"; +export { default as MdBatteryStd } from "./battery-std"; +export { default as MdBatteryUnknown } from "./battery-unknown"; +export { default as MdBeachAccess } from "./beach-access"; +export { default as MdBeenhere } from "./beenhere"; +export { default as MdBlock } from "./block"; +export { default as MdBluetoothAudio } from "./bluetooth-audio"; +export { default as MdBluetoothConnected } from "./bluetooth-connected"; +export { default as MdBluetoothDisabled } from "./bluetooth-disabled"; +export { default as MdBluetoothSearching } from "./bluetooth-searching"; +export { default as MdBluetooth } from "./bluetooth"; +export { default as MdBlurCircular } from "./blur-circular"; +export { default as MdBlurLinear } from "./blur-linear"; +export { default as MdBlurOff } from "./blur-off"; +export { default as MdBlurOn } from "./blur-on"; +export { default as MdBook } from "./book"; +export { default as MdBookmarkOutline } from "./bookmark-outline"; +export { default as MdBookmark } from "./bookmark"; +export { default as MdBorderAll } from "./border-all"; +export { default as MdBorderBottom } from "./border-bottom"; +export { default as MdBorderClear } from "./border-clear"; +export { default as MdBorderColor } from "./border-color"; +export { default as MdBorderHorizontal } from "./border-horizontal"; +export { default as MdBorderInner } from "./border-inner"; +export { default as MdBorderLeft } from "./border-left"; +export { default as MdBorderOuter } from "./border-outer"; +export { default as MdBorderRight } from "./border-right"; +export { default as MdBorderStyle } from "./border-style"; +export { default as MdBorderTop } from "./border-top"; +export { default as MdBorderVertical } from "./border-vertical"; +export { default as MdBrandingWatermark } from "./branding-watermark"; +export { default as MdBrightness1 } from "./brightness-1"; +export { default as MdBrightness2 } from "./brightness-2"; +export { default as MdBrightness3 } from "./brightness-3"; +export { default as MdBrightness4 } from "./brightness-4"; +export { default as MdBrightness5 } from "./brightness-5"; +export { default as MdBrightness6 } from "./brightness-6"; +export { default as MdBrightness7 } from "./brightness-7"; +export { default as MdBrightnessAuto } from "./brightness-auto"; +export { default as MdBrightnessHigh } from "./brightness-high"; +export { default as MdBrightnessLow } from "./brightness-low"; +export { default as MdBrightnessMedium } from "./brightness-medium"; +export { default as MdBrokenImage } from "./broken-image"; +export { default as MdBrush } from "./brush"; +export { default as MdBubbleChart } from "./bubble-chart"; +export { default as MdBugReport } from "./bug-report"; +export { default as MdBuild } from "./build"; +export { default as MdBurstMode } from "./burst-mode"; +export { default as MdBusinessCenter } from "./business-center"; +export { default as MdBusiness } from "./business"; +export { default as MdCached } from "./cached"; +export { default as MdCake } from "./cake"; +export { default as MdCallEnd } from "./call-end"; +export { default as MdCallMade } from "./call-made"; +export { default as MdCallMerge } from "./call-merge"; +export { default as MdCallMissedOutgoing } from "./call-missed-outgoing"; +export { default as MdCallMissed } from "./call-missed"; +export { default as MdCallReceived } from "./call-received"; +export { default as MdCallSplit } from "./call-split"; +export { default as MdCallToAction } from "./call-to-action"; +export { default as MdCall } from "./call"; +export { default as MdCameraAlt } from "./camera-alt"; +export { default as MdCameraEnhance } from "./camera-enhance"; +export { default as MdCameraFront } from "./camera-front"; +export { default as MdCameraRear } from "./camera-rear"; +export { default as MdCameraRoll } from "./camera-roll"; +export { default as MdCamera } from "./camera"; +export { default as MdCancel } from "./cancel"; +export { default as MdCardGiftcard } from "./card-giftcard"; +export { default as MdCardMembership } from "./card-membership"; +export { default as MdCardTravel } from "./card-travel"; +export { default as MdCasino } from "./casino"; +export { default as MdCastConnected } from "./cast-connected"; +export { default as MdCast } from "./cast"; +export { default as MdCenterFocusStrong } from "./center-focus-strong"; +export { default as MdCenterFocusWeak } from "./center-focus-weak"; +export { default as MdChangeHistory } from "./change-history"; +export { default as MdChatBubbleOutline } from "./chat-bubble-outline"; +export { default as MdChatBubble } from "./chat-bubble"; +export { default as MdChat } from "./chat"; +export { default as MdCheckBoxOutlineBlank } from "./check-box-outline-blank"; +export { default as MdCheckBox } from "./check-box"; +export { default as MdCheckCircle } from "./check-circle"; +export { default as MdCheck } from "./check"; +export { default as MdChevronLeft } from "./chevron-left"; +export { default as MdChevronRight } from "./chevron-right"; +export { default as MdChildCare } from "./child-care"; +export { default as MdChildFriendly } from "./child-friendly"; +export { default as MdChromeReaderMode } from "./chrome-reader-mode"; +export { default as MdClass } from "./class"; +export { default as MdClearAll } from "./clear-all"; +export { default as MdClear } from "./clear"; +export { default as MdClose } from "./close"; +export { default as MdClosedCaption } from "./closed-caption"; +export { default as MdCloudCircle } from "./cloud-circle"; +export { default as MdCloudDone } from "./cloud-done"; +export { default as MdCloudDownload } from "./cloud-download"; +export { default as MdCloudOff } from "./cloud-off"; +export { default as MdCloudQueue } from "./cloud-queue"; +export { default as MdCloudUpload } from "./cloud-upload"; +export { default as MdCloud } from "./cloud"; +export { default as MdCode } from "./code"; +export { default as MdCollectionsBookmark } from "./collections-bookmark"; +export { default as MdCollections } from "./collections"; +export { default as MdColorLens } from "./color-lens"; +export { default as MdColorize } from "./colorize"; +export { default as MdComment } from "./comment"; +export { default as MdCompareArrows } from "./compare-arrows"; +export { default as MdCompare } from "./compare"; +export { default as MdComputer } from "./computer"; +export { default as MdConfirmationNumber } from "./confirmation-number"; +export { default as MdContactMail } from "./contact-mail"; +export { default as MdContactPhone } from "./contact-phone"; +export { default as MdContacts } from "./contacts"; +export { default as MdContentCopy } from "./content-copy"; +export { default as MdContentCut } from "./content-cut"; +export { default as MdContentPaste } from "./content-paste"; +export { default as MdControlPointDuplicate } from "./control-point-duplicate"; +export { default as MdControlPoint } from "./control-point"; +export { default as MdCopyright } from "./copyright"; +export { default as MdCreateNewFolder } from "./create-new-folder"; +export { default as MdCreate } from "./create"; +export { default as MdCreditCard } from "./credit-card"; +export { default as MdCrop169 } from "./crop-16-9"; +export { default as MdCrop32 } from "./crop-3-2"; +export { default as MdCrop54 } from "./crop-5-4"; +export { default as MdCrop75 } from "./crop-7-5"; +export { default as MdCropDin } from "./crop-din"; +export { default as MdCropFree } from "./crop-free"; +export { default as MdCropLandscape } from "./crop-landscape"; +export { default as MdCropOriginal } from "./crop-original"; +export { default as MdCropPortrait } from "./crop-portrait"; +export { default as MdCropRotate } from "./crop-rotate"; +export { default as MdCropSquare } from "./crop-square"; +export { default as MdCrop } from "./crop"; +export { default as MdDashboard } from "./dashboard"; +export { default as MdDataUsage } from "./data-usage"; +export { default as MdDateRange } from "./date-range"; +export { default as MdDehaze } from "./dehaze"; +export { default as MdDeleteForever } from "./delete-forever"; +export { default as MdDeleteSweep } from "./delete-sweep"; +export { default as MdDelete } from "./delete"; +export { default as MdDescription } from "./description"; +export { default as MdDesktopMac } from "./desktop-mac"; +export { default as MdDesktopWindows } from "./desktop-windows"; +export { default as MdDetails } from "./details"; +export { default as MdDeveloperBoard } from "./developer-board"; +export { default as MdDeveloperMode } from "./developer-mode"; +export { default as MdDeviceHub } from "./device-hub"; +export { default as MdDevicesOther } from "./devices-other"; +export { default as MdDevices } from "./devices"; +export { default as MdDialerSip } from "./dialer-sip"; +export { default as MdDialpad } from "./dialpad"; +export { default as MdDirectionsBike } from "./directions-bike"; +export { default as MdDirectionsBoat } from "./directions-boat"; +export { default as MdDirectionsBus } from "./directions-bus"; +export { default as MdDirectionsCar } from "./directions-car"; +export { default as MdDirectionsFerry } from "./directions-ferry"; +export { default as MdDirectionsRailway } from "./directions-railway"; +export { default as MdDirectionsRun } from "./directions-run"; +export { default as MdDirectionsSubway } from "./directions-subway"; +export { default as MdDirectionsTransit } from "./directions-transit"; +export { default as MdDirectionsWalk } from "./directions-walk"; +export { default as MdDirections } from "./directions"; +export { default as MdDiscFull } from "./disc-full"; +export { default as MdDns } from "./dns"; +export { default as MdDoNotDisturbAlt } from "./do-not-disturb-alt"; +export { default as MdDoNotDisturbOff } from "./do-not-disturb-off"; +export { default as MdDoNotDisturb } from "./do-not-disturb"; +export { default as MdDock } from "./dock"; +export { default as MdDomain } from "./domain"; +export { default as MdDoneAll } from "./done-all"; +export { default as MdDone } from "./done"; +export { default as MdDonutLarge } from "./donut-large"; +export { default as MdDonutSmall } from "./donut-small"; +export { default as MdDrafts } from "./drafts"; +export { default as MdDragHandle } from "./drag-handle"; +export { default as MdDriveEta } from "./drive-eta"; +export { default as MdDvr } from "./dvr"; +export { default as MdEditLocation } from "./edit-location"; +export { default as MdEdit } from "./edit"; +export { default as MdEject } from "./eject"; +export { default as MdEmail } from "./email"; +export { default as MdEnhancedEncryption } from "./enhanced-encryption"; +export { default as MdEqualizer } from "./equalizer"; +export { default as MdErrorOutline } from "./error-outline"; +export { default as MdError } from "./error"; +export { default as MdEuroSymbol } from "./euro-symbol"; +export { default as MdEvStation } from "./ev-station"; +export { default as MdEventAvailable } from "./event-available"; +export { default as MdEventBusy } from "./event-busy"; +export { default as MdEventNote } from "./event-note"; +export { default as MdEventSeat } from "./event-seat"; +export { default as MdEvent } from "./event"; +export { default as MdExitToApp } from "./exit-to-app"; +export { default as MdExpandLess } from "./expand-less"; +export { default as MdExpandMore } from "./expand-more"; +export { default as MdExplicit } from "./explicit"; +export { default as MdExplore } from "./explore"; +export { default as MdExposureMinus1 } from "./exposure-minus-1"; +export { default as MdExposureMinus2 } from "./exposure-minus-2"; +export { default as MdExposureNeg1 } from "./exposure-neg-1"; +export { default as MdExposureNeg2 } from "./exposure-neg-2"; +export { default as MdExposurePlus1 } from "./exposure-plus-1"; +export { default as MdExposurePlus2 } from "./exposure-plus-2"; +export { default as MdExposureZero } from "./exposure-zero"; +export { default as MdExposure } from "./exposure"; +export { default as MdExtension } from "./extension"; +export { default as MdFace } from "./face"; +export { default as MdFastForward } from "./fast-forward"; +export { default as MdFastRewind } from "./fast-rewind"; +export { default as MdFavoriteBorder } from "./favorite-border"; +export { default as MdFavoriteOutline } from "./favorite-outline"; +export { default as MdFavorite } from "./favorite"; +export { default as MdFeaturedPlayList } from "./featured-play-list"; +export { default as MdFeaturedVideo } from "./featured-video"; +export { default as MdFeedback } from "./feedback"; +export { default as MdFiberDvr } from "./fiber-dvr"; +export { default as MdFiberManualRecord } from "./fiber-manual-record"; +export { default as MdFiberNew } from "./fiber-new"; +export { default as MdFiberPin } from "./fiber-pin"; +export { default as MdFiberSmartRecord } from "./fiber-smart-record"; +export { default as MdFileDownload } from "./file-download"; +export { default as MdFileUpload } from "./file-upload"; +export { default as MdFilter1 } from "./filter-1"; +export { default as MdFilter2 } from "./filter-2"; +export { default as MdFilter3 } from "./filter-3"; +export { default as MdFilter4 } from "./filter-4"; +export { default as MdFilter5 } from "./filter-5"; +export { default as MdFilter6 } from "./filter-6"; +export { default as MdFilter7 } from "./filter-7"; +export { default as MdFilter8 } from "./filter-8"; +export { default as MdFilter9Plus } from "./filter-9-plus"; +export { default as MdFilter9 } from "./filter-9"; +export { default as MdFilterBAndW } from "./filter-b-and-w"; +export { default as MdFilterCenterFocus } from "./filter-center-focus"; +export { default as MdFilterDrama } from "./filter-drama"; +export { default as MdFilterFrames } from "./filter-frames"; +export { default as MdFilterHdr } from "./filter-hdr"; +export { default as MdFilterList } from "./filter-list"; +export { default as MdFilterNone } from "./filter-none"; +export { default as MdFilterTiltShift } from "./filter-tilt-shift"; +export { default as MdFilterVintage } from "./filter-vintage"; +export { default as MdFilter } from "./filter"; +export { default as MdFindInPage } from "./find-in-page"; +export { default as MdFindReplace } from "./find-replace"; +export { default as MdFingerprint } from "./fingerprint"; +export { default as MdFirstPage } from "./first-page"; +export { default as MdFitnessCenter } from "./fitness-center"; +export { default as MdFlag } from "./flag"; +export { default as MdFlare } from "./flare"; +export { default as MdFlashAuto } from "./flash-auto"; +export { default as MdFlashOff } from "./flash-off"; +export { default as MdFlashOn } from "./flash-on"; +export { default as MdFlightLand } from "./flight-land"; +export { default as MdFlightTakeoff } from "./flight-takeoff"; +export { default as MdFlight } from "./flight"; +export { default as MdFlipToBack } from "./flip-to-back"; +export { default as MdFlipToFront } from "./flip-to-front"; +export { default as MdFlip } from "./flip"; +export { default as MdFolderOpen } from "./folder-open"; +export { default as MdFolderShared } from "./folder-shared"; +export { default as MdFolderSpecial } from "./folder-special"; +export { default as MdFolder } from "./folder"; +export { default as MdFontDownload } from "./font-download"; +export { default as MdFormatAlignCenter } from "./format-align-center"; +export { default as MdFormatAlignJustify } from "./format-align-justify"; +export { default as MdFormatAlignLeft } from "./format-align-left"; +export { default as MdFormatAlignRight } from "./format-align-right"; +export { default as MdFormatBold } from "./format-bold"; +export { default as MdFormatClear } from "./format-clear"; +export { default as MdFormatColorFill } from "./format-color-fill"; +export { default as MdFormatColorReset } from "./format-color-reset"; +export { default as MdFormatColorText } from "./format-color-text"; +export { default as MdFormatIndentDecrease } from "./format-indent-decrease"; +export { default as MdFormatIndentIncrease } from "./format-indent-increase"; +export { default as MdFormatItalic } from "./format-italic"; +export { default as MdFormatLineSpacing } from "./format-line-spacing"; +export { default as MdFormatListBulleted } from "./format-list-bulleted"; +export { default as MdFormatListNumbered } from "./format-list-numbered"; +export { default as MdFormatPaint } from "./format-paint"; +export { default as MdFormatQuote } from "./format-quote"; +export { default as MdFormatShapes } from "./format-shapes"; +export { default as MdFormatSize } from "./format-size"; +export { default as MdFormatStrikethrough } from "./format-strikethrough"; +export { default as MdFormatTextdirectionLToR } from "./format-textdirection-l-to-r"; +export { default as MdFormatTextdirectionRToL } from "./format-textdirection-r-to-l"; +export { default as MdFormatUnderlined } from "./format-underlined"; +export { default as MdForum } from "./forum"; +export { default as MdForward10 } from "./forward-10"; +export { default as MdForward30 } from "./forward-30"; +export { default as MdForward5 } from "./forward-5"; +export { default as MdForward } from "./forward"; +export { default as MdFreeBreakfast } from "./free-breakfast"; +export { default as MdFullscreenExit } from "./fullscreen-exit"; +export { default as MdFullscreen } from "./fullscreen"; +export { default as MdFunctions } from "./functions"; +export { default as MdGTranslate } from "./g-translate"; +export { default as MdGamepad } from "./gamepad"; +export { default as MdGames } from "./games"; +export { default as MdGavel } from "./gavel"; +export { default as MdGesture } from "./gesture"; +export { default as MdGetApp } from "./get-app"; +export { default as MdGif } from "./gif"; +export { default as MdGoat } from "./goat"; +export { default as MdGolfCourse } from "./golf-course"; +export { default as MdGpsFixed } from "./gps-fixed"; +export { default as MdGpsNotFixed } from "./gps-not-fixed"; +export { default as MdGpsOff } from "./gps-off"; +export { default as MdGrade } from "./grade"; +export { default as MdGradient } from "./gradient"; +export { default as MdGrain } from "./grain"; +export { default as MdGraphicEq } from "./graphic-eq"; +export { default as MdGridOff } from "./grid-off"; +export { default as MdGridOn } from "./grid-on"; +export { default as MdGroupAdd } from "./group-add"; +export { default as MdGroupWork } from "./group-work"; +export { default as MdGroup } from "./group"; +export { default as MdHd } from "./hd"; +export { default as MdHdrOff } from "./hdr-off"; +export { default as MdHdrOn } from "./hdr-on"; +export { default as MdHdrStrong } from "./hdr-strong"; +export { default as MdHdrWeak } from "./hdr-weak"; +export { default as MdHeadsetMic } from "./headset-mic"; +export { default as MdHeadset } from "./headset"; +export { default as MdHealing } from "./healing"; +export { default as MdHearing } from "./hearing"; +export { default as MdHelpOutline } from "./help-outline"; +export { default as MdHelp } from "./help"; +export { default as MdHighQuality } from "./high-quality"; +export { default as MdHighlightOff } from "./highlight-off"; +export { default as MdHighlightRemove } from "./highlight-remove"; +export { default as MdHighlight } from "./highlight"; +export { default as MdHistory } from "./history"; +export { default as MdHome } from "./home"; +export { default as MdHotTub } from "./hot-tub"; +export { default as MdHotel } from "./hotel"; +export { default as MdHourglassEmpty } from "./hourglass-empty"; +export { default as MdHourglassFull } from "./hourglass-full"; +export { default as MdHttp } from "./http"; +export { default as MdHttps } from "./https"; +export { default as MdImageAspectRatio } from "./image-aspect-ratio"; +export { default as MdImage } from "./image"; +export { default as MdImportContacts } from "./import-contacts"; +export { default as MdImportExport } from "./import-export"; +export { default as MdImportantDevices } from "./important-devices"; +export { default as MdInbox } from "./inbox"; +export { default as MdIndeterminateCheckBox } from "./indeterminate-check-box"; +export { default as MdInfoOutline } from "./info-outline"; +export { default as MdInfo } from "./info"; +export { default as MdInput } from "./input"; +export { default as MdInsertChart } from "./insert-chart"; +export { default as MdInsertComment } from "./insert-comment"; +export { default as MdInsertDriveFile } from "./insert-drive-file"; +export { default as MdInsertEmoticon } from "./insert-emoticon"; +export { default as MdInsertInvitation } from "./insert-invitation"; +export { default as MdInsertLink } from "./insert-link"; +export { default as MdInsertPhoto } from "./insert-photo"; +export { default as MdInvertColorsOff } from "./invert-colors-off"; +export { default as MdInvertColorsOn } from "./invert-colors-on"; +export { default as MdInvertColors } from "./invert-colors"; +export { default as MdIso } from "./iso"; +export { default as MdKeyboardArrowDown } from "./keyboard-arrow-down"; +export { default as MdKeyboardArrowLeft } from "./keyboard-arrow-left"; +export { default as MdKeyboardArrowRight } from "./keyboard-arrow-right"; +export { default as MdKeyboardArrowUp } from "./keyboard-arrow-up"; +export { default as MdKeyboardBackspace } from "./keyboard-backspace"; +export { default as MdKeyboardCapslock } from "./keyboard-capslock"; +export { default as MdKeyboardControl } from "./keyboard-control"; +export { default as MdKeyboardHide } from "./keyboard-hide"; +export { default as MdKeyboardReturn } from "./keyboard-return"; +export { default as MdKeyboardTab } from "./keyboard-tab"; +export { default as MdKeyboardVoice } from "./keyboard-voice"; +export { default as MdKeyboard } from "./keyboard"; +export { default as MdKitchen } from "./kitchen"; +export { default as MdLabelOutline } from "./label-outline"; +export { default as MdLabel } from "./label"; +export { default as MdLandscape } from "./landscape"; +export { default as MdLanguage } from "./language"; +export { default as MdLaptopChromebook } from "./laptop-chromebook"; +export { default as MdLaptopMac } from "./laptop-mac"; +export { default as MdLaptopWindows } from "./laptop-windows"; +export { default as MdLaptop } from "./laptop"; +export { default as MdLastPage } from "./last-page"; +export { default as MdLaunch } from "./launch"; +export { default as MdLayersClear } from "./layers-clear"; +export { default as MdLayers } from "./layers"; +export { default as MdLeakAdd } from "./leak-add"; +export { default as MdLeakRemove } from "./leak-remove"; +export { default as MdLens } from "./lens"; +export { default as MdLibraryAdd } from "./library-add"; +export { default as MdLibraryBooks } from "./library-books"; +export { default as MdLibraryMusic } from "./library-music"; +export { default as MdLightbulbOutline } from "./lightbulb-outline"; +export { default as MdLineStyle } from "./line-style"; +export { default as MdLineWeight } from "./line-weight"; +export { default as MdLinearScale } from "./linear-scale"; +export { default as MdLink } from "./link"; +export { default as MdLinkedCamera } from "./linked-camera"; +export { default as MdList } from "./list"; +export { default as MdLiveHelp } from "./live-help"; +export { default as MdLiveTv } from "./live-tv"; +export { default as MdLocalAirport } from "./local-airport"; +export { default as MdLocalAtm } from "./local-atm"; +export { default as MdLocalAttraction } from "./local-attraction"; +export { default as MdLocalBar } from "./local-bar"; +export { default as MdLocalCafe } from "./local-cafe"; +export { default as MdLocalCarWash } from "./local-car-wash"; +export { default as MdLocalConvenienceStore } from "./local-convenience-store"; +export { default as MdLocalDrink } from "./local-drink"; +export { default as MdLocalFlorist } from "./local-florist"; +export { default as MdLocalGasStation } from "./local-gas-station"; +export { default as MdLocalGroceryStore } from "./local-grocery-store"; +export { default as MdLocalHospital } from "./local-hospital"; +export { default as MdLocalHotel } from "./local-hotel"; +export { default as MdLocalLaundryService } from "./local-laundry-service"; +export { default as MdLocalLibrary } from "./local-library"; +export { default as MdLocalMall } from "./local-mall"; +export { default as MdLocalMovies } from "./local-movies"; +export { default as MdLocalOffer } from "./local-offer"; +export { default as MdLocalParking } from "./local-parking"; +export { default as MdLocalPharmacy } from "./local-pharmacy"; +export { default as MdLocalPhone } from "./local-phone"; +export { default as MdLocalPizza } from "./local-pizza"; +export { default as MdLocalPlay } from "./local-play"; +export { default as MdLocalPostOffice } from "./local-post-office"; +export { default as MdLocalPrintShop } from "./local-print-shop"; +export { default as MdLocalRestaurant } from "./local-restaurant"; +export { default as MdLocalSee } from "./local-see"; +export { default as MdLocalShipping } from "./local-shipping"; +export { default as MdLocalTaxi } from "./local-taxi"; +export { default as MdLocationCity } from "./location-city"; +export { default as MdLocationDisabled } from "./location-disabled"; +export { default as MdLocationHistory } from "./location-history"; +export { default as MdLocationOff } from "./location-off"; +export { default as MdLocationOn } from "./location-on"; +export { default as MdLocationSearching } from "./location-searching"; +export { default as MdLockOpen } from "./lock-open"; +export { default as MdLockOutline } from "./lock-outline"; +export { default as MdLock } from "./lock"; +export { default as MdLooks3 } from "./looks-3"; +export { default as MdLooks4 } from "./looks-4"; +export { default as MdLooks5 } from "./looks-5"; +export { default as MdLooks6 } from "./looks-6"; +export { default as MdLooksOne } from "./looks-one"; +export { default as MdLooksTwo } from "./looks-two"; +export { default as MdLooks } from "./looks"; +export { default as MdLoop } from "./loop"; +export { default as MdLoupe } from "./loupe"; +export { default as MdLowPriority } from "./low-priority"; +export { default as MdLoyalty } from "./loyalty"; +export { default as MdMailOutline } from "./mail-outline"; +export { default as MdMail } from "./mail"; +export { default as MdMap } from "./map"; +export { default as MdMarkunreadMailbox } from "./markunread-mailbox"; +export { default as MdMarkunread } from "./markunread"; +export { default as MdMemory } from "./memory"; +export { default as MdMenu } from "./menu"; +export { default as MdMergeType } from "./merge-type"; +export { default as MdMessage } from "./message"; +export { default as MdMicNone } from "./mic-none"; +export { default as MdMicOff } from "./mic-off"; +export { default as MdMic } from "./mic"; +export { default as MdMms } from "./mms"; +export { default as MdModeComment } from "./mode-comment"; +export { default as MdModeEdit } from "./mode-edit"; +export { default as MdMonetizationOn } from "./monetization-on"; +export { default as MdMoneyOff } from "./money-off"; +export { default as MdMonochromePhotos } from "./monochrome-photos"; +export { default as MdMoodBad } from "./mood-bad"; +export { default as MdMood } from "./mood"; +export { default as MdMoreHoriz } from "./more-horiz"; +export { default as MdMoreVert } from "./more-vert"; +export { default as MdMore } from "./more"; +export { default as MdMotorcycle } from "./motorcycle"; +export { default as MdMouse } from "./mouse"; +export { default as MdMoveToInbox } from "./move-to-inbox"; +export { default as MdMovieCreation } from "./movie-creation"; +export { default as MdMovieFilter } from "./movie-filter"; +export { default as MdMovie } from "./movie"; +export { default as MdMultilineChart } from "./multiline-chart"; +export { default as MdMusicNote } from "./music-note"; +export { default as MdMusicVideo } from "./music-video"; +export { default as MdMyLocation } from "./my-location"; +export { default as MdNaturePeople } from "./nature-people"; +export { default as MdNature } from "./nature"; +export { default as MdNavigateBefore } from "./navigate-before"; +export { default as MdNavigateNext } from "./navigate-next"; +export { default as MdNavigation } from "./navigation"; +export { default as MdNearMe } from "./near-me"; +export { default as MdNetworkCell } from "./network-cell"; +export { default as MdNetworkCheck } from "./network-check"; +export { default as MdNetworkLocked } from "./network-locked"; +export { default as MdNetworkWifi } from "./network-wifi"; +export { default as MdNewReleases } from "./new-releases"; +export { default as MdNextWeek } from "./next-week"; +export { default as MdNfc } from "./nfc"; +export { default as MdNoEncryption } from "./no-encryption"; +export { default as MdNoSim } from "./no-sim"; +export { default as MdNotInterested } from "./not-interested"; +export { default as MdNoteAdd } from "./note-add"; +export { default as MdNote } from "./note"; +export { default as MdNotificationsActive } from "./notifications-active"; +export { default as MdNotificationsNone } from "./notifications-none"; +export { default as MdNotificationsOff } from "./notifications-off"; +export { default as MdNotificationsPaused } from "./notifications-paused"; +export { default as MdNotifications } from "./notifications"; +export { default as MdNowWallpaper } from "./now-wallpaper"; +export { default as MdNowWidgets } from "./now-widgets"; +export { default as MdOfflinePin } from "./offline-pin"; +export { default as MdOndemandVideo } from "./ondemand-video"; +export { default as MdOpacity } from "./opacity"; +export { default as MdOpenInBrowser } from "./open-in-browser"; +export { default as MdOpenInNew } from "./open-in-new"; +export { default as MdOpenWith } from "./open-with"; +export { default as MdPages } from "./pages"; +export { default as MdPageview } from "./pageview"; +export { default as MdPalette } from "./palette"; +export { default as MdPanTool } from "./pan-tool"; +export { default as MdPanoramaFishEye } from "./panorama-fish-eye"; +export { default as MdPanoramaHorizontal } from "./panorama-horizontal"; +export { default as MdPanoramaVertical } from "./panorama-vertical"; +export { default as MdPanoramaWideAngle } from "./panorama-wide-angle"; +export { default as MdPanorama } from "./panorama"; +export { default as MdPartyMode } from "./party-mode"; +export { default as MdPauseCircleFilled } from "./pause-circle-filled"; +export { default as MdPauseCircleOutline } from "./pause-circle-outline"; +export { default as MdPause } from "./pause"; +export { default as MdPayment } from "./payment"; +export { default as MdPeopleOutline } from "./people-outline"; +export { default as MdPeople } from "./people"; +export { default as MdPermCameraMic } from "./perm-camera-mic"; +export { default as MdPermContactCalendar } from "./perm-contact-calendar"; +export { default as MdPermDataSetting } from "./perm-data-setting"; +export { default as MdPermDeviceInformation } from "./perm-device-information"; +export { default as MdPermIdentity } from "./perm-identity"; +export { default as MdPermMedia } from "./perm-media"; +export { default as MdPermPhoneMsg } from "./perm-phone-msg"; +export { default as MdPermScanWifi } from "./perm-scan-wifi"; +export { default as MdPersonAdd } from "./person-add"; +export { default as MdPersonOutline } from "./person-outline"; +export { default as MdPersonPinCircle } from "./person-pin-circle"; +export { default as MdPersonPin } from "./person-pin"; +export { default as MdPerson } from "./person"; +export { default as MdPersonalVideo } from "./personal-video"; +export { default as MdPets } from "./pets"; +export { default as MdPhoneAndroid } from "./phone-android"; +export { default as MdPhoneBluetoothSpeaker } from "./phone-bluetooth-speaker"; +export { default as MdPhoneForwarded } from "./phone-forwarded"; +export { default as MdPhoneInTalk } from "./phone-in-talk"; +export { default as MdPhoneIphone } from "./phone-iphone"; +export { default as MdPhoneLocked } from "./phone-locked"; +export { default as MdPhoneMissed } from "./phone-missed"; +export { default as MdPhonePaused } from "./phone-paused"; +export { default as MdPhone } from "./phone"; +export { default as MdPhonelinkErase } from "./phonelink-erase"; +export { default as MdPhonelinkLock } from "./phonelink-lock"; +export { default as MdPhonelinkOff } from "./phonelink-off"; +export { default as MdPhonelinkRing } from "./phonelink-ring"; +export { default as MdPhonelinkSetup } from "./phonelink-setup"; +export { default as MdPhonelink } from "./phonelink"; +export { default as MdPhotoAlbum } from "./photo-album"; +export { default as MdPhotoCamera } from "./photo-camera"; +export { default as MdPhotoFilter } from "./photo-filter"; +export { default as MdPhotoLibrary } from "./photo-library"; +export { default as MdPhotoSizeSelectActual } from "./photo-size-select-actual"; +export { default as MdPhotoSizeSelectLarge } from "./photo-size-select-large"; +export { default as MdPhotoSizeSelectSmall } from "./photo-size-select-small"; +export { default as MdPhoto } from "./photo"; +export { default as MdPictureAsPdf } from "./picture-as-pdf"; +export { default as MdPictureInPictureAlt } from "./picture-in-picture-alt"; +export { default as MdPictureInPicture } from "./picture-in-picture"; +export { default as MdPieChartOutlined } from "./pie-chart-outlined"; +export { default as MdPieChart } from "./pie-chart"; +export { default as MdPinDrop } from "./pin-drop"; +export { default as MdPlace } from "./place"; +export { default as MdPlayArrow } from "./play-arrow"; +export { default as MdPlayCircleFilled } from "./play-circle-filled"; +export { default as MdPlayCircleOutline } from "./play-circle-outline"; +export { default as MdPlayForWork } from "./play-for-work"; +export { default as MdPlaylistAddCheck } from "./playlist-add-check"; +export { default as MdPlaylistAdd } from "./playlist-add"; +export { default as MdPlaylistPlay } from "./playlist-play"; +export { default as MdPlusOne } from "./plus-one"; +export { default as MdPoll } from "./poll"; +export { default as MdPolymer } from "./polymer"; +export { default as MdPool } from "./pool"; +export { default as MdPortableWifiOff } from "./portable-wifi-off"; +export { default as MdPortrait } from "./portrait"; +export { default as MdPowerInput } from "./power-input"; +export { default as MdPowerSettingsNew } from "./power-settings-new"; +export { default as MdPower } from "./power"; +export { default as MdPregnantWoman } from "./pregnant-woman"; +export { default as MdPresentToAll } from "./present-to-all"; +export { default as MdPrint } from "./print"; +export { default as MdPriorityHigh } from "./priority-high"; +export { default as MdPublic } from "./public"; +export { default as MdPublish } from "./publish"; +export { default as MdQueryBuilder } from "./query-builder"; +export { default as MdQuestionAnswer } from "./question-answer"; +export { default as MdQueueMusic } from "./queue-music"; +export { default as MdQueuePlayNext } from "./queue-play-next"; +export { default as MdQueue } from "./queue"; +export { default as MdRadioButtonChecked } from "./radio-button-checked"; +export { default as MdRadioButtonUnchecked } from "./radio-button-unchecked"; +export { default as MdRadio } from "./radio"; +export { default as MdRateReview } from "./rate-review"; +export { default as MdReceipt } from "./receipt"; +export { default as MdRecentActors } from "./recent-actors"; +export { default as MdRecordVoiceOver } from "./record-voice-over"; +export { default as MdRedeem } from "./redeem"; +export { default as MdRedo } from "./redo"; +export { default as MdRefresh } from "./refresh"; +export { default as MdRemoveCircleOutline } from "./remove-circle-outline"; +export { default as MdRemoveCircle } from "./remove-circle"; +export { default as MdRemoveFromQueue } from "./remove-from-queue"; +export { default as MdRemoveRedEye } from "./remove-red-eye"; +export { default as MdRemoveShoppingCart } from "./remove-shopping-cart"; +export { default as MdRemove } from "./remove"; +export { default as MdReorder } from "./reorder"; +export { default as MdRepeatOne } from "./repeat-one"; +export { default as MdRepeat } from "./repeat"; +export { default as MdReplay10 } from "./replay-10"; +export { default as MdReplay30 } from "./replay-30"; +export { default as MdReplay5 } from "./replay-5"; +export { default as MdReplay } from "./replay"; +export { default as MdReplyAll } from "./reply-all"; +export { default as MdReply } from "./reply"; +export { default as MdReportProblem } from "./report-problem"; +export { default as MdReport } from "./report"; +export { default as MdRestaurantMenu } from "./restaurant-menu"; +export { default as MdRestaurant } from "./restaurant"; +export { default as MdRestorePage } from "./restore-page"; +export { default as MdRestore } from "./restore"; +export { default as MdRingVolume } from "./ring-volume"; +export { default as MdRoomService } from "./room-service"; +export { default as MdRoom } from "./room"; +export { default as MdRotate90DegreesCcw } from "./rotate-90-degrees-ccw"; +export { default as MdRotateLeft } from "./rotate-left"; +export { default as MdRotateRight } from "./rotate-right"; +export { default as MdRoundedCorner } from "./rounded-corner"; +export { default as MdRouter } from "./router"; +export { default as MdRowing } from "./rowing"; +export { default as MdRssFeed } from "./rss-feed"; +export { default as MdRvHookup } from "./rv-hookup"; +export { default as MdSatellite } from "./satellite"; +export { default as MdSave } from "./save"; +export { default as MdScanner } from "./scanner"; +export { default as MdSchedule } from "./schedule"; +export { default as MdSchool } from "./school"; +export { default as MdScreenLockLandscape } from "./screen-lock-landscape"; +export { default as MdScreenLockPortrait } from "./screen-lock-portrait"; +export { default as MdScreenLockRotation } from "./screen-lock-rotation"; +export { default as MdScreenRotation } from "./screen-rotation"; +export { default as MdScreenShare } from "./screen-share"; +export { default as MdSdCard } from "./sd-card"; +export { default as MdSdStorage } from "./sd-storage"; +export { default as MdSearch } from "./search"; +export { default as MdSecurity } from "./security"; +export { default as MdSelectAll } from "./select-all"; +export { default as MdSend } from "./send"; +export { default as MdSentimentDissatisfied } from "./sentiment-dissatisfied"; +export { default as MdSentimentNeutral } from "./sentiment-neutral"; +export { default as MdSentimentSatisfied } from "./sentiment-satisfied"; +export { default as MdSentimentVeryDissatisfied } from "./sentiment-very-dissatisfied"; +export { default as MdSentimentVerySatisfied } from "./sentiment-very-satisfied"; +export { default as MdSettingsApplications } from "./settings-applications"; +export { default as MdSettingsBackupRestore } from "./settings-backup-restore"; +export { default as MdSettingsBluetooth } from "./settings-bluetooth"; +export { default as MdSettingsBrightness } from "./settings-brightness"; +export { default as MdSettingsCell } from "./settings-cell"; +export { default as MdSettingsEthernet } from "./settings-ethernet"; +export { default as MdSettingsInputAntenna } from "./settings-input-antenna"; +export { default as MdSettingsInputComponent } from "./settings-input-component"; +export { default as MdSettingsInputComposite } from "./settings-input-composite"; +export { default as MdSettingsInputHdmi } from "./settings-input-hdmi"; +export { default as MdSettingsInputSvideo } from "./settings-input-svideo"; +export { default as MdSettingsOverscan } from "./settings-overscan"; +export { default as MdSettingsPhone } from "./settings-phone"; +export { default as MdSettingsPower } from "./settings-power"; +export { default as MdSettingsRemote } from "./settings-remote"; +export { default as MdSettingsSystemDaydream } from "./settings-system-daydream"; +export { default as MdSettingsVoice } from "./settings-voice"; +export { default as MdSettings } from "./settings"; +export { default as MdShare } from "./share"; +export { default as MdShopTwo } from "./shop-two"; +export { default as MdShop } from "./shop"; +export { default as MdShoppingBasket } from "./shopping-basket"; +export { default as MdShoppingCart } from "./shopping-cart"; +export { default as MdShortText } from "./short-text"; +export { default as MdShowChart } from "./show-chart"; +export { default as MdShuffle } from "./shuffle"; +export { default as MdSignalCellular4Bar } from "./signal-cellular-4-bar"; +export { default as MdSignalCellularConnectedNoInternet4Bar } from "./signal-cellular-connected-no-internet-4-bar"; +export { default as MdSignalCellularNoSim } from "./signal-cellular-no-sim"; +export { default as MdSignalCellularNull } from "./signal-cellular-null"; +export { default as MdSignalCellularOff } from "./signal-cellular-off"; +export { default as MdSignalWifi4BarLock } from "./signal-wifi-4-bar-lock"; +export { default as MdSignalWifi4Bar } from "./signal-wifi-4-bar"; +export { default as MdSignalWifiOff } from "./signal-wifi-off"; +export { default as MdSimCardAlert } from "./sim-card-alert"; +export { default as MdSimCard } from "./sim-card"; +export { default as MdSkipNext } from "./skip-next"; +export { default as MdSkipPrevious } from "./skip-previous"; +export { default as MdSlideshow } from "./slideshow"; +export { default as MdSlowMotionVideo } from "./slow-motion-video"; +export { default as MdSmartphone } from "./smartphone"; +export { default as MdSmokeFree } from "./smoke-free"; +export { default as MdSmokingRooms } from "./smoking-rooms"; +export { default as MdSmsFailed } from "./sms-failed"; +export { default as MdSms } from "./sms"; +export { default as MdSnooze } from "./snooze"; +export { default as MdSortByAlpha } from "./sort-by-alpha"; +export { default as MdSort } from "./sort"; +export { default as MdSpa } from "./spa"; +export { default as MdSpaceBar } from "./space-bar"; +export { default as MdSpeakerGroup } from "./speaker-group"; +export { default as MdSpeakerNotesOff } from "./speaker-notes-off"; +export { default as MdSpeakerNotes } from "./speaker-notes"; +export { default as MdSpeakerPhone } from "./speaker-phone"; +export { default as MdSpeaker } from "./speaker"; +export { default as MdSpellcheck } from "./spellcheck"; +export { default as MdStarBorder } from "./star-border"; +export { default as MdStarHalf } from "./star-half"; +export { default as MdStarOutline } from "./star-outline"; +export { default as MdStar } from "./star"; +export { default as MdStars } from "./stars"; +export { default as MdStayCurrentLandscape } from "./stay-current-landscape"; +export { default as MdStayCurrentPortrait } from "./stay-current-portrait"; +export { default as MdStayPrimaryLandscape } from "./stay-primary-landscape"; +export { default as MdStayPrimaryPortrait } from "./stay-primary-portrait"; +export { default as MdStopScreenShare } from "./stop-screen-share"; +export { default as MdStop } from "./stop"; +export { default as MdStorage } from "./storage"; +export { default as MdStoreMallDirectory } from "./store-mall-directory"; +export { default as MdStore } from "./store"; +export { default as MdStraighten } from "./straighten"; +export { default as MdStreetview } from "./streetview"; +export { default as MdStrikethroughS } from "./strikethrough-s"; +export { default as MdStyle } from "./style"; +export { default as MdSubdirectoryArrowLeft } from "./subdirectory-arrow-left"; +export { default as MdSubdirectoryArrowRight } from "./subdirectory-arrow-right"; +export { default as MdSubject } from "./subject"; +export { default as MdSubscriptions } from "./subscriptions"; +export { default as MdSubtitles } from "./subtitles"; +export { default as MdSubway } from "./subway"; +export { default as MdSupervisorAccount } from "./supervisor-account"; +export { default as MdSurroundSound } from "./surround-sound"; +export { default as MdSwapCalls } from "./swap-calls"; +export { default as MdSwapHoriz } from "./swap-horiz"; +export { default as MdSwapVert } from "./swap-vert"; +export { default as MdSwapVerticalCircle } from "./swap-vertical-circle"; +export { default as MdSwitchCamera } from "./switch-camera"; +export { default as MdSwitchVideo } from "./switch-video"; +export { default as MdSyncDisabled } from "./sync-disabled"; +export { default as MdSyncProblem } from "./sync-problem"; +export { default as MdSync } from "./sync"; +export { default as MdSystemUpdateAlt } from "./system-update-alt"; +export { default as MdSystemUpdate } from "./system-update"; +export { default as MdTabUnselected } from "./tab-unselected"; +export { default as MdTab } from "./tab"; +export { default as MdTabletAndroid } from "./tablet-android"; +export { default as MdTabletMac } from "./tablet-mac"; +export { default as MdTablet } from "./tablet"; +export { default as MdTagFaces } from "./tag-faces"; +export { default as MdTapAndPlay } from "./tap-and-play"; +export { default as MdTerrain } from "./terrain"; +export { default as MdTextFields } from "./text-fields"; +export { default as MdTextFormat } from "./text-format"; +export { default as MdTextsms } from "./textsms"; +export { default as MdTexture } from "./texture"; +export { default as MdTheaters } from "./theaters"; +export { default as MdThumbDown } from "./thumb-down"; +export { default as MdThumbUp } from "./thumb-up"; +export { default as MdThumbsUpDown } from "./thumbs-up-down"; +export { default as MdTimeToLeave } from "./time-to-leave"; +export { default as MdTimelapse } from "./timelapse"; +export { default as MdTimeline } from "./timeline"; +export { default as MdTimer10 } from "./timer-10"; +export { default as MdTimer3 } from "./timer-3"; +export { default as MdTimerOff } from "./timer-off"; +export { default as MdTimer } from "./timer"; +export { default as MdTitle } from "./title"; +export { default as MdToc } from "./toc"; +export { default as MdToday } from "./today"; +export { default as MdToll } from "./toll"; +export { default as MdTonality } from "./tonality"; +export { default as MdTouchApp } from "./touch-app"; +export { default as MdToys } from "./toys"; +export { default as MdTrackChanges } from "./track-changes"; +export { default as MdTraffic } from "./traffic"; +export { default as MdTrain } from "./train"; +export { default as MdTram } from "./tram"; +export { default as MdTransferWithinAStation } from "./transfer-within-a-station"; +export { default as MdTransform } from "./transform"; +export { default as MdTranslate } from "./translate"; +export { default as MdTrendingDown } from "./trending-down"; +export { default as MdTrendingFlat } from "./trending-flat"; +export { default as MdTrendingNeutral } from "./trending-neutral"; +export { default as MdTrendingUp } from "./trending-up"; +export { default as MdTune } from "./tune"; +export { default as MdTurnedInNot } from "./turned-in-not"; +export { default as MdTurnedIn } from "./turned-in"; +export { default as MdTv } from "./tv"; +export { default as MdUnarchive } from "./unarchive"; +export { default as MdUndo } from "./undo"; +export { default as MdUnfoldLess } from "./unfold-less"; +export { default as MdUnfoldMore } from "./unfold-more"; +export { default as MdUpdate } from "./update"; +export { default as MdUsb } from "./usb"; +export { default as MdVerifiedUser } from "./verified-user"; +export { default as MdVerticalAlignBottom } from "./vertical-align-bottom"; +export { default as MdVerticalAlignCenter } from "./vertical-align-center"; +export { default as MdVerticalAlignTop } from "./vertical-align-top"; +export { default as MdVibration } from "./vibration"; +export { default as MdVideoCall } from "./video-call"; +export { default as MdVideoCollection } from "./video-collection"; +export { default as MdVideoLabel } from "./video-label"; +export { default as MdVideoLibrary } from "./video-library"; +export { default as MdVideocamOff } from "./videocam-off"; +export { default as MdVideocam } from "./videocam"; +export { default as MdVideogameAsset } from "./videogame-asset"; +export { default as MdViewAgenda } from "./view-agenda"; +export { default as MdViewArray } from "./view-array"; +export { default as MdViewCarousel } from "./view-carousel"; +export { default as MdViewColumn } from "./view-column"; +export { default as MdViewComfortable } from "./view-comfortable"; +export { default as MdViewComfy } from "./view-comfy"; +export { default as MdViewCompact } from "./view-compact"; +export { default as MdViewDay } from "./view-day"; +export { default as MdViewHeadline } from "./view-headline"; +export { default as MdViewList } from "./view-list"; +export { default as MdViewModule } from "./view-module"; +export { default as MdViewQuilt } from "./view-quilt"; +export { default as MdViewStream } from "./view-stream"; +export { default as MdViewWeek } from "./view-week"; +export { default as MdVignette } from "./vignette"; +export { default as MdVisibilityOff } from "./visibility-off"; +export { default as MdVisibility } from "./visibility"; +export { default as MdVoiceChat } from "./voice-chat"; +export { default as MdVoicemail } from "./voicemail"; +export { default as MdVolumeDown } from "./volume-down"; +export { default as MdVolumeMute } from "./volume-mute"; +export { default as MdVolumeOff } from "./volume-off"; +export { default as MdVolumeUp } from "./volume-up"; +export { default as MdVpnKey } from "./vpn-key"; +export { default as MdVpnLock } from "./vpn-lock"; +export { default as MdWallpaper } from "./wallpaper"; +export { default as MdWarning } from "./warning"; +export { default as MdWatchLater } from "./watch-later"; +export { default as MdWatch } from "./watch"; +export { default as MdWbAuto } from "./wb-auto"; +export { default as MdWbCloudy } from "./wb-cloudy"; +export { default as MdWbIncandescent } from "./wb-incandescent"; +export { default as MdWbIridescent } from "./wb-iridescent"; +export { default as MdWbSunny } from "./wb-sunny"; +export { default as MdWc } from "./wc"; +export { default as MdWebAsset } from "./web-asset"; +export { default as MdWeb } from "./web"; +export { default as MdWeekend } from "./weekend"; +export { default as MdWhatshot } from "./whatshot"; +export { default as MdWidgets } from "./widgets"; +export { default as MdWifiLock } from "./wifi-lock"; +export { default as MdWifiTethering } from "./wifi-tethering"; +export { default as MdWifi } from "./wifi"; +export { default as MdWork } from "./work"; +export { default as MdWrapText } from "./wrap-text"; +export { default as MdYoutubeSearchedFor } from "./youtube-searched-for"; +export { default as MdZoomIn } from "./zoom-in"; +export { default as MdZoomOutMap } from "./zoom-out-map"; +export { default as MdZoomOut } from "./zoom-out"; diff --git a/types/react-icons/lib/md/info-outline.d.ts b/types/react-icons/lib/md/info-outline.d.ts new file mode 100644 index 0000000000..6ac0500f92 --- /dev/null +++ b/types/react-icons/lib/md/info-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInfoOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/info.d.ts b/types/react-icons/lib/md/info.d.ts new file mode 100644 index 0000000000..c16ac1add7 --- /dev/null +++ b/types/react-icons/lib/md/info.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInfo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/input.d.ts b/types/react-icons/lib/md/input.d.ts new file mode 100644 index 0000000000..1d620b29c8 --- /dev/null +++ b/types/react-icons/lib/md/input.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInput extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/insert-chart.d.ts b/types/react-icons/lib/md/insert-chart.d.ts new file mode 100644 index 0000000000..c3f11f837a --- /dev/null +++ b/types/react-icons/lib/md/insert-chart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInsertChart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/insert-comment.d.ts b/types/react-icons/lib/md/insert-comment.d.ts new file mode 100644 index 0000000000..4e9435029c --- /dev/null +++ b/types/react-icons/lib/md/insert-comment.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInsertComment extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/insert-drive-file.d.ts b/types/react-icons/lib/md/insert-drive-file.d.ts new file mode 100644 index 0000000000..cbef175f50 --- /dev/null +++ b/types/react-icons/lib/md/insert-drive-file.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInsertDriveFile extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/insert-emoticon.d.ts b/types/react-icons/lib/md/insert-emoticon.d.ts new file mode 100644 index 0000000000..5cce434cd9 --- /dev/null +++ b/types/react-icons/lib/md/insert-emoticon.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInsertEmoticon extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/insert-invitation.d.ts b/types/react-icons/lib/md/insert-invitation.d.ts new file mode 100644 index 0000000000..827e395a8d --- /dev/null +++ b/types/react-icons/lib/md/insert-invitation.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInsertInvitation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/insert-link.d.ts b/types/react-icons/lib/md/insert-link.d.ts new file mode 100644 index 0000000000..31aa91358d --- /dev/null +++ b/types/react-icons/lib/md/insert-link.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInsertLink extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/insert-photo.d.ts b/types/react-icons/lib/md/insert-photo.d.ts new file mode 100644 index 0000000000..7b023ca75f --- /dev/null +++ b/types/react-icons/lib/md/insert-photo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInsertPhoto extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/invert-colors-off.d.ts b/types/react-icons/lib/md/invert-colors-off.d.ts new file mode 100644 index 0000000000..bf08ac105a --- /dev/null +++ b/types/react-icons/lib/md/invert-colors-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInvertColorsOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/invert-colors-on.d.ts b/types/react-icons/lib/md/invert-colors-on.d.ts new file mode 100644 index 0000000000..41d3a30370 --- /dev/null +++ b/types/react-icons/lib/md/invert-colors-on.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInvertColorsOn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/invert-colors.d.ts b/types/react-icons/lib/md/invert-colors.d.ts new file mode 100644 index 0000000000..6700ad9028 --- /dev/null +++ b/types/react-icons/lib/md/invert-colors.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdInvertColors extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/iso.d.ts b/types/react-icons/lib/md/iso.d.ts new file mode 100644 index 0000000000..13e1d8da6c --- /dev/null +++ b/types/react-icons/lib/md/iso.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdIso extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/keyboard-arrow-down.d.ts b/types/react-icons/lib/md/keyboard-arrow-down.d.ts new file mode 100644 index 0000000000..2aa3a06de4 --- /dev/null +++ b/types/react-icons/lib/md/keyboard-arrow-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdKeyboardArrowDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/keyboard-arrow-left.d.ts b/types/react-icons/lib/md/keyboard-arrow-left.d.ts new file mode 100644 index 0000000000..6ab86f3bdc --- /dev/null +++ b/types/react-icons/lib/md/keyboard-arrow-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdKeyboardArrowLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/keyboard-arrow-right.d.ts b/types/react-icons/lib/md/keyboard-arrow-right.d.ts new file mode 100644 index 0000000000..157f9cd453 --- /dev/null +++ b/types/react-icons/lib/md/keyboard-arrow-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdKeyboardArrowRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/keyboard-arrow-up.d.ts b/types/react-icons/lib/md/keyboard-arrow-up.d.ts new file mode 100644 index 0000000000..be668094a8 --- /dev/null +++ b/types/react-icons/lib/md/keyboard-arrow-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdKeyboardArrowUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/keyboard-backspace.d.ts b/types/react-icons/lib/md/keyboard-backspace.d.ts new file mode 100644 index 0000000000..361b3eacb6 --- /dev/null +++ b/types/react-icons/lib/md/keyboard-backspace.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdKeyboardBackspace extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/keyboard-capslock.d.ts b/types/react-icons/lib/md/keyboard-capslock.d.ts new file mode 100644 index 0000000000..e68fb04dd4 --- /dev/null +++ b/types/react-icons/lib/md/keyboard-capslock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdKeyboardCapslock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/keyboard-control.d.ts b/types/react-icons/lib/md/keyboard-control.d.ts new file mode 100644 index 0000000000..26a47f7942 --- /dev/null +++ b/types/react-icons/lib/md/keyboard-control.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdKeyboardControl extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/keyboard-hide.d.ts b/types/react-icons/lib/md/keyboard-hide.d.ts new file mode 100644 index 0000000000..2bd9815962 --- /dev/null +++ b/types/react-icons/lib/md/keyboard-hide.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdKeyboardHide extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/keyboard-return.d.ts b/types/react-icons/lib/md/keyboard-return.d.ts new file mode 100644 index 0000000000..dcc67124f3 --- /dev/null +++ b/types/react-icons/lib/md/keyboard-return.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdKeyboardReturn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/keyboard-tab.d.ts b/types/react-icons/lib/md/keyboard-tab.d.ts new file mode 100644 index 0000000000..fc60cb1e9d --- /dev/null +++ b/types/react-icons/lib/md/keyboard-tab.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdKeyboardTab extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/keyboard-voice.d.ts b/types/react-icons/lib/md/keyboard-voice.d.ts new file mode 100644 index 0000000000..b0e8b84cef --- /dev/null +++ b/types/react-icons/lib/md/keyboard-voice.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdKeyboardVoice extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/keyboard.d.ts b/types/react-icons/lib/md/keyboard.d.ts new file mode 100644 index 0000000000..c48881b8b4 --- /dev/null +++ b/types/react-icons/lib/md/keyboard.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdKeyboard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/kitchen.d.ts b/types/react-icons/lib/md/kitchen.d.ts new file mode 100644 index 0000000000..9da8c6f762 --- /dev/null +++ b/types/react-icons/lib/md/kitchen.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdKitchen extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/label-outline.d.ts b/types/react-icons/lib/md/label-outline.d.ts new file mode 100644 index 0000000000..f8565aaac8 --- /dev/null +++ b/types/react-icons/lib/md/label-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLabelOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/label.d.ts b/types/react-icons/lib/md/label.d.ts new file mode 100644 index 0000000000..679636e231 --- /dev/null +++ b/types/react-icons/lib/md/label.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLabel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/landscape.d.ts b/types/react-icons/lib/md/landscape.d.ts new file mode 100644 index 0000000000..fb4502522b --- /dev/null +++ b/types/react-icons/lib/md/landscape.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLandscape extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/language.d.ts b/types/react-icons/lib/md/language.d.ts new file mode 100644 index 0000000000..a47388c654 --- /dev/null +++ b/types/react-icons/lib/md/language.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLanguage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/laptop-chromebook.d.ts b/types/react-icons/lib/md/laptop-chromebook.d.ts new file mode 100644 index 0000000000..d1f25cdc3b --- /dev/null +++ b/types/react-icons/lib/md/laptop-chromebook.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLaptopChromebook extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/laptop-mac.d.ts b/types/react-icons/lib/md/laptop-mac.d.ts new file mode 100644 index 0000000000..25afe25920 --- /dev/null +++ b/types/react-icons/lib/md/laptop-mac.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLaptopMac extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/laptop-windows.d.ts b/types/react-icons/lib/md/laptop-windows.d.ts new file mode 100644 index 0000000000..bd7441fea1 --- /dev/null +++ b/types/react-icons/lib/md/laptop-windows.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLaptopWindows extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/laptop.d.ts b/types/react-icons/lib/md/laptop.d.ts new file mode 100644 index 0000000000..2510020e0c --- /dev/null +++ b/types/react-icons/lib/md/laptop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLaptop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/last-page.d.ts b/types/react-icons/lib/md/last-page.d.ts new file mode 100644 index 0000000000..162f94c0de --- /dev/null +++ b/types/react-icons/lib/md/last-page.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLastPage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/launch.d.ts b/types/react-icons/lib/md/launch.d.ts new file mode 100644 index 0000000000..6bd2552cb3 --- /dev/null +++ b/types/react-icons/lib/md/launch.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLaunch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/layers-clear.d.ts b/types/react-icons/lib/md/layers-clear.d.ts new file mode 100644 index 0000000000..136d4ab797 --- /dev/null +++ b/types/react-icons/lib/md/layers-clear.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLayersClear extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/layers.d.ts b/types/react-icons/lib/md/layers.d.ts new file mode 100644 index 0000000000..d0f2ce7f78 --- /dev/null +++ b/types/react-icons/lib/md/layers.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLayers extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/leak-add.d.ts b/types/react-icons/lib/md/leak-add.d.ts new file mode 100644 index 0000000000..95235a4a7d --- /dev/null +++ b/types/react-icons/lib/md/leak-add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLeakAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/leak-remove.d.ts b/types/react-icons/lib/md/leak-remove.d.ts new file mode 100644 index 0000000000..024072b36a --- /dev/null +++ b/types/react-icons/lib/md/leak-remove.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLeakRemove extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/lens.d.ts b/types/react-icons/lib/md/lens.d.ts new file mode 100644 index 0000000000..c5d535560e --- /dev/null +++ b/types/react-icons/lib/md/lens.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLens extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/library-add.d.ts b/types/react-icons/lib/md/library-add.d.ts new file mode 100644 index 0000000000..0d1e45a2d1 --- /dev/null +++ b/types/react-icons/lib/md/library-add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLibraryAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/library-books.d.ts b/types/react-icons/lib/md/library-books.d.ts new file mode 100644 index 0000000000..4cd9469a0f --- /dev/null +++ b/types/react-icons/lib/md/library-books.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLibraryBooks extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/library-music.d.ts b/types/react-icons/lib/md/library-music.d.ts new file mode 100644 index 0000000000..7f25717011 --- /dev/null +++ b/types/react-icons/lib/md/library-music.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLibraryMusic extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/lightbulb-outline.d.ts b/types/react-icons/lib/md/lightbulb-outline.d.ts new file mode 100644 index 0000000000..013344155b --- /dev/null +++ b/types/react-icons/lib/md/lightbulb-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLightbulbOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/line-style.d.ts b/types/react-icons/lib/md/line-style.d.ts new file mode 100644 index 0000000000..01562f8705 --- /dev/null +++ b/types/react-icons/lib/md/line-style.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLineStyle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/line-weight.d.ts b/types/react-icons/lib/md/line-weight.d.ts new file mode 100644 index 0000000000..2eaa15b7df --- /dev/null +++ b/types/react-icons/lib/md/line-weight.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLineWeight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/linear-scale.d.ts b/types/react-icons/lib/md/linear-scale.d.ts new file mode 100644 index 0000000000..e4f2196d46 --- /dev/null +++ b/types/react-icons/lib/md/linear-scale.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLinearScale extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/link.d.ts b/types/react-icons/lib/md/link.d.ts new file mode 100644 index 0000000000..229a79db5d --- /dev/null +++ b/types/react-icons/lib/md/link.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLink extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/linked-camera.d.ts b/types/react-icons/lib/md/linked-camera.d.ts new file mode 100644 index 0000000000..04f1059032 --- /dev/null +++ b/types/react-icons/lib/md/linked-camera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLinkedCamera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/list.d.ts b/types/react-icons/lib/md/list.d.ts new file mode 100644 index 0000000000..ee687771dd --- /dev/null +++ b/types/react-icons/lib/md/list.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdList extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/live-help.d.ts b/types/react-icons/lib/md/live-help.d.ts new file mode 100644 index 0000000000..baa4ecfcea --- /dev/null +++ b/types/react-icons/lib/md/live-help.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLiveHelp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/live-tv.d.ts b/types/react-icons/lib/md/live-tv.d.ts new file mode 100644 index 0000000000..4b6700c6d7 --- /dev/null +++ b/types/react-icons/lib/md/live-tv.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLiveTv extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-airport.d.ts b/types/react-icons/lib/md/local-airport.d.ts new file mode 100644 index 0000000000..c5cbc96784 --- /dev/null +++ b/types/react-icons/lib/md/local-airport.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalAirport extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-atm.d.ts b/types/react-icons/lib/md/local-atm.d.ts new file mode 100644 index 0000000000..c3aebab325 --- /dev/null +++ b/types/react-icons/lib/md/local-atm.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalAtm extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-attraction.d.ts b/types/react-icons/lib/md/local-attraction.d.ts new file mode 100644 index 0000000000..4cb4733fc6 --- /dev/null +++ b/types/react-icons/lib/md/local-attraction.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalAttraction extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-bar.d.ts b/types/react-icons/lib/md/local-bar.d.ts new file mode 100644 index 0000000000..384cf80708 --- /dev/null +++ b/types/react-icons/lib/md/local-bar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalBar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-cafe.d.ts b/types/react-icons/lib/md/local-cafe.d.ts new file mode 100644 index 0000000000..1edc27271a --- /dev/null +++ b/types/react-icons/lib/md/local-cafe.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalCafe extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-car-wash.d.ts b/types/react-icons/lib/md/local-car-wash.d.ts new file mode 100644 index 0000000000..2f8e3424d0 --- /dev/null +++ b/types/react-icons/lib/md/local-car-wash.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalCarWash extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-convenience-store.d.ts b/types/react-icons/lib/md/local-convenience-store.d.ts new file mode 100644 index 0000000000..60ba5980c5 --- /dev/null +++ b/types/react-icons/lib/md/local-convenience-store.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalConvenienceStore extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-drink.d.ts b/types/react-icons/lib/md/local-drink.d.ts new file mode 100644 index 0000000000..dd0cf01d42 --- /dev/null +++ b/types/react-icons/lib/md/local-drink.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalDrink extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-florist.d.ts b/types/react-icons/lib/md/local-florist.d.ts new file mode 100644 index 0000000000..6744bc8c3a --- /dev/null +++ b/types/react-icons/lib/md/local-florist.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalFlorist extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-gas-station.d.ts b/types/react-icons/lib/md/local-gas-station.d.ts new file mode 100644 index 0000000000..6c6b7df0a9 --- /dev/null +++ b/types/react-icons/lib/md/local-gas-station.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalGasStation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-grocery-store.d.ts b/types/react-icons/lib/md/local-grocery-store.d.ts new file mode 100644 index 0000000000..74be93825c --- /dev/null +++ b/types/react-icons/lib/md/local-grocery-store.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalGroceryStore extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-hospital.d.ts b/types/react-icons/lib/md/local-hospital.d.ts new file mode 100644 index 0000000000..3f3d22c1f1 --- /dev/null +++ b/types/react-icons/lib/md/local-hospital.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalHospital extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-hotel.d.ts b/types/react-icons/lib/md/local-hotel.d.ts new file mode 100644 index 0000000000..72aa8116e3 --- /dev/null +++ b/types/react-icons/lib/md/local-hotel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalHotel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-laundry-service.d.ts b/types/react-icons/lib/md/local-laundry-service.d.ts new file mode 100644 index 0000000000..bcddaa57b7 --- /dev/null +++ b/types/react-icons/lib/md/local-laundry-service.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalLaundryService extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-library.d.ts b/types/react-icons/lib/md/local-library.d.ts new file mode 100644 index 0000000000..66345dec71 --- /dev/null +++ b/types/react-icons/lib/md/local-library.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalLibrary extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-mall.d.ts b/types/react-icons/lib/md/local-mall.d.ts new file mode 100644 index 0000000000..4bc0bd9a6c --- /dev/null +++ b/types/react-icons/lib/md/local-mall.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalMall extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-movies.d.ts b/types/react-icons/lib/md/local-movies.d.ts new file mode 100644 index 0000000000..fd585253f4 --- /dev/null +++ b/types/react-icons/lib/md/local-movies.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalMovies extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-offer.d.ts b/types/react-icons/lib/md/local-offer.d.ts new file mode 100644 index 0000000000..d68ec81829 --- /dev/null +++ b/types/react-icons/lib/md/local-offer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalOffer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-parking.d.ts b/types/react-icons/lib/md/local-parking.d.ts new file mode 100644 index 0000000000..962af582ac --- /dev/null +++ b/types/react-icons/lib/md/local-parking.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalParking extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-pharmacy.d.ts b/types/react-icons/lib/md/local-pharmacy.d.ts new file mode 100644 index 0000000000..4f6253241e --- /dev/null +++ b/types/react-icons/lib/md/local-pharmacy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalPharmacy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-phone.d.ts b/types/react-icons/lib/md/local-phone.d.ts new file mode 100644 index 0000000000..295b71d056 --- /dev/null +++ b/types/react-icons/lib/md/local-phone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalPhone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-pizza.d.ts b/types/react-icons/lib/md/local-pizza.d.ts new file mode 100644 index 0000000000..fd8f1e9b3f --- /dev/null +++ b/types/react-icons/lib/md/local-pizza.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalPizza extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-play.d.ts b/types/react-icons/lib/md/local-play.d.ts new file mode 100644 index 0000000000..2323020f1f --- /dev/null +++ b/types/react-icons/lib/md/local-play.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalPlay extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-post-office.d.ts b/types/react-icons/lib/md/local-post-office.d.ts new file mode 100644 index 0000000000..d753132d88 --- /dev/null +++ b/types/react-icons/lib/md/local-post-office.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalPostOffice extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-print-shop.d.ts b/types/react-icons/lib/md/local-print-shop.d.ts new file mode 100644 index 0000000000..f5f2318b18 --- /dev/null +++ b/types/react-icons/lib/md/local-print-shop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalPrintShop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-restaurant.d.ts b/types/react-icons/lib/md/local-restaurant.d.ts new file mode 100644 index 0000000000..631a9bcdba --- /dev/null +++ b/types/react-icons/lib/md/local-restaurant.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalRestaurant extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-see.d.ts b/types/react-icons/lib/md/local-see.d.ts new file mode 100644 index 0000000000..6c345a7bdd --- /dev/null +++ b/types/react-icons/lib/md/local-see.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalSee extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-shipping.d.ts b/types/react-icons/lib/md/local-shipping.d.ts new file mode 100644 index 0000000000..8862dc1e3f --- /dev/null +++ b/types/react-icons/lib/md/local-shipping.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalShipping extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/local-taxi.d.ts b/types/react-icons/lib/md/local-taxi.d.ts new file mode 100644 index 0000000000..ffee12d51a --- /dev/null +++ b/types/react-icons/lib/md/local-taxi.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocalTaxi extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/location-city.d.ts b/types/react-icons/lib/md/location-city.d.ts new file mode 100644 index 0000000000..d4154e0b4d --- /dev/null +++ b/types/react-icons/lib/md/location-city.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocationCity extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/location-disabled.d.ts b/types/react-icons/lib/md/location-disabled.d.ts new file mode 100644 index 0000000000..f890985e4c --- /dev/null +++ b/types/react-icons/lib/md/location-disabled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocationDisabled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/location-history.d.ts b/types/react-icons/lib/md/location-history.d.ts new file mode 100644 index 0000000000..6d7ae193ef --- /dev/null +++ b/types/react-icons/lib/md/location-history.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocationHistory extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/location-off.d.ts b/types/react-icons/lib/md/location-off.d.ts new file mode 100644 index 0000000000..ae7c278991 --- /dev/null +++ b/types/react-icons/lib/md/location-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocationOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/location-on.d.ts b/types/react-icons/lib/md/location-on.d.ts new file mode 100644 index 0000000000..9a606064c1 --- /dev/null +++ b/types/react-icons/lib/md/location-on.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocationOn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/location-searching.d.ts b/types/react-icons/lib/md/location-searching.d.ts new file mode 100644 index 0000000000..89860efc3f --- /dev/null +++ b/types/react-icons/lib/md/location-searching.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLocationSearching extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/lock-open.d.ts b/types/react-icons/lib/md/lock-open.d.ts new file mode 100644 index 0000000000..c61129c43a --- /dev/null +++ b/types/react-icons/lib/md/lock-open.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLockOpen extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/lock-outline.d.ts b/types/react-icons/lib/md/lock-outline.d.ts new file mode 100644 index 0000000000..8d8c854627 --- /dev/null +++ b/types/react-icons/lib/md/lock-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLockOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/lock.d.ts b/types/react-icons/lib/md/lock.d.ts new file mode 100644 index 0000000000..08c9bebbec --- /dev/null +++ b/types/react-icons/lib/md/lock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/looks-3.d.ts b/types/react-icons/lib/md/looks-3.d.ts new file mode 100644 index 0000000000..91ec18b0fa --- /dev/null +++ b/types/react-icons/lib/md/looks-3.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLooks3 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/looks-4.d.ts b/types/react-icons/lib/md/looks-4.d.ts new file mode 100644 index 0000000000..2005a3ef6c --- /dev/null +++ b/types/react-icons/lib/md/looks-4.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLooks4 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/looks-5.d.ts b/types/react-icons/lib/md/looks-5.d.ts new file mode 100644 index 0000000000..0e4c8830df --- /dev/null +++ b/types/react-icons/lib/md/looks-5.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLooks5 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/looks-6.d.ts b/types/react-icons/lib/md/looks-6.d.ts new file mode 100644 index 0000000000..b00d207ffc --- /dev/null +++ b/types/react-icons/lib/md/looks-6.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLooks6 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/looks-one.d.ts b/types/react-icons/lib/md/looks-one.d.ts new file mode 100644 index 0000000000..129ebbc28b --- /dev/null +++ b/types/react-icons/lib/md/looks-one.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLooksOne extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/looks-two.d.ts b/types/react-icons/lib/md/looks-two.d.ts new file mode 100644 index 0000000000..5f62cb2173 --- /dev/null +++ b/types/react-icons/lib/md/looks-two.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLooksTwo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/looks.d.ts b/types/react-icons/lib/md/looks.d.ts new file mode 100644 index 0000000000..5db0141f58 --- /dev/null +++ b/types/react-icons/lib/md/looks.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLooks extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/loop.d.ts b/types/react-icons/lib/md/loop.d.ts new file mode 100644 index 0000000000..8e7f90aad0 --- /dev/null +++ b/types/react-icons/lib/md/loop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLoop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/loupe.d.ts b/types/react-icons/lib/md/loupe.d.ts new file mode 100644 index 0000000000..8b7e0a54f1 --- /dev/null +++ b/types/react-icons/lib/md/loupe.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLoupe extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/low-priority.d.ts b/types/react-icons/lib/md/low-priority.d.ts new file mode 100644 index 0000000000..61f7f79811 --- /dev/null +++ b/types/react-icons/lib/md/low-priority.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLowPriority extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/loyalty.d.ts b/types/react-icons/lib/md/loyalty.d.ts new file mode 100644 index 0000000000..de4ad7303f --- /dev/null +++ b/types/react-icons/lib/md/loyalty.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdLoyalty extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/mail-outline.d.ts b/types/react-icons/lib/md/mail-outline.d.ts new file mode 100644 index 0000000000..e2ea724b8c --- /dev/null +++ b/types/react-icons/lib/md/mail-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMailOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/mail.d.ts b/types/react-icons/lib/md/mail.d.ts new file mode 100644 index 0000000000..4d6ae8563e --- /dev/null +++ b/types/react-icons/lib/md/mail.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMail extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/map.d.ts b/types/react-icons/lib/md/map.d.ts new file mode 100644 index 0000000000..e5199af23c --- /dev/null +++ b/types/react-icons/lib/md/map.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMap extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/markunread-mailbox.d.ts b/types/react-icons/lib/md/markunread-mailbox.d.ts new file mode 100644 index 0000000000..ba5d9a5982 --- /dev/null +++ b/types/react-icons/lib/md/markunread-mailbox.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMarkunreadMailbox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/markunread.d.ts b/types/react-icons/lib/md/markunread.d.ts new file mode 100644 index 0000000000..bcf1ac3569 --- /dev/null +++ b/types/react-icons/lib/md/markunread.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMarkunread extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/memory.d.ts b/types/react-icons/lib/md/memory.d.ts new file mode 100644 index 0000000000..507da2a21c --- /dev/null +++ b/types/react-icons/lib/md/memory.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMemory extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/menu.d.ts b/types/react-icons/lib/md/menu.d.ts new file mode 100644 index 0000000000..8d71a1981f --- /dev/null +++ b/types/react-icons/lib/md/menu.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMenu extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/merge-type.d.ts b/types/react-icons/lib/md/merge-type.d.ts new file mode 100644 index 0000000000..40e48a7b93 --- /dev/null +++ b/types/react-icons/lib/md/merge-type.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMergeType extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/message.d.ts b/types/react-icons/lib/md/message.d.ts new file mode 100644 index 0000000000..64488ed66b --- /dev/null +++ b/types/react-icons/lib/md/message.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMessage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/mic-none.d.ts b/types/react-icons/lib/md/mic-none.d.ts new file mode 100644 index 0000000000..5b71761c02 --- /dev/null +++ b/types/react-icons/lib/md/mic-none.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMicNone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/mic-off.d.ts b/types/react-icons/lib/md/mic-off.d.ts new file mode 100644 index 0000000000..ce68ec3b85 --- /dev/null +++ b/types/react-icons/lib/md/mic-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMicOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/mic.d.ts b/types/react-icons/lib/md/mic.d.ts new file mode 100644 index 0000000000..e827c93aee --- /dev/null +++ b/types/react-icons/lib/md/mic.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMic extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/mms.d.ts b/types/react-icons/lib/md/mms.d.ts new file mode 100644 index 0000000000..dd4635435c --- /dev/null +++ b/types/react-icons/lib/md/mms.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMms extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/mode-comment.d.ts b/types/react-icons/lib/md/mode-comment.d.ts new file mode 100644 index 0000000000..4e70e6a57e --- /dev/null +++ b/types/react-icons/lib/md/mode-comment.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdModeComment extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/mode-edit.d.ts b/types/react-icons/lib/md/mode-edit.d.ts new file mode 100644 index 0000000000..8ba0f1809c --- /dev/null +++ b/types/react-icons/lib/md/mode-edit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdModeEdit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/monetization-on.d.ts b/types/react-icons/lib/md/monetization-on.d.ts new file mode 100644 index 0000000000..5fbac94cd6 --- /dev/null +++ b/types/react-icons/lib/md/monetization-on.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMonetizationOn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/money-off.d.ts b/types/react-icons/lib/md/money-off.d.ts new file mode 100644 index 0000000000..682df0c9e9 --- /dev/null +++ b/types/react-icons/lib/md/money-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMoneyOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/monochrome-photos.d.ts b/types/react-icons/lib/md/monochrome-photos.d.ts new file mode 100644 index 0000000000..57d0224d92 --- /dev/null +++ b/types/react-icons/lib/md/monochrome-photos.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMonochromePhotos extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/mood-bad.d.ts b/types/react-icons/lib/md/mood-bad.d.ts new file mode 100644 index 0000000000..6cb4070c36 --- /dev/null +++ b/types/react-icons/lib/md/mood-bad.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMoodBad extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/mood.d.ts b/types/react-icons/lib/md/mood.d.ts new file mode 100644 index 0000000000..fd15fc4d9d --- /dev/null +++ b/types/react-icons/lib/md/mood.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMood extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/more-horiz.d.ts b/types/react-icons/lib/md/more-horiz.d.ts new file mode 100644 index 0000000000..dd46d5526c --- /dev/null +++ b/types/react-icons/lib/md/more-horiz.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMoreHoriz extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/more-vert.d.ts b/types/react-icons/lib/md/more-vert.d.ts new file mode 100644 index 0000000000..9c1080b74a --- /dev/null +++ b/types/react-icons/lib/md/more-vert.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMoreVert extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/more.d.ts b/types/react-icons/lib/md/more.d.ts new file mode 100644 index 0000000000..395fe8b215 --- /dev/null +++ b/types/react-icons/lib/md/more.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMore extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/motorcycle.d.ts b/types/react-icons/lib/md/motorcycle.d.ts new file mode 100644 index 0000000000..b06e285368 --- /dev/null +++ b/types/react-icons/lib/md/motorcycle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMotorcycle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/mouse.d.ts b/types/react-icons/lib/md/mouse.d.ts new file mode 100644 index 0000000000..6b48389af1 --- /dev/null +++ b/types/react-icons/lib/md/mouse.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMouse extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/move-to-inbox.d.ts b/types/react-icons/lib/md/move-to-inbox.d.ts new file mode 100644 index 0000000000..2723e6516e --- /dev/null +++ b/types/react-icons/lib/md/move-to-inbox.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMoveToInbox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/movie-creation.d.ts b/types/react-icons/lib/md/movie-creation.d.ts new file mode 100644 index 0000000000..1e795092d6 --- /dev/null +++ b/types/react-icons/lib/md/movie-creation.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMovieCreation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/movie-filter.d.ts b/types/react-icons/lib/md/movie-filter.d.ts new file mode 100644 index 0000000000..22da6198e8 --- /dev/null +++ b/types/react-icons/lib/md/movie-filter.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMovieFilter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/movie.d.ts b/types/react-icons/lib/md/movie.d.ts new file mode 100644 index 0000000000..7982199452 --- /dev/null +++ b/types/react-icons/lib/md/movie.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMovie extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/multiline-chart.d.ts b/types/react-icons/lib/md/multiline-chart.d.ts new file mode 100644 index 0000000000..03aba87bc1 --- /dev/null +++ b/types/react-icons/lib/md/multiline-chart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMultilineChart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/music-note.d.ts b/types/react-icons/lib/md/music-note.d.ts new file mode 100644 index 0000000000..b3c161252e --- /dev/null +++ b/types/react-icons/lib/md/music-note.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMusicNote extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/music-video.d.ts b/types/react-icons/lib/md/music-video.d.ts new file mode 100644 index 0000000000..e7c4890596 --- /dev/null +++ b/types/react-icons/lib/md/music-video.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMusicVideo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/my-location.d.ts b/types/react-icons/lib/md/my-location.d.ts new file mode 100644 index 0000000000..e9e49e3638 --- /dev/null +++ b/types/react-icons/lib/md/my-location.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdMyLocation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/nature-people.d.ts b/types/react-icons/lib/md/nature-people.d.ts new file mode 100644 index 0000000000..123a578eff --- /dev/null +++ b/types/react-icons/lib/md/nature-people.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNaturePeople extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/nature.d.ts b/types/react-icons/lib/md/nature.d.ts new file mode 100644 index 0000000000..14b871e450 --- /dev/null +++ b/types/react-icons/lib/md/nature.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNature extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/navigate-before.d.ts b/types/react-icons/lib/md/navigate-before.d.ts new file mode 100644 index 0000000000..e66fdc2c7b --- /dev/null +++ b/types/react-icons/lib/md/navigate-before.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNavigateBefore extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/navigate-next.d.ts b/types/react-icons/lib/md/navigate-next.d.ts new file mode 100644 index 0000000000..f39bad2270 --- /dev/null +++ b/types/react-icons/lib/md/navigate-next.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNavigateNext extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/navigation.d.ts b/types/react-icons/lib/md/navigation.d.ts new file mode 100644 index 0000000000..be44444790 --- /dev/null +++ b/types/react-icons/lib/md/navigation.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNavigation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/near-me.d.ts b/types/react-icons/lib/md/near-me.d.ts new file mode 100644 index 0000000000..a1fe717c03 --- /dev/null +++ b/types/react-icons/lib/md/near-me.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNearMe extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/network-cell.d.ts b/types/react-icons/lib/md/network-cell.d.ts new file mode 100644 index 0000000000..9dc116de65 --- /dev/null +++ b/types/react-icons/lib/md/network-cell.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNetworkCell extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/network-check.d.ts b/types/react-icons/lib/md/network-check.d.ts new file mode 100644 index 0000000000..3497ab3224 --- /dev/null +++ b/types/react-icons/lib/md/network-check.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNetworkCheck extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/network-locked.d.ts b/types/react-icons/lib/md/network-locked.d.ts new file mode 100644 index 0000000000..e7e66850e4 --- /dev/null +++ b/types/react-icons/lib/md/network-locked.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNetworkLocked extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/network-wifi.d.ts b/types/react-icons/lib/md/network-wifi.d.ts new file mode 100644 index 0000000000..2c9097fc57 --- /dev/null +++ b/types/react-icons/lib/md/network-wifi.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNetworkWifi extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/new-releases.d.ts b/types/react-icons/lib/md/new-releases.d.ts new file mode 100644 index 0000000000..4ff4c3e21f --- /dev/null +++ b/types/react-icons/lib/md/new-releases.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNewReleases extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/next-week.d.ts b/types/react-icons/lib/md/next-week.d.ts new file mode 100644 index 0000000000..4754bfc5c5 --- /dev/null +++ b/types/react-icons/lib/md/next-week.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNextWeek extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/nfc.d.ts b/types/react-icons/lib/md/nfc.d.ts new file mode 100644 index 0000000000..521ad7fe89 --- /dev/null +++ b/types/react-icons/lib/md/nfc.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNfc extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/no-encryption.d.ts b/types/react-icons/lib/md/no-encryption.d.ts new file mode 100644 index 0000000000..038f3eef3f --- /dev/null +++ b/types/react-icons/lib/md/no-encryption.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNoEncryption extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/no-sim.d.ts b/types/react-icons/lib/md/no-sim.d.ts new file mode 100644 index 0000000000..09e6165201 --- /dev/null +++ b/types/react-icons/lib/md/no-sim.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNoSim extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/not-interested.d.ts b/types/react-icons/lib/md/not-interested.d.ts new file mode 100644 index 0000000000..a21c3ca574 --- /dev/null +++ b/types/react-icons/lib/md/not-interested.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNotInterested extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/note-add.d.ts b/types/react-icons/lib/md/note-add.d.ts new file mode 100644 index 0000000000..7673a94b3c --- /dev/null +++ b/types/react-icons/lib/md/note-add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNoteAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/note.d.ts b/types/react-icons/lib/md/note.d.ts new file mode 100644 index 0000000000..757dfc63fc --- /dev/null +++ b/types/react-icons/lib/md/note.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNote extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/notifications-active.d.ts b/types/react-icons/lib/md/notifications-active.d.ts new file mode 100644 index 0000000000..afb7f84483 --- /dev/null +++ b/types/react-icons/lib/md/notifications-active.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNotificationsActive extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/notifications-none.d.ts b/types/react-icons/lib/md/notifications-none.d.ts new file mode 100644 index 0000000000..d1667a5307 --- /dev/null +++ b/types/react-icons/lib/md/notifications-none.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNotificationsNone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/notifications-off.d.ts b/types/react-icons/lib/md/notifications-off.d.ts new file mode 100644 index 0000000000..ea413b9d5c --- /dev/null +++ b/types/react-icons/lib/md/notifications-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNotificationsOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/notifications-paused.d.ts b/types/react-icons/lib/md/notifications-paused.d.ts new file mode 100644 index 0000000000..7181f702a7 --- /dev/null +++ b/types/react-icons/lib/md/notifications-paused.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNotificationsPaused extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/notifications.d.ts b/types/react-icons/lib/md/notifications.d.ts new file mode 100644 index 0000000000..14de6c4b4e --- /dev/null +++ b/types/react-icons/lib/md/notifications.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNotifications extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/now-wallpaper.d.ts b/types/react-icons/lib/md/now-wallpaper.d.ts new file mode 100644 index 0000000000..076ec5c4bf --- /dev/null +++ b/types/react-icons/lib/md/now-wallpaper.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNowWallpaper extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/now-widgets.d.ts b/types/react-icons/lib/md/now-widgets.d.ts new file mode 100644 index 0000000000..0242391941 --- /dev/null +++ b/types/react-icons/lib/md/now-widgets.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdNowWidgets extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/offline-pin.d.ts b/types/react-icons/lib/md/offline-pin.d.ts new file mode 100644 index 0000000000..0c691eb46c --- /dev/null +++ b/types/react-icons/lib/md/offline-pin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdOfflinePin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/ondemand-video.d.ts b/types/react-icons/lib/md/ondemand-video.d.ts new file mode 100644 index 0000000000..2abd212bc0 --- /dev/null +++ b/types/react-icons/lib/md/ondemand-video.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdOndemandVideo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/opacity.d.ts b/types/react-icons/lib/md/opacity.d.ts new file mode 100644 index 0000000000..abf5830ea6 --- /dev/null +++ b/types/react-icons/lib/md/opacity.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdOpacity extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/open-in-browser.d.ts b/types/react-icons/lib/md/open-in-browser.d.ts new file mode 100644 index 0000000000..52bb107a78 --- /dev/null +++ b/types/react-icons/lib/md/open-in-browser.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdOpenInBrowser extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/open-in-new.d.ts b/types/react-icons/lib/md/open-in-new.d.ts new file mode 100644 index 0000000000..c9cdd9711c --- /dev/null +++ b/types/react-icons/lib/md/open-in-new.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdOpenInNew extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/open-with.d.ts b/types/react-icons/lib/md/open-with.d.ts new file mode 100644 index 0000000000..400d1e0deb --- /dev/null +++ b/types/react-icons/lib/md/open-with.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdOpenWith extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/pages.d.ts b/types/react-icons/lib/md/pages.d.ts new file mode 100644 index 0000000000..6a156250cc --- /dev/null +++ b/types/react-icons/lib/md/pages.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPages extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/pageview.d.ts b/types/react-icons/lib/md/pageview.d.ts new file mode 100644 index 0000000000..f69c0ee9f2 --- /dev/null +++ b/types/react-icons/lib/md/pageview.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPageview extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/palette.d.ts b/types/react-icons/lib/md/palette.d.ts new file mode 100644 index 0000000000..823c529566 --- /dev/null +++ b/types/react-icons/lib/md/palette.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPalette extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/pan-tool.d.ts b/types/react-icons/lib/md/pan-tool.d.ts new file mode 100644 index 0000000000..b208116369 --- /dev/null +++ b/types/react-icons/lib/md/pan-tool.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPanTool extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/panorama-fish-eye.d.ts b/types/react-icons/lib/md/panorama-fish-eye.d.ts new file mode 100644 index 0000000000..29420599ae --- /dev/null +++ b/types/react-icons/lib/md/panorama-fish-eye.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPanoramaFishEye extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/panorama-horizontal.d.ts b/types/react-icons/lib/md/panorama-horizontal.d.ts new file mode 100644 index 0000000000..201fb72074 --- /dev/null +++ b/types/react-icons/lib/md/panorama-horizontal.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPanoramaHorizontal extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/panorama-vertical.d.ts b/types/react-icons/lib/md/panorama-vertical.d.ts new file mode 100644 index 0000000000..460041e27d --- /dev/null +++ b/types/react-icons/lib/md/panorama-vertical.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPanoramaVertical extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/panorama-wide-angle.d.ts b/types/react-icons/lib/md/panorama-wide-angle.d.ts new file mode 100644 index 0000000000..58bf2f6a41 --- /dev/null +++ b/types/react-icons/lib/md/panorama-wide-angle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPanoramaWideAngle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/panorama.d.ts b/types/react-icons/lib/md/panorama.d.ts new file mode 100644 index 0000000000..ce2631733d --- /dev/null +++ b/types/react-icons/lib/md/panorama.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPanorama extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/party-mode.d.ts b/types/react-icons/lib/md/party-mode.d.ts new file mode 100644 index 0000000000..61270bf1f0 --- /dev/null +++ b/types/react-icons/lib/md/party-mode.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPartyMode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/pause-circle-filled.d.ts b/types/react-icons/lib/md/pause-circle-filled.d.ts new file mode 100644 index 0000000000..8dcc944037 --- /dev/null +++ b/types/react-icons/lib/md/pause-circle-filled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPauseCircleFilled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/pause-circle-outline.d.ts b/types/react-icons/lib/md/pause-circle-outline.d.ts new file mode 100644 index 0000000000..c694731521 --- /dev/null +++ b/types/react-icons/lib/md/pause-circle-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPauseCircleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/pause.d.ts b/types/react-icons/lib/md/pause.d.ts new file mode 100644 index 0000000000..29d68353f7 --- /dev/null +++ b/types/react-icons/lib/md/pause.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPause extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/payment.d.ts b/types/react-icons/lib/md/payment.d.ts new file mode 100644 index 0000000000..bd2439d38c --- /dev/null +++ b/types/react-icons/lib/md/payment.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPayment extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/people-outline.d.ts b/types/react-icons/lib/md/people-outline.d.ts new file mode 100644 index 0000000000..88a012742e --- /dev/null +++ b/types/react-icons/lib/md/people-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPeopleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/people.d.ts b/types/react-icons/lib/md/people.d.ts new file mode 100644 index 0000000000..75f9cbfe7e --- /dev/null +++ b/types/react-icons/lib/md/people.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPeople extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/perm-camera-mic.d.ts b/types/react-icons/lib/md/perm-camera-mic.d.ts new file mode 100644 index 0000000000..a17acb8788 --- /dev/null +++ b/types/react-icons/lib/md/perm-camera-mic.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPermCameraMic extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/perm-contact-calendar.d.ts b/types/react-icons/lib/md/perm-contact-calendar.d.ts new file mode 100644 index 0000000000..3b2105a7cf --- /dev/null +++ b/types/react-icons/lib/md/perm-contact-calendar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPermContactCalendar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/perm-data-setting.d.ts b/types/react-icons/lib/md/perm-data-setting.d.ts new file mode 100644 index 0000000000..18d108d14f --- /dev/null +++ b/types/react-icons/lib/md/perm-data-setting.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPermDataSetting extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/perm-device-information.d.ts b/types/react-icons/lib/md/perm-device-information.d.ts new file mode 100644 index 0000000000..db2dfcc07b --- /dev/null +++ b/types/react-icons/lib/md/perm-device-information.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPermDeviceInformation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/perm-identity.d.ts b/types/react-icons/lib/md/perm-identity.d.ts new file mode 100644 index 0000000000..d56d0b3c37 --- /dev/null +++ b/types/react-icons/lib/md/perm-identity.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPermIdentity extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/perm-media.d.ts b/types/react-icons/lib/md/perm-media.d.ts new file mode 100644 index 0000000000..36f4bee6a7 --- /dev/null +++ b/types/react-icons/lib/md/perm-media.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPermMedia extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/perm-phone-msg.d.ts b/types/react-icons/lib/md/perm-phone-msg.d.ts new file mode 100644 index 0000000000..6352e415a6 --- /dev/null +++ b/types/react-icons/lib/md/perm-phone-msg.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPermPhoneMsg extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/perm-scan-wifi.d.ts b/types/react-icons/lib/md/perm-scan-wifi.d.ts new file mode 100644 index 0000000000..20bb1186e4 --- /dev/null +++ b/types/react-icons/lib/md/perm-scan-wifi.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPermScanWifi extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/person-add.d.ts b/types/react-icons/lib/md/person-add.d.ts new file mode 100644 index 0000000000..12887556b7 --- /dev/null +++ b/types/react-icons/lib/md/person-add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPersonAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/person-outline.d.ts b/types/react-icons/lib/md/person-outline.d.ts new file mode 100644 index 0000000000..fe49015f3f --- /dev/null +++ b/types/react-icons/lib/md/person-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPersonOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/person-pin-circle.d.ts b/types/react-icons/lib/md/person-pin-circle.d.ts new file mode 100644 index 0000000000..a26c822211 --- /dev/null +++ b/types/react-icons/lib/md/person-pin-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPersonPinCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/person-pin.d.ts b/types/react-icons/lib/md/person-pin.d.ts new file mode 100644 index 0000000000..ab1aa735eb --- /dev/null +++ b/types/react-icons/lib/md/person-pin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPersonPin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/person.d.ts b/types/react-icons/lib/md/person.d.ts new file mode 100644 index 0000000000..bcae2bbac8 --- /dev/null +++ b/types/react-icons/lib/md/person.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPerson extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/personal-video.d.ts b/types/react-icons/lib/md/personal-video.d.ts new file mode 100644 index 0000000000..0fece81d04 --- /dev/null +++ b/types/react-icons/lib/md/personal-video.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPersonalVideo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/pets.d.ts b/types/react-icons/lib/md/pets.d.ts new file mode 100644 index 0000000000..94bc0005e8 --- /dev/null +++ b/types/react-icons/lib/md/pets.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPets extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phone-android.d.ts b/types/react-icons/lib/md/phone-android.d.ts new file mode 100644 index 0000000000..aa43921b51 --- /dev/null +++ b/types/react-icons/lib/md/phone-android.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhoneAndroid extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phone-bluetooth-speaker.d.ts b/types/react-icons/lib/md/phone-bluetooth-speaker.d.ts new file mode 100644 index 0000000000..08e2cd6791 --- /dev/null +++ b/types/react-icons/lib/md/phone-bluetooth-speaker.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhoneBluetoothSpeaker extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phone-forwarded.d.ts b/types/react-icons/lib/md/phone-forwarded.d.ts new file mode 100644 index 0000000000..8363d7e3ec --- /dev/null +++ b/types/react-icons/lib/md/phone-forwarded.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhoneForwarded extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phone-in-talk.d.ts b/types/react-icons/lib/md/phone-in-talk.d.ts new file mode 100644 index 0000000000..430f87b4e4 --- /dev/null +++ b/types/react-icons/lib/md/phone-in-talk.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhoneInTalk extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phone-iphone.d.ts b/types/react-icons/lib/md/phone-iphone.d.ts new file mode 100644 index 0000000000..8704ae8ad4 --- /dev/null +++ b/types/react-icons/lib/md/phone-iphone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhoneIphone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phone-locked.d.ts b/types/react-icons/lib/md/phone-locked.d.ts new file mode 100644 index 0000000000..68ca6e9376 --- /dev/null +++ b/types/react-icons/lib/md/phone-locked.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhoneLocked extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phone-missed.d.ts b/types/react-icons/lib/md/phone-missed.d.ts new file mode 100644 index 0000000000..91b97ca8e9 --- /dev/null +++ b/types/react-icons/lib/md/phone-missed.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhoneMissed extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phone-paused.d.ts b/types/react-icons/lib/md/phone-paused.d.ts new file mode 100644 index 0000000000..ba3f998fd8 --- /dev/null +++ b/types/react-icons/lib/md/phone-paused.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhonePaused extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phone.d.ts b/types/react-icons/lib/md/phone.d.ts new file mode 100644 index 0000000000..6318cdc39d --- /dev/null +++ b/types/react-icons/lib/md/phone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phonelink-erase.d.ts b/types/react-icons/lib/md/phonelink-erase.d.ts new file mode 100644 index 0000000000..b0cbec1c39 --- /dev/null +++ b/types/react-icons/lib/md/phonelink-erase.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhonelinkErase extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phonelink-lock.d.ts b/types/react-icons/lib/md/phonelink-lock.d.ts new file mode 100644 index 0000000000..5bb479ddc0 --- /dev/null +++ b/types/react-icons/lib/md/phonelink-lock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhonelinkLock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phonelink-off.d.ts b/types/react-icons/lib/md/phonelink-off.d.ts new file mode 100644 index 0000000000..ec245ecd6f --- /dev/null +++ b/types/react-icons/lib/md/phonelink-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhonelinkOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phonelink-ring.d.ts b/types/react-icons/lib/md/phonelink-ring.d.ts new file mode 100644 index 0000000000..f14d93a479 --- /dev/null +++ b/types/react-icons/lib/md/phonelink-ring.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhonelinkRing extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phonelink-setup.d.ts b/types/react-icons/lib/md/phonelink-setup.d.ts new file mode 100644 index 0000000000..dd21188bb5 --- /dev/null +++ b/types/react-icons/lib/md/phonelink-setup.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhonelinkSetup extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/phonelink.d.ts b/types/react-icons/lib/md/phonelink.d.ts new file mode 100644 index 0000000000..6aa5af39d7 --- /dev/null +++ b/types/react-icons/lib/md/phonelink.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhonelink extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/photo-album.d.ts b/types/react-icons/lib/md/photo-album.d.ts new file mode 100644 index 0000000000..116f8b1ff6 --- /dev/null +++ b/types/react-icons/lib/md/photo-album.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhotoAlbum extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/photo-camera.d.ts b/types/react-icons/lib/md/photo-camera.d.ts new file mode 100644 index 0000000000..9ca8814377 --- /dev/null +++ b/types/react-icons/lib/md/photo-camera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhotoCamera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/photo-filter.d.ts b/types/react-icons/lib/md/photo-filter.d.ts new file mode 100644 index 0000000000..e2b37a4b91 --- /dev/null +++ b/types/react-icons/lib/md/photo-filter.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhotoFilter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/photo-library.d.ts b/types/react-icons/lib/md/photo-library.d.ts new file mode 100644 index 0000000000..3ec4c29cac --- /dev/null +++ b/types/react-icons/lib/md/photo-library.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhotoLibrary extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/photo-size-select-actual.d.ts b/types/react-icons/lib/md/photo-size-select-actual.d.ts new file mode 100644 index 0000000000..15e1777cf0 --- /dev/null +++ b/types/react-icons/lib/md/photo-size-select-actual.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhotoSizeSelectActual extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/photo-size-select-large.d.ts b/types/react-icons/lib/md/photo-size-select-large.d.ts new file mode 100644 index 0000000000..56025586af --- /dev/null +++ b/types/react-icons/lib/md/photo-size-select-large.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhotoSizeSelectLarge extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/photo-size-select-small.d.ts b/types/react-icons/lib/md/photo-size-select-small.d.ts new file mode 100644 index 0000000000..f1a2547ff6 --- /dev/null +++ b/types/react-icons/lib/md/photo-size-select-small.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhotoSizeSelectSmall extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/photo.d.ts b/types/react-icons/lib/md/photo.d.ts new file mode 100644 index 0000000000..3af5e8d6b9 --- /dev/null +++ b/types/react-icons/lib/md/photo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPhoto extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/picture-as-pdf.d.ts b/types/react-icons/lib/md/picture-as-pdf.d.ts new file mode 100644 index 0000000000..06fd1dfb31 --- /dev/null +++ b/types/react-icons/lib/md/picture-as-pdf.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPictureAsPdf extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/picture-in-picture-alt.d.ts b/types/react-icons/lib/md/picture-in-picture-alt.d.ts new file mode 100644 index 0000000000..41a6b03404 --- /dev/null +++ b/types/react-icons/lib/md/picture-in-picture-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPictureInPictureAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/picture-in-picture.d.ts b/types/react-icons/lib/md/picture-in-picture.d.ts new file mode 100644 index 0000000000..e174bddfd7 --- /dev/null +++ b/types/react-icons/lib/md/picture-in-picture.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPictureInPicture extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/pie-chart-outlined.d.ts b/types/react-icons/lib/md/pie-chart-outlined.d.ts new file mode 100644 index 0000000000..8fdaa68aee --- /dev/null +++ b/types/react-icons/lib/md/pie-chart-outlined.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPieChartOutlined extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/pie-chart.d.ts b/types/react-icons/lib/md/pie-chart.d.ts new file mode 100644 index 0000000000..bf0203c4d9 --- /dev/null +++ b/types/react-icons/lib/md/pie-chart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPieChart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/pin-drop.d.ts b/types/react-icons/lib/md/pin-drop.d.ts new file mode 100644 index 0000000000..b1511912aa --- /dev/null +++ b/types/react-icons/lib/md/pin-drop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPinDrop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/place.d.ts b/types/react-icons/lib/md/place.d.ts new file mode 100644 index 0000000000..6e7bc9f83d --- /dev/null +++ b/types/react-icons/lib/md/place.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPlace extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/play-arrow.d.ts b/types/react-icons/lib/md/play-arrow.d.ts new file mode 100644 index 0000000000..34eeedbfc9 --- /dev/null +++ b/types/react-icons/lib/md/play-arrow.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPlayArrow extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/play-circle-filled.d.ts b/types/react-icons/lib/md/play-circle-filled.d.ts new file mode 100644 index 0000000000..a952747a1f --- /dev/null +++ b/types/react-icons/lib/md/play-circle-filled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPlayCircleFilled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/play-circle-outline.d.ts b/types/react-icons/lib/md/play-circle-outline.d.ts new file mode 100644 index 0000000000..e75083c2f3 --- /dev/null +++ b/types/react-icons/lib/md/play-circle-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPlayCircleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/play-for-work.d.ts b/types/react-icons/lib/md/play-for-work.d.ts new file mode 100644 index 0000000000..4bb94a94b0 --- /dev/null +++ b/types/react-icons/lib/md/play-for-work.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPlayForWork extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/playlist-add-check.d.ts b/types/react-icons/lib/md/playlist-add-check.d.ts new file mode 100644 index 0000000000..6b71a3b8c0 --- /dev/null +++ b/types/react-icons/lib/md/playlist-add-check.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPlaylistAddCheck extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/playlist-add.d.ts b/types/react-icons/lib/md/playlist-add.d.ts new file mode 100644 index 0000000000..6cd4bf46e6 --- /dev/null +++ b/types/react-icons/lib/md/playlist-add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPlaylistAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/playlist-play.d.ts b/types/react-icons/lib/md/playlist-play.d.ts new file mode 100644 index 0000000000..1bbf520f44 --- /dev/null +++ b/types/react-icons/lib/md/playlist-play.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPlaylistPlay extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/plus-one.d.ts b/types/react-icons/lib/md/plus-one.d.ts new file mode 100644 index 0000000000..1237985ba5 --- /dev/null +++ b/types/react-icons/lib/md/plus-one.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPlusOne extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/poll.d.ts b/types/react-icons/lib/md/poll.d.ts new file mode 100644 index 0000000000..e0d456a28a --- /dev/null +++ b/types/react-icons/lib/md/poll.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPoll extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/polymer.d.ts b/types/react-icons/lib/md/polymer.d.ts new file mode 100644 index 0000000000..6ff9e004b4 --- /dev/null +++ b/types/react-icons/lib/md/polymer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPolymer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/pool.d.ts b/types/react-icons/lib/md/pool.d.ts new file mode 100644 index 0000000000..933c4f1448 --- /dev/null +++ b/types/react-icons/lib/md/pool.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPool extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/portable-wifi-off.d.ts b/types/react-icons/lib/md/portable-wifi-off.d.ts new file mode 100644 index 0000000000..b3bdd30ff8 --- /dev/null +++ b/types/react-icons/lib/md/portable-wifi-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPortableWifiOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/portrait.d.ts b/types/react-icons/lib/md/portrait.d.ts new file mode 100644 index 0000000000..1e9b2f717e --- /dev/null +++ b/types/react-icons/lib/md/portrait.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPortrait extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/power-input.d.ts b/types/react-icons/lib/md/power-input.d.ts new file mode 100644 index 0000000000..71f89e9e40 --- /dev/null +++ b/types/react-icons/lib/md/power-input.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPowerInput extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/power-settings-new.d.ts b/types/react-icons/lib/md/power-settings-new.d.ts new file mode 100644 index 0000000000..69221c9111 --- /dev/null +++ b/types/react-icons/lib/md/power-settings-new.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPowerSettingsNew extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/power.d.ts b/types/react-icons/lib/md/power.d.ts new file mode 100644 index 0000000000..106471c2a5 --- /dev/null +++ b/types/react-icons/lib/md/power.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPower extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/pregnant-woman.d.ts b/types/react-icons/lib/md/pregnant-woman.d.ts new file mode 100644 index 0000000000..9e88eab156 --- /dev/null +++ b/types/react-icons/lib/md/pregnant-woman.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPregnantWoman extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/present-to-all.d.ts b/types/react-icons/lib/md/present-to-all.d.ts new file mode 100644 index 0000000000..b88c9a45d2 --- /dev/null +++ b/types/react-icons/lib/md/present-to-all.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPresentToAll extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/print.d.ts b/types/react-icons/lib/md/print.d.ts new file mode 100644 index 0000000000..74d6db2f37 --- /dev/null +++ b/types/react-icons/lib/md/print.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPrint extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/priority-high.d.ts b/types/react-icons/lib/md/priority-high.d.ts new file mode 100644 index 0000000000..56c1354dae --- /dev/null +++ b/types/react-icons/lib/md/priority-high.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPriorityHigh extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/public.d.ts b/types/react-icons/lib/md/public.d.ts new file mode 100644 index 0000000000..1615661bab --- /dev/null +++ b/types/react-icons/lib/md/public.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPublic extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/publish.d.ts b/types/react-icons/lib/md/publish.d.ts new file mode 100644 index 0000000000..76aae7f48b --- /dev/null +++ b/types/react-icons/lib/md/publish.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdPublish extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/query-builder.d.ts b/types/react-icons/lib/md/query-builder.d.ts new file mode 100644 index 0000000000..3607cbf408 --- /dev/null +++ b/types/react-icons/lib/md/query-builder.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdQueryBuilder extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/question-answer.d.ts b/types/react-icons/lib/md/question-answer.d.ts new file mode 100644 index 0000000000..b88cd376d0 --- /dev/null +++ b/types/react-icons/lib/md/question-answer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdQuestionAnswer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/queue-music.d.ts b/types/react-icons/lib/md/queue-music.d.ts new file mode 100644 index 0000000000..0a9a451291 --- /dev/null +++ b/types/react-icons/lib/md/queue-music.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdQueueMusic extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/queue-play-next.d.ts b/types/react-icons/lib/md/queue-play-next.d.ts new file mode 100644 index 0000000000..4540a71df0 --- /dev/null +++ b/types/react-icons/lib/md/queue-play-next.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdQueuePlayNext extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/queue.d.ts b/types/react-icons/lib/md/queue.d.ts new file mode 100644 index 0000000000..80b27a7f8a --- /dev/null +++ b/types/react-icons/lib/md/queue.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdQueue extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/radio-button-checked.d.ts b/types/react-icons/lib/md/radio-button-checked.d.ts new file mode 100644 index 0000000000..dfa06080e6 --- /dev/null +++ b/types/react-icons/lib/md/radio-button-checked.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRadioButtonChecked extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/radio-button-unchecked.d.ts b/types/react-icons/lib/md/radio-button-unchecked.d.ts new file mode 100644 index 0000000000..b154b71305 --- /dev/null +++ b/types/react-icons/lib/md/radio-button-unchecked.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRadioButtonUnchecked extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/radio.d.ts b/types/react-icons/lib/md/radio.d.ts new file mode 100644 index 0000000000..bd53fd4f03 --- /dev/null +++ b/types/react-icons/lib/md/radio.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRadio extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/rate-review.d.ts b/types/react-icons/lib/md/rate-review.d.ts new file mode 100644 index 0000000000..6de3f28785 --- /dev/null +++ b/types/react-icons/lib/md/rate-review.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRateReview extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/receipt.d.ts b/types/react-icons/lib/md/receipt.d.ts new file mode 100644 index 0000000000..1b781c04c7 --- /dev/null +++ b/types/react-icons/lib/md/receipt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdReceipt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/recent-actors.d.ts b/types/react-icons/lib/md/recent-actors.d.ts new file mode 100644 index 0000000000..cfcf0432b5 --- /dev/null +++ b/types/react-icons/lib/md/recent-actors.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRecentActors extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/record-voice-over.d.ts b/types/react-icons/lib/md/record-voice-over.d.ts new file mode 100644 index 0000000000..ab9b2189b8 --- /dev/null +++ b/types/react-icons/lib/md/record-voice-over.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRecordVoiceOver extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/redeem.d.ts b/types/react-icons/lib/md/redeem.d.ts new file mode 100644 index 0000000000..7690d10236 --- /dev/null +++ b/types/react-icons/lib/md/redeem.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRedeem extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/redo.d.ts b/types/react-icons/lib/md/redo.d.ts new file mode 100644 index 0000000000..3e0e1fac51 --- /dev/null +++ b/types/react-icons/lib/md/redo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRedo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/refresh.d.ts b/types/react-icons/lib/md/refresh.d.ts new file mode 100644 index 0000000000..f037c2a972 --- /dev/null +++ b/types/react-icons/lib/md/refresh.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRefresh extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/remove-circle-outline.d.ts b/types/react-icons/lib/md/remove-circle-outline.d.ts new file mode 100644 index 0000000000..3488b16e2a --- /dev/null +++ b/types/react-icons/lib/md/remove-circle-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRemoveCircleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/remove-circle.d.ts b/types/react-icons/lib/md/remove-circle.d.ts new file mode 100644 index 0000000000..77d8b1db6c --- /dev/null +++ b/types/react-icons/lib/md/remove-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRemoveCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/remove-from-queue.d.ts b/types/react-icons/lib/md/remove-from-queue.d.ts new file mode 100644 index 0000000000..05299a588f --- /dev/null +++ b/types/react-icons/lib/md/remove-from-queue.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRemoveFromQueue extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/remove-red-eye.d.ts b/types/react-icons/lib/md/remove-red-eye.d.ts new file mode 100644 index 0000000000..8f839358ba --- /dev/null +++ b/types/react-icons/lib/md/remove-red-eye.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRemoveRedEye extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/remove-shopping-cart.d.ts b/types/react-icons/lib/md/remove-shopping-cart.d.ts new file mode 100644 index 0000000000..2715486aea --- /dev/null +++ b/types/react-icons/lib/md/remove-shopping-cart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRemoveShoppingCart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/remove.d.ts b/types/react-icons/lib/md/remove.d.ts new file mode 100644 index 0000000000..9522f25fe9 --- /dev/null +++ b/types/react-icons/lib/md/remove.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRemove extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/reorder.d.ts b/types/react-icons/lib/md/reorder.d.ts new file mode 100644 index 0000000000..9f24bc5ed5 --- /dev/null +++ b/types/react-icons/lib/md/reorder.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdReorder extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/repeat-one.d.ts b/types/react-icons/lib/md/repeat-one.d.ts new file mode 100644 index 0000000000..74a3642bf5 --- /dev/null +++ b/types/react-icons/lib/md/repeat-one.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRepeatOne extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/repeat.d.ts b/types/react-icons/lib/md/repeat.d.ts new file mode 100644 index 0000000000..e1d7352ab9 --- /dev/null +++ b/types/react-icons/lib/md/repeat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRepeat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/replay-10.d.ts b/types/react-icons/lib/md/replay-10.d.ts new file mode 100644 index 0000000000..3d9f3ef0c4 --- /dev/null +++ b/types/react-icons/lib/md/replay-10.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdReplay10 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/replay-30.d.ts b/types/react-icons/lib/md/replay-30.d.ts new file mode 100644 index 0000000000..402af551ba --- /dev/null +++ b/types/react-icons/lib/md/replay-30.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdReplay30 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/replay-5.d.ts b/types/react-icons/lib/md/replay-5.d.ts new file mode 100644 index 0000000000..78905ba50c --- /dev/null +++ b/types/react-icons/lib/md/replay-5.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdReplay5 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/replay.d.ts b/types/react-icons/lib/md/replay.d.ts new file mode 100644 index 0000000000..47d8592a3d --- /dev/null +++ b/types/react-icons/lib/md/replay.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdReplay extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/reply-all.d.ts b/types/react-icons/lib/md/reply-all.d.ts new file mode 100644 index 0000000000..07aa5f01f2 --- /dev/null +++ b/types/react-icons/lib/md/reply-all.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdReplyAll extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/reply.d.ts b/types/react-icons/lib/md/reply.d.ts new file mode 100644 index 0000000000..648de11ef1 --- /dev/null +++ b/types/react-icons/lib/md/reply.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdReply extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/report-problem.d.ts b/types/react-icons/lib/md/report-problem.d.ts new file mode 100644 index 0000000000..c3dbf0101a --- /dev/null +++ b/types/react-icons/lib/md/report-problem.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdReportProblem extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/report.d.ts b/types/react-icons/lib/md/report.d.ts new file mode 100644 index 0000000000..af51419c00 --- /dev/null +++ b/types/react-icons/lib/md/report.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdReport extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/restaurant-menu.d.ts b/types/react-icons/lib/md/restaurant-menu.d.ts new file mode 100644 index 0000000000..306891c857 --- /dev/null +++ b/types/react-icons/lib/md/restaurant-menu.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRestaurantMenu extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/restaurant.d.ts b/types/react-icons/lib/md/restaurant.d.ts new file mode 100644 index 0000000000..5adc8e8712 --- /dev/null +++ b/types/react-icons/lib/md/restaurant.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRestaurant extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/restore-page.d.ts b/types/react-icons/lib/md/restore-page.d.ts new file mode 100644 index 0000000000..d836b1f669 --- /dev/null +++ b/types/react-icons/lib/md/restore-page.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRestorePage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/restore.d.ts b/types/react-icons/lib/md/restore.d.ts new file mode 100644 index 0000000000..aaadca1e08 --- /dev/null +++ b/types/react-icons/lib/md/restore.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRestore extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/ring-volume.d.ts b/types/react-icons/lib/md/ring-volume.d.ts new file mode 100644 index 0000000000..41843c29bd --- /dev/null +++ b/types/react-icons/lib/md/ring-volume.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRingVolume extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/room-service.d.ts b/types/react-icons/lib/md/room-service.d.ts new file mode 100644 index 0000000000..4b69032332 --- /dev/null +++ b/types/react-icons/lib/md/room-service.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRoomService extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/room.d.ts b/types/react-icons/lib/md/room.d.ts new file mode 100644 index 0000000000..49ab4cae8d --- /dev/null +++ b/types/react-icons/lib/md/room.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRoom extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/rotate-90-degrees-ccw.d.ts b/types/react-icons/lib/md/rotate-90-degrees-ccw.d.ts new file mode 100644 index 0000000000..ba2f85b1e2 --- /dev/null +++ b/types/react-icons/lib/md/rotate-90-degrees-ccw.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRotate90DegreesCcw extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/rotate-left.d.ts b/types/react-icons/lib/md/rotate-left.d.ts new file mode 100644 index 0000000000..493c21cd47 --- /dev/null +++ b/types/react-icons/lib/md/rotate-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRotateLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/rotate-right.d.ts b/types/react-icons/lib/md/rotate-right.d.ts new file mode 100644 index 0000000000..936625527b --- /dev/null +++ b/types/react-icons/lib/md/rotate-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRotateRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/rounded-corner.d.ts b/types/react-icons/lib/md/rounded-corner.d.ts new file mode 100644 index 0000000000..592818db46 --- /dev/null +++ b/types/react-icons/lib/md/rounded-corner.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRoundedCorner extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/router.d.ts b/types/react-icons/lib/md/router.d.ts new file mode 100644 index 0000000000..71effffe25 --- /dev/null +++ b/types/react-icons/lib/md/router.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRouter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/rowing.d.ts b/types/react-icons/lib/md/rowing.d.ts new file mode 100644 index 0000000000..66d50957df --- /dev/null +++ b/types/react-icons/lib/md/rowing.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRowing extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/rss-feed.d.ts b/types/react-icons/lib/md/rss-feed.d.ts new file mode 100644 index 0000000000..857453af7d --- /dev/null +++ b/types/react-icons/lib/md/rss-feed.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRssFeed extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/rv-hookup.d.ts b/types/react-icons/lib/md/rv-hookup.d.ts new file mode 100644 index 0000000000..6b3f6b3a67 --- /dev/null +++ b/types/react-icons/lib/md/rv-hookup.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdRvHookup extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/satellite.d.ts b/types/react-icons/lib/md/satellite.d.ts new file mode 100644 index 0000000000..1371e50a1d --- /dev/null +++ b/types/react-icons/lib/md/satellite.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSatellite extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/save.d.ts b/types/react-icons/lib/md/save.d.ts new file mode 100644 index 0000000000..f3aa747a5a --- /dev/null +++ b/types/react-icons/lib/md/save.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSave extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/scanner.d.ts b/types/react-icons/lib/md/scanner.d.ts new file mode 100644 index 0000000000..db18a8c57b --- /dev/null +++ b/types/react-icons/lib/md/scanner.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdScanner extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/schedule.d.ts b/types/react-icons/lib/md/schedule.d.ts new file mode 100644 index 0000000000..e85dac4d66 --- /dev/null +++ b/types/react-icons/lib/md/schedule.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSchedule extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/school.d.ts b/types/react-icons/lib/md/school.d.ts new file mode 100644 index 0000000000..ec9ad586c7 --- /dev/null +++ b/types/react-icons/lib/md/school.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSchool extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/screen-lock-landscape.d.ts b/types/react-icons/lib/md/screen-lock-landscape.d.ts new file mode 100644 index 0000000000..8bd82ab85e --- /dev/null +++ b/types/react-icons/lib/md/screen-lock-landscape.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdScreenLockLandscape extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/screen-lock-portrait.d.ts b/types/react-icons/lib/md/screen-lock-portrait.d.ts new file mode 100644 index 0000000000..4439deda82 --- /dev/null +++ b/types/react-icons/lib/md/screen-lock-portrait.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdScreenLockPortrait extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/screen-lock-rotation.d.ts b/types/react-icons/lib/md/screen-lock-rotation.d.ts new file mode 100644 index 0000000000..7edd36c10d --- /dev/null +++ b/types/react-icons/lib/md/screen-lock-rotation.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdScreenLockRotation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/screen-rotation.d.ts b/types/react-icons/lib/md/screen-rotation.d.ts new file mode 100644 index 0000000000..ac2cd107e2 --- /dev/null +++ b/types/react-icons/lib/md/screen-rotation.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdScreenRotation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/screen-share.d.ts b/types/react-icons/lib/md/screen-share.d.ts new file mode 100644 index 0000000000..1c6e5f8f3f --- /dev/null +++ b/types/react-icons/lib/md/screen-share.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdScreenShare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sd-card.d.ts b/types/react-icons/lib/md/sd-card.d.ts new file mode 100644 index 0000000000..fbf66bc8ae --- /dev/null +++ b/types/react-icons/lib/md/sd-card.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSdCard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sd-storage.d.ts b/types/react-icons/lib/md/sd-storage.d.ts new file mode 100644 index 0000000000..645f26b009 --- /dev/null +++ b/types/react-icons/lib/md/sd-storage.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSdStorage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/search.d.ts b/types/react-icons/lib/md/search.d.ts new file mode 100644 index 0000000000..4c4f7aafeb --- /dev/null +++ b/types/react-icons/lib/md/search.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSearch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/security.d.ts b/types/react-icons/lib/md/security.d.ts new file mode 100644 index 0000000000..ffeffbbfeb --- /dev/null +++ b/types/react-icons/lib/md/security.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSecurity extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/select-all.d.ts b/types/react-icons/lib/md/select-all.d.ts new file mode 100644 index 0000000000..e8d8ba116a --- /dev/null +++ b/types/react-icons/lib/md/select-all.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSelectAll extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/send.d.ts b/types/react-icons/lib/md/send.d.ts new file mode 100644 index 0000000000..a643cfddfa --- /dev/null +++ b/types/react-icons/lib/md/send.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSend extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sentiment-dissatisfied.d.ts b/types/react-icons/lib/md/sentiment-dissatisfied.d.ts new file mode 100644 index 0000000000..e5e989d5ad --- /dev/null +++ b/types/react-icons/lib/md/sentiment-dissatisfied.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSentimentDissatisfied extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sentiment-neutral.d.ts b/types/react-icons/lib/md/sentiment-neutral.d.ts new file mode 100644 index 0000000000..ea95a02aea --- /dev/null +++ b/types/react-icons/lib/md/sentiment-neutral.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSentimentNeutral extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sentiment-satisfied.d.ts b/types/react-icons/lib/md/sentiment-satisfied.d.ts new file mode 100644 index 0000000000..ff9ba41c7e --- /dev/null +++ b/types/react-icons/lib/md/sentiment-satisfied.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSentimentSatisfied extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sentiment-very-dissatisfied.d.ts b/types/react-icons/lib/md/sentiment-very-dissatisfied.d.ts new file mode 100644 index 0000000000..9e26b053fc --- /dev/null +++ b/types/react-icons/lib/md/sentiment-very-dissatisfied.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSentimentVeryDissatisfied extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sentiment-very-satisfied.d.ts b/types/react-icons/lib/md/sentiment-very-satisfied.d.ts new file mode 100644 index 0000000000..570e358c3a --- /dev/null +++ b/types/react-icons/lib/md/sentiment-very-satisfied.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSentimentVerySatisfied extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-applications.d.ts b/types/react-icons/lib/md/settings-applications.d.ts new file mode 100644 index 0000000000..75223b6af8 --- /dev/null +++ b/types/react-icons/lib/md/settings-applications.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsApplications extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-backup-restore.d.ts b/types/react-icons/lib/md/settings-backup-restore.d.ts new file mode 100644 index 0000000000..beeec5199f --- /dev/null +++ b/types/react-icons/lib/md/settings-backup-restore.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsBackupRestore extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-bluetooth.d.ts b/types/react-icons/lib/md/settings-bluetooth.d.ts new file mode 100644 index 0000000000..0f295f3c78 --- /dev/null +++ b/types/react-icons/lib/md/settings-bluetooth.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsBluetooth extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-brightness.d.ts b/types/react-icons/lib/md/settings-brightness.d.ts new file mode 100644 index 0000000000..41c1e8360f --- /dev/null +++ b/types/react-icons/lib/md/settings-brightness.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsBrightness extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-cell.d.ts b/types/react-icons/lib/md/settings-cell.d.ts new file mode 100644 index 0000000000..620d7e1fe5 --- /dev/null +++ b/types/react-icons/lib/md/settings-cell.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsCell extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-ethernet.d.ts b/types/react-icons/lib/md/settings-ethernet.d.ts new file mode 100644 index 0000000000..c610f8ec24 --- /dev/null +++ b/types/react-icons/lib/md/settings-ethernet.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsEthernet extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-input-antenna.d.ts b/types/react-icons/lib/md/settings-input-antenna.d.ts new file mode 100644 index 0000000000..f19536a4cb --- /dev/null +++ b/types/react-icons/lib/md/settings-input-antenna.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsInputAntenna extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-input-component.d.ts b/types/react-icons/lib/md/settings-input-component.d.ts new file mode 100644 index 0000000000..e1fe37ccdf --- /dev/null +++ b/types/react-icons/lib/md/settings-input-component.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsInputComponent extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-input-composite.d.ts b/types/react-icons/lib/md/settings-input-composite.d.ts new file mode 100644 index 0000000000..266f9969fb --- /dev/null +++ b/types/react-icons/lib/md/settings-input-composite.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsInputComposite extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-input-hdmi.d.ts b/types/react-icons/lib/md/settings-input-hdmi.d.ts new file mode 100644 index 0000000000..be910d9b17 --- /dev/null +++ b/types/react-icons/lib/md/settings-input-hdmi.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsInputHdmi extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-input-svideo.d.ts b/types/react-icons/lib/md/settings-input-svideo.d.ts new file mode 100644 index 0000000000..d9254b4996 --- /dev/null +++ b/types/react-icons/lib/md/settings-input-svideo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsInputSvideo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-overscan.d.ts b/types/react-icons/lib/md/settings-overscan.d.ts new file mode 100644 index 0000000000..c74ed6c60b --- /dev/null +++ b/types/react-icons/lib/md/settings-overscan.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsOverscan extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-phone.d.ts b/types/react-icons/lib/md/settings-phone.d.ts new file mode 100644 index 0000000000..a24ed75c1a --- /dev/null +++ b/types/react-icons/lib/md/settings-phone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsPhone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-power.d.ts b/types/react-icons/lib/md/settings-power.d.ts new file mode 100644 index 0000000000..f93530a007 --- /dev/null +++ b/types/react-icons/lib/md/settings-power.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsPower extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-remote.d.ts b/types/react-icons/lib/md/settings-remote.d.ts new file mode 100644 index 0000000000..19720afb98 --- /dev/null +++ b/types/react-icons/lib/md/settings-remote.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsRemote extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-system-daydream.d.ts b/types/react-icons/lib/md/settings-system-daydream.d.ts new file mode 100644 index 0000000000..654c1666d7 --- /dev/null +++ b/types/react-icons/lib/md/settings-system-daydream.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsSystemDaydream extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings-voice.d.ts b/types/react-icons/lib/md/settings-voice.d.ts new file mode 100644 index 0000000000..2ca59f4b0b --- /dev/null +++ b/types/react-icons/lib/md/settings-voice.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettingsVoice extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/settings.d.ts b/types/react-icons/lib/md/settings.d.ts new file mode 100644 index 0000000000..2117b4be55 --- /dev/null +++ b/types/react-icons/lib/md/settings.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSettings extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/share.d.ts b/types/react-icons/lib/md/share.d.ts new file mode 100644 index 0000000000..5a6639be86 --- /dev/null +++ b/types/react-icons/lib/md/share.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdShare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/shop-two.d.ts b/types/react-icons/lib/md/shop-two.d.ts new file mode 100644 index 0000000000..ffd2e40d8a --- /dev/null +++ b/types/react-icons/lib/md/shop-two.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdShopTwo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/shop.d.ts b/types/react-icons/lib/md/shop.d.ts new file mode 100644 index 0000000000..0247f8919e --- /dev/null +++ b/types/react-icons/lib/md/shop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdShop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/shopping-basket.d.ts b/types/react-icons/lib/md/shopping-basket.d.ts new file mode 100644 index 0000000000..ce58316185 --- /dev/null +++ b/types/react-icons/lib/md/shopping-basket.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdShoppingBasket extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/shopping-cart.d.ts b/types/react-icons/lib/md/shopping-cart.d.ts new file mode 100644 index 0000000000..2980434fd6 --- /dev/null +++ b/types/react-icons/lib/md/shopping-cart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdShoppingCart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/short-text.d.ts b/types/react-icons/lib/md/short-text.d.ts new file mode 100644 index 0000000000..66c49133ba --- /dev/null +++ b/types/react-icons/lib/md/short-text.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdShortText extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/show-chart.d.ts b/types/react-icons/lib/md/show-chart.d.ts new file mode 100644 index 0000000000..4fc9b77c9e --- /dev/null +++ b/types/react-icons/lib/md/show-chart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdShowChart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/shuffle.d.ts b/types/react-icons/lib/md/shuffle.d.ts new file mode 100644 index 0000000000..b20fd0302e --- /dev/null +++ b/types/react-icons/lib/md/shuffle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdShuffle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/signal-cellular-4-bar.d.ts b/types/react-icons/lib/md/signal-cellular-4-bar.d.ts new file mode 100644 index 0000000000..9961d076e8 --- /dev/null +++ b/types/react-icons/lib/md/signal-cellular-4-bar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSignalCellular4Bar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/signal-cellular-connected-no-internet-4-bar.d.ts b/types/react-icons/lib/md/signal-cellular-connected-no-internet-4-bar.d.ts new file mode 100644 index 0000000000..35546b90db --- /dev/null +++ b/types/react-icons/lib/md/signal-cellular-connected-no-internet-4-bar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSignalCellularConnectedNoInternet4Bar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/signal-cellular-no-sim.d.ts b/types/react-icons/lib/md/signal-cellular-no-sim.d.ts new file mode 100644 index 0000000000..37c952ef33 --- /dev/null +++ b/types/react-icons/lib/md/signal-cellular-no-sim.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSignalCellularNoSim extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/signal-cellular-null.d.ts b/types/react-icons/lib/md/signal-cellular-null.d.ts new file mode 100644 index 0000000000..81c4801bac --- /dev/null +++ b/types/react-icons/lib/md/signal-cellular-null.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSignalCellularNull extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/signal-cellular-off.d.ts b/types/react-icons/lib/md/signal-cellular-off.d.ts new file mode 100644 index 0000000000..71b723a036 --- /dev/null +++ b/types/react-icons/lib/md/signal-cellular-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSignalCellularOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/signal-wifi-4-bar-lock.d.ts b/types/react-icons/lib/md/signal-wifi-4-bar-lock.d.ts new file mode 100644 index 0000000000..45689253f7 --- /dev/null +++ b/types/react-icons/lib/md/signal-wifi-4-bar-lock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSignalWifi4BarLock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/signal-wifi-4-bar.d.ts b/types/react-icons/lib/md/signal-wifi-4-bar.d.ts new file mode 100644 index 0000000000..9b90b1dc00 --- /dev/null +++ b/types/react-icons/lib/md/signal-wifi-4-bar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSignalWifi4Bar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/signal-wifi-off.d.ts b/types/react-icons/lib/md/signal-wifi-off.d.ts new file mode 100644 index 0000000000..62c5ceee3c --- /dev/null +++ b/types/react-icons/lib/md/signal-wifi-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSignalWifiOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sim-card-alert.d.ts b/types/react-icons/lib/md/sim-card-alert.d.ts new file mode 100644 index 0000000000..4060c4594e --- /dev/null +++ b/types/react-icons/lib/md/sim-card-alert.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSimCardAlert extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sim-card.d.ts b/types/react-icons/lib/md/sim-card.d.ts new file mode 100644 index 0000000000..da691e53ad --- /dev/null +++ b/types/react-icons/lib/md/sim-card.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSimCard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/skip-next.d.ts b/types/react-icons/lib/md/skip-next.d.ts new file mode 100644 index 0000000000..ecf5c1dc78 --- /dev/null +++ b/types/react-icons/lib/md/skip-next.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSkipNext extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/skip-previous.d.ts b/types/react-icons/lib/md/skip-previous.d.ts new file mode 100644 index 0000000000..93b71643d7 --- /dev/null +++ b/types/react-icons/lib/md/skip-previous.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSkipPrevious extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/slideshow.d.ts b/types/react-icons/lib/md/slideshow.d.ts new file mode 100644 index 0000000000..3604117de4 --- /dev/null +++ b/types/react-icons/lib/md/slideshow.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSlideshow extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/slow-motion-video.d.ts b/types/react-icons/lib/md/slow-motion-video.d.ts new file mode 100644 index 0000000000..b1613e9196 --- /dev/null +++ b/types/react-icons/lib/md/slow-motion-video.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSlowMotionVideo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/smartphone.d.ts b/types/react-icons/lib/md/smartphone.d.ts new file mode 100644 index 0000000000..48e919a7f2 --- /dev/null +++ b/types/react-icons/lib/md/smartphone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSmartphone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/smoke-free.d.ts b/types/react-icons/lib/md/smoke-free.d.ts new file mode 100644 index 0000000000..494a9ffbed --- /dev/null +++ b/types/react-icons/lib/md/smoke-free.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSmokeFree extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/smoking-rooms.d.ts b/types/react-icons/lib/md/smoking-rooms.d.ts new file mode 100644 index 0000000000..9793808427 --- /dev/null +++ b/types/react-icons/lib/md/smoking-rooms.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSmokingRooms extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sms-failed.d.ts b/types/react-icons/lib/md/sms-failed.d.ts new file mode 100644 index 0000000000..ed04e950bd --- /dev/null +++ b/types/react-icons/lib/md/sms-failed.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSmsFailed extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sms.d.ts b/types/react-icons/lib/md/sms.d.ts new file mode 100644 index 0000000000..bcdc21c622 --- /dev/null +++ b/types/react-icons/lib/md/sms.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSms extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/snooze.d.ts b/types/react-icons/lib/md/snooze.d.ts new file mode 100644 index 0000000000..39ef1f6213 --- /dev/null +++ b/types/react-icons/lib/md/snooze.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSnooze extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sort-by-alpha.d.ts b/types/react-icons/lib/md/sort-by-alpha.d.ts new file mode 100644 index 0000000000..1d823eec21 --- /dev/null +++ b/types/react-icons/lib/md/sort-by-alpha.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSortByAlpha extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sort.d.ts b/types/react-icons/lib/md/sort.d.ts new file mode 100644 index 0000000000..4ae7f76a01 --- /dev/null +++ b/types/react-icons/lib/md/sort.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSort extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/spa.d.ts b/types/react-icons/lib/md/spa.d.ts new file mode 100644 index 0000000000..328203f62f --- /dev/null +++ b/types/react-icons/lib/md/spa.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSpa extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/space-bar.d.ts b/types/react-icons/lib/md/space-bar.d.ts new file mode 100644 index 0000000000..861c34892a --- /dev/null +++ b/types/react-icons/lib/md/space-bar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSpaceBar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/speaker-group.d.ts b/types/react-icons/lib/md/speaker-group.d.ts new file mode 100644 index 0000000000..81915fc511 --- /dev/null +++ b/types/react-icons/lib/md/speaker-group.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSpeakerGroup extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/speaker-notes-off.d.ts b/types/react-icons/lib/md/speaker-notes-off.d.ts new file mode 100644 index 0000000000..bc5b008527 --- /dev/null +++ b/types/react-icons/lib/md/speaker-notes-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSpeakerNotesOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/speaker-notes.d.ts b/types/react-icons/lib/md/speaker-notes.d.ts new file mode 100644 index 0000000000..1c3c0e4ddc --- /dev/null +++ b/types/react-icons/lib/md/speaker-notes.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSpeakerNotes extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/speaker-phone.d.ts b/types/react-icons/lib/md/speaker-phone.d.ts new file mode 100644 index 0000000000..b459a0c395 --- /dev/null +++ b/types/react-icons/lib/md/speaker-phone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSpeakerPhone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/speaker.d.ts b/types/react-icons/lib/md/speaker.d.ts new file mode 100644 index 0000000000..1f28f03e88 --- /dev/null +++ b/types/react-icons/lib/md/speaker.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSpeaker extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/spellcheck.d.ts b/types/react-icons/lib/md/spellcheck.d.ts new file mode 100644 index 0000000000..6b74288ebf --- /dev/null +++ b/types/react-icons/lib/md/spellcheck.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSpellcheck extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/star-border.d.ts b/types/react-icons/lib/md/star-border.d.ts new file mode 100644 index 0000000000..2dda5ebb35 --- /dev/null +++ b/types/react-icons/lib/md/star-border.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStarBorder extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/star-half.d.ts b/types/react-icons/lib/md/star-half.d.ts new file mode 100644 index 0000000000..d6684bbfe0 --- /dev/null +++ b/types/react-icons/lib/md/star-half.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStarHalf extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/star-outline.d.ts b/types/react-icons/lib/md/star-outline.d.ts new file mode 100644 index 0000000000..2b9f3546a3 --- /dev/null +++ b/types/react-icons/lib/md/star-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStarOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/star.d.ts b/types/react-icons/lib/md/star.d.ts new file mode 100644 index 0000000000..f10524254e --- /dev/null +++ b/types/react-icons/lib/md/star.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/stars.d.ts b/types/react-icons/lib/md/stars.d.ts new file mode 100644 index 0000000000..b92a32acd6 --- /dev/null +++ b/types/react-icons/lib/md/stars.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStars extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/stay-current-landscape.d.ts b/types/react-icons/lib/md/stay-current-landscape.d.ts new file mode 100644 index 0000000000..c2edfbaa27 --- /dev/null +++ b/types/react-icons/lib/md/stay-current-landscape.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStayCurrentLandscape extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/stay-current-portrait.d.ts b/types/react-icons/lib/md/stay-current-portrait.d.ts new file mode 100644 index 0000000000..9f523f0514 --- /dev/null +++ b/types/react-icons/lib/md/stay-current-portrait.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStayCurrentPortrait extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/stay-primary-landscape.d.ts b/types/react-icons/lib/md/stay-primary-landscape.d.ts new file mode 100644 index 0000000000..4cf222880a --- /dev/null +++ b/types/react-icons/lib/md/stay-primary-landscape.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStayPrimaryLandscape extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/stay-primary-portrait.d.ts b/types/react-icons/lib/md/stay-primary-portrait.d.ts new file mode 100644 index 0000000000..e4371a0ff9 --- /dev/null +++ b/types/react-icons/lib/md/stay-primary-portrait.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStayPrimaryPortrait extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/stop-screen-share.d.ts b/types/react-icons/lib/md/stop-screen-share.d.ts new file mode 100644 index 0000000000..aa6a7b1f11 --- /dev/null +++ b/types/react-icons/lib/md/stop-screen-share.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStopScreenShare extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/stop.d.ts b/types/react-icons/lib/md/stop.d.ts new file mode 100644 index 0000000000..23972ad40d --- /dev/null +++ b/types/react-icons/lib/md/stop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/storage.d.ts b/types/react-icons/lib/md/storage.d.ts new file mode 100644 index 0000000000..76cdb38312 --- /dev/null +++ b/types/react-icons/lib/md/storage.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStorage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/store-mall-directory.d.ts b/types/react-icons/lib/md/store-mall-directory.d.ts new file mode 100644 index 0000000000..68d4294ade --- /dev/null +++ b/types/react-icons/lib/md/store-mall-directory.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStoreMallDirectory extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/store.d.ts b/types/react-icons/lib/md/store.d.ts new file mode 100644 index 0000000000..c64ab33e61 --- /dev/null +++ b/types/react-icons/lib/md/store.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStore extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/straighten.d.ts b/types/react-icons/lib/md/straighten.d.ts new file mode 100644 index 0000000000..fa68ffb61f --- /dev/null +++ b/types/react-icons/lib/md/straighten.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStraighten extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/streetview.d.ts b/types/react-icons/lib/md/streetview.d.ts new file mode 100644 index 0000000000..b786fc4504 --- /dev/null +++ b/types/react-icons/lib/md/streetview.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStreetview extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/strikethrough-s.d.ts b/types/react-icons/lib/md/strikethrough-s.d.ts new file mode 100644 index 0000000000..8ccb18a292 --- /dev/null +++ b/types/react-icons/lib/md/strikethrough-s.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStrikethroughS extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/style.d.ts b/types/react-icons/lib/md/style.d.ts new file mode 100644 index 0000000000..6826a067a7 --- /dev/null +++ b/types/react-icons/lib/md/style.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdStyle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/subdirectory-arrow-left.d.ts b/types/react-icons/lib/md/subdirectory-arrow-left.d.ts new file mode 100644 index 0000000000..ebfbf45689 --- /dev/null +++ b/types/react-icons/lib/md/subdirectory-arrow-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSubdirectoryArrowLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/subdirectory-arrow-right.d.ts b/types/react-icons/lib/md/subdirectory-arrow-right.d.ts new file mode 100644 index 0000000000..435777e018 --- /dev/null +++ b/types/react-icons/lib/md/subdirectory-arrow-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSubdirectoryArrowRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/subject.d.ts b/types/react-icons/lib/md/subject.d.ts new file mode 100644 index 0000000000..b187b836f2 --- /dev/null +++ b/types/react-icons/lib/md/subject.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSubject extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/subscriptions.d.ts b/types/react-icons/lib/md/subscriptions.d.ts new file mode 100644 index 0000000000..0baf020371 --- /dev/null +++ b/types/react-icons/lib/md/subscriptions.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSubscriptions extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/subtitles.d.ts b/types/react-icons/lib/md/subtitles.d.ts new file mode 100644 index 0000000000..2cacca492e --- /dev/null +++ b/types/react-icons/lib/md/subtitles.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSubtitles extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/subway.d.ts b/types/react-icons/lib/md/subway.d.ts new file mode 100644 index 0000000000..c5496480da --- /dev/null +++ b/types/react-icons/lib/md/subway.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSubway extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/supervisor-account.d.ts b/types/react-icons/lib/md/supervisor-account.d.ts new file mode 100644 index 0000000000..4c9b87c063 --- /dev/null +++ b/types/react-icons/lib/md/supervisor-account.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSupervisorAccount extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/surround-sound.d.ts b/types/react-icons/lib/md/surround-sound.d.ts new file mode 100644 index 0000000000..673f1fdb7e --- /dev/null +++ b/types/react-icons/lib/md/surround-sound.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSurroundSound extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/swap-calls.d.ts b/types/react-icons/lib/md/swap-calls.d.ts new file mode 100644 index 0000000000..5b6c5eb55b --- /dev/null +++ b/types/react-icons/lib/md/swap-calls.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSwapCalls extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/swap-horiz.d.ts b/types/react-icons/lib/md/swap-horiz.d.ts new file mode 100644 index 0000000000..da47fa6f40 --- /dev/null +++ b/types/react-icons/lib/md/swap-horiz.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSwapHoriz extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/swap-vert.d.ts b/types/react-icons/lib/md/swap-vert.d.ts new file mode 100644 index 0000000000..d034eaf517 --- /dev/null +++ b/types/react-icons/lib/md/swap-vert.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSwapVert extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/swap-vertical-circle.d.ts b/types/react-icons/lib/md/swap-vertical-circle.d.ts new file mode 100644 index 0000000000..617a1f6d9a --- /dev/null +++ b/types/react-icons/lib/md/swap-vertical-circle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSwapVerticalCircle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/switch-camera.d.ts b/types/react-icons/lib/md/switch-camera.d.ts new file mode 100644 index 0000000000..c18ad57764 --- /dev/null +++ b/types/react-icons/lib/md/switch-camera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSwitchCamera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/switch-video.d.ts b/types/react-icons/lib/md/switch-video.d.ts new file mode 100644 index 0000000000..0c95857fed --- /dev/null +++ b/types/react-icons/lib/md/switch-video.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSwitchVideo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sync-disabled.d.ts b/types/react-icons/lib/md/sync-disabled.d.ts new file mode 100644 index 0000000000..99fa13f705 --- /dev/null +++ b/types/react-icons/lib/md/sync-disabled.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSyncDisabled extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sync-problem.d.ts b/types/react-icons/lib/md/sync-problem.d.ts new file mode 100644 index 0000000000..4ef37a1cbb --- /dev/null +++ b/types/react-icons/lib/md/sync-problem.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSyncProblem extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/sync.d.ts b/types/react-icons/lib/md/sync.d.ts new file mode 100644 index 0000000000..fefdf38258 --- /dev/null +++ b/types/react-icons/lib/md/sync.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSync extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/system-update-alt.d.ts b/types/react-icons/lib/md/system-update-alt.d.ts new file mode 100644 index 0000000000..2725f7b77c --- /dev/null +++ b/types/react-icons/lib/md/system-update-alt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSystemUpdateAlt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/system-update.d.ts b/types/react-icons/lib/md/system-update.d.ts new file mode 100644 index 0000000000..24ebe7c98c --- /dev/null +++ b/types/react-icons/lib/md/system-update.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdSystemUpdate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/tab-unselected.d.ts b/types/react-icons/lib/md/tab-unselected.d.ts new file mode 100644 index 0000000000..bac83b73ed --- /dev/null +++ b/types/react-icons/lib/md/tab-unselected.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTabUnselected extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/tab.d.ts b/types/react-icons/lib/md/tab.d.ts new file mode 100644 index 0000000000..5fa18473c7 --- /dev/null +++ b/types/react-icons/lib/md/tab.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTab extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/tablet-android.d.ts b/types/react-icons/lib/md/tablet-android.d.ts new file mode 100644 index 0000000000..2f30739971 --- /dev/null +++ b/types/react-icons/lib/md/tablet-android.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTabletAndroid extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/tablet-mac.d.ts b/types/react-icons/lib/md/tablet-mac.d.ts new file mode 100644 index 0000000000..cad896f80b --- /dev/null +++ b/types/react-icons/lib/md/tablet-mac.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTabletMac extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/tablet.d.ts b/types/react-icons/lib/md/tablet.d.ts new file mode 100644 index 0000000000..839c55d2a9 --- /dev/null +++ b/types/react-icons/lib/md/tablet.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTablet extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/tag-faces.d.ts b/types/react-icons/lib/md/tag-faces.d.ts new file mode 100644 index 0000000000..36fe31f9f7 --- /dev/null +++ b/types/react-icons/lib/md/tag-faces.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTagFaces extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/tap-and-play.d.ts b/types/react-icons/lib/md/tap-and-play.d.ts new file mode 100644 index 0000000000..50203118f9 --- /dev/null +++ b/types/react-icons/lib/md/tap-and-play.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTapAndPlay extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/terrain.d.ts b/types/react-icons/lib/md/terrain.d.ts new file mode 100644 index 0000000000..89ddcb3ab1 --- /dev/null +++ b/types/react-icons/lib/md/terrain.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTerrain extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/text-fields.d.ts b/types/react-icons/lib/md/text-fields.d.ts new file mode 100644 index 0000000000..51d63798ed --- /dev/null +++ b/types/react-icons/lib/md/text-fields.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTextFields extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/text-format.d.ts b/types/react-icons/lib/md/text-format.d.ts new file mode 100644 index 0000000000..ca4ef5d0b6 --- /dev/null +++ b/types/react-icons/lib/md/text-format.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTextFormat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/textsms.d.ts b/types/react-icons/lib/md/textsms.d.ts new file mode 100644 index 0000000000..c8f57f986a --- /dev/null +++ b/types/react-icons/lib/md/textsms.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTextsms extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/texture.d.ts b/types/react-icons/lib/md/texture.d.ts new file mode 100644 index 0000000000..48805b49d0 --- /dev/null +++ b/types/react-icons/lib/md/texture.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTexture extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/theaters.d.ts b/types/react-icons/lib/md/theaters.d.ts new file mode 100644 index 0000000000..eeecdd668f --- /dev/null +++ b/types/react-icons/lib/md/theaters.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTheaters extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/thumb-down.d.ts b/types/react-icons/lib/md/thumb-down.d.ts new file mode 100644 index 0000000000..412517a68f --- /dev/null +++ b/types/react-icons/lib/md/thumb-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdThumbDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/thumb-up.d.ts b/types/react-icons/lib/md/thumb-up.d.ts new file mode 100644 index 0000000000..4aedde1b4d --- /dev/null +++ b/types/react-icons/lib/md/thumb-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdThumbUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/thumbs-up-down.d.ts b/types/react-icons/lib/md/thumbs-up-down.d.ts new file mode 100644 index 0000000000..f191397ff2 --- /dev/null +++ b/types/react-icons/lib/md/thumbs-up-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdThumbsUpDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/time-to-leave.d.ts b/types/react-icons/lib/md/time-to-leave.d.ts new file mode 100644 index 0000000000..6da47c86df --- /dev/null +++ b/types/react-icons/lib/md/time-to-leave.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTimeToLeave extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/timelapse.d.ts b/types/react-icons/lib/md/timelapse.d.ts new file mode 100644 index 0000000000..57ac9ba997 --- /dev/null +++ b/types/react-icons/lib/md/timelapse.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTimelapse extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/timeline.d.ts b/types/react-icons/lib/md/timeline.d.ts new file mode 100644 index 0000000000..e3c47270ce --- /dev/null +++ b/types/react-icons/lib/md/timeline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTimeline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/timer-10.d.ts b/types/react-icons/lib/md/timer-10.d.ts new file mode 100644 index 0000000000..309eb0d095 --- /dev/null +++ b/types/react-icons/lib/md/timer-10.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTimer10 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/timer-3.d.ts b/types/react-icons/lib/md/timer-3.d.ts new file mode 100644 index 0000000000..16ffff55b0 --- /dev/null +++ b/types/react-icons/lib/md/timer-3.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTimer3 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/timer-off.d.ts b/types/react-icons/lib/md/timer-off.d.ts new file mode 100644 index 0000000000..60b525d44f --- /dev/null +++ b/types/react-icons/lib/md/timer-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTimerOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/timer.d.ts b/types/react-icons/lib/md/timer.d.ts new file mode 100644 index 0000000000..aefa851f3e --- /dev/null +++ b/types/react-icons/lib/md/timer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTimer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/title.d.ts b/types/react-icons/lib/md/title.d.ts new file mode 100644 index 0000000000..9585257382 --- /dev/null +++ b/types/react-icons/lib/md/title.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTitle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/toc.d.ts b/types/react-icons/lib/md/toc.d.ts new file mode 100644 index 0000000000..cdd1be99e6 --- /dev/null +++ b/types/react-icons/lib/md/toc.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdToc extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/today.d.ts b/types/react-icons/lib/md/today.d.ts new file mode 100644 index 0000000000..c21725c6bb --- /dev/null +++ b/types/react-icons/lib/md/today.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdToday extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/toll.d.ts b/types/react-icons/lib/md/toll.d.ts new file mode 100644 index 0000000000..a95cb48e8e --- /dev/null +++ b/types/react-icons/lib/md/toll.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdToll extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/tonality.d.ts b/types/react-icons/lib/md/tonality.d.ts new file mode 100644 index 0000000000..21595adc48 --- /dev/null +++ b/types/react-icons/lib/md/tonality.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTonality extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/touch-app.d.ts b/types/react-icons/lib/md/touch-app.d.ts new file mode 100644 index 0000000000..f5052a4d41 --- /dev/null +++ b/types/react-icons/lib/md/touch-app.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTouchApp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/toys.d.ts b/types/react-icons/lib/md/toys.d.ts new file mode 100644 index 0000000000..07ecd03fbd --- /dev/null +++ b/types/react-icons/lib/md/toys.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdToys extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/track-changes.d.ts b/types/react-icons/lib/md/track-changes.d.ts new file mode 100644 index 0000000000..a729929069 --- /dev/null +++ b/types/react-icons/lib/md/track-changes.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTrackChanges extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/traffic.d.ts b/types/react-icons/lib/md/traffic.d.ts new file mode 100644 index 0000000000..41cb955abb --- /dev/null +++ b/types/react-icons/lib/md/traffic.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTraffic extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/train.d.ts b/types/react-icons/lib/md/train.d.ts new file mode 100644 index 0000000000..88b32243ca --- /dev/null +++ b/types/react-icons/lib/md/train.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTrain extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/tram.d.ts b/types/react-icons/lib/md/tram.d.ts new file mode 100644 index 0000000000..ac0677ac2f --- /dev/null +++ b/types/react-icons/lib/md/tram.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTram extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/transfer-within-a-station.d.ts b/types/react-icons/lib/md/transfer-within-a-station.d.ts new file mode 100644 index 0000000000..c8ab351a40 --- /dev/null +++ b/types/react-icons/lib/md/transfer-within-a-station.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTransferWithinAStation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/transform.d.ts b/types/react-icons/lib/md/transform.d.ts new file mode 100644 index 0000000000..3898a71c86 --- /dev/null +++ b/types/react-icons/lib/md/transform.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTransform extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/translate.d.ts b/types/react-icons/lib/md/translate.d.ts new file mode 100644 index 0000000000..f8d624afc1 --- /dev/null +++ b/types/react-icons/lib/md/translate.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTranslate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/trending-down.d.ts b/types/react-icons/lib/md/trending-down.d.ts new file mode 100644 index 0000000000..00698234f5 --- /dev/null +++ b/types/react-icons/lib/md/trending-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTrendingDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/trending-flat.d.ts b/types/react-icons/lib/md/trending-flat.d.ts new file mode 100644 index 0000000000..b511527a55 --- /dev/null +++ b/types/react-icons/lib/md/trending-flat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTrendingFlat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/trending-neutral.d.ts b/types/react-icons/lib/md/trending-neutral.d.ts new file mode 100644 index 0000000000..0c3d3d1fc1 --- /dev/null +++ b/types/react-icons/lib/md/trending-neutral.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTrendingNeutral extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/trending-up.d.ts b/types/react-icons/lib/md/trending-up.d.ts new file mode 100644 index 0000000000..4468236a4e --- /dev/null +++ b/types/react-icons/lib/md/trending-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTrendingUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/tune.d.ts b/types/react-icons/lib/md/tune.d.ts new file mode 100644 index 0000000000..76c17a1112 --- /dev/null +++ b/types/react-icons/lib/md/tune.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTune extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/turned-in-not.d.ts b/types/react-icons/lib/md/turned-in-not.d.ts new file mode 100644 index 0000000000..a2120936f2 --- /dev/null +++ b/types/react-icons/lib/md/turned-in-not.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTurnedInNot extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/turned-in.d.ts b/types/react-icons/lib/md/turned-in.d.ts new file mode 100644 index 0000000000..685e4225f4 --- /dev/null +++ b/types/react-icons/lib/md/turned-in.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTurnedIn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/tv.d.ts b/types/react-icons/lib/md/tv.d.ts new file mode 100644 index 0000000000..4d184b9d39 --- /dev/null +++ b/types/react-icons/lib/md/tv.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdTv extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/unarchive.d.ts b/types/react-icons/lib/md/unarchive.d.ts new file mode 100644 index 0000000000..5fb2297759 --- /dev/null +++ b/types/react-icons/lib/md/unarchive.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdUnarchive extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/undo.d.ts b/types/react-icons/lib/md/undo.d.ts new file mode 100644 index 0000000000..16cec6f9f2 --- /dev/null +++ b/types/react-icons/lib/md/undo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdUndo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/unfold-less.d.ts b/types/react-icons/lib/md/unfold-less.d.ts new file mode 100644 index 0000000000..c13b17448f --- /dev/null +++ b/types/react-icons/lib/md/unfold-less.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdUnfoldLess extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/unfold-more.d.ts b/types/react-icons/lib/md/unfold-more.d.ts new file mode 100644 index 0000000000..c87c91e57d --- /dev/null +++ b/types/react-icons/lib/md/unfold-more.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdUnfoldMore extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/update.d.ts b/types/react-icons/lib/md/update.d.ts new file mode 100644 index 0000000000..bfc17eb008 --- /dev/null +++ b/types/react-icons/lib/md/update.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdUpdate extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/usb.d.ts b/types/react-icons/lib/md/usb.d.ts new file mode 100644 index 0000000000..66f7b5444e --- /dev/null +++ b/types/react-icons/lib/md/usb.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdUsb extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/verified-user.d.ts b/types/react-icons/lib/md/verified-user.d.ts new file mode 100644 index 0000000000..680ba2575f --- /dev/null +++ b/types/react-icons/lib/md/verified-user.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVerifiedUser extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/vertical-align-bottom.d.ts b/types/react-icons/lib/md/vertical-align-bottom.d.ts new file mode 100644 index 0000000000..e172ed18d3 --- /dev/null +++ b/types/react-icons/lib/md/vertical-align-bottom.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVerticalAlignBottom extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/vertical-align-center.d.ts b/types/react-icons/lib/md/vertical-align-center.d.ts new file mode 100644 index 0000000000..f672e556c6 --- /dev/null +++ b/types/react-icons/lib/md/vertical-align-center.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVerticalAlignCenter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/vertical-align-top.d.ts b/types/react-icons/lib/md/vertical-align-top.d.ts new file mode 100644 index 0000000000..712e86f0e3 --- /dev/null +++ b/types/react-icons/lib/md/vertical-align-top.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVerticalAlignTop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/vibration.d.ts b/types/react-icons/lib/md/vibration.d.ts new file mode 100644 index 0000000000..6f9b90222f --- /dev/null +++ b/types/react-icons/lib/md/vibration.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVibration extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/video-call.d.ts b/types/react-icons/lib/md/video-call.d.ts new file mode 100644 index 0000000000..b22ae1fcee --- /dev/null +++ b/types/react-icons/lib/md/video-call.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVideoCall extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/video-collection.d.ts b/types/react-icons/lib/md/video-collection.d.ts new file mode 100644 index 0000000000..037903682d --- /dev/null +++ b/types/react-icons/lib/md/video-collection.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVideoCollection extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/video-label.d.ts b/types/react-icons/lib/md/video-label.d.ts new file mode 100644 index 0000000000..b2dc4eb7d1 --- /dev/null +++ b/types/react-icons/lib/md/video-label.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVideoLabel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/video-library.d.ts b/types/react-icons/lib/md/video-library.d.ts new file mode 100644 index 0000000000..75bfe2a8aa --- /dev/null +++ b/types/react-icons/lib/md/video-library.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVideoLibrary extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/videocam-off.d.ts b/types/react-icons/lib/md/videocam-off.d.ts new file mode 100644 index 0000000000..fd9d514107 --- /dev/null +++ b/types/react-icons/lib/md/videocam-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVideocamOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/videocam.d.ts b/types/react-icons/lib/md/videocam.d.ts new file mode 100644 index 0000000000..7dc49c3be4 --- /dev/null +++ b/types/react-icons/lib/md/videocam.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVideocam extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/videogame-asset.d.ts b/types/react-icons/lib/md/videogame-asset.d.ts new file mode 100644 index 0000000000..7e49edf4f8 --- /dev/null +++ b/types/react-icons/lib/md/videogame-asset.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVideogameAsset extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-agenda.d.ts b/types/react-icons/lib/md/view-agenda.d.ts new file mode 100644 index 0000000000..04beb28dd3 --- /dev/null +++ b/types/react-icons/lib/md/view-agenda.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewAgenda extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-array.d.ts b/types/react-icons/lib/md/view-array.d.ts new file mode 100644 index 0000000000..6b125ee5b6 --- /dev/null +++ b/types/react-icons/lib/md/view-array.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewArray extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-carousel.d.ts b/types/react-icons/lib/md/view-carousel.d.ts new file mode 100644 index 0000000000..da381e92f6 --- /dev/null +++ b/types/react-icons/lib/md/view-carousel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewCarousel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-column.d.ts b/types/react-icons/lib/md/view-column.d.ts new file mode 100644 index 0000000000..c5aaaea343 --- /dev/null +++ b/types/react-icons/lib/md/view-column.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewColumn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-comfortable.d.ts b/types/react-icons/lib/md/view-comfortable.d.ts new file mode 100644 index 0000000000..4a8277c807 --- /dev/null +++ b/types/react-icons/lib/md/view-comfortable.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewComfortable extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-comfy.d.ts b/types/react-icons/lib/md/view-comfy.d.ts new file mode 100644 index 0000000000..a7004f4eee --- /dev/null +++ b/types/react-icons/lib/md/view-comfy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewComfy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-compact.d.ts b/types/react-icons/lib/md/view-compact.d.ts new file mode 100644 index 0000000000..fefa73473f --- /dev/null +++ b/types/react-icons/lib/md/view-compact.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewCompact extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-day.d.ts b/types/react-icons/lib/md/view-day.d.ts new file mode 100644 index 0000000000..2013b75c21 --- /dev/null +++ b/types/react-icons/lib/md/view-day.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewDay extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-headline.d.ts b/types/react-icons/lib/md/view-headline.d.ts new file mode 100644 index 0000000000..b82272bf35 --- /dev/null +++ b/types/react-icons/lib/md/view-headline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewHeadline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-list.d.ts b/types/react-icons/lib/md/view-list.d.ts new file mode 100644 index 0000000000..e4cafe07c0 --- /dev/null +++ b/types/react-icons/lib/md/view-list.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewList extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-module.d.ts b/types/react-icons/lib/md/view-module.d.ts new file mode 100644 index 0000000000..745cf535be --- /dev/null +++ b/types/react-icons/lib/md/view-module.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewModule extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-quilt.d.ts b/types/react-icons/lib/md/view-quilt.d.ts new file mode 100644 index 0000000000..f0e1e3694f --- /dev/null +++ b/types/react-icons/lib/md/view-quilt.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewQuilt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-stream.d.ts b/types/react-icons/lib/md/view-stream.d.ts new file mode 100644 index 0000000000..af7906aa62 --- /dev/null +++ b/types/react-icons/lib/md/view-stream.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewStream extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/view-week.d.ts b/types/react-icons/lib/md/view-week.d.ts new file mode 100644 index 0000000000..f40184d700 --- /dev/null +++ b/types/react-icons/lib/md/view-week.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdViewWeek extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/vignette.d.ts b/types/react-icons/lib/md/vignette.d.ts new file mode 100644 index 0000000000..0f34dde7dd --- /dev/null +++ b/types/react-icons/lib/md/vignette.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVignette extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/visibility-off.d.ts b/types/react-icons/lib/md/visibility-off.d.ts new file mode 100644 index 0000000000..679a746bd7 --- /dev/null +++ b/types/react-icons/lib/md/visibility-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVisibilityOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/visibility.d.ts b/types/react-icons/lib/md/visibility.d.ts new file mode 100644 index 0000000000..59c3bb1f38 --- /dev/null +++ b/types/react-icons/lib/md/visibility.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVisibility extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/voice-chat.d.ts b/types/react-icons/lib/md/voice-chat.d.ts new file mode 100644 index 0000000000..a64ac1bee4 --- /dev/null +++ b/types/react-icons/lib/md/voice-chat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVoiceChat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/voicemail.d.ts b/types/react-icons/lib/md/voicemail.d.ts new file mode 100644 index 0000000000..bf922ef49e --- /dev/null +++ b/types/react-icons/lib/md/voicemail.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVoicemail extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/volume-down.d.ts b/types/react-icons/lib/md/volume-down.d.ts new file mode 100644 index 0000000000..f7a335c1c7 --- /dev/null +++ b/types/react-icons/lib/md/volume-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVolumeDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/volume-mute.d.ts b/types/react-icons/lib/md/volume-mute.d.ts new file mode 100644 index 0000000000..566bbe0003 --- /dev/null +++ b/types/react-icons/lib/md/volume-mute.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVolumeMute extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/volume-off.d.ts b/types/react-icons/lib/md/volume-off.d.ts new file mode 100644 index 0000000000..74acca188c --- /dev/null +++ b/types/react-icons/lib/md/volume-off.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVolumeOff extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/volume-up.d.ts b/types/react-icons/lib/md/volume-up.d.ts new file mode 100644 index 0000000000..28387e23f0 --- /dev/null +++ b/types/react-icons/lib/md/volume-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVolumeUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/vpn-key.d.ts b/types/react-icons/lib/md/vpn-key.d.ts new file mode 100644 index 0000000000..e2325babe7 --- /dev/null +++ b/types/react-icons/lib/md/vpn-key.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVpnKey extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/vpn-lock.d.ts b/types/react-icons/lib/md/vpn-lock.d.ts new file mode 100644 index 0000000000..b83205b117 --- /dev/null +++ b/types/react-icons/lib/md/vpn-lock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdVpnLock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/wallpaper.d.ts b/types/react-icons/lib/md/wallpaper.d.ts new file mode 100644 index 0000000000..ea0485412f --- /dev/null +++ b/types/react-icons/lib/md/wallpaper.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWallpaper extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/warning.d.ts b/types/react-icons/lib/md/warning.d.ts new file mode 100644 index 0000000000..74ec79fe30 --- /dev/null +++ b/types/react-icons/lib/md/warning.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWarning extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/watch-later.d.ts b/types/react-icons/lib/md/watch-later.d.ts new file mode 100644 index 0000000000..c4dc2a3b49 --- /dev/null +++ b/types/react-icons/lib/md/watch-later.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWatchLater extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/watch.d.ts b/types/react-icons/lib/md/watch.d.ts new file mode 100644 index 0000000000..ae09dcd597 --- /dev/null +++ b/types/react-icons/lib/md/watch.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWatch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/wb-auto.d.ts b/types/react-icons/lib/md/wb-auto.d.ts new file mode 100644 index 0000000000..216d3b41dc --- /dev/null +++ b/types/react-icons/lib/md/wb-auto.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWbAuto extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/wb-cloudy.d.ts b/types/react-icons/lib/md/wb-cloudy.d.ts new file mode 100644 index 0000000000..2ad62d4341 --- /dev/null +++ b/types/react-icons/lib/md/wb-cloudy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWbCloudy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/wb-incandescent.d.ts b/types/react-icons/lib/md/wb-incandescent.d.ts new file mode 100644 index 0000000000..52b597fc99 --- /dev/null +++ b/types/react-icons/lib/md/wb-incandescent.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWbIncandescent extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/wb-iridescent.d.ts b/types/react-icons/lib/md/wb-iridescent.d.ts new file mode 100644 index 0000000000..6d16c62bba --- /dev/null +++ b/types/react-icons/lib/md/wb-iridescent.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWbIridescent extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/wb-sunny.d.ts b/types/react-icons/lib/md/wb-sunny.d.ts new file mode 100644 index 0000000000..e8bd77c743 --- /dev/null +++ b/types/react-icons/lib/md/wb-sunny.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWbSunny extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/wc.d.ts b/types/react-icons/lib/md/wc.d.ts new file mode 100644 index 0000000000..9e9cde374f --- /dev/null +++ b/types/react-icons/lib/md/wc.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWc extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/web-asset.d.ts b/types/react-icons/lib/md/web-asset.d.ts new file mode 100644 index 0000000000..1871d94e5f --- /dev/null +++ b/types/react-icons/lib/md/web-asset.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWebAsset extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/web.d.ts b/types/react-icons/lib/md/web.d.ts new file mode 100644 index 0000000000..0a6c41e697 --- /dev/null +++ b/types/react-icons/lib/md/web.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWeb extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/weekend.d.ts b/types/react-icons/lib/md/weekend.d.ts new file mode 100644 index 0000000000..4a7c411c87 --- /dev/null +++ b/types/react-icons/lib/md/weekend.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWeekend extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/whatshot.d.ts b/types/react-icons/lib/md/whatshot.d.ts new file mode 100644 index 0000000000..cf16b36c37 --- /dev/null +++ b/types/react-icons/lib/md/whatshot.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWhatshot extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/widgets.d.ts b/types/react-icons/lib/md/widgets.d.ts new file mode 100644 index 0000000000..ea00e70e7b --- /dev/null +++ b/types/react-icons/lib/md/widgets.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWidgets extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/wifi-lock.d.ts b/types/react-icons/lib/md/wifi-lock.d.ts new file mode 100644 index 0000000000..58c31bb22c --- /dev/null +++ b/types/react-icons/lib/md/wifi-lock.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWifiLock extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/wifi-tethering.d.ts b/types/react-icons/lib/md/wifi-tethering.d.ts new file mode 100644 index 0000000000..580c2fe273 --- /dev/null +++ b/types/react-icons/lib/md/wifi-tethering.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWifiTethering extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/wifi.d.ts b/types/react-icons/lib/md/wifi.d.ts new file mode 100644 index 0000000000..ee81b9f84c --- /dev/null +++ b/types/react-icons/lib/md/wifi.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWifi extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/work.d.ts b/types/react-icons/lib/md/work.d.ts new file mode 100644 index 0000000000..8b1f10367f --- /dev/null +++ b/types/react-icons/lib/md/work.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWork extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/wrap-text.d.ts b/types/react-icons/lib/md/wrap-text.d.ts new file mode 100644 index 0000000000..4e90b8190a --- /dev/null +++ b/types/react-icons/lib/md/wrap-text.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdWrapText extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/youtube-searched-for.d.ts b/types/react-icons/lib/md/youtube-searched-for.d.ts new file mode 100644 index 0000000000..0267e151dc --- /dev/null +++ b/types/react-icons/lib/md/youtube-searched-for.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdYoutubeSearchedFor extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/zoom-in.d.ts b/types/react-icons/lib/md/zoom-in.d.ts new file mode 100644 index 0000000000..068a0d9bd7 --- /dev/null +++ b/types/react-icons/lib/md/zoom-in.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdZoomIn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/zoom-out-map.d.ts b/types/react-icons/lib/md/zoom-out-map.d.ts new file mode 100644 index 0000000000..4d526d0095 --- /dev/null +++ b/types/react-icons/lib/md/zoom-out-map.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdZoomOutMap extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/md/zoom-out.d.ts b/types/react-icons/lib/md/zoom-out.d.ts new file mode 100644 index 0000000000..54862f1b45 --- /dev/null +++ b/types/react-icons/lib/md/zoom-out.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class MdZoomOut extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/adjust-brightness.d.ts b/types/react-icons/lib/ti/adjust-brightness.d.ts new file mode 100644 index 0000000000..5beec88e6a --- /dev/null +++ b/types/react-icons/lib/ti/adjust-brightness.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiAdjustBrightness extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/adjust-contrast.d.ts b/types/react-icons/lib/ti/adjust-contrast.d.ts new file mode 100644 index 0000000000..2d49b0ce59 --- /dev/null +++ b/types/react-icons/lib/ti/adjust-contrast.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiAdjustContrast extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/anchor-outline.d.ts b/types/react-icons/lib/ti/anchor-outline.d.ts new file mode 100644 index 0000000000..7a9bc3ab6e --- /dev/null +++ b/types/react-icons/lib/ti/anchor-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiAnchorOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/anchor.d.ts b/types/react-icons/lib/ti/anchor.d.ts new file mode 100644 index 0000000000..3c90ca1623 --- /dev/null +++ b/types/react-icons/lib/ti/anchor.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiAnchor extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/archive.d.ts b/types/react-icons/lib/ti/archive.d.ts new file mode 100644 index 0000000000..22c92eab3d --- /dev/null +++ b/types/react-icons/lib/ti/archive.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArchive extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-back-outline.d.ts b/types/react-icons/lib/ti/arrow-back-outline.d.ts new file mode 100644 index 0000000000..c168ae0809 --- /dev/null +++ b/types/react-icons/lib/ti/arrow-back-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowBackOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-back.d.ts b/types/react-icons/lib/ti/arrow-back.d.ts new file mode 100644 index 0000000000..5eb11665a2 --- /dev/null +++ b/types/react-icons/lib/ti/arrow-back.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowBack extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-down-outline.d.ts b/types/react-icons/lib/ti/arrow-down-outline.d.ts new file mode 100644 index 0000000000..17ff0d0547 --- /dev/null +++ b/types/react-icons/lib/ti/arrow-down-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowDownOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-down-thick.d.ts b/types/react-icons/lib/ti/arrow-down-thick.d.ts new file mode 100644 index 0000000000..450cbe6467 --- /dev/null +++ b/types/react-icons/lib/ti/arrow-down-thick.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowDownThick extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-down.d.ts b/types/react-icons/lib/ti/arrow-down.d.ts new file mode 100644 index 0000000000..fcb3596caf --- /dev/null +++ b/types/react-icons/lib/ti/arrow-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-forward-outline.d.ts b/types/react-icons/lib/ti/arrow-forward-outline.d.ts new file mode 100644 index 0000000000..610881bf2d --- /dev/null +++ b/types/react-icons/lib/ti/arrow-forward-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowForwardOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-forward.d.ts b/types/react-icons/lib/ti/arrow-forward.d.ts new file mode 100644 index 0000000000..a4291100ca --- /dev/null +++ b/types/react-icons/lib/ti/arrow-forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-left-outline.d.ts b/types/react-icons/lib/ti/arrow-left-outline.d.ts new file mode 100644 index 0000000000..fb50e3e8ae --- /dev/null +++ b/types/react-icons/lib/ti/arrow-left-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowLeftOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-left-thick.d.ts b/types/react-icons/lib/ti/arrow-left-thick.d.ts new file mode 100644 index 0000000000..4c5bf0e54e --- /dev/null +++ b/types/react-icons/lib/ti/arrow-left-thick.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowLeftThick extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-left.d.ts b/types/react-icons/lib/ti/arrow-left.d.ts new file mode 100644 index 0000000000..f4ae370d36 --- /dev/null +++ b/types/react-icons/lib/ti/arrow-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-loop-outline.d.ts b/types/react-icons/lib/ti/arrow-loop-outline.d.ts new file mode 100644 index 0000000000..40da459c5f --- /dev/null +++ b/types/react-icons/lib/ti/arrow-loop-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowLoopOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-loop.d.ts b/types/react-icons/lib/ti/arrow-loop.d.ts new file mode 100644 index 0000000000..e4d207fe46 --- /dev/null +++ b/types/react-icons/lib/ti/arrow-loop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowLoop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-maximise-outline.d.ts b/types/react-icons/lib/ti/arrow-maximise-outline.d.ts new file mode 100644 index 0000000000..e6900ecdb4 --- /dev/null +++ b/types/react-icons/lib/ti/arrow-maximise-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowMaximiseOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-maximise.d.ts b/types/react-icons/lib/ti/arrow-maximise.d.ts new file mode 100644 index 0000000000..14797e2179 --- /dev/null +++ b/types/react-icons/lib/ti/arrow-maximise.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowMaximise extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-minimise-outline.d.ts b/types/react-icons/lib/ti/arrow-minimise-outline.d.ts new file mode 100644 index 0000000000..16e1c2c67d --- /dev/null +++ b/types/react-icons/lib/ti/arrow-minimise-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowMinimiseOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-minimise.d.ts b/types/react-icons/lib/ti/arrow-minimise.d.ts new file mode 100644 index 0000000000..557625ec1a --- /dev/null +++ b/types/react-icons/lib/ti/arrow-minimise.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowMinimise extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-move-outline.d.ts b/types/react-icons/lib/ti/arrow-move-outline.d.ts new file mode 100644 index 0000000000..0035cbddca --- /dev/null +++ b/types/react-icons/lib/ti/arrow-move-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowMoveOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-move.d.ts b/types/react-icons/lib/ti/arrow-move.d.ts new file mode 100644 index 0000000000..974082e4ed --- /dev/null +++ b/types/react-icons/lib/ti/arrow-move.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowMove extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-repeat-outline.d.ts b/types/react-icons/lib/ti/arrow-repeat-outline.d.ts new file mode 100644 index 0000000000..7b4e2b2c06 --- /dev/null +++ b/types/react-icons/lib/ti/arrow-repeat-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowRepeatOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-repeat.d.ts b/types/react-icons/lib/ti/arrow-repeat.d.ts new file mode 100644 index 0000000000..00445af479 --- /dev/null +++ b/types/react-icons/lib/ti/arrow-repeat.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowRepeat extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-right-outline.d.ts b/types/react-icons/lib/ti/arrow-right-outline.d.ts new file mode 100644 index 0000000000..7f7319172c --- /dev/null +++ b/types/react-icons/lib/ti/arrow-right-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowRightOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-right-thick.d.ts b/types/react-icons/lib/ti/arrow-right-thick.d.ts new file mode 100644 index 0000000000..cc72754ddf --- /dev/null +++ b/types/react-icons/lib/ti/arrow-right-thick.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowRightThick extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-right.d.ts b/types/react-icons/lib/ti/arrow-right.d.ts new file mode 100644 index 0000000000..0761bfd383 --- /dev/null +++ b/types/react-icons/lib/ti/arrow-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-shuffle.d.ts b/types/react-icons/lib/ti/arrow-shuffle.d.ts new file mode 100644 index 0000000000..c0cb7629b3 --- /dev/null +++ b/types/react-icons/lib/ti/arrow-shuffle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowShuffle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-sorted-down.d.ts b/types/react-icons/lib/ti/arrow-sorted-down.d.ts new file mode 100644 index 0000000000..b7b8a436dd --- /dev/null +++ b/types/react-icons/lib/ti/arrow-sorted-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowSortedDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-sorted-up.d.ts b/types/react-icons/lib/ti/arrow-sorted-up.d.ts new file mode 100644 index 0000000000..66f3ef408a --- /dev/null +++ b/types/react-icons/lib/ti/arrow-sorted-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowSortedUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-sync-outline.d.ts b/types/react-icons/lib/ti/arrow-sync-outline.d.ts new file mode 100644 index 0000000000..91b296966b --- /dev/null +++ b/types/react-icons/lib/ti/arrow-sync-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowSyncOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-sync.d.ts b/types/react-icons/lib/ti/arrow-sync.d.ts new file mode 100644 index 0000000000..4a863fe22c --- /dev/null +++ b/types/react-icons/lib/ti/arrow-sync.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowSync extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-unsorted.d.ts b/types/react-icons/lib/ti/arrow-unsorted.d.ts new file mode 100644 index 0000000000..1fbd71c7fa --- /dev/null +++ b/types/react-icons/lib/ti/arrow-unsorted.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowUnsorted extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-up-outline.d.ts b/types/react-icons/lib/ti/arrow-up-outline.d.ts new file mode 100644 index 0000000000..5f7d9b2baa --- /dev/null +++ b/types/react-icons/lib/ti/arrow-up-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowUpOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-up-thick.d.ts b/types/react-icons/lib/ti/arrow-up-thick.d.ts new file mode 100644 index 0000000000..965192a20a --- /dev/null +++ b/types/react-icons/lib/ti/arrow-up-thick.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowUpThick extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/arrow-up.d.ts b/types/react-icons/lib/ti/arrow-up.d.ts new file mode 100644 index 0000000000..d8930645ae --- /dev/null +++ b/types/react-icons/lib/ti/arrow-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiArrowUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/at.d.ts b/types/react-icons/lib/ti/at.d.ts new file mode 100644 index 0000000000..7eaadbcb42 --- /dev/null +++ b/types/react-icons/lib/ti/at.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiAt extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/attachment-outline.d.ts b/types/react-icons/lib/ti/attachment-outline.d.ts new file mode 100644 index 0000000000..2f3c1c54ea --- /dev/null +++ b/types/react-icons/lib/ti/attachment-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiAttachmentOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/attachment.d.ts b/types/react-icons/lib/ti/attachment.d.ts new file mode 100644 index 0000000000..ae09ff061c --- /dev/null +++ b/types/react-icons/lib/ti/attachment.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiAttachment extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/backspace-outline.d.ts b/types/react-icons/lib/ti/backspace-outline.d.ts new file mode 100644 index 0000000000..a7047f88fc --- /dev/null +++ b/types/react-icons/lib/ti/backspace-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBackspaceOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/backspace.d.ts b/types/react-icons/lib/ti/backspace.d.ts new file mode 100644 index 0000000000..fcd1490219 --- /dev/null +++ b/types/react-icons/lib/ti/backspace.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBackspace extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/battery-charge.d.ts b/types/react-icons/lib/ti/battery-charge.d.ts new file mode 100644 index 0000000000..6b1af42674 --- /dev/null +++ b/types/react-icons/lib/ti/battery-charge.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBatteryCharge extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/battery-full.d.ts b/types/react-icons/lib/ti/battery-full.d.ts new file mode 100644 index 0000000000..6e75957baf --- /dev/null +++ b/types/react-icons/lib/ti/battery-full.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBatteryFull extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/battery-high.d.ts b/types/react-icons/lib/ti/battery-high.d.ts new file mode 100644 index 0000000000..951e63a507 --- /dev/null +++ b/types/react-icons/lib/ti/battery-high.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBatteryHigh extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/battery-low.d.ts b/types/react-icons/lib/ti/battery-low.d.ts new file mode 100644 index 0000000000..9c0f370293 --- /dev/null +++ b/types/react-icons/lib/ti/battery-low.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBatteryLow extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/battery-mid.d.ts b/types/react-icons/lib/ti/battery-mid.d.ts new file mode 100644 index 0000000000..6625efa374 --- /dev/null +++ b/types/react-icons/lib/ti/battery-mid.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBatteryMid extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/beaker.d.ts b/types/react-icons/lib/ti/beaker.d.ts new file mode 100644 index 0000000000..0cdfe9fc68 --- /dev/null +++ b/types/react-icons/lib/ti/beaker.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBeaker extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/beer.d.ts b/types/react-icons/lib/ti/beer.d.ts new file mode 100644 index 0000000000..a76c8d06f6 --- /dev/null +++ b/types/react-icons/lib/ti/beer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBeer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/bell.d.ts b/types/react-icons/lib/ti/bell.d.ts new file mode 100644 index 0000000000..d3dd3950ed --- /dev/null +++ b/types/react-icons/lib/ti/bell.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBell extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/book.d.ts b/types/react-icons/lib/ti/book.d.ts new file mode 100644 index 0000000000..e2a2e7d952 --- /dev/null +++ b/types/react-icons/lib/ti/book.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBook extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/bookmark.d.ts b/types/react-icons/lib/ti/bookmark.d.ts new file mode 100644 index 0000000000..47dc6a5e5f --- /dev/null +++ b/types/react-icons/lib/ti/bookmark.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBookmark extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/briefcase.d.ts b/types/react-icons/lib/ti/briefcase.d.ts new file mode 100644 index 0000000000..c830dab76b --- /dev/null +++ b/types/react-icons/lib/ti/briefcase.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBriefcase extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/brush.d.ts b/types/react-icons/lib/ti/brush.d.ts new file mode 100644 index 0000000000..d8a1b5a5d8 --- /dev/null +++ b/types/react-icons/lib/ti/brush.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBrush extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/business-card.d.ts b/types/react-icons/lib/ti/business-card.d.ts new file mode 100644 index 0000000000..1ecf3f6621 --- /dev/null +++ b/types/react-icons/lib/ti/business-card.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiBusinessCard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/calculator.d.ts b/types/react-icons/lib/ti/calculator.d.ts new file mode 100644 index 0000000000..403ce8c3e6 --- /dev/null +++ b/types/react-icons/lib/ti/calculator.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCalculator extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/calendar-outline.d.ts b/types/react-icons/lib/ti/calendar-outline.d.ts new file mode 100644 index 0000000000..bd3dd9e9d3 --- /dev/null +++ b/types/react-icons/lib/ti/calendar-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCalendarOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/calendar.d.ts b/types/react-icons/lib/ti/calendar.d.ts new file mode 100644 index 0000000000..9b0ba315d5 --- /dev/null +++ b/types/react-icons/lib/ti/calendar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCalendar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/calender-outline.d.ts b/types/react-icons/lib/ti/calender-outline.d.ts new file mode 100644 index 0000000000..8afcb4ef62 --- /dev/null +++ b/types/react-icons/lib/ti/calender-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCalenderOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/calender.d.ts b/types/react-icons/lib/ti/calender.d.ts new file mode 100644 index 0000000000..0393fece08 --- /dev/null +++ b/types/react-icons/lib/ti/calender.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCalender extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/camera-outline.d.ts b/types/react-icons/lib/ti/camera-outline.d.ts new file mode 100644 index 0000000000..940ba3bd58 --- /dev/null +++ b/types/react-icons/lib/ti/camera-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCameraOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/camera.d.ts b/types/react-icons/lib/ti/camera.d.ts new file mode 100644 index 0000000000..8291efbd7d --- /dev/null +++ b/types/react-icons/lib/ti/camera.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCamera extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/cancel-outline.d.ts b/types/react-icons/lib/ti/cancel-outline.d.ts new file mode 100644 index 0000000000..233d7b4b9b --- /dev/null +++ b/types/react-icons/lib/ti/cancel-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCancelOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/cancel.d.ts b/types/react-icons/lib/ti/cancel.d.ts new file mode 100644 index 0000000000..882317d054 --- /dev/null +++ b/types/react-icons/lib/ti/cancel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCancel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/chart-area-outline.d.ts b/types/react-icons/lib/ti/chart-area-outline.d.ts new file mode 100644 index 0000000000..fa40a08cde --- /dev/null +++ b/types/react-icons/lib/ti/chart-area-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiChartAreaOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/chart-area.d.ts b/types/react-icons/lib/ti/chart-area.d.ts new file mode 100644 index 0000000000..80806cbd7c --- /dev/null +++ b/types/react-icons/lib/ti/chart-area.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiChartArea extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/chart-bar-outline.d.ts b/types/react-icons/lib/ti/chart-bar-outline.d.ts new file mode 100644 index 0000000000..9ec3c4ca70 --- /dev/null +++ b/types/react-icons/lib/ti/chart-bar-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiChartBarOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/chart-bar.d.ts b/types/react-icons/lib/ti/chart-bar.d.ts new file mode 100644 index 0000000000..a98da7fe10 --- /dev/null +++ b/types/react-icons/lib/ti/chart-bar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiChartBar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/chart-line-outline.d.ts b/types/react-icons/lib/ti/chart-line-outline.d.ts new file mode 100644 index 0000000000..f5a982d0f1 --- /dev/null +++ b/types/react-icons/lib/ti/chart-line-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiChartLineOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/chart-line.d.ts b/types/react-icons/lib/ti/chart-line.d.ts new file mode 100644 index 0000000000..be581f2b53 --- /dev/null +++ b/types/react-icons/lib/ti/chart-line.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiChartLine extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/chart-pie-outline.d.ts b/types/react-icons/lib/ti/chart-pie-outline.d.ts new file mode 100644 index 0000000000..449d799a79 --- /dev/null +++ b/types/react-icons/lib/ti/chart-pie-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiChartPieOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/chart-pie.d.ts b/types/react-icons/lib/ti/chart-pie.d.ts new file mode 100644 index 0000000000..5a641290fb --- /dev/null +++ b/types/react-icons/lib/ti/chart-pie.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiChartPie extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/chevron-left-outline.d.ts b/types/react-icons/lib/ti/chevron-left-outline.d.ts new file mode 100644 index 0000000000..38ad9ab531 --- /dev/null +++ b/types/react-icons/lib/ti/chevron-left-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiChevronLeftOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/chevron-left.d.ts b/types/react-icons/lib/ti/chevron-left.d.ts new file mode 100644 index 0000000000..d6a3e7286c --- /dev/null +++ b/types/react-icons/lib/ti/chevron-left.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiChevronLeft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/chevron-right-outline.d.ts b/types/react-icons/lib/ti/chevron-right-outline.d.ts new file mode 100644 index 0000000000..09cc6370fd --- /dev/null +++ b/types/react-icons/lib/ti/chevron-right-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiChevronRightOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/chevron-right.d.ts b/types/react-icons/lib/ti/chevron-right.d.ts new file mode 100644 index 0000000000..311697c66a --- /dev/null +++ b/types/react-icons/lib/ti/chevron-right.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiChevronRight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/clipboard.d.ts b/types/react-icons/lib/ti/clipboard.d.ts new file mode 100644 index 0000000000..cce73b1bc7 --- /dev/null +++ b/types/react-icons/lib/ti/clipboard.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiClipboard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/cloud-storage-outline.d.ts b/types/react-icons/lib/ti/cloud-storage-outline.d.ts new file mode 100644 index 0000000000..d36a07cdb6 --- /dev/null +++ b/types/react-icons/lib/ti/cloud-storage-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCloudStorageOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/cloud-storage.d.ts b/types/react-icons/lib/ti/cloud-storage.d.ts new file mode 100644 index 0000000000..45142999f9 --- /dev/null +++ b/types/react-icons/lib/ti/cloud-storage.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCloudStorage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/code-outline.d.ts b/types/react-icons/lib/ti/code-outline.d.ts new file mode 100644 index 0000000000..f7c2eec174 --- /dev/null +++ b/types/react-icons/lib/ti/code-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCodeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/code.d.ts b/types/react-icons/lib/ti/code.d.ts new file mode 100644 index 0000000000..e6bf302269 --- /dev/null +++ b/types/react-icons/lib/ti/code.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCode extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/coffee.d.ts b/types/react-icons/lib/ti/coffee.d.ts new file mode 100644 index 0000000000..df3aa18694 --- /dev/null +++ b/types/react-icons/lib/ti/coffee.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCoffee extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/cog-outline.d.ts b/types/react-icons/lib/ti/cog-outline.d.ts new file mode 100644 index 0000000000..40c76991c5 --- /dev/null +++ b/types/react-icons/lib/ti/cog-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCogOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/cog.d.ts b/types/react-icons/lib/ti/cog.d.ts new file mode 100644 index 0000000000..24573b9291 --- /dev/null +++ b/types/react-icons/lib/ti/cog.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCog extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/compass.d.ts b/types/react-icons/lib/ti/compass.d.ts new file mode 100644 index 0000000000..54c70bee8b --- /dev/null +++ b/types/react-icons/lib/ti/compass.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCompass extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/contacts.d.ts b/types/react-icons/lib/ti/contacts.d.ts new file mode 100644 index 0000000000..f780e8ca9c --- /dev/null +++ b/types/react-icons/lib/ti/contacts.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiContacts extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/credit-card.d.ts b/types/react-icons/lib/ti/credit-card.d.ts new file mode 100644 index 0000000000..2f05b56233 --- /dev/null +++ b/types/react-icons/lib/ti/credit-card.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCreditCard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/cross.d.ts b/types/react-icons/lib/ti/cross.d.ts new file mode 100644 index 0000000000..5af003cf93 --- /dev/null +++ b/types/react-icons/lib/ti/cross.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCross extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/css3.d.ts b/types/react-icons/lib/ti/css3.d.ts new file mode 100644 index 0000000000..00e79bcbce --- /dev/null +++ b/types/react-icons/lib/ti/css3.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiCss3 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/database.d.ts b/types/react-icons/lib/ti/database.d.ts new file mode 100644 index 0000000000..65dccc441f --- /dev/null +++ b/types/react-icons/lib/ti/database.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDatabase extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/delete-outline.d.ts b/types/react-icons/lib/ti/delete-outline.d.ts new file mode 100644 index 0000000000..bf27aa49f9 --- /dev/null +++ b/types/react-icons/lib/ti/delete-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDeleteOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/delete.d.ts b/types/react-icons/lib/ti/delete.d.ts new file mode 100644 index 0000000000..57791a71ab --- /dev/null +++ b/types/react-icons/lib/ti/delete.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDelete extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/device-desktop.d.ts b/types/react-icons/lib/ti/device-desktop.d.ts new file mode 100644 index 0000000000..d405810142 --- /dev/null +++ b/types/react-icons/lib/ti/device-desktop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDeviceDesktop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/device-laptop.d.ts b/types/react-icons/lib/ti/device-laptop.d.ts new file mode 100644 index 0000000000..dada29c74f --- /dev/null +++ b/types/react-icons/lib/ti/device-laptop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDeviceLaptop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/device-phone.d.ts b/types/react-icons/lib/ti/device-phone.d.ts new file mode 100644 index 0000000000..977cf3f0f1 --- /dev/null +++ b/types/react-icons/lib/ti/device-phone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDevicePhone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/device-tablet.d.ts b/types/react-icons/lib/ti/device-tablet.d.ts new file mode 100644 index 0000000000..06a9e07cca --- /dev/null +++ b/types/react-icons/lib/ti/device-tablet.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDeviceTablet extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/directions.d.ts b/types/react-icons/lib/ti/directions.d.ts new file mode 100644 index 0000000000..3be0928f95 --- /dev/null +++ b/types/react-icons/lib/ti/directions.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDirections extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/divide-outline.d.ts b/types/react-icons/lib/ti/divide-outline.d.ts new file mode 100644 index 0000000000..9b30f64d2d --- /dev/null +++ b/types/react-icons/lib/ti/divide-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDivideOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/divide.d.ts b/types/react-icons/lib/ti/divide.d.ts new file mode 100644 index 0000000000..375a79b628 --- /dev/null +++ b/types/react-icons/lib/ti/divide.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDivide extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/document-add.d.ts b/types/react-icons/lib/ti/document-add.d.ts new file mode 100644 index 0000000000..0b2ed20d5c --- /dev/null +++ b/types/react-icons/lib/ti/document-add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDocumentAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/document-delete.d.ts b/types/react-icons/lib/ti/document-delete.d.ts new file mode 100644 index 0000000000..916608ade9 --- /dev/null +++ b/types/react-icons/lib/ti/document-delete.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDocumentDelete extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/document-text.d.ts b/types/react-icons/lib/ti/document-text.d.ts new file mode 100644 index 0000000000..c3af80ad89 --- /dev/null +++ b/types/react-icons/lib/ti/document-text.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDocumentText extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/document.d.ts b/types/react-icons/lib/ti/document.d.ts new file mode 100644 index 0000000000..60ace2ba35 --- /dev/null +++ b/types/react-icons/lib/ti/document.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDocument extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/download-outline.d.ts b/types/react-icons/lib/ti/download-outline.d.ts new file mode 100644 index 0000000000..b405ad061c --- /dev/null +++ b/types/react-icons/lib/ti/download-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDownloadOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/download.d.ts b/types/react-icons/lib/ti/download.d.ts new file mode 100644 index 0000000000..6cf13f385b --- /dev/null +++ b/types/react-icons/lib/ti/download.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDownload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/dropbox.d.ts b/types/react-icons/lib/ti/dropbox.d.ts new file mode 100644 index 0000000000..000560becf --- /dev/null +++ b/types/react-icons/lib/ti/dropbox.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiDropbox extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/edit.d.ts b/types/react-icons/lib/ti/edit.d.ts new file mode 100644 index 0000000000..7a937ccd2a --- /dev/null +++ b/types/react-icons/lib/ti/edit.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiEdit extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/eject-outline.d.ts b/types/react-icons/lib/ti/eject-outline.d.ts new file mode 100644 index 0000000000..be15038312 --- /dev/null +++ b/types/react-icons/lib/ti/eject-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiEjectOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/eject.d.ts b/types/react-icons/lib/ti/eject.d.ts new file mode 100644 index 0000000000..3ad5cda1c4 --- /dev/null +++ b/types/react-icons/lib/ti/eject.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiEject extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/equals-outline.d.ts b/types/react-icons/lib/ti/equals-outline.d.ts new file mode 100644 index 0000000000..04e77346cc --- /dev/null +++ b/types/react-icons/lib/ti/equals-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiEqualsOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/equals.d.ts b/types/react-icons/lib/ti/equals.d.ts new file mode 100644 index 0000000000..231585549c --- /dev/null +++ b/types/react-icons/lib/ti/equals.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiEquals extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/export-outline.d.ts b/types/react-icons/lib/ti/export-outline.d.ts new file mode 100644 index 0000000000..4d51c29d1a --- /dev/null +++ b/types/react-icons/lib/ti/export-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiExportOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/export.d.ts b/types/react-icons/lib/ti/export.d.ts new file mode 100644 index 0000000000..fe71d72677 --- /dev/null +++ b/types/react-icons/lib/ti/export.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiExport extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/eye-outline.d.ts b/types/react-icons/lib/ti/eye-outline.d.ts new file mode 100644 index 0000000000..1956f13f4d --- /dev/null +++ b/types/react-icons/lib/ti/eye-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiEyeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/eye.d.ts b/types/react-icons/lib/ti/eye.d.ts new file mode 100644 index 0000000000..810fdf7009 --- /dev/null +++ b/types/react-icons/lib/ti/eye.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiEye extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/feather.d.ts b/types/react-icons/lib/ti/feather.d.ts new file mode 100644 index 0000000000..b4a99ba3ec --- /dev/null +++ b/types/react-icons/lib/ti/feather.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFeather extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/film.d.ts b/types/react-icons/lib/ti/film.d.ts new file mode 100644 index 0000000000..a035c6378d --- /dev/null +++ b/types/react-icons/lib/ti/film.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFilm extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/filter.d.ts b/types/react-icons/lib/ti/filter.d.ts new file mode 100644 index 0000000000..f806a9034b --- /dev/null +++ b/types/react-icons/lib/ti/filter.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFilter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/flag-outline.d.ts b/types/react-icons/lib/ti/flag-outline.d.ts new file mode 100644 index 0000000000..164b221757 --- /dev/null +++ b/types/react-icons/lib/ti/flag-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFlagOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/flag.d.ts b/types/react-icons/lib/ti/flag.d.ts new file mode 100644 index 0000000000..4aa2838c02 --- /dev/null +++ b/types/react-icons/lib/ti/flag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFlag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/flash-outline.d.ts b/types/react-icons/lib/ti/flash-outline.d.ts new file mode 100644 index 0000000000..5acea29381 --- /dev/null +++ b/types/react-icons/lib/ti/flash-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFlashOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/flash.d.ts b/types/react-icons/lib/ti/flash.d.ts new file mode 100644 index 0000000000..27bbe63a9d --- /dev/null +++ b/types/react-icons/lib/ti/flash.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFlash extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/flow-children.d.ts b/types/react-icons/lib/ti/flow-children.d.ts new file mode 100644 index 0000000000..8e3a8a9246 --- /dev/null +++ b/types/react-icons/lib/ti/flow-children.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFlowChildren extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/flow-merge.d.ts b/types/react-icons/lib/ti/flow-merge.d.ts new file mode 100644 index 0000000000..c479b08b53 --- /dev/null +++ b/types/react-icons/lib/ti/flow-merge.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFlowMerge extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/flow-parallel.d.ts b/types/react-icons/lib/ti/flow-parallel.d.ts new file mode 100644 index 0000000000..4ed94844fc --- /dev/null +++ b/types/react-icons/lib/ti/flow-parallel.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFlowParallel extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/flow-switch.d.ts b/types/react-icons/lib/ti/flow-switch.d.ts new file mode 100644 index 0000000000..8a68f856fa --- /dev/null +++ b/types/react-icons/lib/ti/flow-switch.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFlowSwitch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/folder-add.d.ts b/types/react-icons/lib/ti/folder-add.d.ts new file mode 100644 index 0000000000..83a709521a --- /dev/null +++ b/types/react-icons/lib/ti/folder-add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFolderAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/folder-delete.d.ts b/types/react-icons/lib/ti/folder-delete.d.ts new file mode 100644 index 0000000000..bf96e60c12 --- /dev/null +++ b/types/react-icons/lib/ti/folder-delete.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFolderDelete extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/folder-open.d.ts b/types/react-icons/lib/ti/folder-open.d.ts new file mode 100644 index 0000000000..3c0f2ab47f --- /dev/null +++ b/types/react-icons/lib/ti/folder-open.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFolderOpen extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/folder.d.ts b/types/react-icons/lib/ti/folder.d.ts new file mode 100644 index 0000000000..b12e97b6c3 --- /dev/null +++ b/types/react-icons/lib/ti/folder.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiFolder extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/gift.d.ts b/types/react-icons/lib/ti/gift.d.ts new file mode 100644 index 0000000000..25e13a5038 --- /dev/null +++ b/types/react-icons/lib/ti/gift.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiGift extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/globe-outline.d.ts b/types/react-icons/lib/ti/globe-outline.d.ts new file mode 100644 index 0000000000..ee4d8cbb6b --- /dev/null +++ b/types/react-icons/lib/ti/globe-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiGlobeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/globe.d.ts b/types/react-icons/lib/ti/globe.d.ts new file mode 100644 index 0000000000..30912a9f17 --- /dev/null +++ b/types/react-icons/lib/ti/globe.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiGlobe extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/group-outline.d.ts b/types/react-icons/lib/ti/group-outline.d.ts new file mode 100644 index 0000000000..621001d90e --- /dev/null +++ b/types/react-icons/lib/ti/group-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiGroupOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/group.d.ts b/types/react-icons/lib/ti/group.d.ts new file mode 100644 index 0000000000..bb5fcf8559 --- /dev/null +++ b/types/react-icons/lib/ti/group.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiGroup extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/headphones.d.ts b/types/react-icons/lib/ti/headphones.d.ts new file mode 100644 index 0000000000..90fb1a083f --- /dev/null +++ b/types/react-icons/lib/ti/headphones.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiHeadphones extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/heart-full-outline.d.ts b/types/react-icons/lib/ti/heart-full-outline.d.ts new file mode 100644 index 0000000000..8153a02133 --- /dev/null +++ b/types/react-icons/lib/ti/heart-full-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiHeartFullOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/heart-half-outline.d.ts b/types/react-icons/lib/ti/heart-half-outline.d.ts new file mode 100644 index 0000000000..9d7482079f --- /dev/null +++ b/types/react-icons/lib/ti/heart-half-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiHeartHalfOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/heart-outline.d.ts b/types/react-icons/lib/ti/heart-outline.d.ts new file mode 100644 index 0000000000..77ebb5ba4d --- /dev/null +++ b/types/react-icons/lib/ti/heart-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiHeartOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/heart.d.ts b/types/react-icons/lib/ti/heart.d.ts new file mode 100644 index 0000000000..edf26ea22d --- /dev/null +++ b/types/react-icons/lib/ti/heart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiHeart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/home-outline.d.ts b/types/react-icons/lib/ti/home-outline.d.ts new file mode 100644 index 0000000000..aba8177146 --- /dev/null +++ b/types/react-icons/lib/ti/home-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiHomeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/home.d.ts b/types/react-icons/lib/ti/home.d.ts new file mode 100644 index 0000000000..ffd2e0a744 --- /dev/null +++ b/types/react-icons/lib/ti/home.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiHome extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/html5.d.ts b/types/react-icons/lib/ti/html5.d.ts new file mode 100644 index 0000000000..7850028128 --- /dev/null +++ b/types/react-icons/lib/ti/html5.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiHtml5 extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/image-outline.d.ts b/types/react-icons/lib/ti/image-outline.d.ts new file mode 100644 index 0000000000..e8dabff924 --- /dev/null +++ b/types/react-icons/lib/ti/image-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiImageOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/image.d.ts b/types/react-icons/lib/ti/image.d.ts new file mode 100644 index 0000000000..f33b613d66 --- /dev/null +++ b/types/react-icons/lib/ti/image.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiImage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/index.d.ts b/types/react-icons/lib/ti/index.d.ts new file mode 100644 index 0000000000..bbe2809f2e --- /dev/null +++ b/types/react-icons/lib/ti/index.d.ts @@ -0,0 +1,339 @@ +export { default as TiAdjustBrightness } from "./adjust-brightness"; +export { default as TiAdjustContrast } from "./adjust-contrast"; +export { default as TiAnchorOutline } from "./anchor-outline"; +export { default as TiAnchor } from "./anchor"; +export { default as TiArchive } from "./archive"; +export { default as TiArrowBackOutline } from "./arrow-back-outline"; +export { default as TiArrowBack } from "./arrow-back"; +export { default as TiArrowDownOutline } from "./arrow-down-outline"; +export { default as TiArrowDownThick } from "./arrow-down-thick"; +export { default as TiArrowDown } from "./arrow-down"; +export { default as TiArrowForwardOutline } from "./arrow-forward-outline"; +export { default as TiArrowForward } from "./arrow-forward"; +export { default as TiArrowLeftOutline } from "./arrow-left-outline"; +export { default as TiArrowLeftThick } from "./arrow-left-thick"; +export { default as TiArrowLeft } from "./arrow-left"; +export { default as TiArrowLoopOutline } from "./arrow-loop-outline"; +export { default as TiArrowLoop } from "./arrow-loop"; +export { default as TiArrowMaximiseOutline } from "./arrow-maximise-outline"; +export { default as TiArrowMaximise } from "./arrow-maximise"; +export { default as TiArrowMinimiseOutline } from "./arrow-minimise-outline"; +export { default as TiArrowMinimise } from "./arrow-minimise"; +export { default as TiArrowMoveOutline } from "./arrow-move-outline"; +export { default as TiArrowMove } from "./arrow-move"; +export { default as TiArrowRepeatOutline } from "./arrow-repeat-outline"; +export { default as TiArrowRepeat } from "./arrow-repeat"; +export { default as TiArrowRightOutline } from "./arrow-right-outline"; +export { default as TiArrowRightThick } from "./arrow-right-thick"; +export { default as TiArrowRight } from "./arrow-right"; +export { default as TiArrowShuffle } from "./arrow-shuffle"; +export { default as TiArrowSortedDown } from "./arrow-sorted-down"; +export { default as TiArrowSortedUp } from "./arrow-sorted-up"; +export { default as TiArrowSyncOutline } from "./arrow-sync-outline"; +export { default as TiArrowSync } from "./arrow-sync"; +export { default as TiArrowUnsorted } from "./arrow-unsorted"; +export { default as TiArrowUpOutline } from "./arrow-up-outline"; +export { default as TiArrowUpThick } from "./arrow-up-thick"; +export { default as TiArrowUp } from "./arrow-up"; +export { default as TiAt } from "./at"; +export { default as TiAttachmentOutline } from "./attachment-outline"; +export { default as TiAttachment } from "./attachment"; +export { default as TiBackspaceOutline } from "./backspace-outline"; +export { default as TiBackspace } from "./backspace"; +export { default as TiBatteryCharge } from "./battery-charge"; +export { default as TiBatteryFull } from "./battery-full"; +export { default as TiBatteryHigh } from "./battery-high"; +export { default as TiBatteryLow } from "./battery-low"; +export { default as TiBatteryMid } from "./battery-mid"; +export { default as TiBeaker } from "./beaker"; +export { default as TiBeer } from "./beer"; +export { default as TiBell } from "./bell"; +export { default as TiBook } from "./book"; +export { default as TiBookmark } from "./bookmark"; +export { default as TiBriefcase } from "./briefcase"; +export { default as TiBrush } from "./brush"; +export { default as TiBusinessCard } from "./business-card"; +export { default as TiCalculator } from "./calculator"; +export { default as TiCalendarOutline } from "./calendar-outline"; +export { default as TiCalendar } from "./calendar"; +export { default as TiCalenderOutline } from "./calender-outline"; +export { default as TiCalender } from "./calender"; +export { default as TiCameraOutline } from "./camera-outline"; +export { default as TiCamera } from "./camera"; +export { default as TiCancelOutline } from "./cancel-outline"; +export { default as TiCancel } from "./cancel"; +export { default as TiChartAreaOutline } from "./chart-area-outline"; +export { default as TiChartArea } from "./chart-area"; +export { default as TiChartBarOutline } from "./chart-bar-outline"; +export { default as TiChartBar } from "./chart-bar"; +export { default as TiChartLineOutline } from "./chart-line-outline"; +export { default as TiChartLine } from "./chart-line"; +export { default as TiChartPieOutline } from "./chart-pie-outline"; +export { default as TiChartPie } from "./chart-pie"; +export { default as TiChevronLeftOutline } from "./chevron-left-outline"; +export { default as TiChevronLeft } from "./chevron-left"; +export { default as TiChevronRightOutline } from "./chevron-right-outline"; +export { default as TiChevronRight } from "./chevron-right"; +export { default as TiClipboard } from "./clipboard"; +export { default as TiCloudStorageOutline } from "./cloud-storage-outline"; +export { default as TiCloudStorage } from "./cloud-storage"; +export { default as TiCodeOutline } from "./code-outline"; +export { default as TiCode } from "./code"; +export { default as TiCoffee } from "./coffee"; +export { default as TiCogOutline } from "./cog-outline"; +export { default as TiCog } from "./cog"; +export { default as TiCompass } from "./compass"; +export { default as TiContacts } from "./contacts"; +export { default as TiCreditCard } from "./credit-card"; +export { default as TiCross } from "./cross"; +export { default as TiCss3 } from "./css3"; +export { default as TiDatabase } from "./database"; +export { default as TiDeleteOutline } from "./delete-outline"; +export { default as TiDelete } from "./delete"; +export { default as TiDeviceDesktop } from "./device-desktop"; +export { default as TiDeviceLaptop } from "./device-laptop"; +export { default as TiDevicePhone } from "./device-phone"; +export { default as TiDeviceTablet } from "./device-tablet"; +export { default as TiDirections } from "./directions"; +export { default as TiDivideOutline } from "./divide-outline"; +export { default as TiDivide } from "./divide"; +export { default as TiDocumentAdd } from "./document-add"; +export { default as TiDocumentDelete } from "./document-delete"; +export { default as TiDocumentText } from "./document-text"; +export { default as TiDocument } from "./document"; +export { default as TiDownloadOutline } from "./download-outline"; +export { default as TiDownload } from "./download"; +export { default as TiDropbox } from "./dropbox"; +export { default as TiEdit } from "./edit"; +export { default as TiEjectOutline } from "./eject-outline"; +export { default as TiEject } from "./eject"; +export { default as TiEqualsOutline } from "./equals-outline"; +export { default as TiEquals } from "./equals"; +export { default as TiExportOutline } from "./export-outline"; +export { default as TiExport } from "./export"; +export { default as TiEyeOutline } from "./eye-outline"; +export { default as TiEye } from "./eye"; +export { default as TiFeather } from "./feather"; +export { default as TiFilm } from "./film"; +export { default as TiFilter } from "./filter"; +export { default as TiFlagOutline } from "./flag-outline"; +export { default as TiFlag } from "./flag"; +export { default as TiFlashOutline } from "./flash-outline"; +export { default as TiFlash } from "./flash"; +export { default as TiFlowChildren } from "./flow-children"; +export { default as TiFlowMerge } from "./flow-merge"; +export { default as TiFlowParallel } from "./flow-parallel"; +export { default as TiFlowSwitch } from "./flow-switch"; +export { default as TiFolderAdd } from "./folder-add"; +export { default as TiFolderDelete } from "./folder-delete"; +export { default as TiFolderOpen } from "./folder-open"; +export { default as TiFolder } from "./folder"; +export { default as TiGift } from "./gift"; +export { default as TiGlobeOutline } from "./globe-outline"; +export { default as TiGlobe } from "./globe"; +export { default as TiGroupOutline } from "./group-outline"; +export { default as TiGroup } from "./group"; +export { default as TiHeadphones } from "./headphones"; +export { default as TiHeartFullOutline } from "./heart-full-outline"; +export { default as TiHeartHalfOutline } from "./heart-half-outline"; +export { default as TiHeartOutline } from "./heart-outline"; +export { default as TiHeart } from "./heart"; +export { default as TiHomeOutline } from "./home-outline"; +export { default as TiHome } from "./home"; +export { default as TiHtml5 } from "./html5"; +export { default as TiImageOutline } from "./image-outline"; +export { default as TiImage } from "./image"; +export { default as TiInfinityOutline } from "./infinity-outline"; +export { default as TiInfinity } from "./infinity"; +export { default as TiInfoLargeOutline } from "./info-large-outline"; +export { default as TiInfoLarge } from "./info-large"; +export { default as TiInfoOutline } from "./info-outline"; +export { default as TiInfo } from "./info"; +export { default as TiInputCheckedOutline } from "./input-checked-outline"; +export { default as TiInputChecked } from "./input-checked"; +export { default as TiKeyOutline } from "./key-outline"; +export { default as TiKey } from "./key"; +export { default as TiKeyboard } from "./keyboard"; +export { default as TiLeaf } from "./leaf"; +export { default as TiLightbulb } from "./lightbulb"; +export { default as TiLinkOutline } from "./link-outline"; +export { default as TiLink } from "./link"; +export { default as TiLocationArrowOutline } from "./location-arrow-outline"; +export { default as TiLocationArrow } from "./location-arrow"; +export { default as TiLocationOutline } from "./location-outline"; +export { default as TiLocation } from "./location"; +export { default as TiLockClosedOutline } from "./lock-closed-outline"; +export { default as TiLockClosed } from "./lock-closed"; +export { default as TiLockOpenOutline } from "./lock-open-outline"; +export { default as TiLockOpen } from "./lock-open"; +export { default as TiMail } from "./mail"; +export { default as TiMap } from "./map"; +export { default as TiMediaEjectOutline } from "./media-eject-outline"; +export { default as TiMediaEject } from "./media-eject"; +export { default as TiMediaFastForwardOutline } from "./media-fast-forward-outline"; +export { default as TiMediaFastForward } from "./media-fast-forward"; +export { default as TiMediaPauseOutline } from "./media-pause-outline"; +export { default as TiMediaPause } from "./media-pause"; +export { default as TiMediaPlayOutline } from "./media-play-outline"; +export { default as TiMediaPlayReverseOutline } from "./media-play-reverse-outline"; +export { default as TiMediaPlayReverse } from "./media-play-reverse"; +export { default as TiMediaPlay } from "./media-play"; +export { default as TiMediaRecordOutline } from "./media-record-outline"; +export { default as TiMediaRecord } from "./media-record"; +export { default as TiMediaRewindOutline } from "./media-rewind-outline"; +export { default as TiMediaRewind } from "./media-rewind"; +export { default as TiMediaStopOutline } from "./media-stop-outline"; +export { default as TiMediaStop } from "./media-stop"; +export { default as TiMessageTyping } from "./message-typing"; +export { default as TiMessage } from "./message"; +export { default as TiMessages } from "./messages"; +export { default as TiMicrophoneOutline } from "./microphone-outline"; +export { default as TiMicrophone } from "./microphone"; +export { default as TiMinusOutline } from "./minus-outline"; +export { default as TiMinus } from "./minus"; +export { default as TiMortarBoard } from "./mortar-board"; +export { default as TiNews } from "./news"; +export { default as TiNotesOutline } from "./notes-outline"; +export { default as TiNotes } from "./notes"; +export { default as TiPen } from "./pen"; +export { default as TiPencil } from "./pencil"; +export { default as TiPhoneOutline } from "./phone-outline"; +export { default as TiPhone } from "./phone"; +export { default as TiPiOutline } from "./pi-outline"; +export { default as TiPi } from "./pi"; +export { default as TiPinOutline } from "./pin-outline"; +export { default as TiPin } from "./pin"; +export { default as TiPipette } from "./pipette"; +export { default as TiPlaneOutline } from "./plane-outline"; +export { default as TiPlane } from "./plane"; +export { default as TiPlug } from "./plug"; +export { default as TiPlusOutline } from "./plus-outline"; +export { default as TiPlus } from "./plus"; +export { default as TiPointOfInterestOutline } from "./point-of-interest-outline"; +export { default as TiPointOfInterest } from "./point-of-interest"; +export { default as TiPowerOutline } from "./power-outline"; +export { default as TiPower } from "./power"; +export { default as TiPrinter } from "./printer"; +export { default as TiPuzzleOutline } from "./puzzle-outline"; +export { default as TiPuzzle } from "./puzzle"; +export { default as TiRadarOutline } from "./radar-outline"; +export { default as TiRadar } from "./radar"; +export { default as TiRefreshOutline } from "./refresh-outline"; +export { default as TiRefresh } from "./refresh"; +export { default as TiRssOutline } from "./rss-outline"; +export { default as TiRss } from "./rss"; +export { default as TiScissorsOutline } from "./scissors-outline"; +export { default as TiScissors } from "./scissors"; +export { default as TiShoppingBag } from "./shopping-bag"; +export { default as TiShoppingCart } from "./shopping-cart"; +export { default as TiSocialAtCircular } from "./social-at-circular"; +export { default as TiSocialDribbbleCircular } from "./social-dribbble-circular"; +export { default as TiSocialDribbble } from "./social-dribbble"; +export { default as TiSocialFacebookCircular } from "./social-facebook-circular"; +export { default as TiSocialFacebook } from "./social-facebook"; +export { default as TiSocialFlickrCircular } from "./social-flickr-circular"; +export { default as TiSocialFlickr } from "./social-flickr"; +export { default as TiSocialGithubCircular } from "./social-github-circular"; +export { default as TiSocialGithub } from "./social-github"; +export { default as TiSocialGooglePlusCircular } from "./social-google-plus-circular"; +export { default as TiSocialGooglePlus } from "./social-google-plus"; +export { default as TiSocialInstagramCircular } from "./social-instagram-circular"; +export { default as TiSocialInstagram } from "./social-instagram"; +export { default as TiSocialLastFmCircular } from "./social-last-fm-circular"; +export { default as TiSocialLastFm } from "./social-last-fm"; +export { default as TiSocialLinkedinCircular } from "./social-linkedin-circular"; +export { default as TiSocialLinkedin } from "./social-linkedin"; +export { default as TiSocialPinterestCircular } from "./social-pinterest-circular"; +export { default as TiSocialPinterest } from "./social-pinterest"; +export { default as TiSocialSkypeOutline } from "./social-skype-outline"; +export { default as TiSocialSkype } from "./social-skype"; +export { default as TiSocialTumblerCircular } from "./social-tumbler-circular"; +export { default as TiSocialTumbler } from "./social-tumbler"; +export { default as TiSocialTwitterCircular } from "./social-twitter-circular"; +export { default as TiSocialTwitter } from "./social-twitter"; +export { default as TiSocialVimeoCircular } from "./social-vimeo-circular"; +export { default as TiSocialVimeo } from "./social-vimeo"; +export { default as TiSocialYoutubeCircular } from "./social-youtube-circular"; +export { default as TiSocialYoutube } from "./social-youtube"; +export { default as TiSortAlphabeticallyOutline } from "./sort-alphabetically-outline"; +export { default as TiSortAlphabetically } from "./sort-alphabetically"; +export { default as TiSortNumericallyOutline } from "./sort-numerically-outline"; +export { default as TiSortNumerically } from "./sort-numerically"; +export { default as TiSpannerOutline } from "./spanner-outline"; +export { default as TiSpanner } from "./spanner"; +export { default as TiSpiral } from "./spiral"; +export { default as TiStarFullOutline } from "./star-full-outline"; +export { default as TiStarHalfOutline } from "./star-half-outline"; +export { default as TiStarHalf } from "./star-half"; +export { default as TiStarOutline } from "./star-outline"; +export { default as TiStar } from "./star"; +export { default as TiStarburstOutline } from "./starburst-outline"; +export { default as TiStarburst } from "./starburst"; +export { default as TiStopwatch } from "./stopwatch"; +export { default as TiSupport } from "./support"; +export { default as TiTabsOutline } from "./tabs-outline"; +export { default as TiTag } from "./tag"; +export { default as TiTags } from "./tags"; +export { default as TiThLargeOutline } from "./th-large-outline"; +export { default as TiThLarge } from "./th-large"; +export { default as TiThListOutline } from "./th-list-outline"; +export { default as TiThList } from "./th-list"; +export { default as TiThMenuOutline } from "./th-menu-outline"; +export { default as TiThMenu } from "./th-menu"; +export { default as TiThSmallOutline } from "./th-small-outline"; +export { default as TiThSmall } from "./th-small"; +export { default as TiThermometer } from "./thermometer"; +export { default as TiThumbsDown } from "./thumbs-down"; +export { default as TiThumbsOk } from "./thumbs-ok"; +export { default as TiThumbsUp } from "./thumbs-up"; +export { default as TiTickOutline } from "./tick-outline"; +export { default as TiTick } from "./tick"; +export { default as TiTicket } from "./ticket"; +export { default as TiTime } from "./time"; +export { default as TiTimesOutline } from "./times-outline"; +export { default as TiTimes } from "./times"; +export { default as TiTrash } from "./trash"; +export { default as TiTree } from "./tree"; +export { default as TiUploadOutline } from "./upload-outline"; +export { default as TiUpload } from "./upload"; +export { default as TiUserAddOutline } from "./user-add-outline"; +export { default as TiUserAdd } from "./user-add"; +export { default as TiUserDeleteOutline } from "./user-delete-outline"; +export { default as TiUserDelete } from "./user-delete"; +export { default as TiUserOutline } from "./user-outline"; +export { default as TiUser } from "./user"; +export { default as TiVendorAndroid } from "./vendor-android"; +export { default as TiVendorApple } from "./vendor-apple"; +export { default as TiVendorMicrosoft } from "./vendor-microsoft"; +export { default as TiVideoOutline } from "./video-outline"; +export { default as TiVideo } from "./video"; +export { default as TiVolumeDown } from "./volume-down"; +export { default as TiVolumeMute } from "./volume-mute"; +export { default as TiVolumeUp } from "./volume-up"; +export { default as TiVolume } from "./volume"; +export { default as TiWarningOutline } from "./warning-outline"; +export { default as TiWarning } from "./warning"; +export { default as TiWatch } from "./watch"; +export { default as TiWavesOutline } from "./waves-outline"; +export { default as TiWaves } from "./waves"; +export { default as TiWeatherCloudy } from "./weather-cloudy"; +export { default as TiWeatherDownpour } from "./weather-downpour"; +export { default as TiWeatherNight } from "./weather-night"; +export { default as TiWeatherPartlySunny } from "./weather-partly-sunny"; +export { default as TiWeatherShower } from "./weather-shower"; +export { default as TiWeatherSnow } from "./weather-snow"; +export { default as TiWeatherStormy } from "./weather-stormy"; +export { default as TiWeatherSunny } from "./weather-sunny"; +export { default as TiWeatherWindyCloudy } from "./weather-windy-cloudy"; +export { default as TiWeatherWindy } from "./weather-windy"; +export { default as TiWiFiOutline } from "./wi-fi-outline"; +export { default as TiWiFi } from "./wi-fi"; +export { default as TiWine } from "./wine"; +export { default as TiWorldOutline } from "./world-outline"; +export { default as TiWorld } from "./world"; +export { default as TiZoomInOutline } from "./zoom-in-outline"; +export { default as TiZoomIn } from "./zoom-in"; +export { default as TiZoomOutOutline } from "./zoom-out-outline"; +export { default as TiZoomOut } from "./zoom-out"; +export { default as TiZoomOutline } from "./zoom-outline"; +export { default as TiZoom } from "./zoom"; diff --git a/types/react-icons/lib/ti/infinity-outline.d.ts b/types/react-icons/lib/ti/infinity-outline.d.ts new file mode 100644 index 0000000000..396db6cef4 --- /dev/null +++ b/types/react-icons/lib/ti/infinity-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiInfinityOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/infinity.d.ts b/types/react-icons/lib/ti/infinity.d.ts new file mode 100644 index 0000000000..e2e330678f --- /dev/null +++ b/types/react-icons/lib/ti/infinity.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiInfinity extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/info-large-outline.d.ts b/types/react-icons/lib/ti/info-large-outline.d.ts new file mode 100644 index 0000000000..3ff6a8be6c --- /dev/null +++ b/types/react-icons/lib/ti/info-large-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiInfoLargeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/info-large.d.ts b/types/react-icons/lib/ti/info-large.d.ts new file mode 100644 index 0000000000..0ad4eb3b6a --- /dev/null +++ b/types/react-icons/lib/ti/info-large.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiInfoLarge extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/info-outline.d.ts b/types/react-icons/lib/ti/info-outline.d.ts new file mode 100644 index 0000000000..b80e266196 --- /dev/null +++ b/types/react-icons/lib/ti/info-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiInfoOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/info.d.ts b/types/react-icons/lib/ti/info.d.ts new file mode 100644 index 0000000000..ec2cd25bdf --- /dev/null +++ b/types/react-icons/lib/ti/info.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiInfo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/input-checked-outline.d.ts b/types/react-icons/lib/ti/input-checked-outline.d.ts new file mode 100644 index 0000000000..91f4f396a0 --- /dev/null +++ b/types/react-icons/lib/ti/input-checked-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiInputCheckedOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/input-checked.d.ts b/types/react-icons/lib/ti/input-checked.d.ts new file mode 100644 index 0000000000..beb1227d76 --- /dev/null +++ b/types/react-icons/lib/ti/input-checked.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiInputChecked extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/key-outline.d.ts b/types/react-icons/lib/ti/key-outline.d.ts new file mode 100644 index 0000000000..0a2cac24a7 --- /dev/null +++ b/types/react-icons/lib/ti/key-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiKeyOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/key.d.ts b/types/react-icons/lib/ti/key.d.ts new file mode 100644 index 0000000000..c167c86f85 --- /dev/null +++ b/types/react-icons/lib/ti/key.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiKey extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/keyboard.d.ts b/types/react-icons/lib/ti/keyboard.d.ts new file mode 100644 index 0000000000..c936d0245d --- /dev/null +++ b/types/react-icons/lib/ti/keyboard.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiKeyboard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/leaf.d.ts b/types/react-icons/lib/ti/leaf.d.ts new file mode 100644 index 0000000000..7b34567dde --- /dev/null +++ b/types/react-icons/lib/ti/leaf.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiLeaf extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/lightbulb.d.ts b/types/react-icons/lib/ti/lightbulb.d.ts new file mode 100644 index 0000000000..389a15ff3e --- /dev/null +++ b/types/react-icons/lib/ti/lightbulb.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiLightbulb extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/link-outline.d.ts b/types/react-icons/lib/ti/link-outline.d.ts new file mode 100644 index 0000000000..8aec8924d9 --- /dev/null +++ b/types/react-icons/lib/ti/link-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiLinkOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/link.d.ts b/types/react-icons/lib/ti/link.d.ts new file mode 100644 index 0000000000..7de0129e97 --- /dev/null +++ b/types/react-icons/lib/ti/link.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiLink extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/location-arrow-outline.d.ts b/types/react-icons/lib/ti/location-arrow-outline.d.ts new file mode 100644 index 0000000000..be73bc68bb --- /dev/null +++ b/types/react-icons/lib/ti/location-arrow-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiLocationArrowOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/location-arrow.d.ts b/types/react-icons/lib/ti/location-arrow.d.ts new file mode 100644 index 0000000000..c9fca74a46 --- /dev/null +++ b/types/react-icons/lib/ti/location-arrow.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiLocationArrow extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/location-outline.d.ts b/types/react-icons/lib/ti/location-outline.d.ts new file mode 100644 index 0000000000..5e33402d00 --- /dev/null +++ b/types/react-icons/lib/ti/location-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiLocationOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/location.d.ts b/types/react-icons/lib/ti/location.d.ts new file mode 100644 index 0000000000..4b2ad147b6 --- /dev/null +++ b/types/react-icons/lib/ti/location.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiLocation extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/lock-closed-outline.d.ts b/types/react-icons/lib/ti/lock-closed-outline.d.ts new file mode 100644 index 0000000000..df9d6ffaad --- /dev/null +++ b/types/react-icons/lib/ti/lock-closed-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiLockClosedOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/lock-closed.d.ts b/types/react-icons/lib/ti/lock-closed.d.ts new file mode 100644 index 0000000000..234cc40580 --- /dev/null +++ b/types/react-icons/lib/ti/lock-closed.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiLockClosed extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/lock-open-outline.d.ts b/types/react-icons/lib/ti/lock-open-outline.d.ts new file mode 100644 index 0000000000..380878a869 --- /dev/null +++ b/types/react-icons/lib/ti/lock-open-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiLockOpenOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/lock-open.d.ts b/types/react-icons/lib/ti/lock-open.d.ts new file mode 100644 index 0000000000..c4b51c68ee --- /dev/null +++ b/types/react-icons/lib/ti/lock-open.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiLockOpen extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/mail.d.ts b/types/react-icons/lib/ti/mail.d.ts new file mode 100644 index 0000000000..34979f6b13 --- /dev/null +++ b/types/react-icons/lib/ti/mail.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMail extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/map.d.ts b/types/react-icons/lib/ti/map.d.ts new file mode 100644 index 0000000000..8b8092f4e7 --- /dev/null +++ b/types/react-icons/lib/ti/map.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMap extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-eject-outline.d.ts b/types/react-icons/lib/ti/media-eject-outline.d.ts new file mode 100644 index 0000000000..d58fadb21b --- /dev/null +++ b/types/react-icons/lib/ti/media-eject-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaEjectOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-eject.d.ts b/types/react-icons/lib/ti/media-eject.d.ts new file mode 100644 index 0000000000..41a9baaea8 --- /dev/null +++ b/types/react-icons/lib/ti/media-eject.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaEject extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-fast-forward-outline.d.ts b/types/react-icons/lib/ti/media-fast-forward-outline.d.ts new file mode 100644 index 0000000000..8923d0fa44 --- /dev/null +++ b/types/react-icons/lib/ti/media-fast-forward-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaFastForwardOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-fast-forward.d.ts b/types/react-icons/lib/ti/media-fast-forward.d.ts new file mode 100644 index 0000000000..e53638bf62 --- /dev/null +++ b/types/react-icons/lib/ti/media-fast-forward.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaFastForward extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-pause-outline.d.ts b/types/react-icons/lib/ti/media-pause-outline.d.ts new file mode 100644 index 0000000000..e792f0c894 --- /dev/null +++ b/types/react-icons/lib/ti/media-pause-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaPauseOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-pause.d.ts b/types/react-icons/lib/ti/media-pause.d.ts new file mode 100644 index 0000000000..b24950b19c --- /dev/null +++ b/types/react-icons/lib/ti/media-pause.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaPause extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-play-outline.d.ts b/types/react-icons/lib/ti/media-play-outline.d.ts new file mode 100644 index 0000000000..8e024e323f --- /dev/null +++ b/types/react-icons/lib/ti/media-play-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaPlayOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-play-reverse-outline.d.ts b/types/react-icons/lib/ti/media-play-reverse-outline.d.ts new file mode 100644 index 0000000000..5594d646d8 --- /dev/null +++ b/types/react-icons/lib/ti/media-play-reverse-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaPlayReverseOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-play-reverse.d.ts b/types/react-icons/lib/ti/media-play-reverse.d.ts new file mode 100644 index 0000000000..26e71c1733 --- /dev/null +++ b/types/react-icons/lib/ti/media-play-reverse.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaPlayReverse extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-play.d.ts b/types/react-icons/lib/ti/media-play.d.ts new file mode 100644 index 0000000000..defa546ee7 --- /dev/null +++ b/types/react-icons/lib/ti/media-play.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaPlay extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-record-outline.d.ts b/types/react-icons/lib/ti/media-record-outline.d.ts new file mode 100644 index 0000000000..0761437451 --- /dev/null +++ b/types/react-icons/lib/ti/media-record-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaRecordOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-record.d.ts b/types/react-icons/lib/ti/media-record.d.ts new file mode 100644 index 0000000000..d924b105b6 --- /dev/null +++ b/types/react-icons/lib/ti/media-record.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaRecord extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-rewind-outline.d.ts b/types/react-icons/lib/ti/media-rewind-outline.d.ts new file mode 100644 index 0000000000..11de328095 --- /dev/null +++ b/types/react-icons/lib/ti/media-rewind-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaRewindOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-rewind.d.ts b/types/react-icons/lib/ti/media-rewind.d.ts new file mode 100644 index 0000000000..f0e7151590 --- /dev/null +++ b/types/react-icons/lib/ti/media-rewind.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaRewind extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-stop-outline.d.ts b/types/react-icons/lib/ti/media-stop-outline.d.ts new file mode 100644 index 0000000000..e8728ac857 --- /dev/null +++ b/types/react-icons/lib/ti/media-stop-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaStopOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/media-stop.d.ts b/types/react-icons/lib/ti/media-stop.d.ts new file mode 100644 index 0000000000..d38b31aa5a --- /dev/null +++ b/types/react-icons/lib/ti/media-stop.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMediaStop extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/message-typing.d.ts b/types/react-icons/lib/ti/message-typing.d.ts new file mode 100644 index 0000000000..2cb5497a4e --- /dev/null +++ b/types/react-icons/lib/ti/message-typing.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMessageTyping extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/message.d.ts b/types/react-icons/lib/ti/message.d.ts new file mode 100644 index 0000000000..9edcc4226a --- /dev/null +++ b/types/react-icons/lib/ti/message.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMessage extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/messages.d.ts b/types/react-icons/lib/ti/messages.d.ts new file mode 100644 index 0000000000..e21fdac0a4 --- /dev/null +++ b/types/react-icons/lib/ti/messages.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMessages extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/microphone-outline.d.ts b/types/react-icons/lib/ti/microphone-outline.d.ts new file mode 100644 index 0000000000..27e430bd72 --- /dev/null +++ b/types/react-icons/lib/ti/microphone-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMicrophoneOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/microphone.d.ts b/types/react-icons/lib/ti/microphone.d.ts new file mode 100644 index 0000000000..543db1b50a --- /dev/null +++ b/types/react-icons/lib/ti/microphone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMicrophone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/minus-outline.d.ts b/types/react-icons/lib/ti/minus-outline.d.ts new file mode 100644 index 0000000000..99bb9fa7df --- /dev/null +++ b/types/react-icons/lib/ti/minus-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMinusOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/minus.d.ts b/types/react-icons/lib/ti/minus.d.ts new file mode 100644 index 0000000000..6239684cfa --- /dev/null +++ b/types/react-icons/lib/ti/minus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMinus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/mortar-board.d.ts b/types/react-icons/lib/ti/mortar-board.d.ts new file mode 100644 index 0000000000..84d29d2b24 --- /dev/null +++ b/types/react-icons/lib/ti/mortar-board.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiMortarBoard extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/news.d.ts b/types/react-icons/lib/ti/news.d.ts new file mode 100644 index 0000000000..31c3f66c1e --- /dev/null +++ b/types/react-icons/lib/ti/news.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiNews extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/notes-outline.d.ts b/types/react-icons/lib/ti/notes-outline.d.ts new file mode 100644 index 0000000000..4613ba38af --- /dev/null +++ b/types/react-icons/lib/ti/notes-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiNotesOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/notes.d.ts b/types/react-icons/lib/ti/notes.d.ts new file mode 100644 index 0000000000..5d2b4160f1 --- /dev/null +++ b/types/react-icons/lib/ti/notes.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiNotes extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/pen.d.ts b/types/react-icons/lib/ti/pen.d.ts new file mode 100644 index 0000000000..79b4e72f1a --- /dev/null +++ b/types/react-icons/lib/ti/pen.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPen extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/pencil.d.ts b/types/react-icons/lib/ti/pencil.d.ts new file mode 100644 index 0000000000..b8726f9010 --- /dev/null +++ b/types/react-icons/lib/ti/pencil.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPencil extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/phone-outline.d.ts b/types/react-icons/lib/ti/phone-outline.d.ts new file mode 100644 index 0000000000..d84b152351 --- /dev/null +++ b/types/react-icons/lib/ti/phone-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPhoneOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/phone.d.ts b/types/react-icons/lib/ti/phone.d.ts new file mode 100644 index 0000000000..af3eb027a1 --- /dev/null +++ b/types/react-icons/lib/ti/phone.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPhone extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/pi-outline.d.ts b/types/react-icons/lib/ti/pi-outline.d.ts new file mode 100644 index 0000000000..4327e47c3d --- /dev/null +++ b/types/react-icons/lib/ti/pi-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPiOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/pi.d.ts b/types/react-icons/lib/ti/pi.d.ts new file mode 100644 index 0000000000..d68aefa610 --- /dev/null +++ b/types/react-icons/lib/ti/pi.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPi extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/pin-outline.d.ts b/types/react-icons/lib/ti/pin-outline.d.ts new file mode 100644 index 0000000000..5a8943532e --- /dev/null +++ b/types/react-icons/lib/ti/pin-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPinOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/pin.d.ts b/types/react-icons/lib/ti/pin.d.ts new file mode 100644 index 0000000000..8d887edc98 --- /dev/null +++ b/types/react-icons/lib/ti/pin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/pipette.d.ts b/types/react-icons/lib/ti/pipette.d.ts new file mode 100644 index 0000000000..4f48d8afd3 --- /dev/null +++ b/types/react-icons/lib/ti/pipette.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPipette extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/plane-outline.d.ts b/types/react-icons/lib/ti/plane-outline.d.ts new file mode 100644 index 0000000000..ea4ac38deb --- /dev/null +++ b/types/react-icons/lib/ti/plane-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPlaneOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/plane.d.ts b/types/react-icons/lib/ti/plane.d.ts new file mode 100644 index 0000000000..13e32cab40 --- /dev/null +++ b/types/react-icons/lib/ti/plane.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPlane extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/plug.d.ts b/types/react-icons/lib/ti/plug.d.ts new file mode 100644 index 0000000000..019e4adc15 --- /dev/null +++ b/types/react-icons/lib/ti/plug.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPlug extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/plus-outline.d.ts b/types/react-icons/lib/ti/plus-outline.d.ts new file mode 100644 index 0000000000..22ec83aedd --- /dev/null +++ b/types/react-icons/lib/ti/plus-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPlusOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/plus.d.ts b/types/react-icons/lib/ti/plus.d.ts new file mode 100644 index 0000000000..247f279571 --- /dev/null +++ b/types/react-icons/lib/ti/plus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPlus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/point-of-interest-outline.d.ts b/types/react-icons/lib/ti/point-of-interest-outline.d.ts new file mode 100644 index 0000000000..63cfa579e5 --- /dev/null +++ b/types/react-icons/lib/ti/point-of-interest-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPointOfInterestOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/point-of-interest.d.ts b/types/react-icons/lib/ti/point-of-interest.d.ts new file mode 100644 index 0000000000..a5d480400c --- /dev/null +++ b/types/react-icons/lib/ti/point-of-interest.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPointOfInterest extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/power-outline.d.ts b/types/react-icons/lib/ti/power-outline.d.ts new file mode 100644 index 0000000000..52f6a2262c --- /dev/null +++ b/types/react-icons/lib/ti/power-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPowerOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/power.d.ts b/types/react-icons/lib/ti/power.d.ts new file mode 100644 index 0000000000..64dfece1af --- /dev/null +++ b/types/react-icons/lib/ti/power.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPower extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/printer.d.ts b/types/react-icons/lib/ti/printer.d.ts new file mode 100644 index 0000000000..556a9f07db --- /dev/null +++ b/types/react-icons/lib/ti/printer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPrinter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/puzzle-outline.d.ts b/types/react-icons/lib/ti/puzzle-outline.d.ts new file mode 100644 index 0000000000..4a7341192a --- /dev/null +++ b/types/react-icons/lib/ti/puzzle-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPuzzleOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/puzzle.d.ts b/types/react-icons/lib/ti/puzzle.d.ts new file mode 100644 index 0000000000..a0c57f6b0e --- /dev/null +++ b/types/react-icons/lib/ti/puzzle.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiPuzzle extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/radar-outline.d.ts b/types/react-icons/lib/ti/radar-outline.d.ts new file mode 100644 index 0000000000..aad8289852 --- /dev/null +++ b/types/react-icons/lib/ti/radar-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiRadarOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/radar.d.ts b/types/react-icons/lib/ti/radar.d.ts new file mode 100644 index 0000000000..b98c278714 --- /dev/null +++ b/types/react-icons/lib/ti/radar.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiRadar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/refresh-outline.d.ts b/types/react-icons/lib/ti/refresh-outline.d.ts new file mode 100644 index 0000000000..38d77c5598 --- /dev/null +++ b/types/react-icons/lib/ti/refresh-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiRefreshOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/refresh.d.ts b/types/react-icons/lib/ti/refresh.d.ts new file mode 100644 index 0000000000..6aeba2082a --- /dev/null +++ b/types/react-icons/lib/ti/refresh.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiRefresh extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/rss-outline.d.ts b/types/react-icons/lib/ti/rss-outline.d.ts new file mode 100644 index 0000000000..0b31e05198 --- /dev/null +++ b/types/react-icons/lib/ti/rss-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiRssOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/rss.d.ts b/types/react-icons/lib/ti/rss.d.ts new file mode 100644 index 0000000000..13f61bf841 --- /dev/null +++ b/types/react-icons/lib/ti/rss.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiRss extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/scissors-outline.d.ts b/types/react-icons/lib/ti/scissors-outline.d.ts new file mode 100644 index 0000000000..82b195b7bd --- /dev/null +++ b/types/react-icons/lib/ti/scissors-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiScissorsOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/scissors.d.ts b/types/react-icons/lib/ti/scissors.d.ts new file mode 100644 index 0000000000..da6f78e767 --- /dev/null +++ b/types/react-icons/lib/ti/scissors.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiScissors extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/shopping-bag.d.ts b/types/react-icons/lib/ti/shopping-bag.d.ts new file mode 100644 index 0000000000..6de75d8f81 --- /dev/null +++ b/types/react-icons/lib/ti/shopping-bag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiShoppingBag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/shopping-cart.d.ts b/types/react-icons/lib/ti/shopping-cart.d.ts new file mode 100644 index 0000000000..2364dc03ba --- /dev/null +++ b/types/react-icons/lib/ti/shopping-cart.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiShoppingCart extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-at-circular.d.ts b/types/react-icons/lib/ti/social-at-circular.d.ts new file mode 100644 index 0000000000..2c2fcee614 --- /dev/null +++ b/types/react-icons/lib/ti/social-at-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialAtCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-dribbble-circular.d.ts b/types/react-icons/lib/ti/social-dribbble-circular.d.ts new file mode 100644 index 0000000000..7e7ddc450a --- /dev/null +++ b/types/react-icons/lib/ti/social-dribbble-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialDribbbleCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-dribbble.d.ts b/types/react-icons/lib/ti/social-dribbble.d.ts new file mode 100644 index 0000000000..b47018320f --- /dev/null +++ b/types/react-icons/lib/ti/social-dribbble.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialDribbble extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-facebook-circular.d.ts b/types/react-icons/lib/ti/social-facebook-circular.d.ts new file mode 100644 index 0000000000..e9863905d3 --- /dev/null +++ b/types/react-icons/lib/ti/social-facebook-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialFacebookCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-facebook.d.ts b/types/react-icons/lib/ti/social-facebook.d.ts new file mode 100644 index 0000000000..982ae3d78c --- /dev/null +++ b/types/react-icons/lib/ti/social-facebook.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialFacebook extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-flickr-circular.d.ts b/types/react-icons/lib/ti/social-flickr-circular.d.ts new file mode 100644 index 0000000000..4c7b97dce4 --- /dev/null +++ b/types/react-icons/lib/ti/social-flickr-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialFlickrCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-flickr.d.ts b/types/react-icons/lib/ti/social-flickr.d.ts new file mode 100644 index 0000000000..ab945e0965 --- /dev/null +++ b/types/react-icons/lib/ti/social-flickr.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialFlickr extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-github-circular.d.ts b/types/react-icons/lib/ti/social-github-circular.d.ts new file mode 100644 index 0000000000..1db20eba35 --- /dev/null +++ b/types/react-icons/lib/ti/social-github-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialGithubCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-github.d.ts b/types/react-icons/lib/ti/social-github.d.ts new file mode 100644 index 0000000000..d2f3b8f628 --- /dev/null +++ b/types/react-icons/lib/ti/social-github.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialGithub extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-google-plus-circular.d.ts b/types/react-icons/lib/ti/social-google-plus-circular.d.ts new file mode 100644 index 0000000000..7fd96cf1b4 --- /dev/null +++ b/types/react-icons/lib/ti/social-google-plus-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialGooglePlusCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-google-plus.d.ts b/types/react-icons/lib/ti/social-google-plus.d.ts new file mode 100644 index 0000000000..977e3bb738 --- /dev/null +++ b/types/react-icons/lib/ti/social-google-plus.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialGooglePlus extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-instagram-circular.d.ts b/types/react-icons/lib/ti/social-instagram-circular.d.ts new file mode 100644 index 0000000000..ef7e9ea9f1 --- /dev/null +++ b/types/react-icons/lib/ti/social-instagram-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialInstagramCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-instagram.d.ts b/types/react-icons/lib/ti/social-instagram.d.ts new file mode 100644 index 0000000000..ff4d5d3346 --- /dev/null +++ b/types/react-icons/lib/ti/social-instagram.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialInstagram extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-last-fm-circular.d.ts b/types/react-icons/lib/ti/social-last-fm-circular.d.ts new file mode 100644 index 0000000000..38e8fc08be --- /dev/null +++ b/types/react-icons/lib/ti/social-last-fm-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialLastFmCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-last-fm.d.ts b/types/react-icons/lib/ti/social-last-fm.d.ts new file mode 100644 index 0000000000..fde2b626cc --- /dev/null +++ b/types/react-icons/lib/ti/social-last-fm.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialLastFm extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-linkedin-circular.d.ts b/types/react-icons/lib/ti/social-linkedin-circular.d.ts new file mode 100644 index 0000000000..32b5ba1add --- /dev/null +++ b/types/react-icons/lib/ti/social-linkedin-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialLinkedinCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-linkedin.d.ts b/types/react-icons/lib/ti/social-linkedin.d.ts new file mode 100644 index 0000000000..6a4f1b264b --- /dev/null +++ b/types/react-icons/lib/ti/social-linkedin.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialLinkedin extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-pinterest-circular.d.ts b/types/react-icons/lib/ti/social-pinterest-circular.d.ts new file mode 100644 index 0000000000..4278c08e25 --- /dev/null +++ b/types/react-icons/lib/ti/social-pinterest-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialPinterestCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-pinterest.d.ts b/types/react-icons/lib/ti/social-pinterest.d.ts new file mode 100644 index 0000000000..1544d9d0ff --- /dev/null +++ b/types/react-icons/lib/ti/social-pinterest.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialPinterest extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-skype-outline.d.ts b/types/react-icons/lib/ti/social-skype-outline.d.ts new file mode 100644 index 0000000000..7bc87167e4 --- /dev/null +++ b/types/react-icons/lib/ti/social-skype-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialSkypeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-skype.d.ts b/types/react-icons/lib/ti/social-skype.d.ts new file mode 100644 index 0000000000..1c62817e98 --- /dev/null +++ b/types/react-icons/lib/ti/social-skype.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialSkype extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-tumbler-circular.d.ts b/types/react-icons/lib/ti/social-tumbler-circular.d.ts new file mode 100644 index 0000000000..1d5823a418 --- /dev/null +++ b/types/react-icons/lib/ti/social-tumbler-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialTumblerCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-tumbler.d.ts b/types/react-icons/lib/ti/social-tumbler.d.ts new file mode 100644 index 0000000000..25826e8f98 --- /dev/null +++ b/types/react-icons/lib/ti/social-tumbler.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialTumbler extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-twitter-circular.d.ts b/types/react-icons/lib/ti/social-twitter-circular.d.ts new file mode 100644 index 0000000000..951a8a90ac --- /dev/null +++ b/types/react-icons/lib/ti/social-twitter-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialTwitterCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-twitter.d.ts b/types/react-icons/lib/ti/social-twitter.d.ts new file mode 100644 index 0000000000..2f5d6e6fe2 --- /dev/null +++ b/types/react-icons/lib/ti/social-twitter.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialTwitter extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-vimeo-circular.d.ts b/types/react-icons/lib/ti/social-vimeo-circular.d.ts new file mode 100644 index 0000000000..a161f647e2 --- /dev/null +++ b/types/react-icons/lib/ti/social-vimeo-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialVimeoCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-vimeo.d.ts b/types/react-icons/lib/ti/social-vimeo.d.ts new file mode 100644 index 0000000000..20a6fe4e96 --- /dev/null +++ b/types/react-icons/lib/ti/social-vimeo.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialVimeo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-youtube-circular.d.ts b/types/react-icons/lib/ti/social-youtube-circular.d.ts new file mode 100644 index 0000000000..5373438d05 --- /dev/null +++ b/types/react-icons/lib/ti/social-youtube-circular.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialYoutubeCircular extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/social-youtube.d.ts b/types/react-icons/lib/ti/social-youtube.d.ts new file mode 100644 index 0000000000..6040ccbd2e --- /dev/null +++ b/types/react-icons/lib/ti/social-youtube.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSocialYoutube extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/sort-alphabetically-outline.d.ts b/types/react-icons/lib/ti/sort-alphabetically-outline.d.ts new file mode 100644 index 0000000000..b822906e2c --- /dev/null +++ b/types/react-icons/lib/ti/sort-alphabetically-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSortAlphabeticallyOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/sort-alphabetically.d.ts b/types/react-icons/lib/ti/sort-alphabetically.d.ts new file mode 100644 index 0000000000..75a9622393 --- /dev/null +++ b/types/react-icons/lib/ti/sort-alphabetically.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSortAlphabetically extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/sort-numerically-outline.d.ts b/types/react-icons/lib/ti/sort-numerically-outline.d.ts new file mode 100644 index 0000000000..e279726f0c --- /dev/null +++ b/types/react-icons/lib/ti/sort-numerically-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSortNumericallyOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/sort-numerically.d.ts b/types/react-icons/lib/ti/sort-numerically.d.ts new file mode 100644 index 0000000000..d514d789f3 --- /dev/null +++ b/types/react-icons/lib/ti/sort-numerically.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSortNumerically extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/spanner-outline.d.ts b/types/react-icons/lib/ti/spanner-outline.d.ts new file mode 100644 index 0000000000..424e07581a --- /dev/null +++ b/types/react-icons/lib/ti/spanner-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSpannerOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/spanner.d.ts b/types/react-icons/lib/ti/spanner.d.ts new file mode 100644 index 0000000000..bcfc2421d2 --- /dev/null +++ b/types/react-icons/lib/ti/spanner.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSpanner extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/spiral.d.ts b/types/react-icons/lib/ti/spiral.d.ts new file mode 100644 index 0000000000..f35df30ad0 --- /dev/null +++ b/types/react-icons/lib/ti/spiral.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSpiral extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/star-full-outline.d.ts b/types/react-icons/lib/ti/star-full-outline.d.ts new file mode 100644 index 0000000000..f1c40795ae --- /dev/null +++ b/types/react-icons/lib/ti/star-full-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiStarFullOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/star-half-outline.d.ts b/types/react-icons/lib/ti/star-half-outline.d.ts new file mode 100644 index 0000000000..4e93ae767e --- /dev/null +++ b/types/react-icons/lib/ti/star-half-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiStarHalfOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/star-half.d.ts b/types/react-icons/lib/ti/star-half.d.ts new file mode 100644 index 0000000000..b9409290f7 --- /dev/null +++ b/types/react-icons/lib/ti/star-half.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiStarHalf extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/star-outline.d.ts b/types/react-icons/lib/ti/star-outline.d.ts new file mode 100644 index 0000000000..c5c504aec6 --- /dev/null +++ b/types/react-icons/lib/ti/star-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiStarOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/star.d.ts b/types/react-icons/lib/ti/star.d.ts new file mode 100644 index 0000000000..6c7cfe125b --- /dev/null +++ b/types/react-icons/lib/ti/star.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiStar extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/starburst-outline.d.ts b/types/react-icons/lib/ti/starburst-outline.d.ts new file mode 100644 index 0000000000..621a50c206 --- /dev/null +++ b/types/react-icons/lib/ti/starburst-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiStarburstOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/starburst.d.ts b/types/react-icons/lib/ti/starburst.d.ts new file mode 100644 index 0000000000..5deb65f908 --- /dev/null +++ b/types/react-icons/lib/ti/starburst.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiStarburst extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/stopwatch.d.ts b/types/react-icons/lib/ti/stopwatch.d.ts new file mode 100644 index 0000000000..2433dc6b21 --- /dev/null +++ b/types/react-icons/lib/ti/stopwatch.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiStopwatch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/support.d.ts b/types/react-icons/lib/ti/support.d.ts new file mode 100644 index 0000000000..629e7c1596 --- /dev/null +++ b/types/react-icons/lib/ti/support.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiSupport extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/tabs-outline.d.ts b/types/react-icons/lib/ti/tabs-outline.d.ts new file mode 100644 index 0000000000..a3debbbc0a --- /dev/null +++ b/types/react-icons/lib/ti/tabs-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiTabsOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/tag.d.ts b/types/react-icons/lib/ti/tag.d.ts new file mode 100644 index 0000000000..ec88c4ff81 --- /dev/null +++ b/types/react-icons/lib/ti/tag.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiTag extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/tags.d.ts b/types/react-icons/lib/ti/tags.d.ts new file mode 100644 index 0000000000..a0e4a1a154 --- /dev/null +++ b/types/react-icons/lib/ti/tags.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiTags extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/th-large-outline.d.ts b/types/react-icons/lib/ti/th-large-outline.d.ts new file mode 100644 index 0000000000..652b61667c --- /dev/null +++ b/types/react-icons/lib/ti/th-large-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiThLargeOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/th-large.d.ts b/types/react-icons/lib/ti/th-large.d.ts new file mode 100644 index 0000000000..bde15e269a --- /dev/null +++ b/types/react-icons/lib/ti/th-large.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiThLarge extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/th-list-outline.d.ts b/types/react-icons/lib/ti/th-list-outline.d.ts new file mode 100644 index 0000000000..a906b52c05 --- /dev/null +++ b/types/react-icons/lib/ti/th-list-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiThListOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/th-list.d.ts b/types/react-icons/lib/ti/th-list.d.ts new file mode 100644 index 0000000000..ebb6163713 --- /dev/null +++ b/types/react-icons/lib/ti/th-list.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiThList extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/th-menu-outline.d.ts b/types/react-icons/lib/ti/th-menu-outline.d.ts new file mode 100644 index 0000000000..df09e4456f --- /dev/null +++ b/types/react-icons/lib/ti/th-menu-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiThMenuOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/th-menu.d.ts b/types/react-icons/lib/ti/th-menu.d.ts new file mode 100644 index 0000000000..e03eadc959 --- /dev/null +++ b/types/react-icons/lib/ti/th-menu.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiThMenu extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/th-small-outline.d.ts b/types/react-icons/lib/ti/th-small-outline.d.ts new file mode 100644 index 0000000000..995c8c1f88 --- /dev/null +++ b/types/react-icons/lib/ti/th-small-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiThSmallOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/th-small.d.ts b/types/react-icons/lib/ti/th-small.d.ts new file mode 100644 index 0000000000..332f49b3f1 --- /dev/null +++ b/types/react-icons/lib/ti/th-small.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiThSmall extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/thermometer.d.ts b/types/react-icons/lib/ti/thermometer.d.ts new file mode 100644 index 0000000000..771653ad7b --- /dev/null +++ b/types/react-icons/lib/ti/thermometer.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiThermometer extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/thumbs-down.d.ts b/types/react-icons/lib/ti/thumbs-down.d.ts new file mode 100644 index 0000000000..bb60d7aaa9 --- /dev/null +++ b/types/react-icons/lib/ti/thumbs-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiThumbsDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/thumbs-ok.d.ts b/types/react-icons/lib/ti/thumbs-ok.d.ts new file mode 100644 index 0000000000..610f5a2633 --- /dev/null +++ b/types/react-icons/lib/ti/thumbs-ok.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiThumbsOk extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/thumbs-up.d.ts b/types/react-icons/lib/ti/thumbs-up.d.ts new file mode 100644 index 0000000000..01747a7a8b --- /dev/null +++ b/types/react-icons/lib/ti/thumbs-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiThumbsUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/tick-outline.d.ts b/types/react-icons/lib/ti/tick-outline.d.ts new file mode 100644 index 0000000000..8c8fd0025c --- /dev/null +++ b/types/react-icons/lib/ti/tick-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiTickOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/tick.d.ts b/types/react-icons/lib/ti/tick.d.ts new file mode 100644 index 0000000000..fc06a6fe51 --- /dev/null +++ b/types/react-icons/lib/ti/tick.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiTick extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/ticket.d.ts b/types/react-icons/lib/ti/ticket.d.ts new file mode 100644 index 0000000000..3248f1018c --- /dev/null +++ b/types/react-icons/lib/ti/ticket.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiTicket extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/time.d.ts b/types/react-icons/lib/ti/time.d.ts new file mode 100644 index 0000000000..fd09903b66 --- /dev/null +++ b/types/react-icons/lib/ti/time.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiTime extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/times-outline.d.ts b/types/react-icons/lib/ti/times-outline.d.ts new file mode 100644 index 0000000000..52fd65e3ba --- /dev/null +++ b/types/react-icons/lib/ti/times-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiTimesOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/times.d.ts b/types/react-icons/lib/ti/times.d.ts new file mode 100644 index 0000000000..1b60d77610 --- /dev/null +++ b/types/react-icons/lib/ti/times.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiTimes extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/trash.d.ts b/types/react-icons/lib/ti/trash.d.ts new file mode 100644 index 0000000000..2772532c76 --- /dev/null +++ b/types/react-icons/lib/ti/trash.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiTrash extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/tree.d.ts b/types/react-icons/lib/ti/tree.d.ts new file mode 100644 index 0000000000..a0f46de32e --- /dev/null +++ b/types/react-icons/lib/ti/tree.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiTree extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/upload-outline.d.ts b/types/react-icons/lib/ti/upload-outline.d.ts new file mode 100644 index 0000000000..541435783e --- /dev/null +++ b/types/react-icons/lib/ti/upload-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiUploadOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/upload.d.ts b/types/react-icons/lib/ti/upload.d.ts new file mode 100644 index 0000000000..5875c4576b --- /dev/null +++ b/types/react-icons/lib/ti/upload.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiUpload extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/user-add-outline.d.ts b/types/react-icons/lib/ti/user-add-outline.d.ts new file mode 100644 index 0000000000..80590bcdaa --- /dev/null +++ b/types/react-icons/lib/ti/user-add-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiUserAddOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/user-add.d.ts b/types/react-icons/lib/ti/user-add.d.ts new file mode 100644 index 0000000000..18d297cb33 --- /dev/null +++ b/types/react-icons/lib/ti/user-add.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiUserAdd extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/user-delete-outline.d.ts b/types/react-icons/lib/ti/user-delete-outline.d.ts new file mode 100644 index 0000000000..19f98f8eed --- /dev/null +++ b/types/react-icons/lib/ti/user-delete-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiUserDeleteOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/user-delete.d.ts b/types/react-icons/lib/ti/user-delete.d.ts new file mode 100644 index 0000000000..2c12847a35 --- /dev/null +++ b/types/react-icons/lib/ti/user-delete.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiUserDelete extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/user-outline.d.ts b/types/react-icons/lib/ti/user-outline.d.ts new file mode 100644 index 0000000000..64e4678e0c --- /dev/null +++ b/types/react-icons/lib/ti/user-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiUserOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/user.d.ts b/types/react-icons/lib/ti/user.d.ts new file mode 100644 index 0000000000..a333a43892 --- /dev/null +++ b/types/react-icons/lib/ti/user.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiUser extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/vendor-android.d.ts b/types/react-icons/lib/ti/vendor-android.d.ts new file mode 100644 index 0000000000..8075011cff --- /dev/null +++ b/types/react-icons/lib/ti/vendor-android.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiVendorAndroid extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/vendor-apple.d.ts b/types/react-icons/lib/ti/vendor-apple.d.ts new file mode 100644 index 0000000000..d100e9de7f --- /dev/null +++ b/types/react-icons/lib/ti/vendor-apple.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiVendorApple extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/vendor-microsoft.d.ts b/types/react-icons/lib/ti/vendor-microsoft.d.ts new file mode 100644 index 0000000000..fc2393f6c8 --- /dev/null +++ b/types/react-icons/lib/ti/vendor-microsoft.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiVendorMicrosoft extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/video-outline.d.ts b/types/react-icons/lib/ti/video-outline.d.ts new file mode 100644 index 0000000000..ff4ded254c --- /dev/null +++ b/types/react-icons/lib/ti/video-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiVideoOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/video.d.ts b/types/react-icons/lib/ti/video.d.ts new file mode 100644 index 0000000000..59503c717e --- /dev/null +++ b/types/react-icons/lib/ti/video.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiVideo extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/volume-down.d.ts b/types/react-icons/lib/ti/volume-down.d.ts new file mode 100644 index 0000000000..cd012e5287 --- /dev/null +++ b/types/react-icons/lib/ti/volume-down.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiVolumeDown extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/volume-mute.d.ts b/types/react-icons/lib/ti/volume-mute.d.ts new file mode 100644 index 0000000000..df323c2347 --- /dev/null +++ b/types/react-icons/lib/ti/volume-mute.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiVolumeMute extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/volume-up.d.ts b/types/react-icons/lib/ti/volume-up.d.ts new file mode 100644 index 0000000000..443c4bb060 --- /dev/null +++ b/types/react-icons/lib/ti/volume-up.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiVolumeUp extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/volume.d.ts b/types/react-icons/lib/ti/volume.d.ts new file mode 100644 index 0000000000..ebbe9bac7a --- /dev/null +++ b/types/react-icons/lib/ti/volume.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiVolume extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/warning-outline.d.ts b/types/react-icons/lib/ti/warning-outline.d.ts new file mode 100644 index 0000000000..66d630a33d --- /dev/null +++ b/types/react-icons/lib/ti/warning-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWarningOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/warning.d.ts b/types/react-icons/lib/ti/warning.d.ts new file mode 100644 index 0000000000..394d46e315 --- /dev/null +++ b/types/react-icons/lib/ti/warning.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWarning extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/watch.d.ts b/types/react-icons/lib/ti/watch.d.ts new file mode 100644 index 0000000000..191379a23f --- /dev/null +++ b/types/react-icons/lib/ti/watch.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWatch extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/waves-outline.d.ts b/types/react-icons/lib/ti/waves-outline.d.ts new file mode 100644 index 0000000000..814f0bb4bd --- /dev/null +++ b/types/react-icons/lib/ti/waves-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWavesOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/waves.d.ts b/types/react-icons/lib/ti/waves.d.ts new file mode 100644 index 0000000000..10d88f9f9c --- /dev/null +++ b/types/react-icons/lib/ti/waves.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWaves extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/weather-cloudy.d.ts b/types/react-icons/lib/ti/weather-cloudy.d.ts new file mode 100644 index 0000000000..f0a7569133 --- /dev/null +++ b/types/react-icons/lib/ti/weather-cloudy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWeatherCloudy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/weather-downpour.d.ts b/types/react-icons/lib/ti/weather-downpour.d.ts new file mode 100644 index 0000000000..945dd0b196 --- /dev/null +++ b/types/react-icons/lib/ti/weather-downpour.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWeatherDownpour extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/weather-night.d.ts b/types/react-icons/lib/ti/weather-night.d.ts new file mode 100644 index 0000000000..72b8e61ebd --- /dev/null +++ b/types/react-icons/lib/ti/weather-night.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWeatherNight extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/weather-partly-sunny.d.ts b/types/react-icons/lib/ti/weather-partly-sunny.d.ts new file mode 100644 index 0000000000..9acece9fcf --- /dev/null +++ b/types/react-icons/lib/ti/weather-partly-sunny.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWeatherPartlySunny extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/weather-shower.d.ts b/types/react-icons/lib/ti/weather-shower.d.ts new file mode 100644 index 0000000000..d96b321350 --- /dev/null +++ b/types/react-icons/lib/ti/weather-shower.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWeatherShower extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/weather-snow.d.ts b/types/react-icons/lib/ti/weather-snow.d.ts new file mode 100644 index 0000000000..8e274c5f85 --- /dev/null +++ b/types/react-icons/lib/ti/weather-snow.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWeatherSnow extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/weather-stormy.d.ts b/types/react-icons/lib/ti/weather-stormy.d.ts new file mode 100644 index 0000000000..0fe69851dc --- /dev/null +++ b/types/react-icons/lib/ti/weather-stormy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWeatherStormy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/weather-sunny.d.ts b/types/react-icons/lib/ti/weather-sunny.d.ts new file mode 100644 index 0000000000..96bb430093 --- /dev/null +++ b/types/react-icons/lib/ti/weather-sunny.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWeatherSunny extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/weather-windy-cloudy.d.ts b/types/react-icons/lib/ti/weather-windy-cloudy.d.ts new file mode 100644 index 0000000000..d28624e436 --- /dev/null +++ b/types/react-icons/lib/ti/weather-windy-cloudy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWeatherWindyCloudy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/weather-windy.d.ts b/types/react-icons/lib/ti/weather-windy.d.ts new file mode 100644 index 0000000000..e5808895f1 --- /dev/null +++ b/types/react-icons/lib/ti/weather-windy.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWeatherWindy extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/wi-fi-outline.d.ts b/types/react-icons/lib/ti/wi-fi-outline.d.ts new file mode 100644 index 0000000000..54c27adcb2 --- /dev/null +++ b/types/react-icons/lib/ti/wi-fi-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWiFiOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/wi-fi.d.ts b/types/react-icons/lib/ti/wi-fi.d.ts new file mode 100644 index 0000000000..46cc54f2f5 --- /dev/null +++ b/types/react-icons/lib/ti/wi-fi.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWiFi extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/wine.d.ts b/types/react-icons/lib/ti/wine.d.ts new file mode 100644 index 0000000000..aab4d0d43e --- /dev/null +++ b/types/react-icons/lib/ti/wine.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWine extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/world-outline.d.ts b/types/react-icons/lib/ti/world-outline.d.ts new file mode 100644 index 0000000000..deb94cd766 --- /dev/null +++ b/types/react-icons/lib/ti/world-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWorldOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/world.d.ts b/types/react-icons/lib/ti/world.d.ts new file mode 100644 index 0000000000..54d7682959 --- /dev/null +++ b/types/react-icons/lib/ti/world.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiWorld extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/zoom-in-outline.d.ts b/types/react-icons/lib/ti/zoom-in-outline.d.ts new file mode 100644 index 0000000000..9f0c9c98a7 --- /dev/null +++ b/types/react-icons/lib/ti/zoom-in-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiZoomInOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/zoom-in.d.ts b/types/react-icons/lib/ti/zoom-in.d.ts new file mode 100644 index 0000000000..4b9716467b --- /dev/null +++ b/types/react-icons/lib/ti/zoom-in.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiZoomIn extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/zoom-out-outline.d.ts b/types/react-icons/lib/ti/zoom-out-outline.d.ts new file mode 100644 index 0000000000..bdb15bbf3f --- /dev/null +++ b/types/react-icons/lib/ti/zoom-out-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiZoomOutOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/zoom-out.d.ts b/types/react-icons/lib/ti/zoom-out.d.ts new file mode 100644 index 0000000000..e6b1bb1bd3 --- /dev/null +++ b/types/react-icons/lib/ti/zoom-out.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiZoomOut extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/zoom-outline.d.ts b/types/react-icons/lib/ti/zoom-outline.d.ts new file mode 100644 index 0000000000..066a240186 --- /dev/null +++ b/types/react-icons/lib/ti/zoom-outline.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiZoomOutline extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/lib/ti/zoom.d.ts b/types/react-icons/lib/ti/zoom.d.ts new file mode 100644 index 0000000000..74bda099c6 --- /dev/null +++ b/types/react-icons/lib/ti/zoom.d.ts @@ -0,0 +1,3 @@ +import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +export default class TiZoom extends React.Component<IconBaseProps> { } diff --git a/types/react-icons/react-icons-tests.tsx b/types/react-icons/react-icons-tests.tsx index 83b9196a70..f6a0414dba 100644 --- a/types/react-icons/react-icons-tests.tsx +++ b/types/react-icons/react-icons-tests.tsx @@ -1,9 +1,11 @@ import * as React from 'react'; import FaBeer from 'react-icons/fa/beer'; import { FaExclamation } from 'react-icons/fa'; +import FaCog from 'react-icons/lib/fa/cog'; +import { FaPowerOff } from 'react-icons/lib/fa'; class Question extends React.Component { render() { - return <h3> Lets go for a <FaBeer /><FaExclamation />? </h3>; + return <h3> Lets go for a <FaBeer /><FaExclamation />? It'll help you <FaPowerOff /> your <FaCog /></h3>; } } diff --git a/types/react-icons/scripts/generate.ts b/types/react-icons/scripts/generate.ts index 8767babd5a..604de34842 100644 --- a/types/react-icons/scripts/generate.ts +++ b/types/react-icons/scripts/generate.ts @@ -9,24 +9,43 @@ const allModules = findAllModules(); for (const { group } of allModules) { const outPath = getOutDir(group); removeSync(outPath); + const outLibPath = getOutLibDir(group); + removeSync(outLibPath); +} + +// Create new empty folders +for (const { group } of allModules) { + const outPath = getOutDir(group); mkdirSync(outPath); + const outLibPath = getOutLibDir(group); + mkdirSync(outLibPath); } for (const { group, ids } of allModules) { for (const id of ids) { writeFileSync(getOutFile(group, `${id}.d.ts`), iconFile(getModuleName(group, id)), 'utf-8'); + writeFileSync(getOutLibFile(group, `${id}.d.ts`), iconFile(getModuleName(group, id)), 'utf-8'); } writeFileSync(getOutFile(group, 'index.d.ts'), indexFile(group, ids), 'utf-8'); + writeFileSync(getOutLibFile(group, 'index.d.ts'), indexFile(group, ids), 'utf-8'); } function getOutDir(group: string): string { - return joinPaths(__dirname, "..", group); + return joinPaths(__dirname, '..', group); } function getOutFile(folder: string, fileName: string): string { return joinPaths(getOutDir(folder), fileName); } +function getOutLibDir(group: string): string { + return joinPaths(__dirname, '..', 'lib', group); +} + +function getOutLibFile(folder: string, fileName: string): string { + return joinPaths(getOutLibDir(folder), fileName); +} + function iconFile(name: string): string { return `import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; diff --git a/types/react-icons/tsconfig.json b/types/react-icons/tsconfig.json index 94d6cfa190..b3af87fd55 100644 --- a/types/react-icons/tsconfig.json +++ b/types/react-icons/tsconfig.json @@ -2847,6 +2847,2834 @@ "ti/zoom-out-outline.d.ts", "ti/zoom-out.d.ts", "ti/zoom-outline.d.ts", - "ti/zoom.d.ts" + "ti/zoom.d.ts", + "lib/fa/index.d.ts", + "lib/go/index.d.ts", + "lib/io/index.d.ts", + "lib/md/index.d.ts", + "lib/ti/index.d.ts", + "lib/fa/500px.d.ts", + "lib/fa/adjust.d.ts", + "lib/fa/adn.d.ts", + "lib/fa/align-center.d.ts", + "lib/fa/align-justify.d.ts", + "lib/fa/align-left.d.ts", + "lib/fa/align-right.d.ts", + "lib/fa/amazon.d.ts", + "lib/fa/ambulance.d.ts", + "lib/fa/american-sign-language-interpreting.d.ts", + "lib/fa/anchor.d.ts", + "lib/fa/android.d.ts", + "lib/fa/angellist.d.ts", + "lib/fa/angle-double-down.d.ts", + "lib/fa/angle-double-left.d.ts", + "lib/fa/angle-double-right.d.ts", + "lib/fa/angle-double-up.d.ts", + "lib/fa/angle-down.d.ts", + "lib/fa/angle-left.d.ts", + "lib/fa/angle-right.d.ts", + "lib/fa/angle-up.d.ts", + "lib/fa/apple.d.ts", + "lib/fa/archive.d.ts", + "lib/fa/area-chart.d.ts", + "lib/fa/arrow-circle-down.d.ts", + "lib/fa/arrow-circle-left.d.ts", + "lib/fa/arrow-circle-o-down.d.ts", + "lib/fa/arrow-circle-o-left.d.ts", + "lib/fa/arrow-circle-o-right.d.ts", + "lib/fa/arrow-circle-o-up.d.ts", + "lib/fa/arrow-circle-right.d.ts", + "lib/fa/arrow-circle-up.d.ts", + "lib/fa/arrow-down.d.ts", + "lib/fa/arrow-left.d.ts", + "lib/fa/arrow-right.d.ts", + "lib/fa/arrow-up.d.ts", + "lib/fa/arrows-alt.d.ts", + "lib/fa/arrows-h.d.ts", + "lib/fa/arrows-v.d.ts", + "lib/fa/arrows.d.ts", + "lib/fa/assistive-listening-systems.d.ts", + "lib/fa/asterisk.d.ts", + "lib/fa/at.d.ts", + "lib/fa/audio-description.d.ts", + "lib/fa/automobile.d.ts", + "lib/fa/backward.d.ts", + "lib/fa/balance-scale.d.ts", + "lib/fa/ban.d.ts", + "lib/fa/bank.d.ts", + "lib/fa/bar-chart.d.ts", + "lib/fa/barcode.d.ts", + "lib/fa/bars.d.ts", + "lib/fa/battery-0.d.ts", + "lib/fa/battery-1.d.ts", + "lib/fa/battery-2.d.ts", + "lib/fa/battery-3.d.ts", + "lib/fa/battery-4.d.ts", + "lib/fa/bed.d.ts", + "lib/fa/beer.d.ts", + "lib/fa/behance-square.d.ts", + "lib/fa/behance.d.ts", + "lib/fa/bell-o.d.ts", + "lib/fa/bell-slash-o.d.ts", + "lib/fa/bell-slash.d.ts", + "lib/fa/bell.d.ts", + "lib/fa/bicycle.d.ts", + "lib/fa/binoculars.d.ts", + "lib/fa/birthday-cake.d.ts", + "lib/fa/bitbucket-square.d.ts", + "lib/fa/bitbucket.d.ts", + "lib/fa/bitcoin.d.ts", + "lib/fa/black-tie.d.ts", + "lib/fa/blind.d.ts", + "lib/fa/bluetooth-b.d.ts", + "lib/fa/bluetooth.d.ts", + "lib/fa/bold.d.ts", + "lib/fa/bolt.d.ts", + "lib/fa/bomb.d.ts", + "lib/fa/book.d.ts", + "lib/fa/bookmark-o.d.ts", + "lib/fa/bookmark.d.ts", + "lib/fa/braille.d.ts", + "lib/fa/briefcase.d.ts", + "lib/fa/bug.d.ts", + "lib/fa/building-o.d.ts", + "lib/fa/building.d.ts", + "lib/fa/bullhorn.d.ts", + "lib/fa/bullseye.d.ts", + "lib/fa/bus.d.ts", + "lib/fa/buysellads.d.ts", + "lib/fa/cab.d.ts", + "lib/fa/calculator.d.ts", + "lib/fa/calendar-check-o.d.ts", + "lib/fa/calendar-minus-o.d.ts", + "lib/fa/calendar-o.d.ts", + "lib/fa/calendar-plus-o.d.ts", + "lib/fa/calendar-times-o.d.ts", + "lib/fa/calendar.d.ts", + "lib/fa/camera-retro.d.ts", + "lib/fa/camera.d.ts", + "lib/fa/caret-down.d.ts", + "lib/fa/caret-left.d.ts", + "lib/fa/caret-right.d.ts", + "lib/fa/caret-square-o-down.d.ts", + "lib/fa/caret-square-o-left.d.ts", + "lib/fa/caret-square-o-right.d.ts", + "lib/fa/caret-square-o-up.d.ts", + "lib/fa/caret-up.d.ts", + "lib/fa/cart-arrow-down.d.ts", + "lib/fa/cart-plus.d.ts", + "lib/fa/cc-amex.d.ts", + "lib/fa/cc-diners-club.d.ts", + "lib/fa/cc-discover.d.ts", + "lib/fa/cc-jcb.d.ts", + "lib/fa/cc-mastercard.d.ts", + "lib/fa/cc-paypal.d.ts", + "lib/fa/cc-stripe.d.ts", + "lib/fa/cc-visa.d.ts", + "lib/fa/cc.d.ts", + "lib/fa/certificate.d.ts", + "lib/fa/chain-broken.d.ts", + "lib/fa/chain.d.ts", + "lib/fa/check-circle-o.d.ts", + "lib/fa/check-circle.d.ts", + "lib/fa/check-square-o.d.ts", + "lib/fa/check-square.d.ts", + "lib/fa/check.d.ts", + "lib/fa/chevron-circle-down.d.ts", + "lib/fa/chevron-circle-left.d.ts", + "lib/fa/chevron-circle-right.d.ts", + "lib/fa/chevron-circle-up.d.ts", + "lib/fa/chevron-down.d.ts", + "lib/fa/chevron-left.d.ts", + "lib/fa/chevron-right.d.ts", + "lib/fa/chevron-up.d.ts", + "lib/fa/child.d.ts", + "lib/fa/chrome.d.ts", + "lib/fa/circle-o-notch.d.ts", + "lib/fa/circle-o.d.ts", + "lib/fa/circle-thin.d.ts", + "lib/fa/circle.d.ts", + "lib/fa/clipboard.d.ts", + "lib/fa/clock-o.d.ts", + "lib/fa/clone.d.ts", + "lib/fa/close.d.ts", + "lib/fa/cloud-download.d.ts", + "lib/fa/cloud-upload.d.ts", + "lib/fa/cloud.d.ts", + "lib/fa/cny.d.ts", + "lib/fa/code-fork.d.ts", + "lib/fa/code.d.ts", + "lib/fa/codepen.d.ts", + "lib/fa/codiepie.d.ts", + "lib/fa/coffee.d.ts", + "lib/fa/cog.d.ts", + "lib/fa/cogs.d.ts", + "lib/fa/columns.d.ts", + "lib/fa/comment-o.d.ts", + "lib/fa/comment.d.ts", + "lib/fa/commenting-o.d.ts", + "lib/fa/commenting.d.ts", + "lib/fa/comments-o.d.ts", + "lib/fa/comments.d.ts", + "lib/fa/compass.d.ts", + "lib/fa/compress.d.ts", + "lib/fa/connectdevelop.d.ts", + "lib/fa/contao.d.ts", + "lib/fa/copy.d.ts", + "lib/fa/copyright.d.ts", + "lib/fa/creative-commons.d.ts", + "lib/fa/credit-card-alt.d.ts", + "lib/fa/credit-card.d.ts", + "lib/fa/crop.d.ts", + "lib/fa/crosshairs.d.ts", + "lib/fa/css3.d.ts", + "lib/fa/cube.d.ts", + "lib/fa/cubes.d.ts", + "lib/fa/cut.d.ts", + "lib/fa/cutlery.d.ts", + "lib/fa/dashboard.d.ts", + "lib/fa/dashcube.d.ts", + "lib/fa/database.d.ts", + "lib/fa/deaf.d.ts", + "lib/fa/dedent.d.ts", + "lib/fa/delicious.d.ts", + "lib/fa/desktop.d.ts", + "lib/fa/deviantart.d.ts", + "lib/fa/diamond.d.ts", + "lib/fa/digg.d.ts", + "lib/fa/dollar.d.ts", + "lib/fa/dot-circle-o.d.ts", + "lib/fa/download.d.ts", + "lib/fa/dribbble.d.ts", + "lib/fa/dropbox.d.ts", + "lib/fa/drupal.d.ts", + "lib/fa/edge.d.ts", + "lib/fa/edit.d.ts", + "lib/fa/eject.d.ts", + "lib/fa/ellipsis-h.d.ts", + "lib/fa/ellipsis-v.d.ts", + "lib/fa/empire.d.ts", + "lib/fa/envelope-o.d.ts", + "lib/fa/envelope-square.d.ts", + "lib/fa/envelope.d.ts", + "lib/fa/envira.d.ts", + "lib/fa/eraser.d.ts", + "lib/fa/eur.d.ts", + "lib/fa/exchange.d.ts", + "lib/fa/exclamation-circle.d.ts", + "lib/fa/exclamation-triangle.d.ts", + "lib/fa/exclamation.d.ts", + "lib/fa/expand.d.ts", + "lib/fa/expeditedssl.d.ts", + "lib/fa/external-link-square.d.ts", + "lib/fa/external-link.d.ts", + "lib/fa/eye-slash.d.ts", + "lib/fa/eye.d.ts", + "lib/fa/eyedropper.d.ts", + "lib/fa/facebook-official.d.ts", + "lib/fa/facebook-square.d.ts", + "lib/fa/facebook.d.ts", + "lib/fa/fast-backward.d.ts", + "lib/fa/fast-forward.d.ts", + "lib/fa/fax.d.ts", + "lib/fa/feed.d.ts", + "lib/fa/female.d.ts", + "lib/fa/fighter-jet.d.ts", + "lib/fa/file-archive-o.d.ts", + "lib/fa/file-audio-o.d.ts", + "lib/fa/file-code-o.d.ts", + "lib/fa/file-excel-o.d.ts", + "lib/fa/file-image-o.d.ts", + "lib/fa/file-movie-o.d.ts", + "lib/fa/file-o.d.ts", + "lib/fa/file-pdf-o.d.ts", + "lib/fa/file-powerpoint-o.d.ts", + "lib/fa/file-text-o.d.ts", + "lib/fa/file-text.d.ts", + "lib/fa/file-word-o.d.ts", + "lib/fa/file.d.ts", + "lib/fa/film.d.ts", + "lib/fa/filter.d.ts", + "lib/fa/fire-extinguisher.d.ts", + "lib/fa/fire.d.ts", + "lib/fa/firefox.d.ts", + "lib/fa/flag-checkered.d.ts", + "lib/fa/flag-o.d.ts", + "lib/fa/flag.d.ts", + "lib/fa/flask.d.ts", + "lib/fa/flickr.d.ts", + "lib/fa/floppy-o.d.ts", + "lib/fa/folder-o.d.ts", + "lib/fa/folder-open-o.d.ts", + "lib/fa/folder-open.d.ts", + "lib/fa/folder.d.ts", + "lib/fa/font.d.ts", + "lib/fa/fonticons.d.ts", + "lib/fa/fort-awesome.d.ts", + "lib/fa/forumbee.d.ts", + "lib/fa/forward.d.ts", + "lib/fa/foursquare.d.ts", + "lib/fa/frown-o.d.ts", + "lib/fa/futbol-o.d.ts", + "lib/fa/gamepad.d.ts", + "lib/fa/gavel.d.ts", + "lib/fa/gbp.d.ts", + "lib/fa/genderless.d.ts", + "lib/fa/get-pocket.d.ts", + "lib/fa/gg-circle.d.ts", + "lib/fa/gg.d.ts", + "lib/fa/gift.d.ts", + "lib/fa/git-square.d.ts", + "lib/fa/git.d.ts", + "lib/fa/github-alt.d.ts", + "lib/fa/github-square.d.ts", + "lib/fa/github.d.ts", + "lib/fa/gitlab.d.ts", + "lib/fa/gittip.d.ts", + "lib/fa/glass.d.ts", + "lib/fa/glide-g.d.ts", + "lib/fa/glide.d.ts", + "lib/fa/globe.d.ts", + "lib/fa/google-plus-square.d.ts", + "lib/fa/google-plus.d.ts", + "lib/fa/google-wallet.d.ts", + "lib/fa/google.d.ts", + "lib/fa/graduation-cap.d.ts", + "lib/fa/group.d.ts", + "lib/fa/h-square.d.ts", + "lib/fa/hacker-news.d.ts", + "lib/fa/hand-grab-o.d.ts", + "lib/fa/hand-lizard-o.d.ts", + "lib/fa/hand-o-down.d.ts", + "lib/fa/hand-o-left.d.ts", + "lib/fa/hand-o-right.d.ts", + "lib/fa/hand-o-up.d.ts", + "lib/fa/hand-paper-o.d.ts", + "lib/fa/hand-peace-o.d.ts", + "lib/fa/hand-pointer-o.d.ts", + "lib/fa/hand-scissors-o.d.ts", + "lib/fa/hand-spock-o.d.ts", + "lib/fa/hashtag.d.ts", + "lib/fa/hdd-o.d.ts", + "lib/fa/header.d.ts", + "lib/fa/headphones.d.ts", + "lib/fa/heart-o.d.ts", + "lib/fa/heart.d.ts", + "lib/fa/heartbeat.d.ts", + "lib/fa/history.d.ts", + "lib/fa/home.d.ts", + "lib/fa/hospital-o.d.ts", + "lib/fa/hourglass-1.d.ts", + "lib/fa/hourglass-2.d.ts", + "lib/fa/hourglass-3.d.ts", + "lib/fa/hourglass-o.d.ts", + "lib/fa/hourglass.d.ts", + "lib/fa/houzz.d.ts", + "lib/fa/html5.d.ts", + "lib/fa/i-cursor.d.ts", + "lib/fa/ils.d.ts", + "lib/fa/image.d.ts", + "lib/fa/inbox.d.ts", + "lib/fa/indent.d.ts", + "lib/fa/industry.d.ts", + "lib/fa/info-circle.d.ts", + "lib/fa/info.d.ts", + "lib/fa/inr.d.ts", + "lib/fa/instagram.d.ts", + "lib/fa/internet-explorer.d.ts", + "lib/fa/intersex.d.ts", + "lib/fa/ioxhost.d.ts", + "lib/fa/italic.d.ts", + "lib/fa/joomla.d.ts", + "lib/fa/jsfiddle.d.ts", + "lib/fa/key.d.ts", + "lib/fa/keyboard-o.d.ts", + "lib/fa/krw.d.ts", + "lib/fa/language.d.ts", + "lib/fa/laptop.d.ts", + "lib/fa/lastfm-square.d.ts", + "lib/fa/lastfm.d.ts", + "lib/fa/leaf.d.ts", + "lib/fa/leanpub.d.ts", + "lib/fa/lemon-o.d.ts", + "lib/fa/level-down.d.ts", + "lib/fa/level-up.d.ts", + "lib/fa/life-bouy.d.ts", + "lib/fa/lightbulb-o.d.ts", + "lib/fa/line-chart.d.ts", + "lib/fa/linkedin-square.d.ts", + "lib/fa/linkedin.d.ts", + "lib/fa/linux.d.ts", + "lib/fa/list-alt.d.ts", + "lib/fa/list-ol.d.ts", + "lib/fa/list-ul.d.ts", + "lib/fa/list.d.ts", + "lib/fa/location-arrow.d.ts", + "lib/fa/lock.d.ts", + "lib/fa/long-arrow-down.d.ts", + "lib/fa/long-arrow-left.d.ts", + "lib/fa/long-arrow-right.d.ts", + "lib/fa/long-arrow-up.d.ts", + "lib/fa/low-vision.d.ts", + "lib/fa/magic.d.ts", + "lib/fa/magnet.d.ts", + "lib/fa/mail-forward.d.ts", + "lib/fa/mail-reply-all.d.ts", + "lib/fa/mail-reply.d.ts", + "lib/fa/male.d.ts", + "lib/fa/map-marker.d.ts", + "lib/fa/map-o.d.ts", + "lib/fa/map-pin.d.ts", + "lib/fa/map-signs.d.ts", + "lib/fa/map.d.ts", + "lib/fa/mars-double.d.ts", + "lib/fa/mars-stroke-h.d.ts", + "lib/fa/mars-stroke-v.d.ts", + "lib/fa/mars-stroke.d.ts", + "lib/fa/mars.d.ts", + "lib/fa/maxcdn.d.ts", + "lib/fa/meanpath.d.ts", + "lib/fa/medium.d.ts", + "lib/fa/medkit.d.ts", + "lib/fa/meh-o.d.ts", + "lib/fa/mercury.d.ts", + "lib/fa/microphone-slash.d.ts", + "lib/fa/microphone.d.ts", + "lib/fa/minus-circle.d.ts", + "lib/fa/minus-square-o.d.ts", + "lib/fa/minus-square.d.ts", + "lib/fa/minus.d.ts", + "lib/fa/mixcloud.d.ts", + "lib/fa/mobile.d.ts", + "lib/fa/modx.d.ts", + "lib/fa/money.d.ts", + "lib/fa/moon-o.d.ts", + "lib/fa/motorcycle.d.ts", + "lib/fa/mouse-pointer.d.ts", + "lib/fa/music.d.ts", + "lib/fa/neuter.d.ts", + "lib/fa/newspaper-o.d.ts", + "lib/fa/object-group.d.ts", + "lib/fa/object-ungroup.d.ts", + "lib/fa/odnoklassniki-square.d.ts", + "lib/fa/odnoklassniki.d.ts", + "lib/fa/opencart.d.ts", + "lib/fa/openid.d.ts", + "lib/fa/opera.d.ts", + "lib/fa/optin-monster.d.ts", + "lib/fa/pagelines.d.ts", + "lib/fa/paint-brush.d.ts", + "lib/fa/paper-plane-o.d.ts", + "lib/fa/paper-plane.d.ts", + "lib/fa/paperclip.d.ts", + "lib/fa/paragraph.d.ts", + "lib/fa/pause-circle-o.d.ts", + "lib/fa/pause-circle.d.ts", + "lib/fa/pause.d.ts", + "lib/fa/paw.d.ts", + "lib/fa/paypal.d.ts", + "lib/fa/pencil-square.d.ts", + "lib/fa/pencil.d.ts", + "lib/fa/percent.d.ts", + "lib/fa/phone-square.d.ts", + "lib/fa/phone.d.ts", + "lib/fa/pie-chart.d.ts", + "lib/fa/pied-piper-alt.d.ts", + "lib/fa/pied-piper.d.ts", + "lib/fa/pinterest-p.d.ts", + "lib/fa/pinterest-square.d.ts", + "lib/fa/pinterest.d.ts", + "lib/fa/plane.d.ts", + "lib/fa/play-circle-o.d.ts", + "lib/fa/play-circle.d.ts", + "lib/fa/play.d.ts", + "lib/fa/plug.d.ts", + "lib/fa/plus-circle.d.ts", + "lib/fa/plus-square-o.d.ts", + "lib/fa/plus-square.d.ts", + "lib/fa/plus.d.ts", + "lib/fa/power-off.d.ts", + "lib/fa/print.d.ts", + "lib/fa/product-hunt.d.ts", + "lib/fa/puzzle-piece.d.ts", + "lib/fa/qq.d.ts", + "lib/fa/qrcode.d.ts", + "lib/fa/question-circle-o.d.ts", + "lib/fa/question-circle.d.ts", + "lib/fa/question.d.ts", + "lib/fa/quote-left.d.ts", + "lib/fa/quote-right.d.ts", + "lib/fa/ra.d.ts", + "lib/fa/random.d.ts", + "lib/fa/recycle.d.ts", + "lib/fa/reddit-alien.d.ts", + "lib/fa/reddit-square.d.ts", + "lib/fa/reddit.d.ts", + "lib/fa/refresh.d.ts", + "lib/fa/registered.d.ts", + "lib/fa/renren.d.ts", + "lib/fa/repeat.d.ts", + "lib/fa/retweet.d.ts", + "lib/fa/road.d.ts", + "lib/fa/rocket.d.ts", + "lib/fa/rotate-left.d.ts", + "lib/fa/rouble.d.ts", + "lib/fa/rss-square.d.ts", + "lib/fa/safari.d.ts", + "lib/fa/scribd.d.ts", + "lib/fa/search-minus.d.ts", + "lib/fa/search-plus.d.ts", + "lib/fa/search.d.ts", + "lib/fa/sellsy.d.ts", + "lib/fa/server.d.ts", + "lib/fa/share-alt-square.d.ts", + "lib/fa/share-alt.d.ts", + "lib/fa/share-square-o.d.ts", + "lib/fa/share-square.d.ts", + "lib/fa/shield.d.ts", + "lib/fa/ship.d.ts", + "lib/fa/shirtsinbulk.d.ts", + "lib/fa/shopping-bag.d.ts", + "lib/fa/shopping-basket.d.ts", + "lib/fa/shopping-cart.d.ts", + "lib/fa/sign-in.d.ts", + "lib/fa/sign-language.d.ts", + "lib/fa/sign-out.d.ts", + "lib/fa/signal.d.ts", + "lib/fa/simplybuilt.d.ts", + "lib/fa/sitemap.d.ts", + "lib/fa/skyatlas.d.ts", + "lib/fa/skype.d.ts", + "lib/fa/slack.d.ts", + "lib/fa/sliders.d.ts", + "lib/fa/slideshare.d.ts", + "lib/fa/smile-o.d.ts", + "lib/fa/snapchat-ghost.d.ts", + "lib/fa/snapchat-square.d.ts", + "lib/fa/snapchat.d.ts", + "lib/fa/sort-alpha-asc.d.ts", + "lib/fa/sort-alpha-desc.d.ts", + "lib/fa/sort-amount-asc.d.ts", + "lib/fa/sort-amount-desc.d.ts", + "lib/fa/sort-asc.d.ts", + "lib/fa/sort-desc.d.ts", + "lib/fa/sort-numeric-asc.d.ts", + "lib/fa/sort-numeric-desc.d.ts", + "lib/fa/sort.d.ts", + "lib/fa/soundcloud.d.ts", + "lib/fa/space-shuttle.d.ts", + "lib/fa/spinner.d.ts", + "lib/fa/spoon.d.ts", + "lib/fa/spotify.d.ts", + "lib/fa/square-o.d.ts", + "lib/fa/square.d.ts", + "lib/fa/stack-exchange.d.ts", + "lib/fa/stack-overflow.d.ts", + "lib/fa/star-half-empty.d.ts", + "lib/fa/star-half.d.ts", + "lib/fa/star-o.d.ts", + "lib/fa/star.d.ts", + "lib/fa/steam-square.d.ts", + "lib/fa/steam.d.ts", + "lib/fa/step-backward.d.ts", + "lib/fa/step-forward.d.ts", + "lib/fa/stethoscope.d.ts", + "lib/fa/sticky-note-o.d.ts", + "lib/fa/sticky-note.d.ts", + "lib/fa/stop-circle-o.d.ts", + "lib/fa/stop-circle.d.ts", + "lib/fa/stop.d.ts", + "lib/fa/street-view.d.ts", + "lib/fa/strikethrough.d.ts", + "lib/fa/stumbleupon-circle.d.ts", + "lib/fa/stumbleupon.d.ts", + "lib/fa/subscript.d.ts", + "lib/fa/subway.d.ts", + "lib/fa/suitcase.d.ts", + "lib/fa/sun-o.d.ts", + "lib/fa/superscript.d.ts", + "lib/fa/table.d.ts", + "lib/fa/tablet.d.ts", + "lib/fa/tag.d.ts", + "lib/fa/tags.d.ts", + "lib/fa/tasks.d.ts", + "lib/fa/television.d.ts", + "lib/fa/tencent-weibo.d.ts", + "lib/fa/terminal.d.ts", + "lib/fa/text-height.d.ts", + "lib/fa/text-width.d.ts", + "lib/fa/th-large.d.ts", + "lib/fa/th-list.d.ts", + "lib/fa/th.d.ts", + "lib/fa/thumb-tack.d.ts", + "lib/fa/thumbs-down.d.ts", + "lib/fa/thumbs-o-down.d.ts", + "lib/fa/thumbs-o-up.d.ts", + "lib/fa/thumbs-up.d.ts", + "lib/fa/ticket.d.ts", + "lib/fa/times-circle-o.d.ts", + "lib/fa/times-circle.d.ts", + "lib/fa/tint.d.ts", + "lib/fa/toggle-off.d.ts", + "lib/fa/toggle-on.d.ts", + "lib/fa/trademark.d.ts", + "lib/fa/train.d.ts", + "lib/fa/transgender-alt.d.ts", + "lib/fa/trash-o.d.ts", + "lib/fa/trash.d.ts", + "lib/fa/tree.d.ts", + "lib/fa/trello.d.ts", + "lib/fa/tripadvisor.d.ts", + "lib/fa/trophy.d.ts", + "lib/fa/truck.d.ts", + "lib/fa/try.d.ts", + "lib/fa/tty.d.ts", + "lib/fa/tumblr-square.d.ts", + "lib/fa/tumblr.d.ts", + "lib/fa/twitch.d.ts", + "lib/fa/twitter-square.d.ts", + "lib/fa/twitter.d.ts", + "lib/fa/umbrella.d.ts", + "lib/fa/underline.d.ts", + "lib/fa/universal-access.d.ts", + "lib/fa/unlock-alt.d.ts", + "lib/fa/unlock.d.ts", + "lib/fa/upload.d.ts", + "lib/fa/usb.d.ts", + "lib/fa/user-md.d.ts", + "lib/fa/user-plus.d.ts", + "lib/fa/user-secret.d.ts", + "lib/fa/user-times.d.ts", + "lib/fa/user.d.ts", + "lib/fa/venus-double.d.ts", + "lib/fa/venus-mars.d.ts", + "lib/fa/venus.d.ts", + "lib/fa/viacoin.d.ts", + "lib/fa/viadeo-square.d.ts", + "lib/fa/viadeo.d.ts", + "lib/fa/video-camera.d.ts", + "lib/fa/vimeo-square.d.ts", + "lib/fa/vimeo.d.ts", + "lib/fa/vine.d.ts", + "lib/fa/vk.d.ts", + "lib/fa/volume-control-phone.d.ts", + "lib/fa/volume-down.d.ts", + "lib/fa/volume-off.d.ts", + "lib/fa/volume-up.d.ts", + "lib/fa/wechat.d.ts", + "lib/fa/weibo.d.ts", + "lib/fa/whatsapp.d.ts", + "lib/fa/wheelchair-alt.d.ts", + "lib/fa/wheelchair.d.ts", + "lib/fa/wifi.d.ts", + "lib/fa/wikipedia-w.d.ts", + "lib/fa/windows.d.ts", + "lib/fa/wordpress.d.ts", + "lib/fa/wpbeginner.d.ts", + "lib/fa/wpforms.d.ts", + "lib/fa/wrench.d.ts", + "lib/fa/xing-square.d.ts", + "lib/fa/xing.d.ts", + "lib/fa/y-combinator.d.ts", + "lib/fa/yahoo.d.ts", + "lib/fa/yelp.d.ts", + "lib/fa/youtube-play.d.ts", + "lib/fa/youtube-square.d.ts", + "lib/fa/youtube.d.ts", + "lib/go/alert.d.ts", + "lib/go/alignment-align.d.ts", + "lib/go/alignment-aligned-to.d.ts", + "lib/go/alignment-unalign.d.ts", + "lib/go/arrow-down.d.ts", + "lib/go/arrow-left.d.ts", + "lib/go/arrow-right.d.ts", + "lib/go/arrow-small-down.d.ts", + "lib/go/arrow-small-left.d.ts", + "lib/go/arrow-small-right.d.ts", + "lib/go/arrow-small-up.d.ts", + "lib/go/arrow-up.d.ts", + "lib/go/beer.d.ts", + "lib/go/book.d.ts", + "lib/go/bookmark.d.ts", + "lib/go/briefcase.d.ts", + "lib/go/broadcast.d.ts", + "lib/go/browser.d.ts", + "lib/go/bug.d.ts", + "lib/go/calendar.d.ts", + "lib/go/check.d.ts", + "lib/go/checklist.d.ts", + "lib/go/chevron-down.d.ts", + "lib/go/chevron-left.d.ts", + "lib/go/chevron-right.d.ts", + "lib/go/chevron-up.d.ts", + "lib/go/circle-slash.d.ts", + "lib/go/circuit-board.d.ts", + "lib/go/clippy.d.ts", + "lib/go/clock.d.ts", + "lib/go/cloud-download.d.ts", + "lib/go/cloud-upload.d.ts", + "lib/go/code.d.ts", + "lib/go/color-mode.d.ts", + "lib/go/comment-discussion.d.ts", + "lib/go/comment.d.ts", + "lib/go/credit-card.d.ts", + "lib/go/dash.d.ts", + "lib/go/dashboard.d.ts", + "lib/go/database.d.ts", + "lib/go/device-camera-video.d.ts", + "lib/go/device-camera.d.ts", + "lib/go/device-desktop.d.ts", + "lib/go/device-mobile.d.ts", + "lib/go/diff-added.d.ts", + "lib/go/diff-ignored.d.ts", + "lib/go/diff-modified.d.ts", + "lib/go/diff-removed.d.ts", + "lib/go/diff-renamed.d.ts", + "lib/go/diff.d.ts", + "lib/go/ellipsis.d.ts", + "lib/go/eye.d.ts", + "lib/go/file-binary.d.ts", + "lib/go/file-code.d.ts", + "lib/go/file-directory.d.ts", + "lib/go/file-media.d.ts", + "lib/go/file-pdf.d.ts", + "lib/go/file-submodule.d.ts", + "lib/go/file-symlink-directory.d.ts", + "lib/go/file-symlink-file.d.ts", + "lib/go/file-text.d.ts", + "lib/go/file-zip.d.ts", + "lib/go/flame.d.ts", + "lib/go/fold.d.ts", + "lib/go/gear.d.ts", + "lib/go/gift.d.ts", + "lib/go/gist-secret.d.ts", + "lib/go/gist.d.ts", + "lib/go/git-branch.d.ts", + "lib/go/git-commit.d.ts", + "lib/go/git-compare.d.ts", + "lib/go/git-merge.d.ts", + "lib/go/git-pull-request.d.ts", + "lib/go/globe.d.ts", + "lib/go/graph.d.ts", + "lib/go/heart.d.ts", + "lib/go/history.d.ts", + "lib/go/home.d.ts", + "lib/go/horizontal-rule.d.ts", + "lib/go/hourglass.d.ts", + "lib/go/hubot.d.ts", + "lib/go/inbox.d.ts", + "lib/go/info.d.ts", + "lib/go/issue-closed.d.ts", + "lib/go/issue-opened.d.ts", + "lib/go/issue-reopened.d.ts", + "lib/go/jersey.d.ts", + "lib/go/jump-down.d.ts", + "lib/go/jump-left.d.ts", + "lib/go/jump-right.d.ts", + "lib/go/jump-up.d.ts", + "lib/go/key.d.ts", + "lib/go/keyboard.d.ts", + "lib/go/law.d.ts", + "lib/go/light-bulb.d.ts", + "lib/go/link-external.d.ts", + "lib/go/link.d.ts", + "lib/go/list-ordered.d.ts", + "lib/go/list-unordered.d.ts", + "lib/go/location.d.ts", + "lib/go/lock.d.ts", + "lib/go/logo-github.d.ts", + "lib/go/mail-read.d.ts", + "lib/go/mail-reply.d.ts", + "lib/go/mail.d.ts", + "lib/go/mark-github.d.ts", + "lib/go/markdown.d.ts", + "lib/go/megaphone.d.ts", + "lib/go/mention.d.ts", + "lib/go/microscope.d.ts", + "lib/go/milestone.d.ts", + "lib/go/mirror.d.ts", + "lib/go/mortar-board.d.ts", + "lib/go/move-down.d.ts", + "lib/go/move-left.d.ts", + "lib/go/move-right.d.ts", + "lib/go/move-up.d.ts", + "lib/go/mute.d.ts", + "lib/go/no-newline.d.ts", + "lib/go/octoface.d.ts", + "lib/go/organization.d.ts", + "lib/go/package.d.ts", + "lib/go/paintcan.d.ts", + "lib/go/pencil.d.ts", + "lib/go/person.d.ts", + "lib/go/pin.d.ts", + "lib/go/playback-fast-forward.d.ts", + "lib/go/playback-pause.d.ts", + "lib/go/playback-play.d.ts", + "lib/go/playback-rewind.d.ts", + "lib/go/plug.d.ts", + "lib/go/plus.d.ts", + "lib/go/podium.d.ts", + "lib/go/primitive-dot.d.ts", + "lib/go/primitive-square.d.ts", + "lib/go/pulse.d.ts", + "lib/go/puzzle.d.ts", + "lib/go/question.d.ts", + "lib/go/quote.d.ts", + "lib/go/radio-tower.d.ts", + "lib/go/repo-clone.d.ts", + "lib/go/repo-force-push.d.ts", + "lib/go/repo-forked.d.ts", + "lib/go/repo-pull.d.ts", + "lib/go/repo-push.d.ts", + "lib/go/repo.d.ts", + "lib/go/rocket.d.ts", + "lib/go/rss.d.ts", + "lib/go/ruby.d.ts", + "lib/go/screen-full.d.ts", + "lib/go/screen-normal.d.ts", + "lib/go/search.d.ts", + "lib/go/server.d.ts", + "lib/go/settings.d.ts", + "lib/go/sign-in.d.ts", + "lib/go/sign-out.d.ts", + "lib/go/split.d.ts", + "lib/go/squirrel.d.ts", + "lib/go/star.d.ts", + "lib/go/steps.d.ts", + "lib/go/stop.d.ts", + "lib/go/sync.d.ts", + "lib/go/tag.d.ts", + "lib/go/telescope.d.ts", + "lib/go/terminal.d.ts", + "lib/go/three-bars.d.ts", + "lib/go/tools.d.ts", + "lib/go/trashcan.d.ts", + "lib/go/triangle-down.d.ts", + "lib/go/triangle-left.d.ts", + "lib/go/triangle-right.d.ts", + "lib/go/triangle-up.d.ts", + "lib/go/unfold.d.ts", + "lib/go/unmute.d.ts", + "lib/go/versions.d.ts", + "lib/go/x.d.ts", + "lib/go/zap.d.ts", + "lib/io/alert-circled.d.ts", + "lib/io/alert.d.ts", + "lib/io/android-add-circle.d.ts", + "lib/io/android-add.d.ts", + "lib/io/android-alarm-clock.d.ts", + "lib/io/android-alert.d.ts", + "lib/io/android-apps.d.ts", + "lib/io/android-archive.d.ts", + "lib/io/android-arrow-back.d.ts", + "lib/io/android-arrow-down.d.ts", + "lib/io/android-arrow-dropdown-circle.d.ts", + "lib/io/android-arrow-dropdown.d.ts", + "lib/io/android-arrow-dropleft-circle.d.ts", + "lib/io/android-arrow-dropleft.d.ts", + "lib/io/android-arrow-dropright-circle.d.ts", + "lib/io/android-arrow-dropright.d.ts", + "lib/io/android-arrow-dropup-circle.d.ts", + "lib/io/android-arrow-dropup.d.ts", + "lib/io/android-arrow-forward.d.ts", + "lib/io/android-arrow-up.d.ts", + "lib/io/android-attach.d.ts", + "lib/io/android-bar.d.ts", + "lib/io/android-bicycle.d.ts", + "lib/io/android-boat.d.ts", + "lib/io/android-bookmark.d.ts", + "lib/io/android-bulb.d.ts", + "lib/io/android-bus.d.ts", + "lib/io/android-calendar.d.ts", + "lib/io/android-call.d.ts", + "lib/io/android-camera.d.ts", + "lib/io/android-cancel.d.ts", + "lib/io/android-car.d.ts", + "lib/io/android-cart.d.ts", + "lib/io/android-chat.d.ts", + "lib/io/android-checkbox-blank.d.ts", + "lib/io/android-checkbox-outline-blank.d.ts", + "lib/io/android-checkbox-outline.d.ts", + "lib/io/android-checkbox.d.ts", + "lib/io/android-checkmark-circle.d.ts", + "lib/io/android-clipboard.d.ts", + "lib/io/android-close.d.ts", + "lib/io/android-cloud-circle.d.ts", + "lib/io/android-cloud-done.d.ts", + "lib/io/android-cloud-outline.d.ts", + "lib/io/android-cloud.d.ts", + "lib/io/android-color-palette.d.ts", + "lib/io/android-compass.d.ts", + "lib/io/android-contact.d.ts", + "lib/io/android-contacts.d.ts", + "lib/io/android-contract.d.ts", + "lib/io/android-create.d.ts", + "lib/io/android-delete.d.ts", + "lib/io/android-desktop.d.ts", + "lib/io/android-document.d.ts", + "lib/io/android-done-all.d.ts", + "lib/io/android-done.d.ts", + "lib/io/android-download.d.ts", + "lib/io/android-drafts.d.ts", + "lib/io/android-exit.d.ts", + "lib/io/android-expand.d.ts", + "lib/io/android-favorite-outline.d.ts", + "lib/io/android-favorite.d.ts", + "lib/io/android-film.d.ts", + "lib/io/android-folder-open.d.ts", + "lib/io/android-folder.d.ts", + "lib/io/android-funnel.d.ts", + "lib/io/android-globe.d.ts", + "lib/io/android-hand.d.ts", + "lib/io/android-hangout.d.ts", + "lib/io/android-happy.d.ts", + "lib/io/android-home.d.ts", + "lib/io/android-image.d.ts", + "lib/io/android-laptop.d.ts", + "lib/io/android-list.d.ts", + "lib/io/android-locate.d.ts", + "lib/io/android-lock.d.ts", + "lib/io/android-mail.d.ts", + "lib/io/android-map.d.ts", + "lib/io/android-menu.d.ts", + "lib/io/android-microphone-off.d.ts", + "lib/io/android-microphone.d.ts", + "lib/io/android-more-horizontal.d.ts", + "lib/io/android-more-vertical.d.ts", + "lib/io/android-navigate.d.ts", + "lib/io/android-notifications-none.d.ts", + "lib/io/android-notifications-off.d.ts", + "lib/io/android-notifications.d.ts", + "lib/io/android-open.d.ts", + "lib/io/android-options.d.ts", + "lib/io/android-people.d.ts", + "lib/io/android-person-add.d.ts", + "lib/io/android-person.d.ts", + "lib/io/android-phone-landscape.d.ts", + "lib/io/android-phone-portrait.d.ts", + "lib/io/android-pin.d.ts", + "lib/io/android-plane.d.ts", + "lib/io/android-playstore.d.ts", + "lib/io/android-print.d.ts", + "lib/io/android-radio-button-off.d.ts", + "lib/io/android-radio-button-on.d.ts", + "lib/io/android-refresh.d.ts", + "lib/io/android-remove-circle.d.ts", + "lib/io/android-remove.d.ts", + "lib/io/android-restaurant.d.ts", + "lib/io/android-sad.d.ts", + "lib/io/android-search.d.ts", + "lib/io/android-send.d.ts", + "lib/io/android-settings.d.ts", + "lib/io/android-share-alt.d.ts", + "lib/io/android-share.d.ts", + "lib/io/android-star-half.d.ts", + "lib/io/android-star-outline.d.ts", + "lib/io/android-star.d.ts", + "lib/io/android-stopwatch.d.ts", + "lib/io/android-subway.d.ts", + "lib/io/android-sunny.d.ts", + "lib/io/android-sync.d.ts", + "lib/io/android-textsms.d.ts", + "lib/io/android-time.d.ts", + "lib/io/android-train.d.ts", + "lib/io/android-unlock.d.ts", + "lib/io/android-upload.d.ts", + "lib/io/android-volume-down.d.ts", + "lib/io/android-volume-mute.d.ts", + "lib/io/android-volume-off.d.ts", + "lib/io/android-volume-up.d.ts", + "lib/io/android-walk.d.ts", + "lib/io/android-warning.d.ts", + "lib/io/android-watch.d.ts", + "lib/io/android-wifi.d.ts", + "lib/io/aperture.d.ts", + "lib/io/archive.d.ts", + "lib/io/arrow-down-a.d.ts", + "lib/io/arrow-down-b.d.ts", + "lib/io/arrow-down-c.d.ts", + "lib/io/arrow-expand.d.ts", + "lib/io/arrow-graph-down-left.d.ts", + "lib/io/arrow-graph-down-right.d.ts", + "lib/io/arrow-graph-up-left.d.ts", + "lib/io/arrow-graph-up-right.d.ts", + "lib/io/arrow-left-a.d.ts", + "lib/io/arrow-left-b.d.ts", + "lib/io/arrow-left-c.d.ts", + "lib/io/arrow-move.d.ts", + "lib/io/arrow-resize.d.ts", + "lib/io/arrow-return-left.d.ts", + "lib/io/arrow-return-right.d.ts", + "lib/io/arrow-right-a.d.ts", + "lib/io/arrow-right-b.d.ts", + "lib/io/arrow-right-c.d.ts", + "lib/io/arrow-shrink.d.ts", + "lib/io/arrow-swap.d.ts", + "lib/io/arrow-up-a.d.ts", + "lib/io/arrow-up-b.d.ts", + "lib/io/arrow-up-c.d.ts", + "lib/io/asterisk.d.ts", + "lib/io/at.d.ts", + "lib/io/backspace-outline.d.ts", + "lib/io/backspace.d.ts", + "lib/io/bag.d.ts", + "lib/io/battery-charging.d.ts", + "lib/io/battery-empty.d.ts", + "lib/io/battery-full.d.ts", + "lib/io/battery-half.d.ts", + "lib/io/battery-low.d.ts", + "lib/io/beaker.d.ts", + "lib/io/beer.d.ts", + "lib/io/bluetooth.d.ts", + "lib/io/bonfire.d.ts", + "lib/io/bookmark.d.ts", + "lib/io/bowtie.d.ts", + "lib/io/briefcase.d.ts", + "lib/io/bug.d.ts", + "lib/io/calculator.d.ts", + "lib/io/calendar.d.ts", + "lib/io/camera.d.ts", + "lib/io/card.d.ts", + "lib/io/cash.d.ts", + "lib/io/chatbox-working.d.ts", + "lib/io/chatbox.d.ts", + "lib/io/chatboxes.d.ts", + "lib/io/chatbubble-working.d.ts", + "lib/io/chatbubble.d.ts", + "lib/io/chatbubbles.d.ts", + "lib/io/checkmark-circled.d.ts", + "lib/io/checkmark-round.d.ts", + "lib/io/checkmark.d.ts", + "lib/io/chevron-down.d.ts", + "lib/io/chevron-left.d.ts", + "lib/io/chevron-right.d.ts", + "lib/io/chevron-up.d.ts", + "lib/io/clipboard.d.ts", + "lib/io/clock.d.ts", + "lib/io/close-circled.d.ts", + "lib/io/close-round.d.ts", + "lib/io/close.d.ts", + "lib/io/closed-captioning.d.ts", + "lib/io/cloud.d.ts", + "lib/io/code-download.d.ts", + "lib/io/code-working.d.ts", + "lib/io/code.d.ts", + "lib/io/coffee.d.ts", + "lib/io/compass.d.ts", + "lib/io/compose.d.ts", + "lib/io/connectbars.d.ts", + "lib/io/contrast.d.ts", + "lib/io/crop.d.ts", + "lib/io/cube.d.ts", + "lib/io/disc.d.ts", + "lib/io/document-text.d.ts", + "lib/io/document.d.ts", + "lib/io/drag.d.ts", + "lib/io/earth.d.ts", + "lib/io/easel.d.ts", + "lib/io/edit.d.ts", + "lib/io/egg.d.ts", + "lib/io/eject.d.ts", + "lib/io/email-unread.d.ts", + "lib/io/email.d.ts", + "lib/io/erlenmeyer-flask-bubbles.d.ts", + "lib/io/erlenmeyer-flask.d.ts", + "lib/io/eye-disabled.d.ts", + "lib/io/eye.d.ts", + "lib/io/female.d.ts", + "lib/io/filing.d.ts", + "lib/io/film-marker.d.ts", + "lib/io/fireball.d.ts", + "lib/io/flag.d.ts", + "lib/io/flame.d.ts", + "lib/io/flash-off.d.ts", + "lib/io/flash.d.ts", + "lib/io/folder.d.ts", + "lib/io/fork-repo.d.ts", + "lib/io/fork.d.ts", + "lib/io/forward.d.ts", + "lib/io/funnel.d.ts", + "lib/io/gear-a.d.ts", + "lib/io/gear-b.d.ts", + "lib/io/grid.d.ts", + "lib/io/hammer.d.ts", + "lib/io/happy-outline.d.ts", + "lib/io/happy.d.ts", + "lib/io/headphone.d.ts", + "lib/io/heart-broken.d.ts", + "lib/io/heart.d.ts", + "lib/io/help-buoy.d.ts", + "lib/io/help-circled.d.ts", + "lib/io/help.d.ts", + "lib/io/home.d.ts", + "lib/io/icecream.d.ts", + "lib/io/image.d.ts", + "lib/io/images.d.ts", + "lib/io/informatcircled.d.ts", + "lib/io/information.d.ts", + "lib/io/ionic.d.ts", + "lib/io/ios-alarm-outline.d.ts", + "lib/io/ios-alarm.d.ts", + "lib/io/ios-albums-outline.d.ts", + "lib/io/ios-albums.d.ts", + "lib/io/ios-americanfootball-outline.d.ts", + "lib/io/ios-americanfootball.d.ts", + "lib/io/ios-analytics-outline.d.ts", + "lib/io/ios-analytics.d.ts", + "lib/io/ios-arrow-back.d.ts", + "lib/io/ios-arrow-down.d.ts", + "lib/io/ios-arrow-forward.d.ts", + "lib/io/ios-arrow-left.d.ts", + "lib/io/ios-arrow-right.d.ts", + "lib/io/ios-arrow-thin-down.d.ts", + "lib/io/ios-arrow-thin-left.d.ts", + "lib/io/ios-arrow-thin-right.d.ts", + "lib/io/ios-arrow-thin-up.d.ts", + "lib/io/ios-arrow-up.d.ts", + "lib/io/ios-at-outline.d.ts", + "lib/io/ios-at.d.ts", + "lib/io/ios-barcode-outline.d.ts", + "lib/io/ios-barcode.d.ts", + "lib/io/ios-baseball-outline.d.ts", + "lib/io/ios-baseball.d.ts", + "lib/io/ios-basketball-outline.d.ts", + "lib/io/ios-basketball.d.ts", + "lib/io/ios-bell-outline.d.ts", + "lib/io/ios-bell.d.ts", + "lib/io/ios-body-outline.d.ts", + "lib/io/ios-body.d.ts", + "lib/io/ios-bolt-outline.d.ts", + "lib/io/ios-bolt.d.ts", + "lib/io/ios-book-outline.d.ts", + "lib/io/ios-book.d.ts", + "lib/io/ios-bookmarks-outline.d.ts", + "lib/io/ios-bookmarks.d.ts", + "lib/io/ios-box-outline.d.ts", + "lib/io/ios-box.d.ts", + "lib/io/ios-briefcase-outline.d.ts", + "lib/io/ios-briefcase.d.ts", + "lib/io/ios-browsers-outline.d.ts", + "lib/io/ios-browsers.d.ts", + "lib/io/ios-calculator-outline.d.ts", + "lib/io/ios-calculator.d.ts", + "lib/io/ios-calendar-outline.d.ts", + "lib/io/ios-calendar.d.ts", + "lib/io/ios-camera-outline.d.ts", + "lib/io/ios-camera.d.ts", + "lib/io/ios-cart-outline.d.ts", + "lib/io/ios-cart.d.ts", + "lib/io/ios-chatboxes-outline.d.ts", + "lib/io/ios-chatboxes.d.ts", + "lib/io/ios-chatbubble-outline.d.ts", + "lib/io/ios-chatbubble.d.ts", + "lib/io/ios-checkmark-empty.d.ts", + "lib/io/ios-checkmark-outline.d.ts", + "lib/io/ios-checkmark.d.ts", + "lib/io/ios-circle-filled.d.ts", + "lib/io/ios-circle-outline.d.ts", + "lib/io/ios-clock-outline.d.ts", + "lib/io/ios-clock.d.ts", + "lib/io/ios-close-empty.d.ts", + "lib/io/ios-close-outline.d.ts", + "lib/io/ios-close.d.ts", + "lib/io/ios-cloud-download-outline.d.ts", + "lib/io/ios-cloud-download.d.ts", + "lib/io/ios-cloud-outline.d.ts", + "lib/io/ios-cloud-upload-outline.d.ts", + "lib/io/ios-cloud-upload.d.ts", + "lib/io/ios-cloud.d.ts", + "lib/io/ios-cloudy-night-outline.d.ts", + "lib/io/ios-cloudy-night.d.ts", + "lib/io/ios-cloudy-outline.d.ts", + "lib/io/ios-cloudy.d.ts", + "lib/io/ios-cog-outline.d.ts", + "lib/io/ios-cog.d.ts", + "lib/io/ios-color-filter-outline.d.ts", + "lib/io/ios-color-filter.d.ts", + "lib/io/ios-color-wand-outline.d.ts", + "lib/io/ios-color-wand.d.ts", + "lib/io/ios-compose-outline.d.ts", + "lib/io/ios-compose.d.ts", + "lib/io/ios-contact-outline.d.ts", + "lib/io/ios-contact.d.ts", + "lib/io/ios-copy-outline.d.ts", + "lib/io/ios-copy.d.ts", + "lib/io/ios-crop-strong.d.ts", + "lib/io/ios-crop.d.ts", + "lib/io/ios-download-outline.d.ts", + "lib/io/ios-download.d.ts", + "lib/io/ios-drag.d.ts", + "lib/io/ios-email-outline.d.ts", + "lib/io/ios-email.d.ts", + "lib/io/ios-eye-outline.d.ts", + "lib/io/ios-eye.d.ts", + "lib/io/ios-fastforward-outline.d.ts", + "lib/io/ios-fastforward.d.ts", + "lib/io/ios-filing-outline.d.ts", + "lib/io/ios-filing.d.ts", + "lib/io/ios-film-outline.d.ts", + "lib/io/ios-film.d.ts", + "lib/io/ios-flag-outline.d.ts", + "lib/io/ios-flag.d.ts", + "lib/io/ios-flame-outline.d.ts", + "lib/io/ios-flame.d.ts", + "lib/io/ios-flask-outline.d.ts", + "lib/io/ios-flask.d.ts", + "lib/io/ios-flower-outline.d.ts", + "lib/io/ios-flower.d.ts", + "lib/io/ios-folder-outline.d.ts", + "lib/io/ios-folder.d.ts", + "lib/io/ios-football-outline.d.ts", + "lib/io/ios-football.d.ts", + "lib/io/ios-game-controller-a-outline.d.ts", + "lib/io/ios-game-controller-a.d.ts", + "lib/io/ios-game-controller-b-outline.d.ts", + "lib/io/ios-game-controller-b.d.ts", + "lib/io/ios-gear-outline.d.ts", + "lib/io/ios-gear.d.ts", + "lib/io/ios-glasses-outline.d.ts", + "lib/io/ios-glasses.d.ts", + "lib/io/ios-grid-view-outline.d.ts", + "lib/io/ios-grid-view.d.ts", + "lib/io/ios-heart-outline.d.ts", + "lib/io/ios-heart.d.ts", + "lib/io/ios-help-empty.d.ts", + "lib/io/ios-help-outline.d.ts", + "lib/io/ios-help.d.ts", + "lib/io/ios-home-outline.d.ts", + "lib/io/ios-home.d.ts", + "lib/io/ios-infinite-outline.d.ts", + "lib/io/ios-infinite.d.ts", + "lib/io/ios-informatempty.d.ts", + "lib/io/ios-information.d.ts", + "lib/io/ios-informatoutline.d.ts", + "lib/io/ios-ionic-outline.d.ts", + "lib/io/ios-keypad-outline.d.ts", + "lib/io/ios-keypad.d.ts", + "lib/io/ios-lightbulb-outline.d.ts", + "lib/io/ios-lightbulb.d.ts", + "lib/io/ios-list-outline.d.ts", + "lib/io/ios-list.d.ts", + "lib/io/ios-location.d.ts", + "lib/io/ios-locatoutline.d.ts", + "lib/io/ios-locked-outline.d.ts", + "lib/io/ios-locked.d.ts", + "lib/io/ios-loop-strong.d.ts", + "lib/io/ios-loop.d.ts", + "lib/io/ios-medical-outline.d.ts", + "lib/io/ios-medical.d.ts", + "lib/io/ios-medkit-outline.d.ts", + "lib/io/ios-medkit.d.ts", + "lib/io/ios-mic-off.d.ts", + "lib/io/ios-mic-outline.d.ts", + "lib/io/ios-mic.d.ts", + "lib/io/ios-minus-empty.d.ts", + "lib/io/ios-minus-outline.d.ts", + "lib/io/ios-minus.d.ts", + "lib/io/ios-monitor-outline.d.ts", + "lib/io/ios-monitor.d.ts", + "lib/io/ios-moon-outline.d.ts", + "lib/io/ios-moon.d.ts", + "lib/io/ios-more-outline.d.ts", + "lib/io/ios-more.d.ts", + "lib/io/ios-musical-note.d.ts", + "lib/io/ios-musical-notes.d.ts", + "lib/io/ios-navigate-outline.d.ts", + "lib/io/ios-navigate.d.ts", + "lib/io/ios-nutrition.d.ts", + "lib/io/ios-nutritoutline.d.ts", + "lib/io/ios-paper-outline.d.ts", + "lib/io/ios-paper.d.ts", + "lib/io/ios-paperplane-outline.d.ts", + "lib/io/ios-paperplane.d.ts", + "lib/io/ios-partlysunny-outline.d.ts", + "lib/io/ios-partlysunny.d.ts", + "lib/io/ios-pause-outline.d.ts", + "lib/io/ios-pause.d.ts", + "lib/io/ios-paw-outline.d.ts", + "lib/io/ios-paw.d.ts", + "lib/io/ios-people-outline.d.ts", + "lib/io/ios-people.d.ts", + "lib/io/ios-person-outline.d.ts", + "lib/io/ios-person.d.ts", + "lib/io/ios-personadd-outline.d.ts", + "lib/io/ios-personadd.d.ts", + "lib/io/ios-photos-outline.d.ts", + "lib/io/ios-photos.d.ts", + "lib/io/ios-pie-outline.d.ts", + "lib/io/ios-pie.d.ts", + "lib/io/ios-pint-outline.d.ts", + "lib/io/ios-pint.d.ts", + "lib/io/ios-play-outline.d.ts", + "lib/io/ios-play.d.ts", + "lib/io/ios-plus-empty.d.ts", + "lib/io/ios-plus-outline.d.ts", + "lib/io/ios-plus.d.ts", + "lib/io/ios-pricetag-outline.d.ts", + "lib/io/ios-pricetag.d.ts", + "lib/io/ios-pricetags-outline.d.ts", + "lib/io/ios-pricetags.d.ts", + "lib/io/ios-printer-outline.d.ts", + "lib/io/ios-printer.d.ts", + "lib/io/ios-pulse-strong.d.ts", + "lib/io/ios-pulse.d.ts", + "lib/io/ios-rainy-outline.d.ts", + "lib/io/ios-rainy.d.ts", + "lib/io/ios-recording-outline.d.ts", + "lib/io/ios-recording.d.ts", + "lib/io/ios-redo-outline.d.ts", + "lib/io/ios-redo.d.ts", + "lib/io/ios-refresh-empty.d.ts", + "lib/io/ios-refresh-outline.d.ts", + "lib/io/ios-refresh.d.ts", + "lib/io/ios-reload.d.ts", + "lib/io/ios-reverse-camera-outline.d.ts", + "lib/io/ios-reverse-camera.d.ts", + "lib/io/ios-rewind-outline.d.ts", + "lib/io/ios-rewind.d.ts", + "lib/io/ios-rose-outline.d.ts", + "lib/io/ios-rose.d.ts", + "lib/io/ios-search-strong.d.ts", + "lib/io/ios-search.d.ts", + "lib/io/ios-settings-strong.d.ts", + "lib/io/ios-settings.d.ts", + "lib/io/ios-shuffle-strong.d.ts", + "lib/io/ios-shuffle.d.ts", + "lib/io/ios-skipbackward-outline.d.ts", + "lib/io/ios-skipbackward.d.ts", + "lib/io/ios-skipforward-outline.d.ts", + "lib/io/ios-skipforward.d.ts", + "lib/io/ios-snowy.d.ts", + "lib/io/ios-speedometer-outline.d.ts", + "lib/io/ios-speedometer.d.ts", + "lib/io/ios-star-half.d.ts", + "lib/io/ios-star-outline.d.ts", + "lib/io/ios-star.d.ts", + "lib/io/ios-stopwatch-outline.d.ts", + "lib/io/ios-stopwatch.d.ts", + "lib/io/ios-sunny-outline.d.ts", + "lib/io/ios-sunny.d.ts", + "lib/io/ios-telephone-outline.d.ts", + "lib/io/ios-telephone.d.ts", + "lib/io/ios-tennisball-outline.d.ts", + "lib/io/ios-tennisball.d.ts", + "lib/io/ios-thunderstorm-outline.d.ts", + "lib/io/ios-thunderstorm.d.ts", + "lib/io/ios-time-outline.d.ts", + "lib/io/ios-time.d.ts", + "lib/io/ios-timer-outline.d.ts", + "lib/io/ios-timer.d.ts", + "lib/io/ios-toggle-outline.d.ts", + "lib/io/ios-toggle.d.ts", + "lib/io/ios-trash-outline.d.ts", + "lib/io/ios-trash.d.ts", + "lib/io/ios-undo-outline.d.ts", + "lib/io/ios-undo.d.ts", + "lib/io/ios-unlocked-outline.d.ts", + "lib/io/ios-unlocked.d.ts", + "lib/io/ios-upload-outline.d.ts", + "lib/io/ios-upload.d.ts", + "lib/io/ios-videocam-outline.d.ts", + "lib/io/ios-videocam.d.ts", + "lib/io/ios-volume-high.d.ts", + "lib/io/ios-volume-low.d.ts", + "lib/io/ios-wineglass-outline.d.ts", + "lib/io/ios-wineglass.d.ts", + "lib/io/ios-world-outline.d.ts", + "lib/io/ios-world.d.ts", + "lib/io/ipad.d.ts", + "lib/io/iphone.d.ts", + "lib/io/ipod.d.ts", + "lib/io/jet.d.ts", + "lib/io/key.d.ts", + "lib/io/knife.d.ts", + "lib/io/laptop.d.ts", + "lib/io/leaf.d.ts", + "lib/io/levels.d.ts", + "lib/io/lightbulb.d.ts", + "lib/io/link.d.ts", + "lib/io/load-a.d.ts", + "lib/io/load-b.d.ts", + "lib/io/load-c.d.ts", + "lib/io/load-d.d.ts", + "lib/io/location.d.ts", + "lib/io/lock-combination.d.ts", + "lib/io/locked.d.ts", + "lib/io/log-in.d.ts", + "lib/io/log-out.d.ts", + "lib/io/loop.d.ts", + "lib/io/magnet.d.ts", + "lib/io/male.d.ts", + "lib/io/man.d.ts", + "lib/io/map.d.ts", + "lib/io/medkit.d.ts", + "lib/io/merge.d.ts", + "lib/io/mic-a.d.ts", + "lib/io/mic-b.d.ts", + "lib/io/mic-c.d.ts", + "lib/io/minus-circled.d.ts", + "lib/io/minus-round.d.ts", + "lib/io/minus.d.ts", + "lib/io/model-s.d.ts", + "lib/io/monitor.d.ts", + "lib/io/more.d.ts", + "lib/io/mouse.d.ts", + "lib/io/music-note.d.ts", + "lib/io/navicon-round.d.ts", + "lib/io/navicon.d.ts", + "lib/io/navigate.d.ts", + "lib/io/network.d.ts", + "lib/io/no-smoking.d.ts", + "lib/io/nuclear.d.ts", + "lib/io/outlet.d.ts", + "lib/io/paintbrush.d.ts", + "lib/io/paintbucket.d.ts", + "lib/io/paper-airplane.d.ts", + "lib/io/paperclip.d.ts", + "lib/io/pause.d.ts", + "lib/io/person-add.d.ts", + "lib/io/person-stalker.d.ts", + "lib/io/person.d.ts", + "lib/io/pie-graph.d.ts", + "lib/io/pin.d.ts", + "lib/io/pinpoint.d.ts", + "lib/io/pizza.d.ts", + "lib/io/plane.d.ts", + "lib/io/planet.d.ts", + "lib/io/play.d.ts", + "lib/io/playstation.d.ts", + "lib/io/plus-circled.d.ts", + "lib/io/plus-round.d.ts", + "lib/io/plus.d.ts", + "lib/io/podium.d.ts", + "lib/io/pound.d.ts", + "lib/io/power.d.ts", + "lib/io/pricetag.d.ts", + "lib/io/pricetags.d.ts", + "lib/io/printer.d.ts", + "lib/io/pull-request.d.ts", + "lib/io/qr-scanner.d.ts", + "lib/io/quote.d.ts", + "lib/io/radio-waves.d.ts", + "lib/io/record.d.ts", + "lib/io/refresh.d.ts", + "lib/io/reply-all.d.ts", + "lib/io/reply.d.ts", + "lib/io/ribbon-a.d.ts", + "lib/io/ribbon-b.d.ts", + "lib/io/sad-outline.d.ts", + "lib/io/sad.d.ts", + "lib/io/scissors.d.ts", + "lib/io/search.d.ts", + "lib/io/settings.d.ts", + "lib/io/share.d.ts", + "lib/io/shuffle.d.ts", + "lib/io/skip-backward.d.ts", + "lib/io/skip-forward.d.ts", + "lib/io/social-android-outline.d.ts", + "lib/io/social-android.d.ts", + "lib/io/social-angular-outline.d.ts", + "lib/io/social-angular.d.ts", + "lib/io/social-apple-outline.d.ts", + "lib/io/social-apple.d.ts", + "lib/io/social-bitcoin-outline.d.ts", + "lib/io/social-bitcoin.d.ts", + "lib/io/social-buffer-outline.d.ts", + "lib/io/social-buffer.d.ts", + "lib/io/social-chrome-outline.d.ts", + "lib/io/social-chrome.d.ts", + "lib/io/social-codepen-outline.d.ts", + "lib/io/social-codepen.d.ts", + "lib/io/social-css3-outline.d.ts", + "lib/io/social-css3.d.ts", + "lib/io/social-designernews-outline.d.ts", + "lib/io/social-designernews.d.ts", + "lib/io/social-dribbble-outline.d.ts", + "lib/io/social-dribbble.d.ts", + "lib/io/social-dropbox-outline.d.ts", + "lib/io/social-dropbox.d.ts", + "lib/io/social-euro-outline.d.ts", + "lib/io/social-euro.d.ts", + "lib/io/social-facebook-outline.d.ts", + "lib/io/social-facebook.d.ts", + "lib/io/social-foursquare-outline.d.ts", + "lib/io/social-foursquare.d.ts", + "lib/io/social-freebsd-devil.d.ts", + "lib/io/social-github-outline.d.ts", + "lib/io/social-github.d.ts", + "lib/io/social-google-outline.d.ts", + "lib/io/social-google.d.ts", + "lib/io/social-googleplus-outline.d.ts", + "lib/io/social-googleplus.d.ts", + "lib/io/social-hackernews-outline.d.ts", + "lib/io/social-hackernews.d.ts", + "lib/io/social-html5-outline.d.ts", + "lib/io/social-html5.d.ts", + "lib/io/social-instagram-outline.d.ts", + "lib/io/social-instagram.d.ts", + "lib/io/social-javascript-outline.d.ts", + "lib/io/social-javascript.d.ts", + "lib/io/social-linkedin-outline.d.ts", + "lib/io/social-linkedin.d.ts", + "lib/io/social-markdown.d.ts", + "lib/io/social-nodejs.d.ts", + "lib/io/social-octocat.d.ts", + "lib/io/social-pinterest-outline.d.ts", + "lib/io/social-pinterest.d.ts", + "lib/io/social-python.d.ts", + "lib/io/social-reddit-outline.d.ts", + "lib/io/social-reddit.d.ts", + "lib/io/social-rss-outline.d.ts", + "lib/io/social-rss.d.ts", + "lib/io/social-sass.d.ts", + "lib/io/social-skype-outline.d.ts", + "lib/io/social-skype.d.ts", + "lib/io/social-snapchat-outline.d.ts", + "lib/io/social-snapchat.d.ts", + "lib/io/social-tumblr-outline.d.ts", + "lib/io/social-tumblr.d.ts", + "lib/io/social-tux.d.ts", + "lib/io/social-twitch-outline.d.ts", + "lib/io/social-twitch.d.ts", + "lib/io/social-twitter-outline.d.ts", + "lib/io/social-twitter.d.ts", + "lib/io/social-usd-outline.d.ts", + "lib/io/social-usd.d.ts", + "lib/io/social-vimeo-outline.d.ts", + "lib/io/social-vimeo.d.ts", + "lib/io/social-whatsapp-outline.d.ts", + "lib/io/social-whatsapp.d.ts", + "lib/io/social-windows-outline.d.ts", + "lib/io/social-windows.d.ts", + "lib/io/social-wordpress-outline.d.ts", + "lib/io/social-wordpress.d.ts", + "lib/io/social-yahoo-outline.d.ts", + "lib/io/social-yahoo.d.ts", + "lib/io/social-yen-outline.d.ts", + "lib/io/social-yen.d.ts", + "lib/io/social-youtube-outline.d.ts", + "lib/io/social-youtube.d.ts", + "lib/io/soup-can-outline.d.ts", + "lib/io/soup-can.d.ts", + "lib/io/speakerphone.d.ts", + "lib/io/speedometer.d.ts", + "lib/io/spoon.d.ts", + "lib/io/star.d.ts", + "lib/io/stats-bars.d.ts", + "lib/io/steam.d.ts", + "lib/io/stop.d.ts", + "lib/io/thermometer.d.ts", + "lib/io/thumbsdown.d.ts", + "lib/io/thumbsup.d.ts", + "lib/io/toggle-filled.d.ts", + "lib/io/toggle.d.ts", + "lib/io/transgender.d.ts", + "lib/io/trash-a.d.ts", + "lib/io/trash-b.d.ts", + "lib/io/trophy.d.ts", + "lib/io/tshirt-outline.d.ts", + "lib/io/tshirt.d.ts", + "lib/io/umbrella.d.ts", + "lib/io/university.d.ts", + "lib/io/unlocked.d.ts", + "lib/io/upload.d.ts", + "lib/io/usb.d.ts", + "lib/io/videocamera.d.ts", + "lib/io/volume-high.d.ts", + "lib/io/volume-low.d.ts", + "lib/io/volume-medium.d.ts", + "lib/io/volume-mute.d.ts", + "lib/io/wand.d.ts", + "lib/io/waterdrop.d.ts", + "lib/io/wifi.d.ts", + "lib/io/wineglass.d.ts", + "lib/io/woman.d.ts", + "lib/io/wrench.d.ts", + "lib/io/xbox.d.ts", + "lib/md/3d-rotation.d.ts", + "lib/md/ac-unit.d.ts", + "lib/md/access-alarm.d.ts", + "lib/md/access-alarms.d.ts", + "lib/md/access-time.d.ts", + "lib/md/accessibility.d.ts", + "lib/md/accessible.d.ts", + "lib/md/account-balance-wallet.d.ts", + "lib/md/account-balance.d.ts", + "lib/md/account-box.d.ts", + "lib/md/account-circle.d.ts", + "lib/md/adb.d.ts", + "lib/md/add-a-photo.d.ts", + "lib/md/add-alarm.d.ts", + "lib/md/add-alert.d.ts", + "lib/md/add-box.d.ts", + "lib/md/add-circle-outline.d.ts", + "lib/md/add-circle.d.ts", + "lib/md/add-location.d.ts", + "lib/md/add-shopping-cart.d.ts", + "lib/md/add-to-photos.d.ts", + "lib/md/add-to-queue.d.ts", + "lib/md/add.d.ts", + "lib/md/adjust.d.ts", + "lib/md/airline-seat-flat-angled.d.ts", + "lib/md/airline-seat-flat.d.ts", + "lib/md/airline-seat-individual-suite.d.ts", + "lib/md/airline-seat-legroom-extra.d.ts", + "lib/md/airline-seat-legroom-normal.d.ts", + "lib/md/airline-seat-legroom-reduced.d.ts", + "lib/md/airline-seat-recline-extra.d.ts", + "lib/md/airline-seat-recline-normal.d.ts", + "lib/md/airplanemode-active.d.ts", + "lib/md/airplanemode-inactive.d.ts", + "lib/md/airplay.d.ts", + "lib/md/airport-shuttle.d.ts", + "lib/md/alarm-add.d.ts", + "lib/md/alarm-off.d.ts", + "lib/md/alarm-on.d.ts", + "lib/md/alarm.d.ts", + "lib/md/album.d.ts", + "lib/md/all-inclusive.d.ts", + "lib/md/all-out.d.ts", + "lib/md/android.d.ts", + "lib/md/announcement.d.ts", + "lib/md/apps.d.ts", + "lib/md/archive.d.ts", + "lib/md/arrow-back.d.ts", + "lib/md/arrow-downward.d.ts", + "lib/md/arrow-drop-down-circle.d.ts", + "lib/md/arrow-drop-down.d.ts", + "lib/md/arrow-drop-up.d.ts", + "lib/md/arrow-forward.d.ts", + "lib/md/arrow-upward.d.ts", + "lib/md/art-track.d.ts", + "lib/md/aspect-ratio.d.ts", + "lib/md/assessment.d.ts", + "lib/md/assignment-ind.d.ts", + "lib/md/assignment-late.d.ts", + "lib/md/assignment-return.d.ts", + "lib/md/assignment-returned.d.ts", + "lib/md/assignment-turned-in.d.ts", + "lib/md/assignment.d.ts", + "lib/md/assistant-photo.d.ts", + "lib/md/assistant.d.ts", + "lib/md/attach-file.d.ts", + "lib/md/attach-money.d.ts", + "lib/md/attachment.d.ts", + "lib/md/audiotrack.d.ts", + "lib/md/autorenew.d.ts", + "lib/md/av-timer.d.ts", + "lib/md/backspace.d.ts", + "lib/md/backup.d.ts", + "lib/md/battery-alert.d.ts", + "lib/md/battery-charging-full.d.ts", + "lib/md/battery-full.d.ts", + "lib/md/battery-std.d.ts", + "lib/md/battery-unknown.d.ts", + "lib/md/beach-access.d.ts", + "lib/md/beenhere.d.ts", + "lib/md/block.d.ts", + "lib/md/bluetooth-audio.d.ts", + "lib/md/bluetooth-connected.d.ts", + "lib/md/bluetooth-disabled.d.ts", + "lib/md/bluetooth-searching.d.ts", + "lib/md/bluetooth.d.ts", + "lib/md/blur-circular.d.ts", + "lib/md/blur-linear.d.ts", + "lib/md/blur-off.d.ts", + "lib/md/blur-on.d.ts", + "lib/md/book.d.ts", + "lib/md/bookmark-outline.d.ts", + "lib/md/bookmark.d.ts", + "lib/md/border-all.d.ts", + "lib/md/border-bottom.d.ts", + "lib/md/border-clear.d.ts", + "lib/md/border-color.d.ts", + "lib/md/border-horizontal.d.ts", + "lib/md/border-inner.d.ts", + "lib/md/border-left.d.ts", + "lib/md/border-outer.d.ts", + "lib/md/border-right.d.ts", + "lib/md/border-style.d.ts", + "lib/md/border-top.d.ts", + "lib/md/border-vertical.d.ts", + "lib/md/branding-watermark.d.ts", + "lib/md/brightness-1.d.ts", + "lib/md/brightness-2.d.ts", + "lib/md/brightness-3.d.ts", + "lib/md/brightness-4.d.ts", + "lib/md/brightness-5.d.ts", + "lib/md/brightness-6.d.ts", + "lib/md/brightness-7.d.ts", + "lib/md/brightness-auto.d.ts", + "lib/md/brightness-high.d.ts", + "lib/md/brightness-low.d.ts", + "lib/md/brightness-medium.d.ts", + "lib/md/broken-image.d.ts", + "lib/md/brush.d.ts", + "lib/md/bubble-chart.d.ts", + "lib/md/bug-report.d.ts", + "lib/md/build.d.ts", + "lib/md/burst-mode.d.ts", + "lib/md/business-center.d.ts", + "lib/md/business.d.ts", + "lib/md/cached.d.ts", + "lib/md/cake.d.ts", + "lib/md/call-end.d.ts", + "lib/md/call-made.d.ts", + "lib/md/call-merge.d.ts", + "lib/md/call-missed-outgoing.d.ts", + "lib/md/call-missed.d.ts", + "lib/md/call-received.d.ts", + "lib/md/call-split.d.ts", + "lib/md/call-to-action.d.ts", + "lib/md/call.d.ts", + "lib/md/camera-alt.d.ts", + "lib/md/camera-enhance.d.ts", + "lib/md/camera-front.d.ts", + "lib/md/camera-rear.d.ts", + "lib/md/camera-roll.d.ts", + "lib/md/camera.d.ts", + "lib/md/cancel.d.ts", + "lib/md/card-giftcard.d.ts", + "lib/md/card-membership.d.ts", + "lib/md/card-travel.d.ts", + "lib/md/casino.d.ts", + "lib/md/cast-connected.d.ts", + "lib/md/cast.d.ts", + "lib/md/center-focus-strong.d.ts", + "lib/md/center-focus-weak.d.ts", + "lib/md/change-history.d.ts", + "lib/md/chat-bubble-outline.d.ts", + "lib/md/chat-bubble.d.ts", + "lib/md/chat.d.ts", + "lib/md/check-box-outline-blank.d.ts", + "lib/md/check-box.d.ts", + "lib/md/check-circle.d.ts", + "lib/md/check.d.ts", + "lib/md/chevron-left.d.ts", + "lib/md/chevron-right.d.ts", + "lib/md/child-care.d.ts", + "lib/md/child-friendly.d.ts", + "lib/md/chrome-reader-mode.d.ts", + "lib/md/class.d.ts", + "lib/md/clear-all.d.ts", + "lib/md/clear.d.ts", + "lib/md/close.d.ts", + "lib/md/closed-caption.d.ts", + "lib/md/cloud-circle.d.ts", + "lib/md/cloud-done.d.ts", + "lib/md/cloud-download.d.ts", + "lib/md/cloud-off.d.ts", + "lib/md/cloud-queue.d.ts", + "lib/md/cloud-upload.d.ts", + "lib/md/cloud.d.ts", + "lib/md/code.d.ts", + "lib/md/collections-bookmark.d.ts", + "lib/md/collections.d.ts", + "lib/md/color-lens.d.ts", + "lib/md/colorize.d.ts", + "lib/md/comment.d.ts", + "lib/md/compare-arrows.d.ts", + "lib/md/compare.d.ts", + "lib/md/computer.d.ts", + "lib/md/confirmation-number.d.ts", + "lib/md/contact-mail.d.ts", + "lib/md/contact-phone.d.ts", + "lib/md/contacts.d.ts", + "lib/md/content-copy.d.ts", + "lib/md/content-cut.d.ts", + "lib/md/content-paste.d.ts", + "lib/md/control-point-duplicate.d.ts", + "lib/md/control-point.d.ts", + "lib/md/copyright.d.ts", + "lib/md/create-new-folder.d.ts", + "lib/md/create.d.ts", + "lib/md/credit-card.d.ts", + "lib/md/crop-16-9.d.ts", + "lib/md/crop-3-2.d.ts", + "lib/md/crop-5-4.d.ts", + "lib/md/crop-7-5.d.ts", + "lib/md/crop-din.d.ts", + "lib/md/crop-free.d.ts", + "lib/md/crop-landscape.d.ts", + "lib/md/crop-original.d.ts", + "lib/md/crop-portrait.d.ts", + "lib/md/crop-rotate.d.ts", + "lib/md/crop-square.d.ts", + "lib/md/crop.d.ts", + "lib/md/dashboard.d.ts", + "lib/md/data-usage.d.ts", + "lib/md/date-range.d.ts", + "lib/md/dehaze.d.ts", + "lib/md/delete-forever.d.ts", + "lib/md/delete-sweep.d.ts", + "lib/md/delete.d.ts", + "lib/md/description.d.ts", + "lib/md/desktop-mac.d.ts", + "lib/md/desktop-windows.d.ts", + "lib/md/details.d.ts", + "lib/md/developer-board.d.ts", + "lib/md/developer-mode.d.ts", + "lib/md/device-hub.d.ts", + "lib/md/devices-other.d.ts", + "lib/md/devices.d.ts", + "lib/md/dialer-sip.d.ts", + "lib/md/dialpad.d.ts", + "lib/md/directions-bike.d.ts", + "lib/md/directions-boat.d.ts", + "lib/md/directions-bus.d.ts", + "lib/md/directions-car.d.ts", + "lib/md/directions-ferry.d.ts", + "lib/md/directions-railway.d.ts", + "lib/md/directions-run.d.ts", + "lib/md/directions-subway.d.ts", + "lib/md/directions-transit.d.ts", + "lib/md/directions-walk.d.ts", + "lib/md/directions.d.ts", + "lib/md/disc-full.d.ts", + "lib/md/dns.d.ts", + "lib/md/do-not-disturb-alt.d.ts", + "lib/md/do-not-disturb-off.d.ts", + "lib/md/do-not-disturb.d.ts", + "lib/md/dock.d.ts", + "lib/md/domain.d.ts", + "lib/md/done-all.d.ts", + "lib/md/done.d.ts", + "lib/md/donut-large.d.ts", + "lib/md/donut-small.d.ts", + "lib/md/drafts.d.ts", + "lib/md/drag-handle.d.ts", + "lib/md/drive-eta.d.ts", + "lib/md/dvr.d.ts", + "lib/md/edit-location.d.ts", + "lib/md/edit.d.ts", + "lib/md/eject.d.ts", + "lib/md/email.d.ts", + "lib/md/enhanced-encryption.d.ts", + "lib/md/equalizer.d.ts", + "lib/md/error-outline.d.ts", + "lib/md/error.d.ts", + "lib/md/euro-symbol.d.ts", + "lib/md/ev-station.d.ts", + "lib/md/event-available.d.ts", + "lib/md/event-busy.d.ts", + "lib/md/event-note.d.ts", + "lib/md/event-seat.d.ts", + "lib/md/event.d.ts", + "lib/md/exit-to-app.d.ts", + "lib/md/expand-less.d.ts", + "lib/md/expand-more.d.ts", + "lib/md/explicit.d.ts", + "lib/md/explore.d.ts", + "lib/md/exposure-minus-1.d.ts", + "lib/md/exposure-minus-2.d.ts", + "lib/md/exposure-neg-1.d.ts", + "lib/md/exposure-neg-2.d.ts", + "lib/md/exposure-plus-1.d.ts", + "lib/md/exposure-plus-2.d.ts", + "lib/md/exposure-zero.d.ts", + "lib/md/exposure.d.ts", + "lib/md/extension.d.ts", + "lib/md/face.d.ts", + "lib/md/fast-forward.d.ts", + "lib/md/fast-rewind.d.ts", + "lib/md/favorite-border.d.ts", + "lib/md/favorite-outline.d.ts", + "lib/md/favorite.d.ts", + "lib/md/featured-play-list.d.ts", + "lib/md/featured-video.d.ts", + "lib/md/feedback.d.ts", + "lib/md/fiber-dvr.d.ts", + "lib/md/fiber-manual-record.d.ts", + "lib/md/fiber-new.d.ts", + "lib/md/fiber-pin.d.ts", + "lib/md/fiber-smart-record.d.ts", + "lib/md/file-download.d.ts", + "lib/md/file-upload.d.ts", + "lib/md/filter-1.d.ts", + "lib/md/filter-2.d.ts", + "lib/md/filter-3.d.ts", + "lib/md/filter-4.d.ts", + "lib/md/filter-5.d.ts", + "lib/md/filter-6.d.ts", + "lib/md/filter-7.d.ts", + "lib/md/filter-8.d.ts", + "lib/md/filter-9-plus.d.ts", + "lib/md/filter-9.d.ts", + "lib/md/filter-b-and-w.d.ts", + "lib/md/filter-center-focus.d.ts", + "lib/md/filter-drama.d.ts", + "lib/md/filter-frames.d.ts", + "lib/md/filter-hdr.d.ts", + "lib/md/filter-list.d.ts", + "lib/md/filter-none.d.ts", + "lib/md/filter-tilt-shift.d.ts", + "lib/md/filter-vintage.d.ts", + "lib/md/filter.d.ts", + "lib/md/find-in-page.d.ts", + "lib/md/find-replace.d.ts", + "lib/md/fingerprint.d.ts", + "lib/md/first-page.d.ts", + "lib/md/fitness-center.d.ts", + "lib/md/flag.d.ts", + "lib/md/flare.d.ts", + "lib/md/flash-auto.d.ts", + "lib/md/flash-off.d.ts", + "lib/md/flash-on.d.ts", + "lib/md/flight-land.d.ts", + "lib/md/flight-takeoff.d.ts", + "lib/md/flight.d.ts", + "lib/md/flip-to-back.d.ts", + "lib/md/flip-to-front.d.ts", + "lib/md/flip.d.ts", + "lib/md/folder-open.d.ts", + "lib/md/folder-shared.d.ts", + "lib/md/folder-special.d.ts", + "lib/md/folder.d.ts", + "lib/md/font-download.d.ts", + "lib/md/format-align-center.d.ts", + "lib/md/format-align-justify.d.ts", + "lib/md/format-align-left.d.ts", + "lib/md/format-align-right.d.ts", + "lib/md/format-bold.d.ts", + "lib/md/format-clear.d.ts", + "lib/md/format-color-fill.d.ts", + "lib/md/format-color-reset.d.ts", + "lib/md/format-color-text.d.ts", + "lib/md/format-indent-decrease.d.ts", + "lib/md/format-indent-increase.d.ts", + "lib/md/format-italic.d.ts", + "lib/md/format-line-spacing.d.ts", + "lib/md/format-list-bulleted.d.ts", + "lib/md/format-list-numbered.d.ts", + "lib/md/format-paint.d.ts", + "lib/md/format-quote.d.ts", + "lib/md/format-shapes.d.ts", + "lib/md/format-size.d.ts", + "lib/md/format-strikethrough.d.ts", + "lib/md/format-textdirection-l-to-r.d.ts", + "lib/md/format-textdirection-r-to-l.d.ts", + "lib/md/format-underlined.d.ts", + "lib/md/forum.d.ts", + "lib/md/forward-10.d.ts", + "lib/md/forward-30.d.ts", + "lib/md/forward-5.d.ts", + "lib/md/forward.d.ts", + "lib/md/free-breakfast.d.ts", + "lib/md/fullscreen-exit.d.ts", + "lib/md/fullscreen.d.ts", + "lib/md/functions.d.ts", + "lib/md/g-translate.d.ts", + "lib/md/gamepad.d.ts", + "lib/md/games.d.ts", + "lib/md/gavel.d.ts", + "lib/md/gesture.d.ts", + "lib/md/get-app.d.ts", + "lib/md/gif.d.ts", + "lib/md/goat.d.ts", + "lib/md/golf-course.d.ts", + "lib/md/gps-fixed.d.ts", + "lib/md/gps-not-fixed.d.ts", + "lib/md/gps-off.d.ts", + "lib/md/grade.d.ts", + "lib/md/gradient.d.ts", + "lib/md/grain.d.ts", + "lib/md/graphic-eq.d.ts", + "lib/md/grid-off.d.ts", + "lib/md/grid-on.d.ts", + "lib/md/group-add.d.ts", + "lib/md/group-work.d.ts", + "lib/md/group.d.ts", + "lib/md/hd.d.ts", + "lib/md/hdr-off.d.ts", + "lib/md/hdr-on.d.ts", + "lib/md/hdr-strong.d.ts", + "lib/md/hdr-weak.d.ts", + "lib/md/headset-mic.d.ts", + "lib/md/headset.d.ts", + "lib/md/healing.d.ts", + "lib/md/hearing.d.ts", + "lib/md/help-outline.d.ts", + "lib/md/help.d.ts", + "lib/md/high-quality.d.ts", + "lib/md/highlight-off.d.ts", + "lib/md/highlight-remove.d.ts", + "lib/md/highlight.d.ts", + "lib/md/history.d.ts", + "lib/md/home.d.ts", + "lib/md/hot-tub.d.ts", + "lib/md/hotel.d.ts", + "lib/md/hourglass-empty.d.ts", + "lib/md/hourglass-full.d.ts", + "lib/md/http.d.ts", + "lib/md/https.d.ts", + "lib/md/image-aspect-ratio.d.ts", + "lib/md/image.d.ts", + "lib/md/import-contacts.d.ts", + "lib/md/import-export.d.ts", + "lib/md/important-devices.d.ts", + "lib/md/inbox.d.ts", + "lib/md/indeterminate-check-box.d.ts", + "lib/md/info-outline.d.ts", + "lib/md/info.d.ts", + "lib/md/input.d.ts", + "lib/md/insert-chart.d.ts", + "lib/md/insert-comment.d.ts", + "lib/md/insert-drive-file.d.ts", + "lib/md/insert-emoticon.d.ts", + "lib/md/insert-invitation.d.ts", + "lib/md/insert-link.d.ts", + "lib/md/insert-photo.d.ts", + "lib/md/invert-colors-off.d.ts", + "lib/md/invert-colors-on.d.ts", + "lib/md/invert-colors.d.ts", + "lib/md/iso.d.ts", + "lib/md/keyboard-arrow-down.d.ts", + "lib/md/keyboard-arrow-left.d.ts", + "lib/md/keyboard-arrow-right.d.ts", + "lib/md/keyboard-arrow-up.d.ts", + "lib/md/keyboard-backspace.d.ts", + "lib/md/keyboard-capslock.d.ts", + "lib/md/keyboard-control.d.ts", + "lib/md/keyboard-hide.d.ts", + "lib/md/keyboard-return.d.ts", + "lib/md/keyboard-tab.d.ts", + "lib/md/keyboard-voice.d.ts", + "lib/md/keyboard.d.ts", + "lib/md/kitchen.d.ts", + "lib/md/label-outline.d.ts", + "lib/md/label.d.ts", + "lib/md/landscape.d.ts", + "lib/md/language.d.ts", + "lib/md/laptop-chromebook.d.ts", + "lib/md/laptop-mac.d.ts", + "lib/md/laptop-windows.d.ts", + "lib/md/laptop.d.ts", + "lib/md/last-page.d.ts", + "lib/md/launch.d.ts", + "lib/md/layers-clear.d.ts", + "lib/md/layers.d.ts", + "lib/md/leak-add.d.ts", + "lib/md/leak-remove.d.ts", + "lib/md/lens.d.ts", + "lib/md/library-add.d.ts", + "lib/md/library-books.d.ts", + "lib/md/library-music.d.ts", + "lib/md/lightbulb-outline.d.ts", + "lib/md/line-style.d.ts", + "lib/md/line-weight.d.ts", + "lib/md/linear-scale.d.ts", + "lib/md/link.d.ts", + "lib/md/linked-camera.d.ts", + "lib/md/list.d.ts", + "lib/md/live-help.d.ts", + "lib/md/live-tv.d.ts", + "lib/md/local-airport.d.ts", + "lib/md/local-atm.d.ts", + "lib/md/local-attraction.d.ts", + "lib/md/local-bar.d.ts", + "lib/md/local-cafe.d.ts", + "lib/md/local-car-wash.d.ts", + "lib/md/local-convenience-store.d.ts", + "lib/md/local-drink.d.ts", + "lib/md/local-florist.d.ts", + "lib/md/local-gas-station.d.ts", + "lib/md/local-grocery-store.d.ts", + "lib/md/local-hospital.d.ts", + "lib/md/local-hotel.d.ts", + "lib/md/local-laundry-service.d.ts", + "lib/md/local-library.d.ts", + "lib/md/local-mall.d.ts", + "lib/md/local-movies.d.ts", + "lib/md/local-offer.d.ts", + "lib/md/local-parking.d.ts", + "lib/md/local-pharmacy.d.ts", + "lib/md/local-phone.d.ts", + "lib/md/local-pizza.d.ts", + "lib/md/local-play.d.ts", + "lib/md/local-post-office.d.ts", + "lib/md/local-print-shop.d.ts", + "lib/md/local-restaurant.d.ts", + "lib/md/local-see.d.ts", + "lib/md/local-shipping.d.ts", + "lib/md/local-taxi.d.ts", + "lib/md/location-city.d.ts", + "lib/md/location-disabled.d.ts", + "lib/md/location-history.d.ts", + "lib/md/location-off.d.ts", + "lib/md/location-on.d.ts", + "lib/md/location-searching.d.ts", + "lib/md/lock-open.d.ts", + "lib/md/lock-outline.d.ts", + "lib/md/lock.d.ts", + "lib/md/looks-3.d.ts", + "lib/md/looks-4.d.ts", + "lib/md/looks-5.d.ts", + "lib/md/looks-6.d.ts", + "lib/md/looks-one.d.ts", + "lib/md/looks-two.d.ts", + "lib/md/looks.d.ts", + "lib/md/loop.d.ts", + "lib/md/loupe.d.ts", + "lib/md/low-priority.d.ts", + "lib/md/loyalty.d.ts", + "lib/md/mail-outline.d.ts", + "lib/md/mail.d.ts", + "lib/md/map.d.ts", + "lib/md/markunread-mailbox.d.ts", + "lib/md/markunread.d.ts", + "lib/md/memory.d.ts", + "lib/md/menu.d.ts", + "lib/md/merge-type.d.ts", + "lib/md/message.d.ts", + "lib/md/mic-none.d.ts", + "lib/md/mic-off.d.ts", + "lib/md/mic.d.ts", + "lib/md/mms.d.ts", + "lib/md/mode-comment.d.ts", + "lib/md/mode-edit.d.ts", + "lib/md/monetization-on.d.ts", + "lib/md/money-off.d.ts", + "lib/md/monochrome-photos.d.ts", + "lib/md/mood-bad.d.ts", + "lib/md/mood.d.ts", + "lib/md/more-horiz.d.ts", + "lib/md/more-vert.d.ts", + "lib/md/more.d.ts", + "lib/md/motorcycle.d.ts", + "lib/md/mouse.d.ts", + "lib/md/move-to-inbox.d.ts", + "lib/md/movie-creation.d.ts", + "lib/md/movie-filter.d.ts", + "lib/md/movie.d.ts", + "lib/md/multiline-chart.d.ts", + "lib/md/music-note.d.ts", + "lib/md/music-video.d.ts", + "lib/md/my-location.d.ts", + "lib/md/nature-people.d.ts", + "lib/md/nature.d.ts", + "lib/md/navigate-before.d.ts", + "lib/md/navigate-next.d.ts", + "lib/md/navigation.d.ts", + "lib/md/near-me.d.ts", + "lib/md/network-cell.d.ts", + "lib/md/network-check.d.ts", + "lib/md/network-locked.d.ts", + "lib/md/network-wifi.d.ts", + "lib/md/new-releases.d.ts", + "lib/md/next-week.d.ts", + "lib/md/nfc.d.ts", + "lib/md/no-encryption.d.ts", + "lib/md/no-sim.d.ts", + "lib/md/not-interested.d.ts", + "lib/md/note-add.d.ts", + "lib/md/note.d.ts", + "lib/md/notifications-active.d.ts", + "lib/md/notifications-none.d.ts", + "lib/md/notifications-off.d.ts", + "lib/md/notifications-paused.d.ts", + "lib/md/notifications.d.ts", + "lib/md/now-wallpaper.d.ts", + "lib/md/now-widgets.d.ts", + "lib/md/offline-pin.d.ts", + "lib/md/ondemand-video.d.ts", + "lib/md/opacity.d.ts", + "lib/md/open-in-browser.d.ts", + "lib/md/open-in-new.d.ts", + "lib/md/open-with.d.ts", + "lib/md/pages.d.ts", + "lib/md/pageview.d.ts", + "lib/md/palette.d.ts", + "lib/md/pan-tool.d.ts", + "lib/md/panorama-fish-eye.d.ts", + "lib/md/panorama-horizontal.d.ts", + "lib/md/panorama-vertical.d.ts", + "lib/md/panorama-wide-angle.d.ts", + "lib/md/panorama.d.ts", + "lib/md/party-mode.d.ts", + "lib/md/pause-circle-filled.d.ts", + "lib/md/pause-circle-outline.d.ts", + "lib/md/pause.d.ts", + "lib/md/payment.d.ts", + "lib/md/people-outline.d.ts", + "lib/md/people.d.ts", + "lib/md/perm-camera-mic.d.ts", + "lib/md/perm-contact-calendar.d.ts", + "lib/md/perm-data-setting.d.ts", + "lib/md/perm-device-information.d.ts", + "lib/md/perm-identity.d.ts", + "lib/md/perm-media.d.ts", + "lib/md/perm-phone-msg.d.ts", + "lib/md/perm-scan-wifi.d.ts", + "lib/md/person-add.d.ts", + "lib/md/person-outline.d.ts", + "lib/md/person-pin-circle.d.ts", + "lib/md/person-pin.d.ts", + "lib/md/person.d.ts", + "lib/md/personal-video.d.ts", + "lib/md/pets.d.ts", + "lib/md/phone-android.d.ts", + "lib/md/phone-bluetooth-speaker.d.ts", + "lib/md/phone-forwarded.d.ts", + "lib/md/phone-in-talk.d.ts", + "lib/md/phone-iphone.d.ts", + "lib/md/phone-locked.d.ts", + "lib/md/phone-missed.d.ts", + "lib/md/phone-paused.d.ts", + "lib/md/phone.d.ts", + "lib/md/phonelink-erase.d.ts", + "lib/md/phonelink-lock.d.ts", + "lib/md/phonelink-off.d.ts", + "lib/md/phonelink-ring.d.ts", + "lib/md/phonelink-setup.d.ts", + "lib/md/phonelink.d.ts", + "lib/md/photo-album.d.ts", + "lib/md/photo-camera.d.ts", + "lib/md/photo-filter.d.ts", + "lib/md/photo-library.d.ts", + "lib/md/photo-size-select-actual.d.ts", + "lib/md/photo-size-select-large.d.ts", + "lib/md/photo-size-select-small.d.ts", + "lib/md/photo.d.ts", + "lib/md/picture-as-pdf.d.ts", + "lib/md/picture-in-picture-alt.d.ts", + "lib/md/picture-in-picture.d.ts", + "lib/md/pie-chart-outlined.d.ts", + "lib/md/pie-chart.d.ts", + "lib/md/pin-drop.d.ts", + "lib/md/place.d.ts", + "lib/md/play-arrow.d.ts", + "lib/md/play-circle-filled.d.ts", + "lib/md/play-circle-outline.d.ts", + "lib/md/play-for-work.d.ts", + "lib/md/playlist-add-check.d.ts", + "lib/md/playlist-add.d.ts", + "lib/md/playlist-play.d.ts", + "lib/md/plus-one.d.ts", + "lib/md/poll.d.ts", + "lib/md/polymer.d.ts", + "lib/md/pool.d.ts", + "lib/md/portable-wifi-off.d.ts", + "lib/md/portrait.d.ts", + "lib/md/power-input.d.ts", + "lib/md/power-settings-new.d.ts", + "lib/md/power.d.ts", + "lib/md/pregnant-woman.d.ts", + "lib/md/present-to-all.d.ts", + "lib/md/print.d.ts", + "lib/md/priority-high.d.ts", + "lib/md/public.d.ts", + "lib/md/publish.d.ts", + "lib/md/query-builder.d.ts", + "lib/md/question-answer.d.ts", + "lib/md/queue-music.d.ts", + "lib/md/queue-play-next.d.ts", + "lib/md/queue.d.ts", + "lib/md/radio-button-checked.d.ts", + "lib/md/radio-button-unchecked.d.ts", + "lib/md/radio.d.ts", + "lib/md/rate-review.d.ts", + "lib/md/receipt.d.ts", + "lib/md/recent-actors.d.ts", + "lib/md/record-voice-over.d.ts", + "lib/md/redeem.d.ts", + "lib/md/redo.d.ts", + "lib/md/refresh.d.ts", + "lib/md/remove-circle-outline.d.ts", + "lib/md/remove-circle.d.ts", + "lib/md/remove-from-queue.d.ts", + "lib/md/remove-red-eye.d.ts", + "lib/md/remove-shopping-cart.d.ts", + "lib/md/remove.d.ts", + "lib/md/reorder.d.ts", + "lib/md/repeat-one.d.ts", + "lib/md/repeat.d.ts", + "lib/md/replay-10.d.ts", + "lib/md/replay-30.d.ts", + "lib/md/replay-5.d.ts", + "lib/md/replay.d.ts", + "lib/md/reply-all.d.ts", + "lib/md/reply.d.ts", + "lib/md/report-problem.d.ts", + "lib/md/report.d.ts", + "lib/md/restaurant-menu.d.ts", + "lib/md/restaurant.d.ts", + "lib/md/restore-page.d.ts", + "lib/md/restore.d.ts", + "lib/md/ring-volume.d.ts", + "lib/md/room-service.d.ts", + "lib/md/room.d.ts", + "lib/md/rotate-90-degrees-ccw.d.ts", + "lib/md/rotate-left.d.ts", + "lib/md/rotate-right.d.ts", + "lib/md/rounded-corner.d.ts", + "lib/md/router.d.ts", + "lib/md/rowing.d.ts", + "lib/md/rss-feed.d.ts", + "lib/md/rv-hookup.d.ts", + "lib/md/satellite.d.ts", + "lib/md/save.d.ts", + "lib/md/scanner.d.ts", + "lib/md/schedule.d.ts", + "lib/md/school.d.ts", + "lib/md/screen-lock-landscape.d.ts", + "lib/md/screen-lock-portrait.d.ts", + "lib/md/screen-lock-rotation.d.ts", + "lib/md/screen-rotation.d.ts", + "lib/md/screen-share.d.ts", + "lib/md/sd-card.d.ts", + "lib/md/sd-storage.d.ts", + "lib/md/search.d.ts", + "lib/md/security.d.ts", + "lib/md/select-all.d.ts", + "lib/md/send.d.ts", + "lib/md/sentiment-dissatisfied.d.ts", + "lib/md/sentiment-neutral.d.ts", + "lib/md/sentiment-satisfied.d.ts", + "lib/md/sentiment-very-dissatisfied.d.ts", + "lib/md/sentiment-very-satisfied.d.ts", + "lib/md/settings-applications.d.ts", + "lib/md/settings-backup-restore.d.ts", + "lib/md/settings-bluetooth.d.ts", + "lib/md/settings-brightness.d.ts", + "lib/md/settings-cell.d.ts", + "lib/md/settings-ethernet.d.ts", + "lib/md/settings-input-antenna.d.ts", + "lib/md/settings-input-component.d.ts", + "lib/md/settings-input-composite.d.ts", + "lib/md/settings-input-hdmi.d.ts", + "lib/md/settings-input-svideo.d.ts", + "lib/md/settings-overscan.d.ts", + "lib/md/settings-phone.d.ts", + "lib/md/settings-power.d.ts", + "lib/md/settings-remote.d.ts", + "lib/md/settings-system-daydream.d.ts", + "lib/md/settings-voice.d.ts", + "lib/md/settings.d.ts", + "lib/md/share.d.ts", + "lib/md/shop-two.d.ts", + "lib/md/shop.d.ts", + "lib/md/shopping-basket.d.ts", + "lib/md/shopping-cart.d.ts", + "lib/md/short-text.d.ts", + "lib/md/show-chart.d.ts", + "lib/md/shuffle.d.ts", + "lib/md/signal-cellular-4-bar.d.ts", + "lib/md/signal-cellular-connected-no-internet-4-bar.d.ts", + "lib/md/signal-cellular-no-sim.d.ts", + "lib/md/signal-cellular-null.d.ts", + "lib/md/signal-cellular-off.d.ts", + "lib/md/signal-wifi-4-bar-lock.d.ts", + "lib/md/signal-wifi-4-bar.d.ts", + "lib/md/signal-wifi-off.d.ts", + "lib/md/sim-card-alert.d.ts", + "lib/md/sim-card.d.ts", + "lib/md/skip-next.d.ts", + "lib/md/skip-previous.d.ts", + "lib/md/slideshow.d.ts", + "lib/md/slow-motion-video.d.ts", + "lib/md/smartphone.d.ts", + "lib/md/smoke-free.d.ts", + "lib/md/smoking-rooms.d.ts", + "lib/md/sms-failed.d.ts", + "lib/md/sms.d.ts", + "lib/md/snooze.d.ts", + "lib/md/sort-by-alpha.d.ts", + "lib/md/sort.d.ts", + "lib/md/spa.d.ts", + "lib/md/space-bar.d.ts", + "lib/md/speaker-group.d.ts", + "lib/md/speaker-notes-off.d.ts", + "lib/md/speaker-notes.d.ts", + "lib/md/speaker-phone.d.ts", + "lib/md/speaker.d.ts", + "lib/md/spellcheck.d.ts", + "lib/md/star-border.d.ts", + "lib/md/star-half.d.ts", + "lib/md/star-outline.d.ts", + "lib/md/star.d.ts", + "lib/md/stars.d.ts", + "lib/md/stay-current-landscape.d.ts", + "lib/md/stay-current-portrait.d.ts", + "lib/md/stay-primary-landscape.d.ts", + "lib/md/stay-primary-portrait.d.ts", + "lib/md/stop-screen-share.d.ts", + "lib/md/stop.d.ts", + "lib/md/storage.d.ts", + "lib/md/store-mall-directory.d.ts", + "lib/md/store.d.ts", + "lib/md/straighten.d.ts", + "lib/md/streetview.d.ts", + "lib/md/strikethrough-s.d.ts", + "lib/md/style.d.ts", + "lib/md/subdirectory-arrow-left.d.ts", + "lib/md/subdirectory-arrow-right.d.ts", + "lib/md/subject.d.ts", + "lib/md/subscriptions.d.ts", + "lib/md/subtitles.d.ts", + "lib/md/subway.d.ts", + "lib/md/supervisor-account.d.ts", + "lib/md/surround-sound.d.ts", + "lib/md/swap-calls.d.ts", + "lib/md/swap-horiz.d.ts", + "lib/md/swap-vert.d.ts", + "lib/md/swap-vertical-circle.d.ts", + "lib/md/switch-camera.d.ts", + "lib/md/switch-video.d.ts", + "lib/md/sync-disabled.d.ts", + "lib/md/sync-problem.d.ts", + "lib/md/sync.d.ts", + "lib/md/system-update-alt.d.ts", + "lib/md/system-update.d.ts", + "lib/md/tab-unselected.d.ts", + "lib/md/tab.d.ts", + "lib/md/tablet-android.d.ts", + "lib/md/tablet-mac.d.ts", + "lib/md/tablet.d.ts", + "lib/md/tag-faces.d.ts", + "lib/md/tap-and-play.d.ts", + "lib/md/terrain.d.ts", + "lib/md/text-fields.d.ts", + "lib/md/text-format.d.ts", + "lib/md/textsms.d.ts", + "lib/md/texture.d.ts", + "lib/md/theaters.d.ts", + "lib/md/thumb-down.d.ts", + "lib/md/thumb-up.d.ts", + "lib/md/thumbs-up-down.d.ts", + "lib/md/time-to-leave.d.ts", + "lib/md/timelapse.d.ts", + "lib/md/timeline.d.ts", + "lib/md/timer-10.d.ts", + "lib/md/timer-3.d.ts", + "lib/md/timer-off.d.ts", + "lib/md/timer.d.ts", + "lib/md/title.d.ts", + "lib/md/toc.d.ts", + "lib/md/today.d.ts", + "lib/md/toll.d.ts", + "lib/md/tonality.d.ts", + "lib/md/touch-app.d.ts", + "lib/md/toys.d.ts", + "lib/md/track-changes.d.ts", + "lib/md/traffic.d.ts", + "lib/md/train.d.ts", + "lib/md/tram.d.ts", + "lib/md/transfer-within-a-station.d.ts", + "lib/md/transform.d.ts", + "lib/md/translate.d.ts", + "lib/md/trending-down.d.ts", + "lib/md/trending-flat.d.ts", + "lib/md/trending-neutral.d.ts", + "lib/md/trending-up.d.ts", + "lib/md/tune.d.ts", + "lib/md/turned-in-not.d.ts", + "lib/md/turned-in.d.ts", + "lib/md/tv.d.ts", + "lib/md/unarchive.d.ts", + "lib/md/undo.d.ts", + "lib/md/unfold-less.d.ts", + "lib/md/unfold-more.d.ts", + "lib/md/update.d.ts", + "lib/md/usb.d.ts", + "lib/md/verified-user.d.ts", + "lib/md/vertical-align-bottom.d.ts", + "lib/md/vertical-align-center.d.ts", + "lib/md/vertical-align-top.d.ts", + "lib/md/vibration.d.ts", + "lib/md/video-call.d.ts", + "lib/md/video-collection.d.ts", + "lib/md/video-label.d.ts", + "lib/md/video-library.d.ts", + "lib/md/videocam-off.d.ts", + "lib/md/videocam.d.ts", + "lib/md/videogame-asset.d.ts", + "lib/md/view-agenda.d.ts", + "lib/md/view-array.d.ts", + "lib/md/view-carousel.d.ts", + "lib/md/view-column.d.ts", + "lib/md/view-comfortable.d.ts", + "lib/md/view-comfy.d.ts", + "lib/md/view-compact.d.ts", + "lib/md/view-day.d.ts", + "lib/md/view-headline.d.ts", + "lib/md/view-list.d.ts", + "lib/md/view-module.d.ts", + "lib/md/view-quilt.d.ts", + "lib/md/view-stream.d.ts", + "lib/md/view-week.d.ts", + "lib/md/vignette.d.ts", + "lib/md/visibility-off.d.ts", + "lib/md/visibility.d.ts", + "lib/md/voice-chat.d.ts", + "lib/md/voicemail.d.ts", + "lib/md/volume-down.d.ts", + "lib/md/volume-mute.d.ts", + "lib/md/volume-off.d.ts", + "lib/md/volume-up.d.ts", + "lib/md/vpn-key.d.ts", + "lib/md/vpn-lock.d.ts", + "lib/md/wallpaper.d.ts", + "lib/md/warning.d.ts", + "lib/md/watch-later.d.ts", + "lib/md/watch.d.ts", + "lib/md/wb-auto.d.ts", + "lib/md/wb-cloudy.d.ts", + "lib/md/wb-incandescent.d.ts", + "lib/md/wb-iridescent.d.ts", + "lib/md/wb-sunny.d.ts", + "lib/md/wc.d.ts", + "lib/md/web-asset.d.ts", + "lib/md/web.d.ts", + "lib/md/weekend.d.ts", + "lib/md/whatshot.d.ts", + "lib/md/widgets.d.ts", + "lib/md/wifi-lock.d.ts", + "lib/md/wifi-tethering.d.ts", + "lib/md/wifi.d.ts", + "lib/md/work.d.ts", + "lib/md/wrap-text.d.ts", + "lib/md/youtube-searched-for.d.ts", + "lib/md/zoom-in.d.ts", + "lib/md/zoom-out-map.d.ts", + "lib/md/zoom-out.d.ts", + "lib/ti/adjust-brightness.d.ts", + "lib/ti/adjust-contrast.d.ts", + "lib/ti/anchor-outline.d.ts", + "lib/ti/anchor.d.ts", + "lib/ti/archive.d.ts", + "lib/ti/arrow-back-outline.d.ts", + "lib/ti/arrow-back.d.ts", + "lib/ti/arrow-down-outline.d.ts", + "lib/ti/arrow-down-thick.d.ts", + "lib/ti/arrow-down.d.ts", + "lib/ti/arrow-forward-outline.d.ts", + "lib/ti/arrow-forward.d.ts", + "lib/ti/arrow-left-outline.d.ts", + "lib/ti/arrow-left-thick.d.ts", + "lib/ti/arrow-left.d.ts", + "lib/ti/arrow-loop-outline.d.ts", + "lib/ti/arrow-loop.d.ts", + "lib/ti/arrow-maximise-outline.d.ts", + "lib/ti/arrow-maximise.d.ts", + "lib/ti/arrow-minimise-outline.d.ts", + "lib/ti/arrow-minimise.d.ts", + "lib/ti/arrow-move-outline.d.ts", + "lib/ti/arrow-move.d.ts", + "lib/ti/arrow-repeat-outline.d.ts", + "lib/ti/arrow-repeat.d.ts", + "lib/ti/arrow-right-outline.d.ts", + "lib/ti/arrow-right-thick.d.ts", + "lib/ti/arrow-right.d.ts", + "lib/ti/arrow-shuffle.d.ts", + "lib/ti/arrow-sorted-down.d.ts", + "lib/ti/arrow-sorted-up.d.ts", + "lib/ti/arrow-sync-outline.d.ts", + "lib/ti/arrow-sync.d.ts", + "lib/ti/arrow-unsorted.d.ts", + "lib/ti/arrow-up-outline.d.ts", + "lib/ti/arrow-up-thick.d.ts", + "lib/ti/arrow-up.d.ts", + "lib/ti/at.d.ts", + "lib/ti/attachment-outline.d.ts", + "lib/ti/attachment.d.ts", + "lib/ti/backspace-outline.d.ts", + "lib/ti/backspace.d.ts", + "lib/ti/battery-charge.d.ts", + "lib/ti/battery-full.d.ts", + "lib/ti/battery-high.d.ts", + "lib/ti/battery-low.d.ts", + "lib/ti/battery-mid.d.ts", + "lib/ti/beaker.d.ts", + "lib/ti/beer.d.ts", + "lib/ti/bell.d.ts", + "lib/ti/book.d.ts", + "lib/ti/bookmark.d.ts", + "lib/ti/briefcase.d.ts", + "lib/ti/brush.d.ts", + "lib/ti/business-card.d.ts", + "lib/ti/calculator.d.ts", + "lib/ti/calendar-outline.d.ts", + "lib/ti/calendar.d.ts", + "lib/ti/calender-outline.d.ts", + "lib/ti/calender.d.ts", + "lib/ti/camera-outline.d.ts", + "lib/ti/camera.d.ts", + "lib/ti/cancel-outline.d.ts", + "lib/ti/cancel.d.ts", + "lib/ti/chart-area-outline.d.ts", + "lib/ti/chart-area.d.ts", + "lib/ti/chart-bar-outline.d.ts", + "lib/ti/chart-bar.d.ts", + "lib/ti/chart-line-outline.d.ts", + "lib/ti/chart-line.d.ts", + "lib/ti/chart-pie-outline.d.ts", + "lib/ti/chart-pie.d.ts", + "lib/ti/chevron-left-outline.d.ts", + "lib/ti/chevron-left.d.ts", + "lib/ti/chevron-right-outline.d.ts", + "lib/ti/chevron-right.d.ts", + "lib/ti/clipboard.d.ts", + "lib/ti/cloud-storage-outline.d.ts", + "lib/ti/cloud-storage.d.ts", + "lib/ti/code-outline.d.ts", + "lib/ti/code.d.ts", + "lib/ti/coffee.d.ts", + "lib/ti/cog-outline.d.ts", + "lib/ti/cog.d.ts", + "lib/ti/compass.d.ts", + "lib/ti/contacts.d.ts", + "lib/ti/credit-card.d.ts", + "lib/ti/cross.d.ts", + "lib/ti/css3.d.ts", + "lib/ti/database.d.ts", + "lib/ti/delete-outline.d.ts", + "lib/ti/delete.d.ts", + "lib/ti/device-desktop.d.ts", + "lib/ti/device-laptop.d.ts", + "lib/ti/device-phone.d.ts", + "lib/ti/device-tablet.d.ts", + "lib/ti/directions.d.ts", + "lib/ti/divide-outline.d.ts", + "lib/ti/divide.d.ts", + "lib/ti/document-add.d.ts", + "lib/ti/document-delete.d.ts", + "lib/ti/document-text.d.ts", + "lib/ti/document.d.ts", + "lib/ti/download-outline.d.ts", + "lib/ti/download.d.ts", + "lib/ti/dropbox.d.ts", + "lib/ti/edit.d.ts", + "lib/ti/eject-outline.d.ts", + "lib/ti/eject.d.ts", + "lib/ti/equals-outline.d.ts", + "lib/ti/equals.d.ts", + "lib/ti/export-outline.d.ts", + "lib/ti/export.d.ts", + "lib/ti/eye-outline.d.ts", + "lib/ti/eye.d.ts", + "lib/ti/feather.d.ts", + "lib/ti/film.d.ts", + "lib/ti/filter.d.ts", + "lib/ti/flag-outline.d.ts", + "lib/ti/flag.d.ts", + "lib/ti/flash-outline.d.ts", + "lib/ti/flash.d.ts", + "lib/ti/flow-children.d.ts", + "lib/ti/flow-merge.d.ts", + "lib/ti/flow-parallel.d.ts", + "lib/ti/flow-switch.d.ts", + "lib/ti/folder-add.d.ts", + "lib/ti/folder-delete.d.ts", + "lib/ti/folder-open.d.ts", + "lib/ti/folder.d.ts", + "lib/ti/gift.d.ts", + "lib/ti/globe-outline.d.ts", + "lib/ti/globe.d.ts", + "lib/ti/group-outline.d.ts", + "lib/ti/group.d.ts", + "lib/ti/headphones.d.ts", + "lib/ti/heart-full-outline.d.ts", + "lib/ti/heart-half-outline.d.ts", + "lib/ti/heart-outline.d.ts", + "lib/ti/heart.d.ts", + "lib/ti/home-outline.d.ts", + "lib/ti/home.d.ts", + "lib/ti/html5.d.ts", + "lib/ti/image-outline.d.ts", + "lib/ti/image.d.ts", + "lib/ti/infinity-outline.d.ts", + "lib/ti/infinity.d.ts", + "lib/ti/info-large-outline.d.ts", + "lib/ti/info-large.d.ts", + "lib/ti/info-outline.d.ts", + "lib/ti/info.d.ts", + "lib/ti/input-checked-outline.d.ts", + "lib/ti/input-checked.d.ts", + "lib/ti/key-outline.d.ts", + "lib/ti/key.d.ts", + "lib/ti/keyboard.d.ts", + "lib/ti/leaf.d.ts", + "lib/ti/lightbulb.d.ts", + "lib/ti/link-outline.d.ts", + "lib/ti/link.d.ts", + "lib/ti/location-arrow-outline.d.ts", + "lib/ti/location-arrow.d.ts", + "lib/ti/location-outline.d.ts", + "lib/ti/location.d.ts", + "lib/ti/lock-closed-outline.d.ts", + "lib/ti/lock-closed.d.ts", + "lib/ti/lock-open-outline.d.ts", + "lib/ti/lock-open.d.ts", + "lib/ti/mail.d.ts", + "lib/ti/map.d.ts", + "lib/ti/media-eject-outline.d.ts", + "lib/ti/media-eject.d.ts", + "lib/ti/media-fast-forward-outline.d.ts", + "lib/ti/media-fast-forward.d.ts", + "lib/ti/media-pause-outline.d.ts", + "lib/ti/media-pause.d.ts", + "lib/ti/media-play-outline.d.ts", + "lib/ti/media-play-reverse-outline.d.ts", + "lib/ti/media-play-reverse.d.ts", + "lib/ti/media-play.d.ts", + "lib/ti/media-record-outline.d.ts", + "lib/ti/media-record.d.ts", + "lib/ti/media-rewind-outline.d.ts", + "lib/ti/media-rewind.d.ts", + "lib/ti/media-stop-outline.d.ts", + "lib/ti/media-stop.d.ts", + "lib/ti/message-typing.d.ts", + "lib/ti/message.d.ts", + "lib/ti/messages.d.ts", + "lib/ti/microphone-outline.d.ts", + "lib/ti/microphone.d.ts", + "lib/ti/minus-outline.d.ts", + "lib/ti/minus.d.ts", + "lib/ti/mortar-board.d.ts", + "lib/ti/news.d.ts", + "lib/ti/notes-outline.d.ts", + "lib/ti/notes.d.ts", + "lib/ti/pen.d.ts", + "lib/ti/pencil.d.ts", + "lib/ti/phone-outline.d.ts", + "lib/ti/phone.d.ts", + "lib/ti/pi-outline.d.ts", + "lib/ti/pi.d.ts", + "lib/ti/pin-outline.d.ts", + "lib/ti/pin.d.ts", + "lib/ti/pipette.d.ts", + "lib/ti/plane-outline.d.ts", + "lib/ti/plane.d.ts", + "lib/ti/plug.d.ts", + "lib/ti/plus-outline.d.ts", + "lib/ti/plus.d.ts", + "lib/ti/point-of-interest-outline.d.ts", + "lib/ti/point-of-interest.d.ts", + "lib/ti/power-outline.d.ts", + "lib/ti/power.d.ts", + "lib/ti/printer.d.ts", + "lib/ti/puzzle-outline.d.ts", + "lib/ti/puzzle.d.ts", + "lib/ti/radar-outline.d.ts", + "lib/ti/radar.d.ts", + "lib/ti/refresh-outline.d.ts", + "lib/ti/refresh.d.ts", + "lib/ti/rss-outline.d.ts", + "lib/ti/rss.d.ts", + "lib/ti/scissors-outline.d.ts", + "lib/ti/scissors.d.ts", + "lib/ti/shopping-bag.d.ts", + "lib/ti/shopping-cart.d.ts", + "lib/ti/social-at-circular.d.ts", + "lib/ti/social-dribbble-circular.d.ts", + "lib/ti/social-dribbble.d.ts", + "lib/ti/social-facebook-circular.d.ts", + "lib/ti/social-facebook.d.ts", + "lib/ti/social-flickr-circular.d.ts", + "lib/ti/social-flickr.d.ts", + "lib/ti/social-github-circular.d.ts", + "lib/ti/social-github.d.ts", + "lib/ti/social-google-plus-circular.d.ts", + "lib/ti/social-google-plus.d.ts", + "lib/ti/social-instagram-circular.d.ts", + "lib/ti/social-instagram.d.ts", + "lib/ti/social-last-fm-circular.d.ts", + "lib/ti/social-last-fm.d.ts", + "lib/ti/social-linkedin-circular.d.ts", + "lib/ti/social-linkedin.d.ts", + "lib/ti/social-pinterest-circular.d.ts", + "lib/ti/social-pinterest.d.ts", + "lib/ti/social-skype-outline.d.ts", + "lib/ti/social-skype.d.ts", + "lib/ti/social-tumbler-circular.d.ts", + "lib/ti/social-tumbler.d.ts", + "lib/ti/social-twitter-circular.d.ts", + "lib/ti/social-twitter.d.ts", + "lib/ti/social-vimeo-circular.d.ts", + "lib/ti/social-vimeo.d.ts", + "lib/ti/social-youtube-circular.d.ts", + "lib/ti/social-youtube.d.ts", + "lib/ti/sort-alphabetically-outline.d.ts", + "lib/ti/sort-alphabetically.d.ts", + "lib/ti/sort-numerically-outline.d.ts", + "lib/ti/sort-numerically.d.ts", + "lib/ti/spanner-outline.d.ts", + "lib/ti/spanner.d.ts", + "lib/ti/spiral.d.ts", + "lib/ti/star-full-outline.d.ts", + "lib/ti/star-half-outline.d.ts", + "lib/ti/star-half.d.ts", + "lib/ti/star-outline.d.ts", + "lib/ti/star.d.ts", + "lib/ti/starburst-outline.d.ts", + "lib/ti/starburst.d.ts", + "lib/ti/stopwatch.d.ts", + "lib/ti/support.d.ts", + "lib/ti/tabs-outline.d.ts", + "lib/ti/tag.d.ts", + "lib/ti/tags.d.ts", + "lib/ti/th-large-outline.d.ts", + "lib/ti/th-large.d.ts", + "lib/ti/th-list-outline.d.ts", + "lib/ti/th-list.d.ts", + "lib/ti/th-menu-outline.d.ts", + "lib/ti/th-menu.d.ts", + "lib/ti/th-small-outline.d.ts", + "lib/ti/th-small.d.ts", + "lib/ti/thermometer.d.ts", + "lib/ti/thumbs-down.d.ts", + "lib/ti/thumbs-ok.d.ts", + "lib/ti/thumbs-up.d.ts", + "lib/ti/tick-outline.d.ts", + "lib/ti/tick.d.ts", + "lib/ti/ticket.d.ts", + "lib/ti/time.d.ts", + "lib/ti/times-outline.d.ts", + "lib/ti/times.d.ts", + "lib/ti/trash.d.ts", + "lib/ti/tree.d.ts", + "lib/ti/upload-outline.d.ts", + "lib/ti/upload.d.ts", + "lib/ti/user-add-outline.d.ts", + "lib/ti/user-add.d.ts", + "lib/ti/user-delete-outline.d.ts", + "lib/ti/user-delete.d.ts", + "lib/ti/user-outline.d.ts", + "lib/ti/user.d.ts", + "lib/ti/vendor-android.d.ts", + "lib/ti/vendor-apple.d.ts", + "lib/ti/vendor-microsoft.d.ts", + "lib/ti/video-outline.d.ts", + "lib/ti/video.d.ts", + "lib/ti/volume-down.d.ts", + "lib/ti/volume-mute.d.ts", + "lib/ti/volume-up.d.ts", + "lib/ti/volume.d.ts", + "lib/ti/warning-outline.d.ts", + "lib/ti/warning.d.ts", + "lib/ti/watch.d.ts", + "lib/ti/waves-outline.d.ts", + "lib/ti/waves.d.ts", + "lib/ti/weather-cloudy.d.ts", + "lib/ti/weather-downpour.d.ts", + "lib/ti/weather-night.d.ts", + "lib/ti/weather-partly-sunny.d.ts", + "lib/ti/weather-shower.d.ts", + "lib/ti/weather-snow.d.ts", + "lib/ti/weather-stormy.d.ts", + "lib/ti/weather-sunny.d.ts", + "lib/ti/weather-windy-cloudy.d.ts", + "lib/ti/weather-windy.d.ts", + "lib/ti/wi-fi-outline.d.ts", + "lib/ti/wi-fi.d.ts", + "lib/ti/wine.d.ts", + "lib/ti/world-outline.d.ts", + "lib/ti/world.d.ts", + "lib/ti/zoom-in-outline.d.ts", + "lib/ti/zoom-in.d.ts", + "lib/ti/zoom-out-outline.d.ts", + "lib/ti/zoom-out.d.ts", + "lib/ti/zoom-outline.d.ts", + "lib/ti/zoom.d.ts" ] } diff --git a/types/react-intl/tslint.json b/types/react-intl/tslint.json index 3db14f85ea..39932ac16e 100644 --- a/types/react-intl/tslint.json +++ b/types/react-intl/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-declare-current-package": false + } +} diff --git a/types/react-mce/index.d.ts b/types/react-mce/index.d.ts new file mode 100644 index 0000000000..861ce80e9e --- /dev/null +++ b/types/react-mce/index.d.ts @@ -0,0 +1,84 @@ +// Type definitions for react-mce 0.6 +// Project: https://github.com/janstuemmel/react-mce +// Definitions by: Gavin Heise <https://github.com/morphologue> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import * as React from 'react'; +import * as ActualTinyMCE from 'tinymce'; + +type EventHandler = (event: any, editor: ActualTinyMCE.Editor) => void; + +interface ReactMCEProps { + // Non-events + config: ActualTinyMCE.Settings; + content?: string; + + // Events + onFocusin?: EventHandler; + onFocusout?: EventHandler; + onClick?: EventHandler; + onDblclick?: EventHandler; + onMousedown?: EventHandler; + onMouseup?: EventHandler; + onMousemove?: EventHandler; + onMouseover?: EventHandler; + onBeforepaste?: EventHandler; + onPaste?: EventHandler; + onCut?: EventHandler; + onCopy?: EventHandler; + onSelectionchange?: EventHandler; + onMouseout?: EventHandler; + onMouseenter?: EventHandler; + onMouseleave?: EventHandler; + onKeydown?: EventHandler; + onKeypress?: EventHandler; + onKeyup?: EventHandler; + onContextmenu?: EventHandler; + onDragend?: EventHandler; + onDragover?: EventHandler; + onDraggesture?: EventHandler; + onDragdrop?: EventHandler; + onDrop?: EventHandler; + onDrag?: EventHandler; + onBeforeRenderUI?: EventHandler; + onSetAttrib?: EventHandler; + onPreInit?: EventHandler; + onPostRender?: EventHandler; + onInit?: EventHandler; + onDeactivate?: EventHandler; + onActivate?: EventHandler; + onNodeChange?: EventHandler; + onBeforeExecCommand?: EventHandler; + onExecCommand?: EventHandler; + onShow?: EventHandler; + onHide?: EventHandler; + onProgressState?: EventHandler; + onLoadContent?: EventHandler; + onSaveContent?: EventHandler; + onBeforeSetContent?: EventHandler; + onSetContent?: EventHandler; + onBeforeGetContent?: EventHandler; + onGetContent?: EventHandler; + onVisualAid?: EventHandler; + onRemove?: EventHandler; + onSubmit?: EventHandler; + onReset?: EventHandler; + onBeforeAddUndo?: EventHandler; + onAddUndo?: EventHandler; + onChange?: EventHandler; + onUndo?: EventHandler; + onRedo?: EventHandler; + onClearUndos?: EventHandler; + onObjectSelected?: EventHandler; + onObjectResizeStart?: EventHandler; + onObjectResized?: EventHandler; + onPreProcess?: EventHandler; + onPostProcess?: EventHandler; + onFocus?: EventHandler; + onBlur?: EventHandler; + onDirty?: EventHandler; +} + +declare class TinyMCE extends React.Component<ReactMCEProps> { } +export = TinyMCE; diff --git a/types/react-mce/react-mce-tests.tsx b/types/react-mce/react-mce-tests.tsx new file mode 100644 index 0000000000..3635c37281 --- /dev/null +++ b/types/react-mce/react-mce-tests.tsx @@ -0,0 +1,40 @@ +import * as React from 'react'; +import * as ReactDOM from 'react-dom'; +import TinyMCE = require('react-mce'); + +class Example extends React.Component { + private _onChangeTextarea(e: any) { + console.log(e.target.getContent()); + } + + render() { + return ( + <div> + <div> + <h3>TinyMCE Textarea</h3> + + <TinyMCE + content="Hello" + config={{ + plugins: 'autolink link image lists print preview', + toolbar: 'undo redo | bold italic | alignleft aligncenter alignright' + }} + onChange={(e, editor) => this._onChangeTextarea(e)} + /> + + </div> + <div> + <h3>TinyMCE Inline</h3> + + <TinyMCE + config={{ inline: true }} + content="Click here!" + /> + + </div> + </div> + ); + } +} + +ReactDOM.render(<Example />, document.getElementById('root')); diff --git a/types/react-mce/tsconfig.json b/types/react-mce/tsconfig.json new file mode 100644 index 0000000000..01c35ace6a --- /dev/null +++ b/types/react-mce/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "jsx": "react", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-mce-tests.tsx" + ] +} diff --git a/types/react-mce/tslint.json b/types/react-mce/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-mce/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/react-native-elements/README.md b/types/react-native-elements/README.md index 64f9f69538..9e3975ecdf 100644 --- a/types/react-native-elements/README.md +++ b/types/react-native-elements/README.md @@ -1,27 +1,26 @@ # [React Native Elements](https://github.com/react-native-training/react-native-elements) ### Component Checklist -List will update as typings are added - [x] Buttons - [x] Badge -- [ ] Social Icons / Social Icon Buttons -- [ ] Icons -- [ ] Side Menu -- [ ] Form Elements -- [ ] Search Bar -- [ ] ButtonGroup -- [ ] Checkboxes -- [ ] List Element -- [ ] Badge -- [ ] Tab Bar Component +- [x] Social Icons / Social Icon Buttons +- [x] Icons +- [x] Side Menu +- [x] Form Elements +- [x] SearchBar +- [x] ButtonGroup +- [x] CheckBoxes +- [x] List Element +- [x] Tab Bar Component - [x] HTML style headings -- [ ] Card component -- [ ] Pricing Component -- [ ] Grid Component -- [ ] Slider Component -- [ ] Tile Component -- [ ] Avatar Component -- [ ] Rating Component -- [ ] SwipeDeck Component -- [ ] Header Component +- [x] Card component +- [x] Pricing Component +- [x] Grid Component +- [x] Slider Component +- [x] Tile Component +- [x] Avatar Component +- [x] Rating Component +- [x] SwipeDeck Component +- [x] Header Component +- [x] Divider diff --git a/types/react-native-elements/index.d.ts b/types/react-native-elements/index.d.ts index a3c1f693ef..d8d6c9d68b 100644 --- a/types/react-native-elements/index.d.ts +++ b/types/react-native-elements/index.d.ts @@ -1,11 +1,60 @@ -// Type definitions for react-native-elements 0.13 +// Type definitions for react-native-elements 0.16 // Project: https://github.com/react-native-training/react-native-elements#readme // Definitions by: Kyle Roach <https://github.com/iRoachie> +// Ifiok Jr. <https://github.com/ifiokjr> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import * as React from 'react'; -import { ViewStyle, TextStyle } from 'react-native'; +import { + ViewStyle, + TextStyle, + Image, + ImageStyle, + ImageURISource, + TouchableWithoutFeedbackProps, + TouchableHighlightProperties, + TouchableOpacityProperties, + ViewProperties, + TextInputProperties, + TextInput, + StatusBarProperties, + KeyboardType, + KeyboardTypeIOS, + StyleProp, + GestureResponderEvent, + Animated, + TransformsStyle +} from 'react-native'; +import TabNavigator from 'react-native-tab-navigator'; + +/** + * Supports auto complete for most used types as well as any other string type. + */ +export type IconType = + | 'material' + | 'material-community' + | 'simple-line-icon' + | 'zocial' + | 'font-awesome' + | 'octicon' + | 'ionicon' + | 'foundation' + | 'evilicon' + | 'entypo' + | string; + +export interface IconObject { + name?: string; + color?: string; + size?: number; + type?: IconType; + style?: StyleProp<ViewStyle>; +} + +export interface AvatarIcon extends IconObject { + iconStyle?: StyleProp<TextStyle>; +} export interface TextProps { /** @@ -36,38 +85,148 @@ export interface TextProps { /** * Additional styling for Text */ - style?: TextStyle; + style?: StyleProp<TextStyle>; } /** * HTML Style Headings * - * @desc https://react-native-training.github.io/react-native-elements/API/HTML_style_headings/ + * @see https://react-native-training.github.io/react-native-elements/API/HTML_style_headings/ */ export class Text extends React.Component<TextProps, any> {} -export interface ButtonIcon { - name?: string; - color?: string; - size?: number; - type?: 'material' | 'material-community' | 'simple-line-icon' | 'zocial' | 'font-awesome' | 'octicon' | 'ionicon' | 'foundation' | 'evilicon' | 'entypo'; - buttonStyle?: TextStyle; +export interface AvatarProps { + /** + * Component for enclosing element (eg: TouchableHighlight, View, etc) + * + * @default TouchableOpacity + */ + component?: React.ComponentClass; + + /** + * Width for the Avatar + * + * @default 34 + */ + width?: number; + + /** + * Height for the Avatar + * + * @default 34 + */ + height?: number; + + /** + * Callback function when pressing component + */ + onPress?(): void; + + /** + * Callback function when long pressing component + */ + onLongPress?(): void; + + /** + * Styling for outer container + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * Image source + */ + source?: ImageURISource; + + /** + * Style for avatar image + */ + avatarStyle?: ImageStyle; + + /** + * Determines the shape of avatar + * + * @default false + */ + rounded?: boolean; + + /** + * Renders title in the avatar + */ + title?: string; + + /** + * Style for the title + */ + titleStyle?: StyleProp<TextStyle>; + + /** + * Style for the view outside image or icon + */ + overlayContainerStyle?: StyleProp<ViewStyle>; + + /** + * Opacity when pressed + * + * @default 0.2 + */ + activeOpacity?: number; + + /** + * Icon for the avatar + */ + icon?: AvatarIcon; + + /** + * extra styling for icon component + */ + iconStyle?: StyleProp<TextStyle>; + + /** + * Small sized icon + */ + small?: boolean; + + /** + * Medium sized icon + */ + medium?: boolean; + + /** + * Large sized icon + */ + large?: boolean; + + /** + * Extra-large sized icon + */ + xlarge?: boolean; } -export interface ButtonProperties { +/** + * Avatar Component + * + * @see https://react-native-training.github.io/react-native-elements/API/avatar/ + */ +export class Avatar extends React.Component<AvatarProps, any> {} + +export interface ButtonIcon extends IconObject { + buttonStyle?: StyleProp<TextStyle>; +} + +export interface ButtonProps extends TouchableWithoutFeedbackProps { /** * Specify other component such as TouchableOpacity or other * * @default TouchableHighlight (iOS), TouchableNativeFeedback (android) */ - Component?: JSX.Element; + component?: React.ComponentClass; /** * Additional styling for button component * * @default null */ - buttonStyle?: ViewStyle; + buttonStyle?: StyleProp<ViewStyle>; /** * Button title @@ -152,7 +311,7 @@ export interface ButtonProperties { * * @default null */ - textStyle?: TextStyle; + textStyle?: StyleProp<TextStyle>; /** * Font size @@ -187,14 +346,14 @@ export interface ButtonProperties { * * @default null */ - disabledStyle?: ViewStyle; + disabledStyle?: StyleProp<ViewStyle>; /** * Styling for Component container * * @default null */ - containerViewStyle?: ViewStyle; + containerViewStyle?: StyleProp<ViewStyle>; } /** @@ -202,9 +361,9 @@ export interface ButtonProperties { * * @see https://react-native-training.github.io/react-native-elements/API/buttons/ */ -export class Button extends React.Component<ButtonProperties, any> {} +export class Button extends React.Component<ButtonProps, any> {} -export interface BadgeProperties { +export interface BadgeProps { /** * Text value to be displayed by badge * @@ -215,17 +374,17 @@ export interface BadgeProperties { /** * Style for the outer badge component */ - containerStyle?: ViewStyle; + containerStyle?: StyleProp<ViewStyle>; /** * Style for the outer-most badge component */ - wrapperStyle?: ViewStyle; + wrapperStyle?: StyleProp<ViewStyle>; /** * Style for the text in the badge */ - textStyle?: TextStyle; + textStyle?: StyleProp<TextStyle>; /** * Override the default badge contents, mutually exclusive with 'value' property @@ -235,7 +394,7 @@ export interface BadgeProperties { /** * Custom component to replace the badge outer component * - * @default View, if onPress then TouchableOpacity + * @default View (if onPress then TouchableOpacity) */ component?: React.ComponentClass; @@ -250,4 +409,1840 @@ export interface BadgeProperties { * * @see https://react-native-training.github.io/react-native-elements/API/badge/ */ -export class Badge extends React.Component<BadgeProperties, any> {} +export class Badge extends React.Component<BadgeProps, any> {} + +export interface CardProps { + /** + * Flex direction (row or column) + * + * @default 'column' + */ + flexDirection?: 'column' | 'row'; + + /** + * Outer container style + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * Inner container style + */ + wrapperStyle?: StyleProp<ViewStyle>; + + /** + * Card title + */ + title?: string; + + /** + * Additional title styling (if title provided) + */ + titleStyle?: StyleProp<TextStyle>; + + /** + * Title rendered over the image + * (only works if image prop is present) + */ + featuredTitle?: string; + + /** + * Styling for featured title + */ + featuredTitleStyle?: StyleProp<TextStyle>; + + /** + * Subtitle rendered over the image + * (only works if image prop is present) + */ + featuredSubtitle?: string; + + /** + * Styling for featured subtitle + */ + featuredSubtitleStyle?: StyleProp<TextStyle>; + + /** + * Additional divider styling + * (if title provided) + */ + dividerStyle?: StyleProp<ViewStyle>; + + /** + * Specify different font family + * + * @default System font bold (iOS), Sans Serif Bold (android) + */ + fontFamily?: string; + + /** + * Specify image styling if image is provided + */ + imageStyle?: ImageStyle; + + /** + * Specify styling for view surrounding image + */ + imageWrapperStyle?: StyleProp<ViewStyle>; + + /** + * Add an image as the heading with the image prop + */ + image?: ImageURISource; +} + +/** + * Card component + * + * @see https://react-native-training.github.io/react-native-elements/API/card/ + */ +export class Card extends React.Component<CardProps, any> {} + +/** + * Set the buttons within a Group. + */ +export interface ElementObject { + element: JSX.Element | React.ReactType; +} + +/** + * Set the border styles for a component. + */ +export interface InnerBorderStyleProperty { + color?: string; + width?: number; +} + +export interface ButtonGroupProps { + /** + * Current selected index of array of buttons + */ + selectedIndex: number; + + /** + * Method to update Button Group Index + */ + onPress(selectedIndex: number): void; + + /** + * Array of buttons for component, if returning a component, must be an object with { element: componentName } + */ + buttons: string[] | ElementObject[]; + + /** + * Choose other button component such as TouchableOpacity + * + * @default TouchableHighlight + */ + component?: React.ComponentClass; + + /** + * Specify styling for main button container + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * inherited styling specify styling for button + */ + buttonStyle?: StyleProp<ViewStyle>; + + /** + * Specify color for selected state of button + * + * @default 'white' + */ + selectedBackgroundColor?: string; + + /** + * Specify specific styling for text + */ + textStyle?: StyleProp<TextStyle>; + + /** + * Specify specific styling for text in the selected state + */ + selectedTextStyle?: StyleProp<TextStyle>; + + /** + * inherited styling object { width, color } update the styling of the interior border of the list of buttons + */ + innerBorderStyle?: InnerBorderStyleProperty; + + /** + * Specify underlayColor for TouchableHighlight + * + * @default 'white' + */ + underlayColor?: string; + + /** + * Disables the currently selected button if true + * + * @default false + */ + disableSelected?: boolean; + + /** + * Determines what the opacity of the wrapped view should be when touch is active. + */ + activeOpacity?: number; + + /** + * Border radius for the container + */ + containerBorderRadius?: number; + + /** + * Styling for the final border edge + */ + lastBorderStyle?: StyleProp<TextStyle | ViewStyle>; + + /** + * + * Called immediately after the underlay is hidden + */ + onHideUnderlay?(): void; + + /** + * Called immediately after the underlay is shown + */ + onShowUnderlay?(): void; + + /** + * Animate the touchable to a new opacity. + */ + setOpacityTo?(value: number): void; +} + +export class ButtonGroup extends React.Component<ButtonGroupProps, any> {} + +export interface CheckBoxProps { + /** + * Icon family, can be one of the following + * (required only if specifying an icon that is not from font-awesome) + */ + iconType?: IconType; + + /** + * Specify React Native component for main button + */ + component?: React.ComponentClass; + + /** + * Flag for checking the icon + * + * @default false + */ + checked: boolean; + + /** + * Moves icon to right of text. + * + * @default false + */ + iconRight?: boolean; + + /** + * Aligns checkbox to right + * + * @default false + */ + right?: boolean; + + /** + * Aligns checkbox to center + * + * @default false + */ + center?: boolean; + + /** + * Title of checkbox + */ + title?: string | JSX.Element; + + /** + * Style of main container + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * style of text + */ + textStyle?: StyleProp<TextStyle>; + + /** + * onLongPress function for checkbox + */ + onLongPress?(): void; + + /** + * onLongPress function for checkbox + */ + onLongIconPress?(): void; + + /** + * onPress function for container + */ + onPress?(): void; + + /** + * onPress function for checkbox + */ + onIconPress?(): void; + + /** + * Default checked icon (Font Awesome Icon) + * + * @default 'check-square-o' + */ + checkedIcon?: string; + + /** + * Default checked icon (Font Awesome Icon) + * + * @default 'square-o' + */ + uncheckedIcon?: string; + + /** + * Default checked color + * + * @default 'green' + */ + checkedColor?: string; + + /** + * Default unchecked color + * @default '#bfbfbf' + */ + uncheckedColor?: string; + + /** + * Specify a custom checked message + */ + checkedTitle?: string; + + /** + * Specify different font family + * @default 'System font bold (iOS)' + * @default 'Sans Serif Bold (android)' + */ + fontFamily?: string; +} +export class CheckBox extends React.Component<CheckBoxProps, any> {} + +export interface DividerProps { + /** + * Style the divider + * + * @default {height: 1, backgroundColor: #e1e8ee} + */ + style?: StyleProp<ViewStyle>; +} + +export class Divider extends React.Component<DividerProps, any> {} + +export interface FormValidationMessageProps extends ViewProperties { + /** + * Style of the container + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * Style of the text within the label message + */ + labelStyle?: StyleProp<TextStyle>; + + /** + * Font family for the message + */ + fontFamily?: string; +} +export class FormValidationMessage extends React.Component< + FormValidationMessageProps, + any +> {} + +export interface FormInputProps extends TextInputProperties { + /** + * TextInput container styling + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * TextInput styling + */ + inputStyle?: StyleProp<TextStyle>; + + /** + * @deprecated + * Get ref of TextInput + */ + textInputRef?(ref: TextInput): void; + + /** + * @deprecated + * Get ref of TextInput container + */ + containerRef?(ref: any): void; + + /** + * Shake the TextInput if not a falsy value and different from the previous value + */ + shake?: any; +} + +export class FormInput extends React.Component<FormInputProps, any> { + /** + * Holds reference to the stored input. + */ + input: TextInput; + + /** + * Shake the TextInput + * + * eg `this.formInputRef.shake()` + */ + shake(): void; + + /** + * Call focus on the TextInput + */ + focus(): void; + + /** + * Call blur on the TextInput + */ + blur(): void; + + /** + * Call clear on the TextInput + */ + clearText(): void; +} + +export interface FormLabelProps extends ViewProperties { + /** + * Additional label container style + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * Additional label styling + */ + labelStyle?: StyleProp<TextStyle>; + + /** + * Specify different font family + * + * @default System font bold (iOS), Sans Serif Bold (android) + */ + fontFamily?: string; +} + +export class FormLabel extends React.Component<FormLabelProps, any> {} + +export interface GridProps extends ViewProperties { + /** + * Outer grid styling + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * Opacity on pressing + * + * @type {number} + * @memberof GridProps + */ + activeOpacity?: number; + + /** + * onPress method + */ + onPress?(): void; + + children: React.ReactNode; +} + +/** + * @deprecated + * Warning: Grid has been deprecated and will be removed in a future version of React Native Elements + * + * @see https://react-native-training.github.io/react-native-elements/API/grid + */ +export class Grid extends React.Component<GridProps, any> {} + +export interface SubGridProps extends ViewProperties { + /** + * Size for column or row + */ + size?: number; + + /** + * Opacity on pressing + * + * @default 1 + */ + activeOpacity?: number; + + /** + * Styling for the outer column or row + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * onPress method + */ + onPress?(): void; +} + +/** + * @deprecated + * Warning: Row has been deprecated and will be removed in a future version of React Native Elements + * @see https://react-native-training.github.io/react-native-elements/API/grid/#row + */ +export class Row extends React.Component<SubGridProps, any> {} + +/** + * @deprecated + * Warning: Col has been deprecated and will be removed in a future version of React Native Elements + * + * @see https://react-native-training.github.io/react-native-elements/API/grid/#column + * + */ +export class Col extends React.Component<SubGridProps, any> {} + +export interface HeaderIcon extends IconObject { + icon?: string; +} + +/** + * Defines the types that can be used in a header sub component + */ +export type HeaderSubComponent = JSX.Element | TextProps | HeaderIcon; + +export interface HeaderProps extends ViewProperties { + /** + * Accepts all props for StatusBar + */ + statusBarProps?: StatusBarProperties; + + /** + * Configuration object for default component (icon: string, ...props for React Native Elements Icon) or a valid React Element define your left component here + */ + leftComponent?: HeaderSubComponent; + + /** + * Configuration object for default component (text: string, ...props for React Native Text component) valid React Element define your center component here + */ + centerComponent?: HeaderSubComponent; + + /** + * Configuration object for default component (icon: string, ...props for React Native Elements Icon component) or a valid React Element define your right component here + */ + rightComponent?: HeaderSubComponent; + + /** + * Sets backgroundColor of the parent component + */ + backgroundColor?: string; + + /** + * Styling for outer container + */ + outerContainerStyles?: StyleProp<ViewStyle>; + + /** + * Styling for inner container + */ + innerContainerStyles?: StyleProp<ViewStyle>; +} + +/** + * Header component + * @see https://react-native-training.github.io/react-native-elements/API/header/ + */ +export class Header extends React.Component<HeaderProps, any> {} + +export interface IconProps { + /** + * Name of icon + */ + name: string; + + /** + * Type (defaults to material, options are material-community, zocial, font-awesome, octicon, ionicon, foundation, evilicon, simple-line-icon, or entypo) + * @default 'material' + */ + type?: IconType; + + /** + * Size of icon + * @default 26 + */ + size?: number; + + /** + * Color of icon + * + * @default 'black' + */ + color?: string; + + /** + * Additional styling to icon + */ + iconStyle?: StyleProp<TextStyle | ViewStyle>; + + /** + * View if no onPress method is defined, TouchableHighlight if onPress method is defined React Native component update React Native Component + */ + component?: React.ComponentClass; + + /** + * onPress method for button + */ + onPress?(): void; + + /** + * onLongPress method for button + */ + onLongPress?(): void; + + /** + * UnderlayColor for press event + */ + underlayColor?: string; + + /** + * Reverses color scheme + * + * @default false + */ + reverse?: boolean; + + /** + * Adds box shadow to button + * + * @default false + */ + raised?: boolean; + + /** + * Add styling to container holding icon + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * Specify reverse icon color + * + * @default 'white' + */ + reverseColor?: string; +} + +/** + * Icon component + * @see https://react-native-training.github.io/react-native-elements/API/icons/ + */ +export class Icon extends React.Component<IconProps, any> {} + +export interface ListProps extends ViewProperties { + /** + * Style the list container + * @default '{marginTop: 20, borderTopWidth: 1, borderBottomWidth: 1, borderBottomColor: #cbd2d9}' + */ + containerStyle?: StyleProp<ViewStyle>; +} + +/** + * List component + * @see https://react-native-training.github.io/react-native-elements/API/lists/ + */ +export class List extends React.Component<ListProps, any> {} + +export interface ListItemProps { + /** + * Left avatar. This is the React Native Image source prop. Avatar can be used in parallel to leftIcon if needed. + */ + avatar?: string | ImageURISource; + + /** + * Avatar styling. This is the React Native Image style prop + */ + avatarStyle?: ImageStyle; + + /** + * Avatar outer container styling + */ + avatarContainerStyle?: StyleProp<ViewStyle>; + + /** + * Avatar overlay container styling + */ + avatarOverlayContainerStyle?: StyleProp<ViewStyle>; + + /** + * Set chevron color + * + * @default '#bdc6cf' + */ + chevronColor?: string; + + /** + * View or TouchableHighlight if onPress method is added as prop + * Replace element with custom element + */ + component?: React.ComponentClass; + + /** + * Additional main container styling + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * Additional wrapper styling + */ + wrapperStyle?: StyleProp<ViewStyle>; + + /** + * Define underlay color for TouchableHighlight + * + * @default 'white' + */ + underlayColor?: string; + + /** + * Specify different font family + * + * @default 'HelevticaNeue' (iOS) + * @default 'Sans Serif' (android) + */ + fontFamily?: string; + + /** + * Set if you do not want a chevron + * + * @default false + */ + hideChevron?: boolean; + + /** + * onPress method for link + */ + onPress?(): void; + + /** + * onLongPress method for link + */ + onLongPress?(): void; + + /** + * Make left avatar round + * + * @default false + */ + roundAvatar?: boolean; + + /** + * Main title for list item, can be text or custom view + */ + title?: string; + + /** + * Number of lines for title + * + * @default 1 + */ + titleNumberOfLines?: number; + + /** + * Additional title styling + */ + titleStyle?: StyleProp<TextStyle>; + + /** + * Provide styling for title container + */ + titleContainerStyle?: StyleProp<ViewStyle>; + + /** + * Subtitle text or custom view + */ + subtitle?: string | JSX.Element; + + /** + * Number of lines for Subtitle + * + * @default 1 + */ + subtitleNumberOfLines?: number; + + /** + * Provide styling for subtitle container + */ + subtitleContainerStyle?: StyleProp<ViewStyle>; + + /** + * Additional subtitle styling + */ + subtitleStyle?: StyleProp<TextStyle>; + + /** + * Provide a rightTitle to have a title show up on the right side of the button + */ + rightTitle?: string; + + /** + * Number of lines for Right Title + * + * @default 1 + */ + rightTitleNumberOfLines?: number; + + /** + * Style the outer container of the rightTitle text + * + * @default "{flex: 1, alignItems: 'flex-end', justifyContent: 'center'}"" + */ + rightTitleContainerStyle?: StyleProp<ViewStyle>; + + /** + * Style the text of the rightTitle text + * + * @default "{marginRight: 5, color: '#bdc6cf'}" + */ + rightTitleStyle?: StyleProp<TextStyle>; + + /** + * Add a label with your own styling by providing a label={} prop to ListItem + */ + label?: JSX.Element; + + /** + * Icon configuration for left icon, either a name from the icon library (like material) or a React Native element like Image. + * leftIcon can be used in parallel to avatar if needed. + * {name, color, style, type} + * (type defaults to material icons) OR React Native element + */ + leftIcon?: IconObject | JSX.Element; + + /** + * Attaches an onPress on left Icon + */ + leftIconOnPress?(): void; + + /** + * Attaches an onLongPress on left Icon + */ + leftIconOnLongPress?(): void; + + /** + * Underlay color for left Icon + * + * @default 'white' + */ + leftIconUnderlayColor?: string; + + /** + * {name: 'chevron-right'} object {name, color, style, type} (type defaults to material icons) OR + * React Native element icon configuration for right icon, either a name from the icon library (like material) or a React Native element like Image. + * Shows up unless hideChevron is set + */ + rightIcon?: IconObject | JSX.Element; + + /** + * Attaches an onPress on right Icon + */ + onPressRightIcon?(): void; + + /** + * Add a switch to the right side of your component + * + * @default false + */ + switchButton?: boolean; + + /** + * Add a callback function when the switch is toggled + */ + onSwitch?(value: boolean): void; + + /** + * If true the user won't be able to toggle the switch. Default value is false. + * @default false + */ + switchDisabled?: boolean; + + /** + * Background color when the switch is turned on. + */ + switchOnTintColor?: string; + + /** + * Color of the foreground switch grip. + */ + switchThumbTintColor?: string; + + /** + * Border color on iOS and background color on Android when the switch is turned off. + */ + switchTintColor?: string; + + /** + * The value of the switch. If true the switch will be turned on. Default value is false. + * + * @default false + */ + switched?: boolean; + + /** + * Whether to have the right title area be an input text component. + * + * @default false + */ + textInput?: boolean; + + /** + * Can tell TextInput to automatically capitalize certain characters. + */ + textInputAutoCapitalize?: boolean; + + /** + * Can tell TextInput to automatically capitalize certain characters. + */ + textInputAutoCorrect?: boolean; + + /** + * If true, focuses the input on componentDidMount. The default value is false. + */ + textInputAutoFocus?: boolean; + + /** + * If false, text is not editable. The default value is true. + */ + textInputEditable?: boolean; + + /** + * Can be one of the following: + * 'default', 'email-address', 'numeric', 'phone-pad', 'ascii-capable', 'numbers-and-punctuation', 'url', 'number-pad', 'name-phone-pad', 'decimal-pad', 'twitter', 'web-search' + */ + textInputKeyboardType?: KeyboardType | KeyboardTypeIOS; + + /** + * Limits the maximum number of characters that can be entered. + */ + textInputMaxLength?: number; + + /** + * If true, the text input can be multiple lines. The default value is false. + */ + textInputMultiline?: boolean; + + /** + * Callback that is called when the text input's text changes. Changed text is passed as an argument to the callback handler. + */ + textInputOnChangeText?(text: string): void; + + /** + * Callback that is called when the text input is focused. + */ + textInputOnFocus?(): void; + + /** + * Manually set value of the input + */ + textInputValue?: string; + + /** + * If true, obscures the text entered so that sensitive text like passwords stay secure. + */ + textInputSecure?: boolean; + + /** + * Style for the input text + */ + textInputStyle?: StyleProp<TextStyle>; + + /** + * Style for the container surrounding the input text + */ + textInputContainerStyle?: StyleProp<ViewStyle>; + + /** + * Placeholder for the text input + */ + textInputPlaceholder?: string; + + /** + * Callback that is called when the text input is blurred. + */ + textInputOnBlur?(): void; + + /** + * If true, all text will automatically be selected on focus. + */ + textInputSelectTextOnFocus?: boolean; + + /** + * Determines how the return key should look. For more info see the React Native docs + */ + textInputReturnKeyType?: string; + + /** + * Add a badge to the ListItem by using this prop + * + */ + badge?: BadgeProps | ElementObject; +} + +/** + * ListItem component + * @see https://react-native-training.github.io/react-native-elements/API/lists/ + */ +export class ListItem extends React.Component<ListItemProps, any> {} + +export interface ButtonInformation { + title: string; + icon: string; + buttonStyle?: StyleProp<ViewStyle>; +} + +export interface PricingCardProps { + /** + * Title + */ + title?: string; + + /** + * Price + */ + price: string; + + /** + * Color scheme for button & title + */ + color: string; + + /** + * Pricing information + */ + info?: string[]; + + /** + * {title, icon, buttonStyle} + * Button information + */ + button: ButtonInformation; + + /** + * Function to be run when button is pressed + */ + onButtonPress?(): void; + + /** + * Outer component styling + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * Inner wrapper component styling + */ + wrapperStyle?: StyleProp<ViewStyle>; + + /** + * Specify title font family + * + * System font (font weight 800) (iOS) + * Sans Serif Black (android) + */ + titleFont?: string; + + /** + * Specify pricing font family + * + * System font (font weight 700) (iOS) + * Sans Serif Bold (android) + */ + pricingFont?: string; + + /** + * Specify pricing information font family + * + * System font bold (iOS) + * Sans Serif Bold (android) + */ + infoFont?: string; + + /** + * Specify button font family + * + * System font (iOS) + * Sans Serif (android) + */ + buttonFont?: string; +} + +/** + * PricingCard component + * @see https://react-native-training.github.io/react-native-elements/API/pricing/ + */ +export class PricingCard extends React.Component<PricingCardProps, any> {} + +export interface RatingProps { + /** + * Callback method when the user finishes rating. Gives you the final rating value as a whole number + */ + onFinishRating(rating: number): void; + + /** + * Choose one of the built-in types: star, rocket, bell, heart or use type custom to render a custom image + */ + type?: 'star' | 'rocket' | 'bell' | 'heart' | 'custom'; + + /** + * Pass in a custom image source; use this along with type='custom' prop above + */ + ratingImage?: ImageURISource | string | number; + + /** + * Pass in a custom fill-color for the rating icon; use this along with type='custom' prop above + * + * @default '#f1c40f' + */ + ratingColor?: string; + + /** + * Pass in a custom background-fill-color for the rating icon; use this along with type='custom' prop above + * + * @default 'white' + */ + ratingBackgroundColor?: string; + + /** + * Number of rating images to display + * + * @default 5 + */ + ratingCount?: number; + + /** + * The size of each rating image + * + * @default 50 + */ + imageSize?: number; + + /** + * Displays the Built-in Rating UI to show the rating value in real-time + */ + showRating?: boolean; + + /** + * Whether the rating can be modiefied by the user + * + * @default false + */ + readonly?: boolean; + + /** + * The initial rating to render + * + * @default ratingCount/2 + */ + startingValue?: number; + + /** + * The number of decimal places for the rating value; must be between 0 and 20 + * + * @default undefined + */ + fractions?: number; + + /** + * Exposes style prop to add additonal styling to the container view + */ + style?: StyleProp<ViewStyle>; +} + +/** + * Rating component + * @see https://react-native-training.github.io/react-native-elements/API/rating/ + */ +export class Rating extends React.Component<RatingProps, any> {} + +export interface SearchBarProps extends TextInputProperties { + /** + * TextInput container styling + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * TextInput styling + */ + inputStyle?: StyleProp<TextStyle>; + + /** + * @deprecated + * Get ref of TextInput + */ + textInputRef?(ref: TextInput): void; + + /** + * @deprecated + * Get ref of TextInput container + */ + containerRef?(ref: any): void; + + /** + * Specify color, styling, or another Material Icon Name + */ + icon?: IconObject; + + /** + * Remove icon from textinput + * + * @default false + */ + noIcon?: boolean; + + /** + * @default false change theme to light theme + */ + lightTheme?: boolean; + + /** + * Change TextInput styling to rounded corners + * + * @default false + */ + round?: boolean; + + /** + * Specify other than the default transparent underline color + * + * @default 'transparent' + */ + underlineColorAndroid?: string; + + /** + * Specify color, styling of the loading ActivityIndicator effect + * + * @default "{ color: '#86939e' }" + */ + loadingIcon?: IconObject; + + /** + * Show the loading ActivityIndicator effect + * + * @default false + */ + showLoadingIcon?: boolean; + + /** + * Set the placeholder text + * + * @default '' + */ + placeholder?: string; + + /** + * Set the color of the placeholder text + * + * @default '#86939e' + */ + placeholderTextColor?: string; + + /** + * Method to fire when text is changed + */ + onChangeText?(text: string): void; + + /** + * Specify color, styling, or another Material Icon Name + * (Note: pressing on this icon clears text inside the searchbar) + * + * @default "{ color: '#86939e', name: 'search' }" + */ + clearIcon?: IconObject; +} + +/** + * SearchBar component + * @see https://react-native-training.github.io/react-native-elements/API/searchbar/ + */ +export class SearchBar extends React.Component<SearchBarProps, any> { + /** + * Holds reference to the stored input. + */ + input: TextInput; + + /** + * Call focus on the TextInput + */ + focus(): void; + + /** + * Call blur on the TextInput + */ + blur(): void; + + /** + * Call clear on the TextInput + */ + clearText(): void; +} + +export interface SideMenuProps { + /** + * Menu component + */ + menu: JSX.Element; + + /** + * Props driven control over menu open state + * + * @default false + */ + isOpen?: boolean; + + /** + * Content view left margin if menu is opened + * + * @default ⅔ of device screen width + */ + openMenuOffset?: number; + + /** + * Content view left margin if menu is hidden + */ + hiddenMenuOffset?: number; + + /** + * Edge distance on content view to open side menu + * + * @default 60 + */ + edgeHitWidth?: number; + + /** + * X axis tolerance + */ + toleranceX?: number; + + /** + * Y axis tolerance + */ + toleranceY?: number; + + /** + * Disable whether the menu can be opened with gestures or not + * + * @default false + */ + disableGestures?: boolean; + + /** + * Function that accepts event as an argument and specify if side-menu should react on the touch or not. + * Check https://facebook.github.io/react-native/docs/gesture-responder-system.html for more details + */ + onStartShouldSetResponderCapture?(event: GestureResponderEvent): boolean; + + /** + * Callback on menu open/close. Is passed isOpen as an argument. + */ + onChange?(isOpen: boolean): void; + + /** + * Callback on menu move. Is passed left as an argument + */ + onMove?(left: number): void; + + /** + * Either 'left' or 'right'. + * + * @default 'left' + */ + menuPosition?: string; + + /** + * Function that accept 2 arguments (prop, value) and return an object: + * - animation you should use at the place you specify parameter to animate + * - newOffset you should use to specify the final value of prop + */ + animationFunction?( + animation: Animated.Value, + newOffset: number + ): Animated.CompositeAnimation; + + /** + * Function that accept 1 argument (value) and return an object + * - leftOffset you should use at the place you need current value of animated parameter (left offset of content view) + */ + animationStyle?(leftOffset: number): StyleProp<TransformsStyle>; + + /** + * When true, content view will bounce back to openMenuOffset when dragged further + * + * @default true + */ + bounceBackOnOverdraw?: boolean; +} + +/** + * @deprecated + * Warning: SideMenu has been deprecated and will be removed in a future version of React Native Elements. For a complete navigation solution that includes SideMenu(Drawer) as well as many other + * features, be sure to check out react-navigation (https://reactnavigation.org) and it's DrawerNavigator. + * + * SideMenu component + * @see https://react-native-training.github.io/react-native-elements/API/side_menu/ + */ +export class SideMenu extends React.Component<SideMenuProps, any> {} + +export interface SliderProps { + /** + * Initial value of the slider + * + * @default 0 + */ + value?: number; + + /** + * If true the user won't be able to move the slider + * + * @default false + */ + disabled?: boolean; + + /** + * Initial minimum value of the slider + * + * @default 0 + */ + minimumValue?: number; + + /** + * Initial maximum value of the slider + * + * @default 1 + */ + maximumValue?: number; + + /** + * Step value of the slider. The value should be between 0 and maximumValue - minimumValue) + * + * @default 0 + */ + step?: number; + + /** + * The color used for the track to the left of the button + * + * @default '#3f3f3f' + */ + minimumTrackTintColor?: string; + + /** + * The color used for the track to the right of the button + * + * @default '#b3b3b3' + */ + maximumTrackTintColor?: string; + + /** + * The color used for the thumb + * + * @default '#343434' + */ + thumbTintColor?: string; + + /** + * The size of the touch area that allows moving the thumb. The touch area has the same center as the visible thumb. + * This allows to have a visually small thumb while still allowing the user to move it easily. + * + * @default "{width: 40, height: 40}" + */ + thumbTouchSize?: { + width?: number; + height?: number; + }; + + /** + * Callback continuously called while the user is dragging the slider + */ + onValueChange?(value: number): void; + + /** + * Callback called when the user starts changing the value (e.g. when the slider is pressed) + */ + onSlidingStart?(value: number): void; + + /** + * Callback called when the user finishes changing the value (e.g. when the slider is released) + */ + onSlidingComplete?(value: number): void; + + /** + * The style applied to the slider container + */ + style?: StyleProp<ViewStyle>; + + /** + * The style applied to the track + */ + trackStyle?: StyleProp<ViewStyle>; + + /** + * The style applied to the thumb + */ + thumbStyle?: StyleProp<ViewStyle>; + + /** + * Set this to true to visually see the thumb touch rect in green. + * + * @default false + */ + debugTouchArea?: boolean; + + /** + * Set to true if you want to use the default 'spring' animation + * + * @default false + */ + animateTransitions?: boolean; + + /** + * Set to 'spring' or 'timing' to use one of those two types of animations with the default animation properties. + * + * @default 'timing' + */ + animationType?: 'spring' | 'timing'; + + /** + * Used to configure the animation parameters. These are the same parameters in the Animated library. + * + * @default undefined + */ + animationConfig?: + | Animated.TimingAnimationConfig + | Animated.SpringAnimationConfig; +} + +/** + * Slider component + * @see https://react-native-training.github.io/react-native-elements/API/slider/ + */ +export class Slider extends React.Component<SliderProps, any> {} + +export type SocialMediaType = + | 'facebook' + | 'twitter' + | 'google-plus-official' + | 'pinterest' + | 'linkedin' + | 'youtube' + | 'vimeo' + | 'tumblr' + | 'instagram' + | 'quora' + | 'foursquare' + | 'wordpress' + | 'stumbleupon' + | 'github' + | 'github-alt' + | 'twitch' + | 'medium' + | 'soundcloud' + | 'gitlab' + | 'angellist' + | 'codepen'; + +export interface SocialIconProps { + /** + * Title if made into a button + */ + title?: string; + + /** + * Social media type + */ + type: SocialMediaType; + + /** + * Adds a drop shadow, set to false to remove + * + * @default true + */ + raised?: boolean; + + /** + * Creates button + * + * @default false + */ + button?: boolean; + + /** + * onPress method + */ + onPress?(): void; + + /** + * @default none function onLongPress method + */ + onLongPress?(): void; + + /** + * Reverses icon color scheme, setting background to white and icon to primary color + * + * @default false + */ + light?: boolean; + + /** + * Extra styling for icon component + */ + iconStyle?: StyleProp<ViewStyle>; + + /** + * Button styling + */ + style?: StyleProp<ViewStyle>; + + /** + * Icon color + */ + iconColor?: string; + + /** + * Icon size + * + * @default 24 + */ + iconSize?: number; + + /** + * Component Type of button + * + * @default TouchableHighlight + */ + component?: React.ComponentClass; + + /** + * Specify different font family + * + * @default System font bold (iOS), Sans Serif Black (android) + */ + fontFamily?: string; + + /** + * Specify font weight of title if set as a button with a title + * + * @default bold (ios), black(android) + */ + fontWeight?: string; + + /** + * Specify text styling + */ + fontStyle?: StyleProp<TextStyle>; + + /** + * Disable button + * + * @default false + */ + disabled?: boolean; + + /** + * Shows loading indicator + * + * @default false + */ + loading?: boolean; +} + +/** + * SocialIcon component + * @see https://react-native-training.github.io/react-native-elements/API/social_icons/ + */ +export class SocialIcon extends React.Component<SocialIconProps, any> {} + +export interface SwipeDeckProps<D> { + /** + * An array of data object which contains each card details. + */ + data: ReadonlyArray<D>; + + /** + * A function that takes a card as a prop and renders it with custom UI + */ + renderCard(card: D): JSX.Element; + + /** + * A function that renders custom UI when no more cards are present + */ + renderNoMoreCards?(): JSX.Element; + + /** + * function function A callback function that takes a card as a prop and take the approriate action when the user swipes the card right + */ + onSwipeRight?(card: D): void; + + /** + * function function A callback function that takes a card as a prop and take the approriate action when the user swipes the card left + */ + onSwipeLeft?(card: D): void; +} + +/** + * SwipeDeck component + * @see https://react-native-training.github.io/react-native-elements/API/swipedeck/ + */ +export class SwipeDeck<D = any> extends React.Component< + SwipeDeckProps<D>, + any +> {} + +/** + * @deprecated + * Warning: Tabs has been deprecated and will be removed in a future version of React Native Elements. + * For a complete navigation solution that includes Tabs as well as many other features, be sure to check out react-navigation (https://reactnavigation.org) and it's TabRouter. + */ +export class Tabs extends TabNavigator {} + +/** + * @deprecated + * Warning: Tab has been deprecated and will be removed in a future version of React Native Elements. + * For a complete navigation solution that includes Tabs as well as many other features, be sure to check out react-navigation (https://reactnavigation.org) and it's TabRouter. + */ +export class Tab extends TabNavigator.Item {} + +export interface TileProps { + /** + * Icon Component Props + */ + icon?: IconObject; + + /** + * Styling for the outer icon container + */ + iconContainerStyle?: StyleProp<ViewStyle>; + + /** + * Text inside the tile + */ + title?: string; + + /** + * Styling for the title + */ + titleStyle?: StyleProp<TextStyle>; + + /** + * Text inside the tile when tile is featured + */ + caption?: string; + + /** + * Styling for the caption + */ + captionStyle?: StyleProp<TextStyle>; + + /** + * Changes the look of the tile + */ + featured?: boolean; + + /** + * @default none object (style) Styling for the outer tile container + */ + containerStyle?: StyleProp<ViewStyle>; + + /** + * Source for the image + */ + imageSrc: ImageURISource | string | number; + + /** + * Styling for the image + */ + imageContainerStyle?: StyleProp<ViewStyle>; + + /** + * @default none function (event) Function to call when tile is pressed + */ + onPress?(): void; + + /** + * Number passed to control opacity on press + * + * @default 0.2 + */ + activeOpacity?: number; + + /** + * Styling for bottom container when not featured tile + */ + contentContainerStyle?: StyleProp<ViewStyle>; + + /** + * Width for the tile + * + * @default Device Width + */ + width?: number; + + /** + * Height for the tile + * + * @default Device Width * 0.8 + */ + height?: number; +} + +/** + * Tile component + * @see https://react-native-training.github.io/react-native-elements/API/tile/ + */ +export class Tile extends React.Component<TileProps, any> {} + +/** + * Colors + */ + +export interface Colors { + readonly primary: string; + readonly primary1: string; + readonly primary2: string; + readonly secondary: string; + readonly secondary2: string; + readonly secondary3: string; + readonly grey0: string; + readonly grey1: string; + readonly grey2: string; + readonly grey3: string; + readonly grey4: string; + readonly grey5: string; + readonly dkGreyBg: string; + readonly greyOutline: string; + readonly searchBg: string; + readonly disabled: string; + readonly white: string; + readonly error: string; + readonly [key: string]: string; +} + +export const colors: Colors; + +/* Utility Functions */ + +/** + * TODO make the Icon Type an export of the react-native-vector-icons type definitions. + */ +export function getIconType(type: IconType): any; + +/** + * Method to normalize size of fonts across devices + */ +export function normalize(size: number): number; diff --git a/types/react-native-elements/react-native-elements-tests.tsx b/types/react-native-elements/react-native-elements-tests.tsx index d2042b4ff1..b6a8ba8c83 100644 --- a/types/react-native-elements/react-native-elements-tests.tsx +++ b/types/react-native-elements/react-native-elements-tests.tsx @@ -1,78 +1,976 @@ import * as React from 'react'; -import { View, StyleSheet, TouchableNativeFeedback } from 'react-native'; -import { Button, Text, Badge } from 'react-native-elements'; +import { + ListView, + View, + StyleSheet, + TouchableNativeFeedback, + Image, + TextInput, + Animated, + Dimensions +} from 'react-native'; +import { + Button, + Text, + Badge, + Avatar, + Card, + ButtonGroup, + CheckBox, + Divider, + FormInput, + FormValidationMessage, + FormLabel, + Header, + Icon, + List, + ListItem, + PricingCard, + Rating, + SearchBar, + SideMenu, + Slider, + SocialIcon, + SwipeDeck, + Tabs, + Tab, + Tile, + colors, + getIconType, + normalize +} from 'react-native-elements'; + +const { width, height } = Dimensions.get('window'); class TextTest extends React.Component<any, any> { - render() { - return ( - <View> - <Text h1>Heading 1</Text> - <Text h2>Heading 2</Text> - <Text h3>Heading 3</Text> - <Text h4>Heading 4</Text> - </View> - ); - } + render() { + return ( + <View> + <Text h1>Heading 1</Text> + <Text h2>Heading 2</Text> + <Text h3>Heading 3</Text> + <Text h4>Heading 4</Text> + </View> + ); + } } +class AvatarTest extends React.Component<any, any> { + render() { + return ( + <View> + <View> + <Text style={AvatarStyles.title}>Avatars</Text> + <Avatar + small + rounded + source={{ + uri: + 'https://s3.amazonaws.com/uifaces/faces/twitter/ladylexy/128.jpg' + }} + onPress={() => console.log('Works!')} + activeOpacity={0.7} + /> + <Avatar + medium + source={{ + uri: + 'https://s3.amazonaws.com/uifaces/faces/twitter/kfriedson/128.jpg' + }} + onPress={() => console.log('Works!')} + activeOpacity={0.7} + /> + <Avatar + large + source={{ + uri: + 'https://s3.amazonaws.com/uifaces/faces/twitter/brynn/128.jpg' + }} + onPress={() => console.log('Works!')} + activeOpacity={0.7} + /> + <Avatar + xlarge + rounded + source={{ + uri: + 'https://s3.amazonaws.com/uifaces/faces/twitter/adhamdannaway/128.jpg' + }} + onPress={() => console.log('Works!')} + activeOpacity={0.7} + /> + </View> + + <View> + <Text style={AvatarStyles.title}>Avatar with initials</Text> + <Avatar + small + rounded + title="MT" + onPress={() => console.log('Works!')} + activeOpacity={0.7} + /> + <Avatar + medium + title="BP" + onPress={() => console.log('Works!')} + activeOpacity={0.7} + /> + <Avatar + large + title="LW" + onPress={() => console.log('Works!')} + activeOpacity={0.7} + /> + <Avatar + xlarge + rounded + title="CR" + onPress={() => console.log('Works!')} + activeOpacity={0.7} + /> + </View> + + <View> + <Text style={AvatarStyles.title}>Avatar with icons</Text> + <Avatar + small + rounded + icon={{ name: 'user' }} + onPress={() => console.log('Works!')} + activeOpacity={0.7} + containerStyle={{ + flex: 2, + marginLeft: 20, + marginTop: 115 + }} + /> + <Avatar + medium + overlayContainerStyle={{ backgroundColor: 'blue' }} + icon={{ name: 'meetup', color: 'red' }} + onPress={() => console.log('Works!')} + activeOpacity={0.7} + containerStyle={{ flex: 3, marginTop: 100 }} + /> + <Avatar + large + icon={{ name: 'rocket', color: 'orange' }} + overlayContainerStyle={{ backgroundColor: 'white' }} + onPress={() => console.log('Works!')} + activeOpacity={0.7} + containerStyle={{ flex: 4, marginTop: 75 }} + /> + <Avatar + xlarge + rounded + icon={{ name: 'home' }} + onPress={() => console.log('Works!')} + activeOpacity={0.7} + containerStyle={{ flex: 5, marginRight: 60 }} + /> + </View> + </View> + ); + } +} + +const AvatarStyles = StyleSheet.create({ + title: { + fontSize: 30, + marginBottom: 10 + } +}); + class BadgeTest extends React.Component<any, any> { - render() { - return ( - <View> - <Badge - value={3} - textStyle={{ color: 'orange' }} - /> + render() { + return ( + <View> + <Badge value={3} textStyle={{ color: 'orange' }} /> - <Badge containerStyle={{ backgroundColor: 'violet'}}> - <Text>User 1</Text> - </Badge> + <Badge containerStyle={{ backgroundColor: 'violet' }}> + <Text>User 1</Text> + </Badge> - <Badge onPress={() => console.log('pressed')} value="5" /> + <Badge onPress={() => console.log('pressed')} value="5" /> - <Badge component={TouchableNativeFeedback} value={10} /> - </View> - ); - } + <Badge component={TouchableNativeFeedback} value={10} /> + </View> + ); + } } class ButtonTest extends React.Component<any, any> { - handleButtonPress() { - console.log('I got pressed'); - } + handleButtonPress() { + console.log('I got pressed'); + } - render() { - return ( - <View> - <Button title='BUTTON' onPress={() => this.handleButtonPress()} /> + render() { + return ( + <View> + <Button + title="BUTTON" + onPress={() => this.handleButtonPress()} + /> - <Button - raised - icon={{name: 'cached'}} - title='BUTTON WITH ICON' onPress={() => this.handleButtonPress()} /> + <Button + raised + icon={{ name: 'cached' }} + title="BUTTON WITH ICON" + onPress={() => this.handleButtonPress()} + /> - <Button - large - iconRight - icon={{name: 'code'}} - title='LARGE WITH RIGHT ICON' onPress={() => this.handleButtonPress()} /> + <Button + large + iconRight + icon={{ name: 'code' }} + title="LARGE WITH RIGHT ICON" + onPress={() => this.handleButtonPress()} + /> - <Button - large - icon={{name: 'envira', type: 'font-awesome'}} - title='LARGE WITH RIGHT ICON' onPress={() => this.handleButtonPress()} /> + <Button + large + icon={{ name: 'envira', type: 'font-awesome' }} + title="LARGE WITH RIGHT ICON" + onPress={() => this.handleButtonPress()} + /> - <Button - large - icon={{name: 'squirrel', type: 'octicon', buttonStyle: styles.someButtonStyle }} - title='OCTICON' onPress={() => this.handleButtonPress()} /> - </View> - ); - } + <Button + large + icon={{ + name: 'squirrel', + type: 'octicon', + buttonStyle: ButtonStyles.someButtonStyle + }} + title="OCTICON" + onPress={() => this.handleButtonPress()} + /> + </View> + ); + } } -const styles = StyleSheet.create({ - someButtonStyle: { - color: 'pink' - } +const ButtonStyles = StyleSheet.create({ + someButtonStyle: { + color: 'pink' + } }); + +class CardTest extends React.Component<any, any> { + render() { + const users = [ + { + name: 'brynn', + avatar: + 'https://s3.amazonaws.com/uifaces/faces/twitter/brynn/128.jpg' + } + ]; + + return ( + <View> + {/* implemented without image with header */} + <Card title="CARD WITH DIVIDER"> + {users.map((u, i) => { + return ( + <View key={i}> + <Image + resizeMode="cover" + source={{ uri: u.avatar }} + /> + <Text>{u.name}</Text> + </View> + ); + })} + </Card> + + {/* implemented with Text and Button as children */} + <Card title="HELLO WORLD" image={require('../images/pic2.jpg')}> + <Text style={{ marginBottom: 10 }}> + The idea with React Native Elements is more about + component structure than actual design. + </Text> + <Button + onPress={() => {}} + icon={{ name: 'code' }} + backgroundColor="#03A9F4" + fontFamily="Lato" + buttonStyle={{ + borderRadius: 0, + marginLeft: 0, + marginRight: 0, + marginBottom: 0 + }} + title="VIEW NOW" + /> + </Card> + </View> + ); + } +} + +const component1 = () => <Text>Hello</Text>; +const component2 = () => <Text>World</Text>; +const component3 = () => <Text>ButtonGroup</Text>; + +class ButtonGroupTest extends React.Component<any, any> { + state = { + selectedIndexStrings: 2, + selectedIndexObjects: 2 + }; + + updateIndexStrings = (selectedIndexStrings: number) => { + this.setState({ selectedIndexStrings }); + } + + updateIndexObjects = (selectedIndexObjects: number) => { + this.setState({ selectedIndexObjects }); + } + + render() { + const buttonStrings = ['Hello', 'World', 'Buttons']; + const buttonObjects = [ + { element: component1 }, + { element: component2 }, + { element: component3 } + ]; + + const { selectedIndexStrings, selectedIndexObjects } = this.state; + return ( + <View> + <ButtonGroup + onPress={this.updateIndexStrings} + selectedIndex={selectedIndexStrings} + buttons={buttonStrings} + containerStyle={{ height: 100 }} + /> + <ButtonGroup + onPress={this.updateIndexObjects} + selectedIndex={selectedIndexObjects} + buttons={buttonObjects} + containerStyle={{ height: 100 }} + component={TouchableNativeFeedback} + /> + </View> + ); + } +} + +interface CheckBoxTestState { + checked: boolean; +} +class CheckBoxTest extends React.Component<any, CheckBoxTestState> { + state = { + checked: false + }; + render() { + return ( + <View> + <CheckBox title="Click Here" checked={this.state.checked} /> + + <CheckBox + center + title="Click Here" + checked={this.state.checked} + /> + + <CheckBox + center + title="Click Here" + checkedIcon="dot-circle-o" + uncheckedIcon="circle-o" + checked={this.state.checked} + /> + + <CheckBox + center + title="Click Here to Remove This Item" + iconRight + iconType="material" + checkedIcon="clear" + uncheckedIcon="add" + checkedColor="red" + checked={this.state.checked} + /> + </View> + ); + } +} + +class DividerTest extends React.Component { + render() { + return <Divider style={{ backgroundColor: 'blue' }} />; + } +} + +class FormTest extends React.Component<any, any> { + input: FormInput; + onChangeText(text: string) { + console.log('changed text', text); + } + + storeFormInput = (input: any) => { + this.input = input; + } + + focus() { + this.input.focus(); + } + + render() { + return ( + <View> + <FormLabel>Name</FormLabel> + <FormInput + ref={this.storeFormInput} + onChangeText={this.onChangeText} + /> + <FormValidationMessage>Error message</FormValidationMessage> + </View> + ); + } +} + +class HeaderTest extends React.Component<any, any> { + render() { + return ( + <View> + <Header + leftComponent={<View />} + rightComponent={{ icon: 'home', style: { color: '#fff' } }} + /> + <Header> + <View /> + <View /> + <View /> + </Header> + </View> + ); + } +} + +class IconTest extends React.Component<any, any> { + render() { + return ( + <View> + <Icon name="rowing" /> + <Icon name="g-translate" color="#00aced" /> + <Icon name="sc-telegram" type="evilicon" color="#517fa4" /> + <Icon + reverse + name="ios-american-football" + type="ionicon" + color="#517fa4" + /> + <Icon + raised + name="heartbeat" + type="font-awesome" + color="#f50" + onPress={() => console.log('hello')} + /> + </View> + ); + } +} + +class ListTest extends React.Component<any, any> { + list = [ + { + title: 'Appointments', + icon: 'av-timer' + }, + { + title: 'Trips', + icon: 'flight-takeoff' + } + ]; + + render() { + return ( + <List> + {this.list.map((item, i) => ( + <ListItem + key={i} + title={item.title} + leftIcon={{ name: item.icon }} + /> + ))} + </List> + ); + } +} + +class PricingCardTest extends React.Component<any, any> { + render() { + return ( + <PricingCard + color="#4f9deb" + title="Free" + price="$0" + info={['1 User', 'Basic Support', 'All Core Features']} + button={{ title: 'GET STARTED', icon: 'flight-takeoff' }} + /> + ); + } +} + +class RatingTest extends React.Component { + ratingCompleted(rating: number) { + console.log('Rating is: ' + rating); + } + + render() { + return ( + <View> + <Rating + showRating + onFinishRating={this.ratingCompleted} + style={{ paddingVertical: 10 }} + /> + + <Rating + showRating + type="star" + fractions={1} + startingValue={3.6} + readonly + imageSize={40} + onFinishRating={this.ratingCompleted} + style={{ paddingVertical: 10 }} + /> + + <Rating + type="heart" + ratingCount={3} + fractions={2} + startingValue={1.57} + imageSize={40} + onFinishRating={this.ratingCompleted} + showRating + style={[{ paddingVertical: 10 }]} + /> + </View> + ); + } +} + +class SearchBarTest extends React.Component<any, any> { + searchBar: SearchBar; + input: TextInput; + + componentDidMount() { + this.searchBar.focus(); + } + + onChangeText = (text: string) => { + console.log('text has changed'); + } + + onChangeTextAction = (text: string) => { + if (text === 'awesome') { + this.searchBar.blur(); + } + if (text === 'this is fun') { + this.searchBar.clearText(); + } + } + + storeRef(ref: SearchBar) { + this.searchBar = ref; + this.input = this.searchBar.input; + } + + render() { + return ( + <View> + <SearchBar + onChangeText={this.onChangeTextAction} + placeholder="Type Here..." + ref={this.storeRef} + /> + + <SearchBar + noIcon + onChangeText={this.onChangeText} + placeholder="Type Here..." + /> + + <SearchBar + round + onChangeText={this.onChangeText} + placeholder="Type Here..." + /> + + <SearchBar + lightTheme + onChangeText={this.onChangeText} + placeholder="Type Here..." + /> + </View> + ); + } +} + +interface SideMenuTestListItem { + avatarURL: string; + name: string; + subtitle: string; +} + +interface SideMenuTestState { + list: SideMenuTestListItem[]; + isOpen: boolean; +} +class SideMenuTest extends React.Component<any, SideMenuTestState> { + state = { + list: [ + { + avatarURL: 'https://amy.com/img.jpg', + name: 'Amy', + subtitle: 'Coding Geek' + }, + { + avatarURL: 'https://john.com/img.jpg', + name: 'John', + subtitle: 'Love cooking' + } + ], + isOpen: false + }; + onSideMenuChange(isOpen: boolean) { + this.setState({ + isOpen + }); + } + + toggleSideMenu = () => { + this.setState({ + isOpen: !this.state.isOpen + }); + } + + animationStyle = (value: number) => ({ + transform: [ + { + translateX: value + } + ] + }) + + animationFunction = (prop: Animated.Value, value: number) => + Animated.spring(prop, { + toValue: value, + friction: 8 + }) + + render() { + const MenuComponent = ( + <View + style={{ flex: 1, backgroundColor: '#ededed', paddingTop: 50 }} + > + <List containerStyle={{ marginBottom: 20 }}> + {this.state.list.map((l, i) => ( + <ListItem + roundAvatar + onPress={() => console.log('Pressed')} + avatar={l.avatarURL} + key={i} + title={l.name} + subtitle={l.subtitle} + /> + ))} + </List> + </View> + ); + + return ( + <SideMenu + isOpen={this.state.isOpen} + onChange={this.onSideMenuChange} + menu={MenuComponent} + animationStyle={this.animationStyle} + animationFunction={this.animationFunction} + > + <View + style={{ + flex: 1, + alignItems: 'center', + justifyContent: 'center', + backgroundColor: 'blue' + }} + > + <Button + title="test button" + onPress={this.toggleSideMenu.bind(this)} + /> + </View> + </SideMenu> + ); + } +} + +interface SliderTestState { + value: number; +} +class SliderTest extends React.Component<any, SliderTestState> { + state = { + value: 0.2 + }; + + onValueChange = (value: number) => { + this.setState({ value }); + } + + render() { + return ( + <View + style={{ + flex: 1, + alignItems: 'stretch', + justifyContent: 'center' + }} + > + <Slider + value={this.state.value} + onValueChange={this.onValueChange} + /> + <Text>Value: {this.state.value}</Text> + </View> + ); + } +} + +const SocialIconTest: React.StatelessComponent = () => { + return ( + <View> + <SocialIcon type="twitter" /> + <SocialIcon raised={false} type="gitlab" /> + <SocialIcon light type="medium" /> + <SocialIcon light raised={false} type="medium" /> + <SocialIcon title="Sign In With Facebook" button type="facebook" /> + <SocialIcon title="Some Twitter Message" button type="twitter" /> + <SocialIcon button type="medium" /> + <SocialIcon button light type="instagram" /> + </View> + ); +}; + +const DATA = [ + { + id: 1, + text: 'Amanda', + age: 28, + uri: + 'http://f9view.com/wp-content/uploads/2013/10/American-Beautiful-Girls-Wallpapers-Hollywood-Celebs-1920x1200px.jpg' + }, + { id: 2, text: 'Emma', age: 29, uri: 'https://i.imgur.com/FHxVpN4.jpg' }, + { + id: 3, + text: 'Scarlett', + age: 25, + uri: 'https://i.ytimg.com/vi/GOJZ5TIlc3M/maxresdefault.jpg' + }, + { + id: 4, + text: 'Keira', + age: 27, + uri: + 'http://www.bdprimeit.com/wp-content/uploads/Keira-Knightley-Most-beautiful-Hollywood-actress.jpg' + }, + { + id: 5, + text: 'Ashley', + age: 30, + uri: + 'https://s-media-cache-ak0.pinimg.com/736x/4c/89/67/4c8967fac1822eeddf09670565430fd5.jpg' + }, + { + id: 6, + text: 'Jennifer', + age: 24, + uri: + 'https://2.bp.blogspot.com/-Vy0NVWhQfKo/Ubma2Mx2YTI/AAAAAAAAH3s/LC_u8LRfm8o/s1600/aimee-teegarden-04.jpg' + }, + { + id: 7, + text: 'Sarah', + age: 28, + uri: + 'https://s-media-cache-ak0.pinimg.com/736x/41/75/26/4175268906d97492e4a3175eab95c0f5.jpg' + } +]; + +class SwipeDeckTest extends React.Component { + renderCard(card: any) { + return ( + <Card + key={card.id} + containerStyle={{ + borderRadius: 10, + width: width * 0.92, + height: height - 165 + }} + featuredTitle={`${card.text}, ${card.age}`} + featuredTitleStyle={{ + position: 'absolute', + left: 15, + bottom: 10, + fontSize: 30 + }} + image={{ uri: card.uri }} + imageStyle={{ + borderRadius: 10, + width: width * 0.915, + height: height - 165 + }} + /> + ); + } + + onSwipeRight(card: any) { + console.log('Card liked: ' + card.text); + } + + onSwipeLeft(card: any) { + console.log('Card disliked: ' + card.text); + } + + renderNoMoreCards() { + return ( + <Card + containerStyle={{ + borderRadius: 10, + width: width * 0.92, + height: height - 165 + }} + featuredTitle="No more cards" + featuredTitleStyle={{ fontSize: 25 }} + image={{ uri: 'https://i.imgflip.com/1j2oed.jpg' }} + imageStyle={{ + borderRadius: 10, + width: width * 0.915, + height: height - 165 + }} + /> + ); + } + render() { + return ( + <SwipeDeck + data={DATA} + renderCard={this.renderCard} + renderNoMoreCards={this.renderNoMoreCards} + onSwipeRight={this.onSwipeRight} + onSwipeLeft={this.onSwipeLeft} + /> + ); + } +} + +interface TabTestState { + selectedTab: string; +} + +class TabsTest extends React.Component<{}, TabTestState> { + state = { + selectedTab: 'profile' + }; + + changeTab = (selectedTab: string) => { + this.setState({ selectedTab }); + } + + render() { + const { selectedTab } = this.state; + return ( + <Tabs> + <Tab + titleStyle={{ fontWeight: 'bold', fontSize: 10 }} + selectedTitleStyle={{ marginTop: -1, marginBottom: 6 }} + selected={selectedTab === 'feed'} + title={selectedTab === 'feed' ? 'FEED' : undefined} + renderIcon={() => ( + <Icon + containerStyle={{ + justifyContent: 'center', + alignItems: 'center', + marginTop: 12 + }} + color={'#5e6977'} + name="whatshot" + size={33} + /> + )} + renderSelectedIcon={() => ( + <Icon color={'#6296f9'} name="whatshot" size={30} /> + )} + onPress={() => this.changeTab('feed')} + > + <View /> + </Tab> + <Tab + titleStyle={{ fontWeight: 'bold', fontSize: 10 }} + selectedTitleStyle={{ marginTop: -1, marginBottom: 6 }} + selected={selectedTab === 'profile'} + title={selectedTab === 'profile' ? 'PROFILE' : undefined} + renderIcon={() => ( + <Icon + containerStyle={{ + justifyContent: 'center', + alignItems: 'center', + marginTop: 12 + }} + color={'#5e6977'} + name="person" + size={33} + /> + )} + renderSelectedIcon={() => ( + <Icon color={'#6296f9'} name="person" size={30} /> + )} + onPress={() => this.changeTab('profile')} + > + <View /> + </Tab> + </Tabs> + ); + } +} + +const TileTest: React.StatelessComponent = () => ( + <View> + <Tile + imageSrc="image/path/awesome.jpeg" + title="Lorem ipsum dolor sit amet, consectetur" + icon={{ name: 'play-circle', type: 'font-awesome' }} // optional + contentContainerStyle={{ height: 70 }} + > + <View + style={{ + flex: 1, + flexDirection: 'row', + justifyContent: 'space-between' + }} + > + <Text>Caption</Text> + <Text>Caption</Text> + </View> + </Tile> + <Tile + imageSrc="image/path/awesome.jpeg" + icon={{ name: 'play-circle', type: 'font-awesome' }} + featured + /> + + <Tile + imageSrc="image/path/awesome.jpeg" + title="Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dolores dolore exercitationem" + featured + caption="Some Caption Text" + /> + </View> +); + +const CustomIcon = getIconType('material'); +const fontSize = normalize(20); +const white = colors.white; diff --git a/types/react-native-fetch-blob/index.d.ts b/types/react-native-fetch-blob/index.d.ts index cda116ec0c..cb9af73ef8 100644 --- a/types/react-native-fetch-blob/index.d.ts +++ b/types/react-native-fetch-blob/index.d.ts @@ -568,6 +568,11 @@ export interface RNFetchBlobConfig { session?: string; addAndroidDownloads?: AddAndroidDownloads; + + /** + * Fix IOS request timeout issue #368 by change default request setting to defaultSessionConfiguration, and make backgroundSessionConfigurationWithIdentifier optional + */ + IOSBackgroundTask?: boolean; } export interface AddAndroidDownloads { diff --git a/types/react-native-safari-view/index.d.ts b/types/react-native-safari-view/index.d.ts new file mode 100644 index 0000000000..6370d4c1ab --- /dev/null +++ b/types/react-native-safari-view/index.d.ts @@ -0,0 +1,79 @@ +// Type definitions for react-native-safari-view 2.0 +// Project: https://github.com/naoufal/react-native-safari-view +// Definitions by: Michael Randolph <https://github.com/mrand01> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import { EmitterSubscription } from 'react-native'; + +export interface SafariViewOptions { + /** + * A String containing the url you want to load in the Safari View + * + * @type {string} + * @memberof SafariViewOptions + */ + url: string; + + /** + * A Boolean indicating to use Safari's Reader Mode if available + * + * @type {boolean} + * @memberof SafariViewOptions + */ + readerMode?: boolean; + + /** + * A String containing a hex or rgba color to use for the browser controls + * + * @type {string} + * @memberof SafariViewOptions + */ + tintColor?: string; + + /** + * A String containing a hex or rgba color to use for the background of the browser controls (only available on iOS 10 and higher) + * + * @type {string} + * @memberof SafariViewOptions + */ + barTintColor?: string; + + /** + * A Boolean indicating to open the Safari View from the bottom + * + * @type {boolean} + * @memberof SafariViewOptions + */ + fromBottom?: boolean; +} + +export default class SafariView { + /** + * Displays a Safari View with the provided URL + * + * @param {SafariViewOptions} options + */ + static show(options: SafariViewOptions): Promise<boolean>; + + /** + * Dismisses the currently active Safari View + */ + static dismiss(): void; + + /** + * Checks if Safari View is available on the device + */ + static isAvailable(): Promise<boolean>; + + /** + * @param {string} event + * @param {function} listener + */ + static addEventListener(event: string, listener: () => void): EmitterSubscription; + + /** + * @param {string} event + * @param {function} listener + */ + static removeEventListener(event: string, listener: () => void): void; +} diff --git a/types/react-native-safari-view/react-native-safari-view-tests.ts b/types/react-native-safari-view/react-native-safari-view-tests.ts new file mode 100644 index 0000000000..36319e8165 --- /dev/null +++ b/types/react-native-safari-view/react-native-safari-view-tests.ts @@ -0,0 +1,20 @@ +import { EmitterSubscription } from 'react-native'; +import SafariView from 'react-native-safari-view'; + +const didShow: Promise<boolean> = SafariView.show({ + barTintColor: '#FFFFFF', + fromBottom: true, + readerMode: true, + tintColor: '#000000', + url: 'http://test.url' +}); + +const listener = (): void => {}; + +const subscription: EmitterSubscription = SafariView.addEventListener('onShow', listener); + +SafariView.removeEventListener('onShow', listener); + +SafariView.dismiss(); + +const available: Promise<boolean> = SafariView.isAvailable(); diff --git a/types/react-native-safari-view/tsconfig.json b/types/react-native-safari-view/tsconfig.json new file mode 100644 index 0000000000..2c9c60b6c8 --- /dev/null +++ b/types/react-native-safari-view/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "jsx": "react" + }, + "files": [ + "index.d.ts", + "react-native-safari-view-tests.ts" + ] +} diff --git a/types/react-native-safari-view/tslint.json b/types/react-native-safari-view/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-native-safari-view/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/react-native-vector-icons/Feather.d.ts b/types/react-native-vector-icons/Feather.d.ts new file mode 100644 index 0000000000..b4e8bbc633 --- /dev/null +++ b/types/react-native-vector-icons/Feather.d.ts @@ -0,0 +1,2 @@ +import { Icon } from './Icon'; +export default Icon; diff --git a/types/react-native-vector-icons/index.d.ts b/types/react-native-vector-icons/index.d.ts index b9dfc622c3..9569cd3866 100644 --- a/types/react-native-vector-icons/index.d.ts +++ b/types/react-native-vector-icons/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-native-vector-icons 4.3 +// Type definitions for react-native-vector-icons 4.4 // Project: https://github.com/oblador/react-native-vector-icons // Definitions by: Kyle Roach <https://github.com/iRoachie> // Tim Wang <https://github.com/timwangdev> diff --git a/types/react-native-vector-icons/tsconfig.json b/types/react-native-vector-icons/tsconfig.json index 746ae7e0ff..ca9d5de336 100644 --- a/types/react-native-vector-icons/tsconfig.json +++ b/types/react-native-vector-icons/tsconfig.json @@ -22,6 +22,7 @@ "Icon.d.ts", "Entypo.d.ts", "EvilIcons.d.ts", + "Feather.d.ts", "FontAwesome.d.ts", "Foundation.d.ts", "Ionicons.d.ts", diff --git a/types/react-native/globals.d.ts b/types/react-native/globals.d.ts index 3ac46ecd66..baaaa261d7 100644 --- a/types/react-native/globals.d.ts +++ b/types/react-native/globals.d.ts @@ -10,7 +10,9 @@ declare function clearInterval(handle: number): void; declare function clearTimeout(handle: number): void; declare function setInterval(handler: (...args: any[]) => void, timeout: number): number; +declare function setInterval(handler: any, timeout?: any, ...args: any[]): number; declare function setTimeout(handler: (...args: any[]) => void, timeout: number): number; +declare function setTimeout(handler: any, timeout?: any, ...args: any[]): number; declare function clearImmediate(handle: number): void; declare function setImmediate(handler: (...args: any[]) => void): number; diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 3f2ba75585..b671693496 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -1,7 +1,6 @@ -// Type definitions for react-native 0.48 +// Type definitions for react-native 0.49 // Project: https://github.com/facebook/react-native // Definitions by: Eloy Durán <https://github.com/alloy> -// Fedor Nezhivoi <https://github.com/gyzerok> // HuHuanming <https://github.com/huhuanming> // Kyle Roach <https://github.com/iRoachie> // Tim Wang <https://github.com/timwangdev> @@ -366,7 +365,7 @@ interface NativeSyntheticEvent<T> { preventDefault(): void stopPropagation(): void target: NodeHandle - timeStamp: Date + timeStamp: number type: string } @@ -534,9 +533,9 @@ export interface LayoutAnimationStatic { linear: LayoutAnimationConfig spring: LayoutAnimationConfig } - easeInEaseOut: (config: LayoutAnimationConfig, onAnimationDidEnd?: () => void) => void - linear: (config: LayoutAnimationConfig, onAnimationDidEnd?: () => void) => void - spring: (config: LayoutAnimationConfig, onAnimationDidEnd?: () => void) => void + easeInEaseOut: (onAnimationDidEnd?: () => void) => void + linear: (onAnimationDidEnd?: () => void) => void + spring: (onAnimationDidEnd?: () => void) => void } type FlexAlignType = "flex-start" | "flex-end" | "center" | "stretch" | "baseline"; @@ -3257,6 +3256,8 @@ export interface ImageURISource { scale?: number, } +export type ImageRequireSource = number; + export interface ImagePropertiesIOS { /** * The text that's read by the screen reader when the user interacts with the image. @@ -3406,7 +3407,7 @@ export interface ImageProperties extends ImagePropertiesIOS, ImagePropertiesAndr * their width and height. The native side will then choose the best `uri` to display * based on the measured size of the image container. */ - source: ImageURISource | ImageURISource[] + source: ImageURISource | ImageURISource[] | ImageRequireSource /** * similarly to `source`, this property represents the resource used to render @@ -5321,8 +5322,8 @@ export interface SystraceStatic { export interface DataSourceAssetCallback { rowHasChanged?: (r1: any, r2: any) => boolean sectionHeaderHasChanged?: (h1: any, h2: any) => boolean - getRowData?: <T>(dataBlob: any, sectionID: number | string, rowID: number | string) => T - getSectionHeaderData?: <T>(dataBlob: any, sectionID: number | string) => T + getRowData?: (dataBlob: any, sectionID: number | string, rowID: number | string) => any + getSectionHeaderData?: (dataBlob: any, sectionID: number | string) => any } /** @@ -5382,7 +5383,7 @@ export interface ListViewDataSource { * handle merging of old and new data separately and then pass that into * this function as the `dataBlob`. */ - cloneWithRows<T>(dataBlob: Array<any> | { [key: string]: any }, rowIdentities?: Array<string | number>): ListViewDataSource + cloneWithRows(dataBlob: Array<any> | { [key: string]: any }, rowIdentities?: Array<string | number>): ListViewDataSource /** * This performs the same function as the `cloneWithRows` function but here @@ -5611,7 +5612,7 @@ export interface PixelRatioStatic { /** * @see https://facebook.github.io/react-native/docs/platform-specific-code.html#content */ -export type PlatformOSType = 'ios' | 'android' | 'windows' | 'web' +export type PlatformOSType = 'ios' | 'android' | 'macos' | 'windows' | 'web' interface PlatformStatic { OS: PlatformOSType @@ -5620,7 +5621,12 @@ interface PlatformStatic { /** * @see https://facebook.github.io/react-native/docs/platform-specific-code.html#content */ - select<T>( specifics: { ios?: T, android?: T} ): T; + select<T>( specifics: { [platform in PlatformOSType]?: T; } ): T; +} + +interface PlatformIOSStatic extends PlatformStatic { + isPad: boolean + isTVOS: boolean } /** @@ -5630,7 +5636,7 @@ interface PlatformStatic { interface DeviceEventEmitterStatic extends EventEmitter { sharedSubscriber: EventSubscriptionVendor new(): DeviceEventEmitterStatic; - addListener<T>( type: string, listener: ( data: T ) => void, context?: any ): EmitterSubscription; + addListener( type: string, listener: ( data: any ) => void, context?: any ): EmitterSubscription; } // Used by Dimensions below @@ -6130,6 +6136,12 @@ export interface ScrollViewPropertiesIOS { */ onScrollAnimationEnd?: () => void + /** + * When true, ScrollView allows use of pinch gestures to zoom in and out. + * The default value is true. + */ + pinchGestureEnabled?: boolean + /** * This controls how often the scroll event will be fired while scrolling (in events per seconds). * A higher number yields better accuracy for code that is tracking the scroll position, @@ -8081,6 +8093,12 @@ export namespace Animated { */ flattenOffset(): void; + /** + * Sets the offset value to the base value, and resets the base value to zero. + * The final output of the value is unchanged. + */ + extractOffset(): void; + /** * Adds an asynchronous listener to the value so you can observe updates from * animations. This is useful because there is no way to @@ -8123,9 +8141,11 @@ export namespace Animated { setOffset(offset: { x: number; y: number }): void; - flattenOffset(): void + flattenOffset(): void; - stopAnimation(callback?: (value: {x: number, y: number}) => void): void; + extractOffset(): void; + + stopAnimation(callback?: (value: {x: number, y: number}) => void): void; addListener(callback: ValueXYListenerCallback): string; @@ -8138,7 +8158,7 @@ export namespace Animated { * style={this.state.anim.getLayout()} *``` */ - getLayout(): { [key: string]: AnimatedValue }; + getLayout(): { [key: string]: AnimatedValue }; /** * Converts `{x, y}` into a useable translation transform, e.g. @@ -8367,6 +8387,7 @@ export namespace Animated { export var View: any; export var Image: any; export var Text: any; + export var ScrollView: any; } // tslint:disable-next-line:interface-name @@ -9161,6 +9182,7 @@ interface NativeModulesStatic { */ export var NativeModules: NativeModulesStatic export var Platform: PlatformStatic +export var PlatformIOS: PlatformIOSStatic export var PixelRatio: PixelRatioStatic export interface ComponentInterface<P> { @@ -9248,6 +9270,8 @@ declare global { trace(message?: any, ...optionalParams: any[]): void debug(message?: any, ...optionalParams: any[]): void table(...data: any[]): void; + disableYellowBox: boolean; + ignoredYellowBox: string[]; } var console: Console diff --git a/types/react-native/test/index.tsx b/types/react-native/test/index.tsx index 9771db9bc9..85c798bee6 100644 --- a/types/react-native/test/index.tsx +++ b/types/react-native/test/index.tsx @@ -18,6 +18,8 @@ import { AppStateIOS, BackAndroid, Button, + DataSourceAssetCallback, + DeviceEventEmitterStatic, Dimensions, InteractionManager, ListView, @@ -297,7 +299,7 @@ class ScrollerListComponentTest extends React.Component<{}, { dataSource: ListVi return <ScrollView {...props} style={[scrollViewStyle1.scrollView, scrollViewStyle2]}/> }} - renderRow={({ type, data }, _, row: number) => { + renderRow={({ type, data }, _, row) => { return <Text>Filler</Text> } } /> @@ -369,3 +371,18 @@ class MaskedViewTest extends React.Component { ) } } + +// DataSourceAssetCallback +const dataSourceAssetCallback1: DataSourceAssetCallback = { + rowHasChanged: (r1, r2) => true, + sectionHeaderHasChanged: (h1, h2) => true, + getRowData: (dataBlob, sectionID, rowID) => (sectionID as number) + (rowID as number), + getSectionHeaderData: (dataBlob, sectionID) => sectionID as string, +} + +const dataSourceAssetCallback2: DataSourceAssetCallback = {} + +// DeviceEventEmitterStatic +const deviceEventEmitterStatic: DeviceEventEmitterStatic = null; +deviceEventEmitterStatic.addListener('keyboardWillShow', (data) => true); +deviceEventEmitterStatic.addListener('keyboardWillShow', (data) => true, {}); diff --git a/types/react-onsenui/index.d.ts b/types/react-onsenui/index.d.ts index 26e323fa45..b6a6dbcbdb 100644 --- a/types/react-onsenui/index.d.ts +++ b/types/react-onsenui/index.d.ts @@ -101,7 +101,7 @@ export class BackButton extends Component<{ }, any> {} export class Navigator extends Component<{ - renderPage(route: any): JSX.Element, + renderPage(route: any, navigator: Navigator): JSX.Element, initialRouteStack?: string[], initialRoute?: any, onPrePush?(): void, diff --git a/types/react-overlays/lib/Modal.d.ts b/types/react-overlays/lib/Modal.d.ts index c89c607e76..13a397f3b5 100644 --- a/types/react-overlays/lib/Modal.d.ts +++ b/types/react-overlays/lib/Modal.d.ts @@ -10,6 +10,8 @@ declare namespace Modal { } export = Modal; interface ModalProps extends TransitionCallbacks, PortalProps { + className?: string; + /** * Set the visibility of the Modal */ @@ -122,5 +124,5 @@ interface ModalProps extends TransitionCallbacks, PortalProps { * A ModalManager instance used to track and manage the state of open * Modals. Useful when customizing how modals interact within a container */ - manager: ModalManager; + manager?: ModalManager; } diff --git a/types/react-redux/index.d.ts b/types/react-redux/index.d.ts index 4d3ae2f5c5..203ce7f791 100644 --- a/types/react-redux/index.d.ts +++ b/types/react-redux/index.d.ts @@ -6,6 +6,7 @@ // Curits Layne <https://github.com/clayne11> // Frank Tan <https://github.com/tansongyang> // Nicholas Boll <https://github.com/nicholasboll> +// Dibyo Majumdar <https://github.com/mdibyo> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 @@ -66,73 +67,80 @@ export type InferableComponentEnhancer<TInjectedProps> = * @param mergeProps * @param options */ -export declare function connect(): InferableComponentEnhancer<DispatchProp<any>>; +export interface Connect { + (): InferableComponentEnhancer<DispatchProp<any>>; -export declare function connect<TStateProps = {}, no_dispatch = {}, TOwnProps = {}>( - mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps> -): InferableComponentEnhancerWithProps<TStateProps & DispatchProp<any>, TOwnProps>; + <TStateProps = {}, no_dispatch = {}, TOwnProps = {}>( + mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps> + ): InferableComponentEnhancerWithProps<TStateProps & DispatchProp<any>, TOwnProps>; -export declare function connect<no_state = {}, TDispatchProps = {}, TOwnProps = {}>( - mapStateToProps: null | undefined, - mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps> -): InferableComponentEnhancerWithProps<TDispatchProps, TOwnProps>; + <no_state = {}, TDispatchProps = {}, TOwnProps = {}>( + mapStateToProps: null | undefined, + mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps> + ): InferableComponentEnhancerWithProps<TDispatchProps, TOwnProps>; -export declare function connect<TStateProps = {}, TDispatchProps = {}, TOwnProps = {}>( - mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>, - mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps> -): InferableComponentEnhancerWithProps<TStateProps & TDispatchProps, TOwnProps>; + <TStateProps = {}, TDispatchProps = {}, TOwnProps = {}>( + mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>, + mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps> + ): InferableComponentEnhancerWithProps<TStateProps & TDispatchProps, TOwnProps>; -export declare function connect<TStateProps = {}, no_dispatch = {}, TOwnProps = {}, TMergedProps = {}>( - mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>, - mapDispatchToProps: null | undefined, - mergeProps: MergeProps<TStateProps, undefined, TOwnProps, TMergedProps>, -): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>; + <TStateProps = {}, no_dispatch = {}, TOwnProps = {}, TMergedProps = {}>( + mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>, + mapDispatchToProps: null | undefined, + mergeProps: MergeProps<TStateProps, undefined, TOwnProps, TMergedProps>, + ): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>; -export declare function connect<no_state = {}, TDispatchProps = {}, TOwnProps = {}, TMergedProps = {}>( - mapStateToProps: null | undefined, - mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>, - mergeProps: MergeProps<undefined, TDispatchProps, TOwnProps, TMergedProps>, -): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>; + <no_state = {}, TDispatchProps = {}, TOwnProps = {}, TMergedProps = {}>( + mapStateToProps: null | undefined, + mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>, + mergeProps: MergeProps<undefined, TDispatchProps, TOwnProps, TMergedProps>, + ): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>; -export declare function connect<no_state = {}, no_dispatch = {}, TOwnProps = {}, TMergedProps = {}>( - mapStateToProps: null | undefined, - mapDispatchToProps: null | undefined, - mergeProps: MergeProps<undefined, undefined, TOwnProps, TMergedProps>, -): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>; + <no_state = {}, no_dispatch = {}, TOwnProps = {}, TMergedProps = {}>( + mapStateToProps: null | undefined, + mapDispatchToProps: null | undefined, + mergeProps: MergeProps<undefined, undefined, TOwnProps, TMergedProps>, + ): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>; -export declare function connect<TStateProps = {}, TDispatchProps = {}, TOwnProps = {}, TMergedProps = {}>( - mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>, - mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>, - mergeProps: MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps>, -): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>; + <TStateProps = {}, TDispatchProps = {}, TOwnProps = {}, TMergedProps = {}>( + mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>, + mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>, + mergeProps: MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps>, + ): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>; -export declare function connect<TStateProps = {}, no_dispatch = {}, TOwnProps = {}>( - mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>, - mapDispatchToProps: null | undefined, - mergeProps: null | undefined, - options: Options<TStateProps, TOwnProps> -): InferableComponentEnhancerWithProps<DispatchProp<any> & TStateProps, TOwnProps>; + <TStateProps = {}, no_dispatch = {}, TOwnProps = {}>( + mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>, + mapDispatchToProps: null | undefined, + mergeProps: null | undefined, + options: Options<TStateProps, TOwnProps> + ): InferableComponentEnhancerWithProps<DispatchProp<any> & TStateProps, TOwnProps>; -export declare function connect<no_state = {}, TDispatchProps = {}, TOwnProps = {}>( - mapStateToProps: null | undefined, - mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>, - mergeProps: null | undefined, - options: Options<no_state, TOwnProps> -): InferableComponentEnhancerWithProps<TDispatchProps, TOwnProps>; + <no_state = {}, TDispatchProps = {}, TOwnProps = {}>( + mapStateToProps: null | undefined, + mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>, + mergeProps: null | undefined, + options: Options<no_state, TOwnProps> + ): InferableComponentEnhancerWithProps<TDispatchProps, TOwnProps>; -export declare function connect<TStateProps = {}, TDispatchProps = {}, TOwnProps = {}>( - mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>, - mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>, - mergeProps: null | undefined, - options: Options<TStateProps, TOwnProps> -): InferableComponentEnhancerWithProps<TStateProps & TDispatchProps, TOwnProps>; + <TStateProps = {}, TDispatchProps = {}, TOwnProps = {}>( + mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>, + mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>, + mergeProps: null | undefined, + options: Options<TStateProps, TOwnProps> + ): InferableComponentEnhancerWithProps<TStateProps & TDispatchProps, TOwnProps>; -export declare function connect<TStateProps = {}, TDispatchProps = {}, TOwnProps = {}, TMergedProps = {}>( - mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>, - mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>, - mergeProps: MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps>, - options: Options<TStateProps, TOwnProps, TMergedProps> -): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>; + <TStateProps = {}, TDispatchProps = {}, TOwnProps = {}, TMergedProps = {}>( + mapStateToProps: MapStateToPropsParam<TStateProps, TOwnProps>, + mapDispatchToProps: MapDispatchToPropsParam<TDispatchProps, TOwnProps>, + mergeProps: MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps>, + options: Options<TStateProps, TOwnProps, TMergedProps> + ): InferableComponentEnhancerWithProps<TMergedProps, TOwnProps>; +} + +/** + * The connect function. See {@type Connect} for details. + */ +export declare const connect: Connect; interface MapStateToProps<TStateProps, TOwnProps> { (state: any, ownProps: TOwnProps): TStateProps; @@ -284,3 +292,12 @@ export interface ProviderProps { * Makes the Redux store available to the connect() calls in the component hierarchy below. */ export class Provider extends React.Component<ProviderProps, {}> { } + +/** + * Creates a new <Provider> which will set the Redux Store on the passed key of the context. You probably only need this + * if you are in the inadvisable position of having multiple stores. You will also need to pass the same storeKey to the + * options argument of connect. + * + * @param storeKey The key of the context on which to set the store. + */ +export declare function createProvider(storeKey: string): typeof Provider; diff --git a/types/react-redux/react-redux-tests.tsx b/types/react-redux/react-redux-tests.tsx index c52d40d0aa..e726bf104f 100644 --- a/types/react-redux/react-redux-tests.tsx +++ b/types/react-redux/react-redux-tests.tsx @@ -1,8 +1,8 @@ import { Component, ReactElement } from 'react'; import * as React from 'react'; import * as ReactDOM from 'react-dom'; -import { Store, Dispatch, ActionCreator, bindActionCreators, ActionCreatorsMapObject } from 'redux'; -import { connect, Provider, DispatchProp, MapStateToProps } from 'react-redux'; +import { Store, Dispatch, ActionCreator, createStore, bindActionCreators, ActionCreatorsMapObject } from 'redux'; +import { Connect, connect, createProvider, Provider, DispatchProp, MapStateToProps, Options } from 'react-redux'; import objectAssign = require('object-assign'); // @@ -14,10 +14,10 @@ import objectAssign = require('object-assign'); // output of `connect` to make sure the signature is what is expected namespace Empty { - interface OwnProps { foo: string, dispatch: Dispatch<any> } + interface OwnProps { foo: string, dispatch: Dispatch<any> } class TestComponent extends Component<OwnProps> {} - + const Test = connect()(TestComponent) const verify = <Test foo='bar' /> @@ -90,7 +90,7 @@ namespace MapDispatch { )(TestComponent) const verifyNull = <TestNull foo='bar' /> - + const TestUndefined = connect( undefined, mapDispatchToProps, @@ -140,7 +140,7 @@ namespace MapDispatchFactory { )(TestComponent) const verifyNull = <TestNull foo='bar' /> - + const TestUndefined = connect( undefined, mapDispatchToPropsFactory, @@ -176,11 +176,11 @@ namespace MapStateFactoryAndDispatch { interface OwnProps { foo: string } interface StateProps { bar: number } interface DispatchProps { onClick: () => void } - + const mapStateToPropsFactory = () => () =>({ bar: 1 }) - + const mapDispatchToProps = () => ({ onClick: () => {} }) @@ -199,11 +199,11 @@ namespace MapStateFactoryAndDispatchFactory { interface OwnProps { foo: string } interface StateProps { bar: number } interface DispatchProps { onClick: () => void } - + const mapStateToPropsFactory = () => () =>({ bar: 1 }) - + const mapDispatchToPropsFactory = () => () => ({ onClick: () => {} }) @@ -381,6 +381,7 @@ interface DispatchProps { declare var actionCreators: () => { action: Function; } +declare var dispatchActionCreators: () => DispatchProps; declare var addTodo: () => { type: string; }; declare var todoActionCreators: { [type: string]: (...args: any[]) => any; }; declare var counterActionCreators: { [type: string]: (...args: any[]) => any; }; @@ -521,7 +522,7 @@ function mergeProps(stateProps: TodoState, dispatchProps: DispatchProps, ownProp }); } -connect(mapStateToProps2, actionCreators, mergeProps)(MyRootComponent); +connect(mapStateToProps2, dispatchActionCreators, mergeProps)(MyRootComponent); //https://github.com/DefinitelyTyped/DefinitelyTyped/issues/14622#issuecomment-279820358 @@ -850,3 +851,47 @@ namespace TestWrappedComponent { // `Connected` does not require explicit `name` prop const TestConnected = (props: any) => <Connected />; } + +namespace TestCreateProvider { + const STORE_KEY = 'myStore'; + + const MyStoreProvider = createProvider(STORE_KEY); + + const myStoreConnect: Connect = function( + mapStateToProps?: any, + mapDispatchToProps?: any, + mergeProps?: any, + options: Options = {}, + ) { + options.storeKey = STORE_KEY; + return connect( + mapStateToProps, + mapDispatchToProps, + mergeProps, + options, + ); + }; + + interface State { a: number }; + const store = createStore<State>(() => ({ a: 1 })); + const myStore = createStore<State>(() => ({ a: 2 })); + + interface AProps { a: number }; + const A = (props: AProps) => (<h1>A is {props.a}</h1>); + const A1 = connect<AProps>(state => state)(A); + const A2 = myStoreConnect<AProps>(state => state)(A); + + const Combined = () => ( + <Provider store={store}> + <MyStoreProvider store={myStore}> + <A1 /> + <A2 /> + </MyStoreProvider> + </Provider> + ); + + // This renders: + // <h1>A is 1</h1> + // <h1>A is 2</h1> + ReactDOM.render(<Combined />, document.body); +} diff --git a/types/react-router-config/index.d.ts b/types/react-router-config/index.d.ts index 2040a8a721..54b48089fa 100644 --- a/types/react-router-config/index.d.ts +++ b/types/react-router-config/index.d.ts @@ -28,4 +28,4 @@ export interface MatchedRoute<T> { export function matchRoutes<T>(routes: RouteConfig[], pathname: string): Array<MatchedRoute<T>>; -export function renderRoutes(routes: RouteConfig[] | undefined): JSX.Element; +export function renderRoutes(routes: RouteConfig[] | undefined, extraProps?: any): JSX.Element; diff --git a/types/react-router-dom/index.d.ts b/types/react-router-dom/index.d.ts index a70613fa81..c9555834a9 100644 --- a/types/react-router-dom/index.d.ts +++ b/types/react-router-dom/index.d.ts @@ -5,8 +5,11 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -declare module 'react-router-dom' { - import { +import { match } from "react-router"; +import * as React from 'react'; +import * as H from 'history'; + +export { Prompt, MemoryRouter, Redirect, @@ -20,61 +23,34 @@ declare module 'react-router-dom' { matchPath, withRouter, RouterChildContext - } from 'react-router'; - import * as React from 'react'; - import * as H from 'history'; +} from 'react-router'; - interface BrowserRouterProps { +export interface BrowserRouterProps { basename?: string; getUserConfirmation?(): void; forceRefresh?: boolean; keyLength?: number; - } - class BrowserRouter extends React.Component<BrowserRouterProps> {} +} +export class BrowserRouter extends React.Component<BrowserRouterProps> {} - interface HashRouterProps { +export interface HashRouterProps { basename?: string; getUserConfirmation?(): void; hashType?: 'slash' | 'noslash' | 'hashbang'; - } - class HashRouter extends React.Component<HashRouterProps> {} +} +export class HashRouter extends React.Component<HashRouterProps> {} - interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> { +export interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> { to: H.LocationDescriptor; replace?: boolean; - } - class Link extends React.Component<LinkProps> {} +} +export class Link extends React.Component<LinkProps> {} - interface NavLinkProps extends LinkProps { +export interface NavLinkProps extends LinkProps { activeClassName?: string; activeStyle?: React.CSSProperties; exact?: boolean; strict?: boolean; isActive?<P>(match: match<P>, location: H.Location): boolean; - } - class NavLink extends React.Component<NavLinkProps> {} - - export { - BrowserRouter, - BrowserRouterProps, // TypeScript specific, not from React Router itself - HashRouter, - HashRouterProps, // TypeScript specific, not from React Router itself - LinkProps, // TypeScript specific, not from React Router itself - NavLinkProps, // TypeScript specific, not from React Router itself - Link, - NavLink, - Prompt, - MemoryRouter, - Redirect, - RouteComponentProps, // TypeScript specific, not from React Router itself - RouteProps, // TypeScript specific, not from React Router itself - Route, - Router, - StaticRouter, - Switch, - match, // TypeScript specific, not from React Router itself - matchPath, - withRouter, - RouterChildContext - }; } +export class NavLink extends React.Component<NavLinkProps> {} diff --git a/types/react-router/v2/lib/PropTypes.d.ts b/types/react-router/v2/lib/PropTypes.d.ts index bbd6431070..c82c9e59e8 100644 --- a/types/react-router/v2/lib/PropTypes.d.ts +++ b/types/react-router/v2/lib/PropTypes.d.ts @@ -8,12 +8,12 @@ export const components: React.Requireable<any>; export const route: React.Requireable<any>; export const routes: React.Requireable<any>; -export default { - falsy, - history, - location, - component, - components, - route +declare const defaultExport: { + falsy: typeof falsy, + history: typeof history, + location: typeof location, + component: typeof component, + components: typeof components, + route: typeof route, }; - +export default defaultExport; diff --git a/types/react-select/index.d.ts b/types/react-select/index.d.ts index ff29e1992f..e5defc9ede 100644 --- a/types/react-select/index.d.ts +++ b/types/react-select/index.d.ts @@ -14,522 +14,517 @@ import * as React from 'react'; -export = ReactSelectClass; - -declare namespace ReactSelectClass { - // Other components - class Creatable<TValue = OptionValues> extends React.Component<ReactCreatableSelectProps<TValue>> { } - class Async<TValue = OptionValues> extends React.Component<ReactAsyncSelectProps<TValue>> { } - class AsyncCreatable<TValue = OptionValues> extends React.Component<ReactAsyncSelectProps<TValue> & ReactCreatableSelectProps<TValue>> { } - - type HandlerRendererResult = JSX.Element | null | false; - - // Handlers - type FocusOptionHandler<TValue = OptionValues> = (option: Option<TValue>) => void; - type SelectValueHandler<TValue = OptionValues> = (option: Option<TValue>) => void; - type ArrowRendererHandler = (props: ArrowRendererProps) => HandlerRendererResult; - type FilterOptionHandler<TValue = OptionValues> = (option: Option<TValue>, filter: string) => boolean; - type FilterOptionsHandler<TValue = OptionValues> = (options: Options<TValue>, filter: string, currentValues: Options<TValue>) => Options<TValue>; - type InputRendererHandler = (props: { [key: string]: any }) => HandlerRendererResult; - type MenuRendererHandler<TValue = OptionValues> = (props: MenuRendererProps<TValue>) => HandlerRendererResult; - type OnCloseHandler = () => void; - type OnInputChangeHandler = (inputValue: string) => void; - type OnInputKeyDownHandler = React.KeyboardEventHandler<HTMLDivElement | HTMLInputElement>; - type OnMenuScrollToBottomHandler = () => void; - type OnOpenHandler = () => void; - type OnFocusHandler = React.FocusEventHandler<HTMLDivElement | HTMLInputElement>; - type OnBlurHandler = React.FocusEventHandler<HTMLDivElement | HTMLInputElement>; - type OptionRendererHandler<TValue = OptionValues> = (option: Option<TValue>) => HandlerRendererResult; - type ValueRendererHandler<TValue = OptionValues> = (option: Option<TValue>) => HandlerRendererResult; - type OnValueClickHandler<TValue = OptionValues> = (option: Option<TValue>, event: React.MouseEvent<HTMLAnchorElement>) => void; - type IsOptionUniqueHandler<TValue = OptionValues> = (arg: { option: Option<TValue>, options: Options<TValue>, labelKey: string, valueKey: string }) => boolean; - type IsValidNewOptionHandler = (arg: { label: string }) => boolean; - type NewOptionCreatorHandler<TValue = OptionValues> = (arg: { label: string, labelKey: string, valueKey: string }) => Option<TValue>; - type PromptTextCreatorHandler = (filterText: string) => string; - type ShouldKeyDownEventCreateNewOptionHandler = (arg: { keyCode: number }) => boolean; - - type OnChangeSingleHandler<TValue = OptionValues> = OnChangeHandler<TValue, Option<TValue>>; - type OnChangeMultipleHandler<TValue = OptionValues> = OnChangeHandler<TValue, Options<TValue>>; - type OnChangeHandler<TValue = OptionValues, TOption = Option<TValue> | Options<TValue>> = (newValue: TOption | null) => void; - type OnNewOptionClickHandler<TValue = OptionValues> = (option: Option<TValue>) => void; - - type LoadOptionsHandler<TValue = OptionValues> = LoadOptionsAsyncHandler<TValue> | LoadOptionsLegacyHandler<TValue>; - type LoadOptionsAsyncHandler<TValue = OptionValues> = (input: string) => Promise<AutocompleteResult<TValue>>; - type LoadOptionsLegacyHandler<TValue = OptionValues> = (input: string, callback: (err: any, result: AutocompleteResult<TValue>) => void) => void; - - interface AutocompleteResult<TValue = OptionValues> { - /** The search-results to be displayed */ - options: Options<TValue>; - /** - * Should be set to true, if and only if a longer query with the same prefix - * would return a subset of the results - * If set to true, more specific queries will not be sent to the server. - */ - complete: boolean; - } - - type Options<TValue = OptionValues> = Array<Option<TValue>>; - - interface Option<TValue = OptionValues> { - /** Text for rendering */ - label?: string; - /** Value for searching */ - value?: TValue; - /** - * Allow this option to be cleared - * @default true - */ - clearableValue?: boolean; - /** - * Do not allow this option to be selected - * @default false - */ - disabled?: boolean; - /** - * In the event that a custom menuRenderer is provided, Option should be able - * to accept arbitrary key-value pairs. See react-virtualized-select. - */ - [property: string]: any; - } - - type OptionValues = string | number | boolean; - - interface MenuRendererProps<TValue = OptionValues> { - /** - * The currently focused option; should be visible in the menu by default. - * default {} - */ - focusedOption: Option<TValue>; - - /** - * Callback to focus a new option; receives the option as a parameter. - */ - focusOption: FocusOptionHandler<TValue>; - - /** - * Option labels are accessible with this string key. - */ - labelKey: string; - - /** - * Ordered array of options to render. - */ - options: Options<TValue>; - - /** - * Callback to select a new option; receives the option as a parameter. - */ - selectValue: SelectValueHandler<TValue>; - - /** - * Array of currently selected options. - */ - valueArray: Options<TValue>; - } - - interface ArrowRendererProps { - /** - * Arrow mouse down event handler. - */ - onMouseDown: React.MouseEventHandler<any>; - } - - interface ReactSelectProps<TValue = OptionValues> extends React.Props<ReactSelectClass<TValue>> { - /** - * text to display when `allowCreate` is true. - * @default 'Add "{label}"?' - */ - addLabelText?: string; - /** - * renders a custom drop-down arrow to be shown in the right-hand side of the select. - * @default undefined - */ - arrowRenderer?: ArrowRendererHandler; - /** - * blurs the input element after a selection has been made. Handy for lowering the keyboard on mobile devices. - * @default false - */ - autoBlur?: boolean; - /** - * autofocus the component on mount - * @default false - */ - autofocus?: boolean; - /** - * If enabled, the input will expand as the length of its value increases - */ - autosize?: boolean; - /** - * whether pressing backspace removes the last item when there is no input value - * @default true - */ - backspaceRemoves?: boolean; - /** - * Message to use for screenreaders to press backspace to remove the current item - * {label} is replaced with the item label - * @default "Press backspace to remove..." - */ - backspaceToRemoveMessage?: string; - /** - * CSS className for the outer element - */ - className?: string; - /** - * title for the "clear" control when `multi` is true - * @default "Clear all" - */ - clearAllText?: string; - /** - * title for the "clear" control - * @default "Clear value" - */ - clearValueText?: string; - /** - * whether it is possible to reset value. if enabled, an X button will appear at the right side. - * @default true - */ - clearable?: boolean; - /** - * whether backspace removes an item if there is no text input - * @default true - */ - deleteRemoves?: boolean; - /** - * delimiter to use to join multiple values - * @default "," - */ - delimiter?: string; - /** - * whether the Select is disabled or not - * @default false - */ - disabled?: boolean; - /** - * whether escape clears the value when the menu is closed - * @default true - */ - escapeClearsValue?: boolean; - /** - * method to filter a single option - */ - filterOption?: FilterOptionHandler<TValue>; - /** - * method to filter the options array - */ - filterOptions?: FilterOptionsHandler<TValue>; - /** - * whether to strip diacritics when filtering - * @default true - */ - ignoreAccents?: boolean; - /** - * whether to perform case-insensitive filtering - * @default true - */ - ignoreCase?: boolean; - /** - * custom attributes for the Input (in the Select-control) e.g: {'data-foo': 'bar'} - * @default {} - */ - inputProps?: { [key: string]: any }; - /** - * renders a custom input - */ - inputRenderer?: InputRendererHandler; - /** - * allows for synchronization of component id's on server and client. - * @see https://github.com/JedWatson/react-select/pull/1105 - */ - instanceId?: string; - /** - * whether the Select is loading externally or not (such as options being loaded). - * if true, a loading spinner will be shown at the right side. - * @default false - */ - isLoading?: boolean; - /** - * (legacy mode) joins multiple values into a single form field with the delimiter - * @default false - */ - joinValues?: boolean; - /** - * the option property to use for the label - * @default "label" - */ - labelKey?: string; - /** - * (any, start) match the start or entire string when filtering - * @default "any" - */ - matchPos?: string; - /** - * (any, label, value) which option property to filter on - * @default "any" - */ - matchProp?: string; - /** - * buffer of px between the base of the dropdown and the viewport to shift if menu doesnt fit in viewport - * @default 0 - */ - menuBuffer?: number; - /** - * optional style to apply to the menu container - */ - menuContainerStyle?: React.CSSProperties; - /** - * renders a custom menu with options - */ - menuRenderer?: MenuRendererHandler<TValue>; - /** - * optional style to apply to the menu - */ - menuStyle?: React.CSSProperties; - /** - * multi-value input - * @default false - */ - multi?: boolean; - /** - * field name, for hidden `<input>` tag - */ - name?: string; - /** - * placeholder displayed when there are no matching search results or a falsy value to hide it - * @default "No results found" - */ - noResultsText?: string | JSX.Element; - /** - * onBlur handler: function (event) {} - */ - onBlur?: OnBlurHandler; - /** - * whether to clear input on blur or not - * @default true - */ - onBlurResetsInput?: boolean; - /** - * onChange handler: function (newValue) {} - */ - onChange?: OnChangeHandler<TValue>; - /** - * fires when the menu is closed - */ - onClose?: OnCloseHandler; - /** - * onFocus handler: function (event) {} - */ - onFocus?: OnFocusHandler; - /** - * onInputChange handler: function (inputValue) {} - */ - onInputChange?: OnInputChangeHandler; - /** - * onInputKeyDown handler: function (keyboardEvent) {} - */ - onInputKeyDown?: OnInputKeyDownHandler; - /** - * fires when the menu is scrolled to the bottom; can be used to paginate options - */ - onMenuScrollToBottom?: OnMenuScrollToBottomHandler; - /** - * fires when the menu is opened - */ - onOpen?: OnOpenHandler; - /** - * boolean to enable opening dropdown when focused - * @default false - */ - openAfterFocus?: boolean; - /** - * open the options menu when the input gets focus (requires searchable = true) - * @default false - */ - openOnFocus?: boolean; - /** - * className to add to each option component - */ - optionClassName?: string; - /** - * option component to render in dropdown - */ - optionComponent?: React.ComponentType; - /** - * function which returns a custom way to render the options in the menu - */ - optionRenderer?: OptionRendererHandler<TValue>; - /** - * array of Select options - * @default false - */ - options?: Options<TValue>; - /** - * field placeholder, displayed when there's no value - * @default "Select..." - */ - placeholder?: string | JSX.Element; - /** - * applies HTML5 required attribute when needed - * @default false - */ - required?: boolean; - /** - * value to use when you clear the control - */ - resetValue?: any; - /** - * whether the viewport will shift to display the entire menu when engaged - * @default true - */ - scrollMenuIntoView?: boolean; - /** - * whether to enable searching feature or not - * @default true; - */ - searchable?: boolean; - /** - * whether to select the currently focused value when the [tab] key is pressed - */ - tabSelectsValue?: boolean; - /** - * initial field value - */ - value?: Option<TValue> | Options<TValue> | string | string[] | number | number[] | boolean; - /** - * the option property to use for the value - * @default "value" - */ - valueKey?: string; - /** - * function which returns a custom way to render the value selected - * @default false - */ - valueRenderer?: ValueRendererHandler<TValue>; - /** - * optional style to apply to the control - */ - style?: React.CSSProperties; - - /** - * optional tab index of the control - */ - tabIndex?: string; - - /** - * value component to render - */ - valueComponent?: React.ComponentType; - - /** - * optional style to apply to the component wrapper - */ - wrapperStyle?: React.CSSProperties; - - /** - * onClick handler for value labels: function (value, event) {} - */ - onValueClick?: OnValueClickHandler<TValue>; - - /** - * pass the value to onChange as a simple value (legacy pre 1.0 mode), defaults to false - */ - simpleValue?: boolean; - } - - interface ReactCreatableSelectProps<TValue = OptionValues> extends ReactSelectProps<TValue> { - /** - * Searches for any matching option within the set of options. This function prevents - * duplicate options from being created. - */ - isOptionUnique?: IsOptionUniqueHandler<TValue>; - - /** - * Determines if the current input text represents a valid option. - */ - isValidNewOption?: IsValidNewOptionHandler; - - /** - * factory to create new options - */ - newOptionCreator?: NewOptionCreatorHandler<TValue>; - - /** - * Creates prompt/placeholder for option text. - */ - promptTextCreator?: PromptTextCreatorHandler; - - /** - * Decides if a keyDown event (eg its 'keyCode') should result in the creation of a new option. - */ - shouldKeyDownEventCreateNewOption?: ShouldKeyDownEventCreateNewOptionHandler; - - /** - * new option click handler: function (option) {} - */ - onNewOptionClick?: OnNewOptionClickHandler<TValue>; - } - - interface ReactAsyncSelectProps<TValue = OptionValues> extends ReactSelectProps<TValue> { - /** - * Whether to auto-load the default async options set. - */ - autoload?: boolean; - - /** - * object to use to cache results; can be null to disable cache - */ - cache?: { [key: string]: any } | boolean; - - /** - * whether to strip diacritics when filtering (shared with Select) - */ - ignoreAccents?: boolean; - - /** - * whether to perform case-insensitive filtering (shared with Select) - */ - ignoreCase?: boolean; - - /** - * overrides the isLoading state when set to true - */ - isLoading?: boolean; - - /** - * function to call to load options asynchronously - */ - loadOptions: LoadOptionsHandler<TValue>; - - /** - * replaces the placeholder while options are loading - */ - loadingPlaceholder?: string; - - /** - * the minimum number of characters that trigger loadOptions - */ - minimumInput?: number; - - /** - * placeholder displayed when there are no matching search results (shared with Select) - */ - noResultsText?: string | JSX.Element; - /** - * field placeholder; displayed when there's no value (shared with Select) - */ - placeholder?: string; - - /** - * label to prompt for search input - */ - searchPromptText?: string; - - /** - * message to display while options are loading - */ - searchingText?: string; - } -} - -declare class ReactSelectClass<TValue = ReactSelectClass.OptionValues> extends React.Component<ReactSelectClass.ReactSelectProps<TValue>> { +export default class ReactSelectClass<TValue = OptionValues> extends React.Component<ReactSelectProps<TValue>> { focus(): void; } +// Other components +export class Creatable<TValue = OptionValues> extends React.Component<ReactCreatableSelectProps<TValue>> { } +export class Async<TValue = OptionValues> extends React.Component<ReactAsyncSelectProps<TValue>> { } +export class AsyncCreatable<TValue = OptionValues> extends React.Component<ReactAsyncSelectProps<TValue> & ReactCreatableSelectProps<TValue>> { } + +export type HandlerRendererResult = JSX.Element | null | false; + +// Handlers +export type FocusOptionHandler<TValue = OptionValues> = (option: Option<TValue>) => void; +export type SelectValueHandler<TValue = OptionValues> = (option: Option<TValue>) => void; +export type ArrowRendererHandler = (props: ArrowRendererProps) => HandlerRendererResult; +export type FilterOptionHandler<TValue = OptionValues> = (option: Option<TValue>, filter: string) => boolean; +export type FilterOptionsHandler<TValue = OptionValues> = (options: Options<TValue>, filter: string, currentValues: Options<TValue>) => Options<TValue>; +export type InputRendererHandler = (props: { [key: string]: any }) => HandlerRendererResult; +export type MenuRendererHandler<TValue = OptionValues> = (props: MenuRendererProps<TValue>) => HandlerRendererResult; +export type OnCloseHandler = () => void; +export type OnInputChangeHandler = (inputValue: string) => void; +export type OnInputKeyDownHandler = React.KeyboardEventHandler<HTMLDivElement | HTMLInputElement>; +export type OnMenuScrollToBottomHandler = () => void; +export type OnOpenHandler = () => void; +export type OnFocusHandler = React.FocusEventHandler<HTMLDivElement | HTMLInputElement>; +export type OnBlurHandler = React.FocusEventHandler<HTMLDivElement | HTMLInputElement>; +export type OptionRendererHandler<TValue = OptionValues> = (option: Option<TValue>) => HandlerRendererResult; +export type ValueRendererHandler<TValue = OptionValues> = (option: Option<TValue>) => HandlerRendererResult; +export type OnValueClickHandler<TValue = OptionValues> = (option: Option<TValue>, event: React.MouseEvent<HTMLAnchorElement>) => void; +export type IsOptionUniqueHandler<TValue = OptionValues> = (arg: { option: Option<TValue>, options: Options<TValue>, labelKey: string, valueKey: string }) => boolean; +export type IsValidNewOptionHandler = (arg: { label: string }) => boolean; +export type NewOptionCreatorHandler<TValue = OptionValues> = (arg: { label: string, labelKey: string, valueKey: string }) => Option<TValue>; +export type PromptTextCreatorHandler = (filterText: string) => string; +export type ShouldKeyDownEventCreateNewOptionHandler = (arg: { keyCode: number }) => boolean; + +export type OnChangeSingleHandler<TValue = OptionValues> = OnChangeHandler<TValue, Option<TValue>>; +export type OnChangeMultipleHandler<TValue = OptionValues> = OnChangeHandler<TValue, Options<TValue>>; +export type OnChangeHandler<TValue = OptionValues, TOption = Option<TValue> | Options<TValue>> = (newValue: TOption | null) => void; +export type OnNewOptionClickHandler<TValue = OptionValues> = (option: Option<TValue>) => void; + +export type LoadOptionsHandler<TValue = OptionValues> = LoadOptionsAsyncHandler<TValue> | LoadOptionsLegacyHandler<TValue>; +export type LoadOptionsAsyncHandler<TValue = OptionValues> = (input: string) => Promise<AutocompleteResult<TValue>>; +export type LoadOptionsLegacyHandler<TValue = OptionValues> = (input: string, callback: (err: any, result: AutocompleteResult<TValue>) => void) => void; + +export interface AutocompleteResult<TValue = OptionValues> { + /** The search-results to be displayed */ + options: Options<TValue>; + /** + * Should be set to true, if and only if a longer query with the same prefix + * would return a subset of the results + * If set to true, more specific queries will not be sent to the server. + */ + complete: boolean; +} + +export type Options<TValue = OptionValues> = Array<Option<TValue>>; + +export interface Option<TValue = OptionValues> { + /** Text for rendering */ + label?: string; + /** Value for searching */ + value?: TValue; + /** + * Allow this option to be cleared + * @default true + */ + clearableValue?: boolean; + /** + * Do not allow this option to be selected + * @default false + */ + disabled?: boolean; + /** + * In the event that a custom menuRenderer is provided, Option should be able + * to accept arbitrary key-value pairs. See react-virtualized-select. + */ + [property: string]: any; +} + +export type OptionValues = string | number | boolean; + +export interface MenuRendererProps<TValue = OptionValues> { + /** + * The currently focused option; should be visible in the menu by default. + * default {} + */ + focusedOption: Option<TValue>; + + /** + * Callback to focus a new option; receives the option as a parameter. + */ + focusOption: FocusOptionHandler<TValue>; + + /** + * Option labels are accessible with this string key. + */ + labelKey: string; + + /** + * Ordered array of options to render. + */ + options: Options<TValue>; + + /** + * Callback to select a new option; receives the option as a parameter. + */ + selectValue: SelectValueHandler<TValue>; + + /** + * Array of currently selected options. + */ + valueArray: Options<TValue>; +} + +export interface ArrowRendererProps { + /** + * Arrow mouse down event handler. + */ + onMouseDown: React.MouseEventHandler<any>; +} + +export interface ReactSelectProps<TValue = OptionValues> extends React.Props<ReactSelectClass<TValue>> { + /** + * text to display when `allowCreate` is true. + * @default 'Add "{label}"?' + */ + addLabelText?: string; + /** + * renders a custom drop-down arrow to be shown in the right-hand side of the select. + * @default undefined + */ + arrowRenderer?: ArrowRendererHandler; + /** + * blurs the input element after a selection has been made. Handy for lowering the keyboard on mobile devices. + * @default false + */ + autoBlur?: boolean; + /** + * autofocus the component on mount + * @default false + */ + autofocus?: boolean; + /** + * If enabled, the input will expand as the length of its value increases + */ + autosize?: boolean; + /** + * whether pressing backspace removes the last item when there is no input value + * @default true + */ + backspaceRemoves?: boolean; + /** + * Message to use for screenreaders to press backspace to remove the current item + * {label} is replaced with the item label + * @default "Press backspace to remove..." + */ + backspaceToRemoveMessage?: string; + /** + * CSS className for the outer element + */ + className?: string; + /** + * title for the "clear" control when `multi` is true + * @default "Clear all" + */ + clearAllText?: string; + /** + * title for the "clear" control + * @default "Clear value" + */ + clearValueText?: string; + /** + * whether it is possible to reset value. if enabled, an X button will appear at the right side. + * @default true + */ + clearable?: boolean; + /** + * whether backspace removes an item if there is no text input + * @default true + */ + deleteRemoves?: boolean; + /** + * delimiter to use to join multiple values + * @default "," + */ + delimiter?: string; + /** + * whether the Select is disabled or not + * @default false + */ + disabled?: boolean; + /** + * whether escape clears the value when the menu is closed + * @default true + */ + escapeClearsValue?: boolean; + /** + * method to filter a single option + */ + filterOption?: FilterOptionHandler<TValue>; + /** + * method to filter the options array + */ + filterOptions?: FilterOptionsHandler<TValue>; + /** + * whether to strip diacritics when filtering + * @default true + */ + ignoreAccents?: boolean; + /** + * whether to perform case-insensitive filtering + * @default true + */ + ignoreCase?: boolean; + /** + * custom attributes for the Input (in the Select-control) e.g: {'data-foo': 'bar'} + * @default {} + */ + inputProps?: { [key: string]: any }; + /** + * renders a custom input + */ + inputRenderer?: InputRendererHandler; + /** + * allows for synchronization of component id's on server and client. + * @see https://github.com/JedWatson/react-select/pull/1105 + */ + instanceId?: string; + /** + * whether the Select is loading externally or not (such as options being loaded). + * if true, a loading spinner will be shown at the right side. + * @default false + */ + isLoading?: boolean; + /** + * (legacy mode) joins multiple values into a single form field with the delimiter + * @default false + */ + joinValues?: boolean; + /** + * the option property to use for the label + * @default "label" + */ + labelKey?: string; + /** + * (any, start) match the start or entire string when filtering + * @default "any" + */ + matchPos?: string; + /** + * (any, label, value) which option property to filter on + * @default "any" + */ + matchProp?: string; + /** + * buffer of px between the base of the dropdown and the viewport to shift if menu doesnt fit in viewport + * @default 0 + */ + menuBuffer?: number; + /** + * optional style to apply to the menu container + */ + menuContainerStyle?: React.CSSProperties; + /** + * renders a custom menu with options + */ + menuRenderer?: MenuRendererHandler<TValue>; + /** + * optional style to apply to the menu + */ + menuStyle?: React.CSSProperties; + /** + * multi-value input + * @default false + */ + multi?: boolean; + /** + * field name, for hidden `<input>` tag + */ + name?: string; + /** + * placeholder displayed when there are no matching search results or a falsy value to hide it + * @default "No results found" + */ + noResultsText?: string | JSX.Element; + /** + * onBlur handler: function (event) {} + */ + onBlur?: OnBlurHandler; + /** + * whether to clear input on blur or not + * @default true + */ + onBlurResetsInput?: boolean; + /** + * onChange handler: function (newValue) {} + */ + onChange?: OnChangeHandler<TValue>; + /** + * fires when the menu is closed + */ + onClose?: OnCloseHandler; + /** + * onFocus handler: function (event) {} + */ + onFocus?: OnFocusHandler; + /** + * onInputChange handler: function (inputValue) {} + */ + onInputChange?: OnInputChangeHandler; + /** + * onInputKeyDown handler: function (keyboardEvent) {} + */ + onInputKeyDown?: OnInputKeyDownHandler; + /** + * fires when the menu is scrolled to the bottom; can be used to paginate options + */ + onMenuScrollToBottom?: OnMenuScrollToBottomHandler; + /** + * fires when the menu is opened + */ + onOpen?: OnOpenHandler; + /** + * boolean to enable opening dropdown when focused + * @default false + */ + openAfterFocus?: boolean; + /** + * open the options menu when the input gets focus (requires searchable = true) + * @default false + */ + openOnFocus?: boolean; + /** + * className to add to each option component + */ + optionClassName?: string; + /** + * option component to render in dropdown + */ + optionComponent?: React.ComponentType; + /** + * function which returns a custom way to render the options in the menu + */ + optionRenderer?: OptionRendererHandler<TValue>; + /** + * array of Select options + * @default false + */ + options?: Options<TValue>; + /** + * field placeholder, displayed when there's no value + * @default "Select..." + */ + placeholder?: string | JSX.Element; + /** + * applies HTML5 required attribute when needed + * @default false + */ + required?: boolean; + /** + * value to use when you clear the control + */ + resetValue?: any; + /** + * whether the viewport will shift to display the entire menu when engaged + * @default true + */ + scrollMenuIntoView?: boolean; + /** + * whether to enable searching feature or not + * @default true; + */ + searchable?: boolean; + /** + * whether to select the currently focused value when the [tab] key is pressed + */ + tabSelectsValue?: boolean; + /** + * initial field value + */ + value?: Option<TValue> | Options<TValue> | string | string[] | number | number[] | boolean; + /** + * the option property to use for the value + * @default "value" + */ + valueKey?: string; + /** + * function which returns a custom way to render the value selected + * @default false + */ + valueRenderer?: ValueRendererHandler<TValue>; + /** + * optional style to apply to the control + */ + style?: React.CSSProperties; + + /** + * optional tab index of the control + */ + tabIndex?: string; + + /** + * value component to render + */ + valueComponent?: React.ComponentType; + + /** + * optional style to apply to the component wrapper + */ + wrapperStyle?: React.CSSProperties; + + /** + * onClick handler for value labels: function (value, event) {} + */ + onValueClick?: OnValueClickHandler<TValue>; + + /** + * pass the value to onChange as a simple value (legacy pre 1.0 mode), defaults to false + */ + simpleValue?: boolean; +} + +export interface ReactCreatableSelectProps<TValue = OptionValues> extends ReactSelectProps<TValue> { + /** + * Searches for any matching option within the set of options. This function prevents + * duplicate options from being created. + */ + isOptionUnique?: IsOptionUniqueHandler<TValue>; + + /** + * Determines if the current input text represents a valid option. + */ + isValidNewOption?: IsValidNewOptionHandler; + + /** + * factory to create new options + */ + newOptionCreator?: NewOptionCreatorHandler<TValue>; + + /** + * Creates prompt/placeholder for option text. + */ + promptTextCreator?: PromptTextCreatorHandler; + + /** + * Decides if a keyDown event (eg its 'keyCode') should result in the creation of a new option. + */ + shouldKeyDownEventCreateNewOption?: ShouldKeyDownEventCreateNewOptionHandler; + + /** + * new option click handler: function (option) {} + */ + onNewOptionClick?: OnNewOptionClickHandler<TValue>; +} + +export interface ReactAsyncSelectProps<TValue = OptionValues> extends ReactSelectProps<TValue> { + /** + * Whether to auto-load the default async options set. + */ + autoload?: boolean; + + /** + * object to use to cache results; can be null to disable cache + */ + cache?: { [key: string]: any } | boolean; + + /** + * whether to strip diacritics when filtering (shared with Select) + */ + ignoreAccents?: boolean; + + /** + * whether to perform case-insensitive filtering (shared with Select) + */ + ignoreCase?: boolean; + + /** + * overrides the isLoading state when set to true + */ + isLoading?: boolean; + + /** + * function to call to load options asynchronously + */ + loadOptions: LoadOptionsHandler<TValue>; + + /** + * replaces the placeholder while options are loading + */ + loadingPlaceholder?: string; + + /** + * the minimum number of characters that trigger loadOptions + */ + minimumInput?: number; + + /** + * placeholder displayed when there are no matching search results (shared with Select) + */ + noResultsText?: string | JSX.Element; + /** + * field placeholder; displayed when there's no value (shared with Select) + */ + placeholder?: string; + + /** + * label to prompt for search input + */ + searchPromptText?: string; + + /** + * message to display while options are loading + */ + searchingText?: string; +} diff --git a/types/react-select/react-select-tests.tsx b/types/react-select/react-select-tests.tsx index 15527339b1..000042c1d0 100644 --- a/types/react-select/react-select-tests.tsx +++ b/types/react-select/react-select-tests.tsx @@ -1,11 +1,10 @@ import * as React from "react"; -import * as ReactSelect from "react-select"; -const { Creatable } = ReactSelect; +import ReactSelect, * as ReactSelectModule from "react-select"; declare function describe(desc: string, f: () => void): void; declare function it(desc: string, f: () => void): void; -const EXAMPLE_OPTIONS: ReactSelect.Options = [ +const EXAMPLE_OPTIONS: ReactSelectModule.Options = [ { value: "one", label: "One" }, { value: "two", label: "Two" } ]; @@ -21,38 +20,38 @@ interface CustomValueType { * If https://github.com/Microsoft/TypeScript/issues/6395 ever lands, this * workaround may become redundant. */ -type CustomValueReactSelect = new (props: ReactSelect.ReactSelectProps<CustomValueType>) => ReactSelect<CustomValueType>; +type CustomValueReactSelect = new (props: ReactSelectModule.ReactSelectProps<CustomValueType>) => ReactSelect<CustomValueType>; const CustomValueReactSelect = ReactSelect as CustomValueReactSelect; -const EXAMPLE_CUSTOM_OPTIONS: ReactSelect.Options<CustomValueType> = [ +const EXAMPLE_CUSTOM_OPTIONS: ReactSelectModule.Options<CustomValueType> = [ { value: { prop1: "OneProp1", prop2: 1 }, label: "One" }, { value: { prop1: "TwoProp2", prop2: 2 }, label: "Two" } ]; -const EXAMPLE_CUSTOM_VALUE: ReactSelect.Option<CustomValueType> = { - value: { prop1: "ThreeProp1", prop2: 3 }, label: "Three" +const EXAMPLE_CUSTOM_VALUE: ReactSelectModule.Option<CustomValueType> = { + value: { prop1: "ThreeProp1", prop2: 3 }, label: "Three" }; describe("react-select", () => { it("options", () => { - const optionsString: ReactSelect.Options<string> = [ + const optionsString: ReactSelectModule.Options<string> = [ { value: "one", label: "One" }, { value: "two", label: "Two", clearableValue: false } ]; - const optionsNumber: ReactSelect.Options<number> = [ + const optionsNumber: ReactSelectModule.Options<number> = [ { value: 1, label: "One" }, { value: 2, label: "Two", clearableValue: false } ]; - const optionsMixed: ReactSelect.Options = [ + const optionsMixed: ReactSelectModule.Options = [ { value: "one", label: "One" }, { value: 2, label: "Two", clearableValue: false } ]; }); it("async options", () => { - const getAsyncLegacyOptions: ReactSelect.LoadOptionsLegacyHandler = (input, callback) => { + const getAsyncLegacyOptions: ReactSelectModule.LoadOptionsLegacyHandler = (input, callback) => { setTimeout(() => { callback(null, { options: [ @@ -64,12 +63,12 @@ describe("react-select", () => { }; const dummyRequest = async () => { - return new Promise<ReactSelect.Options>(resolve => { + return new Promise<ReactSelectModule.Options>(resolve => { resolve(EXAMPLE_OPTIONS); }); }; - const getAsyncOptions: ReactSelect.LoadOptionsAsyncHandler = async input => { + const getAsyncOptions: ReactSelectModule.LoadOptionsAsyncHandler = async input => { const result = await dummyRequest(); return { @@ -80,7 +79,7 @@ describe("react-select", () => { }); it("Custom value async options", () => { - const getAsyncLegacyOptions: ReactSelect.LoadOptionsLegacyHandler<CustomValueType> = (input, callback) => { + const getAsyncLegacyOptions: ReactSelectModule.LoadOptionsLegacyHandler<CustomValueType> = (input, callback) => { setTimeout(() => { callback(null, { options: [ @@ -92,12 +91,12 @@ describe("react-select", () => { }; const dummyRequest = async () => { - return new Promise<ReactSelect.Options<CustomValueType>>(resolve => { + return new Promise<ReactSelectModule.Options<CustomValueType>>(resolve => { resolve(EXAMPLE_CUSTOM_OPTIONS); }); }; - const getAsyncOptions: ReactSelect.LoadOptionsAsyncHandler<CustomValueType> = async input => { + const getAsyncOptions: ReactSelectModule.LoadOptionsAsyncHandler<CustomValueType> = async input => { const result = await dummyRequest(); return { @@ -109,7 +108,7 @@ describe("react-select", () => { it("creatable", () => { function Component(props: {}): JSX.Element { - return <Creatable name="creatable" options={EXAMPLE_OPTIONS} />; + return <ReactSelectModule.Creatable name="creatable" options={EXAMPLE_OPTIONS} />; } }); @@ -128,14 +127,14 @@ describe("react-select", () => { }); it("Overriding default key-down behavior with onInputKeyDown", () => { - const keyDownHandler: ReactSelect.OnInputKeyDownHandler = (event => { + const keyDownHandler: ReactSelectModule.OnInputKeyDownHandler = (event => { const divEvent = event as React.KeyboardEvent<HTMLDivElement>; const inputEvent = event as React.KeyboardEvent<HTMLInputElement>; }); }); it("Updating input values with onInputChange", () => { - const cleanInput: ReactSelect.OnInputChangeHandler = inputValue => { + const cleanInput: ReactSelectModule.OnInputChangeHandler = inputValue => { return inputValue.replace(/[^0-9]/g, ""); }; }); @@ -172,7 +171,7 @@ describe("Focus events", () => { describe("Examples", () => { it("Simple example", () => { class Component extends React.Component { - private onSelectChange: ReactSelect.OnChangeSingleHandler<string> = (option) => { + private onSelectChange: ReactSelectModule.OnChangeSingleHandler<string> = (option) => { const optionValue: string = option.value; } @@ -188,7 +187,7 @@ describe("Examples", () => { it("onValueClick", () => { class Component extends React.Component { - private onValueClick: ReactSelect.OnValueClickHandler<number> = (option) => { + private onValueClick: ReactSelectModule.OnValueClickHandler<number> = (option) => { const optionValue: number = option.value; } @@ -209,7 +208,7 @@ describe("Examples", () => { it("Custom value onValueClick", () => { class Component extends React.Component { - private onValueClick: ReactSelect.OnValueClickHandler<CustomValueType> = (option) => { + private onValueClick: ReactSelectModule.OnValueClickHandler<CustomValueType> = (option) => { const optionValue: CustomValueType = option.value; } @@ -225,7 +224,7 @@ describe("Examples", () => { it("Custom value onChange", () => { class Component extends React.Component { - private onSelectChange: ReactSelect.OnChangeSingleHandler<CustomValueType> = (option) => { + private onSelectChange: ReactSelectModule.OnChangeSingleHandler<CustomValueType> = (option) => { const optionValue: CustomValueType = option.value; } @@ -241,11 +240,11 @@ describe("Examples", () => { it("Menu renderer example", () => { class Component extends React.Component { - private onSelectChange: ReactSelect.OnChangeSingleHandler<string> = option => { + private onSelectChange: ReactSelectModule.OnChangeSingleHandler<string> = option => { const optionValue: string = option.value; } - private menuRenderer: ReactSelect.MenuRendererHandler = props => { + private menuRenderer: ReactSelectModule.MenuRendererHandler = props => { const options = props.options.map(option => { return <div className="option">{option.label}</div>; }); @@ -266,12 +265,12 @@ describe("Examples", () => { it("Menu renderer with custom value type example", () => { class Component extends React.Component { - private menuRenderer: ReactSelect.MenuRendererHandler<CustomValueType> = props => { + private menuRenderer: ReactSelectModule.MenuRendererHandler<CustomValueType> = props => { const options = props.options.map(option => { return ( <div className="option" data-value1={option.value.prop1} - data-value2={option.value.prop2} - onClick={() => props.selectValue(option)}> + data-value2={option.value.prop2} + onClick={() => props.selectValue(option)}> {option.label} </div>); }); @@ -292,11 +291,11 @@ describe("Examples", () => { it("Input render example", () => { class Component extends React.Component { - private onSelectChange: ReactSelect.OnChangeSingleHandler<string> = option => { + private onSelectChange: ReactSelectModule.OnChangeSingleHandler<string> = option => { const optionValue: string = option.value; } - private inputRenderer: ReactSelect.InputRendererHandler = props => { + private inputRenderer: ReactSelectModule.InputRendererHandler = props => { return <input {...props} />; } @@ -332,8 +331,8 @@ describe("Examples", () => { }); it("Option render with custom value option", () => { - const optionRenderer = (option: ReactSelect.Option<CustomValueType>): ReactSelect.HandlerRendererResult => - null; + const optionRenderer = (option: ReactSelectModule.Option<CustomValueType>): ReactSelectModule.HandlerRendererResult => + null; <CustomValueReactSelect optionRenderer={optionRenderer} @@ -341,8 +340,8 @@ describe("Examples", () => { }); it("Value render with custom value option", () => { - const valueRenderer = (option: ReactSelect.Option<CustomValueType>): ReactSelect.HandlerRendererResult => - null; + const valueRenderer = (option: ReactSelectModule.Option<CustomValueType>): ReactSelectModule.HandlerRendererResult => + null; <CustomValueReactSelect valueRenderer={valueRenderer} diff --git a/types/react-sortable-tree/index.d.ts b/types/react-sortable-tree/index.d.ts index a6a04f4968..dfed930e2f 100644 --- a/types/react-sortable-tree/index.d.ts +++ b/types/react-sortable-tree/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for react-sortable-tree 0.1 // Project: https://fritz-c.github.io/react-sortable-tree // Definitions by: Wouter Hardeman <https://github.com/wouterhardeman> +// Jovica Zoric <https://github.com/jzoric> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -111,6 +112,7 @@ export interface ReactSortableTreeProps { scaffoldBlockPxWidth?: number; isVirtualized?: boolean; nodeContentRenderer?: NodeRenderer; + dndType?: string; } declare const SortableTree: React.ComponentClass<ReactSortableTreeProps>; diff --git a/types/react-sortable-tree/react-sortable-tree-tests.tsx b/types/react-sortable-tree/react-sortable-tree-tests.tsx index 1a5e2dfcd0..106415744b 100644 --- a/types/react-sortable-tree/react-sortable-tree-tests.tsx +++ b/types/react-sortable-tree/react-sortable-tree-tests.tsx @@ -54,6 +54,7 @@ class Test extends React.Component { scaffoldBlockPxWidth={44} isVirtualized={true} nodeContentRenderer={nodeRenderer} + dndType="testNodeType" /> <SortableTreeWithoutDndContext treeData={[{title: "Title", subtitle: "Subtitle", children: []}]} diff --git a/types/react-split-pane/index.d.ts b/types/react-split-pane/index.d.ts index 536c1a044d..db5f27010e 100644 --- a/types/react-split-pane/index.d.ts +++ b/types/react-split-pane/index.d.ts @@ -41,6 +41,8 @@ declare namespace ReactSplitPane { pane1Style?: React.CSSProperties; /* Styling to be applied to the second pane, with precedence over paneStyle */ pane2Style?: React.CSSProperties; + /* Class name to be applied to resizer bar */ + resizerClassName?: string; /* Styling to be applied to the resizer bar */ resizerStyle?: React.CSSProperties; } diff --git a/types/react-stripe-elements/index.d.ts b/types/react-stripe-elements/index.d.ts new file mode 100644 index 0000000000..4322dfab89 --- /dev/null +++ b/types/react-stripe-elements/index.d.ts @@ -0,0 +1,81 @@ +// Type definitions for react-stripe-elements 1.0 +// Project: https://github.com/stripe/react-stripe-elements#readme +// Definitions by: dan-j <https://github.com/dan-j> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// <reference types="stripe-v3" /> +import * as React from 'react'; + +export namespace ReactStripeElements { + import ElementChangeResponse = stripe.elements.ElementChangeResponse; + import ElementsOptions = stripe.elements.ElementsOptions; + import TokenOptions = stripe.TokenOptions; + import TokenResponse = stripe.TokenResponse; + + /** + * There's a bug in @types/stripe which defines the property as + * `declined_code` (with a 'd') but it's in fact `decline_code` + */ + type PatchedTokenResponse = TokenResponse & { + error?: { decline_code?: string }; + }; + + interface StripeProviderProps { + apiKey: string; + } + + interface StripeProps { + // I'm not sure what the definition for this is + createSource(): void; + + createToken(options?: TokenOptions): Promise<PatchedTokenResponse>; + } + + interface InjectOptions { + withRef?: boolean; + } + + interface InjectedStripeProps { + stripe: StripeProps; + } + + interface ElementProps extends ElementsOptions { + className?: string; + + elementRef?(): void; + + onChange?(event: ElementChangeResponse): void; + + onBlur?(event: ElementChangeResponse): void; + + onFocus?(event: ElementChangeResponse): void; + + onReady?(): void; + } +} + +export class StripeProvider extends React.Component<ReactStripeElements.StripeProviderProps> { +} + +export class Elements extends React.Component { +} + +export function injectStripe<P extends object>( + WrappedComponent: React.ComponentType<P & ReactStripeElements.InjectedStripeProps>, + componentOptions?: ReactStripeElements.InjectOptions): React.ComponentType<P>; + +export class CardElement extends React.Component<ReactStripeElements.ElementProps> { +} + +export class CardNumberElement extends React.Component<ReactStripeElements.ElementProps> { +} + +export class CardExpiryElement extends React.Component<ReactStripeElements.ElementProps> { +} + +export class CardCVCElement extends React.Component<ReactStripeElements.ElementProps> { +} + +export class PostalCodeElement extends React.Component<ReactStripeElements.ElementProps> { +} diff --git a/types/react-stripe-elements/react-stripe-elements-tests.tsx b/types/react-stripe-elements/react-stripe-elements-tests.tsx new file mode 100644 index 0000000000..715f3c1f83 --- /dev/null +++ b/types/react-stripe-elements/react-stripe-elements-tests.tsx @@ -0,0 +1,156 @@ +import * as React from 'react'; +import { + StripeProvider, + CardElement, + Elements, + injectStripe, + CardNumberElement, + CardExpiryElement, + CardCVCElement, + PostalCodeElement, + ReactStripeElements, +} from 'react-stripe-elements'; +import InjectedStripeProps = ReactStripeElements.InjectedStripeProps; + +import ElementChangeResponse = stripe.elements.ElementChangeResponse; +import ElementsOptions = stripe.elements.ElementsOptions; +import PatchedTokenResponse = ReactStripeElements.PatchedTokenResponse; + +const cardElementProps: ElementsOptions = { + iconStyle: 'solid', + style: { + base: { + color: '#32325d', + lineHeight: '24px', + fontFamily: 'Roboto, "Helvetica Neue", sans-serif', + fontSmoothing: 'antialiased', + fontSize: '16px', + '::placeholder': { + color: '#aab7c4', + }, + }, + invalid: { + color: '#B71C1C', + iconColor: '#B71C1C', + }, + }, + hidePostalCode: true, + classes: { + base: 'field', + complete: 'complete', + empty: 'is-empty', + focus: 'is-focused', + invalid: 'is-invalid', + webkitAutofill: 'webkit-autofill', + }, + hideIcon: true, +}; + +const ElementsWithPropsTest: React.SFC = () => ( + <div> + <CardElement + {...cardElementProps} + onChange={(event: ElementChangeResponse) => void 0} + onBlur={(event: ElementChangeResponse) => void 0} + onReady={() => void 0} + onFocus={(event: ElementChangeResponse) => void 0} + /> + <CardNumberElement + {...cardElementProps} + onChange={(event: ElementChangeResponse) => void 0} + onBlur={(event: ElementChangeResponse) => void 0} + onReady={() => void 0} + onFocus={(event: ElementChangeResponse) => void 0} + /> + <CardExpiryElement + {...cardElementProps} + onChange={(event: ElementChangeResponse) => void 0} + onBlur={(event: ElementChangeResponse) => void 0} + onReady={() => void 0} + onFocus={(event: ElementChangeResponse) => void 0} + /> + <CardCVCElement + {...cardElementProps} + onChange={(event: ElementChangeResponse) => void 0} + onBlur={(event: ElementChangeResponse) => void 0} + onReady={() => void 0} + onFocus={(event: ElementChangeResponse) => void 0} + /> + <PostalCodeElement + {...cardElementProps} + onChange={(event: ElementChangeResponse) => void 0} + onBlur={(event: ElementChangeResponse) => void 0} + onReady={() => void 0} + onFocus={(event: ElementChangeResponse) => void 0} + /> + </div> +); + +interface ComponentProps { + tokenCallback(token: PatchedTokenResponse): void; +} + +class WrappedComponent extends React.Component<ComponentProps & InjectedStripeProps> { + onSubmit = () => { + this.props.stripe.createToken({ + name: '', + address_line1: '', + address_line2: '', + address_city: '', + address_state: '', + address_zip: '', + address_country: '', + currency: '', + }).then((response: PatchedTokenResponse) => this.props.tokenCallback(response)); + } + + isFormValid = () => { + // use onChange callbacks from *Element components to detect if form is valid for submission + return false; + } + + render() { + return ( + <form onSubmit={this.onSubmit}> + <ElementsWithPropsTest /> + <button disabled={!this.isFormValid()} /> + </form> + ); + } +} + +const ExportedComponent: React.ComponentType<ComponentProps> = injectStripe(WrappedComponent); + +class MainComponent extends React.Component { + onTokenReceived = (token: PatchedTokenResponse) => void 0; + + render() { + return <ExportedComponent tokenCallback={this.onTokenReceived} />; + } +} + +class TestHOCs extends React.Component { + render() { + return ( + <StripeProvider apiKey=""> + <Elements> + <MainComponent /> + </Elements> + </StripeProvider> + ); + } +} + +/** + * Just an extra test to check default props + * @constructor + */ +const ElementsDefaultPropsTest: React.SFC = () => ( + <div> + <CardElement /> + <CardNumberElement /> + <CardExpiryElement /> + <CardCVCElement /> + <PostalCodeElement /> + </div> +); diff --git a/types/react-stripe-elements/tsconfig.json b/types/react-stripe-elements/tsconfig.json new file mode 100644 index 0000000000..9aac1000b3 --- /dev/null +++ b/types/react-stripe-elements/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "jsx": "react", + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-stripe-elements-tests.tsx" + ] +} diff --git a/types/react-stripe-elements/tslint.json b/types/react-stripe-elements/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-stripe-elements/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/react-table/index.d.ts b/types/react-table/index.d.ts new file mode 100644 index 0000000000..b62315459e --- /dev/null +++ b/types/react-table/index.d.ts @@ -0,0 +1,509 @@ +// Type definitions for react-table 6.5 +// Project: https://github.com/react-tools/react-table +// Definitions by: Roy Xue <https://github.com/royxue> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 +import * as React from 'react'; + +export type ReactTableFunction = () => void; +export type AccessorFunction = (row: object) => any; +export type Accessor = string | string[] | object | AccessorFunction; +export type Aggregator = (values: any, rows: any) => any; +export type TableCellRenderer = ((data: any, column: any) => React.ReactNode) | React.ReactNode; +export type FilterRender = (params: { column: Column, filter: any, onFilterChange: ReactTableFunction, key?: string }) => React.ReactElement<any>; + +export type ComponentPropsGetter0 = (finalState: any, rowInfo: undefined, column: undefined, instance?: any) => object | undefined; +export type ComponentPropsGetterR = (finalState: any, rowInfo?: RowInfo, column?: undefined, instance?: any) => object | undefined; +export type ComponentPropsGetterC = (finalState: any, rowInfo?: undefined, column?: Column, instance?: any) => object | undefined; +export type ComponentPropsGetterRC = (finalState: any, rowInfo?: RowInfo, column?: Column, instance?: any) => object | undefined; + +export type FilterFunction = (filter: any, row: any, column: any) => boolean; +export type SubComponentFunction = (rowInfo: RowInfo) => React.ReactNode; +export type PageChangeFunction = (page: number) => void; +export type PageSizeChangeFunction = (newPageSize: number, newPage: number) => void; +export type SortedChangeFunction = (column: any, additive: boolean) => void; +export type FilteredChangeFunction = (column: any, value: any, pivotColumn: any) => void; +export type ExpandedChangeFunction = (column: any, event: any, isTouch: boolean) => void; + +/** NOTE: to many configuration ways (only true values are confusing) */ +export interface SortingRule { + id: string; + sort?: 'desc' | 'asc'; + asc?: true; + desc?: true; +} + +export interface TableProps extends + Partial<TextProps>, + Partial<ComponentDecoratorProps>, + Partial<ControlledStateCallbackProps>, + Partial<PivotingProps>, + Partial<ControlledStateOverrideProps>, + Partial<ComponentProps> { + /** Default: [] */ + data: any[]; + + /** Default: false */ + loading: boolean; + + /** Default: false */ + showPagination: boolean; + + /** Default: false */ + manual: boolean; + + /** Default: false */ + showPageSizeOptions: boolean; + + /** Default: [5, 10, 20, 25, 50, 100] */ + pageSizeOptions: number[]; + + /** Default: 20 */ + defaultPageSize: number; + + /** + * Default: undefined + * Otherwise take value from 'pageSize' if defined + * @TODO: add minRows to react-table defaultProps even if undefined + */ + minRows: number; + + /** Default: true */ + showPageJump: boolean; + + /** Default: true */ + collapseOnSortingChange: boolean; + + /** Default: true */ + collapseOnPageChange: boolean; + + /** Default: true */ + collapseOnDataChange: boolean; + + /** Default: false */ + freezeWhenExpanded: boolean; + + /** Default: [] */ + defaultSorting: SortingRule[]; + + /** Default: false */ + showFilters: boolean; + + /** Default: [] */ + defaultFiltering: any[]; + + /** Default: ... */ + defaultFilterMethod: FilterFunction; + + /** Default: true */ + resizable: boolean; + + /** Default: false */ + filterable: boolean; + + /** Default: [] */ + defaultResizing: any[]; + + /** On change. */ + onChange: ReactTableFunction; + + /** + * Default: string + * Adding a -striped className to ReactTable will slightly color odd numbered rows for legibility + * Adding a -highlight className to ReactTable will highlight any row as you hover over it + */ + className: string; + + /** Default: {} */ + style: object; + + /** Global Column Defaults */ + column: Partial<GlobalColumn>; + + /** Array of all Available Columns */ + columns?: Column[]; + + /** Expander defaults. */ + expanderDefaults: Partial<ExpanderDefaults>; + + /** Privot defaults. */ + pivotDefaults: Partial<PivotDefaults>; +} + +export interface ControlledStateOverrideProps { + /** Default: undefined */ + page: number; + + /** Default: undefined */ + pageSize: number; + + /** Default: undefined */ + sorting: number; + + /** Sub component */ + SubComponent: SubComponentFunction; +} + +export interface PivotingProps { + /** Default: undefined */ + pivotBy: string[]; + + /** Default: 200 */ + pivotColumnWidth: number; + + /** Default: _pivotVal */ + pivotValKey: string; + + /** Default: _pivotID */ + pivotIDKey: string; + + /** Default: _subRows */ + subRowsKey: string; + + /** + * Default: {} - Pivoting State Overrides (see Fully Controlled Component section) + * @example { 4: true } + * @example { 5: { 9: true }, 10: true } + */ + expandedRows: ExpandedRows; + + /** Default: ??? - Pivoting State Callbacks */ + onExpandRow: ReactTableFunction; +} + +export interface ExpandedRows { + [idx: number]: boolean | ExpandedRows; +} + +export interface ControlledStateCallbackProps { + onPageChange: PageChangeFunction; + onPageSizeChange: PageSizeChangeFunction; + onSortedChange: SortedChangeFunction; + onFilteredChange: FilteredChangeFunction; + onExpandedChange: ExpandedChangeFunction; +} + +export interface ComponentDecoratorProps { + getProps: ComponentPropsGetterRC | ComponentPropsGetterC | ComponentPropsGetter0; + getTableProps: ComponentPropsGetter0; + getTheadGroupProps: ComponentPropsGetter0; + getTheadGroupTrProps: ComponentPropsGetter0; + getTheadGroupThProps: ComponentPropsGetterC; + getTheadProps: ComponentPropsGetter0; + getTheadTrProps: ComponentPropsGetter0; + getTheadThProps: ComponentPropsGetterC; + getTheadFilterProps: ComponentPropsGetter0; + getTheadFilterTrProps: ComponentPropsGetter0; + getTheadFilterThProps: ComponentPropsGetterC; + getTbodyProps: ComponentPropsGetter0; + getTrGroupProps: ComponentPropsGetterR | ComponentPropsGetter0; + getTrProps: ComponentPropsGetterR | ComponentPropsGetter0; + + /** + * @TODO not exists in react-table but in the docs + */ + // getThProps: ComponentPropsGetter + getTdProps: ComponentPropsGetterRC | ComponentPropsGetterR; + getTfootProps: ComponentPropsGetter0; + getTfootTrProps: ComponentPropsGetter0; + + /** + * @TODO not exists in react-table but in the docs + */ + // getTfootThProps: ComponentPropsGetter + getPaginationProps: ComponentPropsGetter0; + getLoadingProps: ComponentPropsGetter0; + getNoDataProps: ComponentPropsGetter0; + getResizerProps: ComponentPropsGetter0; +} + +export interface ComponentProps { + TableComponent: React.ReactType; + TheadComponent: React.ReactType; + TbodyComponent: React.ReactType; + TrGroupComponent: React.ReactType; + TrComponent: React.ReactType; + ThComponent: React.ReactType; + TdComponent: React.ReactType; + TfootComponent: React.ReactType; + ExpanderComponent: React.ReactType; + PaginationComponent: React.ReactType; + PreviousComponent: React.ReactType; + NextComponent: React.ReactType; + LoadingComponent: React.ReactType; + NoDataComponent: React.ReactType; + ResizerComponent: React.ReactType; +} + +export interface TextProps { + /** Default: 'Previous' */ + previousText: string; + + /** Default: 'Next' */ + nextText: string; + + /** Default: 'Loading...' */ + loadingText: string; + + /** Default: 'No rows found' */ + noDataText: string; + + /** Default: 'Page' */ + pageText: string; + + /** Default: 'of' */ + ofText: string; + + /** Default: 'rows' */ + rowsText: string; +} + +export interface GlobalColumn extends + Column.Basics, + Column.CellProps, + Column.FilterProps, + Column.FooterProps, + Column.HeaderProps { +} + +export namespace Column { + /** Basic column props */ + interface Basics { + /** Default: true */ + sortable: boolean; + + /** Default: true */ + show: boolean; + + /** Default: 100 */ + minWidth: number; + } + + /** Configuration of a columns cell section */ + interface CellProps { + /** + * Default: undefined + * A function that returns a primitive, or JSX / React Component + * + * @example 'Cell Value' + * @example ({data, column}) => <div>Cell Value</div>, + */ + render: TableCellRenderer; + + /** + * Set the classname of the `td` element of the column + * @default string + */ + className: string; + + /** + * Set the style of the `td` element of the column + * @default {} + */ + style: object; + + /** + * @default () => ({}) + */ + getProps: ReactTableFunction; + } + + /** Configuration of a columns header section */ + interface HeaderProps { + /** + * Default: undefined + * A function that returns a primitive, or JSX / React Component + * + * @example 'Header Name' + * @example ({data, column}) => <div>Header Name</div>, + */ + header: TableCellRenderer; + + /** + * Set the classname of the `th` element of the column + * @default string + */ + headerClassName: string; + + /** + * Default: {} + * Set the style of the `th` element of the column + */ + headerStyle: object; + + /** + * Default: (state, rowInfo, column, instance) => ({}) + * A function that returns props to decorate the `th` element of the column + */ + getHeaderProps: ReactTableFunction; + } + + /** Configuration of a columns footer section */ + interface FooterProps { + /** + * Default: undefined + * A function that returns a primitive, or JSX / React Component + * + * @example 'Footer Name' + * @example ({data, column}) => <div>Footer Name</div>, + */ + footer: TableCellRenderer; + + /** + * Default: string + * Set the classname of the `td` element of the column's footer + */ + footerClassName: string; + + /** + * Default: {} + * Set the style of the `td` element of the column's footer + */ + footerStyle: object; + + /** + * Default: (state, rowInfo, column, instance) => ({}) + * A function that returns props to decorate the `th` element of the column + */ + getFooterProps: ReactTableFunction; + } + + /** Filtering related column props */ + interface FilterProps { + /** Default: undefined */ + filterMethod: ReactTableFunction; + + /** Default: false */ + hideFilter: boolean; + + /** Default: ... */ + filterRender: FilterRender; + } +} + +export interface ExpanderDefaults { + /** Default: false */ + sortable: boolean; + + /** Default: 35 */ + width: number; + + /** Default: true */ + hideFilter: boolean; + + /** Will be overriden in methods.js to display ExpanderComponent */ + render: TableCellRenderer; +} + +export interface PivotDefaults { + /** Will be overriden in methods.js to display ExpanderComponent */ + render: TableCellRenderer; +} + +export interface Column extends + Partial<Column.Basics>, + Partial<Column.CellProps>, + Partial<Column.FilterProps>, + Partial<Column.FooterProps>, + Partial<Column.HeaderProps> { + /** + * Property name as string or Accessor + * @example: 'myProperty' + * @example ["a.b", "c"] + * @example ["a", "b", "c"] + * @example {"a": {"b": {"c": $}}} + * @example (row) => row.propertyName + */ + accessor?: Accessor; + + /** + * Conditional - A unique ID is required if the accessor is not a string or if you would like to override the column name used in server-side calls + * @example 'myProperty' + */ + id?: string; + + /** + * No description + * @example (values, rows) => _.round(_.mean(values)) + * @example (values, rows) => _.sum(values) + */ + aggregate?: Aggregator; + + /** + * Default: undefined - A hardcoded width for the column. This overrides both min and max width options + */ + width?: number; + + /** + * Default: undefined - A maximum width for this column. + * @default undefined + */ + maxWidth?: number; + + /** + * Turns this column into a special column for specifying expander and pivot column options. + * If this option is true and there is NOT a pivot column, the `expanderDefaults` options will be applied on top of the column options. + * If this option is true and there IS a pivot column, the `pivotDefaults` options will be applied on top of the column options. + * Adding a column with the `expander` option set will allow you to rearrange expander and pivot column orderings in the table. + * It will also let you specify rendering of the header (and header group if this special column is placed in the `columns` option of another column) and the rendering of the expander itself. + */ + expander?: boolean; + + /** Header Groups only */ + columns?: any[]; +} + +export interface ColumnRenderProps { + /** Sorted data. */ + data: any[]; + + /** The column. */ + column: Column; +} + +export interface RowRenderProps extends Partial<RowInfo> { + /** Whenever the current row is expanded */ + isExpanded?: boolean; + + /** The current cell value */ + value?: any; +} + +export interface RowInfo { + /** Original row from your data */ + row: any; + + /** The post-accessed values from the original row */ + rowValues: any; + + /** The index of the row */ + index: number; + + /** The index of the row relative to the current page */ + viewIndex: number; + + /** The nesting depth (zero-indexed) */ + level: number; + + /** The nesting path of the row */ + nestingPath: number[]; + + /** A boolean stating if the row is an aggregation row */ + aggregated: boolean; + + /** An array of any expandable sub-rows contained in this row */ + subRows: any[]; +} + +export interface FinalState extends TableProps { + startRow: number; + endRow: number; + pageRows: number; + padRows: number; + hasColumnFooter: boolean; + canPrevious: boolean; + canNext: boolean; + rowMinWidth: number; +} + +export class ReactTable extends React.Component<Partial<TableProps>> {} diff --git a/types/react-table/react-table-tests.tsx b/types/react-table/react-table-tests.tsx new file mode 100644 index 0000000000..3069785b6e --- /dev/null +++ b/types/react-table/react-table-tests.tsx @@ -0,0 +1,57 @@ +import * as React from 'react'; +import * as ReactDOM from 'react-dom'; + +// Import React Table +import { ReactTable } from "react-table"; +import "react-table/react-table.css"; + +const columns = [ + { + Header: "Name", + columns: [ + {Header: "First Name", accessor: "firstName"}, + {Header: "Last Name", id: "lastName"} + ] + }, + { + Header: "Info", + columns: [ + {Header: "Age", accessor: "age"}, + {Header: "Status", accessor: "status"} + ] + }, + { + Header: 'Stats', + columns: [ + {Header: "Visits", accessor: "visits"} + ] + } +]; + +const Component = (props: {}) => { + const data = [ + {firstName: "plastic", lastName: "leather", age: 1, visits: 87, progress: 53}, + {firstName: "eggs", lastName: "quartz", age: 13, visits: 78, progress: 82}, + {firstName: "wash", lastName: "wrench", age: 29, visits: 75, progress: 49}, + {firstName: "introduction", lastName: "impression", age: 2, visits: 35, progress: 51}, + {firstName: "steel", lastName: "difference", age: 9, visits: 64, progress: 94}, + {firstName: "snakes", lastName: "corn", age: 17, visits: 55, progress: 47}, + {firstName: "ocean", lastName: "definition", age: 26, visits: 17, progress: 22}, + {firstName: "drawing", lastName: "fifth", age: 15, visits: 84, progress: 12}, + {firstName: "silver", lastName: "riddle", age: 15, visits: 59, progress: 24}, + {firstName: "surprise", lastName: "zinc", age: 23, visits: 7, progress: 48}, + {firstName: "riddle", lastName: "information", age: 2, visits: 63, progress: 3} + ]; + return ( + <div> + <ReactTable + data={data} + columns={columns} + defaultPageSize={10} + /> + <br /> + </div> + ); +}; + +ReactDOM.render(<Component />, document.getElementById("root")); diff --git a/types/react-table/tsconfig.json b/types/react-table/tsconfig.json new file mode 100644 index 0000000000..d137af14a2 --- /dev/null +++ b/types/react-table/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "jsx": "react", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-table-tests.tsx" + ] +} diff --git a/types/react-table/tslint.json b/types/react-table/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-table/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/react-tracking/index.d.ts b/types/react-tracking/index.d.ts new file mode 100644 index 0000000000..b94e830559 --- /dev/null +++ b/types/react-tracking/index.d.ts @@ -0,0 +1,72 @@ +// Type definitions for react-tracking 5.0 +// Project: https://github.com/NYTimes/react-tracking +// Definitions by: Eloy Durán <https://github.com/alloy> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import * as React from "react"; + +export interface TrackingProp { + trackEvent({}): any; + + /** + * This method returns all of the contextual tracking data up until this point in the component hierarchy. + */ + getTrackingData(): {}; +} + +type Falsy = false | null | undefined | ""; + +interface Options<T> { + /** + * By default, data tracking objects are pushed to `window.dataLayer[]`. This is a good default if you use Google + * Tag Manager. You can override this by passing in a dispatch function as a second parameter to the tracking + * decorator `{ dispatch: fn() }` on some top-level component high up in your app (typically some root-level + * component that wraps your entire app). + */ + dispatch?(data: T): any; + + /** + * To dispatch tracking data when a component mounts, you can pass in `{ dispatchOnMount: true }` as the second + * parameter to `@track()`. This is useful for dispatching tracking data on "Page" components. + * + * If you pass in a function, the function will be called with all of the tracking data from the app's context when + * the component mounts. The return value of this function will be dispatched in `componentDidMount()`. The object + * returned from this function call will be merged with the context data and then dispatched. A use case for this + * would be that you want to provide extra tracking data without adding it to the context. + */ + dispatchOnMount?: boolean | ((contextData: T) => T); + + /** + * When there's a need to implicitly dispatch an event with some data for every component, you can define an + * `options.process` function. This function should be declared once, at some top-level component. It will get + * called with each component's tracking data as the only argument. The returned object from this function will be + * merged with all the tracking context data and dispatched in `componentDidMount()`. If a falsy value is returned + * (`false`, `null`, `undefined`, ...), nothing will be dispatched. + * + * A common use case for this is to dispatch a `pageview` event for every component in the application that has a + * `page` property on its `trackingData`. + */ + process?(ownTrackingData: T): T | Falsy; +} + +export type TrackingInfo<T, P, S> = T | ((props: P, state: S) => T); + +// Duplicated from ES6 lib to remove the `void` typing, otherwise `track` can’t be used as a HOC function that passes +// through a JSX component that be used without casting. +type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction; +type MethodDecorator = <T>(target: object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>; +type Decorator = ClassDecorator & MethodDecorator; + +/** + * This is the type of the `track` function. It’s declared as an interface so that consumers can extend the typing and + * specify defaults, such as a global analytics schema for the tracking-info. + * + * For examples of such extensions see: https://github.com/artsy/reaction/blob/master/src/utils/track.ts + */ +export interface Track<T = any, P = any, S = any> { + <K extends keyof T>(trackingInfo?: TrackingInfo<Pick<T, K>, P, S>, options?: Options<Partial<T>>): Decorator; +} + +export const track: Track; +export default track; diff --git a/types/react-tracking/test/react-tracking-with-types-tests.tsx b/types/react-tracking/test/react-tracking-with-types-tests.tsx new file mode 100644 index 0000000000..76c9ccb5b5 --- /dev/null +++ b/types/react-tracking/test/react-tracking-with-types-tests.tsx @@ -0,0 +1,67 @@ +import * as React from 'react'; +import { Track, track as _track, TrackingProp } from 'react-tracking'; + +function customEventReporter(data: { page?: string }) {} + +interface Props { + someProp: string; + tracking?: TrackingProp; +} + +interface State { + isClicked: boolean; +} + +interface TrackingData { + page: string; + event: string; +} + +const track: Track<TrackingData, Props, State> = _track; + +@track({ page: "ClassPage" }, { + dispatch: customEventReporter, + dispatchOnMount: contextData => ({ event: "pageDataReady" }), + process: ownTrackingData => ownTrackingData.page ? { event: 'pageview' } : null, +}) +class ClassPage extends React.Component<Props, State> { + @track({ event: "Clicked" }) + handleClick() { + // ... other stuff + } + + @track((props, state) => ({ event: `got ${props.someProp} and clicked ${state.isClicked}` })) + render() { + return ( + <button onClick={this.handleClick}> + Click Me! + </button> + ); + } +} + +const FunctionPage: React.SFC<Props> = (props) => { + return ( + <div onClick={() => { + props.tracking && props.tracking.trackEvent({ action: 'click' }); + }} + /> + ); +}; + +const WrappedFunctionPage = track({ + page: 'FunctionPage' +}, { + dispatchOnMount: true +})(FunctionPage); + +class Test extends React.Component<any, null> { + render() { + return ( + <div> + <ClassPage someProp="oh yeah" /> + <WrappedFunctionPage someProp="oh yeah" /> + </div> + ); + } +} diff --git a/types/react-tracking/test/react-tracking-without-types-tests.tsx b/types/react-tracking/test/react-tracking-without-types-tests.tsx new file mode 100644 index 0000000000..02a89d929c --- /dev/null +++ b/types/react-tracking/test/react-tracking-without-types-tests.tsx @@ -0,0 +1,52 @@ +import * as React from 'react'; +import { Track, track, TrackingProp } from 'react-tracking'; + +function customEventReporter(data: { page?: string }) {} + +@track({ page: "ClassPage" }, { + dispatch: customEventReporter, + dispatchOnMount: contextData => ({ event: "pageDataReady" }), + process: ownTrackingData => ownTrackingData.page ? { event: 'pageview' } : null, +}) +class ClassPage extends React.Component<any> { + @track({ event: "Clicked" }) + handleClick() { + // ... other stuff + } + + // Only need to cast this to `any` because the settings for this project is to disallow implicit `any`. + @track((props: any, state: any) => ({ event: `got ${props.someProp} and clicked ${state.isClicked}` })) + render() { + return ( + <button onClick={this.handleClick}> + Click Me! + </button> + ); + } +} + +const FunctionPage: React.SFC<any> = (props) => { + return ( + <div onClick={() => { + props.tracking && props.tracking.trackEvent({ action: 'click' }); + }} + /> + ); +}; + +const WrappedFunctionPage = track({ + page: 'FunctionPage' +}, { + dispatchOnMount: true +})(FunctionPage); + +class Test extends React.Component<any, null> { + render() { + return ( + <div> + <ClassPage someProp="oh yeah" /> + <WrappedFunctionPage someProp="oh yeah" /> + </div> + ); + } +} diff --git a/types/react-tracking/tsconfig.json b/types/react-tracking/tsconfig.json new file mode 100644 index 0000000000..d1533121d0 --- /dev/null +++ b/types/react-tracking/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "lib": ["es6"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "experimentalDecorators": true, + "jsx": "preserve" + }, + "files": [ + "index.d.ts", + "test/react-tracking-with-types-tests.tsx", + "test/react-tracking-without-types-tests.tsx" + ] +} diff --git a/types/react-tracking/tslint.json b/types/react-tracking/tslint.json new file mode 100644 index 0000000000..f582b7ae56 --- /dev/null +++ b/types/react-tracking/tslint.json @@ -0,0 +1,8 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "ban-types": false, + "callable-types": false, + "no-unnecessary-generics": false + } +} diff --git a/types/react-transition-group/CSSTransition.d.ts b/types/react-transition-group/CSSTransition.d.ts index 259857ca3e..f43b361ab7 100644 --- a/types/react-transition-group/CSSTransition.d.ts +++ b/types/react-transition-group/CSSTransition.d.ts @@ -1,5 +1,5 @@ import { Component } from "react"; -import { TransitionProps } from "react-transition-group/Transition"; +import { TransitionProps } from "./Transition"; declare namespace CSSTransition { interface CSSTransitionClassNames { diff --git a/types/react-transition-group/TransitionGroup.d.ts b/types/react-transition-group/TransitionGroup.d.ts index 801ed2acaf..13e8daf228 100644 --- a/types/react-transition-group/TransitionGroup.d.ts +++ b/types/react-transition-group/TransitionGroup.d.ts @@ -1,5 +1,5 @@ import { Component, ReactType, HTMLProps, ReactElement } from "react"; -import { TransitionActions, TransitionProps } from "react-transition-group/Transition"; +import { TransitionActions, TransitionProps } from "./Transition"; declare namespace TransitionGroup { interface IntrinsicTransitionGroupProps<T extends keyof JSX.IntrinsicElements = "div"> extends TransitionActions { diff --git a/types/react-transition-group/index.d.ts b/types/react-transition-group/index.d.ts index 245deccecb..b41d19c857 100644 --- a/types/react-transition-group/index.d.ts +++ b/types/react-transition-group/index.d.ts @@ -4,11 +4,11 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -import CSSTransition = require("react-transition-group/CSSTransition"); -import Transition from "react-transition-group/Transition"; -import TransitionGroup = require("react-transition-group/TransitionGroup"); +import CSSTransition = require("./CSSTransition"); +import Transition from "./Transition"; +import TransitionGroup = require("./TransitionGroup"); -export = { +export { CSSTransition, Transition, TransitionGroup diff --git a/types/react-treeview/index.d.ts b/types/react-treeview/index.d.ts new file mode 100644 index 0000000000..64690dc361 --- /dev/null +++ b/types/react-treeview/index.d.ts @@ -0,0 +1,23 @@ +// Type definitions for react-treeview 0.4 +// Project: https://github.com/chenglou/react-treeview +// Definitions by: Jay Anslow <https://github.com/janslow> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import { Component, HTMLAttributes } from 'react'; + +declare namespace TreeView { + interface TreeProps extends HTMLAttributes<HTMLDivElement> { + collapsed?: boolean; + defaultCollapsed?: boolean; + nodeLabel: React.ReactNode; + itemClassName?: string; + treeViewClassName?: string; + childrenClassName?: string; + } +} + +declare class TreeView extends Component<TreeView.TreeProps, any> { +} + +export = TreeView; diff --git a/types/react-treeview/react-treeview-tests.tsx b/types/react-treeview/react-treeview-tests.tsx new file mode 100644 index 0000000000..8edb180b92 --- /dev/null +++ b/types/react-treeview/react-treeview-tests.tsx @@ -0,0 +1,11 @@ +import * as React from "react"; +import TreeView = require("react-treeview"); + +const label = <div>A label</div>; + +const elem1: JSX.Element = <TreeView key='1' nodeLabel={label} collapsed={false} onClick={() => undefined}> + <div>Entry</div> + <TreeView nodeLabel={label} itemClassName='item' treeViewClassName='tree' childrenClassName='children'> + <div>Nested Entry</div> + </TreeView> +</TreeView>; diff --git a/types/react-treeview/tsconfig.json b/types/react-treeview/tsconfig.json new file mode 100644 index 0000000000..62a6f93cbe --- /dev/null +++ b/types/react-treeview/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "jsx": "react", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-treeview-tests.tsx" + ] +} diff --git a/types/react-treeview/tslint.json b/types/react-treeview/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-treeview/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/react-truncate/index.d.ts b/types/react-truncate/index.d.ts new file mode 100644 index 0000000000..5200016dec --- /dev/null +++ b/types/react-truncate/index.d.ts @@ -0,0 +1,16 @@ +// Type definitions for react-truncate 2.1 +// Project: https://github.com/One-com/react-truncate +// Definitions by: Matt Perry <https://github.com/mattvperry> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import * as React from 'react'; + +export interface TruncateProps extends React.HTMLProps<Truncate> { + lines?: number | false; + ellipsis?: React.ReactNode; + onTruncate?(isTruncated: boolean): void; +} + +declare class Truncate extends React.Component<TruncateProps> { } +export default Truncate; diff --git a/types/react-truncate/react-truncate-tests.tsx b/types/react-truncate/react-truncate-tests.tsx new file mode 100644 index 0000000000..c73d5a2ad7 --- /dev/null +++ b/types/react-truncate/react-truncate-tests.tsx @@ -0,0 +1,18 @@ +import * as React from 'react'; +import Truncate from 'react-truncate'; + +const TruncateTest: React.SFC = _ => ( + <div> + <Truncate> + Test string + </Truncate> + + <Truncate lines={2} ellipsis="..." onTruncate={(isTruncated) => isTruncated} className="testClass"> + <div>Test string</div> + </Truncate> + + <Truncate lines={false} ellipsis={<span>Read more</span>} id="identifier"> + <div>Test string</div> + </Truncate> + </div> +); diff --git a/types/react-truncate/tsconfig.json b/types/react-truncate/tsconfig.json new file mode 100644 index 0000000000..51227d4e80 --- /dev/null +++ b/types/react-truncate/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "jsx": "react", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-truncate-tests.tsx" + ] +} diff --git a/types/react-truncate/tslint.json b/types/react-truncate/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-truncate/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/react-virtualized-select/react-virtualized-select-tests.tsx b/types/react-virtualized-select/react-virtualized-select-tests.tsx index ced2f20b41..6fe469bade 100644 --- a/types/react-virtualized-select/react-virtualized-select-tests.tsx +++ b/types/react-virtualized-select/react-virtualized-select-tests.tsx @@ -1,5 +1,5 @@ import * as React from "react"; -import Select = require("react-select"); +import Select from "react-select"; import VirtualizedSelect from "react-virtualized-select"; <VirtualizedSelect diff --git a/types/react-youtube/index.d.ts b/types/react-youtube/index.d.ts new file mode 100644 index 0000000000..14458c74d0 --- /dev/null +++ b/types/react-youtube/index.d.ts @@ -0,0 +1,47 @@ +// Type definitions for react-youtube 7.4 +// Project: https://github.com/troybetz/react-youtube +// Definitions by: kgtkr <https://github.com/kgtkr> +// Definitions: https://github.com/borisyankov/DefinitelyTyped +// TypeScript Version: 2.3 + +import * as React from "react"; +export default class YouTube extends React.Component<{ + videoId?: string, + id?: string, + className?: string, + opts?: { + height?: string, + width?: string, + playerVars?: { + autoplay?: 0 | 1, + cc_load_policy?: 1, + color?: 'red' | 'white', + controls?: 0 | 1 | 2, + disablekb?: 0 | 1, + enablejsapi?: 0 | 1, + end?: number, + fs?: 0 | 1, + hl?: string, + iv_load_policy?: 1 | 3, + list?: string, + listType?: 'playlist' | 'search' | 'user_uploads', + loop?: 0 | 1, + modestbranding?: 1, + origin?: string, + playlist?: string, + playsinline?: 0 | 1, + rel?: 0 | 1, + showinfo?: 0 | 1, + start?: number + } + }, + onReady?(event: { target: any }): void, + onError?(event: { target: any, data: number }): void, + onPlay?(event: { target: any, data: number }): void, + onPause?(event: { target: any, data: number }): void, + onEnd?(event: { target: any, data: number }): void, + onStateChange?(event: { target: any, data: number }): void, + onPlaybackRateChange?(event: { target: any, data: number }): void, + onPlaybackQualityChange?(event: { target: any, data: string }): void, +}> { +} diff --git a/types/react-youtube/react-youtube-tests.tsx b/types/react-youtube/react-youtube-tests.tsx new file mode 100644 index 0000000000..6b7205958f --- /dev/null +++ b/types/react-youtube/react-youtube-tests.tsx @@ -0,0 +1,28 @@ +import * as React from "react"; +import YouTube from 'react-youtube'; + +// https://github.com/troybetz/react-youtube +class Example extends React.Component { + render() { + const opts = { + height: '390', + width: '640', + playerVars: { // https://developers.google.com/youtube/player_parameters + autoplay: 1 as 1 + } + }; + + return ( + <YouTube + videoId="2g811Eo7K8U" + opts={opts} + onReady={this._onReady} + /> + ); + } + + _onReady(event: { target: any }) { + // access to player in all event handlers via event.target + event.target.pauseVideo(); + } +} diff --git a/types/react-youtube/tsconfig.json b/types/react-youtube/tsconfig.json new file mode 100644 index 0000000000..bfa6d2396a --- /dev/null +++ b/types/react-youtube/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "jsx": "react", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-youtube-tests.tsx" + ] +} \ No newline at end of file diff --git a/types/react-youtube/tslint.json b/types/react-youtube/tslint.json new file mode 100644 index 0000000000..e60c15844f --- /dev/null +++ b/types/react-youtube/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} \ No newline at end of file diff --git a/types/react/global.d.ts b/types/react/global.d.ts new file mode 100644 index 0000000000..8ebeb64bad --- /dev/null +++ b/types/react/global.d.ts @@ -0,0 +1,176 @@ +/* +React projects that don't include the DOM library need these interfaces to compile. +React Native applications use React, but there is no DOM available. The JavaScript runtime +is ES6/ES2015 only. These definitions allow such projects to compile with only `--lib ES6`. +*/ + +interface Event { } +interface AnimationEvent extends Event { } +interface ClipboardEvent extends Event { } +interface CompositionEvent extends Event { } +interface DragEvent extends Event { } +interface FocusEvent extends Event { } +interface KeyboardEvent extends Event { } +interface MouseEvent extends Event { } +interface TouchEvent extends Event { } +interface TransitionEvent extends Event { } +interface UIEvent extends Event { } +interface WheelEvent extends Event { } + +interface EventTarget { } +interface Document { } +interface DataTransfer { } +interface StyleMedia { } + +interface Element { } + +interface HTMLElement extends Element { } +interface HTMLAnchorElement extends HTMLElement { } +interface HTMLAreaElement extends HTMLElement { } +interface HTMLAudioElement extends HTMLElement { } +interface HTMLBaseElement extends HTMLElement { } +interface HTMLBodyElement extends HTMLElement { } +interface HTMLBRElement extends HTMLElement { } +interface HTMLButtonElement extends HTMLElement { } +interface HTMLCanvasElement extends HTMLElement { } +interface HTMLDivElement extends HTMLElement { } +interface HTMLDListElement extends HTMLElement { } +interface HTMLEmbedElement extends HTMLElement { } +interface HTMLFieldSetElement extends HTMLElement { } +interface HTMLFormElement extends HTMLElement { } +interface HTMLHeadingElement extends HTMLElement { } +interface HTMLHeadElement extends HTMLElement { } +interface HTMLHRElement extends HTMLElement { } +interface HTMLTableColElement extends HTMLElement { } +interface HTMLDataListElement extends HTMLElement { } +interface HTMLHtmlElement extends HTMLElement { } +interface HTMLIFrameElement extends HTMLElement { } +interface HTMLImageElement extends HTMLElement { } +interface HTMLInputElement extends HTMLElement { } +interface HTMLModElement extends HTMLElement { } +interface HTMLLabelElement extends HTMLElement { } +interface HTMLLegendElement extends HTMLElement { } +interface HTMLLIElement extends HTMLElement { } +interface HTMLLinkElement extends HTMLElement { } +interface HTMLMapElement extends HTMLElement { } +interface HTMLMetaElement extends HTMLElement { } +interface HTMLObjectElement extends HTMLElement { } +interface HTMLOListElement extends HTMLElement { } +interface HTMLOptGroupElement extends HTMLElement { } +interface HTMLOptionElement extends HTMLElement { } +interface HTMLParagraphElement extends HTMLElement { } +interface HTMLParamElement extends HTMLElement { } +interface HTMLPreElement extends HTMLElement { } +interface HTMLProgressElement extends HTMLElement { } +interface HTMLQuoteElement extends HTMLElement { } +interface HTMLScriptElement extends HTMLElement { } +interface HTMLSelectElement extends HTMLElement { } +interface HTMLSourceElement extends HTMLElement { } +interface HTMLSpanElement extends HTMLElement { } +interface HTMLStyleElement extends HTMLElement { } +interface HTMLTableElement extends HTMLElement { } +interface HTMLTableSectionElement extends HTMLElement { } +interface HTMLTableDataCellElement extends HTMLElement { } +interface HTMLTextAreaElement extends HTMLElement { } +interface HTMLTableSectionElement extends HTMLElement { } +interface HTMLTableHeaderCellElement extends HTMLElement { } +interface HTMLTableSectionElement extends HTMLElement { } +interface HTMLTitleElement extends HTMLElement { } +interface HTMLTableRowElement extends HTMLElement { } +interface HTMLTrackElement extends HTMLElement { } +interface HTMLUListElement extends HTMLElement { } +interface HTMLVideoElement extends HTMLElement { } +interface HTMLTableColElement extends HTMLElement { } +interface HTMLDataListElement extends HTMLElement { } +interface HTMLHtmlElement extends HTMLElement { } +interface HTMLIFrameElement extends HTMLElement { } +interface HTMLImageElement extends HTMLElement { } +interface HTMLInputElement extends HTMLElement { } +interface HTMLModElement extends HTMLElement { } +interface HTMLLabelElement extends HTMLElement { } +interface HTMLLegendElement extends HTMLElement { } +interface HTMLLIElement extends HTMLElement { } +interface HTMLLinkElement extends HTMLElement { } +interface HTMLMapElement extends HTMLElement { } +interface HTMLMetaElement extends HTMLElement { } +interface HTMLObjectElement extends HTMLElement { } +interface HTMLOListElement extends HTMLElement { } +interface HTMLOptGroupElement extends HTMLElement { } +interface HTMLOptionElement extends HTMLElement { } +interface HTMLParagraphElement extends HTMLElement { } +interface HTMLParamElement extends HTMLElement { } +interface HTMLPreElement extends HTMLElement { } +interface HTMLProgressElement extends HTMLElement { } +interface HTMLQuoteElement extends HTMLElement { } +interface HTMLScriptElement extends HTMLElement { } +interface HTMLSelectElement extends HTMLElement { } +interface HTMLSourceElement extends HTMLElement { } +interface HTMLSpanElement extends HTMLElement { } +interface HTMLStyleElement extends HTMLElement { } +interface HTMLTableElement extends HTMLElement { } +interface HTMLTableSectionElement extends HTMLElement { } +interface HTMLTableDataCellElement extends HTMLElement { } +interface HTMLTextAreaElement extends HTMLElement { } +interface HTMLTableSectionElement extends HTMLElement { } +interface HTMLTableHeaderCellElement extends HTMLElement { } +interface HTMLTableSectionElement extends HTMLElement { } +interface HTMLTitleElement extends HTMLElement { } +interface HTMLTableRowElement extends HTMLElement { } +interface HTMLTrackElement extends HTMLElement { } +interface HTMLUListElement extends HTMLElement { } +interface HTMLVideoElement extends HTMLElement { } + +interface SVGElement extends Element { } +interface SVGSVGElement extends SVGElement { } +interface SVGCircleElement extends SVGElement { } +interface SVGClipPathElement extends SVGElement { } +interface SVGDefsElement extends SVGElement { } +interface SVGDescElement extends SVGElement { } +interface SVGEllipseElement extends SVGElement { } +interface SVGFEBlendElement extends SVGElement { } +interface SVGFEColorMatrixElement extends SVGElement { } +interface SVGFEComponentTransferElement extends SVGElement { } +interface SVGFECompositeElement extends SVGElement { } +interface SVGFEConvolveMatrixElement extends SVGElement { } +interface SVGFEDiffuseLightingElement extends SVGElement { } +interface SVGFEDisplacementMapElement extends SVGElement { } +interface SVGFEDistantLightElement extends SVGElement { } +interface SVGFEFloodElement extends SVGElement { } +interface SVGFEFuncAElement extends SVGElement { } +interface SVGFEFuncBElement extends SVGElement { } +interface SVGFEFuncGElement extends SVGElement { } +interface SVGFEFuncRElement extends SVGElement { } +interface SVGFEGaussianBlurElement extends SVGElement { } +interface SVGFEImageElement extends SVGElement { } +interface SVGFEMergeElement extends SVGElement { } +interface SVGFEMergeNodeElement extends SVGElement { } +interface SVGFEMorphologyElement extends SVGElement { } +interface SVGFEOffsetElement extends SVGElement { } +interface SVGFEPointLightElement extends SVGElement { } +interface SVGFESpecularLightingElement extends SVGElement { } +interface SVGFESpotLightElement extends SVGElement { } +interface SVGFETileElement extends SVGElement { } +interface SVGFETurbulenceElement extends SVGElement { } +interface SVGFilterElement extends SVGElement { } +interface SVGForeignObjectElement extends SVGElement { } +interface SVGGElement extends SVGElement { } +interface SVGImageElement extends SVGElement { } +interface SVGLineElement extends SVGElement { } +interface SVGLinearGradientElement extends SVGElement { } +interface SVGMarkerElement extends SVGElement { } +interface SVGMaskElement extends SVGElement { } +interface SVGMetadataElement extends SVGElement { } +interface SVGPathElement extends SVGElement { } +interface SVGPatternElement extends SVGElement { } +interface SVGPolygonElement extends SVGElement { } +interface SVGPolylineElement extends SVGElement { } +interface SVGRadialGradientElement extends SVGElement { } +interface SVGRectElement extends SVGElement { } +interface SVGStopElement extends SVGElement { } +interface SVGSwitchElement extends SVGElement { } +interface SVGSymbolElement extends SVGElement { } +interface SVGTextElement extends SVGElement { } +interface SVGTextPathElement extends SVGElement { } +interface SVGTSpanElement extends SVGElement { } +interface SVGUseElement extends SVGElement { } +interface SVGViewElement extends SVGElement { } diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 5588e85197..f811bf488b 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -47,6 +47,8 @@ React.cloneElement(element, <{ isDisabled?: boolean } & React.Attributes>{ }); */ +/// <reference path="global.d.ts" /> + type NativeAnimationEvent = AnimationEvent; type NativeClipboardEvent = ClipboardEvent; type NativeCompositionEvent = CompositionEvent; @@ -72,7 +74,7 @@ declare namespace React { type ComponentType<P = {}> = ComponentClass<P> | StatelessComponent<P>; type Key = string | number; - type Ref<T> = string | ((instance: T | null) => any); + type Ref<T> = string | { bivarianceHack(instance: T | null): any }["bivarianceHack"]; // tslint:disable-next-line:interface-over-type-literal type ComponentState = {}; @@ -216,7 +218,7 @@ declare namespace React { props?: ClassAttributes<T> & P, ...children: ReactNode[]): CElement<P, T>; function createElement<P>( - type: ComponentClass<P>, + type: SFC<P> | ComponentClass<P> | string, props?: Attributes & P, ...children: ReactNode[]): ReactElement<P>; @@ -555,7 +557,7 @@ declare namespace React { // Event Handler Types // ---------------------------------------------------------------------- - type EventHandler<E extends SyntheticEvent<any>> = (event: E) => void; + type EventHandler<E extends SyntheticEvent<any>> = { bivarianceHack(event: E): void }["bivarianceHack"]; type ReactEventHandler<T> = EventHandler<SyntheticEvent<T>>; @@ -2778,6 +2780,7 @@ declare namespace React { loop?: boolean; mediaGroup?: string; muted?: boolean; + playsinline?: boolean; preload?: string; src?: string; } @@ -3368,7 +3371,7 @@ declare namespace React { // React.PropTypes // ---------------------------------------------------------------------- - type Validator<T> = (object: T, key: string, componentName: string, ...rest: any[]) => Error | null; + type Validator<T> = { bivarianceHack(object: T, key: string, componentName: string, ...rest: any[]): Error | null }["bivarianceHack"]; interface Requireable<T> extends Validator<T> { isRequired: Validator<T>; diff --git a/types/react/test/index.ts b/types/react/test/index.ts index 79eab5e88d..a798863cd4 100644 --- a/types/react/test/index.ts +++ b/types/react/test/index.ts @@ -193,6 +193,12 @@ const customProps: React.HTMLProps<HTMLElement> = props; const customDomElement = "my-element"; const nonLiteralElement = React.createElement(customDomElement, customProps); +// https://github.com/Microsoft/TypeScript/issues/15019 + +function foo3(child: React.ComponentClass<{ name: string }> | React.StatelessComponent<{ name: string }> | string) { + React.createElement(child, { name: "bar" }); +} + // React.cloneElement const clonedElement: React.CElement<Props, ModernComponent> = React.cloneElement(element, { foo: 43 }); @@ -490,7 +496,7 @@ class Timer extends React.Component<{}, TimerState> { state = { secondsElapsed: 0 }; - private _interval: number; + private _interval: NodeJS.Timer; tick() { this.setState((prevState, props) => ({ secondsElapsed: prevState.secondsElapsed + 1 diff --git a/types/react/v15/index.d.ts b/types/react/v15/index.d.ts index c28876dd12..6be40c0f6b 100644 --- a/types/react/v15/index.d.ts +++ b/types/react/v15/index.d.ts @@ -223,7 +223,7 @@ declare namespace React { props?: ClassAttributes<T> & P, ...children: ReactNode[]): CElement<P, T>; function createElement<P>( - type: ComponentClass<P>, + type: SFC<P> | ComponentClass<P> | string, props?: Attributes & P, ...children: ReactNode[]): ReactElement<P>; @@ -2744,6 +2744,7 @@ declare namespace React { loop?: boolean; mediaGroup?: string; muted?: boolean; + playsinline?: boolean; preload?: string; src?: string; } diff --git a/types/react/v15/test/index.ts b/types/react/v15/test/index.ts index 7c22f8dfff..a7a4c97ba4 100644 --- a/types/react/v15/test/index.ts +++ b/types/react/v15/test/index.ts @@ -193,6 +193,12 @@ const customProps: React.HTMLProps<HTMLElement> = props; const customDomElement = "my-element"; const nonLiteralElement = React.createElement(customDomElement, customProps); +// https://github.com/Microsoft/TypeScript/issues/15019 + +function foo3(child: React.ComponentClass<{ name: string }> | React.StatelessComponent<{ name: string }> | string) { + React.createElement(child, { name: "bar" }); +} + // React.cloneElement const clonedElement: React.CElement<Props, ModernComponent> = React.cloneElement(element, { foo: 43 }); @@ -492,7 +498,7 @@ class Timer extends React.Component<{}, TimerState> { state = { secondsElapsed: 0 }; - private _interval: number; + private _interval: NodeJS.Timer; tick() { this.setState((prevState, props) => ({ secondsElapsed: prevState.secondsElapsed + 1 diff --git a/types/reactstrap/index.d.ts b/types/reactstrap/index.d.ts index 8bd00001b8..b7cd9395c9 100644 --- a/types/reactstrap/index.d.ts +++ b/types/reactstrap/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for reactstrap 4.3 +// Type definitions for reactstrap 4.6 // Project: https://github.com/reactstrap/reactstrap#readme -// Definitions by: Ali Hammad Baig <https://github.com/alihammad>, Marco Falkenberg <https://github.com/mfal>, Danilo Barros <https://github.com/danilobjr> +// Definitions by: Ali Hammad Baig <https://github.com/alihammad>, Marco Falkenberg <https://github.com/mfal>, Danilo Barros <https://github.com/danilobjr>, Fábio Paiva <https://github.com/fabiopaiva> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/reactstrap/lib/Modal.d.ts b/types/reactstrap/lib/Modal.d.ts index 056789cbdb..1e239fbe12 100644 --- a/types/reactstrap/lib/Modal.d.ts +++ b/types/reactstrap/lib/Modal.d.ts @@ -2,6 +2,7 @@ import { CSSModule } from '../index'; interface Props { isOpen?: boolean; + autoFocus?: boolean; size?: string; toggle?: () => void; keyboard?: boolean; diff --git a/types/reactstrap/lib/Navbar.d.ts b/types/reactstrap/lib/Navbar.d.ts index f3e57535e7..58f9235140 100644 --- a/types/reactstrap/lib/Navbar.d.ts +++ b/types/reactstrap/lib/Navbar.d.ts @@ -2,6 +2,7 @@ import { CSSModule } from '../index'; interface Props { light?: boolean; + dark?: boolean; inverse?: boolean; full?: boolean; fixed?: string; @@ -12,6 +13,7 @@ interface Props { className?: string; cssModule?: CSSModule; toggleable?: boolean | string; + expand?: boolean | string; } declare var Navbar: React.StatelessComponent<Props>; diff --git a/types/reactstrap/reactstrap-tests.tsx b/types/reactstrap/reactstrap-tests.tsx index c8eb56f120..dc69e6d298 100644 --- a/types/reactstrap/reactstrap-tests.tsx +++ b/types/reactstrap/reactstrap-tests.tsx @@ -3304,3 +3304,111 @@ class Example107 extends React.Component { return <Input type="file" getRef={(input) => { this.input = input; }} />; } } + +class Example108 extends React.Component<any, any> { + constructor(props: any) { + super(props); + + this.toggle = this.toggle.bind(this); + this.state = { + isOpen: false + }; + } + toggle() { + this.setState({ + isOpen: !this.state.isOpen + }); + } + render() { + return ( + <div> + <Navbar color="faded" dark toggleable> + <NavbarToggler right onClick={this.toggle} /> + <NavbarBrand href="/">reactstrap</NavbarBrand> + <Collapse isOpen={this.state.isOpen} navbar> + <Nav className="ml-auto" navbar> + <NavItem> + <NavLink href="/components/">Components</NavLink> + </NavItem> + <NavItem> + <NavLink href="https://github.com/reactstrap/reactstrap">Github</NavLink> + </NavItem> + </Nav> + </Collapse> + </Navbar> + </div> + ); + } +} + +class Example109 extends React.Component<any, any> { + constructor(props: any) { + super(props); + + this.toggle = this.toggle.bind(this); + this.state = { + isOpen: false + }; + } + toggle() { + this.setState({ + isOpen: !this.state.isOpen + }); + } + render() { + return ( + <div> + <Navbar color="faded" light expand> + <NavbarToggler right onClick={this.toggle} /> + <NavbarBrand href="/">reactstrap</NavbarBrand> + <Collapse isOpen={this.state.isOpen} navbar> + <Nav className="ml-auto" navbar> + <NavItem> + <NavLink href="/components/">Components</NavLink> + </NavItem> + <NavItem> + <NavLink href="https://github.com/reactstrap/reactstrap">Github</NavLink> + </NavItem> + </Nav> + </Collapse> + </Navbar> + </div> + ); + } +} + +class Example110 extends React.Component<any, any> { + constructor(props: any) { + super(props); + + this.toggle = this.toggle.bind(this); + this.state = { + isOpen: false + }; + } + toggle() { + this.setState({ + isOpen: !this.state.isOpen + }); + } + render() { + return ( + <div> + <Navbar color="faded" light expand="md"> + <NavbarToggler right onClick={this.toggle} /> + <NavbarBrand href="/">reactstrap</NavbarBrand> + <Collapse isOpen={this.state.isOpen} navbar> + <Nav className="ml-auto" navbar> + <NavItem> + <NavLink href="/components/">Components</NavLink> + </NavItem> + <NavItem> + <NavLink href="https://github.com/reactstrap/reactstrap">Github</NavLink> + </NavItem> + </Nav> + </Collapse> + </Navbar> + </div> + ); + } +} diff --git a/types/read-pkg-up/index.d.ts b/types/read-pkg-up/index.d.ts new file mode 100644 index 0000000000..974a9fa0cd --- /dev/null +++ b/types/read-pkg-up/index.d.ts @@ -0,0 +1,31 @@ +// Type definitions for read-pkg-up 2.0 +// Project: https://github.com/sindresorhus/read-pkg-up +// Definitions by: Louis Orleans <https://github.com/dudeofawesome> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace ReadPkgUp { + function sync(options?: Options): Package; + + interface Options { + /** + * Directory to start looking for a package.json file. + * + * @default 'process.cwd()' + */ + cwd?: string; + /** + * [Normalize](https://github.com/npm/normalize-package-data#what-normalization-currently-entails) the package data. + * + * @default true + */ + normalize?: boolean; + } + + interface Package { + [key: string]: any; + } +} + +declare function ReadPkgUp(options?: ReadPkgUp.Options): Promise<ReadPkgUp.Package>; + +export = ReadPkgUp; diff --git a/types/read-pkg-up/read-pkg-up-tests.ts b/types/read-pkg-up/read-pkg-up-tests.ts new file mode 100644 index 0000000000..f536f275d2 --- /dev/null +++ b/types/read-pkg-up/read-pkg-up-tests.ts @@ -0,0 +1,6 @@ +import ReadPkgUp = require('read-pkg-up'); + +ReadPkgUp().then(pkg => typeof pkg === 'object'); +ReadPkgUp({cwd: '.', normalize: false}).then(pkg => typeof pkg === 'object'); +typeof ReadPkgUp.sync() === 'object'; +typeof ReadPkgUp.sync({cwd: '.', normalize: false}) === 'object'; diff --git a/types/read-pkg-up/tsconfig.json b/types/read-pkg-up/tsconfig.json new file mode 100644 index 0000000000..58be3b23c7 --- /dev/null +++ b/types/read-pkg-up/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "read-pkg-up-tests.ts" + ] +} diff --git a/types/read-pkg-up/tslint.json b/types/read-pkg-up/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/read-pkg-up/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index ee3a8bba30..e9a584dc1a 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for Recharts 0.22 +// Type definitions for Recharts 1.0 // Project: http://recharts.org/ // Definitions by: Maarten Mulders <https://github.com/mthmulders> // Raphael Mueller <https://github.com/rapmue> +// Roy Xue <https://github.com/royxue> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -9,11 +10,23 @@ import * as React from 'react'; export type Percentage = string; export type RechartsFunction = () => void; +export type TickFormatterFunction = (value: any) => any; +export type LabelFormatter = (label: string | number) => React.ReactNode; +export type TooltipFormatter = (value: string | number | Array<string | number>, name: string, + entry: TooltipPayload, index: number) => React.ReactNode; +export type ItemSorter<T> = (a: T, b: T) => number; +export type ContentRenderer<P> = (props: P) => React.ReactNode; export type LegendType = 'line' | 'square' | 'rect' | 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye' | 'none'; export type LayoutType = 'horizontal' | 'vertical'; export type AnimationEasingType = 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'linear'; export type ScaleType = 'auto' | 'linear' | 'pow' | 'sqrt' | 'log' | 'identity' | 'time' | 'band' | 'point' | 'ordinal' | 'quantile' | 'quantize' | 'utcTime' | 'sequential' | 'threshold'; +export type PositionType = 'top' | 'left' | 'right' | 'bottom' | 'inside' | 'outside'| 'insideLeft' | 'insideRight' | + 'insideTop' | 'insideBottom' | 'insideTopLeft' | 'insideBottomLeft' | 'insideTopRight' | 'insideBottomRight' | 'insideStart' | 'insideEnd' | 'end' | 'center'; + +export type PartialAndNumber<T> = { + [P in keyof T]?: number | T[P]; +}; export interface Margin { top: number; @@ -131,7 +144,7 @@ export interface BrushProps { travellerWidth?: number; startIndex?: number; endIndex?: number; - tickFormatter?: RechartsFunction; + tickFormatter?: TickFormatterFunction; onChange?: RechartsFunction; } @@ -143,14 +156,14 @@ export interface CartesianAxisProps { width?: number; height?: number; orientation?: 'top' | 'bottom' | 'left' | 'right'; - viewBox?: any; + viewBox?: ViewBox; axisLine?: boolean | any; tickLine?: boolean | any; minTickGap?: number; tickSize?: number; interval?: "preserveStart" | "preserveEnd" | "preserveStartEnd" | number; tick?: boolean | any | React.ReactElement<any> | RechartsFunction; - label?: string | number | React.ReactElement<any> | RechartsFunction; + label?: string | number | React.ReactElement<any> | ContentRenderer<CartesianAxisProps>; mirror?: boolean; } @@ -258,7 +271,7 @@ export interface LegendProps { chartWidth?: number; chartHeight?: number; margin?: Margin; - content?: React.ReactElement<any> | RechartsFunction; + content?: React.ReactElement<any> | ContentRenderer<LegendProps>; wrapperStyle?: any; onClick?: RechartsFunction; onMouseDown?: RechartsFunction; @@ -371,7 +384,7 @@ export interface PolarAngleAxisProps { tick?: boolean | any | React.ReactElement<any> | RechartsFunction; ticks: any[]; orient?: string; - tickFormatter: RechartsFunction; + tickFormatter: TickFormatterFunction; onClick?: RechartsFunction; onMouseDown?: RechartsFunction; onMouseUp?: RechartsFunction; @@ -405,7 +418,7 @@ export interface PolarRadiusAxisProps { orientation?: "left" | "right" | "middle"; axisLine?: boolean | any; tick?: boolean | any | Element | RechartsFunction; - tickFormatter: RechartsFunction; + tickFormatter: TickFormatterFunction; tickCount?: number; scale?: ScaleType | RechartsFunction; onClick?: RechartsFunction; @@ -526,7 +539,7 @@ export interface RectangleProps extends Partial<CSSStyleDeclaration> { export class Rectangle extends React.Component<RectangleProps> { } -export interface ReferenceAreaProps { +export interface ReferenceAreaProps extends PartialAndNumber<CSSStyleDeclaration> { xAxisId?: string | number; yAxisId?: string | number; x1?: number | string; @@ -534,10 +547,10 @@ export interface ReferenceAreaProps { y1?: number | string; y2?: number | string; alwaysShow?: boolean; - viewBox: any; - xAxis: any; - yAxis: any; - label?: string | number | React.ReactElement<any> | RechartsFunction; + viewBox?: ViewBox; + xAxis?: any; + yAxis?: any; + label?: string | number | React.ReactElement<any> | ContentRenderer<ReferenceAreaProps>; isFront?: boolean; } @@ -548,10 +561,11 @@ export interface ReferenceDotProps { yAxisId?: string | number; x: number | string; y: number | string; + r: number; alwaysShow?: boolean; xAxis: any; yAxis: any; - label?: string | number | React.ReactElement<any> | RechartsFunction; + label?: string | number | React.ReactElement<any> | ContentRenderer<ReferenceDotProps>; isFront?: boolean; onClick?: RechartsFunction; onMouseDown?: RechartsFunction; @@ -571,10 +585,10 @@ export interface ReferenceLineProps { x?: number | string; y?: number | string; alwaysShow?: boolean; - viewBox: any; - xAxis: any; - yAxis: any; - label?: string | number | React.ReactElement<any> | RechartsFunction; + viewBox?: ViewBox; + xAxis?: any; + yAxis?: any; + label?: string | number | React.ReactElement<any> | ContentRenderer<ReferenceLineProps>; isFront?: boolean; } @@ -586,6 +600,7 @@ export interface ResponsiveContainerProps { height?: Percentage | number; minWidth?: number; minHeight?: number; + maxHeight?: Percentage | number; debounce?: number; } @@ -661,10 +676,18 @@ export interface TextProps extends Partial<CSSStyleDeclaration> { export class Text extends React.Component<TextProps> { } export interface ViewBox { - x: number; - y: number; - width: number; - height: number; + x?: number; + y?: number; + width?: number; + height?: number; +} +export interface PolarViewBox { + cx?: number; + cy?: number; + innerRadius?: number; + outerRadius?: number; + startAngle?: number; + endAngle?: number; } export interface Coordinate { x: number; @@ -672,7 +695,7 @@ export interface Coordinate { } export interface TooltipPayload { name: string; - value: number; + value: string | number | Array<string | number>; unit: string; } export interface TooltipProps { @@ -682,25 +705,27 @@ export interface TooltipProps { wrapperStyle?: any; labelStyle?: any; cursor?: boolean | any | React.ReactElement<any> | React.StatelessComponent<any>; - viewBox: ViewBox; + viewBox?: ViewBox; active?: boolean; coordinate?: Coordinate; payload?: TooltipPayload[]; label?: string | number; - content?: React.ReactElement<any> | React.StatelessComponent<any> | RechartsFunction; - formatter?: RechartsFunction; - labelFormatter?: RechartsFunction; - itemSorter?: RechartsFunction; + content?: React.ReactElement<any> | React.StatelessComponent<any> | ContentRenderer<TooltipProps>; + formatter?: TooltipFormatter; + labelFormatter?: LabelFormatter; + itemSorter?: ItemSorter<TooltipPayload>; isAnimationActive?: boolean; animationBegin?: number; animationEasing?: AnimationEasingType; + filterNull?: boolean; } export class Tooltip extends React.Component<TooltipProps> { } export interface TreemapProps { - width: number; - height: number; + data: any[]; + width?: number; + height?: number; dataKey?: string; aspectRatio: number; isAnimationActive?: boolean; @@ -708,12 +733,23 @@ export interface TreemapProps { animationEasing?: AnimationEasingType; } +export interface Label { + viewBox?: ViewBox | PolarViewBox; + formatter?: LabelFormatter; + value: string | number; + position?: PositionType; + offset?: number; + content?: React.ReactElement<any> | ContentRenderer<Label>; + children?: any; +} + export class Treemap extends React.Component<TreemapProps> { } export interface XPadding { left: number; right: number; } + export interface XAxisProps { hide?: boolean; dataKey?: string | number; @@ -732,12 +768,12 @@ export interface XAxisProps { axisLine?: boolean | any; tickLine?: boolean | any; tickSize?: number; - tickFormatter?: RechartsFunction; + tickFormatter?: TickFormatterFunction; ticks?: any[]; tick?: boolean | any | React.ReactElement<any>; mirror?: boolean; reversed?: boolean; - label?: string | number | React.ReactElement<any>; + label?: string | number | React.ReactElement<any> | Label; scale?: ScaleType | RechartsFunction; unit?: string | number; name?: string | number; @@ -775,12 +811,12 @@ export interface YAxisProps { tickCount?: number; tickLine?: boolean | any; tickSize?: number; - tickFormatter?: RechartsFunction; + tickFormatter?: TickFormatterFunction; ticks?: any[]; tick?: boolean | any | React.ReactElement<any>; mirror?: boolean; reversed?: boolean; - label?: string | number | React.ReactElement<any>; + label?: string | number | React.ReactElement<any> | Label; scale?: ScaleType | RechartsFunction; unit?: string | number; name?: string | number; diff --git a/types/recharts/recharts-tests.tsx b/types/recharts/recharts-tests.tsx index ddbbbe95f6..9951fc775b 100644 --- a/types/recharts/recharts-tests.tsx +++ b/types/recharts/recharts-tests.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom'; -import { CartesianGrid, Line, LineChart, XAxis, YAxis } from 'recharts'; +import { CartesianGrid, Line, LineChart, XAxis, YAxis, Tooltip, ReferenceLine, ReferenceArea } from 'recharts'; const Component = (props: {}) => { const data = [ @@ -21,6 +21,15 @@ const Component = (props: {}) => { <CartesianGrid stroke="#eee" strokeDasharray="5 5"/> <Line type="monotone" dataKey="uv" stroke="#8884d8" /> <Line type="monotone" dataKey="pv" stroke="#82ca9d" /> + <Tooltip /> + <ReferenceLine /> + <ReferenceArea + stroke="red" + fill="red" + y2={1} + strokeOpacity={0.2} + fillOpacity={0.1} + /> </LineChart> ); }; diff --git a/types/recompose/index.d.ts b/types/recompose/index.d.ts index 7762633c3c..36621f3376 100644 --- a/types/recompose/index.d.ts +++ b/types/recompose/index.d.ts @@ -364,6 +364,10 @@ declare module 'recompose' { }; export function createEventHandler<T, TSubs extends Subscribable<T>>(): EventHandlerOf<T, TSubs>; + // createEventHandlerWithConfig: https://github.com/acdlite/recompose/blob/master/docs/API.md#createEventHandlerWithConfig + export function createEventHandlerWithConfig(config: ObservableConfig): + <T, TSubs extends Subscribable<T>>() => EventHandlerOf<T, TSubs>; + // setObservableConfig: https://github.com/acdlite/recompose/blob/master/docs/API.md#setObservableConfig type ObservableConfig = { fromESObservable?: <T>(observable: Subscribable<T>) => any; diff --git a/types/recompose/recompose-tests.tsx b/types/recompose/recompose-tests.tsx index 3f405f59d0..1ed22fac20 100644 --- a/types/recompose/recompose-tests.tsx +++ b/types/recompose/recompose-tests.tsx @@ -15,6 +15,7 @@ import { createSink, componentFromProp, nest, hoistStatics, // Observable utilities componentFromStream, mapPropsStream, createEventHandler, + createEventHandlerWithConfig, componentFromStreamWithConfig, mapPropsStreamWithConfig, setObservableConfig, } from "recompose"; @@ -272,6 +273,10 @@ function testWithObservableConfig() { let mapPropsStreamMost = mapPropsStreamWithConfig(mostConfig) mapPropsStreamMost = mapPropsStream + + let createEventHandlerMost = createEventHandlerWithConfig(mostConfig) + let { handler: handler, stream: stream } = createEventHandler() + createEventHandlerMost = createEventHandler } function testOnlyUpdateForKeys() { diff --git a/types/recursive-readdir/index.d.ts b/types/recursive-readdir/index.d.ts index fd64702889..e2b1e9564c 100644 --- a/types/recursive-readdir/index.d.ts +++ b/types/recursive-readdir/index.d.ts @@ -1,20 +1,21 @@ -// Type definitions for recursive-readdir v1.2.1 +// Type definitions for recursive-readdir 2.2 // Project: https://github.com/jergason/recursive-readdir/ -// Definitions by: Elisée Maurer <https://github.com/elisee> +// Definitions by: Elisée Maurer <https://github.com/elisee>, Micah Zoltu <https://github.com/MicahZoltu> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> - import * as fs from "fs"; declare namespace RecursiveReaddir { - interface readdir { - (path: string, callback: (error: Error, files: string[]) => any): void; - // ignorePattern supports glob syntax via https://github.com/isaacs/minimatch - (path: string, ignorePattern: (string | ((file: string, stats: fs.Stats) => void))[], callback: (error: Error, files: string[]) => any): void; - (path: string, ignoreFunction: (file: string, stats: fs.Stats) => void, callback: (error: Error, files: string[]) => any): void; + type IgnoreFunction = (file: string, stats: fs.Stats) => boolean; + type Ignores = ReadonlyArray<string|IgnoreFunction>; + type Callback = (error: Error, files: string[]) => void; + interface readDir { + (path: string, ignores?: Ignores): Promise<string[]>; + (path: string, callback: Callback): void; + (path: string, ignores: Ignores, callback: Callback): void; } } -declare var r: RecursiveReaddir.readdir; -export = r; +declare var recursiveReadDir: RecursiveReaddir.readDir; +export = recursiveReadDir; diff --git a/types/recursive-readdir/recursive-readdir-tests.ts b/types/recursive-readdir/recursive-readdir-tests.ts index 813ec80f90..b53c676f2f 100644 --- a/types/recursive-readdir/recursive-readdir-tests.ts +++ b/types/recursive-readdir/recursive-readdir-tests.ts @@ -1,5 +1,13 @@ - +import * as fs from "fs"; import recursiveReaddir = require("recursive-readdir"); recursiveReaddir("some/path", (err, files) => {}); recursiveReaddir("some/path", ["foo.cs", "*.html"], (err, files) => {}); + +function apple(a: string, b: fs.Stats): boolean { + return true; +} + +async function banana(): Promise<string[]> { + return recursiveReaddir("some/path", [apple]); +} diff --git a/types/recursive-readdir/tsconfig.json b/types/recursive-readdir/tsconfig.json index 9c9110dd5f..3fc7f0590f 100644 --- a/types/recursive-readdir/tsconfig.json +++ b/types/recursive-readdir/tsconfig.json @@ -1,12 +1,13 @@ { "compilerOptions": { + "target": "es2015", "module": "commonjs", "lib": [ "es6" ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -19,4 +20,4 @@ "index.d.ts", "recursive-readdir-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/recursive-readdir/tslint.json b/types/recursive-readdir/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/recursive-readdir/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/recursive-readdir/v1/index.d.ts b/types/recursive-readdir/v1/index.d.ts new file mode 100644 index 0000000000..fd64702889 --- /dev/null +++ b/types/recursive-readdir/v1/index.d.ts @@ -0,0 +1,20 @@ +// Type definitions for recursive-readdir v1.2.1 +// Project: https://github.com/jergason/recursive-readdir/ +// Definitions by: Elisée Maurer <https://github.com/elisee> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// <reference types="node" /> + + +import * as fs from "fs"; +declare namespace RecursiveReaddir { + interface readdir { + (path: string, callback: (error: Error, files: string[]) => any): void; + // ignorePattern supports glob syntax via https://github.com/isaacs/minimatch + (path: string, ignorePattern: (string | ((file: string, stats: fs.Stats) => void))[], callback: (error: Error, files: string[]) => any): void; + (path: string, ignoreFunction: (file: string, stats: fs.Stats) => void, callback: (error: Error, files: string[]) => any): void; + } +} + +declare var r: RecursiveReaddir.readdir; +export = r; diff --git a/types/recursive-readdir/v1/recursive-readdir-tests.ts b/types/recursive-readdir/v1/recursive-readdir-tests.ts new file mode 100644 index 0000000000..813ec80f90 --- /dev/null +++ b/types/recursive-readdir/v1/recursive-readdir-tests.ts @@ -0,0 +1,5 @@ + +import recursiveReaddir = require("recursive-readdir"); + +recursiveReaddir("some/path", (err, files) => {}); +recursiveReaddir("some/path", ["foo.cs", "*.html"], (err, files) => {}); diff --git a/types/recursive-readdir/v1/tsconfig.json b/types/recursive-readdir/v1/tsconfig.json new file mode 100644 index 0000000000..1cb22bfc3c --- /dev/null +++ b/types/recursive-readdir/v1/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "recursive-readdir": [ "recursive-readdir/v1" ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "recursive-readdir-tests.ts" + ] +} diff --git a/types/redux-actions/index.d.ts b/types/redux-actions/index.d.ts index d088592217..45ecf21933 100644 --- a/types/redux-actions/index.d.ts +++ b/types/redux-actions/index.d.ts @@ -56,7 +56,7 @@ export type ReducerMeta<State, Payload, Meta> = (state: State, action: ActionMet export type ActionFunction0<R> = () => R; export type ActionFunction1<T1, R> = (t1: T1) => R; export type ActionFunction2<T1, T2, R> = (t1: T1, t2: T2) => R; -export type ActionFunction3<T1, T2, T3, R> = (t1: T1, t2: T2, t3: T3) => R; +export type ActionFunction3<T1, T2, T3, R> = (t1: T1, t2: T2, t3: T3) => R; export type ActionFunction4<T1, T2, T3, T4, R> = (t1: T1, t2: T2, t3: T3, t4: T4) => R; export type ActionFunctionAny<R> = (...args: any[]) => R; @@ -154,14 +154,14 @@ export function combineActions(...actionTypes: Array<ActionFunctions<any> | stri export interface ActionMap<Payload, Meta> { [actionType: string]: - ActionMap<Payload, Meta> | - ActionFunctionAny<Payload> | - [ActionFunctionAny<Payload>, ActionFunctionAny<Meta>] | - undefined; + ActionMap<Payload, Meta> | + ActionFunctionAny<Payload> | + [ActionFunctionAny<Payload>, ActionFunctionAny<Meta>] | + undefined; } -export function createActions<Payload, Meta>( - actionMap: ActionMap<Payload, Meta>, +export function createActions<Payload>( + actionMap: ActionMap<Payload, any>, ...identityActions: string[] ): { [actionName: string]: ActionFunctionAny<Action<Payload>> diff --git a/types/redux-actions/redux-actions-tests.ts b/types/redux-actions/redux-actions-tests.ts index 003599c8bc..b7eeb2e62f 100644 --- a/types/redux-actions/redux-actions-tests.ts +++ b/types/redux-actions/redux-actions-tests.ts @@ -1,4 +1,4 @@ -import * as ReduxActions from "redux-actions"; +import * as ReduxActions from 'redux-actions'; let state: number; const minimalAction: ReduxActions.BaseAction = { type: 'INCREMENT' }; @@ -33,14 +33,14 @@ const actionHandlerWithReduceMap = ReduxActions.handleAction<number, number>( state = actionHandlerWithReduceMap(0, multiplyAction(10)); -const actionsHandler = ReduxActions.handleActions<number, number>({ +const actionsHandler = ReduxActions.handleActions({ INCREMENT: (state: number, action: ReduxActions.Action<number>) => state + action.payload, MULTIPLY: (state: number, action: ReduxActions.Action<number>) => state * action.payload }, 0); state = actionsHandler(0, { type: 'INCREMENT' }); -const actionsHandlerWithInitialState = ReduxActions.handleActions<number, number>({ +const actionsHandlerWithInitialState = ReduxActions.handleActions({ INCREMENT: { next: (state: number, action: ReduxActions.Action<number>) => state + action.payload, }, @@ -112,9 +112,9 @@ ReduxActions.Action<TypedPayload> = ReduxActions.createAction<TypedPayload, numb const actionFrom2Args = typedIncrementAction2TypedArgs(10, '100'); actionFrom1Arg.payload.increase === 110; -const typedActionHandlerReducerMap = ReduxActions.handleActions<TypedState, TypedPayload>( +const typedActionHandlerReducerMap = ReduxActions.handleActions( { - INCREMENT: (state: TypedState, action: ReduxActions.Action<TypedPayload>) => ({ value: state.value + 1 }) + INCREMENT: (state: TypedState, action: ReduxActions.Action<any>) => ({ value: state.value + 1 }) }, {value: 1} ); @@ -159,7 +159,7 @@ const typedActionHandlerReducerMetaMap = ReduxActions.handleActions<TypedState, typedState = typedActionHandlerReducerMetaMap({ value: 0 }, actionMetaFromAnyArgs); const typedActionWithMeta1TypedArg: (value: number) => ReduxActions.ActionMeta<TypedPayload, MetaType> = - ReduxActions.createAction<TypedPayload, MetaType, number>( + ReduxActions.createAction( 'INCREMENT_BY', amount => ({ increase: amount }), amount => ({ remote: true }) @@ -172,7 +172,7 @@ actionMetaFrom1Arg.meta.remote; typedState = typedActionHandlerReducerMetaMap({ value: 0 }, actionMetaFrom1Arg); const typedActionWithMeta2TypedArgs: (value: number, remote: boolean) => ReduxActions.ActionMeta<TypedPayload, MetaType> = - ReduxActions.createAction<TypedPayload, MetaType, number, boolean>( + ReduxActions.createAction( 'INCREMENT_BY', (amount, remote) => ({ increase: amount }), (amount, remote) => ({ remote }) diff --git a/types/redux-auth-wrapper/authWrapper.d.ts b/types/redux-auth-wrapper/authWrapper.d.ts index a37f744fe1..e90fa674dd 100644 --- a/types/redux-auth-wrapper/authWrapper.d.ts +++ b/types/redux-auth-wrapper/authWrapper.d.ts @@ -1,5 +1,5 @@ import { ReactType } from "react"; -import { AuthConfig, AuthWrapperDecorator } from "redux-auth-wrapper"; +import { AuthConfig, AuthWrapperDecorator } from "."; export interface InjectedAuthProps { isAuthenticated: boolean; diff --git a/types/redux-auth-wrapper/connectedAuthWrapper.d.ts b/types/redux-auth-wrapper/connectedAuthWrapper.d.ts index 9b2ab295a5..ceb9bb8d21 100644 --- a/types/redux-auth-wrapper/connectedAuthWrapper.d.ts +++ b/types/redux-auth-wrapper/connectedAuthWrapper.d.ts @@ -1,6 +1,6 @@ import { ReactType } from "react"; -import { AuthBaseConfig, AuthWrapperDecorator } from "redux-auth-wrapper"; -import { AuthWrapperConfig, InjectedAuthProps } from "redux-auth-wrapper/authWrapper"; +import { AuthBaseConfig, AuthWrapperDecorator } from "."; +import { AuthWrapperConfig, InjectedAuthProps } from "./authWrapper"; export type ConnectedAuthWrapperConfig<OwnProps = {}, State = {}> = AuthWrapperConfig & AuthBaseConfig<OwnProps, State>; diff --git a/types/redux-auth-wrapper/history3/redirect.d.ts b/types/redux-auth-wrapper/history3/redirect.d.ts index 44391e5417..9827ed44f0 100644 --- a/types/redux-auth-wrapper/history3/redirect.d.ts +++ b/types/redux-auth-wrapper/history3/redirect.d.ts @@ -1,8 +1,8 @@ import { Action, Store } from "redux"; import { Location, LocationDescriptorObject } from "history"; -import { AuthBaseConfig, AuthConfig, AuthWrapperDecorator, StateSelector } from "redux-auth-wrapper"; -import { InjectedAuthProps } from "redux-auth-wrapper/authWrapper"; -import { ConnectedAuthWrapperConfig } from "redux-auth-wrapper/connectedAuthWrapper"; +import { AuthBaseConfig, AuthConfig, AuthWrapperDecorator, StateSelector } from ".."; +import { InjectedAuthProps } from "../authWrapper"; +import { ConnectedAuthWrapperConfig } from "../connectedAuthWrapper"; export interface InjectedAuthReduxProps extends InjectedAuthProps { redirectPath: string; diff --git a/types/redux-auth-wrapper/history4/locationHelper.d.ts b/types/redux-auth-wrapper/history4/locationHelper.d.ts index e40a1bdb03..7dbb603483 100644 --- a/types/redux-auth-wrapper/history4/locationHelper.d.ts +++ b/types/redux-auth-wrapper/history4/locationHelper.d.ts @@ -1,3 +1,3 @@ -import locationHelperBuilder from "redux-auth-wrapper/history3/locationHelper"; -export { LocationHelper, LocationHelperConfig } from "redux-auth-wrapper/history3/locationHelper"; +import locationHelperBuilder from "../history3/locationHelper"; +export { LocationHelper, LocationHelperConfig } from "../history3/locationHelper"; export default locationHelperBuilder; diff --git a/types/redux-auth-wrapper/history4/redirect.d.ts b/types/redux-auth-wrapper/history4/redirect.d.ts index 29cec8cfcb..09708b5dfe 100644 --- a/types/redux-auth-wrapper/history4/redirect.d.ts +++ b/types/redux-auth-wrapper/history4/redirect.d.ts @@ -1,17 +1,17 @@ import { Action } from "redux"; import { Location } from "history"; -import { AuthWrapperDecorator } from "redux-auth-wrapper"; +import { AuthWrapperDecorator } from ".."; import { ConnectedRouterRedirectConfig, InjectedAuthReduxProps -} from "redux-auth-wrapper/history3/redirect"; +} from "../history3/redirect"; export { connectedRouterRedirect, ConnectedRouterRedirectConfig, InjectedAuthReduxProps, InjectedAuthRouterProps -} from "redux-auth-wrapper/history3/redirect"; +} from "../history3/redirect"; export interface ConnectedReduxRedirectConfig<OwnProps = {}, State = {}> extends ConnectedRouterRedirectConfig<OwnProps, State> { redirectAction(location: Location): Action; diff --git a/types/redux-first-router-link/index.d.ts b/types/redux-first-router-link/index.d.ts new file mode 100644 index 0000000000..d7b2e7a079 --- /dev/null +++ b/types/redux-first-router-link/index.d.ts @@ -0,0 +1,56 @@ +// Type definitions for redux-first-router-link 1.4 +// Project: https://github.com/faceyspacey/redux-first-router-link#readme +// Definitions by: janb87 <https://github.com/janb87> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +import * as React from "react"; +import { Location } from 'redux-first-router'; + +export type To = string | string[] | object; + +export type OnClick = false | ((e: React.SyntheticEvent<HTMLElement>) => boolean | undefined); + +export interface Match<P> { + params: P; + isExact: boolean; + path: string; + url: string; +} + +export interface LinkProps { + to: To; + redirect?: boolean; + replace?: boolean; + tagName?: string; + children?: React.ReactNode; + onPress?: OnClick; + onClick?: OnClick; + down?: boolean; + shouldDispatch?: boolean; + target?: string; +} + +export default class Link extends React.Component<LinkProps> {} + +export interface NavLinkProps { + to: To; + redirect?: boolean; + replace?: boolean; + children?: React.ReactNode; + onPress?: OnClick; + onClick?: OnClick; + down?: boolean; + shouldDispatch?: boolean; + target?: string; + className?: string; + style?: React.CSSProperties; + activeClassName?: string; + activeStyle?: React.CSSProperties; + ariaCurrent?: string; + exact?: boolean; + strict?: boolean; + isActive?(match: Match<object>, location: Location): boolean; +} + +export class NavLink extends React.Component<NavLinkProps> {} diff --git a/types/redux-first-router-link/redux-first-router-link-tests.tsx b/types/redux-first-router-link/redux-first-router-link-tests.tsx new file mode 100644 index 0000000000..01889e5fe1 --- /dev/null +++ b/types/redux-first-router-link/redux-first-router-link-tests.tsx @@ -0,0 +1,31 @@ +import * as React from "react"; +import Link, { NavLink } from "redux-first-router-link"; + +interface Payload { + category: string; +} + +export default () => { + return ( + <div> + { /* as a standard href path string: */ } + <Link to='/list/db-graphql'>DB & GRAPHQL</Link> + + { /* as an array of path segments: */ } + <Link to={['list', 'react-redux']}>REACT & REDUX</Link> + + { /* as an action object (RECOMMENDED APPROACH SO YOU CAN CHANGE ALL URLs FROM YOUR ROUTESMAP): */ } + <Link to={{type: 'LIST', payload: { category: 'fp' }}}>FP</Link> + + <NavLink + to={{ type: 'LIST', payload: { category: 'redux-first-router' } }} + activeClassName='active' + activeStyle={{ color: 'purple' }} + exact={true} + strict={true} + isActive={(match, location) => (location.payload as Payload).category === 'redux-first-router'} > + Redux First Router + </NavLink> + </div> + ); +}; diff --git a/types/redux-first-router-link/tsconfig.json b/types/redux-first-router-link/tsconfig.json new file mode 100644 index 0000000000..ea8c862f20 --- /dev/null +++ b/types/redux-first-router-link/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "jsx": "react" + }, + "files": [ + "index.d.ts", + "redux-first-router-link-tests.tsx" + ] +} diff --git a/types/redux-first-router-link/tslint.json b/types/redux-first-router-link/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/redux-first-router-link/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/redux-localstorage/lib/adapters/AsyncStorage.d.ts b/types/redux-localstorage/lib/adapters/AsyncStorage.d.ts index f917bcc1d0..4edc6bde97 100644 --- a/types/redux-localstorage/lib/adapters/AsyncStorage.d.ts +++ b/types/redux-localstorage/lib/adapters/AsyncStorage.d.ts @@ -1,3 +1,3 @@ -import { StorageAdapterCreator } from "redux-localstorage"; +import { StorageAdapterCreator } from "../.."; declare const adapterCreator: StorageAdapterCreator<any>; export = adapterCreator; diff --git a/types/redux-localstorage/lib/adapters/localStorage.d.ts b/types/redux-localstorage/lib/adapters/localStorage.d.ts index 65fad8d445..4b6fcbe00c 100644 --- a/types/redux-localstorage/lib/adapters/localStorage.d.ts +++ b/types/redux-localstorage/lib/adapters/localStorage.d.ts @@ -1,3 +1,3 @@ -import { StorageAdapterCreator } from "redux-localstorage"; +import { StorageAdapterCreator } from "../.."; declare const adapterCreator: StorageAdapterCreator<Storage>; export = adapterCreator; diff --git a/types/redux-localstorage/lib/adapters/sessionStorage.d.ts b/types/redux-localstorage/lib/adapters/sessionStorage.d.ts index 65fad8d445..4b6fcbe00c 100644 --- a/types/redux-localstorage/lib/adapters/sessionStorage.d.ts +++ b/types/redux-localstorage/lib/adapters/sessionStorage.d.ts @@ -1,3 +1,3 @@ -import { StorageAdapterCreator } from "redux-localstorage"; +import { StorageAdapterCreator } from "../.."; declare const adapterCreator: StorageAdapterCreator<Storage>; export = adapterCreator; diff --git a/types/redux-logger/index.d.ts b/types/redux-logger/index.d.ts index d241a8ab7b..d60d3ad218 100644 --- a/types/redux-logger/index.d.ts +++ b/types/redux-logger/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for redux-logger v3.0.0 // Project: https://github.com/fcomb/redux-logger // Definitions by: Alexander Rusakov <https://github.com/arusakov> +// Kevin Groat <https://github.com/kgroat> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export as namespace ReduxLogger; @@ -34,7 +35,7 @@ export interface ReduxLoggerOptions { level?: string | ActionToString | LevelObject; duration?: boolean; timestamp?: boolean; - colors?: ColorsObject; + colors?: ColorsObject | false; logger?: any; logErrors?: boolean; collapsed?: boolean | LoggerPredicate; diff --git a/types/redux-logger/redux-logger-tests.ts b/types/redux-logger/redux-logger-tests.ts index 3ede2b8806..7349e556c4 100644 --- a/types/redux-logger/redux-logger-tests.ts +++ b/types/redux-logger/redux-logger-tests.ts @@ -26,6 +26,10 @@ let loggerCollapsedPredicate = createLogger({ collapsed: (getAction, action) => true }); +let loggerColorsOverallBoolean = createLogger({ + colors: false +}); + let loggerColorsBoolean = createLogger({ colors: { title: false, diff --git a/types/redux-persist-transform-encrypt/async.d.ts b/types/redux-persist-transform-encrypt/async.d.ts index 68bcb6c3b8..189b0af333 100644 --- a/types/redux-persist-transform-encrypt/async.d.ts +++ b/types/redux-persist-transform-encrypt/async.d.ts @@ -1,3 +1,3 @@ -import createAsyncEncryptor from "redux-persist-transform-encrypt"; +import createAsyncEncryptor from "."; export default createAsyncEncryptor; diff --git a/types/redux-promise/index.d.ts b/types/redux-promise/index.d.ts index 415709cd4e..5c0a5b3f50 100644 --- a/types/redux-promise/index.d.ts +++ b/types/redux-promise/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/acdlite/redux-promise // Definitions by: Rogelio Morrell Caballero <https://github.com/molekilla>, Kaur Kuut <https://github.com/xStrom> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 import * as Redux from 'redux'; diff --git a/types/request-promise-native/errors.d.ts b/types/request-promise-native/errors.d.ts new file mode 100644 index 0000000000..2658b0dd7c --- /dev/null +++ b/types/request-promise-native/errors.d.ts @@ -0,0 +1,41 @@ +import rp = require('.'); +import http = require('http'); + +export interface RequestError extends Error { + cause: any; + error: any; + options: rp.Options; + response: http.IncomingMessage; +} +export interface RequestErrorConstructor { + new(cause: any, options: rp.Options, response: http.IncomingMessage): RequestError; + (cause: any, options: rp.Options, response: http.IncomingMessage): RequestError; + prototype: RequestError; +} +export const RequestError: RequestErrorConstructor; + +export interface StatusCodeError extends Error { + statusCode: number; + error: any; + options: rp.Options; + response: http.IncomingMessage; +} +export interface StatusCodeErrorConstructor extends Error { + new(statusCode: number, body: any, options: rp.Options, response: http.IncomingMessage): StatusCodeError; + (statusCode: number, body: any, options: rp.Options, response: http.IncomingMessage): StatusCodeError; + prototype: StatusCodeError; +} +export const StatusCodeError: StatusCodeErrorConstructor; + +export interface TransformError extends Error { + cause: any; + error: any; + options: rp.Options; + response: http.IncomingMessage; +} +export interface TransformErrorConstructor extends Error { + new(cause: any, options: rp.Options, response: http.IncomingMessage): TransformError; + (cause: any, options: rp.Options, response: http.IncomingMessage): TransformError; + prototype: TransformError; +} +export const TransformError: TransformErrorConstructor; diff --git a/types/request-promise-native/index.d.ts b/types/request-promise-native/index.d.ts index 151120dcd4..69b51d0480 100644 --- a/types/request-promise-native/index.d.ts +++ b/types/request-promise-native/index.d.ts @@ -3,71 +3,25 @@ // Definitions by: Gustavo Henke <https://github.com/gustavohenke> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module 'request-promise-native' { - import request = require('request'); - import http = require('http'); +import request = require('request'); +import http = require('http'); - namespace requestPromise { - interface RequestPromise extends request.Request, Promise<any> { - promise(): Promise<any>; - } - - interface RequestPromiseOptions extends request.CoreOptions { - simple?: boolean; - transform?(body: any, response: http.IncomingMessage, resolveWithFullResponse?: boolean): any; - resolveWithFullResponse?: boolean; - } - - type FullResponse = request.RequestResponse; - type OptionsWithUri = request.UriOptions & RequestPromiseOptions; - type OptionsWithUrl = request.UrlOptions & RequestPromiseOptions; - type Options = OptionsWithUri | OptionsWithUrl; +declare namespace requestPromise { + interface RequestPromise extends request.Request, Promise<any> { + promise(): Promise<any>; } - let requestPromise: request.RequestAPI<requestPromise.RequestPromise, requestPromise.RequestPromiseOptions, request.RequiredUriUrl>; - export = requestPromise; + interface RequestPromiseOptions extends request.CoreOptions { + simple?: boolean; + transform?(body: any, response: http.IncomingMessage, resolveWithFullResponse?: boolean): any; + resolveWithFullResponse?: boolean; + } + + type FullResponse = request.RequestResponse; + type OptionsWithUri = request.UriOptions & RequestPromiseOptions; + type OptionsWithUrl = request.UrlOptions & RequestPromiseOptions; + type Options = OptionsWithUri | OptionsWithUrl; } -declare module 'request-promise-native/errors' { - import rp = require('request-promise-native'); - import http = require('http'); - - interface RequestError extends Error { - cause: any; - error: any; - options: rp.Options; - response: http.IncomingMessage; - } - interface RequestErrorConstructor { - new(cause: any, options: rp.Options, response: http.IncomingMessage): RequestError; - (cause: any, options: rp.Options, response: http.IncomingMessage): RequestError; - prototype: RequestError; - } - const RequestError: RequestErrorConstructor; - - interface StatusCodeError extends Error { - statusCode: number; - error: any; - options: rp.Options; - response: http.IncomingMessage; - } - interface StatusCodeErrorConstructor extends Error { - new(statusCode: number, body: any, options: rp.Options, response: http.IncomingMessage): StatusCodeError; - (statusCode: number, body: any, options: rp.Options, response: http.IncomingMessage): StatusCodeError; - prototype: StatusCodeError; - } - const StatusCodeError: StatusCodeErrorConstructor; - - interface TransformError extends Error { - cause: any; - error: any; - options: rp.Options; - response: http.IncomingMessage; - } - interface TransformErrorConstructor extends Error { - new(cause: any, options: rp.Options, response: http.IncomingMessage): TransformError; - (cause: any, options: rp.Options, response: http.IncomingMessage): TransformError; - prototype: TransformError; - } - const TransformError: TransformErrorConstructor; -} +declare const requestPromise: request.RequestAPI<requestPromise.RequestPromise, requestPromise.RequestPromiseOptions, request.RequiredUriUrl>; +export = requestPromise; diff --git a/types/request-promise-native/request-promise-native-tests.ts b/types/request-promise-native/request-promise-native-tests.ts index bbdd1ef2eb..7f26f5c690 100644 --- a/types/request-promise-native/request-promise-native-tests.ts +++ b/types/request-promise-native/request-promise-native-tests.ts @@ -1,4 +1,5 @@ import * as rpn from 'request-promise-native'; +import * as errors from 'request-promise-native/errors'; import * as path from 'path'; rpn('http://www.google.com') diff --git a/types/request-promise-native/tsconfig.json b/types/request-promise-native/tsconfig.json index 292c166bcf..ef805e5515 100644 --- a/types/request-promise-native/tsconfig.json +++ b/types/request-promise-native/tsconfig.json @@ -17,6 +17,7 @@ }, "files": [ "index.d.ts", + "errors.d.ts", "request-promise-native-tests.ts" ] } \ No newline at end of file diff --git a/types/request-promise/errors.d.ts b/types/request-promise/errors.d.ts index 6f0a46113a..cead0236e8 100644 --- a/types/request-promise/errors.d.ts +++ b/types/request-promise/errors.d.ts @@ -1,4 +1,4 @@ -import rp = require('request-promise'); +import rp = require('.'); import http = require('http'); export interface RequestError extends Error { diff --git a/types/request-promise/index.d.ts b/types/request-promise/index.d.ts index 22ea95160e..7094d478d6 100644 --- a/types/request-promise/index.d.ts +++ b/types/request-promise/index.d.ts @@ -6,7 +6,7 @@ import request = require('request'); import http = require('http'); -import errors = require('request-promise/errors'); +import errors = require('./errors'); import Promise = require('bluebird'); declare namespace requestPromise { diff --git a/types/request/index.d.ts b/types/request/index.d.ts index ea666a033b..e3c420efa8 100644 --- a/types/request/index.d.ts +++ b/types/request/index.d.ts @@ -288,6 +288,7 @@ declare namespace request { token_secret?: string; transport_method?: 'body' | 'header' | 'query'; verifier?: string; + body_hash?: true | string } export interface HawkOptions { diff --git a/types/request/request-tests.ts b/types/request/request-tests.ts index f6a8dff9f8..50a9d19637 100644 --- a/types/request/request-tests.ts +++ b/types/request/request-tests.ts @@ -9,6 +9,7 @@ import FormData = require('form-data'); var value: any; var str: string; var strOrUndef: string | undefined; +var strOrTrueOrUndef: string | true | undefined; var buffer: NodeBuffer = new Buffer('foo'); var num: number = 0; var bool: boolean; @@ -76,7 +77,7 @@ var aws: request.AWSOptions = { secret: 'foo' }; str = aws.secret; strOrUndef = aws.bucket; -var oauth: request.OAuthOptions = {}; +var oauth: request.OAuthOptions = { body_hash: 'foo' }; strOrUndef = oauth.callback; strOrUndef = oauth.consumer_key; strOrUndef = oauth.consumer_secret; @@ -84,6 +85,7 @@ strOrUndef = oauth.token; strOrUndef = oauth.token_secret; strOrUndef = oauth.transport_method; strOrUndef = oauth.verifier; +strOrTrueOrUndef = oauth.body_hash; var options: request.Options = { url: str, diff --git a/types/restify/index.d.ts b/types/restify/index.d.ts index e7b5629ded..8cc5fa6635 100644 --- a/types/restify/index.d.ts +++ b/types/restify/index.d.ts @@ -2,30 +2,23 @@ // Project: https://github.com/restify/node-restify // Definitions by: Bret Little <https://github.com/blittle>, Steve Hipwell <https://github.com/stevehipwell> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 +// TypeScript Version: 2.2 /// <reference types="node" /> import http = require('http'); +import https = require('https'); import Logger = require('bunyan'); import url = require('url'); - -export interface BunyanOptions { - properties: any; - - serializers: any; - - headers: any; - - log: Logger; -} +import spdy = require('spdy'); +import stream = require('stream'); export interface ServerOptions { - ca?: any; + ca?: string | Buffer | ReadonlyArray<string | Buffer>; - certificate?: any; + certificate?: string | Buffer | ReadonlyArray<string | Buffer>; - key?: any; + key?: string | Buffer | ReadonlyArray<string | Buffer>; passphrase?: string; @@ -33,13 +26,13 @@ export interface ServerOptions { ciphers?: string; - formatters?: any; + formatters?: Formatters; log?: Logger; name?: string; - spdy?: any; + spdy?: spdy.ServerOptions; version?: string; @@ -47,7 +40,7 @@ export interface ServerOptions { handleUpgrades?: boolean; - httpsServerOptions?: any; + httpsServerOptions?: https.ServerOptions; handleUncaughtExceptions?: boolean; @@ -68,16 +61,6 @@ export interface AddressInterface { address: string; } -export class Server { - /** - * Creates a new Server. - * @public - * @class - * @param {Object} options an options object - */ - constructor(options?: ServerOptions); -} - export interface Server extends http.Server { /** * Returns the server address. Wraps node's address(). @@ -325,10 +308,6 @@ export interface RouterOptions { versions?: string[]; } -export class Router { - constructor(options: RouterOptions); -} - export interface Router { /** * takes an object of route params and query params, and 'renders' a URL. @@ -942,7 +921,7 @@ export interface Response extends http.ServerResponse { * @function redirect * @return {undefined} */ - redirect(options: string | any, next: Next): void; + redirect(options: object | string, next: Next): void; /** HTTP status code. */ code: number; @@ -1025,13 +1004,70 @@ export type FindRouteCallback = (err: Error, route?: Route, params?: any) => voi export type RequestHandler = (req: Request, res: Response, next: Next) => any; export type RequestHandlerType = RequestHandler | RequestHandler[]; -export function bunyan(options?: BunyanOptions): RequestHandler; +export namespace bunyan { + interface RequestCaptureOptions { + /** The stream to which to write when dumping captured records. */ + stream?: Logger.Stream; + + /** The streams to which to write when dumping captured records. */ + streams?: ReadonlyArray<Logger.Stream>; + + /** + * The level at which to trigger dumping captured records. Defaults to + * bunyan.WARN. + */ + level?: Logger.LogLevel; + + /** Number of records to capture. Default 100. */ + maxRecords?: number; + + /** + * Number of simultaneous request id capturing buckets to maintain. + * Default 1000. + */ + maxRequestIds?: number; + + /** + * If true, then dump captured records on the *default* request id when + * dumping. I.e. dump records logged without "req_id" field. Default + * false. + */ + dumpDefault?: boolean; + } + + /** + * A Bunyan stream to capture records in a ring buffer and only pass through + * on a higher-level record. E.g. buffer up all records but only dump when + * getting a WARN or above. + */ + class RequestCaptureStream extends stream.Stream { + constructor(opts: RequestCaptureOptions); + + /** write to the stream */ + write(record: any): void; + } + + const serializers: Logger.Serializers & { + err: Logger.Serializer, + req: Logger.Serializer, + res: Logger.Serializer, + client_req: Logger.Serializer, + client_res: Logger.Serializer + }; + + /** create a bunyan logger */ + function createLogger(name: string): Logger; +} export function createServer(options?: ServerOptions): Server; -export const formatters: { - [name: string]: RequestHandler -}; +export type Formatter = (req: Request, res: Response, body: any) => string | null; + +export interface Formatters { + [contentType: string]: Formatter; +} + +export const formatters: Formatters; export namespace plugins { namespace pre { diff --git a/types/restify/restify-tests.ts b/types/restify/restify-tests.ts index ade6ce3898..1ba9b05768 100644 --- a/types/restify/restify-tests.ts +++ b/types/restify/restify-tests.ts @@ -2,8 +2,9 @@ import * as restify from "restify"; import * as url from "url"; import * as Logger from "bunyan"; import * as http from "http"; +import * as stream from "stream"; -let server = new restify.Server(); +let server: restify.Server; server = restify.createServer({ formatters: { @@ -99,7 +100,7 @@ function send(req: restify.Request, res: restify.Response, next: restify.Next) { res.writeHead(200, { "Content-Type": "application/json" }); - return next(); + next(); } server.post('/hello', send); @@ -121,7 +122,6 @@ server.versions = [""]; server.acceptable = ["test"]; server.url = ""; server.server = new http.Server(); -server.router = new restify.Router({}); server.address().port; server.address().family; @@ -149,7 +149,9 @@ server.use(restify.plugins.throttle({ } })); -server.on('after', restify.plugins.auditLogger({ event: 'after', log: {} as Logger })); +const logger = Logger.createLogger({ name: "test" }); + +server.on('after', restify.plugins.auditLogger({ event: 'after', log: logger })); server.on('after', (req: restify.Request, res: restify.Response, route: restify.Route, err: any) => { route.spec.method === 'GET'; @@ -157,9 +159,25 @@ server.on('after', (req: restify.Request, res: restify.Response, route: restify. route.spec.path === '/some/path'; route.spec.path === /\/some\/path\/.*/; route.spec.versions === ['v1']; - restify.plugins.auditLogger({ event: 'after', log: {} as Logger })(req, res, route, err); + restify.plugins.auditLogger({ event: 'after', log: logger })(req, res, route, err); }); (<any> restify).defaultResponseHeaders = function(this: restify.Request, data: any) { this.header('Server', 'helloworld'); }; + +const loggerStream: Logger.Stream = {}; + +const requestCaptureOptions: restify.bunyan.RequestCaptureOptions = {}; +requestCaptureOptions.stream = loggerStream; +requestCaptureOptions.streams = Object.freeze([loggerStream, loggerStream]); +requestCaptureOptions.level = Logger.DEBUG; +requestCaptureOptions.level = "info"; +requestCaptureOptions.maxRecords = 50; +requestCaptureOptions.maxRequestIds = 500; +requestCaptureOptions.dumpDefault = true; + +const requestCaptureStream = new restify.bunyan.RequestCaptureStream(requestCaptureOptions); +const asStream: stream.Stream = requestCaptureStream; + +const logger2: Logger = restify.bunyan.createLogger("horse"); diff --git a/types/restify/tslint.json b/types/restify/tslint.json index 718fb8f298..f93cf8562a 100644 --- a/types/restify/tslint.json +++ b/types/restify/tslint.json @@ -1,9 +1,3 @@ { - "extends": "dtslint/dt.json", - "rules": { - // TODOs - "no-any-union": false, - "no-object-literal-type-assertion": false, - "no-void-expression": false - } + "extends": "dtslint/dt.json" } diff --git a/types/restling/index.d.ts b/types/restling/index.d.ts new file mode 100644 index 0000000000..02a083078a --- /dev/null +++ b/types/restling/index.d.ts @@ -0,0 +1,232 @@ +// Type definitions for restling 0.9 +// Project: https://github.com/lucasfeliciano/restling +// Definitions by: Alessandro vergani <https://github.com/loghorn> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as Promise from "bluebird"; +import * as Restler from "restler"; +import { ServerResponse } from "http"; + +/** + * Create a DELETE request. + * @param {string} url A url address. + * @param {RestlingOptions} options Options. + * @return {Promise<RestlingResult>} Result. + */ +export function del(url: string, options?: RestlingOptions): Promise<RestlingResult>; + +/** + * Create a GET request. + * @param {string} url A url address. + * @param {RestlingOptions} options Options. + * @return {Promise<RestlingResult>} Result. + */ +export function get(url: string, options?: RestlingOptions): Promise<RestlingResult>; + +/** + * Create a HEAD request. + * @param {string} url A url address. + * @param {RestlingOptions} options Options. + * @return {Promise<RestlingResult>} Result. + */ +export function head(url: string, options?: RestlingOptions): Promise<RestlingResult>; + +/** + * Send json data via GET method. + * @param {string} url A url address. + * @param {any} data JSON body + * @param {RestlingOptions} options Options. + * @return {Promise<RestlingResult>} Result. + */ +export function json(url: string, data?: any, options?: RestlingOptions, method?: string): Promise<RestlingResult>; + +/** + * Create a PATCH request. + * @param {string} url A url address. + * @param {RestlingOptions} options Options. + * @return {Promise<RestlingResult>} Result. + */ +export function patch(url: string, options?: RestlingOptions): Promise<RestlingResult>; + +/** + * Send json data via PATCH method. + * @param {string} url A url address. + * @param {any} data JSON body + * @param {RestlingOptions} options Options. + * @return {Promise<RestlingResult>} Result. + */ +export function patchJson(url: string, data?: any, options?: RestlingOptions): Promise<RestlingResult>; + +/** + * Create a POST request. + * @param {string} url A url address. + * @param {RestlingOptions} options Options. + * @return {Promise<RestlingResult>} Result. + */ +export function post(url: string, options?: RestlingOptions): Promise<RestlingResult>; + +/** + * Send json data via POST method. + * @param {string} url A url address. + * @param {any} data JSON body + * @param {RestlingOptions} options Options. + * @return {Promise<RestlingResult>} Result. + */ +export function postJson(url: string, data?: any, options?: RestlingOptions): Promise<RestlingResult>; + +/** + * Create a PUT request. + * @param {string} url A url address. + * @param {RestlingOptions} options Options. + * @return {Promise<RestlingResult>} Result. + */ +export function put(url: string, options?: RestlingOptions): Promise<RestlingResult>; + +/** + * Send json data via PUT method. + * @param {string} url A url address. + * @param {any} data JSON body + * @param {RestlingOptions} options Options. + * @return {Promise<RestlingResult>} Result. + */ +export function putJson(url: string, data?: any, options?: RestlingOptions): Promise<RestlingResult>; + +/** + * Create a request. + * @param {string} url A url address. + * @param {RestlingOptions} options Options. + * @return {Promise<RestlingResult>} Result. + */ +export function request(url: string, options?: RestlingOptions): Promise<RestlingResult>; + +export function settleAsync(requests: [{ url: string, options?: RestlingOptions }]): Promise<[RestlingResult]>; +export function settleAsync(requests: { [key: string]: { url: string, options?: RestlingOptions } }): Promise<{ [key: string]: RestlingResult }>; + +export function allAsync(requests: [{ url: string, options?: RestlingOptions }]): Promise<[RestlingResult]>; +export function allAsync(requests: { [key: string]: { url: string, options?: RestlingOptions } }): Promise<{ [key: string]: RestlingResult }>; + +/** + * Interface for the result. + * @interface + */ +export interface RestlingResult { + data?: any; + response?: ServerResponse; +} + +/** + * Interface for the header. + * @interface + */ +export interface RestlerOptionsHeader { + [headerName: string]: string; +} + +/** + * Interface for restler options. + * @interface + */ +export interface RestlingOptions { + /** + * OAuth Bearer Token. + * @type {string} + */ + accessToken?: string; + + /** + * HTTP Agent instance to use. If not defined globalAgent will be used. If false opts out of connection pooling with an Agent, defaults request to Connection: close. + * @type {any} + */ + agent?: any; + + /** + * A http.Client instance if you want to reuse or implement some kind of connection pooling. + * @type {any} + */ + client?: any; + + /** + * Data to be added to the body of the request. + * @type {any} + */ + data?: any; + + /** + * Encoding of the response body + * @type {string} + */ + decoding?: string; + + /** + * Encoding of the request body. + * @type {string} + */ + encoding?: string; + + /** + * If set will recursively follow redirects. + * @type {boolean} + */ + followRedirects?: boolean; + + /** + * A hash of HTTP headers to be sent. + * @type {RestlerOptionsHeader} + */ + headers?: RestlerOptionsHeader; + + /** + * Request method + * @type {string} + */ + method?: string; + + /** + * If set the data passed will be formatted as <code>multipart/form-encoded</code>. + * @type {boolean} + */ + multipart?: boolean; + + /** + * A function that will be called on the returned data. Use any of predefined <code>restler.parsers</code>. + * @type {any} + */ + parser?: any; + + /** + * Basic auth password. + * @type {string} + */ + password?: string; + + /** + * Query string variables as a javascript object, will override the querystring in the URL. + * @type {any} + */ + query?: any; + + /** + * If true, the server certificate is verified against the list of supplied CAs. + * An 'error' event is emitted if verification fails. Verification happens at the connection level, before the HTTP request is sent. + * @type {boolean} + */ + rejectUnauthorized?: boolean; + + /** + * Emit the timeout event when the response does not return within the said value (in ms). + * @type {number} + */ + timeout?: number; + + /** + * Basic auth username. + * @type {string} + */ + username?: string; + + /** + * Options for xml2js. + * @type {any} + */ + xml2js?: any; +} diff --git a/types/restling/restling-tests.ts b/types/restling/restling-tests.ts new file mode 100644 index 0000000000..143633bdad --- /dev/null +++ b/types/restling/restling-tests.ts @@ -0,0 +1,40 @@ +import * as rest from "restling"; + +rest.request("http://localhost").then(console.log); +rest.request("http://localhost", { agent: "test", timeout: 5000 }).then(console.log); + +rest.del("http://localhost", { agent: "test", timeout: 5000 }).then(console.log); + +rest.get("http://localhost", { agent: "test", timeout: 5000 }).then(console.log); + +rest.head("http://localhost", { agent: "test", timeout: 5000 }).then(console.log); + +rest.patch("http://localhost", { agent: "test", timeout: 5000 }).then(console.log); + +rest.post("http://localhost", { agent: "test", timeout: 5000 }).then(console.log); + +rest.put("http://localhost", { agent: "test", timeout: 5000 }).then(console.log); + +rest.patchJson("http://localhost", { num: 100, str: "string" }, { agent: "test", timeout: 5000 }).then(console.log); + +rest.postJson("http://localhost", { num: 100, str: "string" }, { agent: "test", timeout: 5000 }).then(console.log); + +rest.putJson("http://localhost", { num: 100, str: "string" }, { agent: "test", timeout: 5000 }).then(console.log); + +rest.settleAsync([ + { url: "http://localhost" }, + { url: "http://localhost" } +]).then(console.log); +rest.settleAsync({ + r1: { url: "http://localhost" }, + r2: { url: "http://localhost" } +}).then(console.log); + +rest.allAsync([ + { url: "http://localhost" }, + { url: "http://localhost" } +]).then(console.log); +rest.allAsync({ + r1: { url: "http://localhost" }, + r2: { url: "http://localhost" } +}).then(console.log); diff --git a/types/restling/tsconfig.json b/types/restling/tsconfig.json new file mode 100644 index 0000000000..d36e06acab --- /dev/null +++ b/types/restling/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "restling-tests.ts" + ] +} diff --git a/types/restling/tslint.json b/types/restling/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/restling/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/rrule/tslint.json b/types/rrule/tslint.json index fb15919cf4..96de5e929b 100644 --- a/types/rrule/tslint.json +++ b/types/rrule/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODOs + "no-declare-current-package": false, "no-mergeable-namespace": false, "no-unnecessary-qualifier": false } diff --git a/types/rx-core-binding/tslint.json b/types/rx-core-binding/tslint.json index 1e909e7010..9bd93a98fd 100644 --- a/types/rx-core-binding/tslint.json +++ b/types/rx-core-binding/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODOs "dt-header": false, + "no-declare-current-package": false, "no-empty-interface": false, "interface-name": false, "no-single-declare-module": false, diff --git a/types/rx-core/tslint.json b/types/rx-core/tslint.json index ffad78663c..af05206613 100644 --- a/types/rx-core/tslint.json +++ b/types/rx-core/tslint.json @@ -4,6 +4,7 @@ // TODOs "dt-header": false, "unified-signatures": false, + "no-declare-current-package": false, "no-empty-interface": false, "interface-name": false, "no-single-declare-module": false, diff --git a/types/rx-lite-aggregates/tslint.json b/types/rx-lite-aggregates/tslint.json index 277fa239e2..3043cd814e 100644 --- a/types/rx-lite-aggregates/tslint.json +++ b/types/rx-lite-aggregates/tslint.json @@ -4,6 +4,7 @@ // TODO "dt-header": false, "unified-signatures": false, + "no-declare-current-package": false, "no-single-declare-module": false } } diff --git a/types/rx-lite-async/tslint.json b/types/rx-lite-async/tslint.json index 4428b956c7..e168f9e744 100644 --- a/types/rx-lite-async/tslint.json +++ b/types/rx-lite-async/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODOs "max-line-length": false, + "no-declare-current-package": false, "no-object-literal-type-assertion": false, "no-single-declare-module": false } diff --git a/types/rx-lite-backpressure/tslint.json b/types/rx-lite-backpressure/tslint.json index 075fa88707..bd3bb78849 100644 --- a/types/rx-lite-backpressure/tslint.json +++ b/types/rx-lite-backpressure/tslint.json @@ -1,6 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { + "no-declare-current-package": false, "no-single-declare-module": false } } diff --git a/types/rx-lite-coincidence/tslint.json b/types/rx-lite-coincidence/tslint.json index 0a71468350..0651031b32 100644 --- a/types/rx-lite-coincidence/tslint.json +++ b/types/rx-lite-coincidence/tslint.json @@ -4,6 +4,7 @@ // TODOs "dt-header": false, "unified-signatures": false, + "no-declare-current-package": false, "no-single-declare-module": false, "no-unnecessary-generics": false } diff --git a/types/rx-lite-experimental/tslint.json b/types/rx-lite-experimental/tslint.json index 9fbb93b086..b1592c7f1a 100644 --- a/types/rx-lite-experimental/tslint.json +++ b/types/rx-lite-experimental/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { "unified-signatures": false, + "no-declare-current-package": false, "no-single-declare-module": false } } diff --git a/types/rx-lite-joinpatterns/tslint.json b/types/rx-lite-joinpatterns/tslint.json index 745fa91ad5..f695a276a2 100644 --- a/types/rx-lite-joinpatterns/tslint.json +++ b/types/rx-lite-joinpatterns/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { "interface-name": false, + "no-declare-current-package": false, "no-empty-interface": false, "no-single-declare-module": false } diff --git a/types/rx-lite-testing/tslint.json b/types/rx-lite-testing/tslint.json index 40726941e3..1e457db5ef 100644 --- a/types/rx-lite-testing/tslint.json +++ b/types/rx-lite-testing/tslint.json @@ -1,6 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { + "no-declare-current-package": false, "no-single-declare-module": false, "no-unnecessary-generics": false } diff --git a/types/rx-lite-time/tslint.json b/types/rx-lite-time/tslint.json index 0a71468350..0651031b32 100644 --- a/types/rx-lite-time/tslint.json +++ b/types/rx-lite-time/tslint.json @@ -4,6 +4,7 @@ // TODOs "dt-header": false, "unified-signatures": false, + "no-declare-current-package": false, "no-single-declare-module": false, "no-unnecessary-generics": false } diff --git a/types/rx-lite-virtualtime/tslint.json b/types/rx-lite-virtualtime/tslint.json index ab1a874893..d132ae15db 100644 --- a/types/rx-lite-virtualtime/tslint.json +++ b/types/rx-lite-virtualtime/tslint.json @@ -4,6 +4,7 @@ // TODOs "dt-header": false, "interface-name": false, + "no-declare-current-package": false, "no-empty-interface": false, "no-single-declare-module": false } diff --git a/types/rx-lite/tslint.json b/types/rx-lite/tslint.json index d545154ac5..21bc7a553d 100644 --- a/types/rx-lite/tslint.json +++ b/types/rx-lite/tslint.json @@ -4,6 +4,7 @@ // TODOs "dt-header": false, "unified-signatures": false, + "no-declare-current-package": false, "no-empty-interface": false, "ban-types": false, "interface-name": false, diff --git a/types/rx/tslint.json b/types/rx/tslint.json index 25953ef466..6d192e7cef 100644 --- a/types/rx/tslint.json +++ b/types/rx/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODOs "dt-header": false, + "no-declare-current-package": false, "no-single-declare-module": false } } diff --git a/types/sencha_touch/index.d.ts b/types/sencha_touch/index.d.ts index 733fcb7673..85cc9d5ed6 100644 --- a/types/sencha_touch/index.d.ts +++ b/types/sencha_touch/index.d.ts @@ -17187,7 +17187,7 @@ declare namespace Ext { /** [Method] Returns the value of scrollable * @returns Boolean */ - getScrollable?(): boolean; + getScrollable?(): Ext.scroll.IView; /** [Method] Returns the value of selectedCls * @returns String */ diff --git a/types/sequelize/index.d.ts b/types/sequelize/index.d.ts index f52c233bbb..5d65397bf7 100644 --- a/types/sequelize/index.d.ts +++ b/types/sequelize/index.d.ts @@ -3202,21 +3202,21 @@ declare namespace sequelize { } /** - * Shortcut for types used in FindOptions.attributes - */ + * Shortcut for types used in FindOptions.attributes + */ type FindOptionsAttributesArray = Array<string | literal | [string, string] | fn | [fn, string] | cast | [cast, string] | [literal, string]>; /** -* Options that are passed to any model creating a SELECT query -* -* A hash of options to describe the scope of the search -*/ + * Options that are passed to any model creating a SELECT query + * + * A hash of options to describe the scope of the search + */ interface FindOptions<T> extends LoggingOptions, SearchPathOptions { /** * A hash of attributes to describe your search. See above for examples. */ - where?: WhereOptions<T> | fn | Array<col | and | or | string>; + where?: WhereOptions<T> | where | fn | Array<col | and | or | string>; /** * A list of the attributes that you want to select. To rename an attribute, you can pass an array, with @@ -3263,7 +3263,7 @@ declare namespace sequelize { * Postgres also supports transaction.LOCK.KEY_SHARE, transaction.LOCK.NO_KEY_UPDATE and specific model * locks with joins. See [transaction.LOCK for an example](transaction#lock) */ - lock?: string | { level: string, of: Model<any, any> }; + lock?: TransactionLockLevel | { level: TransactionLockLevel, of: Model<any, any> }; /** * Return raw result. See sequelize.query for more information. @@ -5209,7 +5209,7 @@ declare namespace sequelize { * The maximum time, in milliseconds, that a connection can be idle before being released. */ idle?: number; - + /** * The maximum time, in milliseconds, that pool will try to get connection before throwing error */ @@ -5220,7 +5220,7 @@ declare namespace sequelize { * object, and that its state is not disconnected. */ validate?: (client?: any) => boolean; - + /* * The time interval, in milliseconds, for evicting stale connections */ @@ -5431,7 +5431,7 @@ declare namespace sequelize { * * Defaults to 'REPEATABLE_READ' */ - isolationLevel?: string; + isolationLevel?: TransactionIsolationLevel; /** * Set the default transaction type. See `Sequelize.Transaction.TYPES` for possible @@ -5439,7 +5439,7 @@ declare namespace sequelize { * * Defaults to 'DEFERRED' */ - transactionType?: string; + transactionType?: TransactionType; /** * Print query execution time in milliseconds when logging SQL. @@ -6153,37 +6153,54 @@ declare namespace sequelize { } + type TransactionIsolationLevelReadUncommitted = 'READ UNCOMMITTED'; + type TransactionIsolationLevelReadCommitted = 'READ COMMITTED'; + type TransactionIsolationLevelRepeatableRead = 'REPEATABLE READ'; + type TransactionIsolationLevelSerializable = 'SERIALIZABLE'; + type TransactionIsolationLevel = TransactionIsolationLevelReadUncommitted | TransactionIsolationLevelReadCommitted | TransactionIsolationLevelRepeatableRead | TransactionIsolationLevelSerializable; + /** * Isolations levels can be set per-transaction by passing `options.isolationLevel` to `sequelize.transaction`. * Default to `REPEATABLE_READ` but you can override the default isolation level by passing * `options.isolationLevel` in `new Sequelize`. */ interface TransactionIsolationLevels { - READ_UNCOMMITTED: string; // 'READ UNCOMMITTED' - READ_COMMITTED: string; // 'READ COMMITTED' - REPEATABLE_READ: string; // 'REPEATABLE READ' - SERIALIZABLE: string; // 'SERIALIZABLE' + READ_UNCOMMITTED: TransactionIsolationLevelReadUncommitted; // 'READ UNCOMMITTED' + READ_COMMITTED: TransactionIsolationLevelReadCommitted; // 'READ COMMITTED' + REPEATABLE_READ: TransactionIsolationLevelRepeatableRead; // 'REPEATABLE READ' + SERIALIZABLE: TransactionIsolationLevelSerializable; // 'SERIALIZABLE' } + type TransactionTypeDeferred = 'DEFERRED'; + type TransactionTypeImmediate = 'IMMEDIATE'; + type TransactionTypeExclusive = 'EXCLUSIVE'; + type TransactionType = TransactionTypeDeferred | TransactionTypeImmediate | TransactionTypeExclusive; + /** * Transaction type can be set per-transaction by passing `options.type` to `sequelize.transaction`. * Default to `DEFERRED` but you can override the default isolation level by passing * `options.transactionType` in `new Sequelize`. */ interface TransactionTypes { - DEFERRED: string; // 'DEFERRED' - IMMEDIATE: string; // 'IMMEDIATE' - EXCLUSIVE: string; // 'EXCLUSIVE' + DEFERRED: TransactionTypeDeferred; // 'DEFERRED' + IMMEDIATE: TransactionTypeImmediate; // 'IMMEDIATE' + EXCLUSIVE: TransactionTypeExclusive; // 'EXCLUSIVE' } + type TransactionLockLevelUpdate = 'UPDATE'; + type TransactionLockLevelShare = 'SHARE'; + type TransactionLockLevelKeyShare = 'KEY SHARE'; + type TransactionLockLevelNoKeyUpdate = 'NO KEY UPDATE'; + type TransactionLockLevel = TransactionLockLevelUpdate | TransactionLockLevelShare | TransactionLockLevelKeyShare | TransactionLockLevelNoKeyUpdate; + /** * Possible options for row locking. Used in conjuction with `find` calls: */ interface TransactionLock { - UPDATE: string; // 'UPDATE' - SHARE: string; // 'SHARE' - KEY_SHARE: string; // 'KEY SHARE' - NO_KEY_UPDATE: string; // 'NO KEY UPDATE' + UPDATE: TransactionLockLevelUpdate; // 'UPDATE' + SHARE: TransactionLockLevelShare; // 'SHARE' + KEY_SHARE: TransactionLockLevelKeyShare; // 'KEY SHARE' + NO_KEY_UPDATE: TransactionLockLevelNoKeyUpdate; // 'NO KEY UPDATE' } /** @@ -6198,12 +6215,12 @@ declare namespace sequelize { /** * See `Sequelize.Transaction.ISOLATION_LEVELS` for possible options */ - isolationLevel?: string; + isolationLevel?: TransactionIsolationLevel; /** * See `Sequelize.Transaction.TYPES` for possible options */ - type?: string; + type?: TransactionType; /** * A function that gets executed while running the query to log the sql. diff --git a/types/sequelize/sequelize-tests.ts b/types/sequelize/sequelize-tests.ts index 4ecbb8a1b0..77daabefc9 100644 --- a/types/sequelize/sequelize-tests.ts +++ b/types/sequelize/sequelize-tests.ts @@ -7,7 +7,7 @@ import Bluebird = require('bluebird'); // ~~~~~~~~~~ // -interface AnyAttributes { }; +interface AnyAttributes { [name: string]: boolean | number | string | object; }; interface AnyInstance extends Sequelize.Instance<AnyAttributes> { }; var s = new Sequelize( '' ); @@ -914,6 +914,7 @@ User.findAll( { attributes: [[s.fn('count', Sequelize.col('*')), 'count']], grou User.findAll( { attributes: [s.cast(s.fn('count', Sequelize.col('*')), 'INTEGER')] }); User.findAll( { attributes: [[s.cast(s.fn('count', Sequelize.col('*')), 'INTEGER'), 'count']] }); User.findAll( { where : s.fn('count', [0, 10]) } ); +User.findAll( { where: s.where(s.fn('lower', s.col('email')), s.fn('lower', 'TEST@SEQUELIZEJS.COM')) } ); User.findAll( { subQuery: false, include : [User], order : [[User, User, 'numYears', 'c']] } ); User.findAll( { rejectOnEmpty: true }); @@ -937,6 +938,7 @@ User.findOne( { where : { name : 'Boris' }, include : [User, { model : User, as User.findOne( { where : { username : 'someone' }, include : [User] } ); User.findOne( { where : { username : 'barfooz' }, raw : true } ); User.findOne( { where : s.fn('count', []) } ); +User.findOne( { where: s.where(s.fn('lower', s.col('email')), s.fn('lower', 'TEST@SEQUELIZEJS.COM')) } ); /* NOTE https://github.com/DefinitelyTyped/DefinitelyTyped/pull/5590 User.findOne( { updatedAt : { ne : null } } ); */ diff --git a/types/serialport/index.d.ts b/types/serialport/index.d.ts index ba632b7322..345aa22a24 100644 --- a/types/serialport/index.d.ts +++ b/types/serialport/index.d.ts @@ -62,10 +62,10 @@ declare namespace SerialPort { type callback = (error: any) => void; interface parsers { - raw: serialParser; - readline: readlineParser; - byteLength: byteLengthParser; - byteDelimiter: byteDelimiterParser; + Raw: serialParser; + Readline: readlineParser; + ByteLength: byteLengthParser; + ByteDelimiter: byteDelimiterParser; } // https://github.com/EmergingTechnologyAdvisors/node-serialport/blob/4.0.7/README.md#user-content-serialport-path-options-opencallback diff --git a/types/serialport/serialport-tests.ts b/types/serialport/serialport-tests.ts index 641575e77a..a5908df77f 100644 --- a/types/serialport/serialport-tests.ts +++ b/types/serialport/serialport-tests.ts @@ -9,22 +9,22 @@ function test_basic_connect() { function test_connect_config() { const port1 = new SerialPort('', { baudRate: 0, - parser: SerialPort.parsers.raw + parser: SerialPort.parsers.Raw }, (err: any) => {}); const port2 = new SerialPort('', { baudRate: 0, - parser: SerialPort.parsers.readline('\n', 'ascii') + parser: SerialPort.parsers.Readline('\n', 'ascii') }, (err: any) => {}); const port3 = new SerialPort('', { baudRate: 0, - parser: SerialPort.parsers.byteLength(7) + parser: SerialPort.parsers.ByteLength(7) }, (err: any) => {}); const port4 = new SerialPort('', { baudRate: 0, - parser: SerialPort.parsers.byteDelimiter([3, 4, 5]) + parser: SerialPort.parsers.ByteDelimiter([3, 4, 5]) }, (err: any) => {}); const port5 = new SerialPort('', { diff --git a/types/sharepoint/index.d.ts b/types/sharepoint/index.d.ts index 37d708ea4e..1db3cf560f 100644 --- a/types/sharepoint/index.d.ts +++ b/types/sharepoint/index.d.ts @@ -1,7 +1,10 @@ -// Type definitions for Microsoft SharePoint: 2013.1 +// Type definitions for Microsoft SharePoint: 2016.0 // Project: https://msdn.microsoft.com/en-us/library/office/jj193034.aspx -// Definitions by: Stanislav Vyshchepan <http:// blog.gandjustas.ru>, Andrey Markeev <http:// markeev.com>, Vincent Biret <https://github.com/baywet> -// Definitions: https:// github.com/DefinitelyTyped/DefinitelyTyped +// Definitions by: Stanislav Vyshchepan <https://github.com/gandjustas> +// Andrey Markeev <https://github.com/andrei-markeev> +// Vincent Biret <https://github.com/baywet> +// Tero Arvola <https://github.com/teroarvola> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 /// <reference types="microsoft-ajax" /> @@ -3096,7 +3099,7 @@ declare namespace SP { set_validationFormula(value: string): void; get_validationMessage(): string; set_validationMessage(value: string): void; - validateSetValue(item: SP.ListItem, value: string): void; + validateSetValue<T = any>(item: SP.ListItem<T>, value: string): void; updateAndPushChanges(pushChangesToLists: boolean): void; update(): void; deleteObject(): void; @@ -3360,7 +3363,7 @@ declare namespace SP { get_length(): number; get_level(): SP.FileLevel; /** Specifies the SPListItem corresponding to this file if this file belongs to a doclib. Values for all fields are returned also. */ - get_listItemAllFields(): SP.ListItem; + get_listItemAllFields<T = any>(): SP.ListItem<T>; /** Returns the user that owns the current lock on the file. MUST return null if there is no lock. */ get_lockedByUser(): SP.User; /** Specifies the major version of the file. */ @@ -3466,7 +3469,7 @@ declare namespace SP { class Folder extends SP.ClientObject { get_contentTypeOrder(): SP.ContentTypeId[]; get_files(): SP.FileCollection; - get_listItemAllFields(): SP.ListItem; + get_listItemAllFields<T = any>(): SP.ListItem<T>; get_itemCount(): number; get_name(): string; get_parentFolder(): SP.Folder; @@ -3604,7 +3607,7 @@ declare namespace SP { /** Represents a list on a SharePoint Web site. */ class List<T = any> extends SP.SecurableObject { /** Gets item by id. */ - getItemById(id: number): SP.ListItem; + getItemById(id: number): SP.ListItem<T>; /** Gets a value that specifies whether the list supports content types. */ get_allowContentTypes(): boolean; /** Gets the list definition type on which the list is based. For lists based on OOTB list definitions, return value corresponds the SP.ListTemplateType enumeration. */ @@ -3816,7 +3819,7 @@ declare namespace SP { /** Returns collection of list items based on the specified CAML query. */ getItems(query: SP.CamlQuery): SP.ListItemCollection<T>; /** Creates a new list item in the list. */ - addItem(parameters: SP.ListItemCreationInformation): SP.ListItem; + addItem(parameters: SP.ListItemCreationInformation): SP.ListItem<T>; } /** Represents a collection of SP.List objects */ class ListCollection extends SP.ClientObjectCollection<List> { @@ -3970,9 +3973,9 @@ declare namespace SP { writeToXml(writer: SP.XmlWriter, serializationContext: SP.SerializationContext): void; constructor(); } - class ListItemEntityCollection extends SP.ClientObjectCollection<ListItem> { - itemAt(index: number): SP.ListItem; - get_item(index: number): SP.ListItem; + class ListItemEntityCollection<T> extends SP.ClientObjectCollection<ListItem<T>> { + itemAt(index: number): SP.ListItem<T>; + get_item(index: number): SP.ListItem<T>; } class ListItemFormUpdateValue extends SP.ClientValueObject { get_errorMessage(): string; @@ -5619,9 +5622,9 @@ declare namespace Microsoft.SharePoint.Client.Search { } class UsageAnalytics extends SP.ClientObject { - getAnalyticsItemData: (eventType: number, listItem: SP.ListItem) => AnalyticsItemData; + getAnalyticsItemData: <T = any>(eventType: number, listItem: SP.ListItem<T>) => AnalyticsItemData; - getAnalyticsItemDataForApplicationEventType: (appEventType: SP.Guid, listItem: SP.ListItem) => AnalyticsItemData; + getAnalyticsItemDataForApplicationEventType: <T = any>(appEventType: SP.Guid, listItem: SP.ListItem<T>) => AnalyticsItemData; deleteStandardEventUsageData: (eventType: number) => void; @@ -6380,10 +6383,10 @@ declare namespace SP { set_attachment(value: SocialAttachment): SocialAttachment; /** Specifies an array consisting of social tags, user mentions, links to documents, links to sites, and generic links. Each element in the array is inserted into the ContentText string if there is a substitution reference to the array element in the string. */ - get_contentItems(): SocialDataItem; + get_contentItems(): SocialDataItem[]; /** Specifies an array consisting of social tags, user mentions, links to documents, links to sites, and generic links. Each element in the array is inserted into the ContentText string if there is a substitution reference to the array element in the string. */ - set_contentItems(value: SocialDataItem): SocialDataItem; + set_contentItems(value: SocialDataItem[]): SocialDataItem[]; /** Contains the text body of the post. */ get_contentText(): string; /** Contains the text body of the post. @@ -6869,11 +6872,11 @@ declare namespace SP { getFieldValueAsText(value: TaxonomyFieldValue): SP.StringResult; getFieldValueAsTaxonomyFieldValue(value: string): TaxonomyFieldValue; getFieldValueAsTaxonomyFieldValueCollection(value: string): TaxonomyFieldValueCollection; - setFieldValueByTerm(listItem: SP.ListItem, term: Term, lcid: number): void; - setFieldValueByTermCollection(listItem: SP.ListItem, terms: TermCollection, lcid: number): void; - setFieldValueByCollection(listItem: SP.ListItem, terms: Term[], lcid: number): void; - setFieldValueByValue(listItem: SP.ListItem, taxValue: TaxonomyFieldValue): void; - setFieldValueByValueCollection(listItem: SP.ListItem, taxValueCollection: TaxonomyFieldValueCollection): void; + setFieldValueByTerm<T = any>(listItem: SP.ListItem<T>, term: Term, lcid: number): void; + setFieldValueByTermCollection<T = any>(listItem: SP.ListItem<T>, terms: TermCollection, lcid: number): void; + setFieldValueByCollection<T = any>(listItem: SP.ListItem<T>, terms: Term[], lcid: number): void; + setFieldValueByValue<T = any>(listItem: SP.ListItem<T>, taxValue: TaxonomyFieldValue): void; + setFieldValueByValueCollection<T = any>(listItem: SP.ListItem<T>, taxValueCollection: TaxonomyFieldValueCollection): void; getFieldValueAsHtml(value: TaxonomyFieldValue): SP.StringResult; getValidatedString(value: TaxonomyFieldValue): SP.StringResult; } @@ -6941,7 +6944,7 @@ declare namespace SP { static createVideo(context: ClientContext, parentFolder: Folder, name: string, ctid: ContentTypeId): StringResult; static uploadVideo(context: ClientContext, list: List, fileName: string, file: any[], overwriteIfExists: boolean, parentFolderPath: string): StringResult; static getEmbedCode(context: ClientContext, videoPath: string, properties: EmbedCodeConfiguration): StringResult; - static migrateVideo(context: ClientContext, videoFile: File): SP.ListItem; + static migrateVideo<T = any>(context: ClientContext, videoFile: File): SP.ListItem<T>; } } } @@ -7922,8 +7925,8 @@ declare namespace SP { static logCustomAppError(context: SP.ClientRuntimeContext, error: string): SP.IntResult; static logCustomRemoteAppError(context: SP.ClientRuntimeContext, productId: SP.Guid, error: string): SP.IntResult; static getLocalizedString(context: SP.ClientRuntimeContext, source: string, defaultResourceFile: string, language: number): SP.StringResult; - static createNewDiscussion(context: SP.ClientRuntimeContext, list: SP.List, title: string): SP.ListItem; - static createNewDiscussionReply(context: SP.ClientRuntimeContext, parent: SP.ListItem): SP.ListItem; + static createNewDiscussion<T>(context: SP.ClientRuntimeContext, list: SP.List, title: string): SP.ListItem<T>; + static createNewDiscussionReply<T>(context: SP.ClientRuntimeContext, parent: SP.ListItem<T>): SP.ListItem<T>; static markDiscussionAsFeatured(context: SP.ClientRuntimeContext, listID: string, topicIDs: string): void; static unmarkDiscussionAsFeatured(context: SP.ClientRuntimeContext, listID: string, topicIDs: string): void; static searchPrincipals(context: SP.ClientRuntimeContext, web: SP.Web, input: string, scopes: SP.Utilities.PrincipalType, sources: SP.Utilities.PrincipalSource, usersContainer: SP.UserCollection, maxCount: number): SP.Utilities.PrincipalInfo[]; diff --git a/types/sharepoint/sharepoint-tests.ts b/types/sharepoint/sharepoint-tests.ts index 8d62972490..b41c38f97d 100644 --- a/types/sharepoint/sharepoint-tests.ts +++ b/types/sharepoint/sharepoint-tests.ts @@ -530,7 +530,8 @@ namespace CSR { .onPreRender(hookFormContext) .onPostRender(fixCsrCustomLayout); - function hookFormContext(ctx: FormRenderContexWithHook) { + function hookFormContext(preRenderContext: SPClientTemplates.RenderContext /* FormRenderContexWithHook */) { + let ctx = preRenderContext as FormRenderContexWithHook; if (ctx.ControlMode === SPClientTemplates.ClientControlMode.EditForm || ctx.ControlMode === SPClientTemplates.ClientControlMode.NewForm) { for (const fieldSchemaInForm of ctx.ListSchema.Field) { @@ -561,7 +562,8 @@ namespace CSR { } } - function fixCsrCustomLayout(ctx: SPClientTemplates.RenderContext_Form) { + function fixCsrCustomLayout(postRenderContext: SPClientTemplates.RenderContext /* SPClientTemplates.RenderContext_Form */) { + let ctx = postRenderContext as SPClientTemplates.RenderContext_Form; if (ctx.ControlMode === SPClientTemplates.ClientControlMode.Invalid || ctx.ControlMode === SPClientTemplates.ClientControlMode.View) { return; @@ -817,7 +819,8 @@ namespace CSR { } } }) - .onPostRenderField(fieldName, (schema: SPClientTemplates.FieldSchema_InForm_User, ctx) => { + .onPostRenderField(fieldName, (postRenderSchema, ctx) => { + let schema = postRenderSchema as SPClientTemplates.FieldSchema_InForm_User; if (ctx.ControlMode === SPClientTemplates.ClientControlMode.EditForm || ctx.ControlMode === SPClientTemplates.ClientControlMode.NewForm) { if (schema.Type === 'User' || schema.Type === 'UserMulti') { @@ -1148,7 +1151,9 @@ namespace CSR { computedValue(targetField: string, transform: (...values: string[]) => string, ...sourceField: string[]): CSR { const dependentValues: { [field: string]: string } = {}; - return this.onPostRenderField(targetField, (schema: SPClientTemplates.FieldSchema_InForm, ctx: SPClientTemplates.RenderContext_FieldInForm) => { + return this.onPostRenderField(targetField, (postRenderSchema, postRenderContext) => { + let schema = postRenderSchema as SPClientTemplates.FieldSchema_InForm; + let ctx = postRenderContext as SPClientTemplates.RenderContext_FieldInForm; if (ctx.ControlMode === SPClientTemplates.ClientControlMode.EditForm || ctx.ControlMode === SPClientTemplates.ClientControlMode.NewForm) { const targetControl = CSR.getControl(schema as SPClientTemplates.FieldSchema_InForm); @@ -1165,8 +1170,8 @@ namespace CSR { setInitialValue(fieldName: string, value: any, ignoreNull?: boolean): CSR { if (value || !ignoreNull) { - return this.onPreRenderField(fieldName, (schema, ctx: SPClientTemplates.RenderContext_FieldInForm) => { - ctx.ListData.Items[0][fieldName] = value; + return this.onPreRenderField(fieldName, (schema, ctx) => { + (ctx as SPClientTemplates.RenderContext_FieldInForm).ListData.Items[0][fieldName] = value; }); } else { return this; @@ -1335,8 +1340,9 @@ namespace CSR { } lookupAddNew(fieldName: string, prompt: string, showDialog?: boolean, contentTypeId?: string): CSR { - return this.onPostRenderField(fieldName, - (schema: SPClientTemplates.FieldSchema_InForm_Lookup, ctx: SPClientTemplates.RenderContext_FieldInForm) => { + return this.onPostRenderField(fieldName, (postRenderSchema, postRenderContext) => { + let schema = postRenderSchema as SPClientTemplates.FieldSchema_InForm_Lookup; + let ctx = postRenderContext as SPClientTemplates.RenderContext_FieldInForm; let control: HTMLInputElement; if (ctx.ControlMode === SPClientTemplates.ClientControlMode.EditForm || ctx.ControlMode === SPClientTemplates.ClientControlMode.NewForm) @@ -2271,7 +2277,8 @@ namespace SampleReputation { SP.SOD.registerSod('typescripttemplates.ts', '/SPTypeScript/Extensions/typescripttemplates.js'); SP.SOD.executeFunc('typescripttemplates.ts', 'CSR', () => { CSR.override(10004, 1) - .onPreRender((ctx: MyList) => { + .onPreRender(preRenderContext => { + let ctx = preRenderContext as MyList; ctx.listId = ctx.listName.substring(1, 37); }) .header('<ul>') @@ -2287,7 +2294,8 @@ namespace SampleReputation { SP.SOD.notifyScriptLoadedAndExecuteWaitingJobs('likes.js'); } - function renderTemplate(ctx: MyList) { + function renderTemplate(renderContext: SPClientTemplates.RenderContext) { + let ctx = renderContext as MyList; const rows = ctx.ListData.Row; let result = ''; for (const row of rows) { diff --git a/types/siema/index.d.ts b/types/siema/index.d.ts index 52b6205dad..682c0e907e 100644 --- a/types/siema/index.d.ts +++ b/types/siema/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for siema 1.0 +// Type definitions for siema 1.4 // Project: https://github.com/pawelgrzybek/siema // Definitions by: Irmantas Zenkus <https://github.com/Irmiz> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -7,9 +7,14 @@ declare class Siema { constructor(options?: SiemaOptions); - next(): void; - prev(): void; - goTo(index: number): void; + next(index?: number, callback?: () => void): void; + prev(index?: number, callback?: () => void): void; + goTo(index: number, callback?: () => void): void; + remove(index: number, callback?: () => void): void; + insert(item: any, index: number, callback?: () => void): void; + prepend(item: any, callback?: () => void): void; + append(item: any, callback?: () => void): void; + destroy(restoreMarkup: boolean, callback?: () => void): void; } interface SiemaOptions { @@ -19,8 +24,11 @@ interface SiemaOptions { perPage?: number; startIndex?: number; draggable?: boolean; + multipleDrag?: boolean; threshold?: number; loop?: boolean; + onInit(): void; + onChange?(): void; } export = Siema; diff --git a/types/siema/siema-tests.ts b/types/siema/siema-tests.ts index 3851b2b705..c8d9e755b2 100644 --- a/types/siema/siema-tests.ts +++ b/types/siema/siema-tests.ts @@ -7,10 +7,18 @@ const siema = new Siema({ perPage: 1, startIndex: 0, draggable: true, + multipleDrag: true, threshold: 20, loop: false, + onInit: () => {}, + onChange: () => {}, }); siema.next(); siema.prev(); siema.goTo(siema.currentSlide); +siema.remove(0, () => {}); +siema.insert('item', 0, () => {}); +siema.prepend('item', () => {}); +siema.append('item', () => {}); +siema.destroy(true, () => {}); diff --git a/types/signature_pad/index.d.ts b/types/signature_pad/index.d.ts index e6b3f79690..d1df3191b8 100644 --- a/types/signature_pad/index.d.ts +++ b/types/signature_pad/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for signature_pad // Project: https://github.com/szimek/signature_pad // Definitions by: Abubaker Bashir <https://github.com/AbubakerB> +// Jason Mihalick <https://github.com/jrmihalick> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Project by: Szymon Nowak <https://github.com/szimek> @@ -8,7 +9,8 @@ declare namespace SignaturePad { class Point { x: number; y: number; - time: number; + time: number; + color?: string; constructor(x: number, y: number, time: number); velocityFrom(start: Point): number; distanceTo(start: Point): number; @@ -100,9 +102,14 @@ declare class SignaturePad { */ fromDataURL(dataUrl: string): void; /** - * Returns signature image as data URL + * Returns array of signature point groups */ - toDataURL(): string; + toData(): Array<Array<SignaturePad.Point>>; + /** + * Returns signature image as data URL. + * If 'type' parameter is ommitted, PNG dataUrl is returned. + */ + toDataURL(type?: string): string; /** * Unbinds all event handlers */ diff --git a/types/signature_pad/signature_pad-tests.ts b/types/signature_pad/signature_pad-tests.ts index d4968b5c2a..b83b0ec682 100644 --- a/types/signature_pad/signature_pad-tests.ts +++ b/types/signature_pad/signature_pad-tests.ts @@ -7,6 +7,12 @@ function BasicTest() { // Returns signature image as data URL signaturePad.toDataURL(); + // Returns signature image as data URL using the given media type + signaturePad.toDataURL('image/jpeg'); + + // Returns an array of point groups that define the signature + signaturePad.toData(); + // Draws signature image from data URL signaturePad.fromDataURL("data:image/png;base64,iVBORw0K..."); diff --git a/types/simple-peer/index.d.ts b/types/simple-peer/index.d.ts index ed40ed2d5b..0ddc548ea8 100644 --- a/types/simple-peer/index.d.ts +++ b/types/simple-peer/index.d.ts @@ -23,6 +23,7 @@ declare namespace SimplePeer { stream?: boolean; // if video/voice is desired, pass stream returned from getUserMedia trickle?: boolean; // set to false to disable trickle ICE and get a single 'signal' event (slower) wrtc?: {}; // RTCPeerConnection/RTCSessionDescription/RTCIceCandidate + objectMode?: boolean; // set to true to create the stream in Object Mode. In this mode, incoming string data is not automatically converted to Buffer objects. } // https://github.com/feross/simple-peer/tree/v6.1.5#peer--new-simplepeeropts diff --git a/types/sinon/index.d.ts b/types/sinon/index.d.ts index f884f14b0a..d037362659 100644 --- a/types/sinon/index.d.ts +++ b/types/sinon/index.d.ts @@ -395,26 +395,34 @@ declare namespace Sinon { contains(expected: any[]): SinonMatcher; } + interface SimplifiedSet { + has(el: any): boolean; + } + + interface SimplifiedMap extends SimplifiedSet { + get(key: any): any; + } + interface SinonMapMatcher extends SinonMatcher { /** * Requires a Map to be deep equal another one. */ - deepEquals(expected: Map<any, any>): SinonMatcher; + deepEquals(expected: SimplifiedMap): SinonMatcher; /** * Requires a Map to contain each one of the items the given map has. */ - contains(expected: Map<any, any>): SinonMatcher; + contains(expected: SimplifiedMap): SinonMatcher; } interface SinonSetMatcher extends SinonMatcher { /** * Requires a Set to be deep equal another one. */ - deepEquals(expected: Set<any>): SinonMatcher; + deepEquals(expected: SimplifiedSet): SinonMatcher; /** * Requires a Set to contain each one of the items the given set has. */ - contains(expected: Set<any>): SinonMatcher; + contains(expected: SimplifiedSet): SinonMatcher; } interface SinonMatch { diff --git a/types/snoowrap/dist/objects/Listing.d.ts b/types/snoowrap/dist/objects/Listing.d.ts index 7c54ba92d5..73e97fdd11 100644 --- a/types/snoowrap/dist/objects/Listing.d.ts +++ b/types/snoowrap/dist/objects/Listing.d.ts @@ -1,4 +1,4 @@ -import * as Snoowrap from 'snoowrap'; +import * as Snoowrap from '../..'; export default class Listing<T> extends Array<T> { constructor(options: any, _r: Snoowrap); diff --git a/types/snoowrap/dist/objects/RedditContent.d.ts b/types/snoowrap/dist/objects/RedditContent.d.ts index 357226e57f..9efd97822b 100644 --- a/types/snoowrap/dist/objects/RedditContent.d.ts +++ b/types/snoowrap/dist/objects/RedditContent.d.ts @@ -1,4 +1,4 @@ -import * as Snoowrap from 'snoowrap'; +import * as Snoowrap from '../..'; export default class RedditContent<T> { created_utc: number; diff --git a/types/snoowrap/dist/objects/Submission.d.ts b/types/snoowrap/dist/objects/Submission.d.ts index 397799b88e..84a5cf2629 100644 --- a/types/snoowrap/dist/objects/Submission.d.ts +++ b/types/snoowrap/dist/objects/Submission.d.ts @@ -1,4 +1,4 @@ -import { Sort } from 'snoowrap'; +import { Sort } from '../..'; import Comment from './Comment'; import Listing, { ListingOptions } from './Listing'; import RedditUser from './RedditUser'; diff --git a/types/snoowrap/dist/objects/Subreddit.d.ts b/types/snoowrap/dist/objects/Subreddit.d.ts index 6864b15b59..3a750ab6d0 100644 --- a/types/snoowrap/dist/objects/Subreddit.d.ts +++ b/types/snoowrap/dist/objects/Subreddit.d.ts @@ -1,4 +1,4 @@ -import { Sort, ModAction, SubmitSelfPostOptions, SubmitLinkOptions, BaseSearchOptions } from 'snoowrap'; +import { Sort, ModAction, SubmitSelfPostOptions, SubmitLinkOptions, BaseSearchOptions } from '../..'; import Comment from './Comment'; import Listing, { ListingOptions } from './Listing'; import PrivateMessage from './PrivateMessage'; diff --git a/types/socket.io/index.d.ts b/types/socket.io/index.d.ts index 41863235ba..0d77110716 100644 --- a/types/socket.io/index.d.ts +++ b/types/socket.io/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for socket.io 1.4.4 // Project: http://socket.io/ -// Definitions by: PROGRE <https://github.com/progre>, Damian Connolly <https://github.com/divillysausages>, Florent Poujol <https://github.com/florentpoujol>, KentarouTakeda <https://github.com/KentarouTakeda> +// Definitions by: PROGRE <https://github.com/progre>, Damian Connolly <https://github.com/divillysausages>, Florent Poujol <https://github.com/florentpoujol>, KentarouTakeda <https://github.com/KentarouTakeda>, Alexey Snigirev <https://github.com/gigi> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped ///<reference types="node" /> @@ -64,6 +64,16 @@ declare namespace SocketIO { */ json: Server; + /** + * Sets a modifier for a subsequent event emission that the event data may be lost if the clients are not ready to receive messages + */ + volatile: Server; + + /** + * Sets a modifier for a subsequent event emission that the event data will only be broadcast to the current node + */ + local: Server; + /** * Server request verification function, that checks for allowed origins * @param req The http.IncomingMessage request diff --git a/types/socket.io/socket.io-tests.ts b/types/socket.io/socket.io-tests.ts index 23c4a6d996..cd0cecf6cf 100644 --- a/types/socket.io/socket.io-tests.ts +++ b/types/socket.io/socket.io-tests.ts @@ -170,3 +170,13 @@ function testClosingServerWithoutCallback() { var io = socketIO.listen(80); io.close(); } + +function testLocalServerMessages() { + var io = socketIO.listen(80); + io.local.emit('local', 'Local data'); +} + +function testVolatileServerMessages() { + var io = socketIO.listen(80); + io.volatile.emit('volatile', 'Lost data'); +} diff --git a/types/soundmanager2/index.d.ts b/types/soundmanager2/index.d.ts new file mode 100644 index 0000000000..d211e4c359 --- /dev/null +++ b/types/soundmanager2/index.d.ts @@ -0,0 +1,217 @@ +// Type definitions for soundmanager2 2.97 +// Project: https://github.com/scottschiller/SoundManager2 +// Definitions by: Elton Lee <https://github.com/elton2048> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +declare var soundManager: soundmanager.SoundManager; + +declare namespace soundmanager { + type ScriptAccess = 'always' | 'sameDomain'; + + interface DefaultOptions { + autoLoad?: boolean; + autoPlay?: boolean; + from?: number | null; + loops?: number; + onid3?: (() => void) | null; + onerror?: (() => void) | null; + onload?: (() => void) | null; + whileloading?: (() => void) | null; + onplay?: (() => void) | null; + onpause?: (() => void) | null; + onresume?: (() => void) | null; + whileplaying?: (() => void) | null; + onposition?: (() => void) | null; + onstop?: (() => void) | null; + onfinish?: (() => void) | null; + multiShot?: boolean; + multiShotEvents?: boolean; + position?: number | null; + pan?: number; + playbackRate?: number; + stream?: boolean; + to?: number | null; + type?: string | null; + usePolicyFile?: boolean; + volume?: number; + } + + interface Flash9Options { + onfailure?: (() => void) | null; + isMovieStar?: true | null; + usePeakData?: boolean; + useWaveformData?: boolean; + useEQData?: boolean; + onbufferchange?: (() => void) | null; + ondataerror?: (() => void) | null; + } + + interface MovieStarOptions { + bufferTime?: number; + serverURL?: string | null; + onconnect?: (() => void) | null; + duration?: number | null; + } + + interface SoundManagerProps { + /** + * The directory where SM2 can find the flash movies (soundmanager2.swf, + * soundmanager2_flash9.swf and debug versions etc.) Note that SM2 will + * append the correct SWF file name, depending on flashVersion and + * debugMode settings. + * @type {string} + */ + url?: string; + + allowScriptAccess?: ScriptAccess; + altURL?: string; + bgColor?: string; + consoleOnly?: boolean; + debugMode?: boolean; + debugFlash?: boolean; + /** + * Some properties are dynamic, determined at initialisation or later + * during runtime, and should be treated as read-only. + */ + readonly features?: object; + + flashVersion?: number; + // flashPollingInterval: number; + forceUseGlobalHTML5Audio?: boolean; + readonly html5Only?: boolean; + // html5PollingInterval: number; + // html5Test: string; + flashLoadTimeout?: number; + idPrefix?: string; + ignoreMobileRestrications?: boolean; + noSWFCache?: boolean; + preferFlash?: boolean; + useAltURL?: boolean; + useConsole?: boolean; + useFlashBlock?: boolean; + useHighPerformance?: boolean; + useHTML5Audio?: boolean; + waitForWindowLoad?: false; + wmode?: string | null; + + defaultOptions?: DefaultOptions; + flash9Options?: Flash9Options; + movieStarOptions?: MovieStarOptions; + + onready?(): void; + ontimeout?(): void; + } + + interface SoundManager extends SoundManagerProps { + canPlayLink(domElement: HTMLElement): boolean; + canPlayMIME(MIMEtype: string): boolean; + canPlayURL(mediaURL: string): boolean; + clearOnPosition(id: string, msecOffset: number, callback?: (() => void)): SMSound; + /** + * Creates a sound object, supporting an arbitrary number of optional arguments. Returns a SMSound object instance. At minimum, a url parameter is required. + * @param {SoundProperties} properties [description] + * @return {SMSound} [description] + */ + createSound(properties: SoundProperties): SMSound; + destroySound(id: string): void; + getMemoryUse(): number; + getSoundById(id: string): SMSound; + load(id: string, options?: object): SMSound; + mute(id?: string): SMSound; + ok(): boolean; + onPosition(id: string, msecOffset: number, callback: (eventPosition: any) => void): SMSound; + pause(id: string): SMSound; + pauseAll(): void; + play(id?: string, options?: DefaultOptions | Flash9Options): SMSound; + reboot(): void; + reset(): void; + resume(id: string): SMSound; + resumeAll(): void; + setup(options: SoundManagerProps): SoundManager; + setPan(id: string, volume: number): SMSound; + setPlaybackRate(id: string, playbackRate: number): void; + setPosition(id: string, msecOffset: number): SMSound; + setVolume(id: string, volume: number): SMSound; + /** + * Sets the volume of all sound objects. Accepted values: 0-100. Affects volume property. + * @param {number} volume [Volume of all sound objects. Accepted values: 0 - 100] + */ + setVolume(volume: number): void; + stop(id: string): SMSound; + stopAll(): void; + toggleMute(id: string): SMSound; + togglePause(id: string): SMSound; + unload(id: string): SMSound; + unmute(id?: string): SMSound; + } + + class SMSound { + // Parameters, instance options. + id: string; + pan: number; + peekData: PeekData; + position: number; + url: string; + volume: number; + + // Dynamic Properties + buffered: object[]; + bytesLoaded: number | null; + bytesTotal: number | null; + isBuffering: boolean; + connected: boolean; + duration: number | null; + durationEstimate: number | null; + isHTML5: boolean; + loaded: boolean; + muted: boolean; + paused: boolean; + playState: number; + readyState: number; + + // Events + onbufferchange?: (() => void); + onconnect?: (() => void); + ondataerror?: (() => void); + onerror?: (() => void); + onfinish?: (() => void); + onload?: (() => void); + onpause?: (() => void); + onplay?: (() => void); + onresume?: (() => void); + onsuspend?: (() => void); + onstop?: (() => void); + onid3?: (() => void); + whileloading?: (() => void); + whileplaying?: (() => void); + + // Methods + destruct(): void; + load(options: object): SMSound; + // clearOnPosition(): void; + onPosition(mescOffest: number, callback: object, []): SMSound; + mute(): SMSound; + pause(): SMSound; + play(id?: string, options?: DefaultOptions): SMSound; + resume(): SMSound; + setPan(volume: number): SMSound; + setPosition(msecOffset: number): SMSound; + setVolume(volume: number): SMSound; + stop(): SMSound; + toggleMute(): SMSound; + togglePause(): SMSound; + unload(): SMSound; + unmute(): SMSound; + } + + interface PeekData { + left: number; + right: number; + } + + interface SoundProperties extends DefaultOptions { + url: string; + id?: string; + } +} diff --git a/types/soundmanager2/soundmanager2-tests.ts b/types/soundmanager2/soundmanager2-tests.ts new file mode 100644 index 0000000000..dc52658a26 --- /dev/null +++ b/types/soundmanager2/soundmanager2-tests.ts @@ -0,0 +1,26 @@ +// Example extracted in http://www.schillmania.com/projects/soundmanager2/doc/getstarted/ +const mySoundObject = soundManager.createSound ({ + // optional id, for getSoundById() look-ups etc. If omitted, an id will be generated. + id: 'mySound', + url: '/audio/mysoundfile.mp3', + // optional sound parameters here, see Sound Properties for full list + volume: 50, + autoPlay: true, + whileloading() { console.log(<string> this.id + ' is loading'); } +}); + +soundManager.setup({ + url: '/path/to/swfs/', + flashVersion: 9, + preferFlash: false, // prefer 100% HTML5 mode, where both supported + onready: () => { + // console.log('SM2 ready!'); + }, + ontimeout: () => { + // console.log('SM2 init failed!'); + }, + defaultOptions: { + // set global default volume for all sound objects + volume: 33 + } +}); diff --git a/types/soundmanager2/tsconfig.json b/types/soundmanager2/tsconfig.json new file mode 100644 index 0000000000..3c8545f26d --- /dev/null +++ b/types/soundmanager2/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "soundmanager2-tests.ts" + ] +} diff --git a/types/soundmanager2/tslint.json b/types/soundmanager2/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/soundmanager2/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/sparqljs/index.d.ts b/types/sparqljs/index.d.ts new file mode 100644 index 0000000000..4b63cf8a59 --- /dev/null +++ b/types/sparqljs/index.d.ts @@ -0,0 +1,247 @@ +// Type definitions for sparqljs 1.5 +// Project: https://github.com/RubenVerborgh/SPARQL.js +// Definitions by: Alexey Morozov <https://github.com/AlexeyMz> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + +export const Parser: { + new ( + prefixes?: { [prefix: string]: string }, + baseIRI?: string, + options?: ParserOptions, + ): SparqlParser; +}; + +export const Generator: { + new (options?: GeneratorOptions): SparqlGenerator; +}; + +export interface ParserOptions { + /** @default true */ + collapseGroups?: boolean; +} + +export interface GeneratorOptions { + allPrefixes?: boolean; +} + +export interface SparqlParser { + parse(query: string): SparqlQuery; +} + +export interface SparqlGenerator { + stringify(query: SparqlQuery): string; +} + +export type SparqlQuery = Query | Update; + +export type Query = SelectQuery | ConstructQuery | AskQuery | DescribeQuery; + +export interface BaseQuery { + type: 'query'; + base?: string; + prefixes: { [prefix: string]: string; }; + where?: Pattern[]; + values?: ValuePatternRow[]; +} + +export interface SelectQuery extends BaseQuery { + queryType: 'SELECT'; + variables: Variable[] | ['*']; + distinct?: boolean; + from?: { + default: string[]; + named: string[]; + }; + reduced?: boolean; + group?: Grouping[]; + having?: Expression[]; + order?: Ordering[]; + limit?: number; + offset?: number; +} + +export interface Grouping { + expression: Expression; +} + +export interface Ordering { + expression: Expression; + descending?: boolean; +} + +export interface ConstructQuery extends BaseQuery { + queryType: 'CONSTRUCT'; + template?: Triple[]; +} + +export interface AskQuery extends BaseQuery { + queryType: 'ASK'; +} + +export interface DescribeQuery extends BaseQuery { + queryType: 'DESCRIBE'; + variables: Variable[] | ['*']; +} + +export interface Update { + type: 'update'; + prefixes: { [prefix: string]: string; }; + updates: UpdateOperation[]; +} + +export type UpdateOperation = InsertDeleteOperation | ManagementOperation; + +export interface InsertDeleteOperation { + updateType: 'insert' | 'delete' | 'deletewhere' | 'insertdelete'; + insert?: Quads[]; + delete?: Quads[]; + where?: Pattern[]; +} + +export type Quads = BgpPattern | GraphQuads; + +export interface ManagementOperation { + type: 'load' | 'copy' | 'move' | 'add'; + silent: boolean; + source: string | { + type: 'graph'; + default: boolean; + }; + destination?: string | { + type: 'graph'; + name: string; + }; +} + +/** + * Examples: '?var', '*', + * SELECT (?a as ?b) ... ==> { expression: '?a', variable: '?b' } + */ +export type Variable = VariableExpression | Term; + +export interface VariableExpression { + expression: Expression; + variable: Term; +} + +export type Pattern = + | BgpPattern + | BlockPattern + | GraphPattern + | ServicePattern + | FilterPattern + | BindPattern + | ValuesPattern + | SelectQuery; + +/** + * Basic Graph Pattern + */ +export interface BgpPattern { + type: 'bgp'; + triples: Triple[]; +} + +export interface GraphQuads { + type: 'graph'; + name: Term; + triples: Triple[]; +} + +export interface BlockPattern { + type: 'optional' | 'union' | 'group' | 'minus' | 'graph' | 'service'; + patterns: Pattern[]; +} + +export interface GroupPattern extends BlockPattern { + type: 'group'; +} + +export interface GraphPattern extends BlockPattern { + type: 'graph'; + name: Term; +} + +export interface ServicePattern extends BlockPattern { + type: 'service'; + name: Term; + silent: boolean; +} + +export interface FilterPattern { + type: 'filter'; + expression: Expression; +} + +export interface BindPattern { + type: 'bind'; + expression: Expression; + variable: Term; +} + +export interface ValuesPattern { + type: 'values'; + values: ValuePatternRow[]; +} + +export interface ValuePatternRow { + [variable: string]: Term; +} + +/** + * Either '?var', 'schema:iri', '_:blankNode', + * '"literal"^^<schema:datatype>' or '{undefined}'. + * + * Term is a nominal type based on string. + */ +export type Term = string & { __termBrand: string; }; + +export interface Triple { + subject: Term; + predicate: PropertyPath | Term; + object: Term; +} + +export interface PropertyPath { + type: 'path'; + pathType: '|' | '/' | '^' | '+' | '*' | '!'; + items: Array<PropertyPath | Term>; +} + +export type Expression = + | OperationExpression + | FunctionCallExpression + | AggregateExpression + | BgpPattern + | GroupPattern + | Tuple + | Term; + +// allow Expression circularly reference itself +// tslint:disable-next-line no-empty-interface +export interface Tuple extends Array<Expression> {} + +export interface BaseExpression { + type: string; + distinct?: boolean; +} + +export interface OperationExpression extends BaseExpression { + type: 'operation'; + operator: string; + args: Expression[]; +} + +export interface FunctionCallExpression extends BaseExpression { + type: 'functionCall'; + function: string; + args: Expression[]; +} + +export interface AggregateExpression extends BaseExpression { + type: 'aggregate'; + expression: Expression; + aggregation: string; + separator?: string; +} diff --git a/types/sparqljs/sparqljs-tests.ts b/types/sparqljs/sparqljs-tests.ts new file mode 100644 index 0000000000..b8c0e36109 --- /dev/null +++ b/types/sparqljs/sparqljs-tests.ts @@ -0,0 +1,124 @@ +import * as SparqlJs from 'sparqljs'; + +/** + * Examples from the project's README + */ +function officialExamples() { + // Parse a SPARQL query to a JSON object + const SparqlParser = SparqlJs.Parser; + const parser = new SparqlParser(); + const parsedQuery = parser.parse( + 'PREFIX foaf: <http://xmlns.com/foaf/0.1/> ' + + 'SELECT * { ?mickey foaf:name "Mickey Mouse"@en; foaf:knows ?other. }', + ); + + // Regenerate a SPARQL query from a JSON object + const SparqlGenerator = SparqlJs.Generator; + const generator = new SparqlGenerator(); + if (parsedQuery.type === 'query' && parsedQuery.queryType === 'SELECT') { + parsedQuery.variables = ['?mickey' as SparqlJs.Term]; + } + + // $ExpectType string + generator.stringify(parsedQuery); +} + +function advancedOptions() { + const parser = new SparqlJs.Parser( + {rdf: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'}, + 'http://example.com', + {collapseGroups: true} + ); + const generator = new SparqlJs.Generator({allPrefixes: false}); +} + +/** + * Basic query structure + */ +function basicQueries() { + const foo = 'example:foo' as SparqlJs.Term; + const bar = 'example:bar' as SparqlJs.Term; + const qux = 'example:qux' as SparqlJs.Term; + + const prefixes = {rdf: 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'}; + + const bgpPattern: SparqlJs.BgpPattern = { + type: 'bgp', + triples: [ + {subject: foo, predicate: qux, object: bar}, + { + subject: foo, + predicate: { + type: 'path', + pathType: '|', + items: [qux, bar], + }, + object: bar, + } + ], + }; + + const select: SparqlJs.SelectQuery = { + type: 'query', + queryType: 'SELECT', + prefixes, + variables: ['*'], + distinct: true, + from: { + default: ['http://example.com/'], + named: ['http://example.com/foo', 'http://example.com/bar'], + }, + reduced: false, + group: [ + {expression: foo}, + {expression: bar}, + ], + having: [{ + type: 'functionCall', + function: 'isIRI', + args: [foo], + }], + order: [{ + expression: bar, + descending: true, + }], + limit: 100, + offset: 10, + where: [bgpPattern], + values: [ + {x: foo, y: bar}, + {x: foo}, + ] + }; + + const construct: SparqlJs.ConstructQuery = { + type: 'query', + queryType: 'CONSTRUCT', + base: 'http://example.com', + prefixes, + template: bgpPattern.triples, + }; + + const ask: SparqlJs.AskQuery = { + type: 'query', + queryType: 'ASK', + prefixes, + }; + + const describe: SparqlJs.DescribeQuery = { + type: 'query', + queryType: 'DESCRIBE', + prefixes, + variables: [ + foo, + { + variable: bar, + expression: { + type: 'operation', + operator: '+', + args: [foo, bar], + } + } + ], + }; +} diff --git a/types/sparqljs/tsconfig.json b/types/sparqljs/tsconfig.json new file mode 100644 index 0000000000..6b6ca5d9d3 --- /dev/null +++ b/types/sparqljs/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "sparqljs-tests.ts" + ] +} diff --git a/types/sparqljs/tslint.json b/types/sparqljs/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/sparqljs/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/spdy/index.d.ts b/types/spdy/index.d.ts index d0f44fa6a9..3016c16a11 100644 --- a/types/spdy/index.d.ts +++ b/types/spdy/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for node-spdy v3.4.3 +// Type definitions for node-spdy 3.4 // Project: https://github.com/indutny/node-spdy // Definitions by: Anthony Trinh <https://github.com/tony19> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 /// <reference types="node" /> @@ -11,12 +12,12 @@ import * as https from 'https'; declare module "spdy" { // lib/spdy/agent.js namespace agent { - export class Agent extends https.Agent {} - export class PlainAgent extends http.Agent {} - export function create(base: any, options: AgentOptions): Agent | PlainAgent; + class Agent extends https.Agent {} + class PlainAgent extends http.Agent {} + function create(base: any, options: AgentOptions): Agent | PlainAgent; - export interface AgentOptions extends https.AgentOptions { - port?: number, + interface AgentOptions extends https.AgentOptions { + port?: number; spdy?: { plain?: boolean, ssl?: boolean, @@ -28,10 +29,10 @@ declare module "spdy" { } // lib/spdy/handle.js - export interface Handle { - create(options: Object, stream: any, socket: Socket): Handle; - getStream(callback?: Function): any; - assignSocket(socket: Socket, options: Object): void; + interface Handle { + create(options: object, stream: any, socket: Socket): Handle; + getStream(callback?: (stream: any) => void): any; + assignSocket(socket: Socket, options: object): void; assignClientRequest(req: any): void; assignRequest(req: any): void; assignResponse(res: any): void; @@ -41,32 +42,32 @@ declare module "spdy" { // lib/spdy/request.js namespace request { - export function onNewListener(type: string): void; + function onNewListener(type: string): void; } // lib/spdy/response.js namespace response { - export function writeHead(statusCode: number, reason: string, obj: Object): void; - export function writeHead(statusCode: number, obj: Object): void; - export function end(data: any, encoding: string, callback: Function): void; + function writeHead(statusCode: number, reason: string, obj: object): void; + function writeHead(statusCode: number, obj: object): void; + function end(data: any, encoding: string, callback: () => void): void; } // lib/spdy/server.js namespace server { - export interface Server extends https.Server {} - export interface PlainServer extends http.Server {} - export interface IncomingMessage extends http.IncomingMessage {} - export interface ServerResponse extends http.ServerResponse { + type Server = https.Server; + type PlainServer = http.Server; + type IncomingMessage = http.IncomingMessage; + interface ServerResponse extends http.ServerResponse { push(filename: string, options: PushOptions): any; } - export function create(base: any, + function create(base: any, options: https.ServerOptions, - handler: (request: IncomingMessage, response: ServerResponse) => void): Server; - export function create(options: https.ServerOptions, - handler: (request: IncomingMessage, response: ServerResponse) => void): Server; - export function create(handler: (request: IncomingMessage, response: ServerResponse) => void): Server; + handler: (request: IncomingMessage, response: ServerResponse | http.ServerResponse) => void): Server; + function create(options: https.ServerOptions, + handler: (request: IncomingMessage, response: http.ServerResponse) => void): Server; + function create(handler: (request: IncomingMessage, response: ServerResponse | http.ServerResponse) => void): Server; - export type Protocol = + type Protocol = 'h2' | 'spdy/3.1' | 'spdy/3' @@ -74,14 +75,14 @@ declare module "spdy" { | 'http/1.1' | 'http/1.0'; - export interface PushOptions { - status?: number, - method?: string, - request?: any, - response?: any + interface PushOptions { + status?: number; + method?: string; + request?: any; + response?: any; } - export interface ServerOptions extends https.ServerOptions { + interface ServerOptions extends https.ServerOptions { spdy?: { protocols?: Protocol[], plain?: boolean, @@ -96,28 +97,27 @@ declare module "spdy" { // lib/spdy/socket.js namespace socket { - export interface Socket { - // net.Socket - } + // tslint:disable-next-line no-empty-interface + interface Socket {} // net.Socket } // lib/spdy.js - export type Agent = agent.Agent; - export type PlainAgent = agent.PlainAgent; - export type AgentOptions = agent.AgentOptions; - export type Socket = socket.Socket; - export type Server = server.Server; - export type IncomingMessage = server.IncomingMessage; - export type ServerRequest = server.IncomingMessage; - export type ServerResponse = server.ServerResponse; - export type PlainServer = server.PlainServer; - export type ServerOptions = server.ServerOptions; - export function createAgent(base: any, options: AgentOptions): Agent | PlainAgent; - export function createAgent(options: AgentOptions): Agent | PlainAgent; - export function createServer(base: any, + type Agent = agent.Agent; + type PlainAgent = agent.PlainAgent; + type AgentOptions = agent.AgentOptions; + type Socket = socket.Socket; + type Server = server.Server; + type IncomingMessage = server.IncomingMessage; + type ServerRequest = server.IncomingMessage; + type ServerResponse = server.ServerResponse; + type PlainServer = server.PlainServer; + type ServerOptions = server.ServerOptions; + function createAgent(base: any, options: AgentOptions): Agent | PlainAgent; + function createAgent(options: AgentOptions): Agent | PlainAgent; + function createServer(base: any, options: ServerOptions, - handler: (request: IncomingMessage, response: ServerResponse) => void): Server; - export function createServer(options: ServerOptions, - handler: (request: IncomingMessage, response: ServerResponse) => void): Server; - export function createServer(handler: (request: IncomingMessage, response: ServerResponse) => void): Server; + handler: (request: IncomingMessage, response: http.ServerResponse) => void): Server; + function createServer(options: ServerOptions, + handler: (request: IncomingMessage, response: http.ServerResponse) => void): Server; + function createServer(handler: (request: IncomingMessage, response: http.ServerResponse) => void): Server; } diff --git a/types/spdy/spdy-tests.ts b/types/spdy/spdy-tests.ts index 8d9e3f196e..cd9ebd034e 100644 --- a/types/spdy/spdy-tests.ts +++ b/types/spdy/spdy-tests.ts @@ -2,18 +2,18 @@ import * as spdy from 'spdy'; -let describe: any; -let it: any; -let fixtures: any; -let http: any; -let https: any; -let util: any; -let assert: any; -let afterEach: any; -let beforeEach: any; -let net: any; -let tls: any; -let transport: any; +declare var describe: any; +declare var it: any; +declare var fixtures: any; +declare var http: any; +declare var https: any; +declare var util: any; +declare var assert: any; +declare var afterEach: any; +declare var beforeEach: any; +declare var net: any; +declare var tls: any; +declare var transport: any; describe('SPDY Client', () => { describe('regular', () => { @@ -27,7 +27,7 @@ describe('SPDY Client', () => { const options = util._extend({ spdy: { - plain: plain + plain } }, fixtures.keys); server = spdy.createServer(options, (req: any, res: any) => { @@ -58,9 +58,9 @@ describe('SPDY Client', () => { server.listen(fixtures.port, () => { agent = spdy.createAgent({ rejectUnauthorized: false, - port: <number>fixtures.port, + port: <number> fixtures.port, spdy: { - plain: plain, + plain, protocol: plain ? npn : null, protocols: [ npn ] } @@ -83,7 +83,7 @@ describe('SPDY Client', () => { it('should send GET request', (done: any) => { const req = hmodule.request({ - agent: agent, + agent, method: 'GET', path: '/get', @@ -101,7 +101,7 @@ describe('SPDY Client', () => { it('should send POST request', (done: any) => { const req = hmodule.request({ - agent: agent, + agent, method: 'POST', path: '/post', @@ -124,7 +124,7 @@ describe('SPDY Client', () => { it('should receive PUSH_PROMISE', (done: any) => { const req = hmodule.request({ - agent: agent, + agent, method: 'GET', path: '/get' @@ -144,8 +144,8 @@ describe('SPDY Client', () => { }); it('should receive trailing headers', (done: any) => { - var req = hmodule.request({ - agent: agent, + const req = hmodule.request({ + agent, method: 'GET', path: '/get' @@ -173,7 +173,7 @@ describe('SPDY Client', () => { const options = util._extend({ spdy: { - plain: plain, + plain, 'x-forwarded-for': true } }, fixtures.keys); @@ -188,7 +188,7 @@ describe('SPDY Client', () => { port: fixtures.port, spdy: { 'x-forwarded-for': '1.2.3.4', - plain: plain, + plain, protocol: plain ? npn : null, protocols: [ npn ] } @@ -210,8 +210,8 @@ describe('SPDY Client', () => { }); it('should send x-forwarded-for', (done: any) => { - var req = hmodule.request({ - agent: agent, + const req = hmodule.request({ + agent, method: 'GET', path: '/get' @@ -237,7 +237,7 @@ describe('SPDY Server', () => { server = spdy.createServer(util._extend({ spdy: { 'x-forwarded-for': true, - plain: plain + plain } }, fixtures.keys)); @@ -248,7 +248,7 @@ describe('SPDY Server', () => { NPNProtocols: [ npn ] }, () => { client = transport.connection.create(socket, { - protocol: protocol, + protocol, isServer: false }); client.start(version); @@ -287,7 +287,7 @@ describe('SPDY Server', () => { assert.equal(req.spdyVersion, res.spdyVersion); assert(req.isSpdy); if (!plain) { - const socket = <any>req.socket; + const socket = req.socket; assert(socket.encrypted); assert(socket.getPeerCertificate()); } @@ -643,7 +643,7 @@ describe('SPDY Server', () => { }); it('should support custom base', (done: any) => { - function Pseuver(options: spdy.ServerOptions, listener: Function) { + function Pseuver(options: spdy.ServerOptions, listener: () => void) { https.Server.call(this, options, listener); } util.inherits(Pseuver, https.Server); @@ -677,4 +677,10 @@ describe('SPDY Server', () => { req.end(); }); }); + + it('should accept express app', () => { + const express = require('express'); + const app = express(); + spdy.createServer({}, app); + }); }); diff --git a/types/spdy/tslint.json b/types/spdy/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/spdy/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/sqs-consumer/index.d.ts b/types/sqs-consumer/index.d.ts index e567eb0211..dfc61f3933 100644 --- a/types/sqs-consumer/index.d.ts +++ b/types/sqs-consumer/index.d.ts @@ -1,14 +1,16 @@ // Type definitions for sqs-consumer 3.5 // Project: https://github.com/BBC/sqs-consumer -// Definitions by: Daniel Chao <http://dchao.co/> +// Definitions by: Daniel Chao <http://dchao.co/>, Eric Byers <http://www.github.com/EricByers> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> import { SQS } from "aws-sdk"; +export type ConsumerDone = (error?: Error) => void; + export interface Options { queueUrl: string; - handleMessage(message: SQS.Message, done: Function): any; + handleMessage(message: SQS.Message, done: ConsumerDone): any; region?: string; attributeNames?: string[]; messageAttributeNames?: string[]; diff --git a/types/sqs-consumer/sqs-consumer-tests.ts b/types/sqs-consumer/sqs-consumer-tests.ts index 7b7ba94530..b76c5116ba 100644 --- a/types/sqs-consumer/sqs-consumer-tests.ts +++ b/types/sqs-consumer/sqs-consumer-tests.ts @@ -1,4 +1,5 @@ import * as Consumer from "sqs-consumer"; +import { SQS } from "aws-sdk"; const app = Consumer.create({ queueUrl: 'https://sqs.eu-west-1.amazonaws.com/account-id/queue-name', @@ -19,6 +20,16 @@ const app2 = Consumer.create({ waitTimeSeconds: 50 }); +// Test message handler. +const handleMessage = (message: SQS.Message, done: Consumer.ConsumerDone) => { + done(); +}; + +const app3 = Consumer.create({ + queueUrl: 'https://sqs.eu-west-1.amazonaws.com/account-id/queue-name', + handleMessage +}); + app.on('error', (err: any) => { console.log(err.message); }); diff --git a/types/status-bar/README.md b/types/status-bar/README.md new file mode 100644 index 0000000000..91b72cc583 --- /dev/null +++ b/types/status-bar/README.md @@ -0,0 +1 @@ +***NOTE:*** *This package is deprecated and new versions have been merged into [`@types/atom`](https://www.npmjs.com/package/@types/atom). The most recent version can be accessed as part of the `Atom.Services` namespace.* diff --git a/types/status-bar/index.d.ts b/types/status-bar/index.d.ts index 4c471503a7..116e045dbe 100644 --- a/types/status-bar/index.d.ts +++ b/types/status-bar/index.d.ts @@ -5,7 +5,7 @@ // TypeScript Version: 2.3 /// <reference types="space-pen" /> -/// <reference types="text-buffer" /> +/// <reference types="text-buffer/v0" /> declare namespace StatusBar { interface IStatusBarViewStatic { diff --git a/types/status-bar/tsconfig.json b/types/status-bar/tsconfig.json index 9fe41d5d67..2e4701e660 100644 --- a/types/status-bar/tsconfig.json +++ b/types/status-bar/tsconfig.json @@ -12,9 +12,6 @@ "typeRoots": [ "../" ], - "paths": { - "q": [ "q/v0" ] - }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true @@ -23,4 +20,4 @@ "index.d.ts", "status-bar-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/stripe-checkout/index.d.ts b/types/stripe-checkout/index.d.ts index 601559ee82..c84fdeeb1d 100644 --- a/types/stripe-checkout/index.d.ts +++ b/types/stripe-checkout/index.d.ts @@ -16,7 +16,7 @@ interface StripeCheckoutHandler { interface StripeCheckoutOptions { key?: string; - token?(token: stripe.StripeTokenResponse): void; + token?(token: stripe.StripeCardTokenResponse): void; image?: string; name?: string; description?: string; diff --git a/types/stripe-v3/index.d.ts b/types/stripe-v3/index.d.ts index a6152c268b..db8257401c 100644 --- a/types/stripe-v3/index.d.ts +++ b/types/stripe-v3/index.d.ts @@ -19,6 +19,7 @@ declare namespace stripe { interface Stripe { elements(options?: elements.ElementsCreateOptions): elements.Elements; createToken(element: elements.Element, options?: TokenOptions): Promise<TokenResponse>; + createSource(options: SourceOptions): Promise<SourceResponse>; } interface StripeOptions { @@ -36,6 +37,36 @@ declare namespace stripe { currency?: string; } + interface SourceOptions { + type: string; + flow?: 'redirect' | 'receiver' | 'code_verification' | 'none'; + sepa_debit?: { + iban: string; + }; + currency?: string; + amount?: number; + owner?: { + address?: { + city?: string; + country?: string; + line1?: string; + line2?: string; + postal_code?: string; + state?: string; + }; + name?: string; + email?: string; + phone?: string; + }; + metadata?: {}; + statement_descriptor?: string; + redirect?: { + return_url: string; + }; + token?: string; + usage?: 'reusable' | 'single_use'; + } + interface Token { id: string; object: string; @@ -53,6 +84,35 @@ declare namespace stripe { error?: Error; } + interface Source { + client_secret: string; + created: number; + currency: string; + id: string; + owner: { + address: string | null; + email: string | null; + name: string | null; + phone: string | null; + verified_address: string | null; + verified_email: string | null; + verified_name: string | null; + verified_phone: string | null; + }; + sepa_debit?: { + bank_code: string | null; + country: string | null; + fingerprint: string; + last4: string; + mandate_reference: string; + }; + } + + interface SourceResponse { + source?: Source; + error?: Error; + } + interface Error { type: string; charge: string; @@ -119,7 +179,7 @@ declare namespace stripe { interface Element { // HTMLElement keeps giving this error for some reason: // Cannot find name 'HTMLElement' - mount(domElement: string | any): void; + mount(domElement: any): void; on(event: eventTypes, handler: handler): void; focus(): void; blur(): void; diff --git a/types/strophe/index.d.ts b/types/strophe/index.d.ts index cc33e8883a..5f07dd461e 100644 --- a/types/strophe/index.d.ts +++ b/types/strophe/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: David Deutsch <https://github.com/DavidKDeutsch> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare namespace Strophe { +export namespace Strophe { /** Constant: VERSION * The version of the Strophe library. Unreleased builds will have * a version of head-HASH where HASH is a partial revision. @@ -170,14 +170,14 @@ declare namespace Strophe { function xmlElement(name: string, text?: string, attrs?: any): Element; /* Function: xmlescape - * Excapes invalid xml characters. - * - * Parameters: - * (String) text - text to escape. - * - * Returns: - * Escaped text. - */ + * Excapes invalid xml characters. + * + * Parameters: + * (String) text - text to escape. + * + * Returns: + * Escaped text. + */ function xmlescape(text: string): string; /* Function: xmlunescape @@ -991,53 +991,53 @@ declare namespace Strophe { */ interface SASLMechanism { /** - * Function: test - * Checks if mechanism able to run. - * To disable a mechanism, make this return false; - * - * To disable plain authentication run - * > Strophe.SASLPlain.test = function() { - * > return false; - * > } - * - * See <SASL mechanisms> for a list of available mechanisms. - * - * Parameters: - * (Strophe.Connection) connection - Target Connection. - * - * Returns: - * (Boolean) If mechanism was able to run. - */ + * Function: test + * Checks if mechanism able to run. + * To disable a mechanism, make this return false; + * + * To disable plain authentication run + * > Strophe.SASLPlain.test = function() { + * > return false; + * > } + * + * See <SASL mechanisms> for a list of available mechanisms. + * + * Parameters: + * (Strophe.Connection) connection - Target Connection. + * + * Returns: + * (Boolean) If mechanism was able to run. + */ test(connection: Connection): boolean; /** Variable: priority - * Determines which <SASLMechanism> is chosen for authentication (Higher is better). - * Users may override this to prioritize mechanisms differently. - * - * In the default configuration the priorities are - * - * SCRAM-SHA1 - 40 - * DIGEST-MD5 - 30 - * Plain - 20 - * - * Example: (This will cause Strophe to choose the mechanism that the server sent first) - * - * > Strophe.SASLMD5.priority = Strophe.SASLSHA1.priority; - * - * See <SASL mechanisms> for a list of available mechanisms. - * - */ + * Determines which <SASLMechanism> is chosen for authentication (Higher is better). + * Users may override this to prioritize mechanisms differently. + * + * In the default configuration the priorities are + * + * SCRAM-SHA1 - 40 + * DIGEST-MD5 - 30 + * Plain - 20 + * + * Example: (This will cause Strophe to choose the mechanism that the server sent first) + * + * > Strophe.SASLMD5.priority = Strophe.SASLSHA1.priority; + * + * See <SASL mechanisms> for a list of available mechanisms. + * + */ priority: number; } /** Constants: SASL mechanisms - * Available authentication mechanisms - * - * Strophe.SASLAnonymous - SASL Anonymous authentication. - * Strophe.SASLPlain - SASL Plain authentication. - * Strophe.SASLMD5 - SASL Digest-MD5 authentication - * Strophe.SASLSHA1 - SASL SCRAM-SHA1 authentication - */ + * Available authentication mechanisms + * + * Strophe.SASLAnonymous - SASL Anonymous authentication. + * Strophe.SASLPlain - SASL Plain authentication. + * Strophe.SASLMD5 - SASL Digest-MD5 authentication + * Strophe.SASLSHA1 - SASL SCRAM-SHA1 authentication + */ var SASLAnonymous: SASLMechanism; var SASLPlain: SASLMechanism; var SASLSHA1: SASLMechanism; @@ -1055,7 +1055,7 @@ declare namespace Strophe { * Returns: * A new Strophe.Builder object. */ -declare function $build(name: string, attrs?: any): Strophe.Builder; +export function $build(name: string, attrs?: any): Strophe.Builder; /** Function: $msg * Create a Strophe.Builder with a <message/> element as the root. @@ -1066,7 +1066,7 @@ declare function $build(name: string, attrs?: any): Strophe.Builder; * Returns: * A new Strophe.Builder object. */ -declare function $msg(attrs?: any): Strophe.Builder; +export function $msg(attrs?: any): Strophe.Builder; /** Function: $iq * Create a Strophe.Builder with an <iq/> element as the root. @@ -1077,7 +1077,7 @@ declare function $msg(attrs?: any): Strophe.Builder; * Returns: * A new Strophe.Builder object. */ -declare function $iq(attrs?: any): Strophe.Builder; +export function $iq(attrs?: any): Strophe.Builder; /** Function: $pres * Create a Strophe.Builder with a <presence/> element as the root. @@ -1088,11 +1088,23 @@ declare function $iq(attrs?: any): Strophe.Builder; * Returns: * A new Strophe.Builder object. */ -declare function $pres(attrs?: any): Strophe.Builder; +export function $pres(attrs?: any): Strophe.Builder; -// Support AMD require -declare module "strophe" { - export = { Strophe, $build, $msg, $iq, $pres }; +import { Strophe as _Strophe, $build as _$build, $msg as _$msg, $iq as _$iq, $pres as _$pres } from "strophe"; +declare global { + const Strophe: typeof _Strophe; + namespace Strophe { + type Status = _Strophe.Status; + type LogLevel = _Strophe.LogLevel; + type Builder = _Strophe.Builder; + type ConnectionOptions = _Strophe.ConnectionOptions; + interface Connection extends _Strophe.Connection {} + type SASLMechanism = _Strophe.SASLMechanism; + } + const $build: typeof _$build; + const $msg: typeof _$msg; + const $iq: typeof _$iq; + const $pres: typeof _$pres; } declare module "Strophe" { diff --git a/types/strophe/muc.d.ts b/types/strophe/muc.d.ts index 7d377c2302..601eec75a0 100644 --- a/types/strophe/muc.d.ts +++ b/types/strophe/muc.d.ts @@ -3,835 +3,851 @@ // Definitions by: Ilia Choly <https://github.com/icholy/> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare namespace Strophe { +import { Strophe } from "strophe"; - interface Connection { - muc: MUC.Plugin; - } - - namespace MUC { - - interface Plugin { - - /** - * Initialize the MUC plugin. Sets the correct connection object and - * extends the namesace. - * - * @param conn - the connection instance. - */ - init(conn: Connection): void; - - /** - * Join a multi-user chat room - * - * @param room - The multi-user chat room to join. - * @param nick - The nickname to use in the chat room. Optional - * @param msg_handler_cb - The function call to handle messages from the specified chat room. - * @param pres_handler_cb - The function call back to handle presence in the chat room. - * @param roster_cb - The function call to handle roster info in the chat room - * @param password - The optional password to use. (password protected rooms only) - * @param history_attrs - Optional attributes for retrieving history - * @param extended_presence - Optional XML for extending presence - */ - join( - room: string, - nick: string, - msg_handler_cb: (stanza: Element, room: XmppRoom) => boolean, - pres_handler_cb: (stanza: Element, room: XmppRoom) => boolean, - roster_cb: (occupants: OccupantMap, room: XmppRoom) => boolean, - password?: string, - history_attrs?: any, - extended_presence?: Element - ): void; - - - /** - * Leave a multi-user chat room - * - * @param room - The multi-user chat room to leave. - * @param nick - The nick name used in the room. - * @param handler_cb - Optional function to handle the successful leave. - * @param exit_msg - optional exit message. - * @return iqid - The unique id for the room leave.* - */ - leave( - room: string, - nick: string, - handler_cb?: Function, - exit_msg?: string - ): string; - - - /** - * Send a message to a room. - * - * @param) room - The multi-user chat room name. - * @param nick - The nick name used in the chat room. - * @param message - The plaintext message to send to the room. - * @param html_message - The message to send to the room with html markup. - * @param type - "groupchat" for group chat messages o "chat" for private chat messages - * @return msgiq - the unique id used to send the message - */ - message( - room: string, - nick: string, - message: string, - html_message: string, - type: "groupchat"|"chat" - ): string; - - - /** - * Convenience Function to send a Message to all Occupants - * - * @param room - The multi-user chat room name. - * @param message - The plaintext message to send to the room. - * @param html_message - Optional message to send to the room with html markup. - * @param msgid - Optional unique ID which will be set as the 'id' attribute of the stanza - * @return msgiq - the unique id used to send the message - */ - groupchat( - room: string, - message: string, - html_message?: string, - msgid?: string - ): string; - - - /** - * Send a mediated invitation. - * - * @param room - The multi-user chat room name. - * @param receiver - The invitation's receiver. - * @param reason - Optional reason for joining the room. - * @return msgiq - the unique id used to send the invitation - */ - invite( - room: string, - receiver: string, - reason?: string - ): string; - - - /** - * Send a mediated multiple invitation. - * - * @param room - The multi-user chat room name. - * @param receivers - The invitation's receivers. - * @param reason - Optional reason for joining the room. - * @return msgiq - the unique id used to send the invitation - */ - multipleInvites( - room: string, - receivers: string[], - reason?: string - ): string; - - - /** - * Send a direct invitation. - * - * @param room - The multi-user chat room name. - * @param receiver - The invitation's receiver. - * @param reason - Optional reason for joining the room. - * @param password - Optional password for the room. - * @return msgiq - the unique id used to send the invitation - */ - directInvite( - room: string, - receiver: string, - reason?: string, - password?: string - ): string; - - - /** - * Queries a room for a list of occupants - * - * @param room - The multi-user chat room name. - * @param success_cb - Optional function to handle the info. - * @param error_cb - Optional function to handle an error. - * @return id - the unique id used to send the info request - */ - queryOccupants( - room: string, - success_cb?: (stanza: Element) => any, - error_cb?: (error: any) => any - ): string; - - - /** - * Start a room configuration. - * - * @param room - The multi-user chat room name. - * @param handler_cb - Optional function to handle the config form. - * @param error_cb - Optional function to handle an error. - * @return id - the unique id used to send the configuration request - */ - configure( - room: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Cancel the room configuration - * - * @param room - The multi-user chat room name. - * @return id - the unique id used to cancel the configuration. - */ - cancelConfigure(room: string): string; - - - /** - * Save a room configuration. - * - * @param room - The multi-user chat room name. - * @param config- Form Object or an array of form elements used to configure the room. - * @param success_db - Optional function to handle success. - * @param error_cb - Optional function to handle an error. - * @return id - the unique id used to save the configuration. - */ - saveConfiguration( - room: string, - config: any, - success_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Create an instance room. - * - * @param room - The multi-user chat room name. - * @param success_db - Optional function to handle success. - * @param error_cb - Optional function to handle an error. - * @return id - the unique id used to create the chat room. - */ - createInstantRoom( - room: string, - success_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Create a configured room. - * - * @param room - The multi-user chat room name. - * @param config - the configuration. ex: {"muc#roomconfig_publicroom": "0", "muc#roomconfig_persistentroom": "1"} - * @param success_db - Optional function to handle success. - * @param error_cb - Optional function to handle an error. - * @return id - the unique id used to create the chat room. - */ - createConfiguredRoom( - room: string, - config: any, - success_cb: Function, - error_cb: Function - ): string; - - - /** - * Set the topic of the chat room. - * - * @param room - The multi-user chat room name. - * @param topic - Topic message. - */ - setTopic(room: string, topic: string): void; - - - /** - * Changes the role of a member of a MUC room. - * The modification can only be done by a room moderator. An error will be - * returned if the user doesn't have permission. - * - * @param room - The multi-user chat room name. - * @param nick - The nick name of the user to modify. - * @param role - The new role of the user. - * @param reason - Optional reason for the change. - * @param handler_cb - Optional callback for success - * @param error_cb - Optional callback for error - * @return iq - the id of the mode change request. - */ - modifyRole( - room: string, - nick: string, - role: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Kick a user. - * - * @param room - The multi-user chat room name. - * @param nick - The nick name of the user to modify. - * @param reason - Optional reason for the change. - * @param handler_cb - Optional callback for success - * @param error_cb - Optional callback for error - * @return iq - the id of the mode change request. - */ - kick( - room: string, - nick: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Voice a user. - * - * @param room - The multi-user chat room name. - * @param nick - The nick name of the user to modify. - * @param reason - Optional reason for the change. - * @param handler_cb - Optional callback for success - * @param error_cb - Optional callback for error - * @return iq - the id of the mode change request. - */ - voice( - room: string, - nick: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Mute a user. - * - * @param room - The multi-user chat room name. - * @param nick - The nick name of the user to modify. - * @param reason - Optional reason for the change. - * @param handler_cb - Optional callback for success - * @param error_cb - Optional callback for error - * @return iq - the id of the mode change request. - */ - mute( - room: string, - nick: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Op a user. - * - * @param room - The multi-user chat room name. - * @param nick - The nick name of the user to modify. - * @param reason - Optional reason for the change. - * @param handler_cb - Optional callback for success - * @param error_cb - Optional callback for error - * @return iq - the id of the mode change request. - */ - op( - room: string, - nick: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - /** - * De-Op a user. - * - * @param room - The multi-user chat room name. - * @param nick - The nick name of the user to modify. - * @param reason - Optional reason for the change. - * @param handler_cb - Optional callback for success - * @param error_cb - Optional callback for error - * @return iq - the id of the mode change request. - */ - deop( - room: string, - nick: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Changes the affiliation of a member of a MUC room. - * The modification can only be done by a room moderator. An error will be - * returned if the user doesn't have permission. - * Parameters: - * @param room - The multi-user chat room name. - * @param jid - The jid of the user to modify. - * @param affiliation - The new affiliation of the user. - * @param reason - Optional reason for the change. - * @param handler_cb - Optional callback for success - * @param error_cb - Optional callback for error - * @return iq - the id of the mode change request. - */ - modifyAffiliation( - room: string, - jid: string, - affiliation: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Ban a user. - * - * @param room - The multi-user chat room name. - * @param jid - The jid of the user to modify. - * @param reason - Optional reason for the change. - * @param handler_cb - Optional callback for success - * @param error_cb - Optional callback for error - * @return iq - the id of the mode change request. - */ - ban( - room: string, - jid: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Member a user. - * - * @param room - The multi-user chat room name. - * @param jid - The jid of the user to modify. - * @param reason - Optional reason for the change. - * @param handler_cb - Optional callback for success - * @param error_cb - Optional callback for error - * @return iq - the id of the mode change request. - */ - member( - room: string, - jid: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Revoke a user. - * - * @param room - The multi-user chat room name. - * @param jid - The jid of the user to modify. - * @param reason - Optional reason for the change. - * @param handler_cb - Optional callback for success - * @param error_cb - Optional callback for error - * @return iq - the id of the mode change request. - */ - revoke( - room: string, - jid: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Owner a user. - * - * @param room - The multi-user chat room name. - * @param jid - The jid of the user to modify. - * @param reason - Optional reason for the change. - * @param handler_cb - Optional callback for success - * @param error_cb - Optional callback for error - * @return iq - the id of the mode change request. - */ - owner( - room: string, - jid: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Admin a user. - * - * @param room - The multi-user chat room name. - * @param jid - The jid of the user to modify. - * @param reason - Optional reason for the change. - * @param handler_cb - Optional callback for success - * @param error_cb - Optional callback for error - * @return iq - the id of the mode change request. - */ - owner( - room: string, - jid: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - /** - * Change the current users nick name. - * - * @param room - The multi-user chat room name. - * @param user - The new nick name. - */ - changeNick(room: string, user: string): void; - - /** - * Change the current users status. - * - * @param room - The multi-user chat room name. - * @param user - The current nick. - * @param show - The new show-text. - * @param status - The new status-text. - */ - setStatus( - room: string, - user: string, - show: string, - status: string - ): void; - - /** - * Registering with a room. - * @see http://xmpp.org/extensions/xep-0045.html#register - * - * @param room - The multi-user chat room name. - * @param handle_cb - Function to call for room list return. - * @param error_cb - Function to call on error. - */ - registrationRequest( - room: string, - handle_cb: Function, - error_cb: Function - ): void; - - - /** - * Submits registration form. - * - * @param room - The multi-user chat room name. - * @param fields - The form fields. - * @param handle_cb - Function to call for room list return. - * @param error_cb - Function to call on error. - */ - submitRegistrationForm( - room: string, - fields: any, - handle_cb: Function, - error_cb: Function - ): void; - - /** - * List all chat room available on a server. - * - * @param server - name of chat server. - * @param handle_cb - Function to call for room list return. - * @param error_cb - Function to call on error. - */ - listRooms( - server: string, - handle_cb: (stanza: Element) => any, - error_cb: (error: any) => any - ): void; +declare module "strophe" { + namespace Strophe { + interface Connection { + muc: MUC.Plugin; } - interface XmppRoom { + namespace MUC { - join( - msg_handler_cb: Function, - pres_handler_cb: Function, - roster_cb: Function - ): void; + interface Plugin { + + /** + * Initialize the MUC plugin. Sets the correct connection object and + * extends the namesace. + * + * @param conn - the connection instance. + */ + init(conn: Connection): void; + + /** + * Join a multi-user chat room + * + * @param room - The multi-user chat room to join. + * @param nick - The nickname to use in the chat room. Optional + * @param msg_handler_cb - The function call to handle messages from the specified chat room. + * @param pres_handler_cb - The function call back to handle presence in the chat room. + * @param roster_cb - The function call to handle roster info in the chat room + * @param password - The optional password to use. (password protected rooms only) + * @param history_attrs - Optional attributes for retrieving history + * @param extended_presence - Optional XML for extending presence + */ + join( + room: string, + nick: string, + msg_handler_cb: (stanza: Element, room: XmppRoom) => boolean, + pres_handler_cb: (stanza: Element, room: XmppRoom) => boolean, + roster_cb: (occupants: OccupantMap, room: XmppRoom) => boolean, + password?: string, + history_attrs?: any, + extended_presence?: Element + ): void; - leave( - handler_cb?: Function, - exit_msg?: string - ): void; + /** + * Leave a multi-user chat room + * + * @param room - The multi-user chat room to leave. + * @param nick - The nick name used in the room. + * @param handler_cb - Optional function to handle the successful leave. + * @param exit_msg - optional exit message. + * @return iqid - The unique id for the room leave.* + */ + leave( + room: string, + nick: string, + handler_cb?: Function, + exit_msg?: string + ): string; - message( - message: string, - html_message: string, - type: "groupchat"|"chat" - ): string; + /** + * Send a message to a room. + * + * @param) room - The multi-user chat room name. + * @param nick - The nick name used in the chat room. + * @param message - The plaintext message to send to the room. + * @param html_message - The message to send to the room with html markup. + * @param type - "groupchat" for group chat messages o "chat" for private chat messages + * @return msgiq - the unique id used to send the message + */ + message( + room: string, + nick: string, + message: string, + html_message: string, + type: "groupchat"|"chat" + ): string; - groupchat(message: string, html_message?: string): string; + /** + * Convenience Function to send a Message to all Occupants + * + * @param room - The multi-user chat room name. + * @param message - The plaintext message to send to the room. + * @param html_message - Optional message to send to the room with html markup. + * @param msgid - Optional unique ID which will be set as the 'id' attribute of the stanza + * @return msgiq - the unique id used to send the message + */ + groupchat( + room: string, + message: string, + html_message?: string, + msgid?: string + ): string; - invite(receiver: string, reason?: string): string; + /** + * Send a mediated invitation. + * + * @param room - The multi-user chat room name. + * @param receiver - The invitation's receiver. + * @param reason - Optional reason for joining the room. + * @return msgiq - the unique id used to send the invitation + */ + invite( + room: string, + receiver: string, + reason?: string + ): string; - multipleInvites(receivers: string[], reason?: string): string; + /** + * Send a mediated multiple invitation. + * + * @param room - The multi-user chat room name. + * @param receivers - The invitation's receivers. + * @param reason - Optional reason for joining the room. + * @return msgiq - the unique id used to send the invitation + */ + multipleInvites( + room: string, + receivers: string[], + reason?: string + ): string; - directInvite(receiver: string, reason?: string): string; + /** + * Send a direct invitation. + * + * @param room - The multi-user chat room name. + * @param receiver - The invitation's receiver. + * @param reason - Optional reason for joining the room. + * @param password - Optional password for the room. + * @return msgiq - the unique id used to send the invitation + */ + directInvite( + room: string, + receiver: string, + reason?: string, + password?: string + ): string; - configure(handler_cb: Function): string; + /** + * Queries a room for a list of occupants + * + * @param room - The multi-user chat room name. + * @param success_cb - Optional function to handle the info. + * @param error_cb - Optional function to handle an error. + * @return id - the unique id used to send the info request + */ + queryOccupants( + room: string, + success_cb?: (stanza: Element) => any, + error_cb?: (error: any) => any + ): string; - cancelConfigure(): string; + /** + * Start a room configuration. + * + * @param room - The multi-user chat room name. + * @param handler_cb - Optional function to handle the config form. + * @param error_cb - Optional function to handle an error. + * @return id - the unique id used to send the configuration request + */ + configure( + room: string, + handler_cb?: Function, + error_cb?: Function + ): string; - saveConfiguration(config: any): string; + /** + * Cancel the room configuration + * + * @param room - The multi-user chat room name. + * @return id - the unique id used to cancel the configuration. + */ + cancelConfigure(room: string): string; - queryOccupants(success_cb: Function, error_cb: Function): void; + /** + * Save a room configuration. + * + * @param room - The multi-user chat room name. + * @param config- Form Object or an array of form elements used to configure the room. + * @param success_db - Optional function to handle success. + * @param error_cb - Optional function to handle an error. + * @return id - the unique id used to save the configuration. + */ + saveConfiguration( + room: string, + config: any, + success_cb?: Function, + error_cb?: Function + ): string; - setTopic(topic: string): string; + /** + * Create an instance room. + * + * @param room - The multi-user chat room name. + * @param success_db - Optional function to handle success. + * @param error_cb - Optional function to handle an error. + * @return id - the unique id used to create the chat room. + */ + createInstantRoom( + room: string, + success_cb?: Function, + error_cb?: Function + ): string; - modifyRole( - nick: string, - role: string, - reason?: string, - success_cb?: Function, - error_cb?: Function - ): string; + /** + * Create a configured room. + * + * @param room - The multi-user chat room name. + * @param config - the configuration. ex: {"muc#roomconfig_publicroom": "0", "muc#roomconfig_persistentroom": "1"} + * @param success_db - Optional function to handle success. + * @param error_cb - Optional function to handle an error. + * @return id - the unique id used to create the chat room. + */ + createConfiguredRoom( + room: string, + config: any, + success_cb: Function, + error_cb: Function + ): string; - kick( - nick: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; + /** + * Set the topic of the chat room. + * + * @param room - The multi-user chat room name. + * @param topic - Topic message. + */ + setTopic(room: string, topic: string): void; - voice( - nick: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; + /** + * Changes the role of a member of a MUC room. + * The modification can only be done by a room moderator. An error will be + * returned if the user doesn't have permission. + * + * @param room - The multi-user chat room name. + * @param nick - The nick name of the user to modify. + * @param role - The new role of the user. + * @param reason - Optional reason for the change. + * @param handler_cb - Optional callback for success + * @param error_cb - Optional callback for error + * @return iq - the id of the mode change request. + */ + modifyRole( + room: string, + nick: string, + role: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; - mute( - nick: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; + /** + * Kick a user. + * + * @param room - The multi-user chat room name. + * @param nick - The nick name of the user to modify. + * @param reason - Optional reason for the change. + * @param handler_cb - Optional callback for success + * @param error_cb - Optional callback for error + * @return iq - the id of the mode change request. + */ + kick( + room: string, + nick: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; - op( - nick: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; + /** + * Voice a user. + * + * @param room - The multi-user chat room name. + * @param nick - The nick name of the user to modify. + * @param reason - Optional reason for the change. + * @param handler_cb - Optional callback for success + * @param error_cb - Optional callback for error + * @return iq - the id of the mode change request. + */ + voice( + room: string, + nick: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; - deop( - nick: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; + /** + * Mute a user. + * + * @param room - The multi-user chat room name. + * @param nick - The nick name of the user to modify. + * @param reason - Optional reason for the change. + * @param handler_cb - Optional callback for success + * @param error_cb - Optional callback for error + * @return iq - the id of the mode change request. + */ + mute( + room: string, + nick: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; - modifyAffiliation( - jid: string, - affiliation: string, - reason?: string, - success_cb?: Function, - error_cb?: Function - ): string; + /** + * Op a user. + * + * @param room - The multi-user chat room name. + * @param nick - The nick name of the user to modify. + * @param reason - Optional reason for the change. + * @param handler_cb - Optional callback for success + * @param error_cb - Optional callback for error + * @return iq - the id of the mode change request. + */ + op( + room: string, + nick: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; - ban( - jid: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; + /** + * De-Op a user. + * + * @param room - The multi-user chat room name. + * @param nick - The nick name of the user to modify. + * @param reason - Optional reason for the change. + * @param handler_cb - Optional callback for success + * @param error_cb - Optional callback for error + * @return iq - the id of the mode change request. + */ + deop( + room: string, + nick: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; - member( - jid: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; + /** + * Changes the affiliation of a member of a MUC room. + * The modification can only be done by a room moderator. An error will be + * returned if the user doesn't have permission. + * Parameters: + * @param room - The multi-user chat room name. + * @param jid - The jid of the user to modify. + * @param affiliation - The new affiliation of the user. + * @param reason - Optional reason for the change. + * @param handler_cb - Optional callback for success + * @param error_cb - Optional callback for error + * @return iq - the id of the mode change request. + */ + modifyAffiliation( + room: string, + jid: string, + affiliation: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; - revoke( - jid: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; + /** + * Ban a user. + * + * @param room - The multi-user chat room name. + * @param jid - The jid of the user to modify. + * @param reason - Optional reason for the change. + * @param handler_cb - Optional callback for success + * @param error_cb - Optional callback for error + * @return iq - the id of the mode change request. + */ + ban( + room: string, + jid: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; - owner( - jid: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; + /** + * Member a user. + * + * @param room - The multi-user chat room name. + * @param jid - The jid of the user to modify. + * @param reason - Optional reason for the change. + * @param handler_cb - Optional callback for success + * @param error_cb - Optional callback for error + * @return iq - the id of the mode change request. + */ + member( + room: string, + jid: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; - admin( - jid: string, - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; + /** + * Revoke a user. + * + * @param room - The multi-user chat room name. + * @param jid - The jid of the user to modify. + * @param reason - Optional reason for the change. + * @param handler_cb - Optional callback for success + * @param error_cb - Optional callback for error + * @return iq - the id of the mode change request. + */ + revoke( + room: string, + jid: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; - changeNick(nick: string): string; + /** + * Owner a user. + * + * @param room - The multi-user chat room name. + * @param jid - The jid of the user to modify. + * @param reason - Optional reason for the change. + * @param handler_cb - Optional callback for success + * @param error_cb - Optional callback for error + * @return iq - the id of the mode change request. + */ + owner( + room: string, + jid: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; - setStatus(show: string, status: string): string; + /** + * Admin a user. + * + * @param room - The multi-user chat room name. + * @param jid - The jid of the user to modify. + * @param reason - Optional reason for the change. + * @param handler_cb - Optional callback for success + * @param error_cb - Optional callback for error + * @return iq - the id of the mode change request. + */ + owner( + room: string, + jid: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; - /** - * Adds a handler to the MUC room. - * Parameters: - * @param handler_type - 'message', 'presence' or 'roster'. - * @param handler - The handler function. - * @return id - the id of handler. - */ - addHandler( - handler_type: "presence"|"message"|"roster", - handler: Function - ): number; + /** + * Change the current users nick name. + * + * @param room - The multi-user chat room name. + * @param user - The new nick name. + */ + changeNick(room: string, user: string): void; + + /** + * Change the current users status. + * + * @param room - The multi-user chat room name. + * @param user - The current nick. + * @param show - The new show-text. + * @param status - The new status-text. + */ + setStatus( + room: string, + user: string, + show: string, + status: string + ): void; + + /** + * Registering with a room. + * @see http://xmpp.org/extensions/xep-0045.html#register + * + * @param room - The multi-user chat room name. + * @param handle_cb - Function to call for room list return. + * @param error_cb - Function to call on error. + */ + registrationRequest( + room: string, + handle_cb: Function, + error_cb: Function + ): void; - /** - * Removes a handler from the MUC room. - * This function takes ONLY ids returned by the addHandler function - * of this room. passing handler ids returned by connection.addHandler - * may brake things! - * - * @param id - the id of the handler - */ - removeHandler(id: number): void; + /** + * Submits registration form. + * + * @param room - The multi-user chat room name. + * @param fields - The form fields. + * @param handle_cb - Function to call for room list return. + * @param error_cb - Function to call on error. + */ + submitRegistrationForm( + room: string, + fields: any, + handle_cb: Function, + error_cb: Function + ): void; + + /** + * List all chat room available on a server. + * + * @param server - name of chat server. + * @param handle_cb - Function to call for room list return. + * @param error_cb - Function to call on error. + */ + listRooms( + server: string, + handle_cb: (stanza: Element) => any, + error_cb: (error: any) => any + ): void; + } + + interface XmppRoom { + + join( + msg_handler_cb: Function, + pres_handler_cb: Function, + roster_cb: Function + ): void; + + + leave( + handler_cb?: Function, + exit_msg?: string + ): void; + + + message( + message: string, + html_message: string, + type: "groupchat"|"chat" + ): string; + + + groupchat(message: string, html_message?: string): string; + + + invite(receiver: string, reason?: string): string; + + + multipleInvites(receivers: string[], reason?: string): string; + + + directInvite(receiver: string, reason?: string): string; + + + configure(handler_cb: Function): string; + + + cancelConfigure(): string; + + + saveConfiguration(config: any): string; + + + queryOccupants(success_cb: Function, error_cb: Function): void; + + + setTopic(topic: string): string; + + + modifyRole( + nick: string, + role: string, + reason?: string, + success_cb?: Function, + error_cb?: Function + ): string; + + + kick( + nick: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + voice( + nick: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + mute( + nick: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + op( + nick: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + deop( + nick: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + modifyAffiliation( + jid: string, + affiliation: string, + reason?: string, + success_cb?: Function, + error_cb?: Function + ): string; + + + ban( + jid: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + member( + jid: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + revoke( + jid: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + owner( + jid: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + admin( + jid: string, + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + changeNick(nick: string): string; + + + setStatus(show: string, status: string): string; + + + /** + * Adds a handler to the MUC room. + * Parameters: + * @param handler_type - 'message', 'presence' or 'roster'. + * @param handler - The handler function. + * @return id - the id of handler. + */ + addHandler( + handler_type: "presence"|"message"|"roster", + handler: Function + ): number; + + + /** + * Removes a handler from the MUC room. + * This function takes ONLY ids returned by the addHandler function + * of this room. passing handler ids returned by connection.addHandler + * may brake things! + * + * @param id - the id of the handler + */ + removeHandler(id: number): void; + + } + + + interface RoomConfig { + parse(info?: Element): any; + } + + + interface OccupantInfo { + nick?: string; + affiliation?: string; + role?: string; + jid?: string; + status?: string; + show?: string + } + + + interface Occupant extends OccupantInfo { + + modifyRole( + role: string, + reason?: string, + success_cb?: Function, + error_cb?: Function + ): string; + + + kick( + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + voice( + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + mute( + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + op( + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + deop( + reason?: string, + handler_cb?: Function, + error_cb?: Function + ): string; + + + modifyAffiliation( + affiliation: string, + reason?: string, + success_cb?: Function, + error_cb?: Function + ): string; + + + ban( + reason?: string, + success_cb?: Function, + error_cb?: Function + ): string; + + + member( + reason?: string, + success_cb?: Function, + error_cb?: Function + ): string; + + + revoke( + reason?: string, + success_cb?: Function, + error_cb?: Function + ): string; + + + owner( + reason?: string, + success_cb?: Function, + error_cb?: Function + ): string; + + + admin( + reason?: string, + success_cb?: Function, + error_cb?: Function + ): string; + + update(data: OccupantInfo): void; + } + + interface OccupantMap { + [jid: string]: Occupant; + } } - - - interface RoomConfig { - parse(info?: Element): any; - } - - - interface OccupantInfo { - nick?: string; - affiliation?: string; - role?: string; - jid?: string; - status?: string; - show?: string - } - - - interface Occupant extends OccupantInfo { - - modifyRole( - role: string, - reason?: string, - success_cb?: Function, - error_cb?: Function - ): string; - - - kick( - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - voice( - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - mute( - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - op( - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - deop( - reason?: string, - handler_cb?: Function, - error_cb?: Function - ): string; - - - modifyAffiliation( - affiliation: string, - reason?: string, - success_cb?: Function, - error_cb?: Function - ): string; - - - ban( - reason?: string, - success_cb?: Function, - error_cb?: Function - ): string; - - - member( - reason?: string, - success_cb?: Function, - error_cb?: Function - ): string; - - - revoke( - reason?: string, - success_cb?: Function, - error_cb?: Function - ): string; - - - owner( - reason?: string, - success_cb?: Function, - error_cb?: Function - ): string; - - - admin( - reason?: string, - success_cb?: Function, - error_cb?: Function - ): string; - - update(data: OccupantInfo): void; - } - - interface OccupantMap { - [jid: string]: Occupant; - } - } } +import _MUC = Strophe.MUC; +declare global { + namespace Strophe { + namespace MUC { + type Plugin = _MUC.Plugin; + type XmppRoom = _MUC.XmppRoom; + type RoomConfig = _MUC.RoomConfig; + type OccupantInfo = _MUC.OccupantInfo; + type Occupant = _MUC.Occupant; + type OccupantMap = _MUC.OccupantMap; + } + } +} diff --git a/types/superagent/index.d.ts b/types/superagent/index.d.ts index 05e1275ca0..fdf23891cb 100644 --- a/types/superagent/index.d.ts +++ b/types/superagent/index.d.ts @@ -16,6 +16,10 @@ type CallbackHandler = (err: any, res: request.Response) => void; type Serializer = (obj: any) => string; +type MultipartValueSingle = Blob | Buffer | fs.ReadStream | string | boolean | number; + +type MultipartValue = MultipartValueSingle | MultipartValueSingle[]; + declare const request: request.SuperAgentStatic; declare namespace request { @@ -103,14 +107,15 @@ declare namespace request { interface Request extends Promise<Response> { abort(): void; accept(type: string): this; - attach(field: string, file: Blob | Buffer | fs.ReadStream | string, filename?: string): this; + attach(field: string, file: MultipartValueSingle, options?: string | { filename?: string; contentType?: string }): this; auth(user: string, name: string): this; buffer(val?: boolean): this; ca(cert: Buffer): this; cert(cert: Buffer | string): this; clearTimeout(): this; end(callback?: CallbackHandler): this; - field(name: string, val: string): this; + field(name: string, val: MultipartValue): this; + field(fields: { [fieldName: string]: MultipartValue }): this; get(field: string): string; key(cert: Buffer | string): this; ok(callback: (res: Response) => boolean): this; diff --git a/types/superagent/superagent-tests.ts b/types/superagent/superagent-tests.ts index 6d7eeb793d..5978b37206 100644 --- a/types/superagent/superagent-tests.ts +++ b/types/superagent/superagent-tests.ts @@ -285,6 +285,7 @@ request .attach('avatar', 'path/to/tobi.png', 'user.png') .attach('image', 'path/to/loki.png') .attach('file', 'path/to/jane.png') + .attach('fileWithOptions', 'path/to/file.png', { filename: 'filename', contentType: 'contentType' }) .attach('blob', blob) .end(callback); @@ -293,6 +294,12 @@ request .post('/upload') .field('user[name]', 'Tobi') .field('user[email]', 'tobi@learnboost.com') + .field({ + field1: 'value1', + field2: Buffer.from([ 10, 20 ]), + field3: [ 'value1', 'value2' ], + field4: true, + }) .attach('image', 'path/to/tobi.png') .end(callback); diff --git a/types/swaggerize-express/index.d.ts b/types/swaggerize-express/index.d.ts index 49f2fef004..d7a8df14bb 100644 --- a/types/swaggerize-express/index.d.ts +++ b/types/swaggerize-express/index.d.ts @@ -224,13 +224,13 @@ declare namespace swaggerize { } export interface RouteSegment { - [urlSegment: string]: RouteSegment | express.RequestHandler; + [urlSegment: string]: RouteSegment | express.RequestHandler | express.RequestHandler[]; } export interface Options { api: Swagger.ApiDefinition - docspath: String - handlers: String | RouteSegment + docspath: string + handlers: string | RouteSegment } export interface IConfig { diff --git a/types/swaggerize-express/swaggerize-express-tests.ts b/types/swaggerize-express/swaggerize-express-tests.ts index 79d453f29d..9dd0e1e718 100644 --- a/types/swaggerize-express/swaggerize-express-tests.ts +++ b/types/swaggerize-express/swaggerize-express-tests.ts @@ -2,35 +2,26 @@ import http = require('http'); import express = require('express'); import swaggerize = require('swaggerize-express'); +const api = { + swagger: "2.0", + host: "localhost:8080", + info: { + title: "swaggerize-express.d.ts test", + version: "1" + }, + paths: { + } +}; + var app = express(); app.use(swaggerize(<swaggerize.Options>{ - api: { - swagger: "2.0", - host: "localhost:8080", - info: { - title: "swaggerize-express.d.ts test", - version: "1" - }, - paths: { - - } - }, + api, docspath: '/api-docs', handlers: './handlers' })); app.use(swaggerize(<swaggerize.Options>{ - api: { - swagger: "2.0", - host: "localhost:8080", - info: { - title: "swaggerize-express.d.ts test", - version: "1" - }, - paths: { - - } - }, + api, docspath: '/api-docs', handlers: { 'api': { @@ -43,6 +34,21 @@ app.use(swaggerize(<swaggerize.Options>{ } })); +app.use(swaggerize(<swaggerize.Options>{ + api, + docspath: '/api-docs', + handlers: { + 'api': { + 'authenticated-path': { + '$get': [ + (req: express.Request, res: express.Response, next: express.NextFunction) => next(), + (req: express.Request, res: express.Response) => res.send('v1'), + ] + } + } + } +})); + var server = app.listen(18888, 'localhost', function () { (<swaggerize.SwaggerizedExpress>app).swagger.api.host = server.address().address + ':' + server.address().port; }); diff --git a/types/swiper/tslint.json b/types/swiper/tslint.json index 075fa88707..b236115191 100644 --- a/types/swiper/tslint.json +++ b/types/swiper/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "no-declare-current-package": false, "no-single-declare-module": false } } diff --git a/types/tabulator/index.d.ts b/types/tabulator/index.d.ts new file mode 100644 index 0000000000..a773396f2c --- /dev/null +++ b/types/tabulator/index.d.ts @@ -0,0 +1,18 @@ +// Type definitions for tabulator 0.1 +// Project: https://github.com/codenautas/tabulator +// Definitions by: Eugenio Arosteguy <https://github.com/euginio> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export as namespace tabulatorLib; +// TypeScript Version: 2.2 + +export = Tabulator; + +/*~ Write your module's methods and properties in this class */ +declare class Tabulator { + constructor(); + // myMethod(opts: Tabulator.chartType): number; + defaultShowAttribute: string; + toMatrix(datum: object): object; + toHtmlTable(matrix: object): any; +} diff --git a/types/tabulator/tabulator-tests.ts b/types/tabulator/tabulator-tests.ts new file mode 100644 index 0000000000..2cd6f9e245 --- /dev/null +++ b/types/tabulator/tabulator-tests.ts @@ -0,0 +1,5 @@ +let tab = new tabulatorLib(); +tab.defaultShowAttribute = 'valor'; +let datum = { a: 'aaa' }; +let matrix = tab.toMatrix(datum); +tab.toHtmlTable(matrix); diff --git a/types/tabulator/tsconfig.json b/types/tabulator/tsconfig.json new file mode 100644 index 0000000000..32db9cfaad --- /dev/null +++ b/types/tabulator/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "tabulator-tests.ts" + ] +} diff --git a/types/tabulator/tslint.json b/types/tabulator/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/tabulator/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/text-buffer/.editorconfig b/types/text-buffer/.editorconfig new file mode 100644 index 0000000000..2b997514d2 --- /dev/null +++ b/types/text-buffer/.editorconfig @@ -0,0 +1,3 @@ +[*.ts] +indent_style = tab +indent_size = 2 diff --git a/types/text-buffer/README.md b/types/text-buffer/README.md new file mode 100644 index 0000000000..f4d852a5e5 --- /dev/null +++ b/types/text-buffer/README.md @@ -0,0 +1,31 @@ +## TextBuffer Type Definitions + +TypeScript type definitions for [TextBuffer](https://github.com/atom/text-buffer), which is published as "[text-buffer](https://www.npmjs.com/package/text-buffer)" on NPM. + +### Usage Notes + +#### Exports + +This module has a single entity as its export: the [TextBuffer](https://github.com/atom/text-buffer/blob/master/src/text-buffer.coffee) class. The require syntax is typically used to import modules like this. + +```ts +import TextBuffer = require("text-buffer"); +``` + +#### Point and Range + +Both the Point class and the Range class are anchored onto the TextBuffer class as static properties, allowing construction of both despite TextBuffer being the singular export. + +```ts +import TextBuffer = require("text-buffer"); +let point = new TextBuffer.Point(0, 0); +let range = new TextBuffer.Range([0, 0], [1, 4]); +``` + +#### The TextBuffer Namespace + +The three primary classes of TextBuffer are Point, Range, and TextBuffer, yet there are many other types passed around and used by it. Many of the types used by TextBuffer can be referenced from the TextBuffer namespace. + +```ts +function example(marker: TextBuffer.Marker) {} +``` diff --git a/types/text-buffer/index.d.ts b/types/text-buffer/index.d.ts index e3200a7aff..feae93f5b1 100644 --- a/types/text-buffer/index.d.ts +++ b/types/text-buffer/index.d.ts @@ -1,302 +1,1417 @@ -// Type definitions for text-buffer +// Type definitions for text-buffer 13.x // Project: https://github.com/atom/text-buffer -// Definitions by: vvakame <https://github.com/vvakame> +// Definitions by: GlenCFL <https://github.com/GlenCFL> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.2 -/// <reference types="atom" /> -/// <reference types="emissary" /> +/// <reference types="event-kit" /> +/// <reference types="pathwatcher" /> -declare namespace TextBuffer { +declare global { + namespace TextBuffer { + /** Objects that appear as parameters to callbacks. */ + namespace Events { + interface BufferWatchError { + /** The error object. */ + error: Error; - interface IPointStatic { - new (row?:number, column?:number):IPoint; + /** Call this function to indicate you have handled the error. + * The error will not be thrown if this function is called. + */ + handle(): void; + } - fromObject(point:IPoint, copy?:boolean):IPoint; - fromObject(object:number[]):IPoint; - fromObject(object:{row:number; column:number;}):IPoint; + interface FileSaved { + /** The path to which the buffer was saved. */ + path: string; + } - min(point1:IPoint, point2:IPoint):IPoint; - min(point1:number[], point2:IPoint):IPoint; - min(point1:{row:number; column:number;}, point2:IPoint):IPoint; + interface MarkerChanged { + /** Point representing the former head position. */ + oldHeadPosition: Point; - min(point1:IPoint, point2:number[]):IPoint; - min(point1:number[], point2:number[]):IPoint; - min(point1:{row:number; column:number;}, point2:number[]):IPoint; + /** Point representing the new head position. */ + newHeadPosition: Point; - min(point1:IPoint, point2:{row:number; column:number;}):IPoint; - min(point1:number[], point2:{row:number; column:number;}):IPoint; - min(point1:{row:number; column:number;}, point2:{row:number; column:number;}):IPoint; - } + /** Point representing the former tail position. */ + oldTailPosition: Point; - interface IPoint { - constructor: IPointStatic; + /** Point representing the new tail position. */ + newTailPosition: Point; - row:number; - column:number; + /** Boolean indicating whether the marker was valid before the change. */ + wasValid: boolean; - copy():IPoint; - freeze():IPoint; + /** Boolean indicating whether the marker is now valid. */ + isValid: boolean; - translate(delta:IPoint):IPoint; - translate(delta:number[]):IPoint; - translate(delta:{row:number; column:number;}):IPoint; + /** Boolean indicating whether the marker had a tail before the change. */ + hadTail: boolean; - add(other:IPoint):IPoint; - add(other:number[]):IPoint; - add(other:{row:number; column:number;}):IPoint; + /** Boolean indicating whether the marker now has a tail. */ + hasTail: boolean; - splitAt(column:number):IPoint[]; - compare(other:IPoint):number; - isEqual(other:IPoint):boolean; - isLessThan(other:IPoint):boolean; - isLessThanOrEqual(other:IPoint):boolean; - isGreaterThan(other:IPoint):boolean; - isGreaterThanOrEqual(other:IPoint):boolean; - toArray():number[]; - serialize():number[]; - } + /** -DEPRECATED- Object containing the marker's custom properties before the change. + * @deprecated + */ + oldProperties: object; - interface IRangeStatic { - deserialize(array:IPoint[]):IRange; + /** -DEPRECATED- Object containing the marker's custom properties after the change. + * @deprecated + */ + newProperties: object; - fromObject(object:IPoint[]):IRange; + /** Boolean indicating whether this change was caused by a textual + * change to the buffer or whether the marker was manipulated directly + * via its public API. + */ + textChanged: boolean; + } - fromObject(object:IRange, copy?:boolean):IRange; + interface DisplayMarkerChanged { + /** Point representing the former head buffer position. */ + oldHeadBufferPosition: Point; - fromObject(object:{start: IPoint; end: IPoint}):IRange; - fromObject(object:{start: number[]; end: IPoint}):IRange; - fromObject(object:{start: {row:number; column:number;}; end: IPoint}):IRange; + /** Point representing the new head buffer position. */ + newHeadBufferPosition: Point; - fromObject(object:{start: IPoint; end: number[]}):IRange; - fromObject(object:{start: number[]; end: number[]}):IRange; - fromObject(object:{start: {row:number; column:number;}; end: number[]}):IRange; + // Point representing the former tail buffer position. */ + oldTailBufferPosition: Point; - fromObject(object:{start: IPoint; end: {row:number; column:number;}}):IRange; - fromObject(object:{start: number[]; end: {row:number; column:number;}}):IRange; - fromObject(object:{start: {row:number; column:number;}; end: {row:number; column:number;}}):IRange; + /** Point representing the new tail buffer position. */ + newTailBufferPosition: Point; - fromText(point:IPoint, text:string):IRange; - fromText(point:number[], text:string):IRange; - fromText(point:{row:number; column:number;}, text:string):IRange; - fromText(text:string):IRange; + /** Point representing the former head screen position. */ + oldHeadScreenPosition: Point; - fromPointWithDelta(startPoint:IPoint, rowDelta:number, columnDelta:number):IRange; - fromPointWithDelta(startPoint:number[], rowDelta:number, columnDelta:number):IRange; - fromPointWithDelta(startPoint:{row:number; column:number;}, rowDelta:number, columnDelta:number):IRange; + /** Point representing the new head screen position. */ + newHeadScreenPosition: Point; - new(point1:IPoint, point2:IPoint):IRange; - new(point1:number[], point2:IPoint):IRange; - new(point1:{row:number; column:number;}, point2:IPoint):IRange; + /** Point representing the former tail screen position. */ + oldTailScreenPosition: Point; - new(point1:IPoint, point2:number[]):IRange; - new(point1:number[], point2:number[]):IRange; - new(point1:{row:number; column:number;}, point2:number[]):IRange; + /** Point representing the new tail screen position. */ + newTailScreenPosition: Point; - new(point1:IPoint, point2:{row:number; column:number;}):IRange; - new(point1:number[], point2:{row:number; column:number;}):IRange; - new(point1:{row:number; column:number;}, point2:{row:number; column:number;}):IRange; - } + /** Boolean indicating whether the marker was valid before the change. */ + wasValid: boolean; - interface IRange { - constructor:IRangeStatic; + /** Boolean indicating whether the marker is now valid. */ + isValid: boolean; - start: IPoint; - end: IPoint; + /** Boolean indicating whether the marker had a tail before the change. */ + hadTail: boolean; - serialize():number[][]; - copy():IRange; - freeze():IRange; - isEqual(other:IRange):boolean; - isEqual(other:IPoint[]):boolean; + /** Boolean indicating whether the marker now has a tail */ + hasTail: boolean; - compare(object:IPoint[]):number; + /** -DEPRECATED- Object containing the marker's custom properties before the change. + * @deprecated + */ + oldProperties: object; - compare(object:{start: IPoint; end: IPoint}):number; - compare(object:{start: number[]; end: IPoint}):number; - compare(object:{start: {row:number; column:number;}; end: IPoint}):number; + /** -DEPRECATED- Object containing the marker's custom properties after the change. + * @deprecated + */ + newProperties: object; - compare(object:{start: IPoint; end: number[]}):number; - compare(object:{start: number[]; end: number[]}):number; - compare(object:{start: {row:number; column:number;}; end: number[]}):number; + /** Boolean indicating whether this change was caused by a textual change to the + * buffer or whether the marker was manipulated directly via its public API. + */ + textChanged: boolean; + } - compare(object:{start: IPoint; end: {row:number; column:number;}}):number; - compare(object:{start: number[]; end: {row:number; column:number;}}):number; - compare(object:{start: {row:number; column:number;}; end: {row:number; column:number;}}):number; + interface BufferChanging { + /** Range of the old text. */ + oldRange: Range; + } - isSingleLine():boolean; - coversSameRows(other:IRange):boolean; + interface BufferChanged { + /** Range of the old text. */ + oldRange: Range; - add(object:IPoint[]):IRange; + /** Range of the new text. */ + newRange: Range; - add(object:{start: IPoint; end: IPoint}):IRange; - add(object:{start: number[]; end: IPoint}):IRange; - add(object:{start: {row:number; column:number;}; end: IPoint}):IRange; + /** String containing the text that was replaced. */ + oldText: string; - add(object:{start: IPoint; end: number[]}):IRange; - add(object:{start: number[]; end: number[]}):IRange; - add(object:{start: {row:number; column:number;}; end: number[]}):IRange; + /** String containing the text that was inserted. */ + newText: string; + } - add(object:{start: IPoint; end: {row:number; column:number;}}):IRange; - add(object:{start: number[]; end: {row:number; column:number;}}):IRange; - add(object:{start: {row:number; column:number;}; end: {row:number; column:number;}}):IRange; + interface BufferStoppedChanging { + changes: Structures.TextChange[]; + } + } - translate(startPoint:IPoint, endPoint:IPoint):IRange; - translate(startPoint:IPoint):IRange; + /** Objects that appear as parameters to functions. */ + namespace Options { + interface BufferLoad { + /** The file's encoding. */ + encoding?: string; - intersectsWith(otherRange:IRange):boolean; - containsRange(otherRange:IRange, exclusive:boolean):boolean; + /** A function that returns a boolean indicating whether the buffer should + * be destroyed if its file is deleted. + */ + shouldDestroyOnFileDelete?(): boolean; + } - containsPoint(point:IPoint, exclusive:boolean):boolean; - containsPoint(point:number[], exclusive:boolean):boolean; - containsPoint(point:{row:number; column:number;}, exclusive:boolean):boolean; + interface FindMarker { + /** Only include markers that start at the given Point. */ + startPosition?: PointLike|[number, number]; - intersectsRow(row:number):boolean; - intersectsRowRange(startRow:number, endRow:number):boolean; - union(otherRange:IRange):IRange; - isEmpty():boolean; - toDelta():IPoint; - getRowCount():number; - getRows():number[]; - } + /** Only include markers that end at the given Point. */ + endPosition?: PointLike|[number, number]; - interface IHistory { - // TBD - } + /** Only include markers that start inside the given Range. */ + startsInRange?: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]]; - interface IMarkerManager { - // TBD - } + /** Only include markers that end inside the given Range. */ + endsInRange?: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]]; - interface IMarker { - // TBD - } + /** Only include markers that contain the given Point, inclusive. */ + containsPoint?: PointLike|[number, number]; - interface IBufferPatch { - // TBD - } + /** Only include markers that contain the given Range, inclusive. */ + containsRange?: RangeLike|[PointLike, PointLike]| + [PointLike, [number, number]]|[[number, number], PointLike]| + [[number, number], [number, number]]; - interface ITextBufferStatic { - Point: IPointStatic; - Range: IRangeStatic; - newlineRegex:any; + /** Only include markers that start at the given row number. */ + startRow?: number; - new (text:string): ITextBuffer; - new (params:any): ITextBuffer; - } + /** Only include markers that end at the given row number. */ + endRow?: number; - interface ITextBuffer extends Emissary.IEmitter, Emissary.ISubscriber { - // Delegator.includeInto(TextBuffer); - // Serializable.includeInto(TextBuffer); + /** Only include markers that intersect the given row number. */ + intersectsRow?: number; + } - cachedText:string; - stoppedChangingDelay:number; - stoppedChangingTimeout:any; - cachedDiskContents:string; - conflict:boolean; - file:any; // pathwatcher.IFile - refcount:number; + interface FindDisplayMarker { + /** Only include markers starting at this Point in buffer coordinates. */ + startBufferPosition?: PointLike|[number, number]; - lines:string[]; - lineEndings:string[]; - offsetIndex:any; // span-skip-list.SpanSkipList - history:IHistory; - markers:IMarkerManager; - loaded:boolean; - digestWhenLastPersisted:string; - modifiedWhenLastPersisted:boolean; - useSerializedText:boolean; + /** Only include markers ending at this Point in buffer coordinates. */ + endBufferPosition?: PointLike|[number, number]; - deserializeParams(params:any):any; - serializeParams():any; + /** Only include markers starting at this Point in screen coordinates. */ + startScreenPosition?: PointLike|[number, number]; - getText():string; - getLines():string; - isEmpty():boolean; - getLineCount():number; - getLastRow():number; - lineForRow(row:number):string; - getLastLine():string; - lineEndingForRow(row:number):string; - lineLengthForRow(row:number):number; - setText(text:string):IRange; - setTextViaDiff(text:any):any[]; - setTextInRange(range:IRange, text:string, normalizeLineEndings?:boolean):IRange; - insert(position:IPoint, text:string, normalizeLineEndings?:boolean):IRange; - append(text:string, normalizeLineEndings?:boolean):IRange; - delete(range:IRange):IRange; - deleteRow(row:number):IRange; - deleteRows(startRow:number, endRow:number):IRange; - buildPatch(oldRange:IRange, newText:string, normalizeLineEndings?:boolean):IBufferPatch; - applyPatch(patch:IBufferPatch):any; - getTextInRange(range:IRange):string; - clipRange(range:IRange):IRange; - clipPosition(position:IPoint):IPoint; - getFirstPosition():IPoint; - getEndPosition():IPoint; - getRange():IRange; - rangeForRow(row:number, includeNewline?:boolean):IRange; - characterIndexForPosition(position:IPoint):number; - positionForCharacterIndex(offset:number):IPoint; - getMaxCharacterIndex():number; - loadSync():ITextBuffer; - load():Promise<ITextBuffer>; - finishLoading():ITextBuffer; - handleTextChange(event:any):any; - destroy():any; - isAlive():boolean; - isDestroyed():boolean; - isRetained():boolean; - retain():ITextBuffer; - release():ITextBuffer; - subscribeToFile():any; - hasMultipleEditors():boolean; - reload():any; - updateCachedDiskContentsSync():string; - updateCachedDiskContents():Promise<string>; - getBaseName():string; - getPath():string; - getUri():string; - setPath(filePath:string):any; - save():void; - saveAs(filePath:string):any; - isModified():boolean; - isInConflict():boolean; - destroyMarker(id:any):any; - matchesInCharacterRange(regex:any, startIndex:any, endIndex:any):any[]; - scan(regex:any, iterator:any):any; - backwardsScan(regex:any, iterator:any):any; - replace(regex:any, replacementText:any):any; - scanInRange(regex:any, range:any, iterator:any, reverse:any):any; - backwardsScanInRange(regex:any, range:any, iterator:any):any; - isRowBlank(row:number):boolean; - previousNonBlankRow(startRow:number):number; - nextNonBlankRow(startRow:number):number; - usesSoftTabs():boolean; - cancelStoppedChangingTimeout():any; - scheduleModifiedEvents():any; - emitModifiedStatusChanged(modifiedStatus:any):any; - logLines(start:number, end:number):void; + /** Only include markers ending at this Point in screen coordinates. */ + endScreenPosition?: PointLike|[number, number]; - // delegate to history property - undo():any; - redo():any; - transact(fn:Function):any; - beginTransaction():any; - commitTransaction():any; - abortTransaction():any; - clearUndoStack():any; + /** Only include markers starting inside this Range in buffer coordinates. */ + startsInBufferRange?: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]]; - // delegate to markers property - markRange(range:any, properties:any):any; - markPosition(range:any, properties:any):any; - getMarker(id:number):IMarker; - getMarkers():IMarker[]; - getMarkerCount():number; + /** Only include markers ending inside this Range in buffer coordinates. */ + endsInBufferRange?: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]]; + + /** Only include markers starting inside this Range in screen coordinates. */ + startsInScreenRange?: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]]; + + /** Only include markers ending inside this Range in screen coordinates. */ + endsInScreenRange?: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]]; + + /** Only include markers starting at this row in buffer coordinates. */ + startBufferRow?: number; + + /** Only include markers ending at this row in buffer coordinates. */ + endBufferRow?: number; + + /** Only include markers starting at this row in screen coordinates. */ + startScreenRow?: number; + + /** Only include markers ending at this row in screen coordinates. */ + endScreenRow?: number; + + /** Only include markers intersecting this Array of [startRow, endRow] in + * buffer coordinates. + */ + intersectsBufferRowRange?: [number, number]; + + /** Only include markers intersecting this Array of [startRow, endRow] in + * screen coordinates. + */ + intersectsScreenRowRange?: [number, number]; + + /** Only include markers containing this Range in buffer coordinates. */ + containsBufferRange?: RangeLike|[PointLike, PointLike]| + [PointLike, [number, number]]|[[number, number], PointLike]| + [[number, number], [number, number]]; + + /** Only include markers containing this Point in buffer coordinates. */ + containsBufferPosition?: PointLike|[number, number]; + + /** Only include markers contained in this Range in buffer coordinates. */ + containedInBufferRange?: RangeLike|[PointLike, PointLike]| + [PointLike, [number, number]]|[[number, number], PointLike]| + [[number, number], [number, number]]; + + /** Only include markers contained in this Range in screen coordinates. */ + containedInScreenRange?: RangeLike|[PointLike, PointLike]| + [PointLike, [number, number]]|[[number, number], PointLike]| + [[number, number], [number, number]]; + + /** Only include markers intersecting this Range in buffer coordinates. */ + intersectsBufferRange?: RangeLike|[PointLike, PointLike]| + [PointLike, [number, number]]|[[number, number], PointLike]| + [[number, number], [number, number]]; + + /** Only include markers intersecting this Range in screen coordinates. */ + intersectsScreenRange?: RangeLike|[PointLike, PointLike]| + [PointLike, [number, number]]|[[number, number], PointLike]| + [[number, number], [number, number]]; + } + + interface CopyMarker { + /** Whether or not the marker should be tailed. */ + tailed?: boolean; + + /** Creates the marker in a reversed orientation. */ + reversed?: boolean; + + /** Determines the rules by which changes to the buffer invalidate the marker. */ + invalidate?: "never"|"surround"|"overlap"|"inside"|"touch"; + + /** Indicates whether insertions at the start or end of the marked range should + * be interpreted as happening outside the marker. + */ + exclusive?: boolean; + + /** -DEPRECATED- Custom properties to be associated with the marker. */ + properties?: object; + } + + interface ScanContext { + /** The number of lines before the matched line to include in the results object. */ + leadingContextLineCount?: number; + + /** The number of lines after the matched line to include in the results object. */ + trailingContextLineCount?: number; + } + } + + /** The static side to each exported class. Should generally only be used internally. */ + namespace Statics { + /* tslint:disable:no-unnecessary-qualifier */ + /** The static side to the Point class. */ + interface Point { + /** Create a Point from an array containing two numbers representing the + * row and column. + */ + fromObject(object: [number, number]): TextBuffer.Point; + + /** Create a Point from an existing object which implements PointLike. */ + fromObject(object: TextBuffer.PointLike, copy?: boolean): TextBuffer.Point; + + /** Construct a Point object */ + new (row?: number, column?: number): TextBuffer.Point; + + /** Returns the given Point that is earlier in the buffer. */ + min(point1: TextBuffer.PointLike|[number, number], point2: TextBuffer.PointLike| + [number, number]): TextBuffer.Point; + } + + /** The static side to the Range class. */ + interface Range { + /** Convert any range-compatible object to a Range. */ + fromObject(object: TextBuffer.RangeLike|[TextBuffer.PointLike, TextBuffer.PointLike]| + [TextBuffer.PointLike, [number, number]]|[[number, number], TextBuffer.PointLike]| + [[number, number], [number, number]], copy?: boolean): TextBuffer.Range; + + /** Construct a Range object. */ + new (pointA?: TextBuffer.PointLike|[number, number], pointB?: TextBuffer.PointLike| + [number, number]): TextBuffer.Range; + + /** Call this with the result of Range::serialize to construct a new Range. */ + deserialize(array: object): TextBuffer.Range; + } + + /** The static side to the TextBuffer class. */ + interface TextBuffer { + Point: TextBuffer.Statics.Point; + Range: TextBuffer.Statics.Range; + + /** Create a new buffer with the given starting text. */ + new (text: string): TextBuffer.TextBuffer; + /** Create a new buffer with the given params. */ + new (params?: { + /** The initial string text of the buffer. */ + text?: string + /** A function that returns a Boolean indicating whether the buffer should + * be destroyed if its file is deleted. + */ + shouldDestroyOnFileDelete?(): boolean + }): TextBuffer.TextBuffer; + + /** Create a new buffer backed by the given file path. */ + load(source: string, params?: TextBuffer.Options.BufferLoad): + Promise<TextBuffer.TextBuffer>; + + /** Create a new buffer backed by the given file path. For better performance, + * use TextBuffer.load instead. + */ + loadSync(filePath: string, params?: TextBuffer.Options.BufferLoad): + TextBuffer.TextBuffer; + + /** Restore a TextBuffer based on an earlier state created using the TextBuffer::serialize + * method. + */ + deserialize(params: object): Promise<TextBuffer.TextBuffer>; + } + /* tslint:enable:no-unnecessary-qualifier */ + } + + /** Data structures that are used within classes. */ + namespace Structures { + interface TextChange { + newExtent: Point; + oldExtent: Point; + newRange: Range; + oldRange: Range; + newText: string; + oldText: string; + start: Point; + } + + interface BufferScanResult { + buffer: TextBuffer; + lineText: string; + match: RegExpExecArray; + matchText: string; + range: Range; + replace(replacementText: string): void; + stop(): void; + stopped: boolean; + } + + interface ContextualBufferScanResult extends BufferScanResult { + leadingContextLines: string[]; + trailingContextLines: string[]; + } + } + + /** The interface that should be implemented for all "point-compatible" objects. */ + interface PointLike { + /** A zero-indexed number representing the row of the Point. */ + row: number; + + /** A zero-indexed number representing the column of the Point. */ + column: number; + } + + /** Represents a point in a buffer in row/column coordinates. */ + interface Point extends PointLike { + // Properties + /** A zero-indexed number representing the row of the Point. */ + row: number; + + /** A zero-indexed number representing the column of the Point. */ + column: number; + + // Construction + /** Returns a new Point with the same row and column. */ + copy(): Point; + + /** Returns a new Point with the row and column negated. */ + negate(): Point; + + // Comparison + /** Compare another Point to this Point instance. + * Returns -1 if this point precedes the argument. + * Returns 0 if this point is equivalent to the argument. + * Returns 1 if this point follows the argument. + */ + compare(other: PointLike|[number, number]): number; + + /** Returns a boolean indicating whether this point has the same row and + * column as the given Point. + */ + isEqual(other: PointLike|[number, number]): boolean; + + /** Returns a Boolean indicating whether this point precedes the given Point. */ + isLessThan(other: PointLike|[number, number]): boolean; + + /** Returns a Boolean indicating whether this point precedes or is equal to + * the given Point. + */ + isLessThanOrEqual(other: PointLike|[number, number]): boolean; + + /** Returns a Boolean indicating whether this point follows the given Point. */ + isGreaterThan(other: PointLike|[number, number]): boolean; + + /** Returns a Boolean indicating whether this point follows or is equal to + * the given Point. + */ + isGreaterThanOrEqual(other: PointLike|[number, number]): boolean; + + // Operations + /** Makes this point immutable and returns itself. */ + freeze(): Readonly<Point>; + + /** Build and return a new point by adding the rows and columns of the + * given point. + */ + translate(other: PointLike|[number, number]): Point; + + /** Build and return a new Point by traversing the rows and columns + * specified by the given point. + */ + traverse(other: PointLike|[number, number]): Point; + + /** Returns an array of this point's row and column. */ + toArray(): [number, number]; + + /** Returns an array of this point's row and column. */ + serialize(): [number, number]; + + /** Returns a string representation of the point. */ + toString(): string; + } + + /** The interface that should be implemented for all "range-compatible" objects. */ + interface RangeLike { + /** A Point representing the start of the Range. */ + start: PointLike; + + /** A Point representing the end of the Range. */ + end: PointLike; + } + + /** Represents a region in a buffer in row/column coordinates. */ + interface Range extends RangeLike { + // Properties + /** A Point representing the start of the Range. */ + start: PointLike; + + /** A Point representing the end of the Range. */ + end: PointLike; + + // Construction + /** Returns a new range with the same start and end positions. */ + copy(): Range; + + /** Returns a new range with the start and end positions negated. */ + negate(): Range; + + // Serialization and Deserialization + /** Returns a plain javascript object representation of the range. */ + serialize(): number[][]; + + // Range Details + /** Is the start position of this range equal to the end position? */ + isEmpty(): boolean; + + /** Returns a boolean indicating whether this range starts and ends on the + * same row. + */ + isSingleLine(): boolean; + + /** Get the number of rows in this range. */ + getRowCount(): number; + + /** Returns an array of all rows in the range. */ + getRows(): number[]; + + // Operations + /** Freezes the range and its start and end point so it becomes immutable + * and returns itself. + */ + freeze(): Readonly<Range>; + + // NOTE: this function doesn't actually take a range-compatible parameter. + /** Returns a new range that contains this range and the given range. */ + union(other: RangeLike): Range; + + /** Build and return a new range by translating this range's start and end + * points by the given delta(s). + */ + translate(startDelta: PointLike|[number, number], endDelta?: PointLike| + [number, number]): Range; + + /** Build and return a new range by traversing this range's start and end + * points by the given delta. + */ + traverse(delta: PointLike|[number, number]): Range; + + // Comparison + /** Compare two Ranges. + * Returns -1 if this range starts before the argument or contains it. + * Returns 0 if this range is equivalent to the argument. + * Returns 1 if this range starts after the argument or is contained by it. + */ + compare(otherRange: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]]): number; + + /** Returns a Boolean indicating whether this range has the same start and + * end points as the given Range. + */ + isEqual(otherRange: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]]): boolean; + + // NOTE: this function doesn't actually take a range-compatible parameter. + /** Returns a Boolean indicating whether this range starts and ends on the + * same row as the argument. + */ + coversSameRows(otherRange: RangeLike): boolean; + + // NOTE: this function doesn't actually take a range-compatible parameter. + /** Determines whether this range intersects with the argument. */ + intersectsWith(otherRange: RangeLike, exclusive?: boolean): boolean; + + /** Returns a boolean indicating whether this range contains the given range. */ + containsRange(otherRange: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]], exclusive?: + boolean): boolean; + + /** Returns a boolean indicating whether this range contains the given point. */ + containsPoint(point: PointLike|[number, number], exclusive?: boolean): boolean; + + /** Returns a boolean indicating whether this range intersects the given + * row number. + */ + intersectsRow(row: number): boolean; + + /** Returns a boolean indicating whether this range intersects the row range + * indicated by the given startRow and endRow numbers. + */ + intersectsRowRange(startRow: number, endRow: number): boolean; + + // Conversion + /** Returns a string representation of the range. */ + toString(): string; + } + + /** Represents a buffer annotation that remains logically stationary even as + * the buffer changes. + */ + interface Marker { + // Properties + id: number; + tailed: boolean; + reversed: boolean; + valid: boolean; + invalidate: string; + properties: object; + + // Lifecycle + /** Creates and returns a new Marker with the same properties as this + * marker. + */ + copy(options?: Options.CopyMarker): Marker; + + /** Destroys the marker, causing it to emit the "destroyed" event. */ + destroy(): void; + + // Event Subscription + /** Invoke the given callback when the marker is destroyed. */ + onDidDestroy(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback when the state of the marker changes. */ + onDidChange(callback: (event: Events.MarkerChanged) => void): + EventKit.Disposable; + + // Marker Details + /** Returns the current range of the marker. The range is immutable. */ + getRange(): Range; + + /** Returns a point representing the marker's current head position. */ + getHeadPosition(): Point; + + /** Returns a point representing the marker's current tail position. */ + getTailPosition(): Point; + + /** Returns a point representing the start position of the marker, which + * could be the head or tail position, depending on its orientation. + */ + getStartPosition(): Point; + + /** Returns a point representing the end position of the marker, which + * could be the head or tail position, depending on its orientation. + */ + getEndPosition(): Point; + + /** Returns a boolean indicating whether the head precedes the tail. */ + isReversed(): boolean; + + /** Returns a boolean indicating whether the marker has a tail. */ + hasTail(): boolean; + + /** Is the marker valid? */ + isValid(): boolean; + + /** Is the marker destroyed? */ + isDestroyed(): boolean; + + /** Returns a boolean indicating whether changes that occur exactly at + * the marker's head or tail cause it to move. + */ + isExclusive(): boolean; + + /** Get the invalidation strategy for this marker. */ + getInvalidationStrategy(): string; + + // Mutating Markers + /** Sets the range of the marker. + * Returns a boolean indicating whether or not the marker was updated. + */ + setRange(range: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]], params?: { + reversed?: boolean, exclusive?: boolean }): boolean; + + /** Sets the head position of the marker. + * Returns a boolean indicating whether or not the marker was updated. + */ + setHeadPosition(position: PointLike|[number, number]): boolean; + + /** Sets the tail position of the marker. + * Returns a boolean indicating whether or not the marker was updated. + */ + setTailPosition(position: PointLike|[number, number]): boolean; + + /** Removes the marker's tail. + * Returns a boolean indicating whether or not the marker was updated. + */ + clearTail(): boolean; + + /** Plants the marker's tail at the current head position. + * Returns a boolean indicating whether or not the marker was updated. + */ + plantTail(): boolean; + + // Comparison + /** Returns a boolean indicating whether this marker is equivalent to + * another marker, meaning they have the same range and options. + */ + isEqual(other: Marker): boolean; + + /** Compares this marker to another based on their ranges. + * Returns "-1" if this marker precedes the argument. + * Returns "0" if this marker is equivalent to the argument. + * Returns "1" if this marker follows the argument. + */ + compare(other: Marker): number; + } + + /** Experimental: A container for a related set of markers. */ + interface MarkerLayer { + // Lifecycle + /** Create a copy of this layer with markers in the same state and locations. */ + copy(): MarkerLayer; + + /** Destroy this layer. */ + destroy(): boolean; + + /** Remove all markers from this layer. */ + clear(): void; + + /** Determine whether this layer has been destroyed. */ + isDestroyed(): boolean; + + // Querying + /** Get an existing marker by its id. */ + getMarker(id: number): Marker|undefined; + + /** Get all existing markers on the marker layer. */ + getMarkers(): Marker[]; + + /** Get the number of markers in the marker layer. */ + getMarkerCount(): number; + + /** Find markers in the layer conforming to the given parameters. */ + findMarkers(params: Options.FindMarker): Marker[]; + + // Marker Creation + /** Create a marker with the given range. */ + markRange(range: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]], options?: + { reversed?: boolean, invalidate?: "never"|"surround"|"overlap"|"inside"|"touch", + exclusive?: boolean }): Marker; + + /** Create a marker at with its head at the given position with no tail. */ + markPosition(position: PointLike|[number, number], options?: { + invalidate?: "never"|"surround"|"overlap"|"inside"|"touch", + exclusive?: boolean + }): Marker; + + // Event Subscription + /** Subscribe to be notified asynchronously whenever markers are created, + * updated, or destroyed on this layer. + */ + onDidUpdate(callback: () => void): EventKit.Disposable; + + /** Subscribe to be notified synchronously whenever markers are created on + * this layer. + */ + onDidCreateMarker(callback: (marker: Marker) => void): EventKit.Disposable; + + /** Subscribe to be notified synchronously when this layer is destroyed. */ + onDidDestroy(callback: () => void): EventKit.Disposable; + } + + /** A mutable text container with undo/redo support and the ability to + * annotate logical regions in the text. + */ + interface TextBuffer { + // Properties + file: PathWatcher.File; + lines: string[]; + lineEndings: string[]; + stoppedChangingDelay: number; + conflict: boolean; + loaded: boolean; + destroyed: boolean; + refcount: number; + id: string; + + /** Schedules a 'did-stop-changing' emission. The event will be emitted between + * now and TextBuffer::stoppedChangingDelay milliseconds in the future. + */ + debouncedEmitDidStopChangingEvent(): void; + + // Lifecycle + /** Destroys the buffer, emitting the 'did-destroy' prior to doing so. */ + destroy(): void; + + /** Returns whether or not the given buffer is alive. */ + isAlive(): boolean; + + /** Returns whether or not the given buffer has been destroyed. */ + isDestroyed(): boolean; + + /** Returns whether or not this text buffer is currently retained. */ + isRetained(): boolean; + + /** Retains the text buffer, preventing its destruction via TextBuffer::release. */ + retain(): TextBuffer; + + /** Release the text buffer, destroying it if there are no other retainers. */ + release(): TextBuffer; + + // Event Subscription + /** Invoke the given callback synchronously before the content of the buffer + * changes. + */ + onWillChange(callback: (event: Events.BufferChanging) => void): + EventKit.Disposable; + + /** Invoke the given callback synchronously when the content of the buffer + * changes. You should probably not be using this in packages. + */ + onDidChange(callback: (event: Events.BufferChanged) => void): + EventKit.Disposable; + + /** Invoke the given callback synchronously when a transaction finishes with + * a list of all the changes in the transaction. + */ + onDidChangeText(callback: (event: Events.BufferStoppedChanging) => void): + EventKit.Disposable; + + /** Invoke the given callback asynchronously following one or more changes after + * ::getStoppedChangingDelay milliseconds elapse without an additional change. + */ + onDidStopChanging(callback: (event: Events.BufferStoppedChanging) => void): + EventKit.Disposable; + + /** Invoke the given callback when the in-memory contents of the buffer become + * in conflict with the contents of the file on disk. + */ + onDidConflict(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback if the value of ::isModified changes. */ + onDidChangeModified(callback: (modified: boolean) => void): + EventKit.Disposable; + + /** Invoke the given callback when all marker ::onDidChange observers have been + * notified following a change to the buffer. + */ + onDidUpdateMarkers(callback: () => void): EventKit.Disposable; + + onDidCreateMarker(callback: (marker: Marker) => void): + EventKit.Disposable; + + /** Invoke the given callback when the value of ::getPath changes. */ + onDidChangePath(callback: (path: string) => void): EventKit.Disposable; + + /** Invoke the given callback when the value of ::getEncoding changes. */ + onDidChangeEncoding(callback: (encoding: string) => void): + EventKit.Disposable; + + /** Invoke the given callback before the buffer is saved to disk. If the + * given callback returns a promise, then the buffer will not be saved until + * the promise resolves. + */ + onWillSave(callback: () => Promise<void>|void): EventKit.Disposable; + + /** Invoke the given callback after the buffer is saved to disk. */ + onDidSave(callback: (event: Events.FileSaved) => void): + EventKit.Disposable; + + /** Invoke the given callback after the file backing the buffer is deleted. */ + onDidDelete(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback before the buffer is reloaded from the contents + * of its file on disk. + */ + onWillReload(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback after the buffer is reloaded from the contents + * of its file on disk. + */ + onDidReload(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback when the buffer is destroyed. */ + onDidDestroy(callback: () => void): EventKit.Disposable; + + /** Invoke the given callback when there is an error in watching the file. */ + onWillThrowWatchError(callback: (errorObject: Events.BufferWatchError) => + void): EventKit.Disposable; + + /** Get the number of milliseconds that will elapse without a change before + * ::onDidStopChanging observers are invoked following a change. + */ + getStoppedChangingDelay(): number; + + /** Performs the necessary work, then emits the 'did-stop-changing' event. */ + emitDidStopChangingEvent(): void; + + // File Details + /** Determine if the in-memory contents of the buffer differ from its contents + * on disk. + * If the buffer is unsaved, always returns true unless the buffer is empty. + */ + isModified(): boolean; + + /** Determine if the in-memory contents of the buffer conflict with the on-disk + * contents of its associated file. + */ + isInConflict(): boolean; + + /** Get the path of the associated file. */ + getPath(): string|undefined; + + /** Set the path for the buffer's associated file. */ + setPath(filePath: string): void; + + /** Sets the character set encoding for this buffer. */ + setEncoding(encoding: string): void; + + /** Returns the string encoding of this buffer. */ + getEncoding(): string; + + /** Get the path of the associated file. */ + getUri(): string; + + /** Identifies if the buffer belongs to multiple editors. */ + hasMultipleEditors(): boolean; + + // Reading Text + /** Determine whether the buffer is empty. */ + isEmpty(): boolean; + + /** Get the entire text of the buffer. */ + getText(): string; + + /** Get the text in a range. */ + getTextInRange(range: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]]): string; + + /** Get the text of all lines in the buffer, without their line endings. */ + getLines(): string[]; + + /** Get the text of the last line of the buffer, without its line ending. */ + getLastLine(): string; + + /** Get the text of the line at the given row, without its line ending. */ + lineForRow(row: number): string|undefined; + + /** Get the line ending for the given 0-indexed row. */ + lineEndingForRow(row: number): string|undefined; + + /** Get the length of the line for the given 0-indexed row, without its line + * ending. + */ + lineLengthForRow(row: number): number; + + /** Determine if the given row contains only whitespace. */ + isRowBlank(row: number): boolean; + + /** Given a row, find the first preceding row that's not blank. + * Returns a number or null if there's no preceding non-blank row. + */ + previousNonBlankRow(startRow: number): number|null; + + /** Given a row, find the next row that's not blank. + * Returns a number or null if there's no next non-blank row. + */ + nextNonBlankRow(startRow: number): number|null; + + // Mutating Text + /** Replace the entire contents of the buffer with the given text. */ + setText(text: string): Range; + + /** Replace the current buffer contents by applying a diff based on the + * given text. + */ + setTextViaDiff(text: string): void; + + /** Set the text in the given range. */ + setTextInRange(range: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]], text: string, + options?: { normalizeLineEndings?: boolean, undo?: "skip" }): Range; + + /** Insert text at the given position. */ + insert(position: PointLike|[number, number], text: string, options?: { + normalizeLineEndings?: boolean, + undo?: "skip" + }): Range; + + /** Append text to the end of the buffer. */ + append(text: string, options?: { + normalizeLineEndings?: boolean, + undo?: "skip" + }): Range; + + /** Delete the text in the given range. */ + delete(range: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]]): Range; + + /** Delete the line associated with a specified row. */ + deleteRow(row: number): Range; + + /** Delete the lines associated with the specified row range. */ + deleteRows(startRow: number, endRow: number): Range; + + // Markers + /** Create a layer to contain a set of related markers. */ + addMarkerLayer(options?: { + maintainHistory?: boolean, + persistent?: boolean + }): MarkerLayer; + + /** Get a MarkerLayer by id. + * Returns a MarkerLayer or `` if no layer exists with the given id. + */ + getMarkerLayer(id: string): MarkerLayer|undefined; + + /** Get the default MarkerLayer. */ + getDefaultMarkerLayer(): MarkerLayer; + + /** Create a marker with the given range in the default marker layer. */ + markRange(range: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]], properties?: + { reversed?: boolean, invalidate?: "never"|"surround"|"overlap"|"inside"|"touch", + exclusive?: boolean }): Marker; + + /** Create a marker at the given position with no tail in the default marker layer. */ + markPosition(position: PointLike|[number, number], options?: { + invalidate?: "never"|"surround"|"overlap"|"inside"|"touch", + exclusive?: boolean + }): Marker; + + /** Get all existing markers on the default marker layer. */ + getMarkers(): Marker[]; + + /** Get an existing marker by its id from the default marker layer. */ + getMarker(id: number): Marker; + + /** Find markers conforming to the given parameters in the default marker layer. */ + findMarkers(params: Options.FindMarker): Marker[]; + + /** Get the number of markers in the default marker layer. */ + getMarkerCount(): number; + + // History + /** Undo the last operation. If a transaction is in progress, aborts it. */ + undo(): boolean; + + /** Redo the last operation. */ + redo(): boolean; + + /** Batch multiple operations as a single undo/redo step. */ + transact<T>(groupingInterval: number, fn: () => T): T; + transact<T>(fn: () => T): T; + + /** Call within a transaction to terminate the function's execution and + * revert any changes performed up to the abortion. + */ + abortTransaction(): void; + + /** Clear the undo stack. When calling this method within a transaction, + * the ::onDidChangeText event will not be triggered because the information + * describing the changes is lost. + */ + clearUndoStack(): void; + + /** Create a pointer to the current state of the buffer for use with + * ::revertToCheckpoint and ::groupChangesSinceCheckpoint. + */ + createCheckpoint(): number; + + /** Revert the buffer to the state it was in when the given checkpoint was created. + * Returns a boolean indicating whether the operation succeeded. + */ + revertToCheckpoint(checkpoint: number): boolean; + + /** Group all changes since the given checkpoint into a single transaction for + * purposes of undo/redo. + * Returns a boolean indicating whether the operation succeeded. + */ + groupChangesSinceCheckpoint(checkpoint: number): boolean; + + /** Returns a list of changes since the given checkpoint. + * If the given checkpoint is no longer present in the undo history, this method + * will return an empty Array. + */ + getChangesSinceCheckpoint(checkpoint: number): Array<{ + /** A Point representing where the change started. */ + start: Point, + + /** A Point representing the replaced extent. */ + oldExtent: Point, + + /** A Point representing the replacement extent. */ + newExtent: Point, + + /** A String representing the replacement text. */ + newText: string + }>; + + // Search and Replace + /** Scan regular expression matches in the entire buffer, calling the given + * iterator function on each match. + */ + scan(regex: RegExp, iterator: (params: Structures.BufferScanResult) => void): void; + /** Scan regular expression matches in the entire buffer, calling the given + * iterator function on each match. + */ + scan(regex: RegExp, options: Options.ScanContext, iterator: (params: + Structures.ContextualBufferScanResult) => void): void; + + /** Scan regular expression matches in the entire buffer in reverse order, + * calling the given iterator function on each match. + */ + backwardsScan(regex: RegExp, iterator: (params: Structures.BufferScanResult) => void): + void; + /** Scan regular expression matches in the entire buffer in reverse order, + * calling the given iterator function on each match. + */ + backwardsScan(regex: RegExp, options: Options.ScanContext, iterator: (params: + Structures.ContextualBufferScanResult) => void): void; + + /** Scan regular expression matches in a given range , calling the given + * iterator function on each match. + */ + scanInRange(regex: RegExp, range: RangeLike|[PointLike, PointLike]|[PointLike, + [number, number]]|[[number, number], PointLike]|[[number, number], [number, number]], + iterator: (params: Structures.BufferScanResult) => void): void; + /** Scan regular expression matches in a given range , calling the given + * iterator function on each match. + */ + scanInRange(regex: RegExp, range: RangeLike|[PointLike, PointLike]|[PointLike, + [number, number]]|[[number, number], PointLike]|[[number, number], [number, number]], + options: Options.ScanContext, iterator: (params: + Structures.ContextualBufferScanResult) => void): void; + + /** Scan regular expression matches in a given range in reverse order, + * calling the given iterator function on each match. + */ + backwardsScanInRange(regex: RegExp, range: RangeLike|[PointLike, PointLike]|[PointLike, + [number, number]]|[[number, number], PointLike]|[[number, number], [number, number]], + iterator: (params: Structures.BufferScanResult) => void): void; + /** Scan regular expression matches in a given range in reverse order, + * calling the given iterator function on each match. + */ + backwardsScanInRange(regex: RegExp, range: RangeLike|[PointLike, PointLike]|[PointLike, + [number, number]]|[[number, number], PointLike]|[[number, number], [number, number]], + options: Options.ScanContext, iterator: (params: + Structures.ContextualBufferScanResult) => void): void; + + /** Replace all regular expression matches in the entire buffer. */ + replace(regex: RegExp, replacementText: string): number; + + // Buffer Range Details + /** Get the range spanning from [0, 0] to ::getEndPosition. */ + getRange(): Range; + + /** Get the number of lines in the buffer. */ + getLineCount(): number; + + /** Get the last 0-indexed row in the buffer. */ + getLastRow(): number; + + /** Get the first position in the buffer, which is always [0, 0]. */ + getFirstPosition(): Point; + + /** Get the maximal position in the buffer, where new text would be appended. */ + getEndPosition(): Point; + + /** Get the length of the buffer in characters. */ + getMaxCharacterIndex(): number; + + /** Get the range for the given row. */ + rangeForRow(row: number, includeNewline: boolean): Range; + + /** Convert a position in the buffer in row/column coordinates to an absolute + * character offset, inclusive of line ending characters. + */ + characterIndexForPosition(position: Point|[number, number]): number; + + /** Convert an absolute character offset, inclusive of newlines, to a position + * in the buffer in row/column coordinates. + */ + positionForCharacterIndex(offset: number): Point; + + /** Clip the given range so it starts and ends at valid positions. */ + clipRange(range: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]]): Range; + + /** Clip the given point so it is at a valid position in the buffer. */ + clipPosition(position: PointLike|[number, number]): Point; + + // Buffer Operations + /** Save the buffer. */ + save(): Promise<void>; + + /** Save the buffer at a specific path. */ + saveAs(filePath: string): Promise<void>; + + /** Reload the buffer's contents from disk. */ + reload(): void; + } + + /** Represents a buffer annotation that remains logically stationary even as the + * buffer changes. This is used to represent cursors, folds, snippet targets, + * misspelled words, and anything else that needs to track a logical location + * in the buffer over time. + */ + interface DisplayMarker { + // Construction and Destruction + /** Destroys the marker, causing it to emit the 'destroyed' event. Once destroyed, + * a marker cannot be restored by undo/redo operations. + */ + destroy(): void; + + /** Creates and returns a new DisplayMarker with the same properties as this marker. */ + copy(options?: Options.CopyMarker): DisplayMarker; + + // Event Subscription + /** Invoke the given callback when the state of the marker changes. */ + onDidChange(callback: (event: Events.DisplayMarkerChanged) => void): + EventKit.Disposable; + + /** Invoke the given callback when the marker is destroyed. */ + onDidDestroy(callback: () => void): EventKit.Disposable; + + // TextEditorMarker Details + /** Returns a boolean indicating whether the marker is valid. Markers can be + * invalidated when a region surrounding them in the buffer is changed. + */ + isValid(): boolean; + + /** Returns a boolean indicating whether the marker has been destroyed. A marker + * can be invalid without being destroyed, in which case undoing the invalidating + * operation would restore the marker. + */ + isDestroyed(): boolean; + + /** Returns a boolean indicating whether the head precedes the tail. */ + isReversed(): boolean; + + /** Returns a boolean indicating whether changes that occur exactly at the marker's + * head or tail cause it to move. + */ + isExclusive(): boolean; + + /** Get the invalidation strategy for this marker. + * Valid values include: never, surround, overlap, inside, and touch. + */ + getInvalidationStrategy(): string; + + /** Returns an Object containing any custom properties associated with the marker. */ + getProperties(): object; + + /** Merges an Object containing new properties into the marker's existing properties. */ + setProperties(properties: object): void; + + /** Returns whether this marker matches the given parameters. */ + matchesProperties(attributes: Options.FindDisplayMarker): boolean; + + // Comparing to other markers + /** Compares this marker to another based on their ranges. */ + compare(other: DisplayMarker): number; + + /** Returns a boolean indicating whether this marker is equivalent to another + * marker, meaning they have the same range and options. + */ + isEqual(other: DisplayMarker): boolean; + + // Managing the marker's range + /** Gets the buffer range of this marker. */ + getBufferRange(): Range; + + /** Gets the screen range of this marker. */ + getScreenRange(): Range; + + /** Modifies the buffer range of this marker. */ + setBufferRange(bufferRange: RangeLike|[PointLike, PointLike]|[PointLike, + [number, number]]|[[number, number], PointLike]|[[number, number], [number, number]], + properties?: { reversed: boolean }): void; + + /** Modifies the screen range of this marker. */ + setScreenRange(screenRange: RangeLike|[PointLike, PointLike]|[PointLike, + [number, number]]|[[number, number], PointLike]|[[number, number], [number, number]], + options?: { reversed?: boolean, clipDirection?: "backward"|"forward"|"closest" }): void; + + /** Retrieves the screen position of the marker's start. This will always be + * less than or equal to the result of DisplayMarker::getEndScreenPosition. + */ + getStartScreenPosition(options?: { clipDirection: "backward"|"forward"|"closest" }): + Point; + + /** Retrieves the screen position of the marker's end. This will always be + * greater than or equal to the result of DisplayMarker::getStartScreenPosition. + */ + getEndScreenPosition(options?: { clipDirection: "backward"|"forward"|"closest" }): + Point; + + /** Retrieves the buffer position of the marker's head. */ + getHeadBufferPosition(): Point; + + /** Sets the buffer position of the marker's head. */ + setHeadBufferPosition(bufferPosition: PointLike|[number, number]): void; + + /** Retrieves the screen position of the marker's head. */ + getHeadScreenPosition(options?: { clipDirection: "backward"|"forward"|"closest" }): + Point; + + /** Sets the screen position of the marker's head. */ + setHeadScreenPosition(screenPosition: PointLike|[number, number], options?: + { clipDirection: "backward"|"forward"|"closest" }): void; + + /** Retrieves the buffer position of the marker's tail. */ + getTailBufferPosition(): Point; + + /** Sets the buffer position of the marker's tail. */ + setTailBufferPosition(bufferPosition: PointLike|[number, number]): void; + + /** Retrieves the screen position of the marker's tail. */ + getTailScreenPosition(options?: { clipDirection: "backward"|"forward"|"closest" }): + Point; + + /** Sets the screen position of the marker's tail. */ + setTailScreenPosition(screenPosition: PointLike|[number, number], options?: + { clipDirection: "backward"|"forward"|"closest" }): void; + + /** Retrieves the buffer position of the marker's start. This will always be less + * than or equal to the result of DisplayMarker::getEndBufferPosition. + */ + getStartBufferPosition(): Point; + + /** Retrieves the buffer position of the marker's end. This will always be greater + * than or equal to the result of DisplayMarker::getStartBufferPosition. + */ + getEndBufferPosition(): Point; + + /** Returns a boolean indicating whether the marker has a tail. */ + hasTail(): boolean; + + /** Plants the marker's tail at the current head position. After calling the + * marker's tail position will be its head position at the time of the call, + * regardless of where the marker's head is moved. + */ + plantTail(): void; + + /** Removes the marker's tail. After calling the marker's head position will be + * reported as its current tail position until the tail is planted again. + */ + clearTail(): void; + } + + /** Experimental: A container for a related set of markers at the DisplayLayer level. + * Wraps an underlying MarkerLayer on the TextBuffer. + * + * This API is experimental and subject to change on any release. + */ + interface DisplayMarkerLayer { + // Lifecycle + /** Destroy this layer. */ + destroy(): void; + + /** Destroy all markers in this layer. */ + clear(): void; + + /** Determine whether this layer has been destroyed. */ + isDestroyed(): boolean; + + // Event Subscription + /** Subscribe to be notified synchronously when this layer is destroyed. */ + onDidDestroy(callback: () => void): EventKit.Disposable; + + /** Subscribe to be notified asynchronously whenever markers are created, updated, + * or destroyed on this layer. Prefer this method for optimal performance when + * interacting with layers that could contain large numbers of markers. + */ + onDidUpdate(callback: () => void): EventKit.Disposable; + + /** Subscribe to be notified synchronously whenever markers are created on this + * layer. Avoid this method for optimal performance when interacting with layers + * that could contain large numbers of markers. + */ + onDidCreateMarker(callback: (marker: DisplayMarker|Marker) => void): EventKit.Disposable; + + // Marker creation + /** Create a marker with the given screen range. */ + markScreenRange(range: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]], options?: + { reversed?: boolean, invalidate?: "never"|"surround"|"overlap"|"inside"|"touch", + exclusive?: boolean, clipDirection?: "backward"|"forward"|"closest" }): DisplayMarker; + + /** Create a marker on this layer with its head at the given screen position + * and no tail. + */ + markScreenPosition(screenPosition: PointLike|[number, number], options?: { + invalidate?: "never"|"surround"|"overlap"|"inside"|"touch", exclusive?: boolean, + clipDirection?: "backward"|"forward"|"closest" }): DisplayMarker; + + /** Create a marker with the given buffer range. */ + markBufferRange(range: RangeLike|[PointLike, PointLike]|[PointLike, [number, number]]| + [[number, number], PointLike]|[[number, number], [number, number]], options?: { + reversed?: boolean, invalidate?: "never"|"surround"|"overlap"|"inside"|"touch", + exclusive?: boolean }): DisplayMarker; + + /** Create a marker on this layer with its head at the given buffer position and no tail. */ + markBufferPosition(bufferPosition: PointLike|[number, number], options?: { invalidate?: + "never"|"surround"|"overlap"|"inside"|"touch", exclusive?: boolean }): DisplayMarker; + + // Querying + /** Get an existing marker by its id. */ + getMarker(id: number): DisplayMarker; + + /** Get all markers in the layer. */ + getMarkers(): DisplayMarker[]; + + /** Get the number of markers in the marker layer. */ + getMarkerCount(): number; + + /** Find markers in the layer conforming to the given parameters. + * + * This method finds markers based on the given properties. Markers can be associated + * with custom properties that will be compared with basic equality. In addition, + * there are several special properties that will be compared with the range of the + * markers rather than their properties. + */ + findMarkers(properties: Options.FindDisplayMarker): DisplayMarker[]; + } } } -declare module "text-buffer" { - var _: TextBuffer.ITextBufferStatic; - export = _; -} +declare let tb: TextBuffer.Statics.TextBuffer; +export = tb; diff --git a/types/text-buffer/text-buffer-tests.ts b/types/text-buffer/text-buffer-tests.ts index 5b79f711cb..52e4383158 100644 --- a/types/text-buffer/text-buffer-tests.ts +++ b/types/text-buffer/text-buffer-tests.ts @@ -1,19 +1,810 @@ +import TextBuffer = require("text-buffer"); +import * as ImportTest from "text-buffer"; +declare let obj: object; +declare let bool: boolean; +declare let num: number; +declare let nums: number[]; +declare let str: string; +declare let strs: string[]; -declare var Point: TextBuffer.IPointStatic; +declare let buffer: TextBuffer.TextBuffer; +declare let displayMarker: TextBuffer.DisplayMarker; +declare let displayMarkers: TextBuffer.DisplayMarker[]; +declare let displayMarkerLayer: TextBuffer.DisplayMarkerLayer; +declare let marker: TextBuffer.Marker; +declare let markers: TextBuffer.Marker[]; +declare let markerLayer: TextBuffer.MarkerLayer; +declare let sub: EventKit.Disposable; -var pointA = new Point(1, 2); -pointA.row; -pointA.column; +// Point ====================================================================== +let point = new TextBuffer.Point(42, 42); +new TextBuffer.Point(); +new TextBuffer.Point(42); -var pointB = Point.fromObject({row: 2, column: 3}); -var pointC = Point.min(pointA, pointB); +// Properties +num = point.row; +num = point.column; -declare var TRange: TextBuffer.IRangeStatic; +// Construction +point = TextBuffer.Point.fromObject({ row: 42, column: 42 }, true); +point = point.copy(); +point = point.negate(); -var rangeA = new TRange(pointA, pointB); +// Comparison +point = TextBuffer.Point.min(point, point); +TextBuffer.Point.min([0, 0], [0, 0]); +TextBuffer.Point.min(point, [0, 0]); +TextBuffer.Point.min([0, 0], point); -declare var TextBufferStatic: TextBuffer.ITextBufferStatic; +num = point.compare(point); +point.compare([0, 0]); -var textBuffer = new TextBufferStatic("Hello, world!"); -textBuffer.getLineCount(); +bool = point.isEqual(point); +point.isEqual([0, 0]); + +bool = point.isLessThan(point); +point.isLessThan([0, 0]); + +bool = point.isLessThanOrEqual(point); +point.isLessThanOrEqual([0, 0]); + +bool = point.isGreaterThan(point); +point.isGreaterThan([0, 0]); + +bool = point.isGreaterThanOrEqual(point); +point.isGreaterThanOrEqual([0, 0]); + +// Operations +const frozenPoint: Readonly<TextBuffer.Point> = point.freeze(); + +point = point.translate(point); +point.translate([0, 0]); + +point = point.traverse(point); +point.traverse([0, 0]); + +// Conversion +point.toArray(); +point.serialize(); +str = point.toString(); + +// Range ====================================================================== +let range = new TextBuffer.Range(point, point); +new TextBuffer.Range([0, 0], [0, 0]); +new TextBuffer.Range(point, [0, 0]); +new TextBuffer.Range([0, 0], point); + +// Properties +range.start; +range.end; + +// Construction +range = TextBuffer.Range.fromObject({ start: point, end: point}, true); +TextBuffer.Range.fromObject([point, point]); +TextBuffer.Range.fromObject([[0, 0], [0, 0]]); +TextBuffer.Range.fromObject([point, [0, 0]]); +TextBuffer.Range.fromObject([[0, 0], point]); + +range = range.copy(); +range = range.negate(); + +// Serialization and Deserialization +range = TextBuffer.Range.deserialize({}); +range.serialize(); + +// TextBuffer.Range Details +bool = range.isEmpty(); +bool = range.isSingleLine(); +num = range.getRowCount(); +nums = range.getRows(); + +// Operations +const frozenRange: Readonly<TextBuffer.Range> = range.freeze(); +range = range.union(range); + +range = range.translate(point); +range.translate([0, 0]); +range.translate(point, point); +range.translate([0, 0], point); +range.translate(point, [0, 0]); +range.translate([0, 0], [0, 0]); + +range = range.traverse(point); +range.traverse([0, 0]); + +// Comparison +num = range.compare(range); +range.compare([point, point]); +range.compare([point, [0, 0]]); +range.compare([[0, 0], point]); +range.compare([[0, 0], [0, 0]]); + +bool = range.isEqual(range); +range.isEqual([point, point]); +range.isEqual([point, [0, 0]]); +range.isEqual([[0, 0], point]); +range.isEqual([[0, 0], [0, 0]]); + +bool = range.coversSameRows(range); + +bool = range.intersectsWith(range); +range.intersectsWith(range, true); + +bool = range.containsRange(range); +range.containsRange([point, point]); +range.containsRange([point, [0, 0]]); +range.containsRange([[0, 0], point]); +range.containsRange([[0, 0], [0, 0]]); +range.containsRange(range, true); +range.containsRange([point, point], false); +range.containsRange([point, [0, 0]], false); +range.containsRange([[0, 0], point], false); +range.containsRange([[0, 0], [0, 0]], false); + +bool = range.containsPoint(point); +range.containsPoint([0, 0]); +range.containsPoint(point, true); +range.containsPoint([0, 0], false); + +bool = range.intersectsRow(42); +bool = range.intersectsRowRange(42, 42); + +// Conversion +str = range.toString(); + +// TextBuffer ================================================================= +const shouldDestroyOnFileDelete = () => false; + +buffer = new TextBuffer("test"); +new TextBuffer(); +new TextBuffer({ text: "Test" }); +new TextBuffer({ shouldDestroyOnFileDelete }); +new TextBuffer({ text: "Test", shouldDestroyOnFileDelete }); + +async function bufferLoadFile() { + buffer = await TextBuffer.load("Test.file"); + buffer = await TextBuffer.load("Test.file", { encoding: "utf8" }); + buffer = await TextBuffer.load("Test.file", { shouldDestroyOnFileDelete }); + buffer = await TextBuffer.load("Test.file", { encoding: "utf8", shouldDestroyOnFileDelete }); +} + +buffer = TextBuffer.loadSync("Test.file"); +TextBuffer.loadSync("Test.file", { encoding: "utf8" }); +TextBuffer.loadSync("Test.file", { shouldDestroyOnFileDelete }); +TextBuffer.loadSync("Test.file", { encoding: "uft8", shouldDestroyOnFileDelete }); + +async function deserializeBuffer() { + buffer = await TextBuffer.deserialize({}); +} + +// Event Subscription +sub = buffer.onWillChange(() => void {}); +sub = buffer.onDidChange(() => void {}); +sub = buffer.onDidChangeText(() => void {}); + +sub = buffer.onDidStopChanging((event): void => { + for (const change of event.changes) { + change.newExtent; + } +}); + +sub = buffer.onDidConflict(() => void {}); +sub = buffer.onDidChangeModified(() => void {}); +sub = buffer.onDidUpdateMarkers(() => void {}); +sub = buffer.onDidCreateMarker(() => void {}); + +sub = buffer.onDidChangePath((path): void => { + str = path; +}); + +sub = buffer.onDidChangeEncoding(() => void {}); + +sub = buffer.onWillSave(() => void {}); +sub = buffer.onWillSave(() => Promise.resolve()); + +sub = buffer.onDidSave(() => void {}); +sub = buffer.onDidDelete(() => void {}); +sub = buffer.onWillReload(() => void {}); +sub = buffer.onDidReload(() => void {}); +sub = buffer.onDidDestroy(() => void {}); +sub = buffer.onWillThrowWatchError(() => void {}); + +const stoppedChangingDelay = buffer.getStoppedChangingDelay(); + +// File Details +bool = buffer.isModified(); +bool = buffer.isInConflict(); + +const path = buffer.getPath(); +if (path) { + str = path.substr(0, 42); +} + +buffer.setPath("Test.file"); +buffer.setEncoding("utf8"); +str = buffer.getEncoding(); +str = buffer.getUri(); + +// Reading Text +bool = buffer.isEmpty(); +str = buffer.getText(); + +str = buffer.getTextInRange(range); +str = buffer.getTextInRange([point, point]); +str = buffer.getTextInRange([[0, 0], [0, 0]]); +str = buffer.getTextInRange([point, [0, 0]]); +str = buffer.getTextInRange([[0, 0], point]); + +strs = buffer.getLines(); +str = buffer.getLastLine(); + +const rowText = buffer.lineForRow(42); +if (rowText) { + str = rowText; +} + +const lineEnding = buffer.lineEndingForRow(42); +if (lineEnding) { + str = lineEnding; +} + +num = buffer.lineLengthForRow(42); +bool = buffer.isRowBlank(42); + +const prevRow = buffer.previousNonBlankRow(42); +if (prevRow) { + num = prevRow; +} + +const nextRow = buffer.nextNonBlankRow(42); +if (nextRow) { + num = nextRow; +} + +// Mutating Text +range = buffer.setText("Test"); +buffer.setTextViaDiff("Test"); + +range = buffer.setTextInRange(range, "Test"); +range = buffer.setTextInRange([point, point], "Test"); +range = buffer.setTextInRange([[0, 0], [0, 0]], "Test"); +range = buffer.setTextInRange([point, [0, 0]], "Test"); +range = buffer.setTextInRange([[0, 0], point], "Test"); +range = buffer.setTextInRange(range, "Test", { normalizeLineEndings: true }); +range = buffer.setTextInRange(range, "Test", { undo: "skip" }); +range = buffer.setTextInRange(range, "Test", { normalizeLineEndings: true, undo: "skip" }); +range = buffer.setTextInRange([[0, 0], [0, 0]], "Test", { undo: "skip" }); + +range = buffer.insert(point, "Test"); +buffer.insert([0, 0], "Test"); +buffer.insert(point, "Test", { normalizeLineEndings: true }); +buffer.insert(point, "Test", { undo: "skip" }); +buffer.insert(point, "Test", { normalizeLineEndings: true, undo: "skip" }); +buffer.insert([0, 0], "Test", { undo: "skip" }); + +range = buffer.append("Test"); +buffer.append("Test", { normalizeLineEndings: true }); +buffer.append("Test", { undo: "skip" }); +buffer.append("Test", { normalizeLineEndings: true, undo: "skip" }); + +range = buffer.delete(range); +buffer.delete([point, point]); +buffer.delete([[0, 0], [0, 0]]); +buffer.delete([point, [0, 0]]); +buffer.delete([[0, 0], point]); + +range = buffer.deleteRow(42); +range = buffer.deleteRows(42, 42); + +// Markers +markerLayer = buffer.addMarkerLayer(); +buffer.addMarkerLayer({ maintainHistory: true }); +buffer.addMarkerLayer({ persistent: true }); +buffer.addMarkerLayer({ maintainHistory: true, persistent: true }); + +const testMarkerLayer = buffer.getMarkerLayer("Test"); +if (testMarkerLayer) { + markerLayer = testMarkerLayer; +} + +markerLayer = buffer.getDefaultMarkerLayer(); + +marker = buffer.markRange(range); +buffer.markRange([point, point]); +buffer.markRange([[0, 0], [0, 0]]); +buffer.markRange([point, [0, 0]]); +buffer.markRange([[0, 0], point]); +buffer.markRange(range, { exclusive: true}); +buffer.markRange(range, { invalidate: "surround" }); +buffer.markRange(range, { reversed: true }); +buffer.markRange(range, { exclusive: true, invalidate: "surround", reversed: true }); +buffer.markRange([point, point], { exclusive: true }); + +marker = buffer.markPosition(point); +buffer.markPosition([0, 0]); +buffer.markPosition(point, { exclusive: true }); +buffer.markPosition(point, { invalidate: "never" }); +buffer.markPosition(point, { exclusive: true, invalidate: "surround" }); +buffer.markPosition([0, 0], { exclusive: true }); + +markers = buffer.getMarkers(); +marker = buffer.getMarker(42); + +markers = buffer.findMarkers({ + startPosition: point, + endPosition: point, + startsInRange: range, + endsInRange: range, + containsPoint: point, + containsRange: range, + startRow: num, + endRow: num, + intersectsRow: num, +}); +markers = buffer.findMarkers({ startsInRange: [point, point] }); +markers = buffer.findMarkers({ startsInRange: [point, [0, 0]] }); +markers = buffer.findMarkers({ startsInRange: [[0, 0], point] }); +markers = buffer.findMarkers({ startsInRange: [[0, 0], [0, 0]] }); + +num = buffer.getMarkerCount(); + +// History +bool = buffer.undo(); +bool = buffer.redo(); + +num = buffer.transact<number>(500, (): number => 42); + +buffer.clearUndoStack(); +num = buffer.createCheckpoint(); +bool = buffer.revertToCheckpoint(42); +bool = buffer.groupChangesSinceCheckpoint(42); +buffer.getChangesSinceCheckpoint(42); + +// Search And Replace +buffer.scan(/r^Test/, (): void => {}); +buffer.scan(/r^Test/, (params) => { + num = params.match.index; + str = params.matchText; + range = params.range; + params.replace("Test"); + params.stop(); +}); +buffer.scan(/r^Test/, { + leadingContextLineCount: 5, + trailingContextLineCount: 5, +}, (params) => { + strs = params.leadingContextLines; + strs = params.trailingContextLines; +}); + +buffer.backwardsScan(/r^Test/, (): void => {}); +buffer.backwardsScan(/r^Test/, (params) => { + num = params.match.index; + str = params.matchText; + range = params.range; + params.replace("Test"); + params.stop(); +}); +buffer.backwardsScan(/r^Test/, { + leadingContextLineCount: 5, + trailingContextLineCount: 5, +}, (params) => { + strs = params.leadingContextLines; + strs = params.trailingContextLines; +}); + +buffer.scanInRange(/r^Test/, range, (): void => {}); +buffer.scanInRange(/r^Test/, range, (params) => { + num = params.match.index; + str = params.matchText; + range = params.range; + params.replace("Test"); + params.stop(); +}); +buffer.scanInRange(/r^Test/, range, { + leadingContextLineCount: 5, + trailingContextLineCount: 5, +}, (params) => { + strs = params.leadingContextLines; + strs = params.trailingContextLines; +}); +buffer.scanInRange(/r^Test/, [point, point], (): void => {}); +buffer.scanInRange(/r^Test/, [[0, 0], [0, 0]], (): void => {}); +buffer.scanInRange(/r^Test/, [point, [0, 0]], (): void => {}); +buffer.scanInRange(/r^Test/, [[0, 0], point], (): void => {}); +buffer.scanInRange(/r^Test/, [[0, 0], [0, 0]], { trailingContextLineCount: 42 }, + (): void => {}); + +buffer.backwardsScanInRange(/r^Test/, range, (): void => {}); +buffer.backwardsScanInRange(/r^Test/, range, (params) => { + num = params.match.index; + str = params.matchText; + range = params.range; + params.replace("Test"); + params.stop(); +}); +buffer.backwardsScanInRange(/r^Test/, range, { + leadingContextLineCount: 5, + trailingContextLineCount: 5, +}, (params) => { + strs = params.leadingContextLines; + strs = params.trailingContextLines; +}); +buffer.backwardsScanInRange(/r^Test/, [point, point], (): void => {}); +buffer.backwardsScanInRange(/r^Test/, [[0, 0], [0, 0]], (): void => {}); +buffer.backwardsScanInRange(/r^Test/, [point, [0, 0]], (): void => {}); +buffer.backwardsScanInRange(/r^Test/, [[0, 0], point], (): void => {}); +buffer.backwardsScanInRange(/r^Test/, [[0, 0], [0, 0]], { trailingContextLineCount: 42 }, + (): void => {}); + +num = buffer.replace(/r^Test/, "Test"); + +// Buffer TextBuffer.Range Details +range = buffer.getRange(); +num = buffer.getLineCount(); +num = buffer.getLastRow(); +point = buffer.getFirstPosition(); +point = buffer.getEndPosition(); +num = buffer.getMaxCharacterIndex(); +range = buffer.rangeForRow(42, true); +num = buffer.characterIndexForPosition(point); +point = buffer.positionForCharacterIndex(42); + +range = buffer.clipRange(range); +range = buffer.clipRange([point, point]); +range = buffer.clipRange([point, [0, 0]]); +range = buffer.clipRange([[0, 0], point]); +range = buffer.clipRange([[0, 0], [0, 0]]); + +point = buffer.clipPosition(point); +point = buffer.clipPosition([0, 0]); + +// Buffer Operations +async function saveBuffer() { + await buffer.save(); + await buffer.saveAs("Test.file"); +} + +buffer.reload(); + +// Marker ===================================================================== +// Properties +num = marker.id; +bool = marker.tailed; +bool = marker.reversed; +bool = marker.valid; +str = marker.invalidate; + +// Lifecycle +marker = marker.copy({ + tailed: true, + reversed: true, + invalidate: "surround", + exclusive: false, + properties: { custom: "prop" }, +}); + +marker.destroy(); + +// Event Subscription +sub = marker.onDidDestroy(() => {}); + +sub = marker.onDidChange(event => { + event.oldHeadPosition; + event.newHeadPosition; + event.oldTailPosition; + event.newTailPosition; + event.wasValid; + event.isValid; + event.hadTail; + event.hasTail; + event.oldProperties; + event.newProperties; + event.textChanged; +}); + +// Marker Details +range = marker.getRange(); +point = marker.getHeadPosition(); +point = marker.getTailPosition(); +point = marker.getStartPosition(); +point = marker.getEndPosition(); +bool = marker.isReversed(); +bool = marker.hasTail(); +bool = marker.isValid(); +bool = marker.isDestroyed(); +bool = marker.isExclusive(); +str = marker.getInvalidationStrategy(); + +// Mutating Markers +bool = marker.setRange(range); +bool = marker.setRange([point, point]); +bool = marker.setRange([point, [0, 0]]); +bool = marker.setRange([[0, 0], point]); +bool = marker.setRange([[0, 0], [0, 0]]); +bool = marker.setRange([point, point], { exclusive: false }); +bool = marker.setRange(range, { exclusive: true, reversed: false }); + +bool = marker.setHeadPosition(point); +bool = marker.setHeadPosition([0, 0]); + +bool = marker.setTailPosition(point); +bool = marker.setTailPosition([0, 0]); + +bool = marker.clearTail(); +bool = marker.plantTail(); + +// Comparison +bool = marker.isEqual(marker); +num = marker.compare(marker); + +// MarkerLayer ================================================================ +// Lifecycle +markerLayer = markerLayer.copy(); +bool = markerLayer.destroy(); +markerLayer.clear(); +bool = markerLayer.isDestroyed(); + +// Querying +const potentialMarker = markerLayer.getMarker(42); +if (potentialMarker) marker = potentialMarker; + +markers = markerLayer.getMarkers(); +num = markerLayer.getMarkerCount(); + +markers = markerLayer.findMarkers({ + startPosition: point, + endPosition: point, + startsInRange: range, + endsInRange: range, + containsPoint: point, + containsRange: range, + startRow: num, + endRow: num, + intersectsRow: num, +}); +markers = markerLayer.findMarkers({ containsRange: [point, point] }); +markers = markerLayer.findMarkers({ containsRange: [point, [0, 0]] }); +markers = markerLayer.findMarkers({ containsRange: [[0, 0], point] }); +markers = markerLayer.findMarkers({ containsRange: [[0, 0], [0, 0]] }); + +// Marker creation +marker = markerLayer.markRange(range); +marker = markerLayer.markRange([point, point]); +marker = markerLayer.markRange([point, [0, 0]]); +marker = markerLayer.markRange([[0, 0], point]); +marker = markerLayer.markRange([[0, 0], [0, 0]]); +marker = markerLayer.markRange(range, { exclusive: true }); +marker = markerLayer.markRange([point, point], { invalidate: "never" }); +marker = markerLayer.markRange(range, { + exclusive: false, invalidate: "surround", reversed: false, +}); + +marker = markerLayer.markPosition(point); +marker = markerLayer.markPosition([0, 0]); +marker = markerLayer.markPosition(point, { exclusive: false }); +marker = markerLayer.markPosition([0, 0], { invalidate: "inside" }); +marker = markerLayer.markPosition(point, { exclusive: true, invalidate: "surround" }); + +// Event subscription +sub = markerLayer.onDidUpdate(() => {}); +sub = markerLayer.onDidCreateMarker(marker => marker.id); +sub = markerLayer.onDidDestroy(() => {}); + +// DisplayMarker ============================================================== +// Construction and Destruction +displayMarker.destroy(); + +displayMarker = displayMarker.copy(); +displayMarker = displayMarker.copy({}); +displayMarker = displayMarker.copy({ + tailed: true, + reversed: false, + invalidate: "never", + exclusive: false, + properties: { deprecated: "property" }, +}); + +// Event Subscription +sub = displayMarker.onDidChange((event) => { event.hasTail; }); +sub = displayMarker.onDidDestroy(() => {}); + +// TextEditorMarker Details +bool = displayMarker.isValid(); +bool = displayMarker.isDestroyed(); +bool = displayMarker.isReversed(); +bool = displayMarker.isExclusive(); +str = displayMarker.getInvalidationStrategy(); +obj = displayMarker.getProperties(); +displayMarker.setProperties(obj); + +bool = displayMarker.matchesProperties({ + startBufferPosition: point, + endBufferPosition: point, + startScreenPosition: point, + endScreenPosition: point, + startsInBufferRange: range, + endsInBufferRange: range, + startsInScreenRange: range, + endsInScreenRange: range, + startBufferRow: num, + endBufferRow: num, + startScreenRow: num, + endScreenRow: num, + intersectsBufferRowRange: [num, num], + intersectsScreenRowRange: [num, num], + containsBufferRange: range, + containsBufferPosition: point, + containedInBufferRange: range, + containedInScreenRange: range, + intersectsBufferRange: range, + intersectsScreenRange: range, +}); +bool = displayMarker.matchesProperties({ + intersectsBufferRange: [point, point], +}); +bool = displayMarker.matchesProperties({ + intersectsBufferRange: [point, [0, 0]], +}); +bool = displayMarker.matchesProperties({ + intersectsBufferRange: [[0, 0], point], +}); +bool = displayMarker.matchesProperties({ + intersectsBufferRange: [[0, 0], [0, 0]], +}); + +// Comparing to other markers +num = displayMarker.compare(displayMarker); +bool = displayMarker.isEqual(displayMarker); + +// Managing the marker's range +range = displayMarker.getBufferRange(); +range = displayMarker.getScreenRange(); + +displayMarker.setBufferRange(range); +displayMarker.setBufferRange([point, point]); +displayMarker.setBufferRange([point, [0, 0]]); +displayMarker.setBufferRange([[0, 0], point]); +displayMarker.setBufferRange([[0, 0], [0, 0]]); +displayMarker.setBufferRange(range, { reversed: true }); + +displayMarker.setScreenRange(range); +displayMarker.setScreenRange([point, point]); +displayMarker.setScreenRange([point, [0, 0]]); +displayMarker.setScreenRange([[0, 0], point]); +displayMarker.setScreenRange([[0, 0], [0, 0]]); +displayMarker.setScreenRange(range, { reversed: false }); + +point = displayMarker.getStartScreenPosition(); +point = displayMarker.getStartScreenPosition({ clipDirection: "backward" }); + +point = displayMarker.getEndScreenPosition(); +point = displayMarker.getEndScreenPosition({ clipDirection: "forward" }); + +// Extended Methods +point = displayMarker.getHeadBufferPosition(); +displayMarker.setHeadBufferPosition(point); + +displayMarker.getHeadScreenPosition(); +displayMarker.getHeadScreenPosition({ clipDirection: "closest" }); + +displayMarker.setHeadScreenPosition(point); +displayMarker.setHeadScreenPosition([0, 0]); +displayMarker.setHeadScreenPosition(point, { clipDirection: "backward" }); + +point = displayMarker.getTailBufferPosition(); + +displayMarker.setTailBufferPosition(point); +displayMarker.setTailBufferPosition([0, 0]); + +point = displayMarker.getTailScreenPosition(); +point = displayMarker.getTailScreenPosition({ clipDirection: "forward" }); + +displayMarker.setTailScreenPosition(point); +displayMarker.setTailScreenPosition([0, 0]); +displayMarker.setTailScreenPosition(point, { clipDirection: "closest" }); + +point = displayMarker.getStartBufferPosition(); +point = displayMarker.getEndBufferPosition(); +bool = displayMarker.hasTail(); +displayMarker.plantTail(); +displayMarker.clearTail(); + +// DisplayMarkerLayer ========================================================= +// Lifecycle +displayMarkerLayer.destroy(); +displayMarkerLayer.clear(); +bool = displayMarkerLayer.isDestroyed(); + +// Event Subscription +sub = displayMarkerLayer.onDidDestroy(() => {}); +sub = displayMarkerLayer.onDidUpdate(() => {}); +sub = displayMarkerLayer.onDidCreateMarker((marker) => { marker.isReversed(); }); + +// Marker creation +displayMarker = displayMarkerLayer.markScreenRange(range); +displayMarker = displayMarkerLayer.markScreenRange(range, {}); +displayMarker = displayMarkerLayer.markScreenRange(range, { clipDirection: "forward" }); +displayMarker = displayMarkerLayer.markScreenRange(range, { exclusive: true }); +displayMarker = displayMarkerLayer.markScreenRange(range, { invalidate: "never" }); +displayMarker = displayMarkerLayer.markScreenRange(range, { reversed: true }); +displayMarker = displayMarkerLayer.markScreenRange(range, { clipDirection: "backward", + exclusive: false, invalidate: "overlap", reversed: false }); +displayMarker = displayMarkerLayer.markScreenRange([point, point]); +displayMarker = displayMarkerLayer.markScreenRange([point, [0, 0]]); +displayMarker = displayMarkerLayer.markScreenRange([[0, 0], point]); +displayMarker = displayMarkerLayer.markScreenRange([[0, 0], [0, 0]]); +displayMarker = displayMarkerLayer.markScreenRange([[0, 0], point], { reversed: true }); + +displayMarker = displayMarkerLayer.markScreenPosition(point); +displayMarker = displayMarkerLayer.markScreenPosition(point, {}); +displayMarker = displayMarkerLayer.markScreenPosition(point, { clipDirection: "forward" }); +displayMarker = displayMarkerLayer.markScreenPosition(point, { exclusive: true }); +displayMarker = displayMarkerLayer.markScreenPosition(point, { invalidate: "never" }); +displayMarker = displayMarkerLayer.markScreenPosition(point, { clipDirection: "backward", + exclusive: false, invalidate: "overlap" }); +displayMarker = displayMarkerLayer.markScreenPosition([0, 0]); +displayMarker = displayMarkerLayer.markScreenPosition([0, 0], { exclusive: false }); + +displayMarker = displayMarkerLayer.markBufferRange(range); +displayMarker = displayMarkerLayer.markBufferRange(range, {}); +displayMarker = displayMarkerLayer.markBufferRange(range, { invalidate: "inside" }); +displayMarker = displayMarkerLayer.markBufferRange(range, { exclusive: true }); +displayMarker = displayMarkerLayer.markBufferRange(range, { reversed: true }); +displayMarker = displayMarkerLayer.markBufferRange(range, { exclusive: false, + invalidate: "overlap", reversed: false }); +displayMarker = displayMarkerLayer.markBufferRange([point, point]); +displayMarker = displayMarkerLayer.markBufferRange([point, [0, 0]]); +displayMarker = displayMarkerLayer.markBufferRange([[0, 0], point]); +displayMarker = displayMarkerLayer.markBufferRange([[0, 0], [0, 0]]); +displayMarker = displayMarkerLayer.markBufferRange([[0, 0], point], { reversed: true }); + +displayMarker = displayMarkerLayer.markBufferPosition(point); +displayMarker = displayMarkerLayer.markBufferPosition(point, {}); +displayMarker = displayMarkerLayer.markBufferPosition(point, { exclusive: true }); +displayMarker = displayMarkerLayer.markBufferPosition(point, { invalidate: "never" }); +displayMarker = displayMarkerLayer.markBufferPosition(point, { exclusive: false, + invalidate: "overlap" }); +displayMarker = displayMarkerLayer.markBufferPosition([0, 0]); +displayMarker = displayMarkerLayer.markBufferPosition([0, 0], { exclusive: false }); + +// Querying +displayMarker = displayMarkerLayer.getMarker(42); +displayMarkers = displayMarkerLayer.getMarkers(); +num = displayMarkerLayer.getMarkerCount(); + +displayMarkers = displayMarkerLayer.findMarkers({ + startBufferPosition: point, + endBufferPosition: point, + startScreenPosition: point, + endScreenPosition: point, + startsInBufferRange: range, + endsInBufferRange: range, + startsInScreenRange: range, + endsInScreenRange: range, + startBufferRow: num, + endBufferRow: num, + startScreenRow: num, + endScreenRow: num, + intersectsBufferRowRange: [num, num], + intersectsScreenRowRange: [num, num], + containsBufferRange: range, + containsBufferPosition: point, + containedInBufferRange: range, + containedInScreenRange: range, + intersectsBufferRange: range, + intersectsScreenRange: range, +}); +displayMarkers = displayMarkerLayer.findMarkers({ + intersectsScreenRange: [point, point], +}); +displayMarkers = displayMarkerLayer.findMarkers({ + intersectsScreenRange: [point, [0, 0]], +}); +displayMarkers = displayMarkerLayer.findMarkers({ + intersectsScreenRange: [[0, 0], point], +}); +displayMarkers = displayMarkerLayer.findMarkers({ + intersectsScreenRange: [[0, 0], [0, 0]], +}); diff --git a/types/text-buffer/tsconfig.json b/types/text-buffer/tsconfig.json index ebee922349..cdb73c99ce 100644 --- a/types/text-buffer/tsconfig.json +++ b/types/text-buffer/tsconfig.json @@ -7,14 +7,11 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" ], - "paths": { - "q": [ "q/v0" ] - }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true @@ -23,4 +20,4 @@ "index.d.ts", "text-buffer-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/text-buffer/tslint.json b/types/text-buffer/tslint.json new file mode 100644 index 0000000000..cd8f17056a --- /dev/null +++ b/types/text-buffer/tslint.json @@ -0,0 +1,38 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // Custom rules. + "class-name": true, + "indent": [true, "tabs"], + "jsdoc-format": true, + "linebreak-style": [true, "LF"], + "max-line-length": [true, 100], + "quotemark": [true, "double", "avoid-escape"], + "trailing-comma": [true, { + "multiline": { "objects": "always", "arrays": "always", "functions": "never" }, + "singleline": { "objects": "never", "arrays": "never", "functions": "never" } + }], + "whitespace": [ + true, + "check-branch", + "check-decl", + "check-operator", + "check-module", + "check-separator", + "check-type", + "check-typecast", + "check-rest-spread", + "check-preblock" + ], + // Soon to be defaults. + "arrow-return-shorthand": [true, "multiline"], + "no-any": true, + "no-floating-promises": true, + "no-unbound-method": true, + "no-unsafe-any": true, + "number-literal-format": true, + "restrict-plus-operands": true, + "return-undefined": true, + "switch-final-break": true + } +} diff --git a/types/text-buffer/v0/index.d.ts b/types/text-buffer/v0/index.d.ts new file mode 100644 index 0000000000..6d171e622c --- /dev/null +++ b/types/text-buffer/v0/index.d.ts @@ -0,0 +1,301 @@ +// Type definitions for text-buffer +// Project: https://github.com/atom/text-buffer +// Definitions by: vvakame <https://github.com/vvakame> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// <reference types="emissary" /> + +declare namespace TextBuffer { + + interface IPointStatic { + new (row?:number, column?:number):IPoint; + + fromObject(point:IPoint, copy?:boolean):IPoint; + fromObject(object:number[]):IPoint; + fromObject(object:{row:number; column:number;}):IPoint; + + min(point1:IPoint, point2:IPoint):IPoint; + min(point1:number[], point2:IPoint):IPoint; + min(point1:{row:number; column:number;}, point2:IPoint):IPoint; + + min(point1:IPoint, point2:number[]):IPoint; + min(point1:number[], point2:number[]):IPoint; + min(point1:{row:number; column:number;}, point2:number[]):IPoint; + + min(point1:IPoint, point2:{row:number; column:number;}):IPoint; + min(point1:number[], point2:{row:number; column:number;}):IPoint; + min(point1:{row:number; column:number;}, point2:{row:number; column:number;}):IPoint; + } + + interface IPoint { + constructor: IPointStatic; + + row:number; + column:number; + + copy():IPoint; + freeze():IPoint; + + translate(delta:IPoint):IPoint; + translate(delta:number[]):IPoint; + translate(delta:{row:number; column:number;}):IPoint; + + add(other:IPoint):IPoint; + add(other:number[]):IPoint; + add(other:{row:number; column:number;}):IPoint; + + splitAt(column:number):IPoint[]; + compare(other:IPoint):number; + isEqual(other:IPoint):boolean; + isLessThan(other:IPoint):boolean; + isLessThanOrEqual(other:IPoint):boolean; + isGreaterThan(other:IPoint):boolean; + isGreaterThanOrEqual(other:IPoint):boolean; + toArray():number[]; + serialize():number[]; + } + + interface IRangeStatic { + deserialize(array:IPoint[]):IRange; + + fromObject(object:IPoint[]):IRange; + + fromObject(object:IRange, copy?:boolean):IRange; + + fromObject(object:{start: IPoint; end: IPoint}):IRange; + fromObject(object:{start: number[]; end: IPoint}):IRange; + fromObject(object:{start: {row:number; column:number;}; end: IPoint}):IRange; + + fromObject(object:{start: IPoint; end: number[]}):IRange; + fromObject(object:{start: number[]; end: number[]}):IRange; + fromObject(object:{start: {row:number; column:number;}; end: number[]}):IRange; + + fromObject(object:{start: IPoint; end: {row:number; column:number;}}):IRange; + fromObject(object:{start: number[]; end: {row:number; column:number;}}):IRange; + fromObject(object:{start: {row:number; column:number;}; end: {row:number; column:number;}}):IRange; + + fromText(point:IPoint, text:string):IRange; + fromText(point:number[], text:string):IRange; + fromText(point:{row:number; column:number;}, text:string):IRange; + fromText(text:string):IRange; + + fromPointWithDelta(startPoint:IPoint, rowDelta:number, columnDelta:number):IRange; + fromPointWithDelta(startPoint:number[], rowDelta:number, columnDelta:number):IRange; + fromPointWithDelta(startPoint:{row:number; column:number;}, rowDelta:number, columnDelta:number):IRange; + + new(point1:IPoint, point2:IPoint):IRange; + new(point1:number[], point2:IPoint):IRange; + new(point1:{row:number; column:number;}, point2:IPoint):IRange; + + new(point1:IPoint, point2:number[]):IRange; + new(point1:number[], point2:number[]):IRange; + new(point1:{row:number; column:number;}, point2:number[]):IRange; + + new(point1:IPoint, point2:{row:number; column:number;}):IRange; + new(point1:number[], point2:{row:number; column:number;}):IRange; + new(point1:{row:number; column:number;}, point2:{row:number; column:number;}):IRange; + } + + interface IRange { + constructor:IRangeStatic; + + start: IPoint; + end: IPoint; + + serialize():number[][]; + copy():IRange; + freeze():IRange; + isEqual(other:IRange):boolean; + isEqual(other:IPoint[]):boolean; + + compare(object:IPoint[]):number; + + compare(object:{start: IPoint; end: IPoint}):number; + compare(object:{start: number[]; end: IPoint}):number; + compare(object:{start: {row:number; column:number;}; end: IPoint}):number; + + compare(object:{start: IPoint; end: number[]}):number; + compare(object:{start: number[]; end: number[]}):number; + compare(object:{start: {row:number; column:number;}; end: number[]}):number; + + compare(object:{start: IPoint; end: {row:number; column:number;}}):number; + compare(object:{start: number[]; end: {row:number; column:number;}}):number; + compare(object:{start: {row:number; column:number;}; end: {row:number; column:number;}}):number; + + isSingleLine():boolean; + coversSameRows(other:IRange):boolean; + + add(object:IPoint[]):IRange; + + add(object:{start: IPoint; end: IPoint}):IRange; + add(object:{start: number[]; end: IPoint}):IRange; + add(object:{start: {row:number; column:number;}; end: IPoint}):IRange; + + add(object:{start: IPoint; end: number[]}):IRange; + add(object:{start: number[]; end: number[]}):IRange; + add(object:{start: {row:number; column:number;}; end: number[]}):IRange; + + add(object:{start: IPoint; end: {row:number; column:number;}}):IRange; + add(object:{start: number[]; end: {row:number; column:number;}}):IRange; + add(object:{start: {row:number; column:number;}; end: {row:number; column:number;}}):IRange; + + translate(startPoint:IPoint, endPoint:IPoint):IRange; + translate(startPoint:IPoint):IRange; + + intersectsWith(otherRange:IRange):boolean; + containsRange(otherRange:IRange, exclusive:boolean):boolean; + + containsPoint(point:IPoint, exclusive:boolean):boolean; + containsPoint(point:number[], exclusive:boolean):boolean; + containsPoint(point:{row:number; column:number;}, exclusive:boolean):boolean; + + intersectsRow(row:number):boolean; + intersectsRowRange(startRow:number, endRow:number):boolean; + union(otherRange:IRange):IRange; + isEmpty():boolean; + toDelta():IPoint; + getRowCount():number; + getRows():number[]; + } + + interface IHistory { + // TBD + } + + interface IMarkerManager { + // TBD + } + + interface IMarker { + // TBD + } + + interface IBufferPatch { + // TBD + } + + interface ITextBufferStatic { + Point: IPointStatic; + Range: IRangeStatic; + newlineRegex:any; + + new (text:string): ITextBuffer; + new (params:any): ITextBuffer; + } + + interface ITextBuffer extends Emissary.IEmitter, Emissary.ISubscriber { + // Delegator.includeInto(TextBuffer); + // Serializable.includeInto(TextBuffer); + + cachedText:string; + stoppedChangingDelay:number; + stoppedChangingTimeout:any; + cachedDiskContents:string; + conflict:boolean; + file:any; // pathwatcher.IFile + refcount:number; + + lines:string[]; + lineEndings:string[]; + offsetIndex:any; // span-skip-list.SpanSkipList + history:IHistory; + markers:IMarkerManager; + loaded:boolean; + digestWhenLastPersisted:string; + modifiedWhenLastPersisted:boolean; + useSerializedText:boolean; + + deserializeParams(params:any):any; + serializeParams():any; + + getText():string; + getLines():string; + isEmpty():boolean; + getLineCount():number; + getLastRow():number; + lineForRow(row:number):string; + getLastLine():string; + lineEndingForRow(row:number):string; + lineLengthForRow(row:number):number; + setText(text:string):IRange; + setTextViaDiff(text:any):any[]; + setTextInRange(range:IRange, text:string, normalizeLineEndings?:boolean):IRange; + insert(position:IPoint, text:string, normalizeLineEndings?:boolean):IRange; + append(text:string, normalizeLineEndings?:boolean):IRange; + delete(range:IRange):IRange; + deleteRow(row:number):IRange; + deleteRows(startRow:number, endRow:number):IRange; + buildPatch(oldRange:IRange, newText:string, normalizeLineEndings?:boolean):IBufferPatch; + applyPatch(patch:IBufferPatch):any; + getTextInRange(range:IRange):string; + clipRange(range:IRange):IRange; + clipPosition(position:IPoint):IPoint; + getFirstPosition():IPoint; + getEndPosition():IPoint; + getRange():IRange; + rangeForRow(row:number, includeNewline?:boolean):IRange; + characterIndexForPosition(position:IPoint):number; + positionForCharacterIndex(offset:number):IPoint; + getMaxCharacterIndex():number; + loadSync():ITextBuffer; + load():Promise<ITextBuffer>; + finishLoading():ITextBuffer; + handleTextChange(event:any):any; + destroy():any; + isAlive():boolean; + isDestroyed():boolean; + isRetained():boolean; + retain():ITextBuffer; + release():ITextBuffer; + subscribeToFile():any; + hasMultipleEditors():boolean; + reload():any; + updateCachedDiskContentsSync():string; + updateCachedDiskContents():Promise<string>; + getBaseName():string; + getPath():string; + getUri():string; + setPath(filePath:string):any; + save():void; + saveAs(filePath:string):any; + isModified():boolean; + isInConflict():boolean; + destroyMarker(id:any):any; + matchesInCharacterRange(regex:any, startIndex:any, endIndex:any):any[]; + scan(regex:any, iterator:any):any; + backwardsScan(regex:any, iterator:any):any; + replace(regex:any, replacementText:any):any; + scanInRange(regex:any, range:any, iterator:any, reverse:any):any; + backwardsScanInRange(regex:any, range:any, iterator:any):any; + isRowBlank(row:number):boolean; + previousNonBlankRow(startRow:number):number; + nextNonBlankRow(startRow:number):number; + usesSoftTabs():boolean; + cancelStoppedChangingTimeout():any; + scheduleModifiedEvents():any; + emitModifiedStatusChanged(modifiedStatus:any):any; + logLines(start:number, end:number):void; + + // delegate to history property + undo():any; + redo():any; + transact(fn:Function):any; + beginTransaction():any; + commitTransaction():any; + abortTransaction():any; + clearUndoStack():any; + + // delegate to markers property + markRange(range:any, properties:any):any; + markPosition(range:any, properties:any):any; + getMarker(id:number):IMarker; + getMarkers():IMarker[]; + getMarkerCount():number; + } +} + +declare module "text-buffer" { + var _: TextBuffer.ITextBufferStatic; + export = _; +} diff --git a/types/text-buffer/v0/text-buffer-tests.ts b/types/text-buffer/v0/text-buffer-tests.ts new file mode 100644 index 0000000000..5b79f711cb --- /dev/null +++ b/types/text-buffer/v0/text-buffer-tests.ts @@ -0,0 +1,19 @@ + + +declare var Point: TextBuffer.IPointStatic; + +var pointA = new Point(1, 2); +pointA.row; +pointA.column; + +var pointB = Point.fromObject({row: 2, column: 3}); +var pointC = Point.min(pointA, pointB); + +declare var TRange: TextBuffer.IRangeStatic; + +var rangeA = new TRange(pointA, pointB); + +declare var TextBufferStatic: TextBuffer.ITextBufferStatic; + +var textBuffer = new TextBufferStatic("Hello, world!"); +textBuffer.getLineCount(); diff --git a/types/text-buffer/v0/tsconfig.json b/types/text-buffer/v0/tsconfig.json new file mode 100644 index 0000000000..3acf4b7176 --- /dev/null +++ b/types/text-buffer/v0/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "text-buffer": [ "text-buffer/v0" ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "text-buffer-tests.ts" + ] +} diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index b2fa482639..ea63110057 100644 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -835,7 +835,7 @@ export class BufferGeometry extends EventDispatcher { drawRange: { start: number, count: number }; getIndex(): BufferAttribute; - setIndex( index: BufferAttribute ): void; + setIndex( index: BufferAttribute|number[] ): void; addAttribute(name: string, attribute: BufferAttribute|InterleavedBufferAttribute): BufferGeometry; @@ -3626,6 +3626,18 @@ export class Matrix3 implements Matrix { fromArray(array: number[], offset?: number): Matrix3; toArray(): number[]; + /** + * Multiplies this matrix by m. + */ + multiply(m: Matrix3): Matrix3; + + premultiply(m: Matrix3): Matrix3; + + /** + * Sets this matrix to a x b. + */ + multiplyMatrices(a: Matrix3, b: Matrix3): Matrix3; + /** * @deprecated */ @@ -4820,8 +4832,7 @@ export class LineSegments extends Line { } export class Mesh extends Object3D { - constructor(geometry?: Geometry, material?: Material | Material []); - constructor(geometry?: BufferGeometry, material?: Material | Material []); + constructor(geometry?: Geometry | BufferGeometry, material?: Material | Material []); geometry: Geometry|BufferGeometry; material: Material | Material[]; @@ -6589,8 +6600,8 @@ export class ExtrudeGeometry extends Geometry { constructor(shapes?: Shape[], options?: any); static WorldUVGenerator: { - generateTopUV(geometry: Geometry, indexA: number, indexB: number, indexC: number): Vector2[]; - generateSideWallUV(geometry: Geometry, indexA: number, indexB: number, indexC: number, indexD: number): Vector2[]; + generateTopUV(geometry: Geometry, vertex: number[], indexA: number, indexB: number, indexC: number): Vector2[]; + generateSideWallUV(geometry: Geometry, vertex: number[], indexA: number, indexB: number, indexC: number, indexD: number): Vector2[]; }; addShapeList(shapes: Shape[], options?: any): void; diff --git a/types/thrift/index.d.ts b/types/thrift/index.d.ts index ed3fb13659..f31fdb129e 100644 --- a/types/thrift/index.d.ts +++ b/types/thrift/index.d.ts @@ -1,42 +1,585 @@ // Type definitions for thrift 0.10 // Project: https://www.npmjs.com/package/thrift // Definitions by: Kamek <https://github.com/kamek-pf> +// Kevin Greene <https://github.com/kevin-greene-ck> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 -export as namespace Thrift; +/// <reference types="node" /> -export class TException {} +import * as net from 'net'; +import * as http from 'http'; +import * as tls from 'tls'; -/** - * Protocols and Transports - */ -export class TBufferedTransport {} -export class TXHRTransport {} -export class TJSONProtocol {} -export class TBinaryProtocol {} +// Thrift re-exports node-int64 and Q +import Int64 = require('node-int64'); +export { Int64 as Int64 }; +import Q = require('q'); +export { Q as Q }; -/** - * Server side - */ -export interface ThriftServer { - listen(port: number): any; +export interface TMap { + ktype: Thrift.Type; + vtype: Thrift.Type; + size: number; } -export function createServer(generatedService: any, serviceMethods: any): ThriftServer; - -/** - * Client side - */ -export type ConnexionEvent = 'open' | 'message' | 'close' | 'error'; - -export interface ClientConnectionParams { - transport: TJSONProtocol | TBinaryProtocol; - protocol: TBufferedTransport | TXHRTransport; +export interface TMessage { + fname: string; + mtype: Thrift.MessageType; + rseqid: number; } -export interface ClientConnection { - on(event: ConnexionEvent, callback: (...args: any[]) => void): void; +export interface TField { + fname: string; + ftype: Thrift.Type; + fid: number; } -export function createConnection(host: string, port: number, params: ClientConnectionParams): ClientConnection; -export function createClient(generatedService: any, connection: {}): any; +export interface TList { + etype: Thrift.Type; + size: number; +} + +export interface TSet { + etype: Thrift.Type; + size: number; +} + +export interface TStruct { + fname: string; +} + +export interface TTransport { + commitPosition(): void; + rollbackPosition(): void; + isOpen(): boolean; + open(): boolean; + close(): boolean; + setCurrSeqId(seqId: number): void; + ensureAvailable(len: number): void; + read(len: number): Buffer; + readByte(): number; + readI16(): number; + readI32(): number; + readDouble(): number; + readString(): string; + write(buf: Buffer | string): void; + flush(): void; +} + +export interface TProtocol { + flush(): void; + writeMessageBegin(name: string, type: Thrift.MessageType, seqid: number): void; + writeMessageEnd(): void; + writeStructBegin(name: string): void; + writeStructEnd(): void; + writeFieldBegin(name: string, type: Thrift.Type, id: number): void; + writeFieldEnd(): void; + writeFieldStop(): void; + writeMapBegin(ktype: Thrift.Type, vtype: Thrift.Type, size: number): void; + writeMapEnd(): void; + writeListBegin(etype: Thrift.Type, size: number): void; + writeListEnd(): void; + writeSetBegin(etype: Thrift.Type, size: number): void; + writeSetEnd(): void; + writeBool(bool: boolean): void; + writeByte(b: number): void; + writeI16(i16: number): void; + writeI32(i32: number): void; + writeI64(i64: number | Int64): void; + writeDouble(dbl: number): void; + writeString(arg: string | Buffer): void; + writeBinary(arg: string | Buffer): void; + readMessageBegin(): TMessage; + readMessageEnd(): void; + readStructBegin(): TStruct; + readStructEnd(): void; + readFieldBegin(): TField; + readFieldEnd(): void; + readMapBegin(): TMap; + readMapEnd(): void; + readListBegin(): TList; + readListEnd(): void; + readSetBegin(): TSet; + readSetEnd(): void; + readBool(): boolean; + readByte(): number; + readI16(): number; + readI32(): number; + readI64(): Int64; + readDouble(): number; + readBinary(): Buffer; + readString(): string; + getTransport(): TTransport; + skip(type: Thrift.Type): void; +} + +export interface SeqId2Service { + [seqid: number]: string; +} + +export class Connection extends NodeJS.EventEmitter { + seqId2Service: SeqId2Service; + connection: net.Socket; + ssl: boolean; + options: ConnectOptions; + transport: TTransport; + protocol: TProtocol; + offline_queue: Buffer[]; + connected: boolean; + constructor(stream: net.Socket, options?: ConnectOptions); + end(): void; + destroy(): void; + initialize_retry_vars(): void; + write(data: Buffer): void; + connection_gone(): void; +} + +export class HttpConnection extends NodeJS.EventEmitter { + options: ConnectOptions; + host: string; + port: number; + https: boolean; + transport: TTransport; + protocol: TProtocol; + constructor(host: string, port: number, options?: ConnectOptions); + responseCallback(response: http.IncomingMessage): void; + write(data: Buffer): void; +} + +export class XHRConnection extends NodeJS.EventEmitter { + seqId2Service: SeqId2Service; + options: ConnectOptions; + wpos: number; + rpos: number; + useCORS: boolean; + send_buf: string; + recv_buf: string; + transport: TTransport; + protocol: TProtocol; + headers: http.OutgoingHttpHeaders; + constructor(host: string, port: number, options?: ConnectOptions); + getXmlHttpRequestObject(): XMLHttpRequest; + flush(): void; + setRecvBuffer(buf: string): void; + isOpen(): boolean; + open(): void; + close(): void; + read(len: number): string; + readAll(): string; + write(buf: string): void; + getSendBuffer(): string; +} + +export interface WSOptions { + host: string; + port: number; + path: string; + headers: http.OutgoingHttpHeaders; +} + +export class WSConnection extends NodeJS.EventEmitter { + seqId2Service: SeqId2Service; + options: ConnectOptions; + host: string; + port: number; + secure: boolean; + transport: TTransport; + protocol: TProtocol; + path: string; + send_pending: Buffer[]; + wsOptions: WSOptions; + constructor(host: string, port: number, options?: ConnectOptions); + isOpen(): boolean; + open(): void; + close(): void; + uri(): string; + write(data: Buffer): void; +} + +export class Multiplexer<TClient> { + createClient(serviceName: string, client: TClientConstructor<TClient>, connection: Connection): TClient; +} + +export class MultiplexedProcessor { + constructor(stream?: any, options?: any); + process(input: TProtocol, output: TProtocol): void; +} + +export type TTransportCallback = + (msg?: Buffer, seqid?: number) => void; + +export interface ServiceMap<TProcessor, THandler> { + [uri: string]: ServerOptions<TProcessor, THandler>; +} + +export interface ServiceOptions<TProcessor, THandler> { + transport?: TTransportConstructor; + protocol?: TProtocolConstructor; + processor?: { new (handler: THandler): TProcessor }; + handler?: THandler; +} + +export interface ServerOptions<TProcessor, THandler> extends ServiceOptions<TProcessor, THandler> { + cors?: string[]; + files?: string; + headers?: http.IncomingHttpHeaders; + services?: ServiceMap<TProcessor, THandler>; + tls?: tls.TlsOptions; +} + +export interface ConnectOptions { + transport?: TTransportConstructor; + protocol?: TProtocolConstructor; + path?: string; + headers?: http.OutgoingHttpHeaders; + https?: boolean; + debug?: boolean; + max_attempts?: number; + retry_max_delay?: number; + connect_timeout?: number; + timeout?: number; + nodeOptions?: http.ClientRequestArgs; +} + +export interface WSConnectOptions { + transport?: TTransportConstructor; + protocol?: TProtocolConstructor; + path?: string; + headers?: http.OutgoingHttpHeaders; + secure?: boolean; + wsOptions?: WSOptions; +} + +export type TClientConstructor<TClient> = + { new (output: TTransport, pClass: { new (trans: TTransport): TProtocol }): TClient; } | + { Client: { new (output: TTransport, pClass: { new (trans: TTransport): TProtocol }): TClient; } }; + +export type TProcessorConstructor<TProcessor, THandler> = + { new (handler: THandler): TProcessor } | + { Processor: { new (handler: THandler): TProcessor }}; + +export interface WebServerOptions<TProcessor, THandler> { + services: { + [path: string]: { + processor: TProcessorConstructor<TProcessor, THandler>; + handler: THandler; + } + }; +} + +export function createConnection(host: string | undefined, port: number, options?: ConnectOptions): Connection; +export function createSSLConnection(host: string | undefined, port: number, options?: ConnectOptions): Connection; +export function createHttpConnection(host: string | undefined, port: number, options?: ConnectOptions): HttpConnection; +export function createXHRConnection(host: string | undefined, port: number, options?: ConnectOptions): XHRConnection; +export function createWSConnectin(host: string | undefined, port: number, options?: WSConnectOptions): WSConnection; + +export function createXHRClient<TClient>( + client: TClientConstructor<TClient>, + connection: XHRConnection +): TClient; + +export function createHttpClient<TClient>( + client: TClientConstructor<TClient>, + connection: HttpConnection +): TClient; + +export function createWSClient<TClient>( + client: TClientConstructor<TClient>, + connection: WSConnection +): TClient; + +export function createStdIOClient<TClient>( + client: TClientConstructor<TClient>, + connection: Connection +): TClient; + +export function createClient<TClient>( + client: TClientConstructor<TClient>, + connection: Connection +): TClient; + +// THandler is going to be a hash of user-defined functions for prcessing RPC calls +export function createServer<TProcessor, THandler>( + processor: TProcessorConstructor<TProcessor, THandler>, + handler: THandler, + options?: ServerOptions<TProcessor, THandler> +): http.Server | tls.Server; + +// tslint:disable-next-line no-unnecessary-generics +export function createWebServer<TProcessor, THandler>(options: WebServerOptions<TProcessor, THandler>): http.Server | tls.Server; + +export class TBufferedTransport implements TTransport { + constructor(buffer: Buffer | undefined, callback: TTransportCallback); + static receiver(callback: (trans: TBufferedTransport, seqid: number) => void, seqid: number): (data: Buffer) => void; + commitPosition(): void; + rollbackPosition(): void; + isOpen(): boolean; + open(): boolean; + close(): boolean; + setCurrSeqId(seqId: number): void; + ensureAvailable(len: number): void; + read(len: number): Buffer; + readByte(): number; + readI16(): number; + readI32(): number; + readDouble(): number; + readString(): string; + write(buf: Buffer | string): void; + flush(): void; +} + +export class TFramedTransport implements TTransport { + constructor(buffer: Buffer | undefined, callback: TTransportCallback); + static receiver(callback: (trans: TFramedTransport, seqid: number) => void, seqid: number): (data: Buffer) => void; + commitPosition(): void; + rollbackPosition(): void; + isOpen(): boolean; + open(): boolean; + close(): boolean; + setCurrSeqId(seqId: number): void; + ensureAvailable(len: number): void; + read(len: number): Buffer; + readByte(): number; + readI16(): number; + readI32(): number; + readDouble(): number; + readString(): string; + write(buf: Buffer | string): void; + flush(): void; +} + +export interface TTransportConstructor { + new (buffer: Buffer | undefined, callback: TTransportCallback): TTransport; +} + +export class TBinaryProtocol implements TProtocol { + constructor(trans: TTransport, strictRead?: boolean, strictWrite?: boolean); + flush(): void; + writeMessageBegin(name: string, type: Thrift.MessageType, seqid: number): void; + writeMessageEnd(): void; + writeStructBegin(name: string): void; + writeStructEnd(): void; + writeFieldBegin(name: string, type: Thrift.Type, id: number): void; + writeFieldEnd(): void; + writeFieldStop(): void; + writeMapBegin(ktype: Thrift.Type, vtype: Thrift.Type, size: number): void; + writeMapEnd(): void; + writeListBegin(etype: Thrift.Type, size: number): void; + writeListEnd(): void; + writeSetBegin(etype: Thrift.Type, size: number): void; + writeSetEnd(): void; + writeBool(bool: boolean): void; + writeByte(b: number): void; + writeI16(i16: number): void; + writeI32(i32: number): void; + writeI64(i64: number | Int64): void; + writeDouble(dbl: number): void; + writeString(arg: string | Buffer): void; + writeBinary(arg: string | Buffer): void; + readMessageBegin(): TMessage; + readMessageEnd(): void; + readStructBegin(): TStruct; + readStructEnd(): void; + readFieldBegin(): TField; + readFieldEnd(): void; + readMapBegin(): TMap; + readMapEnd(): void; + readListBegin(): TList; + readListEnd(): void; + readSetBegin(): TSet; + readSetEnd(): void; + readBool(): boolean; + readByte(): number; + readI16(): number; + readI32(): number; + readI64(): Int64; + readDouble(): number; + readBinary(): Buffer; + readString(): string; + getTransport(): TTransport; + skip(type: Thrift.Type): void; +} + +export class TJSONProtocol implements TProtocol { + constructor(trans: TTransport); + flush(): void; + writeMessageBegin(name: string, type: Thrift.MessageType, seqid: number): void; + writeMessageEnd(): void; + writeStructBegin(name: string): void; + writeStructEnd(): void; + writeFieldBegin(name: string, type: Thrift.Type, id: number): void; + writeFieldEnd(): void; + writeFieldStop(): void; + writeMapBegin(ktype: Thrift.Type, vtype: Thrift.Type, size: number): void; + writeMapEnd(): void; + writeListBegin(etype: Thrift.Type, size: number): void; + writeListEnd(): void; + writeSetBegin(etype: Thrift.Type, size: number): void; + writeSetEnd(): void; + writeBool(bool: boolean): void; + writeByte(b: number): void; + writeI16(i16: number): void; + writeI32(i32: number): void; + writeI64(i64: number | Int64): void; + writeDouble(dbl: number): void; + writeString(arg: string | Buffer): void; + writeBinary(arg: string | Buffer): void; + readMessageBegin(): TMessage; + readMessageEnd(): void; + readStructBegin(): TStruct; + readStructEnd(): void; + readFieldBegin(): TField; + readFieldEnd(): void; + readMapBegin(): TMap; + readMapEnd(): void; + readListBegin(): TList; + readListEnd(): void; + readSetBegin(): TSet; + readSetEnd(): void; + readBool(): boolean; + readByte(): number; + readI16(): number; + readI32(): number; + readI64(): Int64; + readDouble(): number; + readBinary(): Buffer; + readString(): string; + getTransport(): TTransport; + skip(type: Thrift.Type): void; +} + +export class TCompactProtocol implements TProtocol { + constructor(trans: TTransport); + flush(): void; + writeMessageBegin(name: string, type: Thrift.MessageType, seqid: number): void; + writeMessageEnd(): void; + writeStructBegin(name: string): void; + writeStructEnd(): void; + writeFieldBegin(name: string, type: Thrift.Type, id: number): void; + writeFieldEnd(): void; + writeFieldStop(): void; + writeMapBegin(ktype: Thrift.Type, vtype: Thrift.Type, size: number): void; + writeMapEnd(): void; + writeListBegin(etype: Thrift.Type, size: number): void; + writeListEnd(): void; + writeSetBegin(etype: Thrift.Type, size: number): void; + writeSetEnd(): void; + writeBool(bool: boolean): void; + writeByte(b: number): void; + writeI16(i16: number): void; + writeI32(i32: number): void; + writeI64(i64: number | Int64): void; + writeDouble(dbl: number): void; + writeString(arg: string | Buffer): void; + writeBinary(arg: string | Buffer): void; + readMessageBegin(): TMessage; + readMessageEnd(): void; + readStructBegin(): TStruct; + readStructEnd(): void; + readFieldBegin(): TField; + readFieldEnd(): void; + readMapBegin(): TMap; + readMapEnd(): void; + readListBegin(): TList; + readListEnd(): void; + readSetBegin(): TSet; + readSetEnd(): void; + readBool(): boolean; + readByte(): number; + readI16(): number; + readI32(): number; + readI64(): Int64; + readDouble(): number; + readBinary(): Buffer; + readString(): string; + getTransport(): TTransport; + skip(type: Thrift.Type): void; +} + +export interface TProtocolConstructor { + new (trans: TTransport, strictRead?: boolean, strictWrite?: boolean): TProtocol; +} + +// thrift.js +export namespace Thrift { + enum Type { + STOP = 0, + VOID = 1, + BOOL = 2, + BYTE = 3, + I08 = 3, + DOUBLE = 4, + I16 = 6, + I32 = 8, + I64 = 10, + STRING = 11, + UTF7 = 11, + STRUCT = 12, + MAP = 13, + SET = 14, + LIST = 15, + UTF8 = 16, + UTF16 = 17 + } + + enum MessageType { + CALL = 1, + REPLY = 2, + EXCEPTION = 3, + ONEWAY = 4 + } + + class TException extends Error { + name: string; + message: string; + + constructor(message: string); + + getMessage(): string; + } + + enum TApplicationExceptionType { + UNKNOWN = 0, + UNKNOWN_METHOD = 1, + INVALID_MESSAGE_TYPE = 2, + WRONG_METHOD_NAME = 3, + BAD_SEQUENCE_ID = 4, + MISSING_RESULT = 5, + INTERNAL_ERROR = 6, + PROTOCOL_ERROR = 7, + INVALID_TRANSFORM = 8, + INVALID_PROTOCOL = 9, + UNSUPPORTED_CLIENT_TYPE = 10 + } + + class TApplicationException extends TException { + message: string; + code: number; + + constructor(type?: TApplicationExceptionType, message?: string); + read(input: TProtocol): void; + write(output: TProtocol): void; + getCode(): number; + } + + enum TProtocolExceptionType { + UNKNOWN = 0, + INVALID_DATA = 1, + NEGATIVE_SIZE = 2, + SIZE_LIMIT = 3, + BAD_VERSION = 4, + NOT_IMPLEMENTED = 5, + DEPTH_LIMIT = 6 + } + + class TProtocolException implements Error { + name: string; + message: string; + type: TProtocolExceptionType; + + constructor(type: TProtocolExceptionType, message: string); + } + + function objectLength(obj: any): number; +} diff --git a/types/thrift/thrift-tests.ts b/types/thrift/thrift-tests.ts index 98d3ab89a2..7e47f2cf6b 100644 --- a/types/thrift/thrift-tests.ts +++ b/types/thrift/thrift-tests.ts @@ -1,10 +1,128 @@ -import * as Thrift from 'thrift'; +import { + createConnection, + createServer, + createClient, + Thrift, + TBinaryProtocol, + TBufferedTransport, + TProtocol, + TTransport, + TTransportCallback, + Int64, + TMessage, + TStruct, + TField, + TSet, + TList, + TMap, +} from 'thrift'; -const fakeGeneratedService: any = {}; -const fakeServiceMethods: any = {}; -const fakeConnectionParams: any = {}; +interface MockServiceHandlers { + ping(): string; +} -Thrift.createServer(fakeGeneratedService, fakeServiceMethods); +class MockProcessor { + constructor() {} +} -const clientConnection = Thrift.createConnection('0.0.0.0', 1234, fakeConnectionParams); -Thrift.createClient(fakeGeneratedService, clientConnection); +class MockClient { + constructor() {} +} + +const mockServiceHandlers: MockServiceHandlers = { + ping(): string { + return 'ok'; + } +}; + +const mockGeneratedService = { + Client: MockClient, + Processor: MockProcessor +}; + +createServer<MockProcessor, MockServiceHandlers>(mockGeneratedService, mockServiceHandlers); + +const clientConnection = createConnection('0.0.0.0', 1234, { + transport: TBufferedTransport, + protocol: TBinaryProtocol +}); +createClient<MockClient>(mockGeneratedService, clientConnection); + +const mockBuffer: Buffer = Buffer.alloc(8); + +const mockCallback: TTransportCallback = (msg: Buffer, seq: number): void => {}; + +const mockTransport: TTransport = new TBufferedTransport(mockBuffer, mockCallback); + +const mockProtocol: TProtocol = new TBinaryProtocol(mockTransport); + +// Test utility types +const len: number = Thrift.objectLength({}); + +// Test transport types +const pI16: number = mockTransport.readI16(); +const pI32: number = mockTransport.readI32(); +const pDouble: number = mockTransport.readDouble(); +const pByte: number = mockTransport.readByte(); +const pString: string = mockTransport.readString(); +const isOpen: boolean = mockTransport.isOpen(); +const open: boolean = mockTransport.open(); +const close: boolean = mockTransport.close(); + +mockTransport.write(mockBuffer); +mockTransport.write('test'); +mockTransport.flush(); +mockTransport.setCurrSeqId(1); +mockTransport.ensureAvailable(10); +mockTransport.commitPosition(); +mockTransport.rollbackPosition(); + +// Test protocol types +mockProtocol.flush(); +mockProtocol.writeMessageBegin('test', Thrift.MessageType.CALL, 1); +mockProtocol.writeMessageEnd(); +mockProtocol.writeStructBegin('test'); +mockProtocol.writeStructEnd(); +mockProtocol.writeFieldBegin('test', Thrift.Type.BOOL, 1); +mockProtocol.writeFieldEnd(); +mockProtocol.writeFieldStop(); +mockProtocol.writeMapBegin(Thrift.Type.STRING, Thrift.Type.I64, 1); +mockProtocol.writeMapEnd(); +mockProtocol.writeListBegin(Thrift.Type.STRING, 10); +mockProtocol.writeListEnd(); +mockProtocol.writeSetBegin(Thrift.Type.I32, 10); +mockProtocol.writeSetEnd(); +mockProtocol.writeBool(true); +mockProtocol.writeByte(1); +mockProtocol.writeI16(16); +mockProtocol.writeI32(32); +mockProtocol.writeI64(64); +mockProtocol.writeI64(new Int64('0xff')); +mockProtocol.writeDouble(42); +mockProtocol.writeString('test'); +mockProtocol.writeString(new Buffer('test')); +mockProtocol.writeBinary('test'); +mockProtocol.writeBinary(new Buffer('test')); + +const message: TMessage = mockProtocol.readMessageBegin(); +mockProtocol.readMessageEnd(); +const struct: TStruct = mockProtocol.readStructBegin(); +mockProtocol.readStructEnd(); +const field: TField = mockProtocol.readFieldBegin(); +mockProtocol.readFieldEnd(); +const map: TMap = mockProtocol.readMapBegin(); +mockProtocol.readMapEnd(); +const list: TList = mockProtocol.readListBegin(); +mockProtocol.readListEnd(); +const set: TSet = mockProtocol.readSetBegin(); +mockProtocol.readSetEnd(); +const bool: boolean = mockProtocol.readBool(); +const byte: number = mockProtocol.readByte(); +const tI16: number = mockProtocol.readI16(); +const tI32: number = mockProtocol.readI32(); +const tI64: Int64 = mockProtocol.readI64(); +const tDouble: number = mockProtocol.readDouble(); +const tBinary: Buffer = mockProtocol.readBinary(); +const tString: string = mockProtocol.readString(); +const tTrans: TTransport = mockProtocol.getTransport(); +mockProtocol.skip(Thrift.Type.STRUCT); diff --git a/types/thrift/tsconfig.json b/types/thrift/tsconfig.json index 29562363f2..9f258d3831 100644 --- a/types/thrift/tsconfig.json +++ b/types/thrift/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6" + "es6", + "dom" ], "noImplicitAny": true, "noImplicitThis": true, diff --git a/types/to-camel-case/index.d.ts b/types/to-camel-case/index.d.ts new file mode 100644 index 0000000000..1db6fdc2fe --- /dev/null +++ b/types/to-camel-case/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for to-camel-case 1.0 +// Project: https://github.com/ianstormtaylor/to-camel-case +// Definitions by: Jed Fox <https://github.com/j-f1> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function toCamelCase(string: string): string; +export = toCamelCase; diff --git a/types/to-camel-case/to-camel-case-tests.ts b/types/to-camel-case/to-camel-case-tests.ts new file mode 100644 index 0000000000..37b4bab7c2 --- /dev/null +++ b/types/to-camel-case/to-camel-case-tests.ts @@ -0,0 +1,4 @@ +import toCamelCase = require('to-camel-case'); + +// $ExpectType string +toCamelCase('to-camel-case'); // => 'toCamelCase' diff --git a/types/to-camel-case/tsconfig.json b/types/to-camel-case/tsconfig.json new file mode 100644 index 0000000000..d9eb293d4c --- /dev/null +++ b/types/to-camel-case/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "to-camel-case-tests.ts" + ] +} diff --git a/types/to-camel-case/tslint.json b/types/to-camel-case/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/to-camel-case/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/tocktimer/index.d.ts b/types/tocktimer/index.d.ts new file mode 100644 index 0000000000..20bd344c83 --- /dev/null +++ b/types/tocktimer/index.d.ts @@ -0,0 +1,89 @@ +// Type definitions for tocktimer 1.0 +// Project: https://github.com/mrchimp/tock +// Definitions by: Evan Shortiss <https://github.com/evanshortiss> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function t(opts?: t.TockOptions): t.Tock; + +declare namespace t { + interface TockOptions { + /** + * Defaults to 10 milliseconds. How often, in milliseconds, that the clock will tick. + */ + interval?: number; + + /** + * Defaults to false. If true, the clock will count down from a given time, otherwise it will count up from 0:00. + */ + countdown?: boolean; + + /** + * Callback function executed on each tick + */ + callback(): void; + + /** + * Callback function executed when the timer is complete + */ + complete(): void; + } + + class Tock { + /** + * Create a Tock instance + * @param opts + */ + constructor(opts?: TockOptions) + + /** + * Start the timer + * @param [time] {Number} Optional. Can be either a countdown value or a starting value. + * If a countdown timer then set time to count down from. + * If a starting value then set time to the desired start time to count up from. + */ + start: (time?: number) => void; + + /** + * Stop the clock and clear the timeout + */ + stop: () => void; + + /** + * Stop the clock if it's running, continue clock if paused + */ + pause: () => void; + + /** + * Reset times to zero. Countdown clocks need a duration to be passed to start() after reset() is called. + */ + reset: () => void; + + /** + * Returns the elapsed time in milliseconds + */ + lap: () => number; + + /** + * Convert number of milliseconds to a MM:SS time string. Won't handle times greater than 1 hour + * @param ms + */ + msToTime: (ms: number) => string; + + /** + * Convert number of milliseconds to timecode string + * @param ms + * @param showMs + */ + msToTimecode: (ms: number, showMs?: boolean) => string; + + /** + * Convert a time string to a number of milliseconds. Should be a duration as a string of form MM:SS, MM:SS:ms, MM:SS.ms, HH:MM:SS + * Alternatively a time in the future can be provided using the form yyyy-mm-dd HH:MM:SS.ms. The difference between this time and present will be returned. + * If the input cannot be recognized as one of the above then 0 is returned + * @param ms + */ + timeToMS: (time: string) => number; + } +} + +export = t; diff --git a/types/tocktimer/tocktimer-tests.ts b/types/tocktimer/tocktimer-tests.ts new file mode 100644 index 0000000000..85f911b8a9 --- /dev/null +++ b/types/tocktimer/tocktimer-tests.ts @@ -0,0 +1,28 @@ +import * as tock from 'tocktimer'; + +let timer: tock.Tock; + +let opts: tock.TockOptions; + +// Opts that conform to spec +opts = { + interval: 100, + countdown: true, + callback: () => { + // Tick tock...clock is ticking + }, + complete: () => { + // Ding ding...time's up + } +}; + +// Create a tock instance +timer = tock(); + +timer.lap(); +timer.msToTime(Date.now()); +timer.msToTimecode(Date.now()); +timer.pause(); +timer.reset(); +timer.stop(); +timer.timeToMS('12:51'); diff --git a/types/tocktimer/tsconfig.json b/types/tocktimer/tsconfig.json new file mode 100644 index 0000000000..131bc07cde --- /dev/null +++ b/types/tocktimer/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "tocktimer-tests.ts" + ] +} diff --git a/types/tocktimer/tslint.json b/types/tocktimer/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/tocktimer/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/twit/index.d.ts b/types/twit/index.d.ts index fa23991169..c8687cc6fb 100644 --- a/types/twit/index.d.ts +++ b/types/twit/index.d.ts @@ -241,6 +241,10 @@ declare module 'twit' { id?: string, slug?: string, status?: string, + user_id?: number, + lat?: number, + long?: number, + follow?: boolean, } export interface PromiseResponse { data: Response, diff --git a/types/url-parse/index.d.ts b/types/url-parse/index.d.ts new file mode 100644 index 0000000000..ce8f3647c2 --- /dev/null +++ b/types/url-parse/index.d.ts @@ -0,0 +1,52 @@ +// Type definitions for url-parse 1.1 +// Project: https://github.com/unshiftio/url-parse +// Definitions by: Pavlo Chernenko <https://github.com/ChernenkoPaul> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +import URLSearchParams = require("url-search-params"); + +type UrlQueryParamsParser = (url: string) => string; + +declare class URL { + readonly auth: string; + readonly hash: string; + readonly host: string; + readonly hostname: string; + readonly href: string; + readonly origin: string; + readonly password: string; + readonly pathname: string; + readonly port: string; + readonly protocol: string; + query: { [key: string]: string | undefined }; + readonly search: string; + set(property: string, value: string | object | number | undefined): URL; + readonly slashes: boolean; + readonly username: string; + readonly searchParams: URLSearchParams; + toString(): string; +} + +type ParseFunctionNodeType = (url: string, parseQueryString?: boolean, slashesDenoteHost?: boolean) => URL; +type ParseFunctionType = (url: string, baseURL?: object | string, parser?: boolean | UrlQueryParamsParser) => URL; + +interface Protocol { + slashes: boolean; + protocol: string; + rest: string; +} + +type ExtractProtocolFunctionType = (url: string) => Protocol; + +type LocationFunctionType = (url: string) => string; + +interface ExtendedParseFunctionType extends ParseFunctionNodeType, ParseFunctionType { + extractProtocol: ExtractProtocolFunctionType; + location: LocationFunctionType; + qs: any; +} + +declare const parse: ExtendedParseFunctionType; + +export = parse; diff --git a/types/url-parse/tsconfig.json b/types/url-parse/tsconfig.json new file mode 100644 index 0000000000..2847a21a41 --- /dev/null +++ b/types/url-parse/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "url-parse-tests.ts" + ] +} \ No newline at end of file diff --git a/types/url-parse/tslint.json b/types/url-parse/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/url-parse/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/url-parse/url-parse-tests.ts b/types/url-parse/url-parse-tests.ts new file mode 100644 index 0000000000..48b2fa016d --- /dev/null +++ b/types/url-parse/url-parse-tests.ts @@ -0,0 +1,18 @@ +import parse = require("url-parse"); + +const url1 = new URL("foo/bar", "https://github.com/"); +const url2 = parse("https://github.com/foo/bar?baz=true"); +const url3 = parse("https://github.com/foo/bar", true, true); +const url4 = parse("foo/bar", "https://github.com/"); +const url5 = parse("foo/bar", "https://github.com/", () => "queryParserOverride"); + +url2.hash; +url2.hostname; +url2.query.baz; + +url3.slashes; +url3.set("protocol", "http://"); + +parse.extractProtocol("https://github.com/foo/bar"); +parse.location("https://github.com/foo/bar"); +parse.qs; diff --git a/types/validator/index.d.ts b/types/validator/index.d.ts index 73ca4f0860..e27b1e70c0 100644 --- a/types/validator/index.d.ts +++ b/types/validator/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for validator.js v6.2 +// Type definitions for validator.js v6.3 // Project: https://github.com/chriso/validator.js // Definitions by: tgfjt <https://github.com/tgfjt> // Ilya Mochalov <https://github.com/chrootsu> @@ -12,6 +12,7 @@ declare namespace ValidatorJS { type AlphaLocale = "ar" | "ar-AE" | "ar-BH" | "ar-DZ" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-QA" | "ar-QM" | "ar-SA" | "ar-SD" | "ar-SY" | "ar-TN" | "ar-YE" | "cs-CZ" | "de-DE" | "en-AU" | "en-GB" | "en-HK" | "en-IN" | "en-NZ" | "en-US" | "en-ZA" | "en-ZM" | "es-ES" | "fr-FR" | "hu-HU" | "nl-NL" | "pl-PL" | "pt-BR" | "pt-PT" | "ru-RU" | "sr-RS" | "sr-RS@latin" | "tr-TR"; type AlphanumericLocale = "ar" | "ar-AE" | "ar-BH" | "ar-DZ" | "ar-EG" | "ar-IQ" | "ar-JO" | "ar-KW" | "ar-LB" | "ar-LY" | "ar-MA" | "ar-QA" | "ar-QM" | "ar-SA" | "ar-SD" | "ar-SY" | "ar-TN" | "ar-YE" | "cs-CZ" | "de-DE" | "en-AU" | "en-GB" | "en-HK" | "en-IN" | "en-NZ" | "en-US" | "en-ZA" | "en-ZM" | "es-ES" | "fr-FR" | "fr-BE" | "hu-HU" | "nl-BE" | "nl-NL" | "pl-PL" | "pt-BR" | "pt-PT" | "ru-RU" | "sr-RS" | "sr-RS@latin" | "tr-TR"; type MobilePhoneLocale = "ar-DZ" | "ar-SA" | "ar-SY" | "cs-CZ" | "de-DE" | "da-DK" | "el-GR" | "en-AU" | "en-GB" | "en-HK" | "en-IN" | "en-NZ" | "en-US" | "en-CA" | "en-ZA" | "en-ZM" | "es-ES" | "fi-FI" | "fr-FR" | "hu-HU" | "it-IT" | "ja-JP" | "ko-KR" | "ms-MY" | "nb-NO" | "nn-NO" | "pl-PL" | "pt-PT" | "ru-RU" | "sr-RS" | "tr-TR" | "vi-VN" | "zh-CN" | "zh-TW" | "any"; + type PostalCodeLocale = "AT" | "AU" | "BE" | "CA" | "CH" | "CZ" | "DE" | "DK" | "DZ" | "ES" | "FI" | "FR" | "GB" | "GR" | "IL" | "IN" | "IS" | "IT" | "JP" | "KE" | "LI" | "MX" | "NL" | "NO" | "PL" | "PT" | "RO" | "RU" | "SA" | "SE" | "TW" | "US" | "ZA" | "ZM" | "any" interface ValidatorStatic { @@ -154,6 +155,13 @@ declare namespace ValidatorJS { // check if the string contains only numbers. isNumeric(str: string): boolean; + // check if the string is a postal code, (locale is one of + // [ 'AT', 'AU', 'BE', 'CA', 'CH', 'CZ', 'DE', 'DK', 'DZ', 'ES', 'FI', 'FR', 'GB', 'GR', 'IL', + // 'IN', 'IS', 'IT', 'JP', 'KE', 'LI', 'MX', 'NL', 'NO', 'PL', 'PT', 'RO', 'RU', 'SA', 'SE', + // 'TW', 'US', 'ZA', 'ZM' ]) OR 'any'. If 'any' is used, function will check if any of the + // locales match). + isPostalCode(str: string, locale: PostalCodeLocale): boolean; + // check if the string contains any surrogate pairs chars. isSurrogatePair(str: string): boolean; @@ -513,6 +521,11 @@ declare module "validator/lib/isMobilePhone" { export = isMobilePhone; } +declare module "validator/lib/isPostalCode" { + const isPostalCode: typeof validator.isPostalCode; + export = isPostalCode; +} + declare module "validator/lib/isMongoId" { const isMongoId: typeof validator.isMongoId; export = isMongoId; diff --git a/types/validator/validator-tests.ts b/types/validator/validator-tests.ts index 353f3a31b7..2bda229ea6 100644 --- a/types/validator/validator-tests.ts +++ b/types/validator/validator-tests.ts @@ -47,6 +47,7 @@ import isMongoIdFunc = require('validator/lib/isMongoId'); import isMultibyteFunc = require('validator/lib/isMultibyte'); import isNullFunc = require('validator/lib/isNull'); import isNumericFunc = require('validator/lib/isNumeric'); +import isPostalCodeFunc = require('validator/lib/isPostalCode'); import isSurrogatePairFunc = require('validator/lib/isSurrogatePair'); import isURLFunc = require('validator/lib/isURL'); import isUUIDFunc = require('validator/lib/isUUID'); @@ -193,6 +194,9 @@ import whitelistFunc = require('validator/lib/whitelist'); let _isNumeric = validator.isNumeric; _isNumeric = isNumericFunc; + let _isPostalCode = validator.isPostalCode; + _isPostalCode = isPostalCodeFunc; + let _isSurrogatePair = validator.isSurrogatePair; _isSurrogatePair = isSurrogatePairFunc; @@ -472,6 +476,42 @@ let any: any; result = validator.isNumeric('sample'); + result = validator.isPostalCode('sample', 'AT'); + result = validator.isPostalCode('sample', 'AU'); + result = validator.isPostalCode('sample', 'BE'); + result = validator.isPostalCode('sample', 'CA'); + result = validator.isPostalCode('sample', 'CH'); + result = validator.isPostalCode('sample', 'CZ'); + result = validator.isPostalCode('sample', 'DE'); + result = validator.isPostalCode('sample', 'DK'); + result = validator.isPostalCode('sample', 'DZ'); + result = validator.isPostalCode('sample', 'ES'); + result = validator.isPostalCode('sample', 'FI'); + result = validator.isPostalCode('sample', 'FR'); + result = validator.isPostalCode('sample', 'GB'); + result = validator.isPostalCode('sample', 'GR'); + result = validator.isPostalCode('sample', 'IL'); + result = validator.isPostalCode('sample', 'IN'); + result = validator.isPostalCode('sample', 'IS'); + result = validator.isPostalCode('sample', 'IT'); + result = validator.isPostalCode('sample', 'JP'); + result = validator.isPostalCode('sample', 'KE'); + result = validator.isPostalCode('sample', 'LI'); + result = validator.isPostalCode('sample', 'MX'); + result = validator.isPostalCode('sample', 'NL'); + result = validator.isPostalCode('sample', 'NO'); + result = validator.isPostalCode('sample', 'PL'); + result = validator.isPostalCode('sample', 'PT'); + result = validator.isPostalCode('sample', 'RO'); + result = validator.isPostalCode('sample', 'RU'); + result = validator.isPostalCode('sample', 'SA'); + result = validator.isPostalCode('sample', 'SE'); + result = validator.isPostalCode('sample', 'TW'); + result = validator.isPostalCode('sample', 'US'); + result = validator.isPostalCode('sample', 'ZA'); + result = validator.isPostalCode('sample', 'ZM'); + result = validator.isPostalCode('sample', 'any'); + result = validator.isSurrogatePair('sample'); let isURLOptions: ValidatorJS.IsURLOptions; diff --git a/types/vega/index.d.ts b/types/vega/index.d.ts index b10bf40cac..da7b0fee32 100644 --- a/types/vega/index.d.ts +++ b/types/vega/index.d.ts @@ -406,7 +406,7 @@ declare namespace vg { description?: string; from?: Mark.From; key?: string; - delay?: ValueRef; + delay?: ValueRefs; /** * "linear-in" | "linear-out" | "linear-in-out" | "linear-out-in" | "quad-in" | "quad-out" | "quad-in-out" | * "quad-out-in" | "cubic-in" | "cubic-out" | "cubic-in-out" | "cubic-out-in" | "sin-in" | "sin-out" | "sin-in-out" | @@ -465,54 +465,54 @@ declare namespace vg { // TODO docs // -- Shared visual properties - x?: ValueRef; - x2?: ValueRef; - width?: ValueRef; - y?: ValueRef; - y2?: ValueRef; - height?: ValueRef; - opacity?: ValueRef; - fill?: ValueRef; - fillOpacity?: ValueRef; - stroke?: ValueRef; - strokeWidth?: ValueRef; - strokeOpacity?: ValueRef; - strokeDash?: ValueRef; - strokeDashOffset?: ValueRef; + x?: ValueRefs; + x2?: ValueRefs; + width?: ValueRefs; + y?: ValueRefs; + y2?: ValueRefs; + height?: ValueRefs; + opacity?: ValueRefs; + fill?: ValueRefs; + fillOpacity?: ValueRefs; + stroke?: ValueRefs; + strokeWidth?: ValueRefs; + strokeOpacity?: ValueRefs; + strokeDash?: ValueRefs; + strokeDashOffset?: ValueRefs; // -- symbol - size?: ValueRef; - shape?: ValueRef; + size?: ValueRefs; + shape?: ValueRefs; // -- path - path?: ValueRef; + path?: ValueRefs; // -- arc - innerRadius?: ValueRef; - outerRadius?: ValueRef; - startAngle?: ValueRef; - endAngle?: ValueRef; + innerRadius?: ValueRefs; + outerRadius?: ValueRefs; + startAngle?: ValueRefs; + endAngle?: ValueRefs; // -- area / line - interpolate?: ValueRef; - tension?: ValueRef; + interpolate?: ValueRefs; + tension?: ValueRefs; // -- image / text - align?: ValueRef; - baseline?: ValueRef; + align?: ValueRefs; + baseline?: ValueRefs; // -- image - url?: ValueRef; + url?: ValueRefs; // -- text - text?: ValueRef; - dx?: ValueRef; - dy?: ValueRef; - angle?: ValueRef; - font?: ValueRef; - fontSize?: ValueRef; - fontWeight?: ValueRef; - fontStyle?: ValueRef; + text?: ValueRefs; + dx?: ValueRefs; + dy?: ValueRefs; + angle?: ValueRefs; + font?: ValueRefs; + fontSize?: ValueRefs; + fontWeight?: ValueRefs; + fontStyle?: ValueRefs; } export interface ValueRef { @@ -524,8 +524,11 @@ declare namespace vg { mult?: number; offset?: number; band?: boolean; + test?: string; } + export type ValueRefs = ValueRef | ValueRef[]; + export var parse: Parse; export namespace scene { export function item(mark: Node): Node; diff --git a/types/vega/vega-tests.ts b/types/vega/vega-tests.ts index 2e66d478f3..5baeaee024 100644 --- a/types/vega/vega-tests.ts +++ b/types/vega/vega-tests.ts @@ -1957,6 +1957,13 @@ specs[20] = { ] } +const hoverFill21: Vega.ValueRefs = [{ + "test": "datum.value < 30", + "value": "#f00" +}, { + "value": "#f55" +}]; + specs[21] = { "name": "wordcloud", "width": 400, @@ -2006,10 +2013,15 @@ specs[21] = { "text": { "field": "data.text" } }, "update": { - "fill": { "value": "steelblue" } + "fill": [{ + "test": "datum.value < 30", + "value": "steelblue" + }, { + "value": "blue" + }] }, "hover": { - "fill": { "value": "#f00" } + "fill": hoverFill21 } } } @@ -2020,4 +2032,4 @@ specs.forEach(spec => { vg.parse.spec(spec, chart => { chart({el:"#vis"}).update(); }); -}); \ No newline at end of file +}); diff --git a/types/victory/index.d.ts b/types/victory/index.d.ts index d91f67a7d2..6640fdd7f5 100644 --- a/types/victory/index.d.ts +++ b/types/victory/index.d.ts @@ -302,6 +302,14 @@ declare module "victory" { before?: (datum: any) => AnimationStyle; after?: (datum: any) => AnimationStyle; }; + /** + * Animation load transition configuration + */ + onLoad?: { + duration?: number; + before?: (datum: any) => AnimationStyle; + after?: (datum: any) => AnimationStyle; + }; /** * The easing prop specifies an easing function name to use for tweening. * @default "quadInOut" diff --git a/types/video.js/index.d.ts b/types/video.js/index.d.ts index db62520ac3..c6df37371c 100644 --- a/types/video.js/index.d.ts +++ b/types/video.js/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for Video.js 5.16 +// Type definitions for Video.js 6.2 // Project: https://github.com/zencoder/video-js // Definitions by: Vincent Bortone <https://github.com/vbortone> +// Simon Clériot <https://github.com/scleriot> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // The Video.js API allows you to interact with the video through @@ -49,6 +50,8 @@ declare namespace videojs { size(width: number, height: number): Player; requestFullScreen(): Player; cancelFullScreen(): Player; + requestFullscreen(): Player; + exitFullscreen(): Player; ready(callback: (this: Player) => void): Player; on(eventName: string, callback: (eventObject: Event) => void): void; off(eventName?: string, callback?: (eventObject: Event) => void): void; diff --git a/types/vis/index.d.ts b/types/vis/index.d.ts index b55adc6ac8..ee2c753129 100644 --- a/types/vis/index.d.ts +++ b/types/vis/index.d.ts @@ -6,12 +6,23 @@ // Severin <https://github.com/seveves> // kaktus40 <https://github.com/kaktus40> // Matthieu Maitre <https://github.com/mmaitre314> +// Adam Lewis <https://github.com/supercargo> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +import { MomentInput, MomentFormatSpecification, Moment } from 'moment'; +export type MomentConstructor1 = + (inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean) => Moment; +export type MomentConstructor2 = + (inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean) => Moment; + +export type MomentConstructor = MomentConstructor1 | MomentConstructor2; + export type IdType = string | number; export type SubgroupType = IdType; export type DateType = Date | number | string; export type HeightWidthType = IdType; +export type TimelineItemType = 'box'| 'point' | 'range' | 'background'; +export type TimelineAlignType = 'auto' | 'center' | 'left' | 'right'; export type TimelineTimeAxisScaleType = 'millisecond' | 'second' | 'minute' | 'hour' | 'weekday' | 'day' | 'month' | 'year'; export type TimelineEventPropertiesResultWhatType = 'item' | 'background' | 'axis' | @@ -21,6 +32,11 @@ export type TimelineEvents = 'click' | 'contextmenu' | 'doubleClick' | + 'drop' | + 'mouseOver' | + 'mouseDown' | + 'mouseUp' | + 'mouseMove' | 'groupDragged' | 'changed' | 'rangechange' | @@ -100,6 +116,26 @@ export interface TimelineEditableOption { remove?: boolean; updateGroup?: boolean; updateTime?: boolean; + overrideItems?: boolean; +} + +export type TimelineFormatLabelsFunction = (date: Date, scale: string, step: number) => string; + +export interface TimelineFormatLabelsOption { + millisecond?: string; + second?: string; + minute?: string; + hour?: string; + weekday?: string; + day?: string; + week?: string; + month?: string; + year?: string; +} + +export interface TimelineFormatOption { + minorLabels?: TimelineFormatLabelsOption | TimelineFormatLabelsFunction; + majorLabels?: TimelineFormatLabelsOption | TimelineFormatLabelsFunction; } export interface TimelineGroupEditableOption { @@ -108,6 +144,17 @@ export interface TimelineGroupEditableOption { order?: boolean; } +export interface TimelineHiddenDateOption { + start: DateType; + end: DateType; + repeat?: 'daily' | 'weekly' | 'monthly' | 'yearly'; +} + +export interface TimelineItemsAlwaysDraggableOption { + item?: boolean; + range?: boolean; +} + export interface TimelineMarginItem { horizontal?: number; vertical?: number; @@ -130,37 +177,53 @@ export interface TimelineTimeAxisOption { step?: number; } +export interface TimelineRollingModeOption { + follow?: boolean; + offset?: number; +} + +export interface TimelineTooltipOption { + followMouse: boolean; + overflowMethod: 'cap' | 'flip'; +} + export type TimelineOptionsConfigureFunction = (option: string, path: string[]) => boolean; export type TimelineOptionsConfigureType = boolean | TimelineOptionsConfigureFunction; export type TimelineOptionsDataAttributesType = boolean | string | string[]; export type TimelineOptionsEditableType = boolean | TimelineEditableOption; +export type TimelineOptionsItemCallbackFunction = (item: TimelineItem, callback: (item: TimelineItem | null) => void) => void; +export type TimelineOptionsGroupCallbackFunction = (group: TimelineGroup, callback: (group: TimelineGroup | null) => void) => void; export type TimelineOptionsGroupEditableType = boolean | TimelineGroupEditableOption; -export type TimelineOptionsGroupOrderType = string | (() => void); // TODO +export type TimelineOptionsGroupOrderType = string | TimelineOptionsComparisonFunction; export type TimelineOptionsGroupOrderSwapFunction = (fromGroup: any, toGroup: any, groups: DataSet<DataGroup>) => void; +export type TimelineOptionsHiddenDatesType = TimelineHiddenDateOption | TimelineHiddenDateOption[]; +export type TimelineOptionsItemsAlwaysDraggableType = boolean | TimelineItemsAlwaysDraggableOption; export type TimelineOptionsMarginType = number | TimelineMarginOption; export type TimelineOptionsOrientationType = string | TimelineOrientationOption; export type TimelineOptionsSnapFunction = (date: Date, scale: string, step: number) => Date | number; +export type TimelineOptionsTemplateFunction = (item?: any, element?: any, data?: any) => string; +export type TimelineOptionsComparisonFunction = (a: any, b: any) => number; export interface TimelineOptions { - align?: string; + align?: TimelineAlignType; autoResize?: boolean; clickToUse?: boolean; configure?: TimelineOptionsConfigureType; dataAttributes?: TimelineOptionsDataAttributesType; editable?: TimelineOptionsEditableType; end?: DateType; - format?: any; // TODO + format?: TimelineFormatOption; groupEditable?: TimelineOptionsGroupEditableType; groupOrder?: TimelineOptionsGroupOrderType; groupOrderSwap?: TimelineOptionsGroupOrderSwapFunction; - groupTemplate?(item?: any, element?: any, data?: any): any; + groupTemplate?: TimelineOptionsTemplateFunction; height?: HeightWidthType; - hiddenDates?: any; // TODO + hiddenDates?: TimelineOptionsHiddenDatesType; horizontalScroll?: boolean; - itemsAlwaysDraggable?: boolean; + itemsAlwaysDraggable?: TimelineOptionsItemsAlwaysDraggableType; locale?: string; locales?: any; // TODO - moment?(): void; // TODO + moment?: MomentConstructor; margin?: TimelineOptionsMarginType; max?: DateType; maxHeight?: HeightWidthType; @@ -170,28 +233,33 @@ export interface TimelineOptions { moveable?: boolean; multiselect?: boolean; multiselectPerGroup?: boolean; - onAdd?(): void; // TODO - onAddGroup?(): void; // TODO - onUpdate?(): void; // TODO - onMove?(): void; // TODO - onMoveGroup?(): void; // TODO - onMoving?(): void; // TODO - onRemove?(): void; // TODO - onRemoveGroup?(): void; // TODO - order?(): void; // TODO + onAdd?: TimelineOptionsItemCallbackFunction; + onAddGroup?: TimelineOptionsGroupCallbackFunction; + onUpdate?: TimelineOptionsItemCallbackFunction; + onMove?: TimelineOptionsItemCallbackFunction; + onMoveGroup?: TimelineOptionsGroupCallbackFunction; + onMoving?: TimelineOptionsItemCallbackFunction; + onRemove?: TimelineOptionsItemCallbackFunction; + onRemoveGroup?: TimelineOptionsGroupCallbackFunction; + order?: TimelineOptionsComparisonFunction; orientation?: TimelineOptionsOrientationType; - rollingMode?: any; + rollingMode?: TimelineRollingModeOption; + rtl?: boolean; selectable?: boolean; showCurrentTime?: boolean; showMajorLabels?: boolean; showMinorLabels?: boolean; + showTooltips?: boolean; stack?: boolean; + stackSubgroups?: boolean; snap?: TimelineOptionsSnapFunction; start?: DateType; - template?(item?: any, element?: any, data?: any): any; + template?: TimelineOptionsTemplateFunction; + visibleFrameTemplate?: TimelineOptionsTemplateFunction; throttleRedraw?: number; timeAxis?: TimelineTimeAxisOption; type?: string; + tooltip?: TimelineTooltipOption; tooltipOnItemUpdateTime?: boolean | { template(item: any): any }; verticalScroll?: boolean; width?: HeightWidthType; @@ -640,7 +708,7 @@ export interface Graph2dOptions { legend?: Graph2dLegendOption; locale?: string; locales?: any; // TODO - moment?(): void; // TODO + moment?: MomentConstructor; max?: DateType; maxHeight?: HeightWidthType; maxMinorChars?: number; @@ -738,10 +806,10 @@ export class Timeline { getCurrentTime(): Date; getCustomTime(id?: IdType): Date; getEventProperties(event: Event): TimelineEventPropertiesResult; - getItemRange(): any; // TODO + getItemRange(): { min: Date, max: Date }; getSelection(): IdType[]; getVisibleItems(): IdType[]; - getWindow(): { start: Date, end: Date }; + getWindow(): TimelineWindow; moveTo(time: DateType, options?: TimelineFitOptions): void; on(event: TimelineEvents, callback: () => void): void; off(event: TimelineEvents, callback: () => void): void; @@ -755,7 +823,7 @@ export class Timeline { setItems(items: DataItemCollectionType): void; setOptions(options: TimelineOptions): void; setSelection(ids: IdType | IdType[]): void; - setWindow(start: DateType, end: DateType, options?: TimelineFitOptions): void; + setWindow(start: DateType, end: DateType, options?: TimelineFitOptions, callback?: () => void): void; } export interface TimelineStatic { @@ -776,19 +844,39 @@ export interface TimelineWindow { end: Date; } +export interface TimelineItemEditableOption { + remove?: boolean; + updateGroup?: boolean; + updateTime?: boolean; +} + +export type TimelineItemEditableType = boolean | TimelineItemEditableOption; + export interface TimelineItem { - id: number; + className?: string; + align?: TimelineAlignType; content: string; - group?: number; - start: number; - end?: number; - editable?: boolean; + end?: DateType; + group?: IdType; + id: IdType; + start: DateType; + style?: string; + subgroup?: IdType; + title?: string; + type?: TimelineItemType; + editable?: TimelineItemEditableType; } export interface TimelineGroup { - id: number; - content: string; + className?: string; + content: string | HTMLElement; + id: IdType; style?: string; + subgroupOrder?: TimelineOptionsGroupOrderType; + title?: string; + visible?: boolean; + nestedGroups?: IdType[]; + showNested?: boolean; } export interface VisSelectProperties { diff --git a/types/vis/package.json b/types/vis/package.json new file mode 100644 index 0000000000..690220b60f --- /dev/null +++ b/types/vis/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "moment": ">=2.13.0" + } +} \ No newline at end of file diff --git a/types/w3c-web-usb/index.d.ts b/types/w3c-web-usb/index.d.ts new file mode 100644 index 0000000000..d481245e14 --- /dev/null +++ b/types/w3c-web-usb/index.d.ts @@ -0,0 +1,153 @@ +// Type definitions for W3C Web USB API 1.0 +// Project: https://wicg.github.io/webusb/ +// Definitions by: Lars Knudsen <https://github.com/larsgk> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + +type USBDirection = "in" | "out"; +type USBEndpointType = "bulk" | "interrupt" | "isochronous"; +type USBRequestType = "standard" | "class" | "vendor"; +type USBRecipient = "device" | "interface" | "endpoint" | "other"; +type USBTransferStatus = "ok" | "stall" | "babble"; + +interface USBEndpoint { + readonly endpointNumber: number; + readonly direction: USBDirection; + readonly type: USBEndpointType; + readonly packetSize: number; +} + +interface USBControlTransferParameters { + requestType: USBRequestType; + recipient: USBRecipient; + request: number; + value: number; + index: number; +} + +interface USBDeviceFilter { + vendorId?: number; + productId?: number; + classCode?: number; + subclassCode?: number; + protocolCode?: number; + serialNumber?: string; +} + +interface USBDeviceRequestOptions { + filters: USBDeviceFilter[]; +} + +interface USBConnectionEventInit extends EventInit { + device: USBDevice; +} + +declare class USBConfiguration { + readonly configurationValue: number; + readonly configurationName?: string; + readonly interfaces: USBInterface[]; +} + +declare class USBInterface { + constructor(configuration: USBConfiguration, interfaceNumber: number); + readonly interfaceNumber: number; + readonly alternate: USBAlternateInterface; + readonly alternates: USBAlternateInterface[]; + readonly claimed: boolean; +} + +declare class USBAlternateInterface { + constructor(deviceInterface: USBInterface, alternateSetting: number); + readonly alternateSetting: number; + readonly interfaceClass: number; + readonly interfaceSubclass: number; + readonly interfaceProtocol: number; + readonly alternatinterfaceName?: string; + readonly endpoints: USBEndpoint[]; +} + +declare class USBInTransferResult { + constructor(status: USBTransferStatus, data?: DataView); + readonly data?: DataView; + readonly status?: USBTransferStatus; +} + +declare class USBOutTransferResult { + constructor(status: USBTransferStatus, bytesWriten?: number); + readonly bytesWritten: number; + readonly status: USBTransferStatus; +} + +declare class USBIsochronousInTransferPacket { + constructor(status: USBTransferStatus, data?: DataView); + readonly data?: DataView; + readonly status?: USBTransferStatus; +} + +declare class USBIsochronousInTransferResult { + constructor(packets: USBIsochronousInTransferPacket[], data?: DataView); + readonly data?: DataView; + readonly packets: USBIsochronousInTransferPacket[]; +} + +declare class USBIsochronousOutTransferPacket { + constructor(status: USBTransferStatus, bytesWritten?: number); + readonly bytesWritten: number; + readonly status: USBTransferStatus; +} + +declare class USBConnectionEvent extends Event { + constructor(type: string, eventInitDict: USBConnectionEventInit); + readonly device: USBDevice; +} + +declare class USBIsochronousOutTransferResult { + constructor(packets: USBIsochronousOutTransferPacket[]); + readonly packets: USBIsochronousOutTransferPacket[]; +} + +declare class USB extends EventTarget { + onconnect(): (this: this, ev: Event) => any; + ondisconnect(): (this: this, ev: Event) => any; + getDevices(): Promise<USBDevice[]>; + requestDevice(options?: USBDeviceRequestOptions): Promise<USBDevice>; + + addEventListener(type: "connect" | "disconnect", listener: (this: this, ev: USBConnectionEvent) => any, useCapture?: boolean): void; +} + +declare class USBDevice { + readonly usbVersionMajor: number; + readonly usbVersionMinor: number; + readonly usbVersionSubminor: number; + readonly deviceClass: number; + readonly deviceSubclass: number; + readonly deviceProtocol: number; + readonly vendorId: number; + readonly productId: number; + readonly deviceVersionMajor: number; + readonly deviceVersionMinor: number; + readonly deviceVersionSubminor: number; + readonly manufacturerName?: string; + readonly productName?: string; + readonly serialNumber?: string; + readonly configuration?: USBConfiguration; + readonly configurations: USBConfiguration[]; + readonly opened: boolean; + open(): Promise<void>; + close(): Promise<void>; + selectConfiguration(configurationValue: number): Promise<void>; + claimInterface(interfaceNumber: number): Promise<void>; + releaseInterface(interfaceNumber: number): Promise<void>; + selectAlternateInterface(interfaceNumber: number, alternateSetting: number): Promise<void>; + controlTransferIn(setup: USBControlTransferParameters, length: number): Promise<USBInTransferResult>; + controlTransferOut(setup: USBControlTransferParameters, data?: BufferSource): Promise<USBOutTransferResult>; + clearHalt(direction: USBDirection, endpointNumber: number): Promise<void>; + transferIn(endpointNumber: number, length: number): Promise<USBInTransferResult>; + transferOut(endpointNumber: number, data: BufferSource): Promise<USBOutTransferResult>; + isochronousTransferIn(endpointNumber: number, packetLengths: number[]): Promise<USBIsochronousInTransferResult>; + isochronousTransferOut(endpointNumber: number, data: BufferSource, packetLengths: number[]): Promise<USBIsochronousOutTransferResult>; +} + +interface Navigator { + readonly usb: USB; +} diff --git a/types/w3c-web-usb/tsconfig.json b/types/w3c-web-usb/tsconfig.json new file mode 100644 index 0000000000..4bd03116b6 --- /dev/null +++ b/types/w3c-web-usb/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "w3c-web-usb-tests.ts" + ] +} diff --git a/types/w3c-web-usb/tslint.json b/types/w3c-web-usb/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/w3c-web-usb/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/w3c-web-usb/w3c-web-usb-tests.ts b/types/w3c-web-usb/w3c-web-usb-tests.ts new file mode 100644 index 0000000000..fe29480479 --- /dev/null +++ b/types/w3c-web-usb/w3c-web-usb-tests.ts @@ -0,0 +1,75 @@ +// Modified from WebUSB spec: https://wicg.github.io/webusb/ +// NOTE: Code kept as close to spec examples as possible + +const connectedDevices: USBDevice[] = []; + +document.addEventListener('DOMContentLoaded', async () => { + const devices = await navigator.usb.getDevices(); + devices.forEach(handleConnectedDevice); +}); + +const button = document.getElementById('request-device'); +if (button) { + button.addEventListener('click', async () => { + let device; + try { + device = await navigator.usb.requestDevice({ filters: [{ + vendorId: 0xABCD, + classCode: 0xFF, // vendor-specific + protocolCode: 0x01 + }]}); + } catch (e) { + // No device was selected. + } + + if (device !== undefined) { + // Add |device| to the UI. + handleConnectedDevice(device); + } + }); +} + +navigator.usb.addEventListener('connect', evt => { + // Add |device| to the UI. + handleConnectedDevice(evt.device); +}); + +navigator.usb.addEventListener('disconnect', evt => { + // Remove |device| from the UI. + const i = connectedDevices.indexOf(evt.device); + if (i >= 0) { + connectedDevices.splice(i, 1); + } +}); + +async function handleConnectedDevice(device: USBDevice) { + connectedDevices.push(device); + + await device.open(); + if (device.configuration === null) + await device.selectConfiguration(1); + await device.claimInterface(1); + + await device.controlTransferOut({ + requestType: 'vendor', + recipient: 'interface', + request: 0x01, // vendor-specific request: enable channels + value: 0x0013, // 0b00010011 (channels 1, 2 and 5) + index: 0x0001 // Interface 1 is the recipient + }); + + while (true) { + const result = await device.transferIn(1, 6); + + if (result.data && result.data.byteLength === 6) { + console.log('Channel 1: ' + result.data.getUint16(0)); + console.log('Channel 2: ' + result.data.getUint16(2)); + console.log('Channel 5: ' + result.data.getUint16(4)); + } + + if (result.status === 'stall') { + console.warn('Endpoint stalled. Clearing.'); + await device.clearHalt("in", 1); + } + } +} diff --git a/types/watchpack/DirectoryWatcher.d.ts b/types/watchpack/DirectoryWatcher.d.ts index 0fac7ebeff..dc48671eeb 100644 --- a/types/watchpack/DirectoryWatcher.d.ts +++ b/types/watchpack/DirectoryWatcher.d.ts @@ -3,7 +3,7 @@ import { EventEmitter } from 'events'; import fs = require('graceful-fs'); import Watcher = require('./Watcher'); -import Watchpack = require('watchpack'); +import Watchpack = require('.'); declare class DirectoryWatcher extends EventEmitter { options: Watchpack.WatcherOptions; diff --git a/types/webdriverio/index.d.ts b/types/webdriverio/index.d.ts index 8e14298630..f1d37d0f88 100644 --- a/types/webdriverio/index.d.ts +++ b/types/webdriverio/index.d.ts @@ -309,13 +309,13 @@ declare namespace WebdriverIO { ensureCleanSession?: boolean; } - interface Cookie extends RawResult<string> { + interface Cookie { name: string; value: string; path?: string; httpOnly?: boolean; expiry?: number; - secure: boolean; + secure?: boolean; } interface Suite { @@ -406,7 +406,7 @@ declare namespace WebdriverIO { desiredCapabilities?: DesiredCapabilities; exclude?: string[]; framework?: string; - hostname?: string; + host?: string; isWDIO?: boolean; protocol?: string; port?: number; @@ -769,8 +769,8 @@ declare namespace WebdriverIO { deleteCookie(name?: string): Client<RawResult<null>> & RawResult<null>; deleteCookie<P>(name?: string): Client<P>; - getCookie(): Client<Cookie[]> & Cookie[]; - getCookie(name: string): Client<Cookie> & Cookie; + getCookie(): Client<Cookie & Array<RawResult<string>>> & Cookie[] & Array<RawResult<string>>; + getCookie(name: string): Client<Cookie & RawResult<string>> & Cookie & RawResult<string>; getCookie<P>(name?: string): Client<P>; setCookie(cookie: Cookie): Client<RawResult<null>> & RawResult<null>; @@ -1033,12 +1033,12 @@ declare namespace WebdriverIO { /** @deprecated in favour of Actions.pointerUp */ buttonUp<P>(button?: string | Button): Client<P>; - cookie(): Client<RawResult<Cookie[]>> & RawResult<Cookie[]>; + cookie(): Client<RawResult<Cookie[] & Array<RawResult<string>>>> & RawResult<Cookie[] & Array<RawResult<string>>>; cookie( method: Method, - key?: Cookie | string - ): Client<RawResult<Cookie[]>> & RawResult<Cookie[]>; + key?: (Cookie & RawResult<string>) | string + ): Client<RawResult<Cookie[] & Array<RawResult<string>>>> & RawResult<Cookie[] & Array<RawResult<string>>>; /** @deprecated in favour of Actions.pointerDown(0) + Actions.pointerMove */ doDoubleClick(): Client<RawResult<null>> & RawResult<null> & never; @@ -1209,7 +1209,7 @@ declare namespace WebdriverIO { init<P>(capabilities?: DesiredCapabilities): Client<P>; /** @deprecated in favour of Actions.keyDown */ - keys(value: string | string[]): Client<RawResult<null>> & RawResult<null> & never; + keys(value: string | string[]): Client<RawResult<null>> & RawResult<null> & Client<void>; /** @deprecated in favour of Actions.keyDown */ keys<P>(value: string | string[]): Client<P>; diff --git a/types/webdriverio/tslint.json b/types/webdriverio/tslint.json index c467897cef..1881fbd79d 100644 --- a/types/webdriverio/tslint.json +++ b/types/webdriverio/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODOs "await-promise": false, + "no-declare-current-package": false, "no-single-declare-module": false, "unified-signatures": false, "no-unnecessary-generics": false diff --git a/types/webpack-chunk-hash/index.d.ts b/types/webpack-chunk-hash/index.d.ts new file mode 100644 index 0000000000..dc8f697a44 --- /dev/null +++ b/types/webpack-chunk-hash/index.d.ts @@ -0,0 +1,34 @@ +// Type definitions for webpack-chunk-hash 0.4 +// Project: https://github.com/alexindigo/webpack-chunk-hash#readme +// Definitions by: Matt Traynham <https://github.com/mtraynham> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import webpack = require('webpack'); + +export = WebpackChunkHash; + +declare class WebpackChunkHash extends webpack.Plugin { + constructor(options?: WebpackChunkHash.Options); +} + +declare namespace WebpackChunkHash { + interface Options { + /** + * @default 'md5' + * @description The hash algorithm to use + * @see {@link https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm_options} + */ + algorithm?: string; + /** + * @default 'hex' + * @description The digest enconding to use + * @see {@link https://nodejs.org/api/crypto.html#crypto_crypto_createhash_algorithm_options} + */ + digest?: 'hex' | 'latin1' | 'base64'; + /** + * @default null + * @description A callback to add more content to the resulting hash + */ + additionalHashContent?(chunk: any): string; + } +} diff --git a/types/webpack-chunk-hash/tsconfig.json b/types/webpack-chunk-hash/tsconfig.json new file mode 100644 index 0000000000..1d6e971b9d --- /dev/null +++ b/types/webpack-chunk-hash/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "webpack-chunk-hash-tests.ts" + ] +} diff --git a/types/webpack-chunk-hash/tslint.json b/types/webpack-chunk-hash/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/webpack-chunk-hash/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/webpack-chunk-hash/webpack-chunk-hash-tests.ts b/types/webpack-chunk-hash/webpack-chunk-hash-tests.ts new file mode 100644 index 0000000000..56a7be1579 --- /dev/null +++ b/types/webpack-chunk-hash/webpack-chunk-hash-tests.ts @@ -0,0 +1,15 @@ +import webpack = require('webpack'); +import WebpackChunkHashPlugin = require('webpack-chunk-hash'); + +const a: webpack.Configuration = { + entry: 'test.js', + plugins: [ + new WebpackChunkHashPlugin() + ] +}; +const b: webpack.Configuration = { + entry: 'test.js', + plugins: [ + new WebpackChunkHashPlugin({algorithm: 'sha-256', digest: 'latin1', additionalHashContent: () => 'test'}) + ] +}; diff --git a/types/webpack-dev-server/index.d.ts b/types/webpack-dev-server/index.d.ts index 97f190aa28..f21fdd3c61 100644 --- a/types/webpack-dev-server/index.d.ts +++ b/types/webpack-dev-server/index.d.ts @@ -8,12 +8,13 @@ import * as webpack from 'webpack'; import * as core from 'express-serve-static-core'; import * as serveStatic from 'serve-static'; import * as http from 'http'; +import * as spdy from 'spdy'; declare namespace WebpackDevServer { interface Configuration { contentBase?: string; hot?: boolean; - https?: boolean; + https?: boolean | spdy.ServerOptions; historyApiFallback?: boolean; compress?: boolean; proxy?: any; diff --git a/types/webpack-dev-server/webpack-dev-server-tests.ts b/types/webpack-dev-server/webpack-dev-server-tests.ts index 81f25470af..d5e3b57820 100644 --- a/types/webpack-dev-server/webpack-dev-server-tests.ts +++ b/types/webpack-dev-server/webpack-dev-server-tests.ts @@ -72,3 +72,10 @@ const config: WebpackDevServer.Configuration = { // API example server = new WebpackDevServer(compiler, config); server.listen(8080, "localhost", () => {}); + +// HTTPS example +server = new WebpackDevServer(compiler, { + publicPath: "/assets/", + https: true +}); +server.listen(8080, "localhost", () => {}); diff --git a/types/webpack-merge/index.d.ts b/types/webpack-merge/index.d.ts index a939a2ed53..421737ccaf 100644 --- a/types/webpack-merge/index.d.ts +++ b/types/webpack-merge/index.d.ts @@ -1,25 +1,34 @@ -// Type definitions for webpack-merge +// Type definitions for webpack-merge 4.1 // Project: https://github.com/survivejs/webpack-merge -// Definitions by: Simon Hartcher <https://github.com/deevus> +// Definitions by: Simon Hartcher <https://github.com/deevus>, Matt Traynham <https://github.com/mtraynham> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -///<reference types="webpack" /> +import webpack = require('webpack'); -declare module "webpack-merge" { - import { Configuration } from "webpack"; +export = webpackMerge; + +declare const webpackMerge: webpackMerge.WebpackMerge; + +declare namespace webpackMerge { + type CustomizeArrayFunction = (a: any[], b: any[], key: string) => any[] | null | undefined; + type CustomizeObjectFunction = (a: {}, b: {}, key: string) => {} | null | undefined; + type UniqueFunction = (field: string, fields: string[], keyFn: (field: any) => string) => CustomizeArrayFunction; + interface CustomizeOptions { + customizeArray?: CustomizeArrayFunction | UniqueFunction; + customizeObject?: CustomizeObjectFunction; + } + type ConfigurationMergeFunction = (...configs: webpack.Configuration[]) => webpack.Configuration; + type ConfigurationMergeConfigFunction = (customizeOptions: CustomizeOptions) => ConfigurationMergeFunction; + type MergeFunction = ConfigurationMergeFunction | ConfigurationMergeConfigFunction; + type MergeStrategy = 'prepend' | 'append' | 'replace'; interface WebpackMerge { - /** - * Merge multiple webpack configurations into one. - */ - (...configs: Configuration[]): Configuration; - - /** - * Merge multiple webpack configurations into one, with smart merging of loaders. - */ - smart(...configs: Configuration[]): Configuration; + (...configs: webpack.Configuration[]): webpack.Configuration; + (customizeOptions: CustomizeOptions): ConfigurationMergeFunction; + unique: UniqueFunction; + smart: ConfigurationMergeFunction; + multiple: ConfigurationMergeFunction; + strategy(options: {[field: string]: MergeStrategy}): ConfigurationMergeFunction; + smartStrategy(options: {[key: string]: MergeStrategy}): ConfigurationMergeFunction; } - - const merge: WebpackMerge; - export = merge; } diff --git a/types/webpack-merge/tsconfig.json b/types/webpack-merge/tsconfig.json index f2368dc89d..78589b444b 100644 --- a/types/webpack-merge/tsconfig.json +++ b/types/webpack-merge/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -19,4 +19,4 @@ "index.d.ts", "webpack-merge-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/webpack-merge/tslint.json b/types/webpack-merge/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/webpack-merge/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/webpack-merge/v0/index.d.ts b/types/webpack-merge/v0/index.d.ts new file mode 100644 index 0000000000..a939a2ed53 --- /dev/null +++ b/types/webpack-merge/v0/index.d.ts @@ -0,0 +1,25 @@ +// Type definitions for webpack-merge +// Project: https://github.com/survivejs/webpack-merge +// Definitions by: Simon Hartcher <https://github.com/deevus> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +///<reference types="webpack" /> + +declare module "webpack-merge" { + import { Configuration } from "webpack"; + + interface WebpackMerge { + /** + * Merge multiple webpack configurations into one. + */ + (...configs: Configuration[]): Configuration; + + /** + * Merge multiple webpack configurations into one, with smart merging of loaders. + */ + smart(...configs: Configuration[]): Configuration; + } + + const merge: WebpackMerge; + export = merge; +} diff --git a/types/webpack-merge/v0/tsconfig.json b/types/webpack-merge/v0/tsconfig.json new file mode 100644 index 0000000000..aedaa9a44e --- /dev/null +++ b/types/webpack-merge/v0/tsconfig.json @@ -0,0 +1,26 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "types": [], + "paths": { + "webpack-merge": ["webpack-merge/v0"], + "webpack-merge/*": ["webpack-merge/v0/*"] + }, + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "webpack-merge-tests.ts" + ] +} \ No newline at end of file diff --git a/types/webpack-merge/v0/webpack-merge-tests.ts b/types/webpack-merge/v0/webpack-merge-tests.ts new file mode 100644 index 0000000000..4c9c4adca4 --- /dev/null +++ b/types/webpack-merge/v0/webpack-merge-tests.ts @@ -0,0 +1,12 @@ +import merge = require("webpack-merge"); +import { Configuration } from "webpack"; + +const a: Configuration = { + entry: "test.js" +} +const b: Configuration = { + devtool: "source-map" +} + +const c = merge(a, b); +const d = merge.smart(a, b); diff --git a/types/webpack-merge/webpack-merge-tests.ts b/types/webpack-merge/webpack-merge-tests.ts index 4c9c4adca4..d7180a6950 100644 --- a/types/webpack-merge/webpack-merge-tests.ts +++ b/types/webpack-merge/webpack-merge-tests.ts @@ -1,12 +1,61 @@ -import merge = require("webpack-merge"); -import { Configuration } from "webpack"; +import _ = require('lodash'); +import { Configuration, HotModuleReplacementPlugin, Plugin } from 'webpack'; +import webpackMerge = require('webpack-merge'); const a: Configuration = { - entry: "test.js" -} + entry: 'test.js' +}; const b: Configuration = { - devtool: "source-map" -} + devtool: 'source-map' +}; -const c = merge(a, b); -const d = merge.smart(a, b); +const c: Configuration = webpackMerge(a, b); +const d: Configuration = webpackMerge.smart(a, b); +const e: Configuration = webpackMerge.multiple(a, b); +const f: Configuration = webpackMerge( + { + customizeArray(x: any[], y: any[], key: string): any[] | undefined { + if (key === 'extensions') { + return _.uniq([...x, ...y]); + } + // Fall back to default merging + return undefined; + }, + customizeObject(x: {}, y: {}, key: string): {} | undefined { + if (key === 'module') { + // Custom merging + return _.merge({}, x, y); + } + + // Fall back to default merging + return undefined; + } + } +)(a, b); +const g: Configuration = webpackMerge({ + customizeArray: webpackMerge.unique( + 'plugins', + ['HotModuleReplacementPlugin'], + (plugin: Plugin) => plugin.constructor && plugin.constructor.name + ) +})({ + plugins: [ + new HotModuleReplacementPlugin() + ] +}, { + plugins: [ + new HotModuleReplacementPlugin() + ] +}); +const h: Configuration = webpackMerge.strategy( + { + entry: 'prepend', // or 'replace', defaults to 'append' + 'module.loaders': 'prepend' + } +)(a, b); +const i: Configuration = webpackMerge.smartStrategy( + { + entry: 'prepend', // or 'replace' + 'module.loaders': 'prepend' + } +)(a, b); diff --git a/types/webpack-node-externals/index.d.ts b/types/webpack-node-externals/index.d.ts new file mode 100644 index 0000000000..e1a4078c26 --- /dev/null +++ b/types/webpack-node-externals/index.d.ts @@ -0,0 +1,51 @@ +// Type definitions for webpack-node-externals 1.6 +// Project: https://github.com/liady/webpack-node-externals +// Definitions by: Matt Traynham <https://github.com/mtraynham> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import webpack = require('webpack'); + +export = webpackNodeExternals; + +declare function webpackNodeExternals(options?: webpackNodeExternals.Options): webpack.ExternalsFunctionElement; + +declare namespace webpackNodeExternals { + type WhitelistOption = string | RegExp; + + interface Options { + /** + * An array for the externals to whitelist, so they will be included in the bundle. + * Can accept exact strings ('module_name'), regex patterns (/^module_name/), or a + * function that accepts the module name and returns whether it should be included. + * Important - if you have set aliases in your webpack config with the exact + * same names as modules in node_modules, you need to whitelist them so Webpack will know + * they should be bundled. + * @default [] + */ + whitelist?: WhitelistOption[]; + /** + * @default ['.bin'] + */ + binaryDirs?: string[]; + /** + * The method in which unbundled modules will be required in the code. Best to leave as + * 'commonjs' for node modules. + * @default 'commonjs' + */ + importType?: 'var' | 'this' | 'commonjs' | 'amd' | 'umd'; + /** + * The folder in which to search for the node modules. + * @default 'node_modules' + */ + modulesDir?: string; + /** + * Read the modules from the package.json file instead of the node_modules folder. + * @default false + */ + modulesFromFile?: boolean; + /** + * @default false + */ + includeAbsolutePaths?: boolean; + } +} diff --git a/types/webpack-node-externals/tsconfig.json b/types/webpack-node-externals/tsconfig.json new file mode 100644 index 0000000000..70e62e7b0c --- /dev/null +++ b/types/webpack-node-externals/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "webpack-node-externals-tests.ts" + ] +} diff --git a/types/webpack-node-externals/tslint.json b/types/webpack-node-externals/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/webpack-node-externals/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/webpack-node-externals/webpack-node-externals-tests.ts b/types/webpack-node-externals/webpack-node-externals-tests.ts new file mode 100644 index 0000000000..0fc309d280 --- /dev/null +++ b/types/webpack-node-externals/webpack-node-externals-tests.ts @@ -0,0 +1,21 @@ +import webpack = require('webpack'); +import webpackNodeExternals = require('webpack-node-externals'); + +const a: webpack.Configuration = { + entry: 'test.js', + externals: [ + webpackNodeExternals() + ] +}; +const b: webpack.Configuration = { + entry: 'test.js', + externals: webpackNodeExternals() +}; +const c: webpack.Configuration = { + entry: 'test.js', + externals: [ + webpackNodeExternals({ + whitelist: ['jquery', 'webpack/hot/dev-server', /^lodash/] + }) + ] +}; diff --git a/types/webpack/index.d.ts b/types/webpack/index.d.ts index cbf48eebce..b99f489cec 100644 --- a/types/webpack/index.d.ts +++ b/types/webpack/index.d.ts @@ -6,6 +6,7 @@ // Tommy Troy Lin <https://github.com/tommytroylin> // Mohsen Azimi <https://github.com/mohsen1> // Jonathan Creamer <https://github.com/jcreamer898> +// Ahmed T. Ali <https://github.com/ahmed-taj> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> @@ -36,7 +37,7 @@ declare namespace webpack { * If `output.pathinfo` is set, the included pathinfo is shortened to this directory. */ context?: string; - entry?: string | string[] | Entry; + entry?: string | string[] | Entry | EntryFunc; /** Choose a style of source mapping to enhance the debugging process. These values can affect build and rebuild speed dramatically. */ devtool?: Options.Devtool; /** Options affecting the output. */ @@ -103,6 +104,8 @@ declare namespace webpack { [name: string]: string | string[]; } + type EntryFunc = () => (string | string[] | Promise<string | string[]>); + interface DevtoolModuleFilenameTemplateInfo { identifier: string; shortIdentifier: string; @@ -148,7 +151,7 @@ declare namespace webpack { /** Include comments with information about the modules. */ pathinfo?: boolean; /** If set, export the bundle as library. output.library is the name. */ - library?: string; + library?: string | string[]; /** * Which format to export the library: * <ul> @@ -1034,6 +1037,8 @@ declare namespace webpack { comments?: boolean | RegExp | CommentFilter; exclude?: Condition | Condition[]; include?: Condition | Condition[]; + /** Parallelization can speedup your build significantly and is therefore highly recommended. */ + parallel?: boolean | { cache: boolean, workers: boolean | number }; sourceMap?: boolean; test?: Condition | Condition[]; } @@ -1162,13 +1167,13 @@ declare namespace webpack { * Emit a warning. * @param message */ - emitWarning(message: string): void; + emitWarning(message: string | Error): void; /** * Emit a error. * @param message */ - emitError(message: string): void; + emitError(message: string | Error): void; /** * Execute some code fragment like a module. diff --git a/types/webpack/webpack-tests.ts b/types/webpack/webpack-tests.ts index 6d56a0c3c3..09405f3271 100644 --- a/types/webpack/webpack-tests.ts +++ b/types/webpack/webpack-tests.ts @@ -76,6 +76,26 @@ configuration = { } }; +// +// https://webpack.js.org/configuration/entry-context/#dynamic-entry +// + +configuration = { + entry: () => './demo' +}; + +configuration = { + entry: () => ['./demo', './demo2'] +}; + +configuration = { + entry: () => new Promise((resolve) => resolve('./demo')) +}; + +configuration = { + entry: () => new Promise((resolve) => resolve(['./demo', './demo2'])) +}; + // // https://webpack.github.io/docs/code-splitting.html // @@ -323,6 +343,15 @@ plugin = new webpack.optimize.OccurrenceOrderPlugin(preferEntry); plugin = new webpack.optimize.OccurrenceOrderPlugin(preferEntry); plugin = new webpack.optimize.UglifyJsPlugin(options); plugin = new webpack.optimize.UglifyJsPlugin(); +plugin = new webpack.optimize.UglifyJsPlugin({ + parallel: true +}); +plugin = new webpack.optimize.UglifyJsPlugin({ + parallel: { + cache: true, + workers: 2 + } +}); plugin = new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false @@ -602,7 +631,7 @@ configuration = { performance, }; -function loader(this: webpack.loader.LoaderContext, source: string, sourcemap: string): void { +function loader(this: webpack.loader.LoaderContext, source: string | Buffer, sourcemap: string | Buffer): void { this.cacheable(); this.async(); @@ -611,7 +640,11 @@ function loader(this: webpack.loader.LoaderContext, source: string, sourcemap: s this.resolve('context', 'request', ( err: Error, result: string) => {}); - this.emitError('warning'); + this.emitWarning('warning message'); + this.emitWarning(new Error('warning message')); + + this.emitError('error message'); + this.emitError(new Error('error message')); this.callback(null, source); } diff --git a/types/whatwg-streams/index.d.ts b/types/whatwg-streams/index.d.ts index a268f9f571..02ad2c5152 100644 --- a/types/whatwg-streams/index.d.ts +++ b/types/whatwg-streams/index.d.ts @@ -3,13 +3,13 @@ // Definitions by: Kagami Sascha Rosylight <https://github.com/saschanaz> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -interface ReadableStreamSource { +export interface ReadableStreamSource { start?(controller: ReadableStreamDefaultController): void | Promise<void>; pull?(controller: ReadableStreamDefaultController): void | Promise<void>; cancel?(reason: string): void | Promise<void>; } -interface ReadableByteStreamSource { +export interface ReadableByteStreamSource { start?(controller: ReadableByteStreamController): void | Promise<void>; pull?(controller: ReadableByteStreamController): void | Promise<void>; cancel?(reason: string): void | Promise<void>; @@ -18,12 +18,12 @@ interface ReadableByteStreamSource { autoAllocateChunkSize?: number; } -interface QueuingStrategy { +export interface QueuingStrategy { size?(chunk: ArrayBufferView): number; highWaterMark?: number; } -interface PipeOptions { +export interface PipeOptions { preventClose?: boolean; preventAbort?: boolean; preventCancel?: boolean; diff --git a/types/whatwg-streams/whatwg-streams-tests.ts b/types/whatwg-streams/whatwg-streams-tests.ts index e26d755df6..528c2f1f01 100644 --- a/types/whatwg-streams/whatwg-streams-tests.ts +++ b/types/whatwg-streams/whatwg-streams-tests.ts @@ -1,27 +1,32 @@ /// <reference types="node" /> +import { + ReadableStream, ReadableStreamSource, WritableStream, + ReadableStreamDefaultController, WritableStreamSink, WritableStreamDefaultController, ReadableByteStreamController +} from "whatwg-streams"; + // Examples taken from https://streams.spec.whatwg.org/#creating-examples // 8.1. A readable stream with an underlying push source (no backpressure support) +function makeReadableWebSocketStream(url: string, protocols: string | string[]) { + const ws = new WebSocket(url, protocols); + ws.binaryType = "arraybuffer"; + + return new ReadableStream({ + start(controller) { + ws.onmessage = event => controller.enqueue(event.data); + ws.onclose = () => controller.close(); + ws.onerror = () => controller.error(new Error("The WebSocket errored!")); + }, + + cancel() { + ws.close(); + } + }); +} + { - function makeReadableWebSocketStream(url: string, protocols: string | string[]) { - const ws = new WebSocket(url, protocols); - ws.binaryType = "arraybuffer"; - - return new ReadableStream({ - start(controller) { - ws.onmessage = event => controller.enqueue(event.data); - ws.onclose = () => controller.close(); - ws.onerror = () => controller.error(new Error("The WebSocket errored!")); - }, - - cancel() { - ws.close(); - } - }); - } - const writableStream = new WritableStream(); const webSocketStream = makeReadableWebSocketStream("wss://example.com:443/", "protocol"); @@ -79,7 +84,7 @@ function makeUDPSocketStream(host: string, port: number) { return new ReadableStream({ type: "bytes", - start(controller) { + start(controller: ReadableByteStreamController) { readRepeatedly().catch(e => controller.error(e)); function readRepeatedly(): Promise<void> { @@ -127,82 +132,78 @@ interface fs { } let fs: fs; -{ - const CHUNK_SIZE = 1024; +const CHUNK_SIZE = 1024; - function makeReadableFileStream(filename: string) { - let fd: number; - let position = 0; +function makeReadableFileStream(filename: string) { + let fd: number; + let position = 0; - return new ReadableStream({ - start() { - return fs.open(filename, "r").then(result => { - fd = result; - }); - }, + return new ReadableStream({ + start() { + return fs.open(filename, "r").then(result => { + fd = result; + }); + }, - pull(controller) { - const buffer = new ArrayBuffer(CHUNK_SIZE); + pull(controller) { + const buffer = new ArrayBuffer(CHUNK_SIZE); - return fs.read(fd, <any> buffer, 0, CHUNK_SIZE, position).then(bytesRead => { - if (bytesRead === 0) { - return fs.close(fd).then(() => controller.close()); - } else { - position += bytesRead; - controller.enqueue(new Uint8Array(buffer, 0, bytesRead)); - } - }); - }, + return fs.read(fd, <any>buffer, 0, CHUNK_SIZE, position).then(bytesRead => { + if (bytesRead === 0) { + return fs.close(fd).then(() => controller.close()); + } else { + position += bytesRead; + controller.enqueue(new Uint8Array(buffer, 0, bytesRead)); + } + }); + }, - cancel() { - return fs.close(fd); - } - }); - } + cancel() { + return fs.close(fd); + } + }); } // 8.5. A readable byte stream with an underlying pull source -{ - //const fs = require("pr/fs"); // https://github.com/jden/pr - const DEFAULT_CHUNK_SIZE = 1024; +//const fs = require("pr/fs"); // https://github.com/jden/pr +//const DEFAULT_CHUNK_SIZE = 1024; - function makeReadableByteFileStream(filename: string) { - let fd: number; - let position = 0; +function makeReadableByteFileStream(filename: string) { + let fd: number; + let position = 0; - return new ReadableStream({ - type: "bytes", + return new ReadableStream({ + type: "bytes", - start() { - return fs.open(filename, "r").then(result => { - fd = result; - }); - }, + start() { + return fs.open(filename, "r").then(result => { + fd = result; + }); + }, - pull(controller) { - // Even when the consumer is using the default reader, the auto-allocation - // feature allocates a buffer and passes it to us via byobRequest. - const v = controller.byobRequest.view; + pull(controller: ReadableByteStreamController) { + // Even when the consumer is using the default reader, the auto-allocation + // feature allocates a buffer and passes it to us via byobRequest. + const v = controller.byobRequest.view; - return fs.read(fd, <any> v.buffer, v.byteOffset, v.byteLength, position).then(bytesRead => { - if (bytesRead === 0) { - return fs.close(fd).then(() => controller.close()); - } else { - position += bytesRead; - controller.byobRequest.respond(bytesRead); - } - }); - }, + return fs.read(fd, <any>v.buffer, v.byteOffset, v.byteLength, position).then(bytesRead => { + if (bytesRead === 0) { + return fs.close(fd).then(() => controller.close()); + } else { + position += bytesRead; + controller.byobRequest.respond(bytesRead); + } + }); + }, - cancel() { - return fs.close(fd); - }, + cancel() { + return fs.close(fd); + }, - autoAllocateChunkSize: DEFAULT_CHUNK_SIZE - }); - } + autoAllocateChunkSize: DEFAULT_CHUNK_SIZE + }); } @@ -245,29 +246,29 @@ function makeWritableWebSocketStream(url: string, protocols: string | string[]) // 8.7. A writable stream with backpressure and success signals +//const fs = require("pr/fs"); // https://github.com/jden/pr + +function makeWritableFileStream(filename: string) { + let fd: number; + + return new WritableStream({ + start() { + return fs.open(filename, "w").then(result => { + fd = result; + }); + }, + + write(chunk) { + return fs.write(fd, chunk, 0, chunk.length); + }, + + close() { + return fs.close(fd); + } + }); +} + { - //const fs = require("pr/fs"); // https://github.com/jden/pr - - function makeWritableFileStream(filename: string) { - let fd: number; - - return new WritableStream({ - start() { - return fs.open(filename, "w").then(result => { - fd = result; - }); - }, - - write(chunk) { - return fs.write(fd, chunk, 0, chunk.length); - }, - - close() { - return fs.close(fd); - } - }); - } - const fileStream = makeWritableFileStream("/example/path/on/fs.txt"); const writer = fileStream.getWriter(); @@ -282,65 +283,66 @@ function makeWritableWebSocketStream(url: string, protocols: string | string[]) // 8.8. A { readable, writable } stream pair wrapping the same underlying resource -{ - function streamifyWebSocket(url: string, protocol: string) { - const ws = new WebSocket(url, protocol); - ws.binaryType = "arraybuffer"; - return { - readable: new ReadableStream(new WebSocketSource(ws)), - writable: new WritableStream(new WebSocketSink(ws)) - }; +function streamifyWebSocket(url: string, protocol: string) { + const ws = new WebSocket(url, protocol); + ws.binaryType = "arraybuffer"; + + return { + readable: new ReadableStream(new WebSocketSource(ws)), + writable: new WritableStream(new WebSocketSink(ws)) + }; +} + +class WebSocketSource implements ReadableStreamSource { + private _ws: WebSocket; + + constructor(ws: WebSocket) { + this._ws = ws; } - class WebSocketSource implements ReadableStreamSource { - private _ws: WebSocket; + start(controller: ReadableStreamDefaultController) { + this._ws.onmessage = event => controller.enqueue(event.data); + this._ws.onclose = () => controller.close(); - constructor(ws: WebSocket) { - this._ws = ws; - } + this._ws.addEventListener("error", () => { + controller.error(new Error("The WebSocket errored!")); + }); + } - start(controller: ReadableStreamDefaultController) { - this._ws.onmessage = event => controller.enqueue(event.data); - this._ws.onclose = () => controller.close(); + cancel() { + this._ws.close(); + } +} - this._ws.addEventListener("error", () => { - controller.error(new Error("The WebSocket errored!")); - }); - } +class WebSocketSink implements WritableStreamSink { + private _ws: WebSocket; - cancel() { + constructor(ws: WebSocket) { + this._ws = ws; + } + + start(controller: WritableStreamDefaultController) { + this._ws.addEventListener("error", () => { + controller.error(new Error("The WebSocket errored!")); + }); + + return new Promise<void>(resolve => this._ws.onopen = () => resolve()); + } + + write(chunk: any) { + this._ws.send(chunk); + } + + close() { + return new Promise<void>((resolve, reject) => { + this._ws.onclose = () => resolve(); this._ws.close(); - } - } - - class WebSocketSink implements WritableStreamSink { - private _ws: WebSocket; - - constructor(ws: WebSocket) { - this._ws = ws; - } - - start(controller: WritableStreamDefaultController) { - this._ws.addEventListener("error", () => { - controller.error(new Error("The WebSocket errored!")); - }); - - return new Promise<void>(resolve => this._ws.onopen = () => resolve()); - } - - write(chunk: any) { - this._ws.send(chunk); - } - - close() { - return new Promise<void>((resolve, reject) => { - this._ws.onclose = () => resolve(); - this._ws.close(); - }); - } + }); } +} +{ const streamyWS = streamifyWebSocket("wss://example.com:443/", "protocol"); const writer = streamyWS.writable.getWriter(); const reader = streamyWS.readable.getReader(); diff --git a/types/winston/index.d.ts b/types/winston/index.d.ts index c1c61ebd8f..b4c888965a 100644 --- a/types/winston/index.d.ts +++ b/types/winston/index.d.ts @@ -15,7 +15,7 @@ declare namespace winston { } interface AbstractConfigSetColors { - [key: string]: string; + [key: string]: string | string[]; } interface AbstractConfigSet { @@ -37,16 +37,16 @@ declare namespace winston { } interface CliConfigSetColors extends AbstractConfigSetColors { - error: string; - warn: string; - help: string; - data: string; - info: string; - debug: string; - prompt: string; - verbose: string; - input: string; - silly: string; + error: string | string[]; + warn: string | string[]; + help: string | string[]; + data: string | string[]; + info: string | string[]; + debug: string | string[]; + prompt: string | string[]; + verbose: string | string[]; + input: string | string[]; + silly: string | string[]; } interface NpmConfigSetLevels extends AbstractConfigSetLevels { error: number; @@ -57,12 +57,12 @@ declare namespace winston { silly: number; } interface NpmConfigSetColors extends AbstractConfigSetColors { - error: string; - warn: string; - info: string; - verbose: string; - debug: string; - silly: string; + error: string | string[]; + warn: string | string[]; + info: string | string[]; + verbose: string | string[]; + debug: string | string[]; + silly: string | string[]; } interface SyslogConfigSetLevels extends AbstractConfigSetLevels { emerg: number; @@ -75,14 +75,14 @@ declare namespace winston { debug: number; } interface SyslogConfigSetColors extends AbstractConfigSetColors { - emerg: string; - alert: string; - crit: string; - error: string; - warning: string; - notice: string; - info: string; - debug: string; + emerg: string | string[]; + alert: string | string[]; + crit: string | string[]; + error: string | string[]; + warning: string | string[]; + notice: string | string[]; + info: string | string[]; + debug: string | string[]; } interface Winston { diff --git a/types/ws/index.d.ts b/types/ws/index.d.ts index 8dc6cfa746..bbb589a76d 100644 --- a/types/ws/index.d.ts +++ b/types/ws/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for ws 3.0 +// Type definitions for ws 3.2 // Project: https://github.com/websockets/ws // Definitions by: Paul Loyd <https://github.com/loyd> // Matt Silverlock <https://github.com/elithrar> +// Margus Lamp <https://github.com/mlamp> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// <reference types="node" /> @@ -37,14 +38,14 @@ declare class WebSocket extends events.EventEmitter { onclose: (event: { wasClean: boolean; code: number; reason: string; target: WebSocket }) => void; onmessage: (event: { data: WebSocket.Data; type: string; target: WebSocket }) => void; - constructor(address: string, options?: WebSocket.IClientOptions); - constructor(address: string, protocols?: string | string[], options?: WebSocket.IClientOptions); + constructor(address: string, options?: WebSocket.ClientOptions); + constructor(address: string, protocols?: string | string[], options?: WebSocket.ClientOptions); - close(code?: number, data?: any): void; + close(code?: number, data?: string): void; pause(): void; resume(): void; - ping(data?: any, mask?: boolean, dontFail?: boolean): void; - pong(data?: any, mask?: boolean, dontFail?: boolean): void; + ping(data?: any, mask?: boolean, failSilently?: boolean): void; + pong(data?: any, mask?: boolean, failSilently?: boolean): void; send(data: any, cb?: (err: Error) => void): void; send(data: any, options: { mask?: boolean; binary?: boolean }, cb?: (err: Error) => void): void; stream(options: { mask?: boolean; binary?: boolean }, cb?: (err: Error, final: boolean) => void): void; @@ -62,25 +63,23 @@ declare class WebSocket extends events.EventEmitter { addEventListener(method: string, listener?: () => void): void; // Events - on(event: 'error', cb: (err: Error) => void): this; - on(event: 'close', cb: (code: number, message: string) => void): this; - on(event: 'headers', cb: (headers: {}, request: http.IncomingMessage) => void): this; - on(event: 'message', cb: (data: WebSocket.Data) => void): this; - on(event: 'ping', cb: (data: Buffer) => void): this; - on(event: 'pong', cb: (data: Buffer) => void): this; - on(event: 'open', cb: () => void): this; - on(event: 'unexpected-response', cb: (request: http.ClientRequest, response: http.IncomingMessage) => void): this; - on(event: string, listener: () => void): this; + on(event: 'close', listener: (code: number, reason: string) => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'headers', listener: (headers: {}, request: http.IncomingMessage) => void): this; + on(event: 'message', listener: (data: WebSocket.Data) => void): this; + on(event: 'open' , listener: () => void): this; + on(event: 'ping' | 'pong', listener: (data: Buffer) => void): this; + on(event: 'unexpected-response', listener: (request: http.ClientRequest, response: http.IncomingMessage) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; - addListener(event: 'error', cb: (err: Error) => void): this; - addListener(event: 'close', cb: (code: number, message: string) => void): this; - addListener(event: 'headers', cb: (headers: {}, request: http.IncomingMessage) => void): this; - addListener(event: 'message', cb: (data: WebSocket.Data, flags: { binary: boolean }) => void): this; - addListener(event: 'ping', cb: (data: Buffer) => void): this; - addListener(event: 'pong', cb: (data: Buffer) => void): this; - addListener(event: 'open', cb: () => void): this; - addListener(event: 'unexpected-response', cb: (request: http.ClientRequest, response: http.IncomingMessage) => void): this; - addListener(event: string, listener: () => void): this; + addListener(event: 'close', listener: (code: number, message: string) => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'headers', listener: (headers: {}, request: http.IncomingMessage) => void): this; + addListener(event: 'message', listener: (data: WebSocket.Data) => void): this; + addListener(event: 'open' , listener: () => void): this; + addListener(event: 'ping' | 'pong', listener: (data: Buffer) => void): this; + addListener(event: 'unexpected-response', listener: (request: http.ClientRequest, response: http.IncomingMessage) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; } declare namespace WebSocket { @@ -109,9 +108,10 @@ declare namespace WebSocket { type VerifyClientCallbackAsync = (info: { origin: string; secure: boolean; req: http.IncomingMessage } , callback: (res: boolean, code?: number, message?: string) => void) => void; - export interface IClientOptions { + interface ClientOptions { protocol?: string; - perMessageDeflate?: boolean | IPerMessageDeflateOptions; + handshakeTimeout?: number; + perMessageDeflate?: boolean | PerMessageDeflateOptions; localAddress?: string; protocolVersion?: number; headers?: { [key: string]: string }; @@ -119,7 +119,7 @@ declare namespace WebSocket { agent?: http.Agent; host?: string; family?: number; - checkServerIdentity?: Function; + checkServerIdentity?(servername: string, cert: CertMeta): boolean; rejectUnauthorized?: boolean; passphrase?: string; ciphers?: string; @@ -129,15 +129,18 @@ declare namespace WebSocket { ca?: CertMeta; } - export interface IPerMessageDeflateOptions { + interface PerMessageDeflateOptions { serverNoContextTakeover?: boolean; clientNoContextTakeover?: boolean; serverMaxWindowBits?: number; clientMaxWindowBits?: number; + level?: number; memLevel?: number; + threshold?: number; + concurrencyLimit?: number; } - export interface IServerOptions { + interface ServerOptions { host?: string; port?: number; backlog?: number; @@ -147,41 +150,36 @@ declare namespace WebSocket { path?: string; noServer?: boolean; clientTracking?: boolean; - perMessageDeflate?: boolean | IPerMessageDeflateOptions; + perMessageDeflate?: boolean | PerMessageDeflateOptions; maxPayload?: number; } // WebSocket Server - export class Server extends events.EventEmitter { - options: IServerOptions; + class Server extends events.EventEmitter { + options: ServerOptions; path: string; clients: Set<WebSocket>; - constructor(options?: IServerOptions, callback?: Function); + constructor(options?: ServerOptions, callback?: () => void); - close(cb?: (err?: any) => void): void; + close(cb?: (err?: Error) => void): void; handleUpgrade(request: http.IncomingMessage, socket: net.Socket, upgradeHead: Buffer, callback: (client: WebSocket) => void): void; - shouldHandle(request: http.IncomingMessage): boolean + shouldHandle(request: http.IncomingMessage): boolean; // Events - on(event: 'connection', cb: (client: WebSocket, request: http.IncomingMessage) => void): this; - on(event: 'error', cb: (err: Error) => void): this; + on(event: 'connection', cb: (socket: WebSocket, request: http.IncomingMessage) => void): this; + on(event: 'error', cb: (error: Error) => void): this; on(event: 'headers', cb: (headers: string[], request: http.IncomingMessage) => void): this; on(event: 'listening', cb: () => void): this; - on(event: string, listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; addListener(event: 'connection', cb: (client: WebSocket) => void): this; addListener(event: 'error', cb: (err: Error) => void): this; addListener(event: 'headers', cb: (headers: string[], request: http.IncomingMessage) => void): this; addListener(event: 'listening', cb: () => void): this; - addListener(event: string, listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; } - - export function createServer(options?: IServerOptions, - connectionListener?: (client: WebSocket) => void): Server; - export function connect(address: string, openListener?: Function): void; - export function createConnection(address: string, openListener?: Function): void; } export = WebSocket; diff --git a/types/ws/tslint.json b/types/ws/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/ws/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/ws/ws-tests.ts b/types/ws/ws-tests.ts index 90b0e6080f..27b75703ba 100644 --- a/types/ws/ws-tests.ts +++ b/types/ws/ws-tests.ts @@ -1,25 +1,24 @@ - import * as WebSocket from 'ws'; import * as http from 'http'; import * as https from 'https'; { - var ws = new WebSocket('ws://www.host.com/path'); + const ws = new WebSocket('ws://www.host.com/path'); ws.on('open', () => ws.send('something')); ws.on('message', (data) => {}); } { - var ws = new WebSocket('ws://www.host.com/path'); + const ws = new WebSocket('ws://www.host.com/path'); ws.on('open', () => { - var array = new Float32Array(5); - for (var i = 0; i < array.length; ++i) array[i] = i / 2; + const array = new Float32Array(5); + for (let i = 0; i < array.length; ++i) array[i] = i / 2; ws.send(array, {binary: true, mask: true}); }); } { - var wss = new WebSocket.Server({port: 8081}); + const wss = new WebSocket.Server({port: 8081}); wss.on('connection', (ws, req) => { ws.on('message', (message) => console.log('received: %s', message)); ws.send('something'); @@ -32,7 +31,7 @@ import * as https from 'https'; } { - var wss = new WebSocket.Server({port: 8082}); + const wss = new WebSocket.Server({port: 8082}); const broadcast = (data: any) => { wss.clients.forEach((ws) => ws.send(data)); @@ -40,7 +39,7 @@ import * as https from 'https'; } { - var wsc = new WebSocket('ws://echo.websocket.org/'); + const wsc = new WebSocket('ws://echo.websocket.org/'); wsc.on('open', () => wsc.send(Date.now().toString(), {mask: true})); wsc.on('close', () => console.log('disconnected')); @@ -49,7 +48,7 @@ import * as https from 'https'; }); wsc.on('message', (data: string) => { - console.log('Roundtrip time: ' + (Date.now() - parseInt(data)) + 'ms'); + console.log(`Roundtrip time: ${(Date.now() - parseInt(data, 10))} ms`); setTimeout(() => { wsc.send(Date.now().toString(), {mask: true}); }, 500); @@ -61,28 +60,23 @@ import * as https from 'https'; new WebSocket.Server({ server: http.createServer() }); } - { - const verifyClient = function( - info: { - origin: string - secure: boolean - req: http.IncomingMessage - } - , callback: (res: boolean) => void - ): void { - callback(true) - } + const verifyClient = ( + info: { origin: string, secure: boolean, req: http.IncomingMessage }, + callback: (res: boolean) => void + ): void => { + callback(true); + }; - var wsv = new WebSocket.Server({ + const wsv = new WebSocket.Server({ server: http.createServer(), clientTracking: true, perMessageDeflate: true - }) + }); wsv.on('connection', function connection(ws) { - console.log(ws.protocol) - }) + console.log(ws.protocol); + }); } { diff --git a/types/xlsx/index.d.ts b/types/xlsx/index.d.ts deleted file mode 100644 index 28de67c3de..0000000000 --- a/types/xlsx/index.d.ts +++ /dev/null @@ -1,287 +0,0 @@ -// Type definitions for xlsx -// Project: https://github.com/SheetJS/js-xlsx -// Definitions by: themauveavenger <https://github.com/themauveavenger> -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** Attempts to read filename and parse */ -export declare function readFile(filename: string, opts?: IParsingOptions): IWorkBook; -/** Attempts to parse data */ -export declare function read(data: any, opts?: IParsingOptions): IWorkBook; -/** Attempts to write workbook data to filename */ -export declare function writeFile(data: IWorkBook, filename: string, opts?: IWritingOptions): any; -/** Attempts to write the workbook data */ -export declare function write(data: IWorkBook, opts?: IWritingOptions): any; - -export declare var utils: IUtils; - -export interface IProperties { - LastAuthor?: string - Author?: string; - CreatedDate?: Date; - ModifiedDate?: Date - Application?: string; - AppVersion?: string; - Company?: string; - DocSecurity?: string; - Manager?: string; - HyperlinksChanged?: boolean; - SharedDoc?: boolean; - LinksUpToDate?: boolean; - ScaleCrop?: boolean; - Worksheets?: number; - SheetNames?: string[]; -} - -export interface IParsingOptions { - /** - * Input data encoding - */ - type?: 'base64' | 'binary' | 'buffer' | 'array' | 'file'; - - /** - * Save formulae to the .f field - * @default true - */ - cellFormula?: boolean; - - /** - * Parse rich text and save HTML to the .h field - * @default true - */ - cellHTML?: boolean; - - /** - * Save number format string to the .z field - * @default false - */ - cellNF?: boolean; - - /** - * Save style/theme info to the .s field - * @default false - */ - cellStyles?: boolean; - - /** - * Store dates as type d (default is n) - * @default false - */ - cellDates?: boolean; - - /** - * Create cell objects for stub cells - * @default false - */ - sheetStubs?: boolean; - - /** - * If >0, read the first sheetRows rows - * @default 0 - */ - sheetRows?: number; - - /** - * If true, parse calculation chains - * @default false - */ - bookDeps?: boolean; - - /** - * If true, add raw files to book object - * @default false - */ - bookFiles?: boolean; - - /** - * If true, only parse enough to get book metadata - * @default false - */ - bookProps?: boolean; - - /** - * If true, only parse enough to get the sheet names - * @default false - */ - bookSheets?: boolean; - - /** - * If true, expose vbaProject.bin to vbaraw field - * @default false - */ - bookVBA?: boolean; - - /** - * If defined and file is encrypted, use password - * @default '' - */ - password?: string; -} - -export interface IWritingOptions { - /** - * Output data encoding - */ - type?: 'base64' | 'binary' | 'buffer' | 'file'; - - /** - * Store dates as type d (default is n) - * @default false - */ - cellDates?: boolean; - - /** - * Generate Shared String Table - * @default false - */ - bookSST?: boolean; - - /** - * Type of Workbook - * @default 'xlsx' - */ - bookType?: 'xlsx' | 'xlsm' | 'xlsb' | 'ods' | 'biff2' | 'fods' | 'csv'; - - /** - * Name of Worksheet for single-sheet formats - * @default '' - */ - sheet?: string; - - /** - * Use ZIP compression for ZIP-based formats - * @default false - */ - compression?: boolean; -} - -export interface IWorkBook { - /** - * A dictionary of the worksheets in the workbook. - * Use SheetNames to reference these. - */ - Sheets: { [sheet: string]: IWorkSheet }; - - /** - * ordered list of the sheet names in the workbook - */ - SheetNames: string[]; - - /** - * an object storing the standard properties. wb.Custprops stores custom properties. - * Since the XLS standard properties deviate from the XLSX standard, XLS parsing stores core properties in both places. - */ - Props: IProperties; -} - -/** - * object representing the worksheet - */ -export interface IWorkSheet { - [cell: string]: IWorkSheetCell | any; -} - -export interface IWorkSheetCell { - /** - * The raw value of the cell. - */ - v: string | number | boolean | Date; - - /** - * Formatted text (if applicable) - */ - w?: string; - - /** - * The Excel Data Type of the cell. - * b Boolean, n Number, e error, s String, d Date - */ - t: 'b' | 'n' | 'e' | 's' | 'd'; - - /** - * Cell formula (if applicable) - */ - f?: string; - - /** - * Range of enclosing array if formula is array formula (if applicable) - */ - F?: string; - - /** - * Rich text encoding (if applicable) - */ - r?: string; - - /** - * HTML rendering of the rich text (if applicable) - */ - h?: string; - - /** - * Comments associated with the cell ** - */ - c?: string; - - /** - * Number format string associated with the cell (if requested) - */ - z?: string; - - /** - * Cell hyperlink object (.Target holds link, .tooltip is tooltip) - */ - l?: Object; - - /** - * The style/theme of the cell (if applicable) - */ - s?: Object; -} - -export interface ICell { - /** Column number */ - c: number; - /** Row number */ - r: number; -} - -export interface IRange { - /** Starting cell */ - s: ICell; - /** Ending cell */ - e: ICell; -} - -export interface IUtils { - /** converts an array of arrays of JS data to a worksheet. */ - aoa_to_sheet<T>(data: T[], opts?:any): IWorkSheet; - - /** Converts a worksheet object to an array of JSON objects */ - sheet_to_json<T>(worksheet:IWorkSheet, opts?: { - raw?: boolean; - range?: any; - header?: "A"|number|string[]; - }):T[]; - /** Generates delimiter-separated-values output */ - sheet_to_csv(worksheet: IWorkSheet, options?: { FS: string, RS: string }): string; - /** Generates a list of the formulae (with value fallbacks) */ - sheet_to_formulae(worksheet: IWorkSheet):any; - - /** Converts 0-indexed cell address to A1 form */ - encode_cell(cell: ICell): string; - /** Converts 0-indexed row to A1 form */ - encode_row(row: number): string; - /** Converts 0-indexed column to A1 form */ - encode_col(col: number): string; - /** Converts 0-indexed range to A1 form */ - encode_range(s: ICell, e: ICell): string; - - /** Converts A1 cell address to 0-indexed form */ - decode_cell(address: string): ICell; - /** Converts A1 row to 0-indexed form */ - decode_row(row: string): number; - /** Converts A1 column to 0-indexed form */ - decode_col(col: string): number; - /** Converts A1 range to 0-indexed form */ - decode_range(range: string): IRange; -} diff --git a/types/xlsx/xlsx-tests.ts b/types/xlsx/xlsx-tests.ts deleted file mode 100644 index 1817ec8acc..0000000000 --- a/types/xlsx/xlsx-tests.ts +++ /dev/null @@ -1,26 +0,0 @@ - -import xlsx = require('xlsx'); - -var options:xlsx.IParsingOptions = { - cellDates:true -}; - -var workbook = xlsx.readFile('test.xlsx', options); -var otherworkbook = xlsx.readFile('test.xlsx', {type: 'file'}); - -console.log(workbook.Props.Author); - -var firstsheet:string = workbook.SheetNames[0]; - -var firstworksheet = workbook.Sheets[firstsheet]; - -console.log(firstworksheet["A1"]); - -interface tester { - name:string; - age: number; -} - -var jsonvalues:tester[] = xlsx.utils.sheet_to_json<tester>(firstworksheet); -var csv = xlsx.utils.sheet_to_csv(firstworksheet); -var formulae = xlsx.utils.sheet_to_formulae(firstworksheet); diff --git a/types/xrm/index.d.ts b/types/xrm/index.d.ts index d20992e385..a3b49f391d 100644 --- a/types/xrm/index.d.ts +++ b/types/xrm/index.d.ts @@ -893,7 +893,12 @@ declare namespace Xrm { /** * Status for Xrm.Page.Stage.getStatus(). */ - type Status = "active" | "inactive"; + type StageStatus = "active" | "inactive"; + + /** + * Status for Xrm.Page.Process.getStatus(). + */ + type ProcessStatus = "active" | "aborted" | "finished"; /** * Submit Mode for Xrm.Page.Attribute.getSubmitMode() and Xrm.Page.Attribute.setSubmitMode(). @@ -935,6 +940,11 @@ declare namespace Xrm { */ type AttributeType = "boolean" | "datetime" | "decimal" | "double" | "integer" | "lookup" | "memo" | "money" | "optionset" | "string"; + /** + * Direction types for a process stage change event + */ + type StageChangeDirection = "Next" | "Previous"; + /** * Attribute formats for Xrm.Page.Attribute.getFormat(). */ @@ -1017,7 +1027,7 @@ declare namespace Xrm { * * @remarks This method will return either "active" or "inactive". */ - getStatus(): Status; + getStatus(): StageStatus; /** * Returns a collection of steps in the stage. @@ -1074,15 +1084,6 @@ declare namespace Xrm { */ getDepth(): number; - /** - * Gets save-event arguments. - * - * @return The event arguments. - * - * @remarks Returns null for all but the "save" event. - */ - getEventArgs(): SaveEventArguments; - /** * Gets a reference to the object for which event occurred. * @@ -1114,12 +1115,55 @@ declare namespace Xrm { setSharedVariable<T>(key: string, value: T): void; } + /** + * Interface for a save event context + */ + interface SaveEventContext extends EventContext { + /** + * Gets save-event arguments. + * + * @return The event arguments. + * + * @remarks Returns null for all but the "save" event. + */ + getEventArgs(): SaveEventArguments; + } + + /** + * Interface for a process stage change event context + */ + interface StageChangeEventContext extends EventContext { + /** + * Gets process stage change event arguments. + * + * @return The event arguments. + * + */ + getEventArgs(): StageChangeEventArguments; + } + + interface StageSelectedEventContext extends EventContext { + /** + * Gets process stage selected event arguments. + * + * @return The event arguments. + * + */ + getEventArgs(): StageSelectedEventArguments; + } + /** * Type for a context-sensitive handler. * @param {EventContext} context The context. */ type ContextSensitiveHandler = (context: EventContext) => void; + /** + * Type for a process status change handler. + * @param {ProcessStatus} status The process status. + */ + type ProcessStatusChangeHandler = (status: ProcessStatus) => void; + /** * Interface for UI elements with labels. */ @@ -1916,6 +1960,41 @@ declare namespace Xrm { preventDefault(): void; } + /** + * Interface for process stage change event arguments. + */ + interface StageChangeEventArguments { + /** + * Gets the direction of the stage change. + * + * @return The direction. + * + * @remarks Values returned are: "next" or "previous" + */ + getDirection(): StageChangeDirection; + + /** + * Gets the destination stage object + * + * @return The stage object + * + * @remarks For switching between entities, returns the previous stage object + */ + getStage(): Stage; + } + + /** + * Interface for process stage selected event arguments. + */ + interface StageSelectedEventArguments { + /** + * Gets the selected stage object + * + * @return The stage object + */ + getStage(): Stage; + } + /** * Module for the Xrm.Page.data API. */ @@ -1939,6 +2018,21 @@ declare namespace Xrm { */ setActiveProcess(processId: string, callbackFunction?: ProcessCallbackDelegate): void; + /** + * Returns all process instances for the entity record that the calling user has access to. + * + * @param {function} callbackFunction (Optional) a function to call when the operation is complete. + */ + getProcessInstances(callbackFunction: GetProcessInstancesDelegate): void; + + /** + * Sets a process instance as the active instance + * + * @param {string} processInstanceId The Id of the process instance to make the active instance. + * @param {function} callbackFunction (Optional) a function to call when the operation is complete. + */ + setActiveProcessInstance(processInstanceId: string, callbackFunction: SetProcessInstanceDelegate): void; + /** * Returns a Stage object representing the active stage. * @@ -2001,6 +2095,19 @@ declare namespace Xrm { */ addOnStageChange(handler: ContextSensitiveHandler): void; + /** + * Use this to add a function as an event handler for the OnProcessStatusChange event so that it will be called when the + * business process flow status changes. + * @param {ProcessStatusChangeHandler} handler The function will be added to the bottom of the event + * handler pipeline. The execution context is automatically + * set to be the first parameter passed to the event handler. + * + * Use a reference to a named function rather than an + * anonymous function if you may later want to remove the + * event handler. + */ + addOnProcessStatusChange(handler: ProcessStatusChangeHandler): void; + /** * Use this to add a function as an event handler for the OnStageSelected event so that it will be called * when a business process flow stage is selected. @@ -2015,6 +2122,14 @@ declare namespace Xrm { */ addOnStageSelected(handler: ContextSensitiveHandler): void; + /** + * Use this to remove a function as an event handler for the OnProcessStatusChange event. + * + * @param {ProcessStatusChangeHandler} handler If an anonymous function is set using the addOnProcessStatusChange method it + * cannot be removed using this method. + */ + removeOnProcessStatusChange(handler: ProcessStatusChangeHandler): void; + /** * Use this to remove a function as an event handler for the OnStageChange event. * @@ -2046,8 +2161,62 @@ declare namespace Xrm { * complete. */ movePrevious(callbackFunction?: ProcessCallbackDelegate): void; + + /** + * Use this method to get the unique identifier of the process instance + * + * @return The unique identifier of the process instance + */ + getInstanceId(): string; + + /** + * Use this method to get the name of the process instance + * + * @return The name of the process instance + */ + getInstanceName(): string; + + /** + * Use this method to get the current status of the process instance + * + * @return The current status of the process + */ + getStatus(): ProcessStatus; + + /** + * Use this method to set the current status of the process instance + * + * @param {ProcessStatus} status The new status for the process + * @param {function} callbackFunction (Optional) a function to call when the operation is complete. + */ + setStatus(status: ProcessStatus, callbackFunction: ProcessSetStatusDelegate): void; } + /** + * Called when method to get active processes is complete + * + * @param {string} status The result of the get active processes operation. + * + * @remarks Returns object with the following key-value pairs: + * CreatedOn + * ProcessDefinitionID + * ProcessDefinitionName + * ProcessInstanceID + * ProcessInstanceName + * StatusCodeName + */ + type GetProcessInstancesDelegate = (object: ProcessDictionary) => void; + + /** + * Called when method to set active process is complete + * + * @param {string} status The result of the set active process operation. + * + * @remarks Values returned are: success (The operation succeeded.) + * invalid (The processInstanceId isn’t valid or the process isn’t enabled.) + */ + type SetProcessInstanceDelegate = (status: string) => void; + /** * Called when process change methods have completed. * @@ -2062,6 +2231,17 @@ declare namespace Xrm { */ type ProcessCallbackDelegate = (status: string) => void; + /** + * Called when process set status method has completed. + * + * @param {ProcessStatus} status The new status of the process instance + * + * @remarks Values returned are: active + * aborted + * finished + */ + type ProcessSetStatusDelegate = (status: ProcessStatus) => void; + /** * Represents a key-value pair, where the key is the Process Flow's ID, and the value is the name thereof. */ diff --git a/types/xrm/xrm-tests.ts b/types/xrm/xrm-tests.ts index 5b5b12c333..182afa1450 100644 --- a/types/xrm/xrm-tests.ts +++ b/types/xrm/xrm-tests.ts @@ -83,7 +83,7 @@ Xrm.Page.ui.tabs.forEach((tab) => { /// Demonstrate OnSave event context. -Xrm.Page.data.entity.addOnSave((context) => { +Xrm.Page.data.entity.addOnSave((context: Xrm.Page.SaveEventContext) => { const eventArgs = context.getEventArgs(); if (eventArgs.getSaveMode() === XrmEnum.SaveMode.AutoSave || eventArgs.getSaveMode() === XrmEnum.SaveMode.SaveAndClose) diff --git a/types/xxhashjs/index.d.ts b/types/xxhashjs/index.d.ts index 59ca23d7f8..40c45cf3ab 100644 --- a/types/xxhashjs/index.d.ts +++ b/types/xxhashjs/index.d.ts @@ -19,4 +19,5 @@ export interface HashInterface { export const h32: HashInterface; export const h64: HashInterface; -export default { h32, h64 }; +declare const defaultExport: { h32: typeof h32, h64: typeof h64 }; +export default defaultExport; diff --git a/types/zapier-platform-core/index.d.ts b/types/zapier-platform-core/index.d.ts new file mode 100644 index 0000000000..0bea385f05 --- /dev/null +++ b/types/zapier-platform-core/index.d.ts @@ -0,0 +1,114 @@ +// Type definitions for zapier-platform-core 3.1 +// Project: https://github.com/zapier/zapier-platform-core +// Definitions by: Bradley Ayers <https://github.com/bradleyayers> +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +/// <reference types="node" /> + +import * as http from "http"; + +export const version: string; + +export interface HttpRequestOptions { + url?: string; + method?: "POST" | "GET" | "OPTIONS" | "HEAD" | "DELETE" | "PATCH"; + body?: string | Buffer | NodeJS.ReadableStream | object | null; + headers?: { [name: string]: string }; + json?: object | any[] | null; + params?: object; + form?: object | null; + raw?: boolean; + redirect?: "manual" | "error" | "follow"; + follow?: number; + compress?: boolean; + agent?: http.Agent | null; + timeout?: number; + size?: number; +} + +export interface HttpResponse { + status: number; + content: string | Buffer; + json: object | undefined | Promise<object | undefined>; + body?: NodeJS.ReadableStream; + headers: { [key: string]: string }; + getHeader(key: string): string | undefined; + throwForStatus(): void; + request: HttpRequestOptions; +} + +export class HaltedError extends Error {} +export class ExpiredAuthError extends Error {} +export class RefreshAuthError extends Error {} + +export interface Z { + request(options: HttpRequestOptions): Promise<HttpResponse>; + request(url: string, options?: HttpRequestOptions): Promise<HttpResponse>; + JSON: typeof JSON; + console: Console; + hash(alg: string, data: string): any; + errors: { + RefreshAuthError: { + new (message?: string): HaltedError; + new (message?: string): ExpiredAuthError; + new (message?: string): RefreshAuthError; + }; + }; +} + +export interface AuthData { + access_token: string; + refresh_token?: string; +} + +export interface Bundle<InputData = {}> { + authData: AuthData; + inputData: InputData; +} + +export interface AuthorizeUrlBundle<InputData = {}> { + inputData: InputData; +} + +export interface GetAccessTokenBundle<InputData = {}> { + inputData: InputData & { + code: string; + }; +} + +export interface RefreshAccessTokenBundle<InputData> { + inputData: InputData; + authData: AuthData; +} + +export interface OAuth2Authentication<InputData = {}> { + type: "oauth2"; + connectionLabel: string; + oauth2Config: { + authorizeUrl: + | string + | (( + z: Z, + bundle: AuthorizeUrlBundle<InputData> + ) => string | Promise<string>) + | HttpRequestOptions; + getAccessToken: + | (( + z: Z, + bundle: GetAccessTokenBundle<InputData> + ) => AuthData | Promise<AuthData>) + | HttpRequestOptions; + refreshAccessToken?: + | (( + z: Z, + bundle: RefreshAccessTokenBundle<InputData> + ) => AuthData | Promise<AuthData>) + | HttpRequestOptions; + autoRefresh: boolean; + scope?: string; + }; + test: + | ((z: Z, bundle: Bundle<InputData>) => boolean | Promise<boolean>) + | { url: string }; +} diff --git a/types/zapier-platform-core/tsconfig.json b/types/zapier-platform-core/tsconfig.json new file mode 100644 index 0000000000..3755a7ac9a --- /dev/null +++ b/types/zapier-platform-core/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "zapier-platform-core-tests.ts" + ] +} diff --git a/types/zapier-platform-core/tslint.json b/types/zapier-platform-core/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/zapier-platform-core/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/zapier-platform-core/zapier-platform-core-tests.ts b/types/zapier-platform-core/zapier-platform-core-tests.ts new file mode 100644 index 0000000000..76592204ae --- /dev/null +++ b/types/zapier-platform-core/zapier-platform-core-tests.ts @@ -0,0 +1,93 @@ +import { OAuth2Authentication } from "zapier-platform-core"; + +const BASE_URL = "http://example.com"; +const OAUTH2_CLIENT_ID = "12345"; +const OAUTH2_CLIENT_SECRET = "abcdef"; + +const authentication: OAuth2Authentication = { + type: "oauth2", + connectionLabel: "User account", + oauth2Config: { + authorizeUrl: `${BASE_URL}/oauth2/authorize`, + + getAccessToken: async (z, bundle) => { + const response = await z.request(`${BASE_URL}/oauth2/access`, { + method: "POST", + body: { + code: bundle.inputData.code, + client_id: OAUTH2_CLIENT_ID, + client_secret: OAUTH2_CLIENT_SECRET, + grant_type: "authorization_code" + } + }); + + if (response.status !== 200) { + throw new Error( + "Unable to fetch access token: " + response.content + ); + } + + if (typeof response.content !== "string") { + throw new Error( + `Unable to response content, expected string but got ${typeof response.content}.` + ); + } + + const result = z.JSON.parse(response.content); + return { + access_token: result.access_token, + refresh_token: result.refresh_token + }; + }, + + refreshAccessToken: async (z, bundle) => { + if (!bundle.authData.refresh_token) { + throw new Error( + "Required `bundle.authData.refresh_token` field missing." + ); + } + + const response = await z.request(`${BASE_URL}/oauth2/refresh`, { + method: "POST", + body: { + refresh_token: bundle.authData.refresh_token, + client_id: OAUTH2_CLIENT_ID, + client_secret: OAUTH2_CLIENT_SECRET, + grant_type: "refresh_token" + } + }); + + if (response.status !== 200) { + throw new Error( + "Unable to fetch access token: " + response.content + ); + } + + if (typeof response.content !== "string") { + throw new Error( + `Unable to response content, expected string but got ${typeof response.content}.` + ); + } + + const result = z.JSON.parse(response.content); + return { + access_token: result.access_token, + refresh_token: bundle.authData.refresh_token + }; + }, + + autoRefresh: true, + + scope: "read,write" + }, + + test: async z => { + const response = await z.request(`${BASE_URL}/oauth2/test`); + + if (response.status === 401) { + throw new Error("The access token you supplied is not valid"); + } + + return true; + } +};